|
7 | 7 | * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
|
8 | 8 | * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
9 | 9 | * reserved.
|
| 10 | + * Copyright (c) 2016 Intel, Inc. All rights reserved. |
10 | 11 | * $COPYRIGHT$
|
11 | 12 | *
|
12 | 13 | * Additional copyrights may follow
|
@@ -441,42 +442,43 @@ int mqs_setup_process (mqs_process *process, const mqs_process_callbacks *pcb)
|
441 | 442 | {
|
442 | 443 | mqs_taddr_t typedefs_sizeof;
|
443 | 444 |
|
444 |
| - if(mqs_find_symbol (image, "MPIR_debug_typedefs_sizeof", &typedefs_sizeof) != mqs_ok) |
445 |
| - return err_no_store; |
446 |
| - p_info->sizes.short_size = ompi_fetch_int( process, /* sizeof (short) */ |
447 |
| - typedefs_sizeof, |
448 |
| - p_info ); |
449 |
| - typedefs_sizeof += p_info->sizes.int_size; |
450 |
| - p_info->sizes.int_size = ompi_fetch_int( process, /* sizeof (int) */ |
451 |
| - typedefs_sizeof, |
452 |
| - p_info ); |
453 |
| - typedefs_sizeof += p_info->sizes.int_size; |
454 |
| - p_info->sizes.long_size = ompi_fetch_int( process, /* sizeof (long) */ |
455 |
| - typedefs_sizeof, |
456 |
| - p_info ); |
457 |
| - typedefs_sizeof += p_info->sizes.int_size; |
458 |
| - p_info->sizes.long_long_size = ompi_fetch_int( process, /* sizeof (long long) */ |
459 |
| - typedefs_sizeof, |
460 |
| - p_info ); |
461 |
| - typedefs_sizeof += p_info->sizes.int_size; |
462 |
| - p_info->sizes.pointer_size = ompi_fetch_int( process, /* sizeof (void *) */ |
463 |
| - typedefs_sizeof, |
464 |
| - p_info ); |
465 |
| - typedefs_sizeof += p_info->sizes.int_size; |
466 |
| - p_info->sizes.bool_size = ompi_fetch_int( process, /* sizeof (bool) */ |
467 |
| - typedefs_sizeof, |
468 |
| - p_info ); |
469 |
| - typedefs_sizeof += p_info->sizes.int_size; |
470 |
| - p_info->sizes.size_t_size = ompi_fetch_int( process, /* sizeof (size_t) */ |
| 445 | + if (mqs_find_symbol (image, "MPIR_debug_typedefs_sizeof", &typedefs_sizeof) != mqs_ok) { |
| 446 | + return err_no_store; |
| 447 | + } |
| 448 | + p_info->sizes.short_size = ompi_fetch_int( process, /* sizeof (short) */ |
| 449 | + typedefs_sizeof, |
| 450 | + p_info ); |
| 451 | + typedefs_sizeof += p_info->sizes.int_size; |
| 452 | + p_info->sizes.int_size = ompi_fetch_int( process, /* sizeof (int) */ |
| 453 | + typedefs_sizeof, |
| 454 | + p_info ); |
| 455 | + typedefs_sizeof += p_info->sizes.int_size; |
| 456 | + p_info->sizes.long_size = ompi_fetch_int( process, /* sizeof (long) */ |
| 457 | + typedefs_sizeof, |
| 458 | + p_info ); |
| 459 | + typedefs_sizeof += p_info->sizes.int_size; |
| 460 | + p_info->sizes.long_long_size = ompi_fetch_int( process, /* sizeof (long long) */ |
471 | 461 | typedefs_sizeof,
|
472 | 462 | p_info );
|
473 |
| - DEBUG( VERBOSE_GENERAL, |
474 |
| - ("sizes short = %d int = %d long = %d long long = %d " |
475 |
| - "void* = %d bool = %d size_t = %d\n", |
476 |
| - p_info->sizes.short_size, p_info->sizes.int_size, |
477 |
| - p_info->sizes.long_size, p_info->sizes.long_long_size, |
478 |
| - p_info->sizes.pointer_size, p_info->sizes.bool_size, |
479 |
| - p_info->sizes.size_t_size) ); |
| 463 | + typedefs_sizeof += p_info->sizes.int_size; |
| 464 | + p_info->sizes.pointer_size = ompi_fetch_int( process, /* sizeof (void *) */ |
| 465 | + typedefs_sizeof, |
| 466 | + p_info ); |
| 467 | + typedefs_sizeof += p_info->sizes.int_size; |
| 468 | + p_info->sizes.bool_size = ompi_fetch_int( process, /* sizeof (bool) */ |
| 469 | + typedefs_sizeof, |
| 470 | + p_info ); |
| 471 | + typedefs_sizeof += p_info->sizes.int_size; |
| 472 | + p_info->sizes.size_t_size = ompi_fetch_int( process, /* sizeof (size_t) */ |
| 473 | + typedefs_sizeof, |
| 474 | + p_info ); |
| 475 | + DEBUG( VERBOSE_GENERAL, |
| 476 | + ("sizes short = %d int = %d long = %d long long = %d " |
| 477 | + "void* = %d bool = %d size_t = %d\n", |
| 478 | + p_info->sizes.short_size, p_info->sizes.int_size, |
| 479 | + p_info->sizes.long_size, p_info->sizes.long_long_size, |
| 480 | + p_info->sizes.pointer_size, p_info->sizes.bool_size, |
| 481 | + p_info->sizes.size_t_size) ); |
480 | 482 | }
|
481 | 483 |
|
482 | 484 | mqs_put_process_info (process, (mqs_process_info *)p_info);
|
|
0 commit comments