Embedded systems often require a careful eye to where memory resources are being
spent, especially runtime memory utilization like stack and heap memories.
Great Post, really love it!
Do I miss something or is hit_breakpoint function never defined?
I would assume it would look something like this:
def hit_breakpoint() -> bool:
locations = []
for gdb_breakpoint in gdb.breakpoints():
for location in gdb_breakpoint.locations:
locations.append(location.address)
pc = int(gdb.parse_and_eval("$pc"))
if pc in locations:
return True
return False
Hi. I’ve been reading this blog for a very long time. I advise all friends to read, but many miss useful articles and I would like to convey useful information to them. I ask permission to translate it for my readers and friends from Armenia, Ukraine, Russia and Georgia.