public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Peng Yu <pengyu.ut@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Why does `disassemble` behave differently on Linux and Mac?
Date: Sun, 24 Jan 2021 17:35:21 +0200	[thread overview]
Message-ID: <835z3m4abq.fsf@gnu.org> (raw)
In-Reply-To: <CABrM6wnr7vSR-HFxUGU+6wF9x-vBMNzOYhQi5EUHRpkGj_MBmA@mail.gmail.com> (message from Peng Yu via Gdb on Sun, 24 Jan 2021 09:06:10 -0600)

> 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.

  parent reply	other threads:[~2021-01-24 15:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 15:06 Peng Yu
2021-01-24 15:31 ` Simon Marchi
2021-01-24 15:35 ` Eli Zaretskii [this message]
2021-01-24 16:01   ` Peng Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=835z3m4abq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=pengyu.ut@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).