summaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-25 18:38:57 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-25 18:38:57 +0000
commita6aa2290b3275bf9bfb6a13c528c73d3f3013ef4 (patch)
tree62ef9f9f2f6f7b0f2514d9f7de6f7616a42a6dbb /gdb/inferior.h
parentb044bcdc0899c1d3f96e8f6400d8bfe727ee8feb (diff)
downloadgdb-a6aa2290b3275bf9bfb6a13c528c73d3f3013ef4.tar.gz
* infrun.c (stop_registers): Change variable's type to ``struct
regcache'''. (xmalloc_inferior_status): Delete function. (free_inferior_status): Delete function. (normal_stop): Use regcache_cpy. (struct inferior_status): Change type of fields ``stop_registers'' and ``registers'' to ``struct regcache''. (write_inferior_status_register): Use regcache_write. (save_inferior_status): Instead of calling xmalloc_inferior_status, allocate the inf_status buffer directly. Use regcache_dup_no_passthrough and regcache_dup to save the buffers. (restore_inferior_status): Use regcache_xfree and regcache_cpy. Replace the stop_registers regcache instead of overriding it. Use regcache_xfree. Instead of calling free_inferior_status, xfree the buffer directly. (discard_inferior_status): Use regcache_xfree. Instead of calling free_inferior_status, xfree the buffer directly. (build_infrun): Use regcache_xmalloc. (_initialize_infrun): Delete redundant call to build_infrun. * Makefile.in (infcmd.o): Add $(regcache_h). * infcmd.c: Include "regcache.h". (run_stack_dummy): Use deprecated_grub_regcache_for_registers to obtain the address of `stop_registers' register buffer. (print_return_value): Ditto. * inferior.h (struct regcache): Add opaque declaration. (stop_registers): Change variable's declared type to ``struct regcache''.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 2c05f35b3ce..38c5b28ce4a 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -24,6 +24,7 @@
#define INFERIOR_H 1
struct gdbarch;
+struct regcache;
/* For bpstat. */
#include "breakpoint.h"
@@ -396,7 +397,7 @@ extern int proceed_to_finish;
Thus this contains the return value from the called function (assuming
values are returned in a register). */
-extern char *stop_registers;
+extern struct regcache *stop_registers;
/* Nonzero if the child process in inferior_ptid was attached rather
than forked. */