This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC, v2] Fix PR symtab/15391
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 May 2013 15:48:45 +0100
- Subject: Re: [RFC, v2] Fix PR symtab/15391
- References: <87hai57jsc dot fsf at fleche dot redhat dot com> <51924AB0 dot 7070402 at redhat dot com> <874ne57hl0 dot fsf at fleche dot redhat dot com>
On 05/14/2013 03:37 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> I believe left-shifting a negative number is actually undefined
> Pedro> behavior.
>
> Whoops. Thanks for noticing.
> I will fix that.
>
> Maybe we need a generic sign-extension function.
> I see a lot of code around to do this various ways.
That'd be fine with me. I'm suprised bfd doesn't have it. It
uses that idiom in several places.
--
Pedro Alves