[lldb-dev] thread list format

Michael Sartain mikesart at gmail.com
Mon Jul 29 19:13:13 PDT 2013


On Mon, Jul 29, 2013 at 2:09 PM, Michael Sartain <mikesart at gmail.com> wrote:

> On Mon, Jul 29, 2013 at 1:53 PM, Ed Maste <emaste at freebsd.org> wrote:
>
>> Also, It looks like you've switched the tids to decimal here, which
>> we'll want to do also on FreeBSD.  My guess is that on Darwin it's
>> desired to keep displaying them in hex; can we do a target-specific
>> tid formatter?
>>
>
> This is part of a patch I'm working on right now. It's only partly done so
> far (to get feedback from Matt), but here it is:
>

Here is a patch that defaults thread ids to decimal for freebsd + linux,
and also adds the ability to add print specifiers to process.id, thread.id,
thread.protocol.id, thread.index, and line.number. Something like this:

            // Allow format specifiers: x|X|u with optional width
specifiers.
            //   {thread.id%x}    ; hex
            //   {thread.id%X}    ; uppercase hex
            //   {thread.id%u}    ; unsigned decimal
            //   {thread.id%8.8X} ; width.precision + specifier

http://llvm-reviews.chandlerc.com/D1234

Please holler with any feedback. Thanks,
 -Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130729/76db73ab/attachment.html>


More information about the lldb-dev mailing list