sw: resurrect dbg_lay functionality

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 12 October 2017 17:47 EDT

Example instdir/program/dbg_lay.ini:

# 0x0007ffff [record] 524287

This logs all functions and all frames. To have it:

1) Don't mention hex values in the example, support for this was removed in ef513fd4b049b214a03fbe6e62a5ea43680a7a9b (remove unnecessary use of OString::getStr, 2017-05-26).

2) "all frame IDs" is represented with a nullptr, so don't clear it unconditionally.

3) Fix two other regressions from bytestring conversion in commit 778ef20d74ce499e4e0c4b0e3e4506b44938b975 (sw now ByteString free except for windows related ones, 2011-11-04).

(Additionally you need a dbgutil build, dbg_lay.go has to exists in the same dir, and output goes to dbg_lay.out in the same dir.)

Change-Id: Ida0f3032f11225f1d079cdcbb05ec64c42a71e5d Reviewed-on: https://gerrit.libreoffice.org/43347

3672cdd sw: resurrect dbg_lay functionality
sw/source/core/layout/dbg_lay.cxx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org

  • Share