From 919d772c556e521f21902cfdf3ac67e3468fce12 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 11 Jun 2002 20:37:05 +0000 Subject: * gdb/source.c (source_info): Mention whether the symtab has information about preprocessor macros. * gdb/testsuite/lib/gdb.exp (get_debug_format): Tolerate message saying whether preprocessor macro information is present. * gdb/doc/gdb.texinfo (Symbols): Update documentation for `info source' command. --- gdb/testsuite/ChangeLog | 3 +++ gdb/testsuite/lib/gdb.exp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2d02577..da681a6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2002-06-11 Jim Blandy + * lib/gdb.exp (get_debug_format): Tolerate message saying whether + preprocessor macro information is present. + * macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New tests. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index d9285e8..8d666f9 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1440,7 +1440,7 @@ proc get_debug_format { } { set debug_format "unknown" send_gdb "info source\n" gdb_expect 10 { - -re "Compiled with (.*) debugging format.\r\n$gdb_prompt $" { + -re "Compiled with (.*) debugging format.\r\n.*$gdb_prompt $" { set debug_format $expect_out(1,string) verbose "debug format is $debug_format" return 1; -- cgit v1.1