1
1

Pull in the MPIR_Breakpoint symbol via a dummy function in

debuggers_base_fns.c: orte_debugger_base_pull_mpir_breakpoint().

This commit was SVN r25660.
Этот коммит содержится в:
Jeff Squyres 2011-12-15 18:39:34 +00:00
родитель 2dd2694f25
Коммит a4c8bb27fa
3 изменённых файлов: 15 добавлений и 0 удалений

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

@ -74,6 +74,8 @@ typedef void (*orte_debugger_breakpoint_fn_t)(void);
ORTE_DECLSPEC void MPIR_Breakpoint(void);
ORTE_DECLSPEC void orte_debugger_base_pull_mpir_breakpoint(void);
/* --- end MPICH/TotalView std debugger interface definitions */
END_C_DECLS

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

@ -183,6 +183,15 @@ void orte_debugger_base_init_after_spawn(orte_job_t *jdata)
#endif
/*
* Dummy function so that the linker can pull in all the symbols from
* this file.
*/
void orte_debugger_base_pull_mpir_breakpoint(void)
{
return;
}
/*
* Breakpoint function for parallel debuggers
*/

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

@ -587,6 +587,10 @@ int orterun(int argc, char *argv[])
}
MPIR_force_to_main = 0;
memset(MPIR_attach_fifo, 0, MPIR_MAX_PATH_LENGTH);
/* This function call simply ensures that all the symbols --
including MPIR_Breakpoint -- are pulled in via the linker from
orte/mca/debugger/base/debugger_base_fns.c. */
orte_debugger_base_pull_mpir_breakpoint();
/* Check for some "global" command line params */
parse_globals(argc, argv, &cmd_line);