mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
libctf: fix some tabdamage and move some code around
ctf-link.c is unnecessarily confusing because ctf_link_lazy_open is positioned near functions that have nothing to do with opening files. Move it around, and fix some tabdamage that's crept in lately. libctf/ChangeLog 2021-03-18 Nick Alcock <nick.alcock@oracle.com> * ctf-link.c (ctf_link_lazy_open): Move up in the file, to near ctf_link_add_ctf. * ctf-lookup.c (ctf_lookup_symbol_idx): Repair tabdamage. (ctf_lookup_by_sym_or_name): Likewise. * testsuite/libctf-lookup/struct-iteration.c: Likewise. * testsuite/libctf-regression/type-add-unnamed-struct.c: Likewise.
This commit is contained in:
@ -47,7 +47,7 @@ main (int argc, char *argv[])
|
||||
for (walk = membs; *walk != NULL; walk++)
|
||||
{
|
||||
if (ctf_member_info (dyn, newtype, *walk, &mi) < 0)
|
||||
goto lookup_err;
|
||||
goto lookup_err;
|
||||
printf ("Looked up %s, type %lx, offset %lx\n", *walk, (long) mi.ctm_type, mi.ctm_offset);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user