[lldb-dev] run after process stop using python API

Malea, Daniel daniel.malea at intel.com
Wed Jun 26 14:07:39 PDT 2013

'run' is a GDB alias for process launch. If a process is already running, the command interpreter may be waiting for confirmation from the user that it's OK to restart the process (unless you turned off the prompt setting beforehand)... You probably want to issue a "continue" command to restart the process.


From: <Langmuir>, Ben Langmuir <ben.langmuir at intel.com<mailto:ben.langmuir at intel.com>>
Date: Wednesday, 26 June, 2013 4:57 PM
To: "lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>" <lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>>
Subject: [lldb-dev] run after process stop using python API

I’m trying to use the ‘run’ command from the python API when my process has stopped at a breakpoint, but it appears to hang.  Script attached.

i.HandleCommand('b main', res)
i.HandleCommand('r', res) -> runs to breakpoint correctly
i.HandleCommand('r', res) -> appears to hang

This seems like a bug, but I thought I would ask in case the interpreter was waiting for some kind of input I wasn’t providing…  I’m running on Linux, and haven’t had a chance to try OS X yet.


More information about the lldb-dev mailing list