public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven
[not found] <bug-11833-4717@http.sourceware.org/bugzilla/>
@ 2011-11-17 2:16 ` dje at google dot com
2012-08-28 21:53 ` jan.smets@alcatel-lucent.com
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: dje at google dot com @ 2011-11-17 2:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11833
dje at google dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at google dot com
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven
[not found] <bug-11833-4717@http.sourceware.org/bugzilla/>
2011-11-17 2:16 ` [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven dje at google dot com
@ 2012-08-28 21:53 ` jan.smets@alcatel-lucent.com
2015-08-15 4:48 ` cvs-commit at gcc dot gnu.org
2015-08-15 4:57 ` xdje42 at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2012-08-28 21:53 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11833
Jan Smets <jan.smets@alcatel-lucent.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.smets@alcatel-lucent.co
| |m
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven
[not found] <bug-11833-4717@http.sourceware.org/bugzilla/>
2011-11-17 2:16 ` [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven dje at google dot com
2012-08-28 21:53 ` jan.smets@alcatel-lucent.com
@ 2015-08-15 4:48 ` cvs-commit at gcc dot gnu.org
2015-08-15 4:57 ` xdje42 at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-15 4:48 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11833
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6ff0ba5f7b8a2b10642bbb233a32043595c55670
commit 6ff0ba5f7b8a2b10642bbb233a32043595c55670
Author: Doug Evans <xdje42@gmail.com>
Date: Fri Aug 14 21:45:54 2015 -0700
New /s modifier for the disassemble command.
The "source centric" /m option to the disassemble command is often
unhelpful, e.g., in the presence of optimized code.
This patch adds a /s modifier that is better.
For one, /m only prints instructions from the originating source file,
leaving out instructions from e.g., inlined functions from other files.
gdb/ChangeLog:
PR gdb/11833
* NEWS: Document new /s modifier for the disassemble command.
* cli/cli-cmds.c (disassemble_command): Add support for /s.
(_initialize_cli_cmds): Update online docs of disassemble command.
* disasm.c: #include "source.h".
(struct deprecated_dis_line_entry): Renamed from dis_line_entry.
All uses updated.
(dis_line_entry): New struct.
(hash_dis_line_entry, eq_dis_line_entry): New functions.
(allocate_dis_line_table): New functions.
(maybe_add_dis_line_entry, line_has_code_p): New functions.
(dump_insns): New arg end_pc. All callers updated.
(do_mixed_source_and_assembly_deprecated): Renamed from
do_mixed_source_and_assembly. All callers updated.
(do_mixed_source_and_assembly): New function.
(gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
* disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
DISASSEMBLY_SOURCE. All uses updated.
(DISASSEMBLY_SOURCE): New macro.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
gdb/doc/ChangeLog:
* gdb.texinfo (Machine Code): Update docs for mixed source/assembly
disassembly.
(GDB/MI Data Manipulation): Update docs for new disassembly modes.
gdb/testsuite/ChangeLog:
* gdb.mi/mi-disassemble.exp: Update.
* gdb.base/disasm-optim.S: New file.
* gdb.base/disasm-optim.c: New file.
* gdb.base/disasm-optim.h: New file.
* gdb.base/disasm-optim.exp: New file.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven
[not found] <bug-11833-4717@http.sourceware.org/bugzilla/>
` (2 preceding siblings ...)
2015-08-15 4:48 ` cvs-commit at gcc dot gnu.org
@ 2015-08-15 4:57 ` xdje42 at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: xdje42 at gmail dot com @ 2015-08-15 4:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11833
Doug Evans <xdje42 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |xdje42 at gmail dot com
Resolution|--- |FIXED
--- Comment #2 from Doug Evans <xdje42 at gmail dot com> ---
Patch committed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-15 4:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11833-4717@http.sourceware.org/bugzilla/>
2011-11-17 2:16 ` [Bug gdb/11833] disassemble/m should be PC-driven, not source line driven dje at google dot com
2012-08-28 21:53 ` jan.smets@alcatel-lucent.com
2015-08-15 4:48 ` cvs-commit at gcc dot gnu.org
2015-08-15 4:57 ` xdje42 at gmail dot com
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).