This is the mail archive of the gdb@sourceware.org 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: Organization of breakpoint locations


On Mon, Feb 19, 2007 at 04:40:42PM +0200, Michael Veksler wrote:
> I always thought (speculated) that breakpoint removal was to simplify 
> things like
> 
>    (gdb) x /i $pc
> 
> Where you don't want to see the INT instruction, but the original value.

Some parts of GDB won't work if we leave breakpoints in.  But, it's
not hard to fix - we have the right helper routines for it nowadays.
Joel made some changes like this in the last year.

> GDB crash does sound like another reason.
> Being curios, I'd like to ask what was the original reason for
> this behavior? Does anyone know? I never saw it documented anywhere.

I don't know either; I'm just guessing.  It may have just been easiest
at the time and no one came back to think about it later.

-- 
Daniel Jacobowitz
CodeSourcery


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