From c92d04d848d5d7dcfca05ea1e017281c7c0e5c0c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 9 Apr 2004 19:57:35 +0000 Subject: [PATCH] Some hints for debugging DOH types added git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5853 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Devel/internals.html | 64 ++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/Doc/Devel/internals.html b/Doc/Devel/internals.html index c185c1f75..309bfe98a 100644 --- a/Doc/Devel/internals.html +++ b/Doc/Devel/internals.html @@ -49,11 +49,7 @@ beazley@cs.uchicago.edu
  • 6. Plans for SWIG 2.0
  • 7. C/C++ Wrapper Support Functions
  • 8. Symbol Naming Guidelines for Generated C/C++ Code -
  • 9. Reserved -
  • 10. Guile Support -
  • 11. Python Support -
  • 12. Perl Support -
  • 13. Java Support +
  • 9. Debugging SWIG @@ -966,36 +962,54 @@ In the past SWIG has generated many symbols which flout the standard especially -

    9. Reserved

    +

    9. Debugging SWIG

    +Warning. Debugging SWIG is for the very patient. +

    - -

    10. Guile Support

    - +The DOH types are all typedefined to void. +Consequently, it is impossible for debuggers to extract any information about DOH objects. +Most debuggers will be able to display useful variable information when an object is cast to the appropriate type. +Below are some tips for displaying some of the DOH objects. +Be sure to compile with compiler optimisations turned off before attempting the casts shown in a debugger window else they are unlikely to work. +Even displaying the underlying string in a String* doesn't work straight off in all debuggers due to the multiple definition of String as a struct and a void. +

    -The information that used to live here has moved to the user -documentation, file Guile.html. +Below are a list of common SWIG types. +With each is the cast that can be used in the debugger to extract the underlying type information and the underlying char * string. - -

    11. Python Support

    - +
    -Copyright (C) 1999-2001 +Copyright (C) 1999-2004 SWIG Development Team