aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-12-19try ignoring bad PLT entries in ELF symbol tablesJoel Brobecker2-0/+23
Comment says it all: /* On ia64-hpux, we have discovered that the system linker adds undefined symbols with nonzero addresses that cannot be right (their address points inside the code of another function in the .text section). This creates problems when trying to determine which symbol corresponds to a given address. We try to detect those buggy symbols by checking which section we think they correspond to. Normally, PLT symbols are stored inside their own section, and the typical name for that section is ".plt". So, if there is a ".plt" section, and yet the section name of our symbol does not start with ".plt", we ignore that symbol. */ gdb/ChangeLog: * elfread.c (elf_symtab_read): Ignore undefined symbols with nonzero addresses if they do not correspond to a .plt section when one is available in the objfile.
2011-12-19*** empty log message ***gdbadmin1-1/+1
2011-12-18gdb/gdbserver/Jan Kratochvil2-3/+11
* linux-low.c (linux_create_inferior): Put empty if clause for write. Revert: 2011-12-18 Hui Zhu <teawater@gmail.com> * linux-low.c (linux_create_inferior): Save return value to ret.
2011-12-182011-12-18 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+7
* linux-low.c (linux_create_inferior): Save return value to ret.
2011-12-18*** empty log message ***gdbadmin1-1/+1
2011-12-17* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't useAndreas Schwab2-3/+5
obstack_empty_p.
2011-12-17* amd64obsd-tdep.c (amd64obsd_init_abi): Don't setMark Kettenis2-4/+21
regset_from_core_section. (amd64obsd_core_init_abi): New function that sets regset_from_core_section. (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for traditional core dumps.
2011-12-17* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.Mark Kettenis2-1/+6
2011-12-17* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signalMark Kettenis2-3/+17
trampoline to be introduced in OpenBSD 5.0.
2011-12-17gdb/Jan Kratochvil2-2/+8
Fix build regression from the PR threads/10729 fix. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP, not LP->PTID.
2011-12-17* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' andAndrey Smirnov2-28/+36
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_data_read_memory): Ditto. (mi_cmd_data_read_memory_bytes): Ditto.
2011-12-17* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' toAndrey Smirnov2-17/+23
`oind' and `oarg', respectively(-Wshadow). (mi_valid_noargs): Ditto.
2011-12-17* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' toAndrey Smirnov2-8/+13
`oind' and `oarg', respectively(-Wshadow).
2011-12-17* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' andAndrey Smirnov2-17/+24
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_target_file_put): Ditto. (mi_cmd_target_file_delete): Ditto.
2011-12-17* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' andAndrey Smirnov2-13/+19
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_env_dir): Ditto.
2011-12-17* mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and `optarg'Andrey Smirnov2-11/+16
to `oind' and `oarg', respectively(-Wshadow).
2011-12-17* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' andAndrey Smirnov2-15/+21
`optparg' to `oind' and `oparg', respectively(-Wshadow). (mi_cmd_break_watch): Ditto.
2011-12-17*** empty log message ***gdbadmin1-1/+1
2011-12-16 * linespec.c (collect_symbols): Call maybe_add_address afterTom Tromey2-19/+15
calling symbol_to_sal. (minsym_found): Call maybe_add_address here. (search_minsyms_for_name): Don't call maybe_add_address.
2011-12-16 * linespec.c (struct collect_info) <objfile>: Remove field.Tom Tromey2-27/+130
(decode_objc): Update. (find_method): Update. (decode_variable): Update. (struct minsym_and_objfile): New. (struct collect_minsyms): New. (classify_mtype): New function. (compare_msyms): Likewise. (add_minsym): Likewise. (check_minsym): Remove. (search_minsyms_for_name): Sort minsyms and apply only those with top priority.
2011-12-16 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.Tom Tromey2-1/+5
2011-12-162011-12-16 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-36/+54
* inf-loop.c: Include top.h. (inferior_event_handler): Call check_frame_language. * top.c (check_frame_language_change): New, factored out from ... (execute_command): ... this. Use check_frame_language_change. * top.h (check_frame_language_change): Declare.
2011-12-16fix typo in previous entryDoug Evans1-1/+1
2011-12-16 * boards/native-stdiogdbserver.exp: New file.Doug Evans2-0/+139
2011-12-16 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missingPierre Muller2-0/+7
prototypes.
2011-12-16 * boards/native-gdbserver.exp: New file.Doug Evans2-0/+78
2011-12-16 * linux-low.c (linux_create_inferior): If stdio connection,Doug Evans1-0/+14
redirect stdin from /dev/null, stdout to stderr. * remote-utils.c (remote_is_stdio): New static global. (remote_connection_is_stdio): New function. (remote_prepare): Handle stdio connection. (remote_open): Ditto. (remote_close): Don't close stdin for stdio connections. (read_prim,write_prim): New functions. Replace all calls to read/write to these. * server.c (main): Watch for "-" argument. Move call to remote_prepare before start_inferior. * server.h (STDIO_CONNECTION_NAME): New macro. (remote_connection_is_stdio): Declare.
2011-12-16 * NEWS: Add entry for stdio gdbserver.Doug Evans10-22/+165
gdbserver/ * linux-low.c (linux_create_inferior): If stdio connection, redirect stdin from /dev/null, stdout to stderr. * remote-utils.c (remote_is_stdio): New static global. (remote_connection_is_stdio): New function. (remote_prepare): Handle stdio connection. (remote_open): Ditto. (remote_close): Don't close stdin for stdio connections. (read_prim,write_prim): New functions. Replace all calls to read/write to these. * server.c (main): Watch for "-" argument. Move call to remote_prepare before start_inferior. * server.h (STDIO_CONNECTION_NAME): New macro. (remote_connection_is_stdio): Declare. doc/ * gdb.texinfo (Server): Document -/stdio argument to gdbserver. testsuite/ * lib/gdbserver-support.exp (gdb_target_cmd): Recognize stdio gdbserver output. (gdbserver_default_get_remote_address): New function. (gdbserver_start): Call gdb,get_remote_address to compute argument to "target remote" command.
2011-12-16 * remote-utils.c (prepare_resume_reply): Remove extraneous \nDoug Evans2-1/+6
in debugging output.
2011-12-162011-12-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-2/+2
* ChangeLog: Fix path typo. * doc/ChangeLog: Ditto.
2011-12-162011-12-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-100/+168
* testsuite/gdb.python/py-function.exp: Change "on" to "full" for python print-stack. Add set/show python print-stack off|full|message tests. 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> * python/python.c: Define python_excp_enums. (eval_python_from_control_command): Do not call gdbpy_print_stack. (python_command): Ditto. (gdbpy_print_stack): Rewrite to use new enum constants. (maint_set_python): Remove function. (maint_show_python): Ditto. (_initialize_python): Do not add "maint" commands. Add "set/show python print-stack commands". * NEWS: Update to reflect removal for "maint set/show print-stack" 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> * doc/gdb.texinfo (Python Commands): Remove "maint set/show print stack". Add documentation for "set/show python print-stack".
2011-12-16*** empty log message ***gdbadmin1-1/+1
2011-12-15 * exceptions.c (catcher_list_size): New function.Doug Evans2-7/+58
(last_message): Delete. (exception_messages, exception_messages_size): New static globals. (throw_it): Use exception_messages array to handle nested calls.
2011-12-15 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove badTom Tromey2-2/+5
do_cleanups call.
2011-12-15gdb/testsuite/Yao Qi3-0/+155
* gdb.trace/strace.c: New * gdb.trace/strace.exp: New.
2011-12-15gdb/gdbserver/Yao Qi2-2/+7
* tracepoint.c: Include sys/syscall.h. (gdb_ust_thread): Remove preprocessor conditional.
2011-12-15*** empty log message ***gdbadmin1-1/+1
2011-12-14 * defs.h (wait_to_die_with_timeout): Declare.Doug Evans4-5/+106
* utils.c: #include "gdb_wait.h". (sigalrm_handler, wait_to_die_with_timeout): New functions. * ser-pipe.c: Don't #include "gdb_wait.h". (pipe_close): Give child a chance to die on its own after closing its stdin before SIGTERM'ing it.
2011-12-14Fix latest ChangeLog entry (forgot to give credit to reporter)Joel Brobecker1-0/+1
2011-12-14fix uninitialized field in ada-lang.c (struct match_data)Joel Brobecker2-1/+6
Field found_sym in add_nonlocal_symbols's struct match_data is used uninitialized. Rather than adding the initialization of this field (to zero), we set the entire structure to zero first, and then set the fields that need to be initialized to non-zero next. gdb/ChangeLog: * ada-lang.c (add_nonlocal_symbols): Initialize data to all zeros. Remove setting of data.arg_sym to NULL.
2011-12-14 * gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.Tom Tromey2-1/+7
2011-12-14 * lib/gdb.exp (gdb_start_cmd): Fix error return value.Doug Evans2-1/+5
2011-12-14Fix typo in "Changes since ...".Doug Evans1-1/+1
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+7
* linux-low.c (linux_detach_one_lwp): Call the_low_target.prepare_to_resume before detaching.
2011-12-14gdb/Pedro Alves21-214/+658
2011-12-14 Pedro Alves <pedro@codesourcery.com> PR threads/10729 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp pointer. (linux_nat_prepare_to_resume): New global. (lwp_free): New. (purge_lwp_list): Use it. (add_lwp): Call linux_nat_new_thread even on the first LWP. Adjust to interface change. (delete_lwp): Call lwp_free instead of xfree. (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume) (linux_handle_syscall_trap, linux_handle_extended_wait) (linux_nat_filter_event, resume_stopped_resumed_lwps): Call linux_nat_prepare_to_resume before resuming. (linux_stop_lwp): New. (linux_nat_set_new_thread): Adjust. (linux_nat_set_prepare_to_resume): New. * linux-nat.h (struct arch_lwp_info): Forward declare. (struct lwp_info) <arch_private>: New field. (linux_stop_lwp): Declare. (linux_nat_set_new_thread): Adjust. (linux_nat_set_prepare_to_resume): New. * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL) (struct i386_debug_reg_state): Move to i386-nat.h. (dr_mirror): Comment. (i386_debug_reg_state): New. (i386_update_inferior_debug_regs): Simplify. (i386_stopped_data_address): Use the debug register state from the inferior, not from the local cache. * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and unset_status fields. New get_addr and get_control fields. (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c. (DR_NADDR, DR_STATUS): New. (struct i386_debug_reg_state): Moved from i386-nat.c. * amd64-linux-nat.c (struct arch_lwp_info): New. (amd64_linux_dr): Delete global. (amd64_linux_dr_get_addr): New. (amd64_linux_dr_get_control): New. (amd64_linux_dr_unset_status): Delete. (amd64_linux_dr_set_addr): Reimplement. (amd64_linux_dr_reset_addr): Delete. (update_debug_registers_callback): New. (amd64_linux_dr_set_control): Reimplement. (amd64_linux_dr_set_addr): Reimplement. (amd64_linux_prepare_to_resume): New. (amd64_linux_new_thread): Change parameter to an lwp pointer. Reimplement. (_initialize_amd64_linux_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install amd64_linux_dr_get_control as i386_dr_low.get_control. Install amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install amd64_linux_prepare_to_resume. * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) (DR_CONTROL): Delete. (struct arch_lwp_info): New. (i386_linux_dr): Delete global. (i386_linux_dr_set_control): Reimplement. (i386_linux_dr_get_addr): New. (i386_linux_dr_set_addr): Reimplement. (i386_linux_dr_get_control): New. (update_debug_registers_callback): New. (i386_linux_dr_unset_status): Delete. (i386_linux_dr_set_addr): Reimplement. (i386_linux_prepare_to_resume): New. (i386_linux_new_thread): Change parameter to an lwp pointer. Reimplement. (_initialize_i386_linux_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install i386_linux_dr_get_control as i386_dr_low.get_control. Install i386_linux_dr_get_addr as i386_dr_low.get_addr. Install i386_linux_prepare_to_resume. * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an lwp pointer. Adjust. * ia64-linux-nat.c (ia64_linux_new_thread): Likewise. * mips-linux-nat.c (mips_linux_new_thread): Likewise. * ppc-linux-nat.c (ppc_linux_new_thread): Likewise. * s390-nat.c (s390_fix_watch_points): Likewise. * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) (DR_CONTROL): Delete. (i386_darwin_dr_reset_addr): Delete. (i386_darwin_dr_get_addr): New. (i386_darwin_dr_get_control): New. * go32-nat.c (go32_get_dr7, go32_get_dr): New. (init_go32_ops): No longer install i386_dr_low.reset_addr. Install go32_get_dr7 as i386_dr_low.get_control. Install go32_get_dr as i386_dr_low.get_addr. * i386bsd-nat.c (i386bsd_dr_get): New. (i386bsd_dr_reset_addr): Delete. (i386bsd_dr_get_addr): New. (i386bsd_dr_get_status): Use i386bsd_dr_get. (i386bsd_dr_get_control): New. * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete. (i386bsd_dr_get_addr): New. (i386bsd_dr_get_control): New. * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install i386bsd_dr_get_control as i386_dr_low.get_control. Install i386bsd_dr_get_addr as i386_dr_low.get_addr. * windows-nat.c (init_windows_ops): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr as i386_dr_low.get_addr. (cygwin_get_dr): New. (cygwin_get_dr7): New. gdb/testsuite/ 2011-12-14 Pedro Alves <pedro@codesourcery.com> PR threads/10729 * gdb.mi/watch-nonstop.c: New file. * gdb.mi/mi-watch-nonstop.exp: New file.
2011-12-14Add PR gdb/8367 to basenames-may-differ patch.Doug Evans1-0/+1
2011-12-14Add PR # 7200 to: Make "!" an alias for "shell".Doug Evans1-1/+1
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-4/+16
* ia64-tdep.c (ia64_memory_remove_breakpoint): Use target_write_raw_memory. * m32r-tdep.c (m32r_memory_remove_breakpoint): Use target_write_raw_memory. * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint): Use target_write_raw_memory. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use target_write_raw_memory.
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+18
* gdb.texinfo (Implementing a Remote Stub): Explain that you should transfer control to the stub in the startup code instead of in main. Mention the need to get past the initial breakpoint.
2011-12-14Make decode_line_internal static.Joel Brobecker2-1/+5
gdb/ChangeLog: * linespec.c (decode_line_internal): Make static.