From: Tom Tromey <tom@tromey.com>
To: Nils-Christian Kempke via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH 3/3] gdb/infrun: handle stepping through functions with DW_AT_trampoline
Date: Fri, 15 Jul 2022 14:20:15 -0600 [thread overview]
Message-ID: <87cze6m8lc.fsf@tromey.com> (raw)
In-Reply-To: <20220707121538.1317473-4-nils-christian.kempke@intel.com> (Nils-Christian Kempke via Gdb-patches's message of "Thu, 7 Jul 2022 14:15:38 +0200")
>>>>> Nils-Christian Kempke via Gdb-patches <gdb-patches@sourceware.org> writes:
> This patch makes infrun continue stepping into and through trampoline
> functions marked via the DW_AT_trampoline in DWARF. The attribute can
> be emitted by the compiler for certain subroutines/inlined subroutines
> that are compiler generated and should be hidden from a user.
Thank you for the patch.
I don't really know enough about infrun to comment on most of this patch.
It seems like a good idea to me. It's close to a feature users have
wanted for a while -- an addition to the "skip" command to skip through
library-provided wrappers.
> + add_setshow_boolean_cmd ("skip-trampoline-functions", class_run,
> + &skip_trampoline_functions, _("\
> +Set whether gdb attempts to hide trampolines marked in the debug info."), _("\
> +Show whether gdb attempts to hide trampolines marked in the debug info."), _("\
> +If on, while stepping gdb will skip through function trampolines and inlined\n\
> +fucntion trampolines that have been marked trampolines in the compiler's\n\
Typo, "function". Also maybe "marked as trampolines by the compiler" instead.
> +debug info. If off, gdb will ignore the DW_TAG_trampoline while stepping."),
I think this should probably not refer to DW_TAG_trampoline.
Few users will understand this.
thanks,
Tom
next prev parent reply other threads:[~2022-07-15 20:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 12:15 [PATCH 1/3] gdb: add support for DW_AT_trampoline in DWARF reader Nils-Christian Kempke
2022-07-07 12:15 ` [PATCH 2/3] gdb/symtab: add lookup for trampoline functions Nils-Christian Kempke
2022-07-15 20:13 ` Tom Tromey
2022-07-07 12:15 ` [PATCH 3/3] gdb/infrun: handle stepping through functions with DW_AT_trampoline Nils-Christian Kempke
2022-07-15 20:20 ` Tom Tromey [this message]
2022-07-13 7:39 ` [PATCH 1/3] gdb: add support for DW_AT_trampoline in DWARF reader George, Jini Susan
2022-07-13 11:59 ` Kempke, Nils-Christian
2022-07-17 12:57 ` George, Jini Susan
2022-07-18 16:11 ` Tom Tromey
2022-07-15 20:05 ` Tom Tromey
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=87cze6m8lc.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@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).