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: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 May 2013 08:37:47 -0600
- 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>
>>>>> "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.
Tom