From 324c7572c7320765ce0b3791ff2141f3571ccdac Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 17 Jul 2004 17:09:12 +0000 Subject: Add the const qualifier to the prgregset_t argument for the *setregs* functions. --- lib/libthread_db/include/thread_db.h | 2 +- lib/libthread_db/include/thread_db_int.h | 2 +- lib/libthread_db/pthread/pthread_db.c | 2 +- lib/libthread_db/src/thread_db.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libthread_db') diff --git a/lib/libthread_db/include/thread_db.h b/lib/libthread_db/include/thread_db.h index e5f0c32..82c8dc2 100644 --- a/lib/libthread_db/include/thread_db.h +++ b/lib/libthread_db/include/thread_db.h @@ -267,7 +267,7 @@ td_err_e td_thr_getgregs(const td_thrhandle_t *, prgregset_t); td_err_e td_thr_getxregs(const td_thrhandle_t *, void *); td_err_e td_thr_getxregsize(const td_thrhandle_t *, int *); td_err_e td_thr_setfpregs(const td_thrhandle_t *, const prfpregset_t *); -td_err_e td_thr_setgregs(const td_thrhandle_t *, prgregset_t); +td_err_e td_thr_setgregs(const td_thrhandle_t *, const prgregset_t); td_err_e td_thr_setxregs(const td_thrhandle_t *, const void *); td_err_e td_thr_event_enable(const td_thrhandle_t *, int); td_err_e td_thr_set_event(const td_thrhandle_t *, td_thr_events_t *); diff --git a/lib/libthread_db/include/thread_db_int.h b/lib/libthread_db/include/thread_db_int.h index 177cb4a..5afcb02 100644 --- a/lib/libthread_db/include/thread_db_int.h +++ b/lib/libthread_db/include/thread_db_int.h @@ -64,7 +64,7 @@ struct ta_ops { td_err_e (*to_thr_getxregs)(const td_thrhandle_t *, void *); td_err_e (*to_thr_getxregsize)(const td_thrhandle_t *, int *); td_err_e (*to_thr_setfpregs)(const td_thrhandle_t *, const prfpregset_t *); - td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, prgregset_t); + td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, const prgregset_t); td_err_e (*to_thr_setxregs)(const td_thrhandle_t *, const void *); td_err_e (*to_thr_event_enable)(const td_thrhandle_t *, int); td_err_e (*to_thr_set_event)(const td_thrhandle_t *, td_thr_events_t *); diff --git a/lib/libthread_db/pthread/pthread_db.c b/lib/libthread_db/pthread/pthread_db.c index e4f74a6..9a468b3 100644 --- a/lib/libthread_db/pthread/pthread_db.c +++ b/lib/libthread_db/pthread/pthread_db.c @@ -662,7 +662,7 @@ pt_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs) } static td_err_e -pt_thr_setgregs(const td_thrhandle_t *th, prgregset_t gregs) +pt_thr_setgregs(const td_thrhandle_t *th, const prgregset_t gregs) { struct kse_thr_mailbox tmbx; pt_thragent_t *ta = (pt_thragent_t *)th->th_ta_p; diff --git a/lib/libthread_db/src/thread_db.c b/lib/libthread_db/src/thread_db.c index 24d5e7c..1e841c2 100644 --- a/lib/libthread_db/src/thread_db.c +++ b/lib/libthread_db/src/thread_db.c @@ -232,7 +232,7 @@ td_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs) } 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) { td_thragent_t *ta = th->th_ta_p; -- cgit v1.1