User forums > Using Code::Blocks

c::b's macro replace map sometime doe not work correctly

(1/3) > >>

ollydbg:
I have the string put in debugger initial command:

--- Code: ---source $(TARGET_COMPILER_DIR)bin\my.gdb

--- End code ---

But when gdb runs, I see it looks like below:

--- Code: ---[debug]> source bin\my.gdb
[debug]bin\my.gdb: No such file or directory.

--- End code ---

But most of the time, it works Ok, which means the value "$(TARGET_COMPILER_DIR)" was replaced correctly, and my.gdb was correctly located and run.

Did you also experience this bug?

I'm using the latest nightly build (windows XP)

MortenMacFly:

--- Quote from: ollydbg on August 29, 2012, 04:50:57 am ---But most of the time, it works Ok, which means the value "$(TARGET_COMPILER_DIR)" was replaced correctly, and my.gdb was correctly located and run.

--- End quote ---
I think this is the same as we have on our ToDo list for macro replacements.

Jenna:
Is it possible that cc is parsing files in the background ?
Or in other words, did it ever happen withh cc disabled ?

ollydbg:

--- Quote from: jens on August 29, 2012, 06:35:03 am ---Is it possible that cc is parsing files in the background ?
Or in other words, did it ever happen withh cc disabled ?

--- End quote ---
It looks like this issue does not caused by cc.

Here are some cases:
1, I meet this issue when start debugging
2, I disable CC in the plugin manager
3, I start debugging again
4, this issue still exists.

Here is another test case:
1, disable CC plugin
2, restart CB
3, open a project. (I open the codeblocks.workspace)
4, start the debugging
5, this issue happens.

The strange thing is: if this issue happens, it will happens unless I restart c::b.

BTW: Is there any way I can quickly check the build-in variable's value like  "$(TARGET_COMPILER_DIR)", I would like to print its value in script console, but I don't know how to do it. I'm not familiar with scripts in C::B.

oBFusCATed:
So if this issue is repeatable, you can start C::B under gdb and wait.

Navigation

[0] Message Index

[#] Next page

Go to full version