How about if we changed the way this "mode" is handled to
get out of the dire straits we're in...

We need a couple of operations at least:

- set known mode (handled today)
- save &  restore mode (can be handled w/unknown mode I think)
- try to interpret mode to user text (here unknown modes are trivially
handlled)

Others?


I was thinking about replacing the mode enum with a structure:

struct translated_mode
{
    int saved_mode;
    enum translated_mode mode;
};

that way we would get type checking too and can more easily
catch the type bugs I spotted today...

-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to