diff --git a/gdb/frame-id.h b/gdb/frame-id.h index e8b9a795403..5978d99bba8 100644 --- a/gdb/frame-id.h +++ b/gdb/frame-id.h @@ -99,6 +99,10 @@ struct frame_id unsigned int code_addr_p : 1; unsigned int special_addr_p : 1; + /* True if this frame was created from addresses given by the user (see + create_new_frame) rather than through unwinding. */ + unsigned int user_created_p : 1; + /* It is non-zero for a frame made up by GDB without stack data representation in inferior, such as INLINE_FRAME or TAILCALL_FRAME. Caller of inlined function will have it zero, each more inner called frame diff --git a/gdb/frame.c b/gdb/frame.c index b5f48399703..4dcfad37cd7 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1953,6 +1953,7 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc) fi->this_id.p = frame_id_status::COMPUTED; fi->this_id.value = frame_id_build (addr, pc); + fi->this_id.value.user_created_p = 1; frame_debug_printf (" -> %s", fi->to_string ().c_str ());