diff options
author | Weimin Pan <weimin.pan@oracle.com> | 2021-04-07 14:07:48 -0400 |
---|---|---|
committer | Weimin Pan <weimin.pan@oracle.com> | 2021-04-07 14:07:48 -0400 |
commit | dc2b480f3df3bc7673c892e0cb8459a4ea72d447 (patch) | |
tree | 726c2ad7e681e30b01f30cc3c5ac44cec3b5f51e /gdb/target.h | |
parent | 0a703a4cedffa6f3824e87f115e8d392e32de191 (diff) | |
download | gdb-dc2b480f3df3bc7673c892e0cb8459a4ea72d447.zip gdb-dc2b480f3df3bc7673c892e0cb8459a4ea72d447.tar.gz gdb-dc2b480f3df3bc7673c892e0cb8459a4ea72d447.tar.bz2 |
CTF: handle forward reference type
Added function fetch_tid_type which calls get_tid_type and will set up
the type, associated with a tid, if it is not read in yet. Also implement
function read_forward_type which handles the CTF_K_FORWARD kind.
Expanded gdb.base/ctf-ptype.exp to add cases with forward references.
gdb/ChangeLog:
* ctfread.c (fetch_tid_type): New function, use throughout file.
(read_forward_type): New function.
(read_type_record): Call read_forward_type.
gdb/testsuite/ChangeLog:
* gdb.base/ctf-ptype.c: Add struct link containing a forward
reference type.
* gdb.base/ctf-ptype.exp: Add "ptype struct link".
Diffstat (limited to 'gdb/target.h')
0 files changed, 0 insertions, 0 deletions