bpf: opcodes: fix regression in BPF disassembler
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 31 Jul 2023 13:44:36 +0000 (15:44 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 31 Jul 2023 13:46:43 +0000 (15:46 +0200)
commit5b512234c874d5f82734dc6115765bc691c2c982
tree82c58f58c4b413eb4b90c745e92942a8f4f14018
parent6a6e82dc75afc3d6d72e925ad562fba8f297251c
bpf: opcodes: fix regression in BPF disassembler

This patch fixes a regression recently introduced in the BPF
disassembler, that was assuming an abfd was always available in
info->section->owner.  Apparently this is not so in GDB, and therefore
https://sourceware.org/bugzilla/show_bug.cgi?id=30705.

Tested in bpf-unkonwn-none.

opcodes/ChangeLog:

2023-07-31  Jose E. Marchesi  <jose.marchesi@oracle.com>

PR 30705
* bpf-dis.c (print_insn_bpf): Check that info->section->owner is
actually available before using it.
opcodes/ChangeLog
opcodes/bpf-dis.c