epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.11k stars 67 forks source link

Don't set/unset 'randomize start address' when using connect, attach, corefile modes. #123

Closed epasveer closed 1 year ago

epasveer commented 1 year ago

Randomizing the start address is not always supported for all platforms. Specifically, it should only be used for run/start modes.

Also, instead of bringing up an error dialog, just print the error to the status bar.

image

epasveer commented 1 year ago

Looking at the code, it is already only called for run/start modes. It is not called for connect/attach.

I'm thinking the user is starting the embedded app with the wrong mode. Should use "attach". Not "run/start".

When I get my embedded test environment, I will look at improving the "connect/attach" modes.

epasveer commented 1 year ago

For now, it is only set to turn on randomization. If the Seer config says to turn it off, the setting is not used. So this will prevent any call to gdb, thus avoiding the error message.

So turn it off in Seer's config page under the gdb tab.

epasveer commented 1 year ago

Closing task. Reopen or create a new task if required.