User forums > General (but related to Code::Blocks)
[OT] unofficial MinGW GDB gdb with python released
ollydbg:
--- Quote from: MortenMacFly on October 08, 2009, 02:51:04 pm ---
--- Quote from: ollydbg on October 08, 2009, 02:02:55 pm ---But could you please test by setting a breakpoint in the codeblocks' source code? this case, it didn't work here.
--- End quote ---
Works fine, here.
I set a BP in C::B's "main" function -> stops.
While stopped I set a BP in a sub-method that'll be called certainly and hit continue -> stops.
For me all is OK?! (Using TDM 4.4.0, GDB 7.0 and C::B's debugger branch.)
BTW: Try really removing TDM before installing it freshly (from the single packages). Cause GDB7 has some files in different folders now.
--- End quote ---
Thanks for the hint. I have totally uninstall and remove the TDM.
Then, I just reinstall TDM , and upzip the GDB7.0 package(Note, GDB7.0 has four folders, so, I just let the GDB7.0's file overwrite the TDM's)
But, I still get the same error, things like:
--- Code: --->>>>>>cb_gdb:
> break "F:/cb_svn/src/plugins/codecompletion/parser/tokenizer.cpp:588"
No source file named F:/cb_svn/src/plugins/codecompletion/parser/tokenizer.cpp.
Breakpoint 2 ("F:/cb_svn/src/plugins/codecompletion/parser/tokenizer.cpp:588) pending.
>>>>>>cb_gdb:
> run
--- End code ---
oBFusCATed:
--- Quote from: MortenMacFly on October 08, 2009, 02:51:04 pm ---Works fine, here.
I set a BP in C::B's "main" function -> stops.
While stopped I set a BP in a sub-method that'll be called certainly and hit continue -> stops.
--- End quote ---
ollydbg: Have your read the line in bold?
ollydbg:
--- Quote from: oBFusCATed on October 08, 2009, 03:47:56 pm ---
--- Quote from: MortenMacFly on October 08, 2009, 02:51:04 pm ---Works fine, here.
I set a BP in C::B's "main" function -> stops.
While stopped I set a BP in a sub-method that'll be called certainly and hit continue -> stops.
--- End quote ---
ollydbg: Have your read the line in bold?
--- End quote ---
Yes, I have read that, I also had tested that method.
I just set a breakpoint in the main function, which is in
F:\cb_svn\src\tools\ConsoleRunner\main.cpp
But it still can't stops there. :(
--- Code: ---
Working dir : F:\cb_svn\src\
> set prompt >>>>>>cb_gdb:
Reading symbols from F:\cb_svn\src/devel/codeblocks.exe...
done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source F:\debugger_branch\src\output\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> cd devel
>>>>>>cb_gdb:
> directory F:/cb_svn/src/
>>>>>>cb_gdb:
> set args --debug-log --no-check-associations -ns -nd
>>>>>>cb_gdb:
> break "F:/cb_svn/src/tools/ConsoleRunner/main.cpp:84"
No source file named F:/cb_svn/src/tools/ConsoleRunner/main.cpp.
Breakpoint 2 ("F:/cb_svn/src/tools/ConsoleRunner/main.cpp:84) pending.
>>>>>>cb_gdb:
> run
--- End code ---
oBFusCATed:
main should be in src/src/main.cpp not in the console runner :)
MortenMacFly:
--- Quote from: ollydbg on October 08, 2009, 03:54:28 pm ---F:\cb_svn\src\tools\ConsoleRunner\main.cpp
--- End quote ---
Harhar... :lol:
Well... try a BP src/src/main.cpp e.g. in the CreateIDE() method.
The main.cpp you pointed to will not work, obviously, as this is only the console_runner executable, not C::B itself. ;-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version