Index: gdb/gdbserver/proc-service.c |
diff --git a/gdb/gdbserver/proc-service.c b/gdb/gdbserver/proc-service.c |
index 5584dab87e266e829fa40930d68d03e7df836755..69b86f8bb9332c2cade4b8137a5a834fcf6e2be2 100644 |
--- a/gdb/gdbserver/proc-service.c |
+++ b/gdb/gdbserver/proc-service.c |
@@ -1,5 +1,5 @@ |
/* libthread_db helper functions for the remote server for GDB. |
- Copyright (C) 2002, 2004-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2002-2013 Free Software Foundation, Inc. |
Contributed by MontaVista Software. |
@@ -39,18 +39,20 @@ typedef size_t gdb_ps_size_t; |
#ifdef HAVE_REGSETS |
static struct regset_info * |
-gregset_info(void) |
+gregset_info (void) |
{ |
int i = 0; |
+ const struct regs_info *regs_info = (*the_low_target.regs_info) (); |
+ struct regsets_info *regsets_info = regs_info->regsets_info; |
- while (target_regsets[i].size != -1) |
+ while (regsets_info->regsets[i].size != -1) |
{ |
- if (target_regsets[i].type == GENERAL_REGS) |
+ if (regsets_info->regsets[i].type == GENERAL_REGS) |
break; |
i++; |
} |
- return &target_regsets[i]; |
+ return ®sets_info->regsets[i]; |
} |
#endif |