diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-03-27 18:32:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-03-27 18:32:01 +0000 |
commit | 42c81e2acb86316457e92c13fb87793d387bd618 (patch) | |
tree | 5df0ff4c561753d83c0d7f8376a489b166e4e828 /gdb | |
parent | 9453113a8dafd58cd1b8a4719bdb7ccc5c8915e0 (diff) | |
download | gdb-42c81e2acb86316457e92c13fb87793d387bd618.zip gdb-42c81e2acb86316457e92c13fb87793d387bd618.tar.gz gdb-42c81e2acb86316457e92c13fb87793d387bd618.tar.bz2 |
2007-03-27 Jon Ringle <jon@ringle.org>
* linux-low.c: Check __ARCH_HAS_MMU__ also.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index eb59680..126dd31 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2007-03-27 Jon Ringle <jon@ringle.org> + + * linux-low.c: Check __ARCH_HAS_MMU__ also. + 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> * Makefile.in: Add dummy "pdf" and "install-pdf" targets. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 790749b..ff4f81e 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -42,6 +42,12 @@ # define PTRACE_SETSIGINFO 0x4203 #endif +#ifdef __UCLIBC__ +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__)) +#define HAS_NOMMU +#endif +#endif + /* ``all_threads'' is keyed by the LWP ID - it should be the thread ID instead, however. This requires changing the ID in place when we go from !using_threads to using_threads, immediately. @@ -143,7 +149,7 @@ linux_create_inferior (char *program, char **allargs) void *new_process; int pid; -#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) +#if defined(__UCLIBC__) && defined(HAS_NOMMU) pid = vfork (); #else pid = fork (); @@ -1594,7 +1600,7 @@ linux_stopped_data_address (void) return 0; } -#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) +#if defined(__UCLIBC__) && defined(HAS_NOMMU) #if defined(__mcoldfire__) /* These should really be defined in the kernel's ptrace.h header. */ #define PT_TEXT_ADDR 49*4 @@ -1664,7 +1670,7 @@ static struct target_ops linux_target_ops = { linux_remove_watchpoint, linux_stopped_by_watchpoint, linux_stopped_data_address, -#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) +#if defined(__UCLIBC__) && defined(HAS_NOMMU) linux_read_offsets, #else NULL, |