[PATCH] gdb: objc-lang: check symbol name before accessing memory
Mike Frysinger
vapier@gentoo.org
Mon Apr 19 18:39:00 GMT 2010
On Monday 19 April 2010 10:55:03 Joel Brobecker wrote:
> > 2010-04-13 Mike Frysinger <vapier@gentoo.org>
> >
> > * objc-lang.c (find_methods): Move symname check up.
>
> This is OK, but I would like you to add a comment before the symbol name
> check explaining that this check is performed first because it can be
> performed entirely without sending any query to the target.
OK
> Can you also confirm how you tested this patch, please?
i'm testing a Blackfin target via gdbserver. trying to set a breakpoint with
FDPIC always hit memory_error() before the change while it worked correctly
after the change. wrt ObjC, i dont really know anything about the language,
so i cant really explicitly test that ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100419/ad2608f4/attachment.sig>
More information about the Gdb-patches
mailing list