aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-07-052012-07-05 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2-2/+9
* gdb.texinfo (Maintenance Commands): Change help for "maint agent" and "maint agent-eval".
2012-07-052012-07-05 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2-45/+83
* ax-gdb.c (cli/cli-utils.h): New include. (linespec.h): Ditto. (agent_eval_command_one): New function. (agent_command_1): Ditto. (agent_command): Call function agent_command_1. (agent_eval_command): Ditto. (_initialize_ax_gdb): Change help for "maint agent" and "maint agent-eval".
2012-07-052012-07-05 Hui Zhu <hui_zhu@mentor.com>Hui Zhu4-17/+26
* breakpoint.c (check_for_argument): Move to file cli/cli-utils.c. * cli/cli-utils.c (check_for_argument): New function. * cli/cli-utils.h (check_for_argument): Ditto.
2012-07-05*** empty log message ***gdbadmin1-1/+1
2012-07-04Mention x32 ABI support in NEWSH.J. Lu2-0/+7
* NEWS: Mention x32 ABI support.
2012-07-04Add sp_regnum_from_eax/pc_regnum_from_eax to i386 gdbarch_tdepH.J. Lu4-0/+35
* amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM. * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax and pc_regnum_from_eax to -1. Update SP regnum from sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if needed. * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and pc_regnum_from_eax.
2012-07-04gdb/testsuite/Jan Kratochvil2-1/+7
PR 12649 * gdb.base/dprintf.exp (Set dprintf style to agent): Add missing gdb_test_multiple $gdb_prompt terminator.
2012-07-042012-07-04 Pedro Alves <palves@redhat.com>Pedro Alves2-2/+7
* gdb.mi/mi-reverse.exp: Use supports_reverse and supports_process_record.
2012-07-042012-07-04 Pedro Alves <palves@redhat.com>Pedro Alves3-213/+219
* gdb.ada/packed_tagged/comp_bug.adb: Convert to unix text line endings. * gdb.mi/mi-reverse.exp: Convert to unix text line endings.
2012-07-04*** empty log message ***gdbadmin1-1/+1
2012-07-03 * gdb.base/info-os.c (main): Retry resource acquisition until anStan Shebs3-23/+84
available one is found. * gdb.base/info-os.exp: Collect resource keys from the program and use them in matching.
2012-07-03gdb/Jan Kratochvil3-15/+26
Fix 'warning: parameter has incomplete type' with gcc-3.4.6. * dwarf2expr.h: Include gdbtypes.h. (enum call_site_parameter_kind, union call_site_parameter_u): Remove these forward declarations. (cu_offset, sect_offset): Move these ... * gdbtypes.h: Remove include dwarf2expr.h. (cu_offset, sect_offset): ... here.
2012-07-03 gdb.texinfo: Separate the index into 2 indices, cp and fn, toEli Zaretskii2-9/+33
avoid file-name clashes between Index.html and index.html on case-insensitive filesystems. See the discussion starting in http://sourceware.org/ml/gdb-patches/2012-06/msg00457.html for the details of the problem. (Top): Update the master menu for the above. (Concept Index, Command and Variable Index): New nodes, instead of the old "Index" node that was deleted. All cross-references updated.
2012-07-03Support x32 sigtrampH.J. Lu2-3/+26
* amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ... (amd64_linux_sigtramp_code): This. (amd64_x32_linux_sigtramp_code): New. (LINUX_SIGTRAMP_LEN): Updated. (amd64_linux_sigtramp_start): Check x32 sigtramp.
2012-07-03*** empty log message ***gdbadmin1-1/+1
2012-07-02gdb/Jan Kratochvil2-1/+6
* linux-thread-db.c (thread_db_new_objfile): Fix comment typos. Plus add in an already checked in file: (thread_db_new_objfile): Exclude debug files.
2012-07-02gdb/Jan Kratochvil5-21/+20
* config.in: Regenerate. * configure: Regenerate. * configure.ac: Remove check for gnu/libc-version.h. * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of gnu/libc-version.h. (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove variables libc_version, libc_major and libc_minor. Replace sscanf by inferior_has_bug. Extend the comment.
2012-07-02gdb/Jan Kratochvil4-53/+123
* linux-thread-db.c (inferior_has_bug): New function. (thread_db_find_new_threads_silently): Return boolean as checked by inferior_has_bug, describe it in the comments. (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently earlier. Abort the initialization if it returned non-zero. (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also if UNTIL_NO_NEW, gdb/testsuite/ * gdb.threads/gcore-thread.exp: Remove variable libthread_db_seen. Wrap the test into loop for corefile and core0file.
2012-07-02gdb/testsuite/Jan Kratochvil2-284/+286
* gdb.dwarf2/fission-reread.S: Change # comments to /* */ comments.
2012-07-02gdb/testsuite/Jan Kratochvil2-27/+31
* gdb.dwarf2/fission-reread.S: Remove .section attributes. Change CU pointer size to 4 bytes, adjust .8byte to .4byte. Remove .note.GNU-stack.
2012-07-02 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to othersDoug Evans2-42/+45
related to queue management.
2012-07-02 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"Doug Evans2-8/+44
instead of "debug dwarf2-die" in debugging printfs. (create_debug_info_hash_table_reader): Ditto. (create_debug_info_hash_table): Ditto. (init_dwo_file): Ditto. (init_cutu_and_read_dies): Add debugging printf. (init_cutu_and_read_dies_no_follow): Ditto. (process_psymtab_comp_unit_reader): Ditto.
2012-07-02gdb/testsuite:Sergio Durigan Junior2-5/+11
2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com> * gdb.base/help.exp (help b, help br, help bre, help brea, help break): Include help message for the new `-probe' and `-probe-stap' options.
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-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-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-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*** empty log message ***gdbadmin1-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 * 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-06-30*** empty log message ***gdbadmin1-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-29 * gdb.texinfo (Index Section Format): Update for version 7.Tom Tromey2-3/+8
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-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-28 * symtab.c (lookup_symbol_aux_objfile): UseDoug Evans2-12/+14
ALL_OBJFILE_PRIMARY_SYMTABS.
2012-06-28 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".Doug Evans2-4/+8
2012-06-28gdb/Jan Kratochvil2-4/+15
* common/buffer.c: Include inttypes.h and stdint.h. (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2012-06-28gdb/Pedro Alves12-344/+996
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <palves@redhat.com> * gdbthread.h (ALL_THREADS): New macro. (thread_list): Declare. * infrun.c (handle_inferior_event) <spurious signal>: Don't keep going, but instead fall through to the stepping handling. * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with the passed in signal. Adjust debug output. (resume_callback): Rename to ... (linux_nat_resume_callback): ... this. Pass the thread's last stop signal, if in "pass" state. (linux_nat_resume): Adjust to rename. (stop_wait_callback): New assertion. Don't respawn signals; instead let the LWP remain with SIGNALLED set. (linux_nat_wait_1): Remove flushing of pending SIGSTOPs. * remote.c (append_pending_thread_resumptions): New. (remote_vcont_resume): Call it. * target.h (target_resume): Extend comment. gdb/testsuite/ 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <palves@redhat.com> * gdb.threads/siginfo-threads.exp: New file. * gdb.threads/siginfo-threads.c: New file. * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
2012-06-28 * gdb.go/package.exp: Partially revert earlier patch; useTom Tromey2-2/+14
gdb_compile again. Use standard_output_file.