This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for HPPA HP-UX build failure


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  <sje@cup.hp.com>

	* 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--;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]