This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remote/1741: GDB sets breakpoint at random address


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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]