This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: go32-nat.c compilation problem
- To: Eli Zaretskii <eliz at gnu dot org>
- Subject: Re: go32-nat.c compilation problem
- From: Jim Blandy <jimb at cygnus dot com>
- Date: 15 Nov 1999 19:06:23 -0500
- Cc: ezannoni at cygnus dot com, dj at delorie dot com, muller at cerbere dot u-strasbg dot fr, shebs at cygnus dot com, gdb-patches at sourceware dot cygnus dot com
- References: <199911081709.SAA23904@cerbere.u-strasbg.fr><14375.536.118347.328812@kwikemart.cygnus.com><199911081742.MAA20623@mescaline.gnu.org><14375.5038.377535.816858@kwikemart.cygnus.com><199911102250.RAA01938@mescaline.gnu.org>
I've applied this patch. Since it only affects DJGPP files, I didn't
test them. Thanks again!
> > Fatal() was deleted, and then changes to go32-nat.c were made that
> > reintroduced calls to fatal(). I believe the changes were part of a patch
> > you submitted, *before* the function fatal was replaced by internal_error().
>
> Here are the diffs for go32-nat.c that should fix this.
>
> 1999-11-10 Eli Zaretskii <eliz@is.elta.co.il>
>
> * go32-nat.c (go32_fetch_registers, store_register)
> (go32_create_inferior, init_go32_ops): Replace fatal with
> internal_error.
> (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
>
>
> --- gdb/go32-nat.c~1 Wed Oct 13 13:39:00 1999
> +++ gdb/go32-nat.c Wed Nov 10 16:49:06 1999
> @@ -345,7 +345,7 @@ sig_map[] =
> 4, TARGET_SIGNAL_FPE,
> 5, TARGET_SIGNAL_SEGV,
> 6, TARGET_SIGNAL_ILL,
> - 7, TARGET_SIGNAL_FPE,
> + 7, TARGET_SIGNAL_EMT, /* no-coprocessor exception */
> 8, TARGET_SIGNAL_SEGV,
> 9, TARGET_SIGNAL_SEGV,
> 10, TARGET_SIGNAL_BUS,
> @@ -570,7 +570,8 @@ go32_fetch_registers (int regno)
> supply_register (regno,
> (char *) &npx + regno_mapping[regno].tss_ofs);
> else
> - fatal ("Invalid register no. %d in go32_fetch_register.", regno);
> + internal_error ("Invalid register no. %d in go32_fetch_register.",
> + regno);
> }
> }
>
> @@ -587,7 +588,7 @@ store_register (int regno)
> else if (regno < 31)
> rp = (char *) &npx + regno_mapping[regno].tss_ofs;
> else
> - fatal ("Invalid register no. %d in store_register.", regno);
> + internal_error ("Invalid register no. %d in store_register.", regno);
> memcpy (rp, v, regno_mapping[regno].size);
> }
>
> @@ -680,7 +681,7 @@ go32_create_inferior (char *exec_file, c
> resume_is_step = 0;
> /* Init command line storage. */
> if (redir_debug_init (&child_cmd) == -1)
> - fatal ("Cannot allocate redirection storage: not enough memory.\n");
> + internal_error ("Cannot allocate redirection storage: not enough memory.\n");
>
> /* Parse the command line and create redirections. */
> if (strpbrk (args, "<>"))
> @@ -1311,7 +1312,7 @@ init_go32_ops (void)
>
> /* Initialize child's command line storage. */
> if (redir_debug_init (&child_cmd) == -1)
> - fatal ("Cannot allocate redirection storage: not enough memory.\n");
> + internal_error ("Cannot allocate redirection storage: not enough memory.\n");
> }
>
> void
> --- gdb/utils.c~1 Wed Nov 10 12:58:14 1999
> +++ gdb/utils.c Wed Nov 10 16:51:24 1999
> @@ -787,7 +787,7 @@ notice_quit ()
> immediate_quit = 1;
> }
>
> -#else /* !defined(__GO32__) && !defined(_MSC_VER) */
> +#else /* !defined(_MSC_VER) */
>
> void
> notice_quit ()
> @@ -795,7 +795,7 @@ notice_quit ()
> /* Done by signals */
> }
>
> -#endif /* !defined(__GO32__) && !defined(_MSC_VER) */
> +#endif /* !defined(_MSC_VER) */
>
> /* Control C comes here */
> void
>