* [rfc] Define PTRACE_GETSIGINFO in linux-nat.c
@ 2007-10-02 7:01 Markus Deuling
2007-10-02 11:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2007-10-02 7:01 UTC (permalink / raw)
To: GDB Patches; +Cc: Daniel Jacobowitz, Ulrich Weigand
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
Hi,
the new save_siginfo() function from linux-nat.c breaks my build on
Linux bbkeks 2.6.9-55.0.6.EL #1 Thu Aug 23 10:59:21 EDT 2007 i686 i686 i386 GNU/Linux
because PTRACE_GETSIGINFO isn't defined in the includes. The patch takes over definition of it from ppc-linux-nat.c
ChangeLog:
* linux-nat.c (PTRACE_GETSIGINFO): Add define.
Tested on x86.
Is this ok to commit or would it be better to move it to a header (linux-nat.h ?) file and delete it from ppc-linux-nat.c as well to prevent
redundancy?
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: diff-PTRACE_GETSIGINFO --]
[-- Type: text/plain, Size: 497 bytes --]
diff -urpN src/gdb/linux-nat.c dev/gdb/linux-nat.c
--- src/gdb/linux-nat.c 2007-10-01 09:00:51.000000000 +0200
+++ dev/gdb/linux-nat.c 2007-10-02 08:43:40.000000000 +0200
@@ -84,6 +84,10 @@
#define __WALL 0x40000000 /* Wait for any child. */
#endif
+#ifndef PTRACE_GETSIGINFO
+#define PTRACE_GETSIGINFO 0x4202
+#endif
+
/* The single-threaded native GNU/Linux target_ops. We save a pointer for
the use of the multi-threaded target. */
static struct target_ops *linux_ops;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc] Define PTRACE_GETSIGINFO in linux-nat.c
2007-10-02 7:01 [rfc] Define PTRACE_GETSIGINFO in linux-nat.c Markus Deuling
@ 2007-10-02 11:41 ` Daniel Jacobowitz
2007-10-02 16:34 ` Ulrich Weigand
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-10-02 11:41 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches, Ulrich Weigand
On Tue, Oct 02, 2007 at 08:59:44AM +0200, Markus Deuling wrote:
> ChangeLog:
>
> * linux-nat.c (PTRACE_GETSIGINFO): Add define.
>
> Tested on x86.
I'm really sorry. Two people told me about this and I still forgot to
fix it before I committed. Patch is OK.
> Is this ok to commit or would it be better to move it to a header (linux-nat.h
> ?) file and delete it from ppc-linux-nat.c as well to prevent redundancy?
ppc-linux-nat.c doesn't need it any more; you can just delete that
copy. I removed the use.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc] Define PTRACE_GETSIGINFO in linux-nat.c
2007-10-02 11:41 ` Daniel Jacobowitz
@ 2007-10-02 16:34 ` Ulrich Weigand
0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Weigand @ 2007-10-02 16:34 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Markus Deuling, GDB Patches
Daniel Jacobowitz wrote:
> On Tue, Oct 02, 2007 at 08:59:44AM +0200, Markus Deuling wrote:
> > ChangeLog:
> >
> > * linux-nat.c (PTRACE_GETSIGINFO): Add define.
> >
> > Tested on x86.
>
> I'm really sorry. Two people told me about this and I still forgot to
> fix it before I committed. Patch is OK.
I've checked this in now.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-02 16:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-02 7:01 [rfc] Define PTRACE_GETSIGINFO in linux-nat.c Markus Deuling
2007-10-02 11:41 ` Daniel Jacobowitz
2007-10-02 16:34 ` Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox