https://bugs.freedesktop.org/show_bug.cgi?id=46446
Bug #: 46446 Summary: EasyHack: add python gdb helpers for osl::FileBase ... Classification: Unclassified Product: LibreOffice Version: LibO Master Platform: Other OS/Version: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Libreoffice AssignedTo: libreoffice-bugs@lists.freedesktop.org ReportedBy: michael.me...@novell.com The sal/ module exports a file system abstraction: cf. sal/inc/osl/file.h and file.hxx It would be lovely to extend: solenv/gdb/libreoffice/sal.py to add a class or two to print the FileStatus flags / masks prettily, and to show the internals of the oslFileHandle structure, which is really an opaque version of: oslFileError SAL_CALL osl_closeFile( oslFileHandle Handle ) { FileHandle_Impl* pImpl = static_cast<FileHandle_Impl*>(Handle); on Linux/unix where gdb is present anyway. It'd be nice to have the m_strFilePath there. I guess something like: class RtlReferencePrinter(object): would be what would be needed with a custom to_string method. Thanks ! :-) -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs