forked from OSchip/llvm-project
Fixed a few issues with the example script.
llvm-svn: 115801
This commit is contained in:
parent
4801cc6315
commit
cf4f56c4cb
|
@ -32,11 +32,11 @@ target = debugger.CreateTargetWithFileAndArch (sys.argv[1], "x86_64")
|
|||
|
||||
if target.IsValid():
|
||||
# If the target is valid set a breakpoint at main
|
||||
main_bp = target.BreakpointCreateByName ("main", "a.out");
|
||||
main_bp = target.BreakpointCreateByName ("main", sys.argv[1]);
|
||||
|
||||
# Launch the process. Since we specified synchronous mode, we won't return
|
||||
# from this function until we hit the breakpoint at main
|
||||
process = target.LaunchProcess (sys.argv[2:], [''], "dev/stdout", 0, False)
|
||||
process = target.LaunchProcess (sys.argv[2:], [''], "/dev/stdout", 0, False)
|
||||
|
||||
# Make sure the launch went ok
|
||||
if process.IsValid():
|
||||
|
|
Loading…
Reference in New Issue