Re: [RFC PATCH] plugins/api: expose symbol lookup to plugins

2021-06-02 Thread Philippe Mathieu-Daudé
On 6/2/21 10:43 AM, Alex Bennée wrote: > > Mahmoud Mandour writes: > >> On Tue, Jun 1, 2021 at 4:58 PM Alex Bennée wrote: >> >> This is a quality of life helper for plugins so they don't need to >> re-implement symbol lookup when dumping an address. The strings are >> constant so don't need

Re: [RFC PATCH] plugins/api: expose symbol lookup to plugins

2021-06-02 Thread Alex Bennée
Mahmoud Mandour writes: > On Tue, Jun 1, 2021 at 4:58 PM Alex Bennée wrote: > > This is a quality of life helper for plugins so they don't need to > re-implement symbol lookup when dumping an address. The strings are > constant so don't need to be duplicated. One minor tweak is to return >

Re: [RFC PATCH] plugins/api: expose symbol lookup to plugins

2021-06-01 Thread Mahmoud Mandour
On Tue, Jun 1, 2021 at 4:58 PM Alex Bennée wrote: > This is a quality of life helper for plugins so they don't need to > re-implement symbol lookup when dumping an address. The strings are > constant so don't need to be duplicated. One minor tweak is to return > NULL instead of a zero length stri

[RFC PATCH] plugins/api: expose symbol lookup to plugins

2021-06-01 Thread Alex Bennée
This is a quality of life helper for plugins so they don't need to re-implement symbol lookup when dumping an address. The strings are constant so don't need to be duplicated. One minor tweak is to return NULL instead of a zero length string to show lookup failed. Based-on: 20210530063712.6832-4-m