aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-03 05:28:42 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-03 05:28:42 +0000
commit34517ebc854c0fc0314823defa19c4d79e317e12 (patch)
tree1e7bb2468eaf7568d3fd82d2a779859986bae0e4 /gdb/inferior.h
parentb89a86ac08f28500baa404f73a4496dfd176b5c8 (diff)
downloadbinutils-34517ebc854c0fc0314823defa19c4d79e317e12.zip
binutils-34517ebc854c0fc0314823defa19c4d79e317e12.tar.gz
binutils-34517ebc854c0fc0314823defa19c4d79e317e12.tar.bz2
Changes to make 29k function calls work better at Adobe.
* am29k-tdep.c (_initialize_29k): Make it possible for the user to set and query the address where function calls into the inferior write a small scratch routine. `set call_scratch_address' * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error. * remote.c (remote_prepare_to_store): Only fetch regs if they are not already cached validly.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index c893f34..5db853e 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -153,7 +153,7 @@ terminal_inferior PARAMS ((void));
extern void
terminal_init_inferior PARAMS ((void));
-/* From infptrace.c or procfs.c */
+/* From infptrace.c */
extern int
attach PARAMS ((int));
@@ -173,24 +173,18 @@ call_ptrace PARAMS ((int, int, PTRACE_ARG3_TYPE, int));
/* From procfs.c */
-#ifdef USE_PROC_FS
-
extern int
proc_iterate_over_mappings PARAMS ((int (*) (int, CORE_ADDR)));
-extern int
-proc_wait PARAMS ((int *));
-
-extern void
-inferior_proc_init PARAMS ((int));
-
extern void
proc_signal_handling_change PARAMS ((void));
-extern void
-proc_set_exec_trap PARAMS ((void));
+/* From fork-child.c */
-#endif
+extern void
+fork_inferior PARAMS ((char *, char *, char **,
+ void (*) (void),
+ void (*) (int)));
/* From inflow.c */
@@ -326,13 +320,13 @@ extern int attach_flag;
extern CORE_ADDR text_end;
#define PC_IN_CALL_DUMMY(pc, sp, frame_address) \
((pc) >= text_end - CALL_DUMMY_LENGTH \
- && (pc) < text_end + DECR_PC_AFTER_BREAK)
+ && (pc) <= text_end + DECR_PC_AFTER_BREAK)
#else /* Not before text_end. */
#if CALL_DUMMY_LOCATION == AFTER_TEXT_END
extern CORE_ADDR text_end;
#define PC_IN_CALL_DUMMY(pc, sp, frame_address) \
((pc) >= text_end \
- && (pc) < text_end + CALL_DUMMY_LENGTH + DECR_PC_AFTER_BREAK)
+ && (pc) <= text_end + CALL_DUMMY_LENGTH + DECR_PC_AFTER_BREAK)
#else /* On stack. */
#define PC_IN_CALL_DUMMY(pc, sp, frame_address) \
((sp) INNER_THAN (pc) && (pc) INNER_THAN (frame_address))