mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
gdb/
* dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc) (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other file. (dwarf2_frame_ctx_funcs): Reference the renamed functions. * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa) (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) (ctx_no_get_base_type): Move the functions here. * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa) (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) (ctx_no_get_base_type): New declarations.
This commit is contained in:
@ -1280,6 +1280,54 @@ abort_expression:
|
||||
gdb_assert (ctx->recursion_depth >= 0);
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.get_frame_base implementation. */
|
||||
|
||||
void
|
||||
ctx_no_get_frame_base (void *baton, const gdb_byte **start, size_t *length)
|
||||
{
|
||||
error (_("%s is invalid in this context"), "DW_OP_fbreg");
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.get_frame_cfa implementation. */
|
||||
|
||||
CORE_ADDR
|
||||
ctx_no_get_frame_cfa (void *baton)
|
||||
{
|
||||
error (_("%s is invalid in this context"), "DW_OP_call_frame_cfa");
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.get_frame_pc implementation. */
|
||||
|
||||
CORE_ADDR
|
||||
ctx_no_get_frame_pc (void *baton)
|
||||
{
|
||||
error (_("%s is invalid in this context"), "DW_OP_GNU_implicit_pointer");
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.get_tls_address implementation. */
|
||||
|
||||
CORE_ADDR
|
||||
ctx_no_get_tls_address (void *baton, CORE_ADDR offset)
|
||||
{
|
||||
error (_("%s is invalid in this context"), "DW_OP_GNU_push_tls_address");
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.dwarf_call implementation. */
|
||||
|
||||
void
|
||||
ctx_no_dwarf_call (struct dwarf_expr_context *ctx, size_t die_offset)
|
||||
{
|
||||
error (_("%s is invalid in this context"), "DW_OP_call*");
|
||||
}
|
||||
|
||||
/* Stub dwarf_expr_context_funcs.get_base_type implementation. */
|
||||
|
||||
struct type *
|
||||
ctx_no_get_base_type (struct dwarf_expr_context *ctx, size_t die)
|
||||
{
|
||||
error (_("Support for typed DWARF is not supported in this context"));
|
||||
}
|
||||
|
||||
void
|
||||
_initialize_dwarf2expr (void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user