This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: remote/1741: GDB sets breakpoint at random address
- From: Paul Koning <pkoning at equallogic dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 5 Jul 2005 21:28:01 -0000
- Subject: Re: remote/1741: GDB sets breakpoint at random address
- Reply-to: Paul Koning <pkoning at equallogic dot com>
The following reply was made to PR remote/1741; it has been noted by GNATS.
From: Paul Koning <pkoning@equallogic.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: remote/1741: GDB sets breakpoint at random address
Date: Tue, 5 Jul 2005 17:20:23 -0400
I've run into this when I hadn't set solib-absolute-prefix. The
default, when that hasn't been set, is the empty string, which means
gdb will look for shared libs and for the dynamic loader in the system
library. For native debugging that makes sense; for cross-debugging
(as in this report) that is a useless default.
Typically, setting the correct solib-absolute-prefix for the target
being debugged cures this problem, because gdb then finds the right
addresses for its breakpoints.
It would be useful to refuse to accept an unset solib-absolute-prefix
in cross-gdb....
paul