public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] disassembly over compilation unit boundaries
@ 2015-08-30 11:48 Andrew Burgess
  2015-08-30 11:48 ` [PATCH 2/2] gdb: Ensure disassembler covers requested address range Andrew Burgess
  2015-08-30 11:48 ` [PATCH 1/2] gdb: Move common MI code to outer function Andrew Burgess
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew Burgess @ 2015-08-30 11:48 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

Patch #2 in this series attempts to improve gdb's ability to
disassembly over compilation unit boundaries.  The thinking is that if
a user tries to disassemble the address range from START to END like
this:

    (gdb) disassemble /m START,END

Then even though they asked for disassembly with source code, it is
better to provide raw assembly if there's no debug information
available, and so raw assembly is the best they'll ever get.

At the same time I address the issue where the address range crosses
from one compilation unit with debug information into a second
compilation unit also with debug information.  Currently gdb will
again stop at the boundary of the first compilation unit, after this
patch the disassembly will continue.

Patch #1 is a small clean up in the disassembly code.

Thanks,

Andrew


Andrew Burgess (2):
  gdb: Move common MI code to outer function.
  gdb: Ensure disassembler covers requested address range.

 gdb/ChangeLog                                      |  18 +++
 gdb/disasm.c                                       | 141 +++++++++++++++------
 gdb/testsuite/ChangeLog                            |  11 ++
 gdb/testsuite/gdb.base/disasm-end-cu.exp           |  49 -------
 .../{disasm-end-cu-1.c => disasm-multi-cu-1.c}     |  10 +-
 .../{disasm-end-cu-2.c => disasm-multi-cu-2.c}     |  14 +-
 gdb/testsuite/gdb.base/disasm-multi-cu-3.c         |  30 +++++
 gdb/testsuite/gdb.base/disasm-multi-cu.exp         | 111 ++++++++++++++++
 gdb/testsuite/gdb.base/disasm-multi-cu.h           |  25 ++++
 9 files changed, 304 insertions(+), 105 deletions(-)
 delete mode 100644 gdb/testsuite/gdb.base/disasm-end-cu.exp
 rename gdb/testsuite/gdb.base/{disasm-end-cu-1.c => disasm-multi-cu-1.c} (86%)
 rename gdb/testsuite/gdb.base/{disasm-end-cu-2.c => disasm-multi-cu-2.c} (80%)
 create mode 100644 gdb/testsuite/gdb.base/disasm-multi-cu-3.c
 create mode 100644 gdb/testsuite/gdb.base/disasm-multi-cu.exp
 create mode 100644 gdb/testsuite/gdb.base/disasm-multi-cu.h

-- 
2.5.1

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

end of thread, other threads:[~2015-10-05  4:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-30 11:48 [PATCH 0/2] disassembly over compilation unit boundaries Andrew Burgess
2015-08-30 11:48 ` [PATCH 2/2] gdb: Ensure disassembler covers requested address range Andrew Burgess
2015-09-17  4:05   ` Doug Evans
2015-09-17 11:19     ` Andrew Burgess
2015-10-05  4:43       ` Doug Evans
2015-08-30 11:48 ` [PATCH 1/2] gdb: Move common MI code to outer function Andrew Burgess
2015-09-17  2:55   ` Doug Evans
2015-09-17 10:02     ` Andrew Burgess
2015-10-05  4:20       ` Doug Evans

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