Re: [RFC - Python] New ObjFile event

Phil Muldoon
2011-03-28T08:51:32Z

Kevin Pouget <kevin.pouget@gmail.com> writes:

> sorry, gdb/python/py-newobjfileevent.c has not been included in the
> patch, here is its content:
>
> -----
> /* Python interface to new object file loading events.
>
> Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.

Just 2011 here.

> emit_new_objfile_event (struct objfile *objfile)
> {
> PyObject *event;
>
> if (evregpy_no_listeners_p (gdb_py_events.newobjfile))
> return 0;
>
> event = create_new_objfile_event_object ();
> if (event)
> return evpy_emit_event (event, gdb_py_events.newobjfile);
> return -1;
> }

Aha, ignore the comment from the previous patch.

Cheers

Phil