Index: linux-low.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v retrieving revision 1.53 diff -u -r1.53 linux-low.c --- linux-low.c 26 Feb 2007 20:10:18 -0000 1.53 +++ linux-low.c 7 Mar 2007 04:14:22 -0000 @@ -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 @@ 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 @@ 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 @@ 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, Index: server.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/server.c,v retrieving revision 1.48 diff -u -r1.48 server.c --- server.c 26 Feb 2007 20:10:18 -0000 1.48 +++ server.c 7 Mar 2007 04:14:23 -0000 @@ -255,7 +255,7 @@ { static struct inferior_list_entry *thread_ptr; - if (strcmp ("qSymbol::", own_buf) == 0) + if (strcmp ("qSymbol:", own_buf) == 0) { if (the_target->look_up_symbols != NULL) (*the_target->look_up_symbols) ();