简体   繁体   中英

Specify file to read for memory region in GDB?

I'm using gdb for arm in Linux.

I want to read memory region from file, not read from target. It looks like read target description via set tdesc filename PATH . I found out the function static void require_user_regions (int from_tty) in memattr.c but I don't know how to use it.

Please let me know if you have any suggestion.

If you want to read the memory from a running process you gotta use the procfs : http://en.wikipedia.org/wiki/Procfs#Linux

The file you're looking for is /proc/[pid]/mem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM