aboutsummaryrefslogtreecommitdiff
path: root/binutils/prdbg.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-19 10:43:47 +0000
committerAlan Modra <amodra@gmail.com>2007-04-19 10:43:47 +0000
commited180cc5dbf8d2fe7f3eb17215badc90a8a453a9 (patch)
treeaf2edb74e47e3096c253376babbb73f849d0481b /binutils/prdbg.c
parent01e76792975830272df446256851f586a58cf1a9 (diff)
downloadgdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.zip
gdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.tar.gz
gdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.tar.bz2
* budemang.c: Delete.
* budemang.h: Delete. * addr2line.c (translate_addresses): Call bfd_demangle rather than demangle. * nm.c (print_symname): Likewise. * objdump.c (objdump_print_symname, dump_symbols): Likewise. (dump_bfd): Likewise. * prdbg.c (struct pr_handle <demangler>): Add int param. (tg_variable, tg_start_function): Adjust demangler calls. * Makefile.am: Remove mention of budemang.[ch]. Run "make dep-am". * Makefile.in: Regenerate. * po/POTFILES.in: Regenerate.
Diffstat (limited to 'binutils/prdbg.c')
-rw-r--r--binutils/prdbg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils/prdbg.c b/binutils/prdbg.c
index 7a0af83..55faaed 100644
--- a/binutils/prdbg.c
+++ b/binutils/prdbg.c
@@ -1,5 +1,5 @@
/* prdbg.c -- Print out generic debugging information.
- Copyright 1995, 1996, 1999, 2002, 2003, 2004, 2006
+ Copyright 1995, 1996, 1999, 2002, 2003, 2004, 2006, 2007
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
Tags style generation written by Salvador E. Tropea <set@computer.org>.
@@ -30,6 +30,7 @@
#include "bfd.h"
#include "bucomm.h"
#include "libiberty.h"
+#include "demangle.h"
#include "debug.h"
#include "budbg.h"
@@ -53,7 +54,7 @@ struct pr_handle
/* The symbols table for this BFD. */
asymbol **syms;
/* Pointer to a function to demangle symbols. */
- char *(*demangler) (bfd *, const char *);
+ char *(*demangler) (bfd *, const char *, int);
};
/* The type stack. */
@@ -2536,7 +2537,7 @@ tg_variable (void *p, const char *name, enum debug_var_kind kind,
dname = name;
if (info->demangler)
{
- dname = info->demangler (info->abfd, name);
+ dname = info->demangler (info->abfd, name, DMGL_ANSI | DMGL_PARAMS);
if (strcmp (name, dname) == 0)
{
free ((char *) dname);
@@ -2608,7 +2609,7 @@ tg_start_function (void *p, const char *name, bfd_boolean global)
dname = name;
if (info->demangler)
{
- dname = info->demangler (info->abfd, name);
+ dname = info->demangler (info->abfd, name, DMGL_ANSI | DMGL_PARAMS);
if (strcmp (name, dname) == 0)
{
free ((char *) dname);