aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-02-20daily updateAlan Modra1-1/+1
2012-02-20gdb/testsuite/Jan Kratochvil3-1/+25
Fix racy FAILs. * gdb.base/inferior-died.c (main): Add return of 0. * gdb.base/inferior-died.exp (continue): Fix expectation of asynchronous events. (p 1): New test.
2012-02-20 PR gdb/13498:Tom Tromey2-22/+90
* dwarf2read.c (dw2_expand_symtabs_matching): Only visit a particular set of file names once. (dw2_map_symbol_filenames): Likewise.
2012-02-20gas:Iain Sandoe3-0/+44
* config/obj-macho.c (obj_mach_o_is_frame_section): New. (obj_mach_o_allow_local_subtract): New. * config/obj-macho.h (md_allow_local_subtract): Define. (obj_mach_o_allow_local_subtract): Declare.
2012-02-20gas:Iain Sandoe2-0/+18
* config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of canonical information, try to determine CODE and DEBUG section flags from the mach-o section data.
2012-02-20gdb/Jan Kratochvil2-7/+11
Code cleanup. * main.c (write_files): Remove the declaration. (external_editor_command): Move the declaration ... [GDBTK] (external_editor_command): ... here. Fix the comment.
2012-02-20 * dwarf2read.c (dw2_map_symtabs_matching_filename): RemoveTom Tromey2-7/+5
extraneous block.
2012-02-202012-02-20 Pedro Alves <palves@redhat.com>Pedro Alves2-16/+49
* gdb.threads/attach-into-signal.exp (corefunc): Don't enable lin-lwp output. Set SIGALRM to stop. Adjust tests to not rely on gdb's internal debug output. For the non-threaded case, look for "Program received signal SIGLARM", for the threaded case, peek at the thread's siginfo.
2012-02-202012-02-20 Pedro Alves <palves@redhat.com>Pedro Alves3-27/+45
General cleanup, make output test messages unique, and build different executable files for the non-threaded and threaded cases. * gdb.threads/attach-into-signal.exp (binfile, escapedbinfile): Delete. (executable_nothr, executable_thr): New globals. (top level): Adjust to delete both executables. (corefunc): New parameter $executable. Set $pf_prefix instead of hand writing a prefix in tests. Issue a clean_restart and enable lin-lwp debug output here. (top level): Adjust. Use build_executable. Don't start gdb here, and don't enable lin-lwp debug output here. * gdb.threads/Makefile.in (EXECUTABLES): Adjust.
2012-02-20 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag onNick Clifton2-1/+7
local symbols.
2012-02-202012-02-20 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+15
* darwin-nat.h (enum darwin_msg_state): Add comments.
2012-02-202012-02-20 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+8
* amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset value.
2012-02-20gdb/testsuite/Jan Kratochvil2-1/+6
Fix racy FAILs. * gdb.base/catch-load.exp (one_catch_load_test): Remove duplicate "continue" command.
2012-02-20 * objdump.c (slurp_file): Close file if fstat fails.Alan Modra2-8/+15
2012-02-20 * ld-elf/comm-data.exp: Run for *-*-gnu*.Alan Modra2-3/+8
2012-02-20*** empty log message ***gdbadmin1-1/+1
2012-02-19daily updateAlan Modra1-1/+1
2012-02-19 * deffilep.y (cmp_import_elem): Sort first by module name.Kai Tietz3-89/+109
* pe-dll.c (process_def_file_and_drectve): Free strings from removed export-element. (add_bfd_to_link): Optimize loop on import-elements and lower allocated memory. (pe_implied_import_dll): Pass NULL instead of 0 for pointer argument.
2012-02-19gdb/testsuite/Jan Kratochvil2-1/+9
Fix for gdbserver non-extended mode. * gdb.base/break-inline.exp (start): Replace "start" by gdb_breakpoint and gdb_run_cmd.
2012-02-19*** empty log message ***gdbadmin1-1/+1
2012-02-18daily updateAlan Modra1-1/+1
2012-02-18Minor reformatting in breakpoint.c (watchpoint_exp_is_const)Joel Brobecker2-0/+6
gdb/ChangeLog: * breakpoint.c (watchpoint_exp_is_const): Add missing empty line between function description and implementation.
2012-02-18 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast forHans-Peter Nilsson2-2/+7
temporary variable node used for NULL argument.
2012-02-18*** empty log message ***gdbadmin1-1/+1
2012-02-17daily updateAlan Modra1-1/+1
2012-02-17 PR python/10753:Tom Tromey2-1/+7
* gdb.texinfo (objfile-gdb.py file): Fix location of auto-load directory.
2012-02-17 PR python/12070:Tom Tromey9-4/+64
* python/py-event.c (event_object_getset): New global. (event_object_type): Reference it. * python/py-type.c (field_object_getset): New global. (field_object_type): Reference it. * python/python-internal.h (gdb_py_generic_dict): Declare. * python/py-utils.c (gdb_py_generic_dict): New function. testsuite/gdb * gdb.python/py-events.py (exit_handler): Add test for 'dir'. * gdb.python/py-events.exp: Check 'dir' output. * gdb.python/py-type.exp (test_fields): Add test for 'dir'.
2012-02-172012-02-17 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+26
* solib-darwin.c (darwin_current_sos): Check magic and filetype
2012-02-17 PR ld/13343Alan Modra14-85/+143
* ld.h (parsing_defsym): Delete. * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename. (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill, exp_get_abs_int): Add tree arg for %S in error messages. Don't fudge lineno. (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy type.filename from sub-tree. (exp_trinop): Likewise, and use "cond" rather than "lhs". * ldexp.h (node_type): Add filename field to struct. * ldfile.c (ldfile_input_filename): Delete. Remove all refs. * ldfile.h (ldfile_input_filename): Delete. * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for %S in error messages. * ldemul.c (syslib_default, hll_default): Likewise. * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias, lang_get_regions, lang_new_phdr): Likewise. (lang_size_sections_1): Pass addr_tree for %S. * ldlex.h (lex_redirect): Update prototype. (ldlex_filename): Declare. * ldlex.l (<EOF>): Don't set ldfile_input_filename. (lex_redirect): Add fake_filename and count params. Push fake_filename to file_name_stack and init lineno from count. (ldlex_filename): New function. (lex_warn_invalid): Use above. * ldmain.c (main): Update lex_redirect call. * ldmisc.c (vfinfo <%S>): Take file name and line number from etree_type arg, or use current if arg is NULL. * lexsup.c (parsing_defsym): Delete. (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
2012-02-17gdb/testsuite/Yao Qi2-0/+12
* gdb.trace/strace.exp (strace_info_marker): Test `info threads'.
2012-02-17support 16 sect-diffs for mach-oIain Sandoe2-22/+61
bfd: * mach-o-i386.c (i386_howto_table): Add support for 16 bit sect-diffs. (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs. (bfd_mach_o_i386_swap_reloc_out): Likewise.
2012-02-17add LOCAL SECDIFF relocation for m32 mach-oIain Sandoe5-2/+39
bfd: * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF): * libbfd.h: Regenerated. * bfd-in2.h: Likewise. * mach-o-i386.c (i386_howto_table): Include local sectdiff. (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff. (bfd_mach_o_i386_swap_reloc_out): Likewise.
2012-02-17 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling ofThomas Schwinge2-3/+23
TYPE_CALLING_CONVENTION annotation.
2012-02-172012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2-6/+31
* elf32-s390.c (elf_s390_relocate_section): Support basr in the GD->LE and LD->LE optimizations.
2012-02-17*** empty log message ***gdbadmin1-1/+1
2012-02-16 * MAINTAINERS: Add rx to target ISA section.Kevin Buettner3-0/+10
* Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o. (ALLDEPFILES): Add rx-tdep.c.
2012-02-16Update sim_fetch_register, sim_store_register for sh and mn10300.Kevin Buettner4-4/+15
Fix compile warnings for sh built on 64-bit hosts.
2012-02-16 * symfile.c (symbol_file_add_main_1): Use inferior'sTom Tromey6-4/+33
symfile_flags. * solib.c (solib_read_symbols): Use inferior's symfile_flags. * linux-nat.c (linux_child_follow_fork): Set symfile_flags on inferior. * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on inferior. (follow_exec): Use inferior's symfile_flags. * inferior.h (struct inferior) <symfile_flags>: New field.
2012-02-16 * testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.Cary Coutant3-2/+7
* testsuite/Makefile.in: Regenerate.
2012-02-16gdb: sim: check return value of sim_create_inferiorMike Frysinger2-1/+10
The current gdbsim_create_inferior func doesn't check the return value of sim_create_inferior which can be problematic when that func doesn't return success. So, if it fails, call error() and be done. Reported-by: Richard Stuckey <richard.stuckey@arc.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-02-162012-02-16 Josh Matthews <josh@joshmatthews.net>Tristan Gingold2-1/+5
* machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
2012-02-16 * gdb.base/inferior-died.c: Don't include stdio.h.Tom Tromey2-1/+4
2012-02-16 PR c++/13653:Tom Tromey5-0/+114
* thread.c (struct current_thread_cleanup) <was_removable>: New field. (do_restore_current_thread_cleanup): Restore 'removable' field. (restore_current_thread_cleanup_dtor): Likewise. (make_cleanup_restore_current_thread): Initialize new field. testsuite/gdb * gdb.base/inferior-died.c: New file. * gdb.base/inferior-died.exp: New file.
2012-02-16gdb/gdbserver/Yao Qi5-87/+125
* inferiors.c: Move code to ... * dll.c: .... here. New. * server.h: Declare clear_dlls. * Makefile.in (SFILES): Add dll.c. (OBS): Add dll.o (dll.o): New rule.
2012-02-16 PR binutils/13355Alan Modra2-2/+7
* elf32-rx.c (elf32_rx_relax_section): Correct width check.
2012-02-16*** empty log message ***gdbadmin1-1/+1
2012-02-15daily updateAlan Modra1-1/+1
2012-02-15 * MAINTAINERS: Add rl78 to target ISA section.Kevin Buettner4-0/+15
* Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o. (ALLDEPFILES): Add rl78-tdep.c. * NEWS: Mention rl78 as a new target.
2012-02-15 * frame.c (find_frame_sal): Initialize sal->pspace field from frameAleksandar Ristovski6-0/+75
data. * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL. testuite: * gdb.base/break-inline.exp: New file. * gdb.base/break-inline.c: New file.
2012-02-15 PR gdb/12659:Tom Tromey4-8/+17
* infcmd.c (registers_info): Print just the current register's name. gdb/testsuite * gdb.base/pc-fp.exp: Add "info register" tests.