aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2009-05-27*** empty log message ***gdbadmin1-1/+1
2009-05-26 * dwarf2read.c (follow_die_ref): Add comment.Doug Evans2-4/+15
(dwarf2_mark_helper): Tweak comment. (dwarf2_mark): Move description to its proper place.
2009-05-26*** empty log message ***gdbadmin1-1/+1
2009-05-25 * procfs.c (procfs_wait): Add options parameter.Pierre Muller2-2/+6
2009-05-25*** empty log message ***gdbadmin1-1/+1
2009-05-24gdb:Doug Evans18-52/+62
Global renaming of find_thread_pid to find_thread_ptid. * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid. * thread.c (find_thread_ptid): Renamed from find_thread_pid. All callers updated. gdbserver: Global renaming of find_thread_pid to find_thread_ptid. * server.h (find_thread_ptid): Renamed from find_thread_pid. * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. All callers updated.
2009-05-24 * infrun.c (follow_fork): Initialize new step_* localsDoug Evans2-6/+11
to avoid "may be used uninitialized" warnings.
2009-05-24 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.Pedro Alves2-1/+6
2009-05-24gdb/Pedro Alves12-171/+542
* gdbthread.h (struct thread_info): New `pending_follow' field. * thread.c (new_thread): New function. (add_thread_silent): Use it. * breakpoint.c (internal_breakpoint_number): New global, moved from inside... (create_internal_breakpoint): ... this. (clone_momentary_breakpoint): New. * breakpoint.h (clone_momentary_breakpoint): Declare. * infrun.c (nullify_last_target_wait_ptid): Move declaration higher. (pending_follow): Delete. (follow_fork): Handle pending follow fork event here. Moved the preserving of thread stepping state here. (resume): Don't handle pending follow fork events here. Only install the inferior's terminal modes if we're about to resume it. (proceed): Handle possible pending follow fork events here. (init_wait_for_inferior): No need to clear pending_follow anymore, it's gone. (handle_inferior_event): Adjust to per-thread `pending_follow'. Call `follow_fork' to handle following the fork. If the follow-fork is cancelled, stop stepping. * linux-nat.c (linux_child_follow_fork): Adjust to per-thread `pending_follow' events. Remove code that handled preserving the thread stepping state. * inf-ptrace.c (inf_ptrace_follow_fork): Ditto. * inf-ttrace.c (inf_ttrace_follow_fork): Ditto. gdb/testsuite/ * gdb.threads/fork-thread-pending.c: New. * gdb.threads/fork-thread-pending.exp: New.
2009-05-24 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwpDoug Evans2-6/+13
to resume the newly created thread, don't call ptrace (PTRACE_CONT) directly.
2009-05-24 * linux-low.c (get_stop_pc): Print pc if debug_threads.Doug Evans2-11/+26
(check_removed_breakpoint, linux_wait_for_lwp): Ditto. (linux_resume_one_lwp): Ditto.
2009-05-24 * Correct date for last commitPierre Muller1-1/+1
2009-05-24 * symfile.c (add_shared_symbol_files_command): RemovePierre Muller8-61/+20
prototype and function. (_initialize _symfile): Move "add-shared-symbol-files" command and "assf" alias. * windows-nat.c (_initialize_windows_nat): to here. Change "add-shared-symbol-files" to alias. * config/i386/cygwin.mh: Remove NAT_FILE. * config/i386/mingw.mh: Remove NAT_FILE. * config/i386/mingw64.mh: Remove NAT_FILE. * config/i386/nm-cygwin.h: Remove file. * config/i386/nm-cygwin64.h: Remove file.
2009-05-24 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,Hui Zhu4-321/+158
I386_LINUX_RECORD_IOCTL_*, I386_LINUX_RECORD_FCNTL_*) Removed. (i386_linux_init_abi): Change size of record from macros to numbers. * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char. * linux-record.c (record_linux_system_call): Ditto. * linux-record.h (linux_record_tdep): Ditto.
2009-05-24 * linux-low.c (linux_resume_one_lwp): Change type of first argDoug Evans2-15/+18
from struct inferior_list_entry * to struct lwp_info *. All callers updated.
2009-05-24*** empty log message ***gdbadmin1-1/+1
2009-05-23gdb/Jan Kratochvil18-69/+83
Replace the savestring calls by xstrdup calls where possible. * breakpoint.c (condition_command, set_raw_breakpoint) (create_catchpoint, update_breakpoint_locations): Replace the savestring calls by xstrdup calls where possible. * buildsym.c (start_subfile, patch_subfile_names, record_debugformat) (record_producer): Likewise. * coffread.c (coff_start_symtab, complete_symtab): Likewise. * corefile.c (set_gnutarget): Likewise. * dbxread.c (add_new_header_file): Likewise. * demangle.c (set_demangling_command, set_demangling_style): Likewise. * event-top.c (push_prompt, pop_prompt, command_line_handler) (set_async_prompt): Likewise. * infcmd.c (set_inferior_io_terminal, attach_command_post_wait): Likewise. * language.c (set_language_command, _initialize_language): Likewise. * linespec.c (decode_line_2): Likewise. * rs6000-nat.c (add_vmap): Likewise. * top.c (set_prompt, init_history, init_main): Likewise. * tracepoint.c (stringify_collection_list): Likewise. * varobj.c (varobj_create): Remove variable expr_len. Replace the savestring calls by xstrdup calls where possible. (value_of_root, c_name_of_variable, c_describe_child): Replace the savestring calls by xstrdup calls where possible. * xcoffread.c (complete_symtab): Likewise. * cli/cli-script.c (build_command_line, define_command): Likewise. * cli/cli-setshow.c (do_setshow_command): Likewise.
2009-05-23gdb/Jan Kratochvil3-30/+8
Remove already unreachable code. * varobj.c (varobj_get_handle): Fix comment when error is called. All callers updated.
2009-05-23 * README (`configure' options): Document GDB-specific options toEli Zaretskii2-10/+103
`configure'.
2009-05-23 * symtab.c (skip_prologue_using_lineinfo): New function.Eli Zaretskii2-0/+60
(find_function_start_sal): Use it to get to the first line of function's body that has an entry in the lineinfo table.
2009-05-23 * coffread.c (process_coff_symbol): Set the symbol's language toEli Zaretskii2-1/+3
the language of current_subfile.
2009-05-23 * symmisc.c (dump_symtab): Switch the current language toEli Zaretskii3-6/+27
the language of the symtab we are dumping only if the symtab's language is neither language_auto nor language_unknown. * coffread.c (coff_symtab_read): Set language_minimal as the language for the "_globals_" pseudo-file.
2009-05-23*** empty log message ***gdbadmin1-1/+1
2009-05-22 * target.h (struct section_table): Rename to ...Pedro Alves24-59/+85
(struct target_section): ... this. * exec.c: Adjust all references. * exec.h: Adjust all references. * nto-tdep.c: Adjust all references. * nto-tdep.h: Adjust all references. * ppc-linux-tdep.c: Adjust all references. * rs6000-nat.c: Adjust all references. * s390-tdep.c: Adjust all references. * solib-darwin.c: Adjust all references. * solib-frv.c: Adjust all references. * solib-irix.c: Adjust all references. * solib-null.c: Adjust all references. * solib-osf.c: Adjust all references. * solib-pa64.c: Adjust all references. * solib-som.c: Adjust all references. * solib-sunos.c: Adjust all references. * solib-svr4.c: Adjust all references. * solib-target.c: Adjust all references. * solib.c: Adjust all references. * solist.h: Adjust all references. * symfile.c: Adjust all references. * symfile.h: Adjust all references. * target.c: Adjust all references.
2009-05-22 Add sys_fcntl argument interfaces to linux_record_tdep.Hui Zhu1-0/+20
* linux-record.h (linux_record_tdep): Add fcntl_F_GETLK, fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be interfaces. * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK, I386_LINUX_RECORD_FCNTL_F_GETLK64, I386_LINUX_RECORD_FCNTL_F_SETLK64, I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values of I386 Linux sys_fcntl arguments. (i386_linux_init_abi): Set macros values to linux_record_tdep. * linux-record.c (record_linux_system_call): Change to use the interface in linux_record_tdep in sys_fcntl and sys_fcntl64. * linux-record.c (record_linux_system_call): Fix the process record build error about type in CYGWIN.
2009-05-22 Add sys_fcntl argument interfaces to linux_record_tdep.Hui Zhu3-46/+65
* linux-record.h (linux_record_tdep): Add fcntl_F_GETLK, fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be interfaces. * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK, I386_LINUX_RECORD_FCNTL_F_GETLK64, I386_LINUX_RECORD_FCNTL_F_SETLK64, I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values of I386 Linux sys_fcntl arguments. (i386_linux_init_abi): Set macros values to linux_record_tdep. * linux-record.c (record_linux_system_call): Change to use the interface in linux_record_tdep in sys_fcntl and sys_fcntl64. * linux-record.c (record_linux_system_call): Fix the process record build error about type in CYGWIN.
2009-05-22 * inflow.c (kill_command): Delete left over static declaration.Pedro Alves2-2/+4
2009-05-22 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.Pedro Alves5-100/+121
Include exec.h. (struct section_closure): Delete. (add_to_section_table): Delete. (build_target_sections_from_bfd): Delete. (target_bfd_xfer_partial): Use section_table_xfer_memory_partial. (target_bfd_reopen): Use build_section_table. * exec.c (xfer_memory): Move most code except for overlay debugging support from here... (section_table_xfer_memory): ... to this new function. (section_table_xfer_memory_partial): New. * exec.h (section_table_xfer_memory_partial): Declare. * bfd-target.h (build_target_sections_from_bfd): Delete declaration.
2009-05-22 * remote.c (compare_sections_command): Don't declare exec_bfd.Pedro Alves3-2/+7
* tracepoint.c: Include "gdbcore.h". (remote_set_transparent_ranges): Don't declare exec_bfd.
2009-05-22*** empty log message ***gdbadmin1-1/+1
2009-05-21 * aix-thread.c (init_aix_thread_ops): Whitespace.Pedro Alves2-18/+22
2009-05-21 * dec-thread.c (dec_thread_wait): Add options parameter. Use itPedro Alves3-3/+9
to call the to_wait method in the target beneath. * remote-m32r-sdi.c (m32r_wait): Add options parameter.
2009-05-21 * aix-thread.c (aix_thread_wait): Add options parameter. Use itJoel Brobecker2-2/+7
to call the to_wait method in the target_beneath.
2009-05-21 * linux-nat.c (linux_nat_terminal_inferior)Pedro Alves7-38/+41
(linux_nat_terminal_ours): Don't check sync_execution. * remote.c (remote_terminal_inferior, remote_terminal_ours): Don't check sync_execution. Update comments. * target.c (target_terminal_inferior): New. * target.h (target_terminal_inferior): Delete macro, and declare as function. * event-top.c (async_disable_stdin): Make idempotent. Don't give the target the terminal here. * inflow.c (terminal_ours_1): Don't return early without setting `terminal_is_ours'.
2009-05-21 * target.h (TARGET_WNOHANG): New.Pedro Alves27-74/+130
* target.c (target_wait): Add `options' argument. Adjust. (struct target_ops) <to_wait>: Add `options' argument. (target_wait): Add `options' argument. * infrun.c (wait_for_inferior): Pass 0 as options to target_wait (blocking wait). (fetch_inferior_event): Pass TARGET_WNOHANG as options to target_wait. * fork-child.c (startup_inferior): Pass 0 as options to target_wait (blocking wait). * linux-nat.c (linux_nat_create_inferior): Remove async masking. (linux_nat_wait_1): Add `target_options' argument. Use it instead of checking on target_can_async_p. (linux_nat_wait): Add `target_options' argument. Adjust. * remote.c (remote_wait_ns): Add `options' argument. Adjust to check on TARGET_WNOWAIT instead of checking on remote_is_async_p. (remote_wait_as): Add `options' argument. Adjust to check on TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing a blocking wait, keep waiting until an interesting event comes out. (remote_wait): Add `options' argument. Don't loop here if the target is in async mode, and a blocking wait has been requested. * top.c (deprecated_target_wait_hook): Add `options' argument. * linux-thread-db.c (thread_db_wait): Add `options' argument, and pass it down to the layer beneath. * inf-ptrace.c (inf_ptrace_wait): Add `options' argument. * record.c (record_beneath_to_wait): Add `options' argument. (record_wait): Add `options' argument, and pass it down to the layer beneath. * bsd-uthread.c (bsd_uthread_wait): Add `options' argument. * darwin-nat.c (darwin_wait): Likewise. * defs.h (deprecated_target_wait_hook): Likewise. * gnu-nat.c (gnu_wait): Add `options' argument. * go32-nat.c (go32_wait): Likewise. * hpux-thread.c (hpux_thread_wait): Add `options' argument, and pass it down to the layer beneath. * inf-ttrace.c (inf_ttrace_wait): Add `options' argument. * monitor.c (monitor_wait): Likewise. * nto-procfs.c (procfs_wait): Likewise. * remote-mips.c (mips_wait): Add `options' argument. * remote-sim.c (gdbsim_wait): Likewise. * rs6000-nat.c (rs6000_wait): Add `options' argument. * sol-thread.c (sol_thread_wait): Add `options' argument, and pass it down to the layer beneath. * spu-linux-nat.c (spu_child_wait): Add `options' argument. * windows-nat.c (windows_wait): Likewise. * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
2009-05-21 * mi/mi-interp.c (mi_on_resume): Account for whole processPedro Alves2-1/+6
resumes.
2009-05-21gdb/Jan Kratochvil2-1/+5
* m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
2009-05-21gdb/Jan Kratochvil2-0/+5
* dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
2009-05-21gdb/Jan Kratochvil5-5/+39
Fix parsing DW_AT_const_value using DW_FORM_string. * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New. gdb/testsuite/ * gdb.dwarf2/dw2-strp.exp (p a_string2, ptype a_string2): New. * gdb.dwarf2/dw2-strp.S (a_string2): New.
2009-05-21*** empty log message ***gdbadmin1-1/+1
2009-05-20 * aix-thread.c (giter_count): Do not count the main thread.Joel Brobecker2-5/+24
(giter_accum): Do not include the main thread.
2009-05-20fix filename in 2009-01-14 Kai Tietz <kai.tietz@onevision.com> changelogNathan Sidwell1-1/+1
2009-05-20*** empty log message ***gdbadmin1-1/+1
2009-05-19gdb/Jan Kratochvil8-18/+28
Remove the PROT parameter from openp. * source.c (openp): Remove the parameter PROT. Assertion check MODE. defs.h (openp): Update the prototype. Update all the openp callers.
2009-05-19 * inflow.c (kill_command): Moved to infcmd.c.Pedro Alves3-37/+42
(_initialize_inflow): Don't add the "kill" command or clear inferior_ptid here. * infcmd.c (kill_command): Moved here from inflow.c. (_initialize_infcmd): Add the "kill" command here.
2009-05-19 * fork-child.c: Don't include frame.h. Include terminal.h.Pedro Alves8-17/+91
(fork_inferior): Call new_tty_postfork after forking adn adding the child to the inferior list. * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare here. * inflow.c (struct terminal_info): Remove const qualifier from `run_terminal' field. (inferior_thisrun_terminal): Tweak comment. (inflow_inferior_exit): Release the `run_terminal' field. (copy_terminal_info): New function. (new_tty_postfork): New function. * terminal.h (new_tty_prefork, new_tty, new_tty_postfork, (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare. * inf-ptrace.c: Include terminal.h. (inf_ptrace_follow_fork): Copy the parent's terminal info to the child. * linux-nat.c: Include terminal.h. (linux_child_follow_fork): Copy the parent's terminal info to the child. * inf-ttrace.c: Include terminal.h. (inf_ttrace_follow_fork): Copy the parent's terminal info to the child.
2009-05-19Forgot to check in the ChangeLog entry for the previous change. Here goes...Pedro Alves1-0/+18
2009-05-19 Pedro Alves <pedro@codesourcery.com> * breakpoint.c (insert_breakpoints, breakpoint_init_inferior) (update_global_location_list): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist and target_supports_multi_process. * dicos-tdep.c (dicos_init_abi): Set gdbarch_has_global_breakpoints. * gdbarch.sh (has_global_solist): Update comment. (has_global_breakpoints): New. * remote.c (remote_start_remote): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * target.c (target_detach): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * infcmd.c (attach_command): Use gdbarch_has_global_solist instead of target_supports_multi_process.
2009-05-19 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)Pedro Alves8-18/+58
(update_global_location_list): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist and target_supports_multi_process. * dicos-tdep.c (dicos_init_abi): Set gdbarch_has_global_breakpoints. * gdbarch.sh (has_global_solist): Update comment. (has_global_breakpoints): New. * remote.c (remote_start_remote): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * target.c (target_detach): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * infcmd.c (attach_command): Use gdbarch_has_global_solist instead of target_supports_multi_process.
2009-05-19*** empty log message ***gdbadmin1-1/+1
2009-05-182009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+6
* objc-lang.c (find_methods): Plug a small memory leak.