This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC - Python] New ObjFile event


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

Kevin> 	Allow Python notification of new object-file loadings.
[...]

Kevin> +During the callback, ``current objfile'' will be set to the new object file
Kevin> +(@pxref{Objfiles In Python}).

Why not simply make the objfile object an attribute of the event?
That seems cleaner to me.

Kevin> +  if (objfile == NULL)
Kevin> +       return;

Indentation looks off.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]