aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-01 18:25:19 +0000
committerTom Tromey <tromey@redhat.com>2012-03-01 18:25:19 +0000
commit132c57b47776e318422661c6f9196dc92d96335a (patch)
tree8987ac9db9409ccd55da3ce9a7aa7c115d9efa37 /gdb/c-valprint.c
parente41eec6613d4f4410b58159f2b3d23f3414be8d5 (diff)
downloadgdb-132c57b47776e318422661c6f9196dc92d96335a.zip
gdb-132c57b47776e318422661c6f9196dc92d96335a.tar.gz
gdb-132c57b47776e318422661c6f9196dc92d96335a.tar.bz2
* c-valprint.c (print_function_pointer_address): Move...
* valprint.c: ... here. Make non-static. * m2-valprint.c (print_function_pointer_address): Remove. * valprint.h (print_function_pointer_address): Declare.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 25c6688..0054dc0 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -31,31 +31,6 @@
#include "target.h"
-/* Print function pointer with inferior address ADDRESS onto stdio
- stream STREAM. */
-
-static void
-print_function_pointer_address (struct gdbarch *gdbarch,
- CORE_ADDR address,
- struct ui_file *stream,
- int addressprint)
-{
- CORE_ADDR func_addr
- = gdbarch_convert_from_func_ptr_addr (gdbarch, address,
- &current_target);
-
- /* If the function pointer is represented by a description, print
- the address of the description. */
- if (addressprint && func_addr != address)
- {
- fputs_filtered ("@", stream);
- fputs_filtered (paddress (gdbarch, address), stream);
- fputs_filtered (": ", stream);
- }
- print_address_demangle (gdbarch, func_addr, stream, demangle);
-}
-
-
/* A helper for c_textual_element_type. This checks the name of the
typedef. This is bogus but it isn't apparent that the compiler
provides us the help we may need. */