public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Add C-SKY support
@ 2019-04-10  7:59 Mao Han
  2019-04-10  8:00 ` [PATCH V2 1/2] libelf: Sync elf.h from glibc Mao Han
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mao Han @ 2019-04-10  7:59 UTC (permalink / raw)
  To: elfutils-devel; +Cc: ren_guo, Mao Han

I'v check some of the failed testcase.
> > FAIL: run-native-test.sh
> > ========================
> > 
> > allregs: 23064: No such file or directory
> > FAIL run-native-test.sh (exit status: 1)
> 
> This is probably because of the script modifications. The test cannot
> find the running process.
> 
The script pass the pid of shell script to ssh which is not exist on target.

FAIL: run-deleted.sh
> > FAIL: run-dwarf-getmacros.sh
> > ============================
> > 
> > --- dwarf-getmacros.out 2019-02-19 19:28:29.405840052 +0800
> > +++ /tmp/123 2019-02-19 19:28:27.789032052 +0800
> > @@ -1 +1,4 @@
> > -invalid opcode
> > +opcode 255 with 0 arguments
> > +file /home/petr/proj/elfutils/master/elfutils/x.c
> > + FOO 0
> > +/file
> > FAIL run-dwarf-getmacros.sh (exit status: 1)
> 
> This is again surprising.  I think something went wrong invoking the
> test.  If you look at tests/run-dwarf-getmacros.sh you'll see that it
> runs the last testcase twice. Once with 2 and once with 3
> arguments. The third argument is the empty string (but could really be
> anything). Maybe the empty string was lost somehow?

Yes, the empty string is lost. It can pass if I ran the command directly.

> 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.

> > FAIL: run-deleted.sh
> > ====================
> > 
> > PID 12587 - process
> > TID 12587:
> > #0 0x2ab79648 sleep
> > #1 0x2ab79648 sleep
> > #2 0x2aace6a4
> > /home/vmh/elfutilswk/src/stack: dwfl_thread_getframes tid 12587 at 0x2aace6a3 in /home/vmh/elfutilswk/tests/test-25076/deleted-lib.so: Callback returned failure
> > ./run-deleted.sh: line 38: kill: (12587) - No such process
> > FAIL run-deleted.sh (exit status: 1)
> 
> This is again most likely because of script changes.
> The test cannot find the running process.
This case can pass if I ran the command directly.

Changes since v1:
  - Add the Signed-off-by line and the copyright

Mao Han (2):
  libelf: Sync elf.h from glibc
  Add backend support for C-SKY

 backends/ChangeLog       |  13 +++++
 backends/Makefile.am     |   9 +++-
 backends/csky_cfi.c      |  60 +++++++++++++++++++++++
 backends/csky_corenote.c |  61 ++++++++++++++++++++++++
 backends/csky_init.c     |  65 +++++++++++++++++++++++++
 backends/csky_initreg.c  |  86 +++++++++++++++++++++++++++++++++
 backends/csky_regs.c     | 122 +++++++++++++++++++++++++++++++++++++++++++++++
 backends/csky_reloc.def  |  86 +++++++++++++++++++++++++++++++++
 backends/csky_symbol.c   |  77 ++++++++++++++++++++++++++++++
 libebl/eblopenbackend.c  |   1 +
 libelf/ChangeLog         |   4 ++
 libelf/elf.h             |  96 ++++++++++++++++++++++++++++++++++++-
 src/elflint.c            |   2 +-
 13 files changed, 677 insertions(+), 5 deletions(-)
 create mode 100644 backends/csky_cfi.c
 create mode 100644 backends/csky_corenote.c
 create mode 100644 backends/csky_init.c
 create mode 100644 backends/csky_initreg.c
 create mode 100644 backends/csky_regs.c
 create mode 100644 backends/csky_reloc.def
 create mode 100644 backends/csky_symbol.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-26  7:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10  7:59 [PATCH V2 0/2] Add C-SKY support Mao Han
2019-04-10  8:00 ` [PATCH V2 1/2] libelf: Sync elf.h from glibc Mao Han
2019-04-14 20:32   ` Mark Wielaard
2019-04-10  8:00 ` [PATCH V2 2/2] Add backend support for C-SKY Mao Han
2019-04-15 11:09   ` Mark Wielaard
2019-04-16  7:14     ` Mao Han
2019-04-14 20:23 ` [PATCH V2 0/2] Add C-SKY support Mark Wielaard
2019-04-17  6:45   ` Mao Han
2019-06-24 22:26     ` Mark Wielaard
2019-06-26  7:21       ` Mao Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).