This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python] New ObjFile event
- From: Tom Tromey <tromey at redhat dot com>
- To: Kevin Pouget <kevin dot pouget at gmail dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, pmuldoon at redhat dot com, gdb-patches at sourceware dot org
- Date: Mon, 03 Oct 2011 10:31:51 -0600
- Subject: Re: [RFC - Python] New ObjFile event
- References: <AANLkTimybJtpUzy13FuLxQQMJfeWQuf3-cgqGmu23Bq5@mail.gmail.com> <AANLkTin=YO__Mz88HPFoT7a6_it5BxthnUdODJMs52eG@mail.gmail.com> <m362r3q9ih.fsf@fleche.redhat.com> <AANLkTikmMVf7Lz=8ccdXeo1WG8k+ivHMCXkC7BkZkLNP@mail.gmail.com> <AANLkTi=ObZFW+uoecfzvHhXr55zYZzSgX2ocJJrvXDv0@mail.gmail.com> <m339m4dgzr.fsf@redhat.com> <AANLkTima2Kk8C16hjj0kTtvsH9W33CbiE2y6wrVQXns5@mail.gmail.com> <m3ipt68mrs.fsf@fleche.redhat.com> <BANLkTi=NqJK6c+Cbvhc1M2fE=cS=5khSJg@mail.gmail.com> <CAPftXUKyge-BpB05PTn=5C=1HG6hgv8eS9rDYiZhooVMrrgZuQ@mail.gmail.com> <E1Qz4Lp-0007E1-Kl@fencepost.gnu.org> <CAPftXULTp2Z9PsY_RM+MAwahcEjNk2s=kgqUhz1guCMYUXGN9g@mail.gmail.com>
>>>>> "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