mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
2001-03-17 Michael Chastain <chastain@redhat.com>
* win32-nat.c (child_attach): check args for NULL before passing to strtoul. This fixes PR gdb/43.
This commit is contained in:
parent
64cbbfaefe
commit
559e75c07a
@ -1,3 +1,8 @@
|
||||
2001-03-17 Michael Chastain <chastain@redhat.com>
|
||||
|
||||
* win32-nat.c (child_attach): check args for NULL before passing
|
||||
to strtoul. This fixes PR gdb/43.
|
||||
|
||||
2001-03-17 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i387-nat.h: Doc Fix.
|
||||
|
@ -1015,11 +1015,12 @@ static void
|
||||
child_attach (char *args, int from_tty)
|
||||
{
|
||||
BOOL ok;
|
||||
DWORD pid = strtoul (args, 0, 0);
|
||||
DWORD pid;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
|
||||
pid = strtoul (args, 0, 0);
|
||||
ok = DebugActiveProcess (pid);
|
||||
|
||||
if (!ok)
|
||||
|
@ -1015,11 +1015,12 @@ static void
|
||||
child_attach (char *args, int from_tty)
|
||||
{
|
||||
BOOL ok;
|
||||
DWORD pid = strtoul (args, 0, 0);
|
||||
DWORD pid;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
|
||||
pid = strtoul (args, 0, 0);
|
||||
ok = DebugActiveProcess (pid);
|
||||
|
||||
if (!ok)
|
||||
|
Loading…
Reference in New Issue
Block a user