ctrl + r -> shell command search gdb: disassemble /s main tui enable layout split tui reg general record info locals info args p *array@100 p *myStruct break main.c:100 if num == 100 watch i if i == 100 info files info locals info args info registers search writable memory (found with info files) for string find 0x20000000, 0x200117e0, "shell_uart" search pointer to struct find 0x20000000, 0x200117e0, &mgmt_thread_data .gdbinit set history save on set history size 10000 set history filename ~/.gdb_history then use ctrl+r