OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years agofix typo in previous entry
Doug Evans [Thu, 29 Jan 2009 00:37:12 +0000 (00:37 +0000)]
fix typo in previous entry

15 years ago * opcode/i386.h: Add multiple inclusion protection.
Doug Evans [Thu, 29 Jan 2009 00:29:53 +0000 (00:29 +0000)]
* opcode/i386.h: Add multiple inclusion protection.
(EAX_REG_NUM,ECX_REG_NUM,EDX_REGNUM,EBX_REG_NUM,ESI_REG_NUM)
(EDI_REG_NUM): New macros.
(MODRM_MOD_FIELD,MODRM_REG_FIELD,MODRM_RM_FIELD): New macros.
(SIB_SCALE_FIELD,SIB_INDEX_FIELD,SIB_BASE_FIELD): New macros.
(REG_PREFIX_P): New macro.

* amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
(amd64_displaced_step_fixup): Declare.
* amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
(amd64_arch_regmap): Move out of amd64_analyze_stack_align
and make static global.
(amd64_arch_regmap_len): New static global.
(amd64_arch_reg_to_regnum): New function.
(struct amd64_insn): New struct.
(struct displaced_step_closure): New struct.
(onebyte_has_modrm,twobyte_has_modrm): New static globals.
(rex_prefix_p,skip_prefixes)
(amd64_insn_length_fprintf,amd64_insn_length_init_dis)
(amd64_insn_length,amd64_get_unused_input_int_reg)
(amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
(amd64_displaced_step_copy_insn)
(amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
(amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
(amd64_displaced_step_fixup): New functions.
* amd64-linux-tdep.c: #include arch-utils.h.
(amd64_linux_init_abi): Install displaced stepping support.

* gdb.arch/amd64-disp-step.S: New file.
* gdb.arch/amd64-disp-step.exp: New file.
* gdb.arch/i386-disp-step.S: New file.
* gdb.arch/i386-disp-step.exp: New file.

15 years agodaily update
Alan Modra [Thu, 29 Jan 2009 00:00:09 +0000 (00:00 +0000)]
daily update

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

15 years ago * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
Catherine Moore [Wed, 28 Jan 2009 16:35:12 +0000 (16:35 +0000)]
    * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
        SEC_LOAD for dynamic relocation sections.

15 years ago2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
Jerome Guitton [Wed, 28 Jan 2009 15:04:30 +0000 (15:04 +0000)]
2009-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
    Jerome Guitton  <guitton@adacore.com>

* gdb.texinfo (Startup): Document --with-system-gdbinit.
(System-wide configuration): New section.

15 years ago2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
Jerome Guitton [Wed, 28 Jan 2009 15:00:59 +0000 (15:00 +0000)]
2009-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
    Jerome Guitton  <guitton@adacore.com>

* configure, config.in: Regenerated.
* configure.ac: Add --with-system-gdbinit.
* main.c (get_init_files): New.
(captured_main): Use get_init_files.  Load system gdbinit before
$HOME/.gdbinit.
(print_gdb_help): Print location of init files.

15 years ago* mips-opc.c (suxc1): Add the flag of FP_D.
Nick Clifton [Wed, 28 Jan 2009 08:45:47 +0000 (08:45 +0000)]
* mips-opc.c (suxc1): Add the flag of FP_D.

15 years ago * corefile.c (generic_search): Delete disabled code.
Pedro Alves [Wed, 28 Jan 2009 00:09:49 +0000 (00:09 +0000)]
* corefile.c (generic_search): Delete disabled code.
* gdbcore.h (generic_search): Delete declaration.

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

15 years agodaily update
Alan Modra [Wed, 28 Jan 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
Hans-Peter Nilsson [Tue, 27 Jan 2009 22:28:21 +0000 (22:28 +0000)]
* elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
(info)->tls_size, not elf_hash_table (info)->tls_sec->size for
the size of local TLS data.

15 years ago* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
Andreas Schwab [Tue, 27 Jan 2009 16:37:10 +0000 (16:37 +0000)]
* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
architectures in the archive.

15 years ago * gdb.base/find.exp: Set newline variable
Pierre Muller [Tue, 27 Jan 2009 08:22:22 +0000 (08:22 +0000)]
* gdb.base/find.exp: Set newline variable
using quotes instead of braces to fix cygwin failures.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
Hans-Peter Nilsson [Tue, 27 Jan 2009 07:06:35 +0000 (07:06 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
<R_CRIS_32_DTPREL>: Correct relocation value.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
Hans-Peter Nilsson [Tue, 27 Jan 2009 06:07:54 +0000 (06:07 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
<R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
symbols with non-default visibility.

15 years ago*** empty log message ***
gdbadmin [Tue, 27 Jan 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

15 years ago * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
Pedro Alves [Mon, 26 Jan 2009 22:34:54 +0000 (22:34 +0000)]
* linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
parent to the child.
* inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
* inf-ptrace.c (inf_ptrace_follow_fork): Likewise.  Use
remove_breakpoints to remove breakpoints from the parent.

15 years agoAdd forgotten PR tags:
Pedro Alves [Mon, 26 Jan 2009 19:15:24 +0000 (19:15 +0000)]
Add forgotten PR tags:

PR backtrace/9458, PR backtrace/8864

15 years ago * frame.c (create_new_frame): Update the frame's cached PC before
Pedro Alves [Mon, 26 Jan 2009 19:09:58 +0000 (19:09 +0000)]
* frame.c (create_new_frame): Update the frame's cached PC before
finding its unwinder.  Use frame_id_build to build the new frame's
id.
* stack.c (parse_frame_specification_1): Correct setting ``addrs''
array values from the ``args'' array values.

15 years ago * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
Pedro Alves [Mon, 26 Jan 2009 18:57:43 +0000 (18:57 +0000)]
* gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
(create_array_type, create_set_type, init_flags_type)
(copy_type_recursive): Replace pairs of calls to XALLOC and memset
with a call to XZALLOC or XCALLOC, and pairs of calls to
obstack_alloc and memset with a call to OBSTACK_ZALLOC.

15 years agogdb/
Pedro Alves [Mon, 26 Jan 2009 16:24:26 +0000 (16:24 +0000)]
gdb/
Add "maint set|show internal-error|internal-warning quit|corefile
ask|yes|no" commands.

PR gdb/7580:
* utils.c (internal_problem_ask, internal_problem_yes)
(internal_problem_no, internal_problem_modes): New.
(struct internal_problem): Remove FIXME.  Make should_quit and
should_dump_core types to char *.
(internal_vproblem, internal_error_problem)
(internal_warning_problem): Adjust.
(set_internal_problem_cmd, show_internal_problem_cmd): New dummy
functions.
(add_internal_problem_command): New.
(_initialize_utils): New.

gdb/doc/
PR gdb/7580:
* gdb.texinfo (Maintenance Commands): Document "maint set|show
internal-error|internal-warning quit|corefile ask|yes|no".

15 years agogdb/gdbserver/
Pedro Alves [Mon, 26 Jan 2009 16:16:48 +0000 (16:16 +0000)]
gdb/gdbserver/
* server.c (gdbserver_usage): Mention --remote-debug.
(main): Accept '--remote-debug' switch.

gdb/doc/
* gdb.texinfo (Using the `gdbserver' Program): Document
--remote-debug.

15 years ago * ld-powerpc/powerpc.exp: Add vxworks relax testcase.
Nathan Sidwell [Mon, 26 Jan 2009 15:27:03 +0000 (15:27 +0000)]
* ld-powerpc/powerpc.exp: Add vxworks relax testcase.
* ld-powerpc/vxworks-relax.s, ld-powerpc/vxworks-relax.rd: New.
* ld-powerpc/vxworks1.ld: Add .pad and .far input sections.
* ld-powerpc/vxworks1.rd: Correct regexp for undefined symbols.

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

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

15 years ago * infcmd.c (program_info): Use paddress instead of casting stop_pc
Pedro Alves [Sun, 25 Jan 2009 23:35:50 +0000 (23:35 +0000)]
* infcmd.c (program_info): Use paddress instead of casting stop_pc
to unsigned long.

15 years ago * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
Dave Anglin [Sun, 25 Jan 2009 23:05:20 +0000 (23:05 +0000)]
* elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
and R_PARISC_PCREL12F relocations.

15 years agodaily update
Alan Modra [Sun, 25 Jan 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 25 Jan 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * infrun.c (normal_stop): Don't call
Pedro Alves [Sat, 24 Jan 2009 19:17:24 +0000 (19:17 +0000)]
* infrun.c (normal_stop): Don't call
deprecated_update_frame_pc_hack.
* frame.c (deprecated_update_frame_pc_hack)
(deprecated_update_frame_base_hack): Delete, and ...
(create_new_frame): ... inline here.
* frame.h (deprecated_update_frame_pc_hack)
(deprecated_update_frame_base_hack): Delete declarations.

15 years ago PR 6022
Alan Modra [Sat, 24 Jan 2009 03:10:42 +0000 (03:10 +0000)]
PR 6022
* elflink.c (find_version_for_sym): New function split out from,
but without export_dynamic test, ..
(_bfd_elf_link_assign_sym_version): ..here.
(_bfd_elf_export_symbol): Use it.

15 years agodaily update
Alan Modra [Sat, 24 Jan 2009 00:00:06 +0000 (00:00 +0000)]
daily update

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

15 years ago * gdb.texinfo: Add nexti to list of commands that support
Doug Evans [Fri, 23 Jan 2009 21:43:56 +0000 (21:43 +0000)]
* gdb.texinfo: Add nexti to list of commands that support
background execution.

15 years ago2009-01-23 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 23 Jan 2009 18:47:42 +0000 (18:47 +0000)]
2009-01-23  Pedro Alves  <pedro@codesourcery.com>

* cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
* cli/cli-setshow.c (do_setshow_command): Handle it.
* command.h (enum var_types): Add var_zuinteger.
(add_setshow_zuinteger_cmd): Declare.

* valprint.c (_initialize_valprint): Change the set input-radix
and set output-radix commands to zuinteger type.

2009-01-23  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/radix.exp: Add tests to ensure that that set
input-radix 0 and set output-radix 0 are really rejected.

15 years ago * gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: Update
Pedro Alves [Fri, 23 Jan 2009 16:01:45 +0000 (16:01 +0000)]
* gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: Update
copyright years.

15 years ago2009-01-23 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 23 Jan 2009 15:47:02 +0000 (15:47 +0000)]
2009-01-23  Pedro Alves  <pedro@codesourcery.com>

PR gdb/9664:
* infrun.c (normal_stop): Tag threads as stopped, and run the
hook-stop before printing the stack frame.

2009-01-23  Pedro Alves  <pedro@codesourcery.com>

PR gdb/9664:
* gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: New.

15 years ago * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
Alan Modra [Fri, 23 Jan 2009 12:15:27 +0000 (12:15 +0000)]
* elf-bfd.h (struct elf_assign_sym_version_info): Delete.
(struct elf_info_failed, struct elf_find_verdep_info): Move to..
* elflink.c: ..here, somewhat modified.
* elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
_bfd_elf_link_find_version_dependencies,
_bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
_bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
_bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
declare..
* elflink.c: ..and make static here.
(_bfd_elf_link_find_version_dependencies): Adjust for removal
of output_bfd from struct elf_find_verdep_info.
(_bfd_elf_link_assign_sym_version): Similarly adjust to use
struct elf_info_failed.
(bfd_elf_size_dynamic_sections): Adjust.

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

15 years agodaily update
Alan Modra [Fri, 23 Jan 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago2009-01-22 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 22 Jan 2009 22:50:37 +0000 (22:50 +0000)]
2009-01-22  Pedro Alves  <pedro@codesourcery.com>

PR c++/9631:
* gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
vbasetype.

2009-01-22  Pedro Alves  <pedro@codesourcery.com>

PR c++/9631:
* gdb.cp/pr9631.cc, gdb.cp/pr9631.exp: New.

15 years ago2009-01-22 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Thu, 22 Jan 2009 16:01:10 +0000 (16:01 +0000)]
2009-01-22  Pierre Muller  <muller@ics.u-strasbg.fr>

* gdb.server/file-transfer.exp: Use EXEEXT variable for
binfile definition to fix Windows OS failure.

15 years ago PR 6832
Alan Modra [Thu, 22 Jan 2009 08:54:20 +0000 (08:54 +0000)]
PR 6832
* dwarf2.c (find_line): Don't update stash->sec_info_ptr until
after comp_unit_find_line call.

15 years ago2009-01-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 22 Jan 2009 00:08:29 +0000 (00:08 +0000)]
2009-01-21  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add ARM license.

15 years ago*** empty log message ***
gdbadmin [Thu, 22 Jan 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

15 years ago PR 9769
Nick Clifton [Wed, 21 Jan 2009 11:58:05 +0000 (11:58 +0000)]
    PR 9769
        * vmsutil.c (vms_file_stats_name): Remove use of unsupported
        tm_gmtoff field in struct tm.

15 years agobfd/
Alan Modra [Wed, 21 Jan 2009 02:27:12 +0000 (02:27 +0000)]
bfd/
* elf32-spu.h (struct spu_elf_params): Add non_ia_text.
* elf32-spu.c (mark_overlay_section): Only include .text.ia.*
sections in soft-icache lines unless non_ia_text.  Don't add
rodata if doing so would exceed line size.
ld/
* emultempl/spuelf.em (params): Init new field.
(OPTION_SPU_NON_IA_TEXT): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.

15 years ago * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
Kazu Hirata [Wed, 21 Jan 2009 01:20:14 +0000 (01:20 +0000)]
* gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
unsigned long.

15 years agodaily update
Alan Modra [Wed, 21 Jan 2009 00:00:10 +0000 (00:00 +0000)]
daily update

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

15 years agoFix changelog year typo.
Daniel Jacobowitz [Tue, 20 Jan 2009 15:35:54 +0000 (15:35 +0000)]
Fix changelog year typo.

15 years ago PR gdb/9346
Daniel Jacobowitz [Tue, 20 Jan 2009 15:33:09 +0000 (15:33 +0000)]
PR gdb/9346
* infcmd.c (signal_command): Do not specify a resume PC.

testsuite/
PR gdb/9346
* gdb.base/interrupt.c (sigint_handler): New.
(main): Install a SIGINT handler if SIGNALS is defined.  Exit
on error.
* gdb.base/interrupt.exp: Define SIGNALS unless gdb,nosignals.
Test "signal SIGINT".

15 years agoRegenerate for copyright date update.
Alan Modra [Tue, 20 Jan 2009 07:22:29 +0000 (07:22 +0000)]
Regenerate for copyright date update.

15 years ago*** empty log message ***
gdbadmin [Tue, 20 Jan 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 20 Jan 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * dummy-frame.c (dummy_frame): Replace regcache member with
Doug Evans [Mon, 19 Jan 2009 19:04:59 +0000 (19:04 +0000)]
* dummy-frame.c (dummy_frame): Replace regcache member with
caller_state.
(dummy_frame_push): Replace caller_regcache arg with caller_state.
All callers updated.
(remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
(dummy_frame_pop): Rewrite.  Verify requested frame is in the
dummy frame stack.  Restore program state.
(cleanup_dummy_frames): Rewrite.
(dummy_frame_sniffer): Update.  Make static.
* dummy-frame.h (regcache,frame_info): Delete forward decls.
(inferior_thread_state): New forward decl.
(dummy_frame_push): Update prototype.
* frame.c (frame_pop): dummy_frame_pop now does all the work for
DUMMY_FRAMEs.
* infcall.c (breakpoint_auto_delete_contents): Delete.
(get_function_name,run_inferior_call): New fns.
(call_function_by_hand): Simplify by moving some code to
get_function_name, run_inferior_call.  Inferior function call wrapped
in TRY_CATCH so there's less need for cleanups and all exits from
proceed are handled similarily.  Detect program exit.
Detect program stopping in a different thread.
Make error messages more consistent.
* inferior.h (inferior_thread_state): Declare (opaque type).
(save_inferior_thread_state,restore_inferior_thread_state,
make_cleanup_restore_inferior_thread_state,
discard_inferior_thread_state, get_inferior_thread_state_regcache):
Declare.
(save_inferior_status): Update prototype.
* infrun.c: (normal_stop): When stopped for the completion of an
inferior function call, verify the expected stack frame kind.
(inferior_thread_state): New struct.
(save_inferior_thread_state,restore_inferior_thread_state,
do_restore_inferior_thread_state_cleanup,
make_cleanup_restore_inferior_thread_state,
discard_inferior_thread_state,
get_inferior_thread_state_regcache): New functions.
(inferior_status): Move stop_signal, stop_pc, registers to
inferior_thread_state.  Remove restore_stack_info.
(save_inferior_status): Remove arg restore_stack_info.
All callers updated.  Remove saving of state now saved by
save_inferior_thread_state.
(restore_inferior_status): Remove restoration of state now done by
restore_inferior_thread_state.
(discard_inferior_status): Remove freeing of registers, now done by
discard_inferior_thread_state.

* gdb.base/break.exp: Update expected gdb output.
* gdb.base/sepdebug.exp: Ditto.
* gdb.mi/mi-syn-frame.exp: Ditto.
* gdb.mi/mi2-syn-frame.exp: Ditto.

* gdb.base/call-signal-resume.exp: New file.
* gdb.base/call-signals.c: New file.
* gdb.base/unwindonsignal.exp: New file.
* gdb.base/unwindonsignal.c: New file.
* gdb.threads/interrupted-hand-call.exp: New file.
* gdb.threads/interrupted-hand-call.c: New file.
* gdb.threads/thread-unwindonsignal.exp: New file.

15 years ago * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
Hans-Peter Nilsson [Mon, 19 Jan 2009 17:32:59 +0000 (17:32 +0000)]
* elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
types than bfd_link_hash_indirect, before early return, call
_bfd_elf_link_hash_copy_indirect.

15 years ago2009-01-19 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Mon, 19 Jan 2009 12:14:04 +0000 (12:14 +0000)]
2009-01-19  Andrew Stubbs  <ams@codesourcery.com>

bfd/
* elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
* elf-bfd.h (elf_backend_data): Add obj_attrs_order.
* elf32-arm.c (elf32_arm_obj_attrs_order): New function.
(elf_backend_obj_attrs_order): New define.
* elfxx-target.h (elf_backend_obj_attrs_order): New define.
(elfNN_bed): Add elf_backend_obj_attrs_order.

gas/testsuite/
* gas/arm/attr-order.d: New file.
* gas/arm/attr-order.s: New file.

15 years ago2009-01-19 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Mon, 19 Jan 2009 11:55:35 +0000 (11:55 +0000)]
2009-01-19  Andrew Stubbs  <ams@codesourcery.com>

bfd/
* elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
(obj_attr_size): Likewise.
(write_obj_attribute): Likewise.
(_bfd_elf_copy_obj_attributes): Likewise.
(_bfd_elf_parse_attributes): Likewise.
* elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
(ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
(ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
(ATTR_TYPE_HAS_NO_DEFAULT): New define.
* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
with macros.

15 years ago2009-01-19 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Mon, 19 Jan 2009 11:50:30 +0000 (11:50 +0000)]
2009-01-19  Andrew Stubbs  <ams@codesourcery.com>

bfd/
* elf-attrs.c (is_default_attr): Support defaultless attributes.
(bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
(bfd_elf_add_obj_attr_string): Likewise.
(bfd_elf_add_obj_attr_int_string): Likewise.
(_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
* elf-bfd.h (struct obj_attribute): Document new flag bit.
* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
Tag_nodefaults has no default value.
(elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
comment to reflect the new state.

gas/
* read.c (s_vendor_attribute): Allow for unknown flag bits in type.

15 years ago PR 9695
Alan Modra [Mon, 19 Jan 2009 06:11:21 +0000 (06:11 +0000)]
PR 9695
* pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
(some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
(adjust_z_magix): Delete dead code handling QMAGIC.

15 years ago * regcache.c (new_register_cache): No need to check result of xcalloc.
Doug Evans [Mon, 19 Jan 2009 00:16:46 +0000 (00:16 +0000)]
* regcache.c (new_register_cache): No need to check result of xcalloc.
* server.c (handle_search_memory): Back out calls to xmalloc,
result is checked and error is returned to user upon failure.
(handle_query): Ditto.  Add more checks for result of malloc.
(handle_v_cont): Check result of malloc, report error back to
user upon failure.
(handle_v_run): Ditto.  Call freeargv.
* server.h (freeargv): Declare.
* utils.c (freeargv): New fn.

15 years agodaily update
Alan Modra [Mon, 19 Jan 2009 00:00:05 +0000 (00:00 +0000)]
daily update

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

15 years ago * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
Dave Korn [Sun, 18 Jan 2009 23:12:15 +0000 (23:12 +0000)]
* configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
as it no longer shares libiberty object files.
* configure:  Regenerated.

15 years ago * sim/cris/asm/opterr5.ms, sim/cris/asm/opterr4.ms,
Hans-Peter Nilsson [Sun, 18 Jan 2009 22:17:46 +0000 (22:17 +0000)]
* sim/cris/asm/opterr5.ms, sim/cris/asm/opterr4.ms,
sim/cris/asm/opterr3.ms, sim/cris/asm/bare3.ms: New tests.
* lib/sim-defs.exp (run_sim_test): New option progopts.

15 years ago * cris/sim-if.c: Include errno.h.
Hans-Peter Nilsson [Sun, 18 Jan 2009 22:17:03 +0000 (22:17 +0000)]
* cris/sim-if.c: Include errno.h.
(cris_start_address, cris_program_offset): New variables.
(OPTION_CRIS_PROGRAM_OFFSET, OPTION_CRIS_STARTADDR): New option
enums.
(cris_options): New options --cris-program-offset and
--cris-start-address.
(cris_option_handler): Handle new options.
(cris_program_offset_write, cris_set_section_offset_iterator)
(cris_offset_sections, cris_offset_sections): New functions.
(sim_load): Use cris_program_offset_write as function argument to
cris_load_elf_file, not sim_write.
(struct offsetinfo): New struct.
(cris_handle_interpreter): Fix typo in comment.
(sim_open): Call cris_offset_sections as soon as the bfd of the
infile is available.  Gate bfd validity checks on abfd non-NULL.
(sim_create_inferior): Let cris_start_address when != -1 override
other start-address choices.

15 years ago * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
Pedro Alves [Sun, 18 Jan 2009 21:28:34 +0000 (21:28 +0000)]
* tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
at a time, times NUM_TO_SCROLL.
* tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
fetch the selected frame if there is no stack.

15 years ago PR gdb/9747:
Pedro Alves [Sun, 18 Jan 2009 17:42:15 +0000 (17:42 +0000)]
PR gdb/9747:
* gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
Declare.
* thread.c (finish_thread_state, finish_thread_state_cleanup): New.
* infrun.c (wait_for_inferior, fetch_inferior_event): If an error
is thrown while handling an event, finish the thread state.
(normal_stop): Use finish_thread_state cleanup.
* infcmd.c (run_command_1): If an error is thrown while starting
the inferior, finish the thread state.

15 years ago * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
Pedro Alves [Sun, 18 Jan 2009 17:05:47 +0000 (17:05 +0000)]
* tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
skip breakpoints without a location (pending breakpoints).

15 years ago * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
Pedro Alves [Sun, 18 Jan 2009 01:24:10 +0000 (01:24 +0000)]
* hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.

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

15 years agodaily update
Alan Modra [Sun, 18 Jan 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago(thread_command): Move call to annotate_thread_changed
Nick Roberts [Sat, 17 Jan 2009 20:39:52 +0000 (20:39 +0000)]
(thread_command): Move call to annotate_thread_changed
to...
(do_captured_thread_select): ... here, to avoid printing an
annotation if the thread change generates an exception.

15 years ago*** empty log message ***
Nick Roberts [Sat, 17 Jan 2009 20:39:33 +0000 (20:39 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 17 Jan 2009 00:00:04 +0000 (00:00 +0000)]
daily update

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

15 years ago2009-01-16 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 16 Jan 2009 15:09:19 +0000 (15:09 +0000)]
2009-01-16  Kai Tietz  <kai.tietz@onevision.com>

* coffcode.h (styp_to_sec_flags): Correct interpretation of
IMAGE_SCN_MEM_DISCARDABLE.

15 years agoformatting
Alan Modra [Fri, 16 Jan 2009 08:07:43 +0000 (08:07 +0000)]
formatting

15 years ago * Makefile.def (configure-opcodes): Depend on configure-libiberty.
Alan Modra [Fri, 16 Jan 2009 08:06:15 +0000 (08:06 +0000)]
* Makefile.def (configure-opcodes): Depend on configure-libiberty.
* Makefile.def (all-opcodes): Depend on all-libiberty.
* Makefile.in: Regenerate.

15 years agobfd/
Alan Modra [Fri, 16 Jan 2009 08:02:22 +0000 (08:02 +0000)]
bfd/
* Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
* configure.in (commonbfdlib): Delete.
(SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
(SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
is available, not just for linux.
* po/SRC-POTFILES.in: Regenerate.
* Makefile.in: Regenerate.
* configure: Regenerate.
opcodes/
* configure.in (commonbfdlib): Delete.
(SHARED_LIBADD): Add pic libiberty if such is available.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
binutils/
* configure.in (commonbfdlib): Delete.
* configure: Regenerate.
gas/
* configure.in (commonbfdlib): Delete.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.

15 years ago * NEWS: Document x86_64/MinGW as a new native configuration.
Joel Brobecker [Fri, 16 Jan 2009 04:31:09 +0000 (04:31 +0000)]
    * NEWS: Document x86_64/MinGW as a new native configuration.

15 years ago * NEWS: Move the documentation of "info os processes" to
Joel Brobecker [Fri, 16 Jan 2009 04:28:24 +0000 (04:28 +0000)]
    * NEWS: Move the documentation of "info os processes" to
        the appropriate section (documenting the new commands).

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

15 years agodaily update
Alan Modra [Fri, 16 Jan 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agofix another cut-n-paste error
Doug Evans [Thu, 15 Jan 2009 22:18:54 +0000 (22:18 +0000)]
fix another cut-n-paste error

15 years agofix cut-n-paste errors in previous checkin
Doug Evans [Thu, 15 Jan 2009 22:10:05 +0000 (22:10 +0000)]
fix cut-n-paste errors in previous checkin

15 years ago * target.h (target_signal_to_string): Make return type const char *.
Doug Evans [Thu, 15 Jan 2009 22:07:18 +0000 (22:07 +0000)]
* target.h (target_signal_to_string): Make return type const char *.
(target_signal_to_name): Ditto.
(target_signal_from_name): Make arg const char *.
* thread-db.c (thread_db_err_str): Make return type const char *.
* utils.c (perror_with_name): Make arg const char *.
* infrun.c (sig_print_info): Update.

* signals/signals.c (signals): Make array and struct members const.
(target_signal_to_string): Make return type const char *.
(target_signal_to_name): Ditto.
(target_signal_from_name): Make arg const char *.

* gdbserver/gdbreplay.c (perror_with_name): Make arg const char *.
* gdbserver/server.h (target_signal_to_name): Make return type
const char *.

15 years ago2009-01-15 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Thu, 15 Jan 2009 18:00:48 +0000 (18:00 +0000)]
2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
    Julian Brown   <julian@codesourcery.com>

bfd/
* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
ARM attributes in ABI 2.07.
* elf32-arm.c (get_secondary_compatible_arch): New function.
(set_secondary_compatible_arch): New function.
(tag_cpu_arch_combine): New function.
(elf32_arm_copy_one_eabi_other_attribute): Delete function.
(elf32_arm_copy_eabi_other_attribute_list): Delete function.
(elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
make it fit with order_01243.
Add support for Tag_also_compatible_with,
Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
Tag_VFP_arch and Tag_ABI_FP_16bit_format.
Rework the way unknown attributes are handled.
Defer errors until all attributes have been processed.

gas/
* config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.

include/elf/
* arm.h (TAG_CPU_ARCH_V6_M, TAG_CPU_ARCH_V6S_M): New defines.
(MAX_TAG_CPU_ARCH, TAG_CPU_ARCH_V4T_PLUS_V6_M): New defines.
(Tag_NEON_arch): Rename to Tag_Advanced_SIMD_arch to match ARM ABI
version 2.07.
(Tag_undefined39, Tag_nodefaults): New enum values.
(Tag_also_compatible_with, Tag_T2EE_use): Likewise.
(Tag_conformance, Tag_Virtualization_use): Likewise.
(Tag_undefined69, Tag_MPextension_use): Likewise.

15 years ago * solist.h (struct target_so_ops): New member bfd_open.
Ulrich Weigand [Thu, 15 Jan 2009 16:35:21 +0000 (16:35 +0000)]
* solist.h (struct target_so_ops): New member bfd_open.
(solib_find): Add prototype.
(solib_bfd_fopen): Add prototype.
* solib.c (solib_find, solib_bfd_fopen): New functions, extracted
from solib_bfd_open.
(solib_bfd_open): Use ops->bfd_open override if present.  Call
solib_find and solib_bfd_open otherwise.

* objfiles.h (OBJF_KEEPBFD): New define.
* objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
objfile flag is set.
* solib.c (symbol_add_stub): Do not allocate second BFD for
shared library; use OBJF_KEEPBFD flag on solib objfile.

15 years ago * frame.c (get_frame_arch): Abort if called with NULL this_frame.
Ulrich Weigand [Thu, 15 Jan 2009 15:38:57 +0000 (15:38 +0000)]
* frame.c (get_frame_arch): Abort if called with NULL this_frame.

15 years ago * value.h (address_of_variable): Add prototype.
Ulrich Weigand [Thu, 15 Jan 2009 15:38:06 +0000 (15:38 +0000)]
* value.h (address_of_variable): Add prototype.
(locate_var_value): Remove prototype.

* findvar.c (read_var_value): Do not attempt to default frame
to selected frame.
(locate_var_value): Remove function.
* valops.c (value_of_variable): Retrieve selected frame for
symbols that require a frame when called with NULL block.
* valops.c (address_of_variable): New function.

* eval.c (evaluate_subexp_for_address): Call address_of_variable
instead of calling locate_var_value.
(evaluate_subexp_with_coercion): Likewise.

15 years agooops - forgot to commit with the previous delta
Nick Clifton [Thu, 15 Jan 2009 13:30:00 +0000 (13:30 +0000)]
oops - forgot to commit with the previous delta

15 years ago2009-01-15 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Thu, 15 Jan 2009 13:03:05 +0000 (13:03 +0000)]
2009-01-15  Andrew Stubbs  <ams@codesourcery.com>

bfd/
* elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
bfd_elf_add_obj_attr_int_string.
Read Tag_compatibility from its new location in the attribute array,
rather than the attribute list.
(_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
bfd_elf_add_obj_attr_int_string.
(_bfd_elf_parse_attributes): Likewise.
(_bfd_elf_merge_object_attributes): There's now only one
Tag_compatibility, and it's in the array, not the list.
* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
Tag_compatibility.
(bfd_elf_add_obj_attr_compat): Rename to
bfd_elf_add_obj_attr_int_string.
(bfd_elf_add_proc_attr_compat): Rename to
bfd_elf_add_proc_attr_int_string.
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
Tag_compatibility.

gas/
* read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
bfd_elf_add_obj_attr_int_string.

15 years ago * configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
Nick Clifton [Thu, 15 Jan 2009 12:55:46 +0000 (12:55 +0000)]
    * configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
        * configure: Regenerate.

15 years ago * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO,
Nick Clifton [Thu, 15 Jan 2009 12:42:51 +0000 (12:42 +0000)]
    * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO,
        EF_IA_64_ARCHVER_1): New macros. Minor reformatting.

        * bfd/Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
        (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
        (vmsutil.lo): Add dependency rule
        * bfd/Makefile.in: Regenerate
        * bfd/config.bfd (ia64*-*-*vms*): Add case.
        * bfd/configure.in (bfd_elf64_ia64_vms_vec): Add case.
        * bfd/configure: Regenerate
        * bfd/vmsutil.[ch]: New files
        * bfd/elf-bfd.h (struct bfd_elf_special_section): Change type of
        attr to bfd_vma.
        * bfd/elfxx-ia64.c (elfNN_vms_post_process_headers,
        elfNN_vms_section_processing, elfNN_vms_final_write_processing,
        elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
        elfNN_vms_object_p): New functions
        * bfd/targets.c (bfd_elf64_ia64_vms_vec): New target.

        * gas/configure.tgt(ia64-*-*vms*): New target.
        * gas/dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
        * gas/tc.h (md_number_to_chars): Declare iff undefined.
        * gas/config/obj-elf.c (obj_elf_change_section): Change type of
        arg attr to bfd_vma.
        (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
        variables attr, md_attr to bfd_vma.
        (obj_elf_section_word): Likewise.
        (obj_elf_section): Change type of variable attr to bfd_vma
        * gas/config/obj-elf.h (obj_elf_change_section): Change type of
        arg attr to bfd_vma
        * gas/config/tc-ia64.c (bfdver.h,time.h): Include.
        (ia64_elf_section_letter): Now returns a bfd_vma.
        Handle VMS specific attributes.
        (ia64_elf_section_flags): Arg attr now a bfd_vma.
        (ia64_init): Don't turn on dependency checking for VMS.
        (ia64_target_format): Check for VMS flag bit.
        (do_alias): Hande decc$ functions.
        (get_vms_time): New function.
        (ia64_vms_note): New function.
        * gas/config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
        (ia64_elf_section_flags): Arg attr now a bfd_vma.
        (tc_init_after_args): Define for VMS.
        * gas/config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
        (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
        * gas/config/tc-alpha.h: Likewise.
        * gas/config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
        (x86_64_section_word): Return a bfd_vma.
        * gas/config/tc-i386.h: Likewise.
        * gas/config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
        attr to bfd_vma.
        * gas/config/tc-ip2k.h: Likewise.
        * gas/config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
        (mep_elf_section_flags): Change type of arg attr to bfd_vma.
        * gas/config/tc-mep.h: Likewise.
        * gas/config/tc-ppc.c  (ppc_section_letter): Return a bfd_vma.
        (ppc_section_word): Return a bfd_vma.
        (ppc_section_flags): Change type of arg attr to bfd_vma.
        * gas/config/tc-ppc.h: Likewise.
        * gas/config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
        DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
        New file with new macros
        * gas/dwarf2dbg.c (get_filenum, out_file_list): Default and call new
        macros.

15 years agoopcodes/
Peter Bergner [Thu, 15 Jan 2009 04:27:28 +0000 (04:27 +0000)]
opcodes/
* ppc-dis.c (print_insn_powerpc): Skip insn if it is deprecated.
* ppc-opc.c (powerpc_opcodes) <mtfsf, mtfsf.>: Deprecate the two
operand form and enable the four operand form for POWER6 and later.
<mtfsfi, mtfsfi.>: Deprecate the two operand form and enable the
three operand form for POWER6 and later.

gas/testsuite/
* gas/ppc/power6.s ("mtfsf", "mtfsf.", "mtfsfi", "mtfsfi."): Add tests.
* gas/ppc/power6.d: Likewise.