This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/6] DWARF: Don't add nameless modules to partial symbol table.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: "Wiederhake\, Tim" <tim dot wiederhake at intel dot com>
- Cc: "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>
- Date: Wed, 02 Aug 2017 12:16:36 +0100
- Subject: Re: [PATCH 1/6] DWARF: Don't add nameless modules to partial symbol table.
- Authentication-results: sourceware.org; auth=none
- References: <1500629040-12972-1-git-send-email-tim.wiederhake@intel.com> <1500629040-12972-2-git-send-email-tim.wiederhake@intel.com> <20170731220938.GB8039@1170ee0b50d5> <9676A094AF46E14E8265E7A3F4CCE9AF5AC185A5@IRSMSX106.ger.corp.intel.com>
"Wiederhake, Tim" <tim.wiederhake@intel.com> writes:
> I'm using the Intel? Fortran Compiler:
>
> $ ifort --version
> ifort (IFORT) 15.0.0 20140716
> Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
>
> $ ifort -g -o block-data testsuite/gdb.fortran/block-data.f
> $ readelf -w block-data | grep DW_TAG_module
> <1><d7>: Abbrev Number: 7 (DW_TAG_module)
> 7 DW_TAG_module [has children]
Hi Tim,
I checked both gfortran and armflang, neither generate DW_TAG_module for
nameless BLOCK DATA.
When I google "block data", I find I reviewed this patch before :)
https://sourceware.org/ml/gdb-patches/2016-11/msg00014.html I didn't see
the point Intel fortran compiler generates DW_TAG_module for a nameless
BLOCK DATA, but GDB shouldn't crash in any case. Could you adjust the
commit log and comments to reflect that Intel fortran compiler
generates DW_TAG_module without DW_AT_name for a nameless BLOCK DATA,
and GDB will crash. This patch is to fix the crash.
--
Yao (齐尧)