On 7 March 2012 12:28, Drasko DRASKOVIC <drasko.drasko...@gmail.com> wrote:
> Hi all,
> I was wondering wat's the best way to compile OpenOCD binaty with
> debug information.
>
> I'd like to run OpenOCD in GDB and debug it itself, because I run into
> some problems with MIPS target initialization.
>
> Currently I am redefining CFLAGS in ./configure, something like
> CFLAGS="$CFLAGS -g ...", but I am suspecting that there might be some
> more elegant way to do this.
>

'-g -O2' should be the default configure CFLAGS.
If i need to override for debugging i just do

./configure ... CFLAGS='-g -O0'

Cheers
Spen

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to