ghidra icon indicating copy to clipboard operation
ghidra copied to clipboard

Request: stack frame editor prompt to overwrite when assigning struct

Open mumbel opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When using the stack frame editor, if there are fields already created and you want to create a struct on the stack that would end up containing those fields it is not allowed

Describe the solution you'd like Similar to how .bss/.data works, if a struct would overwrite defined fields in memory it will prompt and overwrite those fields with that struct.

Describe alternatives you've considered Manually clear out the fields as needed

Additional context win10/ 10.1.3 / 11.0.10

mumbel avatar Jun 20 '22 18:06 mumbel

This is related to a similar Structure Editor request which we will be looking into

ghidra1 avatar Jun 29 '22 15:06 ghidra1

This is related to a similar Structure Editor request which we will be looking into

I was going to suggest exactly this but looks like I was beaten to it.

Something similar for the retype field action in the decompiler would be nice too. However, I can see not knowing which fields will be overwritten being problematic. I find that in most cases I I'm still determining the structures layout and don't care about what will be overwritten.

astrelsky avatar Jun 30 '22 11:06 astrelsky