+/* get_fp_num() returns the register number of the frame pointer for the frame
+ specified by pc. Depending on how the function was compiled, the fp could
+ be either a1 (sp) or another register set by the compiler.
+ Note: it returns register number for an Ax, not for ARx.
+
+ We extract the FP register number from the DWARF info generated by the
+ compiler. If anything is wrong with the DWARF info or there is no DWARF
+ info at all we return A1_REGNUM. */
+
+static int
+get_fp_num (CORE_ADDR pc)
+{
+ struct symtab_and_line debug_info;
+ struct symbol *func_sym;
+
+ DEBUGTRACE ("get_fp_num (pc = 0x%08x)\n", (int) pc);
+
+ debug_info = find_pc_line (pc, 0);
+ /* If there is no debug info return A1. */
+ if (debug_info.line == 0)
+ return A1_REGNUM;
+
+ func_sym = find_pc_function (pc);
+ if (func_sym)
+ {
+ if (SYMBOL_OPS (func_sym) == &dwarf2_locexpr_funcs)
No way. I don't know what you need this information for, but we have
to find some way to get it that does not require grubbing around in the
private data structures of the symbol reader