This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Michael Snyder wrote:
Sometimes, as Mark says, a segment hasn't been mmapped in yet. I don't yet know what to do about that.
I think the core file doesn't have enough information for restoring mmap'd regions ?
While dumping a checkpoint you could save /proc/pid/maps, and do the mmaps before restoring the rest of the state from core file. But I'm not sure /proc/pid/maps has enough information, the "flags" argument to mmap (thats the 4th one) doesn't seem to be shown there.
Well, I already use /proc/pid/maps to generate the corefile. That's how I know which memory segments need to be saved.
And I know which ones are writeable (I don't have to save the ones that aren't).
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |