Use malloc/free in the dbgapi callbacks
authorLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 05:10:27 +0000 (21:10 -0800)
committerLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 06:25:20 +0000 (22:25 -0800)
commit54a01e885b23df89e7e1e1585e896e0b7c53cf1d
treecb27e6defbe4dce5c222b9d3645970fbfe0e2caa
parentf6044a4be7f6f04e96f145ba045608e75e1e852b
Use malloc/free in the dbgapi callbacks

Replace xmalloc/xfree with malloc/free for the allocate_memory/
deallocate_memory callbacks. The dbgapi requires nullptr to be
returned if the memory cannot be allocated, but xmalloc throws
an internal gdb error in such cases.

gdb/ChangeLog:

        * gdb/rocm-tdep.c: Adjust callbacks.

Depends-On: Id4af9dcd08b66acb6a9e9997c28a2807a5e0652e
Change-Id: I1cf6a4f6e96d8b86b716291f03a22dfbd5d83262
gdb/rocm-tdep.c
This page took 0.023362 seconds and 4 git commands to generate.