summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/gdbremote.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-29 01:40:28 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-29 01:40:28 +0000
commit6ca75a00dc81b85b595251e2280a15f9fb71b653 (patch)
treeccf63914610a873521015e746ebf2bafdde676a0 /lldb/examples/python/gdbremote.py
parentd761d427072876363e295708803786df4e587067 (diff)
downloadbcm5719-llvm-6ca75a00dc81b85b595251e2280a15f9fb71b653.tar.gz
bcm5719-llvm-6ca75a00dc81b85b595251e2280a15f9fb71b653.zip
When running this from the command line, don't pass the python script file itself to be disassembled.
llvm-svn: 153626
Diffstat (limited to 'lldb/examples/python/gdbremote.py')
-rwxr-xr-xlldb/examples/python/gdbremote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/gdbremote.py b/lldb/examples/python/gdbremote.py
index 73ef85349cb..4fcf82168af 100755
--- a/lldb/examples/python/gdbremote.py
+++ b/lldb/examples/python/gdbremote.py
@@ -181,7 +181,7 @@ if __name__ == '__main__':
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 '#----------------------------------------------------------------------'
OpenPOWER on IntegriCloud