import gdb-19990422 snapshot
[deliverable/binutils-gdb.git] / gdb / convex-xdep.c
index 7dbac6fa4a70173008ec7e93cbb62ed9e9788be9..ad128c117e8dcb4cea082af6d191025b4815efd8 100644 (file)
@@ -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
-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"
@@ -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/stat.h>
+#include "gdb_stat.h"
 #include <sys/mman.h>
 
 #include <convex/vmparam.h>
@@ -123,9 +123,6 @@ static struct user u;
 static thread_t th;
 static proc_t pr;
 
-/* The registers of the currently selected thread.  */
-
-extern char registers[REGISTER_BYTES];
 
 /* Vector and communication registers from core dump or from inferior.
    These are read on demand, ie, not normally valid.  */
@@ -193,7 +190,7 @@ static struct type *vector_type ();
 static long *read_vector_register ();
 static long *read_vector_register_1 ();
 static void write_vector_register ();
-static unsigned LONGEST read_comm_register ();
+static ULONGEST read_comm_register ();
 static void write_comm_register ();
 static void convex_cont_command ();
 static void thread_continue ();
@@ -442,7 +439,7 @@ read_vector_register_1 (reg)
 static void
 write_vector_register (reg, element, val)
     int reg, element;
-    unsigned LONGEST val;
+    ULONGEST val;
 {
   if (have_inferior_p ())
     {
@@ -481,7 +478,7 @@ write_vector_register (reg, element, val)
 
 /* Return the contents of communication register NUM.  */ 
 
-static unsigned LONGEST 
+static ULONGEST 
 read_comm_register (num)
      int num;
 {
@@ -503,7 +500,7 @@ read_comm_register (num)
 static void
 write_comm_register (num, val)
      int num;
-     unsigned LONGEST val;
+     ULONGEST val;
 {
   if (have_inferior_p ())
     {
@@ -731,6 +728,7 @@ wait (w)
 
   select_thread (signal_stack->thread);
 
+ FIXME: need to convert from host sig.
   stop_signal = signal_stack->signo;
   stop_sigcode = signal_stack->subsig;
 
@@ -955,8 +953,6 @@ core_file_command (filename, from_tty)
       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 ();
 
This page took 0.023847 seconds and 4 git commands to generate.