diff options
Diffstat (limited to 'share/gdb/python/gdb/command/unwinders.py')
-rw-r--r-- | share/gdb/python/gdb/command/unwinders.py | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/share/gdb/python/gdb/command/unwinders.py b/share/gdb/python/gdb/command/unwinders.py index a9b9d8a..028ad7d 100644 --- a/share/gdb/python/gdb/command/unwinders.py +++ b/share/gdb/python/gdb/command/unwinders.py @@ -1,5 +1,5 @@ # Unwinder commands. -# Copyright 2015-2016 Free Software Foundation, Inc. +# Copyright 2015-2019 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 @@ -56,18 +56,17 @@ def parse_unwinder_command_args(arg): class InfoUnwinder(gdb.Command): """GDB command to list unwinders. - Usage: info unwinder [locus-regexp [name-regexp]] +Usage: info unwinder [LOCUS-REGEXP [NAME-REGEXP]] - LOCUS-REGEXP is a regular expression matching the location of the - unwinder. If it is omitted, all registered unwinders from all - loci are listed. A locus can be 'global', 'progspace' to list - the unwinders from the current progspace, or a regular expression - matching filenames of objfiles. +LOCUS-REGEXP is a regular expression matching the location of the +unwinder. If it is omitted, all registered unwinders from all +loci are listed. A locus can be 'global', 'progspace' to list +the unwinders from the current progspace, or a regular expression +matching filenames of objfiles. - NAME-REGEXP is a regular expression to filter unwinder names. If - this omitted for a specified locus, then all registered unwinders - in the locus are listed. - """ +NAME-REGEXP is a regular expression to filter unwinder names. If +this omitted for a specified locus, then all registered unwinders +in the locus are listed.""" def __init__(self): super(InfoUnwinder, self).__init__("info unwinder", @@ -136,6 +135,8 @@ def do_enable_unwinder(arg, flag): if locus_re.match(objfile.filename): total += do_enable_unwinder1(objfile.frame_unwinders, name_re, flag) + if total > 0: + gdb.invalidate_cached_frames() print("%d unwinder%s %s" % (total, "" if total == 1 else "s", "enabled" if flag else "disabled")) @@ -143,17 +144,15 @@ def do_enable_unwinder(arg, flag): class EnableUnwinder(gdb.Command): """GDB command to enable unwinders. - Usage: enable unwinder [locus-regexp [name-regexp]] - - LOCUS-REGEXP is a regular expression specifying the unwinders to - enable. It can 'global', 'progspace', or the name of an objfile - within that progspace. +Usage: enable unwinder [LOCUS-REGEXP [NAME-REGEXP]] - NAME_REGEXP is a regular expression to filter unwinder names. If - this omitted for a specified locus, then all registered unwinders - in the locus are affected. +LOCUS-REGEXP is a regular expression specifying the unwinders to +enable. It can 'global', 'progspace', or the name of an objfile +within that progspace. - """ +NAME_REGEXP is a regular expression to filter unwinder names. If +this omitted for a specified locus, then all registered unwinders +in the locus are affected.""" def __init__(self): super(EnableUnwinder, self).__init__("enable unwinder", @@ -167,17 +166,15 @@ class EnableUnwinder(gdb.Command): class DisableUnwinder(gdb.Command): """GDB command to disable the specified unwinder. - Usage: disable unwinder [locus-regexp [name-regexp]] +Usage: disable unwinder [LOCUS-REGEXP [NAME-REGEXP]] - LOCUS-REGEXP is a regular expression specifying the unwinders to - disable. It can 'global', 'progspace', or the name of an objfile - within that progspace. +LOCUS-REGEXP is a regular expression specifying the unwinders to +disable. It can 'global', 'progspace', or the name of an objfile +within that progspace. - NAME_REGEXP is a regular expression to filter unwinder names. If - this omitted for a specified locus, then all registered unwinders - in the locus are affected. - - """ +NAME_REGEXP is a regular expression to filter unwinder names. If +this omitted for a specified locus, then all registered unwinders +in the locus are affected.""" def __init__(self): super(DisableUnwinder, self).__init__("disable unwinder", |