Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v4 0/4] [gdb] Fix missing print frame when stepping out of function
@ 2026-04-10 10:12 Tom de Vries
  2026-04-10 10:12 ` [PATCH v4 1/4] [gdb/testsuite] Extend gdb.opt/inline-cmds.exp Tom de Vries
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Tom de Vries @ 2026-04-10 10:12 UTC (permalink / raw)
  To: gdb-patches

This patch series consisting of four patches.

The first patch extends test-case gdb.opt/inline-cmds.exp.

The second patch does some refactoring, to make the following fix minimal.

The third patch contains a fix for PR33981.

The fourth patch does a cleanup in function print_stop_location.

A v1 was submitted here [1].

Changes in v2 [2]:
- added two refactoring patches
- changed approach after review comment by Andrew, changing
  in_step_start_function usage to notice stepping in and out of inlined
  functions

Changes in v3 [3]:
- dropped first refactoring patch
- merged second refactoring patch into patch containing fix
- changed approach from using find_symbol_for_pc_sect_maybe_inline to using
  get_frame_function
- extended test-case gdb.opt/inline-cmds.exp
- added patch with cleanup in function print_stop_location

Changes in v4:
- factored out patch extending test-case gdb.opt/inline-cmds.exp
- re-instated refactoring patch
- updated cleanup patch to use selected frame instead of current frame

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33981

[1] v1 https://sourceware.org/pipermail/gdb-patches/2026-March/225916.html
[2] v2 (RFC) https://sourceware.org/pipermail/gdb-patches/2026-March/226269.html
[3] v3 https://sourceware.org/pipermail/gdb-patches/2026-April/226330.html

Andrew Burgess (2):
  [gdb/testsuite] Extend gdb.opt/inline-cmds.exp
  gdb: use get_current_frame consistently in print_stop_location

Tom de Vries (2):
  [gdb] Add thread_control_state::step_start_function methods
  gdb: fix missing print frame when stepping out of function

 gdb/gdbthread.h                               | 36 ++++++++++++++-
 gdb/infcmd.c                                  |  3 +-
 gdb/infrun.c                                  | 25 ++++++-----
 .../gdb.dwarf2/dw2-extend-inline-block.exp    | 45 +++++++++++++++++--
 gdb/testsuite/gdb.opt/inline-cmds.exp         | 33 +++++++++-----
 5 files changed, 113 insertions(+), 29 deletions(-)


base-commit: d7e49fd331d5a9a66d467c7d5cb4b5fc156a1ee0
-- 
2.51.0


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

end of thread, other threads:[~2026-04-14 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-10 10:12 [PATCH v4 0/4] [gdb] Fix missing print frame when stepping out of function Tom de Vries
2026-04-10 10:12 ` [PATCH v4 1/4] [gdb/testsuite] Extend gdb.opt/inline-cmds.exp Tom de Vries
2026-04-10 10:12 ` [PATCH v4 2/4] [gdb] Add thread_control_state::step_start_function methods Tom de Vries
2026-04-10 10:12 ` [PATCH v4 3/4] gdb: fix missing print frame when stepping out of function Tom de Vries
2026-04-10 10:12 ` [PATCH v4 4/4] gdb: use get_current_frame consistently in print_stop_location Tom de Vries
2026-04-14 16:32 ` [PATCH v4 0/4] [gdb] Fix missing print frame when stepping out of function Andrew Burgess
2026-04-14 20:41   ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox