GIF87a;
# Ignore errors in user commands. # Copyright (C) 2008 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import gdb class IgnoreErrorsCommand (gdb.Command): """Execute a single command, ignoring all errors. Only one-line commands are supported. This is primarily useful in scripts.""" def __init__ (self): super (IgnoreErrorsCommand, self).__init__ ("ignore-errors", gdb.COMMAND_OBSCURE, # FIXME... gdb.COMPLETE_COMMAND) def invoke (self, arg, from_tty): try: gdb.execute (arg, from_tty) except: pass IgnoreErrorsCommand ()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__init__.py | File | 694 B | 0644 |
|
__init__.pyc | File | 132 B | 0644 |
|
__init__.pyo | File | 132 B | 0644 |
|
explore.py | File | 26.2 KB | 0644 |
|
explore.pyc | File | 22.78 KB | 0644 |
|
explore.pyo | File | 22.78 KB | 0644 |
|
frame_filters.py | File | 16.04 KB | 0644 |
|
frame_filters.pyc | File | 17.35 KB | 0644 |
|
frame_filters.pyo | File | 17.35 KB | 0644 |
|
ignore_errors.py | File | 1.33 KB | 0644 |
|
ignore_errors.pyc | File | 1.01 KB | 0644 |
|
ignore_errors.pyo | File | 1.01 KB | 0644 |
|
pahole.py | File | 2.73 KB | 0644 |
|
pahole.pyc | File | 2.31 KB | 0644 |
|
pahole.pyo | File | 2.31 KB | 0644 |
|
pretty_printers.py | File | 14.13 KB | 0644 |
|
pretty_printers.pyc | File | 10.92 KB | 0644 |
|
pretty_printers.pyo | File | 10.92 KB | 0644 |
|
prompt.py | File | 2.08 KB | 0644 |
|
prompt.pyc | File | 1.94 KB | 0644 |
|
prompt.pyo | File | 1.94 KB | 0644 |
|
type_printers.py | File | 4.32 KB | 0644 |
|
type_printers.pyc | File | 4.72 KB | 0644 |
|
type_printers.pyo | File | 4.72 KB | 0644 |
|