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:
@@ -936,8 +936,7 @@ print_disassembly (struct gdbarch *gdbarch, const char *name,
|
||||
}
|
||||
|
||||
/* Subroutine of disassemble_command to simplify it.
|
||||
Print a disassembly of the current function.
|
||||
MIXED is non-zero to print source with the assembler. */
|
||||
Print a disassembly of the current function according to FLAGS. */
|
||||
|
||||
static void
|
||||
disassemble_current_function (int flags)
|
||||
@@ -1018,6 +1017,7 @@ disassemble_command (char *arg, int from_tty)
|
||||
|
||||
if (! arg || ! *arg)
|
||||
{
|
||||
flags |= DISASSEMBLY_OMIT_FNAME;
|
||||
disassemble_current_function (flags);
|
||||
return;
|
||||
}
|
||||
@@ -1039,6 +1039,7 @@ disassemble_command (char *arg, int from_tty)
|
||||
low = tui_get_low_disassembly_address (gdbarch, low, pc);
|
||||
#endif
|
||||
low += gdbarch_deprecated_function_start_offset (gdbarch);
|
||||
flags |= DISASSEMBLY_OMIT_FNAME;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user