binutils-gdb.git
15 years ago * ada-lang.c (ada_index_type): Make static. Add NAME argument.
Ulrich Weigand [Mon, 29 Jun 2009 17:22:10 +0000 (17:22 +0000)]
* ada-lang.c (ada_index_type): Make static.  Add NAME argument.
Throw error on invalid input arguments.  Return NULL if unable
to determine index type.

(ada_array_bound_from_type): Remove TYPEP argument.
(ada_array_bound): Make static.  Return LONGEST instead of value.
Update for ada_array_bound_from_type change.
(ada_array_length): Return LONGEST instead of value.
Update for ada_array_bound_from_type change.
(make_array_descriptor): Update for ada_array_bound change.

(ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
ada_array_bound, ada_array_length, ada_index_type changes.
Always use ada_index_type to compute result type; fall back
to architecture-specific integer type if ada_index_type fails.

* ada-lang.h (ada_index_type): Remove prototype.
(ada_array_bound): Likewise.

15 years ago * dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
Pedro Alves [Mon, 29 Jun 2009 16:48:15 +0000 (16:48 +0000)]
* dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
a psymtab.

15 years agogdb
Tom Tromey [Mon, 29 Jun 2009 16:41:45 +0000 (16:41 +0000)]
gdb
* README: Mention parallel check.
gdb/testsuite
* dg-extract-results.sh: New file.
* Makefile.in (FORCE_PARALLEL): New variable.
(CHECK_TARGET): New conditional variable.
(check): Use CHECK_TARGET.
(DO_RUNTEST): New variable.
(check-single): New target.
(TEST_DIRS): New variable.
(TEST_TARGETS): Likewise.
(check-parallel): New target.
(check-gdb.%): New pattern.
(BASE1_FILES): New variable.
(BASE2_FILES): Likewise.
(check-gdb.base%): New pattern.
(%/.dir): New pattern.
* configure: Rebuild.
* aclocal.m4 (AM_CONDITIONAL): New defun.
* configure.ac: Check whether user is using GNU make.
(GMAKE): New conditional.

15 years ago2009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Mon, 29 Jun 2009 15:18:07 +0000 (15:18 +0000)]
2009-06-29  Sami Wagiaalla  <swagiaal@redhat.com>

* dwarf2read.c (read_import_statement): Properly set import location
and destination.
* cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
inner, char* outer arguments. Updated callers.

2009-06-29  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/namespace-nested-import.cc: New test.
* gdb.cp/namespace-nested-import.exp: New test.

15 years ago * value.h (value_subscript, value_subscripted_rvalue,
Ulrich Weigand [Mon, 29 Jun 2009 13:24:41 +0000 (13:24 +0000)]
* value.h (value_subscript, value_subscripted_rvalue,
value_bitstring_subscript, value_ptradd): Use LONGEST instead
of value as type of the index argument.
(value_ptrsub): Remove.
* valarith.c (value_subscript, value_subscripted_rvalue,
value_bitstring_subscript, value_ptradd): Use LONGEST instead
of value as type of the index argument.
(value_ptrsub): Remove.

* wrapper.h (gdb_value_subscript): Use LONGEST instead of
value as type of the index argument.
* wrapper.c (gdb_value_subscript): Likewise.

Update calls to gdb_value_subscript, value_subscript,
value_subscripted_rvalue, value_bitstring_subscript and
value_ptradd to use LONGEST instead of value as index
argument type.  Use value_ptradd instead of value_ptrsub.
* ada-lang.c (ada_value_subscript, ada_value_ptr_subscript,
ada_tag_name_2): Update.
* ada-tasks.c (read_atcb): Update.
* eval.c (evaluate_subexp_standard): Update.
* valarith.c (value_subscript): Update.
* gnu-v2-abi.c (gnuv2_virtual_fn_field): Update.
* gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
gnuv3_method_ptr_to_value): Update.
* jv-lang.c (evaluate_subexp_java): Update.
* m2-lang.c (evaluate_subexp_modula2): Update.
* python/python-value.c (valpy_getitem, valpy_binop): Update.
* wrapper.c (gdb_value_subscript): Update.
* varobj.c (c_describe_child): Update.

15 years ago * gdbtypes.h (make_function_type): Remove OBJFILE parameter.
Ulrich Weigand [Mon, 29 Jun 2009 13:19:19 +0000 (13:19 +0000)]
* gdbtypes.h (make_function_type): Remove OBJFILE parameter.
* gdbtypes.c (make_function_type): Remove OBJFILE parameter.
(lookup_function_type): Update call.
* stabsread.c (read_type): Likewise.
* dwarf2read.c (read_subroutine_type): Use lookup_function_type
instead of make_function_type.
* jv-lang.c (type_from_class): Likewise.  Do not allocate types
on the fake "dynamics" obstack.

15 years ago * gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
Ulrich Weigand [Mon, 29 Jun 2009 13:18:37 +0000 (13:18 +0000)]
* gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
nodebug_text_symbol, nodebug_data_symbol, nodebug_unknown_symbol,
and nodebug_tls_symbol members.
(struct objfile_type): New data structure.
(objfile_type): Add prototype.
* gdbtypes.c (gdbtypes_post_init): Remove initialization code
for types no longer in struct builtin_type.
(objfile_type_data): New static variable.
(_initialize_gdbtypes): Initialize it.
(objfile_type): New function.

* gdbtypes.h (builtin_type_error): Remove.
* gdbtypes.c (build_complex): Do not use builtin_type_error.
* symtab.c (builtin_type_error): Remove.
(_initialize_symtab): Remove initialization.

* stabsread.c (dbx_lookup_type, define_symbol, error_type,
rs6000_builtin_type, read_range_type): Use per-objfile types
instead of global or per-architecture builtin types.
* coffread.c (decode_type): Likewise.
* dwarf2read.c (read_array_type, read_tag_string_type,
new_symbol, die_type): Likewise.
* mdebugread.c (parse_symbol, basic_type, upgrade_type,
parse_procedure, psymtab_to_symtab_1): Likewise.
* xcoffread.c (process_xcoff_symbol): Likewise.
* parse.c (write_exp_msymbol): Likewise.

* stabsread.c (rs6000_builtin_type_data): New static variable.
(_initialize_stabsread): Initialize it.
(rs6000_builtin_type): Add OBJFILE argument.  Allocate builtin
types per-objfile instead of globally.

* stabsread.c (dbx_lookup_type): Add OBJFILE argument.  Use it
instead of current_objfile; pass it to rs6000_builtin_type.
(dbx_alloc_type, read_type, read_range_type): Update calls.
(cleanup_undefined_types_noname): Add OBJFILE argument and
pass it to dbx_lookup_type.
(cleanup_undefined_types): Add OBJFILE argument and pass it
to cleanup_undefined_types_noname.
* stabsread.h (cleanup_undefined_types): Add OBJFILE argument.
* buildsym.c (end_symtab): Update call.

15 years ago * darwin-nat-info.c (darwin_debug_regions_recurse): Use
Ulrich Weigand [Mon, 29 Jun 2009 13:11:37 +0000 (13:11 +0000)]
* darwin-nat-info.c (darwin_debug_regions_recurse): Use
target_gdbarch instead of current_gdbarch.

15 years ago * Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
Ulrich Weigand [Mon, 29 Jun 2009 13:10:39 +0000 (13:10 +0000)]
* Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
(ALL_TARGET_OBS): Add moxie-tdep.o, i386-darwin-tdep.o, and
solib-darwin.o.

* configure.tgt: Add comment.

15 years ago * elf-m10300.c (mn10300_elf_relax_section): Allow for the
Nick Clifton [Mon, 29 Jun 2009 11:55:13 +0000 (11:55 +0000)]
    * elf-m10300.c (mn10300_elf_relax_section): Allow for the
        different uses of the relocations addend when a symbol is in a
        merged section.

15 years ago PR 10288
Nick Clifton [Mon, 29 Jun 2009 08:08:15 +0000 (08:08 +0000)]
    PR 10288
        * arm-dis.c (enum opcode_sentinels): New:  Used to mark the
        boundary between variaant and generic coprocessor instuctions.
        (coprocessor): Use it.
        Fix architecture version of MCRR and MRRC instructions.
        (arm_opcdes): Fix patterns for STRB and STRH instructions.
        (print_insn_coprocessor): Check architecture and extension masks.
        Print a hexadecimal version of any decimal constant that is
        outside of the range of -16 to +32.
        (print_arm_address): Add a return value of the offset used in the
        adress, if it is worth printing a hexadecimal version of it.
        (print_insn_neon): Print a hexadecimal version of any decimal
        constant that is outside of the range of -16 to +32.
        (print_insn_arm): Likewise.
        (print_insn_thumb16): Likewise.
        (print_insn_thumb32): Likewise.

        PR 10297
        * arm-dis.c (UNDEFINED_INSTRUCTION): New macro for a description
        of an undefined instruction.
        (arm_opcodes): Use it.
        (thumb_opcod): Use it.
        (thumb32_opc): Use it.

        Update expected disassembly regrexps in GAS and LD testsuites.

15 years agodaily update
Alan Modra [Mon, 29 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 29 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agoChangeLog:
Paul Pluzhnikov [Sun, 28 Jun 2009 18:53:12 +0000 (18:53 +0000)]
ChangeLog:

2009-06-28  Paul Pluzhnikov  <ppluzhnikov@google.com>

* mi/mi-cmds.c (mi_cmds): Remove unimplemented entries.

doc/ChangeLog:
2009-06-28  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.texinfo (GDB/MI Program Context): @ignore unimplemented
MI commands.
(GDB/MI Symbol Query): Likewise.
(GDB/MI File Commands): Likewise.
(GDB/MI File Transfer Commands): Likewise.
(GDB/MI Target Manipulation): Likewise.
(GDB/MI Miscellaneous Commands): Likewise.

15 years ago gdb/
Daniel Jacobowitz [Sun, 28 Jun 2009 00:20:24 +0000 (00:20 +0000)]
gdb/
* NEWS: Document inlined function support.
* Makefile.in (SFILES): Add inline-frame.c.
(COMMON_OBS): Add inline-frame.o.
* block.c (contained_in): Rewrite to use lexical nesting.
(block_linkage_function): Skip inlined function blocks.
(block_inlined_p): New.
* block.h (struct block): Update comment.
(block_inlined_p): New prototype.
* blockframe.c (get_frame_block): Handle inlined functions.
(get_frame_function): Do not use block_linkage_function.
(block_innermost_frame): Use get_frame_block and contained_in.
* breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
Skip over inlined functions.  Simplify epilogue check.
(bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
Update comments.
(set_momentary_breakpoint): Only accept non-inlined frames.
(watch_command_1): Use frame_unwind_caller_pc and
frame_unwind_caller_id instead of get_prev_frame.
(until_break_command): Likewise.  Use get_stack_frame_id.
* buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
* dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
* dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
(read_func_scope, new_symbol): Likewise.  Handle arguments specially
for inlined functions without call site information.
(inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
(die_specification): Treat DW_AT_abstract_origin as a specification.
(read_type_die): Handle DW_TAG_inlined_subroutine.
* frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
* frame.c (fprint_frame_id): Print inline depth.
(fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
(skip_inlined_frames, get_stack_frame_id): New.
(frame_unwind_caller_id): Use skip_inlined_frames.
(frame_id_inlined_p): New.
(frame_id_eq): Make the logic match the comments.  Add inline_depth
check.
(frame_id_inner): Handle inlined functions.
(frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
(frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
(get_prev_frame_1): Check for inline frames.  Split out frame
allocation to get_prev_frame_raw.
(get_prev_frame_raw): New function.
(get_prev_frame): Handle inline frames.
(get_frame_pc): Use frame_unwind_pc.
(get_frame_address_in_block): Skip inlined frames on both sides.
(pc_notcurrent): Delete.
(find_frame_sal): Rewrite to handle inline call sites.  Use
get_frame_address_in_block.
(deprecated_update_frame_pc_hack): Make static.
* frame.h: Update comments.
(struct frame_id): Add inline_depth.
(enum frame_type): Add INLINE_FRAME.
(frame_id_inlined_p, get_stack_frame_id): New prototypes.
* gdbthread.h (struct thread_info): Add step_stack_frame_id field.
* infcmd.c (set_step_frame): New function.
(step_once): Use set_step_frame.  Handle inlined functions.
(until_next_command): Use set_step_frame.
(finish_backward), finish_forward): Use get_stack_frame_id.
(finish_command): Support inlined functions.
* inferior.h (set_step_info): New prototype.
* infrun.c (RESUME_ALL): Use minus_one_ptid.
(clear_proceed_status): Clear step_stack_frame_id.
(init_wait_for_inferior): Call clear_inline_frame_state.
(init_execution_control_state): Make static.
(set_step_info): New function.
(init_thread_stepping_state): Do not set the symtab or line here.
(stepped_in_from): New function.
(handle_inferior_event): Handle inlined functions.  Use set_step_info.
(insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
(struct inferior_status): Add step_stack_frame_id.
(save_inferior_status, restore_inferior_status): Save and restore
step_stack_frame_id.
* inline-frame.c, inline-frame.h: New files.
* minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
* regcache.c (regcache_write_pc): Call reinit_frame_cache.
* s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
* stack.c (frame_show_address): New.
(print_frame_info, print_frame): Use it.
(find_frame_funname): Use get_frame_function.  Handle inlined blocks.
(frame_info): Mark inlined functions.
(backtrace_command_1): Use get_current_user_frame.
(print_frame_local_vars, print_frame_label_vars): Update comments.
(return_command): Refuse inlined functions.
* symtab.c (lookup_symbol_aux_local): Stop at inlined function
boundaries.
(find_function_start_sal): Avoid inlined functions.
(completion_list_add_fields): New function.
(default_make_symbol_completion_list): Use it.  Use block_static_block
and block_global_block.  Check for inlined functions.
(skip_prologue_using_sal): Avoid line number comparison across
inlining.
* symtab.h (struct symbol): Add is_inlined.
(SYMBOL_INLINED): New.
* target.c (target_resume): Call clear_inline_frame_state.
* valops.c (value_of_variable): Check block_inlined_p.

gdb/doc/
* gdb.texinfo (Debugging Optimized Code): New chapter.
(Compiling for Debugging): Reference it.  Move some
text to the new section.

gdb/testsuite/
* gdb.base/break.exp: Add an XFAIL for gcc/36748.
* gdb.cp/annota2.exp: Accept frames-invalid in more places.
* gdb.opt/Makefile.in (EXECUTABLES): Update.
* gdb.opt/clobbered-registers-O2.exp: Update to GPL v3.
* gdb.opt/inline-bt.c, gdb.opt/inline-bt.exp,
gdb.opt/inline-cmds.c, gdb.opt/inline-cmds.exp,
gdb.opt/inline-locals.c, gdb.opt/inline-locals.exp,
gdb.opt/inline-markers.c: New files.
* lib/gdb.exp (skip_inline_frame_tests): New function.
(skip_inline_var_tests): New function.

15 years ago * frame.c (frame_unwind_id): Renamed to ...
Daniel Jacobowitz [Sun, 28 Jun 2009 00:05:14 +0000 (00:05 +0000)]
* frame.c (frame_unwind_id): Renamed to ...
(frame_unwind_caller_id): ... this.  All callers updated.
(frame_pc_unwind): Renamed to ...
(frame_unwind_caller_pc): ... this.  All callers updated.
* frame.h: Document frame_unwind_caller_WHAT functions.
(frame_unwind_id): Renamed to ...
(frame_unwind_caller_id): ... this.
(frame_pc_unwind): Renamed to ...
(frame_unwind_caller_pc): ... this.
* hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
* stack.c (parse_frame_specification_1): Do not rely on
frame_unwind_id.

15 years ago*** empty log message ***
gdbadmin [Sun, 28 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 28 Jun 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago* gdb.cp/exception.exp: Don't require $hex before inner frame in
Andreas Schwab [Sat, 27 Jun 2009 21:36:49 +0000 (21:36 +0000)]
* gdb.cp/exception.exp: Don't require $hex before inner frame in
backtrace.

15 years ago2009-06-27 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sat, 27 Jun 2009 18:49:20 +0000 (18:49 +0000)]
2009-06-27  Michael Snyder  <msnyder@vmware.com>

* gdb.reverse: New directory.
* gdb.reverse/break-reverse.c: New test.
* gdb.reverse/break-reverse.exp: New test.
* gdb.reverse/consecutive-reverse.c: New test.
* gdb.reverse/consecutive-reverse.exp: New test.
* gdb.reverse/finish-reverse.c: New test.
* gdb.reverse/finish-reverse.exp: New test.
* gdb.reverse/machinestate.c: New test.
* gdb.reverse/ms1.c: New test.
* gdb.reverse/machinestate.exp: New test.
* gdb.reverse/Makefile.in: New file.
* gdb.reverse/shr2.c: New test.
* gdb.reverse/solib-reverse.c: New test.
* gdb.reverse/solib-reverse.exp: New test.
* gdb.reverse/step-reverse.c: New test.
* gdb.reverse/step-reverse.exp: New test.
* gdb.reverse/until-reverse.c: New test.
* gdb.reverse/ur1.c: New test.
* gdb.reverse/until-reverse.exp: New test.
* gdb.reverse/watch-reverse.c: New test.
* gdb.reverse/watch-reverse.exp: New test.
* configure.ac (AC_OUTPUT): Add gdb.reverse/Makefile.
* configure: Regenerate.

15 years ago2009-06-27 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sat, 27 Jun 2009 18:34:58 +0000 (18:34 +0000)]
2009-06-27  Michael Snyder  <msnyder@vmware.com>

* infrun.c (handle_inferior_event): Improve handling of
reverse-stepping into and over shared library functions.

15 years ago2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 27 Jun 2009 17:19:02 +0000 (17:19 +0000)]
2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/10321
* bucomm.c (get_file_size): Return -1 on error.

* objcopy.c (copy_file): Report empty file.

15 years agobfd/
H.J. Lu [Sat, 27 Jun 2009 16:07:10 +0000 (16:07 +0000)]
bfd/

2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10337
* elf.c (bfd_section_from_shdr): Don't change sh_link for
SHT_REL/SHT_RELA sections on executable nor shared library.
Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
as a normal section.

ld/testsuite/

2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10337
* ld-ifunc/binutils.exp: New.

15 years ago2009-06-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Sat, 27 Jun 2009 08:57:08 +0000 (08:57 +0000)]
2009-06-27  Kai Tietz  <kai.tietz@onevision.com>

* scripttempl/pe.sc (.debug_pubtypes): Fixed syntax error.
* scripttempl/pep.sc (.debug_pubtypes): Likewise.

15 years agodaily update
Alan Modra [Sat, 27 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 27 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2009-06-26 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 26 Jun 2009 17:23:10 +0000 (17:23 +0000)]
2009-06-26  Kai Tietz  <kai.tietz@onevision.com>

        * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
        * scripttempl/pep.sc: Likewise.

15 years ago * Makefile.def (host_modules): Add cgen.
Doug Evans [Fri, 26 Jun 2009 17:19:07 +0000 (17:19 +0000)]
* Makefile.def (host_modules): Add cgen.
* Makefile.in: Regenerate.
* configure.ac (host_tools): Add cgen.
* configure: Regenerate.

15 years ago * gdb.base/psymtab.exp: Turn off pending breakpoints.
Doug Evans [Fri, 26 Jun 2009 16:08:20 +0000 (16:08 +0000)]
* gdb.base/psymtab.exp: Turn off pending breakpoints.

15 years agoFix indentation of:
Tristan Gingold [Fri, 26 Jun 2009 14:15:49 +0000 (14:15 +0000)]
Fix indentation of:
2009-06-23  Sami Wagiaalla  <swagiaal@redhat.com>

15 years agoAdd missing entry for:
Tristan Gingold [Fri, 26 Jun 2009 14:14:50 +0000 (14:14 +0000)]
Add missing entry for:

2009-06-22  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
instead of "%p".

15 years ago* binutils-all/objcopy.exp: Move XFAIL from objcopy_test to copy_executable.
Christopher Faylor [Fri, 26 Jun 2009 01:26:28 +0000 (01:26 +0000)]
* binutils-all/objcopy.exp: Move XFAIL from objcopy_test to copy_executable.

15 years ago*** empty log message ***
gdbadmin [Fri, 26 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Fri, 26 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
Pierre Muller [Thu, 25 Jun 2009 22:40:23 +0000 (22:40 +0000)]
* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
windows problem for 'file delete $binfile'.

15 years ago * server.c (process_serial_event): Re-return unsupported, not
Pedro Alves [Thu, 25 Jun 2009 22:13:53 +0000 (22:13 +0000)]
* server.c (process_serial_event): Re-return unsupported, not
error, if the type isn't recognized.  Re-allow supporting only
insert or remove packets.  Also call require_running for
breakpoints.  Add missing break statement to default case.  Tidy.
* target.h (struct target_ops): Rename insert_watchpoint to
insert_point, and remove_watchpoint to remove_point.

* linux-low.h (struct linux_target_ops): Likewise.
* linux-low.c (linux_insert_watchpoint): Rename to ...
(linux_insert_point): ... this.  Adjust.
(linux_remove_watchpoint): Rename to ...
(linux_remove_point): ... this.  Adjust.
(linux_target_ops): Adjust.
* linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
(cris_insert_point): ... this.
(cris_remove_watchpoint): Rename to ...
(cris_remove_point): ... this.
(the_low_target): Adjust.

15 years ago * linespec.c (find_method): Add new not_found_ptr parameter to
Karen Osmond [Thu, 25 Jun 2009 18:01:06 +0000 (18:01 +0000)]
* linespec.c (find_method): Add new not_found_ptr parameter to
bring in line with symtab_from_filename, decode_variable.
(decode_compound): Likewise.  Also propagate not_found_ptr to
find_method.
(decode_line_1): Propagate not_found_ptr to decode_compound.
(cplusplus_error): Now throws NOT_FOUND_ERROR.

15 years ago * MAINTAINERS (Write After Approval): Add self.
Karen Osmond [Thu, 25 Jun 2009 17:30:42 +0000 (17:30 +0000)]
* MAINTAINERS (Write After Approval): Add self.

15 years ago* binutils-all/objcopy.exp: Always treat objcopy_test as XFAIL on cygwin.
Christopher Faylor [Thu, 25 Jun 2009 15:55:44 +0000 (15:55 +0000)]
* binutils-all/objcopy.exp: Always treat objcopy_test as XFAIL on cygwin.

15 years ago * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
Nick Clifton [Thu, 25 Jun 2009 15:36:45 +0000 (15:36 +0000)]
    * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
        symbols with SEC_MERGE flag.

15 years ago2009-06-25 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 25 Jun 2009 14:41:18 +0000 (14:41 +0000)]
2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

* ld-pe/aligncomm-1.c (size_t): Add typedef.
(main): Use it for casting pointer to scalar.
* ld-pe/aligncomm-2.c: Likewise.
* ld-pe/aligncomm-3.c: Likewise.
* ld-pe/aligncomm-4.c: Likewise.
* ld-scripts/empty-address.exp: Make sure that for x86_64-*-mingw*
target imagebase is set to zero.
* ld-scripts/weak.exp: Don't fail for x86_64-*-mingw* target.

15 years ago2009-06-25 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 25 Jun 2009 13:39:27 +0000 (13:39 +0000)]
2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

        * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
        give .debug and .reloc data characteristics.
        (DOT_RELOC): New define for .reloc section string.
        (coff_write_object_contents): Use DOT_RELOC instead of string.

15 years ago2009-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 25 Jun 2009 13:18:46 +0000 (13:18 +0000)]
2009-06-25  Tristan Gingold  <gingold@adacore.com>

* ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
prototype.
(lang_map): Print the size of discarded sections.
(print_statement): Adjust call to print_input_section.

15 years ago2009-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 25 Jun 2009 12:39:06 +0000 (12:39 +0000)]
2009-06-25  Tristan Gingold  <gingold@adacore.com>

* mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
(bfd_mach_o_canonicalize_dynamic_symtab)
(bfd_mach_o_get_synthetic_symtab): Defines.
(TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
(TARGET_NAME): Use Mach-O specific functions for dynamic.

* mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
for scattered relocations.
(bfd_mach_o_i386_print_thread): New function.
(bfd_mach_o_print_thread): Define.

* mach-o.c (text_section_names_xlat): Add an entry for __const.
(bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
New functions extracted from ...
(bfd_mach_o_canonicalize_reloc): ... This.  Simplified.
(bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
(bfd_mach_o_canonicalize_dynamic_reloc): New function.
(bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
(bfd_mach_o_ppc_flavour_string): Reindentation.  Add 64 bits cases.
(bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
Set name_str field.
(bfd_mach_o_scan_read_dylib): Ditto.
(bfd_mach_o_scan_read_thread): Set mdata at declaration.  Add comments,
reindent.
(bfd_mach_o_scan_read_dysymtab): Set mdata at declaration.  Correctly
decode isym and flags on little endian targets.  Set dysymtab field.
(bfd_mach_o_scan_start_address): Adjust for enum names.
(bfd_mach_o_lookup_section): Do not look for segments anymore.
(bfd_mach_o_print_section): Display bfd section name.
(bfd_mach_o_print_segment): Display none if no name.
(bfd_mach_o_print_dysymtab): Display next index for local, external
and undefined symbols.
(bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
Display dylinker name. Display thread and unixthread commands content.
(bfd_mach_o_print_thread): New macro.

* mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
(bfd_mach_o_ppc_thread_flavour): Ditto.
(bfd_mach_o_i386_thread_flavour): Ditto.
(BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
(BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
BFD_MACH_O_THREAD_STATE_NONE.
(bfd_mach_o_segment_command): Remove segment field.
(bfd_mach_o_thread_flavour): Field offset is now unsigned long.
(bfd_mach_o_dylinker_command): Remove section field, add name_str.
(bfd_mach_o_prebound_dylib_command): Ditto.
(bfd_mach_o_dylib_command): Ditto.
(bfd_mach_o_prebound_dylib_command): Remove section field.
(mach_o_data_struct): Add dysymtab field.
(bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
(bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
(bfd_mach_o_build_commands): Remove parameter names and attributes.
(bfd_mach_o_get_dynamic_reloc_upper_bound)
(bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.

15 years ago2009-06-25 Rafael Avila de Espindola <espindola@google.com>
Dave Korn [Thu, 25 Jun 2009 12:32:10 +0000 (12:32 +0000)]
2009-06-25  Rafael Avila de Espindola  <espindola@google.com>

* plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
field of struct dirent.

15 years agodaily update
Alan Modra [Thu, 25 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 25 Jun 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago PR 10156
Ian Lance Taylor [Wed, 24 Jun 2009 19:48:51 +0000 (19:48 +0000)]
PR 10156
* layout.cc (Layout::choose_output_section): If we find an
existing section, update the flags.
(Layout::create_notes): New function, broken out of
Layout::finalize.
(Layout::finalize): Don't create note sections.
(Layout::create_note): Don't crash if linker script discards
section.
(Layout::create_gold_note): Likewise.
(Layout::create_build_id): Likewise.  Don't set
after_input_sections on the section.
(Layout::create_executable_stack_info): Remove target parameter.
Change caller.
* layout.h (class Layout): Declare create_notes.  Update
declaration of create_executable_stack_info.
* gold.cc (queue_middle_tasks): Call create_notes.
* output.cc (Output_section::update_flags_for_input_section): Move
here from output.h.  If SHF_ALLOC flag is newly set, mark address
invalid.
* output.h (Output_data::mark_address_invalid): New function.
(class Output_section): Only declare, not define,
update_flags_for_input_section.  Remove set_flags.

15 years ago * script-sections.cc (Output_section_definition::
Ian Lance Taylor [Wed, 24 Jun 2009 19:00:15 +0000 (19:00 +0000)]
* script-sections.cc (Output_section_definition::
set_section_addresses): Rename shadowing local load_address to
laddr.

15 years ago * valops.c (value_one): Reimplement broken decimal-float case.
Ulrich Weigand [Wed, 24 Jun 2009 16:51:57 +0000 (16:51 +0000)]
* valops.c (value_one): Reimplement broken decimal-float case.

15 years ago * eval.c (evaluate_subexp_standard): Use expression architecture
Ulrich Weigand [Wed, 24 Jun 2009 16:45:49 +0000 (16:45 +0000)]
* eval.c (evaluate_subexp_standard): Use expression architecture
instead of current_gdbarch.

* infrun.c (handle_inferior_event): Avoid unncessary reference
to current_gdbarch and get_current_frame ().

15 years ago * breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
Ulrich Weigand [Wed, 24 Jun 2009 16:41:30 +0000 (16:41 +0000)]
* breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
(enum bptype): Add bp_longjmp_master.

* breakpoint.c (create_longjmp_master_breakpoint): New function.
(update_breakpoints_after_exec): Handle bp_longjmp_master
breakpoints.  Call create_longjmp_master_breakpoint.
(print_it_typical, bpstat_stop_status, bpstat_what,
print_one_breakpoint_location, allocate_bp_location, mention,
delete_command, breakpoint_re_set_one): Handle bp_longjmp_master.
(breakpoint_re_set): Call create_longjmp_master_breakpoint.
(create_longjmp_breakpoint): Delete.
(set_longjmp_breakpoint): Add THREAD argument.  Reimplement
to install momentary clones of bp_longjmp_master breakpoints.

* infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.

15 years ago * server.c (handle_v_kill): Pass signal_pid to
Pierre Muller [Wed, 24 Jun 2009 15:23:32 +0000 (15:23 +0000)]
* server.c (handle_v_kill): Pass signal_pid to
kill_inferior if multi_process is zero.

15 years ago PR 10244
Ian Lance Taylor [Wed, 24 Jun 2009 14:36:14 +0000 (14:36 +0000)]
PR 10244
* reloc.cc (relocate_sections): Skip empty relocation sections.

15 years ago * dwarf.c (display_debug_lines_raw): Include the name of the
Nick Clifton [Wed, 24 Jun 2009 10:37:35 +0000 (10:37 +0000)]
    * dwarf.c (display_debug_lines_raw): Include the name of the
        section in warning message.
        (struct debug_display): Enable reloc processing for .debug_line
        and .debug_ranges sections.

        * readelf.c: Add --relocated-dump command line option to dump the
        relocated contents of a specified section.
        (request_dump): New function.
        (parse_args): Use it.
        (dump_section_as_bytes): Add parameter to indicate whether the
        contents should be relocated.
        (target_specific_reloc_handling): Add code for a R_MN10300_16
        reloc found after a R_MN10300_SYM_DIFF reloc.
        (debug_apply_relocations): Rename to apply_relocations.
        (get_section_contents): New function.  Replaces common code found
        in dump_section_as_strings and dump_section_as_bytes.
        * doc/binutils.texi: Document new command line option.
        * NEWS: Mention the new feature.

15 years ago PR 10156
Ian Lance Taylor [Wed, 24 Jun 2009 05:09:11 +0000 (05:09 +0000)]
PR 10156
* layout.cc (Layout::create_note): Use choose_output_section
rather than make_output_section.

15 years ago PR 10237
Ian Lance Taylor [Wed, 24 Jun 2009 05:01:17 +0000 (05:01 +0000)]
PR 10237
* options.cc (General_options::parse_V): Set printed_version_.
(General_options::General_options): Initialize printed_version_.
* options.h (class General_options): Add printed_version_ field.
* gold.cc (queue_initial_tasks): If there are no input files,
don't give a fatal error if we printed the version information.
(queue_middle_tasks): If using -r with a shared object, give a
fatal error rather than an ordinary error.

15 years ago[cgen]
DJ Delorie [Wed, 24 Jun 2009 03:06:42 +0000 (03:06 +0000)]
[cgen]

* intrinsics.scm: Updates to support IVC2.
(belongs-to-group?): Check IVC2 slots.
(-slots-attribute): New.
(targets::attributes): Add SLOTS.
(target:add-well-known-intrinsics): Add CPMOV.
(md-insn): Add CPTYPE and CRET?.
(add-md-insn): Likewise.
(add-intrinsic-for-isa): Disable the duplicate tests, as IVC2 has
duplicate insns with different bit patterns.
(write-cgen-insn?): Add cret? support.
(intrinsics.h): Add vector types.
(runtime-op): Add vector support.
(intrinsic-protos.h): Let GCC define its types.  Add cret? support.

* cpu/mep-core.cpu: Add CPTYPE and CRET attributes.
* cpu/mep-ivc2.cpu: Update all insns to include type information.
(h-cr-ivc2): Default to typeless.
(h-ccr-ivc2): Fix register width.
(SLOTS): Fix values and default.
(ivc2_*): Add control register names.
(crop, crqp, crpp, croc, crqc, crpc): Default to typeless.

[opcodes]

* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.

[sid/component/cgen-cpu/mep]

* ivc2-cop.cxx (ivc2_cphadd_w): Change to return value.
(ivc2_cpsubaca0u_b): Remove debug line.
* ivc2-cpu.h (ivc2_cpccadd_b): Change to return value.
* mep-cop1-16-decode.cxx: Regenerate.
* mep-cop1-16-sem.cxx: Regenerate.
* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-decode.cxx: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.
* mep-cop1-64-decode.cxx: Regenerate.
* mep-cop1-64-sem.cxx: Regenerate.
* mep-core1-decode.cxx: Regenerate.
* mep-cpu.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-desc.h: Regenerate.

15 years ago[cgen]
DJ Delorie [Wed, 24 Jun 2009 01:44:53 +0000 (01:44 +0000)]
[cgen]

* cpu/mep.opc (mep_cgen_insn_supported_asm): New, skip the short
version of BSR when assembling VLIW bundles.  Use it in mep-asm.c

[opcodes]

* mep-asm.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

15 years ago* config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
DJ Delorie [Wed, 24 Jun 2009 00:51:09 +0000 (00:51 +0000)]
* config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
32 bits for relaxable branches so that we can relax them later.
(md_estimate_size_before_relax): Assume IVC2 branches will be relaxed.
(mep_relax_frag): New.
(md_convert_frag): Relax IVC2 branches in-place.
* config/tc-mep.h ((mep_relax_frag): New.

15 years ago PR 10219
Ian Lance Taylor [Wed, 24 Jun 2009 00:38:00 +0000 (00:38 +0000)]
PR 10219
* layout.cc (Layout::Layout): Initialize have_stabstr_section_.
(Layout::make_output_section): Set have_stabstr_section_ if we see
a .stab*str section.
(Layout::finalize): Call link_stabs_sections.
(Layout::link_stabs_sections): New file.
* layout.h (class Layout): Add have_stabstr_section_ field.
Declare link_stabs_sections.

15 years agodaily update
Alan Modra [Wed, 24 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 24 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
Cary Coutant [Tue, 23 Jun 2009 19:09:54 +0000 (19:09 +0000)]
* dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
Set basic_block to 0 after a special opcode.

15 years agogdb/
Jan Kratochvil [Tue, 23 Jun 2009 18:19:54 +0000 (18:19 +0000)]
gdb/
Fix a regression by the mmap patch from 2009-06-16.
* symfile.c (reread_symbols): Move sym_finish and clear_objfile_data
calls before deleting the OBJFILE obstack.  Extend the comment.

15 years ago * jv-lang.h (JAVA_OBJECT_SIZE): Remove.
Ulrich Weigand [Tue, 23 Jun 2009 18:11:09 +0000 (18:11 +0000)]
* jv-lang.h (JAVA_OBJECT_SIZE): Remove.
(get_java_object_header_size): Add GDBARCH parameter.
* jv-lang.c (get_java_object_header_size): Add GDBARCH parameter.
Use it instead of current_gdbarch.
(evaluate_subexp_java): Replace JAVA_OBJECT_SIZE with call to
get_java_object_header_size.
* jv-valprint.c (java_value_print): Likewise.

15 years ago2009-06-23 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 23 Jun 2009 18:10:42 +0000 (18:10 +0000)]
2009-06-23  Doug Kwan  <dougkwan@google.com>

* Makefile.am (libgold_a_LIBADD): New.
(ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS
  * Makefile.in: Regenerate.
* config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New.
* configure: Regenerate.
* configure.ac (AC_CHECK_DECLS): Add strndup and memmem.
* fileread.cc: Include sys/state.h
* gold.h: Declare memmem and strndup if found missing.
* gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined.

15 years ago2009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Tue, 23 Jun 2009 17:46:52 +0000 (17:46 +0000)]
2009-06-23  Sami Wagiaalla  <swagiaal@redhat.com>

       * dwarf2read.c (process_die): Handle import statements
       (DW_TAG_imported_declaration, case DW_TAG_imported_module)
       (read_import_statement): New.
       (read_func_scope): Update using_directives to point to current context
       (read_lexical_block_scope): Ditto.
       * cp-support.h: Added prototype for cp_add_using.
       * cp-namespace.c: Removed local context_stack.
       (cp_initialize_namespace): Deleted.
       (cp_finalize_namespace): Deleted.
       (cp_add_using_directive): Use using_directives instead of using_list.
       (cp_add_using): No longer static.
       * buildsym.h: Created global using_direct variable.
       Created using_direct variable in context_stack.
       * buildsym.c (finish_block): Set using directives for the block under
       construction.
       (start_symtab): Removed call to cp_initialize_namespace().
       (end_symtab): Removed call to cp_finalize_namespace().
       (push_context): Save and reset using_directives.
       * block.c (block_using): Return using directives for given
       block instead of static block.

2009-06-23  Sami Wagiaalla  <swagiaal@redhat.com>

       * gdb.cp/namespace-using.exp: New test.
       * gdb.cp/namespace-using.cc: New test.

15 years ago * target-descriptions.h (struct type): Do not declare.
Ulrich Weigand [Tue, 23 Jun 2009 16:59:47 +0000 (16:59 +0000)]
* target-descriptions.h (struct type): Do not declare.
(struct tdesc_type): Declare.
(tdesc_named_type): Change return type to struct tdesc_type *.
(tdesc_record_type): Remove.
(tdesc_create_vector): Add prototype.
(tdesc_create_union): Likewise.
(tdesc_add_field): Likewise.

* target-descriptions.c (struct tdesc_reg): Replace gdb_type
member by tdesc_type member.
(struct tdesc_type_field, tdesc_type_field): Add type and vector def.
(struct tdesc_type, tdesc_type_p): Likewise.
(struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
(struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
(struct tdesc_arch_data): Replace registers member by arch_regs.

(tdesc_predefined_types): Change to array of pre-defined
struct tdesc_type structures.  Add "code_ptr" and "data_ptr".
(tdesc_named_type): Return struct tdesc_type * instead of GDB type.
(tdesc_gdb_type): New function.

(target_find_description): Update for data structure changes.
(tdesc_data_cleanup): Likewise.
(tdesc_numbered_register): Likewise.
(tdesc_use_registers): Likewise.
(tdesc_create_reg): Likewise.

(tdesc_find_arch_register): New function.
(tdesc_find_register): Use it.
(tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
tdesc_type on demand; cache generated types in tdesc_arch_reg.

(tdesc_free_type): New function.
(tdesc_free_feature): Call it.

(tdesc_create_vector): New function.
(tdesc_create_union): Likewise.
(tdesc_add_field): Likewise.
(tdesc_record_type): Remove.

(tdesc_type_id): Remove.
(maint_print_c_tdesc_cmd): Update for data structure changes.  Update
generated code to create tdesc_type structures instead of GDB types.

* xml-tdesc.c: Do not include "gdbtypes.h".
(struct tdesc_parsing_data): Change type of current_union to
struct tdesc_type *.
(tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
(tdesc_start_union): Call tdesc_create_union.
(tdesc_start_field): Call tdesc_add_field.
(tdesc_start_vector): Call tdesc_create_vector.
(tdesc_end_union): Remove.
(feature_children): Remove reference to tdesc_end_union.

* features/arm-with-iwmmxt.c: Regenerate.
* features/mips-linux.c: Regenerate.
* features/mips64-linux.c: Regenerate.
* features/rs6000/powerpc-32.c: Regenerate.
* features/rs6000/powerpc-32l.c: Regenerate.
* features/rs6000/powerpc-403.c: Regenerate.
* features/rs6000/powerpc-403gc.c: Regenerate.
* features/rs6000/powerpc-505.c: Regenerate.
* features/rs6000/powerpc-601.c: Regenerate.
* features/rs6000/powerpc-602.c: Regenerate.
* features/rs6000/powerpc-603.c: Regenerate.
* features/rs6000/powerpc-604.c: Regenerate.
* features/rs6000/powerpc-64.c: Regenerate.
* features/rs6000/powerpc-64l.c: Regenerate.
* features/rs6000/powerpc-7400.c: Regenerate.
* features/rs6000/powerpc-750.c: Regenerate.
* features/rs6000/powerpc-860.c: Regenerate.
* features/rs6000/powerpc-altivec32.c: Regenerate.
* features/rs6000/powerpc-altivec32l.c: Regenerate.
* features/rs6000/powerpc-altivec64.c: Regenerate.
* features/rs6000/powerpc-altivec64l.c: Regenerate.
* features/rs6000/powerpc-e500.c: Regenerate.
* features/rs6000/powerpc-e500l.c: Regenerate.
* features/rs6000/powerpc-isa205-32l.c: Regenerate.
* features/rs6000/powerpc-isa205-64l.c: Regenerate.
* features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
* features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
* features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
* features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
* features/rs6000/powerpc-vsx32.c: Regenerate.
* features/rs6000/powerpc-vsx32l.c: Regenerate.
* features/rs6000/powerpc-vsx64.c: Regenerate.
* features/rs6000/powerpc-vsx64l.c: Regenerate.
* features/rs6000/rs6000.c: Regenerate.

15 years ago * gdb.ada/variant_record_packed_array: New testcase.
Joel Brobecker [Tue, 23 Jun 2009 16:46:11 +0000 (16:46 +0000)]
    * gdb.ada/variant_record_packed_array: New testcase.

15 years ago * ada-lang.c (decode_packed_array): If the value is a pointer to
Joel Brobecker [Tue, 23 Jun 2009 16:43:24 +0000 (16:43 +0000)]
    * ada-lang.c (decode_packed_array): If the value is a pointer to
        an array, then use value_ind to dereference it, not ada_value_ind.
        (ada_template_to_fixed_record_type_1): Handle the case where a
        dynamic field is an aligner type.
        (to_fixed_array_type): Add handling for packed array types.
        (ada_get_base_type): Do not follow the XVS type if the type is
        an aligner type.
        (ada_evaluate_subexp): Split a few statements up for clarity
        and debuggability.
        <OP_FUNCALL>: Add handling of the case of a packed array that
        has already been fixed.

15 years ago * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
Joel Brobecker [Tue, 23 Jun 2009 16:37:19 +0000 (16:37 +0000)]
    * ada-lang.c (evaluate_subexp): Delete.  Use the version from eval.c.
        (evaluate_subexp_type): Reimplement using evaluate_subexp.
        * value.h (evaluate_subexp): Add declaration.
        * eval.c (evaluate_subexp): Make non-static.
        * objc-lang.c (print_object_command): Use evaluate_subexp.

15 years ago2009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 23 Jun 2009 16:28:45 +0000 (16:28 +0000)]
2009-06-23  Paul Pluzhnikov  <ppluzhnikov@google.com>

Revert 2009-05-14 breakpoint commit (no longer needed).
* breakpoint.h (breakpoint_re_set_objfile): Remove
* breakpoint.c (breakpoint_re_set_objfile): Likewise
(create_overlay_event_breakpoint): Remove objfile parameter,
iterate over all objfiles.
* objfiles.c (objfile_relocate): Update.
* symfile.c (new_symfile_objfile): Likewise.

15 years agogdb
Tom Tromey [Tue, 23 Jun 2009 16:26:05 +0000 (16:26 +0000)]
gdb
PR gdb/10309:
* c-lang.c (classify_type): Iterate over typedefs.
* c-valprint.c (textual_element_type): Iterate over typedefs.
gdb/testsuite
* gdb.base/charset.exp (test_combination): Regression test.
* gdb.base/charset.c (my_wchar_t): New typedef.
(myvar): New global.
(main): Set myvar.

15 years agoAnd the ChangeLog entry:
Tristan Gingold [Tue, 23 Jun 2009 15:34:17 +0000 (15:34 +0000)]
And the ChangeLog entry:
2009-06-23  Tristan Gingold  <gingold@adacore.com>

* vms.c (vms_get_synthetic_symtab): Remove duplicate definition
of this macro.  Fix indentation.

15 years ago* server.c (process_serial_event): Add support for Z0 and Z1 packet.
Aleksandar Ristovski [Tue, 23 Jun 2009 15:12:44 +0000 (15:12 +0000)]
* server.c (process_serial_event): Add support for Z0 and Z1 packet.
* target.h (target_ops): Comment for *_watchpoint to make it clear
the functions can get types '0' and '1'.

15 years ago * configure.ac: Call AC_CHECK_DECLS using C, not C++.
Ian Lance Taylor [Tue, 23 Jun 2009 14:37:24 +0000 (14:37 +0000)]
* configure.ac: Call AC_CHECK_DECLS using C, not C++.
* configure: Rebuild.

15 years agoFix a nit.
Tristan Gingold [Tue, 23 Jun 2009 13:48:38 +0000 (13:48 +0000)]
Fix a nit.

2009-06-23  Tristan Gingold  <gingold@adacore.com>

* vms.c (vms_get_synthetic_symtab): Remove duplicate definition
of this macro.  Fix indentation.

15 years agoAdd files for ARM auto-IT patch
Nick Clifton [Tue, 23 Jun 2009 07:42:35 +0000 (07:42 +0000)]
Add files for ARM auto-IT patch

15 years ago PR 10147
Ian Lance Taylor [Tue, 23 Jun 2009 07:19:35 +0000 (07:19 +0000)]
PR 10147
* object.cc (Object::section_contents): Don't try to get a view if
the section has length zero.
(Object::handle_gnu_warning_section): If the section is empty, use
the name of the section as the warning.

15 years ago PR 10133
Ian Lance Taylor [Tue, 23 Jun 2009 07:04:10 +0000 (07:04 +0000)]
PR 10133
* stringpool.h (class Stringpool_template): Add optimize_ field.
(Stringpool_template::set_optimize): New function.
* stringpool.cc (Stringpool_template::Stringpool_template):
Initialize optimize_ field.
(Stringpool_template::set_string_offsets): Test local optimize
fild rather than parameter.
* layout.cc (Layout::Layout): Call set_optimize on the section
name stringpool.

15 years ago PR 10030
Ian Lance Taylor [Tue, 23 Jun 2009 06:39:47 +0000 (06:39 +0000)]
PR 10030
* yyscript.y: Parse TARGET.
* script.cc (script_set_target): New function.
* script-c.h (script_set_target): Declare.
* options.cc (General_options::string_to_object_format): Rename
from string_to_object_format in anonymous namespace.  Change
callers.
* options.h (class General_options): Declare
string_to_object_format.

15 years ago * script-sections.cc (Script_sections::create_segments): Don't put
Ian Lance Taylor [Tue, 23 Jun 2009 06:07:50 +0000 (06:07 +0000)]
* script-sections.cc (Script_sections::create_segments): Don't put
program headers in a PT_LOAD segment if -n or -N.

15 years ago*** empty log message ***
gdbadmin [Tue, 23 Jun 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 23 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago PR 10141
Ian Lance Taylor [Mon, 22 Jun 2009 20:23:21 +0000 (20:23 +0000)]
PR 10141
* options.h (class General_options): Add -z lazy and -z now.  Sort
-z options into alphabetical order.
* layout.cc (Layout::finish_dynamic_section): Handle -z now.

15 years agogdb/
Jan Kratochvil [Mon, 22 Jun 2009 19:50:10 +0000 (19:50 +0000)]
gdb/
PR gdb/9988:
* buildsym.c (block_compar): New function.
(end_symtab): Replace the bubble sort by a qsort based code.

15 years ago * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
Aleksandar Ristovski [Mon, 22 Jun 2009 19:33:41 +0000 (19:33 +0000)]
* linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
* proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
* regcache.c (get_regcache): Likewise.
* spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
* win32-low.c (child_fetch_inferior_registers): Remove check for
regno 0.

15 years ago2009-05-07 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Mon, 22 Jun 2009 18:17:01 +0000 (18:17 +0000)]
2009-05-07  Sami Wagiaalla  <swagiaal@redhat.com>

* MAINTAINERS (Write After Approval): Add self.

15 years ago * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
Nick Clifton [Mon, 22 Jun 2009 17:56:02 +0000 (17:56 +0000)]
    * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
        gas/config/atof-ieee.c, gas/config/obj-aout.c,
        gas/config/obj-coff.c, gas/config/obj-ecoff.c,
        gas/config/obj-elf.c, gas/config/obj-som.c, gas/config/tc-alpha.c,
        gas/config/tc-arc.c, gas/config/tc-arm.c, gas/config/tc-cr16.c,
        gas/config/tc-cris.c, gas/config/tc-crx.c, gas/config/tc-d30v.c,
        gas/config/tc-dlx.c, gas/config/tc-hppa.c, gas/config/tc-i370.c,
        gas/config/tc-i386-intel.c, gas/config/tc-i386.c,
        gas/config/tc-i860.c, gas/config/tc-i960.c, gas/config/tc-ia64.c,
        gas/config/tc-iq2000.c, gas/config/tc-m32c.c,
        gas/config/tc-m32r.c, gas/config/tc-m68hc11.c,
        gas/config/tc-m68k.c, gas/config/tc-maxq.c, gas/config/tc-mcore.c,
        gas/config/tc-mep.c, gas/config/tc-mips.c, gas/config/tc-mmix.c,
        gas/config/tc-mn10300.c, gas/config/tc-moxie.c,
        gas/config/tc-ns32k.c, gas/config/tc-pj.c, gas/config/tc-ppc.c,
        gas/config/tc-s390.c, gas/config/tc-score.c,
        gas/config/tc-score7.c, gas/config/tc-sh.c, gas/config/tc-sparc.c,
        gas/config/tc-spu.c, gas/config/tc-tic30.c, gas/config/tc-vax.c,
        gas/config/tc-xtensa.c, gas/config/xtensa-relax.c,
        gas/dw2gencfi.c, gas/dwarf2dbg.c, gas/ehopt.c, gas/expr.c,
        gas/frags.c, gas/input-file.c, gas/read.c, gas/sb.c,
        gas/subsegs.c, gas/symbols.c, gas/write.c: Change the name of the
        gas macro `assert' to `gas_assert'.

15 years ago * spu-tdep.c (spu_get_longjmp_target): New function.
Ulrich Weigand [Mon, 22 Jun 2009 17:14:43 +0000 (17:14 +0000)]
* spu-tdep.c (spu_get_longjmp_target): New function.
(spu_gdbarch_init): Install it.

15 years ago2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 22 Jun 2009 16:03:33 +0000 (16:03 +0000)]
2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>

PR server/10306
* remote.c (getpkt_or_notif_sane_1): Initialize val to -1.

15 years ago * config/tc-arm.c (implicit_it_mode): New enum.
Nick Clifton [Mon, 22 Jun 2009 14:40:28 +0000 (14:40 +0000)]
    * config/tc-arm.c (implicit_it_mode): New enum.
        (implicit_it_mode): New global.
        (it_instruction_type): New enum.
        (arm_parse_it_mode): New function.
        (arm_long_opts): New option added.
        (arm_it): New field.
        (it_state): New enum.
        (now_it): New macro.
        (check_it_blocks_finished): New function.
        (insns[]): Use the IT Thumb opcodes for ARM too.
        (arm_cleanup): Call check_it_blocks_finished.
        (now_it_compatible): New function.
        (conditional_insn): New function.
        (set_it_insn_type): New macro.
        (set_it_insn_type_last): New macro.
        (do_it): Call automatic IT machinery functions.
        (do_t_add_sub): Likewise
        (do_t_arit3): Likewise.
        (do_t_arit3c): Likewise.
        (do_t_blx): Likewise.
        (do_t_branch): Likewise.
        (do_t_bkpt): Likewise.
        (do_t_branch23): Likewise.
        (do_t_bx): Likewise.
        (do_t_bxj): Likewise.
        (do_t_cps): Likewise.
        (do_t_cpsi): Likewise.
        (do_t_cbz): Likewise.
        (do_t_it): Likewise.
        (encode_thumb2_ldmstm): Likewise.
        (do_t_ldst): Likewise.
        (do_t_mov_cmp): Likewise.
        (do_t_mvn_tst): Likewise.
        (do_t_mul): Likewise.
        (do_t_neg): Likewise.
        (do_t_setend): Likewise.
        (do_t_shift): Likewise.
        (do_t_tb): Likewise.
        (output_it_inst): New function.
        (new_automatic_it_block): New function.
        (close_automatic_it_block): New function.
        (now_it_add_mask): New function.
        (it_fsm_pre_encode): New function.
        (handle_it_state): New function.
        (it_fsm_post_encode): New function.
        (force_automatic_it_block_close): New function.
        (in_it_block): New function.
        (md_assemble): Call automatic IT block machinery functions.
        (arm_frob_label): Likewise.
        (arm_opts): New element.
        * config/tc-arm.h (it_state): New enum.
        (current_it): New struct.
        (arm_segment_info_type): New member added.
        * doc/c-arm.texi: New option -mimplicit-it documented.

        * gas/arm/arm-it-auto.d: New test.
        * gas/arm/arm-it-auto.s: New file.
        * gas/arm/arm-it-auto-2.d: New test case.
        * gas/arm/arm-it-auto-2.s: New file.
        * gas/arm/arm-it-auto-3.d: New test case.
        * gas/arm/arm-it-auto-3.s: New file.
        * gas/arm/arm-it-bad.d: New test case.
        * gas/arm/arm-it-bad.l: New file.
        * gas/arm/arm-it-bad.s: New file.
        * gas/arm/arm-it-bad-2.d: New test case.
        * gas/arm/arm-it-bad-2.l: New file.
        * gas/arm/arm-it-bad-2.s: New file.
        * gas/arm/arm-it-bad-3.d: New test case.
        * gas/arm/arm-it-bad-3.l: New file.
        * gas/arm/arm-it-bad-3.s: New file.
        * gas/arm/thumb2_it_auto.d: New test.
        * gas/arm/thumb2_it_bad.l: Error message updated.
        * gas/arm/thumb2_it_bad_auto.d: New test.
        * gas/arm/thumb2_it.d: Comment added.
        * gas/arm/thumb2_it_bad.d: Comment added.

15 years ago * po/fi.po: Updated Finish translation.
Nick Clifton [Mon, 22 Jun 2009 11:32:21 +0000 (11:32 +0000)]
    * po/fi.po: Updated Finish translation.

15 years ago2009-06-22 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Mon, 22 Jun 2009 10:55:33 +0000 (10:55 +0000)]
2009-06-22  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
destination for defined dynamic symbols when deciding whether to
insert a stub or not.
(allocate_dynrelocs): Make sure functions are not marked as Thumb
when actually accessed through a PLT, even when generating a
shared lib.

ld/testsuite:
* ld-arm/farcall-mixed-app.s: Add new references to check more
modes switching.
* ld-arm/farcall-mixed-lib1.s: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Update expected result.
* farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.

15 years ago * ld-pe/pe-run.exp (proc test_direct_link_dll): Fix incorrect
Dave Korn [Mon, 22 Jun 2009 09:34:52 +0000 (09:34 +0000)]
* ld-pe/pe-run.exp (proc test_direct_link_dll):  Fix incorrect
line-wrapping.

15 years ago * readelf.c (target_specific_reloc_handling): New function:
Nick Clifton [Mon, 22 Jun 2009 08:46:13 +0000 (08:46 +0000)]
    * readelf.c (target_specific_reloc_handling): New function:
        Processes relocs in a target specific manner.
        (debug_apply_relocations): Use the new function.
        * dwarf.c (display_debug_loc): End the dump with a blank line.
        (struct debug_display): Enable reloc processing for .debug_aranges
        and .debug_loc sections.

15 years ago(committed as obvious)
Tristan Gingold [Mon, 22 Jun 2009 08:24:29 +0000 (08:24 +0000)]
(committed as obvious)
2009-06-22  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
instead of "%p".

15 years ago2009-06-22 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 22 Jun 2009 08:14:52 +0000 (08:14 +0000)]
2009-06-22  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
the relocs array.

15 years ago * elfcpp.h (SHN_X86_64_LCOMMON): Define enum constant.
Ian Lance Taylor [Mon, 22 Jun 2009 06:56:05 +0000 (06:56 +0000)]
* elfcpp.h (SHN_X86_64_LCOMMON): Define enum constant.
(enum SHT): Add SHT_X86_64_UNWIND.
(enum SHF): Add SHT_X86_64_LARGE.