From bb5ef15eff1baa44a382c9be60383e66cc26badd Mon Sep 17 00:00:00 2001 From: Denis Pilat Date: Tue, 16 Dec 2008 13:15:50 +0000 Subject: [PATCH] 2008-12-16 Christophe Lyon * gdb.base/expand-psymtabs.c: Insert code in foo so that the compiler actually generate code at the expected line number. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/expand-psymtabs.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f3932ba05fb..e8b18bdb37c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-12-16 Christophe Lyon + + * gdb.base/expand-psymtabs.c: Insert code in foo so that the + compiler actually generate code at the expected line number. + 2008-12-15 Jie Zhang * gdb.base/consecutive.exp: Don't use global in gdb_expect. diff --git a/gdb/testsuite/gdb.base/expand-psymtabs.c b/gdb/testsuite/gdb.base/expand-psymtabs.c index 6cb8cf7df55..64430c31202 100644 --- a/gdb/testsuite/gdb.base/expand-psymtabs.c +++ b/gdb/testsuite/gdb.base/expand-psymtabs.c @@ -26,10 +26,15 @@ main (void) } #else +void +bar (void) + { + } + void foo (void) { - /* Break here */ + bar(); /* Break here */ } #endif -- 2.30.2