diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-20 20:47:34 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-20 20:47:34 +0000 |
commit | 45e6e09116b2fcaafde544d71c4c5d2125ed3fdd (patch) | |
tree | cc484ec973e84c1b4bcb2f8690abd2354938b6ed /gdb/regcache.c | |
parent | 0a4a8def2c1e2e14c1337b4ea46b8d3ac1e1fe75 (diff) | |
download | gdb-45e6e09116b2fcaafde544d71c4c5d2125ed3fdd.tar.gz |
* regcache.c (regcache_print): Use get_current_regcache ()
instead of current_regcache.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 05dc4bb77a2..bea0b82336e 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); } } |