aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-20 20:47:34 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-20 20:47:34 +0000
commit28c38f1079d1a93a66caafb6e71e4a9533469717 (patch)
treebaeb4ccb62cc7d53a2dfceb36cce9aef2056f4e6 /gdb/regcache.c
parent2b876972d066b862720551f83ca8b08be847b6ce (diff)
downloadgdb-28c38f1079d1a93a66caafb6e71e4a9533469717.zip
gdb-28c38f1079d1a93a66caafb6e71e4a9533469717.tar.gz
gdb-28c38f1079d1a93a66caafb6e71e4a9533469717.tar.bz2
* regcache.c (regcache_print): Use get_current_regcache ()
instead of current_regcache.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 05dc4bb..bea0b82 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);
}
}