Changes to make 29k function calls work better at Adobe.
[binutils-gdb.git] / gdb / am29k-tdep.c
index d5399b7460287a76edbd473ebdd0934c90e101c5..13aca9a2cb252566684934b9757017f8227e8950 100644 (file)
@@ -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);
 }