diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2012-11-13 15:35:43 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2012-11-13 15:35:43 +0000 |
commit | 4cd29721179a29be4f31798c5860d0964130b78c (patch) | |
tree | 54938daba9af7a291729ae10002d4e9eba6d792d /gdb/symtab.h | |
parent | dfaae88645ac58515a3037a09df0d1b7b6d034a4 (diff) | |
download | gdb-4cd29721179a29be4f31798c5860d0964130b78c.zip gdb-4cd29721179a29be4f31798c5860d0964130b78c.tar.gz gdb-4cd29721179a29be4f31798c5860d0964130b78c.tar.bz2 |
* disasm.h (DISASSEMBLY_FILENAME): New macro.
* disasm.c (do_mixed_source_and_assembly): Pass filename flag on
to print_source_lines ().
* symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
flag.
* source.c (print_source_lines_base): Prefix source line with
filename if PRINT_SOURCE_LINES_FILENAME flag is set.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 3b87c96..0d24cb5 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1167,7 +1167,10 @@ extern int identify_source_line (struct symtab *, int, int, CORE_ADDR); enum print_source_lines_flags { /* Do not print an error message. */ - PRINT_SOURCE_LINES_NOERROR = (1 << 0) + PRINT_SOURCE_LINES_NOERROR = (1 << 0), + + /* Print the filename in front of the source lines. */ + PRINT_SOURCE_LINES_FILENAME = (1 << 1) }; extern void print_source_lines (struct symtab *, int, int, |