This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15770] "Info Variables" returns bad results for typedef array


http://sourceware.org/bugzilla/show_bug.cgi?id=15770

--- Comment #4 from Tom Tromey <tromey at redhat dot com> ---
Yeah, I did.  Sorry for not making that clear.
Here is my gdb session:

barimba. ~/Space/gdb/7.6/install/bin/gdb ./q
GNU gdb (GDB) 7.6.0.20130515-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/q...done.
(gdb) info variables 
All defined variables:

File q.cc:
shm_rec_t shm;
static const float hsi_range[8];

Non-debugging symbols:
0x0000000000400660  _IO_stdin_used
0x0000000000400668  __dso_handle
0x00000000004007a8  __FRAME_END__
0x0000000000600de0  __frame_dummy_init_array_entry
0x0000000000600de0  __init_array_start
0x0000000000600de8  __do_global_dtors_aux_fini_array_entry
0x0000000000600de8  __init_array_end
0x0000000000600df0  __JCR_END__
0x0000000000600df0  __JCR_LIST__
0x0000000000600df8  _DYNAMIC
0x0000000000601000  _GLOBAL_OFFSET_TABLE_
0x0000000000601028  __data_start
0x0000000000601028  data_start
0x000000000060102c  __bss_start
0x000000000060102c  _edata
0x0000000000601030  __TMC_END__
0x0000000000601040  completed.6137
0x0000000000601088  _end
(gdb) ptype shm_rec_t
type = struct shm_rec_t {
    float f32ara[8];
    int a;
    char c;
}
(gdb) quit

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]