Actions

Gdbinit

From RonWareWiki

Revision as of 09:39, 3 December 2009 by Ron (talk | contribs) (New page: <pre> define wchar_print echo " set $i = 0 while (1 == 1) set $c = (char)(($arg0)[$i++]) if ($c == '\0') loop_break end printf "%c", $c end echo...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
define wchar_print
  echo "
  set $i = 0
  while (1 == 1)
    set $c = (char)(($arg0)[$i++])
    if ($c == '\0')
      loop_break
      end
      printf "%c", $c
      end
      echo "\n
end
document wchar_print
wchar_print <wstr>
Print ASCII part of <wstr>, which is a wide character string of type
wchar_t*.
end

define wxc
wchar_print $arg0
end
document wxc
wcs <wxChar *>
Print string
end

define wxs
wchar_print $arg0.m_pchData
end
document
Printout wxString data.
Usage: wxs _wxString_name_
end