aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-04 19:22:47 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-04 19:22:47 +0000
commit6597b100b5034a27219b7c5823af25747f4d27f5 (patch)
tree9635896ebbd336a478703dc42619e7c75fa1d21c
parent87399aa1a1688f8aa38db480e12c65f616f81d89 (diff)
downloadgdb-6597b100b5034a27219b7c5823af25747f4d27f5.zip
gdb-6597b100b5034a27219b7c5823af25747f4d27f5.tar.gz
gdb-6597b100b5034a27219b7c5823af25747f4d27f5.tar.bz2
gdb/
Removed unused code. * libunwind-frame.c (libunwind_frame_unwind) (libunwind_frame_base_address): Remove. * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/libunwind-frame.c22
-rw-r--r--gdb/libunwind-frame.h2
3 files changed, 7 insertions, 24 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4ebf9f6..c67cbdc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Removed unused code.
+ * libunwind-frame.c (libunwind_frame_unwind)
+ (libunwind_frame_base_address): Remove.
+ * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
+
2012-03-04 Yao Qi <yao@codesourcery.com>
* common/agent.c (gdb_connect_sync_socket): Add _ markup and
diff --git a/gdb/libunwind-frame.c b/gdb/libunwind-frame.c
index f8f5289..babdecc 100644
--- a/gdb/libunwind-frame.c
+++ b/gdb/libunwind-frame.c
@@ -241,17 +241,6 @@ libunwind_find_dyn_list (unw_addr_space_t as, unw_dyn_info_t *di, void *arg)
return unw_find_dyn_list_p (as, di, arg);
}
-static const struct frame_unwind libunwind_frame_unwind =
-{
- NORMAL_FRAME,
- default_frame_unwind_stop_reason,
- libunwind_frame_this_id,
- libunwind_frame_prev_register,
- NULL,
- libunwind_frame_sniffer,
- libunwind_frame_dealloc_cache,
-};
-
/* Verify if there is sufficient libunwind information for the frame to use
libunwind frame unwinding. */
int
@@ -384,17 +373,6 @@ libunwind_frame_prev_register (struct frame_info *this_frame,
return val;
}
-CORE_ADDR
-libunwind_frame_base_address (struct frame_info *this_frame, void **this_cache)
-{
- struct libunwind_frame_cache *cache =
- libunwind_frame_cache (this_frame, this_cache);
-
- if (cache == NULL)
- return (CORE_ADDR)NULL;
- return cache->base;
-}
-
/* The following is a glue routine to call the libunwind unwind table
search function to get unwind information for a specified ip address. */
int
diff --git a/gdb/libunwind-frame.h b/gdb/libunwind-frame.h
index ef98177..a6b3c34 100644
--- a/gdb/libunwind-frame.h
+++ b/gdb/libunwind-frame.h
@@ -60,8 +60,6 @@ void libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache,
struct value *libunwind_frame_prev_register (struct frame_info *this_frame,
void **this_cache, int regnum);
void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache);
-CORE_ADDR libunwind_frame_base_address (struct frame_info *this_frame,
- void **this_cache);
int libunwind_is_initialized (void);