From: Eli Zaretskii <eliz@gnu.org>
To: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
Cc: gdb-patches@sourceware.org, JiniSusan.George@amd.com, tom@tromey.com
Subject: Re: [PATCH v6 05/10] gdb: Skip trampoline functions for the finish and reverse-finish commands.
Date: Thu, 28 Mar 2024 15:59:59 +0200 [thread overview]
Message-ID: <86v856fodc.fsf@gnu.org> (raw)
In-Reply-To: <20240328120528.30382-6-abdul.b.ijaz@intel.com> (message from Abdul Basit Ijaz on Thu, 28 Mar 2024 13:05:23 +0100)
> From: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
> Cc: abdul.b.ijaz@intel.com,
> JiniSusan.George@amd.com,
> tom@tromey.com,
> eliz@gnu.org
> Date: Thu, 28 Mar 2024 13:05:23 +0100
>
> gdb/NEWS | 5 +-
> gdb/doc/gdb.texinfo | 4 ++
> gdb/infcmd.c | 12 ++++
> gdb/infrun.c | 8 +++
> gdb/infrun.h | 5 ++
> gdb/testsuite/gdb.fortran/func-trampoline.exp | 13 ++++-
> .../gdb.reverse/finish-reverse-trampoline.exp | 56 +++++++++++++++++++
> 7 files changed, 99 insertions(+), 4 deletions(-)
> create mode 100644 gdb/testsuite/gdb.reverse/finish-reverse-trampoline.exp
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index 025f2e1a17e..b8577c58af7 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -898,8 +898,9 @@ show skip-trampoline-functions
> recognize function calls that have been marked as trampolines in the debug
> info. It improves stepping behavior in that it steps over the trampoline
> code and hides it from the user. It improves the printing of the stack by
> - hiding trampoline functions from the backtrace. Currently, only DWARF
> - trampolines are supported.
> + hiding the trampoline frames from the backtrace and skips trampoline
> + functions while returning from the target function of a trampoline call.
> + Currently, only DWARF trampolines are supported.
>
> If this is turned off, GDB gdb will handle trampoline functions the same
> as any other function.
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 6117f6e889f..5782e06b91d 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -6475,6 +6475,10 @@ DWARF trampolines marked via DW_AT_trampoline are supported by this.
> When issuing a @code{backtrace}, if @code{skip-trampoline-functions} is set,
> @value{GDBN} will skip trampoline frames while printing the stack.
>
> +When issuing a @code{finish} or @code{reverse-finish}, if
> +@code{skip-trampoline-functions} is set, @value{GDBN} will skip trampoline
> +frames while returning from the target function.
> +
> Currently, only DWARF trampolines marked via DW_AT_trampoline are supported by
> this.
Thanks, the documentation parts of this are okay.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2024-03-28 14:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 12:05 [PATCH v6 00/10] GDB support for DW_AT_trampoline Abdul Basit Ijaz
2024-03-28 12:05 ` [PATCH v6 01/10] gdb, dwarf: add support for DW_AT_trampoline in DWARF reader Abdul Basit Ijaz
2024-03-28 12:05 ` [PATCH v6 02/10] gdb/symtab: add lookup for trampoline functions Abdul Basit Ijaz
2024-03-28 12:05 ` [PATCH v6 03/10] gdb: handle stepping through functions with DW_AT_trampoline Abdul Basit Ijaz
2024-03-28 13:58 ` Eli Zaretskii
2024-03-28 14:31 ` Ijaz, Abdul B
2024-03-28 12:05 ` [PATCH v6 04/10] gdb: Skip trampoline frames for the backtrace command Abdul Basit Ijaz
2024-03-28 12:05 ` [PATCH v6 05/10] gdb: Skip trampoline functions for the finish and reverse-finish commands Abdul Basit Ijaz
2024-03-28 13:59 ` Eli Zaretskii [this message]
2024-03-28 12:05 ` [PATCH v6 06/10] gdb: Skip trampoline functions for the up command Abdul Basit Ijaz
2024-03-28 14:01 ` Eli Zaretskii
2024-03-28 12:05 ` [PATCH v6 07/10] gdb: Skip trampoline functions for the return command Abdul Basit Ijaz
2024-03-28 14:01 ` Eli Zaretskii
2024-03-28 12:05 ` [PATCH v6 08/10] gdb, mi: Skip trampoline functions for the -stack-list-frames command Abdul Basit Ijaz
2024-03-28 14:02 ` Eli Zaretskii
2024-03-28 12:05 ` [PATCH v6 09/10] gdb, mi: Skip trampoline functions for the -stack-list-arguments command Abdul Basit Ijaz
2024-03-28 14:03 ` Eli Zaretskii
2024-03-28 12:05 ` [PATCH v6 10/10] gdb: Filter trampoline frames in backtrace when using Python frame-filters Abdul Basit Ijaz
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=86v856fodc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=JiniSusan.George@amd.com \
--cc=abdul.b.ijaz@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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