]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Tweak "Using the running image of ..." output
authorPedro Alves <pedro@palves.net>
Sat, 3 Dec 2022 16:20:51 +0000 (16:20 +0000)
committerPedro Alves <pedro@palves.net>
Sat, 3 Dec 2022 20:51:47 +0000 (20:51 +0000)
commitd34abbc2d75705020caf4e61b10d6755d5666a62
tree551453adf019f8f0b137b7377be30a6be77aa3e5
parentfb699bafb5f23c2fd43d7f20495171b16903b20f
Tweak "Using the running image of ..." output

Currently, "info files" and "info program" on a few native targets
show:

 (gdb) info files
 Symbols from "/home/pedro/gdb/tests/threads".
 Native process:
 Using the running image of child Thread 0x7ffff7d89740 (LWP 1097968).
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 ...

 (gdb) info program
 Using the running image of child Thread 0x7ffff7d89740 (LWP 1097968).
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 Program stopped at 0x555555555278.
 ...

This patch changes them to:

 (gdb) info files
 Symbols from "/home/pedro/gdb/tests/threads".
 Native process:
 Using the running image of child process 1097968.
                                  ^^^^^^^^^^^^^^^
 ...

 (gdb) info program
 Using the running image of child process 1097968.
                                  ^^^^^^^^^^^^^^^
 Program stopped at 0x555555555278.
 ...

... which I think makes a lot more sense in this context.  The "info
program" manual entry even says:

  "Display information about the status of your program: whether it is
   running or not, what process it is, and why it stopped."
                        ^^^^^^^^^^^^^

This change affects ptrace targets, procfs targets, and Windows.

Change-Id: I6aab061ff494a84ba3398cf98fd49efd7a6ec1ca
gdb/inf-ptrace.c
gdb/nto-procfs.c
gdb/procfs.c
gdb/windows-nat.c