This is the mail archive of the gdb@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: gdb doesn't work well with DSO on Linux/mips


On Mon, Mar 25, 2002 at 09:05:49PM -0700, Kevin Buettner wrote:
> On Mar 23, 11:52am, Daniel Jacobowitz wrote:
> 
> > > 2002-03-22  H.J. Lu  (hjl@gnu.org)
> > > 
> > > 	* config/mips/tm-linux.h (SOLIB_BKPT_NAME): New.
> > 
> > Actually, I'd prefer the former (add __start to bkpt_names, after
> > _start).  One less thing to worry about when multi-arching.
> 
> Yes, I prefer this as well.
> 
> > Also, it may be that we should check for the dynamic linker breakpoint
> > symbols in the currently loaded BFD, if there is no .interp section. 
> > That would explicitly improve debugging of the dynamic linker.  Kevin,
> > does that sound reasonable?
> 
> Wouldn't this cause problems when debugging ordinary statically linked
> programs?  After all, we'd be putting solib event creation breakpoints
> on symbols like main and _start.

We'll already do this, I think.

> Or were you referring to symbols like r_debug_state, etc?  If that's
> the case, I think it'd be okay.

Yes, that's what I meant.  I was thinking of _dl_debug_state, which I
believe is the glibc equivalent of r_debug_state.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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