aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-05-12 src/inferior.c: Include completer.hEli Zaretskii2-1/+11
(initialize_inferiors): Set completer of add-inferior to filename_completer.
2012-05-12*** empty log message ***gdbadmin1-1/+1
2012-05-11Check gdbarch_ptr_bit for x32 core dumpH.J. Lu2-2/+13
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check gdbarch_ptr_bit for x32 core dump.
2012-05-11Include 32-linux.c and x32-avx-linux.cH.J. Lu2-0/+7
* amd64-linux-tdep.c: Include features/i386/x32-linux.c and features/i386/x32-avx-linux.c.
2012-05-112012-05-11 Stan Shebs <stan@codesourcery.com>Stan Shebs9-50/+1507
Kwok Cheung Yeung <kcy@codesourcery.com> * NEWS: Describe new info os commands. * common/linux-osdata.c (PID_T, TIME_T): Define. (MAX_PID_T_STRLEN): New. (linux_common_core_of_thread): Add comment. Change to use PID_T and MAX_PID_T_STRLEN. (command_from_pid): Add comment. Change to use PID_T. (commandline_from_pid): Change to use PID_T. (user_from_pid): Add comment. (get_process_owner): Add comment. Change to use PID_T and MAX_PID_T_STRLEN. (get_number_of_cpu_cores): Add comment. (get_cores_used_by_process): Add comment. Change to use PID_T and MAX_PID_T_STRLEN. (linux_xfer_osdata_processes): Change to use PID_T and MAX_PID_T_STRLEN. (compare_processes): New function. (linux_xfer_osdata_processgroups): New function. (linux_xfer_osdata_threads): Change to use PID_T. (linux_xfer_osdata_fds): New function. (format_socket_state, print_sockets): New functions. (union socket_addr): New union. (linux_xfer_osdata_isockets): New function. (time_from_time_t, group_from_gid): New functions. (linux_xfer_osdata_shm): New function. (linux_xfer_osdata_sem): New function. (linux_xfer_osdata_msg): New function. (linux_xfer_osdata_modules): New function. (osdata_table): Add new entries. * common/buffer.c (buffer_xml_printf): Add support for long and long long format specifiers. * gdb.texinfo (Operating System Auxiliary Information): Document new 'info os' subcommands. * gdb.base/info-os.exp: New file. * gdb.base/info-os.c: New file.
2012-05-11Declare tdesc_x32_linux/tdesc_x32_avx_linuxH.J. Lu2-0/+7
* amd64-linux-tdep.h (tdesc_x32_linux): New. (tdesc_x32_avx_linux): Likewise.
2012-05-11gdb/doc/Jan Kratochvil2-1/+27
* gdb.texinfo (Auto-loading, Init File in the Current Directory) (libthread_db.so.1 file, objfile-gdb.gdb file, objfile-gdb.py file) (dotdebug_gdb_scripts section): Add reference to 'Auto-loading safe path'.
2012-05-11gdb/Jan Kratochvil8-28/+223
Implement multi-component --with-auto-load-dir. * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New entries. (--with-auto-load-safe-path): Update the default value description. * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir): New. (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by AUTO_LOAD_DIR. Support $ddir and multiple components in it. (_initialize_auto_load): Initialize also auto_load_dir. Install new "set auto-load scripts-directory". * config.in: Regenerate. * configure: Regenerate. * configure.ac (--with-auto-load-dir): New configure option. (--auto-load-safe-path): Change the default to --with-auto-load-dir. gdb/doc/ Implement multi-component --with-auto-load-dir. * gdb.texinfo (Auto-loading): New references for 'set auto-load scripts-directory' and 'show auto-load scripts-directory'. (Auto-loading safe path): Describe the new default. Move $ddir substituation reference to 'objfile-gdb.py file'. (objfile-gdb.py file): Describe script-name alias. Change real-name to script-name. Describe new 'set auto-load scripts-directory' and 'show auto-load scripts-directory'.
2012-05-11gdb/Jan Kratochvil12-26/+162
Provide $ddir substitution for --with-auto-load-safe-path. * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New entries. * auto-load.c: Include observer.h. (auto_load_safe_path_vec_update): Call substitute_path_component for each component. New variable ddir_subst. (auto_load_gdb_datadir_changed): New function. (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. New comment. (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed. * config.in: Regenerate. * configure: Regenerate. * configure.ac (--auto-load-safe-path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to GDB_DATADIR/auto-load. * defs.h (substitute_path_component): New declaration. * top.c: Include observer.h. (set_gdb_datadir): New function. (init_main): Install it for "set data-directory". * utils.c (substitute_path_component): New function. gdb/doc/ Provide $ddir substitution for --with-auto-load-safe-path. * gdb.texinfo (Auto-loading): Replace /usr/local by $ddir/auto-load. (Auto-loading safe path): Likewise. Mention the default value, $ddir substitution, --with-auto-load-safe-path and --without-auto-load-safe-path. * observer.texi (gdb_datadir_changed): New.
2012-05-11gdb/Jan Kratochvil2-9/+28
Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY. * auto-load.c (auto_load_objfile_script): Remove check for NULL DEBUG_FILE_DIRECTORY. Handle multiple components of DEBUG_FILE_DIRECTORY.
2012-05-112012-05-11 Yao Qi <yao@codesourcery.com>Pedro Alves2-8/+43
Pedro Alves <palves@redhat.com> * linux-low.c (enum stopping_threads_kind): New. (stopping_threads): Change type to `enum stopping_threads_kind'. (handle_extended_wait): If stopping and suspending threads, leave the new_lwp suspended too. (linux_wait_for_event): Adjust. (stop_all_lwps): Set `stopping_threads' to STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on whether we're suspending threads or just stopping them. Assert no recursion happens.
2012-05-11*** empty log message ***gdbadmin1-1/+1
2012-05-10 * dwarf2read.c (recursively_write_psymbols): New function.Tom Tromey2-57/+408
(write_psymtabs_to_index): Use it. * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New field. (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit) (load_partial_comp_unit): Update. (queue_comp_unit): Add argument 'pretend_language'. (process_queue): Update. (psymtab_to_symtab_1): Skip dependencies that have a user. (load_partial_comp_unit_reader): Give meaning to the 'data' argument. (load_full_comp_unit): Add 'pretend_language' argument. (process_full_comp_unit): Add 'pretend_language' argument. Set language on CU. (process_imported_unit_die, read_file_scope, read_type_unit_scope): Update. (maybe_queue_comp_unit): Add 'pretend_language' argument. (follow_die_offset, follow_die_sig, read_signatured_type_reader): Update. (prepare_one_comp_unit): Add 'pretend_language' argument. * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef. (struct dwarf2_per_objfile) <just_read_cus>: New field. (struct dwarf2_per_cu_data) <imported_symtabs>: New field. (dw2_do_instantiate_symtab): Check whether symtab was read in before queueing. (dw2_instantiate_symtab): Add assertion. Call process_cu_includes. (process_psymtab_comp_unit): Compute 'dependencies' for psymtab. (partial_symtab_p): New typedef. (set_partial_user): New function. (dwarf2_build_psymtabs_hard): Use set_partial_user. (scan_partial_symbols): Add imported CU to imported_symtabs. (dwarf2_psymtab_to_symtab): Call process_cu_includes. (psymtab_to_symtab_1): Do nothing if psymtab is readin. (get_symtab, recursively_compute_inclusions) (compute_symtab_includes, process_cu_includes) (process_imported_unit_die): New functions. (process_die) <DW_TAG_imported_unit>: New case. (dwarf2_per_objfile_free): Free 'imported_symtabs'. * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update comment. (struct partial_die_info) <locdesc>: Remove. <d>: New field. (process_psymtab_comp_unit): Add 'read_partial' argument. Update. (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update. (scan_partial_symbols): Handle DW_TAG_imported_unit. (add_partial_symbol): Update. (process_die): Handle DW_TAG_partial_unit. (read_file_scope): Update comment. (load_partial_dies): Handle DW_TAG_imported_unit. (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import. (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2012-05-10 * cc-with-dwz.sh: New file.Tom Tromey2-0/+84
2012-05-10 * symtab.h (struct symtab) <includes, user>: New fields.Tom Tromey4-7/+284
* block.h (struct block_iterator) <d, idx, which>: New fields. * block.c (initialize_block_iterator, find_iterator_symtab) (block_iterator_step, block_iter_name_step) (block_iter_match_step): New functions. (block_iterator_first, block_iterator_next) (block_iter_name_first, block_iter_name_next) (block_iter_match_first, block_iter_match_next): Rewrite. (get_block_symtab): New function.
2012-05-10 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,Tom Tromey6-13/+94
set_block_symtab. * jit.c (finalize_symtab): Use allocate_global_block, set_block_symtab. * buildsym.c (finish_block_internal): New function, from old finish_block. (finish_block): Rewrite. (end_symtab): Use finish_block_internal, set_block_symtab. * block.h (struct global_block): New. (allocate_global_block, set_block_symtab): Declare. * block.c (allocate_global_block, set_block_symtab): New functions.
2012-05-10 * psymtab.c (partial_map_expand_apply): Add assertion.Tom Tromey3-45/+176
(partial_map_symtabs_matching_filename): Skip included psymtabs. (psymtab_to_symtab): Find unshared psymtab. (dump_psymtab): Print including psymtabs. (recursively_search_psymtabs): New function. (expand_symtabs_matching_via_partial): Use it. * psympriv.h (struct partial_symtab) <user, searched_flag>: New fields. (enum psymtab_search_status): New.
2012-05-10 * tracepoint.c (scope_info): Update.Tom Tromey17-61/+228
* symtab.c (lookup_block_symbol, iterate_over_symbols) (find_pc_sect_symtab, search_symbols) (default_make_symbol_completion_list_break_on) (make_file_symbol_completion_list): Update. * symmisc.c (dump_symtab_1): Update. * stack.c (print_frame_args, iterate_over_block_locals) (print_frame_labels, iterate_over_block_arg_vars): Update. * python/py-block.c (block_object) <dict>: Remove. <block>: New field. <iter>: Change type. (blpy_iter): Update. (blpy_block_syms_iternext): Update. * psymtab.c (map_block): Use block iterators. * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS. * mi/mi-cmd-stack.c (list_args_or_locals): Update. * mdebugread.c (parse_symbol, mylookup_symbol): Update. * infrun.c (check_exception_resume): Update. * cp-support.c (make_symbol_overload_list_block): Update. * coffread.c (patch_opaque_types): Update. * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS. * block.h (struct block_iterator): New. (block_iterator_first, block_iterator_next, block_iter_name_first) (block_iter_name_next, block_iter_match_first) (block_iter_match_next): Declare. (ALL_BLOCK_SYMBOLS): Redefine. * block.c (block_iterator_first, block_iterator_next) (block_iter_name_first, block_iter_name_next) (block_iter_match_first, block_iter_match_next): New functions. * ada-lang.c (ada_add_block_symbols) (ada_make_symbol_completion_list): Use block iterator.
2012-05-10 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.Tom Tromey2-14/+17
(find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs) (lookup_partial_symbol, find_last_source_symtab_from_partial) (read_psymtabs_with_filename, map_matching_symbols_psymtab) (expand_symtabs_matching_via_partial, maintenance_check_symtabs): Update.
2012-05-10Add print 'file'::var testcase with two libs defining the same global variableJoel Brobecker7-0/+146
gdb/testsuite/ChangeLog: * gdb.base/print-file-var-lib1.c, gdb.base/print-file-var-lib2.c, gdb.base/print-file-var-main.c, gdb.base/print-file-var.exp: New files. gdb/ChangeLog: * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c, print-file-var-lib2.c, print-file-var-main.c and print-file-var.exp (located in gdb/testsuite/gdb.base).
2012-05-10New testcase: gdb.base/ctxobj.expJoel Brobecker5-0/+178
gdb/testsuite/ChangeLog: * gdb.base/ctxobj-f.c, gdb.base/ctxobj-m.c, gdb.base/ctxobj-v.c, gdb.base/ctxobj.exp: New files.
2012-05-10Search global symbols from the expression's block objfile first.Joel Brobecker3-33/+99
gdb/ChangeLog: * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols, try locating the symbol in the symbol's own objfile first, before extending the search to all objfiles. * symtab.c (lookup_symbol_aux_objfile): New function, extracted out of lookup_symbol_aux_symtabs. (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile". Replace extracted-out code by call to lookup_symbol_aux_objfile. Do not search EXCLUDE_OBJFILE. (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs. (lookup_symbol_global): Search for matches in the block's objfile first, before searching all other objfiles.
2012-05-102012-05-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-5/+19
* printcmd.c (set_command): Add pre/post inc/dec.
2012-05-10*** empty log message ***gdbadmin1-1/+1
2012-05-092012-05-09 Frank Ch. Eigler <fche@redhat.com>Frank Ch. Eigler2-1/+15
* gdb.1: Document -ex option.
2012-05-09 * gdb.trace/strace.exp: Add 'quiet' to compiler flags.Tom Tromey2-1/+5
2012-05-09gdb/doc/Jan Kratochvil2-4/+7
* gdb.texinfo (Separate Debug Files, Auto-loading safe path): Replace directory separator by path separator.
2012-05-09gdb/doc/Jan Kratochvil2-2/+9
* gdb.texinfo (Auto-loading): Wrap too long lines in @smallexample. Twice.
2012-05-09 * lib/gdb.exp (gdb_test_multiple): Correct formatting.Maciej W. Rozycki2-31/+35
2012-05-09Remove AT_SYMBOLJoel Brobecker3-28/+5
Now that this method is no longer used by any architecture, we can remove its support. gdb/ChangeLog: * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling. * inferior.h (AT_SYMBOL): Delete.
2012-05-09mips: Switch inferior function calls to ON_STACK method.Joel Brobecker2-4/+41
This patch switches the mips code to use the ON_STACK method for function calls instead of AT_SYMBOL, which we want to remove. gdb/ChangeLog: * mips-tdep.c (mips_push_dummy_code): New function. (mips_gdbarch_init): Set the gdbarch call_dummy_location to ON_STACK and install mips_push_dummy_code as our gdbarch push_dummy_code routine.
2012-05-092012-05-09 Pedro Alves <palves@redhat.com>Pedro Alves2-7/+15
* target.c (set_maintenance_target_async_permitted): Rename to ... (set_target_async_command): ... this. (show_maintenance_target_async_permitted): Rename to ... (show_target_async_command): ... this. (initialize_targets): Adjust.
2012-05-09 * go-exp.y (classify_name): Add missing assignment of fields ofDoug Evans2-2/+13
yylval.ssym.
2012-05-09*** empty log message ***gdbadmin1-1/+1
2012-05-08Display the ">" prompt in interactive mode while reading cannedEli Zaretskii4-2/+47
commands, even when the current interpreter is MI. interps.c (interp_set_temp): New function. interps.h (interp_set_temp): Add prototype. cli/cli-script.c (restore_interp): New cleanup function. (read_command_lines): Temporarily override the current interpreter with CLI and arrange for restoring the original one.
2012-05-082012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-1/+7
* microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2012-05-08 * gdb.mi/mi-var-display.exp: Check for the existence of $fpMaciej W. Rozycki2-1/+10
before using it.
2012-05-082012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior3-3/+12
* probe.c (parse_probes): Move conditional to check for debuginfo files from here... * stap-probe.c (stap_get_probes): ... to here.
2012-05-08*** empty log message ***gdbadmin1-1/+1
2012-05-07 H.J. Lu <hongjiu.lu@intel.com>Mark Kettenis2-9/+40
* amd64-tdep.c (amd64_analyze_prologue): Additionally check for `movl %esp, %ebp' for the X32 ABI.
2012-05-07 * dwarf2read.c (dwarf_tag_name): Return const char *. UseTom Tromey4-987/+57
get_DW_TAG_name. (dwarf_attr_name): Return const char *. Use get_DW_AT_name. (dwarf_form_name): Return const char *. Use get_DW_FORM_name. (dwarf_stack_op_name): Remove. (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name. (decode_locdesc): Use get_DW_OP_name. * dwarf2loc.c (unimplemented): Use get_DW_OP_name. (dwarf2_compile_expr_to_ax): Likewise. (disassemble_dwarf_expression): Likewise. * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2012-05-072012-05-07 Chung-Lin Tang <cltang@codesourcery.com>Chung-Lin Tang2-1/+130
* sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h. (sh_linux_sigtramp_cache): New function. (sh_linux_sigreturn_init): New function. (sh_linux_rt_sigreturn_init): New function. (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction patterns. (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn syscall codes. (sh_linux_sigreturn_tramp_frame): New tramp_frame definition. (sh_linux_rt_sigreturn_tramp_frame): Likewise. (sh_linux_init_abi): Add init calls to register new tramp_frame definitions under 32-bit SH, update comments.
2012-05-07Add PR number to ChangeLog entry.Pedro Alves1-0/+2
2012-05-07 Pedro Alves <palves@redhat.com> PR gdb/10952 * amd64-linux-tdep.c: Include glibc-tdep.h. (amd64_linux_init_abi): Install glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2012-05-072012-05-07 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+10
* amd64-linux-tdep.c: Include glibc-tdep.h. (amd64_linux_init_abi): Install glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2012-05-07*** empty log message ***gdbadmin1-1/+1
2012-05-06gdb/Jan Kratochvil6-10/+39
* auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "". (show_auto_load_safe_path): Check any-directory by comparison with "/". (add_auto_load_safe_path): Change the error message. (_initialize_auto_load): Change the "safe-path" help text. * configure: Regenerate * configure.ac (--without-auto-load-safe-path): Set WITH_AUTO_LOAD_SAFE_PATH to /. gdb/doc/ * gdb.texinfo (Auto-loading safe path): Make 'directories' for 'set auto-load safe-path' optional. Mention if it is omitted. Change disabling security protection condition to "/", twice.
2012-05-06*** empty log message ***gdbadmin1-1/+1
2012-05-052012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-2/+4
* stap-probe.h: Do not include unecessary `probe.h'.
2012-05-05Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_sectionAlan Modra3-7/+14
and bfd_ind_section with their _ptr variants, or use corresponding bfd_is_* macros.
2012-05-05*** empty log message ***gdbadmin1-1/+1