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 python/11060] the template_argument function cannot handle value arguments


------- Additional Comments From ppluzhnikov at google dot com  2009-12-07 18:04 -------
Repro:

// gdb-pr11060.cc
template <int N> struct Foo { };

int main()
{
  Foo<42> f;
  return 0;
}
// --- cut ---

g++ -g -o gdb-pr11060 gdb-pr11060.cc

gdb64-cvs gdb-pr11060
GNU gdb (GDB) 7.0.50.20091203-cvs
...
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/gdb-pr11060...done.
(gdb) b main
Breakpoint 1 at 0x40053c: file gdb-pr11060.cc, line 6.
(gdb) r

Breakpoint 1, main () at gdb-pr11060.cc:6
6         return 0;
(gdb) p f
$1 = {<No data fields>}
(gdb) py t = gdb.history(1)
(gdb) py print t.type.template_argument(0)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
RuntimeError: No type named 42.
Error while executing Python code.

Same problem on archer-tromey-python.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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