2004-02-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 22 Feb 2004 17:01:04 +0000 (17:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 22 Feb 2004 17:01:04 +0000 (17:01 +0000)
* hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
runtime if(0).

gdb/ChangeLog
gdb/hppa-tdep.c

index 770aba1361b1083897b1ca353a61b93551f9ec58..f9eb986d04badd542bc0649df9841194a72aa5c5 100644 (file)
@@ -1,9 +1,12 @@
 2004-02-22  Andrew Cagney  <cagney@redhat.com>
 
+       * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
+       runtime if(0).
+
        * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
        unsigned.
        (hppa_frame_find_saved_regs): Fix "std" instruction pattern
-       
+
        * config/pa/tm-hppa.h: Update copyright.
        (DEPRECATED_INIT_FRAME_PC): Delete macro.
        (deprecated_init_frame_pc_default): Delete declaration.
index 94124798e109a6d56a8890625a123fc6d9121707..61cfd57f72cfdb1fb5401350bf9b9f169c1f0960 100644 (file)
@@ -5186,46 +5186,52 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1);
 
   /* Inferior function call methods.  */
-#if 0
-#else
-  switch (tdep->bytes_per_address)
+  if (0)
     {
-    case 4:
-      set_gdbarch_deprecated_call_dummy_length (gdbarch, hppa32_call_dummy_length);
-      set_gdbarch_deprecated_stack_align (gdbarch, hppa32_stack_align);
-      set_gdbarch_deprecated_reg_struct_has_addr (gdbarch, hppa_reg_struct_has_addr);
-      set_gdbarch_deprecated_extract_return_value (gdbarch, hppa32_extract_return_value);
-      set_gdbarch_use_struct_convention (gdbarch, hppa32_use_struct_convention);
-      set_gdbarch_deprecated_store_return_value (gdbarch, hppa32_store_return_value);
-      break;
-    case 8:
-      set_gdbarch_deprecated_call_dummy_breakpoint_offset (gdbarch, hppa64_call_dummy_breakpoint_offset);
-      set_gdbarch_deprecated_call_dummy_length (gdbarch, hppa64_call_dummy_length);
-      set_gdbarch_deprecated_stack_align (gdbarch, hppa64_stack_align);
-      set_gdbarch_deprecated_extract_return_value (gdbarch, hppa64_extract_return_value);
-      set_gdbarch_use_struct_convention (gdbarch, hppa64_use_struct_convention);
-      set_gdbarch_deprecated_store_return_value (gdbarch, hppa64_store_return_value);
-      break;
     }
-  set_gdbarch_deprecated_store_struct_return (gdbarch, hppa_store_struct_return);
-  set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
-  /* set_gdbarch_deprecated_fix_call_dummy (gdbarch, hppa_fix_call_dummy); */
-  set_gdbarch_deprecated_push_arguments (gdbarch, hppa_push_arguments);
-#endif
-
+  else
+    {
+      switch (tdep->bytes_per_address)
+       {
+       case 4:
+         set_gdbarch_deprecated_call_dummy_length (gdbarch, hppa32_call_dummy_length);
+         set_gdbarch_deprecated_stack_align (gdbarch, hppa32_stack_align);
+         set_gdbarch_deprecated_reg_struct_has_addr (gdbarch, hppa_reg_struct_has_addr);
+         set_gdbarch_deprecated_extract_return_value (gdbarch, hppa32_extract_return_value);
+         set_gdbarch_use_struct_convention (gdbarch, hppa32_use_struct_convention);
+         set_gdbarch_deprecated_store_return_value (gdbarch, hppa32_store_return_value);
+         break;
+       case 8:
+         set_gdbarch_deprecated_call_dummy_breakpoint_offset (gdbarch, hppa64_call_dummy_breakpoint_offset);
+         set_gdbarch_deprecated_call_dummy_length (gdbarch, hppa64_call_dummy_length);
+         set_gdbarch_deprecated_stack_align (gdbarch, hppa64_stack_align);
+         set_gdbarch_deprecated_extract_return_value (gdbarch, hppa64_extract_return_value);
+         set_gdbarch_use_struct_convention (gdbarch, hppa64_use_struct_convention);
+         set_gdbarch_deprecated_store_return_value (gdbarch, hppa64_store_return_value);
+         break;
+       }
+      set_gdbarch_deprecated_store_struct_return (gdbarch, hppa_store_struct_return);
+      set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
+      /* set_gdbarch_deprecated_fix_call_dummy (gdbarch, hppa_fix_call_dummy); */
+      set_gdbarch_deprecated_push_arguments (gdbarch, hppa_push_arguments);
+    }
+      
   /* Frame unwind methods.  */
-#if 0
-#else
-  set_gdbarch_deprecated_saved_pc_after_call (gdbarch, hppa_saved_pc_after_call);
-  set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
-  set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, hppa_frame_init_saved_regs);
-  set_gdbarch_deprecated_init_extra_frame_info (gdbarch, hppa_init_extra_frame_info);
-  set_gdbarch_deprecated_frame_chain (gdbarch, hppa_frame_chain);
-  set_gdbarch_deprecated_frame_chain_valid (gdbarch, hppa_frame_chain_valid);
-  set_gdbarch_deprecated_frameless_function_invocation (gdbarch, hppa_frameless_function_invocation);
-  set_gdbarch_deprecated_frame_saved_pc (gdbarch, hppa_frame_saved_pc);
-  set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
-#endif
+  if (0)
+    {
+    }
+  else
+    {
+      set_gdbarch_deprecated_saved_pc_after_call (gdbarch, hppa_saved_pc_after_call);
+      set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
+      set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, hppa_frame_init_saved_regs);
+      set_gdbarch_deprecated_init_extra_frame_info (gdbarch, hppa_init_extra_frame_info);
+      set_gdbarch_deprecated_frame_chain (gdbarch, hppa_frame_chain);
+      set_gdbarch_deprecated_frame_chain_valid (gdbarch, hppa_frame_chain_valid);
+      set_gdbarch_deprecated_frameless_function_invocation (gdbarch, hppa_frameless_function_invocation);
+      set_gdbarch_deprecated_frame_saved_pc (gdbarch, hppa_frame_saved_pc);
+      set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
+    }
 
   /* Hook in ABI-specific overrides, if they have been registered.  */
   gdbarch_init_osabi (info, gdbarch);