public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Edgar Mobile via Gdb <gdb@sourceware.org>
Cc: Joel Brobecker <brobecker@adacore.com>
Subject: Re: Query parameters / dwarf info for a function
Date: Fri, 11 Feb 2022 14:51:28 +0100	[thread overview]
Message-ID: <YgZp4Ke4hDPeJEns@adacore.com> (raw)
In-Reply-To: <DM8PR16MB4357FA623EB41881EA468829C7309@DM8PR16MB4357.namprd16.prod.outlook.com>

Hi Edgar,

> can someone tell me if there is a gdb command to query the dwarf info
> of a function, specifically the memory location of the parameters,
> just through its name during post-mortem debugging ( I cannot stop
> inside the function because the program isn't running ) ?

If you're wondering about the location of the parameters, I think
a better tool would be readelf or objdump, which are both able
to dump the DWARF info in a human-readable way. E.g.

    readelf -wi EXE

-- 
Joel

      reply	other threads:[~2022-02-11 13:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11 13:19 Edgar Mobile
2022-02-11 13:51 ` Joel Brobecker [this message]

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=YgZp4Ke4hDPeJEns@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    /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).