projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Thu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
[deliverable/binutils-gdb.git]
/
gdb
/
convex-xdep.c
diff --git
a/gdb/convex-xdep.c
b/gdb/convex-xdep.c
index 84bddd2cd89d7021c29eddacf0e9a47c98c619c5..8bfc0d8166e2278918581115916ec1789faf8b65 100644
(file)
--- a/
gdb/convex-xdep.c
+++ b/
gdb/convex-xdep.c
@@
-15,7
+15,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139
, USA. */
+Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
#include "defs.h"
#include "command.h"
#include "defs.h"
#include "command.h"
@@
-37,7
+37,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/thread.h>
#include <sys/proc.h>
#include <sys/file.h>
#include <sys/thread.h>
#include <sys/proc.h>
#include <sys/file.h>
-#include
<sys/stat.h>
+#include
"gdb_stat.h"
#include <sys/mman.h>
#include <convex/vmparam.h>
#include <sys/mman.h>
#include <convex/vmparam.h>
@@
-193,7
+193,7
@@
static struct type *vector_type ();
static long *read_vector_register ();
static long *read_vector_register_1 ();
static void write_vector_register ();
static long *read_vector_register ();
static long *read_vector_register_1 ();
static void write_vector_register ();
-static
REGISTER_TYPE
read_comm_register ();
+static
ULONGEST
read_comm_register ();
static void write_comm_register ();
static void convex_cont_command ();
static void thread_continue ();
static void write_comm_register ();
static void convex_cont_command ();
static void thread_continue ();
@@
-282,7
+282,7
@@
read_inferior_memory (memaddr, myaddr, len)
len -= i;
}
if (errno)
len -= i;
}
if (errno)
-
bzero (myaddr
, len);
+
memset (myaddr, '\0'
, len);
return errno;
}
return errno;
}
@@
-306,6
+306,9
@@
write_inferior_memory (memaddr, myaddr, len)
and started up. We must do a pattach to grab it for debugging.
Also, intercept the CONT command by altering its dispatch address. */
and started up. We must do a pattach to grab it for debugging.
Also, intercept the CONT command by altering its dispatch address. */
+/* FIXME: This used to be called from a macro CREATE_INFERIOR_HOOK.
+ But now init_trace_fun is in the same place. So re-write this to
+ use the init_trace_fun (making convex a debugging target). */
create_inferior_hook (pid)
int pid;
create_inferior_hook (pid)
int pid;
@@
-391,7
+394,7
@@
read_vector_register (reg)
ps.pi_thread = inferior_thread;
ioctl (inferior_fd, PIXRDVREGS, &ps);
if (errno)
ps.pi_thread = inferior_thread;
ioctl (inferior_fd, PIXRDVREGS, &ps);
if (errno)
-
bzero (&vector_registers
, sizeof vector_registers);
+
memset (&vector_registers, '\0'
, sizeof vector_registers);
}
else if (corechan >= 0)
{
}
else if (corechan >= 0)
{
@@
-439,7
+442,7
@@
read_vector_register_1 (reg)
static void
write_vector_register (reg, element, val)
int reg, element;
static void
write_vector_register (reg, element, val)
int reg, element;
-
REGISTER_TYPE
val;
+
ULONGEST
val;
{
if (have_inferior_p ())
{
{
if (have_inferior_p ())
{
@@
-478,7
+481,7
@@
write_vector_register (reg, element, val)
/* Return the contents of communication register NUM. */
/* Return the contents of communication register NUM. */
-static
REGISTER_TYPE
+static
ULONGEST
read_comm_register (num)
int num;
{
read_comm_register (num)
int num;
{
@@
-500,7
+503,7
@@
read_comm_register (num)
static void
write_comm_register (num, val)
int num;
static void
write_comm_register (num, val)
int num;
-
REGISTER_TYPE
val;
+
ULONGEST
val;
{
if (have_inferior_p ())
{
{
if (have_inferior_p ())
{
@@
-728,6
+731,7
@@
wait (w)
select_thread (signal_stack->thread);
select_thread (signal_stack->thread);
+ FIXME: need to convert from host sig.
stop_signal = signal_stack->signo;
stop_sigcode = signal_stack->subsig;
stop_signal = signal_stack->signo;
stop_sigcode = signal_stack->subsig;
@@
-952,8
+956,6
@@
core_file_command (filename, from_tty)
core_aouthdr.a_magic = 0;
flush_cached_frames ();
core_aouthdr.a_magic = 0;
flush_cached_frames ();
- set_current_frame (create_new_frame (read_register (FP_REGNUM),
- read_pc ()));
select_frame (get_current_frame (), 0);
validate_files ();
select_frame (get_current_frame (), 0);
validate_files ();
This page took
0.025571 seconds
and
4
git commands to generate.