[PATCH v2 0/2] Make GDB respect the DW_CC_nocall attribute
Lancelot SIX
lancelot.six@amd.com
Fri Jan 28 14:29:29 GMT 2022
Hi,
This is a V2 for https://sourceware.org/pipermail/gdb-patches/2022-January/185301.html
The main change since V1 is an improvement of the messages shown to the
user (including the name of the function that is marked as not following
the calling convention).
In order to do this, this series move the get_function_name (COREADDR)
function from infcall.c where it currently resides (as a static
function) to a more generic place accessible to other parts of GDB.
I unfortunately did not find the obvious place where this function
should live. The first commit of this series moves the declaration of the
function in gdb/symtab.h and its declaration in gdb/blockframe.c in
absence of anything better. I am happy moving this somewhere else if
someone sees a better location in mind.
All feedback welcome.
Best,
Lancelot.
Lancelot SIX (2):
gdb: Move most of get_function_name (COREADDR) in symtab.h
gdb: Respect the DW_CC_nocall attribute
gdb/blockframe.c | 29 ++++++
gdb/gdbtypes.c | 11 +++
gdb/gdbtypes.h | 9 ++
gdb/infcall.c | 43 +-------
gdb/infcmd.c | 19 ++++
gdb/stack.c | 16 ++-
gdb/symtab.h | 15 +++
gdb/testsuite/gdb.dwarf2/calling-convention.c | 36 +++++++
.../gdb.dwarf2/calling-convention.exp | 97 +++++++++++++++++++
9 files changed, 234 insertions(+), 41 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/calling-convention.c
create mode 100644 gdb/testsuite/gdb.dwarf2/calling-convention.exp
base-commit: 0d8cbc5f2fcbcb9eb207f12507fdfe04f3d3ae14
--
2.25.1
More information about the Gdb-patches
mailing list