From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26075 invoked by alias); 9 Jan 2002 13:34:13 -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 25998 invoked from network); 9 Jan 2002 13:34:09 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 9 Jan 2002 13:34:09 -0000 Received: by fw-cam.cambridge.arm.com; id NAA14892; Wed, 9 Jan 2002 13:34:07 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma014838; Wed, 9 Jan 02 13:34:05 GMT Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA19186 for ; Wed, 9 Jan 2002 13:34:04 GMT Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA22174; Wed, 9 Jan 2002 13:34:03 GMT Message-Id: <200201091334.NAA22174@cam-mail2.cambridge.arm.com> X-Mailer: exmh version 2.0.2 2/24/98 To: gdb-patches@sources.redhat.com cc: Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Patch for building gdb on arm-netbsd Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_3329642240" Date: Wed, 09 Jan 2002 05:34:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-01/txt/msg00167.txt.bz2 This is a multipart MIME message. --==_Exmh_3329642240 Content-Type: text/plain; charset=us-ascii Content-length: 557 Following the rules for converting to multi-arch, step one says we must get it all to compile... So: The following patch is needed to enable building of gdb on arm-netbsd. The definition of IN_SIGTRAMP tests NAME for being NULL and if not calls STREQ to compare the strings. However, STREQ dereferences the pointers directly and this causes a compile time error for the NULL pointer (since *(0) is not defined). Richard Earnshaw (rearnsha@arm.com) * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument of IN_SIGTRAMP to char *. --==_Exmh_3329642240 Content-Type: text/x-patch ; name="sigtramp.patch"; charset=us-ascii Content-Description: sigtramp.patch Content-Disposition: attachment; filename="sigtramp.patch" Content-length: 879 Index: arm-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/arm-tdep.c,v retrieving revision 1.25 diff -p -r1.25 arm-tdep.c *** arm-tdep.c 2002/01/05 04:30:15 1.25 --- arm-tdep.c 2002/01/09 13:24:50 *************** arm_init_extra_frame_info (int fromleaf, *** 1060,1066 **** to IN_SIGTRAMP. */ if (SIGCONTEXT_REGISTER_ADDRESS_P () ! && (fi->signal_handler_caller || IN_SIGTRAMP (fi->pc, 0))) { for (reg = 0; reg < NUM_REGS; reg++) fi->fsr.regs[reg] = SIGCONTEXT_REGISTER_ADDRESS (sp, fi->pc, reg); --- 1060,1066 ---- to IN_SIGTRAMP. */ if (SIGCONTEXT_REGISTER_ADDRESS_P () ! && (fi->signal_handler_caller || IN_SIGTRAMP (fi->pc, (char *)0))) { for (reg = 0; reg < NUM_REGS; reg++) fi->fsr.regs[reg] = SIGCONTEXT_REGISTER_ADDRESS (sp, fi->pc, reg); --==_Exmh_3329642240--