usual Python way. This is useful if, for example, one needs to do
some extra record keeping associated with the inferior.
+@anchor{choosing attribute names}
+When selecting a name for a new attribute, avoid starting the new
+attribute name with a lower case letter; future attributes added by
+@value{GDBN} will start with a lower case letter. Additionally, avoid
+starting attribute names with two underscore characters, as these
+could clash with Python builtin attribute names.
+
In this contrived example we record the time when an inferior last
stopped:
in the usual Python way. This is useful if, for example, one needs to
do some extra record keeping associated with the thread.
+@xref{choosing attribute names}, for guidance on selecting a suitable
+name for new attributes.
+
In this contrived example we record the time when a thread last
stopped:
This is useful if, for example, one needs to do some extra record keeping
associated with the program space.
+@xref{choosing attribute names}, for guidance on selecting a suitable
+name for new attributes.
+
In this contrived example, we want to perform some processing when
an objfile with a certain symbol is loaded, but we only want to do
this once because it is expensive. To achieve this we record the results
This is useful if, for example, one needs to do some extra record keeping
associated with the objfile.
+@xref{choosing attribute names}, for guidance on selecting a suitable
+name for new attributes.
+
In this contrived example we record the time when @value{GDBN}
loaded the objfile.