diff options
author | Lancelot SIX <lancelot.six@amd.com> | 2022-04-01 11:59:29 +0100 |
---|---|---|
committer | Lancelot SIX <lancelot.six@amd.com> | 2022-04-04 23:03:32 +0100 |
commit | 6109f7a39eb956a4121875630895669cece178e8 (patch) | |
tree | 9ed947e4bf5a59faa744137f4ccbf58bcf60d71f /gdb/doc | |
parent | cc96ae7f8839bd63a943751d52af94db3b956c1f (diff) | |
download | binutils-6109f7a39eb956a4121875630895669cece178e8.zip binutils-6109f7a39eb956a4121875630895669cece178e8.tar.gz binutils-6109f7a39eb956a4121875630895669cece178e8.tar.bz2 |
gdb: Add maint set ignore-prologue-end-flag
The previous patch added support for the DWARF prologue-end flag in line
table. This flag can be used by DWARF producers to indicate where to
place breakpoints past a function prologue. However, this takes
precedence over prologue analyzers. So if we have to debug a program
with erroneous debug information, the overall debugging experience will
be degraded.
This commit proposes to add a maintenance command to instruct GDB to
ignore the prologue_end flag.
Tested on x86_64-gnu-linux.
Change-Id: Idda6d1b96ba887f4af555b43d9923261b9cc6f82
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 14d7581..b7da5e1 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -19857,6 +19857,19 @@ when collecting performance data. The command @code{maint flush-symbol-cache} is deprecated in favor of @code{maint flush symbol-cache}.. +@kindex maint set ignore-prologue-end-flag +@cindex prologue-end +@item maint set ignore-prologue-end-flag [on|off] +Enable or disable the use of the @samp{PROLOGUE-END} flag from the line-table. +When @samp{off} (the default), @value{GDBN} uses the @samp{PROLOGUE-END} flag +to place breakpoints past the end of a function prologue. When @samp{on}, +@value{GDBN} ignores the flag and relies on prologue analyzers to skip function +prologues. + +@kindex maint show ignore-prologue-end-flag +@item maint show ignore-prologue-end-flag +Show whether @value{GDBN} will ignore the @samp{PROLOGUE-END} flag. + @end table @node Altering |