static void stabs_bc_str_destroy(void *contents);
static void stabs_bc_str_print(const void *contents, FILE *f, int
indent_level);
-static yasm_bc_resolve_flags stabs_bc_str_resolve
- (yasm_bytecode *bc, int save, yasm_calc_bc_dist_func calc_bc_dist);
+static int stabs_bc_str_calc_len
+ (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
static int stabs_bc_str_tobytes
(yasm_bytecode *bc, unsigned char **bufp, void *d,
yasm_output_value_func output_value,
static void stabs_bc_stab_destroy(void *contents);
static void stabs_bc_stab_print(const void *contents, FILE *f, int
indent_level);
-static yasm_bc_resolve_flags stabs_bc_stab_resolve
- (yasm_bytecode *bc, int save, yasm_calc_bc_dist_func calc_bc_dist);
+static int stabs_bc_stab_calc_len
+ (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
static int stabs_bc_stab_tobytes
(yasm_bytecode *bc, unsigned char **bufp, void *d,
yasm_output_value_func output_value,
stabs_bc_str_destroy,
stabs_bc_str_print,
yasm_bc_finalize_common,
- stabs_bc_str_resolve,
+ stabs_bc_str_calc_len,
+ yasm_bc_expand_common,
stabs_bc_str_tobytes,
0
};
stabs_bc_stab_destroy,
stabs_bc_stab_print,
yasm_bc_finalize_common,
- stabs_bc_stab_resolve,
+ stabs_bc_stab_calc_len,
+ yasm_bc_expand_common,
stabs_bc_stab_tobytes,
0
};
stab = yasm_xmalloc(sizeof(stabs_stab));
dbgbc = yasm_bc_create_common(&stabs_bc_stab_callback, stab, 0);
dbgbc->len = info.stablen;
+ dbgbc->offset = 0;
yasm_section_bcs_append(info.stab, dbgbc);
/* initial strtab bytecodes */
fprintf(f, "%*s\"%s\"\n", indent_level, "", (const char *)contents);
}
-static yasm_bc_resolve_flags
-stabs_bc_stab_resolve(yasm_bytecode *bc, int save,
- yasm_calc_bc_dist_func calc_bc_dist)
+static int
+stabs_bc_stab_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
+ void *add_span_data)
{
yasm_internal_error(N_("tried to resolve a stabs stab bytecode"));
/*@notreached@*/
- return YASM_BC_RESOLVE_MIN_LEN;
+ return 0;
}
-static yasm_bc_resolve_flags
-stabs_bc_str_resolve(yasm_bytecode *bc, int save,
- yasm_calc_bc_dist_func calc_bc_dist)
+static int
+stabs_bc_str_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
+ void *add_span_data)
{
yasm_internal_error(N_("tried to resolve a stabs str bytecode"));
/*@notreached@*/
- return YASM_BC_RESOLVE_MIN_LEN;
+ return 0;
}
static int