-   Programming (
-   -   gdb debugging assembly with no symbols (

Four 08-07-2008 11:17 PM

gdb debugging assembly with no symbols

I'm debugging a program that doesn't have any symbols. Is it posible to get gdb to print out the assembly instructions that its going to execute? all it tells me is

<address> ??()

Thank you

Steve K. 08-08-2008 10:35 AM

I use KDevelop as my IDE. When debugging in KDevelop a tab labeled Disassemble is available to see assembly code for the program being debugged. I haven't used it, so I can say nothing beyond its existence.

vladmihaisima 08-08-2008 12:36 PM

You can use command "disassemble". If you want details you type "help disassemble".

Using gdb from Kdevelop would be much easiear, if possible install KDevelop.

paulsm4 08-08-2008 02:13 PM

"help disassemble" is the ticket.

Here's a good tutorial:

Four 08-15-2008 10:11 PM

Is it possible to have gdb print out the assembly instruction to be executed after I type something like stepi or nexti. Its really annoying to type "disassemble $pc ($pc+1)" to get the current instruction.

Basicly I'm looking at a compiled executable and trying to understand how it works. I do not have the source code for the executable.

Thank you

shana 10-01-2008 09:47 PM

display/i $pc

This makes gdb display the next instruction to execute everytime you stop.

All times are GMT -5. The time now is 02:31 AM.