[RFC] gdb.mi tests
Aleksandar Ristovski
aristovski@qnx.com
Fri Mar 14 18:07:00 GMT 2008
Daniel Jacobowitz wrote:
> On Wed, Mar 12, 2008 at 04:49:08PM -0400, Aleksandar Ristovski wrote:
>> This means that the order in which files are loaded matters and the latter
>> in the process a file gets loaded, it carries more 'overriding'
>> capabilities. Therefore, first files loaded should be very generic, going
>> towards customization files.
>
> Yes. But load_lib will not reload an already loaded file - we have
> some board files which check if $tool == "gdb", and load_lib
> mi-support.exp themselves, and use "rename". I didn't say it was
> pretty or the right way!
>
True. It means that load_lib mi-support.exp can safely stay in the testcases,
and who needs to override something from there should add 'load_lib
mi-support.exp' in their baseboard file and then rewrite the function (or use
rename) after load_lib.
I would still like to see changes to mi-support.exp go in to make it more
in-line with gdb.exp; I think "rename" would be avoided in most of the cases.
Nothing critical though...
More information about the Gdb-patches
mailing list