This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Ensure result of make_cleanup is never NULL.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Doug Evans <dje at sebabeach dot org>, gdb-patches at sourceware dot org
- Date: Mon, 16 Apr 2012 16:55:14 +0200
- Subject: Re: [RFA] Ensure result of make_cleanup is never NULL.
- References: <m3bomszayu.fsf@annie.sebabeach.org> <20120416144011.GH2852@adacore.com>
On Mon, 16 Apr 2012 16:40:11 +0200, Joel Brobecker wrote:
> Just a tiny idea, not really important, but JIC: Could we use an enum
> intead of a define so that GDB prints "CLEANUP_FENCEPOST" rather than
> a numeric value when we print a cleanup pointer that's the fencepost?
It will not work, it is a pointer, not enum.
Maybe one could add something to gdb-gdb.py but it also did not work for me.
Jan