From e2fd701eb4e8c8e59741a6a5ae97d759e70e239a Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 20 Nov 2008 16:13:11 +0000 Subject: * printcmd.c (sym_info): Don't print the offset if it's zero. * gdb.base/sepsymtab.exp: Update, old "info sym" format restored. --- gdb/testsuite/gdb.base/sepsymtab.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.base/sepsymtab.exp') diff --git a/gdb/testsuite/gdb.base/sepsymtab.exp b/gdb/testsuite/gdb.base/sepsymtab.exp index 3192701..ce0ea7d 100644 --- a/gdb/testsuite/gdb.base/sepsymtab.exp +++ b/gdb/testsuite/gdb.base/sepsymtab.exp @@ -45,7 +45,7 @@ gdb_load ${binfile} set command "info sym main" set command_regex [string_to_regexp $command] gdb_test_multiple "$command" "$command" { - -re "^${command_regex}\[\r\n\]+main \\+ 0 in section \[^\r\n\]+\[\r\n\]+$gdb_prompt \$" { + -re "^${command_regex}\[\r\n\]+main in section \[^\r\n\]+\[\r\n\]+$gdb_prompt \$" { pass "$command" } } -- cgit v1.1