[PATCH V2 0/2] Add C-SKY support

Mark Wielaard mark@klomp.org
Sun Apr 14 20:23:00 GMT 2019

On Wed, 2019-04-10 at 15:51 +0800, Mao Han wrote:
> I'v check some of the failed testcase.

Thanks for double checking, it seems we understand all of the cases why
they fail except...

> > I haven't looked at the code yet, so maybe none of the backtrace tests
> > would work even if you could run in "full system mode". If you do have
> > a way to generate a C-SKY core file it would be interesting to see if
> > you can get a backtrace from it using eu-stack.
> I'v tried that and not able to get a backtrace, seems something wrong
> with the csky_corenote.c?
> # eu-stack --core=./core 
> PID 142 - core
> eu-stack: Couldn't show any frames.

It is hard to say what went wrong.
In theory you can examine the executable and core file cross arch, if
there is backend support. So if you could post a small binary and a
core file for it somewhere we can try debugging together.

Try something like:
$ ulimit -c unlimited
$ echo "int main () { int i = 1; i /= i - 1; }" | gcc -xc -static -o divzero -
$ ./divzero 
Floating point exception (core dumped)
$ eu-stack --core core.18678 --exec divzero
PID 18678 - core
TID 18678:
#0  0x0000000000400ff3 main
#1  0x00000000004011e4 generic_start_main
#2  0x0000000000401461 __libc_start_main
#3  0x0000000000400ef6 _start

If you could run that on your C-SKY setup and post the (static) binary
and core file somewhere (they are probably too big for the mailinglist.



More information about the Elfutils-devel mailing list