Fixed a few issues with the example script.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/disasm.py b/examples/python/disasm.py
index f6868e6..8239cf3 100755
--- a/examples/python/disasm.py
+++ b/examples/python/disasm.py
@@ -32,11 +32,11 @@
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():