summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * thread.c (restore_selected_frame): On fail to restore, selectPedro Alves2008-07-132-3/+11
| | | | the innermost frame, and don't crash when warning the user.
* * symtab.c (expand_line_sal): Fix a memory leak.Joel Brobecker2008-07-132-2/+6
|
* * gdb.base/randomize.exp: Catch non-Linux targets as untested.Jan Kratochvil2008-07-132-1/+9
|
* * utils.c (struct continuation): Define as inheriting structPedro Alves2008-07-132-12/+34
| | | | | | | | cleanup. (add_continuation, do_all_continuations) (discard_all_continuations, add_intermediate_continuation) (do_all_intermediate_continuations) (discard_all_intermediate_continuations): Adjust.
* Skip varobj in running threads.Vladimir Prus2008-07-133-3/+25
| | | | | | * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's thread is not stopped, skip the varobj. * Makefile.in: Update dependencies.
* Enable all MI commands while inferiour is runningVladimir Prus2008-07-132-17/+6
| | | | | * mi/mi-main.c (mi_cmd_execute): Don't check if inferiour is executing.
* Allow all CLI command even if target is executing.Vladimir Prus2008-07-132-7/+6
| | | | | * gdb/top.c (execute_command_1): Don't check if the inferiour is running.
* * mi/mi-main.c (mi_cmd_execute): Remove unused variable.Vladimir Prus2008-07-132-4/+6
| | | | Fix printing of frame, when frame is wrong.
* *** empty log message ***gdbadmin2008-07-131-1/+1
|
* daily updateAlan Modra2008-07-131-1/+1
|
* * spu-tdep.c (spu_frame_unwind_cache): Do not error ifUlrich Weigand2008-07-122-3/+10
| | | | backchain is unreadable.
* * linux-low.c (handle_extended_wait): Do not use "status"Ulrich Weigand2008-07-122-1/+6
| | | | variable uninitialized.
* * spu-linux-nat.c: Include "gdbthread.h".Ulrich Weigand2008-07-123-1/+13
| | | | | | (spu_child_post_startup_inferior): Register main thread. (spu_child_post_attach): Likewise. * Makefile.in (spu-linux-nat.o): Update dependencies.
* 2008-07-12 Pedro Alves <pedro@codesourcery.com>Pedro Alves2008-07-128-108/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite continuations internals on top of cleanups and plug continuation arguments leaks. * defs.h (struct continuation): Make it opaque. (add_continuation, add_intermediate_continuation): Drop the int argument of the continuation hook argument. Add continuation_free_args argument. (do_all_continuations, do_all_intermediate_continuations): Drop the error_p argument. * utils.c (add_continuation): Drop the int argument of the continuation hook argument. Add continuation_free_args argument. Reimplement on top of cleanups. (do_all_continuations): Drop error argument. Reimplement on top of cleanups. (discard_all_continuations): Reimplement on top of cleanups. (add_intermediate_continuation): Drop the int argument of the continuation hook argument. Add continuation_free_args argument. Reimplement on top of cleanups. (do_all_intermediate_continuations): Drop error argument. Reimplement on top of cleanups. (discard_all_intermediate_continuations): Reimplement on top of cleanups. * breakpoint.c (until_break_command_continuation): Drop error argument. Add xfree as continuation argument deleter. * inf-loop.c (inferior_event_handler): On error, discard all continuations. Adjust to new do_all_intermediate_continuations and do_all_continuations interfaces. * infcmd.c (step_1_continuation): Drop error_p argument. Adjust. Pass xfree as continuation argument deleter. (finish_command_continuation): Drop error_p argument. Adjust. (finish_command_continuation_free_arg): New. (finish_command): Pass finish_command_continuation_free_arg as continuation argument deleter. Adjust to new do_all_continuations interfaces. (attach_command_continuation): Drop error_p argument. (attach_command_continuation_free_args): New. (attach_command): Pass attach_command_continuation_free_args as continuation argument deleter. * interps.c (interp_set): Adjust to new do_all_continuations interfaces. * event-top.c (stdin_event_handler): In error, also discard the intermediate continuations.
* Replace struct continuation_args by void* and per command structs.Pedro Alves2008-07-126-132/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * top.c (execute_command): Remove unused arg1 and arg2 locals. * breakpoint.c (struct until_break_command_continuation_args): New. (until_break_command_continuation): Take a void* instead of a continuations_arg. Adjust. (until_break_command): Adjust to use struct until_break_command_continuation_args instead of struct continuation_arg. * infcmd.c (struct step_1_continuation_args): New. (step_1_continuation): Take a void* instead of a continuations_arg. Adjust to use struct step_1_continuation_args. (step_once): Adjust to use struct step_1_continuation_args. (struct finish_command_continuation_args): New. (finish_command_continuation): Take a void* instead of a continuations_arg. Adjust to use struct finish_command_continuation_args. (finish_command): Adjust to use struct finish_command_continuation_args. (struct attach_command_continuation_args): New. (attach_command_continuation): Take a void* instead of a continuations_arg. Adjust to use struct attach_command_continuation_args. (attach_command): Adjust to use struct attach_command_continuation_args. * defs.h (struct continuation_arg): Delete. (struct continuation): Replace the struct continuation_arg* parameter of continuation_hook by a void*. Replace "arg_list" member by a new "args" member with void* type. (add_continuation, add_intermediate_continuation): Replace struct continuation_arg type usages by void* usages. * utils.c (add_continuation, do_all_continuations) (add_intermediate_continuation) (do_all_intermediate_continuations): Replace struct continuation_arg type usages by void* usages. Pass "args" instead of "arg_list".
* 2008-07-12 Pedro Alves <pedro@codesourcery.com>Pedro Alves2008-07-122-20/+33
| | | | | | | | | | * infrun.c (struct thread_stepping_state): Delete sal member. (init_thread_stepping_state): Add local sal. Use it instead of tss->sal. (handle_inferior_event): New local stop_pc_sal. Use it instead of tss->sal. (step_into_function): Add local stop_func_sal. Use it instead of tss->sal.
* Implement -exec-continue/-exec-interrupt --all.Vladimir Prus2008-07-124-32/+74
| | | | | | | | | | * infcmd.c (continue_1): New, extracted from (continue_command): ...here. (interrupt_target_1): New, extracted from (interrupt_target_command): ...here. * inferior.h (continue_1, interrupt_target_1): New. * mi/mi-main.c (mi_cmd_exec_continue) (mi_cmd_exec_interrupt): Handle --all.
* Implement --thread and --frame.Vladimir Prus2008-07-126-3/+84
| | | | | | | | | * gdbthread.h (find_thread_id): Declare. * thread.c (find_thread_id): Make non-static. * mi/mi-main.c (mi_cmd_execute): Switch to the right thread and frame, if necessary. * mi/mi-parse.c (mi_parse): Handle --thread and --frame. * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
* * infrun.c (resume): Discard cleanups on early exit path.Vladimir Prus2008-07-122-4/+11
|
* * infrun.c (normal_stop): For MI, report which threadsVladimir Prus2008-07-124-5/+27
| | | | were stopped.
* Report thread state in -thread-info output.Vladimir Prus2008-07-122-0/+15
| | | | * thread.c (print_thread_info): Add new field "state".
* Revert my last change since it has not been approved.Jie Zhang2008-07-126-50/+23
|
* *** empty log message ***gdbadmin2008-07-121-1/+1
|
* daily updateAlan Modra2008-07-121-1/+1
|
* * gdb.arch/e500-regs.exp (decimal_vector): Adjust "v8_int8" portionKevin Buettner2008-07-112-6/+8
| | | | | of regexp to account for changes made to GDB in the printing of byte vectors.
* bfd/Jie Zhang2008-07-116-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf.c (_bfd_elf_map_sections_to_segments): Don't put executable sections into the same segment with other read only sections if --sep-code. * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. (elf32_bfin_data_in_l1): New variable. (elf32_bfin_final_write_processing): New. (elf32_bfin_special_sections[]): New. (elf_backend_final_write_processing): Define. (elf_backend_special_sections): Define. binutils/ * readelf.c (get_machine_flags): Deal with Blackfin specific flags. include/ * bfdlink.h (struct bfd_link_info): Add sep_code member variable. * elf/bfin.h (EF_BFIN_CODE_IN_L1): Define. (EF_BFIN_DATA_IN_L1): Define. ld/ * Makefile.am (eelf32bfin.c): Depend on bfin.em. (eelf32bfinfd.c): Likewise. * Makefile.in: Regenerate. * gen-doc.texi: Set Blackfin. * ld.texinfo: Document --sep-code and Blackfin specific options. * ldmain.c (main): Initialize link_info.sep_code. * lexsup.c (enum option_values): Add OPTION_SEP_CODE. (ld_options[]): Add --sep-code. (parse_args): Deal with --sep-code. * emulparams/bfin.sh (EXTRA_EM_FILE): Define. * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. * emultempl/bfin.em: New file.
* * infrun.c (handle_inferior_event): Also ignore aPedro Alves2008-07-112-5/+17
| | | | TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
* gdbTom Tromey2008-07-114-12/+57
| | | | | | | | | * completer.c (complete_line_internal): New function, from complete_line. Add 'for_help' parameter. (complete_line): Use it. (command_completer): Move later. Rewrite. gdb/testsuite * gdb.base/completion.exp: Add 'help' completion test.
* * thread.c (thread_apply_command): Move making the cleanup out ofPedro Alves2008-07-112-2/+7
| | | | the loop.
* * mh-mingw (LDFLAGS): Append to rather than replacing previousJoseph Myers2008-07-112-1/+6
| | | | value.
* Exited threads.Pedro Alves2008-07-1116-226/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thread.c (enum thread_state): New. (thread_state main_thread_running): Delete, in favor of... (thread_state main_thread_state): ... this. Update throughout. (clear_thread_inferior_resources): New, split from free_thread. (free_thread): Call clear_thread_inferior_resources. (init_thread_list): Set main thread to stopped state. (add_thread_silent): Take care of PTID reuses. (delete_thread): If deleting inferior_ptid or a thread with refcount > 0, mark it as exited, but still keep it in the list. Only notify of thread exits, if we haven't done so yet. (iterate_over_threads): Make it safe to delete threads while iterating over them. (do_captured_list_thread_ids): Don't account for exited threads. (thread_alive): Check for the THREAD_EXITED state, and don't set ptid to -1 on exited threads. (set_running): Update to account for extra possible states. (is_thread_state): New. (is_stopped, is_exited): New. (is_running): Implement in terms of is_thread_state. (any_running): Update. (print_thread_info): Update. Account for exited threads. Don't warn about missed frame restoring here, its done in the cleanup. (switch_to_thread): Don't read from a thread that has gone. (restore_current_thread): In non-stop mode, do a full context switch. (restore_selected_frame): Add a frame_level argument. Rewrite. (struct current_thread_cleanup): Add selected_frame_level and was_stopped members. (do_restore_current_thread_cleanup): Check if thread was stopped and still is, and if the target has registers, stack and memory before restoring the selected frame. Don't delete the cleanup argument here. (restore_current_thread_cleanup_dtor): New. (make_cleanup_restore_current_thread): Remove all arguments. Rewrite. (thread_apply_all_command): Update. Prune threads. (thread_apply_command): Update. (thread_command): Account for currently selected exited thread. (do_captured_thread_select): Check for a running thread. Prune threads. (_initialize_thread): Make "info threads", "thread", "thread apply", and "thread apply all" appliable without a selected thread. * gdbthread.h (struct thread_info): Replace running_ by state_. Add refcount. (is_exited, is_stopped): Declare. (make_cleanup_restore_current_thread): Remove all arguments. * infrun.c: Include "event-top.h". (fetch_inferior_event): In non-stop mode, restore selected thread and frame after handling the event and running breakpoint commands. Display GDB prompt if needed. (normal_stop): In non-stop mode, don't print thread switching notice. * cli/cli-decode.c (set_cmd_no_selected_thread_ok) (get_cmd_no_selected_thread_ok): New. * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New. (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok): Declare. * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as no-selected-thread ok. * top.c (execute_command): Check for non no-selected-thread-ok commands. * linux-nat.c (struct saved_ptids, threads_to_delete) (record_dead_thread, prune_lwps): Delete. (exit_lwp): Unconditionally delete thread. (linux_nat_resume): Remove prune_lwps call. * infcmd.c (proceed_thread_callback): Check if !is_stopped instead of is_running. Adjust to make_cleanup_restore_current_thread interface change. * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the selected thread has exited. * inf-loop.c (inferior_event_handler): Don't display the prompt here. * varobj.c (c_value_of_root): Update. * defs.h (make_cleanup_dtor): Declare. * utils.c (make_cleanup_dtor): New. * Makefile.in (infrun.o): Depend on $(event_top_h).
* Add "continue -a" and "interrupt -a" options for non-stop mode.Pedro Alves2008-07-112-15/+107
| | | | | | | | * infcmd.c (proceed_thread_callback, do_context_switch_to): New. (continue_command): Add "-a" option. (interrupt_target_command): Add "-a" option. (_initialize_infcmd): Add extend help of continue and interrupt command to mention the new "-a" option. Mark "continue" async ok.
* (read_section): Take pointer to bfd_size_type insteadAndreas Schwab2008-07-112-5/+13
| | | | | | | of unsigned long as last parameter. (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of unsigned long.
* * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-111-0/+4
|
* * configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson2008-07-1148-123/+4819
| | | | * config.in: Ditto.
* * configure.ac: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-115-15/+308
| | | | | | * Makefile.in (LIBS): Set from @LIBS@. * configure: Regenerate. * config.in: Ditto.
* * cris/configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson2008-07-113-0/+292
| | | | * cris/config.in: Ditto.
* * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-113-0/+287
| | | | | * configure: Regenerate to track ../common/common.m4 changes. * config.in: Ditto.
* * interp.c (hash): Remove incorrect prototype.Hans-Peter Nilsson2008-07-112-1/+4
|
* *** empty log message ***gdbadmin2008-07-111-1/+1
|
* daily updateAlan Modra2008-07-111-1/+1
|
* Add "set print symbol-loading on|off".Doug Evans2008-07-107-7/+69
| | | | | | | | | | | | | * NEWS: Document new option. * symfile.h (print_symbol_loading): Declare. * symfile.c (print_symbol_loading): New global. (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols from ..." if print_symbol_loading. (_initialize_symfile): Add set/show print symbol-loading. * solib.c (solib_read_symbols): Only print "Loaded symbols for ..." if print_symbol_loading. * doc/gdb.texinfo: Document "set print symbol-loading on|off".
* Non-stop linux native.Pedro Alves2008-07-105-48/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux-nat.c (linux_test_for_tracefork): Block events while we're here. (get_pending_status): Implement non-stop mode. (linux_nat_detach): Stop threads before detaching. (linux_nat_resume): In non-stop mode, always resume only a single PTID. (linux_handle_extended_wait): On a clone event, in non-stop mode, add new lwp to GDB's thread table, and mark as running, executing and stopped appropriately. (linux_nat_filter_event): Don't assume there are other running threads when a thread exits. (linux_nat_wait): Mark the main thread as running and executing. In non-stop mode, don't stop all lwps. (linux_nat_kill): Stop lwps before killing them. (linux_nat_thread_alive): Use signal 0 to detect if a thread is alive. (send_sigint_callback): New. (linux_nat_stop): New. (linux_nat_add_target): Set to_stop to linux_nat_stop. * linux-nat.h (thread_db_attach_lwp): Declare. * linux-thread-db.c (thread_get_info_callback): Check for new threads if we have none. (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the stopped lwp. Check for new threads if we have none. (thread_db_attach_lwp): New. (thread_db_init): Set proc_handle.pid to inferior_ptid. (check_event): Set proc_handle.pid to the stopped lwp. (thread_db_find_new_threads): Set proc_handle.pid to any stopped lwp available, bail out if there is none. * linux-fork.c (linux_fork_killall): Use SIGKILL instead of PTRACE_KILL.
* * gdb.base/randomize.exp: Remove dependency on tcl-8.4+.Jan Kratochvil2008-07-102-2/+6
|
* * rs6000-tdep.c (ppc_displaced_step_fixup): Change type ofKevin Buettner2008-07-102-1/+4
| | | | `current_pc' from CORE_ADDR to ULONGEST.
* * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid toKevin Buettner2008-07-102-1/+6
| | | | gdbsim_stop().
* bfd/Richard Sandiford2008-07-102-25/+19
| | | | | | | | | | | | | | | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 for all relocation types. Allow any type of relocation to refer to __gnu_local_gp. ld/testsuite/ * ld-mips-elf/no-shared-1-o32.s, ld-mips-elf/no-shared-1-o32.d, ld-mips-elf/no-shared-1-n32.d, ld-mips-elf/no-shared-1-n64.s, ld-mips-elf/no-shared-1-n64.d, ld-mips-elf/no-shared-1.ld: New tests. * ld-mips-elf/mips-elf.exp: Run them.
* include/elf/Richard Sandiford2008-07-106-11/+29
| | | | | | | | | | | | | | | | | | | | | | | * mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros. bfd/ * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. (mips_elf_calculate_relocation): Likewise. (_bfd_mips_elf_add_symbol_hook): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. opcodes/ * mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16. gas/ * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16. (mips_fix_adjustable): Likewise. (mips_frob_file_after_relocs): Likewise. gas/testsuite/ * gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests. * gas/mips/mips.exp: Run them.
* fix typo in "set debug timetstamp"Doug Evans2008-07-101-1/+1
|
* (_bfd_mips_elf_section_from_shdr): Add missingAndreas Schwab2008-07-102-1/+6
| | | | paren.