diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2021-03-18 12:37:52 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2021-03-18 12:37:52 +0000 |
commit | 087945261c7523ed895e48a97418ec6dee6cdb67 (patch) | |
tree | 0aa276ff4c07816d30d92c256a4aed521a94f97d /libctf/testsuite/libctf-lookup/struct-iteration.c | |
parent | a1f463bedd63b6524cc32930185df93ede3765f9 (diff) | |
download | gdb-087945261c7523ed895e48a97418ec6dee6cdb67.zip gdb-087945261c7523ed895e48a97418ec6dee6cdb67.tar.gz gdb-087945261c7523ed895e48a97418ec6dee6cdb67.tar.bz2 |
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.
Diffstat (limited to 'libctf/testsuite/libctf-lookup/struct-iteration.c')
-rw-r--r-- | libctf/testsuite/libctf-lookup/struct-iteration.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libctf/testsuite/libctf-lookup/struct-iteration.c b/libctf/testsuite/libctf-lookup/struct-iteration.c index 080edfa..005aba1 100644 --- a/libctf/testsuite/libctf-lookup/struct-iteration.c +++ b/libctf/testsuite/libctf-lookup/struct-iteration.c @@ -4,13 +4,13 @@ static int print_struct (const char *name, ctf_id_t membtype, unsigned long offset, - void *fp_) + void *fp_) { ctf_dict_t *fp = (ctf_dict_t *) fp_; char *type_name = ctf_type_aname (fp, membtype); printf ("iter test: %s, offset %lx, has type %lx/%s\n", - name, offset, membtype, type_name); + name, offset, membtype, type_name); free (type_name); return 0; @@ -54,7 +54,7 @@ main (int argc, char *argv[]) char *type_name = ctf_type_aname (fp, membtype); printf ("next test: %s, offset %lx, has type %lx/%s\n", - name, offset, membtype, type_name); + name, offset, membtype, type_name); free (type_name); } if (ctf_errno (fp) != ECTF_NEXT_END) |