diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 0d77fab..073721e 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1561,7 +1561,8 @@ i386_frame_cache (struct frame_info *this_frame, void **this_cache) functions this might work too. */ current_pc = get_frame_pc (this_frame); - if (i386_in_dll (current_pc) + if (current_pc == cache->pc + && i386_in_dll (current_pc) && !i386_function_has_frame (current_pc)) { /* Functions in DLL for which do not seem to create a standard