1

I'm trying to use a gdb client running on my host machine to talk to a GDB server running on a debug probe. I can connect using the "target remote" command, and I can single step, use monitor commands to restart, etc. I can not set breakpoints though, because GDB insists there is nothing loaded at the address I specify because I have no executable and no symbol table. It replies:

No symbol table is loaded. Use the "file" command. Make hw breakpoint pending on future shared library load? (y or [n])

I tried providing it the raw binary firmware image, but that didn't work, and besides, I'd like to set hardware breakpoints, and set them anywhere I darn well please, including RAM where things are loaded during initialization, and I'm not about to create an ELF file just to get GDB to get out of the way.

Is there a way to make GDB ignore its symbol table and just set hardware breakpoints?

1

facepalm You need to use a * to specify an address to breakpoint at. I guess gdb was taking my string 0x1010b190 and treating it like a symbol.

hb 0x1010b190

That's when I get :

No symbol table is loaded. Use the "file" command.

Make hw breakpoint pending on future shared library load? (y or [n])

But if I do

hb *0x1010b190

it works.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.