Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Debug U-boot support?

<< < (2/2)

jinxin16897123:

--- Quote ---1. There is an option to prevent auto building: Settings -> Debugger ->  Common -> Auto build project if it is not up to date.
--- End quote ---
This seems to solve the 1st question. thanks.
I'm trying the 2rd problem.

jinxin16897123:
I've tried , It couldn't open any source file.

Would you like to add feature which debug u-boot ?
thanks.

ollydbg:

--- Quote ---could you open z:/u-boot.201301/file1.c instead of /home/Tom/project/u-boot.201301/file1.c while debugging
--- End quote ---
When you build the file under /home/Tom/project/u-boot.201301/file1.c, let the compiler build with  relative path, e.g.

--- Code: ---gcc file1.c
--- End code ---
Now, when debugging your target on another computer, run the gdb command like:

--- Code: ---directory z:/u-boot.201301

--- End code ---
This will let the GDB to search a file named "file1.1" on the folder "z:/u-boot.201301".

I think you should make a simple example on the command line firstly, if it works, then you can switch to using C::B instead, that will not be hard.

EDIT: do you use the same GDB? Can you debug the target in either computer A or computer B?


jinxin16897123:
Thanks. I've add an option to arm-none-eabi-gcc :
-fdebug-prefix-map=/home/Tom/project=Z:

this options seems good.

Thank you very much.

Navigation

[0] Message Index

[*] Previous page

Go to full version