This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] GDB/MI: crash printing "_task" (Ada) argument
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 30 Jan 2012 12:56:45 -0700
- Subject: Re: [PATCH] GDB/MI: crash printing "_task" (Ada) argument
- References: <1327906636-20099-1-git-send-email-brobecker@adacore.com>
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> if (SYMBOL_IS_ARGUMENT (sym))
Joel> sym2 = lookup_symbol (SYMBOL_NATURAL_NAME (sym),
Joel> block, VAR_DOMAIN,
Joel> (int *) NULL);
FWIW the correct version is in stack.c:iterate_over_block_arg_vars.
It would be nice not to have separate code in MI. I didn't look to see
why it is done this way.
Joel> Tested on x86_64-linux, no regression. I will commit in a few days
Joel> unless there are objections.
I agree it is correct.
Tom