projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* coffcode.h: Recognize I386PTXMAGIC.
[deliverable/binutils-gdb.git]
/
gdb
/
symm-xdep.c
diff --git
a/gdb/symm-xdep.c
b/gdb/symm-xdep.c
index a0508a9f3d16a3bc1581ed0764eabe325af2b490..bb19a1a37defb7c7b1a5bdb4611ad8b780fefc2f 100644
(file)
--- a/
gdb/symm-xdep.c
+++ b/
gdb/symm-xdep.c
@@
-1,5
+1,5
@@
/* Sequent Symmetry host interface, for GDB when running under Unix.
/* Sequent Symmetry host interface, for GDB when running under Unix.
- Copyright
(C) 1986, 1987, 1989, 1991
Free Software Foundation, Inc.
+ Copyright
1986, 1987, 1989, 1991, 1992
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-20,7
+20,6
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* FIXME, some 387-specific items of use taken from i387-tdep.c -- ought to be
merged back in. */
/* FIXME, some 387-specific items of use taken from i387-tdep.c -- ought to be
merged back in. */
-#include <stdio.h>
#include "defs.h"
#include "frame.h"
#include "inferior.h"
#include "defs.h"
#include "frame.h"
#include "inferior.h"
@@
-37,10
+36,9
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sgtty.h>
#define TERMINAL struct sgttyb
#include <sgtty.h>
#define TERMINAL struct sgttyb
-extern void print_387_control_word ();
-extern void print_387_status_word ();
-extern void i387_to_double (from, to);
+#include "gdbcore.h"
+void
store_inferior_registers(regno)
int regno;
{
store_inferior_registers(regno)
int regno;
{
@@
-72,7
+70,7
@@
int regno;
else
{
reg_tmp = *(int *)®isters[REGISTER_BYTE(regno)];
else
{
reg_tmp = *(int *)®isters[REGISTER_BYTE(regno)];
- ptrace(XPT_RREGS, inferior_pid, ®s, 0);
+ ptrace(XPT_RREGS, inferior_pid,
(PTRACE_ARG3_TYPE)
®s, 0);
switch (regno)
{
case 0:
switch (regno)
{
case 0:
@@
-108,11
+106,12
@@
int regno;
}
}
#endif /* 0 */
}
}
#endif /* 0 */
- ptrace(XPT_WREGS, inferior_pid, ®s, 0);
+ ptrace(XPT_WREGS, inferior_pid,
(PTRACE_ARG3_TYPE)
®s, 0);
}
void
}
void
-fetch_inferior_registers()
+fetch_inferior_registers (regno)
+ int regno;
{
int i;
struct pt_regset regs;
{
int i;
struct pt_regset regs;
@@
-120,7
+119,7
@@
fetch_inferior_registers()
registers_fetched ();
registers_fetched ();
- ptrace(XPT_RREGS, inferior_pid, ®s, 0);
+ ptrace(XPT_RREGS, inferior_pid,
(PTRACE_ARG3_TYPE)
®s, 0);
*(int *)®isters[REGISTER_BYTE(0)] = regs.pr_eax;
*(int *)®isters[REGISTER_BYTE(5)] = regs.pr_ebx;
*(int *)®isters[REGISTER_BYTE(2)] = regs.pr_ecx;
*(int *)®isters[REGISTER_BYTE(0)] = regs.pr_eax;
*(int *)®isters[REGISTER_BYTE(5)] = regs.pr_ebx;
*(int *)®isters[REGISTER_BYTE(2)] = regs.pr_ecx;
@@
-148,8
+147,6
@@
fetch_inferior_registers()
/* Work with core dump and executable files, for GDB.
This code would be in core.c if it weren't machine-dependent. */
/* Work with core dump and executable files, for GDB.
This code would be in core.c if it weren't machine-dependent. */
-#include "gdbcore.h"
-
void
core_file_command (filename, from_tty)
char *filename;
void
core_file_command (filename, from_tty)
char *filename;
@@
-182,7
+179,7
@@
core_file_command (filename, from_tty)
make_cleanup (free, filename);
if (have_inferior_p ())
make_cleanup (free, filename);
if (have_inferior_p ())
- error ("To look at a core file, you must kill the
inferior
with \"kill\".");
+ error ("To look at a core file, you must kill the
program
with \"kill\".");
corechan = open (filename, O_RDONLY, 0);
if (corechan < 0)
perror_with_name (filename);
corechan = open (filename, O_RDONLY, 0);
if (corechan < 0)
perror_with_name (filename);
@@
-294,13
+291,13
@@
struct pt_regset ep;
printf (" %g\n", val);
}
if (ep.pr_fpu.fpu_rsvd1)
printf (" %g\n", val);
}
if (ep.pr_fpu.fpu_rsvd1)
-
printf ("warning:
rsvd1 is 0x%x\n", ep.pr_fpu.fpu_rsvd1);
+
warning ("
rsvd1 is 0x%x\n", ep.pr_fpu.fpu_rsvd1);
if (ep.pr_fpu.fpu_rsvd2)
if (ep.pr_fpu.fpu_rsvd2)
-
printf ("warning:
rsvd2 is 0x%x\n", ep.pr_fpu.fpu_rsvd2);
+
warning ("
rsvd2 is 0x%x\n", ep.pr_fpu.fpu_rsvd2);
if (ep.pr_fpu.fpu_rsvd3)
if (ep.pr_fpu.fpu_rsvd3)
-
printf ("warning:
rsvd3 is 0x%x\n", ep.pr_fpu.fpu_rsvd3);
+
warning ("
rsvd3 is 0x%x\n", ep.pr_fpu.fpu_rsvd3);
if (ep.pr_fpu.fpu_rsvd5)
if (ep.pr_fpu.fpu_rsvd5)
-
printf ("warning:
rsvd5 is 0x%x\n", ep.pr_fpu.fpu_rsvd5);
+
warning ("
rsvd5 is 0x%x\n", ep.pr_fpu.fpu_rsvd5);
}
}
@@
-430,7
+427,7
@@
i386_float_info ()
extern int corechan;
if (have_inferior_p()) {
extern int corechan;
if (have_inferior_p()) {
- call_ptrace(XPT_RREGS, inferior_pid, ®set, 0);
+ call_ptrace(XPT_RREGS, inferior_pid,
(PTRACE_ARG3_TYPE)
®set, 0);
} else {
if (lseek (corechan, 0, 0) < 0) {
perror ("seek on core file");
} else {
if (lseek (corechan, 0, 0) < 0) {
perror ("seek on core file");
This page took
0.025218 seconds
and
4
git commands to generate.