[RFA] gdb/win32-nat.c: check for NULL before calling strtoul
Sun Mar 18 12:46:00 GMT 2001
On Sat, Mar 17, 2001 at 11:52:23PM -0800, Michael Elizabeth Chastain wrote:
>This patch fixes PR gdb/43, a coding error in child_attach. Cygwin's
>implementation of strtoul dumps core if the input pointer is NULL.
>This means gdb dumps core on a plain "attach" command with no arguments.
>This fix enables the test script gdb.base/default.exp to run to
>I tested this on Windows 2000 Professional + cygwin 1.1.8. I gave a
>plain "attach" command by hand and also ran gdb.base/default.exp.
>OK to apply?
>2001-03-17 Michael Chastain <firstname.lastname@example.org>
> * win32-nat.c (child_attach): check args for NULL before passing
> to strtoul. This fixes PR gdb/43.
More information about the Gdb-patches