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 rust/21893] New: template_argument(0) gives syntax error


https://sourceware.org/bugzilla/show_bug.cgi?id=21893

            Bug ID: 21893
           Summary: template_argument(0) gives syntax error
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: jrmuizel at gmail dot com
  Target Milestone: ---

Given the following program:

use std::collections::HashMap;

fn main() {
    let m : HashMap<u32, Vec<u32>> = HashMap::new();
    println!("Hello, world! {:?}", m);
}

print(gdb.parse_and_eval("m")["table"].type.template_argument(0))

gives a:

RuntimeError: syntax error, near `>>'
Error while executing Python code.

-- 
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]