This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] GDB/MI: crash printing "_task" (Ada) argument


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]