From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15783 invoked by alias); 5 Jan 2007 16:12:08 -0000 Received: (qmail 15772 invoked by uid 22791); 5 Jan 2007 16:12:07 -0000 X-Spam-Check-By: sourceware.org Received: from phoenix.bawue.net (HELO mail.bawue.net) (193.7.176.60) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 05 Jan 2007 16:12:01 +0000 Received: from lagash (intrt.mips-uk.com [194.74.144.130]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bawue.net (Postfix) with ESMTP id 9EF34B8EEC for ; Fri, 5 Jan 2007 17:11:57 +0100 (CET) Received: from ths by lagash with local (Exim 4.63) (envelope-from ) id 1H2rgb-0007Gn-D5 for gdb-patches@sources.redhat.com; Fri, 05 Jan 2007 16:12:53 +0000 Date: Fri, 05 Jan 2007 16:12:00 -0000 To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix gdb build failure for mips-linux Message-ID: <20070105161253.GA15486@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) From: Thiemo Seufer X-IsSubscribed: yes 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-01/txt/msg00195.txt.bz2 Hello All, the appended patch fixes the initialization of mips_linux_n64_rt_sigframe, the old version fails to build with gcc-4.1. Thiemo 2007-01-05 Thiemo Seufer * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct initialization. Index: gdb/mips-linux-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-linux-tdep.c,v retrieving revision 1.47 diff -u -p -r1.47 mips-linux-tdep.c --- gdb/mips-linux-tdep.c 28 Nov 2006 21:41:02 -0000 1.47 +++ gdb/mips-linux-tdep.c 5 Jan 2007 16:02:55 -0000 @@ -799,9 +799,11 @@ static const struct tramp_frame mips_lin static const struct tramp_frame mips_linux_n64_rt_sigframe = { SIGTRAMP_FRAME, 4, - { MIPS_INST_LI_V0_N64_RT_SIGRETURN, - MIPS_INST_SYSCALL, - TRAMP_SENTINEL_INSN }, + { + { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 }, + { MIPS_INST_SYSCALL, -1 }, + { TRAMP_SENTINEL_INSN, -1 } + }, mips_linux_n32n64_sigframe_init };