public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Make GDB respect the DW_CC_nocall attribute
@ 2022-02-02 18:41 Lancelot SIX
  2022-02-02 18:41 ` [PATCH v3 1/2] gdb: add a symbol* argument to get_return_value Lancelot SIX
  2022-02-02 18:41 ` [PATCH v3 2/2] gdb: Respect the DW_CC_nocall attribute Lancelot SIX
  0 siblings, 2 replies; 14+ messages in thread
From: Lancelot SIX @ 2022-02-02 18:41 UTC (permalink / raw)
  To: gdb-patches; +Cc: lsix, Lancelot SIX

Hi,

This is a V3 following
https://sourceware.org/pipermail/gdb-patches/2022-January/185563.html.

Noticeable changes since V2:

- Instead of using get_function_name (COREADDR, ...) in order to format
  messages displayed to the user in get_return_value, this series now
  ensures that the function's symbol is passed to get_return_value.
  With the symbol available, getting the function name is a matter of
  calling 'symbol::print_name'.  This overall simplifies the
  implementation.

  To simplify the review process, changes required to have the symbol in
  get_return_value are done in a preparatory patch.

- Fix coding style issues reported by Bruno.

- Remove newline at the end of the testcase.

Thanks to Bruno and Simon for the comments.

Tested on x86_64-linux with no regression observed.

All feedback welcome.

Best,
Lancelot.

Lancelot SIX (2):
  gdb: add a symbol* argument to get_return_value
  gdb: Respect the DW_CC_nocall attribute

 gdb/gdbtypes.c                                | 11 +++
 gdb/gdbtypes.h                                | 10 ++
 gdb/infcall.c                                 |  5 +
 gdb/infcmd.c                                  | 14 ++-
 gdb/inferior.h                                |  3 +-
 gdb/python/py-finishbreakpoint.c              | 29 ++++--
 gdb/stack.c                                   | 18 +++-
 gdb/testsuite/gdb.dwarf2/calling-convention.c | 35 +++++++
 .../gdb.dwarf2/calling-convention.exp         | 97 +++++++++++++++++++
 9 files changed, 207 insertions(+), 15 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] 14+ messages in thread

end of thread, other threads:[~2022-02-15 10:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02 18:41 [PATCH v3 0/2] Make GDB respect the DW_CC_nocall attribute Lancelot SIX
2022-02-02 18:41 ` [PATCH v3 1/2] gdb: add a symbol* argument to get_return_value Lancelot SIX
2022-02-02 21:01   ` Simon Marchi
2022-02-02 21:59     ` [PATCH v4] " Lancelot SIX
2022-02-03  1:03       ` Simon Marchi
2022-02-03 11:10         ` Six, Lancelot
2022-02-03 12:35           ` Simon Marchi
2022-02-03 15:46         ` Lancelot SIX
2022-02-03 18:28         ` [PATCH v5] " Lancelot SIX
2022-02-03 19:26           ` Simon Marchi
2022-02-03 22:34             ` Six, Lancelot
2022-02-02 18:41 ` [PATCH v3 2/2] gdb: Respect the DW_CC_nocall attribute Lancelot SIX
2022-02-08 14:27   ` Simon Marchi
2022-02-15 10:53     ` Lancelot SIX

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