[PATCH v2 1/2] gdb: Implement native dumpcore function

Christian Biesinger cbiesinger@google.com
Tue Jul 28 18:56:07 GMT 2020


On Tue, Jul 28, 2020 at 10:47 AM Kamil Rytarowski <n54@gmx.com> wrote:
> +++ b/gdb/target.h
> +/* Does this target support dumpcore API?  */
> +
> +#define target_supports_dumpcore() \
> +  (current_top_target ()->supports_dumpcore) ()
> +
> +/* Generate the core file with target API.  */
> +
> +#define target_dumpcore(x) \
> +  (current_top_target ()->dumpcore (x))

These macros don't seem that useful to me, and they hide a global
variable access... would it be possible to remove them?

Christian


More information about the Gdb-patches mailing list