aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-21 14:13:03 -0400
committerMike Frysinger <vapier@gentoo.org>2015-06-23 09:41:31 -0400
commit7564fe458c2fe1a77eecfaf5e2f99bec8961d457 (patch)
tree1f71ae3d8f710a0692571a6aa9f9dcea06584b42
parent0bdb2f78497a1b3be65d1428cc02f7d4e1d3a888 (diff)
downloadgdb-7564fe458c2fe1a77eecfaf5e2f99bec8961d457.zip
gdb-7564fe458c2fe1a77eecfaf5e2f99bec8961d457.tar.gz
gdb-7564fe458c2fe1a77eecfaf5e2f99bec8961d457.tar.bz2
gdb: microblaze: delete useless stubs
These don't accomplish anything the common core doesn't already, so punt them as they purely waste code.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/microblaze-tdep.c26
2 files changed, 7 insertions, 26 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6e26db0..40de562 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2015-06-23 Mike Frysinger <vapier@gentoo.org>
+
+ * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
+ (microblaze_push_dummy_call): Likewise.
+ (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
+ and set_gdbarch_push_dummy_call.
+
2015-06-23 Yao Qi <yao.qi@linaro.org>
* amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index d66914e..8cc1df2 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -134,30 +134,6 @@ microblaze_fetch_instruction (CORE_ADDR pc)
return extract_unsigned_integer (buf, 4, byte_order);
}
-
-static CORE_ADDR
-microblaze_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
- CORE_ADDR funcaddr,
- struct value **args, int nargs,
- struct type *value_type,
- CORE_ADDR *real_pc, CORE_ADDR *bp_addr,
- struct regcache *regcache)
-{
- error (_("push_dummy_code not implemented"));
- return sp;
-}
-
-
-static CORE_ADDR
-microblaze_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
- struct regcache *regcache, CORE_ADDR bp_addr,
- int nargs, struct value **args, CORE_ADDR sp,
- int struct_return, CORE_ADDR struct_addr)
-{
- error (_("store_arguments not implemented"));
- return sp;
-}
-
static const gdb_byte *
microblaze_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pc,
int *len)
@@ -749,8 +725,6 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Call dummy code. */
set_gdbarch_call_dummy_location (gdbarch, ON_STACK);
- set_gdbarch_push_dummy_code (gdbarch, microblaze_push_dummy_code);
- set_gdbarch_push_dummy_call (gdbarch, microblaze_push_dummy_call);
set_gdbarch_return_value (gdbarch, microblaze_return_value);
set_gdbarch_stabs_argument_has_addr