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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.