public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] gdb, infcmd: Support jump command with same line in multiple object files.
@ 2023-03-08 13:26 Matti Puputti
  2023-03-08 13:26 ` [PATCH 1/1] " Matti Puputti
  0 siblings, 1 reply; 7+ messages in thread
From: Matti Puputti @ 2023-03-08 13:26 UTC (permalink / raw)
  To: gdb-patches

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


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

end of thread, other threads:[~2023-04-14 12:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 13:26 [PATCH 0/1] gdb, infcmd: Support jump command with same line in multiple object files Matti Puputti
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

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).