Bug 38843 - [EasyHack] Implement python gdb helpers
Summary: [EasyHack] Implement python gdb helpers
Status: CLOSED DUPLICATE of bug 34745
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp, skillDebug, skillPython, skillScript
Depends on:
Blocks:
 
Reported: 2011-06-30 09:37 UTC by Björn Michaelsen
Modified: 2015-12-15 23:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2011-06-30 09:37:05 UTC
Implement python gdb helpers

Background: LibreOffice uses UTF-16 strings, which are a royal pain to inspect in the debugger. To fix this we have some dbg_util methods which can be used to inspect them, but it would be far nicer to have some python macros for gdb to make inspecting them trivial, adding them to relevant stack traces etc. To how all this is possible read Tom Tromey's excellent Python GDB Tutorial at: http://sourceware.org/gdb/wiki/PythonGdbTutorial and/or the GDB manual Python chapter at: http://sourceware.org/gdb/current/onlinedocs/gdb/Python.html The essential types to print are in sal/inc/rtl/ustring.hxx - a simple conversion to ascii would be a wonderful start.

Skills: python, C++, gdb
Comment 1 Caolán McNamara 2011-08-19 16:06:32 UTC
dtardon has a stack of personal gdb foo I think ?
Comment 2 David Tardon 2011-08-25 01:49:39 UTC
Yes, I have. And it covers a lot more than just strings :)

*** This bug has been marked as a duplicate of bug 34745 ***
Comment 3 Robinson Tryon (qubit) 2015-12-15 23:18:45 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillPython SkillDebug SkillScript SkillCpp)
[NinjaEdit]