The ppc simulator, in sim_create_inferior, tries to print the function
local entry_point variable before the variable is initialized.
In this commit, I defer the debug print line until the variable has
been initialized.
char * const *envp)
{
unsigned_word entry_point;
- TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n",
- entry_point));
if (simulator == NULL)
error ("No program loaded");
else
entry_point = 0xfff00000; /* ??? */
+ TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n",
+ entry_point));
+
psim_init(simulator);
psim_stack(simulator, argv, envp);