This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Some changes to the examine ("x") command
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: uweigand at de dot ibm dot com (Ulrich Weigand)
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 2 Jul 2009 14:15:55 +0200 (CEST)
- Subject: Re: [rfc] Some changes to the examine ("x") command
> * printcmd.c (next_gdbarch): New static variable.
> (set_next_address, do_examine, x_command): Set it.
> (decode_format): Use 'a' size to indicate width of an address.
> (do_examine): Add GDBARCH argument. Handle 'a' size.
> (x_command): Pass architecture to do_examine.
> Error if called without argument the first time.
> (do_one_display): Pass architecture to do_examine.
>
> (examine_i_type, examine_b_type, examine_h_type, examine_w_type,
> examine_g_type): Remove.
> (_initialize_printcmd): Do not initialize them.
> (do_examine): Use builin_type_int... instead of examine_..._type.
>
> * testsuite/gdb.base/default.exp: Update test case.
And this one checked in as well.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com