* infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR

errors when reading the `stop_pc'.
	* printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
	get_frame_pc.
This commit is contained in:
Pedro Alves
2011-03-22 14:39:40 +00:00
parent da5d405563
commit ce40653717
3 changed files with 20 additions and 5 deletions

View File

@@ -759,9 +759,7 @@ pc_prefix (CORE_ADDR addr)
CORE_ADDR pc;
frame = get_selected_frame (NULL);
pc = get_frame_pc (frame);
if (pc == addr)
if (get_frame_pc_if_available (frame, &pc) && pc == addr)
return "=> ";
}
return " ";