aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-242011-05-24 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-15/+35
* symfile.h (enum dwarf2_section_enum): New type. (dwarf2_get_section_info): New prototype. * dwarf2read.c (dwarf2_get_section_info): Replace parameter section_name by sect. Use a switch to select the info. * dwarf2-frame.c (warf2_get_section_info): Remove prototype. (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2011-05-24../commit.txt~Pierre Muller14-61/+46
2011-05-242011-05-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-0/+20
gdb/ * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting shared library event breakpoint if there's no execution. gdb/testsuite/ * gdb.trace/tfile.exp: Add test that opening the basic.tf trace file doesn't error, using MI.
2011-05-24 * breakpont.c (remove_hw_watchpoints): Remove unused function.Thiago Jung Bauermann3-18/+5
* breakpoint.h remove_hw_watchpoints(): Remove prototype.
2011-05-24 * ld-cris/tls-e-tpoffcomm1.d: Adjust for second PR12763 change,Hans-Peter Nilsson2-2/+7
setting TLS file offset.
2011-05-24daily updateAlan Modra1-1/+1
2011-05-24*** empty log message ***gdbadmin1-1/+1
2011-05-23 * gold.cc (queue_middle_tasks): Process existing GOT/PLT entries.Cary Coutant10-119/+625
* incremental-dump.cc (dump_incremental_inputs): Mask high-order bit when checking got_type. * incremental.cc (Sized_incremental_binary::setup_readers): Store symbol table and string table locations; initialize bit vector of file status flags. (Sized_incremental_binary::do_reserve_layout): Set bit flag for unchanged files. (Sized_incremental_binary::do_process_got_plt): New function. (Sized_incremental_binary::get_symtab_view): Use stored locations. (Output_section_incremental_inputs::set_final_data_size): Record file index for each input file. (Output_section_incremental_inputs::write_got_plt): Store file index instead of input entry offset for each GOT entry. * incremental.h (Incremental_input_entry::Incremental_input_entry): Initialize new data member. (Incremental_input_entry::set_offset): Store file index. (Incremental_input_entry::get_file_index): New function. (Incremental_input_entry::file_index_): New data member. (Incremental_binary::process_got_plt): New function. (Incremental_binary::do_process_got_plt): New function. (Sized_incremental_binary::Sized_incremental_binary): Initialize new data members. (Sized_incremental_binary::~Sized_incremental_binary): New destructor. (Sized_incremental_binary::set_file_is_unchanged): New function. (Sized_incremental_binary::file_is_unchanged): New function. (Sized_incremental_binary::do_process_got_plt): New function. (Sized_incremental_binary::file_status_): New data member. (Sized_incremental_binary::main_symtab_loc_): New data member. (Sized_incremental_binary::main_strtab_loc_): New data member. * output.cc (Output_data_got::Got_entry::write): Add case RESERVED_CODE. (Output_data_got::add_global): Call add_got_entry. (Output_data_got::add_global_plt): Likewise. (Output_data_got::add_global_with_rel): Likewise. (Output_data_got::add_global_with_rela): Likewise. (Output_data_got::add_global_pair_with_rel): Call add_got_entry_pair. (Output_data_got::add_global_pair_with_rela): Likewise. (Output_data_got::add_local): Call add_got_entry. (Output_data_got::add_local_plt): Likewise. (Output_data_got::add_local_with_rel): Likewise. (Output_data_got::add_local_with_rela): Likewise. (Output_data_got::add_local_pair_with_rel): Call add_got_entry_pair. (Output_data_got::add_local_pair_with_rela): Likewise. (Output_data_got::reserve_slot): New function. (Output_data_got::reserve_slot_for_global): New function. (Output_data_got::add_got_entry): New function. (Output_data_got::add_got_entry_pair): New function. (Output_section::add_output_section_data): Edit FIXME. * output.h (Output_section_data_build::Output_section_data_build): New constructor with size parameter. (Output_data_space::Output_data_space): Likewise. (Output_data_got::Output_data_got): Initialize new data member; new constructor with size parameter. (Output_data_got::add_constant): Call add_got_entry. (Output_data_got::reserve_slot): New function. (Output_data_got::reserve_slot_for_global): New function. (class Output_data_got::Got_entry): Add RESERVED_CODE. (Output_data_got::add_got_entry): New function. (Output_data_got::add_got_entry_pair): New function. (Output_data_got::free_list_): New data member. * target.h (Sized_target::init_got_plt_for_update): New function. (Sized_target::register_global_plt_entry): New function. * x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize new data member; call init; add constructor with PLT count. (Output_data_plt_x86_64::init): New function. (Output_data_plt_x86_64::add_relocation): New function. (Output_data_plt_x86_64::reserve_slot): New function. (Output_data_plt_x86_64::free_list_): New data member. (Target_x86_64::init_got_plt_for_update): New function. (Target_x86_64::register_global_plt_entry): New function. (Output_data_plt_x86_64::add_entry): Allocate from free list for incremental updates. (Output_data_plt_x86_64::add_relocation): New function. * testsuite/object_unittest.cc (Object_test): Set default options.
2011-05-23sim: glue: allow bitwise devices to only glue intsMike Frysinger2-47/+61
Some Blackfin parts tie a bunch of interrupt lines into a single OR gate before feeding the result into the SIC. The glue-or device in the sim provides a nice way of modeling this exact behavior. At the moment though, it requires the device to be mapped into the address space so that things could write to it directly. This is not needed for the Blackfin usage, so make it optional. Now the glue devices can be used to simply tie interrupt lines together. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-23sim: glue: implement or/xor funcsMike Frysinger2-7/+34
The glue device has a bunch of "todos" for the misc bitwise devices. So implement two for fun -- the glue-or and glue-xor. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-23gdbTom Tromey5-4/+69
* c-lang.c (evaluate_subexp_c): Use expect_type if it is not NULL. gdb/testsuite * gdb.base/charset.exp (string_display): Add tests to assign to arrays. * gdb.base/charset.c (short_array, int_array, long_array): New.
2011-05-23* elf32-rx.c (rx_elf_object_p): When reading an RX object in, undoDJ Delorie2-0/+55
the vma/lma swapping done in elf32_rx_modify_program_headers.
2011-05-23 * python/lib/gdb/printing.py (register_pretty_printer): Add missingDoug Evans2-0/+6
entry for RuntimeError to doc string.
2011-05-23 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instructionJerome Guitton2-17/+58
sequence for probing loops.
2011-05-232011-05-23 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+8
* infrun.c (user_visible_resume_ptid): Fix typos in describing comment.
2011-05-23 * elf-m10300.c (mn10300_elf_mkobject): New function.Nick Clifton2-0/+21
(bfd_elf32_mkobject): Define.
2011-05-23 * config/tc-v850.h (TC_FX_SIZE_SLACK): Define.Nick Clifton2-0/+7
2011-05-23 * ld-elf/shared.exp: Revert previous delta. Do not buildNick Clifton2-5/+12
libraries in a non-native environment.
2011-05-23 * elf-bfd.h: Comment typo fix.Alan Modra4-74/+41
* elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with struct elf_dyn_relocs throughout. * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
2011-05-23 * elf32-frv.c: Use info->callbacks->einfo throughout file in linkerAlan Modra4-213/+196
functions rather than warning callback or _bfd_error_handler. * elf32-ppc.c: Likewise. * elf64-ppc.c: Likewise. * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost arg error. * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
2011-05-23 * ldmisc.c (vfinfo): Add %H.Alan Modra3-8/+24
* ldmain.c (reloc_overflow): Use %H rather than %C. (reloc_dangerous, unattached_reloc): Likewise.
2011-05-23 PR 12763Alan Modra4-6/+39
bfd/ * elf.c (assign_file_positions_for_load_sections): Set sh_offset for .tbss, and page align same for all SHT_NOBITS sections. ld/ * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2 like sections to existing .sdata2, and similarly for orphan TLS sections. * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
2011-05-23 PR 12763Alan Modra2-2/+7
* ld-elf/binutils.exp: Don't run tdata3 for hppa64.
2011-05-23*** empty log message ***gdbadmin1-1/+1
2011-05-23daily updateAlan Modra1-1/+1
2011-05-22daily updateAlan Modra1-1/+1
2011-05-22*** empty log message ***gdbadmin1-1/+1
2011-05-21* sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supplyMark Kettenis4-3/+14
zero as the value for %g0 in the register cache. * sparc-tdep.c (sparc32_supply_gregset): Likewise. * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2011-05-21 * ld-cris/tls-e-tpoffcomm1.d: Adjust for PR12763 change removingHans-Peter Nilsson2-18/+21
empty program header.
2011-05-21daily updateAlan Modra1-1/+1
2011-05-21*** empty log message ***gdbadmin1-1/+1
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-7/+12
* infrun.c (proceed): Set previous_inferior_ptid here. (init_wait_for_inferior): Initialize previous_inferior_ptid from inferior_ptid, not null_ptid. (wait_for_inferior): Don't initialize previous_inferior_ptid here. (fetch_inferior_event): Nor here.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+7
gdb/ * inf-loop.c (inferior_event_handler): Only output a message if verbose.
2011-05-20 * MAINTAINERS: Update my e-mail address.Luis Machado2-1/+5
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-4/+21
Cope with async mode. gdb/testsuite/ * gdb.mi/mi-break.exp (test_breakpoint_commands): Split gdb_test into gdb_test + mi_expect_stop.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-4/+5
gdb/testsuite/ * gdb.mi/basics.c: Don't include stdio.h or unistd.h. (callme): Remove printf call.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+8
* infrun.c (proceed): Switch the inferior event loop to INF_EXEC_COMPLETE if the target refused to resume from a vfork/fork.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-36/+73
gdb/ * infcmd.c: Include "inf-loop.h". (step_once): When stepping into an inline subroutine, pretend the target has run. If the target can async, switch the inferior event loop to INF_EXEC_COMPLETE. * inferior.h (user_visible_resume_ptid): Declare. * infrun.c (user_visible_resume_ptid): New function, factored out from `resume'. (resume): Use it. * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion that the current thread is running. Merge async and sync branches.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-13/+15
gdb/ * infcmd.c (step_1): Simplify synchronous case.
2011-05-20 PR 12763Alan Modra4-27/+61
* ld-elf/tdata3.s: New test. * ld-elf/tbss3.s: New test. * ld-elf/binutils.exp: Consolidate tbss and tdata tests.
2011-05-20 PR 12763Alan Modra2-12/+35
* elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs from PT_TLS header. (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD segment if just for .tbss. (assign_file_positions_for_load_sections): Don't report "can't allocate in segment" errors for .tbss. (assign_file_positions_for_non_load_sections): Don't set p_filesz from SHT_NOBITS section filepos.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-40/+72
gdb/ * tracepoint.c: Include exceptions.h. (TFILE_PID): Move higher in file. (tfile_open): Delay pushing the tfile target until we're assured the tfile header is present in the file. Wrap reading the initial newline-terminated lines in TRY_CATCH. Pop the target if the initial setup failed. Add the tfile's thread immediately aftwards, before any non-essential setup. Don't skip post_create_inferior if there are no traceframes present in the file. (tfile_close): Remove redundant check for null before xfree call. (tfile_thread_alive): New function. (init_tfile_ops): Register it as to_thread_alive callback.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-5/+4
gdb/ * tracepoint.c (tfile_open): Delete #if 0'd code.
2011-05-20 * lib/gdb.exp (gdb_test_list_exact): Suggest use of doublePierre Muller3-4/+11
quote pattern to avoid problems with Cygwin/mingw expect versions. * gdb.base/default.exp (show convenience): Use double quote pattern for regular expressions.
2011-05-20 ld/testsuite/Bernd Schmidt15-136/+473
* ld-tic6x/pcr-reloc.d: New test. * ld-tic6x/pcr-reloc.s: New test. gas/testsuite/ * gas/tic6x/pcr-relocs.d: New test. * gas/tic6x/pcr-relocs.s: New test. * gas/tic6x/pcr-relocs-undef.d: New test. * gas/tic6x/pcr-relocs-undef.s: New test. * gas/tic6x/reloc-bad-2.s: Update for pcr_offset. * gas/tic6x/reloc-bad-2.l: Update for pcr_offset. bfd/ * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for R_C6000_PCR_H16 and R_C6000_PCR_L16. (elf32_tic6x_relocate_section): Handle them. gas/ * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset". (tic6x_parse_name): Handle it. (tic6x_fix_new_exp): Handle O_pcr_offset. (tic6x_fix_adjustable): Return 0 for the new relocs. (md_apply_fix): Handle them. (tc_gen_reloc): Likewise. * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
2011-05-20gdb/Jan Kratochvil5-13/+161
Fix -readnow for -gdwarf-4 unused type units. * dwarf2read.c (struct signatured_type): Remove the field offset. (create_signatured_type_table_from_index): Remove its initialization. (create_debug_types_hash_table): Likewise. Initialize per_cu.offset instead. Add a complaint call. (process_psymtab_comp_unit): Change assignment to gdb_assert. (process_type_comp_unit, lookup_die_type, dump_die_shallow) (lookup_signatured_type_at_offset, read_signatured_type) (write_one_signatured_type): Update the field for per_cu. gdb/testsuite/ Fix -readnow for -gdwarf-4 unused type units. * gdb.dwarf2/dw4-sig-type-unused.S: New file. * gdb.dwarf2/dw4-sig-type-unused.exp: New file.
2011-05-20*** empty log message ***gdbadmin1-1/+1
2011-05-20daily updateAlan Modra1-1/+1
2011-05-19 * python/py-inferior.c (python_inferior_exit): UseTom Tromey2-2/+8
target_gdbarch. (python_on_resume): Likewise.
2011-05-192011-05-19 Matt Rice <ratmice@gmail.com>Tom Tromey2-0/+6
* breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.