Bill wrote:
I wrote a simple hello world in c. how can i disassemble main() with gdb?
"disassemble main"Use the "-g" switch when you compile it. (note the effect of the "-O" switch, while you're at it)
Best, Frank -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- Disassemble in GDB
- From: Bill
- Disassemble in GDB
- Prev by Date: precise debugging of inline asm
- Next by Date: Re: precise debugging of inline asm
- Previous by thread: Re: Disassemble in GDB
- Next by thread: precise debugging of inline asm
- Index(es):