Address Tom Tromey's comments on the CTF reader.
authorWeimin Pan <weimin.pan@oracle.com>
Fri, 20 Dec 2019 22:30:17 +0000 (22:30 +0000)
committerWeimin Pan <weimin.pan@oracle.com>
Fri, 20 Dec 2019 22:30:17 +0000 (22:30 +0000)
commit1c7148dd0d370175b7ed6ef47de0a6958b1abac8
treedb7a70db661b3d6433ad0cb95032752cb258e91d
parent7f2d7a0d0d827788394ba7a5a8f4b6b4e0671a7c
Address Tom Tromey's comments on the CTF reader.

 * Use the type-safe registry for ctf_file_key;
 * Drop "typedef" when defining "struct ctf_context";
 * Use ANOFFSET with SECT_OFF_TEXT to get the text base address;

gdb/ChangeLog
2019-12-20  Weimin Pan  <weimin.pan@oracle.com>
        * ctfread.c (ctf_file_key): Change type to objfile_key.
        (struct ctf_context): Remove typedef.
        (get_objfile_text_range): Use ANOFFSET to get text base.
gdb/ChangeLog
gdb/ctfread.c