Re: [lldb-dev] Documentation LLDB-MI

2017-05-26 Thread Jim Ingham via lldb-dev
I see you also asked this on lldb-commits.  This was a better list for that 
question, but I responded on the other list.  In short, unless you need to use 
the MI because you have to support both gdb & lldb, I think you will be much 
happier using the SB API's than the MI.

Jim

> On May 26, 2017, at 3:42 AM, Laghzaoui Mohammed via lldb-dev 
>  wrote:
> 
> Hi Lists,
> I have to implement a graphical interface to open the Dump of Macos with LLDB.
> I know how to do this using the command line, but this and less productive, I 
> found that LLDB-MI little make me an interface to do this need but I did not 
> find an example of LLDB-MI in C ++ and How to build LLDB-MI.
> To detail our need:
> 1 - opening of a core dump.
> 2 -__ reading the value of a memory address.
> 3 -__ list threads and frames.
> 4 -__ get assembler of each frame.
>   
> Thank you in advance for your help
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Documentation LLDB-MI

2017-05-26 Thread Ted Woodward via lldb-dev
lldb-mi uses the gdb/mi interface, which is defined here: 
https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html . The lldb-mi 
implementation is slightly different in some ways, but nothing that should 
affect what you want to do.

 

Looking at the code (in /tools/lldb-mi/MICmdCmdFile.cpp) for 
-file-exec-and-symbols, I don’t see a way to read a core file with mi commands, 
but you can give an lldb command that will be passed through, something like 
“target create foo.elf -c foo.core”

 

You build lldb-mi the same way you build lldb, just use the lldb-mi target. For 
example, “make lldb-mi”.

 

--

Qualcomm Innovation Center, Inc.

The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux 
Foundation Collaborative Project

 

From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Laghzaoui 
Mohammed via lldb-dev
Sent: Friday, May 26, 2017 5:43 AM
To: lldb-dev@lists.llvm.org
Subject: [lldb-dev] Documentation LLDB-MI

 

Hi Lists,

I have to implement a graphical interface to open the Dump of Macos with LLDB.

I know how to do this using the command line, but this and less productive, I 
found that LLDB-MI little make me an interface to do this need but I did not 
find an example of LLDB-MI in C ++ and How to build LLDB-MI.

To detail our need:

1 - opening of a core dump.

2 -__ reading the value of a memory address.

3 -__ list threads and frames.

4 -__ get assembler of each frame.

  

Thank you in advance for your help

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] Documentation LLDB-MI

2017-05-26 Thread Laghzaoui Mohammed via lldb-dev
Hi Lists,
I have to implement a graphical interface to open the Dump of Macos with
LLDB.
I know how to do this using the command line, but this and less productive,
I found that LLDB-MI little make me an interface to do this need but I did
not find an example of LLDB-MI in C ++ and How to build LLDB-MI.
To detail our need:
1 - opening of a core dump.
2 -__ reading the value of a memory address.
3 -__ list threads and frames.
4 -__ get assembler of each frame.

Thank you in advance for your help
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev