]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 1 Jun 2007 13:15:59 +0000 (13:15 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 1 Jun 2007 13:15:59 +0000 (13:15 +0000)
gdb/ChangeLog
gdb/irix5-nat.c

index cc4a828059ee9fa51a54fc80490bd41a673a6f14..74377ffe49d0229b9f186a26f52f5ec863bb7a0f 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
+
 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
index 9769da2263d0fcbde10b16a10a2863cdb936a5bd..830a6a6229dfb77c1cd653dde26156eafcbea267 100644 (file)
@@ -43,9 +43,6 @@
 static void fetch_core_registers (struct regcache *, char *,
                                  unsigned int, int, CORE_ADDR);
 
-/* Size of elements in jmpbuf */
-
-#define JB_ELEMENT_SIZE 4
 
 /*
  * See the comment in m68k-tdep.c regarding the utility of these functions.
@@ -206,29 +203,6 @@ fill_fpregset (const struct regcache *regcache, fpregset_t *fpregsetp, int regno
 }
 
 
-/* Figure out where the longjmp will land.
-   We expect the first arg to be a pointer to the jmp_buf structure from which
-   we extract the pc (JB_PC) that we will land at.  The pc is copied into PC.
-   This routine returns true on success. */
-
-int
-get_longjmp_target (CORE_ADDR *pc)
-{
-  char *buf;
-  CORE_ADDR jb_addr;
-
-  buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT);
-  jb_addr = read_register (MIPS_A0_REGNUM);
-
-  if (target_read_memory (jb_addr + JB_PC * JB_ELEMENT_SIZE, buf,
-                         TARGET_PTR_BIT / TARGET_CHAR_BIT))
-    return 0;
-
-  *pc = extract_unsigned_integer (buf, TARGET_PTR_BIT / TARGET_CHAR_BIT);
-
-  return 1;
-}
-
 /* Provide registers to GDB from a core file.
 
    CORE_REG_SECT points to an array of bytes, which were obtained from