pkorotkov / google-coredumper

Automatically exported from code.google.com/p/google-coredumper
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

/dev/ memory are not dumped in the core #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear developers,

This is not a issue. The code skips device memory in following code? I checked 
if delete "|| is_device", the /dev/ memory can be dumped. But what does the 
comment "be careful not to touch mapped devices" point to? Any side effect?

src/elfcore.c:
           * Also, be careful not to touch mapped devices.
           */
          if ((mappings[i].flags & PF_R) == 0 || 
              mappings[i].start_address == mappings[i].end_address ||
              is_device) {
            num_mappings--;
          } else {
            i++; 
          }    

Your comment will be appreciated.

Xianlong

Original issue reported on code.google.com by rainco...@gmail.com on 19 Feb 2014 at 8:34