- printf_filtered ("\n\032\032frame-begin %d ", level);
- print_address_numeric (pc, 0, gdb_stdout);
- printf_filtered ("\n");
+ const std::vector<off_t> *offsets;
+ if (!g_source_cache.get_line_charpos (s, &offsets))
+ return false;
+ if (line > offsets->size ())
+ return false;
+
+ annotate_source (s->fullname, line, (int) (*offsets)[line - 1],
+ mid_statement, SYMTAB_OBJFILE (s)->arch (),
+ pc);
+
+ /* Update the current symtab and line. */
+ symtab_and_line sal;
+ sal.pspace = SYMTAB_PSPACE (s);
+ sal.symtab = s;
+ sal.line = line;
+ set_current_source_symtab_and_line (sal);
+
+ return true;