public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: pmuldoon@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-pmuldoon-python-backtrace: Remove upto.py
Date: Thu, 14 Jun 2012 10:26:00 -0000	[thread overview]
Message-ID: <20120614102619.28668.qmail@sourceware.org> (raw)

The branch, archer-pmuldoon-python-backtrace has been updated
       via  ad9b70c700bac4bad3a314a5ed133d4f7f13fa41 (commit)
      from  edcdfba5b00306ef19e7da9a23665cb8e0a88bc6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit ad9b70c700bac4bad3a314a5ed133d4f7f13fa41
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Jun 14 11:26:02 2012 +0100

    Remove upto.py

-----------------------------------------------------------------------

Summary of changes:
 gdb/python/lib/gdb/command/upto.py |  128 ------------------------------------
 1 files changed, 0 insertions(+), 128 deletions(-)
 delete mode 100644 gdb/python/lib/gdb/command/upto.py

First 500 lines of diff:
diff --git a/gdb/python/lib/gdb/command/upto.py b/gdb/python/lib/gdb/command/upto.py
deleted file mode 100644
index 5126531..0000000
--- a/gdb/python/lib/gdb/command/upto.py
+++ /dev/null
@@ -1,128 +0,0 @@
-# upto command.
-
-# Copyright (C) 2009, 2010 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
-import gdb.frame
-import re
-
-class UptoPrefix (gdb.Command):
-    def __init__ (self):
-        super (UptoPrefix, self).__init__ ("upto", gdb.COMMAND_STACK,
-                                           prefix = True)
-
-class UptoImplementation (gdb.Command):
-    def __init__ (self, subcommand):
-        super (UptoImplementation, self).__init__ ("upto " + subcommand,
-                                                   gdb.COMMAND_STACK)
-
-    def search (self):
-        saved = gdb.selected_frame ()
-        iter = gdb.frame.FrameIterator (saved)
-        found = False
-        try:
-            for frame in iter:
-                frame.select ()
-                try:
-                    if self.filter (frame):
-                        wrapper = gdb.frame.FrameWrapper (frame)
-                        gdb.frame.print_frame(wrapper, sys.stdout)
-                        return
-                except:
-                    pass
-        except:
-            pass
-        saved.select ()
-        raise RuntimeError, 'Could not find a matching frame'
-
-    def invoke (self, arg, from_tty):
-        self.rx = re.compile (arg)
-        self.search ()
-
-class UptoSymbolCommand (UptoImplementation):
-    """Select and print some calling stack frame, based on symbol.
-The argument is a regular expression.  This command moves up the
-stack, stopping at the first frame whose symbol matches the regular
-expression."""
-
-    def __init__ (self):
-        super (UptoSymbolCommand, self).__init__ ("symbol")
-
-    def filter (self, frame):
-        name = frame.name ()
-        if name is not None:
-            if self.rx.search (name) is not None:
-                return True
-        return False
-
-class UptoSourceCommand (UptoImplementation):
-    """Select and print some calling stack frame, based on source file.
-The argument is a regular expression.  This command moves up the
-stack, stopping at the first frame whose source file name matches the
-regular expression."""
-
-    def __init__ (self):
-        super (UptoSourceCommand, self).__init__ ("source")
-
-    def filter (self, frame):
-        name = frame.find_sal ().symtab.filename
-        if name is not None:
-            if self.rx.search (name) is not None:
-                return True
-        return False
-
-class UptoObjectCommand (UptoImplementation):
-    """Select and print some calling stack frame, based on object file.
-The argument is a regular expression.  This command moves up the
-stack, stopping at the first frame whose object file name matches the
-regular expression."""
-
-    def __init__ (self):
-        super (UptoObjectCommand, self).__init__ ("object")
-
-    def filter (self, frame):
-        name = frame.find_sal ().symtab.objfile.filename
-        if name is not None:
-            if self.rx.search (name) is not None:
-                return True
-        return False
-
-class UptoWhereCommand (UptoImplementation):
-    """Select and print some calling stack frame, based on expression.
-The argument is an expression.  This command moves up the stack,
-parsing and evaluating the expression in each frame.  This stops when
-the expression evaluates to a non-zero (true) value."""
-
-    def __init__ (self):
-        super (UptoWhereCommand, self).__init__ ("where")
-
-    def filter (self, frame):
-        try:
-            if gdb.parse_and_eval (self.expression):
-                return True
-        except:
-            pass
-        return False
-
-    def invoke (self, arg, from_tty):
-        self.expression = arg
-        self.search ()
-
-UptoPrefix ()
-UptoSymbolCommand ()
-UptoSourceCommand ()
-UptoObjectCommand ()
-UptoWhereCommand ()


hooks/post-receive
--
Repository for Project Archer.


                 reply	other threads:[~2012-06-14 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120614102619.28668.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).