This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] New comment about dangling cleanup
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 15 Jan 2013 22:34:07 +0100
- Subject: [obv] New comment about dangling cleanup
Hi,
the returned string gets danging cleanup registration.
Checked in.
Jan
http://sourceware.org/ml/gdb-cvs/2013-01/msg00080.html
--- src/gdb/ChangeLog 2013/01/14 21:05:06 1.15017
+++ src/gdb/ChangeLog 2013/01/15 21:32:34 1.15018
@@ -1,3 +1,7 @@
+2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
+
2013-01-14 Tom Tromey <tromey@redhat.com>
* cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
--- src/gdb/dwarf2read.c 2013/01/14 20:59:26 1.730
+++ src/gdb/dwarf2read.c 2013/01/15 21:32:36 1.731
@@ -15161,7 +15161,9 @@
in line header LH of PST.
COMP_DIR is the compilation directory (DW_AT_comp_dir) or NULL if unknown.
If space for the result is malloc'd, it will be freed by a cleanup.
- Returns NULL if FILE_INDEX should be ignored, i.e., it is pst->filename. */
+ Returns NULL if FILE_INDEX should be ignored, i.e., it is pst->filename.
+
+ The function creates dangling cleanup registration. */
static char *
psymtab_include_file_name (const struct line_header *lh, int file_index,