aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-dsbt.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-08-08 11:00:50 -0600
committerTom Tromey <tromey@adacore.com>2022-09-20 12:25:19 -0600
commit549dfc51b07c0c749ebde15a3fa855ab496ea18a (patch)
tree19524424c91615492c20104d1e6b880e4afa5fc4 /gdb/solib-dsbt.h
parent9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4 (diff)
downloadgdb-549dfc51b07c0c749ebde15a3fa855ab496ea18a.zip
gdb-549dfc51b07c0c749ebde15a3fa855ab496ea18a.tar.gz
gdb-549dfc51b07c0c749ebde15a3fa855ab496ea18a.tar.bz2
Constify some target_so_ops instances
This changes some target_so_ops instances to be const. This makes their use a little more obvious (they can't be mutated) and also allows for the removal of some initialization code.
Diffstat (limited to 'gdb/solib-dsbt.h')
-rw-r--r--gdb/solib-dsbt.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/solib-dsbt.h b/gdb/solib-dsbt.h
new file mode 100644
index 0000000..98c0a31
--- /dev/null
+++ b/gdb/solib-dsbt.h
@@ -0,0 +1,28 @@
+/* Handle shared libraries for GDB, the GNU Debugger.
+
+ Copyright (C) 2022 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef SOLIB_DSBT_H
+#define SOLIB_DSBT_H
+
+struct objfile;
+struct target_so_ops;
+
+extern const struct target_so_ops dsbt_so_ops;
+
+#endif /* solib-dsbt.h */