the proc_regsize() callback to allocate reg and fpreg buffers as part of the proc state (lazily initialized by the PT_STATE_RUNNING case of td_thr_suspend()). Fixes build on sh3 (and probably sh5) platforms.
threads from the context of a debugger.
Make the stacksize lookups and data part of td_proc_st rather than global state.