This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Support for the $_siginfo convenience var in sparc64
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 22 Oct 2013 15:38:23 +0200
- Subject: Re: [PATCH] Support for the $_siginfo convenience var in sparc64
- Authentication-results: sourceware.org; auth=none
- References: <8761sptppx dot fsf at oracle dot com> <52667BC5 dot 2050300 at redhat dot com>
> The following patch adds support for the $_siginfo convenience variable
> to sparc64-*-linux-gnu targets.
I take it from the patch that linux-tdep.c:linux_get_siginfo_type wouldn't
work for sparc64? Why is that? What's different?
These are the differences of glibc's bits/siginfo.h in sparc with
respect to bits/siginfo.h in x86:
- The _sigfault struct has an additional field `int si_trapno'.
- The `si_band' field in the `_sigpoll' struct is of type `int' instead
of `long int'.
It would be nice to avoid all that code repetition, but since glibc
maintains per-target bits/signinfo.h files more differences could be
introduced in the future...