aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2012-08-22 * registry.h (struct registry_fields): New.Tom Tromey5-27/+63
(REGISTRY_FIELDS): Redefine. (REGISTRY_ACCESS_FIELD): New macro. (DEFINE_REGISTRY): Add ACCESS argument. Update defined functions.
2012-08-22 * auto-load.c (_initialize_auto_load): Update.Tom Tromey20-372/+278
* solib-svr4.c (_initialize_svr4_solib): Update * solib-dsbt.c (_initialize_dsbt_solib): Update. * solib-darwin.c (_initialize_darwin_solib): Update. * registry.h: New file. * python/py-progspace.c (gdbpy_initialize_pspace): Update. * python/py-inferior.c (gdbpy_initialize_inferior): Update. * progspace.h: Include registry.h. Use DECLARE_REGISTRY. (register_program_space_data_with_cleanup) (register_program_space_data, program_space_alloc_data) (clear_program_space_data, set_program_space_data) (program_space_data): Don't declare. * progspace.c: Use DEFINE_REGISTRY. (struct program_space_data, struct program_space_data_registration, struct program_space_data_registry, program_space_data_registry) (register_program_space_data_with_cleanup) (register_program_space_data, program_space_alloc_data) (program_space_free_data, clear_program_space_data) (set_program_space_data, program_space_data): Remove. * objfiles.h: Include registry.h. Use DECLARE_REGISTRY. (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS. (register_objfile_data_with_cleanup, register_objfile_data) (clear_objfile_data, set_objfile_data, objfile_data): Don't declare. * objfiles.c: Use DEFINE_REGISTRY. (struct objfile_data, struct objfile_data_registration, struct objfile_data_registry, objfile_data_registry) (register_objfile_data_with_cleanup, register_objfile_data) (objfile_alloc_data, objfile_free_data, clear_objfile_data) (set_objfile_data, objfile_data): Remove. (_initialize_objfiles): Update. * jit.c (_initialize_jit): Update. * inflow.c (_initialize_inflow): Update. * inferior.h: Include registry.h. Use DECLARE_REGISTRY. (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS. (register_inferior_data_with_cleanup, register_inferior_data) (clear_inferior_data, set_inferior_data, inferior_data): Don't declare. * inferior.c: Use DEFINE_REGISTRY. (struct inferior_data, struct inferior_data_registration, struct inferior_data_registry, inferior_data_registry) (register_inferior_data_with_cleanup, register_inferior_data) (inferior_alloc_data, inferior_free_data clear_inferior_data) (set_inferior_data, inferior_data): Remove. * auxv.c (_initialize_auxv): Update. * ada-lang.c (_initialize_ada_language): Update. * breakpoint.c (_initialize_breakpoint): Update. * i386-nat.c (i386_use_watchpoints): Update.
2012-08-22 * exec.c (exec_close, exec_file_attach): Update.Tom Tromey5-13/+37
(add_to_section_table): Initialize 'key' field. (add_target_sections, remove_target_sections): Add 'key' argument. * exec.h (add_target_sections, remove_target_sections): Add 'key' argument. * solib.c (solib_map_sections, update_solib_list, clear_solib) (reload_shared_libraries_1): Update. * target.h (struct target_section) <key>: New field.
2012-08-22 * lib/gdb.exp (skip_unwinder_tests): New proc.Tom Tromey4-43/+45
* gdb.cp/nextoverthrow.exp: Use skip_unwinder_tests. * gdb.java/jnpe.exp: Use skip_unwinder_tests.
2012-08-22 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.Tom Tromey2-1/+6
2012-08-22*** empty log message ***gdbadmin1-1/+1
2012-08-21 * gdb.hp/gdb.aCC/exception.exp: Remove.Tom Tromey2-21/+4