diff options
author | 2018-05-05 10:24:54 -0600 | |
---|---|---|
committer | 2018-06-07 06:38:18 -0600 | |
commit | c7110220be62590222e35525dda499902ee49a89 (patch) | |
tree | 34756b1adffc595768d9c9d9e3c8197aefed0af5 /gdb/defs.h | |
parent | Fix AArch64 unintialized variable which can cause diagnostic failures. (diff) | |
download | binutils-gdb-c7110220be62590222e35525dda499902ee49a89.tar.gz binutils-gdb-c7110220be62590222e35525dda499902ee49a89.tar.bz2 binutils-gdb-c7110220be62590222e35525dda499902ee49a89.zip |
Change build_address_symbolic to return std::string
This changes two out parameters of build_address_symbolic to be
std::string, and updates the callers. This allows removing some
cleanups.
This patch also moves the declaration of build_address_symbolic out of
defs.h. I think that many things in defs.h should be elsewhere
instead. In this case, I moved the declaration to valprint.h, becuase
there is no "printcmd.h" -- but perhaps it would be better to
introduce that instead.
Tested by the buildbot.
gdb/ChangeLog
2018-06-07 Tom Tromey <tom@tromey.com>
* valprint.h (build_address_symbolic): Declare.
* printcmd.c (print_address_symbolic): Update.
(build_address_symbolic): Change "name" and "filename" to
std::string.
* disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
Update.
* defs.h (build_address_symbolic): Remove declaration.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index dc38a288c5a..4cf83f0d443 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -327,15 +327,6 @@ extern int print_address_symbolic (struct gdbarch *, CORE_ADDR, struct ui_file *, int, const char *); -extern int build_address_symbolic (struct gdbarch *, - CORE_ADDR addr, - int do_demangle, - char **name, - int *offset, - char **filename, - int *line, - int *unmapped); - extern void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *); extern const char *pc_prefix (CORE_ADDR); |