aboutsummaryrefslogtreecommitdiff
path: root/gdb/am29k-tdep.c
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/am29k-tdep.c
parentb89a86ac08f28500baa404f73a4496dfd176b5c8 (diff)
downloadgdb-34517ebc854c0fc0314823defa19c4d79e317e12.zip
gdb-34517ebc854c0fc0314823defa19c4d79e317e12.tar.gz
gdb-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/am29k-tdep.c')
-rw-r--r--gdb/am29k-tdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/am29k-tdep.c b/gdb/am29k-tdep.c
index d5399b7..13aca9a 100644
--- a/gdb/am29k-tdep.c
+++ b/gdb/am29k-tdep.c
@@ -810,6 +810,8 @@ reginv_com (args, fromtty)
void
_initialize_29k()
{
+ extern CORE_ADDR text_end;
+
add_com ("reginv ", class_obscure, reginv_com,
"Invalidate gdb's internal register cache.");
@@ -821,4 +823,12 @@ _initialize_29k()
Attempts to access registers saved above this address will be ignored\n\
or will produce the value -1.", &setlist),
&showlist);
+
+ /* FIXME, there should be a way to make a CORE_ADDR variable settable. */
+ add_show_from_set
+ (add_set_cmd ("call_scratch_address", class_support, var_uinteger,
+ (char *)&text_end,
+"Set address in memory where small amounts of RAM can be used when\n\
+making function calls into the inferior.", &setlist),
+ &showlist);
}