aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-09-02*** empty log message ***gdbadmin1-1/+1
2012-09-012012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>Yit Phang Khoo1-0/+4
* MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2012-09-01*** empty log message ***gdbadmin1-1/+1
2012-08-31gdb/Yao Qi4-115/+145
* mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1. Update some commands. * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field. * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification' to 1.
2012-08-31gdb/Yao Qi2-1/+5
* mi/mi-cmds.c (mi_cmds): Add 'static'.
2012-08-31*** empty log message ***gdbadmin1-1/+1
2012-08-30Add "Khoo Yit Phang" to gdb/MAINTAINERS.Yit Phang Khoo1-0/+1
2012-08-30*** empty log message ***gdbadmin1-1/+1
2012-08-29 * main.c (print_gdb_help): Remove reference toDoug Evans2-4/+5
--use-deprecated-index-sections.
2012-08-29*** empty log message ***gdbadmin1-1/+1
2012-08-28gdb/gdbserver/Yao Qi5-38/+23
* ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. * server.h: Include 'libiberty.h' and 'ansidecl.h'. (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. Remove declarations of xmalloc, xreallloc, xstrdup and freeargv. * Makefile.in (libiberty_h): New. (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. (linux-bfin-low.o): Append dependency 'libiberty.h'.
2012-08-28gdb/Yao Qi6-33/+55
* cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'. (init_cmds): Call add_setshow_uinteger_cmd for command 'max-user-call-depth'. * cli/cli-script.c (execute_user_command): Add 'unsigned' to the declaration of 'max_user_call_depth'. * frame.c (backtrace_limit): Add 'unsigned'. (_initialize_frame): Call add_setshow_uinteger_cmd for command 'limit'. * remote.c (remoteaddresssize): Add 'unsigned'. (remote_address_masked): Change local var 'address_size' to 'unsigned'. (_initialize_remote): Call add_setshow_uinteger_cmd for 'remoteaddresssize'. * top.c (history_size): Add 'unsigned'. (show_commands): Change local variables to 'unsigned'. (set_history_size_command): Don't check history_size is negative. Adjust the condition to call unstifle_history and set history_size to UNIT_MAX.
2012-08-282012-08-28 Pedro Alves <palves@redhat.com>Pedro Alves4-76/+110
PR gdb/14428 gdb/ * infcmd.c (default_print_one_register_info): New, factored out from default_print_registers_info. (default_print_registers_info): Use it. Mark value unavailable if necessary. (registers_info): Print user registers with default_print_one_register_info. gdb/testsuite/ * gdb.base/pc-fp.exp: Adjust expected output of 'info registers pc fp'.
2012-08-28*** empty log message ***gdbadmin1-1/+1
2012-08-27Check if TUI_SRC_WIN is not NULL before referencing itH.J. Lu2-1/+8
PR tui/14486 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN is not NULL before referencing it.
2012-08-27gdb/Jan Kratochvil5-2/+105
* breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New variable pc. Call find_pc_line instead of find_pc_overlay, restore original PC for it. gdb/testsuite/ * gdb.base/break-caller-line.c: New file. * gdb.base/break-caller-line.exp: New file.
2012-08-27gdb/Jan Kratochvil4-9/+64
* auto-load.c (auto_load_objfile_script): Rename to ... (auto_load_objfile_script_1): ... here, change variable realname to parameter realname, document it, add return value, add variable retval. (auto_load_objfile_script): New function. gdb/doc/ * gdb.texinfo (objfile-gdb.py file): New paragraph for .exe stripping.
2012-08-27gdb/Jan Kratochvil2-1/+9
* cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not followed by a whitespace.
2012-08-27ChangeLog fix:Jan Kratochvil1-0/+1
PR gdb/14494. * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here. Move the SEC_HAS_CONTENTS check here - for any NAMES use. (dwarf2_locate_sections) <eh_frame>: Move the variable and check from here.
2012-08-27gdb/Jan Kratochvil2-8/+14
* dwarf2read.c (dwarf2_locate_sections): Move variable aflag here. Move the SEC_HAS_CONTENTS check here - for any NAMES use. (dwarf2_locate_sections) <eh_frame>: Move the variable and check from here.
2012-08-27gdb/testsuite/Jan Kratochvil4-0/+119
* gdb.ada/rdv_wait.exp (set debug-file-directory): New command. * gdb.arch/i386-cfi-notcurrent.S: New file. * gdb.arch/i386-cfi-notcurrent.exp: New file.
2012-08-272012-08-27 Wei-cheng Wang <cole945@gmail.com>Pedro Alves4-1/+106
* memattr.c (create_mem_region): Fix memory region overlapping checking. 2012-08-27 Wei-cheng Wang <cole945@gmail.com> Yao Qi <yao@codesourcery.com> Pedro Alves <palves@redhat.com> * gdb.base/memattr.exp (delete_memory, region_pass, region_fail): New procedures. (top level): Add overlap checking tests.
2012-08-27*** empty log message ***gdbadmin1-1/+1
2012-08-26*** empty log message ***gdbadmin1-1/+1
2012-08-25*** empty log message ***gdbadmin1-1/+1
2012-08-24 * lib/gdb.exp (skip_unwinder_tests): Don't leave 'ok' set ifTom Tromey2-3/+7
gdb_test_multiple fails for other reasons.
2012-08-24Move misplaced entries from gdb/ChangeLog to gdb/doc/ChangeLog.Yit Phang Khoo2-3/+12
2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu> Document how to return from "python-interactive" to GDB. * gdb.texinfo (Python Commands): Update documentation. 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu> Add a new "python-interactive" command that starts a standard Python interactive prompt with "pi" as alias, and add "py" as an alias to "python". * gdb.texinfo (Python Commands): Document the new commands.
2012-08-24 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe allocaSiddhesh Poyarekar5-7/+31
with xmalloc/cleanup. * mt-tdep.c (mt_push_dummy_call): Likewise. * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2012-08-24gdb/testsuite/Yao Qi2-6/+4
* lib/gdb.exp (skip_unwinder_tests): Remove pass.
2012-08-24gdb/Yao Qi2-1/+6
* jv-exp.y (push_expression_name): Add "." at the end of error message.
2012-08-24*** empty log message ***gdbadmin1-1/+1
2012-08-23 Document how to return from "python-interactive" to GDB.Yit Phang Khoo3-2/+12
* doc/gdb.texinfo (Python Commands): Update documentation. * python/python.c (_initialize_python): Update documentation.
2012-08-232012-08-23 Pedro Alves <palves@redhat.com>Pedro Alves4-6/+19
gdb/ * infrun.c (_initialize_infrun) <handle command help text>: Mention that multiple signals are supported. gdb/testsuite/ * gdb.base/help.exp: Adjust to "handle" help text change.
2012-08-232012-08-23 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+6
* infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help string.
2012-08-23gdb/Yao Qi5-30/+109
* tracepoint.c (disconnect_tracing): Call set_tracepoint_num. (tfind_1): Don't call registers_changed, set_traceframe_num, and clear_traceframe_info. Call set_current_traceframe. (set_current_traceframe): call set_traceframe_num. gdb/testsuite: * gdb.trace/disconnected-tracing.c (start, end): New. (main): Call start and end. * gdb.trace/disconnected-tracing.exp (disconnected_tracing): Move existing tests into this proc. (disconnected_tfind): New.
2012-08-23gdb/testsuite/Yao Qi4-16/+23
* boards/native-gdbserver.exp (${board}_upload): New. * boards/native-stdio-gdbserver.exp (${board}_upload): New. * gdb.trace/tfile.exp: Don't check 'gdb,nofileio'. Execute tfile on remote target. Copy trace file from target to host.
2012-08-23gdb/gdbserver/Yao Qi2-2/+5
* server.h: Remove declaration of 'xsnprintf'.
2012-08-23*** empty log message ***gdbadmin1-1/+1
2012-08-222012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+6
* remote-sim.c (_initialize_remote_sim): Pass NULL argument to `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2012-08-22 Enable readline in Python in a GDB-specific way and block theYit Phang Khoo5-0/+134
standard Python readline module to prevent conflicts with GDB. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o. (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c. (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c. * python/py-gdb-readline.c: New file. * python/python-internal.h (gdbpy_initialize_gdb_readline): New prototype. * python/python.c (_initialize_python): Call gdbpy_initialize_gdb_readline.
2012-08-22 * defs.h: Include build-gnulib/config.hKeith Seitz5-0/+13
* server.h: Include build-gnulib-gbserver/config.h. * gdbreplay.c: Likewise.
2012-08-22 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pcJoseph Myers5-1/+86
and blx pc. testsuite: * gdb.arch/thumb-bx-pc.S: New file. * gdb.arch/thumb-bx-pc.exp: New file.
2012-08-22 Add a new "python-interactive" command that starts a standardYit Phang Khoo4-4/+145
Python interactive prompt with "pi" as alias, and add "py" as an alias to "python". * NEWS: Mention the new commands. * doc/gdb.texinfo (Python Commands): Document the new commands. * python/python.c (eval_python_command): New function. (python_interactive_command): For "python-interactive" with arguments, call eval_python_command. For "python-interactive" without arguments, call PyRun_InteractiveLoop. (_initialize_python): Add "python-interactive" command with "pi" as alias, and add "py" as an alias to "python".
2012-08-22 * defs.h (quit_flag): Don't declare.Tom Tromey13-16/+131
(clear_quit_flag, check_quit_flag, set_quit_flag): Declare. (QUIT): Use new functions. * event-top.c (command_handler): Use clear_quit_flag. (handle_sigint): Use set_quit_flag. (async_request_quit): Use check_quit_flag. Don't check immediate_quit. * exceptions.c (throw_exception): Use clear_quit_flag. * main.c (captured_main): Use clear_quit_flag. * python/python.c (clear_quit_flag, set_quit_flag) (check_quit_flag): New functions. * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag, clear_quit_flag. * remote.c (remote_wait_as): Use check_quit_flag, clear_quit_flag. (remote_start_remote): Call QUIT. * symfile.c (load_progress): Use check_quit_flag. * top.c (command_loop): Use clear_quit_flag. (command_line_input): Call QUIT. * utils.c (quit_flag): Conditionally define. (clear_quit_flag, check_quit_flag, set_quit_flag): New functions. (prompt_for_continue): Call QUIT. Use quit, not async_request_quit. * remote-mips.c (mips_expect_timeout): Call QUIT. * monitor.c (monitor_expect): Call QUIT.
2012-08-22 * event-top.c (sigwinch_token, handle_sigwinch): Remove.Tom Tromey5-40/+12
(async_init_signals): Update. * utils.c (init_page_info): Don't use SIGWINCH_HANDLER. (SIGWINCH_HANDLER_BODY): Remove. gdb/doc * gdbint.texinfo (Host Definition): Remove documentation for SIGWINCH_HANDLER and SIGWINCH_HANDLER_BODY.
2012-08-22 * jit.c (jit_object_close_impl): Don't malloc the objfileTom Tromey5-12/+27
name. * objfiles.c (allocate_objfile): Don't malloc the objfile name. (free_objfile): Don't free the objfile name. * objfiles.h (struct objfile) <name>: Update comment. * symfile.c (reread_symbols): Fix reference counting. Don't malloc objfile name.
2012-08-22 * windows-nat.c (windows_make_so): Use gdb_bfd_open.Tom Tromey13-24/+54
* symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open. (symfile_bfd_open): Likewise. (generic_load): Likewise. * solib.c (solib_bfd_fopen): Use gdb_bfd_open. * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_open. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_open. * rs6000-nat.c (add_vmap): Use gdb_bfd_open. * remote-mips.c (mips_load_srec): Use gdb_bfd_open. (pmon_load_fast): Likewise. * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open. * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open. * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open. (macho_check_dsym): Likewise. * m32r-rom.c (m32r_load): Use gdb_bfd_open. (m32r_upload_command): Likewise. * gdb_bfd.h (gdb_bfd_cache): Declare. * gdb_bfd.c (struct gdb_bfd_data): New. (gdb_bfd_cache): New global. (struct gdb_bfd_cache_search): New. (hash_bfd): New function. (eq_bfd): Likewise. (gdb_bfd_open): Likewise. (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD. (gdb_bfd_unref): Remove closed BFD from cache. Update for gdb_bfd_data. * exec.c (exec_file_attach): Use gdb_bfd_open. * dsrec.c (load_srec): Use gdb_bfd_open.
2012-08-22 * dwarf2read.c (macro_start_file): Update.Tom Tromey6-9/+23
* objfiles.c (get_objfile_bfd_data): Initialize macro_cache. (free_objfile_per_bfd_storage): Destroy macro_cache. (allocate_objfile, free_objfile): Update. * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>: New field. (struct objfile) <macro_cache>: Remove. * symfile.c (reread_symbols): Update. * symmisc.c (print_symbol_bcache_statistics): Update. (print_objfile_statistics): Update.
2012-08-22 * elfread.c (elf_symtab_read): Update.Tom Tromey8-11/+133
* objfiles.c (objfiles_bfd_data): New global. (get_objfile_bfd_data, free_objfile_per_bfd_storage) (objfile_bfd_data_free, set_objfile_per_bfd): New functions. (allocate_objfile, free_objfile): Update. (_initialize_objfiles): Initialize objfiles_bfd_data. * objfiles.h (struct objfile_per_bfd_storage): New. (struct objfile) <per_bfd>: New field. <filename_cache>: Remove. (set_objfile_per_bfd): Declare. * symfile.c (reread_symbols): Update. Call set_objfile_per_bfd. (allocate_symtab): Update. * symmisc.c (print_symbol_bcache_statistics): Update. (print_objfile_statistics): Print the size of the BFD obstack. gdb/testsuite * gdb.base/maint.exp: Update.
2012-08-22 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.Tom Tromey3-0/+23
* gdb_bfd.c: Use DEFINE_REGISTRY. (struct gdb_bfd_data): Add REGISTRY_FIELDS. (gdb_bfd_ref): Call bfd_alloc_data. (gdb_bfd_unref): Call bfd_free_data.