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: Broken cast in linux-thread-db


Daniel Jacobowitz <drow@false.org> writes:

> I think the current behavior is actually more correct despite any
> warning.

GCC _always_ sign extends, which is definitely wrong here.

>  Were you fixing an observed problem?

If notify.u.bptaddr has the high bit set it will be sign extended, but the
breakpoint address when the thread event breakpoint is hit will be zero
extended, so they don't match and the breakpoint is not recognized.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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