From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14523 invoked by alias); 24 Aug 2004 16:32:53 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14349 invoked from network); 24 Aug 2004 16:32:47 -0000 Received: from unknown (HELO smtp807.mail.sc5.yahoo.com) (66.163.168.186) by sourceware.org with SMTP; 24 Aug 2004 16:32:47 -0000 Received: from unknown (HELO dan) (peterschade@sbcglobal.net@68.123.127.203 with login) by smtp807.mail.sc5.yahoo.com with SMTP; 24 Aug 2004 16:32:45 -0000 Message-ID: <00cd01c489f7$fc547f60$0401a8c0@dan> From: "Daniel Miller \(IMI\)" To: "Michael Chastain" Cc: References: <005601c4871d$67c8c9f0$0401a8c0@dan> <20040821021144.GA3321@nevyn.them.org> <008d01c48952$b7e0e7b0$0401a8c0@dan> <412A616D.nailD4K28EC6E@mindspring.com> <009e01c48959$a5192640$0401a8c0@dan> <412B30D2.nailETK1H2VST@mindspring.com> Subject: Re: cannot subscript something of type Date: Tue, 24 Aug 2004 16:32:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00322.txt.bz2 Another note on this issue: I again tried merging tester.h into the source file and compling. In this case, objdump *still* says no symbol information found, but gdb works as expected: (gdb) p Mod[0] $1 = {Stat = 0, sys_status = 0, powered_up = 0, compat = 0} (gdb) p (S_Module) Mod[0] $2 = {Stat = 0, sys_status = 0, powered_up = 0, compat = 0} (gdb) p Mod[0].powered_up $3 = 0 (gdb) b main Breakpoint 1 at 0x804847c: file tester2.cpp, line 16. (gdb) r Starting program: /home/usbsrc/files/tester Breakpoint 1, main () at tester2.cpp:16 16 Mod[0].powered_up = 1 ; (gdb) n 18 printf("powered_up=%u\n", Mod[0].powered_up) ; (gdb) p Mod[0].powered_up $4 = 1 ... as expected. Is gdb perhaps not able to find the header file(s) for some reason?? And am I simply using objdump wrong? Dan