aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-06 PR ld/13329Alan Modra15-266/+316
ld/ * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2. (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void. (get_symbols): Add def_ironly_exp param. Return that value for syms exported from shared libs. (get_symbols_v1, get_symbols_v2): New wrapper functions. * testplug.c: Update for above changes. ld/testsuite/ * ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d, * ld-plugin/plugin-4.d, * ld-plugin/plugin-5.d, * ld-plugin/plugin-6.d, * ld-plugin/plugin-7.d, * ld-plugin/plugin-8.d, * ld-plugin/plugin-9.d, * ld-plugin/plugin-10.d, * ld-plugin/plugin-11.d: Update.
2011-10-06gas/testsuite/Jan Beulich9-63/+150
2011-09-28 Jan Beulich <jbeulich@suse.com> * gas/ppc/476.s: Fix lswi first operand. * gas/ppc/476.d: Adjust expected output. * gas/ppc/a2.s: Fix lswi first operand. * gas/ppc/a2.d: Adjust expected output. * gas/ppc/power6.s: Fix lfdpx first operand. * gas/ppc/power6.d: Adjust expected output. opcodes/ 2011-09-28 Jan Beulich <jbeulich@suse.com> * ppc-opc.c (insert_nbi, insert_rbx, FRAp, FRBp, FRSp, FRTp, NBI, RAX, RBX): New. (insert_bo, insert_boe): Reject bcctr with bit 2 in bo unset. (powerpc_opcodes): Use RAX for second and RBXC for third operand of lswx. Use NBI for third operand of lswi. Use FRTp for first operand of lfdp and lfdpx. Use FRSp for first operand of stfdp and stfdpx, and mark them as invalid on POWER7. Use FRTp, FRAp, and FRBp repsectively on DFP quad instructions.
2011-10-06 * coffgen.c (coff_write_alien_symbol): Don't writeKai Tietz2-0/+24
symbol for discarded sections, if strip_discarded isn't explicit set to false. (coff_write_native_symbol): Likewise.
2011-10-06*** empty log message ***gdbadmin1-1/+1
2011-10-05daily updateAlan Modra1-1/+1
2011-10-05Add missing ChangeLog entries.H.J. Lu2-0/+20
2011-10-05 Add tests for passing of environment variables to inferior.Pierre Muller3-0/+174
* gdb.base/testenv.c: New test source. * gdb.base/testenv.exp: New expect test.
2011-10-05 * readelf.c (get_machine_dlags): Add support for RX's PID mode.Nick Clifton14-43/+292
* ld-scripts/phdrs.exp: Expect to fail for the RX. * elf32-rx.c: Add support for PID mode. (rx_elf_relocate_section): Add checks for unsafe PID relocations. Include addend in R_RX_SYM relocations. * config/rx-defs.h (rx_pid_register): New. (rx_gp_register): New. * config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg. (displacement): Add PID support. * config/tc-rx.c (rx_pid_mode): New. (rx_num_int_regs): New. (rx_pid_register): New. (rx_gp_register): New. (options): Add -mpid and -mint-register= options. (md_longopts): Likewise. (md_parse_option): Likewise. (md_show_usage): Likewise. (rx_pid_symbol): New. (rx_pidreg_symbol): New. (rx_gpreg_symbol): New. (md_begin): Support PID. (rx_validate_fix_sub): Support PID. (tc_gen_reloc): Support PID. * doc/c-rx.texi: Document PID support. * rx.h (E_FLAG_RX_PID): New.
2011-10-052011-10-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+31
* ada-tasks.c (read_atcb): Make ravenscar_task_name static. Extract the ravenscar task name from the symbol for the atcb.
2011-10-05sim: merge changes from common.m4 back into SIM_AC_COMMONMike Frysinger2-0/+13
Seems some fixes were added to the common.m4 file but not the SIM_AC_COMMON macro. Keep the two in sync since they're supposed to be the same thing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-05*** empty log message ***gdbadmin1-1/+1
2011-10-04daily updateAlan Modra1-1/+1
2011-10-04* gdb.python/py-value.c (main): Break before return.Paul Koning2-1/+8
2011-10-04* python/py-type.c (typy_make_iter): Add forward declaration.Paul Koning2-32/+15
(typy_fields_items): Use the gdb.Type iterator.
2011-10-04* NEWS: Add entry for Python gdb.Type mapping methods.Paul Koning2-0/+9
2011-10-04Fix misplaced documentation entry (Paul Koning, 2011-09-28)Paul Koning2-2/+5
2011-10-04binutils/Carlos O'Donell6-4/+74
2011-10-04 Paul Woegerer <paul_woegerer@mentor.com> Carlos O'Donell <carlos@codesourcery.com> * dwarf.c (display_debug_lines_decoded): Index directory_table with directory_index from file_table entry. binutils/testsuite/ 2011-10-04 Carlos O'Donell <carlos@codesourcery.com> * binutils-all/dw2-decodedline.S: New file. * binutils-all/objdump.WL: New file. * binutils-all/objdump.exp: Update copyright year. New test case for -WL.
2011-10-042011-10-04 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget10-10/+53
PR python/12691: Add the inferior to Python exited event * python/py-exitedevent.c (create_exited_event_object): Add inferior to exited_event. * python/py-event.h (emit_exited_event): Likewise * python/-inferior.c (python_inferior_exit): Likewise 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.python/py-events.exp: Test the inferior attribute of exited event with a fork. * gdb.python/py-events.py: Print inferior number on exit. * gdb.python/py-events.c: Fork the inferior. 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.texinfo (Events In Python): Describe exited inferior attribute.
2011-10-04*** empty log message ***gdbadmin1-1/+1
2011-10-03daily updateAlan Modra1-1/+1
2011-10-03[doco] rephrase `presence of' with `support for'.Joel Brobecker2-6/+12
gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Miscellaneous Commands): Minor rephasing.
2011-10-03[Ada/doco] Document the new -ada-task-info GDB/MI command.Joel Brobecker2-1/+87
gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Ada Tasking Commands): New node. (GDB/MI Miscellaneous Commands): Add `ada-task-info' as possible feature returned by the `-list-features' command.
2011-10-03[Ada] Add field "thread-id" in -ada-task-info outputJoel Brobecker2-2/+36
This patch enhances the -ada-task-info command, adding a new field called "thread-id" in the command output. This field provides the ID of the task's corresponding thread (if that information could not be determined, the field is omitted). This field is useful in the context of GDB/MI users, because it allows a quick translation from Ada task to thread, and thus easy use of all the commands that take a --thread argument. gdb/ChangeLog: * ada-tasks.c (print_ada_task_info): Add "thread-id" field in output of -ada-task-info GDB/MI command.
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