From: Andrew Cagney Date: Tue, 15 Sep 1998 07:50:31 +0000 (+0000) Subject: Use value_at_lazy() to examine memory values. For x/i this is very X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2d558136175f6ee8b4a1680f06b1df1d5597656;p=binutils-gdb.git Use value_at_lazy() to examine memory values. For x/i this is very important as it stops the specified address being fetched twice - once by value_at() and once somewhere in the disassembler. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7acf4136297..5279d9f06d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +Tue Sep 15 10:24:17 1998 Andrew Cagney + + * printcmd.c (examine_i_type): New static - type for instructions. + (do_examine): For "i" format, specify examine_i_type. + (do_examine): Call value_at_lazy instead of value_at so that + examine data is only fetched if it is used. + (x_command): If examine data was not fetched, set convenience + variable "__" to void. + (_initialize_printcmd): Initialize examine_i_type. + Sun Sep 13 01:34:59 1998 Michael Snyder * blockframe.c (find_pc_sect_partial_function): use bfd section