aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-23 00:49:33 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-23 00:49:33 +0000
commit9c4191458a49d50ebda256b624eac5fc646f31a8 (patch)
tree474b2881c23441366319c61e671703aef7578058 /gdb/disasm.c
parentbb8a0291affe114880874c0e192b471c87663b27 (diff)
downloadgdb-9c4191458a49d50ebda256b624eac5fc646f31a8.zip
gdb-9c4191458a49d50ebda256b624eac5fc646f31a8.tar.gz
gdb-9c4191458a49d50ebda256b624eac5fc646f31a8.tar.bz2
2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* disasm.h (DISASSEMBLY_OMIT_FNAME) New define. (gdb_disassembly): Correct parameter name. * disasm.c (dump_insns): Adjust. (gdb_disassembly): Fix indentation. * cli/cli-cmds.c (disassemble_command): Adjust. doc/ChangeLog: 2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.texinfo (Machine Code): Mention function name in disasssembly and adjust example. testsuite/ChangeLog: 2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.asm/asm-source.exp: Adjust.
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r--gdb/disasm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c
index e296e38..5927367 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -122,7 +122,8 @@ dump_insns (struct gdbarch *gdbarch, struct ui_out *uiout,
/* We don't care now about line, filename and
unmapped. But we might in the future. */
ui_out_text (uiout, " <");
- ui_out_field_string (uiout, "func-name", name);
+ if ((flags & DISASSEMBLY_OMIT_FNAME) == 0)
+ ui_out_field_string (uiout, "func-name", name);
ui_out_text (uiout, "+");
ui_out_field_int (uiout, "offset", offset);
ui_out_text (uiout, ">:\t");
@@ -373,9 +374,8 @@ gdb_disassemble_info (struct gdbarch *gdbarch, struct ui_file *file)
void
gdb_disassembly (struct gdbarch *gdbarch, struct ui_out *uiout,
- char *file_string,
- int flags,
- int how_many, CORE_ADDR low, CORE_ADDR high)
+ char *file_string, int flags, int how_many,
+ CORE_ADDR low, CORE_ADDR high)
{
struct ui_stream *stb = ui_out_stream_new (uiout);
struct cleanup *cleanups = make_cleanup_ui_out_stream_delete (stb);