When running this from the command line, don't pass the python script file itself to be disassembled.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@153626 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/gdbremote.py b/examples/python/gdbremote.py
index 73ef853..4fcf821 100755
--- a/examples/python/gdbremote.py
+++ b/examples/python/gdbremote.py
@@ -181,7 +181,7 @@
import sys
# This script is being run from the command line, create a debugger in case we are
# going to use any debugger functions in our function.
- for file in sys.argv:
+ for file in sys.argv[1:]:
print '#----------------------------------------------------------------------'
print "# GDB remote log file: '%s'" % file
print '#----------------------------------------------------------------------'