diff options
author | Stu Grossman <grossman@cygnus> | 1996-10-08 17:06:17 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1996-10-08 17:06:17 +0000 |
commit | 5d394f707245c12a8839461df83a06a0997c1698 (patch) | |
tree | 06c0637bdea1e07b710a7cee22575163e9a687fc /gdb/hppa-tdep.c | |
parent | 40d53fdf16a67f5b98c1f20b1e1c6fdccd74ca5d (diff) | |
download | gdb-5d394f707245c12a8839461df83a06a0997c1698.zip gdb-5d394f707245c12a8839461df83a06a0997c1698.tar.gz gdb-5d394f707245c12a8839461df83a06a0997c1698.tar.bz2 |
* Makefile.in: Add rule for hpux-thread.o (needs special header
files).
* (SUBDIRS): Remove mswin.
* Change procedure for creating init.c. Speeds things up quite a
bit.
* config.in configure configure.in: Check for select, poll.
* Check for OSF header files before including hpux-thread.o.
* Don't configure doc or testsuite when building under MSVC.
* findvar.c value.h (read_register_pid write_register_pid): Make
global. Needed for hppa-tdep.c.
* (supply_register): Don't set pid to inferior_pid when supplying
registers.
* hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
FRAME_SAVED_PC.
* (frame_saved_pc): Change name to hppa_frame_saved_pc.
* (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
Use write_pc instead, which uses the correct pid.
* (target_read_pc target_write_pc): Use read/write_register_pid
instead of read/write_register to preserve the pid passed in.
* inftarg.c (child_can_run): Add flag child_suppress_run to allow
hpux-threads.c to override this as a runnable target.
* config/pa/nm-hppah.h: Define target_new_objfile and
target_pid_to_str.
* config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
instead of frame_saved_pc.
* config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
* config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
we can't easily determine the start file bounds with ELF.
* config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
* hpux-thread.c: New file for HPUX/OSF thread support.
* osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
thread support.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 3c3f058..05463b4 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -812,13 +812,13 @@ saved_pc_after_call (frame) the stub will return to out of the stack. */ u = find_unwind_entry (pc); if (u && u->stub_type != 0) - return frame_saved_pc (frame); + return FRAME_SAVED_PC (frame); else return pc; } CORE_ADDR -frame_saved_pc (frame) +hppa_frame_saved_pc (frame) struct frame_info *frame; { CORE_ADDR pc = get_frame_pc (frame); @@ -1394,7 +1394,7 @@ hppa_pop_frame () else { npc = read_register (RP_REGNUM); - target_write_pc (npc, 0); + write_pc (npc); } write_register (FP_REGNUM, read_memory_integer (fp, 4)); @@ -1749,12 +1749,15 @@ CORE_ADDR target_read_pc (pid) int pid; { - int flags = read_register (FLAGS_REGNUM); + int flags = read_register_pid (FLAGS_REGNUM, pid); - if (flags & 2) { - return read_register (31) & ~0x3; - } - return read_register (PC_REGNUM) & ~0x3; + /* The following test does not belong here. It is OS-specific, and belongs + in native code. */ + /* Test SS_INSYSCALL */ + if (flags & 2) + return read_register_pid (31, pid) & ~0x3; + + return read_register_pid (PC_REGNUM, pid) & ~0x3; } /* Write out the PC. If currently in a syscall, then also write the new @@ -1765,15 +1768,18 @@ target_write_pc (v, pid) CORE_ADDR v; int pid; { - int flags = read_register (FLAGS_REGNUM); + int flags = read_register_pid (FLAGS_REGNUM, pid); + /* The following test does not belong here. It is OS-specific, and belongs + in native code. */ /* If in a syscall, then set %r31. Also make sure to get the privilege bits set correctly. */ + /* Test SS_INSYSCALL */ if (flags & 2) - write_register (31, (long) (v | 0x3)); + write_register_pid (31, v | 0x3, pid); - write_register (PC_REGNUM, (long) v); - write_register (NPC_REGNUM, (long) v + 4); + write_register_pid (PC_REGNUM, v, pid); + write_register_pid (NPC_REGNUM, v + 4, pid); } /* return the alignment of a type in bytes. Structures have the maximum |