<lucascastro>
Hello, I'm trying inspect memory register using gdb along with openocd, but the registers seem out dated on gdb.
<lucascastro>
I had tried with mon gdb_sync but it wont works, someone knows about it?
<Haohmaru>
what's the chip?
<lucascastro>
stm32f429ZIT6U
<Haohmaru>
is it running?
<lucascastro>
yes, over telnet the register is synced.
<Haohmaru>
because i think you can mostly "read" variables via the debugger while it's not running, or at least that's my impression
<Haohmaru>
in other words, pause/break it, then you can read the current values of anything, huge structures, etc..
<lucascastro>
I got the same impression, but I guessed it could try to sync and read.
<Haohmaru>
maybe there might be some way but i kinda doubt
<Haohmaru>
perhaps what you wanna do can be done another way
<Haohmaru>
another existing thing is "watching" a variable/memory for "change"
<Haohmaru>
might also be known as "data breakpoint"
<Haohmaru>
you tell the debugger you wanna know when "something" gets changed - and then you run/continue the program, and it runs, and if that thing changes - it breaks
<lucascastro>
the variables set but the program is working fine. I just got what you mean by "running". I'm running it as halted and doing step by step
<Haohmaru>
or wait for someone else with better ideas
<Haohmaru>
ah, okay
<Haohmaru>
and even when it's paused - you can't read that address?
<lucascastro>
but the registers is not synced.
<Haohmaru>
is it one of the "special" registers?
<Haohmaru>
or part of some fancy memory region, i don't know
<lucascastro>
I can read but the registers are out dated, I just checked using telnet, over telnet is just fine, only over gdb is outdated.
<Haohmaru>
you probably need advice from someone more familiar with ST chips
<Haohmaru>
hm
<Haohmaru>
well that's interesting
Haohmaru has quit [Quit: saionara]
alkane has quit [Quit: WeeChat 4.6.3]
Hawk777 has joined #openocd
lucascastro has quit [Quit: Leaving]
zjason` has joined #openocd
zjason has quit [Ping timeout: 248 seconds]
lucascastro has joined #openocd
nerozero has quit [Ping timeout: 244 seconds]
tlwoerner_ has joined #openocd
tlwoerner has quit [Remote host closed the connection]
lucascastro has quit [Remote host closed the connection]