aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-07-02(gdb_no_commands_at_breakpoint): Tweak previous patch for win64 whereDoug Evans1-2/+3
sizeof (long) < sizeof (void*).
2012-07-02 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast fromDoug Evans2-2/+8
pointer to int.
2012-07-02Fix ChangeLog entryH.J. Lu1-1/+1
2012-07-02Move rep tests for bsf/bsr/ret to rep-suffixH.J. Lu11-29/+35
* gas/i386/i386.exp: Don't run rep-bsf nor rep-ret. * gas/i386/rep-bsf.d: Removed. * gas/i386/rep-bsf.s: Likewise. * gas/i386/rep-ret.d: Likewise. * gas/i386/rep-ret.s: Likewise. * gas/i386/rep-suffix.d: Updated. * gas/i386/x86-64-rep-suffix.d: Likewise. * gas/i386/ilp32/x86-64-rep-suffix.d: Likewise. * gas/i386/rep-suffix.s: Add tests for bsf, bsr and ret. * i386/x86-64-rep-suffix.s: Likewise.
2012-07-02Replace __end_SECNAME with __stop_SECNAMEH.J. Lu2-1/+5
* ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
2012-07-02 Add target-side support for dynamic printf.Stan Shebs28-384/+1619
* NEWS: Mention the additional style. * breakpoint.h (struct bp_target_info): New fields tcommands, persist. (struct bp_location): New field cmd_bytecode. * breakpoint.c: Include format.h. (disconnected_dprintf): New global. (parse_cmd_to_aexpr): New function. (build_target_command_list): New function. (insert_bp_location): Call it. (remove_breakpoints_pid): Skip dprintf breakpoints. (print_one_breakpoint_location): Ditto. (dprintf_style_agent): New global. (dprintf_style_enums): Add dprintf_style_agent. (update_dprintf_command_list): Add agent case. (agent_printf_command): New function. (_initialize_breakpoint): Add new commands. * common/ax.def (printf): New bytecode. * ax.h (ax_string): Declare. * ax-gdb.h (gen_printf): Declare. * ax-gdb.c: Include cli-utils.h, format.h. (gen_printf): New function. (maint_agent_print_command): New function. (_initialize_ax_gdb): Add maint agent-printf command. * ax-general.c (ax_string): New function. (ax_print): Add printf disassembly. * Makefile.in (SFILES): Add format.c (COMMON_OBS): Add format.o. * common/format.h: New file. * common/format.c: New file. * printcmd.c: Include format.h. (ui_printf): Call parse_format_string. * remote.c (remote_state): New field breakpoint_commands. (PACKET_BreakpointCommands): New enum. (remote_breakpoint_commands_feature): New function. (remote_protocol_features): Add new BreakpointCommands entry. (remote_can_run_breakpoint_commands): New function. (remote_add_target_side_commands): New function. (remote_insert_breakpoint): Call it. (remote_insert_hw_breakpoint): Ditto. (_initialize_remote): Add new packet configuration for target-side breakpoint commands. * target.h (struct target_ops): New field to_can_run_breakpoint_commands. (target_can_run_breakpoint_commands): New macro. * target.c (update_current_target): Handle to_can_run_breakpoint_commands. [gdbserver] * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. (ax.o): Add it to build rule. (ax-ipa.o): Ditto. (OBS): Add format.o. (IPA_OBS): Add format.o. * server.c (handle_query): Claim support for breakpoint commands. (process_point_options): Add command case. (process_serial_event): Leave running if there are printfs in effect. * mem-break.h (any_persistent_commands): Declare. (add_breakpoint_commands): Declare. (gdb_no_commands_at_breakpoint): Declare. (run_breakpoint_commands): Declare. * mem-break.c (struct point_command_list): New struct. (struct breakpoint): New field command_list. (any_persistent_commands): New function. (add_commands_to_breakpoint): New function. (add_breakpoint_commands): New function. (gdb_no_commands_at_breakpoint): New function. (run_breakpoint_commands): New function. * linux-low.c (linux_wait_1): Test for and run breakpoint commands locally. * ax.c: Include format.h. (ax_printf): New function. (gdb_eval_agent_expr): Add printf opcode. [doc] * gdb.texinfo (Dynamic Printf): Mention agent style and disconnected dprintf. (Maintenance Commands): Describe maint agent-printf. (General Query Packets): Mention BreakpointCommands feature. (Packets): Document commands extension to Z0 packet. * agentexpr.texi (Bytecode Descriptions): Document printf bytecode. [testsuite] * gdb.base/dprintf.exp: Add agent style tests.
2012-07-02Add a test for weak aliasH.J. Lu4-0/+37
* ld-elf/data2.c: New file. * ld-elf/weakdef1.c: Likewise. * ld-elf/shared.exp: Add tests for libdata2 and weakdef1.
2012-07-02 * dwarf.c: Include gdb-index.h.Tom Tromey2-16/+50
(display_gdb_index): Handle version 7.
2012-07-02gdb/testsuite/Jan Kratochvil4-3/+35
* gdb.base/stale-infcall.c (infcall): New label test-next. (main): New labels test-pass and test-fail. * gdb.base/stale-infcall.exp: Continue to test-next. Put breakpoint $test_fail_bpnum to test-fail. (test system longjmp tracking support): New test. Delete $test_fail_bpnum. * lib/gdb.exp (gdb_continue_to_breakpoint): Accept also Temporary breakpoint.
2012-07-02gdb/Jan Kratochvil4-26/+38
Execute -ix and -iex only after system and user gdbinit files. * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND processing down after gdbinit files. gdb/doc/ * gdb.texinfo (File Options): Change -ix and -iex commands that apply only after gdbinit files. (Startup): Move -iex and -iex commands down after gdbinit files.
2012-07-02gdb/Jan Kratochvil51-185/+13967
Add fnmatch-gnu module. * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one. * gnulib/configure.ac (AC_INIT): Use now import/memmem.c. * gnulib/aclocal.m4: Regenerate. * gnulib/config.in: Regenerate. * gnulib/configure: Regenerate. * gnulib/import/dummy.c: Remove. * gnulib/import/Makefile.am: Regenerate. * gnulib/import/Makefile.in: Likewise. * gnulib/import/m4/gnulib-cache.m4: Likewise. * gnulib/import/m4/gnulib-comp.m4: Likewise. * gnulib/import/alloca.c: New file. * gnulib/import/alloca.in.h: Likewise. * gnulib/import/config.charset: Likewise. * gnulib/import/fnmatch.c: Likewise. * gnulib/import/fnmatch.in.h: Likewise. * gnulib/import/fnmatch_loop.c: Likewise. * gnulib/import/localcharset.c: Likewise. * gnulib/import/localcharset.h: Likewise. * gnulib/import/m4/alloca.m4: Likewise. * gnulib/import/m4/codeset.m4: Likewise. * gnulib/import/m4/configmake.m4: Likewise. * gnulib/import/m4/fcntl-o.m4: Likewise. * gnulib/import/m4/fnmatch.m4: Likewise. * gnulib/import/m4/glibc21.m4: Likewise. * gnulib/import/m4/localcharset.m4: Likewise. * gnulib/import/m4/locale-fr.m4: Likewise. * gnulib/import/m4/locale-ja.m4: Likewise. * gnulib/import/m4/locale-zh.m4: Likewise. * gnulib/import/m4/mbrtowc.m4: Likewise. * gnulib/import/m4/mbsinit.m4: Likewise. * gnulib/import/m4/mbsrtowcs.m4: Likewise. * gnulib/import/m4/mbstate_t.m4: Likewise. * gnulib/import/m4/stdbool.m4: Likewise. * gnulib/import/m4/wchar_h.m4: Likewise. * gnulib/import/m4/wctype_h.m4: Likewise. * gnulib/import/m4/wint_t.m4: Likewise. * gnulib/import/mbrtowc.c: Likewise. * gnulib/import/mbsinit.c: Likewise. * gnulib/import/mbsrtowcs-impl.h: Likewise. * gnulib/import/mbsrtowcs-state.c: Likewise. * gnulib/import/mbsrtowcs.c: Likewise. * gnulib/import/ref-add.sin: Likewise. * gnulib/import/ref-del.sin: Likewise. * gnulib/import/stdbool.in.h: Likewise. * gnulib/import/streq.h: Likewise. * gnulib/import/strnlen1.c: Likewise. * gnulib/import/strnlen1.h: Likewise. * gnulib/import/verify.h: Likewise. * gnulib/import/wchar.in.h: Likewise. * gnulib/import/wctype.in.h: Likewise.
2012-07-02gdb/Jan Kratochvil6-23/+156
Support shell wildcards for 'set auto-load safe-path'. * auto-load.c: Include fnmatch.h. (filename_is_in_dir): Rename to ... (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split it. Update function comment. Rename dir_len to pattern_len. New variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD messages. Use gdb_filename_fnmatch. (filename_is_in_auto_load_safe_path_vec): Rename variable dir to pattern. (_initialize_auto_load): Extend the "set auto-load safe-path" help text. * defs.h (gdb_filename_fnmatch): New declaration. * utils.c: Include fnmatch.h. (gdb_filename_fnmatch): New function. gdb/doc/ * gdb.texinfo (Auto-loading safe path): Note the shell wildcard possibility.
2012-07-02 * write.c (fixup_segment): Only perform the subtraction of anNick Clifton3-6/+14
fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is properly defined. * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
2012-07-022012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+9
* breakpoint.c (BREAK_ARGS_HELP): Include help message for the new `-probe' and `-probe-stap' options.
2012-07-02 * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_sectionAlan Modra4-64/+79
"anyway" variant when creating .plt. (m32c_elf_relax_plt_section): Remove redundant test and unused param. (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling m32c_elf_relax_plt_section. * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant when creating .got and .got.plt. (_bfd_mips_elf_final_link): Likewise for .rtproc, and use bfd_get_linker_section. * sunos.c: Similarly throughout.
2012-07-02*** empty log message ***gdbadmin1-1/+1
2012-07-02daily updateAlan Modra1-1/+1
2012-07-01gdb:Yao Qi3-44/+37
* breakpoint.c: Removed always_inserted_auto, always_inserted_on, always_inserted_off, and always_inserted_enums. Change always_inserted_mode's type to 'enum auto_boolean'. (show_always_inserted_mode, breakpoint_always_inserted_mode): Update callers. (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead of add_setshow_enum_cmd. * infrun.c: Remove can_use_displaced_stepping_auto, can_use_displaced_stepping_on, can_use_displaced_stepping_off, and can_use_displaced_stepping_enum. Change can_use_displaced_stepping's type to 'enum auto_boolean'. (show_can_use_displaced_stepping, use_displaced_stepping): Update callers. (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of add_setshow_enum_cmd.
2012-07-01* elf.c (_bfd_elf_make_section_from_shdr): Fix typo in errorAndreas Schwab2-2/+7
message.
2012-07-01 * dwarf2read.c (signatured_type): Make "per_cu" member first.Doug Evans5-25/+574
(init_cutu_and_read_dies): Handle rereading a DWO CU while it's currently being read. Propagate DW_AT_comp_dir to DWO DIE. testsuite/ * gdb.dwarf2/fission-reread.S: New file. * gdb.dwarf2/fission-reread.exp: New file.
2012-07-01*** empty log message ***gdbadmin1-1/+1
2012-07-01daily updateAlan Modra1-1/+1
2012-06-30Add testcases for PR gas/14315H.J. Lu8-0/+27
PR gas/14315 * gas/elf/common1.d: New file. * gas/elf/common1.l: Likewise. * gas/elf/common1.s: Likewise. * gas/elf/common2.d: Likewise. * gas/elf/common2.l: Likewise. * gas/elf/common2.s: Likewise. * gas/elf/elf.exp: Run common1 and common2.
2012-06-30 PR gas/14315Alan Modra2-1/+5
* config/obj-elf.c (obj_elf_weak): Don't set local.
2012-06-30 * frags.h (frag_offset_fixed_p): Update prototype.Alan Modra4-9/+16
* frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT. * expr.c (expr, resolve_expression): Likewise for frag_off var.
2012-06-30*** empty log message ***gdbadmin1-1/+1
2012-06-30daily updateAlan Modra1-1/+1
2012-06-29 * linespec.c: #include "stack.h".Doug Evans12-59/+89
(decode_line_with_current_source): Moved here from symtab.c and renamed from decode_line_spec. All callers updated. (decode_line_with_last_displayed): Moved here from breakpoint.c and renamed from decode_line_spec_1. All callers updated. * linespec.h (decode_line_with_current_source): Move declaration here from symtab.h and renamed from decode_line_spec. (decode_line_with_last_displayed): Move declaration here from symtab.h and renamed from decode_line_spec_1. * macrocmd.c: #include "linespec.h". * symtab.c: Remove #include "linespec.h".
2012-06-29Return FALSE on unresolvable relocationH.J. Lu2-7/+15
* elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE on unresolvable relocation.
2012-06-29Simplify global symbol handlingH.J. Lu2-4/+9
* archive.c (_bfd_compute_and_write_armap): Simplify global symbol handling.
2012-06-29Simplify global symbol handlingH.J. Lu2-4/+8
* nm.c (filter_symbols): Simplify global symbol handling.
2012-06-29 PR ld/14189Nick Clifton2-1/+8
* elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount for locally bound symbols.
2012-06-29 PR gas/14263Nick Clifton2-1/+6
* config/tc-arm.c (parse_operands): Initialise val.
2012-06-29 * section.c (bfd_get_linker_section): New function.Alan Modra42-880/+943
* elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use the above throughout rather than bfd_get_section_by_name. Use bfd_make_section_anyway rather than bfd_make_section when creating them. * elf32-bfin.c: Likewise. * elf32-cr16.c: Likewise. * elf32-cris.c: Likewise. * elf32-frv.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf32-i386.c: Likewise. * elf32-lm32.c: Likewise. * elf32-m32c.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68k.c: Likewise. * elf32-microblaze.c: Likewise. * elf32-ppc.c: Likewise. * elf32-rl78.c: Likewise. * elf32-s390.c: Likewise. * elf32-score.c: Likewise. * elf32-score7.c: Likewise. * elf32-sh.c: Likewise. * elf32-tic6x.c: Likewise. * elf32-tilepro.c: Likewise. * elf32-vax.c: Likewise. * elf32-xstormy16.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ia64-vms.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sh64.c: Likewise. * elf64-sparc.c: Likewise. * elf64-x86-64.c: Likewise. * elfnn-ia64.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * elfxx-tilegx.c: Likewise. * elflink.c: Likewise. * elf-vxworks.c: Likewise. * elf-m10300.c: Likewise. Also make use of htab plt, got and gotplt shortcuts. * bfd-in2.h: Regenerate. * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when calling create_rofixup_section. * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
2012-06-29 * gdb.texinfo (Index Section Format): Update for version 7.Tom Tromey2-3/+8
2012-06-29 PR binutils/14302Nick Clifton3-17/+29
* bucomm.c (print_arelt_descr): Correctly report the archive size field (for 'ar tv'). * ar.c (print_contents): Use correct types for archive element sizes (for 'ar p'). (extract_file): Likewise (for 'ar x').
2012-06-29merge from gccDJ Delorie2-5/+5
2012-06-29 * scripttempl/alphavms.sc: Add .debug_macro section.Nick Clifton28-0/+196
* scripttempl/elf.sc: Likewise. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/ia64vms.sc: Likewise. * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and .debug_macro sections. * scripttempl/avr.sc: Likewise. * scripttempl/elf32cr16.sc: Likewise. * scripttempl/elf32crx.sc: Likewise. * scripttempl/elf32msp430.sc: Likewise. * scripttempl/elf32msp430_3.sc: Likewise. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfi370.sc: Likewise. * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise. * scripttempl/elfxgate.sc: Likewise. * scripttempl/i386beos.sc: Likewise. * scripttempl/i386go32.sc: Likewise. * scripttempl/ip2k.sc: Likewise. * scripttempl/iq2000.sc: Likewise. * scripttempl/mep.sc: Likewise. * scripttempl/mmo.sc: Likewise. * scripttempl/v850.sc: Likewise. * scripttempl/xstormy16.sc: Likewise.
2012-06-29 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .relaAlan Modra7-154/+10
section for bss type sections, except for .rela.bss. * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise. * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise. * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise. * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
2012-06-29 * gas/lns/lns.exp (lns-common-1): Add crx to alt target list.Alan Modra2-0/+5
2012-06-29 * readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.Alan Modra2-0/+7
2012-06-29 * dwarf2read.c (get_cu_length): New function.Doug Evans2-14/+23
(offset_in_cu_p, error_check_comp_unit_head): Call it. (create_debug_types_hash_table): Ditto. (init_cutu_and_read_dies): Ditto. (init_cutu_and_read_dies_no_follow): Ditto.
2012-06-29 * dwarf2read.c (dwarf2_find_base_address): Move definition.Doug Evans2-31/+33
2012-06-29remove extraneous blank lineDoug Evans1-1/+0
2012-06-29 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.Doug Evans2-80/+155
(struct abbrev_table): Define. (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with abbrev_table. (init_cutu_and_read_dies): Update. (abbrev_table_alloc_abbrev): New function. Replaces dwarf_alloc_abbrev. All callers updated. (abbrev_table_add_abbrev): New function. (abbrev_table_lookup_abbrev): New function. Replaces dwarf2_lookup_abbrev. All callers updated. (abbrev_table_read_table): New function. Contents moved here from dwarf2_read_abbrevs. (dwarf2_read_abbrevs): Call it. (abbrev_table_free): New function. (dwarf2_free_abbrev_table): Call it.
2012-06-29daily updateAlan Modra1-1/+1
2012-06-29*** empty log message ***gdbadmin1-1/+1
2012-06-28 * osdata.c (info_osdata_command): Filter out "Title" columnsStan Shebs5-23/+84
from non-MI uses. * common/linux-osdata.c (struct osdata_type): Add title field. (osdata_table): Add titles to each entry. (linux_command_xfer_osdata): Add a column for title data. * gdb.texinfo (Miscellaneous GDB/MI Commands): Update -info-os example, add note about title column.
2012-06-28 Make logging work for MI.Stan Shebs10-22/+260
* NEWS: Mention it. * interps.h (interp_set_logging_ftype): New typedef. (struct interp_procs): New field set_logging_proc. (current_interp_set_logging): Declare. * interps.c (current_interp_set_logging): New function. * cli/cli-logging.c: Include interps.h. (set_logging_redirect): Call current_interp_set_logging. (pop_output_files): Ditto. (handle_redirections): Ditto, plus skip ui-out redirect if MI. * mi/mi-console.h (mi_console_set_raw): Declare. * mi/mi-console.c (mi_console_set_raw): New function. * mi/mi-interp.c (saved_raw_stdout): New global. (mi_set_logging): New function. (_initialize_mi_interp): Add it to interp procs. * gdb.mi/mi-logging.exp: New file.
2012-06-28gas/config/Sean Keys3-1/+29
* tc-xgate.h: Defined tc_frob_symbol. * tc-xgate.c (xgate_frob_symbol): Wrote new function to mark symbols as being XGATE by setting st_target_internal value. bfd/ * elf32-xgate.c (elf32_xgate_add_symbol_hook): Added a temp patch that forces st_target_internal to equal 1, since tc_frob_symbol seems to need adjusting.