2020-07-16 23:02:52 -05:00
|
|
|
# funcionalidade basica
|
|
|
|
|
|
|
|
set history save
|
|
|
|
set history size 1000
|
|
|
|
|
2019-04-28 12:19:03 -05:00
|
|
|
# funcoes para facilitar o uso do arm-none-eabi-gdb
|
|
|
|
|
|
|
|
# sequencia inicial
|
2020-07-16 23:02:52 -05:00
|
|
|
define rst
|
2019-04-28 12:19:03 -05:00
|
|
|
monitor reset halt
|
|
|
|
tb main
|
|
|
|
continue
|
|
|
|
end
|
|
|
|
|
|
|
|
# essa eh necessaria com a STM32F4 para programar
|
2020-07-16 23:02:52 -05:00
|
|
|
define mrh
|
2019-04-28 12:19:03 -05:00
|
|
|
monitor reset halt
|
|
|
|
end
|
|
|
|
|
|
|
|
# para conectar ao microcontrolador
|
2020-07-16 23:02:52 -05:00
|
|
|
define loco
|
2020-09-01 20:45:29 -05:00
|
|
|
target extended-remote localhost:3333
|
2019-04-28 12:19:03 -05:00
|
|
|
end
|
|
|
|
|
2020-07-16 23:02:52 -05:00
|
|
|
define semihosting
|
2019-04-28 12:19:03 -05:00
|
|
|
monitor arm semihosting enable
|
|
|
|
end
|
2020-11-16 21:24:36 -06:00
|
|
|
|
|
|
|
source /usr/share/gef/gef.py
|