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 | 831004b79b321ba269145f7e32539e33ac8dbc1b (patch) | |
tree | 11ea0894029a309cf9ea192e81aba759de984b0f /gdb/solib-svr4.c | |
parent | d61ed39eac9e502c86853a5c82d0fb1b2bfeda78 (diff) | |
download | gdb-831004b79b321ba269145f7e32539e33ac8dbc1b.zip gdb-831004b79b321ba269145f7e32539e33ac8dbc1b.tar.gz gdb-831004b79b321ba269145f7e32539e33ac8dbc1b.tar.bz2 |
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/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 7d740a3..b0d12b3 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; |