This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux Synthetic target problems


Sergei Gavrikov wrote:
Tyler Wilson wrote:
> > Sergei,
> > 
> > Just to be clear: do you get the same internal error as I do? See here:
> > 
> > twilson@andLinux:~/examples-build$ gdb ./hello
> > GNU gdb 6.8-debian
> > Copyright (C) 2008 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later
> > <http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.  Type "show
> > copying"
> > and "show warranty" for details.
> > This GDB was configured as "i486-linux-gnu"...
> > /build/buildd/gdb-6.8/gdb/dwarf2-frame.c:1837: internal-error:
> > decode_frame_entry_1: Assertion `fde->cie != NULL' failed.
> > A problem internal to GDB has been detected,
> > further debugging may prove unreliable.
> > Quit this debugging session? (y or n)
> 
> Exactly.
> 
> But, when I built old eCos 2.0 tests using gcc-3.2.1, all test did pass
> with _this_ debugger and kernel without any errors.

It is a bit more digged. I found that I have no problem with GNU gdb
6.8-debian (Ubuntu 8.04 LTS) if I compile all synth stuff (got from
latest anon CVS) ... using stable, but, pretty old toolchain:

ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-i386-elf-1.4-2.i386linux.tar.bz2

$ i386-elf-gcc --version|sed -n 1p
i386-elf-gcc (GCC) 3.2.1 (eCosCentric)

How I built

ecosconfig new linux
ecosconfig import /dev/stdin << _EOF
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
    user_value i386-elf
};
_EOF
ecosconfig tree
make -s
sed -i 's@ libgcc_eh.a@@' install/lib/target.ld
make -s tests

Example of session

$ gdb install/tests/infra/current/tests/cxxsupp 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) b cyg_start
Breakpoint 1 at 0x100016f: file
/home/sg/repos/ecos/packages/infra/current/tests/cxxsupp.cxx, line 133.
(gdb) run
Starting program: /tmp/a/install/tests/infra/current/tests/cxxsupp 

Breakpoint 1, cyg_start ()
    at /home/sg/repos/ecos/packages/infra/current/tests/cxxsupp.cxx:133
133	    CYG_TEST_INIT();
(gdb) 


Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]