[PATCH] fdo #46446: add python gdb helpers for osl::FileBase

Catalin Iacob iacobcatalin at gmail.com
Wed Mar 7 13:43:41 PST 2012


Sample output for the pretty printer:

$1 = directory: "file:///home/catalin/libreoffice/a_dir"
$2 = file: "file:///home/catalin/libreoffice/s1.ods"
$3 = link: "file:///home/catalin/libreoffice/link.patch" ->
"file:///home/catalin/libreoffice/patches/0001-Fix-cppcheck-possible-null-dereference-in-ScMyCellIn.patch"
$4 = fifo: "file:///home/catalin/libreoffice/some_fifo"
$5 = directory: <invalid file url>
$6 = link: <invalid file url> ->
"file:///home/catalin/libreoffice/patches/0001-Fix-cppcheck-possible-null-dereference-in-ScMyCellIn.patch"

$5 is a directory but osl_FileStatus_Mask_FileURL was not set when
retrieving it so the file url is invalid
Similarly, for $6 osl_FileStatus_Mask_FileURL is not set but
osl_FileStatus_Mask_FileURL is therefore the link target is valid and
can be printed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fdo-46446-add-python-gdb-helpers-for-osl-FileBase.patch
Type: text/x-patch
Size: 3549 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120307/805fd130/attachment-0001.bin>


More information about the LibreOffice mailing list