gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 21 Jan 2013 17:14:33 +0000 (17:14 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 21 Jan 2013 17:14:33 +0000 (17:14 +0000)
* symmisc.c (maintenance_print_msymbols): Check also ST_DEV.

gdb/ChangeLog
gdb/symmisc.c

index bc73b97..0badb87 100644 (file)
@@ -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.
index ce0bd20..df77e79 100644 (file)
@@ -675,6 +675,7 @@ maintenance_print_msymbols (char *args, int from_tty)
       {
        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);
       }