Posts: 6
Threads: 3
Joined: Dec 2019
Reputation:
0
{[a1,8]} doesn't work. It gives me Invalid log format error. It accepts {[a1]} but logs nothing.
Posts: 3,228
Threads: 25
Joined: Nov 2012
Reputation:
98
Sorry, {[a1,4]} would log 4 bytes (32-bits.) You're right, my example of 8 won't work as it doesn't support 64-bit log values.
If it logs nothing, are you sure your breakpoint is being hit? Even without a log format, it will log something, it'll just be generic. You can put words outside the {} to make sure.
For example, just yesterday I was logging things using {[[[[a0]+0x78]+0x34]+0x2c]}.
-[Unknown]
Posts: 6
Threads: 3
Joined: Dec 2019
Reputation:
0
Yes, {[a1,4]} does works. Can log an offset too with {[a1-x},4]}, but can't log offset 0x1 or 0x3.
However, it sometimes doesn't log any value, produces the log itself but not the value or the any text after it.
Posts: 3,228
Threads: 25
Joined: Nov 2012
Reputation:
98
If you use the latest git build, I recently removed the alignment restriction - not really sure why it was there.
I think it may truncate the string if it can't evaluate the expression inside the {}, so if it became unaligned or was garbage that might've caused it to break. I think the latest git will work better.
-[Unknown]