From 9c4191458a49d50ebda256b624eac5fc646f31a8 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Fri, 23 Oct 2009 00:49:33 +0000 Subject: 2009-10-22 Paul Pluzhnikov * 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 * gdb.texinfo (Machine Code): Mention function name in disasssembly and adjust example. testsuite/ChangeLog: 2009-10-22 Paul Pluzhnikov * gdb.asm/asm-source.exp: Adjust. --- gdb/cli/cli-cmds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index ce7c2a6..acdbc82 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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 { -- cgit v1.1