Aleksandar Ristovski wrote: > Hello, > > By looking at gdb.mi I have noticed that (unfortunately) the way they are > written, they do not allow baseboard files to override mi_* functions. > > gdb.base allows overriding which is great. For example, we override gdb_start > and gdb_load. In overriden functions we call default_ versions and then we > perform some additional tasks. > > For gdb.mi, that is not possible since mi-support.exp is going to be loaded > after baseboard file. > > > I would propose the following changes (only one test from gdb.mi is given as an > example) and would ask you to, please, comment. > > Changes: > > 1. gdb.exp loads mi-support.exp > 2. mi-support.exp to "export" overridable functions. By this I mean to have > mi_cmd and default_mi_cmd pairs, where mi_cmd calls default_mi_cmd. Baseboard > can override mi_cmd (well, it can override anything, but this would be meant to > be overriden). > 3. gdb.mi/* do not load explicitly mi-support.exp > > Something like the diffs attached (I manually removed some things from my diff > so the diff may not be patchable, but it should be sufficient to illustrate what > am I talking about. > Attached working diff. Comments welcome. Thanks, Aleksandar Ristovski QNX Software Systems