From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19016 invoked by alias); 7 Mar 2007 04:21:50 -0000 Received: (qmail 19002 invoked by uid 22791); 7 Mar 2007 04:21:48 -0000 X-Spam-Check-By: sourceware.org Received: from sccrmhc15.comcast.net (HELO sccrmhc15.comcast.net) (204.127.200.85) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Mar 2007 04:21:46 +0000 Received: from [172.22.0.103] (c-71-63-50-10.hsd1.va.comcast.net[71.63.50.10]) by comcast.net (sccrmhc15) with ESMTP id <20070307042143015006hcmje>; Wed, 7 Mar 2007 04:21:44 +0000 Message-ID: <45EE3DD7.80302@ringle.org> Date: Wed, 07 Mar 2007 04:21:00 -0000 From: Jon Ringle User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: gdbserver: should use __ARCH_HAS_MMU__ rather than __UCLIBC_HAS_MMU__ Content-Type: multipart/mixed; boundary="------------070607040603040709020408" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00067.txt.bz2 This is a multi-part message in MIME format. --------------070607040603040709020408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 69 Please see: http://sourceware.org/ml/gdb/2007-03/msg00099.html Jon --------------070607040603040709020408 Content-Type: text/plain; name="gdbserver-ARCH_HAS_MMU.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdbserver-ARCH_HAS_MMU.patch" Content-length: 1915 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) (); --------------070607040603040709020408--