From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12423 invoked by alias); 31 Jul 2006 16:42:53 -0000 Received: (qmail 12414 invoked by uid 22791); 31 Jul 2006 16:42:53 -0000 X-Spam-Check-By: sourceware.org Received: from bender.bawue.de (HELO bender.bawue.de) (193.7.176.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 31 Jul 2006 16:42:50 +0000 Received: from lagash (mipsfw.mips-uk.com [194.74.144.146]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bender.bawue.de (Postfix) with ESMTP id 4586D4645A for ; Mon, 31 Jul 2006 18:42:46 +0200 (MEST) Received: from ths by lagash with local (Exim 4.62) (envelope-from ) id 1G7aqM-0006F5-9y for gdb-patches@sources.redhat.com; Mon, 31 Jul 2006 17:42:14 +0100 Date: Mon, 31 Jul 2006 16:42:00 -0000 To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix build failures for MIPS gdb Message-ID: <20060731164214.GK15011@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 From: Thiemo Seufer Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00430.txt.bz2 Hello All, the appended patch fixes two minor type mismatches which are handled as -Werror. Thiemo 2006-07-31 Thiemo Seufer * linux-thread-db.c (thread_db_get_thread_local_address): Fix type mismatch. * tui/tui-stack.c (tui_show_frame_info): Likewise. Index: gdb/linux-thread-db.c =================================================================== RCS file: /cvs/src/src/gdb/linux-thread-db.c,v retrieving revision 1.18 diff -u -p -r1.18 linux-thread-db.c --- gdb/linux-thread-db.c 24 Jul 2006 18:57:32 -0000 1.18 +++ gdb/linux-thread-db.c 31 Jul 2006 16:33:37 -0000 @@ -1080,7 +1080,8 @@ thread_db_get_thread_local_address (ptid thread_db_map_id2thr (thread_info, 1); /* Finally, get the address of the variable. */ - err = td_thr_tls_get_addr_p (&thread_info->private->th, (void *) lm, + err = td_thr_tls_get_addr_p (&thread_info->private->th, + (void *)(size_t) lm, offset, &address); #ifdef THREAD_DB_HAS_TD_NOTALLOC Index: gdb/tui/tui-stack.c =================================================================== RCS file: /cvs/src/src/gdb/tui/tui-stack.c,v retrieving revision 1.19 diff -u -p -r1.19 tui-stack.c --- gdb/tui/tui-stack.c 14 Feb 2006 19:05:40 -0000 1.19 +++ gdb/tui/tui-stack.c 31 Jul 2006 16:33:37 -0000 @@ -356,7 +356,7 @@ tui_show_frame_info (struct frame_info * else { if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL, - &low, (CORE_ADDR) NULL) == 0) + &low, (CORE_ADDR) 0) == 0) error (_("No function contains program counter for selected frame.")); else low = tui_get_low_disassembly_address (low, get_frame_pc (fi));