Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Fix `add-symbol-file -o ... -s ...` address mapping bug
@ 2026-09-24  3:51 Dragorn421
  2026-09-24  3:51 ` [PATCH v3 1/2] " Dragorn421
  2026-09-24  3:51 ` [PATCH v3 2/2] `add-symbol-file`: add test for mixing -o and -s Dragorn421
  0 siblings, 2 replies; 7+ messages in thread
From: Dragorn421 @ 2026-09-24  3:51 UTC (permalink / raw)
  To: gdb-patches; +Cc: Dragorn421

Hi!

This fixes a bug when mixing -o and -s in the add-symbol-file command,
and adds a corresponding test.

Initial patch thread here: https://sourceware.org/pipermail/gdb-patches/2026-September/230131.html

v3 over v2 fixes the added test case.

This is my first time contributing so my apologies if I'm doing anything
not properly, please let me know.

Dragorn421 (2):
  Fix `add-symbol-file -o ... -s ...` address mapping bug
  `add-symbol-file`: add test for mixing -o and -s

 gdb/symfile.c                              |  6 +--
 gdb/testsuite/gdb.base/relocate_linked.c   | 28 +++++++++++
 gdb/testsuite/gdb.base/relocate_linked.exp | 58 ++++++++++++++++++++++
 3 files changed, 89 insertions(+), 3 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/relocate_linked.c
 create mode 100644 gdb/testsuite/gdb.base/relocate_linked.exp

-- 
2.43.0


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

end of thread, other threads:[~2026-09-25 17:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24  3:51 [PATCH v3 0/2] Fix `add-symbol-file -o ... -s ...` address mapping bug Dragorn421
2026-09-24  3:51 ` [PATCH v3 1/2] " Dragorn421
2026-09-24 18:54   ` Keith Seitz
2026-09-25  7:15     ` Dragorn421
2026-09-25 17:06       ` Keith Seitz
2026-09-24  3:51 ` [PATCH v3 2/2] `add-symbol-file`: add test for mixing -o and -s Dragorn421
2026-09-24 18:57   ` Keith Seitz

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