[lldb-dev] How to get the error message while creating an invalid target?

2016-03-08 Thread Jeffrey Tan via lldb-dev
Hi, In lldb, when I try to "target create [invalid_target]", I got some meaningful error message like: error: 'XXX' doesn't contain any 'host' platform architectures: x86_64h, x86_64, i386 What is the python API to get this from? I tried to check SBTarget.IsValid() and then use

Re: [lldb-dev] Question about building line tables

2016-03-08 Thread Zachary Turner via lldb-dev
Let's suppose I've got this function (ignore the operands to branch instructions, I disassembled a real function and just manually adjusted addresses on the left side only just to create a contrived example). infinite-dwarf.exe`main at infinite.cpp:5 4 5int main(int argc, char **argv) {

Re: [lldb-dev] Inquiry about Load Address

2016-03-08 Thread Greg Clayton via lldb-dev
If you are connected to a live process, you just need to look up the lldb::SBAddress for a load address using the SBTarget lldb::SBTarget target = ...; lldb::addr_t load_addr = ...; lldb::SBAddress addr = target.ResolveLoadAddress (load_addr); if (addr.GetSection().IsValid()) { // Load

Re: [lldb-dev] How to set source line breakpoint using BreakpointCreateByLocation?

2016-03-08 Thread Jeffrey Tan via lldb-dev
Thanks for the info. I will use a solution similar to that. Jeffrey On Tue, Mar 8, 2016 at 10:41 AM, Greg Clayton wrote: > > > On Mar 7, 2016, at 5:27 PM, Jeffrey Tan wrote: > > > > Thanks for the info, I will debug this. > > One more quick

Re: [lldb-dev] How to set source line breakpoint using BreakpointCreateByLocation?

2016-03-08 Thread Greg Clayton via lldb-dev
> On Mar 7, 2016, at 5:27 PM, Jeffrey Tan wrote: > > Thanks for the info, I will debug this. > One more quick question related to this: in full path breakpoint case(IDE > scenario), do we compare both file name and directory path exact match and > bind breakpoint

[lldb-dev] LLVM 3.8 Release

2016-03-08 Thread Hans Wennborg via lldb-dev
It is my pleasure to announce that LLVM 3.8.0 is now available! Get it here: http://www.llvm.org/releases/download.html#3.8.0 This release contains the work of the LLVM community over the past six months: deprecated autoconf build, shrink-wrapping on by default, overhauled MSVC-compatible

Re: [lldb-dev] FYI: a python crash running tests

2016-03-08 Thread Ted Woodward via lldb-dev
Yes, it’s up for review. Please see http://reviews.llvm.org/D17860 . -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project From: Adrian McCarthy [mailto:amcca...@google.com] Sent: Tuesday,

Re: [lldb-dev] FYI: a python crash running tests

2016-03-08 Thread Adrian McCarthy via lldb-dev
Did you ever push a fix? I'm still seeing this problem, even after a fresh sync. I'm happy to take a look at it today if you don't already have a fix. On Thu, Mar 3, 2016 at 10:18 AM, Ted Woodward wrote: > I think I see the problem; I’ll push up a fix. > > > > --

Re: [lldb-dev] Inquiry about Load Address

2016-03-08 Thread Pavel Labath via lldb-dev
Hi, could you give us a bit more background about what are you trying to do? It's hard to answer the question without knowing a bit more... On 8 March 2016 at 10:42, Ravitheja Addepally via lldb-dev wrote: > Hello, > I wanted to know if there is any existing API

[lldb-dev] Inquiry about Load Address

2016-03-08 Thread Ravitheja Addepally via lldb-dev
Hello, I wanted to know if there is any existing API or a set of API's that could be used to retrieve the load addresses of the Modules ? secondly Can we obtain the dumps of the loaded Elf 's like in the remote case transporting them from the target to the host ? BR, A Ravi Theja