This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Minimal core dump mapping set
- From: ÐÑÐÑÑÐÐÐ ÐÐÐÐÐ ÐÐÐÐÐÐÑÐÐÐÑ <kukp at 1c dot ru>
- To: gdb at sourceware dot org <gdb at sourceware dot org>
- Date: Wed, 20 Apr 2016 19:59:50 +0300
- Subject: Minimal core dump mapping set
- Authentication-results: sourceware.org; auth=none
Dear developers,
I want to generate core dump file by application itself. Of course it supposed to be compatible with gdb. When I store all anonymous mappings to the file I get no problems. I can see stacks and heaps and so forth. But I want to store only stacks without heap. So I decided to skip anonymous mappings. Here I get in trouble. Gdb can't open that kind of core. I noticed that storing last 4 anonymous mappings (I mean in proc maps list) solves the problem. But how can I be sure that and if the particular mapping is vital for gdb. And what do those mappings keep.
Thank you for answer,
Pavel Kukushkin,
kukp@1c.ru