diff options
Diffstat (limited to 'gdb/compile/compile.c')
-rw-r--r-- | gdb/compile/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index bbb31f1..e4865d0 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -648,12 +648,12 @@ eval_compile_command (struct command_line *cmd, const char *cmd_string, /* See compile/compile-internal.h. */ -char * +std::string compile_register_name_mangled (struct gdbarch *gdbarch, int regnum) { const char *regname = gdbarch_register_name (gdbarch, regnum); - return xstrprintf ("__%s", regname); + return string_printf ("__%s", regname); } /* See compile/compile-internal.h. */ |