This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] New register definition interface
- To: Nick Duffek <nsd at redhat dot com>
- Subject: Re: [RFA] New register definition interface
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 14 Jan 2001 13:51:29 +1100
- Cc: gdb-patches at sources dot redhat dot com
- References: <3A5F0871.E77E5294@cygnus.com> <200101131858.f0DIw4004850@rtl.cygnus.com>
BTW,
In reading the coding standard I would interpret ``try to avoid'' as
``don't do this in new code''. For instance where the standard
indicates:
Try to avoid assignments inside if-conditions. For example, don't write
this:
if ((foo = (char *) malloc (sizeof *foo)) == 0)
fatal ("virtual memory exhausted");
I'd interpret it as don't do this in new code. Even though there are
many examples in existing code.
Andrew