Hi Jeff,
Please can apply the attached patch ? It adds DWARF2 debug
information to the hand coded MN10300 functions in
libc/machine/mn10300. The gas switch --gdwarf-2 is used to add some
of the information, and the call frame info is just created by hand.
Tested by building an mn10300-elf toolchain and running the GDB
testsuite. It reduced the unexpected failures by about 30.
Cheers
Nick
newlib/ChangeLog
2007-11-19 Nick Clifton <nickc@redhat.com>
* libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
* libc/machine/mn10300/Makefile.in: Regenerate.
* libc/machine/mn10300/memchar.S: Remove redundant labels. Add
.debug_frame section.
* libc/machine/mn10300/memcmp.S: Likewise.
* libc/machine/mn10300/memcpy.S: Likewise.
* libc/machine/mn10300/memset.S: Likewise.
* libc/machine/mn10300/strchr.S: Likewise.
* libc/machine/mn10300/strcmp.S: Likewise.
* libc/machine/mn10300/strcpy.S: Likewise.
* libc/machine/mn10300/strlen.S: Likewise.