Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Don't define
	register names unconditionally, only if __USE_GNU.
  • Loading branch information
Ulrich Drepper committed Oct 12, 1999
1 parent 08920a5 commit 252470b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
1999-10-12 Ulrich Drepper <drepper@cygnus.com>

* sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Don't define
register names unconditionally, only if __USE_GNU.

* debug/Makefile: Fix rules to generate pcprofiledump.

* include/ucontext.h: New file.
Expand Down
40 changes: 21 additions & 19 deletions sysdeps/unix/sysv/linux/i386/sys/ucontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,48 +36,50 @@ typedef int greg_t;
/* Container for all general registers. */
typedef greg_t gregset_t[NGREG];

#ifdef __USE_GNU
/* Number of each register is the `gregset_t' array. */
enum
{
GS = 0,
#define GS GS
# define GS GS
FS,
#define FS FS
# define FS FS
ES,
#define ES ES
# define ES ES
DS,
#define DS DS
# define DS DS
EDI,
#define EDI EDI
# define EDI EDI
ESI,
#define ESI ESI
# define ESI ESI
EBP,
#define EBP EBP
# define EBP EBP
ESP,
#define ESP ESP
# define ESP ESP
EBX,
#define EBX EBX
# define EBX EBX
EDX,
#define EDX EDX
# define EDX EDX
ECX,
#define ECX ECX
# define ECX ECX
EAX,
#define EAX EAX
# define EAX EAX
TRAPNO,
#define TRAPNO TRAPNO
# define TRAPNO TRAPNO
ERR,
#define ERR ERR
# define ERR ERR
EIP,
#define EIP EIP
# define EIP EIP
CS,
#define CS CS
# define CS CS
EFL,
#define EFL EFL
# define EFL EFL
UESP,
#define UESP UESP
# define UESP UESP
SS
#define SS SS
# define SS SS
};
#endif

/* Structure to describe FPU registers. */
typedef struct _fpstate *fpregset_t;
Expand Down

0 comments on commit 252470b

Please sign in to comment.