User forums > Embedded development
Set remote debug option with Wizard script [SOLVED]
BlueHazzard:
i tried your code and it does not work for me...
can you post more code?
BlueHazzard:
i looked into the code of
--- Code: ---void cbProject::AddToExtensions(const wxString& stringDesc)
--- End code ---
and i have to tell you with this code it will not work... The problem is that the code does not look for attributes of the xml nodes. For the current code
--- Code: ---<remote_debugging target="Debug">
</remote_debugging>
--- End code ---
is the same as
--- Code: ---<remote_debugging target="Release">
</remote_debugging>
--- End code ---
so if the code comes to the first remote_debugging target node it will use it. The code needs modifications... Can you open a ticket on sourceforge? Probably i find time today to fix this and post a patch, but you have to find a dev who applies it ;)
anandamu16:
--- Quote ---i tried your code and it does not work for me...
can you post more code?
--- End quote ---
It will not work today, I applied a hack in debuggergdb.cpp file to make it work.
Kindly refer the reply of tomjnx in this same thread, he introduced a patch, I applied it and it worked.
--- Quote ---tomjnx
Multiple posting newcomer
Re: Set remote debug option with Wizard script
« Reply #11 on: January 10, 2013, 11:38:36 am »
Quote
Something like this?
You could then add something to "debugger/scriptadd/x", which would then be converted to "debugger/x" on first save (or load)
Yes it's a hack, but minimally intrusive, and the whole AddToExtension interface seems a bit q&d to me...
--- End quote ---
I have added my modified debuggergdb.cpp file for reference. Kindly search for 'scriptadd' in this file.
Also I modified the code, I posted in last comment by adding /scriptadd/ in path.
If you will make the changes as stated in debuggergdb.cpp and use the above code in wizard.script, you can actualkly see the output
oBFusCATed:
If you want to provide a patch please follow this procedure described here: http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)
EDIT:
fixed link
jens
anandamu16:
Hi oBFusCATed
I am not giving any patch here. I find this solution by someone here on this thread only.
--- Quote ---If you want to provide a patch please follow this procedure described here: http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)
--- End quote ---
Anyway, I tried to follow the link, its an empty page :)
My query is there any way in current codeblocks to get this (in cbp file)
--- Quote ---<remote_debugging target="Debug">
<options conn_type="0" serial_baud="115200" additional_cmds="monitor halt;monitor flash erase_address 0x0 0x10000;load bin/Debug/rth.elf;file bin/Debug/rth.elf;monitor halt; />
</remote_debugging>
<remote_debugging target="Release">
<options conn_type="0" serial_baud="115200" additional_cmds="monitor halt;monitor flash erase_address 0x0 0x10000;load bin/Release/rth.elf;file bin/Release/rth.elf;monitor halt; />
</remote_debugging>
--- End quote ---
I want this to be automatic part of new project created by wizard, for this, I am writing the wizard.script file but don't know how to achieve this. Any help will be of great value?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version