public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Make GDB respect the DW_CC_nocall attribute
@ 2022-01-28 14:29 Lancelot SIX
  2022-01-28 14:29 ` [PATCH v2 1/2] gdb: Move most of get_function_name (COREADDR) in symtab.h Lancelot SIX
  2022-01-28 14:29 ` [PATCH v2 2/2] gdb: Respect the DW_CC_nocall attribute Lancelot SIX
  0 siblings, 2 replies; 9+ messages in thread
From: Lancelot SIX @ 2022-01-28 14:29 UTC (permalink / raw)
  To: gdb-patches; +Cc: lsix, Lancelot SIX

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-31 14:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28 14:29 [PATCH v2 0/2] Make GDB respect the DW_CC_nocall attribute Lancelot SIX
2022-01-28 14:29 ` [PATCH v2 1/2] gdb: Move most of get_function_name (COREADDR) in symtab.h Lancelot SIX
2022-01-31 13:17   ` Bruno Larsen
2022-01-28 14:29 ` [PATCH v2 2/2] gdb: Respect the DW_CC_nocall attribute Lancelot SIX
2022-01-31 13:19   ` Bruno Larsen
2022-01-31 14:05     ` Simon Marchi
2022-01-31 14:34       ` Six, Lancelot
2022-01-31 14:36         ` Simon Marchi
2022-01-31 14:19     ` Six, Lancelot

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).