Amazing response time
Works perfect now…
Sorry I poorly explained that.
I meant the “user-button” would be only a substitution for one command in the gdb-console.
A user would like to save breakpoints:
debug_extra_cmds = define user-command save breakpoints to_some_place.txt end
If the user hit the button the “user-command” is executed (brakepoints are saved).