Patch for linuxthreads_db/td_thr_getgregs.c
Andreas Jaeger
aj@suse.de
Tue Jan 11 12:07:00 GMT 2000
The patch wasn't complete - here's a complete one which also work ;-).
Uli, if those function declarations are indeed correct (which I
doubt), you need to change td_thr_getgregs.c accordingly (memset
(&greg,...)).
Andreas
2000-01-11 Andreas Jaeger <aj@suse.de>
* proc_service.h: Correct last arguments of ps_lsetregs and
ps_lgetregs.
* thread_db.h: Fix second argument of td_thr_getgregs and
td_thrsetregs.
* td_thr_getgregs.c (td_thr_getgregs): Likewise.
* td_thr_setgregs.c (td_thr_getgregs): Likewise.
============================================================
Index: linuxthreads_db/td_thr_getgregs.c
--- linuxthreads_db/td_thr_getgregs.c 1999/11/02 23:40:25 1.2
+++ linuxthreads_db/td_thr_getgregs.c 2000/01/11 20:03:05
@@ -1,5 +1,5 @@
/* Get a thread's general register set.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
@@ -22,7 +22,7 @@
td_err_e
-td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs)
+td_thr_getgregs (const td_thrhandle_t *th, prgregset_t *gregs)
{
struct _pthread_descr_struct pds;
============================================================
Index: linuxthreads_db/thread_db.h
--- linuxthreads_db/thread_db.h 1999/11/03 05:33:23 1.6
+++ linuxthreads_db/thread_db.h 2000/01/11 20:03:06
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -372,7 +372,7 @@
/* Retrieve general register contents of process running thread TH. */
extern td_err_e td_thr_getgregs (const td_thrhandle_t *__th,
- prgregset_t __gregs);
+ prgregset_t *__gregs);
/* Retrieve extended register contents of process running thread TH. */
extern td_err_e td_thr_getxregs (const td_thrhandle_t *__th, void *__xregs);
@@ -386,7 +386,7 @@
/* Set general register contents of process running thread TH. */
extern td_err_e td_thr_setgregs (const td_thrhandle_t *__th,
- prgregset_t __gregs);
+ const prgregset_t *__gregs);
/* Set extended register contents of process running thread TH. */
extern td_err_e td_thr_setxregs (const td_thrhandle_t *__th,
============================================================
Index: linuxthreads_db/proc_service.h
--- linuxthreads_db/proc_service.h 1999/12/02 08:07:10 1.6
+++ linuxthreads_db/proc_service.h 2000/01/11 20:03:06
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -52,9 +52,9 @@
extern ps_err_e ps_lgetregs(struct ps_prochandle *,
- lwpid_t, prgregset_t);
+ lwpid_t, prgregset_t *);
extern ps_err_e ps_lsetregs(struct ps_prochandle *,
- lwpid_t, const prgregset_t);
+ lwpid_t, const prgregset_t *);
extern ps_err_e ps_lgetfpregs(struct ps_prochandle *,
lwpid_t, prfpregset_t *);
extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
============================================================
Index: linuxthreads_db/td_thr_setgregs.c
--- linuxthreads_db/td_thr_setgregs.c 1999/11/02 23:40:25 1.2
+++ linuxthreads_db/td_thr_setgregs.c 2000/01/11 20:03:06
@@ -1,5 +1,5 @@
/* Set a thread's general register set.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
@@ -22,7 +22,7 @@
td_err_e
-td_thr_setgregs (const td_thrhandle_t *th, prgregset_t gregs)
+td_thr_setgregs (const td_thrhandle_t *th, const prgregset_t *gregs)
{
struct _pthread_descr_struct pds;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list