forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user