This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/20509] New: provide a way to evaluate an expression in a certain language
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 23 Aug 2016 18:36:58 +0000
- Subject: [Bug python/20509] New: provide a way to evaluate an expression in a certain language
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20509
Bug ID: 20509
Summary: provide a way to evaluate an expression in a certain
language
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I ran into a situation with the SpiderMonkey debugging helpers
where it would be handy to be able to specify the language to
be used by gdb.parse_and_eval (and maybe lookup_type as well).
One way would be something like a new optional "language" parameter,
like gdb.parse_and_eval("expr", language = "c++")
For now I'm using a wrapper that preserves 'set language', but that
seems second-best somehow.
--
You are receiving this mail because:
You are on the CC list for the bug.