aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-08-31Create and use a specialized bcache type for psymbolsSami Wagiaalla7-16/+92
2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> * symfile.c (reread_symbols): Use psymbol_bcache_free, and psymbol_bcache_init. * psymtab.h (psymbol_bcache_init): New function prototype. (psymbol_bcache_free): New function prototype. (psymbol_bcache_get_bcache): New function prototype. * psymtab.c (psymbol_bcache_init): New function. (psymbol_bcache_free): New function. (psymbol_bcache_full): New function. (psymbol_bcache_get_bcache): New function. (add_psymbol_to_bcache): use psymbol_bcache_full. * objfiles.h (psymbol_cache): Change type of psymbol_cache to psymbol_bcache. * symmisc.c (print_symbol_bcache_statistics): Updated. (print_objfile_statistics): Updated. * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize psymbol_cache. (free_objfile): Use psymbol_bcache_free.
2010-08-31 PR c++/11961:Tom Tromey2-13/+20
* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: Don't set TYPE_NAME on the type.
2010-08-312010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-0/+10
* infrun.c (set_exec_direction_func): Error out if target does not support reverse execution.
2010-08-31 * gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.Doug Evans2-1/+6
2010-08-31gdb/Jan Kratochvil2-0/+42
Make linux_get_siginfo_type `type *' unique. * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data) (init_linux_gdbarch_data, get_linux_gdbarch_data): New. (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize it. Use linux_gdbarch_data->siginfo_type as a persistent storage. (_initialize_linux_tdep): New.
2010-08-31gdb/Jan Kratochvil10-64/+45
Code cleanup. * defs.h (find_memory_region_ftype): New typedef. (exec_set_find_memory_regions): Use it. * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype. * fbsd-nat.c (fbsd_find_memory_regions): Likewise. * gcore.c (objfile_find_memory_regions): Likewise. * gnu-nat.c (gnu_find_memory_regions): Likewise. * linux-nat.c (linux_nat_find_memory_regions): Likewise. * procfs.c (iterate_over_mappings_cb_ftype): Remove. (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to find_memory_region_ftype. (insert_dbx_link_bpt_in_region): Likewise. (iterate_over_mappings): Likewise. Drop the comment part about the function prototype. (find_memory_regions_callback): Use find_memory_region_ftype. (proc_find_memory_regions): Likewise. (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to find_memory_region_ftype. * target.c (dummy_find_memory_regions): Use find_memory_region_ftype. * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2010-08-31Enable custom bcache hash function.Sami Wagiaalla8-26/+129
2010-08-25 Sami Wagiaalla <swagiaal@redhat.com> * psymtab.c (add_psymbol_to_bcache): Remove 'static' from 'static partial_symbol psymbol'. (psymbol_hash): New function. (psymbol_compare): New function. * bcache.c (hash_continue): New. (hash): Use hash_continue. * bcache.c: Add hash_function and compare_function pointers to bcache struct. (bcache_full): Use bcache->hash_function, and bcache->compare_function. (bcache_compare): New function. (bcache_xmalloc): Take hash_function and compare_function arguments and initialize the bcach's pointers. Updated comment. * objfiles.c (allocate_objfile): Updated. * symfile.c (reread_symbols): Updated. * python/py-type.c (typy_richcompare): Updated.
2010-08-31Remove an extra "@item".H.J. Lu2-1/+4
2010-08-31 H.J. Lu <hongjiu.lu@intel.com> * gdb.texinfo (i386 Features): Remove an extra "@item".
2010-08-31*** empty log message ***gdbadmin1-1/+1
2010-08-30gdbTom Tromey6-4/+111
2010-08-30 Andre Poenitz <andre.poenitz@nokia.com> Tom Tromey <tromey@redhat.com> PR python/11792: * python/py-value.c (valpy_get_dynamic_type): New function. (value_object_getset): Add "dynamic_type". (valpy_get_type): Fail on error. gdb/doc PR python/11792: * gdb.texinfo (Values From Inferior): Document dynamic_type. gdb/testsuite PR python/11792: * gdb.python/py-value.exp (test_subscript_regression): Add dynamic_type test.
2010-08-30 * gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_functionDaniel Jacobowitz3-8/+34
instead of running to main. Do not test the main function. * gdb/testsuite/gdb.cp/cpexprs.cc (main): Rename to test_function. Add new main.
2010-08-302010-08-30 Yao Qi <yao@codesourcery.com>Yao Qi4-10/+122
* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New. (arm_linux_syscall_next_pc): New. (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. (arm_linux_init_abi): Initialize syscall_next_pc. * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode. (arm_get_next_pc_raw): Get next pc of SWI in ARM mode. * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. Declare arm_frame_is_thumb.
2010-08-30gdb/Jan Kratochvil2-17/+23
Code cleanup. * breakpoint.c (bpstat_alloc): Remove unused prototype. (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the code. (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust calls of bpstat_alloc. Remove explicit bs chain termination.
2010-08-30*** empty log message ***gdbadmin1-1/+1
2010-08-29*** empty log message ***gdbadmin1-1/+1
2010-08-28 * linux-low.c (__SIGRTMIN): Define if not already defined.Pedro Alves2-5/+59
(linux_create_inferior): Check for __ANDROID__ rather than __SIGRTMIN. (enqueue_one_deferred_signal): Don't requeue non-RT signals that are already deferred. (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is stopped and already has a pending signal to report. (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has a pending signal to report or is moving out of a jump pad. (linux_init_signals): Check for __ANDROID__ rather than __SIGRTMIN.
2010-08-28 * linux-low.c (linux_stabilize_threads): Wrap debug output in aPedro Alves2-7/+14
debug_threads check. Avoid a linear search when not doing debug output.
2010-08-28gdb/Jan Kratochvil2-4/+10
Code cleanup. * linux-nat.c (pull_pid_from_list): Rename status to statusp. (my_waitpid): Likewise.
2010-08-28*** empty log message ***gdbadmin1-1/+1
2010-08-27 * dwarf2read.c (dw2_require_line_header): Read from .debug_typesDoug Evans2-3/+13
as appropriate.
2010-08-27 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't setTom Tromey2-3/+8
TYPE_FIELD_IGNORE_BITS.
2010-08-27 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to matchDoug Evans2-2/+10
the order they're defined in. munmap .debug_types buffer.
2010-08-27 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.Pedro Alves5-15/+54
(struct gdb_event) <fd>: Change type to gdb_fildes_t. (struct file_handler) <fd>: Change type to gdb_fildes_t. (process_event): Change local fd's type to gdb_fildes_t. (create_file_handler): Adjust prototype. (delete_file_handler): Adjust prototype. (handle_file_event): Adjust prototype. Use pfildes. (create_file_event): Adjsut prototype. * remote-utils.c (remote_desc, listen_desc): Change type to gdb_fildes_t. * server.h: New gdb_fildes_t typedef. [USE_WIN32API]: Include winsock2.h. (delete_file_handler, add_file_handler): Adjust prototypes. (pfildes): Declare. * utils.c (pfildes): New.
2010-08-27Fix whitespace, tabs/spaces.Pedro Alves4-554/+555
2010-08-27 * configure.ac (build_warnings): Add -Wno-char-subscripts.Pedro Alves3-2/+7
* configure: Regenerate.
2010-08-27 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...Pedro Alves8-13/+27
(linux_done_accessing_memory): ... this. (linux_target_ops): Adjust. * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. * nto-low.c (nto_target_ops): Adjust comment. * server.c (gdb_read_memory, gdb_write_memory): Adjust. * spu-low.c (spu_target_ops): Adjust comment. * target.h (target_ops): Rename unprepare_to_access_memory field to done_accessing_memory. (unprepare_to_access_memory): Rename to ... (done_accessing_memory): ... this.
2010-08-27*** empty log message ***gdbadmin1-1/+1
2010-08-26 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.Doug Evans2-78/+92
(dw2_forget_cached_source_info): Rename local cu to per_cu. (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto. (dw2_print_stats, dw2_expand_all_symtabs): Ditto. (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto. (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto. (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto. (dwarf2_free_objfile, write_one_signatured_type): Ditto. (write_psymtabs_to_index): Ditto.
2010-08-26 * linux-low.c (linux_prepare_to_access_memory): New.Pedro Alves8-13/+128
(linux_unprepare_to_access_memory): New. (linux_target_ops): Install them. * server.c (read_memory): Rename to ... (gdb_read_memory): ... this. Use prepare_to_access_memory/prepare_to_access_memory. (write_memory): Rename to ... (gdb_write_memory): ... this. Use prepare_to_access_memory/prepare_to_access_memory. (handle_search_memory_1): Adjust. (process_serial_event): Adjust. * target.h (struct target_ops): New fields prepare_to_access_memory and unprepare_to_access_memory. (prepare_to_access_memory, unprepare_to_access_memory): New. * linux-x86-low.c (x86_insert_point, x86_remove_point): Use prepare_to_access_memory/prepare_to_access_memory. * nto-low.c (nto_target_ops): Adjust. * spu-low.c (spu_target_ops): Adjust. * win32-low.c (win32_target_ops): Adjust.
2010-08-26 * NEWS: Mention libthread_db debugging with core files.Pedro Alves2-0/+29
2010-08-26 * Makefile.in (WARN_CFLAGS): Get it from configure.Pedro Alves1-0/+11
(WERROR_CFLAGS): New. (INTERNAL_CFLAGS): Add WERROR_CFLAGS. * configure.ac: Introduce --enable-werror, which adds -Werror to the compiler command line. Enabled by default. Disable with --disable-werror. Add -Wdeclaration-after-statement Wpointer-arith and -Wformat-nonliteral to warning flags. * configure: Regenerate.
2010-08-26 * Makefile.in (WARN_CFLAGS): Get it from configure.Pedro Alves3-2/+114
(WERROR_CFLAGS): New. (INTERNAL_CFLAGS): Add WERROR_CFLAGS. * configure.ac: Introduce --enable-werror, which adds -Werror to the compiler command line. Enabled by default. Disable with --disable-werror. Add -Wdeclaration-after-statement Wpointer-arith and -Wformat-nonliteral to warning flags. * configure: Regenerate.
2010-08-26 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessaryDoug Evans2-36/+101
forward decl. Pass pst->dirname to dwarf_decode_lines. (psymtab_include_file_name): New function. (dwarf_decode_lines): Call it. Update comments.
2010-08-26 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.Pedro Alves2-0/+7
2010-08-26 * gdbreplay.c (remote_error): New.Pedro Alves4-11/+53
(gdbchar): New. (expect): Use gdbchar. Check for error reading from GDB. Clarify sync error output. (play): Check for errors writing to GDB. * linux-low.c (sigchld_handler): Really ignore `write' errors. * remote-utils.c (getpkt): Check for errors writing to the remote descriptor.
2010-08-26 * gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect inPedro Alves2-8/+19
one test.
2010-08-26*** empty log message ***gdbadmin1-1/+1
2010-08-25 * dwarf2read.c (inherit_abstract_dies): Handle origin die'sPedro Alves2-7/+25
compilation unit being different from target die's.
2010-08-25 * linux-low.c (linux_wait_1): Move non-debugging code out ofPedro Alves2-2/+8
`debug_threads' control.
2010-08-25 * linux-low.c (linux_wait_1): Don't set last_status here.Pedro Alves3-7/+47
* server.c (push_event, queue_stop_reply_callback): Assert we're not pushing a TARGET_WAITKIND_IGNORE event. (start_inferior, start_inferior, attach_inferior, handle_v_cont) (myresume, handle_target_event): Set the thread's last_resume_kind and last_status from the target returned status.
2010-08-25 PR threads/10729Pedro Alves7-47/+150
* linux-x86-low.c (update_debug_registers_callback): New. (i386_dr_low_set_addr): Use it. (i386_dr_low_get_addr): New. (i386_dr_low_set_control): Use update_debug_registers_callback. (i386_dr_low_get_control): New. (i386_dr_low_get_status): Adjust. * linux-low.c (linux_stop_lwp): New. * linux-low.h (linux_stop_lwp): Declare. * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as argument instead of a i386_debug_reg_state. (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of a i386_debug_reg_state. (i386_insert_aligned_watchpoint): Adjust. (i386_remove_aligned_watchpoint): Adjust. (i386_low_stopped_data_address): Read the debug registers from the inferior instead of from the mirrors. * i386-low.h (struct i386_debug_reg_state): Extend comment. (i386_dr_low_get_addr): Declare. (i386_dr_low_get_control): Declare. (i386_dr_low_get_status): Change prototype. * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. (i386_dr_low_get_addr): New. (i386_dr_low_get_control): New. (i386_dr_low_get_status): Adjust prototype. Return dr_status_mirror. (i386_initial_stuff): Clear dr_status_mirror and dr_control_mirror. (i386_get_thread_context): Adjust. (i386_set_thread_context): Adjust. (i386_thread_added): Adjust.
2010-08-25 PR symtab/11942Doug Evans7-56/+258
* dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, debug_types_type_hash. (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. All uses updated. (lookup_die_type): Renamed from tag_type_to_tag. First look in appropriate type_hash table. All callers updated. (allocate_signatured_type_table): Renamed from allocate_signatured_type_hash_table. All callers updated. (create_signatured_type_table_from_index): Renamed from create_signatured_type_hash_from_index. All callers updated. (read_die_type): Add comment. Move actual reading to ... (read_die_type_1): ... here. New function. (follow_die_ref_or_sig): Tweak comment. (set_die_type): Rewrite to use appropriate choice of debug_info_type_hash or debug_types_type_hash. (get_die_type_at_offset): New function. (get_die_type): Call it. testsuite/ PR symtab/11942 * gdb.dwarf2/dw4-sig-types.cc: New file. * gdb.dwarf2/dw4-sig-types.h: New file. * gdb.dwarf2/dw4-sig-types-b.cc: New file. * gdb.dwarf2/dw4-sig-types.exp: New file.
2010-08-25*** empty log message ***gdbadmin1-1/+1
2010-08-24 * linux-low.h (linux_thread_area): Delete declaration.Pedro Alves2-1/+4
2010-08-24gdb/Jan Kratochvil2-1/+5
* python/py-type.c (typy_richcompare): Initialize worklist.
2010-08-24 * arm-tdep.c: Include features/arm-with-m.c.Daniel Jacobowitz8-164/+336
(arm_psr_thumb_bit): New. Update all uses of CPSR_T to call this function. (arm_pc_is_thumb): Add a gdbarch argument. Update all callers. Check is_m after force-mode. (arm_gdbarch_init): Check the binary before the target description. Add check for M profile attribute. If we have an M-profile device, but no target register description, use arm-with-m. Recognize the new org.gnu.gdb.arm.m-profile feature and its xpsr register. (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m. * arm-tdep.h (XPSR_T): Define. (struct gdbarch_tdep): Add is_m member. * features/arm-m-profile.xml, features/arm-with-m.c, features/arm-with-m.xml: New files. doc/ * gdb.texinfo (ARM Features): Document org.gnu.gdb.arm.m-profile.
2010-08-24*** empty log message ***gdbadmin1-1/+1
2010-08-23 * dwarf2read.c (set_die_type): Fix typo in comment.Doug Evans2-1/+2
2010-08-23 * dwarf2read.c (read_structure_type): Add comment.Doug Evans2-8/+25
(read_enumeration_type): Add comment. (process_enumeration_scope): Move definition of some locals closer to their use. (read_namespace_type): Add comment.
2010-08-23gdbTom Tromey7-3/+97
PR python/11145: * python/py-value.c: Include expression.h. (valpy_do_cast): New function. (valpy_cast): Use it. (valpy_dynamic_cast): New function. (valpy_reinterpret_cast): Likewise. (value_object_methods): Add dynamic_cast, reinterpret_cast. gdb/doc PR python/11145: * gdb.texinfo (Values From Inferior): Document dynamic_cast and reinterpret_cast methods. gdb/testsuite PR python/11145: * gdb.python/py-value.c (Base, Derived): New types. (base): New global. * gdb.python/py-value.exp (test_subscript_regression): Add dynamic_cast test.