From: Joel Brobecker <brobecker@adacore.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org, davem@redhat.com
Subject: Re: [RFC/RFT] Use core regset iterators on Sparc Solaris
Date: Wed, 03 Dec 2014 04:01:00 -0000 [thread overview]
Message-ID: <20141203040140.GL4882@adacore.com> (raw)
In-Reply-To: <201411281548.sASFmPd9001359@d03av02.boulder.ibm.com>
Hi Ulrich,
> Sparc/Solaris is another native target still does not use the new-style
> iterate_over_regset_sections core file logic (allowing cross-debugging
> of core files and core file generation).
>
> Fortunately, it should be straightforward to enable to generic sparc logic
> here by simply providing an appropriate register map. In fact, the map
> itself is already present, and can just be reused. The only remaining
> parameters needed are the total sizes of the register sections in core
> files, which I've taken from public OpenSolaris sources.
>
> The patch is untested so far since I don't have access to a Sparc/Solaris
> system. Testing by Solaris maintainers would be much appreciated.
>
> Bye,
> Ulrich
>
> gdb/
> * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
> * sparc-sol2-tdep.c: Include "regset.h".
> (sparc32_sol2_supply_core_gregset): New function.
> (sparc32_sol2_collect_core_gregset): Likewise.
> (sparc32_sol2_supply_core_fpregset): Likewise.
> (sparc32_sol2_collect_core_fpregset): Likewise.
> (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
> (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
> tdep->fpregset/sizeof_fpregset.
> * sparc64-sol2-tdep.c: Include "regset.h".
> (sparc64_sol2_supply_core_gregset): New function.
> (sparc64_sol2_collect_core_gregset): Likewise.
> (sparc64_sol2_supply_core_fpregset): Likewise.
> (sparc64_sol2_collect_core_fpregset): Likewise.
> (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
> (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
> tdep->fpregset/sizeof_fpregset.
I will try to test your patch with AdaCore's testsuite, but
currently, GDB does not build on Solaris, probably because of
the gnulib update. I will try focusing on that first, and then
do the testing.
--
Joel
next prev parent reply other threads:[~2014-12-03 4:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 15:48 Ulrich Weigand
2014-12-03 4:01 ` Joel Brobecker [this message]
2014-12-03 13:23 ` Joel Brobecker
2014-12-03 14:42 ` Ulrich Weigand
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=20141203040140.GL4882@adacore.com \
--to=brobecker@adacore.com \
--cc=davem@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.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