aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-09-22 08:43:47 -0600
committerTom Tromey <tromey@adacore.com>2022-10-17 08:01:39 -0600
commit5fea97943259a2bd997f92ffa66116b5c0d4eaab (patch)
tree9092b5386d358ff88a47b7394083533cb64b50ab /gdb/ada-lang.h
parentacd121de32c3924347f228d8f27000a09b9c8949 (diff)
downloadfsf-binutils-gdb-5fea97943259a2bd997f92ffa66116b5c0d4eaab.zip
fsf-binutils-gdb-5fea97943259a2bd997f92ffa66116b5c0d4eaab.tar.gz
fsf-binutils-gdb-5fea97943259a2bd997f92ffa66116b5c0d4eaab.tar.bz2
Improve Ada support in .gdb_index
The cooked index work changed how .gdb_index is constructed, and in the process broke .gdb_index support. This is PR symtab/29179. This patch partially fixes the problem. It arranges for Ada names to be encoded in the form expected by the index code. In particular, linkage names for Ada are emitted, including the "main" name; names are Ada-encoded; and names are no longer case-folded, something that prevented operator names from round-tripping correctly. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29179
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index df648c2..84c691b 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -316,7 +316,7 @@ extern struct type *ada_get_base_type (struct type *);
extern struct type *ada_check_typedef (struct type *);
-extern std::string ada_encode (const char *);
+extern std::string ada_encode (const char *, bool fold = true);
extern const char *ada_enum_name (const char *);