From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18573 invoked by alias); 10 May 2006 18:46:25 -0000 Received: (qmail 18551 invoked by uid 22791); 10 May 2006 18:46:23 -0000 X-Spam-Check-By: sourceware.org Received: from palrel12.hp.com (HELO palrel12.hp.com) (156.153.255.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 May 2006 18:46:14 +0000 Received: from smtp2.ptp.hp.com (hpda.cup.hp.com [15.1.28.240]) by palrel12.hp.com (Postfix) with ESMTP id 57AD436AB2 for ; Wed, 10 May 2006 11:46:13 -0700 (PDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [16.89.92.85]) by smtp2.ptp.hp.com (Postfix) with ESMTP id 34632251B22 for ; Wed, 10 May 2006 18:46:13 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3 (PHNE_24419+JAGae58098)/8.7.3 TIS Messaging 5.0) id LAA20443 for gdb-patches@sourceware.org; Wed, 10 May 2006 11:46:12 -0700 (PDT) Date: Wed, 10 May 2006 18:46:00 -0000 From: Steve Ellcey Message-Id: <200605101846.LAA20443@hpsje.cup.hp.com> To: gdb-patches@sourceware.org Subject: Patch for HPPA HP-UX build failure Reply-To: sje@cup.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-05/txt/msg00199.txt.bz2 I noticed that gdb on HPPA HP-UX was not building unless I use --disable-nls, this is because of a problem with using the _() macro in an intialization. GCC 4.0.2 would error on the initiazation of message. I noticed that there were no other initializations like this so I removed it and used the macro/string directly in the call to catch_error. This patch allowed me to build gdb on hppa1.1.-hp-hpux11.11. OK to checkin? 2006-05-10 Steve Ellcey * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove message. *** hppa-hpux-tdep.c.orig Wed May 10 10:22:09 2006 --- hppa-hpux-tdep.c Wed May 10 11:33:08 2006 *************** GDB will be unable to intercept exceptio *** 865,878 **** does the equivalent of shl_findsym()) to find the plabel. */ args_for_find_stub args; - static char message[] = _("Error while finding exception callback hook:\n"); args.solib_handle = gdbarch_tdep (current_gdbarch)->solib_get_solib_by_pc (eh_notify_callback_addr); args.msym = msym; args.return_val = 0; recurse++; ! catch_errors (cover_find_stub_with_shl_get, &args, message, RETURN_MASK_ALL); eh_notify_callback_addr = args.return_val; recurse--; --- 865,878 ---- does the equivalent of shl_findsym()) to find the plabel. */ args_for_find_stub args; args.solib_handle = gdbarch_tdep (current_gdbarch)->solib_get_solib_by_pc (eh_notify_callback_addr); args.msym = msym; args.return_val = 0; recurse++; ! catch_errors (cover_find_stub_with_shl_get, &args, ! _("Error while finding exception callback hook:\n"), RETURN_MASK_ALL); eh_notify_callback_addr = args.return_val; recurse--;