summaryrefslogtreecommitdiff
path: root/gdb/gdb_regex.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-01-17 16:50:39 +0000
committerTom Tromey <tromey@redhat.com>2011-01-17 16:50:39 +0000
commit039d6a9cc665580542d420dda3303792d25bcc75 (patch)
tree1f65377d330fe914eb2ba8d5ca71382e10db4edd /gdb/gdb_regex.h
parent4cae3afdcb74147064e2c7193671d6c825ad0afd (diff)
downloadgdb-039d6a9cc665580542d420dda3303792d25bcc75.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 */