aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-10-17 21:55:24 +0000
committerDaniel Jacobowitz <drow@false.org>2006-10-17 21:55:24 +0000
commit52bb452f802c0e3642b86e7ffccde8a1333bd280 (patch)
tree9fb4c926a2d9f650c88ffc78d498bf8a74ce7a6c /gdb/target.h
parentb40ce68a7796afe94e81363e28347fa1ef4475ce (diff)
downloadgdb-52bb452f802c0e3642b86e7ffccde8a1333bd280.zip
gdb-52bb452f802c0e3642b86e7ffccde8a1333bd280.tar.gz
gdb-52bb452f802c0e3642b86e7ffccde8a1333bd280.tar.bz2
gdb/
* gdbint.texinfo (Target Vector Definition): Move most content into Existing Targets. Add a menu. (Existing Targets): New section, moved from Target Vector Definition. Use @subsection. (Managing Execution State): New section. gdb/doc/ * remote-sim.c (gdbsim_kill): Call target_mourn_inferior. (gdbsim_load): Don't bother to adjust inferior_ptid here. (gdbsim_create_inferior): Mark the simulator as running. (gdbsim_open): Don't bother fetching registers. Mark the target as not running. (gdbsim_xfer): When the program is not running, pass memory requests down. (gdbsim_mourn_inferior): Mark the target as not running. * target.c (target_mark_running, target_mark_exited): New. * target.h (target_has_execution): Update the comment. (target_mark_running, target_mark_exited): New prototypes.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 9399e76..7be4aca 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -967,11 +967,12 @@ int target_follow_fork (int follow_child);
(current_target.to_has_registers)
/* Does the target have execution? Can we make it jump (through
- hoops), or pop its stack a few times? FIXME: If this is to work that
- way, it needs to check whether an inferior actually exists.
- remote-udi.c and probably other targets can be the current target
- when the inferior doesn't actually exist at the moment. Right now
- this just tells us whether this target is *capable* of execution. */
+ hoops), or pop its stack a few times? This means that the current
+ target is currently executing; for some targets, that's the same as
+ whether or not the target is capable of execution, but there are
+ also targets which can be current while not executing. In that
+ case this will become true after target_create_inferior or
+ target_attach. */
#define target_has_execution \
(current_target.to_has_execution)
@@ -1230,6 +1231,13 @@ extern void pop_target (void);
extern CORE_ADDR target_translate_tls_address (struct objfile *objfile,
CORE_ADDR offset);
+/* Mark a pushed target as running or exited, for targets which do not
+ automatically pop when not active. */
+
+void target_mark_running (struct target_ops *);
+
+void target_mark_exited (struct target_ops *);
+
/* Struct section_table maps address ranges to file sections. It is
mostly used with BFD files, but can be used without (e.g. for handling
raw disks, or files not in formats handled by BFD). */