diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-19 09:39:12 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-19 09:39:12 +0000 |
commit | d5cd603472bb4b3c14782728aa55bbafdfe783e8 (patch) | |
tree | 550acd299382450c49a10aa4afcaeb87322a0e1b /gdb/hppa-tdep.c | |
parent | 37a1f2771f06b9f7ef98af3270bedb2d48ac31a5 (diff) | |
download | gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.zip gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.tar.gz gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.tar.bz2 |
Delete unused or undefined functions.
* breakpoint.c (ep_parse_optional_filename): Delete.
* dcache.c (dcache_write_line): Remove declaration.
* infrun.c (build_infrun): Remove declaration.
* tracepoint.c (tracepoint_save_command): Remove declaration.
* linux-nat.c (init_lwp_list): Delete. No longer used.
* event-loop.c (check_async_signal_handlers): Delete declaration.
* infrun.c (init_execution_control_state): Delete.
(proceed): Update comment to avoid mentioning
init_execution_control_state.
* target.c (kill_or_be_killed, nosupport_runtime): Delete.
* ada-lang.c (ada_to_static_fixed_value): Delete.
* scm-lang.c (evaluate_subexp_scm): Delete declaration.
* cp-namespace.c (cp_copy_usings): Delete.
* xml-syscall.c (xml_number_of_syscalls): Delete.
* progspace.c (find_program_space_by_num): Delete.
* inflow.c (handle_sigio): Delete declaration.
* hppa-tdep.c (hppa_alignof): Delete.
* mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
(mipsnbsd_core_osabi_sniffer): Delete.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 42e230d..a0665ef 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1305,41 +1305,6 @@ hppa_write_pc (struct regcache *regcache, CORE_ADDR pc) regcache_cooked_write_unsigned (regcache, HPPA_PCOQ_TAIL_REGNUM, pc + 4); } -/* return the alignment of a type in bytes. Structures have the maximum - alignment required by their fields. */ - -static int -hppa_alignof (struct type *type) -{ - int max_align, align, i; - CHECK_TYPEDEF (type); - switch (TYPE_CODE (type)) - { - case TYPE_CODE_PTR: - case TYPE_CODE_INT: - case TYPE_CODE_FLT: - return TYPE_LENGTH (type); - case TYPE_CODE_ARRAY: - return hppa_alignof (TYPE_INDEX_TYPE (type)); - case TYPE_CODE_STRUCT: - case TYPE_CODE_UNION: - max_align = 1; - for (i = 0; i < TYPE_NFIELDS (type); i++) - { - /* Bit fields have no real alignment. */ - /* if (!TYPE_FIELD_BITPOS (type, i)) */ - if (!TYPE_FIELD_BITSIZE (type, i)) /* elz: this should be bitsize */ - { - align = hppa_alignof (TYPE_FIELD_TYPE (type, i)); - max_align = max (max_align, align); - } - } - return max_align; - default: - return 4; - } -} - /* For the given instruction (INST), return any adjustment it makes to the stack pointer or zero for no adjustment. |