public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  gsoc-kayral-python: removed auto-backup file.
@ 2009-08-16 13:16 kayral
  0 siblings, 0 replies; only message in thread
From: kayral @ 2009-08-16 13:16 UTC (permalink / raw)
  To: archer-commits

The branch, gsoc-kayral-python has been updated
       via  73b611ca34c81b6acce9df553add10af8347e999 (commit)
      from  a746a0dde3f7209168974a5a92758c89d706f650 (commit)

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

- Log -----------------------------------------------------------------
commit 73b611ca34c81b6acce9df553add10af8347e999
Author: oguz <oguz@pardus.(none)>
Date:   Sun Aug 16 16:15:46 2009 +0300

    removed auto-backup file.

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

Summary of changes:
 gdb/python/python-breakpointstopevent.c~ |  162 ------------------------------
 1 files changed, 0 insertions(+), 162 deletions(-)
 delete mode 100644 gdb/python/python-breakpointstopevent.c~

First 500 lines of diff:
diff --git a/gdb/python/python-breakpointstopevent.c~ b/gdb/python/python-breakpointstopevent.c~
deleted file mode 100644
index d8d2ea4..0000000
--- a/gdb/python/python-breakpointstopevent.c~
+++ /dev/null
@@ -1,162 +0,0 @@
-/* Python interface to inferior breakpoint stop events.
-
-   Copyright (C) 2009 Free Software Foundation, Inc.
-
-   This file is part of GDB.
-
-   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/>.  */
-
-#include "defs.h"
-#include "command.h"
-#include "python-internal.h"
-#include "inferior.h"
-
-static PyTypeObject breakpoint_stop_event_object_type;
-
-static int
-bp_stop_evpy_init (PyObject *self, PyObject *args, PyObject *kwds)
-{
-  if (stop_event_object_type.tp_init ((PyObject *) self, args, kwds) < 0)
-    return -1;
-
-  return 0;
-}
-
-static void
-bp_stop_evpy_dealloc (PyObject *self)
-{
-  Py_DECREF (((breakpoint_stop_event_object *) self)->breakpoint);
-  self->ob_type->tp_free (self);
-}
-
-static PyObject *
-bp_stop_evpy_get_breakpoint (PyObject *self, void *closure)
-{
-  breakpoint_stop_event_object *breakpoint_stop_event_obj = (breakpoint_stop_event_object *) self;
-
-  Py_INCREF (breakpoint_stop_event_obj->breakpoint);
-
-  return (PyObject *) (breakpoint_stop_event_obj->breakpoint);
-}
-
-breakpoint_stop_event_object *
-create_breakpoint_stop_event_object (breakpoint_object *bp)
-{
-  breakpoint_stop_event_object *breakpoint_stop_event_obj;
-
-  breakpoint_stop_event_obj = PyObject_New (breakpoint_stop_event_object, &breakpoint_stop_event_object_type);
-  if (!breakpoint_stop_event_obj)
-    return NULL;
-
-  breakpoint_stop_event_obj->stop_event.event.inferior_thread = find_thread_object (inferior_ptid);
-  Py_INCREF (breakpoint_stop_event_obj->stop_event.event.inferior_thread);
-  breakpoint_stop_event_obj->stop_event.event.event_type = (PyStringObject *) PyString_FromString ("stop");
-  breakpoint_stop_event_obj->stop_event.stop_reason = (PyStringObject *) PyString_FromString ("breakpoint");
-  breakpoint_stop_event_obj->breakpoint = bp;
-  Py_INCREF (breakpoint_stop_event_obj->breakpoint);
-
-  return breakpoint_stop_event_obj;
-}
-
-void
-gdbpy_initialize_breakpoint_stop_event (void)
-{
-  breakpoint_stop_event_object_type.tp_base = &stop_event_object_type;
-  if (PyType_Ready (&breakpoint_stop_event_object_type) < 0)
-    return;
-
-  Py_INCREF (&breakpoint_stop_event_object_type);
-  PyModule_AddObject (gdb_module, "BreakpointStopEvent", (PyObject *) &breakpoint_stop_event_object_type);
-}
-
-void
-emit_breakpoint_stop_event (struct bpstats *bs)
-{
-  thread_object *inferior_thread;
-  PyObject *callback_list;
-  PyObject *args_tuple;
-  Py_ssize_t i;
-  breakpoint_object *breakpoint;
-  breakpoint_stop_event_object *breakpoint_stop_event_obj;
-
-  inferior_thread = find_thread_object (inferior_ptid);
-
-  /* Emitting stop events on exited inferiors cause a segmentation fault.
-     Check if the inferior is still alive to avoid the segmentation fault. */
-  if (!inferior_thread)
-    return;
-
-  breakpoint = gdbpy_breakpoint_from_bpstats (bs);
-
-  breakpoint_stop_event_obj = create_breakpoint_stop_event_object (breakpoint);
-
-  callback_list = (PyObject *) (inferior_thread->breakpoint_stop_eventregistry->callbacks);
-
-  args_tuple = PyTuple_New ((Py_ssize_t) 1);
-  PyTuple_SetItem (args_tuple, (Py_ssize_t) 0, (PyObject *) breakpoint_stop_event_obj);
-
-  for (i = 0; i < PyList_Size (callback_list); i++)
-    {
-      PyObject_CallObject (PyList_GET_ITEM (callback_list, i), args_tuple);
-    }
-}
-
-static PyGetSetDef breakpoint_stop_event_object_getset[] =
-{
-  { "breakpoint", bp_stop_evpy_get_breakpoint, NULL, "Breakpoint.", NULL },
-
-  { NULL }
-};
-
-static PyTypeObject breakpoint_stop_event_object_type =
-{
-  PyObject_HEAD_INIT (NULL)
-  0,                                          /* ob_size */
-  "gdb.BreakpointStopEvent",                  /* tp_name */
-  sizeof (breakpoint_stop_event_object),      /* tp_basicsize */
-  0,                                          /* tp_itemsize */
-  bp_stop_evpy_dealloc,                       /* tp_dealloc */
-  0,                                          /* tp_print */
-  0,                                          /* tp_getattr */
-  0,                                          /* tp_setattr */
-  0,                                          /* tp_compare */
-  0,                                          /* tp_repr */
-  0,                                          /* tp_as_number */
-  0,                                          /* tp_as_sequence */
-  0,                                          /* tp_as_mapping */
-  0,                                          /* tp_hash  */
-  0,                                          /* tp_call */
-  0,                                          /* tp_str */
-  0,                                          /* tp_getattro */
-  0,                                          /* tp_setattro */
-  0,                                          /* tp_as_buffer */
-  Py_TPFLAGS_DEFAULT,                         /* tp_flags */
-  "GDB breakpoint stop event object",         /* tp_doc */
-  0,                                          /* tp_traverse */
-  0,                                          /* tp_clear */
-  0,                                          /* tp_richcompare */
-  0,                                          /* tp_weaklistoffset */
-  0,                                          /* tp_iter */
-  0,                                          /* tp_iternext */
-  0,                                          /* tp_methods */
-  0,                                          /* tp_members */
-  breakpoint_stop_event_object_getset,        /* tp_getset */
-  0,                                          /* tp_base */
-  0,                                          /* tp_dict */
-  0,                                          /* tp_descr_get */
-  0,                                          /* tp_descr_set */
-  0,                                          /* tp_dictoffset */
-  bp_stop_evpy_init,                          /* tp_init */
-  0                                           /* tp_alloc */
-};


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-16 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 13:16 [SCM] gsoc-kayral-python: removed auto-backup file kayral

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).