Expose device properties to debugger -- taylorza#14425
Expose device properties to debugger -- taylorza#14425holub wants to merge 1 commit intomamedev:masterfrom
Conversation
|
I don't really like this approach of creating a brand new structure for devices to infiltrate the global symbol table with. I'd rather have the CPU (which, after all, is rather customized here) allow non-owned variables to be inserted into its state interface by calling back to the driver during its own |
|
I did this through the cpu in the past. @cuavas doesn't like that either :( |
|
It would be nice if we agree on cpu injection - I can rewrite this way. Alternatively I can give a try and rewrite this without device modification. In case symbols lifecycle accepts this in driver's device_start. CPU's way would be more useful as has the way to format the values out of the box. It's definitely doesn't work nicely for multicpu drivers. |
|
Hmm, what happens if you use device_state_interface on a non-cpu? |
|
State is exposed to active cpu? I'll give a try. |
|
suppressed by #14898 |
This allows to share more internal states with debugger.

... and makes possible do something like:
bp c000, mmu6==2aBrought by taylorza