[arch-general] REG_RIP undeclared

Lukáš Jirkovský l.jirkovsky at gmail.com
Sun Jun 6 12:06:26 EDT 2010


2010/6/6 Lukáš Jirkovský <l.jirkovsky at gmail.com>:
>>>
>>
>> Oh, now I see where the problem is. There are several includes named ucontext.h
>>
>> Lukas
>>
>
> OK, that's not the problem. I tried compiling it with -save-temps
> option passed to gcc and I see that the correct file is included but
> for some reason the #ifdef __USE_GNU part is not included even though
> __USE_GNU is defined before #include <ucontext.h>
>
> Any ideas?
>

Anyway, if I copy the part

#ifdef __USE_GNU
/* Number of each register in the `gregset_t' array.  */
enum
{
  REG_R8 = 0,
# define REG_R8     REG_R8
…
# define REG_CR2    REG_CR2
};
#endif

from the sys/ucontext.h to another file the enum is included correctly
and application.c compiles.


More information about the arch-general mailing list