On Thursday 08 October 2009 20:33:31 Frederik Schüler wrote:
> On Friday 09 October 2009 01:14:13 Dmitry V. Levin wrote:
> > On sparc, it is defined as "static struct regs regs;"
> > Nothing has changed in this area since v4.5.18.
> 
> Yes, still barfing:
> 
> gcc -DHAVE_CONFIG_H -I. -I.. -Ilinux/sparc -I../linux/sparc -Ilinux
>  -I../linux -Wall -g -O2 -MT syscall.o -MD -MP -MF .deps/syscall.Tpo -c -o
>  syscall.o ../syscall.c
> ../syscall.c: In function ‘get_scno’:
> ../syscall.c:1192: error: invalid use of undefined type ‘struct regs’
> ../syscall.c:1234: error: invalid use of undefined type ‘struct regs’
> ../syscall.c:1234: warning: format ‘%08x’ expects type ‘unsigned int’, but
> argument 3 has type ‘long unsigned int’
> 
> (sid)f...@smetana:~/strace-4.5.19$ uname -a
> Linux smetana 2.6.26-2-sparc64-smp #1 SMP Thu Aug 20 16:48:42 UTC 2009
>  sparc64 GNU/Linux
> (sid)f...@smetana:~/strace-4.5.19$ gcc --version
> gcc (Debian 4.3.4-4) 4.3.4
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

not related to the running kernel or gcc/glibc.  'struct regs' comes from 
asm/regs*.h which comes from the kernel headers.  2.6.28 and older installed 
it, but it was killed off as "useless" during 2.6.29 development.  presumably 
you're using newer kernel headers version.

going by arch/sparc/kernel/ptrace_*.c, looks like it should be switched to 
struct pt_regs as asm/ptrace.h is still installed.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to