Skip to content

Improve debugging experience when debugging host != build machine #485

Open
@jschwe

Description

@jschwe

The debug information for some of the files currently points to the target directory, including an unpredictable hash.
This makes it hard to setup the debugger to show the source code while debugging (if you are debugging an executable built on a different machine).

Example:

(lldb) image lookup -vn IsCatchableExceptionStatus
[redacted]
      LineEntry: [0x0000005b879f25d4-0x0000005b879f25dc): /data/servo/target/aarch64-unknown-linux-ohos/debug/build/mozjs_sys-af0e41768545dd53/out/build/dist/include/js/Exception.h:80

This makes it hard to setup lldb's settings set target.source-map /path/on/build-machine D:\path\on\debugger-host-machine, since the hash will change frequently.
At first glance it seems like the header files are also present in the source directory, and identical, so it would be preferable, if the original files at the fixed location could be used when compiling mozjs, instead of the files in the target directory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions