gdb/ChangeLog:
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 9 Mar 2006 00:22:09 +0000 (00:22 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 9 Mar 2006 00:22:09 +0000 (00:22 +0000)
* 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.

gdb/ChangeLog
gdb/solib-svr4.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/prelink.exp

index 55bbc17263452303deb8a9477aabfbc6aa179b5a..bb8d2825d1d825a3ffebb3dca208253589a5726f 100644 (file)
@@ -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
index 7d740a33b404b8b0aa5b12a99fee3fc66a740470..b0d12b369be72371de30ec3f865e125cf21df838 100644 (file)
@@ -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;
index 8ada3d4c2c60b27a7f1073a14bdb1f6affbc7d00..68c9cb272da0971f3afbdc0253c572953dffebbf 100644 (file)
@@ -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.
index 57e471d81e51468339ea5ca7edc710ce30c88823..7dbf77e0016c7850858c4247d6c41b06a27c61ca 100644 (file)
@@ -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"
     }
 }
This page took 0.037574 seconds and 4 git commands to generate.