gdb: LoongArch: Implement loongarch_scan_prologue()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 20 Apr 2022 09:48:53 +0000 (17:48 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 20 Apr 2022 11:13:40 +0000 (19:13 +0800)
commit6e0d24c448d09a27f56799102f06223ceaf6ff4d
treeaa0958d9ce5ceba13b54844d196f84dcf113481e
parent5355776935f1a69d897c4770209b6a3978f07ce1
gdb: LoongArch: Implement loongarch_scan_prologue()

If can't determine prologue from the symbol table, need to examine
instructions. Implement loongarch_scan_prologue() to analyze the
function prologue from START_PC to LIMIT_PC, return the address of
the first instruction past the prologue.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-tdep.c