This is the mail archive of the gdb-patches@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: [PATCH, gdb6.8] -break-list doesn't list multiple breakpoints


Nick Roberts wrote:

> Bogdan Slusarczyk writes:
>  > Hi everyone, I wrote my own patch for -break-list. I'm not sure that it
>  > meets all requirements mentioned in
>  > http://sourceware.org/ml/gdb-patches/2008-01/msg00251.html and previous
>  > discussions, but combination -break-list + multiple breakpoints is now
>  > usable for me. I'm not familiar with gdb test suit, so it's NOT tested
>  > at all (except few my own cases).
>  > 
>  > What does it do? Until now -break-list returned:
>  > ...
>  > 
>  > After my changes it returns additional list named 'locations' instead of
>  > second 'addr' field:
> 
> I don't think the second 'addr' field should be there, but I'm not sure that I
> really like this 'locations' field.  4.1, 4.2 etc are breakpoints and so I
> think they should be identified as such (using the bkptno field).

They are not really independent breakpoints. For example, condition is part of
the main breakpoint, and removing main breakpoint removes all locations, so
it's better to represent things this way.

- Volodya


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