[lldb-dev] Q: link order for lldb

Pawel Wodnicki root at 32bitmicro.com
Thu Jan 17 10:50:24 PST 2013


> Ah I misunderstood the motivation for Cygwin instead of cmake.
> 
> Yes, your swig version should be fine. The c linkage problem was fixed in trunk back in r168901.

Good to know.

> 
> You may need other gcc fixes applied in order to build correctly; namely 169767, r169185, 168901, 168835, 168827. Or, you could merge most recent trunk :)

I will go through the list (thanks!) one by one, merging trunk
would have a cascading effect I would rather avoid.
Even the windows branch is a bit too new for the 3.2.

> 
> 
> Cheers,
> Dan
> 

It links! It runs!

But all I get is Fail () => 0

Now the head scratching, how to debug the debugger.
I guess I'll start with some pipe making. Also,
the full log below does not show a bunch of NULs after:

thread created
SBCommunication(0x800109d0)::ReadThreadStart () => 1
NULNUNULNULNULNUNULNULNULNUNULNULNULNUNULNULNULNUNULNULNULNUNULNULNULNUNULNUL...

Is this normal?


Paweł


$ ./lldb.exe
SBDebugger::Initialize ()

0x80021738 Broadcaster::Broadcaster("Driver")

SBBroadcaster::SBBroadcaster (name="Driver") => SBBroadcaster(0x80021738)

SBError(0x0)::Fail () => 0

SBError(0x0)::Fail () => 0

0x80022aa8 Broadcaster::Broadcaster("debugger.input")

0x80022aa8 Communication::Communication (name = debugger.input)

0x80022ba0 Broadcaster::Broadcaster("lldb.targetList")

0x80022c18 Listener::Listener('lldb.Debugger')

0x800231a8 Broadcaster::Broadcaster("lldb.command-interpreter")

SBDebugger::Create () => SBDebugger(0x80022a50): Debugger (instance:
"debugger_1", id: 1)

SBDebugger(0x80022a50)::GetCommandInterpreter () =>
SBCommandInterpreter(0x800231a8)

SBDebugger(0x80022a50)::SetErrorFileHandle (fh=0x61187790,
transfer_ownership=0)

SBDebugger(0x80022a50)::SetOutputFileHandle (fh=0x61187720,
transfer_ownership=0)

SBDebugger(0x80022a50)::SetInputFileHandle (fh=0x611876b0,
transfer_ownership=1)

0x80022aa8 Communication::Disconnect ()

0x800466c8 ConnectionFileDescriptor::ConnectionFileDescriptor (fd = 0,
owns_fd = 0)

0x800466c8 ConnectionFileDescriptor::ConnectionFileDescriptor () - could
not make pipe: No error

0x80022aa8 Communication::Disconnect ()

0x80022aa8 Communication::StartReadThread ()

thread created

0x80022aa8 Communication::ReadThread () thread starting...
0x800109d0 Broadcaster::Broadcaster("driver.editline")

0x800466c8 ConnectionFileDescriptor::Read () ::read (fd = 0, dst =
0xfff9c990, dst_len = 1024)...

x800109d0 Broadcaster::Broadcaster("driver.editline")
0x800466c8 ConnectionFileDescriptor::BytesAvailable (timeout_usec = 5000000)

0x800109d0 Communication::Communication (name = driver.editline)

0x800466c8 ConnectionFileDescriptor::BytesAvailable()  ::select (nfds =
1, fd = 0, NULL, NULL, timeout = 0xfff9c8b0)...

SBCommunication::SBCommunication (broadcaster_name="driver.editline") =>
SBCommunication(0x800109d0)

0x80010f28 ConnectionFileDescriptor::ConnectionFileDescriptor (fd = 3,
owns_fd = 0)

0x80010f28 ConnectionFileDescriptor::ConnectionFileDescriptor () - could
not make pipe: Resource temporarily unavailable

0x800109d0 Communication::Disconnect ()

SBCommunication(0x800109d0)::AdoptFileDescriptor (fd=3, ownd_fd=0) =>
success

SBCommunication(0x800109d0)::SetReadThreadBytesReceivedCallback
(callback=0x4026e0, baton=0x28ab80) => 1

0x800109d0 Communication::StartReadThread ()

thread created
SBCommunication(0x800109d0)::ReadThreadStart () => 1

SBBroadcaster::SBBroadcaster (name="IOChannel") => SBBroadcaster(0x80011298)

0x800109d0 Communication::ReadThread () thread starting...

0x80010f28 ConnectionFileDescriptor::Read () ::read (fd = 3, dst =
0xffe9c990, dst_len = 1024)...

0x80010f28 ConnectionFileDescriptor::BytesAvailable (timeout_usec = 5000000)

0x80010f28 ConnectionFileDescriptor::BytesAvailable()  ::select (nfds =
4, fd = 3, NULL, NULL, timeout = 0xffe9c8b0)...

SBFileSpec(0x800116a0)::GetFilename () => NULL





More information about the lldb-dev mailing list