Christophe Lyon [Wed, 18 Feb 2009 12:45:38 +0000 (12:45 +0000)]
2009-02-16 Christophe Lyon <christophe.lyon@st.com>
bfd/
* elf32-arm.c (arm_long_branch_stub,
arm_thumb_v4t_long_branch_stub,
arm_thumb_thumb_long_branch_stub,
arm_thumb_arm_v4t_long_branch_stub,
arm_thumb_arm_v4t_short_branch_stub,
arm_pic_long_branch_stub):
Renamed to elf32_arm_stub_long_branch_any_any,
elf32_arm_stub_long_branch_v4t_arm_thumb,
elf32_arm_stub_long_branch_thumb_only,
elf32_arm_stub_long_branch_v4t_thumb_arm,
elf32_arm_stub_short_branch_v4t_thumb_arm,
elf32_arm_stub_long_branch_any_any_pic.
(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
arm_thumb_thumb_stub_long_branch,
arm_thumb_arm_v4t_stub_long_branch,
arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
Renamed to arm_stub_long_branch_any_any,
arm_stub_long_branch_v4t_arm_thumb,
arm_stub_long_branch_thumb_only,
arm_stub_long_branch_v4t_thumb_arm,
arm_stub_short_branch_v4t_thumb_arm,
arm_stub_long_branch_any_any_pic.
Vladimir Prus [Wed, 18 Feb 2009 07:28:34 +0000 (07:28 +0000)]
* mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
(mi_interpreter_init): Register the above.
* solib.c (clear_solib): Notify solib unload.
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
disable breakpoints on a.out targets.
gdbadmin [Wed, 18 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 18 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Vladimir Prus [Tue, 17 Feb 2009 19:52:27 +0000 (19:52 +0000)]
* observer.c (observer_test_first_notification_function)
(observer_test_second_notification_function)
(observer_test_third_notification_function): Adjust prototype.
Pedro Alves [Tue, 17 Feb 2009 17:56:50 +0000 (17:56 +0000)]
* Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
(ALL_TARGET_OBS): Add dicos-tdep.o.
(ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
* configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
gdb_target_obs.
(x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
gdb_target_obs.
* dicos-tdep.h, dicos-tdep.c: New.
* amd64-dicos-tdep.c: New.
* i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
inferior.h. Include dicos-tdep.h.
(i386_dicos_init_abi): Call dicos_init_abi.
(i386_dicos_bfd_has_symbol_p): Delete.
(i386_dicos_osabi_sniffer): Use dicos_load_module_p.
* NEWS: Mention x86-64 DICOS target support.
Doug Evans [Tue, 17 Feb 2009 06:14:17 +0000 (06:14 +0000)]
* amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
All callers updated.
(amd64_get_insn_details): Handle more 3-byte opcode insns.
(amd64_breakpoint_p): Delete.
(amd64_displaced_step_fixup): When fixing up after stepping an int3,
don't back up pc to the start of the int3.
* i386-tdep.c: #include opcode/i386.h.
(i386_skip_prefixes): New function.
(i386_absolute_jmp_p): Constify argument.
(i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
(i386_breakpoint_p): Delete.
(i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
When fixing up after stepping an int3, don't back up pc to the start
of the int3.
* gdb.arch/amd64-disp-step.S (test_int3): New test.
* gdb.arch/amd64-disp-step.exp (test_int3): New test.
* gdb.arch/i386-disp-step.S (test_prefixed_abs_jump): New test.
(test_prefixed_syscall,test_int3): New tests.
* gdb.arch/i386-disp-step.exp (test_prefixed_abs_jump): New test.
(test_prefixed_syscall,test_int3): New tests.
gdbadmin [Tue, 17 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 17 Feb 2009 00:00:06 +0000 (00:00 +0000)]
daily update
Dave Korn [Mon, 16 Feb 2009 10:42:12 +0000 (10:42 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
inadvertent .reloc sections caused by refactoring accident.
Nick Clifton [Mon, 16 Feb 2009 09:19:32 +0000 (09:19 +0000)]
* gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000
offset.
* gas/mips/e32el-rel2.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel9-mips16.d: Likewise.
* gas/mips/elf-rel9.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/lb.d: Likewise.
* gas/mips/mips-abi32.d: Likewise.
* gas/mips/mips-gp32-fp32.d: Likewise.
* gas/mips/mips-gp32-fp64.d: Likewise.
* gas/mips/mips-gp64-fp32.d: Likewise.
* gas/mips/mips-gp64-fp64.d: Likewise.
* gas/mips/mips32-sf32.d: Likewise.
Alan Modra [Mon, 16 Feb 2009 08:02:29 +0000 (08:02 +0000)]
* ldlang.c (process_insert_statements): ASSERT that output section
statements are in order.
Alan Modra [Mon, 16 Feb 2009 07:25:52 +0000 (07:25 +0000)]
* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
(stat_save, stat_save_ptr): New variables.
(lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
(load_symbols): Likewise. Delete dead "bad_load" code.
(open_input_bfds): Warn on script containing output sections.
(lang_enter_output_section_statement): Use push_stat_ptr.
(lang_enter_group): Likewise.
(lang_leave_output_section_statement): Use pop_stat_ptr.
(lang_leave_group): Likewise.
* ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
* ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
* emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
Pedro Alves [Mon, 16 Feb 2009 03:16:24 +0000 (03:16 +0000)]
* corelow.c (core_close): Don't hardcode the core's pid.
(core_open): Find core threads before calling
post_create_inferior.
(add_to_thread_list, get_core_register_section): Take into account
systems where the regset section names encode the pid of the
inferior.
* gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
* gdbarch.h, gdbarch.c: Regenerate.
* amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
* i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
Alan Modra [Mon, 16 Feb 2009 00:00:09 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 16 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Dave Anglin [Sun, 15 Feb 2009 19:39:44 +0000 (19:39 +0000)]
* elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
in branch offset check.
Alan Modra [Sun, 15 Feb 2009 12:14:14 +0000 (12:14 +0000)]
* elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
add toc.symndx and toc.add.
(ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
Set up toc.add.
(get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
callers.
(ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
(branch_reloc_hash_match): New function, extracted from..
(ppc64_elf_tls_optimize): ..here.
(ppc64_elf_relocate_section): Properly set addends when optimizing
tls sequences. Avoid unnecessary reading and writing of insns.
Only redo reloc when symbol changed. Bypass symbol checks when
using tlsld_got.
* elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
(branch_reloc_hash_match): New function, extracted from..
(ppc_elf_tls_optimize): ..here.
(ppc_elf_relocate_section): Avoid unnecessary reading of insns.
Don't clear addend on zapped __tls_get_addr reloc.
Alan Modra [Sun, 15 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 15 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Thiago Jung Bauermann [Sat, 14 Feb 2009 21:58:29 +0000 (21:58 +0000)]
Adding gdb.python/python-cmd.exp which I forgot to commit earlier.
Vladimir Prus [Sat, 14 Feb 2009 15:24:44 +0000 (15:24 +0000)]
Include frame information for *stopped due to CLI commands.
* ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
* infcmd.c (finish_command_continuation): Pass '1' for
'print_frame' parameter to the observer.
* infrun.c (normal_stop): Don't print mi-specific information
here. Pass 'stop_print_frame' to the 'print_frame' parameter
of the observer.
* mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
If we need to print frame, and current uiout is not the MI one,
print frame again.
Pierre Muller [Sat, 14 Feb 2009 00:27:56 +0000 (00:27 +0000)]
* lib/gdb.exp (get_hexadecimal_valueof): New procedure.
* gdb.base/pc-fp.exp (get_valueofx): Remove.
Replace calls to get_valueofx by get_hexadecimal_valueof.
Pierre Muller [Sat, 14 Feb 2009 00:07:51 +0000 (00:07 +0000)]
* remote-utils.c (getpkt): Also generate remote-debug
information if noack_mode is set.
gdbadmin [Sat, 14 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 14 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Pierre Muller [Fri, 13 Feb 2009 23:37:24 +0000 (23:37 +0000)]
* lib/gdb.exp (get_valueof): Accept anything as a return value.
(get_integer_valueof): New procedure.
(get_sizeof): Use new get_integer_value_of.
* gdb.base/sizeof.exp: Replace all uses of get_valueof
by get_integer_valueof.
Pierre Muller [Fri, 13 Feb 2009 22:10:25 +0000 (22:10 +0000)]
2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
* xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
Cary Coutant [Fri, 13 Feb 2009 19:04:45 +0000 (19:04 +0000)]
(From Rafael Espindola)
* archive.cc (Archive::include_member): Update calls to add_symbols.
* dynobj.cc (Sized_dynobj<size, big_endian>::make_version_map): Add
the Layout argument.
* dynobj.h (do_add_symbols): Add the Layout argument.
* object.cc (Sized_relobj<size, big_endian>::do_add_symbols): Add the
Layout argument.
* object.h (Object::add_symbols): Add the Layout argument.
(Object::do_add_symbols): Add the Layout argument.
(Sized_relobj::do_add_symbols): Add the Layout argument.
* plugin.cc (Sized_pluginobj<size, big_endian>::do_add_symbols):
Unify the two versions.
(Add_plugin_symbols): Remove.
* plugin.h (Pluginobj::add_symbols, Pluginobj::do_add_symbols): Remove.
(Sized_pluginobj::do_add_symbols): Unify the two versions.
(Add_plugin_symbols): Remove.
* readsyms.cc (Read_symbols::do_read_symbols): Update call to
Add_symbols. Use Add_symbols instead of Add_plugin_symbols.
(Add_symbols::run): Make it work with Pulginobj.
Tom Tromey [Fri, 13 Feb 2009 16:13:47 +0000 (16:13 +0000)]
* gdb.base/remote.exp (get_sizeof): Remove.
* gdb.base/long_long.exp (get_valueof, get_sizeof): Remove.
* gdb.base/dfp-test.exp (get_valueof, get_sizeof): Remove.
* gdb.base/sizeof.exp (get_valueof, get_sizeof): Remove.
* lib/gdb.exp (get_valueof): Move from long_long.exp.
(get_sizeof): Likewise.
gdbadmin [Fri, 13 Feb 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 12 Feb 2009 23:59:29 +0000 (23:59 +0000)]
daily update
Joel Brobecker [Thu, 12 Feb 2009 23:35:38 +0000 (23:35 +0000)]
Fix a typo.
Nick Clifton [Thu, 12 Feb 2009 15:06:55 +0000 (15:06 +0000)]
PR 9827
* elflink.c (bfd_elf_final_link): When counting the relocations,
if the header size has not been set yet then assume that it will
match the output section's reloc type.
Alan Modra [Thu, 12 Feb 2009 12:47:39 +0000 (12:47 +0000)]
* corefile.c (core_create_function_syms): Remove "<locore>" and
"<hicore>" sentinels.
* gprof.c: Likewise.
* cg_print.c (cg_print_function_ordering): Likewise.
* alpha.c (alpha_find_call): Add check for return value of sym_lookup.
* mips.c (mips_find_call): Likewise.
* sparc.c (sparc_find_call): Likewise.
* tahoe.c (tahoe_find_call): Likewise.
* vax.c (vax_find_call): Likewise.
Jan Kratochvil [Thu, 12 Feb 2009 09:15:07 +0000 (09:15 +0000)]
gdb/
PR fortran/9806
* dwarf2read.c (process_die <DW_TAG_module>, read_module)
(scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
gdb/testsuite/
PR fortran/9806
* gdb.fortran/module.exp, gdb.fortran/module.f90: New.
Nathan Sidwell [Thu, 12 Feb 2009 08:31:03 +0000 (08:31 +0000)]
gas/
* config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
(mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
(mcf5307_ctrl): Add VBR.
(no_mac): New variable.
(m68k_extensions): Refer to no_mac mask.
(m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
52252..52259, 53011..53017.
(m68k_ip): Process CPUCR.
(init_table): Add cpucr entry.
(m68k_set_extension): Allow negated mask to refer to a variable.
(md_show_usage): Use '%s' to silence fprintf warning.
* config/m68k-parse.h (CPUCR): New control register.
gas/testsuite/
* m68k/br-isac.d, m68k/br-isac.s: Add stldsr test.
opcodes/
* m68k-opc.c (m68k_opcodes): Add stldsr instruction.
Nathan Sidwell [Thu, 12 Feb 2009 08:28:19 +0000 (08:28 +0000)]
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
relocatable link.
gdbadmin [Thu, 12 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 11 Feb 2009 23:59:30 +0000 (23:59 +0000)]
daily update
Pierre Muller [Wed, 11 Feb 2009 22:30:04 +0000 (22:30 +0000)]
2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for DW_ATE_signed_char and DW_ATE_unisgned_char
for pascal language.
Jan Kratochvil [Wed, 11 Feb 2009 16:07:28 +0000 (16:07 +0000)]
Avoid NULL dereference.
* stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
New variable func_type.
Pedro Alves [Wed, 11 Feb 2009 14:32:17 +0000 (14:32 +0000)]
* gdbarch.c: Regenerate.
gdbadmin [Wed, 11 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 10 Feb 2009 23:59:32 +0000 (23:59 +0000)]
daily update
DJ Delorie [Tue, 10 Feb 2009 16:18:42 +0000 (16:18 +0000)]
merge from gcc
Nathan Sidwell [Tue, 10 Feb 2009 08:07:31 +0000 (08:07 +0000)]
* config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
as_bad calls to silence compiler warning.
Paul Pluzhnikov [Tue, 10 Feb 2009 00:59:27 +0000 (00:59 +0000)]
2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
Pierre Muller [Tue, 10 Feb 2009 00:12:57 +0000 (00:12 +0000)]
2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.c (is_pascal_string_type): Fix comment.
Determine exact size of char elements for GPC
strings.
(pascal_printstr): Handle char width of 2 or 4.
* p-valprint.c (pascal_val_print): Handle char
of width 2 or 4.
gdbadmin [Tue, 10 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 9 Feb 2009 23:59:33 +0000 (23:59 +0000)]
daily update
Kai Tietz [Mon, 9 Feb 2009 15:40:24 +0000 (15:40 +0000)]
2009-02-09 Kai Tietz <kai.tietz@onevision.com>
* windres.c (set_endianess): Copy name without leading '-'.
Nathan Sidwell [Mon, 9 Feb 2009 14:46:40 +0000 (14:46 +0000)]
Missing piece of 2009-01-26 commit
* ldlang.c (lang_process): Don't consider relocatable flag when
checking for overlap.
Alan Modra [Mon, 9 Feb 2009 14:24:41 +0000 (14:24 +0000)]
* elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
(find_function): Likewise.
(pasted_function): Don't error if no prior function found.
(discover_functions): Revert 2008-12-10 change. Extend first
function range to start of section.
Tristan Gingold [Mon, 9 Feb 2009 09:14:15 +0000 (09:14 +0000)]
2009-02-09 Tristan Gingold <gingold@adacore.com>
* NEWS: Mention feature match between objdump and readelf for dumping
dwarf info.
* doc/binutils.texi (objdump): Document -W/--dwarf improvments to
objdump.
* objdump.c (usage): Update documentation for -W/--dwarf.
(enum option_values): Add OPTION_DWARF.
(long_options): --dwarf can accept arguments.
(dump_dwarf_section): Also check enabled field.
(main): Option -W can accept arguments, code moved to
dwarf.c and call dwarf_select_sections_all instead.
* readelf.c (process_section_headers): Remove do_debug_lines_decoded.
(parse_args): Move code to...
* dwarf.c (dwarf_select_sections_by_letters,
dwarf_select_sections_by_names): : ...here (new functions).
(do_debug_lines_decoded): Remove and replaced by ...
(FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros.
(display_debug_lines): Adjust for previous change.
(dwarf_select_sections_all): New function.
(debug_displays): Add initializer for enabled field.
* dwarf.h (do_debug_lines_decoded): Remove.
Add prototypes for the new functions.
(struct dwarf_section_display): Add enabled field.
Daniel Jacobowitz [Mon, 9 Feb 2009 00:07:53 +0000 (00:07 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
inside the loop. Only call addrmap_set_empty if the compilation unit
had DW_AT_high_pc and DW_AT_low_pc. Update call to
scan_partial_symbols.
(scan_partial_symbols): Take NEED_PC argument and pass it along with
LOWPC and HIGHPC.
(add_partial_namespace): Take NEED_PC argument and pass it through.
(add_partial_subprogram): Take NEED_PC argument. Update the addrmap
if necessary.
gdbadmin [Mon, 9 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 8 Feb 2009 23:59:35 +0000 (23:59 +0000)]
daily update
Dave Anglin [Sun, 8 Feb 2009 17:08:31 +0000 (17:08 +0000)]
* elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
functions to C90.
* elf64-hppa.h: Likewise.
gdbadmin [Sun, 8 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Daniel Jacobowitz [Sat, 7 Feb 2009 20:41:09 +0000 (20:41 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
inside the loop. Only call addrmap_set_empty if the compilation unit
had DW_AT_high_pc and DW_AT_low_pc. Update call to
scan_partial_symbols.
(scan_partial_symbols): Take NEED_PC argument and pass it along with
LOWPC and HIGHPC.
(add_partial_namespace): Take NEED_PC argument and pass it through.
(add_partial_subprogram): Take NEED_PC argument. Update the addrmap
if necessary.
Pedro Alves [Sat, 7 Feb 2009 15:00:57 +0000 (15:00 +0000)]
* NEWS: Mention inspecting extra signal information, $_siginfo,
and the qXfer:siginfo:read and qXfer:siginfo:write packets.
Pedro Alves [Sat, 7 Feb 2009 14:50:25 +0000 (14:50 +0000)]
* linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
isn't defined.
Eli Zaretskii [Sat, 7 Feb 2009 10:02:27 +0000 (10:02 +0000)]
*** empty log message ***
Eli Zaretskii [Sat, 7 Feb 2009 09:59:31 +0000 (09:59 +0000)]
(Basic Python): Fix change from 2009-02-04.
(Commands In Python): Fix COMMAND_* constants in last change. Use @kbd for
interactive input. Add cross-references and index entries.
Ian Lance Taylor [Sat, 7 Feb 2009 01:05:15 +0000 (01:05 +0000)]
* object.cc (Sized_relobj::do_layout): Make info message start
with lower case letter.
Ian Lance Taylor [Sat, 7 Feb 2009 01:03:32 +0000 (01:03 +0000)]
* binary.cc: Fix file comment.
Alan Modra [Sat, 7 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 7 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Ian Lance Taylor [Fri, 6 Feb 2009 23:49:43 +0000 (23:49 +0000)]
* options.h (enum Incremental_disposition): Define.
(class General_options): Add new options: --incremental,
--incremental_changed, --incremental_unchanged,
--incremental_unknown. Add incremental_disposition_ and
implicit_incremental_ fields.
(General_options::incremental_disposition): New function.
(class Position_dependent_options): Add incremental_disposition
option.
(Position_dependent_options::copy_from_options): Set incremental
dispositions.
* options.cc (General_options::parse_incremental_changed): New
function.
(General_options::parse_incremental_unchanged): New function.
(General_options::parse_incremental_unknown): New function.
(General_options::General_options): Initialize new fields
incremental_disposition_ and implicit_incremental_.
(General_options::finalize): Check for uasge of --incremental-*
without --incremental.
Doug Evans [Fri, 6 Feb 2009 23:14:34 +0000 (23:14 +0000)]
* i386.h: Add comment regarding sse* insns and prefixes.
Pedro Alves [Fri, 6 Feb 2009 23:06:58 +0000 (23:06 +0000)]
* amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
(compat_timer_t, compat_clock_t, struct compat_timeval)
(compat_sigval_t, compat_siginfo_t): New types.
(cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
(cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
(cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
(amd64_linux_siginfo_fixup): New.
* linux-nat.c (linux_nat_siginfo_fixup): New.
(siginfo_fixup): New.
(linux_xfer_siginfo): Use siginfo_fixup to convert between the
siginfo layout expected by ptrace and the siginfo layout of the
inferior.
(linux_nat_set_siginfo_fixup): New.
* linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
Pedro Alves [Fri, 6 Feb 2009 22:59:01 +0000 (22:59 +0000)]
2009-02-06 Pedro Alves <pedro@codesourcery.com>
gdb/
* target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
* infrun.c (siginfo_value_read, siginfo_value_write): New.
(siginfo_value_funcs): New.
(siginfo_make_value): New.
(_initialize_infrun): Create the $_siginfo convenience variable.
* gdbtypes.h (append_composite_type_field_aligned): Declare.
* gdbtypes.c (append_composite_type_field): Rename to...
(append_composite_type_field_aligned): ... this. Add ALIGNMENT
argument. Handle it.
(append_composite_type_field): Rewrite on top of
append_composite_type_field_aligned.
* value.h (internalvar_make_value): New typedef.
(struct internalvar) <make_value>: New field.
(create_internalvar_type_lazy): Declare.
* value.c (create_internalvar): Clear make_value.
(create_internalvar_type_lazy): New.
(value_of_internalvar): If make_value is set use it.
(preserve_values): Skip internal variables that don't have a
value.
* gdbarch.sh (get_siginfo_type): New.
* gdbarch.h, gdbarch.c: Regenerate.
* linux-tdep.h, linux-tdep.c: New.
* amd64-linux-tdep.c: Include "linux-tdep.h".
(amd64_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.
* i386-linux-tdep.c: Include "linux-tdep.h".
(i386_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.
* arm-linux-tdep.c: Include "linux-tdep.h".
(i386_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.
* linux-nat.c (linux_xfer_siginfo): New.
(linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
* remote.c (PACKET_qXfer_siginfo_read)
(PACKET_qXfer_siginfo_write): New.
(feature remote_protocol_features): Add "qXfer:siginfo:read" and
"qXfer:siginfo:write" features.
(remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
(_initialize_remote): Add "set/show remote read-siginfo-object"
and "set/show remote write-siginfo-object" commands.
* Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
(HFILES_NO_SRCDIR): Add linux-tdep.h.
(ALLDEPFILES): Add linux-tdep.c.
* configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
(i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
gdb_target_obs.
2009-02-06 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/
* server.c (handle_query): Report qXfer:siginfo:read and
qXfer:siginfo:write as supported and handle them.
* target.h (struct target_ops) <qxfer_siginfo>: New field.
* linux-low.c (linux_xfer_siginfo): New.
(linux_target_ops): Set it.
2009-02-06 Pedro Alves <pedro@codesourcery.com>
gdb/doc/
* gdb.texinfo (Signals): Document $_siginfo.
(Convenience Variables): Mention $_siginfo.
(Remote Configuration): Document qXfer:siginfo:read,
qXfer:siginfo:write packets, and the read-siginfo-object,
write-siginfo-object commands.
2009-02-06 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/
* gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.
Pedro Alves [Fri, 6 Feb 2009 22:50:52 +0000 (22:50 +0000)]
gdb/
2009-02-06 Jim Blandy <jimb@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
Vladimir Prus <vladimir@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
* defs.h (enum lval_type): New value: lval_computed.
* value.h (struct lval_funcs): New type.
(allocate_computed_value, value_computed_funcs)
(value_computed_closure): New declarations.
* value.c (struct value): Add a structure to the location union
for computed lvalues, containing 'funcs' and 'closure' members.
(allocate_computed_value, value_computed_funcs)
(value_computed_closure): New functions.
(value_free): For computed lvalues, call the closure's
'free_closure' function before freeing the value itself.
(value_copy): If we're copying an lval_computed value, call the
closure's 'copy_closure' function.
(set_value_component_location): If the original value is a
computed lvalue, then call the closure's 'copy_closure' function.
(value_of_internalvar): If an internal variable's value is a
computed lvalue, make retrieving its value produce an equivalent
computed lvalue.
* valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
their read function.
(value_assign): Assign to computed lvalues by calling their write
function.
gdb/doc/
2009-02-06 Pedro Alves <pedro@codesourcery.com>
* gdbint.texinfo (Values): New chapter.
Pedro Alves [Fri, 6 Feb 2009 22:21:26 +0000 (22:21 +0000)]
* linux-nat.c (linux_nat_wait): Adjust.
(linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
* linux-nat.h (thread_db_init): Delete declaration.
* linux-thread-db.c (target_beneath): Delete.
(thread_db_init): Delete.
(thread_db_detach): Use find_target_beneath.
(thread_db_wait): Adjust interface. Use find_target_beneath.
(thread_db_mourn_inferior): Use find_target_beneath.
(thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
(thread_db_async_mask): Delete.
(thread_db_pid_to_str): Adjust interface. Use
find_target_beneath.
(thread_db_get_thread_local_address): Adjust interface. Use
find_target_beneath.
(init_thread_db_ops): Delete references to delete functions.
* target.c (update_current_target): Don't inherit or default
to_wait. Don't inherit to_pid_to_str and
to_get_thread_local_address.
(target_translate_tls_address): Look for a pushed target that
implements to_get_thread_local_address, and use it instead of
checking for target_get_thread_local_address_p.
(target_wait, target_pid_to_str): Reimplement as functions.
(dummy_pid_to_str): New.
(init_dummy_target): Register it.
(debug_to_wait): Delete.
* target.h (struct target_ops): Make to_wait, to_pid_to_str and
to_get_thread_local_address accept a pointer to struct target_ops.
(target_wait): Delete macro, and declare as function.
(target_pid_to_str): Likewise.
(target_get_thread_local_address)
(target_get_thread_local_address_p): Delete.
(noprocess): Add NORETURN and ATTR_NORETURN tags.
* inf-ptrace.c (inf_ptrace_wait): Adjust.
(inf_ptrace_pid_to_str): New.
(inf_ptrace_target): Use inf_ptrace_pid_to_str.
* aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
* bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
* bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
Adjust.
* corelow.c (core_pid_to_str): Adjust.
* darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
* dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
* gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
* go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
* hpux-thread.c (hpux_thread_wait): Adjust.
* inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
* monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
* nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
* procfs.c (procfs_pid_to_str): Adjust.
* remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
* remote-mips.c (mips_wait): Adjust.
* remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
* remote.c (remote_wait, remote_pid_to_str)
(remote_get_thread_local_address): Adjust.
* rs6000-nat.c (rs6000_wait): Adjust.
* sol-thread.c (procfs_pid_to_str): Adjust declaration.
(sol_thread_wait, solaris_pid_to_str): Adjust.
* spu-linux-nat.c (spu_child_wait): Adjust.
* windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
Thiago Jung Bauermann [Fri, 6 Feb 2009 21:33:59 +0000 (21:33 +0000)]
gdb/
2009-02-06 Tom Tromey <tromey@redhat.com>
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
(SUBDIR_PYTHON_SRCS): Add python-cmd.c.
(python-cmd.o): New target.
* cli/cli-decode.c (set_cmd_completer): Add self parameter to
completer prototype.
(add_cmd): Initialize destroyer member of cmd_list_element. Use
make_symbol_completion_list_fn as completer.
(delete_cmd): Call destroyer if one is set.
* cli/cli-decode.h (cmd_list_element): Add cmd parameter to
completer member. Add destroyer member.
(set_cmd_completer): Add self parameter to
completer prototype.
* command.h (set_cmd_completer): Add cmd parameter to
completer prototype.
* completer.c (noop_completer, filename_completer,
location_completer, expression_completer, command_completer): Adapt
to new completer prototype.
(complete_line_internal): Pass new parameter to completer function.
* completer.h (noop_completer, filename_completer,
location_completer, expression_completer, command_completer): Adapt
prototypes to new completer prototype.
* interps.c (interpreter_completer): Adapt to new completer
prototype.
* python/python-cmd.c: New file.
* python/python-internal.h (gdbpy_initialize_commands): Add
prototype.
(gdbpy_doc_cst): Add forward declaration.
* python/python.c (gdbpy_doc_cst): Declare.
(_initialize_python): Call gdbpy_initialize_commands. Initialize
gdbpy_doc_cst.
* symtab.c (make_symbol_completion_list_fn): New function.
* symtab.h (make_symbol_completion_list_fn): Add prototype.
gdb/doc/
2009-02-06 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Python API): Add entry for Commands In Python.
(Commands In Python): New node.
gdb/testsuite/
2009-02-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.python/python-cmd.exp: New file.
Chris Demetriou [Fri, 6 Feb 2009 19:20:10 +0000 (19:20 +0000)]
2009-02-06 Chris Demetriou <cgd@google.com>
* gold.h (gold_undefined_symbol): Change to take only a Symbol
pointer and to report location as the file name associated with
the symbol.
(gold_undefined_symbol_at_location): New function to replace the
old gold_undefined_symbol functionality.
* target-reloc.h (relocate_section): Update to use
gold_undefined_symbol_at_location.
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Call gold_undefined_symbol function rather than gold_error.
* errors.h (Errors::undefined_symbol): Take location as a
string, rather than calculating it from a relocation.
* errors.cc (Errors::fatal): Print "fatal error:" before the
formatted message.
(Errors::error, Errors::error_at_location): Print "error: "
before the formatted message.
(Errors::undefined_symbol): Take location as a string, rather
than calculating it from a relocation.
(gold_undefined_symbol_at_location): New function akin to
old gold_undefined_symbol, calculates location from relocation.
(gold_undefined_symbol): Change to take only a Symbol pointer
and to report location as the file name associated with the symbol.
* testsuite/debug_msg.sh: Update for changed error messages.
* testsuite/undef_symbol.sh: Likewise.
Joseph Myers [Fri, 6 Feb 2009 16:56:12 +0000 (16:56 +0000)]
* lib/ld-lib.exp (check_gc_sections_available): Return 0 for
*-*-mingw*.
Joseph Myers [Fri, 6 Feb 2009 14:11:00 +0000 (14:11 +0000)]
* elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
.sbss handling.
Nick Clifton [Fri, 6 Feb 2009 12:51:52 +0000 (12:51 +0000)]
PR 9814
* config/tc-arm.c (MODE_RECORDED): New define.
(output_inst): Record the thumb_mode in the current frag.
(arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
(arm_init_frag): Only set the tc_frag_data field if it has not
already been set.
Nick Clifton [Fri, 6 Feb 2009 12:20:12 +0000 (12:20 +0000)]
* gas/mips/beq.d: Make no assumptions about the symbols used as
branch targets in the disassembly, or the names of the relocs
produced.
* gas/mips/bge.d: Likewise.
* gas/mips/bgeu.d: Likewise.
* gas/mips/blt.d: Likewise.
* gas/mips/bltu.d: Likewise.
* gas/mips/mips32-sf32.d: Likewise.
* gas/mips/mips1-fp.d: Likewise.
* gas/mips/branch-misc-1.d: Skip for the mips-ecoff target.
* gas/mips/branch-misc-2-64.d: Likewise.
* gas/mips/branch-misc-2.d: Likewise.
* gas/mips/branch-misc-2pic-64.d: Likewise.
* gas/mips/branch-misc-2pic.d: Likewise.
* gas/mips/branch-swap.d: Likewise.
Nick Clifton [Fri, 6 Feb 2009 12:09:40 +0000 (12:09 +0000)]
* gas/elf/symtab.d: But do not run the test for the Alpha or HPPA
ports.
Nick Clifton [Fri, 6 Feb 2009 10:47:33 +0000 (10:47 +0000)]
Updated Vietnamese translation.
Tristan Gingold [Fri, 6 Feb 2009 08:48:29 +0000 (08:48 +0000)]
2009-02-06 Tristan Gingold <gingold@adacore.com>
* gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm.
Pedro Alves [Fri, 6 Feb 2009 02:08:48 +0000 (02:08 +0000)]
* target.c (target_get_osdata): Check for equal or higher than
process_stratum, not dummy_stratum.
Peter Bergner [Fri, 6 Feb 2009 01:50:54 +0000 (01:50 +0000)]
gas/testsuite/
* gas/ppc/booke.s ("dcbt", "dcbtst"): New tests.
* gas/ppc/booke.d: Likewise.
* gas/ppc/power4_32.s: Likewise.
* gas/ppc/power4_32.d: Likewise.
opcodes/
* ppc-opc.c: Update copyright year.
(powerpc_opcodes) <"dcbt", "dcbtst">: Deprecate the Embedded operand
ordering for POWER4 and later and use the correct Server ordering.
Pedro Alves [Fri, 6 Feb 2009 01:23:00 +0000 (01:23 +0000)]
* remote.c (extended_remote_can_run): Delete.
(init_remote_ops): Don't register it.
* target.c (target_get_osdata): Don't check for target_can_run.
Instead any target that has already been pushed, otherwise
fallback to the default run target..
Pedro Alves [Fri, 6 Feb 2009 00:27:58 +0000 (00:27 +0000)]
* target.c (target_create_inferior, target_detach)
(target_mourn_inferior, target_attach, target_close): Do target
debug output.
(debug_to_attach, debug_to_detach, debug_to_create_inferior)
(debug_to_mourn_inferior, debug_to_close): Delete.
(setup_target_debug): Adjust.
Alan Modra [Fri, 6 Feb 2009 00:00:09 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 6 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Pedro Alves [Thu, 5 Feb 2009 23:30:33 +0000 (23:30 +0000)]
* target.h (target_stopped_data_address_p): Delete declaration,
and don't define as macro.
* target.c (target_stopped_data_address_p): Delete.
Joseph Myers [Thu, 5 Feb 2009 21:58:41 +0000 (21:58 +0000)]
2009-02-05 Catherine Moore <clm@codesourcery.com>
* gas/elf/elf.exp: Really run the symtab test.
Joseph Myers [Thu, 5 Feb 2009 21:54:43 +0000 (21:54 +0000)]
* ld-arm/arm-elf.exp (armeabitests): Restore thumb2-b-interwork.
Joseph Myers [Thu, 5 Feb 2009 21:52:36 +0000 (21:52 +0000)]
* emulparams/m68kelf.sh: Add newline at end of file.
Thiago Jung Bauermann [Thu, 5 Feb 2009 21:16:09 +0000 (21:16 +0000)]
gdb/
2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
* python/python-utils.c (target_string_to_unicode): New function.
* python/python-internal.h (target_string_to_unicode): New prototype.
* python/python-value.c (valpy_string): New function.
(value_object_methods): Add `string' entry.
gdb/doc/
2009-02-05 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Values From Inferior): Document Value.string.
Pedro Alves [Thu, 5 Feb 2009 18:54:50 +0000 (18:54 +0000)]
* target.h (target_tid_to_str): Delete.
* thread.c (print_thread_info, thread_apply_all_command)
(thread_apply_command, thread_command, do_captured_thread_select):
Use target_pid_to_str instead of target_tid_to_str.
* linux-fork.c (delete_fork_command): Likewise.
Pedro Alves [Thu, 5 Feb 2009 17:28:21 +0000 (17:28 +0000)]
* frame.c (has_stack_frames): Make public.
(get_prev_frame): Don't allow a NULL this_frame anymore.
* frame.h (has_stack_frames): Declare.
* varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
to get_prev_frame, instead start at get_current_frame.
(varobj_create): Check has_stack_frames before getting any frame;
eliminate one usage of deprecated_safe_get_selected_frame.
Thiago Jung Bauermann [Thu, 5 Feb 2009 16:40:34 +0000 (16:40 +0000)]
gdb/
2009-02-05 Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (GdbMethods): Move to bottom of file.
(get_parameter, execute_gdb_command, gdbpy_write,
gdbpy_flush): Remove forward declarations.
(eval_python_from_control_command): Fix error checking of function
PyRun_SimpleString. Fix error string.
(python_command): Likewise.
(execute_gdb_command): Added from_tty argument.
gdb/doc/
2009-02-05 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Basic Python): Document execute's from_tty
argument.
Andreas Schwab [Thu, 5 Feb 2009 15:45:55 +0000 (15:45 +0000)]
* Makefile.tpl (stage_last): Define $r and $s before using
$(RECURSE_FLAGS_TO_PASS).
* Makefile.in: Regenerate
Tristan Gingold [Thu, 5 Feb 2009 13:59:18 +0000 (13:59 +0000)]
2009-02-05 Tristan Gingold <gingold@adacore.com>
* gdb.base/sigbpt.exp: Detect which signal is received when a NULL
pointer is dereferenced and use this signal name in regexp.
* gdb.base/signull.exp: Ditto.
* gdb.base/sigbpt.c (main): Catch SIGBUS too.
* gdb.base/signull.c (main): Ditto.