public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Allow access to target_sections even without an executable
@ 2021-02-16 17:50 Andrew Burgess
  2021-02-16 17:50 ` [PATCH 1/4] gdb: add a new 'maint info target-sections' command Andrew Burgess
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Andrew Burgess @ 2021-02-16 17:50 UTC (permalink / raw)
  To: gdb-patches

The last patch in this series is the interesting one.

I ran into a situation where a user was using GDB against a remote
target without specifying an executable (either on the command line,
or using the file command).  Instead, they loaded the executabe with
add-symbol-file and then continued to debug their remote target.

This works fine, except that 'set trust-readonly-sections' doesn't
work.

This series fixes this.

Thanks,
Andrew

---

Andrew Burgess (4):
  gdb: add a new 'maint info target-sections' command
  gdb: spread a little 'const' through the target_section_table code
  gdb: make the target_sections table private within program_space
  gdb: move get_section_table from exec_target to dummy_target

 gdb/ChangeLog                                 |  75 +++++++++++++
 gdb/NEWS                                      |   3 +
 gdb/bfd-target.c                              |   4 +-
 gdb/doc/ChangeLog                             |   5 +
 gdb/doc/gdb.texinfo                           |   8 ++
 gdb/exec.c                                    | 102 ++++++++++--------
 gdb/exec.h                                    |   2 +-
 gdb/maint.c                                   |  59 ++++++++++
 gdb/ppc64-tdep.c                              |   2 +-
 gdb/progspace.h                               |  30 +++++-
 gdb/record-btrace.c                           |   2 +-
 gdb/remote.c                                  |   6 +-
 gdb/s390-tdep.c                               |   4 +-
 gdb/solib-dsbt.c                              |   3 +-
 gdb/solib-svr4.c                              |   3 +-
 gdb/target-debug.h                            |   2 +-
 gdb/target-delegates.c                        |  16 +--
 gdb/target.c                                  |  24 +++--
 gdb/target.h                                  |  14 ++-
 gdb/testsuite/ChangeLog                       |   5 +
 .../gdb.base/maint-info-sections.exp          |  66 +++++++++++-
 21 files changed, 349 insertions(+), 86 deletions(-)

-- 
2.25.4


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

end of thread, other threads:[~2021-02-23 18:01 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 17:50 [PATCH 0/4] Allow access to target_sections even without an executable Andrew Burgess
2021-02-16 17:50 ` [PATCH 1/4] gdb: add a new 'maint info target-sections' command Andrew Burgess
2021-02-16 17:55   ` Eli Zaretskii
2021-02-17 16:19   ` Christian Biesinger
2021-02-18 16:25     ` Andrew Burgess
2021-02-16 17:50 ` [PATCH 2/4] gdb: spread a little 'const' through the target_section_table code Andrew Burgess
2021-02-16 17:50 ` [PATCH 3/4] gdb: make the target_sections table private within program_space Andrew Burgess
2021-02-19 14:24   ` Tom Tromey
2021-02-16 17:50 ` [PATCH 4/4] gdb: move get_section_table from exec_target to dummy_target Andrew Burgess
2021-02-19 14:46 ` [PATCH 0/4] Allow access to target_sections even without an executable Tom Tromey
2021-02-19 20:07 ` [PATCHv2 0/6] " Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 1/6] gdb: add a new 'maint info target-sections' command Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 2/6] gdb: spread a little 'const' through the target_section_table code Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 3/6] gdb/testsuite: enable gdb.base/sect-cmd.exp test for all targets Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 4/6] gdb: make the target_sections table private within program_space Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 5/6] gdb: move get_section_table from exec_target to dummy_target Andrew Burgess
2021-02-19 20:07   ` [PATCHv2 6/6] gdb: use std::string instead of a fixed size buffer Andrew Burgess
2021-02-23 18:00     ` Tom Tromey
2021-02-23 18:01   ` [PATCHv2 0/6] Allow access to target_sections even without an executable Tom Tromey

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