This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfa] Use inferior_created observer to cleanup HPUXHPPA code
- From: Mark Kettenis <kettenis at chello dot nl>
- To: randolph at tausq dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 14 Jun 2004 22:25:10 +0200 (CEST)
- Subject: Re: [patch/rfa] Use inferior_created observer to cleanup HPUXHPPA code
- References: <20040610060227.GE561@tausq.org> <20040614184014.GP19250@tausq.org>
Date: Mon, 14 Jun 2004 11:40:14 -0700
From: Randolph Chung <randolph@tausq.org>
ping? -randolph
One minor nit (which is probably just an oversight) -- see below.
With that change this is OK. Please check it in.
Mark
> Index: hppa-hpux-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/hppa-hpux-tdep.c,v
> retrieving revision 1.20
> diff -u -p -r1.20 hppa-hpux-tdep.c
> --- hppa-hpux-tdep.c 7 Jun 2004 02:17:29 -0000 1.20
> +++ hppa-hpux-tdep.c 10 Jun 2004 05:30:40 -0000
> @@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suit
> #include "objfiles.h"
> #include "inferior.h"
> #include "infcall.h"
> +#include "observer.h"
> #include "hppa-tdep.h"
>
> #include <dl.h>
> @@ -533,7 +534,7 @@ __eh_notification;
> /* Is exception-handling support available with this executable? */
> static int hp_cxx_exception_support = 0;
> /* Has the initialize function been run? */
> -int hp_cxx_exception_support_initialized = 0;
> +static int hp_cxx_exception_support_initialized = 0;
> /* Address of __eh_notify_hook */
> static CORE_ADDR eh_notify_hook_addr = 0;
> /* Address of __d_eh_notify_callback */
> @@ -1203,6 +1204,15 @@ hppa_hpux_sigtramp_unwind_sniffer (struc
> return NULL;
> }
>
> +static void
> +hppa_hpux_inferior_created (struct target_ops *objfile, int from_tty)
> +{
> + /* Some HP-UX related globals to clear when a new "main"
> + symbol file is loaded. HP-specific. */
Please make sure every full stop is followed by two spaces.