[SH] regs command

Tom Tromey tromey@redhat.com
Fri May 18 13:47:00 GMT 2012


>>>>> "Maciej" == Maciej W Rozycki <macro@codesourcery.com> writes:

Maciej>  While I agree that this command deprecation case may not be important 
Maciej> enough to make a decision on an internal API change weeks before a 
Maciej> release, that does not mean the problem is not there.

Yeah, I agree, there is a problem -- it is encountered infrequently
enough that we can usually pretend it isn't there.  There's also some
places that were designed to avoid dependency problems, like the way
command list roots are statically allocated.

Basing the dependencies on file names doesn't seem robust.  It works in
this case; but I don't think there is a reason to believe it will always
be a workable approach.

I think one way to fix it would be to have the code express the
dependencies.  This might be tricky to maintain, though I suppose with
enough assertions it could be robust.

Tom



More information about the Gdb-patches mailing list