aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-062012-06-05 Jing Yu <jingyu@google.com>Doug Kwan2-2/+7
* gold.h (textdomain): Add do {} to empty while(0). (bindtextdomain): Likewise.
2012-06-06 * ld-mmix/bpo-9.d: Update.Alan Modra5-11/+17
* ld-mmix/bpo-10.d: Update. * ld-mmix/bpo-11.d: Update. * ld-mmix/sec-7m.d: Update.
2012-06-06 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout fromStan Shebs2-6/+10
gdb_stdout.
2012-06-06*** empty log message ***gdbadmin1-1/+1
2012-06-06daily updateAlan Modra1-1/+1
2012-06-05gdb/Jan Kratochvil6-14/+26
* corefile.c (read_memory, read_stack, write_memory): Accept LEN argument as ssize_t. * gdbcore.h (read_memory, read_stack, write_memory): Likewise. * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise. * target.c (target_read_stack, target_write_memory) (target_write_raw_memory): Likewise. * target.h (target_read_stack, target_write_memory) (target_write_raw_memory): Likewise.
2012-06-05gdb/Jan Kratochvil4-5/+12
* symfile-mem.c: Change gdb_static_assert to ssize_t. (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t. * target.c (target_read_memory): Change LEN to ssize_t. * target.h (target_read_memory): Change LEN to ssize_t.
2012-06-052012-06-05 Pedro Alves <palves@redhat.com>Pedro Alves2-6/+20
PR backtrace/13866 * breakpoint.c (until_break_command): Only fetch the selected frame after decode_line_1.
2012-06-05gdb/testsuite/Jan Kratochvil2-1/+13
* gdb.base/freebpcmd.exp (set lines): Check valid range of I. (run program with breakpoint commands): XFAIl if it is not.
2012-06-052012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>Pedro Alves2-1/+7
* solib-svr4.c (enable_break): Don't fallback to setting the solib event breakpoint at _start, __start or main if a program interpreter is not found.
2012-06-05Windows-specific iterate_over_objfiles_in_search_orderJoel Brobecker5-0/+69
This patch sets the windows target to use their own version of the iterate_over_objfiles_in_search_order gdbarch method, in order to make global symbol searches sensitive to the current objfile. gdb/ChangeLog: * windows-tdep.h (windows_iterate_over_objfiles_in_search_order): Add declaration. * windows-tdep.c: #include "objfiles.h". (windows_iterate_over_objfiles_in_search_order): New function. * amd64-windows-tdep.c (amd64_windows_init_abi): Set iterate_over_objfiles_in_search_order gdbarch method to windows_iterate_over_objfiles_in_search_order. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2012-06-05New "iterate_over_objfiles_in_search_order" gdbarch method.Joel Brobecker8-34/+253
This patch introduces the "iterate_over_objfiles_in_search_order" gdbarch method, as well as its default implementation, and converts the areas where it will matter to using this gdbarch method. The default method implementation is the only one installed, and the changes should have no functional impact in terms of behavior. This only paves the way for the architectures that will need their own version. gdb/ChangeLog: * gdbarch.sh: Add generation of "iterate_over_objfiles_in_search_order_cb_ftype" typedef in gdbarch.h. Add include of "objfiles.h" in gdbarch.c. (iterate_over_objfiles_in_search_order): New gdbarch method. * gdbarch.h, gdbarch.c: Regenerate. * objfiles.h (default_iterate_over_objfiles_in_search_order): Add declaration. * objfiles.c (default_iterate_over_objfiles_in_search_order): New function. * symtab.c (lookup_symbol_aux_objfile): New function, extracted out of lookup_symbol_aux_symtabs. (lookup_symbol_aux_symtabs): Replace extracted-out code by call to lookup_symbol_aux_objfile. (struct global_sym_lookup_data): New type. (lookup_symbol_global_iterator_cb): New function. (lookup_symbol_global): Search for symbol using gdbarch_iterate_over_objfiles_in_search_order and lookup_symbol_global_iterator_cb. * findvar.c (struct minsym_lookup_data): New type. (minsym_lookup_iterator_cb): New function. (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the symbol's address via gdbarch_iterate_over_objfiles_in_search_order and minsym_lookup_iterator_cb.
2012-06-05Revert "Search global symbols from the expression's block objfile first."Joel Brobecker3-83/+47
The search order used in this patch breaks global symbol lookups for certain symbols when copy-relocation is used. A slightly different search order will be implemented later. gdb/ChangeLog: Revert the following patch: * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols, try locating the symbol in the symbol's own objfile first, before extending the search to all objfiles. * symtab.c (lookup_symbol_aux_objfile): New function, extracted out of lookup_symbol_aux_symtabs. (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile". Replace extracted-out code by call to lookup_symbol_aux_objfile. Do not search EXCLUDE_OBJFILE. (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs. (lookup_symbol_global): Search for matches in the block's objfile first, before searching all other objfiles.
2012-06-05Make ctxobj.exp and print-file-var.exp work on all platforms.Joel Brobecker6-26/+103
This patch adjusts the testing strategy used in a couple of testcases where we are trying to print the value of a global variable defined at multiple locations. The problem is that the actual value depends on the platform. So instead of hard-coding the expected value in the testcase script, we use local variables (in the inferior) holding the correct value, and we compare the global variable's value with the local variable's value. gdb/testsuite/ChangeLog: * gdb.base/ctxobj-f.c (GET_VERSION): Introduce local variable and add comment. * gdb.base/ctxobj-m.c (main): Rewrite, and add comment. * gdb.base/ctxobj.exp: Insert breakpoint in ctxobj-f.c using "STOP" marker. Adjust testing strategy to make it work on all targets. * gdb.base/print-file-var-main.c (main): Rewrite using local variables and adjust get_version_2's return value check. Add small comment. * gdb.base/print-file-var.exp: Insert breakpoint using "STOP" marker. Adjust testing strategy to make it work on all targets.
2012-06-05stop parsing breakpoint command if invalid keyword foundJoel Brobecker5-1/+130
With an Ada program, trying to break on a specific Ada task, but with the wrong capitalization of the `task' keyword, we currently get only pieces of the "garbage" that caused the error: (gdb) b *rendez_vous'address TASK 2 Garbage 2 at end of command Pushing this a little further: (gdb) b *rendez_vous'address TASK Task TaSK 2 Garbage 2 at end of command Another interesting failure mode: (gdb) b *rendez_vous'address TASK if Argument required (expression to compute). The parser skipped `TASK', then found the `if' keyword, and thus started looking for a condition. This patch fixes the problem by aborting the parsing as soon as an invalid keyword is found. This makes it consistent with the case where the REST parameter is passed as NULL (where an error is raised immediately after seeing the first invalid keyword). It also introduces a new testcase that reproduces all above scenarios. gdb/ChangeLog: * breakpoint.c (find_condition_and_thread): Stop parsing as soon as the first invalid keyword is found. gdb/testsuite/ChangeLog: * gdb.ada/bad-task-bp-keyword: New testcase.
2012-06-05copyright.py: Add gdb/CONTRIBUTE to EXCLUDE_LIST.Joel Brobecker2-0/+5
Normally, all files should have a copyright header, but gdb/CONTRIBUTE currently doesn't, and it adding one at the top of the file would probably be more pollution than information. So don't require a copyright header for now. gdb/ChangeLog: * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2012-06-05Add copyright header to config/djgpp/djcheck.sh.Joel Brobecker2-0/+19
gdb/ChangeLog: * config/djgpp/djcheck.sh: Add copyright header.
2012-06-05stubs/ia64vms-stub.c: Fix copyright header.Joel Brobecker2-1/+6
There is an extra coma after the copyright year which tricks gnulib's update-copyright script. gdb/stubs/ChangeLog: * ia64vms-stub.c: Adjust copyright header to follow convention expected by gnulib's update-copyright script.
2012-06-05copyright.py: Update path to gnulib import.Joel Brobecker2-2/+9
The location where we store the gnulib import has changed. This patch updates accordingly the path to gnulib's update-copyright script. gdb/ChangeLog: * copyright.py (update_files, main): Fix path to update-copyright script.
2012-06-05copyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.Joel Brobecker2-1/+15
gdb/ChangeLog: * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant. (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files for which a reminder to update by hand is printed.
2012-06-05 * buildsym.c (make_blockvector): Add comment.Doug Evans2-2/+9
2012-06-05*** empty log message ***gdbadmin1-1/+1
2012-06-05daily updateAlan Modra1-1/+1
2012-06-04 * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): CallCary Coutant2-1/+6
has_dynsym_index.
2012-06-042012-06-04 Pedro Alves <palves@redhat.com>Pedro Alves7-24/+37
* arch-utils.c (default_gdb_signal_from_target): Delete. * arch-utils.h (default_gdb_signal_from_target): Delete. * corelow.c (core_open) <signal mapping>: Extended comment. Check gdbarch_gdb_signal_from_target_p. * gdbarch.sh (gdb_signal_from_target): Make it an M method (with predicate). * gdbarch.h: Regenerate. * gdbarch.c: Regenerate.
2012-06-042012-06-04 Pedro Alves <palves@redhat.com>Pedro Alves3-8/+20
* gdbarch.sh (gdb_signal_from_target): Mention that the implementation of the method must be host independent. * gdbarch.h: Regenerate.
2012-06-04bfd/Jan Kratochvil8-8/+49
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument of target_read_memory as bfd_size_type. * bfd-in2.h: Regenerate. * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN argument of target_read_memory as bfd_size_type. (_bfd_elf32_bfd_from_remote_memory): Likewise. (_bfd_elf64_bfd_from_remote_memory): Likewise. * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. gdb/ * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd parameters. (target_read_memory_bfd): New function. (symbol_file_add_from_memory): Use it.
2012-06-04 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvectorDoug Evans2-12/+16
of primary symtab. (basic_lookup_transparent_type): Ditto.
2012-06-04 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.Doug Evans5-53/+61
(ALL_PRIMARY_SYMTABS): Use it. (ALL_PSPACE_PRIMARY_SYMTABS): Ditto. * dwarf2read.c (dw2_find_symbol_file): Ditto. * linespec.c (iterate_over_all_matching_symtabs): Ditto. * symtab.c (lookup_symbol_aux_objfile): Ditto. (basic_lookup_transparent_type): Ditto.
2012-06-04daily updateAlan Modra1-1/+1
2012-06-04*** empty log message ***gdbadmin1-1/+1
2012-06-03gdb/testsuite/Jan Kratochvil2-24/+34
* gdb.base/code_elim.exp (add-symbol-file ${testfile1} 0x100000) (add-symbol-file ${testfile2} 0x200000): Wrap them to 'order1' and 'order2'. (order1: add-symbol-file ${testfile1} 0x100000) (order1: add-symbol-file ${testfile2} 0x200000) (order2: add-symbol-file ${testfile2} 0x200000) (order2: add-symbol-file ${testfile1} 0x100000): Add -s .data and -s .bss as appropriate.
2012-06-03gdb/testsuite/Jan Kratochvil2-22/+39
* gdb.base/code_elim.exp (add-symbol-file ${testfile1} 0x100000): Simplify it to ... (symbol-file ${testfile1}): ... here. (test eliminated var my_global_symbol) (test eliminated var my_static_symbol) (test eliminated var my_global_func, get address of main): Wrap them to 'single psymtabs' and 'single symtabs' (get address of my_global_symbol, get address of my_static_symbol) (get address of my_global_func, get address of main): Wrap them to 'order1' and 'order2'.
2012-06-03 PR binutils/13897Alan Modra4-114/+187
* elf.c (elf_find_function): Cache last function sym info. (_bfd_elf_maybe_function_sym): Return function size, pass in section of interest. * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise. (_bfd_elf_maybe_function_sym): Likewise. * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. (opd_entry_value): Add in_code_sec param. Revert caching code. Return -1 if in_code_sec and function found in wrong section. Update all calls.
2012-06-03*** empty log message ***gdbadmin1-1/+1
2012-06-03daily updateAlan Modra1-1/+1
2012-06-02gprof/Andreas Schwab6-6/+16
* Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix. * Makefile.in: Regenerate. ld/ * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix. * Makefile.in: Regenerate.
2012-06-022012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-7/+12
* symtab.c (symbol_demangled_name): New variable `dem_name'. Use it to optimize resolution of demangled name.
2012-06-02*** empty log message ***gdbadmin1-1/+1
2012-06-02daily updateAlan Modra1-1/+1
2012-06-01gdb/Jan Kratochvil4-6/+69
* configure.ac (development): Define new variable. Call AC_CHECK_LIB for mcheck if $development. (ERROR_ON_WARNING): Enable it by default only if $development. * config.in: Regenerate. * configure: Regenerate.
2012-06-01gdb/gdbserver/Jan Kratochvil2-2/+7
Fix gcc -flto compilation warning. * server.c (main): Make variable multi_mode and attach volatile.
2012-06-01bfd/Jan Kratochvil9-10/+28
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument of target_read_memory as size_t. * bfd-in2.h: Regenerate. * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN argument of target_read_memory as size_t. (_bfd_elf32_bfd_from_remote_memory): Likewise. (_bfd_elf64_bfd_from_remote_memory): Likewise. * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. gdb/ * target.c (target_read_memory): Make LEN argument as size_t. * target.h (target_read_memory): Likewise.
2012-06-01gdb/Jan Kratochvil2-2/+6
* tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2012-06-01 PR binutils/13897Alan Modra2-36/+38
* elf64-ppc.c (opd_entry_value): Rewrite cache code.
2012-06-01Revert the last changeH.J. Lu1-2/+2
2012-06-01 * addr2line.c (translate_addresses): Truncate input addresses toAlan Modra2-8/+19
arch_size bits. Avoid undefined shift. Print '?' for zero line.
2012-06-01*** empty log message ***gdbadmin1-1/+1
2012-06-01daily updateAlan Modra1-1/+1
2012-05-31gas/Sean Keys1-28/+24
* tc-xgate.c (md_begin): Refactored code.