This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/13339] New: type.array(X) creates array of X+1 items
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 24 Oct 2011 21:57:38 +0000
- Subject: [Bug python/13339] New: type.array(X) creates array of X+1 items
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13339
Bug #: 13339
Summary: type.array(X) creates array of X+1 items
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
CC: pmuldoon@redhat.com
Classification: Unclassified
Target: x86_64-unknown-linux-gnu
GNU gdb (GDB) 7.3.50.20111023-cvs
./gdb -nx ./gdb
(gdb) python print gdb.lookup_type("struct symtab").array(2)
struct symtab [3]
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.