Fix --debug option to default to gdb

When --debug is specified, pick up the default value for
--debug-command of 'gdb --args' correctly.

svn path=/trunk/; revision=20
This commit is contained in:
Owen Taylor 2008-11-02 03:03:00 +00:00
parent 758e083caf
commit b81733d9e4

View File

@ -71,7 +71,7 @@ class Launcher:
env['GJS_DEBUG_TOPICS'] = 'JS LOG' env['GJS_DEBUG_TOPICS'] = 'JS LOG'
if self.options.debug: if self.options.debug:
args = list(self.options.debug_command) args = list(self.debug_command)
else: else:
args = [] args = []