This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
char buf[] -> gdb_byte[] (was: Re: [RFC/TileGX] fix longjmp bug)
- From: Pedro Alves <palves at redhat dot com>
- Cc: Jiong Wang <jiwang at tilera dot com>, gdb-patches at sourceware dot org
- Date: Fri, 01 Mar 2013 13:13:18 +0000
- Subject: char buf[] -> gdb_byte[] (was: Re: [RFC/TileGX] fix longjmp bug)
- References: <51307BBA.3090202@tilera.com> <5130836B.7090505@redhat.com>
On 03/01/2013 10:31 AM, Pedro Alves wrote:
>> > +/* This is the implementation of gdbarch method get_longjmp_target. */
>> > +
>> > +static int
>> > +tilegx_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
>> > +{
>> > + struct gdbarch *gdbarch = get_frame_arch (frame);
>> > + enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
>> > + CORE_ADDR jb_addr;
>> > + char buf[8];
> s/char/gdb_byte/.
>
BTW, clearly this was a copy paste from some other port.
I'm going through the tree grepping for "char buf[" and
fixing all I find.
--
Pedro Alves