jan.kratochvil at redhat dot com
2018-08-04 14:32:53 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23485
Bug ID: 23485
Summary: info variables: Types of static variables of the same
name get mangled together
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
FAIL: gdb-8.1-25.fc28.x86_64
FAIL: 3fbbcf473a59df74a0b5d9ee343169f778fbd054
I have it reproducible only on Fedora 28 glibc-debuginfo.
glibc-2.27-30.fc28.x86_64
gdb-8.1-25.fc28.x86_64
gdb -batch /lib64/libc.so.6 -ex 'info variables'|grep -4 -w null
Actual:
File vfprintf.c:
static const wchar_t null[7];
Expected:
File vfprintf.c:
static const char null[7];
File vfwprintf.c:
static const wchar_t null[7];
.gdb_index is not present (that is some unrelated bug).
<0><13a7ed>: Abbrev Number: 101 (DW_TAG_compile_unit)
<13a7f3> DW_AT_name : (indirect string, offset: 0xb305):
vfprintf.c
<1><13eb50>: Abbrev Number: 57 (DW_TAG_variable)
<13eb51> DW_AT_name : (indirect string, offset: 0x1bfff): null
<13eb58> DW_AT_type : <0x13eb4b>
<1><13eb4b>: Abbrev Number: 18 (DW_TAG_const_type)
<13eb4c> DW_AT_type : <0x13eb3b>
<1><13eb3b>: Abbrev Number: 11 (DW_TAG_array_type)
<13eb3c> DW_AT_type : <0x13a8ec>
<1><13a8ec>: Abbrev Number: 18 (DW_TAG_const_type)
<13a8ed> DW_AT_type : <0x13a8e5>
<1><13a8e5>: Abbrev Number: 41 (DW_TAG_base_type)
<13a8e8> DW_AT_name : (indirect string, offset: 0x20cb9): char
<0><16f5d3>: Abbrev Number: 101 (DW_TAG_compile_unit)
<16f5d9> DW_AT_name : (indirect string, offset: 0xb33f):
vfwprintf.c
<1><17393d>: Abbrev Number: 77 (DW_TAG_variable)
<17393e> DW_AT_name : (indirect string, offset: 0x1bfff): null
<173945> DW_AT_type : <0x173938>
<1><173938>: Abbrev Number: 17 (DW_TAG_const_type)
<173939> DW_AT_type : <0x173928>
<1><173928>: Abbrev Number: 11 (DW_TAG_array_type)
<173929> DW_AT_type : <0x16f84c>
<1><16f84c>: Abbrev Number: 17 (DW_TAG_const_type)
<16f84d> DW_AT_type : <0x16f83f>
<1><16f83f>: Abbrev Number: 53 (DW_TAG_typedef)
<16f840> DW_AT_name : (indirect string, offset: 0x26385): wchar_t
<16f848> DW_AT_type : <0x16f65e>
<1><16f65e>: Abbrev Number: 102 (DW_TAG_base_type)
<16f661> DW_AT_name : int
Bug ID: 23485
Summary: info variables: Types of static variables of the same
name get mangled together
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
FAIL: gdb-8.1-25.fc28.x86_64
FAIL: 3fbbcf473a59df74a0b5d9ee343169f778fbd054
I have it reproducible only on Fedora 28 glibc-debuginfo.
glibc-2.27-30.fc28.x86_64
gdb-8.1-25.fc28.x86_64
gdb -batch /lib64/libc.so.6 -ex 'info variables'|grep -4 -w null
Actual:
File vfprintf.c:
static const wchar_t null[7];
Expected:
File vfprintf.c:
static const char null[7];
File vfwprintf.c:
static const wchar_t null[7];
.gdb_index is not present (that is some unrelated bug).
<0><13a7ed>: Abbrev Number: 101 (DW_TAG_compile_unit)
<13a7f3> DW_AT_name : (indirect string, offset: 0xb305):
vfprintf.c
<1><13eb50>: Abbrev Number: 57 (DW_TAG_variable)
<13eb51> DW_AT_name : (indirect string, offset: 0x1bfff): null
<13eb58> DW_AT_type : <0x13eb4b>
<1><13eb4b>: Abbrev Number: 18 (DW_TAG_const_type)
<13eb4c> DW_AT_type : <0x13eb3b>
<1><13eb3b>: Abbrev Number: 11 (DW_TAG_array_type)
<13eb3c> DW_AT_type : <0x13a8ec>
<1><13a8ec>: Abbrev Number: 18 (DW_TAG_const_type)
<13a8ed> DW_AT_type : <0x13a8e5>
<1><13a8e5>: Abbrev Number: 41 (DW_TAG_base_type)
<13a8e8> DW_AT_name : (indirect string, offset: 0x20cb9): char
<0><16f5d3>: Abbrev Number: 101 (DW_TAG_compile_unit)
<16f5d9> DW_AT_name : (indirect string, offset: 0xb33f):
vfwprintf.c
<1><17393d>: Abbrev Number: 77 (DW_TAG_variable)
<17393e> DW_AT_name : (indirect string, offset: 0x1bfff): null
<173945> DW_AT_type : <0x173938>
<1><173938>: Abbrev Number: 17 (DW_TAG_const_type)
<173939> DW_AT_type : <0x173928>
<1><173928>: Abbrev Number: 11 (DW_TAG_array_type)
<173929> DW_AT_type : <0x16f84c>
<1><16f84c>: Abbrev Number: 17 (DW_TAG_const_type)
<16f84d> DW_AT_type : <0x16f83f>
<1><16f83f>: Abbrev Number: 53 (DW_TAG_typedef)
<16f840> DW_AT_name : (indirect string, offset: 0x26385): wchar_t
<16f848> DW_AT_type : <0x16f65e>
<1><16f65e>: Abbrev Number: 102 (DW_TAG_base_type)
<16f661> DW_AT_name : int
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.