It is, the error is: *error: error: process must be stopped.* I thought that the plugin (get_thread_info in my case) is invoked when the process is already stopped, but it's not. Is it ok?
On Thu, Feb 14, 2019 at 9:53 PM Jim Ingham <jing...@apple.com> wrote: > All SBValues have an error in them (SBValue.GetError). Does that say > anything interesting? > > Jim > > > > > On Feb 14, 2019, at 10:08 AM, Alexander Polyakov via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > Hi lldb-dev, > > I work on a custom implementation of OperatingSystem plugin using Python > and SB API. I’m trying to fetch information about some variables from the > target into the plugin, to do that I’m using the following Python code: > ready_tasks = self._target.FindGlobalVariables(‘pxReadyTasksLists’, > 1).GetValueAtIndex(0) > > > When I do `print(ready_tasks)` I get: > No value > > > At the same time, doing the same actions inside lldb embedded interpreter > follows to: > ` > print(lldb.target.FindGlobalVariables('pxReadyTasksLists',1).GetValueAtIndex(0))` > > > (List_t [5]) pxReadyTasksLists = { > [0] = { > uxNumberOfItems = 0 > pxIndex = 0x00000000 > xListEnd = { > xItemValue = 0 > pxNext = 0x00000000 > pxPrevious = 0x00000000 > } > } > … > > > Does anybody know what may cause such a behavior? > > -- > Alexander > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev > > > -- Alexander
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev