binutils-gdb/gdb/mi
Tom Tromey c4e54771f8 fix two latent type errors
I'm checking this in as obvious.

I was looking at instances of "alloc.*sizeof" and noticed a couple
where the types in question are incorrect.

In gdbtypes, the code allocates sizeof(int) to represent a struct rank.
In mi-cmds, the code uses "struct mi_cmd **" -- one "*" too many.

In both cases the problems are latent because in practice the sizes
are the same as the sizes of the correct types.  Still, it's better to
be correct.

I think gdb would be improved by a wholesale change from explicit
sizeofs to using the libiberty.h allocation macros.  In most cases
they are both shorter and have better type safety.  However, the
resulting patch is rather large.

Built and regtested on x86-64 Fedora 20.

2014-05-19  Tom Tromey  <tromey@redhat.com>

	* gdbtypes.c (rank_function): Use XNEWVEC.
	* mi/mi-cmds.c (build_table): Use XCNEWVEC.
2014-05-19 14:17:16 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-break.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-catch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-disas.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-env.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-file.c psymtab cleanup patch 3/3 2014-01-14 18:36:33 -08:00
mi-cmd-info.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-stack.c Extension Language API 2014-02-05 19:27:58 -08:00
mi-cmd-target.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-var.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmds.c fix two latent type errors 2014-05-19 14:17:16 -06:00
mi-cmds.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-common.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-common.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-console.c mi: Use the value in mi_console_file->quote as the quoting character 2014-05-12 15:44:19 -04:00
mi-console.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-getopt.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-getopt.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-interp.c Avoid using the ISO C99 `z' formatted output modifier 2014-03-20 21:41:56 +00:00
mi-main.c Fix PR16508 2014-03-06 11:33:06 +08:00
mi-main.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-out.c constify ui_out_impl 2014-02-28 08:51:15 -07:00
mi-out.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-parse.c replace XMALLOC with XNEW 2014-01-13 07:31:28 -07:00
mi-parse.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-symbol-cmds.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00