include/x86-linux/Makefile
auxprogs/Makefile
coregrind/Makefile
- coregrind/demangle/Makefile
+ coregrind/m_demangle/Makefile
coregrind/m_aspacemgr/Makefile
coregrind/m_replacemalloc/Makefile
coregrind/m_sigframe/Makefile
include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
MODULES = \
- demangle \
+ m_demangle \
m_aspacemgr \
m_replacemalloc \
m_sigframe \
$(VG_ARCH_ALL) $(VG_OS_ALL) $(VG_PLATFORM_ALL) \
$(MODULES) .
-AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" -I$(srcdir)/demangle \
+AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" \
-DKICKSTART_BASE=@KICKSTART_BASE@
AM_CFLAGS = $(WERROR) -Wmissing-prototypes -Winline -Wall -Wshadow -O -g @ARCH_CORE_AM_CFLAGS@
core_asm.h \
pub_core_aspacemgr.h \
pub_core_debuglog.h \
+ pub_core_demangle.h \
pub_core_errormgr.h \
pub_core_execontext.h \
pub_core_mallocfree.h \
ume.c \
\
vg_scheduler.c \
- vg_demangle.c \
vg_hashtable.c \
vg_main.c \
vg_messages.c \
## libplatform.a must be before libarch.a and libos.a, it seems.
stage2_extra= \
- demangle/libdemangle.a \
+ m_demangle/libdemangle.a \
m_aspacemgr/libaspacemgr.a \
m_sigframe/libsigframe.a \
m_syscalls/libsyscalls.a \
use. */
extern void VG_(send_bytes_to_logging_sink) ( Char* msg, Int nbytes );
-/* ---------------------------------------------------------------------
- Exports of vg_demangle.c
- ------------------------------------------------------------------ */
-
-extern void VG_(demangle) ( Char* orig, Char* result, Int result_size );
-
-extern void VG_(reloc_abs_jump) ( UChar *jmp );
-
/* ---------------------------------------------------------------------
Exports of vg_translate.c
------------------------------------------------------------------ */
noinst_LIBRARIES = libdemangle.a
libdemangle_a_SOURCES = \
- cp-demangle.c cplus-dem.c dyn-string.c safe-ctype.c
+ cp-demangle.c \
+ cplus-dem.c \
+ demangle.c \
+ dyn-string.c \
+ safe-ctype.c
## Ignore harmless warnings for these ones
cp-demangle.o: CFLAGS += -Wno-unused -Wno-shadow
/*--------------------------------------------------------------------*/
-/*--- Demangling of C++ mangled names. ---*/
-/*--- vg_demangle.c ---*/
+/*--- Demangling of C++ mangled names. demangle.c ---*/
/*--------------------------------------------------------------------*/
/*
VGP_POPCC(VgpDemangle);
}
-
/*--------------------------------------------------------------------*/
/*--- end ---*/
/*--------------------------------------------------------------------*/
--- /dev/null
+
+/*--------------------------------------------------------------------*/
+/*--- The C++ name demangler. pub_core_demangle.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward
+ jseward@acm.org
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __PUB_CORE_DEMANGLE_H
+#define __PUB_CORE_DEMANGLE_H
+
+//--------------------------------------------------------------------
+// PURPOSE: This module exports a single function for demangling C++
+// names.
+//--------------------------------------------------------------------
+
+extern void VG_(demangle) ( Char* orig, Char* result, Int result_size );
+
+#endif // __PUB_CORE_DEMANGLE_H
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/