Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Dragorn421 <dragorn421@gmail.com>
To: gdb-patches@sourceware.org
Subject: [PING][PATCH v4 0/2] Fix `add-symbol-file -o ... -s ...` address mapping bug
Date: Sat, 21 Nov 2026 12:03:35 +0100	[thread overview]
Message-ID: <efa99725-b712-4d47-92e2-59e6ffd08c02@gmail.com> (raw)
In-Reply-To: <20260926064742.29327-1-dragorn421@gmail.com>

Kindly pinging.



-------- Forwarded Message --------
Subject: 	[PATCH v4 0/2] Fix `add-symbol-file -o ... -s ...` address 
mapping bug
Date: 	Sat, 26 Sep 2026 08:47:22 +0200
From: 	Dragorn421 <dragorn421@gmail.com>
To: 	gdb-patches@sourceware.org
CC: 	Dragorn421 <dragorn421@gmail.com>



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 here: 
https://sourceware.org/pipermail/gdb-patches/2026-September/230581.html 
https://sourceware.org/pipermail/gdb-patches/2026-September/230580.html

v3 over v2 fixes the added test case.
v4 over v3 fixes formatting and addresses a review of the 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 | 7 ++-
gdb/testsuite/gdb.base/relocate_linked.c | 28 +++++++++
gdb/testsuite/gdb.base/relocate_linked.exp | 71 ++++++++++++++++++++++
3 files changed, 103 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


      parent reply	other threads:[~2026-11-21 11:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-26  6:47 [PATCH " Dragorn421
2026-09-26  6:47 ` [PATCH v4 1/2] " Dragorn421
2026-09-26  6:47 ` [PATCH v4 2/2] `add-symbol-file`: add test for mixing -o and -s Dragorn421
2026-10-12  7:27 ` [PING][PATCH v4 0/2] Fix `add-symbol-file -o ... -s ...` address mapping bug Dragorn421
2026-10-14 16:44   ` Keith Seitz
2026-11-21 11:03 ` Dragorn421 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=efa99725-b712-4d47-92e2-59e6ffd08c02@gmail.com \
    --to=dragorn421@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox