This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Patches to gdb/go32-nat.c
- To: eliz@is.elta.co.il
- Subject: Re: Patches to gdb/go32-nat.c
- From: DJ Delorie <dj@delorie.com>
- Date: Mon, 16 Aug 1999 11:33:03 -0400
- CC: gdb-patches@sourceware.cygnus.com
- References: <Pine.SUN.3.91.990627184356.5761S-100000@is>
Applied, sorry for the delay.
> The following patches to go32-nat.c correct quite a few problems in
> the DJGPP version.
>
> 1999-06-26 Eli Zaretskii <eliz@is.elta.co.il>
>
> * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
> redir_to_child, redir_to_debugger, redir_debug_init)
> [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
> standard handles.
> (print_387_status): Print "last FP instruction", not "last
> exception". Restore the upper 5 bits of the opcode that aren't
> stored in the FPU state. Print the FPU stack in its physical
> order, not relative to ST(0). Print "special", not "trap" for
> unnormals and infinities. Print all 10 bytes of each FP register,
> and print them with 19 significant digits.
> (regno_mapping): Make the mapping consistent with tm-go32.h.
> (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
> SIGBUS.
> (excep_map): New variable, maps GDB signals to DJGPP exceptions.
> (go32_attach): Signal an error: we cannot attach to other
> processes.
> (go32_resume): Record the signal with which the inferior should be
> resumed, mapped to the DJGPP exception number.
> (go32_wait): Pass the signal recorded in go32_resume to the
> debuggee. Save and restore debugger's and debuggee's current
> working directory.
> [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
> (store_register): FPU regsiters have numbers less than 31.
> (go32_kill_inferior): Delete the parsed command-line storage.
> (go32_create_inferior): Initialize the parsed command-line
> storage. Parse the command line and create the redirections for
> inferior's standard handles.
> [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
> (ignore2): Function deleted.
> (device_mode): New function, switches a character device between
> raw and cooked mode.
> (go32_terminal_init): Invalidate the raw/cooked mode information.
> (go32_terminal_info): Print whether the inferior's terminal is in
> raw or cooked mode.
> [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
> closed by the inferior.
> (go32_terminal_inferior): Switch standard handles to the
> inferior's files/devices. Put the inferior's input device to
> raw/cooked mode, exactly like we found it last time.
> (go32_terminal_ours): Restore debugger's standard handles and put
> the terminal into cooked mode. Save the mode of inferior's input
> device.
> (init_go32_ops): Assign go32_ops.to_attach,
> go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
> Initialize inferior's cwd and the command-line storage.