mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user