public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Varun Kumar Erigila <varun.erigila@blackfigtech.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: working of backtrace command in GDB
Date: Wed, 25 Jan 2023 04:49:24 +0000	[thread overview]
Message-ID: <BMXPR01MB1029CA3D804A402619BEFFB68DCE9@BMXPR01MB1029.INDPRD01.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

Hello Everyone,
              I'm trying to figure out whether gdb makes use of CFI information for "backtrace command."
              In case of watchpoints, gdb tries to figure out whether the frame containing the variable on which watchpoint is set is still present by going through all the frames in stack. (it calls execute_cfa_program function to figure this out).
              But in the case of the backtrace command it does not call the execute_cfa_program to unwind all the frames.
              Is there another mechanism gdb uses to unwind the stack frames apart from CFI information.

Regards,
Varun

             reply	other threads:[~2023-01-25  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25  4:49 Varun Kumar Erigila [this message]
2023-01-25 16:53 ` Simon Marchi

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=BMXPR01MB1029CA3D804A402619BEFFB68DCE9@BMXPR01MB1029.INDPRD01.PROD.OUTLOOK.COM \
    --to=varun.erigila@blackfigtech.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).