remote/1741: GDB sets breakpoint at random address

Paul Koning
Tue Jul 5 21:28:00 GMT 2005

The following reply was made to PR remote/1741; it has been noted by GNATS.

From: Paul Koning <>
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....

More information about the Gdb-prs mailing list