This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Check also st_dev besides st_ino
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 21 Jan 2013 18:15:35 +0100
- Subject: [obv] Check also st_dev besides st_ino
Hi,
while reading the code I have noticed it. According to other uses of ST_DEV
in GDB it has no compatibility issues incl. the MS-Windows platform.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2013-01/msg00124.html
--- src/gdb/ChangeLog 2013/01/21 16:46:01 1.15039
+++ src/gdb/ChangeLog 2013/01/21 17:14:32 1.15040
@@ -1,5 +1,9 @@
2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
+
+2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
Fix gdb.fortran/common-block.exp crash in PIE mode.
* dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
LOC_COMMON_BLOCK.
--- src/gdb/symmisc.c 2013/01/01 06:32:52 1.90
+++ src/gdb/symmisc.c 2013/01/21 17:14:33 1.91
@@ -675,6 +675,7 @@
{
QUIT;
if (symname == NULL || (!stat (objfile->name, &obj_st)
+ && sym_st.st_dev == obj_st.st_dev
&& sym_st.st_ino == obj_st.st_ino))
dump_msymbols (objfile, outfile);
}