diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2006-03-09 00:22:09 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2006-03-09 00:22:09 +0000 |
commit | d74c688084d40208eb04c6e3bf741c7f75d476ba (patch) | |
tree | f8e40061e24273d2ebe76e24483913ab9e7fa5fd /gdb | |
parent | 6cc4c1302b0d366aa18299f2bdf96d9b653eaf39 (diff) | |
download | gdb-d74c688084d40208eb04c6e3bf741c7f75d476ba.tar.gz |
gdb/ChangeLog:
* solib-svr4.c (svr4_current_sos): Move up initialization of
l_addr, such that it clearly covers all cases.
gdb/testsuite/ChangeLog:
* gdb.base/prelink.exp: Anchor tested-for regular expression
on gdb prompt.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-svr4.c | 3 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/prelink.exp | 3 |
4 files changed, 13 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55bbc172634..bb8d2825d1d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-03-08 Alexandre Oliva <aoliva@redhat.com> + + * solib-svr4.c (svr4_current_sos): Move up initialization of + l_addr, such that it clearly covers all cases. + 2006-03-08 Andreas Schwab <schwab@suse.de> * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 7d740a33b40..b0d12b369be 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -704,6 +704,7 @@ svr4_current_sos (void) new->lm_info = xmalloc (sizeof (struct lm_info)); make_cleanup (xfree, new->lm_info); + new->lm_info->l_addr = (CORE_ADDR)-1; new->lm_info->lm = xzalloc (lmo->link_map_size); make_cleanup (xfree, new->lm_info->lm); @@ -744,8 +745,6 @@ svr4_current_sos (void) free_so (new); else { - new->lm_info->l_addr = (CORE_ADDR)-1; - new->next = 0; *link_ptr = new; link_ptr = &new->next; diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ada3d4c2c6..68c9cb272da 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-03-08 Alexandre Oliva <aoliva@redhat.com> + + * gdb.base/prelink.exp: Anchor tested-for regular expression + on gdb prompt. + 2006-03-07 Paul Brook <paul@codesourcery.com> * gdb.base/assign.exp: Correct fail message. diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp index 57e471d81e5..7dbf77e0016 100644 --- a/gdb/testsuite/gdb.base/prelink.exp +++ b/gdb/testsuite/gdb.base/prelink.exp @@ -103,8 +103,9 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} set test "prelink" +global gdb_prompt gdb_test_multiple "core-file $objdir/$subdir/prelink.core" "$test" { - -re "warning: \.dynamic section.*not at the expected address.*warning: difference.*caused by prelink, adjusting expectations." { + -re "warning: \.dynamic section.*not at the expected address.*warning: difference.*caused by prelink, adjusting expectations.*$gdb_prompt $" { pass "$test" } } |