diff options
author | Weimin Pan <weimin.pan@oracle.com> | 2021-05-16 18:24:14 -0400 |
---|---|---|
committer | Weimin Pan <weimin.pan@oracle.com> | 2021-05-16 18:24:14 -0400 |
commit | ea11a98dbdb311631a9d214617f2ce054369bc5d (patch) | |
tree | ff468f9b77f652b79bc6a7f0334f8849747c7e23 /sim/microblaze/microblaze.isa | |
parent | 79633c125eb260a9ac9ed49e314b916f353c4373 (diff) | |
download | fsf-binutils-gdb-ea11a98dbdb311631a9d214617f2ce054369bc5d.zip fsf-binutils-gdb-ea11a98dbdb311631a9d214617f2ce054369bc5d.tar.gz fsf-binutils-gdb-ea11a98dbdb311631a9d214617f2ce054369bc5d.tar.bz2 |
CTF: handle forward reference type
The problems can be illustrated, with any program, below:
(gdb) print main
$1 = {main} 0x0
The return type was incorrectly set in read_func_kind_type, with
the name of the function, which leads c_type_print_base_1 to print
it. In addition, the address of a new function needs to be set with
that info in its minimal symtab entry, when the new function is added.
After the fix:
(gdb) print main
$1 = {int ()} 0x4004b7 <main>
A new test, gdb.ctf/funcreturn.exp, is added to the testsuite.
gdb/ChangeLog:
* ctfread.c (new_symbol): Set function address.
(read_func_kind_type): Remove incorrect type name setting.
Don't copy name returned from ctf_type_ame_raw throughout file.
gdb/testsuite/ChangeLog:
* gdb.ctf/funcreturn.exp: New file.
* gdb.ctf/whatis.c: Copy from gdb.base.
Diffstat (limited to 'sim/microblaze/microblaze.isa')
0 files changed, 0 insertions, 0 deletions