From: Ulrich Weigand Date: Wed, 20 Jun 2007 20:47:34 +0000 (+0000) Subject: * regcache.c (regcache_print): Use get_current_regcache () X-Git-Tag: binutils-2_16-branchpoint~229 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=45e6e09116b2fcaafde544d71c4c5d2125ed3fdd;p=pf3gnuchains%2Fpf3gnuchains4x.git * regcache.c (regcache_print): Use get_current_regcache () instead of current_regcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ef274fa556..faa5f4a25f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-06-20 Ulrich Weigand + + * regcache.c (regcache_print): Use get_current_regcache () + instead of current_regcache. + 2007-06-20 H.J. Lu PR 4606 diff --git a/gdb/regcache.c b/gdb/regcache.c index 05dc4bb77a..bea0b82336 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -1114,13 +1114,13 @@ static void regcache_print (char *args, enum regcache_dump_what what_to_dump) { if (args == NULL) - regcache_dump (current_regcache, gdb_stdout, what_to_dump); + regcache_dump (get_current_regcache (), gdb_stdout, what_to_dump); else { struct ui_file *file = gdb_fopen (args, "w"); if (file == NULL) perror_with_name (_("maintenance print architecture")); - regcache_dump (current_regcache, file, what_to_dump); + regcache_dump (get_current_regcache (), file, what_to_dump); ui_file_delete (file); } }