From: Matti Puputti <matti.puputti@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/1] gdb, infcmd: Support jump command with same line in multiple object files.
Date: Wed, 8 Mar 2023 14:26:06 +0100 [thread overview]
Message-ID: <20230308132607.1674441-1-matti.puputti@intel.com> (raw)
Fixes the issue where jump fails if the jump target is in multiple object
files.
For example, a header file defining a static function is included in multiple
source files, each calling the function. When debugger is aksed to jump a
line inside that function, there would be multiple locations matching the
target. Solution in this commit is to select the location in the current
object file.
Matti Puputti (1):
gdb, infcmd: Support jump command with same line in multiple object
files.
gdb/infcmd.c | 14 ++++++-
gdb/testsuite/gdb.base/jump2.c | 29 +++++++++++++++
gdb/testsuite/gdb.base/jump2.exp | 59 ++++++++++++++++++++++++++++++
gdb/testsuite/gdb.base/jump2.h | 30 +++++++++++++++
gdb/testsuite/gdb.base/jump2_foo.c | 24 ++++++++++++
5 files changed, 155 insertions(+), 1 deletion(-)
create mode 100755 gdb/testsuite/gdb.base/jump2.c
create mode 100755 gdb/testsuite/gdb.base/jump2.exp
create mode 100755 gdb/testsuite/gdb.base/jump2.h
create mode 100755 gdb/testsuite/gdb.base/jump2_foo.c
--
2.25.1
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next reply other threads:[~2023-03-08 13:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 13:26 Matti Puputti [this message]
2023-03-08 13:26 ` [PATCH 1/1] " Matti Puputti
2023-03-24 7:19 ` Puputti, Matti
2023-03-31 5:04 ` Puputti, Matti
2023-04-06 12:59 ` [PING] " Puputti, Matti
2023-04-13 14:32 ` Bruno Larsen
2023-04-14 12:28 ` Puputti, Matti
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=20230308132607.1674441-1-matti.puputti@intel.com \
--to=matti.puputti@intel.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).