Add NetBSD/hppa target and host support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 96fcd9babbe30e2d75cdff68280e4dd3efc19dce..76100741ed95d354f689e89cbc2dafd973424dc0 100644 (file)
@@ -1,3 +1,476 @@
+2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
+
+       Add NetBSD/hppa target and host support.
+
+       * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
+       (hppabsd_gregset): Move to ...
+       (hppabsd_regset_from_core_section): Rename
+       hppaobsd_regset_from_core_section and move to ...
+       (hppabsd_find_global_pointer): Update comment.
+       (hppabsd_init_abi): Make global. Do not register
+       hppabsd_regset_from_core_section.
+       (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
+       move to ...
+       (_initialize_hppabsd_tdep): Move to ...
+       * hppaobsd-tdep.c: ... here. New file.
+       * hppnbsd-tdep.c: New file.
+       * hppnbsd-nat.c: New file.
+        * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
+       (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
+        (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
+        (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
+       * configure.host (hppa*-*-netbsd*): New entry.
+       * configure.tgt (hppa*-*-netbsd*): New entry.
+       (hppa*-*-openbsd*): Update.
+       * NEWS (New native configuration): Mention NetBSD/hppa.
+       (New targets): Mention NetBSD/hppa.
+
+2008-01-18  Markus Deuling  <deuling@de.ibm.com>
+
+       * gdbarch.sh (function_list): Add new property bits_big_endian to
+       gdbarch structure.
+       * gdbarch.{c,h}: Regenerate.
+
+       * value.c (struct value): Replace BITS_BIG_ENDIAN by
+       gdbarch_bits_big_endian (comment).
+       (unpack_field_as_long, modify_field): Likewise.
+       * value.h: Likewise (comment).
+       * valops.c (value_slice): Likewise.
+       * valarith.c (value_subscript, value_bit_index): Likewise.
+       * gdbtypes.h (field): Likewise (comment).
+       * eval.c (evaluate_subexp_standard): Likewise.
+       * dwarf2read.c (dwarf2_add_field): Likewise.
+       * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
+       (move_bits, ada_value_assign, value_assign_to_component): Likewise.
+       
+       * defs.h (BITS_BIG_ENDIAN): Remove.
+
+2008-01-18  Markus Deuling  <deuling@de.ibm.com>
+
+       * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
+       function calls.
+       * m2-exp.y (yylex): Likewise.
+       * objc-exp.y (yylex): Likewise.
+
+       * defs.h (DEPRECATED_STREQN): Remove.
+
+2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
+
+       * MAINTAINERS: Update my email address.
+
+2008-01-17  Jim Blandy  <jimb@codesourcery.com>
+
+       * README: Mention gdbserver/README.
+
+2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * valarith.c (value_binop): Handle BINOP_INTDIV
+       for unsigned and signed integers.
+
+2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-tdep.c (s390_gdbarch_init): Set default long double
+       type to 128-bit IEEE quad.
+
+2008-01-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
+
+2008-01-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
+
+       * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
+       * value.c: All callers changed.
+
+2008-01-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
+       DEPRECATED_STREQ by its expression.
+       * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
+       * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
+       (scan_xcoff_symtab): Likewise.
+       * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
+       * f-lang.c (find_common_for_function): Likewise.
+       * objc-exp.y (parse_number): Likewise.
+
+       * defs.h (DEPRECATED_STREQ): Remove.
+
+2008-01-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
+       * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
+       get_frame_arch to get at the current_architecture. Update AM33_MODE
+       call.
+       (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
+       (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
+       architecture.
+       (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
+
+2008-01-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
+       parameter.
+       * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
+
+       (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
+       current_gdbarch by gdbarch. Update caller.
+
+       * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
+       (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
+       the current architecture. Update calls of
+       amd64_native_gregset_supplies_p.
+       * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
+       (amd64bsd_store_inferior_registers): Likewise.
+
+2008-01-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
+       Replace current_gdbarch by gdbarch. Update caller.
+
+2008-01-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * dbxread.c (repeated_header_complaint, dbx_symfile_init)
+       (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
+       (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
+       (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
+       (stabsect_build_psymtabs): Fix indentation.
+
+2008-01-15  Michael Snyder  <msnyder@specifix.com>
+
+       * corelow.c (core_xfer_partial): Comment, cut/paste error.
+
+2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (win32_create_inferior): Restore code calling
+       CloseHandle on ProcessInformation structure.
+
+2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
+
+       * configure.ac: Check for void * as 3 argument of ptrace.
+       * configure: regenerate.
+
+2008-01-11  Markus Deuling  <deuling@de.ibm.com>
+
+       * alpha-tdep.c (alpha_heuristic_proc_start)
+       (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
+       current_gdbarch by gdbarch.
+
+       (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
+       current architecture by frame_info. Update alpha_heuristic_proc_start 
+       call.
+
+       (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
+       get_frame_arch to get at the current architecture by frame_info. Update
+       alpha_sigtramp_register_address call.
+
+       * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
+       current_gdbarch by gdbarch. Update caller.
+       (convert_to_extended, convert_from_extended): Add endianess parameter
+       for comparison. Update caller.
+       (arm_extract_return_value, arm_store_return_value): Use
+       get_regcache_arch to get at the current architecture.
+
+       * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
+       current_gdbarch by gdbarch. Update caller.
+       (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
+       gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
+
+       * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
+       gdbarch as parameter. Update caller.    
+       (h8300_init_frame_cache): Add gdbarch as parameter. Replace
+       current_gdbarch by gdbarch. Update caller.
+
+       * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
+       update caller. Replace current_gdbarch by gdbarch.
+
+       * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
+       the current architecture. Replace current_gdbarch by gdbarch.
+       * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
+       (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
+       expression. Add gdbarch as parameter and replace current_gdbarch with
+       it. Update caller.
+       (M6811_TDEP): Remove.
+       (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
+       architecture.
+       (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
+       current_gdbarch by gdbarch. Update caller.
+
+       * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
+       update caller.
+       (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
+       by gdbarch.
+
+       * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
+       caller. Relace current_gdbarch by gdbarch.
+       (altivec_register_p, spe_register_p): Likewise.
+       * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
+       parameter.
+       * ppc-linux-nat.c (fetch_register, store_register): Update caller of
+       altivec_register_p and spe_register_p.
+
+       * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
+       caller. Replace current_gdbarch by gdbarch.
+       (score_analyze_prologue): use get_frame_arch to get at the current
+       architecture.   
+
+       * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
+       * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
+       current_gdbarch by gdbarch. Update caller.
+       (sparc_frame_cache): Use get_frame_arch to get at the current
+       architecture.
+       * sparce64-tdep.c (sparc64_skip_prologue): Update call of
+       sparc_analyze_prologue.
+
+       * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
+       parameter.
+
+2008-01-11  Markus Deuling  <deuling@de.ibm.com>
+
+       * exec.c: #include "arch-utils.h"
+        (print_section_info): Use gdbarch_from_bfd to get at the
+       current architecture. Replace current_gdbarch. Fix indention. Replace
+       deprecated_print_address_numeric by paddress.
+       * Makefile.in (exec.o) Add dependency to arch-utils.h.
+
+       * valprint.c (val_print_string): Replace 
+       deprecated_print_address_numeric.
+       * tracepoint.c (trace_mention, scope_info): Likewise.
+       * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
+       (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
+       (maintenance_check_symtabs): Likewise.
+       * symfile.c (list_overlays_command): Likewise.
+       * stack.c (frame_info, print_block_frame_labels): Likewise.
+       * printcmd.c (print_address, print_address_demangle)
+       (address_info): Likewise.
+       * corefile.c (memory_error): Likewise.
+       * infcmd.c (jump_command): Likewise.
+       * breakpoint.c (insert_bp_location, describe_other_breakpoints)
+       (mention, delete_breakpoint): Likewise.
+       * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
+       * dwarf2read.c (dump_die): Likewise.
+       * ada-valprint.c (ada_val_print_1): Likewise.
+       * f-valprint.c (f_val_print): Likewise.
+       * linux-fork.c (info_forks_command): Likewise.  
+       * m32r-com.c (m32r_load_section, m32r_load)
+       (m32r_upload_command): Likewise.
+
+       * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
+
+2008-01-11  Markus Deuling  <deuling@de.ibm.com>
+
+       * gdbarch.sh (skip_prologue): Add gdbarch
+       as parameter.
+       * gdbarch.{c,h}: Regenerate.
+
+       * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
+       * amd64-tdep.c (amd64_skip_prologue): Likewise.
+       * avr-tdep.c (avr_skip_prologue): Likewise.
+       * cris-tdep.c (cris_skip_prologue): Likewise.
+       * frv-tdep.c (frv_skip_prologue): Likewise.
+       * h8300-tdep.c (h8300_skip_prologue): Likewise.
+       * hppa-tdep.c (hppa_skip_prologue): Likewise.
+       * i386-tdep.c (i386_skip_prologue): Likewise.
+       * ia64-tdep.c (ia64_skip_prologue): Likewise.
+       * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
+       * m32r-tdep.c (m32r_skip_prologue): Likewise.
+       * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
+       * m68k-tdep.c (m68k_skip_prologue): Likewise.
+       * m88k-tdep.c (m88k_skip_prologue): Likewise.
+       * mep-tdep.c (mep_skip_prologue): Likewise.
+       * mips-tdep.c (mips_skip_prologue): Likewise.
+       * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
+       * mt-tdep.c (mt_skip_prologue): Likewise.
+       * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
+       * score-tdep.c (score_skip_prologue): Likewise.
+       * sh64-tdep.c (sh64_skip_prologue): Likewise.
+       * sh-tdep.c (sh_skip_prologue): Likewise.
+       * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
+       * sparc-tdep.c (sparc32_skip_prologue): Likewise.
+       * spu-tdep.c (spu_skip_prologue): Likewise.
+       * v850-tdep.c (v850_skip_prologue): Likewise.
+       * vax-tdep.c (vax_skip_prologue): Likewise.
+       * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
+       * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
+
+       * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
+       current_gdbarch by gdbarch.
+       * m32c-tdep.c (m32c_skip_prologue): Likewise.
+       * s390-tdep.c (s390_skip_prologue): Likewise.
+
+2008-01-10  Doug Evans  <dje@google.com>
+
+       * defs.h (struct continuation_arg): Fix typo in comment.
+       * target.c (target_translate_tls_address): Fix comment spelling error.
+
+2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
+       (DOUBLEST_SCAN_FORMAT): Likewise.
+       * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
+       * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
+       * c-exp.y (parse_number): Likewise.
+       * jv-exp.y (parse_number): Likewise.
+       * objc-exp.y (parse_number): Likewise.
+       * p-exp.y (parse_number): Likewise.
+
+2008-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
+       (check_typedef): Likewise.
+
+2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
+
+       * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
+       seen_double_big_d, treat the new H, D, and DD modifiers as length
+       modifiers.
+
+2008-01-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (read_enumeration_type): Add comment.
+
+2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * config.in: Regenerate.
+
+2008-01-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_convert_actual): Renames convert_actual.
+       Make non-static.
+       (ada_convert_actuals): Delete.
+       * ada-lang.h (ada_convert_actual): Add declaration.
+       (ada_convert_actuals): Remove declaration.
+       * infcall.c: #include "ada-lang.h".
+       (value_arg_coerce): Add new parameter sp.  Update function
+       documetnation.  Add handling of Ada function call parameters.
+       * Makefile.in (infcall.o): Update dependencies.
+
+2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * ada-lang.c (ensure_lval): Fix value lval kind.
+       (convert_actual): Add handling for arguments passed by reference.
+
+2008-01-08  Doug Evans  <dje@google.com>
+
+       * dbxread.c (read_dbx_symtab): Fix indentation.
+
+2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
+       (valarith.o): Depend on dfp.h.
+       (valops.o): Likewise.
+       * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
+       (set_decnumber_context): New function.
+       (decimal_check_errors): Likewise.
+       (decimal_from_number): Likewise.
+       (decimal_to_number): Likewise.
+       (decimal_from_string): Use set_decnumber_context and
+       decimal_check_errors.
+       (decimal_from_integral): New function.
+       (decimal_from_floating): Likewise.
+       (decimal_to_double): Likewise.
+       (promote_decimal): Likewise.
+       (decimal_binop): Likewise.
+       (decimal_is_zero): Likewise.
+       (decimal_compare): Likewise.
+       (decimal_convert): Likewise.
+       * dfp.h (decimal_from_integral): New prototype.
+       (decimal_from_floating): Likewise.
+       (decimal_to_double): Likewise.
+       (decimal_binop): Likewise.
+       (decimal_is_zero): Likewise.
+       (decimal_compare): Likewise.
+       (decimal_convert): Likewise.
+       * eval.c (evaluate_subexp_standard): Remove expect_type argument from
+       call to value_from_decfloat.
+       * valarith.c: Include dfp.h.
+       (value_args_as_decimal): New function.
+       (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
+       (value_logical_not): Likewise.
+       (value_equal): Likewise.
+       (value_less): Likewise.
+       (value_pos): Likewise.
+       (value_neg): Formatting fix.
+       * valops.c: Include dfp.h.
+       (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
+       * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
+       (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
+       (value_from_decfloat): Remove expect_type argument.
+       * value.h (value_from_decfloat): Update prototype.
+
+2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Ignore change in name of dynamic linker during
+       execution on Solaris.  This also unbreaks pending breakpoints.
+
+       * solist.h (struct target_so_ops): New field same.
+        * solib-svr4.c (svr4_same): New.
+        (_initialize_svr4_solib): Register svr4_same.
+        * solib.c (update_solib_list): Use ops->same, if available.
+
+2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
+       when using MS-DOS paths.
+
+2008-01-05  Pedro Alves  <pedro@codesourcery.com>
+
+       * NEWS: Mention --pid and --core command line behaviour changes.
+
+2008-01-05  Pedro Alves  <pedro@codesourcery.com>
+
+       * main.c (captured_main): Remove 'count' varible and the
+       ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
+       --pid options were issued simultaneously.  If an explicit pid
+       option was passed, don't fallback to core file.  Detect extra
+       arguments better in the presence of explicit pid or core
+       arguments.
+
+2008-01-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_which_variant_applies): Correctly compute
+       the value of the discriminant when the variant record is packed.
+
+2008-01-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
+       that are used to differentiate homonyms.
+
+2008-01-04  Jerome Guitton  <guitton@adacore.com>
+
+       * ada-lang.c (decode_packed_array_type): Avoid a seg fault
+       when the type is an anonymous pointer type.
+       (ada_check_typedef): Avoid a seg fault when the type is null.
+       * ada-typeprint.c (print_array_type): Add support for pointer
+       to packed arrays.
+
+2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
+
+        * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
+
+2008-01-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
+       EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
+
+2008-01-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-exp.y (chop_separator): New function.
+       (write_selectors): Rewrite to re-use chop_separator.
+       (ada_nget_field_index, get_symbol_field_type): New functions.
+       (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
+       expressions.
+
+2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
+       of SYMBOL_VALUE when working with function symbols.
+
+2008-01-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
+       expressions.  These expressions do not need to be rewriten.
+
 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
 
        * dwarf2read.c (read_enumeration_type): Flag type as stub if
This page took 0.027839 seconds and 4 git commands to generate.