1
1

debuggers: update warning messages when types not found

Fixes #302.
Этот коммит содержится в:
Jeff Squyres 2014-12-04 03:01:51 -08:00
родитель 04a4cbd77a
Коммит a71b5dd5c7

Просмотреть файл

@ -62,7 +62,11 @@ static int host_is_big_endian = 0;
{ \ { \
out_name = mqs_field_offset((qh_type), #field_name); \ out_name = mqs_field_offset((qh_type), #field_name); \
if (out_name < 0) { \ if (out_name < 0) { \
fprintf(stderr, "WARNING: Field " #field_name " of type " #struct_name " not found!\n"); \ fprintf(stderr, "WARNING: Open MPI is unable to find " \
"field " #field_name " in the " #struct_name \
" type. This can happen can if Open MPI is built " \
"without debugging information, or is stripped " \
"after building.\n"); \
} \ } \
} }
#endif #endif
@ -503,7 +507,8 @@ int ompi_fill_in_type_info(mqs_image *image, char **message)
* did our best but here we're at our limit. Give up! * did our best but here we're at our limit. Give up!
*/ */
*message = missing_in_action; *message = missing_in_action;
printf( "The following type is missing %s\n", missing_in_action ); fprintf(stderr, "WARNING: Open MPI is unable to find debugging information about the \"%s\" type. This can happen if Open MPI was built without debugging information, or was stripped after building.\n",
missing_in_action);
return err_missing_type; return err_missing_type;
} }