From 549dfc51b07c0c749ebde15a3fa855ab496ea18a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Aug 2022 11:00:50 -0600 Subject: 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. --- gdb/solib-dsbt.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gdb/solib-dsbt.h (limited to 'gdb/solib-dsbt.h') 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 . */ + +#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 */ -- cgit v1.1