public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug python/11145] New: Add C++ style casts to Python API @ 2010-01-07 8:53 jens dot elmenthaler at verigy dot com 2010-04-19 7:25 ` [Bug python/11145] " pmuldoon at redhat dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: jens dot elmenthaler at verigy dot com @ 2010-01-07 8:53 UTC (permalink / raw) To: gdb-prs Add the support for the C++ style casts (static_cast, dynamic_cast, reinterpret_cast, and const_cast) to the Python API. These are frequently required for pretty printers in programs using deep type hierarchies. -- Summary: Add C++ style casts to Python API Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: python AssignedTo: unassigned at sourceware dot org ReportedBy: jens dot elmenthaler at verigy dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11145 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/11145] Add C++ style casts to Python API 2010-01-07 8:53 [Bug python/11145] New: Add C++ style casts to Python API jens dot elmenthaler at verigy dot com @ 2010-04-19 7:25 ` pmuldoon at redhat dot com 2010-08-20 21:36 ` tromey at redhat dot com 2010-08-23 20:31 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: pmuldoon at redhat dot com @ 2010-04-19 7:25 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement http://sourceware.org/bugzilla/show_bug.cgi?id=11145 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/11145] Add C++ style casts to Python API 2010-01-07 8:53 [Bug python/11145] New: Add C++ style casts to Python API jens dot elmenthaler at verigy dot com 2010-04-19 7:25 ` [Bug python/11145] " pmuldoon at redhat dot com @ 2010-08-20 21:36 ` tromey at redhat dot com 2010-08-23 20:31 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2010-08-20 21:36 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From tromey at redhat dot com 2010-08-20 21:36 ------- I think static_cast and const_cast aren't really needed. Value.cast should handle those ok. I am testing a patch for the others. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sourceware dot|tromey at redhat dot com |org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2010-08-20 21:36:37 date| | http://sourceware.org/bugzilla/show_bug.cgi?id=11145 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/11145] Add C++ style casts to Python API 2010-01-07 8:53 [Bug python/11145] New: Add C++ style casts to Python API jens dot elmenthaler at verigy dot com 2010-04-19 7:25 ` [Bug python/11145] " pmuldoon at redhat dot com 2010-08-20 21:36 ` tromey at redhat dot com @ 2010-08-23 20:31 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2010-08-23 20:31 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-08-23 20:29 ------- Subject: Bug 11145 CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2010-08-23 20:29:19 Modified files: gdb : ChangeLog gdb/doc : ChangeLog gdb.texinfo gdb/python : py-value.c gdb/testsuite : ChangeLog gdb/testsuite/gdb.python: py-value.c py-value.exp Log message: gdb PR python/11145: * python/py-value.c: Include expression.h. (valpy_do_cast): New function. (valpy_cast): Use it. (valpy_dynamic_cast): New function. (valpy_reinterpret_cast): Likewise. (value_object_methods): Add dynamic_cast, reinterpret_cast. gdb/doc PR python/11145: * gdb.texinfo (Values From Inferior): Document dynamic_cast and reinterpret_cast methods. gdb/testsuite PR python/11145: * gdb.python/py-value.c (Base, Derived): New types. (base): New global. * gdb.python/py-value.exp (test_subscript_regression): Add dynamic_cast test. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12109&r2=1.12110 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1103&r2=1.1104 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.757&r2=1.758 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-value.c.diff?cvsroot=src&r1=1.14&r2=1.15 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2427&r2=1.2428 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-value.c.diff?cvsroot=src&r1=1.6&r2=1.7 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-value.exp.diff?cvsroot=src&r1=1.14&r2=1.15 ------- Additional Comments From tromey at redhat dot com 2010-08-23 20:31 ------- I checked in the fix. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|7.1 |7.3 http://sourceware.org/bugzilla/show_bug.cgi?id=11145 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-23 20:31 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-01-07 8:53 [Bug python/11145] New: Add C++ style casts to Python API jens dot elmenthaler at verigy dot com 2010-04-19 7:25 ` [Bug python/11145] " pmuldoon at redhat dot com 2010-08-20 21:36 ` tromey at redhat dot com 2010-08-23 20:31 ` tromey at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).