[lldb-dev] breakpoint command
daniel.malea at intel.com
Mon Jun 24 16:21:54 PDT 2013
Ah, cool, thanks Ed!
I can confirm those commands (invoked in reverse order) work for me on
Ubuntu 12.10. So it should be possible to do some Makefile-magic with
objcopy to test the split-debug implementation in an automatic fashion.
I had a chance to try Mike's patch (D960) and can confirm that it works as
advertised on binaries that are split with the objcopy approach.
On 2013-06-24 10:46 AM, "Ed Maste" <emaste at freebsd.org> wrote:
>On 21 June 2013 16:04, Malea, Daniel <daniel.malea at intel.com> wrote:
>> I'm reading the patch but only got through a small portion of it thus
>>far. The interface changes look all right, to me at least. I'm not too
>>familiar with generating split-file debug info, but I imagine it's
>>possible to do so with some flags to GCC (if not Clang)?
>I added standalone debug support to FreeBSD's base system build last
>year. Assuming you have an executable 'exe.full' containing debug
>data, it's basically just:
>objcopy --strip-debug --add-gnu-debuglink=exe.debug exe.full exe
>objcopy --only-keep-debug exe.full exe.debug
>(I'm not sure if any linkers support creating standalone debug
>directly, but ld from FreeBSD's rather-old binutils doesn't.)
More information about the lldb-dev