From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27579 invoked by alias); 22 Apr 2003 14:48:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27572 invoked from network); 22 Apr 2003 14:48:07 -0000 Received: from unknown (63.119.183.65) by sources.redhat.com with QMTP; 22 Apr 2003 14:48:07 -0000 Received: (qmail 31855 invoked from network); 22 Apr 2003 14:50:53 -0000 Received: from cpe-24-221-209-215.co.sprintbbd.net (HELO doc.com) (24.221.209.215) by external1 with SMTP; 22 Apr 2003 14:50:53 -0000 Message-ID: <3EA55625.4020107@doc.com> Date: Tue, 22 Apr 2003 14:48:00 -0000 From: Adam Fedor User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: GDB Patches Subject: [RFC] Trivialize objc-lang.c FETCH_ARGUMENT Content-Type: multipart/mixed; boundary="------------050208080504040006080109" X-SW-Source: 2003-04/txt/msg00395.txt.bz2 This is a multi-part message in MIME format. --------------050208080504040006080109 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 351 Well, I thought I'd at least try to see if this patch would be ok. Here I replace the arcitecture dependant FETCH_ARGUMENT with a trivial implementation that does nothing. This would allow objc-lang.o to be linked into gdb and I commit most or all of the remaining Objective-C patches. Then I could work on fixing FETCH_ARGUMENT at my leasure... --------------050208080504040006080109 Content-Type: text/plain; name="objc-fetch.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="objc-fetch.patch" Content-length: 1050 2003-04-21 Adam Fedor * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Redefine to return a trivial value and remove architecture dependant compilation. Temporary until they get put in the gdbarch vector. Index: objc-lang.c =================================================================== RCS file: /cvs/src/src/gdb/objc-lang.c,v retrieving revision 1.18 diff -u -p -r1.18 objc-lang.c --- objc-lang.c 21 Apr 2003 16:48:39 -0000 1.18 +++ objc-lang.c 22 Apr 2003 03:46:00 -0000 @@ -1752,6 +1752,17 @@ _initialize_objc_language (void) add_com_alias ("po", "print-object", class_vars, 1); } +#if 1 +/* Disable these functions until we put them in the gdbarch vector. */ +static unsigned long FETCH_ARGUMENT (int i) +{ + return 0; +} +static CORE_ADDR CONVERT_FUNCPTR (CORE_ADDR pc) +{ + return pc; +} +#else #if defined (__powerpc__) || defined (__ppc__) static unsigned long FETCH_ARGUMENT (int i) { @@ -1790,6 +1801,7 @@ static CORE_ADDR CONVERT_FUNCPTR (CORE_A { return pc; } +#endif #endif static void --------------050208080504040006080109--