From 144529d0d22409ef28eaf39c25767f817d017fdd Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 20 May 2004 17:47:55 +0000 Subject: [PATCH] * regset.h: Make prototype const-correct. * regset.c (regset_xmalloc): Make const-correct. --- gdb/ChangeLog | 5 +++++ gdb/regset.c | 2 +- gdb/regset.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ff565e5557..dbf56dc6aa1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-20 Mark Kettenis + + * regset.h: Make prototype const-correct. + * regset.c (regset_xmalloc): Make const-correct. + 2004-05-20 Paul N. Hilfinger * symtab.h (SYMBOL_SEARCH_NAME): New definition. diff --git a/gdb/regset.c b/gdb/regset.c index 98fb6650c68..2ab40b87ebc 100644 --- a/gdb/regset.c +++ b/gdb/regset.c @@ -25,7 +25,7 @@ struct regset * -regset_xmalloc (void *descr, +regset_xmalloc (const void *descr, supply_regset_ftype *supply_regset, collect_regset_ftype *collect_regset) { diff --git a/gdb/regset.h b/gdb/regset.h index 1d4355c5943..b787c72a9be 100644 --- a/gdb/regset.h +++ b/gdb/regset.h @@ -52,7 +52,7 @@ struct regset pass NULL for COLLECT_REGSET. The object returned is allocated using xmalloc. */ -extern struct regset *regset_xmalloc (void *descr, +extern struct regset *regset_xmalloc (const void *descr, supply_regset_ftype *supply_regset, collect_regset_ftype *collect_regset); -- 2.30.2