User forums > Using Code::Blocks
Debugging cursor disappearing
Léa Massiot:
Hello oBFusCATed,
I have followed your link: http://forums.codeblocks.org/index.php/topic,15440.msg103649.html#msg103649
Then, in Jens' post, I followed the link: http://apt.jenslody.de/pool/dbg/c/codeblocks/
Here are my questions:
1)What shall I download?
- codeblocks_10.05dbg7549-1_amd64.deb?
- codeblocks-dbg_10.05dbg7549-1_amd64.deb?
- ...?
2) How is it going to impact my current C::B installation?
3) Will I be able to remove this branch properly afterwards (without breaking what already exists)?
Best regards,
--
Léa
--- Code: ----------------------------------------------------------------------------------------------
Config.
-------------------------------------------------------------------------------------------
OS (> uname -a): Linux 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux
C::B version: 10.05
Compiler version (> gcc --version): gcc (Debian 4.4.5-8) 4.4.5
Debugger version (> gdb --version): GNU gdb (GDB) 7.0.1-debian
-------------------------------------------------------------------------------------------
--- End code ---
MortenMacFly:
--- Quote from: Léa Massiot on November 12, 2011, 03:07:10 pm ---- codeblocks_10.05dbg7549-1_amd64.deb?
--- End quote ---
This one, unless you want to debug C::B itself.
--- Quote from: Léa Massiot on November 12, 2011, 03:07:10 pm ---2) How is it going to impact my current C::B installation?
--- End quote ---
You should uninstall any previous version before. You don't have parallel versions of other programs, too, do you?
--- Quote from: Léa Massiot on November 12, 2011, 03:07:10 pm ---3) Will I be able to remove this branch properly afterwards (without breaking what already exists)?
--- End quote ---
Sure, and you can (later on) re-install any other version.
Léa Massiot:
@MortenMacFly : Hello and thank you for your answer.
--- Quote from: MortenMacFly ---You don't have parallel versions of other programs, too, do you?
--- End quote ---
What do you mean? On some other computer, I have several different versions of a given program (ex. Apache Tomcat...)... why not with C::B? But maybe this is the notion of "parallel versions of a program"which I do not figure out properly...
--- Quote from: MortenMacFly ---You should uninstall any previous version before.
--- End quote ---
Ok.
So, I totally don't know how to be sure that I'm going to properly uninstall C::B.
I installed C::B from the sources ("codeblocks-10.05-1debian-src.tar") and I ran the usual commands triplet (./configure, make, make install).
Can you tell me how to uninstall C::B properly now?
P.S. I'm quasi sure you're thinking this is not a C::B relevant question... not specific enough.
I am conscious of the fact that this is a general question.
But the fact is that it is with C::B I have this problem for the first time.
Thank you for helping.
Best regards,
--
Léa
oBFusCATed:
If you have the files of C::B in the state after the make install command, you can try with make uninstall.
Otherwise you should delete the files manually.
Then you just add Jens' repo to the source list, apt-get update; apt-get install codeblocks codeblock-contrib and you're done.
Léa Massiot:
Hello,
Thank you for your answer.
==================================================
C::B uninstall and install
==================================================
FYI, here is what I had to do (after the "make uninstall"):
In "/etc/apt/sources.list", I added the following lines:
--- Code: ---deb http://apt.jenslody.de/ any dbg
deb-src http://apt.jenslody.de/ any dbg
deb http://apt.wxwidgets.org/ lenny-wx main
--- End code ---
Then I ran:
--- Code: ---> apt-get install jens-lody-debian-keyring
> wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -
--- End code ---
And finally:
--- Code: ---> apt-get update
> apt-get install codeblocks codeblocks-contrib
--- End code ---
Cf. instructions in: http://apt.jenslody.de/
+ some literature: http://wiki.debian.org/SecureApt
==================================================
Now I can run the new C::B properly.
If I put a breakpoint in front of my target instruction and start debugging, here is what I get:
- the debug cursor stops in front of the bp (ok),
- I press F7 seventeen times (the cursor is not moving, apart from a slight blink),
- here is what is printed in the "Debugger" view:
--- Code: ---[...]
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.0.1-debian
At /path/to/my/cb/project/main.cpp:40
In __cxa_throw () (/usr/lib/libstdc++.so.6)
#8 0x0000000000402b92 in AClass::aMethod (this=0x60bd60) at /path/to/my/cb/project/src/AClass.cpp:71
/path/to/my/cb/project/src/AClass.cpp:71:1299:beg:0x402b92
At /path/to/my/cb/project/src/AClass.cpp:71
#8 0x0000000000402b92 in AClass::aMethod (this=0x60bd60) at /path/to/my/cb/project/src/AClass.cpp:71
/path/to/my/cb/project/src/AClass.cpp:71:1299:beg:0x402b92
[...] sixteen times.
Program exited normally.
Debugger finished with status 0
--- End code ---
Here it is.
Best regards,
--
Léa
--- Code: ----------------------------------------------------------------------------------------------
Config.
-------------------------------------------------------------------------------------------
OS (> uname -a): Linux 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux
C::B version: svn build rev 7549 - SDK version: 1.12.10
Compiler version (> gcc --version): gcc (Debian 4.4.5-8) 4.4.5
Debugger version (> gdb --version): GNU gdb (GDB) 7.0.1-debian
-------------------------------------------------------------------------------------------
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version