summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/disasm.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-06 17:33:30 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-06 17:33:30 +0000
commitcf4f56c4cbf1e32812830796657a765e796f32fd (patch)
tree618ade76346755e75ddaa43f31615986c136ebb4 /lldb/examples/python/disasm.py
parent4801cc6315c90fe1289e6da9f4dcf4e7be58b587 (diff)
downloadbcm5719-llvm-cf4f56c4cbf1e32812830796657a765e796f32fd.tar.gz
bcm5719-llvm-cf4f56c4cbf1e32812830796657a765e796f32fd.zip
Fixed a few issues with the example script.
llvm-svn: 115801
Diffstat (limited to 'lldb/examples/python/disasm.py')
-rwxr-xr-xlldb/examples/python/disasm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/examples/python/disasm.py b/lldb/examples/python/disasm.py
index f6868e6e4ea..8239cf337f9 100755
--- a/lldb/examples/python/disasm.py
+++ b/lldb/examples/python/disasm.py
@@ -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():
OpenPOWER on IntegriCloud