Break points not being set, VS 17, embedded C project

Sysprogs forums Forums VisualGDB Break points not being set, VS 17, embedded C project

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10862
    usernameasdfjk
    Participant

    I’m having an issue where no break points are being set. Maybe you guys know what is going on. This is some of my output:

     

    C:\gcc\gcc-arm-none-eabi-5_4-2016q3-20160926-win32\bin\arm-none-eabi-gdb.exe –interpreter mi  path/to/…/file.hex
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    All created breakpoints are pending. Setting a breakpoint at main()…
    Cannot resolve the address of _estack. Skipping stack pointer validity check.

     

    As you can see, the all the addresses of the break points are say <PENDING>:

     

    Num Type Disp Enb Address What
    2 breakpoint keep y <PENDING> path/to/file…/fileTest.c:7
    3 breakpoint keep y <PENDING> path/to/file…/main.c:1064
    4 breakpoint keep y <PENDING> path/to/file…/file.c:140
    5 breakpoint keep y <PENDING> path/to/file…/main.c:1063
    6 breakpoint keep y <PENDING> path/to/file…/main.c:1065
    7 breakpoint keep y <PENDING> path/to/file…/main.c:1066
    8 breakpoint keep y <PENDING> path/to/file…/main.c:1067
    9 breakpoint keep y <PENDING> main

    #10866
    support
    Keymaster

    Hi,

    Looks like you are trying to debug the .hex file instead of the ELF file (has no extension by default). Please double-check your debug settings; the ELF file contains the necessary symbol information and is vital for debugging.

    #10874
    usernameasdfjk
    Participant

    Thank you very much for the quick and helpful response! You were indeed right.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.