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/20509] New: provide a way to evaluate an expression in a certain language


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.

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