summaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-08-15 23:02:05 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-08-15 23:02:05 +0000
commitdd71b9fe9cf61ba42f091a76aca6101dd4a8a7ec (patch)
treeb0f20003e7482b7533d98286399ecde3795dbcb3 /gdb/hppa-tdep.h
parent0230fa9229fac7260ce479968bc981edb5df509c (diff)
downloadgdb-dd71b9fe9cf61ba42f091a76aca6101dd4a8a7ec.tar.gz
Further multiarching work mostly for hppa64-*-hpux11:
* hppa-tdep.h: New file. * hppa-tdep.c: #include hppa-tdep.c. (hppa32_num_regs): Renamed from hppa_num_regs. (hppa64_num_regs): New constant. (hppa64_call_dummy_breakpoint_offset): New constant. (hppa32_call_dummy_length): New constant. (hppa64_call_dummy_length): New constant. (hppa32_stack_align): Make name 32bit explicit. (hppa32_register_virtual_type): Likewise. (hppa32_extract_return_value): Likewise. (hppa32_use_struct_convention): Likewise. (hppa32_store_return_value): Likewise. (hppa64_register_virtual_type): New function. (hppa64_extract_return_value): New function. (hppa64_use_struct_convention): New function. (hppa64_store_return_value): New function. (hppa_frame_locals_address): Remove declaration, function does not exist anymore. (hppa_register_byte): Add support for PA64 ABI. (hppa_gdbarch_init): Add support for PA64 ABI. * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp): Make name 32bit explicit. (hppa32_hpux_frame_base_before_sigtramp): Likewise. (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise. (hppa64_hpux_frame_saved_pc_in_sigtramp): New function. (hppa64_hpux_frame_base_before_sigtramp): New function. (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function. * config/pa/tm-hppa64.h: Remove macros that are no longer necessary now that the gdbarch vector is properly setup. Transform some macros into function calls. Some minor cleanup. * config/pa/tm-hppah.h: Update function calls in macros following the function renaming in hppa-hpux-tdep.c. * Makefile.in (hppa_tdep_h): New variable. (hppa-tdep.o): Add dependency over hppa_tdep_h.
Diffstat (limited to 'gdb/hppa-tdep.h')
-rw-r--r--gdb/hppa-tdep.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/hppa-tdep.h b/gdb/hppa-tdep.h
new file mode 100644
index 00000000000..05a4e8965ad
--- /dev/null
+++ b/gdb/hppa-tdep.h
@@ -0,0 +1,32 @@
+/* Common target dependent code for GDB on HPPA systems.
+ Copyright 2003 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef HPPA_TDEP_H
+#define HPPA_TDEP_H
+
+/* Target-dependent structure in gdbarch. */
+struct gdbarch_tdep
+{
+ /* The number of bytes in an address. For now, this field is designed
+ to allow us to differentiate hppa32 from hppa64 targets. */
+ int bytes_per_address;
+};
+
+#endif /* HPPA_TDEP_H */