Patch #2780 2009-06-24 22:00

stahta01

Add code to build exchndl.dll to Core Project
Download
2780-Add_code_to_bu.patch (144.6 KB)
Category
Application::Refinement
Status
Accepted
Close date
2010-09-19 19:16
Assigned to
mortenmacfly
Index: src/update.bat
===================================================================
--- src/update.bat    (revision 5680)
+++ src/update.bat    (working copy)
@@ -64,9 +64,6 @@
 %ZIPCMD% -0 -qu ..\..\..\%CB_DEVEL_RESDIR%\debugger.zip images\*.png images\16x16\*.png > nul
 cd ..\..\..
 
-echo Copying external exception handler
-xcopy /D /y exchndl.dll output > nul
-xcopy /D /y exchndl.dll devel > nul
 echo Copying files
 xcopy /D /y %CB_DEVEL_RESDIR%\*.zip %CB_OUTPUT_RESDIR% > nul
 xcopy /D /y sdk\resources\lexers\lexer_* %CB_DEVEL_RESDIR%\lexers > nul
Index: src/base/exchndl/include/demangle.h
===================================================================
--- src/base/exchndl/include/demangle.h    (revision 0)
+++ src/base/exchndl/include/demangle.h    (revision 0)
@@ -0,0 +1,576 @@
+/* Defs for interface to demanglers.
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002,
+   2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+   
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License
+   as published by the Free Software Foundation; either version 2, or
+   (at your option) any later version.
+
+   In addition to the permissions in the GNU Library General Public
+   License, the Free Software Foundation gives you unlimited
+   permission to link the compiled version of this file into
+   combinations with other programs, and to distribute those
+   combinations without any restriction coming from the use of this
+   file.  (The Library Public License restrictions do apply in other
+   respects; for example, they cover modification of the file, and
+   distribution when not linked into a combined executable.)
+
+   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
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+
+#if !defined (DEMANGLE_H)
+#define DEMANGLE_H
+
+#include "libiberty.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* Options passed to cplus_demangle (in 2nd parameter). */
+
+#define DMGL_NO_OPTS     0        /* For readability... */
+#define DMGL_PARAMS     (1 << 0)    /* Include function args */
+#define DMGL_ANSI     (1 << 1)    /* Include const, volatile, etc */
+#define DMGL_JAVA     (1 << 2)    /* Demangle as Java rather than C++. */
+#define DMGL_VERBOSE     (1 << 3)    /* Include implementation details.  */
+#define DMGL_TYPES     (1 << 4)    /* Also try to demangle type encodings.  */
+#define DMGL_RET_POSTFIX (1 << 5)       /* Print function return types (when
+                                           present) after function signature */
+
+#define DMGL_AUTO     (1 << 8)
+#define DMGL_GNU     (1 << 9)
+#define DMGL_LUCID     (1 << 10)
+#define DMGL_ARM     (1 << 11)
+#define DMGL_HP      (1 << 12)       /* For the HP aCC compiler;
+                                            same as ARM except for
+                                            template arguments, etc. */
+#define DMGL_EDG     (1 << 13)
+#define DMGL_GNU_V3     (1 << 14)
+#define DMGL_GNAT     (1 << 15)
+
+/* If none of these are set, use 'current_demangling_style' as the default. */
+#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT)
+
+/* Enumeration of possible demangling styles.
+
+   Lucid and ARM styles are still kept logically distinct, even though
+   they now both behave identically.  The resulting style is actual the
+   union of both.  I.E. either style recognizes both "__pt__" and "__rf__"
+   for operator "->", even though the first is lucid style and the second
+   is ARM style. (FIXME?) */
+
+extern enum demangling_styles
+{
+  no_demangling = -1,
+  unknown_demangling = 0,
+  auto_demangling = DMGL_AUTO,
+  gnu_demangling = DMGL_GNU,
+  lucid_demangling = DMGL_LUCID,
+  arm_demangling = DMGL_ARM,
+  hp_demangling = DMGL_HP,
+  edg_demangling = DMGL_EDG,
+  gnu_v3_demangling = DMGL_GNU_V3,
+  java_demangling = DMGL_JAVA,
+  gnat_demangling = DMGL_GNAT
+} current_demangling_style;
+
+/* Define string names for the various demangling styles. */
+
+#define NO_DEMANGLING_STYLE_STRING            "none"
+#define AUTO_DEMANGLING_STYLE_STRING          "auto"
+#define GNU_DEMANGLING_STYLE_STRING              "gnu"
+#define LUCID_DEMANGLING_STYLE_STRING          "lucid"
+#define ARM_DEMANGLING_STYLE_STRING          "arm"
+#define HP_DEMANGLING_STYLE_STRING          "hp"
+#define EDG_DEMANGLING_STYLE_STRING          "edg"
+#define GNU_V3_DEMANGLING_STYLE_STRING        "gnu-v3"
+#define JAVA_DEMANGLING_STYLE_STRING          "java"
download for full patch...
mortenmacfly 2009-11-29 19:07

Thee issue with this patch:

Since I am using TDM 4.4.x there is an issue with the patch as you'll need to link against libintl, too. Unfortunately this is not part of the TDM package. Besides this it's working just fine.