diff options
| author | Philipp Stephani | 2017-05-20 16:38:22 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-05-21 21:49:25 +0200 |
| commit | d79a4ea632733ac5a0b004728fde737c8952c441 (patch) | |
| tree | 0b6360d34e01dd860f977e767f3ee560e5cd8a23 /src | |
| parent | cf68bb4aed0c3c65f1b71cb13c506f4f706744cc (diff) | |
| download | emacs-d79a4ea632733ac5a0b004728fde737c8952c441.tar.gz emacs-d79a4ea632733ac5a0b004728fde737c8952c441.zip | |
Remove unused function print_regions
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexmacosx.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 97dcb435d37..3b1efa3ca30 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c | |||
| @@ -346,31 +346,6 @@ print_region_list (void) | |||
| 346 | print_region (r->address, r->size, r->protection, r->max_protection); | 346 | print_region (r->address, r->size, r->protection, r->max_protection); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | static void | ||
| 350 | print_regions (void) | ||
| 351 | { | ||
| 352 | task_t target_task = mach_task_self (); | ||
| 353 | vm_address_t address = (vm_address_t) 0; | ||
| 354 | vm_size_t size; | ||
| 355 | struct vm_region_basic_info info; | ||
| 356 | mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT; | ||
| 357 | mach_port_t object_name; | ||
| 358 | |||
| 359 | printf (" address size prot maxp\n"); | ||
| 360 | |||
| 361 | while (vm_region (target_task, &address, &size, VM_REGION_BASIC_INFO, | ||
| 362 | (vm_region_info_t) &info, &info_count, &object_name) | ||
| 363 | == KERN_SUCCESS && info_count == VM_REGION_BASIC_INFO_COUNT) | ||
| 364 | { | ||
| 365 | print_region (address, size, info.protection, info.max_protection); | ||
| 366 | |||
| 367 | if (object_name != MACH_PORT_NULL) | ||
| 368 | mach_port_deallocate (target_task, object_name); | ||
| 369 | |||
| 370 | address += size; | ||
| 371 | } | ||
| 372 | } | ||
| 373 | |||
| 374 | /* Build the list of regions that need to be dumped. Regions with | 349 | /* Build the list of regions that need to be dumped. Regions with |
| 375 | addresses above VM_DATA_TOP are omitted. Adjacent regions with | 350 | addresses above VM_DATA_TOP are omitted. Adjacent regions with |
| 376 | identical protection are merged. Note that non-writable regions | 351 | identical protection are merged. Note that non-writable regions |