aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-06-05 09:24:52 -0600
committerTom Tromey <tom@tromey.com>2022-04-12 09:31:15 -0600
commit5c94f93871a094ab4bce2f3c49ccdc8ae322e277 (patch)
tree56d47c70b41a7fbe091aacd3a6c2a3b36d6f0fe7 /gdb/ada-lang.h
parent6ee823fc4eae5024d85759bc1cc845058f1265a4 (diff)
downloadfsf-binutils-gdb-5c94f93871a094ab4bce2f3c49ccdc8ae322e277.zip
fsf-binutils-gdb-5c94f93871a094ab4bce2f3c49ccdc8ae322e277.tar.gz
fsf-binutils-gdb-5c94f93871a094ab4bce2f3c49ccdc8ae322e277.tar.bz2
Allow ada_decode not to decode operators
The new DWARF scanner records names as they appear in DWARF. However, because Ada is unusual, it also decodes the Ada names to synthesize package components for them. In order for this to work out properly, gdb also needs a mode where ada_decode can be instructed not to decode Ada operator names. That is what this patch implements.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index a6caf35..0dcdb56 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -218,8 +218,10 @@ extern const char *ada_decode_symbol (const struct general_symbol_info *);
the name does not appear to be GNAT-encoded, then the result
depends on WRAP. If WRAP is true (the default), then the result is
simply wrapped in <...>. If WRAP is false, then the empty string
- will be returned. */
-extern std::string ada_decode (const char *name, bool wrap = true);
+ will be returned. Also, when OPERATORS is false, operator names
+ will not be decoded. */
+extern std::string ada_decode (const char *name, bool wrap = true,
+ bool operators = true);
extern std::vector<struct block_symbol> ada_lookup_symbol_list
(const char *, const struct block *, domain_enum);