Why does `disassemble` behave differently on Linux and Mac?
Eli Zaretskii
eliz@gnu.org
Sun Jan 24 15:35:21 GMT 2021
> Date: Sun, 24 Jan 2021 09:06:10 -0600
> From: Peng Yu via Gdb <gdb@sourceware.org>
>
> $ 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.
More information about the Gdb
mailing list