summaryrefslogtreecommitdiff
path: root/gdb/gdb_regex.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-01-17 16:50:42 +0000
committerTom Tromey <tromey@redhat.com>2011-01-17 16:50:42 +0000
commitdc92e16124ca764e536f2457635749e5431c4765 (patch)
tree4435d0e6b715c61188acf0aea2a92112a44515f2 /gdb/gdb_regex.h
parentda17376b704177fc4d8fa038169782e28b1f3b24 (diff)
downloadbinutils-gdb-dc92e16124ca764e536f2457635749e5431c4765.tar.gz
* cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
get_regcomp_error. * utils.c: Include gdb_regex.h. (do_regfree_cleanup): New function. (make_regfree_cleanup): Likewise. (get_regcomp_error): Likewise. * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
Diffstat (limited to 'gdb/gdb_regex.h')
-rw-r--r--gdb/gdb_regex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdb_regex.h b/gdb/gdb_regex.h
index ccdf9c360b9..835cb09694c 100644
--- a/gdb/gdb_regex.h
+++ b/gdb/gdb_regex.h
@@ -28,4 +28,8 @@
# include <regex.h>
#endif
+/* From utils.c. */
+struct cleanup *make_regfree_cleanup (regex_t *);
+char *get_regcomp_error (int, regex_t *);
+
#endif /* not GDB_REGEX_H */