Re: [lldb-dev] Where "thread until " should set breakpoints?

2018-08-01 Thread Ramana via lldb-dev
On Thu, Aug 2, 2018 at 3:32 AM, Jim Ingham wrote: > > > > On Jul 24, 2018, at 9:05 PM, Ramana via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > On the subject line, the ToT lldb (see code around > CommandObjectThread.cpp:1230) sets the breakpoint o

[lldb-dev] Where "thread until " should set breakpoints?

2018-07-24 Thread Ramana via lldb-dev
On the subject line, the ToT lldb (see code around CommandObjectThread.cpp:1230) sets the breakpoint on the first exact matching line of 'line-number' or the closest line number > 'line-number' i.e. the best match. And along with that, starting from the above exact/best matching line number index

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-04-03 Thread Ramana via lldb-dev
lt; > lldb-dev@lists.llvm.org> wrote: > > > > > > > >> On Mar 29, 2018, at 9:10 AM, Frédéric Riss wrote: > >> > >> > >> > >>> On Mar 29, 2018, at 7:32 AM, Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wrote

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-04-02 Thread Ramana via lldb-dev
c Riss wrote: > > > > On Mar 29, 2018, at 9:27 AM, Greg Clayton wrote: > > > > On Mar 29, 2018, at 9:10 AM, Frédéric Riss wrote: > > > > On Mar 29, 2018, at 7:32 AM, Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > On

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-04-02 Thread Ramana via lldb-dev
t;> > >> > >>> On Mar 29, 2018, at 9:27 AM, Greg Clayton wrote: > >>> > >>> > >>> > >>>> On Mar 29, 2018, at 9:10 AM, Frédéric Riss wrote: > >>>> > >>>> > >>>> > >&

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-04-02 Thread Ramana via lldb-dev
018, at 9:27 AM, Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > > > > >> On Mar 29, 2018, at 9:10 AM, Frédéric Riss wrote: > >> > >> > >> > >>> On Mar 29, 2018, at 7:32 AM, Greg Clayton via lldb-dev < >

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-04-02 Thread Ramana via lldb-dev
On Thu, Mar 29, 2018 at 8:02 PM, Greg Clayton wrote: > > > On Mar 29, 2018, at 2:08 AM, Ramana via lldb-dev > wrote: > > Hi, > > It appears that the lldb-server, as of v5.0, did not implement the GDB > RSPs non-stop mode (https://sourceware.org/gdb/onlinedocs/gdb/

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-03-30 Thread Ramana via lldb-dev
ton wrote: > > > On Mar 29, 2018, at 2:08 AM, Ramana via lldb-dev > wrote: > > Hi, > > It appears that the lldb-server, as of v5.0, did not implement the GDB > RSPs non-stop mode (https://sourceware.org/gdb/onlinedocs/gdb/Remote-Non_ > 002dStop.html#Remote-Non_002dStop

Re: [lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-03-30 Thread Ramana via lldb-dev
29, 2018 at 9:40 PM, Frédéric Riss wrote: > On Mar 29, 2018, at 7:32 AM, Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > On Mar 29, 2018, at 2:08 AM, Ramana via lldb-dev > wrote: > > Hi, > > It appears that the lldb-server, as of

[lldb-dev] GDB RSPs non-stop mode capability in v5.0

2018-03-29 Thread Ramana via lldb-dev
Hi, It appears that the lldb-server, as of v5.0, did not implement the GDB RSPs non-stop mode ( https://sourceware.org/gdb/onlinedocs/gdb/Remote-Non_002dStop.html#Remote-Non_002dStop). Am I wrong? If the support is actually not there, what needs to be changed to enable the same in lldb-server? A

Re: [lldb-dev] did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?

2017-11-30 Thread Ramana via lldb-dev
These sort of issues I have faced in the past and in my case the reason was I used the incorrect host triple while building LLDB (LLVM etc). Example: Assuming you are using GCC/G++ compiler to build LLVM+LLDB, I would set the LLVM_HOST_TRIPLE to the one used in the library path and not essentia

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-25 Thread Ramana via lldb-dev
gt; >> >> The nice thing about the lldb_private::Native* subclasses is that >> >> >> you only need to worry about native support. You can use #ifdef >> >> >> and use system header files, where as the non native route, those >> >> >> c

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-22 Thread Ramana via lldb-dev
>> >> >> Greg Clayton >> >> >> >> On Sep 16, 2017, at 6:28 AM, Ramana >> wrote: >> >> >> >> Thank you Greg for the detailed response. >> >> >> >> Can you please also shed some light on the NativeRegi

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-22 Thread Ramana via lldb-dev
ke this class was added for testing. RegisterInfoInterface is a >>> class that creates a common API for getting lldb_private::RegisterInfo >>> structures. >>> >>> A RegisterContext_ class uses one of these to be able to create a >>> buffer large enough

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-21 Thread Ramana via lldb-dev
s are > read/written: one at a time, or "get all general purpose regs" and "get all > FPU regs". So if someone asks a RegisterContext to read the PC, it might go > read all GPR regs and then mark them all as valid in the register context > buffer cache, so if someone su

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-19 Thread Ramana via lldb-dev
;>> >>> So RegisterInfoInterface defines a common way that many RegisterContext >>> classes can inherit from in order to give out the >>> lldb_private::RegisterInfo (which is required by all subclasses of >>> RegisterContext) info for

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-19 Thread Ramana via lldb-dev
RegisterContext to read the PC, it >> might go read all GPR regs and then mark them all as valid in the register >> context buffer cache, so if someone subsequently asks for SP, it will be >> already >> cached. >> >> >> >> So RegisterInfoInterface defi

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-16 Thread Ramana via lldb-dev
he lldb_private::RegisterInfo > (which is required by all subclasses of RegisterContext) info for a register > context, and RegisterContext is the one that actually will interface with the > debugged process in order to read/write and cache those registers as > efficiently as possib

Re: [lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-16 Thread Ramana via lldb-dev
na > > -Original Message- > From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Ramana > via lldb-dev > Sent: Wednesday, 13 September, 2017 9:00 AM > To: lldb-dev@lists.llvm.org > Subject: [lldb-dev] lldb_private::RegisterContext vs > lldb_private:

Re: [lldb-dev] lldb-5.0 on linux not finding lldb-server-5.0.0

2017-09-13 Thread Ramana via lldb-dev
At least I did not encounter the below issue on Ubuntu 16.04 (with x86 i.e 32bit) machine with lldb v5.0. FYI, I have built the tool chain from the RELEASE_500/final tag source. > Somebody on stack overflow is reporting: > https://stackoverflow.com/questions/46164427/lldb-is-not-starting-an-appl

[lldb-dev] lldb_private::RegisterContext vs lldb_private::RegisterInfoInterface

2017-09-12 Thread Ramana via lldb-dev
Hi, When deriving RegisterContext_, why some platforms (Arch+OS) are deriving it from lldb_private::RegisterContext while others are deriving from lldb_private::RegisterInfoInterface or in other words how to decide on the base class to derive from between those two and what are the implications?

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

2017-08-29 Thread Ramana via lldb-dev
gt;>>>> >>>>>> Since lldb-server only supports running on a limited set of host >>>>>> operating systems it is hard for me to diagnose the issue completely, >>>>>> but I suspect the problem is caused by the fact that the new listen

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

2017-08-29 Thread Ramana via lldb-dev
> misbehaving. >>>>> >>>>> I'm unlikely to have time to investigate further until next week, but it >>>>> should be possible to craft a unit test that verifies that >>>>> GetLocalPortNumber() returns non-zero on a socket that is listening >

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

2017-08-28 Thread Ramana via lldb-dev
tening before >>> a connection is established. That might reproduce the issue in a more easy >>> to debug environment. >>> >>> -Chris >>> >>>> On Aug 25, 2017, at 7:38 AM, Ramana via lldb-dev >>>> wrote: >>>>

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

2017-08-25 Thread Ramana via lldb-dev
utable: lldb-server >>> Triple: *-*-* >>> Arguments: >>> argv[0]="/mnt/var/binaries/arm_v5.0_orig/bin/lldb-server" >>> argv[1]="gdbserver" >>> argv[2]="tcp://10.10.12.3:0" >>> argv[3]="--native-regs"

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

2017-08-24 Thread Ramana via lldb-dev
port 9, we must find the actual port we bound to and return that. >> Seems >> something has gone wrong with the code that discovers the port that was >> actually bound and is not reporting that back correctly. >> >> >> Should be straight forward to do by debugging the

[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:

Re: [lldb-dev] Current status of simultaneous multiple target debugging in LLDB

2017-06-27 Thread Ramana via lldb-dev
Hi, Could someone please help me on the below? Thanks, Ramana On Mon, Jun 12, 2017 at 11:58 AM, Ramana wrote: > Hi, > > I have to implement a debugger for our HW which comprises of CPU+GPU where > the GPU is coded in OpenCL and is accelerated through OpenVX API in C++ > application which runs

[lldb-dev] Current status of simultaneous multiple target debugging in LLDB

2017-06-11 Thread Ramana via lldb-dev
Hi, I have to implement a debugger for our HW which comprises of CPU+GPU where the GPU is coded in OpenCL and is accelerated through OpenVX API in C++ application which runs on CPU. Our requirement is we should be able to debug the code running on both CPU and GPU simultaneously with in the same L

Re: [lldb-dev] Debugging ELF relocatable files using LLDB

2017-02-21 Thread Ramana via lldb-dev
On Thu, Feb 16, 2017 at 10:26 PM, Greg Clayton wrote: > > On Feb 16, 2017, at 3:51 AM, Ramana via lldb-dev > wrote: > > It looks like LLDB doesn't like ELF relocatable files for debugging > and asserts with the following message when tried > > /lldb/

[lldb-dev] Debugging ELF relocatable files using LLDB

2017-02-16 Thread Ramana via lldb-dev
It looks like LLDB doesn't like ELF relocatable files for debugging and asserts with the following message when tried /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:2228: unsigned int ObjectFileELF::RelocateSection(.): Assertion `false && "unexpected relocation type"' failed. Are

[lldb-dev] A typo on the "Testing LLDB" tutorial page?

2017-02-08 Thread Ramana via lldb-dev
On the "Testing LLDB" tutorial page, in the description under "RUNNING TESTS -> Running the full test suite" section, should this > cmake -DLLDB_TEST_ARGS="-A i386 -C /path/to/custom/clang" -G Ninja > ninja check-lldb be > cmake -DLLDB_TEST_USER_ARGS="-A i386 -C /path/to/custom/clang" -G Ninja >