summaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authormmetzger <mmetzger>2012-11-13 15:35:37 +0000
committermmetzger <mmetzger>2012-11-13 15:35:37 +0000
commitdefa4b682a6938059b706817246c22c13b7d56a3 (patch)
tree54b53efe963eb273a81210058e9e30ac3841e451 /gdb/symtab.h
parent8fddc20e18ee473b46c843ddec3346581db45089 (diff)
downloadgdb-defa4b682a6938059b706817246c22c13b7d56a3.tar.gz
* 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 3b87c96a015..0d24cb5d0d3 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,