Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v3 0/5] [gdb/tui] Some section hole handling fixes
@ 2026-09-21 20:55 Tom de Vries
  2026-09-21 20:55 ` [PATCH v3 1/5] [gdb] Factor out update_section_map Tom de Vries
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tom de Vries @ 2026-09-21 20:55 UTC (permalink / raw)
  To: gdb-patches

This series consists of 5 patches.

The first three patches are refactoring/infrastructure patches:
- factor out update_section_map
- add section_addrmap
- extend addrmap::find with low/high results

The fourth patch fixes PR34617, for both TUI and CLI.

The fifth patch prevents stopping disassembly at section holes for CLI
and TUI, fixing PR34399.

Changes in v2:
- add patch fixing tui_disassemble comment after review comment
- drop restrictive fix for PR tui/34399 after review comments
- add patches implementing an enabling fix for PR tui/34399.

Changes in v3:
- committed the first three patches of v2
- drop the find_pc_section refactoring approach of the 4th and 5th patches of
  v2
- instead add three refactoring/infrastructure patches:
  - factor out update_section_map
  - add section_addrmap
  - extend addrmap::find with low/high results
- rework the last two patches into these two patches:
  - handle sections when disassembling
  - don't stop disassembly at section hole

Versions:
- v1 https://sourceware.org/pipermail/gdb-patches/2026-August/229584.html
- v2 https://sourceware.org/pipermail/gdb-patches/2026-September/230207.html

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

Tom de Vries (5):
  [gdb] Factor out update_section_map
  [gdb] Add section_addrmap
  [gdb] Extend addrmap::find with low/high results
  [gdb] Handle sections when disassembling
  [gdb] Don't stop disassembly at section hole

 gdb/addrmap.c        |  78 ++++++++++++++++++++++++---
 gdb/addrmap.h        |  23 +++++---
 gdb/disasm.c         | 123 ++++++++++++++++++++++++++++++++++++++-----
 gdb/disasm.h         |  14 +++++
 gdb/objfiles.c       |  62 +++++++++++++++++-----
 gdb/objfiles.h       |   6 +++
 gdb/tui/tui-disasm.c | 120 ++++++++++++++++++++++++++++++-----------
 7 files changed, 356 insertions(+), 70 deletions(-)


base-commit: 3e5100fe3b15e2b3ece60f57b4c1ecc0c50cae53
-- 
2.51.0


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

end of thread, other threads:[~2026-09-21 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 20:55 [PATCH v3 0/5] [gdb/tui] Some section hole handling fixes Tom de Vries
2026-09-21 20:55 ` [PATCH v3 1/5] [gdb] Factor out update_section_map Tom de Vries
2026-09-21 20:55 ` [PATCH v3 2/5] [gdb] Add section_addrmap Tom de Vries
2026-09-21 20:55 ` [PATCH v3 3/5] [gdb] Extend addrmap::find with low/high results Tom de Vries
2026-09-21 20:55 ` [PATCH v3 4/5] [gdb] Handle sections when disassembling Tom de Vries
2026-09-21 20:55 ` [PATCH v3 5/5] [gdb] Don't stop disassembly at section hole 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