Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-29 Thread Ramana via lldb-dev
>>>>>>>>>> listens 56543 port >>>>>>>>> >>>>>>>>> But for 5.0.0 we see it fail the debugserver launch, and get: >>>>>>>>> >>>>>>>>>> GDBRemoteCommunication:

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-29 Thread Ramana via lldb-dev
b-remote >>>>>>>>>> process". That's >>>>>>>>> the channel used in StartDebugServerProcess. >>>>>>>>>> >>>>>>>>> >>>>>>>>> In fact I have given the rel

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-29 Thread Chris Bieneman via lldb-dev
StringConvert::ToUInt32(port_cstr, 0); >>>>>>> if (*port == 0 || *port == child_port) { >>>>>>>*port = child_port; >>>>>>>if (log) >>>>>>> log->Printf("GDBRemoteCommun

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-28 Thread Ramana via lldb-dev
gt;>>>>> log->Printf("GDBRemoteCommunication::%s() " >>>>>> "debugserver listens %u port", >>>>>> __FUNCTION__, *port); >>>>>> >>>>>> As an

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-28 Thread Greg Clayton via lldb-dev
gt;>>>>>if (log) >>>>>> log->Printf("GDBRemoteCommunication::%s() " >>>>>> "debugserver listens %u port", >>>>>> __FUNCTION__, *port); >>>>>>

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-28 Thread Chris Bieneman via lldb-dev
should error out, not take down lldb. >>>> >>>> The assert should be removed and the code should work correctly without >>>> the assert. >>>> >>>>> Another aside, the definition of port_cstr is odd: >>>>>

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-25 Thread Greg Clayton via lldb-dev
>>>> >>>> Ramana, can you stick in a log message to print port_cstr? I suspect it's >>>> actually getting 0 back from lldb-server, which would tell us the error is >>>> in the server code, not the client code. >>>> >>> >&g

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-25 Thread Chris Bieneman via lldb-dev
.10.12.3:0" >> argv[3]="--native-regs" >> argv[4]="--pipe" >> argv[5]="7" >> argv[6]=NULL >> >> lldb-server should bind to port 0, figure out the port, and write the port >> number into the file descriptor 7

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-25 Thread Ramana via lldb-dev
e/root" >>> env[13]="LOGNAME=root" >>> env[14]="SSH_CONNECTION=10.10.33.99 53542 10.10.2.4 22" >>> env[15]="XDG_RUNTIME_DIR=/run/user/0" >>> env[16]="_=/mnt/var/binaries/arm_release/bin/lldb-server" >>> env[17]=NU

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-24 Thread Greg Clayton via lldb-dev
tening and accepting a connection from the remote LLDB. Greg > Ted > > -- > Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a > Linux Foundation Collaborative Project > >> -Original Message- >> From:

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-24 Thread Ted Woodward via lldb-dev
MAIL=/var/mail/root" > env[7]="PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" > env[8]="PWD=/home/root" > env[9]="EDITOR=vi" > env[10]="PS1=\u@\h:\w\$ " > env[11]="SHLVL=1" > env[12]="HOME=/home/ro

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-24 Thread Ramana via lldb-dev
quot; env[10]="PS1=\u@\h:\w\$ " env[11]="SHLVL=1" env[12]="HOME=/home/root" env[13]="LOGNAME=root" env[14]="SSH_CONNECTION=10.10.33.99 53542 10.10.2.4 22" env[15]="XDG_RUNTIME_DIR=/run/user/0" env[16]="_=/mnt/var/binaries/arm_v5.0_or

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-23 Thread Ted Woodward via lldb-dev
ennborg > Cc: Ramana ; LLDB Dev d...@lists.llvm.org> > Subject: Re: [lldb-dev] Remote debugging ARM target from x86 host > > Port zero should never be returned as a valid port. We do bind to port zero > just > so we don't try and pick a port at random just to find it is being used.

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-23 Thread Greg Clayton via lldb-dev
Port zero should never be returned as a valid port. We do bind to port zero just so we don't try and pick a port at random just to find it is being used. When we bind to port 9, we must find the actual port we bound to and return that. Seems something has gone wrong with the code that discovers

Re: [lldb-dev] Remote debugging ARM target from x86 host

2017-08-23 Thread Hans Wennborg via lldb-dev
This was marked as an lldb 5.0.0 release blocker since it's a regression from 4.0.1: https://bugs.llvm.org/show_bug.cgi?id=34183 lldb-dev: Is there any interest in fixing this bug? On Fri, Aug 4, 2017 at 10:13 PM, Ramana via lldb-dev wrote: > Hi, > > I am trying to remote debug ARM (linux) targe

[lldb-dev] Remote debugging ARM target from x86 host

2017-08-04 Thread Ramana via lldb-dev
Hi, I am trying to remote debug ARM (linux) target from x86 (linux) host and I am getting the following error while trying to launch a process. The local debugging on ARM works. error: connect remote failed (invalid host:port specification: '10.10.2.3') error: process launch failed: invalid host: