duane> [cortex & gdb do not work - please help]
Duane> There must be some [gdb] magic incarnation that I do not know.
spen> There are as such two versions of gdb - mainline and codesoucery.
spen> Support for the arm v7 arch is in codesoucery version -
Actually 3 versions - if you toss in the Insight Fork.
I have the code codesoucery versions.
spen> but you will still [need the] target.xml
I know nothing of that. Please tell me more.
spen> I have had no issues with debugging using mainline gdb - but as
you have
spen> seen disassembly will not work correctly.
I can get nothing in gdb to work with cortex.
spen> openocd contains a few hacks (define ARMV7_GDB_HACKS in armv7m.h)
that makes
spen> mainlinegdb behave better with the v7 arch.
Tell me more. Perhaps that is the magic that I am missing.
My tools must support multiple targets. If this means I build & install
two different OPENOCD executables I do not care. I just need to know.
-------
spen> Could you give more details on your setup, as i have had no
problems with
spen> stm32 debugging using gdb/insight, even eclipse.
I perhaps have a *TOTALLY* wrong 'openocd.cfg' file - I have tired so
many different ones that I am confused about which one worked when I got
it to flash the chip. Please if you can - send me one - complete -
standalone one that works with GDB ... or point me at one.
Otherwise - I use:
binutils-2008q1-126.tar.gz [codesoucery] unpacks into binutils-stable
configured with:
GNU_TARGET=arm-none-eabi
binutils.configure:
rm -rf $(BINUTILS_BUILD_DIR)
mkdir $(BINUTILS_BUILD_DIR)
cd $(BINUTILS_BUILD_DIR) && ../binutils-stable/configure \
--disable-nls \
--target=$(GNU_TARGET) \
--prefix=$(INSTALL_DIR)
-------------------------------------------------
gcc-2008q1-126.tar.bz2 [ unpacks into folder: gcc-4.2]
Configured with: [cut out of the makefile I use to build them]
GNU_TARGET=arm-none-eabi
gcc2.configure:
rm -rf $(GCC2_BUILD)
mkdir $(GCC2_BUILD)
cd $(GCC2_BUILD) && ../gcc-4.2/configure \
--prefix=$(INSTALL_DIR) \
--target=$(GNU_TARGET) \
--enable-threads \
--disable-libmudflap \
--disable-libssp \
--disable-libgomp \
--disable-libstdcxx-pch \
--with-gnu-as \
--with-gnu-ld \
--enable-languages=c,c++ \
--disable-shared \
--with-newlib \
--disable-nls \
--with-headers=yes \
--enable-poison-system-directories
-------------------------------------------------
gdb-2008q1-126.tar.bz2 [unpacks into folder: gdb-stable]
configured with:
NOTE:
I also apply an inconsequential patch to ${gcc}/gcc/config/arm/t-arm-elf
I build more "multi-lib" libraries then code sorcery does.
[I build interwork & more arch configs then they do]
[my tool chain supports arm7tdmi, arm920t, and armv5te chips + cortex]
GNU_TARGET=arm-none-eabi
gdb.configure:
rm -rf $(GDB_BUILD)
mkdir -p $(GDB_BUILD)
cd $(GDB_BUILD) && ../gdb-stable/configure \
--prefix=$(INSTALL_DIR) \
--target=$(GNU_TARGET) \
--disable-nls \
--with-system-gdbinit=$(INSTALL_LIB)/gdbinit
-------------------------------------------------
Insight version 6.8
GNU_TARGET=arm-none-eabi
insight.configure:
rm -rf insight-build
mkdir -p insight-build
cd insight-build && ../insight-6.8/configure \
--prefix=$(INSTALL_DIR) \
--target=$(GNU_TARGET) \
--disable-nls
----
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development