aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-03[Ada] New GDB/MI command: -ada-tasks-infoJoel Brobecker6-1/+33
This patch introduces a new GDB/MI command: -ada-tasks-info, which is meant to be the MI equivalent of the CLI `info tasks' command. This new command returns an array, with each row corresponding to one task. For now, the columns of the array corresponds to the columns displayed in the CLI output. gdb/ChangeLog: * ada-lang.h (struct inferior): Declare. (print_ada_task_info): Add declaration. * ada-tasks.c (print_ada_task_info): Make non-static. * mi/mi-cmds.c (mi_cmds): Add "ada-task-info". * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration. * mi/mi-main.c: #include "ada-lang.h". (mi_cmd_list_features): Add "ada-task-info" to the list of supported features. (mi_cmd_ada_task_info): New function.
2011-10-03Crash sourcing Python script on WindowsJoel Brobecker2-2/+48
gdb/ChangeLog: * python/python.c (python_run_simple_file): New function. (source_python_script, source_python_script_for_objfile): Replace call to PyRun_SimpleFile by call to python_run_simple_file.
2011-10-03* gdb.base/jit.exp: Add testcase name to log messageEdjunior Barbosa Machado2-2/+6
2011-10-03 * options.cc (parse_uint): Fix dereference of RETVAL.Diego Novillo2-1/+5
2011-10-03* gdb.python/py-value.expPaul Koning2-0/+20
(python inval = gdb.parse_and_eval('*(int*)0')) (python argc_lazy = gdb.parse_and_eval('argc'), sanity check argc) (set argc=2, python print argc_lazy): New tests.
2011-10-03* python/py-value.c (valpy_get_address): Use Py_XINCREF.Paul Koning2-1/+14
(value_to_value_object): Fetch value if it was lazy.
2011-10-03*** empty log message ***gdbadmin1-1/+1
2011-10-02daily updateAlan Modra1-1/+1
2011-10-02gdb/Jan Kratochvil2-20/+20
Code cleanup. * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. Rearrange the code for it.
2011-10-02thread-specific breakpoints not saved properly by save-breakpointJoel Brobecker5-0/+115
Initially, I noticed that the save command was often missing new lines in the file that it generated. For instance, consider: % gdb save-bp (gdb) b break_me (gdb) b save-bp.c:27 (gdb) save breakpoints bps The contents of the bps file would be: % cat bps break break_mebreak save-bp.c:27 Looking further into the problem, I realized that the missing newlines are just a consequence of a missing call to print_recreate_thread. After having generated the breakpoint location in the break command, we cannot put a new line until we have looked at whether we need to add a 'thread NUM' argument. gdb/ChangeLog: * breakpoint.c (bkpt_print_recreate): Add call to print_recreate_thread. gdb/testsuite/ChangeLog: * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files.
2011-10-02*** empty log message ***gdbadmin1-1/+1
2011-10-01daily updateAlan Modra1-1/+1
2011-10-01gdb/testsuite/Jan Kratochvil2-1/+27
* gdb.python/py-value.exp (test_value_in_inferior): New variable can_read_0, test for it. (python print gdb.parse_and_eval('*(int*)0')): Rename to ... (parse_and_eval with memory error): ... here, make it untested if can_read_0.
2011-10-01*** empty log message ***gdbadmin1-1/+1
2011-10-01daily updateAlan Modra1-1/+1
2011-09-30 * binutils/dwarf.h (dwarf_section_display_enum): Add missing enumCary Coutant2-0/+6
constant.
2011-09-30gdb.python/python.exp: fix up raceMarek Polacek2-2/+19
2011-09-302011-09-30 Tristan Gingold <gingold@adacore.com>Tristan Gingold12-72/+205
* dwarf2.c (struct dwarf2_debug): Add field debug_sections. (read_section): Add sec argument. Adjust the code to get section names from it. (read_indirect_string): Adjust call to read_section. (read_abbrevs): Ditto. (decode_line_info): Ditto. (read_debug_ranges): Ditto. (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove. (find_debug_info): Add debug_sections parameter. Use it instead the above macros. (place_sections): Get section names from stash. (find_line): Add debug_sections argument. Initialize debug_sections field of stash from it. Adjust calls to find_debug_info. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. Adjust call to find_line. (_bfd_dwarf2_find_line): Adjust call to find_line. * libcoff-in.h (struct dwarf_debug_section): New declaration. (coff_find_nearest_line_with_names): Likewise. * libcoff.h: Regenerate. * libbfd-in.h (struct dwarf_debug_section): Move declaration. (dwarf_debug_sections): Likewise. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. * libbfd.h: Regenerate. * elf.c (_bfd_elf_find_nearest_line): Adjust call to _bfd_dwarf2_find_nearest_line. * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto. * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto. * elf32-arm.c (elf32_arm_find_nearest_line): Ditto. * coffgen.c (coff_find_nearest_line_with_names): New function. (coff_find_nearest_line): Calls coff_find_nearest_line_with_names. * coff-rs6000.c (xcoff_debug_sections): New constant. (xcoff_find_nearest_line): New function. (rs6000coff_vec): Use xcoff_find_nearest_line. (pmac_xcoff_vec): Ditto.
2011-09-30 PR ld/13235Alan Modra7-112/+126
bfd/ * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2. (ppc64_elf_edit_toc): Check HA relocs. (ha_reloc_match): Delete function. (ppc64_elf_relocate_section): Remove delayed HA nop optimization. Instead do it and low part optimization based on ha_relocs_not_using_r2. ld/testsuite/ * ld-powerpc/tocopt.d: Update. * ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test. * ld-powerpc/powerpc.exp: Run new test.
2011-09-30gdbserver: add support for FDPIC loadmapsMike Frysinger4-11/+50
The DSBT support is very close to the FDPIC code, so extend the existing loadmap support to work with FDPIC loadmaps too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-30*** empty log message ***gdbadmin1-1/+1
2011-09-30daily updateAlan Modra1-1/+1
2011-09-292011-09-29 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam12-18/+355
* layout.h (section_order_map_): New member. (get_section_order_map): New member function. * output.cc (Output_section::add_input_section): Check for patterns only when --section-ordering-file is specified. * gold.cc (queue_middle_tasks): Delay updating order of sections till output_sections have been formed. * layout.cc (Layout_Layout): Initialize section_order_map_. * plugin.cc (update_section_order): Store order in order_map. Do not update the order. * testsuite/Makefile.am: Add test case for plugin_final_layout. * testsuite/Makefile.in: Regenerate. * testsuite/plugin_section_order.c: New file. * testsuite/plugin_final_layout.cc: New file. * testsuite/plugin_final_layout.sh: New file.
2011-09-29 * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):Cary Coutant3-1/+22
Check for NULL. * gold/symtab.cc (Symbol_table::add_from_relobj): Ignore version symbols during incremental update. (Symbol_table::add_from_dynobj): Likewise.
2011-09-29 * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): AllowJoseph Myers2-5/+7
for 64-bit multilibs from i?86-* targets.
2011-09-29lib/gdb.exp: Fix a typoMarek Polacek2-1/+5
2011-09-29gdb.base/foll-fork.exp: fix up raceMarek Polacek2-2/+7
2011-09-29 PR ld/13233Alan Modra2-2/+9
* elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member debug and special section groups.
2011-09-29sim: bfin: use store buffer for VIT_MAX insnsMike Frysinger4-2/+63
The VIT_MAX insns can be used in parallel, so we need to use the store buffer so we don't clobber the output register before we get a chance to do a memory store with it. Reported-by: Kai Iskratsch <kai@stella.at> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-29gdb/doc/Yao Qi2-2/+7
* gdb.texinfo (Files): Update options for `add-symbol-file'. Add one space after option `-s'. Remove @r{} markup.
2011-09-29gdb/Yao Qi2-1/+5
* symfile.c (add_symbol_file_command): Update message on usage.
2011-09-29Fix --gc-sections failure with symbol versioning.H.J. Lu6-5/+39
bfd/ 2011-09-28 H.J. Lu <hongjiu.lu@intel.com> PR ld/13195 * elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when clearing def_dynamic. (elf_link_add_object_symbols): Likewise. Set dynamic_def when setting def_dynamic. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is versioned. ld/testsuite/ 2011-09-28 H.J. Lu <hongjiu.lu@intel.com> PR ld/13195 * ld-elf/elf.exp: Add a C link testcase for PR ld/13195. * ld-elf/pr13195.c: New. * ld-elf/pr13195.d: Likewise. * ld-elf/pr13195.s: Likewise. * ld-elf/pr13195.t: Likewise.
2011-09-29*** empty log message ***gdbadmin1-1/+1
2011-09-29daily updateAlan Modra1-1/+1
2011-09-28* gdb.python/py-type.c (enum E): New.Paul Koning3-1/+40
* gdb.python/py-type.exp (test_fields): Add tests for Python mapping access to fields. (test_enums): New test for field access on enums.
2011-09-28* python/py-type.c (make_fielditem, typy_field_names, typy_items)Paul Koning4-25/+425
(typy_length, typy_get, typy_has_key, typy_make_iter) (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter) (typy_iterator_iter, typy_iterator_iternext) (typy_iterator_dealloc): New functions to implement standard Python mapping methods on gdb.Type object. (gdb.TypeIterator): New Python type. * python/python-internal.h (gdbpy_iter_kind): New enum. * doc/gdb.texinfo (gdb.Type): Document field access by dictionary key syntax.
2011-09-28merge from gccDJ Delorie6-0/+170
2011-09-28Fix complex floats on sparc.David S. Miller4-10/+97
* sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM, SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums. * sparc-tdep.c (sparc_complex_floating_p): New function. (sparc32_store_arguments): Handle complex floats. (sparc32_extract_return_value): Likewise. (sparc32_store_return_value): Likewise. (sparc32_stabs_argument_has_addr): Likewise. * sparc64-tdep.c (sparc64_complex_floating_p): New function. (sparc64_store_floating_fields): Handle complex floats. (sparc64_store_arguments): Likewise. (sparc64_store_return_value): Likewise.
2011-09-28 * binutils/testsuite/binutils-all/elfedit-4.d: Give test a unique name.Matthew Gretton-Dann2-1/+5
2011-09-28Another typo ... :(Kai Tietz1-2/+1
2011-09-28 * gas/pe/section-exclude.d: Correct testcase.Kai Tietz2-4/+6
2011-09-28Support "set environment" and "unset environment" in MinGW builds.Eli Zaretskii2-1/+52
* windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from before the change on 2006-12-09. (windows_create_inferior) [!__CYGWIN__]: Restore code that generates the environment block for CreateProcessA, modulo the Cygwin-specific parts that are not needed here.
2011-09-282011-09-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+5
* od-xcoff.c (dump_xcoff32_aout_header): Fix typo.
2011-09-28 * symtab.cc (Symbol_table::define_special_symbol): AlwaysIan Lance Taylor2-1/+9
canonicalize version string.
2011-09-28*** empty log message ***gdbadmin1-1/+1
2011-09-28daily updateAlan Modra1-1/+1
2011-09-272011-09-27 Kai Tietz <ktietz@redhat.com>Kai Tietz6-0/+40
* config/obj-coff.c (obj_coff_section): Add 'e' as specifier for marking section SEC_EXCLUDE. 2011-09-27 Kai Tietz <ktietz@redhat.com> * gas/pe/pe.exp: Add new testcase. * gas/pe/section-exclude.d: New file. * gas/pe/section-exclude.s: New file.
2011-09-27 * coffcode.h (sec_to_styp_flags): HandleKai Tietz2-2/+14
SEC_LINK_DUPLICATES_SAME_CONTENTS, and SEC_LINK_DUPLICATES_SAME_SIZE.
2011-09-27 * scripttempl/pe.sc (.text): Add support forKai Tietz3-4/+14
.gnu.linkonce.t.* section. (.debug_info): Only use .gnu.linkonce.wi.* for relocating. * scripttempl/pep.sc: Likewise.
2011-09-272011-09-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-39/+109
* target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO. * solib-darwin.c (DYLD_VERSION_MAX): Update number. (darwin_solib_get_all_image_info_addr_at_init): New function. (darwin_solib_read_all_image_info_addr): Likewise. (darwin_solib_create_inferior_hook): Use the above two functions. * darwin-nat.c (darwin_execvp): Renames retval to res. (darwin_read_write_inferior): Update comment. (darwin_read_dyld_info): New function. (darwin_xfer_partial): Handle DYLD_INFO.