aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/lynx-low.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-01run copyright.sh for 2011.Joel Brobecker1-1/+1
2010-09-13[LynxOS] Remove handling of PTRACE_* values removed in Lynx5.Joel Brobecker1-40/+0
Some of the PTRACE_ macros/values were removed in LynxOS 5.x. Since we have not use them so far, the chances that we will use them one day are very small. So I decided to delete them. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Remove handling for request values that have been removed in LynxOS 5.x.
2010-09-13[LynxOS] Include sys/ptrace.h instead of ptrace.h.Joel Brobecker1-1/+1
This is one of the changes needed in order to build gdbserver on LynxOS 5.x. Really interesting: On LynxOS 4.x, there is a #warning when sys/ptrace.h is used (explaining that ptrace.h will be used instead), whereas this file was removed from LynxOS 5.x. The contents of sys/ptrace.h on 4.x (or at least the meat of it): #if defined(__GNUC__) || defined(__GNUG__) #if !defined(__NO_INCLUDE_WARN__) #warning Using <ptrace.h> instead of <sys/ptrace.h> #endif /* defined(__NO_INCLUDE_WARN__) */ #endif /* defined(__GNUC__) || defined(__GNUG__) */ #include <ptrace.h> The fix I went for, for now, is to just include <sys/ptrace.h> unconditionally. I could have done some configury, but we already have to build with -D__NO_INCLUDE_WARN__ to avoid the warnings anyway, and that's unvoidable, due to system includes themselves including the "wrong" header file. Since <sys/ptrace.h> seems to be the choice that was made for LynxOS, and since it works to include it on LynxOS 4.x, I think that's the simplest solution. gdb/gdbserver/ChangeLog: * lynx-low.c, lynx-ppc-low.c: Include <sys/ptrace.h> instead of <ptrace.h>
2010-09-01gdbserver support for powerpc-lynxos (4.x)Joel Brobecker1-0/+810
This patch adds support for powerpc-lynxos. gdbserver/ChangeLog: * gdbserver/lynx-low.c, gdbserver/lynx-low.h, gdbserver/lynx-ppc-low.c: New files. * Makefile.in (lynx_low_h): New variable. (lynx-low.o, lynx-ppc-low.o): New rules. * configure.ac: On LynxOS, link with -lnetinet. * configure.srv: Add handling of powerpc-*-lynxos* targets. * configure: regenerate.