aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-08-31 07:33:34 -0600
committerTom Tromey <tromey@adacore.com>2023-09-15 07:39:47 -0600
commitfe26aa95336c0ddec01b407b990caf2c758fd93f (patch)
tree5b64d93e18fd62fe5a8505073f44d3cb70a4fa11 /gdb/symtab.h
parent0a43fbaa23a5eaf4254a51fa43ef61a6e28c9bd6 (diff)
downloadgdb-fe26aa95336c0ddec01b407b990caf2c758fd93f.zip
gdb-fe26aa95336c0ddec01b407b990caf2c758fd93f.tar.gz
gdb-fe26aa95336c0ddec01b407b990caf2c758fd93f.tar.bz2
Rename split_style::DOT
This renames split_style::DOT, to avoid name clashes when building gdb with an old version of Bison (2.3, the version available on macOS). In particular the error looks like: ./split-name.h:34:3: error: expected identifier DOT, ^ m2-exp.c:163:13: note: expanded from macro 'DOT' Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30286
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index ca3b1a4..8f58780 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -305,7 +305,7 @@ class lookup_name_info final
break;
case language_d:
case language_go:
- style = split_style::DOT;
+ style = split_style::DOT_STYLE;
break;
}
return ::split_name (language_lookup_name (lang), style);