Search code examples
c++eclipsemacoseclipse-cdt

Eclipse CDT / GDB error : Undefined maintenance set command: "python print-stack off". Try "help maintenance set"


I am running Eclipse 3.7 , CDT 6.0 On Mac 10.6.8 (Snow Leopard)

I really really wanted to pretty print vectors !!!

I built gdb-7.5 (Configured for "x86_64-apple-darwin10.8.0". ) I buit pythonPrettyPrinter

I changed the default GDB command, changed the .gdbinit location and tried to run the

BUT now the Eclipse CDT is giving this error :

Error in final launch sequence Failed to execute MI command:
 maintenance set python print-stack off Error message from debugger back end: 
Undefined maintenance set command: "python print-stack off". Try "help maintenance set". 
Undefined maintenance set command: "python print-stack off".  Try "help maintenance set".

This error is tracked here: But it appears the latest CDT will NOT have this fix since the update date was post CDT-head release.

My question is, did any one have any luck with what I am trying ?

Is there a known workaround for my issue ?


Solution

  • Got it working after three more steps

    1. Updated CDT to 8.1.1 http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-cpp-juno-SR1-macosx-cocoa-x86_64.tar.gz

    2. Created a certificate named gdb-cert

    3. Signed the GDB http://sourceware.org/gdb/wiki/BuildingOnDarwin