public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: exp/2532: -var-create command fails for typedef array defined inside a structure
@ 2008-10-03 17:07 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2008-10-03 17:07 UTC (permalink / raw)
To: gdb-prs, harishd, nobody, tromey
Synopsis: -var-create command fails for typedef array defined inside a structure
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Fri Oct 3 17:07:25 2008
Responsible-Changed-Why:
I'm handling this.
I submitted a patch:
http://sourceware.org/ml/gdb-patches/2008-10/msg00058.html
http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2532
^ permalink raw reply [flat|nested] 2+ messages in thread
* exp/2532: -var-create command fails for typedef array defined inside a structure
@ 2008-10-01 11:58 harishd
0 siblings, 0 replies; 2+ messages in thread
From: harishd @ 2008-10-01 11:58 UTC (permalink / raw)
To: gdb-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
>Number: 2532
>Category: exp
>Synopsis: -var-create command fails for typedef array defined inside a structure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 01 11:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: harishd@tensilica.com
>Release: unknown-1.0
>Organization:
>Environment:
win
>Description:
#include <stdio.h>
typedef long k[5];
typedef struct students {
int a_rollNumber;
k array_variable;
// long my_var[17];
} Students;
int main () {
Students student;
student.a_rollNumber = 3;
return 0;
}
Here while debugging if I use the gdb mi command
-var-create - * *(((student).array_variable)+0)@5
It gives me error saying
(gdb)
-var-create - * *(((student).array_variable)+0)@5
&"Argument to arithmetic operation not a number or boolean.\n"
&"Argument to arithmetic operation not a number or boolean.\n"
^error,msg="Argument to arithmetic operation not a number or boolean."
(gdb)
Is this the right way to create the expression in -var-create command?
The above problem comes only while using typedef array else the -var-create command works properly
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-03 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-03 17:07 exp/2532: -var-create command fails for typedef array defined inside a structure tromey
-- strict thread matches above, loose matches on Subject: below --
2008-10-01 11:58 harishd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).