2007-07-31 Michael Snyder <msnyder@access-company.com>
+ * f-valprint.c (info_common_command): Bail out to prevent null
+ pointer deref. Break up a long line.
+
* exec.c (xfer_memory): Remove redundant condition from 'if'.
* symfile.c (reread_separate_symbols): Free xmalloced memory.
be any minimal symbols in the middle of a function.
FIXME: (Not necessarily true. What about text labels) */
- struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (get_frame_pc (fi));
+ struct minimal_symbol *msymbol =
+ lookup_minimal_symbol_by_pc (get_frame_pc (fi));
if (msymbol != NULL
&& (SYMBOL_VALUE_ADDRESS (msymbol)
if (msymbol != NULL)
funname = DEPRECATED_SYMBOL_NAME (msymbol);
+ else /* Got no 'funname', code below will fail. */
+ error (_("No function found for frame."));
}
/* If comname is NULL, we assume the user wishes to see the