aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-04-19 15:15:55 +0000
committerPedro Alves <palves@redhat.com>2013-04-19 15:15:55 +0000
commit9d1dd0e275837ad325f8ff8f51bc3d5912fa3561 (patch)
tree91f47bae9cbe76522ab6cb3aaf76c6a06e40cdc7
parent44096aee2e53b84d296506bef1fcd3059280a857 (diff)
downloadgdb-9d1dd0e275837ad325f8ff8f51bc3d5912fa3561.zip
gdb-9d1dd0e275837ad325f8ff8f51bc3d5912fa3561.tar.gz
gdb-9d1dd0e275837ad325f8ff8f51bc3d5912fa3561.tar.bz2
mep-tdep.c: Wrong signness for instruction buffer.
There seems to be no reason for this to be signed. gdb/ 2013-04-19 Pedro Alves <palves@redhat.com> * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to unsigned long *.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mep-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a04e6d8..cfd5449 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-04-19 Pedro Alves <palves@redhat.com>
+ * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
+ unsigned long *.
+
+2013-04-19 Pedro Alves <palves@redhat.com>
+
* alpha-tdep.c (heuristic_fence_post): Change type to int.
(alpha_heuristic_proc_start): Adjust to check -1 instead of
UINT_MAX.
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index 3d91773..7c5f992 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -1424,7 +1424,7 @@ mep_pc_in_vliw_section (CORE_ADDR pc)
anyway. */
static CORE_ADDR
-mep_get_insn (struct gdbarch *gdbarch, CORE_ADDR pc, long *insn)
+mep_get_insn (struct gdbarch *gdbarch, CORE_ADDR pc, unsigned long *insn)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
int pc_in_vliw_section;