This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support for the $_siginfo convenience var in sparc64


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]