User forums > Help
Problems debugging in Codeblocks
Totoxa:
I think that the reason of this is at the file "gdb_commands.h":
--- Code: ---class GdbCmd_AddBreakpoint : public DebuggerCmd
{
DebuggerBreakpoint* m_BP;
public:
/** @param bp The breakpoint to set. */
GdbCmd_AddBreakpoint(DebuggerDriver* driver, DebuggerBreakpoint* bp)
: DebuggerCmd(driver),
m_BP(bp)
{
// gdb doesn't allow setting the bp number.
// instead, we must read it back in ParseOutput()...
m_BP->index = -1;
--- End code ---
here the index of the breakpoint is set to -1, and it appears that it is never changed, so when the function "RemoveBreakpoint"
--- Code: ---void GDB_driver::RemoveBreakpoint(DebuggerBreakpoint* bp)
{
if (bp && bp->index != -1)
QueueCommand(new GdbCmd_RemoveBreakpoint(this, bp));
}
--- End code ---
is called the breakpoint doesnt get removed. i dont know how to solve it(if it is the cause).
EDIT: OK, now i understand..., thanks
ollydbg:
--- Quote from: oBFusCATed on February 05, 2012, 10:59:18 pm ---2. Don't use localized versions of gdb, it will break debugging 100% guaranteed.
--- End quote ---
@Totoxa
The debugger plugin just parses the message returned from gdb command line, and sends some command also. So, if you use a localized gdb, it will definitely fail this handshake. So, please use an original (English language) gdb.
Totoxa:
--- Quote from: ollydbg on February 06, 2012, 02:41:26 am ---
--- Quote from: oBFusCATed on February 05, 2012, 10:59:18 pm ---2. Don't use localized versions of gdb, it will break debugging 100% guaranteed.
--- End quote ---
@Totoxa
The debugger plugin just parses the message returned from gdb command line, and sends some command also. So, if you use a localized gdb, it will definitely fail this handshake. So, please use an original (English language) gdb.
--- End quote ---
Yes, yes, because that was the edit in my last post. thanks!
Totoxa:
renaming the file /usr/share/locale-langpack/es/LC_MESSAGES/gdb.mo gdb display messages in english, so the problem has gone, thanks
Navigation
[0] Message Index
[*] Previous page
Go to full version