aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-29 PR gdb/11557Pedro Alves7-6/+161
gdb/ * regcache.c (registers_changed): Rename to ... (registers_changed_ptid): ... this, and only delete register cache entries matching the ptid filter argument. (registers_changed): Reimplement on top of registers_changed_ptid. * regcache.h (registers_changed_ptid): Declare. * target.c (target_resume): Flush register caches. gdb/testsuite/ * gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New files.
2010-04-29Fix typo in ChangeLog name (non-UTF8 character).Joel Brobecker1-1/+1
Seems to have been inserted accidently.
2010-04-292010-04-29 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon11-18/+974
Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. (SUBDIR_PYTHON_SRCS): Likewise. (py-parameter.o): New rule. * python/py-parameter.c: New file. * python/python-internal.h (gdbpy_initialize_parameter) (gdbpy_parameter, gdbpy_parameter_value) (gdbpy_parse_command_name): Declare. * python/py-cmd.c (parse_command_name): Rename to gdbpy_parse_command_name. (gdbpy_parse_command_name): Accept a starting list parameter and use over cmdlist. (cmdpy_init): Use gdbpy_parse_command_name. * python/python.c (parameter_to_python): Rename to gdbpy_parameter_to_python. Accept enum var_types and value. (gdbpy_parameter): Use gdbpy_parameter_value. (_initialize_python): Call gdbpy_initialize_parameters. 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-param.exp: New File. 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (Parameters In Python): New Node.
2010-04-29 * gdb/MAINTAINERS: Add myself for write after approval privileges.Matthew Gretton-Dann2-0/+5
2010-04-29D language support.Joel Brobecker17-9/+504
gdb/ChangeLog: D language support. * Makefile.in (SFILES): Add d-lang.c d-valprint.c. (COMMON_OBS): Add d-lang.o d-valprint.o. (HFILES_NO_SRCDIR): Add d-lang.h. * NEWS: Mention D language support. * c-lang.c (c_emit_char, exp_descriptor_c): Make public. * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. * d-lang.c: New file. * d-lang.h: New file. * d-valprint.c: New file. * defs.h (enum language): Add language_d. * dwarf2read.c (set_cu_language): Add DW_LANG_D. * language.c (binop_result_type, integral_type, character_type) (string_type, boolean_type, structured_type): Add language_d. * symfile.c (init_filename_language_table): Add language_d. * symtab.c: Include d-lang.h. (symbol_init_language_specific, symbol_find_demangled_name) (symbol_natural_name, lookup_symbol_in_language) (symbol_demangled_name, symbol_matches_domain): Add language_d. gdb/doc/ChangeLog: * gdb.texinfo: (Summary) Add mention about D language support. (Filenames): Add D suffixes. (D): New node. gdb/testsuite/ChangeLog: * gdb.base/default.exp: Fix "set language" test.
2010-04-29 * write.c (fixup_segment): Do not assume we know the section aNick Clifton9-32/+110
defined weak symbol is in. * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat weak symbols as not known to be in the same section, even if they are defined. * gas/arm/weakdef-1.s: New. * gas/arm/weakdef-1.d: New. * gas/arm/weakdef-2.s: New. * gas/arm/weakdef-2.d: New. * gas/arm/weakdef-2.l: New.
2010-04-29*** empty log message ***gdbadmin1-1/+1
2010-04-29daily updateAlan Modra1-1/+1
2010-04-282010-04-27 Kai Tietz <kai.tietz@onevision.com>Kai Tietz3-14/+27
* pe-dll.c (_nm_-symbols): Use always underscored variant for symbols. (__imp_-symbols): Likewise. (___imp_-symbols): Likewise. * NEWS: Mention ABI change for x64 PE-COFF. PS: Sorry, missed this part of approved patch.
2010-04-282010-04-28 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-4/+5
* config.bfd: Correct accidential reverted patch about vax*-*-*vms*.
2010-04-28*** empty log message ***gdbadmin1-1/+1
2010-04-28daily updateAlan Modra1-1/+1
2010-04-27gas:Joseph Myers9-26/+960
* config/tc-tic6x.h (tic6x_label_list): New. (tic6x_segment_info_type): Keep a list of labels and a current frag instead of a boolean for whether labels seen and a count of instructions. (tic6x_frag_info, TC_FRAG_TYPE, TC_FRAG_INIT, tic6x_frag_init, md_do_align, tic6x_do_align, md_end, tic6x_end): New. * config/tc-tic6x.c (tic6x_frob_label): Put label on list. (tic6x_cleanup): Correct comment. (tic6x_free_label_list): New. (tic6x_cons_align): Free label list and update for tic6x_segment_info_type changes. (tic6x_do_align): New. (md_assemble): Handle list of labels and saved frag for execute packet. Create machine-dependent frag for new execute packet and adjust labels accordingly. (tic6x_adjust_section, tic6x_frag_init, tic6x_end): New. (md_convert_frag, md_estimate_size_before_relax): Update comments. gas/testsuite: * gas/tic6x/align-1-be.d, gas/tic6x/align-1.d, gas/tic6x/align-1.s, gas/tic6x/align-2.d, gas/tic6x/align-2.s: New.
2010-04-27Fix author list for one of the patches.Joel Brobecker1-1/+2
I was the committer, not the author.
2010-04-27Expand description of solib-svr4.c:solib_svr4_r_mapJoel Brobecker2-1/+6
2010-04-27 Joel Brobecker <brobecker@adacore.com> * solib-svr4.c (solib_svr4_r_map): Expand function description.
2010-04-27Associate .dg files to AdaJoel Brobecker2-0/+6
The .dg files are files containing the user's code, after the GNAT expander was applied. The expansion replaces some of the complex features by simpler pseudo-Ada code and the user can ask to see and debug that code using the -gnatDG option... For instance, given the following code where Circle is a tagged type (aka as a class type in C++): procedure Foo is My_Shape : Circle := (X => 1, Y => 2, R => 3); X : Integer; begin X := Position_X (My_Shape); end Foo; The expansion results in: procedure foo is my_shape : pck__circle := ( _parent => ( _tag => pck__circleP, x => 1, y => 2), r => 3); x : integer; begin x := pck__position_x (my_shape); return; end foo; 2010-04-27 Joel Brobecker <brobecker@adacore.com> * symfile.c (init_filename_language_table): Register .dg files with language_ada.
2010-04-27Document special use of target_type field in Ada structs.Joel Brobecker2-0/+8
This is a comment that I wrote not too long ago, I believe, as part of a submission process, and somehow did not get to commit. It explains how the TYPE_TARGET_TYPE is used by Ada in the case of dynamic records/ unions. 2010-04-24 Joel Brobecker <brobecker@adacore.com> * gdbtypes.h (struct main_type): Expand comment about target_type field.
2010-04-27Check library name rather than member name when rereading symbols.Joel Brobecker2-5/+9
On Darwin, we have lots of complaints being emitted when restarting a program: (gdb) start `a-except.o' has disappeared; keeping its symbols. `unwind-dw2.o' has disappeared; keeping its symbols. `s-except.o' has disappeared; keeping its symbols. `s-traceb.o' has disappeared; keeping its symbols. These object files are part of the GNAT runtime, and were never available. The warning comes from the fact that we're checking whether the .o files in the GNAT shared runtime have changed whereas we should be checking whether the GNAT shared library itself has changed. This patch implements this. Although it is really only useful on a platform such as Darwin (debug info stored in .o files), we believe that this is the right thing to do in general. This change should be a noop for all the other platforms in any case. gdb/ChangeLog (from Tristan Gingold & Pedro Alves): * symfile.c (reread_symbols): Also search for file in libraries. Update comment. Tested on x86_64-darwin and x86_64-linux.
2010-04-27Add support for x86-lynxos cross debugger (as bareboard x86).Joel Brobecker2-1/+5
This is a fairly simple patch that we have had for a while. LynxOS has relatively few features, from a GDB perspective, and we've been using a bareboard x86 debugger as our LynxOS cross-debugger. So here is a patch that make x86-lynxos an alias of bareboard x86. On the other end of things, I'm still working on gdbserver support for LynxOS - I'm just lacking the time to make significant progress. But this is in the works (in the meantime, we're using gdbserver from gdb-6.8 which is derived work from LinuxWorks' patch). I wasn't sure whether this would be interesting or not for the FSF tree, but since it's simple and unintrusive, I am suggesting it now... Any objection? I wasn't sure whether it warranted a NEWS entry either, since it doesn't really add a new port, just an alias. I suggest the NEWS entry when I'm finally done with the gdbserver port. gdb/ChangeLog: * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets in terms of configuration.
2010-04-27gdb/Jan Kratochvil3-5/+17
* objfiles.c: Include solist.h. (free_all_objfiles): New variable so. Check stale solist objfiles. * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles and no_shared_libraries.
2010-04-272010-04-27 Kai Tietz <kai.tietz@onevision.com>Kai Tietz4-7/+28
* dlltool.c (main): Query for bfd's underscoring default for default target case. 2010-04-27 Kai Tietz <kai.tietz@onevision.com> * binutils-all/dlltool.exp: Allow test for arm-wince-pe target.
2010-04-272010-04-27 Kai Tietz <kai.tietz@onevision.com>Kai Tietz8-6/+56
* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent to USE_MINGW64_LEADING_UNDERSCORES. * pei-x86_64.c (TARGET_UNDERSCORE): Likewise. * config.bfd: Change underscoring default for x64 mingw to false. * coffcode.h (coff_write_relocs): Add check that dereferenced sym_ptr_ptr isn't NULL. * config.in (USE_MINGW64_LEADING_UNDERSCORES): New. * configure: Regenerated. * configure.in: Add option '--enable-leading-mingw64-underscores' and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
2010-04-27ARI warning fix.Joel Brobecker2-1/+7
* python/py-auto-load.c (source_section_scripts): Remove trailing new-line in i18n string.
2010-04-27Properly install gold/ld as default cross linker.H.J. Lu6-12/+28
gold/ 2010-04-27 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (install-exec-local): Properly install gold as default cross linker. * Makefile.in: Regenerated. ld/ 2010-04-27 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (install-exec-local): Properly install ld as default cross linker. * Makefile.in: Regenerated.
2010-04-27 PR gprof/11524Nick Clifton2-3/+8
* corefile.c (core_create_syms_from): Use correct size of buffer.
2010-04-27 PR binutils/11512Nick Clifton2-2/+14
* coffgen.c (coff_find_nearest_line): Incldue the section address of function name symbols in address comparisons.
2010-04-27Updated French and Russian translations.Nick Clifton4-2476/+3436
2010-04-27 * configure.ac (--enable-gold): Support both, both/gold andNick Clifton5-46/+98
both/bfd to add gold to configdirs without removing ld. * configure: Regenerated. * Makefile.def: Add install-gold dependency to install-ld. * Makefile.in: Regenerated.
2010-04-27gold:Nick Clifton10-22/+200
* configure.ac (install_as_default): Define and set to false unless --enable-gold or --enable-gold=both/gold has been specified. * configure: Regenerate. * Makefile.am (install-exec-local): Install the executable as 'ld.gold'. If install_as_default is true then also install it as 'ld'. * Makefile.in: Regenerated. ld: * configure.in (install_as_default): Define and set to true unless --enable-gold=both/gold has been specified. * configure: Regenerate. * Makefile.am (transform): Use ld.bfd as the default name of the linker. (install-exec-local): Also install the executable as a binary named 'ld' if install_as_default is true. * Makefile.in: Regenerate.
2010-04-27*** empty log message ***gdbadmin1-1/+1
2010-04-27daily updateAlan Modra1-1/+1
2010-04-26 * server.c (handle_general_set): Make static.Doug Evans2-1/+4
2010-04-26 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.Doug Evans2-0/+16
2010-04-26 PR breakpoints/11531.Pierre Muller3-0/+110
* gdb.base/gdb11531.c: New file. * gdb.base/gdb11531.exp: New file.
2010-04-26gdbTom Tromey4-29/+67
* cli/cli-decode.c (complete_on_cmdlist): Make two passes over the command list. gdb/testsuite * gdb.base/completion.exp: Add tests for completion and deprecated commands.
2010-04-26merge from gccDJ Delorie2-2/+32
2010-04-26 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.Doug Evans2-18/+22
Print received char after testing for error/eof instead of before. (input_interrupt): Tweak comment.
2010-04-26sim: unify target->subdir handling for default testsMike Frysinger11-248/+461
The testsuite subdir has a note about unifying the target->subdir logic, so do just that. The end goal here is to have `make check` work out of the box without having to delve into dejagnu internals. The target-specific logic is split out of the top level configure.ac file and into a dedicated configure.tgt similar to other subprojects (gdb and ld and etc...) with the difference that this file has to be included at the m4 level instead of the shell level. This is necessary only because autoconf requires AC_CONFIG_SUBDIRS be given a string literal and not a variable value. Then the toplevel and the testsuite configure files pull this in, the sim subdir gets expanded into testsuite/site.exp, and the default sim run code uses this info to set the sim path to the local compiled run file if it hasn't already been specified. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-26gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.pascal/gdb11492.exp (print integer_array, print /d char_array) (print /x char_array): Escape curly brackets.
2010-04-26 *Fix ChangeLog entryPierre Muller1-2/+2
2010-04-26 Removal of config/i386/nm-i386sol2.h native configuration file.Pierre Muller6-26/+10
* config/i386/nm-i386sol2.h: Remove file. * config/i386/i386sol2.mh: Remove NAT_FILE definition. * config/i386/sol2-64.mh: Idem. * config/djgpp/fnchange.lst: Idem. * Makefile.in (HFILES_NO_SRCDIR): Remove reference to that file.
2010-04-26 PR breakpoints/11531.Pierre Muller5-37/+13
* config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove macro definition and related comment. * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. (resume): Remove code and comment related to this macro. doc ChangeLog entry: * gdbint.texinfo (CANNOT_STEP_HW_WATCHPOINTS): Remove explanation of macro deleted from GDB code.
2010-04-26gdb/Jan Kratochvil2-2/+7
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace.
2010-04-26*** empty log message ***gdbadmin1-1/+1
2010-04-26daily updateAlan Modra1-1/+1
2010-04-25*** empty log message ***gdbadmin1-1/+1
2010-04-25daily updateAlan Modra1-1/+1
2010-04-24Restore "call|jmp [xtrn]" in x86 assembler.H.J. Lu5-2/+28
gas/ 2010-04-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/11535 * config/tc-i386-intel.c (intel_state): Add is_indirect. (i386_intel_operand): Initialize intel_state.is_indirect. Check intel_state.is_indirect for "call|jmp [symbol]". gas/testsuite/ 2010-04-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/11535 * gas/i386/intelok.s: Add tests for "call|jmp [xtrn]". * gas/i386/intelok.d: Updated.
2010-04-24 * layout.cc (Layout::layout_reloc): In relocatable link don'tIan Lance Taylor2-5/+19
combine reloc sections for grouped sections.
2010-04-24 * defs.h: Adjust comment.Pedro Alves16-33/+487
* filesystem.h, filesystem.c: New files. * Makefile.in (SFILES): Add filesystem.c. (COMMON_OBS): Add filesystem.o. * solib.c (solib_find): Handle DOS-based filesystems. Handle different target and host path flavours. * arm-symbian-tdep.c (arm_symbian_init_abi): Set has_dos_based_file_system on the gdbarch. * arm-wince-tdep.c (arm_wince_init_abi): Ditto. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. * i386-tdep.c (i386_go32_init_abi): Ditto. * gdbarch.sh (has_dos_based_file_system): New. * gdbarch.h, gdbarch.c: Regenerate. * NEWS: Mention improved support for remote targets with DOS-based filesystems. Mention new `set/show target-file-system-kind' commands. gdb/doc/ * gdb.texinfo (Commands to specify files): Describe what how GDB looks up DOS-based filesystem paths on the system root. Document the new `set/show target-file-system-kind' commands.