Commit Graph

9 Commits

Author SHA1 Message Date
Vadim Zeitlin
ed4caec714 Minor change to wxString pretty-printer for gdb.
Calling string() explicitly isn't necessary, at least not with gdb 7.2, and is
actually harmful when using Python 2.5 (which doesn't support UTF-32) with
wide strings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-13 21:37:13 +00:00
Vadim Zeitlin
d4bc7a1601 Recognize wxDefaultDateTime in gdb wxDateTime pretty-printer.
Trying to print an uninitialized/invalid wxDateTime in gdb resulted in an
error (Python exception from datetime module), recognize it specially now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 22:24:57 +00:00
Vadim Zeitlin
a6a181a303 Add a gdb pretty-printer for wxFileName objects.
This pretty-printer works by calling the C++ wxFileName::GetFullPath()
directly instead of interpreting the object data from gdb because this is much
simpler to do, so it can only be used when debugging live programs. If this is
a serious restriction, it would need to be changed to use gdb data access only
later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 22:24:52 +00:00
Vadim Zeitlin
14f3866748 Add a gdb pretty printer for wxDateTime.
Format it using Python datetime module in the standard ISO notation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-25 00:31:38 +00:00
Vadim Zeitlin
9513aa80ce Don't add quotes to string representation in gdb.
gdb adds quotes itself around string values so don't duplicate them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-10-22 14:17:22 +00:00
Vadim Zeitlin
526954c596 Globally use "wxWindows licence" consistently.
Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-13 13:29:13 +00:00
Vadim Zeitlin
6df26ddbf7 Add pretty-printers for wxPoint, wxSize and wxRect.
Also replace an if checking for the supported types with an array-based
approach to make it easier to add pretty printers for more types in the
future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-26 14:09:43 +00:00
Vadim Zeitlin
753dc0f732 Update gdb pretty printing support for latest gdb version.
gdb.pretty_printers is not a map any more but a list containing lookup
functions for pretty printers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-11 23:08:41 +00:00
Vadim Zeitlin
3b9aa4e82a add a custom printer for wxString to use with Python-enabled gdb
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 21:15:19 +00:00