/* Native support for Sun 386i's for GDB, the GNU debugger.
- Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1995, 1999, 2000, 2001
+ Free Software Foundation, Inc.
Changes for sun386i by Jean Daniel Fekete (jdf@litp.univ-p6-7.fr),
C2V Paris, April 89.
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/param.h>
#include <sys/dir.h>
\f
void
-core_file_command (filename, from_tty)
- char *filename;
- int from_tty;
+core_file_command (char *filename, int from_tty)
{
int val;
and mark data and stack spaces as empty. */
if (corefile)
- free (corefile);
+ xfree (corefile);
corefile = 0;
if (corechan >= 0)
if (filename)
{
filename = tilde_expand (filename);
- make_cleanup (free, filename);
+ make_cleanup (xfree, filename);
if (have_inferior_p ())
error ("To look at a core file, you must kill the program with \"kill\".");
printf_unfiltered ("No core file now.\n");
}
-i387_to_double (from, to)
- char *from;
- char *to;
+i387_to_double (char *from, char *to)
{
long *lp;
/* push extended mode on 387 stack, then pop in double mode
asm ("popl %eax"); /* flush saved copy */
}
-double_to_i387 (from, to)
- char *from;
- char *to;
+double_to_i387 (char *from, char *to)
{
/* push double mode on 387 stack, then pop in extended mode
* no errors are possible because every 64-bit pattern
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_state inferior_fp_registers;
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_state inferior_fp_registers;