Re: Why does `disassemble` behave differently on Linux and Mac?
Eli Zaretskii via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Sun, 24 Jan 2021 09:06:10 -0600 > From: Peng Yu via Gdb <[email protected]> > > $ gcc -c func.c > $ gdb -q func.o > Reading symbols from func.o... > (No debugging symbols found in func.o) > (gdb) show disassembly-flavor > The disassembly flavor is "att". > (gdb) disassemble func > No symbol table is loaded. Use the "file" command. I think you need to compile with -g.