From: Mark Wielaard <mark@klomp.org>
To: Jose Flavio Aguilar Paulino <jflavio@br.ibm.com>
Cc: Frysk <frysk@sourceware.org>
Subject: Re: New Libunwind for Power Fix
Date: Sat, 13 Oct 2007 14:19:00 -0000 [thread overview]
Message-ID: <1192285177.3905.46.camel@dijkstra.wildebeest.org> (raw)
In-Reply-To: <1192120504.12765.2.camel@kandinsky.prado>
Hi Jose,
On Thu, 2007-10-11 at 13:35 -0300, Jose Flavio Aguilar Paulino wrote:
> This patch fix the libunwind that was recently imported.
> Through this libunwind can properly compile for Power64 and Power32.
Thanks! I added these patches as follows:
frysk-imports/libunwind/ChangeLog:
2007-10-12 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com>
* include/tdep-ppc32/libunwind_i.h: Define tdep_fetch_proc_info_post.
(tdep_get_elf_image): Add void *arg argument.
* include/tdep-ppc64/libunwind_i.h: Likewise.
* src/Makefile.am (libunwind_la_SOURCES_ppc): Add
ppc/Lfetch_proc_info_post.c.
(libunwind_ppc_la_SOURCES_ppc_generic): Add
ppc/Gfetch_proc_info_post.c.
* src/ppc/Gfetch_proc_info_post.c: New file.
* src/ppc/Lfetch_proc_info_post.c: New file.
* src/ppc32/Ginit.c (get_static_proc_name): Pass through arg.
* src/ppc64/Ginit.c (get_static_proc_name): Likewise.
I also added ppc32 as proper libunwind target in the frysk build so
things get configured and build properly by default now:
frysk-imports/ChangeLog:
2007-10-12 Mark Wielaard <mwielaard@redhat.com>
* Makefile.am: Set LIBUNWIND_ARCH_DIR, LIBUNWIND_OTHER_DIRS and
GEN_GCJ_LDADD_LIST to include ppc32 target.
* bootstrap.sh: Add ppc32 to isa list.
common/ChangeLog:
2007-10-12 Mark Wielaard <mwielaard@redhat.com>
* m4/frysk-use-libunwind.m4: Check for and transform powerpc target
to ppc32.
frysk-imports/libunwind/ChangeLog:
2007-10-12 Mark Wielaard <mwielaard@redhat.com>
* src/ppc32/ucontext_i.h: Use locally defined reg structs.
As you see I had to add a similar patch to ppc32/ucontext_i.h that I
send you for ppc64/ucontext_i.h earlier because we want to be able to
compile for targets on hosts that might not have the kernel headers with
those structures in them available. Please do double check, I didn't
have a ppc machine available to test.
On each target you can build frysk with --enable-check-libunwind which
will build the tests for that particular target for a make check that
you can then compare with libunwind upstream results. They should be
fairly comparable (modulo a few extra/adjusted tests in frysk).
See http://sourceware.org/ml/frysk/2007-q4/msg00022.html
To complete unwinding/stack support in frysk for ppc some more work is
necessary:
- frysk-sys/lib/unwind and cni support should be added.
This isn't particularly hard, see the existing
UnwindRegisters[X86].shenum,shjava and cni/Unwind[X86].cxx examples.
Just need to make sure that the right mappings to/from registers and
the right libunwind target is selected.
- frysk-core/frysk/stack/LibunwindAddressSpace.java
Should select the right unwind target (has hardcoded dependencies on
x86/x86_64 currently).
- frysk-core/frys/isa/ Registers and frysk-core/frysk/proc Task should
have the correct register names, register banks and selection.
Andrew is currently reorganizing this code (see his recent messages
to the list).
Cheers,
Mark
P.S. I will be without internet access for a couple of days, so I might
take a while to respond to questions.
prev parent reply other threads:[~2007-10-13 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-11 16:36 Jose Flavio Aguilar Paulino
2007-10-13 14:19 ` Mark Wielaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192285177.3905.46.camel@dijkstra.wildebeest.org \
--to=mark@klomp.org \
--cc=frysk@sourceware.org \
--cc=jflavio@br.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).