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.
This commit is contained in:
Andrew Cagney 1998-09-15 07:50:31 +00:00
parent c8ca08efeb
commit b2d5581361
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
Tue Sep 15 10:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
* 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 <msnyder@cleaver.cygnus.com>
* blockframe.c (find_pc_sect_partial_function): use bfd section