lynx-low.c: PTRACE_GETTHREADLIST may not be defined.

LynxOS 178 does not define this macro.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (ptrace_request_to_str): Do not handle
        PTRACE_GETTHREADLIST if this macro does not exist.
This commit is contained in:
Joel Brobecker 2012-12-17 10:51:29 +00:00
parent 4194268f43
commit 78cbc0240c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-17 Joel Brobecker <brobecker@adacore.com>
* lynx-low.c (ptrace_request_to_str): Do not handle
PTRACE_GETTHREADLIST if this macro does not exist.
2012-12-15 Yao Qi <yao@codesourcery.com>
* Makefile.in (OBS): Add notif.o.

View File

@ -255,9 +255,11 @@ ptrace_request_to_str (int request)
case PTRACE_GETLOADINFO:
return "PTRACE_GETLOADINFO";
break;
#ifdef PTRACE_GETTHREADLIST
case PTRACE_GETTHREADLIST:
return "PTRACE_GETTHREADLIST";
break;
#endif
}
return "<unknown-request>";
}