This is the mail archive of the 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: "xbreak" command in GDB ?

Eli Zaretskii wrote:
> > From: "Sarnath K - CTD, Chennai." <>
> > Date: Thu, 24 Jan 2002 14:59:18 +0530
> >
> >  The "xbreak" command (and hence "txbreak" )
> > in GDB Version 5.1 doesnt seem to work
> > properly.
> What OS?  What compiler?

XBREAK was added by HP, in a completely non-portable way, 
and the maintainers did not catch it.  When I can find a
spare moment, I am going to post a patch recommending 
its removal.
> On my system (DJGPP, GCC 3.0.2), xbreak does seem to work.

If you look at how XBREAK is implemented, you will see
that if it works at all it is sheer coincidence, and it
doesn't really do anything useful even then.  The best it
may do is stop you at the return instruction, and by then
your stack frame will have been destroyed.

> >  A minute investigation showed that it is
> > setting a break-point at a posn
> > 1 past the last instrn of the "function".
> Could you send a complete short test program and a sequence of
> commands, including the compilation command line, to reproduce that?

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