3 * defs.h: Don't check for definition of LONGEST.
4 (min, max): Remove duplicates.
8 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
9 (dwarf2_fetch_die_loc_cu_off): Rename from
10 dwarf2_fetch_die_location_block. Rewrite to use
11 dwarf2_fetch_die_loc_sect_off.
12 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
13 (dwarf2_fetch_die_loc_cu_off): Rename.
14 * dwarf2loc.c (indirect_pieced_value): Use
15 dwarf2_fetch_die_loc_sect_off.
16 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
18 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
19 * dwarf2expr.c (add_piece): Update.
20 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
24 * buildsym.c (struct pending_block): Move from buildsym.h.
25 (pending_blocks): Likewise; now static.
26 (pending_block_obstack): New global.
27 (free_pending_blocks): Free blocks.
28 (record_pending_block): Use pending_block_obstack.
29 * buildsym.h (struct pending_block): Move definition to
31 (pending_blocks): Don't declare.
35 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
36 dead SCO code, and adjust function description comment.
40 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
41 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
43 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
44 * dwarf2read.c (extract_cu_value): Remove the function.
45 (create_cus_from_index_list): Make the return type void, inline the
46 extract_cu_value caller, include new gdb_static_assert.
47 (create_cus_from_index): Make the return type void, update the function
48 comment, update the create_cus_from_index_list caller.
49 (create_signatured_type_table_from_index): Make the return type void,
50 inline the extract_cu_value caller, include new gdb_static_assert.
51 (dwarf2_read_index): Update the create_cus_from_index and
52 create_signatured_type_table_from_index caller.
53 * printcmd.c (ui_printf): Remove conditionalizations for
55 * config.in: Regenerate.
56 * configure: Regenerate.
60 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
61 Update the comment for checked_producer.
62 (check_producer): New forward declaration.
63 (producer_is_gcc_lt_4_3): New function.
64 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
65 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
69 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
71 * c-exp.y (typebase): Add completion productions.
72 * completer.c (expression_completer): Handle tag completion.
73 * expression.h (parse_expression_for_completion): Add argument.
74 * f-lang.c (f_make_symbol_completion_list): Add 'code'
76 * language.h (struct language_defn)
77 <la_make_symbol_completion_list>: Add 'code' argument.
78 * parse.c (expout_tag_completion_type, expout_completion_name):
80 (mark_struct_expression): Add assertion.
81 (mark_completion_tag): New function.
82 (parse_exp_in_context): Initialize new globals.
83 (parse_expression_for_completion): Add 'code' argument. Handle
85 * parser-defs.h (mark_completion_tag): Declare.
86 * symtab.c (default_make_symbol_completion_list_break_on): Add
87 'code' argument. Update.
88 (default_make_symbol_completion_list): Add 'code' argument.
89 (make_symbol_completion_list): Update.
90 (make_symbol_completion_type): New function.
91 * symtab.h (default_make_symbol_completion_list_break_on)
92 (default_make_symbol_completion_list): Update.
93 (make_symbol_completion_type): Declare.
97 * expression.h (parse_expression_for_completion): Rename
98 from parse_field_expression.
99 (parse_completion): Rename from in_parse_field.
100 * c-exp.y (lex_one_token): Update.
101 * completer.c (expression_completer): Update.
102 * go-exp.y (lex_one_token): Update.
103 * p-exp.y (yylex): Update.
104 * parse.c (parse_completion): Rename from in_parse_field.
105 (parse_exp_in_context): Update.
106 (parse_expression_for_completion): Rename from
107 parse_field_expression. Update.
111 * typeprint.c (_initialize_typeprint): Set completer
112 for "whatis" and "ptype".
116 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
117 "sim/common/cgen-fpu.h". Remove invalid entries
118 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
119 which actually have an FSF copyright header.
123 * osf-share/AT386/cma_thread_io.h: Delete.
124 * osf-share/HP800/cma_thread_io.h: Delete.
125 * osf-share/README: Delete.
126 * osf-share/RIOS/cma_thread_io.h: Delete.
127 * osf-share/cma_attr.h: Delete.
128 * osf-share/cma_deb_core.h: Delete.
129 * osf-share/cma_debug_client.h: Delete.
130 * osf-share/cma_errors.h: Delete.
131 * osf-share/cma_handle.h: Delete.
132 * osf-share/cma_init.h: Delete.
133 * osf-share/cma_list.h: Delete.
134 * osf-share/cma_mutex.h: Delete.
135 * osf-share/cma_sched.h: Delete.
136 * osf-share/cma_semaphore_defs.h: Delete.
137 * osf-share/cma_sequence.h: Delete.
138 * osf-share/cma_stack.h: Delete.
139 * osf-share/cma_stack_int.h: Delete.
140 * osf-share/cma_tcb_defs.h: Delete.
141 * osf-share/cma_util.h: Delete.
142 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
144 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
145 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
146 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
151 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
156 * mi/mi-cmd-var.c (varobj_update_one): Take value of
157 attribute "dynamic" and "displayhint" from printed child,
158 not the root variable.
162 * aix-thread.c (getthrds): Fix type of 4th parameter.
163 (get_signaled_thread): Change type of variable ktid to tid_t.
167 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
168 value of get_frame_block.
172 Avoid memory leaks on struct cmd_list_element.doc field.
173 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
174 if flags contains DOC_ALLOCATED.
175 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
177 (delete_cmd): Handle DOC_ALLOCATED flag.
178 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
179 in flags filed of struct cmd_list_element.
180 (struct cmd_list_element): Document new flag item.
184 * symmisc.c: Whitespace fixes.
188 * i386-tdep.c (i386_skip_prologue): Using symbol table
189 to find the end of prologue for clang compiled binaries.
190 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
191 to find the end of prologue for clang compiled binaries.
195 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
196 (dw2_find_symbol_file): Delete unused local file_data.
200 * ada-exp.y (write_object_renaming, write_var_or_type)
201 (write_ambiguous_var, write_var_from_sym): Make blocks const.
202 * ada-lang.c (replace_operator_with_call)
203 (find_old_style_renaming_symbol): Make blocks const.
204 * ada-lang.h (ada_find_renaming_symbol): Update.
205 (struct ada_symbol_info) <block>: Now const.
206 * breakpoint.c (watch_command_1): Update.
207 * breakpoint.h (struct watchpoint) <exp_valid_block,
208 cond_exp_valid_block>: Now const.
209 * c-exp.y (classify_inner_name, classify_name): Make block
211 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
213 * expression.h (innermost_block, parse_exp_1): Update.
214 (union exp_element) <block>: Now const.
215 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
216 (lookup_struct): Make block argument const.
217 * gdbtypes.h (lookup_template_type): Update.
218 * go-exp.y (classify_name, classify_packaged_name)
219 (package_name_p): Make block argument const.
220 * objc-lang.c (lookup_struct_typedef): Make block argument const.
221 * objc-lang.h (lookup_struct_typedef): Update.
222 * parse.c (parse_exp_in_context, parse_exp_1)
223 (write_exp_elt_block): Make block arguments const.
224 (expression_context_block, innermost_block): Now const.
225 * parser-defs.h (write_exp_elt_block): Update.
226 (expression_context_block, innermost_block, block_found): Now
228 * printcmd.c (struct display) <block>: Now const.
229 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
230 * valops.c (address_of_variable): Make block argument const.
231 * value.h (value_of_variable): Update.
232 * varobj.c (struct varobj_root) <valid_block>: Now const.
236 * breakpoint.c (print_one_breakpoint_location): Indent code.
240 * breakpoint.c (print_one_breakpoint_location): Combine two
241 blocks handling 'hit count' together.
245 * infrun.c (error_is_running, ensure_not_running): Move them
247 * infcmd.c (error_is_running, ensure_not_running): ... here.
249 * inferior.h: Remove declarations of error_is_running and
254 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
259 * infrun.c: Make the declaration of 'init_infwait_state'
261 (init_infwait_state): Make it 'static'.
265 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
266 return value to void to avoid compiler warning.
270 * opencl-lang.c (opencl_print_type): New function.
271 (opencl_language_arch_info): Install it.
275 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
277 * common/common-utils.c (xasprintf, xvasprintf): Remove.
278 * common/common-utils.h (xasprintf, xvasprintf): Remove.
282 * ada-lang.c (ada_is_interface_tag): New function.
283 (ada_is_ignored_field): Add interface tags to the list
288 * ada-lang.h (ada_tag_value_at_base_address): New function
290 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
292 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
293 relocate the class-wide value if need be.
294 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
295 Let ada_tag_value_at_base_address relocate the class-wide access/ref
296 before dereferencing it.
297 * ada-valprint.c (ada_val_print_1): Relocate to base address
298 before displaying the content of an interface-wide ref.
302 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
311 * eval.c (evaluate_subexp_standard): Get the correct pointer
312 type for TYPE_CODE_MEMBERPTR.
316 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
317 since now it is being done by binutils' powerpc_init_dialect().
322 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
323 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
325 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
326 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
327 (gdb_bfd_openr_next_archived_file): Use it.
331 * configure.ac: Check for linux/perf_event.h.
332 * config.in: Regenerated.
333 * configure: Regenerated.
337 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
338 abbreviate 'delete tracepoints' to 'delete tr'.
339 * corefile.c (_initialize_core): Call add_alias_cmd to
340 abbreviate 'set gnutarget' to 'set g'.
341 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
342 'show convenience' to 'show conv'.
346 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
347 call to sparc_supply_fpregset.
348 (fill_fpregset): Fix first parameter in call to
349 sparc_collect_fpregset.
355 * objfiles.c (init_entry_point_info): Call
356 gdbarch_convert_from_func_ptr_addr and
357 gdbarch_addr_bits_remove here ...
358 (entry_point_address_query): ... instead of here.
359 * solib-svr4.c (exec_entry_point): Call
360 gdbarch_addr_bits_remove.
361 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
367 * eval.c (evaluate_subexp_standard): Add handling of
368 TYPE_CODE_MEMBERPTR when calling functions. Correct the
369 result of ptype for calling a TYPE_CODE_METHODPTR.
373 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
381 * NEWS: Mention mini debuginfo feature.
382 * minidebug.c: New file.
383 * configure.ac: Check for lzma.
384 * configure, config.in: Rebuild.
385 * Makefile.in (LIBLZMA): New variable.
386 (CLIBS): Include LIBLZMA.
387 (SFILES): Mention minidebug.c.
388 (COMMON_OBS): Mention minidebug.o.
389 * symfile.c (read_symbols): New function.
390 (syms_from_objfile, reread_symbols): Call it.
391 * symfile.h (find_separate_debug_file_in_section): Declare.
395 * exec.c (exec_file_attach): Move cleanup after verifying that
396 memory has in fact been allocated.
400 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
401 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
403 * skip.c (skip_info): Use SYMBOL_SYMTAB.
408 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
409 size parameter passed to readlink by one byte.
410 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
411 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
412 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
413 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
418 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
419 extraneous parentheses.
423 * remote.c (remote_start_remote): Typo fix.
427 * sparc-tdep.h (struct sparc_fpregset): New data structure.
428 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
429 sparc32_sol2_fpregset): Declare new globals.
430 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
432 * sparc64-tdep.h (sparc64_supply_fpregset,
433 sparc64_collect_fpregset): Likewise.
434 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
436 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
437 (sparc_fpregset): Declare new global.
438 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
440 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
442 (fill_fpregset): Likewise.
443 (_initialize_sparc_linux_nat): Set sparc_fpregset to
444 sparc32_bsd_fpregset.
445 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
446 sparc32_bsd_fpregset down into handler.
447 (sparc32_linux_collect_core_fpregset): Likewise.
448 * sparc-nat.c (sparc_fpregset): Define.
449 (sparc_supply_fpregset): Add 'fpregset' argument.
450 (sparc_collect_fpregset): Likewise.
451 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
452 into fpregset handler.
453 (sparc_store_inferior_registers): Likewise.
454 (_initialize_sparc_nat): Set sparc_fpregset to
455 sparc32_sunos4_fpregset if NULL.
456 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
458 (fill_fpregset): Likewise.
459 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
460 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
461 use it to compute offsets.
462 (sparc32_collect_fpregset): Likewise.
463 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
464 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
466 (fill_fpregset): Likewise.
467 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
469 (sparc64_linux_collect_core_fpregset): Likewise.
470 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
471 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
472 use it to compute offsets.
473 (sparc64_collect_fpregset): Likewise.
474 (sparc64_bsd_fpregset): Define.
475 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
476 sparc64_bsd_fpregset down into handler.
477 (sparc64fbsd_collect_fpregset): Likewise.
478 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
479 and pass sparc{32,64}_bsd_fpregset down into handler.
480 (sparc64nbsd_collect_fpregset): Likewise.
481 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
482 sparc64_bsd_fpregset down into handler.
483 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
484 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
485 to sparc32_bsd_fpregset.
486 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
487 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
488 (sparc32nbsd_supply_fpregset): Likewise.
492 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
494 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
496 * c-typeprint.c (c_type_print_base): Update.
501 * gdbarch.sh (smash_text_address): Remove.
502 * gdbarch.c, gdbarch.h: Regenerate.
503 * arm-tdep.c (arm_smash_text_address): Remove.
504 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
505 * hppa-tdep.c (hppa_smash_text_address): Remove.
506 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
507 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
509 * coffread.c (coff_symtab_read): Caller update.
510 * dbxread.c (process_one_symbol): Likewise.
511 * elfread.c (record_minimal_symbol): Likewise.
512 * somread.c (som_symtab_read): Likewise.
516 ARI fixes: sprintf rule.
517 Replace sprintf function calls for char arrays by
518 calls to xsnprintf calls.
519 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
520 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
521 (arm_neon_quad_read, arm_pseudo_read): Ditto.
522 (arm_neon_quad_write, arm_pseudo_write): Ditto.
523 * breakpoint.c (condition_completer): Ditto.
524 (create_tracepoint_from_upload): Ditto.
525 * dwarf2read.c (file_full_name): Ditto.
526 * gcore.c (gcore_command): Ditto.
527 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
528 * go32-nat.c (go32_sysinfo): Ditto.
529 * interps.c (interp_set): Ditto.
530 * m32c-tdep.c (make_types): Ditto.
531 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
532 * remote-m32r-sdi.c (m32r_open): Ditto.
533 * sol-thread.c (td_err_string): Ditto.
534 (td_state_string, solaris_pid_to_str): Ditto.
535 * symtab.c (gdb_mangle_name): Ditto.
536 * cli/cli-script.c (execute_control_command): Ditto.
537 (define_command, document_command): Ditto.
538 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
539 * tui/tui-stack.c (tui_make_status_line): Ditto.
540 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
544 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
545 it when looking at ptr->func.
546 * command.h (complete_on_cmdlist): Add a fourth arg.
547 * completer.c (complete_line_internal): Add local ignore_help_classes,
548 and set it to 1 when reason is not handle_help. Pass this down to
549 lookup_cmd_1 and complete_on_cmdlist.
553 * completer.c (count_struct_fields): Remove.
554 (expression_completer): Don't call count_struct_fields.
558 * annotate.c (breakpoints_changed): Rename to ...
559 (annotate_breakpoints_changed): ... this.
560 (annotate_stopped, breakpoint_changed): Adjust caller.
561 * annotate.h (breakpoints_changed): Rename to ...
562 (annotate_breakpoints_changed): ... this.
563 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
564 (do_map_commands_command, init_raw_breakpoint, clear_command)
565 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
569 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
570 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
572 (get_cores_used_by_process): Update comment.
576 * objfiles.c (init_entry_point_info): Remove trailing spaces.
580 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
581 to deprecated_context_hook.
585 * infrun.c (infwait_state): Add static.
590 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
591 parameter and pass it to lookup_symbol_file.
592 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
593 to search base classes.
594 (cp_lookup_symbol_namespace): Likewise.
595 (lookup_namespace_scope): Likewise.
596 (lookup_symbol_file): Add SEARCH parameter.
597 If SEARCH is non-zero and no symbol is found, lookup the class
598 and call cp_lookup_nested_symbol.
599 (find_symbol_in_baseclass): New function.
600 (cp_lookup_nested_symbol): Do not let
601 cp_lookup_symbol_in_namespace search through base classes.
602 Do that later when there is no global symbol match.
606 * main.c (gdb_datadir_provided): New static global.
607 (get_init_files): If --data-directory is provided,
608 and SYSTEM_GDBINIT lives in data-directory, look for it there.
613 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
614 * gdb_stat.h: Delete. Moved to common directory.
615 * common/gdb_stat.h: New file.
616 * gdb_wait.h: Delete. Moved to common directory.
617 * common/gdb_wait.h: New file.
618 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
620 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
622 (stat.h rule): Adapt to new gdb_stat.h location.
623 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
625 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
630 * configure.ac (AC_HEADER_STAT): Remove.
631 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
632 and corresponding code.
633 * configure: Regenerate.
634 * config.in: Regenerate.
638 ARI xasprintf rule fixes.
639 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
640 instead of xasprintf.
641 (open_and_init_dwp_file): Ditto.
645 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
650 * configure, config.in: Rebuild.
651 * configure.ac: Don't check for ctype.h, time.h.
652 * expprint.c: Don't use HAVE_CTYPE_H.
656 * gdbarch.h, gdbarch.c: Rebuild.
657 * gdbarch.sh (set_target_gdbarch): Rename from
658 deprecated_target_gdbarch_select_hack.
659 * arch-utils.c (gdbarch_update_p): Update.
660 (set_gdbarch_from_file): Update.
664 * MAINTAINERS (Responsible Maintainers/misc): Add myself
665 as responsible of contrib/ari directory.
670 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
672 (arm_m_exception_cache, arm_m_exception_this_id)
673 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
674 (arm_m_exception_unwind): New.
675 (arm_gdbarch_init): Register arm_m_exception_unwind.
679 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
680 parameter COUNT, for pattern filling of memory regions.
685 * disasm.h (DISASSEMBLY_FILENAME): New macro.
686 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
687 to print_source_lines ().
688 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
690 * source.c (print_source_lines_base): Prefix source line with
691 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
695 * symtab.h (print_source_lines_flags): New enum.
696 * source.c (print_source_lines_base): Change noerror to flags.
697 (print_source_lines): Change noerror to flags.
701 ARI fixes: Avoid sprintf function use rule.
702 * charset.c (convert_between_encodings): Use xsnprintf.
703 * cli-out.c (cli_field_int): Likewise.
704 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
705 * expprint.c (op_name_standard): Likewise.
706 * frv-tdep.c (set_variant_num_gprs): Likewise.
707 (set_variant_num_fprs): Likewise.
708 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
709 * nto-tdep.c (nto_find_and_open_solib): Likewise.
710 (nto_init_solib_absolute_prefix): Likewise.
711 * source.c (init_source_path): Likewise.
712 (print_source_lines_base): Likewise.
713 * valprint.c (print_wchar): Likewise.
714 * mi/mi-out.c (mi_field_int): Likewise.
715 windows-nat.c (windows_pid_to_exec_file): Likewise.
716 (windows_create_inferior): Likewise.
717 (_initialize_check_for_gdb_ini): Likewise.
721 * frame.h (deprecated_frame_register_read): Renames
723 * frame.c (deprecated_frame_register_read): Renames
724 frame_register_read. Update all callers.
725 * i386-tdep.c: Update all callers of frame_register_read.
726 * infcmd.c: Likewise.
728 * mips-tdep.c: Likewise.
729 * mt-tdep.c: Likewise.
730 * sh64-tdep.c: Likewise.
734 * frame.h (frame_register_read): Remove FIXME comment.
735 * frame.c (frame_register_read): Add suggestion explaining
736 which function to use in place of this one.
740 * python/python.c (start_type_printers): Initialize 'result_obj'.
745 * data-directory/Makefile.in (PYTHON_FILES): Add
747 * python/lib/gdb/command/type_printers.py: New file.
748 * python/lib/gdb/command/types.py (TypePrinter): New class.
749 (_get_some_type_recognizers, get_type_recognizers,
750 apply_type_recognizers, register_type_printer): New
752 * python/py-objfile.c (objfile_object) <type_printers>: New
754 (objfpy_dealloc): Decref new field.
755 (objfpy_new): Set new field.
756 (objfpy_get_type_printers, objfpy_set_type_printers): New
758 (objfile_to_objfile_object): Set new field.
759 (objfile_getset): Add "type_printers".
760 * python/py-progspace.c (pspace_object) <type_printers>: New
762 (pspy_dealloc): Decref new field.
763 (pspy_new): Set new field.
764 (pspy_get_type_printers, pspy_set_type_printers): New functions.
765 (pspace_to_pspace_object): Set new field.
766 (pspace_getset): Add "type_printers".
767 * python/python.c (start_type_printers, apply_type_printers,
768 free_type_printers): New functions.
769 (_initialize_python): Set gdb.type_printers.
770 * python/python.h (start_type_printers, apply_type_printers,
771 free_type_printers): Declare.
772 * typeprint.c (type_print_raw_options, default_ptype_flags):
773 Update for new fields.
774 (do_free_global_table, create_global_typedef_table,
775 find_global_typedef): New functions.
776 (find_typedef_in_hash): Use find_global_typedef.
777 (whatis_exp): Use create_global_typedef_table. Change cleanup
779 * typeprint.h (struct type_print_options) <global_typedefs,
780 global_printers>: New fields.
784 * c-typeprint.c (find_typedef_for_canonicalize,
785 print_name_maybe_canonical): New functions.
786 (c_print_type): Look up type name.
787 (cp_type_print_derivation_info): Add flags argument. Use
788 print_name_maybe_canonical.
789 (cp_type_print_method_args): Add wrapping.
790 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
791 (c_type_print_template_args): New function.
792 (c_type_print_base): Change wrapping. Use
793 print_name_maybe_canonical.
794 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
796 * gdbtypes.c (types_equal): No longer static.
797 * gdbtypes.h (types_equal): Declare.
798 * typeprint.c (type_print_raw_options, default_ptype_flags):
800 (struct typedef_hash_table): New.
801 (hash_typedef_field, eq_typedef_field,
802 recursively_update_typedef_hash, add_template_parameters,
803 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
804 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
805 copy_typedef_hash, find_typedef_in_hash): New functions.
806 * typeprint.h (struct type_print_options) <local_typedefs>:
808 (recursively_update_typedef_hash, add_template_parameters,
809 create_typedef_hash, free_typedef_hash,
810 make_cleanup_free_typedef_hash, copy_typedef_hash,
811 find_typedef_in_hash): Declare.
815 * cp-support.c (inspect_type,
816 replace_typedefs_qualified_name, replace_typedefs): Add
817 finder, data arguments. Call as needed.
818 (cp_canonicalize_string_full): New function.
819 (cp_canonicalize_string_no_typedefs): Rewrite.
820 * cp-support.h (canonicalization_ftype): New typedef.
821 (cp_canonicalize_string_full): Declare.
826 * c-typeprint.c (c_type_print_base): Handle print_method and
827 print_typedefs flags.
828 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
829 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
831 * typeprint.c (type_print_raw_options, default_ptype_flags):
832 Update for new field.s
833 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
834 (setprinttypelist, showprinttypelist, print_methods,
835 print_typedefs): New globals.
836 (set_print_type, show_print_type, set_print_type_methods,
837 show_print_type_methods, set_print_type_typedefs,
838 show_print_type_typedefs): New functions.
839 (_initialize_typeprint): Update documentation. Add "print
840 type methods" and "print type typedefs" parameters.
841 * typeprint.h (struct type_print_options) <print_methods,
842 print_typedefs>: New fields.
846 * c-typeprint.c (cp_type_print_method_args): Add flags
847 argument. Call c_print_type, not type_print.
848 (c_type_print_base): Call c_print_type, not type_print.
853 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
854 to type-printing functions.
855 * ada-lang.h (ada_print_type): Add argument.
856 * ada-typeprint.c (print_array_type, print_variant_clauses,
857 print_variant_part, print_selected_record_field_types,
858 print_record_field_types, print_unchecked_union_type,
859 print_func_type, ada_print_type): Add flags argument.
860 (ada_print_typedef): Update.
861 * c-exp.y (OPERATOR conversion_type_id): Update.
862 * c-lang.h (c_print_type, c_type_print_base): Update.
863 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
864 c_type_print_modifier, c_type_print_args,
865 c_type_print_varspec_suffix, c_type_print_base): Add flags
867 * cp-valprint.c (cp_print_class_member): Update.
868 * dwarf2read.c (dwarf2_compute_name): Update.
869 * f-lang.h (f_print_type): Add argument.
870 * f-typeprint.c (f_print_type): Add flags argument.
871 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
872 * go-lang.h (go_print_type): Add argument.
873 * go-typeprint.c (go_print_type): Add flags argument.
874 * jv-lang.h (java_print_type): Add argument.
875 * jv-typeprint.c (java_type_print_base, java_print_type): Add
877 * language.c (unk_lang_print_type): Add flags argument.
878 * language.h (struct language_defn) <la_print_type>: Add flags
880 (LA_PRINT_TYPE): Likewise.
881 * m2-lang.h (m2_print_type): Add argument.
882 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
883 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
884 m2_unbounded_array, m2_record_fields): Add flags argument.
885 * p-lang.h (pascal_print_type, pascal_type_print_base,
886 pascal_type_print_varspec_prefix): Add argument.
887 * p-typeprint.c (pascal_print_type,
888 pascal_type_print_varspec_prefix, pascal_print_func_args,
889 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
891 * symmisc.c (print_symbol): Update.
892 * typeprint.c (type_print_raw_options, default_ptype_flags):
894 (type_print): Update.
895 * typeprint.h (struct type_print_options): New.
896 (type_print_raw_options): Declare.
897 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
901 * breakpoint.c (clear_command): Add cleanup for
902 sals.sals if an argument is given.
904 * linespec.c (parse_linespec): Do cleanups after
905 parsing a convenience variable.
910 * c-valprint.c (c_val_print): For character arrays
911 with "print null" option on, print ellipses if
912 the output is truncated and the next character is not \000.
913 * valprint.c (MAX_WCHARS): Define.
914 (WCHAR_BUFLEN): Likewise.
915 (WCHAR_BUFLEN_MAX): Likewise.
916 (struct converted_character): New structure.
917 (count_next_character): New function.
918 (print_converted_chars_to_obstack): New function.
919 (generic_printstr): Rewrite using count_next_character
920 and print_converted_chars_to_obstack.
924 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
925 while executing the gdb command.
926 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
927 are called from prompt_for_continue.
928 * tui/tui-io.c (tui_redisplay_readline): Likewise.
934 * tui/tui.c (tui_rl_command_key): Do not call execute_command
935 but insert the command to execute in readline's buffer.
939 * gdbarch.sh (target_gdbarch): Remove macro.
940 (get_target_gdbarch): Rename to target_gdbarch.
941 * gdbarch.c, gdbarch.h: Rebuild.
942 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
943 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
944 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
945 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
946 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
947 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
948 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
949 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
950 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
951 procfs.c, progspace.c, ravenscar-thread.c, record.c,
952 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
953 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
954 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
955 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
956 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
957 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
958 target-descriptions.c, target.c, target.h, tracepoint.c,
959 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
960 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
961 python/py-inferior.c, python/python.c: Update.
965 * source.c (print_source_lines_base): Add fullname field giving
966 full path to file in mi output.
967 * NEWS: Mention the new fullname field.
971 * NEWS: Mention the fix to the ambiguity of 'fo' command.
977 * infrun.c: Include target-descriptions.h.
978 (follow_exec): Fetch new target description.
982 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
987 * breakpoint.c: Declare set_tracepoint_count.
988 (install_breakpoint): Call set_tracepoint_count if B is a
990 (trace_command): Don't call set_tracepoint_count. Re-indent.
991 (strace_command, ftrace_command):
992 (create_tracepoint_from_upload): Likewise.
996 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
997 (get_target_gdbarch) <gdbarch.h>: New function.
998 (startup_gdbarch) <gdbarch.h>: Declare.
999 <gdbarch.c> (target_gdbarch): Delete.
1000 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1001 current inferior's gdbarch.
1002 <gdbarch.c> (get_target_gdbarch): New function.
1003 * inferior.c: Include target-descriptions.h.
1004 (free_inferior): Free target description info.
1005 (add_inferior_with_spaces): Set the inferior's initial
1007 (clone_inferior_command): Copy the original inferior's target
1008 description if it was user specified.
1009 (initialize_inferiors): Add comment.
1010 * inferior.h (struct target_desc_info): Forward declare.
1011 (struct inferior) <gdbarch>: New field.
1012 * linux-nat.c: Include target-descriptions.h.
1013 (linux_child_follow_fork): Copy the parent's architecture and
1014 target description to the child.
1015 * target-descriptions.c: Include inferior.h.
1016 (struct target_desc_info): New structure, holding the equivalents
1018 (target_desc_fetched, current_target_desc)
1019 (target_description_filename): ... these removed globals.
1020 (get_tdesc_info, target_desc_info_from_user_p)
1021 (copy_inferior_target_desc_info, target_desc_info_free): New.
1022 (target_desc_fetched, current_target_desc)
1023 (target_description_filename): Reimplemented as convenience
1025 (tdesc_filename_cmd_string): New global.
1026 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1027 tdescs filename ..." commands to the per-inferior equivalent.
1028 (show_tdesc_filename_cmd): Get the value to show from the
1029 per-inferior description filename.
1030 (_initilize_target_descriptions): Change the "set/show tdesc
1031 filename" commands' variable.
1032 * target-descriptions.h (struct target_desc, struct target_desc_info)
1033 (struct inferior): Forward declare.
1034 (target_find_description, target_clear_description)
1035 (target_current_description): Adjust comments.
1036 (copy_inferior_target_desc_info, target_desc_info_free)
1037 (target_desc_info_from_user_p). Declare.
1041 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1042 (tui_target_wait_hook): Remove.
1043 (tui_install_hooks): Install the about_to_proceed observer.
1044 (tui_remove_hooks): And remove it here.
1048 * linux-tdep.c (linux_make_siginfo_note): New function.
1049 (linux_make_corefile_notes): Use it.
1050 * corelow.c (get_core_siginfo): New function.
1051 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1056 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1057 (zlib_decompress_section): Remove.
1058 (gdb_bfd_map_section): Only check for compressed section
1059 in mmap case. Use bfd_get_full_section_contents.
1060 * osabi.c (check_note): Add 'sectsize' argument. Read
1062 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1063 section data. Update for check_note change.
1064 * xcoffread.c (xcoff_initial_scan): Use
1065 bfd_get_full_section_contents.
1066 * py-auto-load.c (auto_load_section_scripts): Use
1067 bfd_get_full_section_contents.
1068 * contrib/cc-with-tweaks.sh: Add -Z option.
1072 * python/py-bpevent.c: Include defs.h.
1073 * python/py-continueevent.c: Include defs.h.
1074 * python/py-event.c: Include defs.h.
1075 * python/py-event.h: Don't include defs.h.
1076 * python/py-events.h: Don't include defs.h.
1077 * python/py-evts.c: Include defs.h.
1078 * python/py-exitedevent.c: Include defs.h.
1079 * python/py-newobjfileevent.c: Include defs.h.
1080 * python/py-signalevent.c: Include defs.h.
1081 * python/py-stopevent.c: Include defs.h.
1082 * python/py-threadevent.c: Include defs.h.
1086 * update-web-ari.sh (print_heading): Add number of files
1088 (nb_files): New variable counting the number of sources
1089 files found by gdb_find.sh script.
1090 (debug_awk): New variable to allow extra debug output.
1091 (indexes): Add more information if DEBUG_AWK is set.
1095 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1096 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1097 following the change in PLT call stubs on linker.
1101 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1102 as default language.
1103 (AWK): Use = instead of == for sh test to avoid warning.
1104 (Linux rule): Correct [:digit] into [[:digit:]].
1105 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1106 (vasprintf rule): Adapt to common subdirectory moves.
1107 (xasprintf rule): Idem.
1108 (xvasprintf rule): Idem.
1109 (var_boolean rule): Accept occurence in == or != test.
1111 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1115 * tui/tui-hooks.c (tui_inferior_exit): New function.
1116 (tui_detach_hook): Remove.
1117 (tui_install_hooks): Install the inferior exit observer.
1118 (tui_remove_hooks): Remove it.
1123 * source.c (_initialize_source): Call add_com_alias to abbreviate
1124 'forward-search' as 'fo'.
1128 * arm-tdep.c: Make defs.h be the first include.
1129 * coff-pe-read.c: Ditto.
1131 * go32-nat.c: Ditto.
1132 * i386-nat.c: Ditto.
1133 * ppcnbsd-nat.c: Ditto.
1134 * ada-varobj.h: Don't include defs.h.
1135 * i386-darwin-tdep.h: Ditto.
1136 * i386-nat.h: Ditto.
1140 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1145 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1146 File already uses "gdb_dirent.h" header.
1150 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1155 * target.h (inferior_has_forked, inferior_has_vforked)
1156 (inferior_has_execd, inferior_has_called_syscall): Remove
1161 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1162 add missing internalization markup.
1168 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1172 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1177 * gnulib/update-gnulib.sh: New script.
1181 * MAINTAINERS: Update my email address.
1185 * frame.c (put_frame_register): Don't use temporary buffer.
1189 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1190 child. Clear 'pending_detach'.
1191 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1192 'pending_detach' in the vfork parent.
1196 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1197 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1198 * dwarf2read.c: #include "elf-bfd.h".
1199 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1200 (dwop_section_names): Renamed from dwo_section names. All uses
1201 updated. Add entries for .debug_cu_index, .debug_tu_index.
1202 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1204 (struct dwp_sections): New type.
1205 (struct virtual_dwo_sections): New type.
1206 (struct dwp_hash_table): New type.
1207 (struct dwp_file): New type.
1208 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1209 read in. Handle DWOs coming from DWP files.
1210 (lookup_dwo_file_slot): New function.
1211 (dwarf2_locate_dwo_sections): Move definition closer to use.
1212 (create_dwo_debug_info_hash_table_reader): Renamed from
1213 create_debug_info_hash_table_reader. All callers updated.
1214 (create_dwo_debug_info_hash_table): Renamed from
1215 create_debug_info_hash_table. All callers updated.
1216 (create_dwp_hash_table): New function.
1217 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1218 (lookup_dwo_in_dwp): New function.
1219 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1220 is_dwp. All callers updated.
1221 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1222 (open_and_init_dwo_file): Renamed from init_dwo_file.
1223 All callers updated.
1224 (lookup_dwo_file): Delete.
1225 (dwarf2_locate_dwp_sections): New function.
1226 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1227 (allocate_dwp_loaded_cutus_table): New function.
1228 (open_and_init_dwp_file): New function.
1229 (lookup_dwo_cutu): New function.
1230 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1235 * breakpoint.c (trace_pass_set_count): Call
1236 observer_notify_breakpoint_modified instead of
1237 observer_notify_tracepoint_modified.
1238 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1242 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1243 argument to complete_on_enum.
1247 * configure: Rebuild.
1248 * configure.ac (build_warnings): Add -Wempty-body.
1249 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1250 * remote.c (handle_notification): Use braces for empty 'else' body.
1251 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1253 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1255 * solib-som.c (som_relocate_section_addresses): Use braces
1256 for empty 'else' body.
1257 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1258 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1264 * infrun.c (handle_inferior_event)
1265 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1266 null_ptid before handling a vfork child exec or exit. Switch to
1267 the event ptid afterwards.
1271 * std-operator.def: Remove OP_LABELED.
1272 * eval.c: Remove the declaration of 'get_label'.
1273 (get_label): Remove.
1274 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1276 Remove local variable 'variantno' and related code.
1277 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1279 * expprint.c (print_subexp_standard): Likewise.
1280 (dump_subexp_body_standard): Likewise.
1281 * parse.c (operator_length_standard): Likewise.
1285 Incorporate ARI web page generator into GDB sources.
1286 * contrib/ari/create-web-ari-in-src.sh: New file.
1287 * contrib/ari/gdb_ari.sh: New file.
1288 * contrib/ari/gdb_find.sh: New file.
1289 * contrib/ari/update-web-ari.sh: New file.
1293 * gdbarch.c: Rebuild.
1294 * gdbarch.sh: Remove references to gdbarch_swap.
1295 * corelow.c (core_open): Remove obsolete comment.
1300 * c-typeprint.c (c_print_type): Don't print a space for vector
1301 types, this is handled within the suffix.
1302 (c_type_print_varspec_suffix): Add a space to vector suffix.
1306 * amd64-tdep.c (amd64_relocate_instruction): Use
1307 store_unsigned_integer instead of memcpy.
1308 * i386-tdep.c (i386_relocate_instruction): Ditto.
1312 * infrun.c (handle_inferior_event): Merge handling of
1313 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1318 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1323 * target.c (target_waitstatus_to_string): Handle
1324 TARGET_WAITKIND_VFORK_DONE.
1328 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1329 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1333 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1338 * ravenscar-thread.c (ravenscar_wait): Only update the list
1339 of threads and inferior_ptid if the inferior is still alive.
1343 * ada-lang.c (is_known_support_routine): Use lbasename when
1344 matching the symtab's filename against
1345 known_runtime_file_name_patterns.
1349 * ada-lang.c (ada_same_array_size_p): New function.
1350 (ada_promote_array_of_integrals): New function.
1351 (coerce_for_assign): Add handling of arrays where the elements
1352 are integrals of a smaller size than the size of the target
1357 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1358 against maximum exponent value.
1362 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1367 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1368 strip typedef layer when computing the fixed type's field type,
1369 only when computing its size.
1374 * i386-tdep.c (i386_return_value): Handle complex double and long
1379 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1380 New local variable args_len.
1381 Quote the name of the executable when computing the command line.
1388 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1390 * amd64-tdep.c (amd64_classify): Classify complex types.
1391 (amd64_return_value): Handle the COMPLEX_X87 class.
1395 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1396 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1400 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1402 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1403 to amd64_windows_auto_wide_charset.
1407 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1408 * event-top.h: Remove its declaration.
1409 (async_request_quit): Call mark_async_signal_handler instead of
1410 mark_async_signal_handler_wrapper.
1411 (async_do_nothing, async_disconnect): Likewise.
1412 (async_stop_sig): Likewise.
1413 * remote.c (handle_remote_sigint): Likewise.
1414 (handle_remote_sigint_twice): Likewise.
1418 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1419 with 'static struct async_signal_handler *'.
1420 (sighup_token, sigquit_token, sigstp_token): Likewise.
1424 * gdbarch.sh (function_list): Use 'pstring' when printing
1425 a variable which could return NULL.
1426 * gdbarch.c: Regenerate.
1431 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1432 inneffective if condition by gdb assertion. Add function
1433 description comment.
1437 * parser-defs.h (struct exp_descriptor): Document constraint
1438 on return value for "op_name" callbacks.
1442 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1443 * symtab.c (iterate_over_some_symtabs): Constify.
1444 * source.h (symtab_to_fullname): Return 'const char *'.
1445 * source.c (symtab_to_fullname): Return 'const char *'.
1446 * python/py-symtab.c (stpy_fullname): Constify.
1447 * cli/cli-cmds.c (edit_command): Constify.
1448 * breakpoint.c (print_breakpoint_location)
1449 (update_static_tracepoint): Constify.
1453 * breakpoint.c (compare_breakpoints): Fix comparison.
1457 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1458 gdb_wchar_t to convert_between_encodings.
1462 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1463 more parameter 'inferior'.
1464 * corefile.c (write_memory_with_notification): Caller update.
1466 * mi/mi-cmd-var.c: Include "mi-main.h".
1467 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1468 to 1 and restore it later.
1469 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1470 and "data-write-memory-bytes.
1471 * mi/mi-interp.c: Include objfiles.h.
1472 (mi_interpreter_init): Call observer_attach_memory_changed.
1473 (mi_memory_changed): New.
1474 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1477 * NEWS: Mention new MI notification "memory-changed".
1481 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1485 New option -nh: inhibit loading of ~/.gdbinit.
1486 * NEWS: Mention -nh.
1487 * main.c (captured_main): Recognize and process -nh.
1488 (print_gdb_help): Mention -nh.
1489 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1495 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1497 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1498 nor pc_regnum_from_eax.
1499 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1500 nor pc_regnum_from_eax.
1504 Fix entry values resolving in inlined frames.
1505 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1506 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1511 * configure.ac: Build with -DMS_WIN64 if building with Python
1512 enabled using GCC on amd64-windows.
1513 * configure: Regenerate.
1518 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1524 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1528 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1529 reset thread numbering back to 1.
1533 PR breakpoints/14643.
1534 * linespec.c (struct ls_parser): New member keyword_ok.
1535 (linespec_lexer_lex_string): Add comment.
1536 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1538 (parse_linespec): Set keyword_ok.
1542 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1543 "0x" prefix on address in log message.
1545 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1546 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1547 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1548 (lookup_dwo_file): Add const to dwo_name parameter.
1549 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1553 Fix crash during stepping on ppc32.
1554 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1560 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1564 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1565 output and use uint32_t not long to ensure 4 byte size.
1569 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1574 * target.c (simple_search_memory): Include access length in
1581 * solib.c (solib_find): Prevent GDB from loading native libraries when
1582 debugging a cross-target corefile.
1586 Make definition match declaration.
1588 * regcache.c (regcache_register_status): Change return type to
1589 enum register_status.
1593 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1594 write_memory_with_notification instead of write_memory.
1595 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1596 instead of target_write_memory.
1600 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1601 when the length of content is not an even number.
1605 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1606 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1610 * sol-thread.c (sol_thread_fetch_registers)
1611 (sol_thread_store_registers): Delete commented out code.
1615 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1616 Move these functions to sparc-sol-thread.c.
1617 * sparc-sol-thread.c: New file.
1618 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1619 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1621 * configure: Regenerate.
1625 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1626 Remove commented-out code.
1630 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1631 Enable this code for sparc hosts only.
1635 * procfs.h (procfs_find_LDT_entry): Add declaration.
1636 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1637 function procfs_find_LDT_entry.
1641 * procfs.c (proc_get_LDT_entry): Make static.
1645 * procfs.c (proc_find_memory_regions): Fix declaration.
1649 * amd64-tdep.c (amd64_return_value): Revert previous change
1650 that used TYPE_LENGTH directly.
1651 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1652 (bfin_store_return_value): Likewise.
1653 * cris-tdep.c (cris_store_return_value): Likewise.
1654 (cris_extract_return_value): Likewise.
1655 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1656 * hppa-tdep.c (hppa64_return_value): Likewise.
1657 * lm32-tdep.c (lm32_store_return_value): Likewise.
1658 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1659 * spu-tdep.c (spu_value_from_register): Likewise.
1660 * vax-tdep.c (vax_return_value): Likewise.
1664 * gdbtypes.c (lookup_array_range_type): Expand parameters
1665 LOW_BOUND and HIGH_BOUND to LONGEST.
1666 (lookup_string_range_type): Likewise.
1667 * gdbtypes.h (lookup_array_range_type): Likewise.
1668 (lookup_string_range_type): Likewise.
1669 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1670 Expand HIGHBOUND to ssize_t.
1671 (value_string): Likewise.
1672 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1673 (value_string): Likewise.
1677 PR breakpoints/13898
1678 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1679 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1680 per breakpoint type.
1684 * procfs.c: Add gdb_bfd header.
1685 * rs6000-nat.c: Likewise.
1686 * solib-pa64.c: Likewise.
1687 * spu-linux-nat.c: Likewise.
1688 * windows-nat.c: Likewise.
1692 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1696 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1697 (read_common_block): Handle child DIEs with
1698 DW_AT_data_member_location.
1699 (new_symbol_full): Add special case for common blocks.
1704 * dwarf2read.c (read_common_block): Rewrite.
1705 (new_symbol_full): Handle DW_TAG_common_block.
1706 * f-lang.c (head_common_list, find_common_for_function):
1708 * f-lang.h (struct common_entry, struct saved_f77_common,
1709 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1710 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1711 BLANK_COMMON_NAME_LOCAL): Remove.
1712 (struct common_block): New.
1713 * f-valprint.c (list_all_visible_commons): Remove.
1714 (info_common_command_for_block): New function.
1715 (info_common_command): Use it.
1716 * stack.c (iterate_over_block_locals): Special case for
1717 COMMON_BLOCK_DOMAIN.
1718 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1720 (struct general_symbol_info) <value.common_block>: New field.
1721 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1726 * f-lang.c (allocate_saved_bf_node,
1727 allocate_saved_function_node, allocate_saved_f77_common_node,
1728 allocate_common_entry_node, tail_common_list, current_common,
1729 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1730 tmp_bf_ptr, add_common_block, add_common_entry,
1731 find_first_common_named, patch_common_entries,
1732 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1733 global_remote_debug, get_bf_for_fcn, saved_function_list,
1734 saved_function_list_end, clear_function_list, struct saved_fcn,
1735 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1736 SAVED_BF, SAVED_BF_PTR): Remove.
1737 * f-lang.h (tail_common_list, current_common,
1738 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1739 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1740 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1741 real_main_c_value): Remove.
1742 * f-valprint.c (there_is_a_visible_common_named): Remove.
1746 * breakpoint.c (update_global_location_list): Ignore previous
1747 duplicate status of a breakpoint when starting a new scan for
1748 duplicate breakpoints.
1751 PR breakpoints/14419
1752 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1753 support LLVM compiler.
1757 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1758 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1759 (bfin_store_return_value): Likewise.
1760 * cris-tdep.c (cris_store_return_value): Likewise.
1761 (cris_extract_return_value): Likewise.
1762 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1763 * hppa-tdep.c (hppa64_return_value): Likewise.
1764 * lm32-tdep.c (lm32_store_return_value): Likewise.
1765 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1766 * spu-tdep.c (spu_value_from_register): Likewise.
1767 * vax-tdep.c (vax_return_value): Likewise.
1771 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1772 parameter LEN to ssize_t.
1776 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1778 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1780 (alpha_store_return_value): Likewise.
1781 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1782 (amd64_push_arguments): Likewise.
1783 * ax-gdb.c (gen_trace_static_fields): Likewise.
1784 (gen_traced_pop): Likewise.
1785 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1786 * breakpoint.c (update_watchpoint): Likewise.
1787 * findcmd.c (parse_find_args): Use local variable for type
1789 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1790 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1791 (h8300_store_return_value): Likewise.
1792 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1793 Use i386_darwin_arg_type_alignment directly.
1794 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1795 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1796 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1797 (m68hc11_extract_return_value): Likewise.
1798 * mep-tdep.c (mep_push_dummy_call): Likewise.
1799 * printcmd.c (float_type_from_length): Likewise.
1800 * s390-tdep.c (s390_value_from_register): Likewise.
1801 * stack.c (read_frame_arg): Likewise.
1802 * tracepoint.c (encode_actions_1): Likewise.
1803 * valops.c (value_fetch_lazy): Use local variable for type
1804 instead of length. Use TYPE_LENGTH directly.
1805 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1809 * symtab.c (skip_prologue_sal): Fix typo in comment.
1813 * linespec.c (create_sals_line_offset): Fix typo in comment.
1817 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1818 use plongest to print the array size.
1822 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1823 * p-valprint.c (pascal_type_print_base): Likewise.
1827 * remote.c (remote_get_trace_status): Remove setting default
1828 values of fields of 'ts'.
1832 Fix internal error on canonicalization of clang types.
1833 * cp-name-parser.y (operator): New comment at make_operator call for
1834 new, delete, new[] and delete[].
1835 (exp): Use "sizeof ". Add new comment at make_operator call.
1839 Fix disassemble without parameters in tailcall frame.
1840 * cli/cli-cmds.c (disassemble_current_function): Use
1841 get_frame_address_in_block.
1845 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1846 TYPE_CODE_UNION>: Unify, removing a goto.
1850 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1854 * findvar.c (read_frame_register_value): Mark the result value as
1855 optimized out if any of the input registers have been optimized out.
1859 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1863 * eval.c (evaluate_subexp_standard): Eliminate single-use
1868 * mi/mi-interp.c: Declare mi_record_changed.
1869 (mi_interpreter_init): Call observer_attach_record_changed.
1870 (mi_record_changed): New.
1871 * record.c (record_open): Call observer_notify_record_changed.
1872 (cmd_record_stop): Call observer_notify_record_changed.
1878 * python/python.c (finalize_python): New function.
1879 (_initialize_python): Make a final cleanup.
1883 * buildsym.h (param_symbols): Delete, unused.
1884 (context_stack): Delete member "params", unused.
1885 * buildsym.c (push_context): Update.
1886 * dwarf2read.c (read_func_scope): Update.
1890 * sh-tdep.c (sh_register_convert_to_virtual)
1891 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1892 all callers. Just do a memcpy if not the little-endian case.
1894 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1895 set_gdbarch_double_format and set_gdbarch_long_double_format.
1896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1897 set_gdbarch_double_format.
1898 * sh-tdep.c (sh_gdbarch_init): Likewise.
1900 * NEWS: Document the removal of SH's 'regs' command.
1901 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1906 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1911 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1912 language when iterating over symbols.
1916 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1917 (mi_interpreter_init): Call observer_attach_tsv_created and
1918 observer_attach_tsv_deleted.
1919 (mi_tsv_created, mi_tsv_deleted): New.
1920 * tracepoint.c (delete_trace_state_variable): Call
1921 observer_notify_tsv_deleted.
1922 (trace_variable_command): Call observer_notify_tsv_created.
1923 (delete_trace_variable_command): Call
1924 observer_notify_tsv_deleted.
1925 (create_tsv_from_upload): Call observer_notify_tsv_created.
1930 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1931 if traceframe changed.
1932 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1934 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1935 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1936 'traceframe_changed'.
1937 (mi_traceframe_changed): New.
1938 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1940 * NEWS: Mention the new MI notification.
1944 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1948 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1949 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1950 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1951 Extend code also for PaX support. Convert all gdb_assert to warning
1956 Implement auto-load user conveniences suggested by Doug Evans.
1957 * auto-load.c: Include top.h.
1958 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1959 (_initialize_auto_load): New variable scripts_directory_help. Mention
1960 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1961 scripts-directory. Document in online help one can use also files for
1962 set auto-load safe-path.
1963 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1964 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1968 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1973 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1974 ELTLEN and use TYPE_LENGTH directly.
1975 (m2_val_print): Likewise.
1976 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1977 variable LEN and use TYPE_LENGTH directly.
1978 (m68k_svr4_store_return_value): Likewise.
1979 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1980 ARGLEN and use TYPE_LENGTH directly.
1981 (mips_o64_push_dummy_call): Likewise.
1982 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1983 variable LENGTH and use TYPE_LENGTH directly.
1984 (s390_function_arg_float): Likewise.
1985 (s390_function_arg_integer): Likewise.
1986 (s390_push_dummy_call): Likewise.
1987 (s390_return_value_convention): Likewise.
1988 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1989 TYPE_LENGTH directly.
1993 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1994 Update comment to add_setshow_integer_cmd.
1995 * cli/cli-setshow.c (do_set_command): Handle case
1996 'var_zuinteger_unlimited'.
1997 (do_show_command): Likewise.
1998 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1999 for command 'remotetimeout'.
2000 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2002 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2003 for command 'set listsize'.
2007 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2013 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2014 (frame_pop): Drop also TAILCALL_FRAME frames.
2015 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2021 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2022 function start if we are already at function start. Both for
2023 reverse-next and for reverse-step into function without line number
2028 Code cleanup - rename 'inline' depth to 'artificial' depth.
2029 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2030 frame_id_artificial_p, extend the comment.
2031 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2032 * frame.c (fprint_frame_id): Rename at a user, change debug output
2033 text to "artificial=".
2034 (skip_inlined_frames): Rename to ...
2035 (skip_artificial_frames): ... here. Extend the comment.
2036 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2037 (frame_id_inlined_p): Rename to ...
2038 (frame_id_artificial_p): ... here. Rename at a user.
2039 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2040 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2042 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2044 (frame_id_inlined_p): Rename to ...
2045 (frame_id_artificial_p): ... here.
2046 * inline-frame.c (inline_frame_this_id): Rename at a user.
2050 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2051 vector variables using vector_size syntax rather than array
2056 * valarith.c (value_concat): Replace unsafe ALLOCA with
2061 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2065 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2066 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2067 data-directory as appropriate.
2071 * printcmd.c (ui_printf): Eliminate single-use variable
2077 * valops.c (value_assign): Move observer_notify_target_changed
2078 below to replace reinit_frame_cache.
2082 Refactor Python "gdb" module into a proper Python package, by
2083 introducing a new "_gdb" module for code implemented in C, and
2084 using reload/__import__ instead of exec.
2085 * python/lib/gdb/__init__.py: Import * from _gdb.
2086 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2087 prompt_hook, sys.argv): Moved from finish_python_initialization.
2088 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2089 (packages, auto_load_packages): New list and function replacing
2090 module_dict and auto-loading code, using __file__ instead of
2091 gdb.PYTHONDIR and reload/__import__ instead of exec.
2092 (GdbSetPythonDirectory): Replacing function of the same name
2093 from finish_python_initialization, using reload/__import__ instead
2094 of exec, as well as call auto_load_packages.
2095 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2096 gdb_python_module and not gdb_module.
2097 * python/python-internal.h (gdb_python_module): Declare.
2098 * python/python.c (gdb_python_module): New global.
2099 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2100 (_initialize_python): Rename gdb module to _gdb.
2101 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2102 (finish_python_initialization): Move Python code to
2103 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2108 * Makefile.in (COMMON_OBS): Add registry.o.
2109 * registry.c: New file.
2110 * registry.h (struct registry_container): Declare.
2111 (registry_data_callback): New typedef.
2112 (struct registry_data, struct registry_data_registration, struct
2113 registry_data_registry): New type.
2114 (register_data_with_cleanup, registry_alloc_data)
2115 (registry_callback_adaptor, registry_clear_data)
2116 (registry_container_free_data, registry_set_data, registry_data):
2118 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2119 the new common structures and functions.
2120 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2125 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2126 there is an error inserting hardware breakpoints and use the
2127 error message from the target.
2129 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2130 Catch this exception and print the error message contained within. Do not
2131 print the default hardware error breakpoint message in this case.
2135 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2140 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2141 .gdb_index symbol attributes if there are none.
2145 * symtab.h (struct minimal_symbol) [has_size]: New field.
2146 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2147 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2148 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2149 minimal symbols if the symbol's size is actually known.
2150 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2151 of msymbol's size field. Add comment.
2152 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2153 SET_MSYMBOL_SIZE to set the minimal symbol size.
2157 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2158 minimal_symbol struct object, rather than setting some of its
2163 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2164 passed_a_ptr flag when displaying typedef types.
2168 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2169 the optimized_out flag is preserved.
2173 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2174 prologue changes in GCC.
2179 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2180 (BOOL_CONVERSION_BADNESS): ... this.
2181 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2182 (rank_one_type): Allow all boolean conversions
2183 permitted by the standard.
2187 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2188 Don't decref py_objfile.
2192 Do not enable -lmcheck by default when Python is enabled with
2194 * configure.ac: (python_has_threads) New variable, by testing
2195 if WITH_THREAD is defined in Python.h.
2196 Move --enable-lmcheck after --with-python.
2197 Do not enable -lmcheck by default if python_has_threads=yes.
2198 Warn if --enable-lmcheck and python_has_threads=yes.
2199 * configure: Regenerate.
2203 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2204 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2205 Update some commands.
2206 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2207 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2212 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2216 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2220 * main.c (print_gdb_help): Remove reference to
2221 --use-deprecated-index-sections.
2225 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2226 (init_cmds): Call add_setshow_uinteger_cmd for command
2227 'max-user-call-depth'.
2228 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2229 declaration of 'max_user_call_depth'.
2230 * frame.c (backtrace_limit): Add 'unsigned'.
2231 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2233 * remote.c (remoteaddresssize): Add 'unsigned'.
2234 (remote_address_masked): Change local var 'address_size' to
2236 (_initialize_remote): Call add_setshow_uinteger_cmd for
2237 'remoteaddresssize'.
2238 * top.c (history_size): Add 'unsigned'.
2239 (show_commands): Change local variables to 'unsigned'.
2240 (set_history_size_command): Don't check history_size is negative.
2241 Adjust the condition to call unstifle_history and set history_size
2248 * infcmd.c (default_print_one_register_info): New, factored out
2249 from default_print_registers_info.
2250 (default_print_registers_info): Use it. Mark value unavailable if
2252 (registers_info): Print user registers with
2253 default_print_one_register_info.
2258 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2259 is not NULL before referencing it.
2263 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2264 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2270 * auto-load.c (auto_load_objfile_script): Rename to ...
2271 (auto_load_objfile_script_1): ... here, change variable realname to
2272 parameter realname, document it, add return value, add variable retval.
2273 (auto_load_objfile_script): New function.
2277 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2278 followed by a whitespace.
2283 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2284 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2285 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2290 * memattr.c (create_mem_region): Fix memory region overlapping
2295 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2296 with xmalloc/cleanup.
2297 * mt-tdep.c (mt_push_dummy_call): Likewise.
2298 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2299 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2303 * jv-exp.y (push_expression_name): Add "." at the end of error
2308 Document how to return from "python-interactive" to GDB.
2309 * python/python.c (_initialize_python): Update documentation.
2313 * infrun.c (_initialize_infrun) <handle command help text>:
2314 Mention that multiple signals are supported.
2318 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2323 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2324 (tfind_1): Don't call registers_changed, set_traceframe_num,
2325 and clear_traceframe_info.
2326 Call set_current_traceframe.
2327 (set_current_traceframe): call set_traceframe_num.
2331 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2332 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2336 Enable readline in Python in a GDB-specific way and block the
2337 standard Python readline module to prevent conflicts with GDB.
2338 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2339 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2340 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2341 * python/py-gdb-readline.c: New file.
2342 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2344 * python/python.c (_initialize_python): Call
2345 gdbpy_initialize_gdb_readline.
2349 * defs.h: Include build-gnulib/config.h
2353 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2358 Add a new "python-interactive" command that starts a standard
2359 Python interactive prompt with "pi" as alias, and add "py" as
2360 an alias to "python".
2361 * NEWS: Mention the new commands.
2362 * python/python.c (eval_python_command): New function.
2363 (python_interactive_command): For "python-interactive" with
2364 arguments, call eval_python_command. For "python-interactive"
2365 without arguments, call PyRun_InteractiveLoop.
2366 (_initialize_python): Add "python-interactive" command with
2367 "pi" as alias, and add "py" as an alias to "python".
2371 * defs.h (quit_flag): Don't declare.
2372 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2373 (QUIT): Use new functions.
2374 * event-top.c (command_handler): Use clear_quit_flag.
2375 (handle_sigint): Use set_quit_flag.
2376 (async_request_quit): Use check_quit_flag. Don't check
2378 * exceptions.c (throw_exception): Use clear_quit_flag.
2379 * main.c (captured_main): Use clear_quit_flag.
2380 * python/python.c (clear_quit_flag, set_quit_flag)
2381 (check_quit_flag): New functions.
2382 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2384 * remote.c (remote_wait_as): Use check_quit_flag,
2386 (remote_start_remote): Call QUIT.
2387 * symfile.c (load_progress): Use check_quit_flag.
2388 * top.c (command_loop): Use clear_quit_flag.
2389 (command_line_input): Call QUIT.
2390 * utils.c (quit_flag): Conditionally define.
2391 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2393 (prompt_for_continue): Call QUIT. Use quit, not
2395 * remote-mips.c (mips_expect_timeout): Call QUIT.
2396 * monitor.c (monitor_expect): Call QUIT.
2400 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2401 (async_init_signals): Update.
2402 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2403 (SIGWINCH_HANDLER_BODY): Remove.
2407 * jit.c (jit_object_close_impl): Don't malloc the objfile
2409 * objfiles.c (allocate_objfile): Don't malloc the objfile
2411 (free_objfile): Don't free the objfile name.
2412 * objfiles.h (struct objfile) <name>: Update comment.
2413 * symfile.c (reread_symbols): Fix reference counting. Don't
2414 malloc objfile name.
2418 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2419 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2420 (symfile_bfd_open): Likewise.
2421 (generic_load): Likewise.
2422 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2423 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2425 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2427 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2428 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2429 (pmon_load_fast): Likewise.
2430 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2431 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2432 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2433 (macho_check_dsym): Likewise.
2434 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2435 (m32r_upload_command): Likewise.
2436 * gdb_bfd.h (gdb_bfd_cache): Declare.
2437 * gdb_bfd.c (struct gdb_bfd_data): New.
2438 (gdb_bfd_cache): New global.
2439 (struct gdb_bfd_cache_search): New.
2440 (hash_bfd): New function.
2442 (gdb_bfd_open): Likewise.
2443 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2444 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2446 * exec.c (exec_file_attach): Use gdb_bfd_open.
2447 * dsrec.c (load_srec): Use gdb_bfd_open.
2451 * dwarf2read.c (macro_start_file): Update.
2452 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2453 (free_objfile_per_bfd_storage): Destroy macro_cache.
2454 (allocate_objfile, free_objfile): Update.
2455 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2457 (struct objfile) <macro_cache>: Remove.
2458 * symfile.c (reread_symbols): Update.
2459 * symmisc.c (print_symbol_bcache_statistics): Update.
2460 (print_objfile_statistics): Update.
2464 * elfread.c (elf_symtab_read): Update.
2465 * objfiles.c (objfiles_bfd_data): New global.
2466 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2467 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2468 (allocate_objfile, free_objfile): Update.
2469 (_initialize_objfiles): Initialize objfiles_bfd_data.
2470 * objfiles.h (struct objfile_per_bfd_storage): New.
2471 (struct objfile) <per_bfd>: New field.
2472 <filename_cache>: Remove.
2473 (set_objfile_per_bfd): Declare.
2474 * symfile.c (reread_symbols): Update. Call
2475 set_objfile_per_bfd.
2476 (allocate_symtab): Update.
2477 * symmisc.c (print_symbol_bcache_statistics): Update.
2478 (print_objfile_statistics): Print the size of the BFD obstack.
2482 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2483 * gdb_bfd.c: Use DEFINE_REGISTRY.
2484 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2485 (gdb_bfd_ref): Call bfd_alloc_data.
2486 (gdb_bfd_unref): Call bfd_free_data.
2490 * registry.h (struct registry_fields): New.
2491 (REGISTRY_FIELDS): Redefine.
2492 (REGISTRY_ACCESS_FIELD): New macro.
2493 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2498 * auto-load.c (_initialize_auto_load): Update.
2499 * solib-svr4.c (_initialize_svr4_solib): Update
2500 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2501 * solib-darwin.c (_initialize_darwin_solib): Update.
2502 * registry.h: New file.
2503 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2504 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2505 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2506 (register_program_space_data_with_cleanup)
2507 (register_program_space_data, program_space_alloc_data)
2508 (clear_program_space_data, set_program_space_data)
2509 (program_space_data): Don't declare.
2510 * progspace.c: Use DEFINE_REGISTRY.
2511 (struct program_space_data, struct
2512 program_space_data_registration, struct
2513 program_space_data_registry, program_space_data_registry)
2514 (register_program_space_data_with_cleanup)
2515 (register_program_space_data, program_space_alloc_data)
2516 (program_space_free_data, clear_program_space_data)
2517 (set_program_space_data, program_space_data): Remove.
2518 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2519 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2520 (register_objfile_data_with_cleanup, register_objfile_data)
2521 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2523 * objfiles.c: Use DEFINE_REGISTRY.
2524 (struct objfile_data, struct objfile_data_registration, struct
2525 objfile_data_registry, objfile_data_registry)
2526 (register_objfile_data_with_cleanup, register_objfile_data)
2527 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2528 (set_objfile_data, objfile_data): Remove.
2529 (_initialize_objfiles): Update.
2530 * jit.c (_initialize_jit): Update.
2531 * inflow.c (_initialize_inflow): Update.
2532 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2533 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2534 (register_inferior_data_with_cleanup, register_inferior_data)
2535 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2537 * inferior.c: Use DEFINE_REGISTRY.
2538 (struct inferior_data, struct inferior_data_registration, struct
2539 inferior_data_registry, inferior_data_registry)
2540 (register_inferior_data_with_cleanup, register_inferior_data)
2541 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2542 (set_inferior_data, inferior_data): Remove.
2543 * auxv.c (_initialize_auxv): Update.
2544 * ada-lang.c (_initialize_ada_language): Update.
2545 * breakpoint.c (_initialize_breakpoint): Update.
2546 * i386-nat.c (i386_use_watchpoints): Update.
2550 * exec.c (exec_close, exec_file_attach): Update.
2551 (add_to_section_table): Initialize 'key' field.
2552 (add_target_sections, remove_target_sections): Add 'key' argument.
2553 * exec.h (add_target_sections, remove_target_sections): Add
2555 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2556 (reload_shared_libraries_1): Update.
2557 * target.h (struct target_section) <key>: New field.
2561 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2565 * symfile.c (allocate_symtab): Use host_address_to_string
2566 function instead of cast of pointer to long which is not
2567 compatible with x86_64-w64-mingw32 build.
2571 * mips-tdep.c (is_octeon): New function.
2572 (is_octeon_bbit_op): New function.
2573 (mips32_next_pc): Handle Octeon's bbit instructions.
2574 (mips32_instruction_has_delay_slot): Likewise.
2578 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2579 before the function.
2583 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2588 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2589 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2593 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2594 The typo broke "make TAGS".
2603 * gdbtypes.c (strict_type_checking): New variable.
2604 (show_strict_type_checking): New function.
2605 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2606 if strict type checking is disabled.
2607 (_initialize_gdbtypes): Add "check type" subcommand.
2608 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2612 * language.h (type_mode): Remove.
2613 (type_check): Remove.
2614 (struct language_defn): Remove la_type_check.
2615 (STRICT_TYPE): Remove unused macro.
2616 (type_error): Remove.
2617 * language.c (set_type_range_case): Renamed to ...
2618 (set_range_case): ... this. Update all callers.
2619 Remove type_mode/type_check.
2620 (type_mode): Remove.
2621 (type_check): Remove.
2622 (show_type_command): Remove.
2623 (set_type_command): Remove.
2624 (language_info): Remove type checking output.
2625 (type_error): Remove unused function.
2626 (range_error): Update comment.
2627 (unknown_language_defn): Remove la_type_check.
2628 (auto_language_defn): Likewise.
2629 (local_language_defn): Likewise.
2630 (_initialize_language): Remove "check type" subcommand.
2631 * ada-lang.c (ada_language_defn): Remove la_type_check.
2632 * c-lang.c (c_language_defn): Likewise.
2633 (cplus_language_defn): Likewise.
2634 (asm_language_defn): Likewise.
2635 (minimal_language_defn): Likewise.
2636 * d-lang.c (d_language_defn): Likewise.
2637 * f-lang.c (f_language_defn): Likewise.
2638 * go-lang.c (go_language_defn): Likewise.
2639 * jv-lang.c (java_language_defn): Likewise.
2640 * m2-lang.c (m2_language_defn): Likewise.
2641 * objc-lang.c (objc_language_defn): Likewise.
2642 * opencl-lang.c (opencl_language_defn): Likewise.
2643 * p-lang.c (pascal_language_defn): Likewise.
2647 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2651 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2653 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2654 using the regache. Use ia64_hpux_get_register_from_save_state_t
2655 to access the bsp and bspstore registers if not.
2659 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2660 * breakpoint.c (detach_breakpoints): Change pid parameter into
2661 a ptid. Adjust code accordingly.
2662 * infrun.c (handle_inferior_event): Delete variable child_pid.
2663 Update call to detach_breakpoints to pass the child ptid for
2665 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2666 assert that inferior_ptid's lwp is zero.
2667 (linux_handle_extended_wait): Update call to detach_breakpoints.
2668 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2673 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2674 parent, only call detach_breakpoints if tts.tts_event ==
2679 * dwarf2-frame.c (dwarf2_frame_cache): Use
2680 get_frame_address_in_block instead of get_frame_pc as
2681 the bound for executing the frame's FDE.
2685 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2686 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2687 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2688 (c_type_print_varspec_suffix): Likewise.
2689 * eval.c (evaluate_subexp_standard): Likewise.
2690 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2691 (f_type_print_varspec_suffix): Likewise.
2692 * gdbtypes.c (is_scalar_type): Likewise.
2693 (recursive_dump_type): Likewise.
2694 * infcall.c (value_arg_coerce): Likewise.
2695 * m2-valprint.c (m2_val_print): Likewise.
2696 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2697 (pascal_type_print_varspec_suffix): Likewise.
2698 (pascal_type_print_base): Likewise.
2699 * p-valprint.c (pascal_val_print): Likewise.
2700 (pascal_val_print): Likewise.
2701 * valops.c (value_slice): Likewise.
2702 * valprint.c (scalar_type_p): Likewise.
2703 * valarith.c (value_bitstring_subscript): Remove.
2704 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2705 Remove comment on TYPE_CODE_BITSTRING.
2707 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2708 TYPE_CODE_BITSTRING.
2710 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2715 * tracepoint.c (trace_find_none_command): Remove.
2716 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2720 * remote.c (handle_notification): Remove parameter 'length'.
2721 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2725 * gdbtypes.c (opaque_type_resolution): Make static.
2726 Add missing comment.
2727 (overload_debug): Add missing comment.
2728 (show_opaque_type_resolution): Likewise.
2729 (show_overload_debug): Likewise.
2730 (print_bit_vector): Remove unnecessary forward declaration.
2731 (print_arg_types): Likewise.
2732 (dump_fn_fieldlists): Likewise.
2733 (print_cplus_stuff): Likewise.
2737 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2738 (gdb_bfd_ref): Initialize new field.
2739 (gdb_bfd_unref): Unref the archive BFD.
2740 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2746 * python/py-bpevent.c (create_breakpoint_event_object): Update
2748 * python/py-event.c (evpy_add_attribute): Update comment.
2749 * python/py-exitedevent.c (create_exited_event_object): Fix
2750 reference counting and error handling.
2751 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2752 Fix reference counting.
2753 * python/py-signalevent.c (create_signal_event_object): Fix
2754 reference counting and error handling.
2755 * python/py-stopevent.c (emit_stop_event): Fix reference
2757 * python/py-threadevent.c (get_event_thread): Return a
2759 * python/py-type.c (convert_field): Fix reference counting.
2763 * dwarf2read.c (dwarf_decode_macro_bytes)
2764 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2769 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2770 stepi, nexti, finish, next, step, jump, and continue commands.
2771 * infrun.c (_initialize_infrun): Update help text for the handle
2776 * gdbtypes.c (struct extra): Delete, unused.
2778 * gdbtypes.c: Whitespace cleanup.
2779 (address_space_name_to_int): Remove "extern" from definition.
2780 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2782 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2783 TYPE_POINTER_TYPE (type).
2787 * solib-svr4.c (svr4_free_library_list): Use free_so.
2791 * .gitignore: Add go-exp.c.
2795 * value.c (show_convenience): Tweak comment.
2796 (_initialize_values): Mention convenience functions in the help text
2797 for "show convenience".
2801 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2802 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2804 * eval.c (evaluate_subexp_standard): Likewise.
2805 * expprint.c (print_subexp_standard): Likewise.
2806 (dump_subexp_body_standard): Likewise.
2807 * parse.c (operator_length_standard): Likewise.
2811 * std-operator.def: Remove OP_BITSTRING.
2812 * breakpoint.c (watchpoint_exp_is_const): Update.
2813 * eval.c (evaluate_subexp_standard): Remove handling to
2815 * expprint.c (print_subexp_standard): Likewise.
2816 (dump_subexp_body_standard): Likewise.
2817 * parse.c (operator_length_standard): Likewise.
2818 * valops.c (value_bitstring): Remove.
2819 * value.h: Remove the declaration of 'value_bitstring'.
2823 * linespec.c (find_methods): Remove unused variables `i1' and
2825 (decode_line_full): Likewise for `arg_start'.
2829 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2830 (zlib_decompress_section): Likewise for `section_data'.
2831 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2835 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2836 * NEWS: Document them.
2837 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2839 * python/py-type.c (typy_array_1): New function.
2840 (typy_array): Call it.
2841 (typy_vector): New function.
2842 (type_object_methods): Add "vector".
2843 * python/lib/gdb/function/__init__.py: New file.
2844 * python/lib/gdb/function/strfns.py: New file.
2848 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2849 for TYPE_FIELD_BITPOS.
2850 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2855 * common/vec.h (VEC_merge): Define.
2856 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2857 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2858 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2859 * completer.c: Include gdb_signals.h.
2860 (signal_completer): Define.
2861 * completer.h (signal_completer): Add prototype.
2862 * infcmd.c (_initialize_infcmd): Assign the command
2863 completer for "signal" to handle_completer.
2864 * infrun.c: Include completer.h.
2865 (handle_completer): Define.
2866 (_initialize_infrun): Declare a new local variable c. Store the
2867 result of add_com("handle") to it. Assign the command
2868 completer for "handle" to handle_completer.
2872 * cli/cli-decode.c (set_cmd_prefix): New.
2873 (lookup_cmd_for_prefixlist): New.
2874 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2875 of each cmd_list_element in *prefixlist.
2876 (add_setshow_cmd_full): set_cmd_prefix.
2877 (add_alias_cmd): Likewise.
2878 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2879 Declare 'auto_boolean_enums'.
2880 * cli/cli-setshow.c: Include "observer.h".
2881 (notify_command_param_changed_p): New.
2882 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2884 (do_setshow_command): Split it to ...
2885 (do_set_command, do_show_command): ... them. New.
2886 (do_set_command): Call observer_notify_command_param_changed if
2887 notify_command_param_changed_p returns true.
2888 (cmd_show_list): Caller update.
2889 * auto-load.c (set_auto_load_cmd): Likewise.
2890 * remote.c (show_remote_cmd): Likewise.
2891 * cli/cli-setshow.h: Update declarations.
2892 * top.c (execute_command): Call do_set_command and do_show_command.
2894 * NEWS: Mention new MI notification.
2895 * mi/mi-interp.c: Declare mi_command_param_changed.
2896 (mi_interpreter_init): Attach mi_command_param_changed to
2897 observer command_param_changed.
2898 (mi_command_param_changed): New.
2899 Remove mi_suppress_breakpoint_notifications.
2900 Define global variable mi_suppress_notification.
2901 (mi_breakpoint_created): Update.
2902 (mi_breakpoint_deleted): Likewise.
2903 (mi_breakpoint_modified): Likewise.
2904 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2905 'gdb-set' and set mi_suppress_notification.
2906 * mi/mi-main.h: (mi_suppress_notification): New struct.
2911 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2915 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2916 (skiplist): Move it to skip.c.
2917 (init_cmd_lists): Remove code setting enablebreaklist and
2919 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2920 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2922 * gdbcmd.h: Likewise.
2923 * skip.c (_initialize_step_skip): Move 'skiplist' from
2928 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2929 * gnu-nat.c, symfile.c: Likewise.
2933 * utils.c (prompt_for_continue_wait_time): New static global.
2934 (make_command_stats_cleanup): Initialize it.
2935 (report_command_stats): Subtract time waiting for user.
2936 (prompt_for_continue): Track time waiting for user.
2937 (defaulted_query): Track time waiting for user.
2941 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2943 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2944 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2945 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2946 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2947 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2948 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2950 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2951 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2952 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2953 (dump_prefix_expression): Handle OP_TYPE.
2957 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2962 * linux-thread-db.c: #include "gdb_vecs.h".
2963 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2965 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2966 (thread_db_load_search): Use a vector to iterate over path elements.
2967 Handle text appearing after "$pdir".
2969 * gdb_string.h: Moved to ...
2970 * common/gdb_string.h: ... here.
2971 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2972 gdb_string.h and gdb_assert.h.
2976 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2977 (tic6x_value_to_register): Likewise.
2978 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2979 and set_gdbarch_value_to_register.
2985 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2986 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2987 * gcore.c (gcore_create_callback): New function comment. Add modified
2988 parameter. Only write modified regions. Set SEC_READONLY exactly
2989 according to MODIFIED.
2990 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2991 the passed modified value to FUNC.
2992 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2993 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2994 first. New variables modified and has_anonymous. Parse the lines of
2995 smaps file. Add the passed MODIFIED value to FUNC.
2996 * procfs.c (find_memory_regions_callback): Add the passed modified
3001 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3002 (dwarf2_frame_cache): Use it.
3003 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3004 cache initialization constraint.
3009 * varobj.c (update_dynamic_varobj_children): Don't call
3015 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3019 * NEWS: New entry for 'cd' default parameters.
3020 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3024 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3029 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3030 to attempting lseek/write.
3031 (inf_child_fileio_pread): Likewise for pread.
3035 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3036 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3037 add_setshow_zinteger_cmd.
3038 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3039 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3040 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3041 instead of add_setshow_zinteger_cmd.
3042 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3043 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3044 instead of add_setshow_zinteger_cmd.
3045 * frame.c (frame_debug): Add 'unsigned'.
3046 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3047 add_setshow_zinteger_cmd.
3048 * frame.h: Update the declaration of 'frame_debug'.
3049 * gdbtypes.c (overload_debug): Add 'unsigned'.
3050 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3051 add_setshow_zinteger_cmd.
3052 * inferior.h: Update declaration of 'debug_infrun'.
3053 * infrun.c (debug_infrun): Add 'unsigned'.
3054 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3055 add_setshow_zinteger_cmd.
3056 * jit.c (jit_debug): Add 'unsigned'.
3057 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3058 add_setshow_zinteger_cmd.
3059 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3060 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3061 instead of add_setshow_zinteger_cmd.
3062 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3063 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3064 add_setshow_zinteger_cmd.
3065 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3066 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3067 instead of add_setshow_zinteger_cmd.
3068 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3069 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3070 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3071 intead of add_setshow_zinteger_cmd.
3072 * mips-tdep.c (mips_debug): Add 'unsigned'.
3073 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3074 instead of add_setshow_zinteger_cmd.
3075 * monitor.c (monitor_debug): Add 'unsigned'.
3076 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3077 add_setshow_zinteger_cmd.
3078 * observer.c (observer_debug): Add 'unsigned'.
3079 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3080 add_setshow_zinteger_cmd.
3081 * parse.c (expressiondebug): Add 'unsigned'.
3082 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3083 add_setshow_zinteger_cmd.
3084 * record.c (record_debug): Add 'unsigned'.
3085 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3086 add_setshow_zinteger_cmd.
3087 * record.h: Update the declaration of 'record_debug'.
3088 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3089 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3090 add_setshow_zinteger_cmd.
3091 * serial.c (global_serial_debug_p): Add 'unsigned'.
3092 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3093 add_setshow_zinteger_cmd.
3094 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3095 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3096 add_setshow_zinteger_cmd.
3097 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3098 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3099 add_setshow_zinteger_cmd.
3100 * target.c (targetdebug): Add 'unsigned'.
3101 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3102 add_setshow_zinteger_cmd.
3103 * valops.c (overload_debug): Add 'unsigned'.
3104 * varobj.c (varobjdebug): Add 'unsigned'.
3105 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3106 add_setshow_zinteger_cmd.
3107 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3108 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3109 instead of add_setshow_zinteger_cmd.
3111 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3112 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3113 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3114 instead of add_setshow_zinteger_cmd.
3115 * gdbarch.c, gdbarch.h: Re-generated.
3119 * nto-tdep.c: Don't include cli/cli-decode.h and
3121 (_initialize_nto_tdep): Remove.
3122 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3124 Remove macro nto_internal_debugging.
3128 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3129 (mep-*-*) [gdb_target_obs]: Likewise.
3133 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3134 linux_get_siginfo_type.
3138 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3140 (call_function_by_hand) <ON_STACK>: Call write_memory with
3141 gdbarch_breakpoint_from_pc, if possible.
3142 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3147 * tracepoint.c: Add 'static' for some variables.
3151 * go32-nat.c: Declare _initialize_go32_nat.
3152 * ser-go32.c: Declare _initialize_ser_dos.
3153 * top.c (do_chdir_cleanup): Add 'static'.
3157 * linespec.c (linespec_lex_number): A number followed
3158 by quotes is a valid number, too.
3162 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3166 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3167 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3171 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3172 invalid or reevaluated to prevent prevent references to possibly
3173 delete'd type objects being left in the varobj.
3178 * copying.awk: Print buffer-read-only and vi ro markers.
3179 * copying.c: Rebuild.
3180 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3181 * gdbarch.c, gdbarch.h: Rebuild.
3182 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3183 buffer-read-only and vi ro markers.
3184 * features/arm-with-iwmmxt.c: Rebuild.
3185 * features/arm-with-m-fpa-layout.c: Rebuild.
3186 * features/arm-with-m-vfp-d16.c: Rebuild.
3187 * features/arm-with-m.c: Rebuild.
3188 * features/arm-with-neon.c: Rebuild.
3189 * features/arm-with-vfpv2.c: Rebuild.
3190 * features/arm-with-vfpv3.c: Rebuild.
3191 * features/i386/amd64-avx-linux.c: Rebuild.
3192 * features/i386/amd64-avx.c: Rebuild.
3193 * features/i386/amd64-linux.c: Rebuild.
3194 * features/i386/amd64.c: Rebuild.
3195 * features/i386/i386-avx-linux.c: Rebuild.
3196 * features/i386/i386-avx.c: Rebuild.
3197 * features/i386/i386-linux.c: Rebuild.
3198 * features/i386/i386-mmx-linux.c: Rebuild.
3199 * features/i386/i386-mmx.c: Rebuild.
3200 * features/i386/i386.c: Rebuild.
3201 * features/i386/x32-avx-linux.c: Rebuild.
3202 * features/i386/x32-avx.c: Rebuild.
3203 * features/i386/x32-linux.c: Rebuild.
3204 * features/i386/x32.c: Rebuild.
3205 * features/mips-dsp-linux.c: Rebuild.
3206 * features/mips-linux.c: Rebuild.
3207 * features/mips64-dsp-linux.c: Rebuild.
3208 * features/mips64-linux.c: Rebuild.
3209 * features/rs6000/powerpc-32.c: Rebuild.
3210 * features/rs6000/powerpc-32l.c: Rebuild.
3211 * features/rs6000/powerpc-403.c: Rebuild.
3212 * features/rs6000/powerpc-403gc.c: Rebuild.
3213 * features/rs6000/powerpc-405.c: Rebuild.
3214 * features/rs6000/powerpc-505.c: Rebuild.
3215 * features/rs6000/powerpc-601.c: Rebuild.
3216 * features/rs6000/powerpc-602.c: Rebuild.
3217 * features/rs6000/powerpc-603.c: Rebuild.
3218 * features/rs6000/powerpc-604.c: Rebuild.
3219 * features/rs6000/powerpc-64.c: Rebuild.
3220 * features/rs6000/powerpc-64l.c: Rebuild.
3221 * features/rs6000/powerpc-7400.c: Rebuild.
3222 * features/rs6000/powerpc-750.c: Rebuild.
3223 * features/rs6000/powerpc-860.c: Rebuild.
3224 * features/rs6000/powerpc-altivec32.c: Rebuild.
3225 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3226 * features/rs6000/powerpc-altivec64.c: Rebuild.
3227 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3228 * features/rs6000/powerpc-cell32l.c: Rebuild.
3229 * features/rs6000/powerpc-cell64l.c: Rebuild.
3230 * features/rs6000/powerpc-e500.c: Rebuild.
3231 * features/rs6000/powerpc-e500l.c: Rebuild.
3232 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3233 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3234 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3235 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3236 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3237 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3238 * features/rs6000/powerpc-vsx32.c: Rebuild.
3239 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3240 * features/rs6000/powerpc-vsx64.c: Rebuild.
3241 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3242 * features/rs6000/rs6000.c: Rebuild.
3243 * features/s390-linux32.c: Rebuild.
3244 * features/s390-linux32v1.c: Rebuild.
3245 * features/s390-linux32v2.c: Rebuild.
3246 * features/s390-linux64.c: Rebuild.
3247 * features/s390-linux64v1.c: Rebuild.
3248 * features/s390-linux64v2.c: Rebuild.
3249 * features/s390x-linux64.c: Rebuild.
3250 * features/s390x-linux64v1.c: Rebuild.
3251 * features/s390x-linux64v2.c: Rebuild.
3252 * features/tic6x-c62x-linux.c: Rebuild.
3253 * features/tic6x-c62x.c: Rebuild.
3254 * features/tic6x-c64x-linux.c: Rebuild.
3255 * features/tic6x-c64x.c: Rebuild.
3256 * features/tic6x-c64xp-linux.c: Rebuild.
3257 * features/tic6x-c64xp.c: Rebuild.
3261 * c-exp.y (classify_name): Avoid assignment in condition.
3265 * amd64-windows-tdep.c: Include "frame.h".
3266 (amd64_windows_skip_trampoline_code): New function.
3267 (amd64_windows_init_abi): Add trampoline registration.
3271 * tracepoint.c (cur_traceframe_number): Remove.
3272 (set_tfile_traceframe): Remove.
3273 (tfile_trace_find, tfile_fetch_registers): Update callers.
3274 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3275 (tfile_open, tfile_trace_find): Likewise.
3279 * thread.c (switch_to_thread): Don't call registers_changed.
3283 * Makefile.in (SFILES): Remove objc-exp.y.
3284 (YYFILES): Remove objc-exp.c.
3285 (YYOBJ): Remove objc-exp.o.
3286 (local-maintainer-clean): Don't mention objc-exp.c.
3287 * c-exp.y: Include objc-lang.h.
3288 (%union) <class>: New field.
3289 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3290 (exp): Clone subscript production for OBJC_LBRAC. Add various
3291 Objective C productions.
3292 (msglist, msgarglist, msgarg): New productions.
3293 (array_mod, func_mod, operator): Clone productions for
3295 (parse_string_or_char): Handle '@' strings.
3296 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3297 (classify_name): Check la_name_of_this. Recognize ObjC class
3299 * objc-exp.y: Remove.
3300 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3301 * objc-lang.h (objc_parse, objc_error): Don't declare.
3305 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3309 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3314 * copying.c: Rebuild.
3315 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3320 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3322 (print_objfile_statistics): Likewise.
3323 (maintenance_print_symbols): Likewise.
3324 (maintenance_print_msymbols): Likewise.
3325 (maintenance_print_objfiles): Likewise.
3326 * psymtab.c (print_partial_symbols): Call QUIT.
3327 (maintenance_print_psymbols): Likewise. Don't modify
3329 * copying.c (show_copying_command): Don't modify immediate_quit.
3330 (show_warranty_command): Likewise.
3331 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3335 * linespec.c (linespec_lexer_lex_number): The input
3336 is also a valid number if the next character is a comma
3341 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3346 * machoread.c: Include gdb_bfd.h.
3350 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3355 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3357 (dwarf2_evaluate_loc_desc): Likewise.
3358 (dwarf2_loc_desc_needs_frame): Likewise.
3359 (locexpr_describe_location_1): Likewise.
3360 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3362 (struct dwarf2_loclist_baton): Likewise.
3363 * dwarf2read.c (struct dwarf_block): Likewise.
3364 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3365 (decode_locdesc): Expand SIZE and I to size_t.
3369 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3373 * doublest.c (convert_doublest_to_floatformat): If the exponent
3374 is too small, treat the value as zero. If the exponent is too
3375 large, treat the value as infinity.
3379 * configure.ac: Add --enable-lmcheck configure option.
3380 * configure: Regenerate.
3384 * NEWS: Mention maint info bfds.
3385 * gdb_bfd.c (all_bfds): New global.
3386 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3387 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3392 * configure.tgt: Add v850*-*-rtems*.
3396 * macrotab.c (macro_bcache_str): Remove cast.
3400 * linespec.c (linespec_lexer_lex_number): Update comments,
3401 change the return and add check to make sure the input is
3402 the decimal numbers.
3403 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3404 false, call linespec_lexer_lex_string.
3408 * symfile.c (symbol_file_add): Don't open BFD twice.
3412 * breakpoint.c (create_breakpoint): Store condition for pending
3417 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3418 (m68k_return_value): Handle complex types like structures.
3419 (m68k_svr4_return_value): Likewise.
3423 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3424 parameters to bfd_get_section_name.
3428 * cli/cli-setshow.c: Handle case 'var_uinteger'
3429 and 'var_zuninteger' together. Handle case 'var_integer' and
3430 'var_zinteger' together.
3434 * linespec.c (convert_linespec_to_sal): Don't add
3435 any symbols to the result vector if symbol_to_sal
3440 * linespec.c (decode_objc): Record the function name
3445 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3447 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3448 (map_vmap): Acquire a reference to the BFD.
3452 * p-valprint.c (pascal_object_print_value): Replace potentially
3453 unsafe alloca with xmalloc/xfree.
3454 * valops.c (search_struct_method): Likewise.
3458 * solib-svr4.c (enable_break): Update.
3459 * bfd-target.h (target_bfd_reopen): Update documentation.
3463 * symfile.c (separate_debug_file_exists): Update.
3464 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3465 (reread_symbols): Update.
3466 * elfread.c (build_id_verify): Update.
3467 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3468 bfd_open_maybe_remote.
3472 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3476 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3478 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3480 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3481 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3483 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3484 * objfiles.c (allocate_objfile): Acquire a new reference.
3485 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3486 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3487 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3488 a cleanup for 'nbfd'.
3489 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3491 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3492 make a cleanup for 'abfd'.
3493 (symbol_file_add): Make a BFD cleanup.
3497 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3498 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3499 * corelow.c (core_open): Use gdb_bfd_fopen.
3500 * dsrec.c (load_srec): Use gdb_bfd_openr.
3501 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3502 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3503 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3504 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3505 (gdb_bfd_fdopenr): New functions.
3506 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3507 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3508 (gdb_bfd_fdopenr): Declare.
3509 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3510 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3511 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3512 gdb_bfd_openr_next_archived_file.
3513 (macho_check_dsym): Use gdb_bfd_openr.
3514 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3515 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3516 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3517 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3519 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3520 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3521 gdb_bfd_openr_next_archived_file.
3522 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3524 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3526 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3527 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3528 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3529 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3530 (symfile_bfd_open): Use gdb_bfd_fopen.
3531 (generic_load): Use gdb_bfd_openr.
3532 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3536 * bfd-target.c (target_bfd_reopen): Update.
3537 * cli/cli-dump.c (bfd_openr_with_cleanup)
3538 (bfd_openw_with_cleanup): Update.
3539 * corelow.c (core_open): Update.
3540 * dsrec.c (load_srec): Update.
3541 * exec.c (exec_file_attach): Update.
3542 * gcore.c (create_gcore_bfd): Update.
3543 * gdb_bfd.c (gdb_bfd_ref): Return void.
3544 (gdb_bfd_open): Update.
3545 * gdb_bfd.h (gdb_bfd_ref): Return void.
3547 * jit.c (jit_bfd_try_read_symtab): Update.
3548 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3549 * machoread.c (macho_symfile_read_all_oso): Update.
3550 (macho_check_dsym): Update.
3551 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3552 * remote-m32r-sdi.c (m32r_load): Update.
3553 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3554 * rs6000-nat.c (add_vmap): Update.
3555 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3557 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3558 * solib-spu.c (spu_bfd_open): Update.
3559 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3560 * spu-linux-nat.c (spu_bfd_open): Update.
3561 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3562 (generic_load): Update.
3563 * windows-nat.c (windows_make_so): Update.
3567 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3571 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3572 SIGTRAMP_FRAME unwinding.
3576 * NEWS: Document new options "set/show use-deprecated-index-sections",
3577 and delete reference to --use-deprecated-index-sections.
3578 * symfile.h (use_deprecated_index_sections): Delete.
3579 * dwarf2read.c (use_deprecated_index_sections): Make static.
3580 (read_index_from_section): Update wording of how to load
3581 deprecated index sections.
3582 (_initialize_dwarf2_read): New options
3583 "set/show use-deprecated-index-sections".
3584 * main.c (captured_main): Delete --use-deprecated-index-sections.
3591 * infrun.c (handle_inferior_event) <new thread>: Don't special
3592 case minus_one_ptid.
3593 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3594 * linux-thread-db.c (thread_get_info_callback): Don't return early
3595 if the thread is zombie.
3596 (thread_from_lwp): Change return type to void. Rewrite stale
3598 (attach_thread): Don't return early if the thread is zombie,
3599 instead set its "dying" flag.
3600 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3601 (find_new_threads_callback): Don't return early if the thread is
3606 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3607 * target.c (target_wait): Likewise.
3608 (str_comma_list_concat_elem, do_option, target_options_to_string):
3610 * target.h (target_options_to_string): Declare.
3615 * dwarf2read.c (dwarf_decode_macros)
3616 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3617 DW_MACRO_GNU_transparent_include_alt>: New cases.
3618 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3619 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3623 * dwarf2read.c (try_open_dwo_file): Don't call
3624 gdb_bfd_stash_filename.
3628 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3629 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3630 (i386_process_record): Tweak description comments.
3634 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3635 (i386_process_record): Use record_read_memory.
3636 * record.c (record_read_memory): New function.
3637 (record_arch_list_add_mem, record_exec_insn): Use
3639 * record.h (record_read_memory): Declare.
3643 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3648 * record.c (record_resume): Ask the target beneath to report all
3653 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3654 there's no section at address zero.
3655 (dwarf2_record_block_ranges): Ditto.
3659 * command.h, remote.c: Fix a typo in comment.
3664 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3665 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3666 OP_DECLTYPE>: New cases.
3667 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3668 (type_exp): Add new productions.
3669 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3671 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3673 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3674 OP_DECLTYPE>: New case.
3675 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3677 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3678 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3682 * c-exp.y (enum token_flags): New.
3683 (struct token) <cxx_only>: Remove.
3685 (tokentab3, tokentab2, ident_tokens): Update.
3686 (lex_one_token): Update. Handle FLAG_SHADOW.
3690 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3691 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3692 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3693 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3694 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3695 type_exp production where appropriate.
3696 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3697 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3698 <UNOP_MEMVAL_TYPE>: New case.
3699 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3700 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3701 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3702 <UNOP_MEMVAL_TYPE>: New case.
3703 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3704 UNOP_REINTERPRET_CAST>: Update.
3705 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3706 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3707 UNOP_REINTERPRET_CAST>: Update.
3708 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3709 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3710 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3716 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3717 and case 'var_optional_filename' together.
3718 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3719 instead of add_setshow_optional_filename_cmd for setshow command
3720 'args'. Set completer for 'set args'.
3724 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3725 * common/gdb_vecs.c: New file, contents from utils.c.
3726 * common/host-defs.h: New file, contents from defs.h.
3727 * utils.h: New file, contents from defs.h.
3728 * defs.h: Move all declarations of objects defined in utils.c
3729 to utils.h (except QUIT() and related).
3730 #include "utils.h", "host-defs.h".
3731 * probe.h (probe_p): Move here from gdb_vecs.h.
3732 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3733 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3734 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3735 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3736 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3737 (COMMON_OBS): Add gdb_vecs.o.
3738 (gdb_vecs.o): New rule.
3742 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3743 parameter. If non-zero, use SYMNAME as the canonical name
3746 (convert_linespec_to_sals): Use add_sal_to_sals for
3748 (decode_line_full): No need to "fill in missing canonical names"
3749 anymore. Simply make cleanups for the allocated names.
3753 * linespec.c (struct linespec): Constify expression,
3754 source_filename, function_name, and label_name.
3755 (symbol_not_found_error): Make all parameters const.
3756 (linespec_parser_delete): No need to check for NULL
3757 when using xfree. Cast const char * to char * for xfree.
3761 * breakpoint.c (invalid_thread_id_error): New function.
3762 (find_condition_and_thread): Use invalid_thread_id_error.
3763 (watch_command_1): Likewise.
3767 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3768 * contrib/cc-with-tweaks.sh: New file.
3772 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3773 (locate_dwz_sections): Recognize .gdb_index.
3774 (create_cus_from_index_list): New function.
3775 (create_cus_from_index): Use it. Handle .dwz data.
3776 (read_index_from_section): New function, extracted from
3778 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3783 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3784 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3785 <is_dwz>: New field.
3786 (struct dwz_file): New.
3787 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3788 (locate_dwz_sections, dwarf2_get_dwz_file)
3789 (get_abbrev_section_for_cu): New functions.
3790 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3791 (read_and_check_type_unit_head): Add abbrev_section argument.
3792 (create_debug_types_hash_table): Update.
3793 (init_cutu_and_read_dies): Use proper abbrev section.
3794 (init_cutu_and_read_dies_no_follow): Likewise.
3795 (set_partial_user): Do nothing if PST==NULL.
3796 (read_comp_units_from_section): New function.
3797 (create_all_comp_units): Use it.
3798 (scan_partial_symbols, partial_die_parent_scope): Update.
3799 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3800 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3801 (find_partial_die): Add offset_in_dwz argument. Update.
3802 (guess_partial_die_structure_name, fixup_partial_die): Update.
3803 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3804 DW_FORM_GNU_strp_alt.
3805 (read_indirect_string_from_dwz): New function.
3806 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3807 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3808 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3809 (follow_die_offset): Add offset_in_dwz argument.
3810 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3811 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3812 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3813 Handle new macro forms.
3814 (dwarf_decode_macros): Update.
3815 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3816 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3817 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3818 (create_debug_types_hash_table): Use correct abbrev section.
3819 (get_debug_line_section): New function.
3820 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3821 (process_full_comp_unit): Pass 'required' argument to
3822 end_symtab_get_static_block.
3823 * buildsym.h (end_symtab_get_static_block): Update.
3824 * buildsym.c (end_symtab_get_static_block): Add 'required'
3826 (end_symtab, end_expandable_symtab): Update.
3830 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3832 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3833 (zlib_decompress_section): Remove.
3834 (dwarf2_read_section): Use gdb_bfd_map_section.
3835 (munmap_section_buffer): Remove.
3836 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3837 munmap_section_buffer.
3838 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3839 (struct gdb_bfd_section_data): New.
3840 (free_one_bfd_section): New function.
3841 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3842 (get_section_descriptor, zlib_decompress_section)
3843 (gdb_bfd_map_section): New functions.
3844 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3848 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3852 * gdb_bfd.c (struct gdb_bfd_data): New.
3853 (gdb_bfd_cache): New global.
3854 (struct gdb_bfd_cache_search): New.
3855 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3856 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3857 * gdb_bfd.h (gdb_bfd_open): Declare.
3861 * utils.c (make_cleanup_bfd_unref): Rename from
3862 make_cleanup_bfd_close.
3863 * defs.h (make_cleanup_bfd_unref): Rename from
3864 make_cleanup_bfd_close.
3865 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3866 (bfd_openw_with_cleanup): Update.
3867 * corelow.c (core_open): Update.
3868 * dsrec.c (load_srec): Update.
3869 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3870 * remote-m32r-sdi.c (m32r_load): Update.
3871 * remote-mips.c (mips_load_srec): Update.
3872 (pmon_load_fast): Update.
3873 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3875 (darwin_bfd_open): Update.
3876 * solib.c (solib_bfd_fopen): Update.
3877 * symfile-mem.c (symbol_file_add_from_memory): Update.
3878 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3879 (symfile_bfd_open): Update.
3880 (generic_load): Update.
3884 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3885 (pmon_load_fast): Likewise.
3886 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3887 (m32r_upload_command): Likewise.
3888 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3889 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3890 Use make_cleanup_bfd_close.
3894 * symfile.c (symfile_bfd_open): Don't copy name. Call
3895 gdb_bfd_stash_filename.
3896 (load_command): Open the new BFD before freeing the old.
3897 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3898 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3899 Call gdb_bfd_stash_filename.
3900 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3901 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3902 gdb_bfd_stash_filename.
3903 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3904 Free found_pathname.
3905 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3906 gdb_bfd_stash_filename.
3907 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3908 * machoread.c (macho_add_oso_symfile): Call
3909 gdb_bfd_stash_filename.
3910 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3911 gdb_bfd_stash_filename.
3912 (macho_check_dsym): Don't copy filename. Call
3913 gdb_bfd_stash_filename.
3914 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3915 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3916 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3917 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3918 * exec.c (exec_close): Don't free the BFD's filename.
3919 (exec_file_attach): Don't copy the filename. Call
3920 gdb_bfd_stash_filename.
3921 * corelow.c (core_close): Don't free the BFD's filename.
3922 (core_open): Call gdb_bfd_stash_filename.
3923 * corefile.c (reopen_exec_file): Remove #if 0 code.
3924 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3926 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3930 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3932 (free_dwo_file): Use gdb_bfd_unref.
3933 * cli/cli-dump.c: Include gdb_bfd.h.
3934 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3935 (bfd_openr_with_cleanup): Likewise.
3936 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3938 * utils.c: Include gdb_bfd.h.
3939 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3940 * symfile.c: Include gdb_bfd.h.
3941 (separate_debug_file_exists): Use gdb_bfd_unref.
3942 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3943 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3944 (generic_load): Use gdb_bfd_ref.
3945 (reread_symbols): Use gdb_bfd_unref.
3946 * symfile-mem.c: Include gdb_bfd.h.
3947 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3948 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3949 * solib.c: Include gdb_bfd.h.
3950 (solib_bfd_fopen): Use gdb_bfd_ref.
3951 (solib_bfd_open): Use gdb_bfd_unref.
3952 (free_so_symbols): Use gdb_bfd_unref.
3953 (reload_shared_libraries_1): Use gdb_bfd_unref.
3954 * solib-spu.c: Include gdb_bfd.h.
3955 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3956 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3958 * solib-frv.c: Include gdb_bfd.h.
3959 (enable_break2): Use gdb_bfd_unref.
3960 * solib-dsbt.c: Include gdb_bfd.h.
3961 (enable_break2): Use gdb_bfd_unref.
3962 * solib-darwin.c: Include gdb_bfd.h.
3963 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3965 (darwin_bfd_open): Use gdb_bfd_unref.
3966 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3967 * remote-mips.c: Include gdb_bfd.h.
3968 (mips_load_srec): Use gdb_bfd_ref.
3969 (pmon_load_fast): Use gdb_bfd_ref.
3970 * remote-m32r-sdi.c: Include gdb_bfd.h.
3971 (m32r_load): Use gdb_bfd_ref.
3972 * record.c: Include gdb_bfd.h.
3973 (record_save_cleanups): Use gdb_bfd_unref.
3974 (cmd_record_save): Use gdb_bfd_unref.
3975 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3977 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3978 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3979 * objfiles.c: Include gdb_bfd.h.
3980 (free_objfile): Use gdb_bfd_unref.
3981 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3983 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3984 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3985 (macho_check_dsym): Likewise.
3986 * m32r-rom.c: Include gdb_bfd.h.
3987 (m32r_load): Use gdb_bfd_ref.
3988 (m32r_upload_command): Use gdb_bfd_ref.
3989 * jit.c: Include gdb_bfd.h.
3990 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3991 * gdb_bfd.h: New file.
3992 * gdb_bfd.c: New file.
3993 * gcore.c: Include gdb_bfd.h.
3994 (create_gcore_bfd): Use gdb_bfd_ref.
3995 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3996 (gcore_command): Use gdb_bfd_unref.
3997 * exec.c: Include gdb_bfd.h.
3998 (exec_close): Use gdb_bfd_unref.
3999 (exec_close_1): Use gdb_bfd_unref.
4000 (exec_file_attach): Use gdb_bfd_ref.
4001 * elfread.c: Include gdb_bfd.h.
4002 (build_id_verify): Use gdb_bfd_unref.
4003 * dsrec.c: Include gdb_bfd.h.
4004 (load_srec): Use gdb_bfd_ref.
4005 * corelow.c: Include gdb_bfd.h.
4006 (core_close): Use gdb_bfd_unref.
4007 (core_open): Use gdb_bfd_ref.
4008 * bfd-target.c: Include gdb_bfd.h.
4009 (target_bfd_xclose): Use gdb_bfd_unref.
4010 (target_bfd_reopen): Use gdb_bfd_ref.
4011 * Makefile.in (SFILES): Add gdb_bfd.c.
4012 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4013 (COMMON_OBS): Add gdb_bfd.o.
4017 * breakpoint.c (find_condition_and_thread): Initialize
4019 (create_breakpiont): find_condition_and_thread will now
4020 initialize COND_STRING, THREAD, and REST (and TASK).
4021 (addr_string_to_sals): Likewise.
4025 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4026 Pull the single step breakpoints out of the target.
4030 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4031 * stap-probe.c (compile_probe_arg): Likewise.
4035 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4036 (elf_compile_to_ax): Likewise.
4037 * infrun.c (insert_exception_resume_from_probe): Likewise.
4038 (check_exception_resume): Remove `objfile' variable.
4039 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4040 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4041 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4042 (compare_entries): Rename to...
4043 (compare_probes): ...this. Adjust function to work with
4044 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4046 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4048 (print_ui_out_info): Adjust argument to be `struct probe *'.
4049 (info_probes_for_ops): Adjust internal computations to use
4051 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4052 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4053 gen_info_probes_table_values>: Remove `objfile' argument.
4054 (struct probe) <objfile>: New field.
4055 (find_probe_by_pc): Remove `objfile' argument.
4056 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4057 (stap_get_probe_argument_count): Likewise.
4058 (stap_get_arg): Likewise.
4059 (stap_evaluate_probe_argument): Likewise.
4060 (stap_compile_to_ax): Likewise.
4061 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4062 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4063 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4064 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4065 sym_compile_to_ax>: Likewise.
4070 * defs.h (GDB_MI_MSG_WIDTH): New.
4071 * ser_base (ser_base_read_error_fd): New function.
4072 (do_ser_base_readchar): Poll error file descriptor as well as
4074 (generic_readchar): Refactor error handling.
4078 * NEWS: Create a new section for the next release branch.
4079 Rename the section of the current branch, now that it has
4084 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4085 * version.in: Bump version to 7.5.50.20120718-cvs.
4089 * linespec.c (linespec_parse_line_offset): Make parameter
4095 * f-valprint.c (info_common_command): New variable frame_id.
4096 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4097 * printcmd.c (print_variable_and_value): Extend function comment.
4098 Add comment for invalidated FRAME.
4099 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4100 FI form FRAME_ID after each print_frame_local_vars.
4101 (struct print_variable_and_value_data): Change frame to frame_id.
4102 (do_print_variable_and_value): New variable frame, initialize it from
4103 p->frame_id. Add comment for invalidated FRAME.
4104 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4105 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4106 for invalidated FRAME.
4111 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4116 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4120 * dwarf2read.c (stmt_list_hash): New struct.
4121 (type_unit_group): Embed "per_cu" member, remove pointer.
4122 New union member "t", move member "tus" into it, all uses updated.
4123 New member "hash", replaces member "line_offset, all uses updated.
4124 (quick_file_names): Replace member "offset" with "hash", all uses
4126 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4127 (hash_file_name_entry, eq_file_name_entry): Call them.
4128 (hash_type_unit_group, eq_type_unit_group): Ditto.
4129 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4130 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4131 (dw2_get_file_names): Update.
4132 (create_type_unit_group): Replace "per_cu" arg with "cu".
4133 All callers updated. Fix "quick" (.gdb_index) handling.
4134 (get_type_unit_group): Replace "per_cu" arg with "cu".
4135 All callers updated.
4136 (build_type_unit_groups): Don't reset tu_stats.
4138 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4139 "tab_cur_size". Change member "tab" to be a htab_t.
4140 (create_filename_seen_cache): Update.
4141 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4142 (filename_seen): Update.
4146 * symtab.c (filename_seen): Update comment.
4151 * buildsym.c (end_symtab_1): Split it to ...
4152 (end_symtab_get_static_block): ... this ...
4153 (end_symtab_from_static_block): ... and this function.
4154 (end_symtab, end_expandable_symtab): Call them.
4155 * buildsym.h (end_symtab_get_static_block)
4156 (end_symtab_from_static_block): New declarations.
4157 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4158 Set its valid CU ranges.
4162 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4163 DW_OP_GNU_parameter_ref.
4167 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4168 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4172 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4173 (filename_seen_cache): New struct.
4174 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4175 (create_filename_seen_cache): New function.
4176 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4177 (filename_seen): Delete arg "first". New arg "cache". All callers
4179 (output_source_filename_data): New struct.
4180 (output_source_filename): Delete arg "first". New arg "data".
4181 All callers updated.
4182 (sources_info): Delete local "first". New locals "data", "cleanups".
4183 Rewrite to use filename_seen_cache.
4184 (add_partial_filename_data): Delete member "first". New member
4185 "filename_seen_cache". All uses updated.
4186 (make_source_files_completion_list): Rewrite to use
4187 filename_seen_cache.
4191 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4196 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4197 all_type_unit_groups, type_unit_groups, tu_stats.
4198 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4199 All uses updated. Add type_unit_group to union "s".
4200 (type_unit_group): New struct.
4201 (IS_TYPE_UNIT_GROUP): New macro.
4202 (abbrev_table): Delete unused member "section".
4203 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4204 (dw2_get_cu): Assert not used with type_unit_group.
4205 (dw2_get_primary_cu): New function.
4206 (dw2_build_type_unit_groups_reader): New function.
4207 (dw2_build_type_unit_groups): New function.
4208 (dw2_get_file_names): Assert not called on type units.
4209 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4210 Redo loop to iterate over type unit groups instead of type units.
4211 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4212 (read_abbrev_offset): New function.
4213 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4215 (create_partial_symtab): New function.
4216 (process_psymtab_comp_unit_reader): Assert not used with type units.
4217 Call create_partial_symtab.
4218 (process_psymtab_type_unit): Delete.
4219 (hash_type_unit_group, eq_type_unit_group): New functions.
4220 (allocate_type_unit_groups_table): New function.
4221 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4222 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4223 (create_type_unit_group, get_type_unit_group): New functions.
4224 (tu_abbrev_offset): New struct.
4225 (sort_tu_by_abbrev_offset): New function.
4226 (add_type_unit_group_to_table): New function.
4227 (build_type_unit_groups): New function.
4228 (build_type_psymtabs_reader): New function.
4229 (build_type_psymtab_dependencies): New function.
4230 (build_type_psymtabs): Rewrite.
4231 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4232 is seen in a type unit.
4233 (process_queue): Move symtab expansion debugging printfs here.
4234 Call process_full_type_unit for type units.
4235 (compute_symtab_includes): Assert not called for type units.
4236 (process_cu_includes): Don't call compute_symtab_includes for
4238 (process_full_type_unit): New function.
4239 (process_imported_unit_die): Flag an error if called for type units.
4240 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4241 updated. Assert not called for type units.
4242 (read_file_scope): Call dwarf2_start_symtab.
4243 (setup_type_unit_groups): New function.
4244 (read_type_unit_scope): Rewrite.
4245 (abbrev_table_read_table): Initialize abbrev_table->offset.
4246 (abbrev_table_free_cleanup): New function.
4247 (dwarf2_start_symtab): New function.
4248 (load_full_type_unit): Assert not called for type unit groups.
4249 * buildsym.c (finish_block_internal): New arg "expandable".
4250 All callers updated.
4251 (start_symtab): Move most contents to ...
4252 (restart_symtab): ... here. New function.
4253 (reset_symtab_globals): New function.
4254 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4255 Call reset_symtab_globals.
4256 (end_symtab, end_expandable_symtab): New functions.
4257 (set_missing_symtab, augment_type_symtab): New functions.
4258 * buildsym.h (end_expandable_symtab): Declare.
4259 (augment_type_symtab, restart_symtab): Declare.
4260 * psympriv.h (struct partial_symtab): New member "anonymous".
4261 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4263 (read_psymtabs_with_filename): Ditto.
4264 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4265 (expand_symtabs_matching_via_partial): Ditto.
4266 (dump_psymtab): Update.
4267 * dictionary.c (dict_add_pending): New function.
4268 * dictionary.h (dict_add_pending): Declare.
4272 * buildsym.c (start_subfile): Remove unnecessary check for
4275 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4277 * dwarf2read.c (load_full_type_unit): Simplify.
4279 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4280 to struct signatured_type **. All uses updated.
4282 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4283 All callers updated.
4287 * c-exp.y (check_parameter_typelist): New function.
4288 (parameter_typelist): Call it.
4289 * eval.c (make_params): Handle '(void)' case.
4290 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4295 * common/linux-ptrace.c: Include gdb_assert.h.
4296 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4297 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4299 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4301 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4302 * linux-nat.c (linux_child_post_attach)
4303 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4307 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4308 nptl <2.7 bug workaround for core files.
4312 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4314 (save_siginfo): Remove.
4315 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4317 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4318 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4319 * linux-nat.h (struct lwp_info): Remove field siginfo.
4323 Code cleanup for the next patch.
4324 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4325 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4327 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4328 (ia64_linux_stopped_data_address):
4329 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4331 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4332 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4333 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4339 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4340 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4344 * c-exp.y (DOTDOTDOT): New token.
4345 (func_mod, exp): Use parameter_typelist.
4346 (parameter_typelist): New production.
4347 (tokentab3): Add "..." token.
4348 * eval.c (make_params): Handle varargs.
4349 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4355 * c-exp.y (%union) <tvec>: Change type.
4356 (func_mod): Now uses <tvec> type.
4357 (exp): Update for tvec change.
4358 (direct_abs_decl): Push the typelist.
4359 (func_mod): Return a typelist.
4360 (nonempty_typelist): Update for tvec change.
4361 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4362 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4363 * parse.c (pop_type_list): New function.
4364 (push_typelist): New function.
4365 (follow_types): Handle tp_function_with_arguments.
4366 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4367 (enum type_pieces) <tp_function_with_arguments>: New constant.
4368 (union type_stack_elt) <typelist_val>: New field.
4369 (push_typelist): Declare.
4373 * c-exp.y (%union) <type_stack>: New field.
4374 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4375 (ptr_operator_ts): New production.
4377 * parse.c (type_stack_reserve): New function.
4378 (check_type_stack_depth): Use it.
4379 (pop_type_stack, append_type_stack, push_type_stack)
4380 (get_type_stack, type_stack_cleanup): New functions.
4381 (follow_types): Handle tp_type_stack.
4382 (_initialize_parse): Simplify initialization.
4383 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4385 (union type_stack_elt) <stack_val>: New field.
4386 (get_type_stack, append_type_stack, push_type_stack)
4387 (type_stack_cleanup): Declare.
4391 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4393 (struct type_stack): New.
4394 * parse.c (type_stack, type_stack_size, type_stack_depth):
4396 (type_stack): New global.
4397 (parse_exp_in_context, check_type_stack_depth)
4398 (insert_into_type_stack, insert_type, push_type, push_type_int)
4399 (insert_type_address_space, pop_type, pop_type_int)
4400 (_initialize_parse): Update.
4404 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4409 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4414 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4415 alloca with xmalloc/xfree.
4419 * MAINTAINERS (Write After Approval): Add myself to the list.
4423 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4427 * ax-gdb.c (cli/cli-utils.h): New include.
4428 (linespec.h): Ditto.
4429 (agent_eval_command_one): New function.
4430 (agent_command_1): Ditto.
4431 (agent_command): Call function agent_command_1.
4432 (agent_eval_command): Ditto.
4433 (_initialize_ax_gdb): Change help for "maint agent"
4434 and "maint agent-eval".
4438 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4439 * cli/cli-utils.c (check_for_argument): New function.
4440 * cli/cli-utils.h (check_for_argument): Ditto.
4444 * NEWS: Mention x32 ABI support.
4448 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4449 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4451 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4452 and pc_regnum_from_eax to -1. Update SP regnum from
4453 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4456 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4461 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4462 * dwarf2expr.h: Include gdbtypes.h.
4463 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4464 these forward declarations.
4465 (cu_offset, sect_offset): Move these ...
4466 * gdbtypes.h: Remove include dwarf2expr.h.
4467 (cu_offset, sect_offset): ... here.
4471 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4472 (amd64_linux_sigtramp_code): This.
4473 (amd64_x32_linux_sigtramp_code): New.
4474 (LINUX_SIGTRAMP_LEN): Updated.
4475 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4479 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4483 * config.in: Regenerate.
4484 * configure: Regenerate.
4485 * configure.ac: Remove check for gnu/libc-version.h.
4486 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4488 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4489 variables libc_version, libc_major and libc_minor. Replace sscanf by
4490 inferior_has_bug. Extend the comment.
4494 * linux-thread-db.c (inferior_has_bug): New function.
4495 (thread_db_find_new_threads_silently): Return boolean as checked by
4496 inferior_has_bug, describe it in the comments.
4497 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4498 earlier. Abort the initialization if it returned non-zero.
4499 (thread_db_new_objfile): Exclude debug files.
4500 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4505 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4506 related to queue management.
4508 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4509 instead of "debug dwarf2-die" in debugging printfs.
4510 (create_debug_info_hash_table_reader): Ditto.
4511 (create_debug_info_hash_table): Ditto.
4512 (init_dwo_file): Ditto.
4513 (init_cutu_and_read_dies): Add debugging printf.
4514 (init_cutu_and_read_dies_no_follow): Ditto.
4515 (process_psymtab_comp_unit_reader): Ditto.
4519 Add target-side support for dynamic printf.
4520 * NEWS: Mention the additional style.
4521 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4522 (struct bp_location): New field cmd_bytecode.
4523 * breakpoint.c: Include format.h.
4524 (disconnected_dprintf): New global.
4525 (parse_cmd_to_aexpr): New function.
4526 (build_target_command_list): New function.
4527 (insert_bp_location): Call it.
4528 (remove_breakpoints_pid): Skip dprintf breakpoints.
4529 (print_one_breakpoint_location): Ditto.
4530 (dprintf_style_agent): New global.
4531 (dprintf_style_enums): Add dprintf_style_agent.
4532 (update_dprintf_command_list): Add agent case.
4533 (agent_printf_command): New function.
4534 (_initialize_breakpoint): Add new commands.
4535 * common/ax.def (printf): New bytecode.
4536 * ax.h (ax_string): Declare.
4537 * ax-gdb.h (gen_printf): Declare.
4538 * ax-gdb.c: Include cli-utils.h, format.h.
4539 (gen_printf): New function.
4540 (maint_agent_print_command): New function.
4541 (_initialize_ax_gdb): Add maint agent-printf command.
4542 * ax-general.c (ax_string): New function.
4543 (ax_print): Add printf disassembly.
4544 * Makefile.in (SFILES): Add format.c
4545 (COMMON_OBS): Add format.o.
4546 * common/format.h: New file.
4547 * common/format.c: New file.
4548 * printcmd.c: Include format.h.
4549 (ui_printf): Call parse_format_string.
4550 * remote.c (remote_state): New field breakpoint_commands.
4551 (PACKET_BreakpointCommands): New enum.
4552 (remote_breakpoint_commands_feature): New function.
4553 (remote_protocol_features): Add new BreakpointCommands entry.
4554 (remote_can_run_breakpoint_commands): New function.
4555 (remote_add_target_side_commands): New function.
4556 (remote_insert_breakpoint): Call it.
4557 (remote_insert_hw_breakpoint): Ditto.
4558 (_initialize_remote): Add new packet configuration for
4559 target-side breakpoint commands.
4560 * target.h (struct target_ops): New field
4561 to_can_run_breakpoint_commands.
4562 (target_can_run_breakpoint_commands): New macro.
4563 * target.c (update_current_target): Handle
4564 to_can_run_breakpoint_commands.
4568 Execute -ix and -iex only after system and user gdbinit files.
4569 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4570 processing down after gdbinit files.
4574 Add fnmatch-gnu module.
4575 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4576 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4577 * gnulib/aclocal.m4: Regenerate.
4578 * gnulib/config.in: Regenerate.
4579 * gnulib/configure: Regenerate.
4580 * gnulib/import/dummy.c: Remove.
4581 * gnulib/import/Makefile.am: Regenerate.
4582 * gnulib/import/Makefile.in: Likewise.
4583 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4584 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4585 * gnulib/import/alloca.c: New file.
4586 * gnulib/import/alloca.in.h: Likewise.
4587 * gnulib/import/config.charset: Likewise.
4588 * gnulib/import/fnmatch.c: Likewise.
4589 * gnulib/import/fnmatch.in.h: Likewise.
4590 * gnulib/import/fnmatch_loop.c: Likewise.
4591 * gnulib/import/localcharset.c: Likewise.
4592 * gnulib/import/localcharset.h: Likewise.
4593 * gnulib/import/m4/alloca.m4: Likewise.
4594 * gnulib/import/m4/codeset.m4: Likewise.
4595 * gnulib/import/m4/configmake.m4: Likewise.
4596 * gnulib/import/m4/fcntl-o.m4: Likewise.
4597 * gnulib/import/m4/fnmatch.m4: Likewise.
4598 * gnulib/import/m4/glibc21.m4: Likewise.
4599 * gnulib/import/m4/localcharset.m4: Likewise.
4600 * gnulib/import/m4/locale-fr.m4: Likewise.
4601 * gnulib/import/m4/locale-ja.m4: Likewise.
4602 * gnulib/import/m4/locale-zh.m4: Likewise.
4603 * gnulib/import/m4/mbrtowc.m4: Likewise.
4604 * gnulib/import/m4/mbsinit.m4: Likewise.
4605 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4606 * gnulib/import/m4/mbstate_t.m4: Likewise.
4607 * gnulib/import/m4/stdbool.m4: Likewise.
4608 * gnulib/import/m4/wchar_h.m4: Likewise.
4609 * gnulib/import/m4/wctype_h.m4: Likewise.
4610 * gnulib/import/m4/wint_t.m4: Likewise.
4611 * gnulib/import/mbrtowc.c: Likewise.
4612 * gnulib/import/mbsinit.c: Likewise.
4613 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4614 * gnulib/import/mbsrtowcs-state.c: Likewise.
4615 * gnulib/import/mbsrtowcs.c: Likewise.
4616 * gnulib/import/ref-add.sin: Likewise.
4617 * gnulib/import/ref-del.sin: Likewise.
4618 * gnulib/import/stdbool.in.h: Likewise.
4619 * gnulib/import/streq.h: Likewise.
4620 * gnulib/import/strnlen1.c: Likewise.
4621 * gnulib/import/strnlen1.h: Likewise.
4622 * gnulib/import/verify.h: Likewise.
4623 * gnulib/import/wchar.in.h: Likewise.
4624 * gnulib/import/wctype.in.h: Likewise.
4628 Support shell wildcards for 'set auto-load safe-path'.
4629 * auto-load.c: Include fnmatch.h.
4630 (filename_is_in_dir): Rename to ...
4631 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4632 it. Update function comment. Rename dir_len to pattern_len. New
4633 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4634 messages. Use gdb_filename_fnmatch.
4635 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4637 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4638 * defs.h (gdb_filename_fnmatch): New declaration.
4639 * utils.c: Include fnmatch.h.
4640 (gdb_filename_fnmatch): New function.
4644 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4645 `-probe' and `-probe-stap' options.
4649 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4650 always_inserted_off, and always_inserted_enums.
4651 Change always_inserted_mode's type to 'enum auto_boolean'.
4652 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4654 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4655 of add_setshow_enum_cmd.
4656 * infrun.c: Remove can_use_displaced_stepping_auto,
4657 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4658 can_use_displaced_stepping_enum.
4659 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4660 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4661 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4662 add_setshow_enum_cmd.
4666 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4667 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4668 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4672 * linespec.c: #include "stack.h".
4673 (decode_line_with_current_source): Moved here from symtab.c and
4674 renamed from decode_line_spec. All callers updated.
4675 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4676 renamed from decode_line_spec_1. All callers updated.
4677 * linespec.h (decode_line_with_current_source): Move declaration here
4678 from symtab.h and renamed from decode_line_spec.
4679 (decode_line_with_last_displayed): Move declaration here from symtab.h
4680 and renamed from decode_line_spec_1.
4681 * macrocmd.c: #include "linespec.h".
4682 * symtab.c: Remove #include "linespec.h".
4686 * dwarf2read.c (get_cu_length): New function.
4687 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4688 (create_debug_types_hash_table): Ditto.
4689 (init_cutu_and_read_dies): Ditto.
4690 (init_cutu_and_read_dies_no_follow): Ditto.
4692 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4694 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4695 (struct abbrev_table): Define.
4696 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4698 (init_cutu_and_read_dies): Update.
4699 (abbrev_table_alloc_abbrev): New function. Replaces
4700 dwarf_alloc_abbrev. All callers updated.
4701 (abbrev_table_add_abbrev): New function.
4702 (abbrev_table_lookup_abbrev): New function. Replaces
4703 dwarf2_lookup_abbrev. All callers updated.
4704 (abbrev_table_read_table): New function. Contents moved here from
4705 dwarf2_read_abbrevs.
4706 (dwarf2_read_abbrevs): Call it.
4707 (abbrev_table_free): New function.
4708 (dwarf2_free_abbrev_table): Call it.
4712 * osdata.c (info_osdata_command): Filter out "Title" columns
4714 * common/linux-osdata.c (struct osdata_type): Add title field.
4715 (osdata_table): Add titles to each entry.
4716 (linux_command_xfer_osdata): Add a column for title data.
4720 Make logging work for MI.
4722 * interps.h (interp_set_logging_ftype): New typedef.
4723 (struct interp_procs): New field set_logging_proc.
4724 (current_interp_set_logging): Declare.
4725 * interps.c (current_interp_set_logging): New function.
4726 * cli/cli-logging.c: Include interps.h.
4727 (set_logging_redirect): Call current_interp_set_logging.
4728 (pop_output_files): Ditto.
4729 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4730 * mi/mi-console.h (mi_console_set_raw): Declare.
4731 * mi/mi-console.c (mi_console_set_raw): New function.
4732 * mi/mi-interp.c (saved_raw_stdout): New global.
4733 (mi_set_logging): New function.
4734 (_initialize_mi_interp): Add it to interp procs.
4738 * symtab.c (lookup_symbol_aux_objfile): Use
4739 ALL_OBJFILE_PRIMARY_SYMTABS.
4741 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4745 * common/buffer.c: Include inttypes.h and stdint.h.
4746 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4751 * gdbthread.h (ALL_THREADS): New macro.
4752 (thread_list): Declare.
4753 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4754 going, but instead fall through to the stepping handling.
4755 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4756 the passed in signal. Adjust debug output.
4757 (resume_callback): Rename to ...
4758 (linux_nat_resume_callback): ... this. Pass the thread's last
4759 stop signal, if in "pass" state.
4760 (linux_nat_resume): Adjust to rename.
4761 (stop_wait_callback): New assertion. Don't respawn signals;
4762 instead let the LWP remain with SIGNALLED set.
4763 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4764 * remote.c (append_pending_thread_resumptions): New.
4765 (remote_vcont_resume): Call it.
4766 * target.h (target_resume): Extend comment.
4770 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4774 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4775 Delete have_addr_base, unused. All uses updated.
4776 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4777 (dwarf2_get_pc_bounds): Add ranges_base.
4778 (dwarf2_record_block_ranges): Ditto.
4783 * varobj.c (varobj_create): Update.
4784 (varobj_set_value): Update.
4785 * tracepoint.c (validate_actionline): Update.
4786 (encode_actions_1): Update.
4787 * parse.c (parse_exp_1): Add 'pc' argument.
4788 (parse_exp_in_context): Add 'pc' argument. Change how
4789 expression_context_pc is set.
4790 (parse_expression): Update.
4791 (parse_field_expression): Update.
4792 * expression.h (parse_exp_1): Update.
4793 * eval.c (parse_to_comma_and_eval): Update.
4794 * breakpoint.c (set_breakpoint_condition): Update.
4795 (update_watchpoint): Update.
4796 (init_breakpoint_sal): Update
4797 (find_condition_and_thread): Update.
4798 (watch_command_1): Update.
4799 (update_breakpoint_locations): Update.
4800 * ada-lang.c (ada_read_renaming_var_value): Update.
4801 (create_excep_cond_exprs): Update.
4805 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4810 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4812 (error_check_comp_unit_head): New arg abbrev_section. All callers
4814 (read_and_check_comp_unit_head): Ditto.
4815 (read_and_check_type_unit_head): Ditto.
4819 New attribute 'last' for gdb.Symtab_and_line.
4820 * NEWS (Python Scripting): Add entry about the new attribute.
4821 * python/py-symtab.c (salpy_get_last): New function which
4822 implements the get method for the 'last' attribute of
4823 gdb.Symtab_and_line.
4824 (sal_object_getset): Add entry for the 'last' attribute.
4828 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4829 (dwo_sections): Add macinfo, macro.
4830 (dwarf2_locate_dwo_sections): Watch for macro sections.
4831 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4832 All callers updated. Handle DWO files.
4834 * NEWS: Mention new options "set debug dwarf2-read" and
4835 "set debug symtab-create".
4836 * dwarf2read.c (dwarf2_read_debug): New static global.
4837 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4838 (process_queue): Ditto.
4839 (process_full_comp_unit): Ditto.
4840 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4841 * elfread.c (elf_symfile_read): Add debugging printf.
4842 * minsyms.c (install_minimal_symbols): Ditto.
4843 * psymtab.c (allocate_psymtab): Ditto.
4844 * symfile.c (allocate_symtab): Ditto.
4845 * symtab.c (symtab_create_debug): New global.
4846 (_initialize_symtab): Add new option "set debug symtab-create".
4847 * symtab.h (symtab_create_debug): Declare.
4849 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4850 (lookup_dwo_type_unit): Ditto.
4855 * amd64-linux-nat.c: Include <sys/user.h>.
4856 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4857 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4858 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4860 * configure.ac: Check if the fs_base and gs_base members of
4861 `struct user_regs_struct' exist.
4862 * config.in: Regenerated.
4863 * configure: Likewise.
4868 * python/python.c (gdbpy_write): Check for interrupted output.
4872 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4873 register as a stack alignment in ARM mode.
4877 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4878 * gnulib/config.in: Regenerate.
4879 * gnulib/configure: Likewise.
4880 * gnulib/import/m4/extensions.m4: Update it.
4881 * gnulib/import/m4/gnulib-common.m4: Likewise.
4882 * gnulib/import/m4/memmem.m4: Likewise.
4883 * gnulib/import/m4/mmap-anon.m4: Likewise.
4884 * gnulib/import/m4/multiarch.m4: Likewise.
4885 * gnulib/import/stdint.in.h: Likewise.
4889 * corefile.c (write_memory_with_notification): New.
4890 * gdbcore.h: Declare write_memory_with_notification.
4891 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4892 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4893 * valops.c (value_assign): Likewise.
4894 * python/py-inferior.c (infpy_write_memory): Call
4895 'write_memory_with_notification'.
4899 * cc-with-index.sh: Use also -ex "set auto-load no".
4904 * NEWS: Document additions to .gdb_index.
4905 * dwarf2read.c: #include "gdb/gdb-index.h".
4906 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4907 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4908 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4909 (dwarf2_read_index): Recognize version 7.
4910 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4911 block_kind, domain): All callers updated.
4912 (dw2_find_symbol_file): Handle new index CU values.
4913 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4914 (add_index_entry): New args is_static, kind. All callers updated.
4915 (offset_type_compare, uniquify_cu_indices): New functions
4916 (symbol_kind): New function.
4917 (write_psymtabs_to_index): Remove duplicate CU values.
4918 (write_psymtabs_to_index): Write .gdb_index version 7.
4922 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4923 * configure: Regenerate.
4927 * python/py-inferior.c: Update comments of infpy_read_memory
4928 and infpy_write_memory.
4933 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4934 (push_type_address_space): Remove.
4935 * parse.c (insert_into_type_stack): New function.
4936 (insert_type): Likewise.
4937 (insert_type_address_space): Rename from push_type_address_space.
4938 Insert tp_space_identifier.
4939 * c-exp.y (ptr_operator): New production.
4940 (abs_decl): Use ptr_operator.
4941 (space_identifier): Call insert_type_address_space.
4942 (ptype): Don't use const_or_volatile_or_space_identifier.
4943 (const_or_volatile_noopt): Call insert_type.
4944 (conversion_type_id, conversion_declarator): New productions.
4945 (operator): Use conversion_type_id.
4949 * symtab.h (minimal_symbol): New member created_by_gdb.
4950 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4952 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4953 (search_symbols): Call it instead of lookup_symbol.
4954 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4956 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4957 Adjust address for DW_OP_GNU_addr_index.
4958 * dwarf2expr.h (dwarf_expr_context): Update comment.
4959 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4960 all callers updated. Handle TLS vars described with
4961 DW_OP_GNU_const_index.
4962 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4963 and DW_OP_GNU_const_index.
4964 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4966 * block.c (find_block_in_blockvector): Make explicit the fact that we
4967 ignore GLOBAL_BLOCK.
4971 * c-exp.y (operator): Remove trailing space after "delete" and
4977 Switch i386 and derived targets to ON_STACK.
4978 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4979 (amd64_dicos_init_abi): Remove its installment.
4980 * dicos-tdep.c (dicos_init_abi): Remove the
4981 set_gdbarch_call_dummy_location call. Update the comment here.
4982 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4983 (i386_dicos_init_abi): Remove its installment.
4984 * i386-tdep.c (i386_push_dummy_code): New function.
4985 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4986 i386_push_dummy_code.
4990 Remove stale dummy frames.
4991 * breakpoint.c: Include dummy-frame.h.
4992 (longjmp_breakpoint_ops): New variable.
4993 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4994 bp_longjmp_call_dummy.
4995 (bpstat_what, bptype_string, print_one_breakpoint_location)
4996 (init_bp_location): Support bp_longjmp_call_dummy.
4997 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4998 (set_longjmp_breakpoint_for_call_dummy)
4999 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5001 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5002 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5003 FIXME comment and extend the other comment for bp_call_dummy.
5004 (set_longjmp_breakpoint_for_call_dummy)
5005 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5006 * dummy-frame.c: Include gdbthread.h.
5007 (pop_dummy_frame_bpt): New function.
5008 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5009 (dummy_frame_discard): New function.
5010 (cleanup_dummy_frames): Update the comment about longjmps.
5011 * dummy-frame.h (dummy_frame_discard): New declaration.
5012 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5013 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5014 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5015 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5016 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5017 keep_going if IS_LONGJMP and there is no other reason to stop.
5021 * remote-sim.c (sim_command_completer): Initialize
5026 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5027 * dwarf2loc.c (call_site_parameter_matches): Support
5028 CALL_SITE_PARAMETER_PARAM_OFFSET.
5029 (needs_dwarf_reg_entry_value): Push stub value.
5030 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5031 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5032 * gdbtypes.h (enum call_site_parameter_kind): New item
5033 CALL_SITE_PARAMETER_PARAM_OFFSET.
5034 (struct call_site.parameter.u): New field param_offset.
5038 Code cleanup: Generalize call_site.parameter key.
5039 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5040 variable dwarf_reg. New variable kind_u. Update parameters to
5041 push_dwarf_reg_entry_value.
5042 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5043 * dwarf2expr.h (enum call_site_parameter_kind)
5044 (union call_site_parameter_u): Forward declarations.
5045 (struct dwarf_expr_context_funcs): Update parameters and their
5046 description for push_dwarf_reg_entry_value.
5047 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5048 * dwarf2loc.c (call_site_parameter_matches): New function.
5049 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5050 description. Use call_site_parameter_matches.
5051 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5052 Update parameters and their description.
5053 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5054 New variable kind_u. Adjust the caller for updated parameters.
5055 (needs_dwarf_reg_entry_value): Update parameters.
5056 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5057 instead of attr. Update for the changed fields of struct
5058 call_site_parameter.
5059 * gdbtypes.h: Include dwarf2expr.h.
5060 (enum call_site_parameter_kind): New.
5061 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5062 fb_offset into new union u.
5066 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5067 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5072 * amd64-linux-nat.c (compat_x32_clock_t): New.
5073 (compat_x32_siginfo_t): Likewise.
5074 (compat_x32_siginfo_from_siginfo): Likewise.
5075 (siginfo_from_compat_x32_siginfo): Likewise.
5076 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5077 and siginfo_from_compat_x32_siginfo for x32.
5081 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5085 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5086 instead of gdbarch_ptr_bit.
5087 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5088 (amd64_supply_native_gregset): Likewise.
5089 (amd64_collect_native_gregset): Likewise.
5090 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5091 (amd64_supply_xsave): Likewise.
5092 (amd64_collect_fxsave): Likewise.
5093 (amd64_collect_xsave): Likewise.
5097 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5098 (amd64_linux_read_description): Check DS segment register for
5103 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5104 init_cutu_and_read_dies.
5108 * MAINTAINERS (Write After Approval): Add myself to the list.
5112 * valops.c (value_find_oload_method_list): Now static.
5113 * value.h (value_find_oload_method_list): Don't declare.
5117 * valops.c (find_overload_match): Use value_ind.
5121 * infrun.c (handle_inferior_event): Correct indentation.
5125 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5126 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5128 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5129 updated. Handle DEBUG_LOC_START_LENGTH.
5130 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5131 (loclist_describe_location): Ditto.
5136 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5137 after hiding inline functions.
5141 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5142 _initialize_inf_ttrace.
5146 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5147 _initialize_hppa_hpux_nat.
5151 * remote-sim.c (sim_command_completer): Change type of return
5152 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5158 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5159 stack on a 16-byte boundary.
5163 * jit.c (finalize_symtab): Set function's return type to 'void' by
5169 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5170 Move bits common to both the classic LP64 and the new x32 ILP32
5172 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5173 (amd64_x32_linux_init_abi): New function.
5174 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5177 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5178 * i386-tdep.c (i386_pseudo_register_name): Make public.
5179 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5180 * amd64-tdep.c (amd64_dword_names): Add "eip".
5181 (amd64_x32_pseudo_register_type): New function
5182 (amd64_x32_init_abi): New function.
5187 * inferior.h (struct inferior_suspend_state): Comment out.
5188 (struct inferior): Comment out the field suspend.
5189 * infrun.c (struct infcall_suspend_state): Comment out the field
5191 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5196 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5197 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5198 function comment. Return ERROR for unresolved cases. Implement
5199 returning proper NAME.
5200 (yylex): Accept also NAME from classify_inner_name.
5201 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5202 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5204 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5208 * breakpoint.c (condition_completer): New function.
5209 (_initialize_breakpoint): Use it.
5210 * value.c (complete_internalvar): New function.
5211 * value.h (complete_internalvar): Declare.
5215 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5216 * breakpoint.c (catch_syscall_completer): Return a VEC.
5217 * cli/cli-cmds.c (complete_command): Update.
5218 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5219 (complete_on_enum): Likewise.
5220 * command.h: Include gdb_vecs.h.
5221 (completer_ftype): Change return type.
5222 (complete_on_cmdlist, complete_on_enum): Likewise.
5223 * completer.c (noop_completer, filename_completer)
5224 (location_completer): Return a VEC.
5225 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5227 (expression_completer, complete_line_internal, complete_line)
5228 (command_completer): Return a VEC.
5229 (gdb_completion_word_break_characters, line_completion_function):
5231 * completer.h: Include gdb_vecs.h.
5232 (complete_line, noop_completer, filename_completer)
5233 (expression_completer, location_completer, command_completer):
5235 * f-lang.c (f_word_break_characters): Return a VEC.
5236 * interps.c (interpreter_completer): Return a VEC.
5237 * language.h (struct language_defn)
5238 <la_make_symbol_completion_list>: Return a VEC.
5239 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5240 * symtab.c (free_completion_list): Take a VEC.
5241 (return_val_size, return_val_index): Remove.
5242 (return_val): Now a VEC.
5243 (completion_list_add_name): Update.
5244 (default_make_symbol_completion_list_break_on)
5245 (default_make_symbol_completion_list, make_symbol_completion_list)
5246 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5248 (add_filename_to_list): Update.
5249 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5251 (maybe_add_partial_symtab_filename): Update.
5252 (make_source_files_completion_list): Return a VEC.
5253 * symtab.h (default_make_symbol_completion_list_break_on)
5254 (default_make_symbol_completion_list, make_symbol_completion_list)
5255 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5256 (make_source_files_completion_list): Update.
5260 * breakpoint.c (add_catch_command): Use completer_ftype.
5261 * breakpoint.h: Include command.h.
5262 (add_catch_command): Use completer_ftype.
5263 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5264 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5265 Use completer_ftype.
5266 * command.h (completer_ftype): New typedef.
5267 (set_cmd_completer): Use it.
5268 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5273 Partial revert of previous change.
5275 * serial.c (scb_base): New global.
5276 (serial_for_fd): New.
5277 (serial_open, serial_fdopen_ops): Link new serial in open serials
5279 (do_serial_close): Unlink serial from the open serials chain.
5283 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5285 (prepare_for_detach): No longer context switch here in non-stop
5287 (fetch_inferior_event): Ditto.
5288 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5289 to the event thread before removing breakpoints. Switch to the
5290 event thread before inserting breakpoints and resuming.
5291 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5292 event thread before resuming.
5293 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5294 Switch to the event thread before removing breakpoints.
5298 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5299 special characters correctly for the Windows shells. See
5300 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5302 [!__MINGW32__]: Remove extra double quote character from special
5307 * ui-out.h: Remove #if 0 declarations.
5308 * ui-out.c: Remove #if 0 functions.
5312 * ser-base.c (run_async_handler_and_reschedule): New.
5313 (fd_event, push_event): Use it.
5314 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5315 reference count to 1.
5316 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5318 (serial_is_open, serial_ref, serial_unref): New.
5319 * serial.h (serial_open): Adjust comment.
5320 (serial_is_open): Declare.
5321 (serial_close): Adjust comment.
5322 (serial_ref, serial_unref) Declare.
5323 (struct serial): New field 'refcnt'.
5327 Remove #if 0'd "connect" command, and unnecessary associated
5328 refcounting and serial reuse bits.
5330 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5331 * serial.c (last_serial_opened): Delete.
5333 (serial_open): Adjust.
5334 (serial_for_fd): Delete.
5335 (serial_fdopen_ops, do_serial_close): Adjust.
5336 (serial_fdopen_ops): Adjust.
5340 * serial.c (do_serial_close): Remove early return when SCB is
5345 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5349 Fix regression by the "ambiguous linespec" series.
5350 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5351 get_last_displayed_symtab and get_last_displayed_line and depending
5356 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5357 (dw2_find_symbol_file): Use it.
5361 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5362 * mips-linux-tdep.h (mips_signals): New
5366 * infrun.c (handle_inferior_event)
5367 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5369 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5370 exception logic in all cases. Update comments.
5371 (insert_longjmp_resume_breakpoint): Set the exception resume
5376 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5380 * valarith.c (binop_types_user_defined_p): Fix a typo.
5385 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5386 * arch-utils.h: Declare.
5387 * gdbarch.sh: Add return_in_first_hidden_param_p.
5388 * gdbarch.c, gdbarch.h: Regenerated.
5389 * infcall.c (call_function_by_hand): Call
5390 gdbarch_return_in_first_hidden_param_p instead of
5391 language_pass_by_reference.
5393 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5394 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5395 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5396 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5397 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5398 `cplus_return_struct_by_reference'.
5399 (tic6x_return_value): Handle language cplusplus.
5400 (tic6x_return_in_first_hidden_param_p): New.
5401 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5405 * dwarf2read.c (dwarf2_cu): Add comment.
5409 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5411 (mips_eabi_push_dummy_call): Likewise.
5412 (mips_n32n64_push_dummy_call): Likewise.
5413 (mips_o32_push_dummy_call): Likewise.
5414 (mips_o64_push_dummy_call): Likewise.
5418 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5422 * mips-tdep.c (mips_pseudo_register_type): Use
5423 mips_float_register_p.
5427 * infrun.c (handle_inferior_event): Remove calls to
5428 reinit_frame_cache that follow a context_switch call.
5432 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5433 context_switch and remove stale comment.
5437 * infrun.c (struct execution_control_state): Remove
5438 `new_thread_event' field.
5439 (handle_inferior_event): Simplify new threads handling; don't
5440 resume the inferior if we find a new thread.
5444 * NEWS: Document the deprecation of SH's 'regs' command.
5445 * inferior.h (all_registers_info): Add function declaration.
5446 * sh-tdep.c (sh_show_regs): Remove variable.
5447 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5448 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5449 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5450 (sh_show_regs_command): Remove functions.
5451 (sh_gdbarch_init): Don't set sh_show_regs.
5452 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5453 'info all-registers'.
5454 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5455 (sh64_show_regs): Remove functions.
5456 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5460 * configure.ac: Move development=true below AC_INIT.
5461 * configure: Regenerate.
5465 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5470 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5471 argument as ssize_t.
5472 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5473 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5474 * target.c (target_read_stack, target_write_memory)
5475 (target_write_raw_memory): Likewise.
5476 * target.h (target_read_stack, target_write_memory)
5477 (target_write_raw_memory): Likewise.
5481 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5482 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5483 * target.c (target_read_memory): Change LEN to ssize_t.
5484 * target.h (target_read_memory): Change LEN to ssize_t.
5490 * breakpoint.c (until_break_command): Only fetch the selected
5491 frame after decode_line_1.
5495 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5496 event breakpoint at _start, __start or main if a program
5497 interpreter is not found.
5501 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5503 * windows-tdep.c: #include "objfiles.h".
5504 (windows_iterate_over_objfiles_in_search_order): New function.
5505 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5506 iterate_over_objfiles_in_search_order gdbarch method to
5507 windows_iterate_over_objfiles_in_search_order.
5508 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5512 * gdbarch.sh: Add generation of
5513 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5514 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5515 (iterate_over_objfiles_in_search_order): New gdbarch method.
5516 * gdbarch.h, gdbarch.c: Regenerate.
5517 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5519 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5521 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5522 out of lookup_symbol_aux_symtabs.
5523 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5524 call to lookup_symbol_aux_objfile.
5525 (struct global_sym_lookup_data): New type.
5526 (lookup_symbol_global_iterator_cb): New function.
5527 (lookup_symbol_global): Search for symbol using
5528 gdbarch_iterate_over_objfiles_in_search_order and
5529 lookup_symbol_global_iterator_cb.
5530 * findvar.c (struct minsym_lookup_data): New type.
5531 (minsym_lookup_iterator_cb): New function.
5532 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5533 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5534 and minsym_lookup_iterator_cb.
5538 Revert the following patch:
5539 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5540 try locating the symbol in the symbol's own objfile first, before
5541 extending the search to all objfiles.
5542 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5543 out of lookup_symbol_aux_symtabs.
5544 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5545 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5546 Do not search EXCLUDE_OBJFILE.
5547 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5548 (lookup_symbol_global): Search for matches in the block's objfile
5549 first, before searching all other objfiles.
5553 * breakpoint.c (find_condition_and_thread): Stop parsing
5554 as soon as the first invalid keyword is found.
5558 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5562 * config/djgpp/djcheck.sh: Add copyright header.
5566 * copyright.py (update_files, main): Fix path to update-copyright
5571 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5572 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5573 for which a reminder to update by hand is printed.
5577 * buildsym.c (make_blockvector): Add comment.
5581 * arch-utils.c (default_gdb_signal_from_target): Delete.
5582 * arch-utils.h (default_gdb_signal_from_target): Delete.
5583 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5584 gdbarch_gdb_signal_from_target_p.
5585 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5587 * gdbarch.h: Regenerate.
5588 * gdbarch.c: Regenerate.
5592 * gdbarch.sh (gdb_signal_from_target): Mention that the
5593 implementation of the method must be host independent.
5594 * gdbarch.h: Regenerate.
5598 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5600 (target_read_memory_bfd): New function.
5601 (symbol_file_add_from_memory): Use it.
5605 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5607 (basic_lookup_transparent_type): Ditto.
5609 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5610 (ALL_PRIMARY_SYMTABS): Use it.
5611 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5612 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5613 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5614 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5615 (basic_lookup_transparent_type): Ditto.
5619 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5620 it to optimize resolution of demangled name.
5624 * configure.ac (development): Define new variable.
5625 Call AC_CHECK_LIB for mcheck if $development.
5626 (ERROR_ON_WARNING): Enable it by default only if $development.
5627 * config.in: Regenerate.
5628 * configure: Regenerate.
5632 * target.c (target_read_memory): Make LEN argument as size_t.
5633 * target.h (target_read_memory): Likewise.
5637 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5641 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5642 BookE interface for PowerPC server processors if not available
5643 in the Linux Kernel.
5647 * linespec.c (decode_objc): Add cleanup to free
5649 (find_linespec_symbols): Add cleanup to free CLASSES.
5650 * symfile.c (find_separate_debug_file_by_debuglink): Add
5651 cleanup to free DEBUGLINK.
5652 * ui-out.c (clear_header_list): No need to check if
5653 HEADER_NEXT.COLHDR is NULL.
5654 Free HEADER_NEXT.COL_NAME.
5658 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5663 * configure.host (gdb_host_cpu): Handle tilegx*.
5664 (gdb_host): Handle tilegx-*-linux*.
5665 * tilegx-linux-nat.c: New file.
5666 * config/tilegx/linux.mh: New file.
5670 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5671 tilegx-linux-tdep.o.
5672 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5673 tilegx-linux-tdep.c.
5674 * configure.tgt: Handle tilegx-*-linux*.
5675 * tilegx-tdep.h: New file.
5676 * tilegx-tdep.c: New file.
5677 * tilegx-linux-tdep.c: New file.
5678 * regformats/reg-tilegx.dat: New file.
5682 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5683 accounting of hw watchpoints on ppc.
5687 * source.c (openp): Expand tilde in path entries.
5691 * buildsym.c (block_compar): Fix comment.
5692 (end_symtab): Fix and clarify some comments.
5694 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5695 cleanup_undefined_types.
5696 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5697 All callers updated.
5701 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5703 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5704 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5706 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5711 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5712 (struct darwin_info): ... New struct.
5713 (solib_darwin_pspace_data): New variable.
5714 (darwin_pspace_data_cleanup): New function.
5715 (get_darwin_info): Likewise.
5716 (darwin_dyld_version_ok, darwin_load_image_infos)
5717 (darwin_solib_get_all_image_info_addr_at_init)
5718 (darwin_solib_read_all_image_info_addr): Add info argument.
5720 (darwin_current_sos): Use per pspace structure.
5721 (darwin_solib_create_inferior_hook): Likewise.
5722 (darwin_clear_solib): Likewise.
5723 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5727 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5728 block that uses them. Clear ecss before handling each event.
5732 * solib-svr4.c (svr4_current_sos): New comment on
5733 svr4_current_sos_via_xfer_libraries fall back.
5737 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5738 it as a fallback for TYPE_IS_OPAQUE.
5739 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5740 symbols for lookup_symbol.
5744 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5745 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5746 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5747 (check_producer): ... this new function, which also checks for ICC
5748 and caches the result.
5749 (producer_is_icc): New function.
5750 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5757 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5758 (default_gdb_signal_to_target): ... this. Add comment.
5759 (default_gdb_signal_from_host): Rename to ...
5760 (default_gdb_signal_from_target): ... this. Add comment.
5761 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5762 (default_gdb_signal_to_target): ... this.
5763 (default_gdb_signal_from_host): Rename to ...
5764 (default_gdb_signal_from_target): ... this.
5765 * corelow.c (core_open): Adjust to naming change. Replace comment.
5766 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5767 (gdb_signal_from_target): ... this. Adjust to
5768 default_gdb_signal_from_host naming change. Extend comment.
5769 (gdb_signal_to_host): Rename to ...
5770 (gdb_signal_to_target): ... this. Adjust to
5771 default_gdb_signal_to_host naming change.
5772 * gdbarch.h, gdbarch.c: Renegerate.
5778 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5784 Replace target_signal with gdb_signal throughout.
5790 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5791 string, instead of reusing the va_list argument.
5795 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5800 * symtab.c (search_symbols): Formatting fixes.
5801 (print_symbol_info): Formatting fixes.
5803 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5804 int64_t change to leb128 API.
5805 (read_encoded_value, decode_frame_entry_1): Ditto.
5806 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5807 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5808 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5809 (execute_stack_op): Ditto.
5810 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5811 (safe_read_uleb128, safe_read_sleb128): Ditto.
5812 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5813 (dwarf2_compile_expr_to_ax): Ditto.
5814 (locexpr_describe_location_piece): Ditto.
5815 (disassemble_dwarf_expression): Ditto.
5816 (locexpr_describe_location_1): Ditto.
5821 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5822 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5823 (mi-cmd-info.o): New rule.
5824 * osdata.h (info_osdata_command): New declaration.
5825 * osdata.c (info_osdata_command): Change to non-static.
5826 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5827 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5828 * mi/mi-cmd-info.c: New file.
5832 * symtab.c (search_symbols): Pass NULL for file_matcher to
5833 expand_symtabs_matching if there are no files to match.
5835 * gdbtypes.c (lookup_typename): Simplify.
5839 * arch-utils.h (default_target_signal_to_host): Delete.
5840 * arch-utils.c (default_target_signal_to_host): Delete.
5841 * gdbarch.sh (target_signal_to_host): Remove.
5842 * gdbarch.h, gdbarch.c: Regenerate.
5846 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5848 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5849 (execute_cfa_program): Update to match API of leb128 functions.
5850 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5852 (read_unsigned_leb128, read_signed_leb128): Delete.
5853 (read_initial_length): Change type of buf argument to
5855 (read_encoded_value): Update to match API of leb128 functions.
5856 (decode_frame_entry): Change result to "const gdb_byte *", and
5857 similarly for "start" parameter.
5858 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5859 (dwarf2_build_frame_info): Change local frame_ptr to
5861 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5862 read_uleb128, read_sleb128. All callers updated.
5863 (safe_skip_leb128): New function.
5864 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5865 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5866 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5867 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5868 read_uleb128, read_sleb128.
5869 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5870 (execute_stack_op): Update to match API of leb128 functions.
5871 * dwarf2expr.h: #include "leb128.h".
5872 (read_uleb128, read_sleb128): Delete.
5873 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5874 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5875 * dwarf2loc.c (debug_loc_kind): New enum.
5876 (decode_debug_loc_addresses): New function.
5877 (decode_debug_loc_dwo_addresses): New function.
5878 (dwarf2_find_location_expression): Rewrite.
5879 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5880 (locexpr_describe_location_piece): Ditto.
5881 (disassemble_dwarf_expression): Ditto.
5882 (locexpr_describe_location_1): Ditto.
5883 (loclist_describe_location): Rewrite.
5884 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5885 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5886 (dwarf2_section_buffer_overflow_complaint): Renamed from
5887 dwarf2_macros_too_long_complaint. All callers updated.
5888 (skip_leb128): Delete.
5889 (init_cu_die_reader): Initialize reader->buffer_end.
5890 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5891 (skip_form_bytes): New arg buffer_end. All callers updated.
5892 Replace call to skip_leb128 with gdb_skip_leb128.
5893 (skip_unknown_opcode): New arg mac_end. All callers updated.
5894 (fill_in_loclist_baton): Initialize baton->from_dwo.
5898 * mips-linux-nat.c (mips_linux_read_description): Use a more
5899 verbose error message.
5903 * NEWS: Add MIPS/Linux DSP support.
5904 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5905 (SIGCONTEXT_DSPCTL): New macro.
5906 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5907 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5908 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5909 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5910 (N64_SIGCONTEXT_HI3): Likewise.
5911 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5912 (N64_SIGCONTEXT_LO3): Likewise.
5913 (N64_SIGCONTEXT_DSPCTL): Likewise.
5914 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5915 (mips_linux_o32_sigframe_init): Handle DSP registers.
5916 (mips_linux_n32n64_sigframe_init): Likewise.
5920 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5925 * target.h (store_waitstatus): Move declaration ...
5926 * inf-child.h (store_waitstatus): ... here.
5927 * target.c: Move inclusion of gdb_wait.h, and ...
5928 (store_waitstatus): ... this ...
5929 * inf-child.c: ... here.
5930 * linux-nat.c: Include inf-child.h.
5931 * rs6000-nat.c: Include inf-child.h.
5932 * spu-linux-nat.c: Include inf-child.h.
5936 * tracepoint.c (start_tracing): Add missing i18n markup.
5937 (stop_tracing, set_trace_user): Ditto.
5938 (set_trace_notes, set_trace_stop_notes): Ditto.
5943 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5945 * value.h (value_cast_pointers): Update.
5946 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5947 (value_cast): Update.
5948 (update_search_result): New function.
5949 (do_search_struct_field): New, from search_struct_field. Check
5950 for ambiguous results.
5951 (search_struct_field): Rewrite.
5952 * infcall.c (value_arg_coerce): Update.
5953 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5954 value_cast_pointers.
5955 * ada-lang.c (ada_convert_actual): Update.
5959 * macroexp.c (macro_stringify): Terminate the string.
5963 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5965 * auto-load.c (auto_load_expand_dir_vars): New function.
5966 (auto_load_safe_path_vec_update): Use it, remove the
5967 substitute_path_component call thanks to it.
5968 (auto_load_objfile_script): Remove the debug_file_directory processing.
5969 Use auto_load_expand_dir_vars, remove the substitute_path_component
5971 * configure: Regenerate.
5972 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5973 path. Escape $ also for $debugdir.
5974 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5975 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5979 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5980 before use. Check for symtab->includes == NULL before scanning it.
5984 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5988 * NEWS: Add microMIPS support and "set mips compression",
5989 "show mips compression" commands.
5990 * mips-tdep.h (mips_isa): New enum.
5991 (gdbarch_tdep): Add mips_isa.
5992 (mips_pc_is_mips16): Update prototype.
5993 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5994 * mips-tdep.c (mips_compression_mips16): New variable.
5995 (mips_compression_micromips): Likewise.
5996 (mips_compression_strings): Likewise.
5997 (mips_compression_string): Likewise.
5998 (is_mips16_isa, is_micromips_isa): New functions.
5999 (is_mips16_addr): Rename to...
6000 (is_compact_addr): ... this.
6001 (unmake_mips16_addr): Likewise to...
6002 (unmake_compact_addr): ... this.
6003 (make_mips16_addr): Likewise to...
6004 (make_compact_addr): ... this.
6005 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6007 (mips_elf_make_msymbol_special): Handle microMIPS code.
6008 (msymbol_is_special): Rename to...
6009 (msymbol_is_mips16): ... this.
6010 (mips_make_symbol_special, mips_pc_is_mips16): Update
6012 (msymbol_is_mips, msymbol_is_micromips): New functions.
6013 (mips16_to_32_reg): Rename to...
6014 (mips_reg3_to_reg): ... this.
6015 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6016 (mips_pc_isa): Likewise.
6017 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6019 (mips_fetch_instruction): Pass return status instead of printing
6020 an error message if requested. Handle microMIPS code. Bail out
6022 (micromips_op): New macro.
6023 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6024 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6025 (b6s4_op, b7s3_reg): Likewise.
6026 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6027 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6028 (mips_insn_size): New function.
6029 (mips32_next_pc): Update mips_fetch_instruction call.
6030 (micromips_relative_offset7): New function.
6031 (micromips_relative_offset10): Likewise.
6032 (micromips_relative_offset16): Likewise.
6033 (micromips_pc_insn_size): Likewise.
6034 (micromips_bc1_pc): Likewise.
6035 (micromips_next_pc): Likewise.
6036 (unpack_mips16): Update mips_fetch_instruction call.
6037 (extended_mips16_next_pc): Update according to change to
6039 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6041 (mips16_scan_prologue): Update mips_fetch_instruction call.
6042 Update according to change to mips16_to_32_reg.
6043 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6044 (mips_insn16_frame_base_sniffer): Likewise.
6045 (micromips_decode_imm9): New function.
6046 (micromips_scan_prologue): Likewise.
6047 (mips_micro_frame_cache): Likewise.
6048 (mips_micro_frame_this_id): Likewise.
6049 (mips_micro_frame_prev_register): Likewise.
6050 (mips_micro_frame_sniffer): Likewise.
6051 (mips_micro_frame_unwind): New variable.
6052 (mips_micro_frame_base_address): New function.
6053 (mips_micro_frame_base): New variable.
6054 (mips_micro_frame_base_sniffer): New function.
6055 (mips32_scan_prologue): Update mips_fetch_instruction call.
6056 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6057 rather than for MIPS16.
6058 (mips_insn32_frame_base_sniffer): Likewise.
6059 (mips_addr_bits_remove): Handle microMIPS code.
6060 (deal_with_atomic_sequence): Rename to...
6061 (mips_deal_with_atomic_sequence): ... this. Update the type
6062 of the variable used to hold an instruction. Remove the ISA bit
6063 check. Update mips_fetch_instruction call.
6064 (micromips_deal_with_atomic_sequence): New function.
6065 (deal_with_atomic_sequence): Likewise.
6066 (mips_about_to_return): Handle microMIPS code. Update
6067 mips_fetch_instruction call.
6068 (heuristic_proc_start): Check for the standard MIPS ISA rather
6069 than for MIPS16. Update mips_pc_is_mips16 and
6070 mips_fetch_instruction calls. Handle microMIPS code.
6071 (mips_push_dummy_code): Handle microMIPS code.
6072 (mips_eabi_push_dummy_call): Likewise.
6073 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6074 (mips_o64_push_dummy_call): Handle microMIPS code.
6075 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6076 (is_delayed): Remove function.
6077 (mips_single_step_through_delay): Replace the call to is_delayed
6078 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6079 Handle microMIPS code.
6080 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6082 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6084 (micromips_in_function_epilogue_p): New function.
6085 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6087 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6089 (gdb_print_insn_mips): Likewise.
6090 (mips_breakpoint_from_pc): Likewise.
6091 (mips_remote_breakpoint_from_pc): New function.
6092 (mips32_instruction_has_delay_slot): Simplify making use of the
6093 updated mips_fetch_instruction interface.
6094 (micromips_instruction_has_delay_slot): New function.
6095 (mips16_instruction_has_delay_slot): Simplify making use of the
6096 updated mips_fetch_instruction interface.
6097 (mips_adjust_breakpoint_address): Check for the standard MIPS
6098 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6099 calls. Handle microMIPS code.
6100 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6101 (mips_skip_trampoline_code): Handle microMIPS code.
6102 (global_mips_compression): New function.
6103 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6104 file flags. Register the microMIPS remote breakpoint handler
6105 and heuristic frame unwinder.
6106 (show_mips_compression): New function.
6107 (_initialize_mips_tdep): Add the "set mips compression" and
6108 "show mips compression" commands.
6115 * amd64-darwin-tdep.c:
6116 * arm-symbian-tdep.c:
6120 * bfin-linux-tdep.c:
6127 * dwarf2-frame-tailcall.c:
6156 * microblaze-tdep.c:
6157 * mips-linux-tdep.c:
6165 * python/py-finishbreakpoint.c:
6166 * python/py-inferior.c:
6167 * python/py-infthread.c:
6171 * remote-m32r-sdi.c:
6175 * rs6000-aix-tdep.c:
6201 * amd64-darwin-tdep.c:
6202 * arm-symbian-tdep.c:
6203 * arm-tdep.c: Delete unused variables.
6207 Rename $ddir to $datadir.
6208 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6209 * auto-load.c (auto_load_safe_path_vec_update)
6210 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6211 * configure: Regenerate.
6212 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6213 Likewise. Remove the 'use $ddir' help string.
6217 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6218 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6223 * valprint.h (struct value_print_options) <symbol_print>: New
6225 * valprint.c (user_print_options): Add default for symbol_print.
6226 (show_symbol_print): New function.
6227 (generic_val_print): Respect symbol_print.
6228 (_initialize_valprint): Add "print symbol" setting.
6229 * f-valprint.c (f_val_print): Respect symbol_print.
6230 * c-valprint.c (c_val_print): Respect symbol_print.
6232 * printcmd.c (print_address_symbolic): Return int. Ignore some
6234 (print_address_demangle): Return int.
6235 * defs.h: (print_address_symbolic): Return int.
6236 * value.h (print_address_demangle): Return int.
6240 * valprint.c (val_print_string): Don't print leading space.
6241 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6242 print space before string or vtbl.
6243 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6245 * jv-valprint.c (java_value_print): Print space before string.
6246 * go-valprint.c (print_go_string): Print space before string.
6247 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6248 space before string.
6249 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6250 space before string or vtbl.
6251 * auxv.c (fprint_target_auxv): Print space after address.
6255 * printcmd.c (print_address_demangle): Remove special case for 0.
6259 * printcmd.c (print_address_demangle): Add 'opts' argument.
6260 * p-valprint.c (pascal_val_print): Update.
6261 * jv-valprint.c (java_val_print): Update.
6263 * valprint.c (generic_val_print): Update.
6264 (print_function_pointer_address): Add 'options' argument. Remove
6265 'addressprint' argument. Update.
6266 * m2-valprint.c (print_unpacked_pointer): Update.
6267 * gnu-v3-abi.c (print_one_vtable): Update.
6268 (gnuv3_print_method_ptr): Update.
6269 * f-valprint.c (f_val_print): Update.
6270 * cp-valprint.c (cp_print_value_fields): Update.
6271 * valprint.h (print_function_pointer_address): Update.
6272 * c-valprint.c (c_val_print): Update.
6276 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6277 directly corresponding to the found psymtab.
6278 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6279 (dw2_find_pc_sect_symtab): Use it.
6280 * block.h (blockvector_contains_pc): Declare.
6281 * block.c (find_block_in_blockvector): New function.
6282 (blockvector_for_pc_sect): Use it.
6283 (blockvector_contains_pc): New function.
6287 * mips-tdep.h (mips_write_pc): New prototype.
6288 * mips-tdep.c (mips_write_pc): Make external, add description.
6289 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6294 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6296 (mips_unwind_pc, mips_write_pc): Likewise.
6297 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6302 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6303 proc_warn, proc_error, proc_get_status, proc_flags,
6304 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6305 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6306 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6307 proc_stop_process, proc_wait_for_stop, proc_run_process,
6308 proc_set_traced_signals, proc_set_traced_faults,
6309 proc_set_traced_sysentry, proc_set_traced_sysexit,
6310 proc_set_held_signals, proc_get_held_signals,
6311 proc_get_traced_signals, proc_get_traced_faults,
6312 proc_get_traced_sysentry, proc_get_traced_sysexit,
6313 proc_clear_current_fault, proc_set_current_signal,
6314 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6315 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6316 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6317 proc_get_current_thread, proc_get_current_thread,
6318 proc_get_current_thread, proc_update_threads,
6319 proc_update_threads, proc_update_threads, proc_update_threads,
6320 proc_iterate_over_threads, procfs_find_new_threads,
6321 procfs_pid_to_str): Make static. Remove advance declaration.
6322 (proc_cursig): Make static. Conditionalized defintion on
6323 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6324 (proc_syscall, proc_set_kill_on_last_close,
6325 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6326 proc_get_pending_signals, proc_get_signal_actions,
6327 proc_trace_signal, proc_ignore_signal): Delete.
6331 * coffread.c (cs_section_address): Passing proper argument for
6332 `bfd_get_section_vma'.
6333 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6334 `bfd_get_section_flags'.
6335 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6336 `bfd_get_section_vma'.
6341 * macrotab.h: (macro_define_special): Declare.
6342 (enum macro_special_kind): New.
6343 (struct macro_definition) <argc, replacement>: Update comments.
6344 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6345 (macro_define_object_internal): New function.
6346 (macro_define_object): Use it.
6347 (macro_define_special): New function.
6348 (fixup_definition): New function.
6349 (macro_lookup_definition, foreach_macro_in_scope)
6350 (foreach_macro): Use fixup_definition.
6351 * macroexp.h (macro_stringify): Declare.
6352 * macroexp.c (free_buffer_return_text): New function.
6353 (stringify): Constify "arg".
6354 (macro_stringify): New function.
6355 * dwarf2read.c (macro_start_file): Call macro_define_special.
6360 * breakpoint.h (bp_location): Add related_address member.
6361 * inferior.h (get_return_value): Take a pointer to struct value
6362 instead of struct type for the function requested.
6363 * value.h (using_struct_return): Likewise.
6364 * gdbarch.sh (return_value): Take a pointer to struct value
6365 instead of struct type for the function requested.
6366 * breakpoint.c (set_breakpoint_location_function): Initialize
6367 related_address for bp_gnu_ifunc_resolver breakpoints.
6368 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6369 requested function's address to gdbarch_return_value.
6370 * eval.c (evaluate_subexp_standard): Pass the requested
6371 function's address to using_struct_return.
6372 * infcall.c (call_function_by_hand): Pass the requested
6373 function's address to using_struct_return and
6374 gdbarch_return_value.
6375 * infcmd.c (get_return_value): Take a pointer to struct value
6376 instead of struct type for the function requested.
6377 (print_return_value): Update accordingly.
6378 (finish_command_continuation): Likewise.
6379 * stack.c (return_command): Pass the requested function's
6380 address to using_struct_return and gdbarch_return_value.
6381 * value.c (using_struct_return): Take a pointer to struct value
6382 instead of struct type for the function requested. Pass the
6383 requested function's address to gdbarch_return_value.
6384 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6385 New function_value member, replacing function_type.
6386 (bpfinishpy_dealloc): Update accordingly.
6387 (bpfinishpy_pre_stop_hook): Likewise.
6388 (bpfinishpy_init): Likewise. Record the requested function's
6390 * mips-tdep.c (mips_fval_reg): New enum.
6391 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6392 words put in GP registers.
6393 (mips_o64_push_dummy_call): Update a comment.
6394 (mips_o32_return_value): Take a pointer to struct value instead
6395 of struct type for the function requested and use it to check if
6396 using the MIPS16 calling convention. Return the designated
6397 general purpose registers for floating-point values returned in
6399 (mips_o64_return_value): Likewise.
6400 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6401 (ppc_sysv_abi_broken_return_value): Likewise.
6402 (ppc64_sysv_abi_return_value): Likewise.
6403 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6404 value instead of struct type for the function requested.
6405 * amd64-tdep.c (amd64_return_value): Likewise.
6406 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6407 * arm-tdep.c (arm_return_value): Likewise.
6408 * avr-tdep.c (avr_return_value): Likewise.
6409 * bfin-tdep.c (bfin_return_value): Likewise.
6410 * cris-tdep.c (cris_return_value): Likewise.
6411 * frv-tdep.c (frv_return_value): Likewise.
6412 * h8300-tdep.c (h8300_return_value): Likewise.
6413 (h8300h_return_value): Likewise.
6414 * hppa-tdep.c (hppa32_return_value): Likewise.
6415 (hppa64_return_value): Likewise.
6416 * i386-tdep.c (i386_return_value): Likewise.
6417 * ia64-tdep.c (ia64_return_value): Likewise.
6418 * iq2000-tdep.c (iq2000_return_value): Likewise.
6419 * lm32-tdep.c (lm32_return_value): Likewise.
6420 * m32c-tdep.c (m32c_return_value): Likewise.
6421 * m32r-tdep.c (m32r_return_value): Likewise.
6422 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6423 * m68k-tdep.c (m68k_return_value): Likewise.
6424 (m68k_svr4_return_value): Likewise.
6425 * m88k-tdep.c (m88k_return_value): Likewise.
6426 * mep-tdep.c (mep_return_value): Likewise.
6427 * microblaze-tdep.c (microblaze_return_value): Likewise.
6428 * mn10300-tdep.c (mn10300_return_value): Likewise.
6429 * moxie-tdep.c (moxie_return_value): Likewise.
6430 * mt-tdep.c (mt_return_value): Likewise.
6431 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6432 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6433 (ppc_sysv_abi_broken_return_value): Likewise.
6434 (ppc64_sysv_abi_return_value): Likewise.
6435 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6436 * rl78-tdep.c (rl78_return_value): Likewise.
6437 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6438 * rx-tdep.c (rx_return_value): Likewise.
6439 * s390-tdep.c (s390_return_value): Likewise.
6440 * score-tdep.c (score_return_value): Likewise.
6441 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6442 (sh_return_value_fpu): Likewise.
6443 * sh64-tdep.c (sh64_return_value): Likewise.
6444 * sparc-tdep.c (sparc32_return_value): Likewise.
6445 * sparc64-tdep.c (sparc64_return_value): Likewise.
6446 * spu-tdep.c (spu_return_value): Likewise.
6447 * tic6x-tdep.c (tic6x_return_value): Likewise.
6448 * v850-tdep.c (v850_return_value): Likewise.
6449 * vax-tdep.c (vax_return_value): Likewise.
6450 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6451 * xtensa-tdep.c (xtensa_return_value): Likewise.
6452 * gdbarch.c: Regenerate.
6453 * gdbarch.h: Regenerate.
6457 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6461 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6462 of command in two error message.
6466 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6470 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6474 * NEWS (show auto-load scripts-directory): Add forgotten command.
6478 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6483 * amd64-tdep.c: Include features/i386/x32.c and
6484 features/i386/x32-avx.c.
6485 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6486 initialize_tdesc_x32_avx.
6491 * breakpoint.h (enum bptype): New type bp_dprintf.
6492 (struct breakpoint): New field extra_string.
6493 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6494 (create_breakpoint): Add extra_string arg.
6495 * breakpoint.c (dprintf_breakpoint_ops): New.
6496 (is_breakpoint): Add bp_dprintf.
6497 (bpstat_what): Add dprintf case.
6498 (bptype_string): Ditto.
6499 (print_one_breakpoint_location): Ditto.
6500 (init_bp_location): Ditto.
6501 (bkpt_print_mention): Ditto.
6502 (dprintf_style_enums): New array.
6503 (dprintf_style): New global.
6504 (dprintf_function): New global.
6505 (dprintf_channel): New global.
6506 (update_dprintf_command_list): New function.
6507 (update_dprintf_commands): New function.
6508 (init_breakpoint_sal): Add extra_string argument, handle it.
6509 (create_breakpoint_sal): Add extra_string argument.
6510 (create_breakpoints_sal): Add extra_string argument, update callers.
6511 (find_condition_and_thread): Add extra argument.
6512 (create_breakpoint): Add extra_string argument, record it.
6513 (dprintf_command): New function.
6514 (break_command_1): Add arg to create_breakpoint call.
6515 (handle_gnu_v3_exceptions): Ditto.
6516 (trace_command): Ditto.
6517 (ftrace_command): Ditto.
6518 (strace_command): Ditto.
6519 (bkpt_print_mention): Add dprintf case.
6520 (create_breakpoint_sal_default): Add extra_string argument.
6521 (_initialize_breakpoint): Add new commands.
6522 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6523 * python/py-breakpoint.c (bppy_init): Ditto.
6524 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6528 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6532 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6537 Add a new function gdb.find_pc_line to the Python API.
6538 * NEWS (Python Scripting): Add entry about the new function.
6539 * python/python.c (gdbpy_find_pc_line): New function which
6540 implements gdb.find_pc_line.
6541 (GdbMethods): Add entry for the new function.
6545 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6546 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6550 * inferior.c: Include completer.h
6551 (initialize_inferiors): Set completer of add-inferior to
6556 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6557 gdbarch_ptr_bit for x32 core dump.
6561 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6562 and features/i386/x32-avx-linux.c.
6567 * NEWS: Describe new info os commands.
6568 * common/linux-osdata.c (PID_T, TIME_T): Define.
6569 (MAX_PID_T_STRLEN): New.
6570 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6572 (command_from_pid): Add comment. Change to use PID_T.
6573 (commandline_from_pid): Change to use PID_T.
6574 (user_from_pid): Add comment.
6575 (get_process_owner): Add comment. Change to use PID_T and
6577 (get_number_of_cpu_cores): Add comment.
6578 (get_cores_used_by_process): Add comment. Change to use PID_T and
6580 (linux_xfer_osdata_processes): Change to use PID_T and
6582 (compare_processes): New function.
6583 (linux_xfer_osdata_processgroups): New function.
6584 (linux_xfer_osdata_threads): Change to use PID_T.
6585 (linux_xfer_osdata_fds): New function.
6586 (format_socket_state, print_sockets): New functions.
6587 (union socket_addr): New union.
6588 (linux_xfer_osdata_isockets): New function.
6589 (time_from_time_t, group_from_gid): New functions.
6590 (linux_xfer_osdata_shm): New function.
6591 (linux_xfer_osdata_sem): New function.
6592 (linux_xfer_osdata_msg): New function.
6593 (linux_xfer_osdata_modules): New function.
6594 (osdata_table): Add new entries.
6595 * common/buffer.c (buffer_xml_printf): Add support for long and
6596 long long format specifiers.
6600 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6601 (tdesc_x32_avx_linux): Likewise.
6605 Implement multi-component --with-auto-load-dir.
6606 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6608 (--with-auto-load-safe-path): Update the default value description.
6609 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6611 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6612 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6613 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6614 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6615 "set auto-load scripts-directory".
6616 * config.in: Regenerate.
6617 * configure: Regenerate.
6618 * configure.ac (--with-auto-load-dir): New configure option.
6619 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6623 Provide $ddir substitution for --with-auto-load-safe-path.
6624 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6626 * auto-load.c: Include observer.h.
6627 (auto_load_safe_path_vec_update): Call substitute_path_component for
6628 each component. New variable ddir_subst.
6629 (auto_load_gdb_datadir_changed): New function.
6630 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6631 AUTO_LOAD_SAFE_PATH. New comment.
6632 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6633 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6634 * config.in: Regenerate.
6635 * configure: Regenerate.
6636 * configure.ac (--auto-load-safe-path): Rename
6637 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6638 GDB_DATADIR/auto-load.
6639 * defs.h (substitute_path_component): New declaration.
6640 * top.c: Include observer.h.
6641 (set_gdb_datadir): New function.
6642 (init_main): Install it for "set data-directory".
6643 * utils.c (substitute_path_component): New function.
6647 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6648 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6649 DEBUG_FILE_DIRECTORY. Handle multiple components of
6650 DEBUG_FILE_DIRECTORY.
6654 * dwarf2read.c (recursively_write_psymbols): New function.
6655 (write_psymtabs_to_index): Use it.
6657 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6659 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6660 (load_partial_comp_unit): Update.
6661 (queue_comp_unit): Add argument 'pretend_language'.
6662 (process_queue): Update.
6663 (psymtab_to_symtab_1): Skip dependencies that have a user.
6664 (load_partial_comp_unit_reader): Give meaning to the 'data'
6666 (load_full_comp_unit): Add 'pretend_language' argument.
6667 (process_full_comp_unit): Add 'pretend_language' argument. Set
6669 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6671 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6672 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6674 (prepare_one_comp_unit): Add 'pretend_language' argument.
6676 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6677 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6678 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6679 (dw2_do_instantiate_symtab): Check whether symtab was read in
6681 (dw2_instantiate_symtab): Add assertion. Call
6682 process_cu_includes.
6683 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6684 (partial_symtab_p): New typedef.
6685 (set_partial_user): New function.
6686 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6687 (scan_partial_symbols): Add imported CU to imported_symtabs.
6688 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6689 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6690 (get_symtab, recursively_compute_inclusions)
6691 (compute_symtab_includes, process_cu_includes)
6692 (process_imported_unit_die): New functions.
6693 (process_die) <DW_TAG_imported_unit>: New case.
6694 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6696 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6698 (struct partial_die_info) <locdesc>: Remove.
6700 (process_psymtab_comp_unit): Add 'read_partial' argument.
6702 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6703 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6704 (add_partial_symbol): Update.
6705 (process_die): Handle DW_TAG_partial_unit.
6706 (read_file_scope): Update comment.
6707 (load_partial_dies): Handle DW_TAG_imported_unit.
6708 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6709 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6713 * cc-with-dwz.sh: New file.
6717 * symtab.h (struct symtab) <includes, user>: New fields.
6718 * block.h (struct block_iterator) <d, idx, which>: New fields.
6719 * block.c (initialize_block_iterator, find_iterator_symtab)
6720 (block_iterator_step, block_iter_name_step)
6721 (block_iter_match_step): New functions.
6722 (block_iterator_first, block_iterator_next)
6723 (block_iter_name_first, block_iter_name_next)
6724 (block_iter_match_first, block_iter_match_next): Rewrite.
6725 (get_block_symtab): New function.
6729 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6731 * jit.c (finalize_symtab): Use allocate_global_block,
6733 * buildsym.c (finish_block_internal): New function, from old
6735 (finish_block): Rewrite.
6736 (end_symtab): Use finish_block_internal, set_block_symtab.
6737 * block.h (struct global_block): New.
6738 (allocate_global_block, set_block_symtab): Declare.
6739 * block.c (allocate_global_block, set_block_symtab): New
6744 * psymtab.c (partial_map_expand_apply): Add assertion.
6745 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6746 (psymtab_to_symtab): Find unshared psymtab.
6747 (dump_psymtab): Print including psymtabs.
6748 (recursively_search_psymtabs): New function.
6749 (expand_symtabs_matching_via_partial): Use it.
6750 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6752 (enum psymtab_search_status): New.
6756 * tracepoint.c (scope_info): Update.
6757 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6758 (find_pc_sect_symtab, search_symbols)
6759 (default_make_symbol_completion_list_break_on)
6760 (make_file_symbol_completion_list): Update.
6761 * symmisc.c (dump_symtab_1): Update.
6762 * stack.c (print_frame_args, iterate_over_block_locals)
6763 (print_frame_labels, iterate_over_block_arg_vars): Update.
6764 * python/py-block.c (block_object) <dict>: Remove.
6766 <iter>: Change type.
6767 (blpy_iter): Update.
6768 (blpy_block_syms_iternext): Update.
6769 * psymtab.c (map_block): Use block iterators.
6770 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6771 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6772 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6773 * infrun.c (check_exception_resume): Update.
6774 * cp-support.c (make_symbol_overload_list_block): Update.
6775 * coffread.c (patch_opaque_types): Update.
6776 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6777 * block.h (struct block_iterator): New.
6778 (block_iterator_first, block_iterator_next, block_iter_name_first)
6779 (block_iter_name_next, block_iter_match_first)
6780 (block_iter_match_next): Declare.
6781 (ALL_BLOCK_SYMBOLS): Redefine.
6782 * block.c (block_iterator_first, block_iterator_next)
6783 (block_iter_name_first, block_iter_name_next)
6784 (block_iter_match_first, block_iter_match_next): New functions.
6785 * ada-lang.c (ada_add_block_symbols)
6786 (ada_make_symbol_completion_list): Use block iterator.
6790 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6791 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6792 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6793 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6794 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6799 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6800 print-file-var-lib2.c, print-file-var-main.c and
6801 print-file-var.exp (located in gdb/testsuite/gdb.base).
6805 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6806 try locating the symbol in the symbol's own objfile first, before
6807 extending the search to all objfiles.
6808 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6809 out of lookup_symbol_aux_symtabs.
6810 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6811 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6812 Do not search EXCLUDE_OBJFILE.
6813 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6814 (lookup_symbol_global): Search for matches in the block's objfile
6815 first, before searching all other objfiles.
6819 * printcmd.c (set_command): Add pre/post inc/dec.
6823 * gdb.1: Document -ex option.
6827 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6828 * inferior.h (AT_SYMBOL): Delete.
6832 * mips-tdep.c (mips_push_dummy_code): New function.
6833 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6834 ON_STACK and install mips_push_dummy_code as our gdbarch
6835 push_dummy_code routine.
6839 * target.c (set_maintenance_target_async_permitted): Rename to ...
6840 (set_target_async_command): ... this.
6841 (show_maintenance_target_async_permitted): Rename to ...
6842 (show_target_async_command): ... this.
6843 (initialize_targets): Adjust.
6847 * go-exp.y (classify_name): Add missing assignment of fields of
6852 Display the ">" prompt in interactive mode while reading canned
6853 commands, even when the current interpreter is MI.
6855 * interps.c (interp_set_temp): New function.
6857 * interps.h (interp_set_temp): Add prototype.
6859 * cli/cli-script.c (restore_interp): New cleanup function.
6860 (read_command_lines): Temporarily override the current interpreter
6861 with CLI and arrange for restoring the original one.
6865 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6869 * probe.c (parse_probes): Move conditional to check for
6870 debuginfo files from here...
6871 * stap-probe.c (stap_get_probes): ... to here.
6876 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6877 `movl %esp, %ebp' for the X32 ABI.
6881 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6883 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6884 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6885 (dwarf_stack_op_name): Remove.
6886 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6887 (decode_locdesc): Use get_DW_OP_name.
6888 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6889 (dwarf2_compile_expr_to_ax): Likewise.
6890 (disassemble_dwarf_expression): Likewise.
6891 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6895 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6896 (sh_linux_sigtramp_cache): New function.
6897 (sh_linux_sigreturn_init): New function.
6898 (sh_linux_rt_sigreturn_init): New function.
6899 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6901 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6903 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6904 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6905 (sh_linux_init_abi): Add init calls to register new tramp_frame
6906 definitions under 32-bit SH, update comments.
6912 * amd64-linux-tdep.c: Include glibc-tdep.h.
6913 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6914 gdbarch_skip_solib_resolver callback.
6918 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6919 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6920 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6921 (add_auto_load_safe_path): Change the error message.
6922 (_initialize_auto_load): Change the "safe-path" help text.
6923 * configure: Regenerate
6924 * configure.ac (--without-auto-load-safe-path): Set
6925 WITH_AUTO_LOAD_SAFE_PATH to /.
6929 * stap-probe.h: Do not include unecessary `probe.h'.
6933 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6934 bfd_und_section_ptr.
6935 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6936 and bfd_com_section_ptr.
6940 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6944 * windows-nat.h (segment_register_p_ftype): New typedef.
6945 (windows_set_segment_register_p): Add declaration.
6946 * windows-nat.c (segment_register_p): New static global.
6947 (windows_set_segment_register_p): New function.
6948 (do_windows_fetch_inferior_registers): Add special handling
6949 for segment registers.
6950 * amd64-windows-nat.c: #include "amd64-tdep.h".
6951 (amd64_windows_segment_register_p): New function.
6952 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6953 * i386-windows-nat.c: #include "i386-tdep.h".
6954 (i386_windows_segment_register_p): New function.
6955 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6959 * printcmd.c (set_command): Emit a warning if the expression is not
6964 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6969 * stap-probe.c (stap_is_operator): Change declaration.
6970 (stap_get_opcode): Change return value.
6971 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6972 `stap_parse_argument_1'.
6976 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6981 Add two new methods global_block and static_block to gdb.Symtab
6983 * NEWS (Python scripting): Add entry about the new methods.
6984 * python/py-symtab.c (stpy_global_block): New function which
6985 implements the gdb.Symtab.global_block() method.
6986 (stpy_static_block): New function which implements the
6987 gdb.Symtab.static_block() method.
6988 (symtab_object_methods): Add entries for the two new methods.
6992 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6997 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6999 (i386_process_record): Ditto.
7003 * infcall.c (unwind_on_signal_p): Make static.
7007 * sol-thread.c (solaris_pid_to_str): Make static.
7008 (_initialize_sol_thread): Add prototype.
7012 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7016 * MAINTAINERS: Remove myself.
7020 Fix --without-auto-load-safe-path for MS-Windows host platform.
7021 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7025 * gdb_curses.h: Undefine KEY_EVENT before including curses
7026 headers. Move "#undef MOUSE_MOVED" before any curses header
7031 * features/i386/i386-mmx-linux.c: Regenerate.
7032 * features/rs6000/powerpc-32.c: Likewise.
7033 * features/rs6000/powerpc-32l.c: Likewise.
7034 * features/rs6000/powerpc-403.c: Likewise.
7035 * features/rs6000/powerpc-403gc.c: Likewise.
7036 * features/rs6000/powerpc-405.c: Likewise.
7037 * features/rs6000/powerpc-505.c: Likewise.
7038 * features/rs6000/powerpc-601.c: Likewise.
7039 * features/rs6000/powerpc-602.c: Likewise.
7040 * features/rs6000/powerpc-603.c: Likewise.
7041 * features/rs6000/powerpc-604.c: Likewise.
7042 * features/rs6000/powerpc-64.c: Likewise.
7043 * features/rs6000/powerpc-64l.c: Likewise.
7044 * features/rs6000/powerpc-750.c: Likewise.
7045 * features/rs6000/powerpc-860.c: Likewise.
7046 * features/rs6000/powerpc-e500.c: Likewise.
7047 * features/rs6000/powerpc-e500l.c: Likewise.
7048 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7049 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7050 * features/rs6000/rs6000.c: Likewise.
7054 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7056 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7057 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7058 (stap_parse_argument) <e>: Likewise.
7059 (handle_stap_probe) <byte_order>: Likewise.
7063 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7064 init_and_read_dies_worker. All callers updated.
7065 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7066 replaced with init_cutu_and_read_dies.
7067 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7068 (find_partial_die): Remove FIXME. Don't free current CU.
7072 * contrib: New directory.
7073 * contrib/test_pubnames_and_indexes.py: New file.
7077 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7078 All callers updated.
7079 (init_cu_die_reader): Verify the section is non-empty.
7080 (dwarf_decode_line_header): Don't dereference section->asection
7081 until we know the section is present.
7085 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7090 * gdb-code-style.el: New hook gdb-markup-hook
7091 and gdb-comment-hook.
7095 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7096 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7098 * symfile.h (dwarf2_debug_sections): New member addr.
7099 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7100 (ctx_no_get_addr_index): New function.
7101 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7102 (ctx_no_get_addr_index): Declare.
7103 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7104 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7105 (dwarf_expr_ctx_funcs): Update.
7106 (needs_get_addr_index): New function.
7107 (needs_frame_ctx_funcs): Update.
7108 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7109 * dwarf2read.c: #include "gdbcore.h".
7110 (dwarf2_per_objfile): New members addr, dwo_files.
7111 (dwarf2_elf_names): Add entry for addr.
7112 (struct dwo_section_names): New type.
7113 (dwo_section_names): New static global.
7114 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7115 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7116 old debug_types_section member updated to use this.
7117 Rename member debug_types_section to info_or_types_section,
7119 (signatured_type): Rename member type_offset to type_offset_in_tu,
7120 all uses updated. New member type_offset_in_section.
7121 (struct dwo_sections): New type.
7122 (struct dwo_unit): New type.
7123 (struct dwo_file): New type.
7124 (die_reader_specs): New member dwo_file.
7125 (dwarf2_locate_sections): Watch for .debug_addr.
7126 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7127 (dwarf2_read_section): Get bfd of section from bfd's asection,
7129 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7130 (create_signatured_type_table_from_index): Initialize
7131 sig_type->info_or_types_section.
7132 (dw2_get_file_names): Statement lists for type units with DWO files
7133 live in the DWO file.
7134 (create_debug_types_hash_table): New function.
7135 (create_all_type_units): Rewrite.
7136 (init_cu_die_reader): New arg dwo_file, all callers updated.
7137 (init_and_read_dies_worker): Get section from
7138 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7139 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7140 continue reading the CU/TU from there.
7141 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7142 updated. Get section from this_cu->info_or_types_section.
7143 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7144 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7145 DW_FORM_GNU_str_index.
7146 (hash_dwo_file, eq_dwo_file): New functions.
7147 (allocate_dwo_file_hash_table): New function.
7148 (hash_dwo_unit, eq_dwo_unit): New functions.
7149 (allocate_dwo_unit_table): New function.
7150 (dwarf2_locate_dwo_sections): New function.
7151 (struct create_dwo_info_table_data): New type.
7152 (create_debug_info_hash_table_reader): New function.
7153 (create_debug_info_hash_table): New function.
7154 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7155 (lookup_dwo_file): New function.
7156 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7157 (free_dwo_file, free_dwo_file_cleanup): New functions.
7158 (free_dwo_file_from_slot, free_dwo_files): New functions.
7159 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7160 (dwarf2_record_block_ranges): Ditto.
7161 (read_partial_die): Ditto.
7162 (process_enumeration_scope): Update to use type_offset_in_section.
7163 (read_full_die_1): New function.
7164 (read_full_die): Rewrite.
7165 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7166 DW_FORM_GNU_str_index.
7167 (read_addr_index_1, read_addr_index): New functions.
7168 (read_addr_index_from_leb128): New function.
7169 (struct dwarf2_read_addr_index_data): New type.
7170 (dwarf2_read_addr_index_reader): New function.
7171 (dwarf2_read_addr_index): New function.
7172 (read_str_index): New function.
7173 (leb128_size): New function.
7174 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7175 If processing a type unit from a DWO file, get the line section
7177 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7178 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7179 DW_FORM_GNU_str_index.
7180 (lookup_die_type): Check whether section offset of type's die is
7181 known before looking it up. Remove assert. Condition can
7182 legimately happen for inter-cu type references.
7183 (dwarf_attr_name): Handle Fission attributes.
7184 (dwarf_form_name): Handle Fission forms.
7185 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7186 DW_FORM_GNU_str_index.
7187 (follow_die_sig): Update to use type_offset_in_section.
7188 (decode_locdesc): New case DW_OP_GNU_addr_index.
7189 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7190 DW_FORM_GNU_str_index.
7191 (cu_debug_loc_section): New function.
7192 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7193 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7194 Free DWO files if present.
7195 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7197 Refactor DIE reading.
7198 * dwarf2read.c (dwarf2_per_objfile): Replace members
7199 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7200 (die_reader_specs): New member "die_section". Temporarily make
7201 member "buffer" non-const, pending constifying all info_ptr uses.
7202 (die_reader_func_ftype): New typedef.
7203 (dw2_get_file_names_reader): New function.
7204 (dw2_get_file_names): Rewrite.
7205 (read_and_check_type_unit_head): Rename arg type_offset to
7207 (create_all_type_units): Improve debugging message.
7208 Improve dummy type unit check.
7209 (init_cu_die_reader): New arg "section". All callers updated.
7210 (init_and_read_dies_worker): New function.
7211 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7212 (init_cutu_and_read_dies_no_follow): New function.
7213 (init_cutu_and_read_dies_simple): New function.
7214 (process_psymtab_comp_unit_reader): New function.
7215 (process_psymtab_comp_unit): Delete args section,
7216 is_debug_types_section. Rewrite. All callers updated.
7217 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7218 All callers updated. Rewrite.
7219 (load_partial_comp_unit_reader): New function.
7220 (load_partial_comp_unit): Rewrite.
7221 (skip_children): New arg reader. Delete args buffer, cu.
7222 All callers updated.
7223 (skip_one_die): New arg reader. Delete args buffer, cu.
7224 All callers updated.
7225 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7226 All callers updated.
7227 (load_full_comp_unit_reader): New function.
7228 (load_full_comp_unit): Rewrite.
7229 (read_comp_unit): Delete.
7230 (read_die_and_children_1): Delete, contents moved ...
7231 (read_die_and_children): ... here.
7232 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7233 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7234 All callers updated.
7235 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7236 All callers updated.
7237 (find_partial_die): Rewrite load_all_dies support.
7238 (read_attribute_value): New arg reader. Delete args abfd, cu.
7239 All callers updated.
7240 (read_attribute): New arg reader. Delete args abfd, cu.
7241 All callers updated.
7242 (load_full_type_unit): Add assert.
7243 (read_signatured_type_reader): New function.
7244 (read_signatured_type): Rewrite.
7245 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7246 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7247 All callers updated. Set per_cu->cu = NULL after freeing it.
7248 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7249 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7250 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7251 (set_die_type): Update.
7252 (get_die_type_at_offset): Update.
7253 (read_file_scope): Call prepare_one_comp_unit.
7254 (read_type_unit_scope): Ditto.
7255 (prepare_one_comp_unit): Set producer if present.
7259 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7260 gettext function on `error'.
7264 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7270 * breakpoint.c (struct breakpoint_objfile_data)
7271 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7272 <exception_probes>: New fields.
7273 (free_breakpoint_probes): New function.
7274 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7275 `_Unwind_DebugHook'.
7276 (create_exception_master_breakpoint): Likewise.
7277 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7278 * infrun.c: Including necessary header files for handling SystemTap
7280 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7281 via SystemTap probes.
7282 (check_exception_resume): Remove `func' argument. Handle exception
7283 unwinding breakpoint set via a SystemTap probe.
7284 (insert_exception_resume_from_probe): New function.
7290 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7291 (COMMON_OBS): Likewise.
7292 (HFILES_NO_SRCDIR): Add `probe'.
7293 * NEWS: Mention support for static and SystemTap probes.
7294 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7295 SystemTap probes' arguments parser.
7296 * arm-linux-tdep.c: Including headers needed to perform the parsing
7297 of SystemTap probes' arguments.
7298 (arm_stap_is_single_operand): New function.
7299 (arm_stap_parse_special_token): Likewise.
7300 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7301 probes' arguments parser.
7302 * ax-gdb.c (require_rvalue): Removing static declaration.
7303 (gen_expr): Likewise.
7304 * ax-gdb.h (gen_expr): Declaring function.
7305 (require_rvalue): Likewise.
7306 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7307 (bkpt_probe_breakpoint_ops): New variable.
7308 (momentary_breakpoint_from_master): Set the `probe' value.
7309 (add_location_to_breakpoint): Likewise.
7310 (break_command_1): Using proper breakpoint_ops according to the
7311 argument passed by the user in the command line.
7312 (bkpt_probe_insert_location): New function.
7313 (bkpt_probe_remove_location): Likewise.
7314 (bkpt_probe_create_sals_from_address): Likewise.
7315 (bkpt_probe_decode_linespec): Likewise.
7316 (tracepoint_probe_create_sals_from_address): Likewise.
7317 (tracepoint_probe_decode_linespec): Likewise.
7318 (tracepoint_probe_breakpoint_ops): New variable.
7319 (trace_command): Using proper breakpoint_ops according to the
7320 argument passed by the user in the command line.
7321 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7322 static probes on breakpoints and tracepoints.
7323 * breakpoint.h (struct bp_location) <probe>: New field.
7324 * cli-utils.c (skip_spaces_const): New function.
7325 (extract_arg): Likewise.
7326 * cli-utils.h (skip_spaces_const): Likewise.
7327 (extract_arg): Likewise.
7328 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7329 * configure.ac: Append `stap-probe.o' to be generated when ELF
7331 * configure: Regenerate.
7332 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7333 * elfread.c: Include `probe.h' and `arch-utils.h'.
7334 (probe_key): New variable.
7335 (elf_get_probes): New function.
7336 (elf_get_probe_argument_count): Likewise.
7337 (elf_evaluate_probe_argument): Likewise.
7338 (elf_compile_to_ax): Likewise.
7339 (elf_symfile_relocate_probe): Likewise.
7340 (stap_probe_key_free): Likewise.
7341 (elf_probe_fns): New variable.
7342 (elf_sym_fns): Add `sym_probe_fns' value.
7343 (elf_sym_fns_lazy_psyms): Likewise.
7344 (elf_sym_fns_gdb_index): Likewise.
7345 (_initialize_elfread): Initialize objfile cache for static
7347 * gdb_vecs.h (struct probe): New forward declaration.
7348 (probe_p): New VEC declaration.
7349 * gdbarch.c: Regenerate.
7350 * gdbarch.h: Regenerate.
7351 * gdbarch.sh (stap_integer_prefix): New variable.
7352 (stap_integer_suffix): Likewise.
7353 (stap_register_prefix): Likewise.
7354 (stap_register_suffix): Likewise.
7355 (stap_register_indirection_prefix): Likewise.
7356 (stap_register_indirection_suffix): Likewise.
7357 (stap_gdb_register_prefix): Likewise.
7358 (stap_gdb_register_suffix): Likewise.
7359 (stap_is_single_operand): New function.
7360 (stap_parse_special_token): Likewise.
7361 (struct stap_parse_info): Forward declaration.
7362 * i386-tdep.c: Including headers needed to perform the parsing
7363 of SystemTap probes' arguments.
7364 (i386_stap_is_single_operand): New function.
7365 (i386_stap_parse_special_token): Likewise.
7366 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7367 probes' arguments parser.
7368 * i386-tdep.h (i386_stap_is_single_operand): New function.
7369 (i386_stap_parse_special_token): Likewise.
7370 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7371 * mipsread.c (ecoff_sym_fns): Likewise.
7372 * objfiles.c (objfile_relocate1): Support relocation for static
7374 * parse.c (prefixify_expression): Remove static declaration.
7375 (initialize_expout): Likewise.
7376 (reallocate_expout): Likewise.
7377 * parser-defs.h (initialize_expout): Declare function.
7378 (reallocate_expout): Likewise.
7379 (prefixify_expression): Likewise.
7380 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7381 of SystemTap probes' arguments.
7382 (ppc_stap_is_single_operand): New function.
7383 (ppc_stap_parse_special_token): Likewise.
7384 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7385 probes' arguments parser.
7386 * probe.c: New file, for generic statically defined probe support.
7387 * probe.h: Likewise.
7388 * s390-tdep.c: Including headers needed to perform the parsing of
7389 SystemTap probes' arguments.
7390 (s390_stap_is_single_operand): New function.
7391 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7392 probes' arguments parser.
7393 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7394 * stap-probe.c: New file, for SystemTap probe support.
7395 * stap-probe.h: Likewise.
7396 * symfile.h: Include `gdb_vecs.h'.
7397 (struct sym_probe_fns): New struct.
7398 (struct sym_fns) <sym_probe_fns>: New field.
7399 * symtab.c (init_sal): Initialize `probe' field.
7400 * symtab.h (struct probe): Forward declaration.
7401 (struct symtab_and_line) <probe>: New field.
7402 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7404 (stop_tracing): Likewise.
7405 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7410 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7411 and to compile agent expressions.
7412 * infrun.c (siginfo_make_value): New argument `ignore'.
7413 (siginfo_funcs): New struct.
7414 (_initialize_infrun): New argument when calling
7415 `create_internalvar_type_lazy'.
7416 * thread.c (thread_id_make_value): New argument `ignore'.
7417 (thread_funcs): New struct.
7418 (_initialize_thread): New argument when calling
7419 `create_internalvar_type_lazy'.
7420 * tracepoint.c (sdata_make_value): New argument `ignore'.
7421 (sdata_funcs): New struct.
7422 (_initialize_tracepoint): New argument when calling
7423 `create_internalvar_type_lazy'.
7424 * value.c (make_value): New struct.
7425 (create_internalvar_type_lazy): New argument `data'.
7426 (compile_internalvar_to_ax): New function.
7427 (value_of_internalvar): Properly handling `make_value' case.
7428 (clear_internalvar): Likewise.
7429 (show_convenience): Adding `TRY_CATCH' block.
7430 * value.h (internalvar_make_value): Delete, replace by...
7431 (struct internalvar_funcs): ... this.
7432 (create_internalvar_type_lazy) <fun>: Delete argument.
7433 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7434 (compile_internalvar_to_ax): New function.
7435 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7436 (tlb_funcs): New struct.
7437 (_initialize_windows_tdep): New argument when calling
7438 `create_internalvar_type_lazy'.
7442 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7443 see whether it is an address or a constant offset from DW_AT_low_pc.
7444 (dwarf2_record_block_ranges): Likewise.
7445 (read_partial_die): Likewise.
7449 * MAINTAINERS (Write After Approval): Add myself to the list.
7453 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7454 (proc_prettyprint_signal): Likewise.
7455 (proc_prettyprint_faultset): Likewise.
7456 (proc_prettyprint_fault): Likewise.
7457 (proc_prettyprint_actionset): Likewise.
7458 (proc_prettyprint_flags): Move to new proc-flags.c section.
7459 (proc_prettyfprint_flags): New prototype.
7460 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7461 (proc_syscall, proc_cursig): Likewise.
7462 (proc_set_kill_on_last_close): Likewise.
7463 (proc_unset_kill_on_last_close): Likewise.
7464 (proc_set_watchpoint): Make static.
7465 (proc_delete_dead_threads): Likewise.
7466 (procfs_set_watchpoint): Likewise.
7467 (_initialize_procfs): Add prototype.
7468 * proc-events.c: Include proc-utils.h.
7469 (init_syscall_table): Make static.
7470 * proc-api.c (_initialize_proc_api): Add prototype.
7471 * proc-flags.c: Include proc-utils.h.
7475 * configure.ac: Add AC_ARG_PROGRAM.
7476 * configure: Regenerate.
7480 Fix DW_AT_lower_bound defaults for DWARF-4+.
7481 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7482 high. New variable low_default_is_valid. Implement DWARF-4+
7483 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7484 no default by the DWARF standard.
7489 * infrun.c (handle_inferior_event): Move the check for return
7490 trampolines ahead of the check for function trampolines.
7491 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7492 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7493 (mips_str_mips16_ret_stub): Likewise.
7494 (mips_str_call_fp_stub): Likewise.
7495 (mips_str_call_stub): Likewise.
7496 (mips_str_fn_stub): Likewise.
7497 (mips_str_pic): Likewise.
7498 (mips_in_frame_stub): New function.
7499 (mips_unwind_pc): Return the return address rather than the PC
7500 if the PC of an intermediate frame is inside a call thunk.
7501 (mips_is_stub_suffix): New function.
7502 (mips_is_stub_mode): Likewise.
7503 (mips_get_mips16_fn_stub_pc): Likewise.
7504 (mips_skip_mips16_trampoline_code): Update to handle all the
7505 currently generated stub types. Don't recurse into __fn_stub
7506 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7507 Use cooked register accesses.
7508 (mips_in_return_stub): Reintroduce function.
7509 (mips_skip_trampoline_code): Traverse trampolines recursively.
7510 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7518 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7519 * features/arm-with-m-vfp-d16.xml: New file. Describes
7520 Cortex-M with VFPv4-sp-d16 FPU register layout.
7521 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7522 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7523 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7524 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7525 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7529 * cli/cli-decode.c (print_doc_line): Use stream instead of
7534 * features/arm-with-iwmmxt.c: Regenerate.
7535 * features/arm-with-m-fpa-layout.c: Likewise.
7536 * features/arm-with-m.c: Likewise.
7537 * features/arm-with-neon.c: Likewise.
7538 * features/arm-with-vfpv2.c: Likewise.
7539 * features/arm-with-vfpv3.c: Likewise.
7540 * features/mips-dsp-linux.c: Likewise.
7541 * features/mips-linux.c: Likewise.
7542 * features/mips64-dsp-linux.c: Likewise.
7543 * features/mips64-linux.c: Likewise.
7544 * features/s390-linux32.c: Likewise.
7545 * features/s390-linux32v1.c: Likewise.
7546 * features/s390-linux32v2.c: Likewise.
7547 * features/s390-linux64.c: Likewise.
7548 * features/s390-linux64v1.c: Likewise.
7549 * features/s390-linux64v2.c: Likewise.
7550 * features/s390x-linux64.c: Likewise.
7551 * features/s390x-linux64v1.c: Likewise.
7552 * features/s390x-linux64v2.c: Likewise.
7553 * features/tic6x-c62x-linux.c: Likewise.
7554 * features/tic6x-c62x.c: Likewise.
7555 * features/tic6x-c64x-linux.c: Likewise.
7556 * features/tic6x-c64x.c: Likewise.
7557 * features/tic6x-c64xp-linux.c: Likewise.
7558 * features/tic6x-c64xp.c: Likewise.
7559 * target-descriptions.c: Only generate `field_type' and `type'
7560 variables when needed.
7564 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7568 Initial pass at Go language support.
7570 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7572 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7573 (YYFILES): Add go-exp.c.
7574 (YYOBJ): Add go-exp.o.
7575 (local-maintainer-clean): Delete go-exp.c.
7576 * defs.h (enum language): Add language_go.
7577 * dwarf2read.c: #include "go-lang.h".
7578 (fixup_go_packaging): New function.
7579 (process_full_comp_unit): Call it when processing Go CUs.
7580 (dwarf2_physname): Add Go support.
7581 (read_file_scope): Handle missing language spec for GNU Go.
7582 (set_cu_language): Handle DW_LANG_Go.
7583 * go-exp.y: New file.
7584 * go-lang.h: New file.
7585 * go-lang.c: New file.
7586 * go-typeprint.c: New file.
7587 * go-valprint.c: New file.
7588 * symtab.c: #include "go-lang.h".
7589 (symbol_set_language): Handle language_go.
7590 (symbol_find_demangled_name, symbol_set_names): Ditto.
7591 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7595 avoid a few strncpy-induced buffer overruns
7596 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7597 fname and psargs before trying to concatenate.
7598 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7599 "name" before applying strchr.
7603 * CONTRIBUTE: Use unified diff instead of context diff when
7608 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7609 code. Handle JR.HB correctly.
7614 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7615 with the other MIPS16 helpers.
7619 * observer.sh: Conditionally declare `args', thus cleaning up
7620 unused instances of this variable.
7624 Revert this patch to allow breakpoint always-inserted
7627 * breakpoint.c: Include record.h.
7628 (breakpoints_always_inserted_mode): Return false when the record
7631 * breakpoint.c (iterate_over_bp_locations): New.
7632 * breakpoint.h: Declare.
7633 New typedef walk_bp_location_callback.
7634 * record.c (record_open): Call record_init_record_breakpoints.
7635 (record_sync_record_breakpoints): New.
7636 (record_init_record_breakpoints): New.
7637 * NEWS: Mention supporting breakpoint always-inserted mode in
7642 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7647 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7648 (is_catchpoint): ... it.
7649 (print_one_breakpoint_location): Caller update.
7650 * breakpoint.h: Update declaration.
7654 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7658 * buildsym.c (add_free_pendings): Remove.
7659 * buildsym.h (add_free_pendings): Remove.
7663 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7664 attr.u.unsnd instead of attr.u.addr.
7665 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7666 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7668 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7669 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7671 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7675 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7676 (mips_o32_return_value): Likewise.
7677 (mips_o64_return_value): Likewise.
7681 * ada-lang.c (ada_evaluate_subexp): Add cases for
7682 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7683 their treatment in eval.c.
7687 * sparc-tdep.c (X_DISP10): Define.
7688 (sparc_analyze_control_transfer): Handle compare-and-branch.
7692 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7693 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7698 * mips-tdep.c (mips_float_register_p): New function.
7699 (mips_convert_register_float_case_p): Use mips_float_register_p.
7700 (mips_register_type): Likewise.
7701 (mips_print_register): Likewise.
7702 (print_gp_register_row): Likewise.
7703 (mips_print_registers_info): Likewise.
7707 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7712 * MAINTAINERS (Write After Approval): Add myself to the list.
7716 * MAINTAINERS: Update my e-mail address.
7720 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7722 * configure: Regenerate.
7726 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7728 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7732 Fix compilation compatibility with python-2.4
7733 * python/py-type.c (convert_field): Cast ADDRSTRING for
7734 PyObject_SetAttrString as non-const. New comment.
7738 * top.c (quit_target): Use all_cleanups.
7739 * main.c (captured_command_loop): Use all_cleanups.
7740 * exceptions.c (throw_exception): Use all_cleanups.
7744 * Makefile.in (GNULIB_BUILDDIR): New.
7745 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7746 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7747 (CLEANDIRS). Remove gnulib/import.
7748 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7750 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7751 (gnulib/import/Makefile): Replace gnulib/import with
7752 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7753 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7754 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7755 acx_configure_dir.m4.
7756 * acinclude.m4: Include acx_configure_dir.m4.
7757 * acx_configure_dir.m4: New file.
7758 * aclocal.m4: Regenerate.
7759 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7760 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7761 (GNULIB): New variable.
7762 (GNULIB_STDINT_H): Adjust.
7763 (AC_OUTPUT): Don't output gnulib/Makefile.
7764 * gdb/defs.h: Include build-gnulib/config.h.
7765 * aclocal.m4: Regenerate.
7766 * config.in: Regenerate.
7767 * configure: Regenerate.
7769 * gnulib/Makefile.in: New file.
7770 * gnulib/configure.ac: New file.
7771 * gnulib/aclocal.m4: New file.
7772 * gnulib/config.in: New file.
7773 * gnulib/configure: New file.
7774 * gnulib/: Re-run gnulib-tool to adjust.
7778 * cleanups.h (struct cleanup): Move to cleanups.c.
7779 (make_cleanup_dtor_ftype): New typedef.
7780 (make_cleanup_dtor): Use it.
7781 (ALL_CLEANUPS): Replace with ...
7782 (all_cleanups): ... this. Declare. All uses updated.
7783 * cleanups.c: #include "gdb_assert.h".
7784 (sentinel_cleanup): New static global.
7785 (SENTINEL_CLEANUP): Define.
7786 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7787 (make_my_cleanup2): Assert result is non-NULL.
7788 (all_cleanups): New function.
7789 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7794 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7795 Adjust paths to gnulib imported files.
7799 * gnulib/: Move whole directory ...
7800 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7801 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7802 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7803 (aclocal_m4_deps): Adjust.
7804 * aclocal.m4: Regenerate.
7805 * configure: Regenerate.
7806 * configure.ac: Adjust AC_OUTPUT output.
7810 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7812 * vec.c: Move it ...
7813 * common/vec.c: ... here.
7814 * vec.h: Move it ...
7815 * common/vec.h: ... here.
7819 * gdb-code-style.el: New.
7823 Update gnulib from latest git.
7824 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7826 * gnulib/Makefile.am: Update.
7827 * gnulib/dummy.c: Update.
7828 * gnulib/extra/arg-nonnull.h: Update.
7829 * gnulib/extra/c++defs.h: Update.
7830 * gnulib/extra/update-copyright: Update.
7831 * gnulib/extra/warn-on-use.h: Update.
7832 * gnulib/inttypes.in.h: Update.
7833 * gnulib/m4/00gnulib.m4: Update.
7834 * gnulib/m4/extensions.m4: Update.
7835 * gnulib/m4/gnulib-cache.m4: Update.
7836 * gnulib/m4/gnulib-common.m4: Update.
7837 * gnulib/m4/gnulib-comp.m4: Update.
7838 * gnulib/m4/gnulib-tool.m4: Update.
7839 * gnulib/m4/include_next.m4: Update.
7840 * gnulib/m4/inttypes-pri.m4: Update.
7841 * gnulib/m4/inttypes.m4: Update.
7842 * gnulib/m4/longlong.m4: Update.
7843 * gnulib/m4/memchr.m4: Update.
7844 * gnulib/m4/memmem.m4: Update.
7845 * gnulib/m4/mmap-anon.m4: Update.
7846 * gnulib/m4/multiarch.m4: Update.
7847 * gnulib/m4/onceonly.m4: Update.
7848 * gnulib/m4/stddef_h.m4: Update.
7849 * gnulib/m4/stdint.m4: Update.
7850 * gnulib/m4/string_h.m4: Update.
7851 * gnulib/m4/warn-on-use.m4: Update.
7852 * gnulib/m4/wchar_h.m4: Update.
7853 * gnulib/m4/wchar_t.m4: Update.
7854 * gnulib/m4/wint_t.m4: Update.
7855 * gnulib/memchr.c: Update.
7856 * gnulib/memmem.c: Update.
7857 * gnulib/stddef.in.h: Update.
7858 * gnulib/stdint.in.h: Update.
7859 * gnulib/str-two-way.h: Update.
7860 * gnulib/string.in.h: Update.
7861 * gnulib/wchar.in.h: Update.
7863 * gnulib/extra/arg-nonnull.h: Delete.
7864 * gnulib/extra/c++defs.h: Delete.
7865 * gnulib/extra/warn-on-use.h: Delete.
7866 * gnulib/m4/wchar_h.m4: Delete.
7867 * gnulib/m4/wint_t.m4: Delete.
7868 * gnulib/wchar.in.h: Delete.
7870 * gnulib/extra/snippets/arg-nonnull.h: New.
7871 * gnulib/extra/snippets/c++defs.h: New.
7872 * gnulib/extra/snippets/warn-on-use.h: New.
7874 * aclocal.m4: Regenerate.
7875 * config.in: Regenerate.
7876 * configure: Regenerate.
7877 * gnulib/Makefile.in: Regenerate.
7881 Reimport the update-copyright module from gnulib
7882 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7884 * configure: Regenerate.
7885 * gnulib/Makefile.am: Update.
7886 * gnulib/Makefile.in: Regenerate.
7887 * gnulib/extra/update-copyright: Update.
7888 * gnulib/m4/gnulib-cache.m4: Update.
7889 * gnulib/m4/gnulib-comp.m4: Update.
7893 * configure.ac (aix): Put -lpthread into libs.
7894 * configure: Regenerate.
7898 * linespec.c (convert_linespec_to_sals): Don't use
7900 (compare_msymbols): Arguments are minsym_and_objfile, not
7901 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7905 Revert gnulib/ part of:
7907 Copyright year update in most files (performed by copyright.sh).
7911 Fix 64-bit constants on 32-bit hosts.
7912 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7913 from unsigned long to ULONGEST.
7914 (read_signed_leb128): Change declaration return type from long to
7916 (dwarf2_const_value_attr): Change declaration parameter value from long
7918 (dwarf2_compute_name): Change variable value from long to LONGEST.
7919 (read_unsigned_leb128): Change return type, variable result and some
7920 casts from unsigned long to ULONGEST.
7921 (read_signed_leb128): Change return type, variable result and some
7922 casts from long to LONGEST.
7923 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7924 value from long to LONGEST.
7925 (dwarf2_const_value): Change variable value from long to LONGEST.
7926 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7927 plongest and hex_string.
7928 * symtab.h (struct general_symbol_info): Change ivalue from long to
7929 LONGEST, remove the comment.
7930 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7931 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7936 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7937 * ada-lang.c (ada_discrete_type_high_bound)
7938 (ada_discrete_type_low_bound): Fix function comment. Use
7939 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7940 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7941 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7942 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7943 Use TYPE_FIELD_ENUMVAL.
7944 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7945 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7946 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7947 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7949 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7950 * dwarf2read.c (process_enumeration_scope): Likewise.
7951 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7953 (class StructMainTypePrettyPrinter): Support also
7954 FIELD_LOC_KIND_ENUMVAL.
7955 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7957 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7958 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7959 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7960 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7962 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7963 accommodate enumval.
7964 (struct call_site): Adjust loc_kind to accommodate enumval.
7965 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7966 (TYPE_FIELD_ENUMVAL): New macros.
7967 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7968 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7970 * p-typeprint.c (pascal_type_print_base): Likewise.
7971 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7973 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7974 * python/py-type.c (convert_field): New variable addrstring. Use
7975 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7976 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7977 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7978 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7980 * valprint.c (generic_val_print): Likewise.
7984 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7986 * dwarf2read.c: Whitespace fixes.
7987 (lookup_signatured_type): Tweak comment.
7988 (get_die_type_at_offset): Fix comment.
7992 * xcoffread.c (xcoff_secnum_to_sections): New function.
7993 (secnum_to_section, secnum_to_bfd_section): Reimplement
7994 using xcoff_secnum_to_sections. Rename "secnum" parameter
7996 (RECORD_MINIMAL_SYMBOL): Delete.
7997 (record_minimal_symbol): New function.
7998 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7999 by call to record_minimal_symbol and set misc_func_recorded
8000 to 1. Set last_csect_sec to the XCOFF section index instead
8001 of GDB's section_offset index. Update calls to
8002 prim_record_minimal_symbol_and_info to pass the BFD section
8007 * xcoffread.c (read_xcoff_symtab): Delete variables
8008 last_csect_val and last_csect_sec and associated code.
8012 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8013 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8014 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8015 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8017 * cleanups.h: New file.
8018 * cleanups.c: New file.
8019 * Makefile.in (SFILES): Add cleanups.c.
8020 (HFILES_NO_SRCDIR): Add cleanups.h.
8021 (COMMON_OBS): Add cleanups.o.
8022 * defs.h (struct cleanup): Moved to cleanups.h.
8023 (do_cleanups,do_final_cleanups): Ditto.
8024 (discard_cleanups,discard_final_cleanups): Ditto
8025 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8026 (save_cleanups,save_final_cleanups): Ditto.
8027 (restore_cleanups,restore_final_cleanups): Ditto.
8028 (null_cleanup): Ditto.
8029 (make_my_cleanup,make_my_cleanup2): Ditto.
8030 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8031 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8032 (do_cleanups,do_final_cleanups): Ditto.
8033 (discard_cleanups,discard_final_cleanups): Ditto
8034 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8035 (save_cleanups,save_final_cleanups): Ditto.
8036 (restore_cleanups,restore_final_cleanups): Ditto.
8037 (null_cleanup): Ditto.
8038 (make_my_cleanup,make_my_cleanup2): Ditto.
8039 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8041 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8043 (make_cleanup_dyn_string_delete): Ditto.
8044 (make_cleanup_ui_file_delete): Ditto.
8045 (make_cleanup_ui_out_redirect_pop): Ditto.
8046 (make_cleanup_free_section_addr_info): Ditto.
8047 (make_cleanup_restore_integer): Ditto.
8048 (make_cleanup_unpush_target): Ditto.
8049 (make_cleanup_value_free_to_mark): Ditto.
8050 (make_cleanup_value_free): Ditto.
8051 (make_cleanup_free_so): Ditto.
8055 New option "set debug auto-load".
8056 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8057 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8058 (auto_load_safe_path_vec_update)
8059 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8061 (file_is_auto_load_safe): New parameters debug_fmt and ....
8062 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8063 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8064 caller by explanatory string.
8065 (_initialize_auto_load): Register "set debug auto-load".
8066 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8068 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8069 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8070 by explanatory string.
8071 * main.c (captured_main): Likewise.
8072 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8073 (source_section_scripts): Likewise.
8077 New option "set auto-load safe-path".
8078 * NEWS: New commands "set auto-load safe-path"
8079 and "show auto-load safe-path".
8080 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8081 (auto_load_safe_path, auto_load_safe_path_vec)
8082 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8083 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8084 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8085 (source_gdb_script_for_objfile): New variable is_safe. Call
8086 file_is_auto_load_safe. Return if it is not.
8087 (struct loaded_script): New field loaded.
8088 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8089 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8090 output "Missing" to "No".
8091 (_initialize_auto_load): New variable cmd. Initialize
8092 auto_load_safe_path. Register "set auto-load safe-path",
8093 "show auto-load safe-path" and "add-auto-load-safe-path".
8094 * auto-load.h (maybe_add_script): Add parameter loaded.
8095 (file_is_auto_load_safe): New declaration.
8096 * config.in: Regenerate.
8097 * configure: Regenerate.
8098 * configure.ac: New parameters --with-auto-load-safe-path
8099 and --without-auto-load-safe-path.
8100 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8101 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8102 * main.c (captured_main): Check file_is_auto_load_safe for
8104 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8105 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8106 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8111 auto-load: Implementation.
8112 * NEWS: New descriptions for "info auto-load",
8113 "info auto-load gdb-scripts", "info auto-load python-scripts",
8114 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8115 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8116 and "show auto-load-scripts". New description for "set auto-load",
8117 "show auto-load", "set auto-load gdb-scripts",
8118 "show auto-load gdb-scripts", "set auto-load python-scripts",
8119 "show auto-load python-scripts", "set auto-load local-gdbinit",
8120 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8121 "show auto-load libthread-db".
8122 * auto-load.c: Remove include python/python-internal.h. Add includes
8123 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8125 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8126 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8127 (gdbpy_global_auto_load): Rename to ...
8128 (global_auto_load): ... here.
8129 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8130 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8131 (script_language_gdb, source_gdb_script_for_objfile): New.
8132 (struct loaded_script): New field language.
8133 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8135 (maybe_add_script): Add parameter language. Drop redundant
8136 entry.full_path initialization. Initialize entry.language and
8138 (auto_load_objfile_script): Change parameter suffix to language.
8139 Remove the call of maybe_add_script.
8140 Call language->source_script_for_objfile.
8141 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8143 (collect_matching_scripts): Adjust it for
8144 struct collect_matching_scripts_data.
8145 (auto_load_info_scripts_pattern_nl): New variable.
8146 (info_auto_load_scripts): Rename to ...
8147 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8148 for struct collect_matching_scripts_data.
8149 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8150 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8151 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8152 (auto_load_info_cmdlist_get): New.
8153 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8154 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8155 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8156 "info auto-load local-gdbinit".
8157 * auto-load.h (struct script_language): New.
8158 (gdbpy_global_auto_load): Rename to ...
8159 (global_auto_load): ... here.
8160 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8161 (auto_load_local_gdbinit_loaded): New declarations.
8162 (maybe_add_script): New parameter language.
8163 (auto_load_objfile_script): Change parameter suffix to language.
8164 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8165 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8166 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8168 * linux-thread-db.c: Include auto-load.h and ctype.h.
8169 (auto_load_thread_db, show_auto_load_thread_db): New.
8170 (struct thread_db_info): New field filename.
8171 (delete_thread_db_info): Call xfree for FILENAME.
8172 (try_thread_db_load): Initialize FILENAME.
8173 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8174 if !AUTO_LOAD_THREAD_DB.
8175 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8176 (_initialize_thread_db): Install auto_load_thread_db
8177 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8178 as "info auto-load libthread-db".
8179 * main.c (captured_main): Rename gdbpy_global_auto_load to
8180 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8181 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8182 (print_gdb_help): Extend the help for 'local init file'.
8183 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8184 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8185 (auto_load_scripts): Rename to ...
8186 (auto_load_python_scripts): ... here, update the comment.
8187 (gdbpy_load_auto_script_for_objfile): New declaration.
8188 (show_auto_load_python_scripts, script_language_python)
8189 (gdbpy_load_auto_script_for_objfile): New.
8190 (source_section_scripts): Refactor the code.
8191 (load_auto_scripts_for_objfile): Rename to ...
8192 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8193 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8194 (info_auto_load_python_scripts): New.
8195 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8196 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8197 Register "set auto-load-scripts" as its deprecated alias. Register
8198 "info auto-load python-scripts". Register "info auto-load-scripts" as
8199 its deprecated alias.
8200 (load_auto_scripts_for_objfile): Rename to ...
8201 (gdbpy_load_auto_scripts_for_objfile): ... here.
8202 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8203 (gdbpy_load_auto_scripts_for_objfile): ... here.
8207 auto-load: Move files.
8208 * Makefile.in (SFILES): Add auto-load.c.
8209 (HFILES_NO_SRCDIR): Add auto-load.h.
8210 (COMMON_OBS): Add auto-load.o.
8211 (distclean): Change .gdbinit for gdb-gdb.gdb.
8212 * auto-load.c: New file, with parts from python/py-auto-load.c.
8213 * auto-load.h: New file, with parts from python/python.h.
8214 * configure: Regenerate.
8215 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8216 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8217 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8218 * main.c: Include auto-load.h.
8219 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8220 command.h, observer.h and progspace.h to auto-load.c. Add include
8222 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8223 (struct loaded_script, auto_load_pspace_data)
8224 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8225 (hash_loaded_script_entry, eq_loaded_script_entry)
8226 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8227 (maybe_add_script): Move to auto-load.c.
8228 (source_section_scripts): Change maybe_add_script parameters passing,
8229 use script_not_found_warning_print.
8230 (clear_section_scripts, auto_load_objfile_script)
8231 (auto_load_new_objfile, loaded_script_ptr)
8232 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8233 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8234 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8235 auto_load_new_objfile and info_auto_load_scripts initizations to
8237 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8242 * charset.c (find_charset_names): Remove variables ix and elt.
8243 Use free_char_ptr_vec.
8244 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8245 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8246 debugdir_end. New variable debugdir_len.
8247 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8248 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8250 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8251 and elt. Use free_char_ptr_vec.
8252 * source.c (add_path): Remove variables argv, arg and argv_index.
8253 New variables dir_vec, back_to, ix and name.
8254 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8255 make_cleanup_freeargv. Remove variable separator. Simplify the code
8256 no longer expecting DIRNAME_SEPARATOR.
8257 (openp): Remove variable p, p1 and len. New variables dir_vec,
8258 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8259 no longer expecting DIRNAME_SEPARATOR.
8260 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8261 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8263 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8264 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8265 (dirnames_to_char_ptr_vec): New functions.
8270 * source.c (add_path): Remove always true conditional 'p == 0' and
8271 unindent its code block.
8275 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8276 (FIELD_BITPOS_LVAL): ... this.
8277 (FIELD_BITPOS): New.
8278 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8279 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8280 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8282 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8284 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8285 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8286 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8291 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8292 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8293 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8294 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8295 * jv-lang.c (java_link_class_type): Likewise, once.
8296 * stabsread.c (read_enum_type): Likewise.
8300 * common/agent.c (agent_run_command): Add one more parameter `len'.
8302 * common/agent.h: Update declaration.
8303 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8305 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8310 * value.c (value_actual_type): New function.
8311 * value.h (value_actual_type): New declaration.
8312 * varobj.c (update_type_if_necessary): New function.
8313 (varobj_create): Call value_actual_type instead of
8315 (install_dynamic_child): distinct changed and type changed MI variable
8317 (update_dynamic_varobj_children): Updated for install_dynamic_child
8318 change. All callers updated.
8319 (varobj_update): Support for MI variable object type change if
8320 the value changed and RTTI is used to determine the type.
8321 (create_child_with_value): Call value_actual_type instead of
8323 (adjust_value_for_child_access): Extended with a new parameter which
8324 specify whether the given value should be casted to enclosing type.
8325 All callers updated.
8329 Import gnulib module inttypes from git
8330 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8331 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8332 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8333 gnulib/m4/inttypes-pri.m4
8334 * aclocal.m4, config.in, configure: Regenerated.
8335 * gnulib/Makefile.am: Update.
8336 * gnulib/Makefile.in: Update.
8337 * gnulib/m4/gnulib-cache.m4: Update.
8338 * gnulib/m4/gnulib-comp.m4: Update.
8339 * gnulib/inttypes.in.h: New.
8340 * gnulib/m4/inttypes-pri.m4: New.
8341 * gnulib/m4/inttypes.m4: New.
8345 * infrun.c (resume): Update PC address to the real PC after
8346 preparing to do displaced stepping.
8350 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8351 All callers updated.
8355 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8359 * dwarf2read.c (create_all_type_units): Renamed from
8360 create_debug_types_hash_table. All callers updated.
8362 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8363 local type_sig to sig_type, type_offset to type_offset_in_tu.
8364 (hash_signatured_type): Renamed from hash_type_signature,
8365 all callers updated.
8366 (eq_signatured_type): Renamed from eq_type_signature,
8367 all callers updated.
8368 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8369 (process_enumeration_scope): Ditto.
8370 (lookup_signatured_type_at_offset): Ditto.
8371 (load_full_type_unit, read_signatured_type): Ditto.
8375 * remote.c (async_remote_interrupt): Correct function name in
8377 (async_remote_interrupt_twice): Ditto.
8381 * source.c (find_and_open_source): Consistently pass resulting
8382 full path through xfullpath.
8386 Provide more specific displaced-stepping memory error message.
8387 * infrun.c (displaced_step_prepare): New variable status. Call
8388 target_read_memory instead of read_memory, provide more specific
8394 * darwin-nat.c (darwin_execvp): Revert previous patch.
8399 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8404 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8409 New command 'explore' which helps explore values and types in
8411 * NEWS: Add an entry about the new 'explore' command.
8412 * data-directory/Makefile.in: Add gdb/command/explore.py
8413 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8414 command using the GDB Python API.
8418 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8419 extension in jump target calculation.
8423 * mips-tdep.c (mips32_next_pc): Handle JALX.
8427 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8431 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8432 and gnulib/m4/gnulib-tool.m4.
8436 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8437 (load_partial_dies): Clarify comment.
8438 (find_partial_die): Support rereading type units.
8439 Clarify CU handling, if we know offset is in CU, don't search for the
8440 containing CU. Add comment regarding memory waste.
8444 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8445 i386/x32-avx and i386/x32-avx-linux.
8446 (i386/x32-expedite): New.
8447 (i386/x32-linux-expedite): Likewise.
8448 (i386/x32-avx-expedite): Likewise.
8449 (i386/x32-avx-linux-expedite): Likewise.
8450 ($(outdir)/i386/x32.dat): Likewise.
8451 ($(outdir)/i386/x32-linux.dat): Likewise.
8452 ($(outdir)/i386/x32-avx.dat): Likewise.
8453 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8455 * features/i386/x32-avx-linux.xml: New file.
8456 * features/i386/x32-avx.xml: Likewise.
8457 * features/i386/x32-core.xml: Likewise.
8458 * features/i386/x32-linux.xml: Likewise.
8459 * features/i386/x32.xml: Likewise.
8461 * features/i386/x32-avx-linux.c: New. Generated.
8462 * features/i386/x32-avx.c: Likewise.
8463 * features/i386/x32-linux.c: Likewise.
8464 * features/i386/x32.c: Likewise.
8465 * regformats/i386/x32-avx-linux.dat: Likewise.
8466 * regformats/i386/x32-avx.dat: Likewise.
8467 * regformats/i386/x32-linux.dat: Likewise.
8468 * regformats/i386/x32.dat: Likewise.
8472 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8473 code to kill the inferior.
8477 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8479 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8481 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8482 (yyvsp): New defines.
8483 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8485 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8487 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8489 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8491 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8496 * sparc64-tdep.c (sparc64_store_arguments)
8497 (sparc64_store_arguments): Fix coding style.
8501 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8502 complex floats, adjust some related comments and tighten a related
8504 (sparc64_extract_return_value): Handle complex floats.
8508 * dwarf2read.c (load_partial_dies): Change condition to assert.
8512 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8517 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8519 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8520 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8525 * linespec.c (decode_compound): Remove.
8526 (enum offset_relative_sign): New enum.
8527 (struct line_offset): New struct.
8528 (struct linespec): New struct.
8529 (struct linespec_state): Move file_symtabs,
8530 user_filename, and user_function into struct linespec.
8531 Make result an anonymous struct holding vectors of
8532 symbolp and minsym_and_objfile_d.
8533 Add language member.
8534 (enum ls_token_type): New enum.
8535 (linespec_keywords): New array.
8536 (struct ls_token): New struct.
8537 (struct ls_parser): New struct.
8538 (linespec_lexer_lex_number): New function.
8539 (linespec_lexer_lex_keyword): New function.
8540 (is_ada_operator): New function.
8541 (skip_quote_char): New function.
8542 (copy_token_string): New function.
8543 (is_closing_quote_enclosed): New function.
8544 (find_parameter_list_end): New function.
8545 (linespec_lexer_lex_string): New function.
8546 (linespec_lexer_lex_one): New function.
8547 (linespec_lexer_consume_token): New function.
8548 (linespec_lexer_peek_token): New function.
8549 (cplusplus_error): Remove unused function.
8550 (find_methods): Update comment.
8551 (find_toplevel_char): Return const.
8552 (is_objc_method_format): Remove unused function.
8553 (find_toplevel_string): New function.
8554 (is_linespec_boundary): Remove.
8555 (symbol_not_found_error): New function.
8556 (find_method_overload_end): Remove function.
8557 (unexpected_linespec_error): New function.
8558 (keep_name_info): Remove.
8559 (linespec_parse_line_offset): New function.
8560 (linespec_parse_basic): New function.
8561 (canonicalize_linespec): New function.
8562 (decode_line_internal): Remove.
8563 (create_sals_line_offset): New function adapted from
8565 (convert_linespec_to_sals): New function.
8566 (parse_linespec): New function.
8567 (linespec_parser_new): New function.
8568 (linespec_state_destructor): Change parameter type to
8569 struct linespec_state *.
8570 Add language parameter.
8571 Remove freeing of moved members.
8572 (linespec_parser_delete): New function.
8573 (decode_line_full): Use parse_linespec and linespec_parser_new.
8574 (decode_line_1): Likewise.
8575 (decode_indirect): Rename to ...
8576 (linespec_expression_to_pc): ... this and rewrite
8577 to simply find CORE_ADDR, storing this result for later
8579 (locate_first_half): Remove.
8580 (deocde_objc): Add parameter LS.
8581 Initialize new struct collect_info members.
8582 Handle minimal symbols, too.
8583 (decode_compound): Delete.
8584 (lookup_prefix_sym): Rewrite.
8585 (compare_msymbols): New function.
8586 (find_method): Rewrite.
8587 Do not call cplusplus_error.
8588 (symtabs_from_filename): Rewrite.
8589 (collect_function_symbols): Delete.
8590 (find_function_symbols): Rewrite without ARGPTR-style
8592 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8593 (decode_dollar): Adapted and renamed to ...
8594 (linespec_parse_variable): ... this.
8595 (find_linespec_symbols): New function.
8596 (decode_label): Adapted and renamed to ...
8597 (find_label_symbols): ... this.
8598 (decode_digits_list_mode): Add and use LS argument.
8599 (decode_digits_ordinary): Likewise.
8600 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8601 If in list mode, allow any symbol class. Otherwise, only
8602 permit LOC_BLOCK symbols.
8603 (minsym_found): Update comments.
8604 (search_minsyms_for_name): Do not convert the matching symbol
8605 into a SAL. Simply push the symbol and objfile into the
8607 (decode_variable): Delete. Contents adapted into
8608 find_linespec_symbols.
8610 * cp-support.c (SKIP_SPACE): Remove.
8611 (operator_tokens): Remove unused global.
8612 (cp_validate_operator): Remove.
8613 * cp-support.h (cp_validate_operator): Remove declaration.
8617 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8618 for TYPE_VPTR_FIELDNO.
8619 * valprint.c (valprint_check_validity): Make it global, move the
8620 function comment ...
8621 * value.h (valprint_check_validity): ... to this new declaration.
8625 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8626 the STATE32 api for i386 state.
8627 (i386_darwin_store_inferior_registers): Likewise.
8631 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8633 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8639 * darwin-nat.c (darwin_execvp): Set binary preference.
8643 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8647 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8648 of TRY_CATCH. Fix error handling.
8649 * python/py-value.c (convert_value_from_python): Move 'old'
8650 declaration to innermost scope.
8655 -Wshadow warning fix.
8656 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8657 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8658 Adjust code accordingly.
8662 * ada-lang.c (symbol_completion_add): Rename parameter
8663 "encoded" into "encoded_p". Ajust code and documentation
8669 -Wshadow warning fix.
8670 * ada-lang.c (symbol_completion_add): Rename parameter
8671 "wild_match" into wild_match_p. Update code and documentation
8676 * ada-lang.c (symbol_completion_match): Rename parameter
8677 "encoded" into "encoded_p". Ajust code and documentation
8683 -Wshadow warning fix.
8684 * ada-lang.c (symbol_completion_match): Rename parameter
8685 "wild_match" into "wild_match_p". Adjust code and function
8686 documentation accordingly.
8691 -Wshadow warning fix.
8692 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8693 "symbol_info" into "info". Adjust code accordingly.
8694 (ada_lookup_symbol): Likewise.
8698 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8699 of this function's documentation.
8704 -Wshadow warning fix.
8705 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8706 variable into "wild_match_p". Adjust code accordingly.
8711 -Wshadow warning fix.
8712 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8713 parameter into "wild_match_p". Adjust code accordingly.
8714 Document this parameter in the function description.
8719 -Wshadow warning fix.
8720 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8721 "wild_match" parameter to "wild_match_p" (-Wshadow).
8725 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8726 in function documentation.
8731 -Wshadow warning fix.
8732 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8733 variable into wild_match_p. Adjust code accordingly.
8738 * ada-valprint.c (ada_val_print_1): Move the code handling
8739 TYPE_CODE_ENUM inside its own lexical block. Declare
8740 variables len and val there, instead of in the function's
8741 top level block. Avoid declaring deref_val again in a way
8742 that shadows another variable of the same name declared
8743 in one of the up-level blocks. Just re-use the up-level
8748 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8749 Replace block_found argument by symbol_info. Adjust
8750 implementation accordingly. Add function documentation.
8751 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8753 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8754 * ada-exp.y (write_object_renaming): Adjust to new
8755 ada_lookup_encoded_symbol API.
8759 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8764 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8765 (v850_register_name): Add the mpu and fpu register names.
8766 (v850e_register_name): Add the mpu and fpu register names.
8767 (v850e2_register_name): New function.
8768 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8773 * NEWS: Add entry for Ada varobj support.
8777 * varobj.c (default_value_is_changeable_p): New function,
8778 extracted from varobj_value_is_changeable_p. Add declaration.
8779 (ada_value_is_changeable_p): New function, extracted from
8780 varobj_value_is_changeable_p. Add declaration.
8781 (struct language_specific): New field "value_is_changeable_p".
8782 (languages): Add entries for new field.
8783 (varobj_create): Set language before calling install_new_value.
8784 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8785 "value_is_changeable_p" language callback.
8789 * ada-varobj.h, ada-varobj.c: New files.
8790 * Makefile.in (SFILES): Add ada-varobj.c.
8791 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8792 (COMMON_OBS): Add ada-varobj.o.
8796 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8797 (struct language_specific): New field "value_has_mutated".
8798 (languages): Set field "value_has_mutated" in each entry of array.
8799 (varobj_value_has_mutated): New function.
8800 (varobj_udpdate): Add handling of type mutation.
8801 (value_of_root): Add handling of type mutation.
8802 (ada_value_has_mutated): New function.
8806 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8807 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8811 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8812 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8817 * .dir-locals.el: New file.
8821 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8825 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8830 Eliminate struct ui_stream.
8832 * ui-out.h (struct ui_stream): Delete.
8833 (ui_out_field_stream): Adjust prototype.
8834 (ui_out_stream_new, ui_out_stream_delete)
8835 (make_cleanup_ui_out_stream_delete): Delete declarations.
8836 * ui-out.c (ui_out_field_stream): Change prototype to take a
8837 ui_file instead of a ui_stream. Adjust.
8838 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8839 (make_cleanup_ui_out_stream_delete): Delete.
8840 * breakpoint.c (print_breakpoint_location)
8841 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8842 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8843 * disasm.c (dump_insns): Ditto.
8844 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8846 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8847 ui_stream/ui_out_stream_new.
8848 * infcmd.c (print_return_value): Ditto.
8849 * osdata.c (info_osdata_command): Don't allocate a local
8851 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8852 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8853 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8854 allocate a local ui_stream.
8855 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8856 instead of ui_stream/ui_out_stream_new.
8857 (list_args_or_locals): Don't allocate a local ui_stream.
8858 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8859 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8860 ui_stream/ui_out_stream_new.
8861 * cli/cli-setshow.c (do_setshow_command): Ditto.
8865 * arm-linux-tdep.c (arm_linux_init_abi): Call
8866 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8867 * arm-tdep.c (arm_process_record): New function.
8868 (deallocate_reg_mem): New function.
8869 (decode_insn): New function.
8870 (thumb_record_branch): New function.
8871 (thumb_record_ldm_stm_swi(): New function.
8872 (thumb_record_misc): New function.
8873 (thumb_record_ld_st_stack): New function.
8874 (thumb_record_ld_st_imm_offset): New function.
8875 (thumb_record_ld_st_reg_offset(): New function.
8876 (thumb_record_add_sub_cmp_mov): New function.
8877 (thumb_record_shift_add_sub): New function.
8878 (arm_record_coproc_data_proc): New function.
8879 (arm_record_coproc): New function.
8880 (arm_record_b_bl): New function.
8881 (arm_record_ld_st_multiple): New function.
8882 (arm_record_ld_st_reg_offset): New function.
8883 (arm_record_ld_st_imm_offset): New function.
8884 (arm_record_data_proc_imm): New function.
8885 (arm_record_data_proc_misc_ld_str): New function.
8886 (arm_record_extension_space): New function.
8887 (arm_record_strx): New function.
8888 (sbo_sbz): New function.
8889 (struct insn_decode_record): New structure for arm insn record.
8890 (REG_ALLOC): New macro for reg allocations.
8891 (MEM_ALLOC): New macro for memory allocations.
8892 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8896 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8897 (store_register): Likewise.
8901 * MAINTAINERS (Write After Approval): Add myself to the list.
8905 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8906 Describe also the option "auto".
8910 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8911 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8915 * jit.c (jit_read_code_entry): Compute alignment and offset of
8916 int64_t member before computing entry_size.
8920 Python scripting: Add new method Value.referenced_value to
8921 gdb.Value which can dereference pointer as well as reference
8923 * NEWS: Add entry under 'Python scripting' about the new method
8924 Value.referenced_value on gdb.Value objects.
8925 * python/py-value.c (valpy_referenced_value): New function
8926 defining a new method on gdb.Value objects which can dereference
8927 pointer and reference values.
8931 * MAINTAINERS (Write After Approval): Add myself to the list.
8935 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8936 in addition to "main".
8940 * expression.h (op_name): Add declaration.
8941 * expprint.c (op_name): Remove declaration. Make non-static.
8942 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8946 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8948 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8949 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8950 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8951 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8952 (linux_nat_get_siginfo): Likewise.
8953 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8954 (linux_nat_get_siginfo): Likewise.
8955 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8956 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8957 * procfs.c (gdb_siginfo_t): Likewise.
8961 * .gitignore: Ignore more files.
8965 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8970 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8975 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8976 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8977 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8979 * dwarf2expr.h (cu_offset, sect_offset): New types.
8980 (struct dwarf_expr_context_funcs) <dwarf_call>
8981 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8983 (struct dwarf_expr_context) <len>: Improve the comment.
8984 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8985 cu_offset and sect_offset.
8986 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8987 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8988 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8989 * dwarf2loc.h: Include dwarf2expr.h.
8990 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8992 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8993 Improve the comment.
8994 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8995 (struct signatured_type, struct line_header, struct partial_die_info)
8996 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8997 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8998 (get_die_type_at_offset, create_cus_from_index)
8999 (create_signatured_type_table_from_index, dw2_get_file_names)
9000 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9001 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9002 (create_debug_types_hash_table, process_psymtab_comp_unit)
9003 (load_partial_comp_unit, create_all_comp_units)
9004 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9005 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9006 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9007 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9008 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9009 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9010 (find_partial_die, read_attribute_value, lookup_die_type)
9011 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9012 (is_ref_attr): New function comment.
9013 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9014 Use cu_offset and sect_offset.
9015 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9016 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9017 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9018 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9019 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9020 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9021 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9027 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9028 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9030 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9034 * NEWS: Describe new options --init-command=FILE, -ix and
9035 --init-eval-command=COMMAND, -iex.
9036 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9037 CMDARG_INIT_COMMAND.
9038 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9039 "init-command", "init-eval-command", "ix" and "iex" to the variable
9040 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9041 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9042 (print_gdb_help): Describe --init-command=FILE, -ix and
9043 --init-eval-command=COMMAND, -iex.
9048 * main.c (struct cmdarg): Move it here from main. Add more comments.
9049 (cmdarg_s, VEC (cmdarg_s)): New.
9050 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9051 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9052 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9053 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9058 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9063 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9068 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9073 * source.c (add_path): Use memmove instead of strcpy because the
9078 * value.h (set_value_parent): Add declaration.
9079 * value.c (set_value_parent): New function.
9080 (value_address): If VALUE->PARENT is not NULL, then use it as
9081 the base address instead of VALUE->LOCATION.address.
9082 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9083 the same as OBJ's address. Adjust V's offset accordingly.
9088 PR breakpoints/10738
9089 * dwarf2read.c (use_deprecated_index_sections): New global.
9090 (struct partial_die_info): New member may_be_inlined.
9091 (read_partial_die): Set may_be_inlined where appropriate.
9092 (add_partial_subprogram): Add partial symbols for partial
9093 DIEs that may be inlined.
9094 (new_symbol_full): Add inlined subroutines to the current
9096 (write_psymtabs_to_index): Bump version number.
9097 (dwarf2_read_index): Read only version 6 indices unless
9098 use_deprecated_index_sections is set.
9099 * linespec.c (symbol_and_data_callback): New structure.
9100 (iterate_inline_only): New function.
9101 (iterate_over_all_matching_symtabs): New argument
9102 "include_inline". If nonzero, also call the callback for
9103 symbols representing inlined subroutines.
9104 (lookup_prefix_sym): Pass extra argument to the above.
9105 (find_function_symbols): Likewise.
9106 (add_matching_symbols_to_info): Likewise.
9107 * NEWS: Mention that GDB can now set breakpoints on inlined
9112 * p-typeprint.c (pascal_type_print_method_args):
9113 Fix display of parameter of methods.
9117 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9118 Add missing prototype.
9123 Fix false compilation warning.
9124 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9129 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9130 (arm_register_g_packet_guesses): New function.
9131 (arm_gdbarch_init): Don't force a target description with
9132 registers when the executable is detected as M-profile. Instead
9133 set gdbarch->tdep->is_m. Register `g' packet guesses.
9134 (_initialize_arm_tdep): Initialize the new target description.
9135 * features/arm-with-m-fpa-layout.xml: New description.
9136 * features/arm-with-m-fpa-layout.c: New, generated.
9140 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9141 Update function description.
9142 (insert_bp_location): Do not wipe bl->target_info out.
9143 * mem-break.c: #include "gdb_string.h".
9144 (default_memory_insert_breakpoint): Do not call target_read_memory
9145 with a pointer to the breakpoint's shadow_contents buffer. Use
9146 a local buffer instead.
9147 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9151 * NEWS: Mention "info vtbl", not "info vtable".
9152 * cp-support.c (info_vtbl_command): Fix comment.
9153 (_initialize_cp_support): Fix text.
9157 * cp-valprint.c (cp_print_value_fields): Use
9158 print_function_pointer_address for vtable slot.
9162 * gnu-v3-abi.c (struct value_and_voffset): New.
9163 (hash_value_and_voffset, eq_value_and_voffset)
9164 (compare_value_and_voffset, compute_vtable_size)
9165 (print_one_vtable, gnuv3_print_vtable): New functions.
9166 (init_gnuv3_ops): Initialize 'print_vtable' field.
9167 * cp-support.c (info_vtbl_command): New function.
9168 (_initialize_cp_support): Add "info vtbl".
9169 * cp-abi.h (cplus_print_vtable): Declare.
9170 (struct cp_abi_ops) <print_vtable>: New field.
9171 * cp-abi.c (cplus_print_vtable): New function.
9176 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9177 iterate_over_symbols.
9181 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9182 DW_OP_GNU_parameter_ref.
9186 Fix double prompt of 'interpreter-exec mi'.
9187 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9188 (mi_interpreter_resume): use it.
9189 (mi_execute_command_input_handler): New function.
9190 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9191 mi_execute_command_input_handler.
9195 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9197 (darwin_debug_port_info): Make static.
9198 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9199 * machoread.c (_initialize_machoread): Add prototype.
9200 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9201 (i386_darwin_set_control, i386_darwin_get_control)
9202 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9203 i386_darwin_get_status, i386_darwin_get_control):
9204 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9208 * ax-gdb.c (gen_usual_unary): Remove special handling of
9209 enum and bool types.
9213 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9217 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9221 * aix-thread.c (fill_sprs): Store the floating point registers
9222 at the correct offsets into vals.
9226 * NEWS: Mention symbol-reloading has been deleted.
9227 * symfile.c (symbol_reloading): Delete.
9228 (show_symbol_reloading): Delete.
9229 (_initialize_symfile): Delete set/show symbol-reloading.
9231 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9232 read_in_chain until we have successfully read it in.
9233 (load_full_comp_unit): Ditto.
9234 (read_signatured_type): Add comment.
9238 * stabsread.c (fix_common_block): Change type of valu argument
9243 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9248 * common/linux-procfs.c (linux_proc_get_int): New, from
9249 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9251 (linux_proc_get_tgid): Only call linux_proc_get_int.
9252 (linux_proc_get_tracerpid): New.
9253 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9254 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9255 linux_proc_pid_has_state.
9256 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9257 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9258 (linux_ptrace_attach_warnings): New.
9259 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9261 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9262 (linux_nat_attach): New variables ex, buffer, message and message_s.
9263 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9267 * Makefile.in (linux-ptrace.o): New.
9268 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9270 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9271 * common/linux-ptrace.c: New file.
9272 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9273 * config/arm/linux.mh: Likewise.
9274 * config/i386/linux.mh: Likewise.
9275 * config/i386/linux64.mh: Likewise.
9276 * config/ia64/linux.mh: Likewise.
9277 * config/m32r/linux.mh: Likewise.
9278 * config/m68k/linux.mh: Likewise.
9279 * config/mips/linux.mh: Likewise.
9280 * config/pa/linux.mh: Likewise.
9281 * config/powerpc/linux.mh: Likewise.
9282 * config/powerpc/ppc64-linux.mh: Likewise.
9283 * config/powerpc/spu-linux.mh: Likewise.
9284 * config/s390/s390.mh: Likewise.
9285 * config/sparc/linux.mh: Likewise.
9286 * config/sparc/linux64.mh: Likewise.
9287 * config/xtensa/linux.mh: Likewise.
9288 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9289 common/linux-procfs.c.
9290 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9295 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9296 CREATE_BREAKPOINT_FLAGS_INSERTED.
9297 (create_breakpoint_sal, create_breakpoints_sal)
9298 (base_breakpoint_create_breakpoints_sal)
9299 (tracepoint_create_breakpoints_sal)
9300 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9302 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9303 (ftrace_command, strace_command): Adjust.
9304 (create_tracepoint_from_upload): Pass
9305 CREATE_BREAKPOINT_FLAGS_INSERTED.
9306 * breakpoint.h (enum breakpoint_create_flags): New.
9307 (create_breakpoint): New flags parameter.
9308 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9309 * python/py-breakpoint.c (bppy_init): Adjust.
9310 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9311 * spu-tdep.c (spu_catch_start): Adjust.
9317 * remote.c (struct remote_state): New field `starting_up'.
9318 (remote_start_remote): Set and clear it.
9319 (remote_can_download_tracepoint): If starting up, return false.
9323 * inferior.h (struct inferior): Remove fields any_syscall_count,
9324 syscalls_counts and total_syscalls_count. Move them to new
9325 struct catch_syscall_inferior_data in breakpoint.c.
9326 * breakpoint.c: Call DEF_VEC_I(int).
9327 (struct catch_syscall_inferior_data): New.
9328 (get_catch_syscall_inferior_data): New.
9329 (catch_syscall_inferior_data_cleanup): New.
9330 (insert_catch_syscall): Update to access data in
9331 struct catch_syscall_inferior_data.
9332 (insert_catch_syscall): Likewise.
9333 (remove_catch_syscall): Likewise.
9334 (remove_catch_syscall): Likewise.
9335 (is_syscall_catchpoint_enabled): Likewise.
9336 (add_catch_command): Likewise.
9337 (_initialize_breakpoint): Register cleanup.
9338 * breakpoint.h: Removed DEF_VEC_I(int).
9339 * dwarf2loc.c: Call DEF_VEC_I(int).
9340 * mi/mi-main.c: Likewise.
9344 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9348 * aix-thread.c (_initialize_aix_thread): Add prototype.
9349 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9350 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9354 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9355 include of "amd64-nat.h".
9359 * buildsym.c (record_pending_block): Now static.
9360 * buildsym.h: (record_pending_block): Remove.
9364 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9368 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9369 producer_is_gxx_lt_4_6>: New fields.
9370 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9374 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9378 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9383 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9387 Fix -Wmissing-prototypes build.
9388 * arm-linux-nat.c (get_thread_id): Make it static.
9389 * xtensa-linux-nat.c (get_thread_id): Likewise.
9393 * server.c (process_point_options): If a conditional expression
9394 is found, only print a message if remote_debug is nonzero.
9398 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9399 of internal error for unknown/unsupported types.
9403 Fix CU relative vs. absolute DIE offsets.
9404 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9405 offset to offset_in_cu.
9406 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9408 (dwarf2_fetch_die_location_block): Rename parameter offset to
9409 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9413 * libunwind-frame.c: Rename to ...
9414 * ia64-libunwind-tdep.c: ... here.
9415 * libunwind-frame.h: Rename to ...
9416 * ia64-libunwind-tdep.h: ... here.
9417 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9418 ia64-libunwind-tdep.h.
9419 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9420 * README (--with-libunwind): Rename to ...
9421 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9422 * config.in: Regenerate.
9423 * configure: Regenerate.
9424 * configure.ac: New option --with-libunwind-ia64, make the
9425 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9426 Remove AC_DEFINE for HAVE_LIBUNWIND.
9427 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9428 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9429 Rename libunwind-frame in the general comment.
9430 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9431 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9432 Move forward declarations inside #ifndef. Rename libunwind-frame in
9433 the general comment.
9434 * ia64-tdep.c: Rename libunwind-frame.h #include to
9435 ia64-libunwind-tdep.h.
9436 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9437 (ia64_libunwind_descr): Rename libunwind-frame to
9438 ia64-libunwind-tdep in these function comments.
9439 * ia64-tdep.h: Rename libunwind-frame.h #include to
9440 ia64-libunwind-tdep.h.
9441 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9442 ia64-libunwind-tdep in that data comment.
9446 * libunwind-frame.h (struct frame_unwind): New declaration.
9450 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9451 "set breakpoint condition-evaluation" command.
9455 * sparc-stub.c: Move to stubs/
9456 * sh-stub.c: Likewise.
9457 * m68k-stub.c: Likewise.
9458 * m32r-stub.c: Likewise.
9459 * i386-stub.c: Likewise.
9463 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9464 linux_get_siginfo_type.
9466 * m68klinux-nat.c: Include "gdb_proc_service.h".
9467 (PTRACE_GET_THREAD_AREA): Define.
9468 (ps_get_thread_area): New function.
9472 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9474 (remote_query_attached): Likewise.
9475 (remote_static_tracepoint_marker_at): Likewise.
9476 (remote_set_permissions): Likewise.
9477 (remote_detach_1, extended_remote_attach_1): Likewise.
9478 (send_g_packet, remote_vkill): Likewise.
9479 (extended_remote_disable_randomization): Likewise.
9480 (remote_add_target_side_condition): Likewise.
9481 (remote_insert_breakpoint): Likewise.
9482 (remote_remove_breakpoint): Likewise.
9483 (remote_insert_watchpoint): Likewise.
9484 (remote_remove_watchpoint): Likewise.
9485 (remote_insert_hw_breakpoint): Likewise.
9486 (remote_insert_hw_breakpoint): Likewise.
9487 (remote_remove_hw_breakpoint): Likewise.
9488 (remote_download_command_source): Likewise.
9489 (remote_download_tracepoint): Likewise.
9490 (remote_download_trace_state_variable): Likewise.
9491 (remote_disable_tracepoint): Likewise.
9492 (remote_trace_set_readonly_regions): Likewise.
9493 (remote_get_tracepoint_status): Likewise.
9494 (remote_trace_find): Likewise.
9495 (remote_get_trace_state_variable_value): Likewise.
9496 (remote_set_disconnected_tracing): Likewise.
9497 (remote_set_circular_trace_buffer): Likewise.
9498 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9499 (remote_use_agent): Likewise.
9500 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9505 * NEWS: Mention QProgramSignals.
9506 * inferior.h (update_signals_program_target): Declare.
9507 * infrun.c: (update_signals_program_target): New.
9508 (handle_command): Update the target of the new program signals
9510 * remote.c (PACKET_QProgramSignals): New enum.
9511 (last_program_signals_packet): New global.
9512 (remote_program_signals): New.
9513 (remote_start_remote): Update the target with the program signals
9515 (remote_protocol_features): Add entry for QPassSignals.
9516 (remote_open_1): Free anc clear last_program_signals_packet.
9517 (init_remote_ops): Install remote_program_signals.
9518 * target.c (update_current_target): Adjust.
9519 (target_program_signals): New.
9520 * target.h (struct target_ops) <to_program_signals>: New field.
9521 (target_program_signals): Declare.
9525 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9530 * m68klinux-nat.c (getregs_supplies): Make static.
9531 (getfpregs_supplies): Likewise.
9532 (have_ptrace_getregs): Likewise.
9536 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9537 in call to get_die_type_at_offset.
9541 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9542 * mi/mi-cmd-disas.c: Ditto.
9543 * mi/mi-cmd-env.c: Ditto.
9544 * mi/mi-cmd-file.c: Ditto.
9545 * mi/mi-cmd-stack.c: Ditto.
9546 * mi/mi-cmd-target.c: Ditto.
9547 * mi/mi-cmd-var.c: Ditto.
9548 * mi/mi-cmds.c: Ditto.
9549 * mi/mi-cmds.h: Ditto.
9550 * mi/mi-console.c: Ditto.
9551 * mi/mi-getopt.c: Ditto.
9552 * mi/mi-getopt.h: Ditto.
9553 * mi/mi-interp.c: Ditto.
9554 * mi/mi-main.c: Ditto.
9555 * mi/mi-out.c: Ditto.
9556 * mi/mi-parse.c: Ditto.
9557 * mi/mi-parse.h: Ditto.
9558 * mi/mi-symbol-cmds.c: Ditto.
9560 * mi/mi-getopt.h: Move mi_opt struct up.
9561 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9563 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9567 * proc-service.c (ps_pglobal_lookup): Set the current program
9572 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9576 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9581 * common/linux-osdata.c (linux_common_core_of_thread): New function
9583 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9584 call by linux_common_core_of_thread.
9585 (linux_nat_core_of_thread_1): Remove.
9586 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9587 * linux-thread-db.c: Include linux-osdata.h.
9588 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9589 linux_common_core_of_thread.
9593 * value.c (value_primitive_field): Don't fetch contents for
9598 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9602 * s390-nat.c: Include "gregset.h".
9606 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9607 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9608 (libunwind_load): New variable so_error, use it for dlerror. Try to
9609 load also LIBUNWIND_SO_7.
9613 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9614 is not NULL, and remove resulting dead code.
9618 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9619 prologue to sh_analyze_prologue.
9620 (sh_analyze_prologue): Make better use of such an upper limit, and
9621 generally be more cautious about accessing memory.
9625 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9626 _initialize_ia64_hpux_tdep.
9632 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9633 the register state is clear, supply explicit zero, instead of
9634 marking the register unavailable.
9638 * NEWS: Mention OpenVMS ia64 new target.
9642 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9643 (ia64_unw_accessors, ia64_unw_rse_accessors)
9644 (ia64_libunwind_descr): Declare.
9645 * ia64-vms-tdep.c: New file.
9646 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9647 (ia64_libunwind_descr): Make them public.
9648 * configure.tgt: Add ia64-*-*vms*.
9649 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9650 (ALLDEPFILES): Add ia64-vms-tdep.c
9654 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9655 * remote.c (PACKET_qXfer_uib): New enum value.
9656 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9657 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9658 (_initialize_remote): Call add_packet_config_cmd for
9663 * osabi.c (gdb_osabi_names): Add OpenVMS.
9664 (generic_elf_osabi_sniffer): Likewise.
9665 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9669 Removed unused code.
9670 * libunwind-frame.c (libunwind_frame_unwind)
9671 (libunwind_frame_base_address): Remove.
9672 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9676 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9677 remove trailing new line.
9678 (agent_run_command, agent_run_command): Add _ markup.
9679 (agent_capability_check): Likewise.
9683 * breakpoint.c (set_condition_evaluation_mode): Set
9684 CONDITION_EVALUATION_MODE unconditionally.
9688 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9689 * common/agent.h: Update declaration.
9690 * inf-child.c (inf_child_use_agent): New.
9691 (inf_child_can_use_agent): New.
9692 (inf_child_target): Initialize fields `to_use_agent'
9693 and `to_can_use_agent'.
9694 * agent.c (agent_new_objfile): New.
9695 (_initialize_agent): Add agent_new_objfile to new_objfile
9698 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9700 (linux_target_install_ops): Initialize field
9701 `to_static_tracepoint_markers_by_strid'.
9702 * remote.c (free_current_marker): Move it to ...
9703 * tracepoint.c (free_current_marker): ... here. New.
9704 (cleanup_target_stop): New.
9705 * tracepoint.h: Declare free_current_marker.
9706 * NEWS: Add one entry about `info static-tracepoint-marker'.
9710 * common/agent.c (agent_loaded_p): New.
9711 (agent_look_up_symbols): New global.
9712 * common/agent.h: Declare agent_loaded_p.
9716 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9717 (agent_capability_check, agent_capability_invalidate): New.
9718 (symbol_list): New array element.
9719 * common/agent.h (enum agent_capa): New.
9720 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9724 * target.h (struct target_ops) <to_use_agent>: New field.
9725 (struct target_ops) <to_can_use_agent>: New field.
9726 (target_use_agent, target_can_use_agent): New macro.
9727 * target.c (update_current_target): Update.
9728 * remote.c: New enum `PACKET_QAgent'.
9729 (remote_protocol_features): Add a new element.
9730 (remote_use_agent, remote_can_use_agent): New.
9731 (init_remote_ops): Initialize field `can_use_agent' with
9732 remote_can_use_agent. Intiailize field `use_agent' with
9734 * common/agent.c (use_agent): New global.
9735 * common/agent.h: Declare it.
9736 * tracepoint.c (info_static_tracepoint_markers_command): Add
9738 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9739 (COMMON_OBS): Add common/agent.o and agent.o
9740 (common-agent.o): New rule.
9745 * common/agent.c: New.
9746 * common/agent.h: New.
9747 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9749 * configure, configh.in: Regenerated.
9753 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9754 unless it exists for this architecture.
9758 * language.h (struct language_defn): New "method" la_read_var_value.
9759 * findvar.c: #include "language.h".
9760 (default_read_var_value): Renames read_var_value. Rewrite
9761 function description.
9762 (read_var_value): New function.
9763 * value.h (default_read_var_value): Add prototype.
9764 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9766 (ada_language_defn): Add entry for la_read_var_value.
9767 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9768 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9769 language_defn structures to add entry for new la_read_var_value
9775 PR breakpoints/13776:
9776 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9778 (delete_longjmp_breakpoint_at_next_stop): New.
9779 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9780 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9781 before deleting the inferior. Add comments.
9782 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9783 breakpoints immediately, but only on next stop. Move that code
9784 next to where we mark other breakpoints for deletion.
9788 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9790 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9795 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9799 Fix -Wmissing-prototypes build.
9800 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9801 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9802 (gdbsim_has_memory): Likewise.
9806 Fix -Wmissing-prototypes build.
9807 * charset.c (phony_iconv_open): Make static.
9808 (phony_iconv_close, phony_iconv): Likewise.
9809 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9810 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9812 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9813 * ser-mingw.c (create_select_thread): Make static.
9814 * windows-termcap.c (tgetent): New prototype.
9815 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9819 Fix -Wmissing-prototypes build.
9820 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9821 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9822 (_initialize_loadable): New prototypes.
9826 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9827 abbrev table, read_comp_unit will do it.
9831 Fix -Wmissing-prototypes build.
9832 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9833 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9834 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9835 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9836 (_initialize_arm_symbian_tdep): New prototype.
9837 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9838 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9839 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9841 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9842 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9844 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9845 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9846 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9848 * moxie-tdep.c (moxie_process_record): Likewise.
9849 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9850 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9851 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9852 (_initialize_rl78_tdep): New prototype.
9853 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9854 (_initialize_rx_tdep): New prototype.
9855 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9856 (_initialize_darwin_solib): New prototype.
9857 * solib-spu.c: Include solib-spu.h.
9858 (_initialize_spu_solib): New prototype.
9859 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9860 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9861 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9862 (tic6x_software_single_step): Make it static.
9863 (_initialize_tic6x_tdep): New prototype.
9867 Fix -Wmissing-prototypes build.
9868 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9869 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9873 Fix -Wmissing-prototypes build.
9874 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9875 (frv_have_stopped_data_address): Remove.
9879 Fix -Wmissing-prototypes build.
9880 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9881 * sh-tdep.c: Include sh64-tdep.h.
9882 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9883 * sh64-tdep.c: Include sh64-tdep.h.
9884 * sh64-tdep.h: New file.
9888 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9892 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9893 sp_regnum once the gdbarch_init_osabi hook has been called.
9897 * mips-tdep.c (mips32_bc1_pc): New function.
9898 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9899 BPOSGE32 and BPOSGE64 instructions.
9900 (deal_with_atomic_sequence): Likewise.
9901 (mips32_instruction_has_delay_slot): Likewise.
9908 * features/mips-dsp.xml: New file.
9909 * features/mips64-dsp.xml: New file.
9910 * features/mips-dsp-linux.xml: New file.
9911 * features/mips64-dsp-linux.xml: New file.
9912 * features/Makefile (WHICH): Add mips-dsp-linux and
9914 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9915 * features/mips-dsp-linux.c: New file.
9916 * features/mips64-dsp-linux.c: New file.
9917 * regformats/mips-dsp-linux.dat: New file.
9918 * regformats/mips64-dsp-linux.dat: New file.
9919 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9921 (mips64_linux_register_addr): Likewise.
9922 (mips64_linux_regsets_fetch_registers): Likewise.
9923 (mips64_linux_regsets_store_registers): Likewise.
9924 (mips64_linux_fetch_registers): Update call to
9925 mips64_linux_regsets_fetch_registers.
9926 (mips64_linux_store_registers): Update call to
9927 mips64_linux_regsets_store_registers.
9928 (mips_linux_read_description): Probe for DSP registers.
9929 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9930 and initialize_tdesc_mips64_dsp_linux.
9931 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9932 Remove padding of no longer used embedded register slots.
9933 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9934 (MIPS_RESTART_REGNUM): Redefine enum value.
9935 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9937 (mips_tx39_reg_names): Likewise.
9938 (mips_linux_reg_names): New array of register names for Linux
9940 (mips_register_name): Check for a null pointer in
9941 mips_processor_reg_names and return an empty string.
9942 (mips_register_type): Exclude embedded registers for the IRIX
9944 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9945 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9947 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9948 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9949 (mips_gdbarch_init): Likewise. Initialize internal register
9950 indices for the Linux ABI. Use dynamic numbers to refer to
9951 registers, as applicable, while parsing the target description.
9952 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9956 * frame.h (read_frame_register_unsigned): Fix typo in function
9961 * jit-reader.in [!__cplusplus]
9962 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9966 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9967 * configure: Regenerate.
9971 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9972 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9973 (ftrace_command, strace_command): Make static.
9974 * d-lang.c (_initialize_d_language): Declare.
9975 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9976 * dwarf2loc.c (_initialize_dwarf2loc):
9977 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9978 * exec.c (exec_get_section_table): Make static.
9979 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9980 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9981 * inferior.c (remove_inferior_command, add_inferior_command)
9982 (clone_inferior_command): Make static.
9983 * linux-nat.c (linux_nat_thread_address_space)
9984 (linux_nat_core_of_thread): Make static.
9985 * linux-tdep.c (_initialize_linux_tdep): Declare.
9986 * objc-lang.c (_initialize_objc_lang): Declare.
9987 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9989 (_initialize_opencl_language): Declare.
9990 * record.c (_initialize_record): Declare.
9991 * remote.c (demand_private_info, remote_get_tib_address)
9992 (remote_supports_cond_tracepoints)
9993 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9995 * skip.c (_initialize_step_skip): Declare.
9996 * symtab.c (skip_prologue_using_lineinfo): Make static.
9997 * tracepoint.c (delete_trace_state_variable)
9998 (trace_variable_command, delete_trace_variable_command)
9999 (get_uploaded_tsv, find_matching_tracepoint_location)
10000 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10002 * value.c (pack_unsigned_long): Make static.
10003 * varobj.c (varobj_ensure_python_env): Make static.
10004 * windows-tdep.c (_initialize_windows_tdep): Declare.
10005 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10009 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10011 (linux_init_abi): Install it as has_shared_address_space gdbarch
10016 * observer.c (observer_test_first_notification_function)
10017 (observer_test_second_notification_function)
10018 (observer_test_third_notification_function): Add declarations.
10022 * common/signals.c (default_target_signal_to_host)
10023 (default_target_signal_from_host): Move ...
10024 * arch-utils.c: ... here.
10025 * arch-utils.h (default_target_signal_to_host)
10026 (default_target_signal_from_host): Declare.
10028 * common/signals.c (target_signal_from_command): Move ...
10029 * infrun.c: ... here.
10030 * inferior.h (target_signal_from_command): Declare.
10031 * target.h (target_signal_from_command)
10032 (default_target_signal_from_host, default_target_signal_to_host):
10033 Delete declarations.
10035 * common/signals.c (_initialize_signals): Delete.
10039 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10040 both __cplusplus and !__cplusplus.
10044 * psymtab.c (find_and_open_source): Delete declaration.
10045 * source.c (find_and_open_source): Move comment ...
10046 * source.h (find_and_open_source): ... to this new declaration.
10050 * inline-frame.c: Include inline-frame.h.
10054 * tui/tui-data.c (set_gen_win_origin): Delete.
10055 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10056 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10060 * remote.c (encode_actions): Delete declaration.
10061 * tracepoint.c (encode_actions): Make extern.
10062 * tracepoint.h (encode_actions): Declare.
10066 * python/py-breakpoint.c: Include python.h.
10067 * python/py-continueevent.c (create_continue_event_object): Make
10069 * python/py-lazy-string.c (stpy_get_type): Make static.
10070 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10072 * python/py-utils.c (unicode_to_target_python_string): Make
10074 * python/py-value.c: Include python.h.
10078 * inferior.c (delete_threads_of_inferior): Delete.
10082 Import fallback definitions from glibc.
10084 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10085 ps_prochandle): Forward declare.
10086 (ps_err_e): Use glibc's comments.
10087 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10088 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10089 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10090 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10091 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10092 (struct ps_prochandle): Adjust comment.
10096 * ada-lang.c (ada_modulus_from_name): Delete.
10097 * ada-lex.l (lexer_init): Make static.
10103 * frame.c (read_frame_register_unsigned): New.
10104 * frame.h (read_frame_register_unsigned): Declare.
10105 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10107 (print_i387_control_word): New parameter `control_p'. Handle it.
10108 (i387_print_float_info): Handle unavailable float registers.
10112 * linespec.c (decode_line_2): Sort the list of methods
10113 alphabetically before presenting the user with a selection
10118 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10119 has_namespace_info.
10120 (dwarf2_read_abbrevs): Remove corresponding initialization.
10124 * NEWS: Mention new python command class gdb.COMMAND_USER.
10125 * cli/cli-cmds.c (show_user): Print error when used on a python
10127 (init_cli_cmds): Update documentation strings for "show user" and
10128 "set/show max-user-call-depth" to clarify that it does not apply to
10130 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10132 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10134 * top.c (execute_command): Only execute a user-defined command as a
10135 legacy macro if c->user_commands is set.
10139 * valprint.h (struct generic_val_print_decorations): New.
10140 (generic_val_print): Declare.
10141 * valprint.c (generic_val_print): New function.
10142 * p-valprint.c (p_decorations): New global.
10143 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10144 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10145 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10146 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10147 * m2-valprint.c (m2_decorations): New global.
10148 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10149 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10150 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10151 TYPE_CODE_ERROR>: Call generic_val_print.
10152 * f-valprint.c (f_decorations): New global.
10153 (f_val_print): Use print_function_pointer_address.
10154 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10155 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10156 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10158 * c-valprint.c (c_decorations): New global.
10159 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10160 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10161 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10162 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10163 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10164 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10169 * valprint.c (val_print): Update.
10170 * p-valprint (pascal_val_print): Return void.
10171 * p-lang.h (pascal_val_print): Return void.
10172 * m2-valprint.c (m2_val_print): Return void.
10173 * m2-lang.h (m2_val_print): Return void.
10174 * language.h (struct language_defn) <la_val_print>: Return void.
10175 * language.c (unk_lang_val_print): Return void.
10176 * jv-valprint.c (java_val_print): Return void.
10177 * jv-lang.h (java_val_print): Return void.
10178 * f-valprint.c (f_val_print): Return void.
10179 * f-lang.h (f_val_print): Return void.
10180 * d-valprint.c (d_val_print): Return void.
10181 (dynamic_array_type): Update.
10182 * d-lang.h (d_val_print): Return void.
10183 * c-valprint.c (c_val_print): Return void.
10184 * c-lang.h (c_val_print): Return void.
10185 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10187 * ada-lang.h (ada_val_print): Return void.
10191 * value.h (val_print): Return void.
10192 * valprint.c (val_print): Return void.
10196 * value.h (common_val_print): Return void.
10197 * valprint.c (common_val_print): Return void.
10201 * value.h (value_print): Return void.
10202 * valprint.c (value_print): Return void.
10203 * p-valprint.c (pascal_value_print): Return void.
10204 * p-lang.h (pascal_value_print): Return void.
10205 * language.h (struct language_defn) <la_value_print>: Return
10207 * language.c (unk_lang_value_print): Return void.
10208 * jv-valprint.c (java_value_print): Return void.
10209 * jv-lang.h (java_value_print): Return void.
10210 * f-valprint.c (c_value_print): Don't declare.
10212 * c-valprint.c (c_value_print): Return void.
10213 * c-lang.h (c_value_print): Return void.
10214 * ada-valprint.c (ada_value_print): Return void.
10215 * ada-lang.h (ada_value_print): Return void.
10219 * value.c (value_primitive_field): Handle virtual base classes.
10223 * gdbtypes.h (struct vbase): Remove.
10227 * c-valprint.c (print_function_pointer_address): Move...
10228 * valprint.c: ... here. Make non-static.
10229 * m2-valprint.c (print_function_pointer_address): Remove.
10230 * valprint.h (print_function_pointer_address): Declare.
10234 * NEWS: Document the fact that one can provide a condition when
10235 creating an Ada exception catchpoint.
10239 * valprint.c (val_print_type_code_flags): Fix placement of
10244 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10245 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10246 environment variable before calling update-copyright.
10250 * gnulib/extra/update-copyright: Update to the latest from
10251 gnulib's git repository.
10252 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10253 variable to 2 instead of 1.
10257 * varobj.c (c_value_of_variable): Remove dead code.
10261 * ada-lex.p (processId): Do not modify already encoded IDs.
10262 Update function documentation.
10266 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10267 "name" with "struct symbol *name_sym".
10268 * ada-exp.y (write_var_or_type): Update call to
10269 ada_find_renaming_symbol.
10270 "name" with "struct symbol *name_sym". Adjust Implementation
10271 accordingly. Adjust the function documentation.
10275 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10276 * ada-lang.c (ada_find_any_type): Add advance declaration.
10277 Make static. Replace ada_find_any_symbol by
10278 ada_find_any_type_symbol.
10279 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10280 Improve function description. Make static.
10281 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10282 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10286 * ada-lang.c (struct tag_args): Delete.
10287 (ada_get_tsd_type): Function body moved up in source file.
10288 (ada_tag_name_1, ada_tag_name_2): Delete.
10289 (ada_get_tsd_from_tag): New function.
10290 (ada_tag_name_from_tsd): New function.
10291 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10292 to determine the tag name.
10296 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10298 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10303 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10307 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10312 * ada-lang.c (constrained_packed_array_type): If there is a
10313 parallel XA type, use it to determine the array index type.
10317 * ada-valprint.c (ada_val_print_1): If our value is a reference
10318 to an array descriptor, dereference it before converting it
10323 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10324 creating fixed value.
10325 (ada_value_ind, ada_coerce_ref, assign_component)
10326 (ada_evaluate_subexp): Remove call to unwrap_value before
10327 call to ada_to_fixed_value.
10331 * ada-lang.c (to_fixed_array_type): Set result's type name.
10335 * ada-lang.c (catch_ada_exception_command_split): Add new
10336 argument cond_string. Add support for condition at end of
10337 "catch exception" commands.
10338 (ada_decode_exception_location): Add new argument cond_string.
10339 Update call to catch_ada_exception_command_split.
10340 (create_ada_exception_catchpoint): Add new argument cond_string.
10341 Set the breakpoint condition if needed.
10342 (catch_ada_exception_command): Update call to
10343 ada_decode_exception_location.
10344 (ada_decode_assert_location): Add function documentation.
10345 Add support for condition at end of "catch assert" command.
10346 (catch_assert_command): Update calls to ada_decode_assert_location
10347 and create_ada_exception_catchpoint.
10351 Fix disp-step-syscall.exp: fork: single step over fork.
10352 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10353 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10354 comment, change parameters gdbarch and ptid to regcache. Remove
10355 parameter regcache, initialize gdbarch from regcache here.
10356 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10358 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10360 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10361 'syscall'. Make the 'int' check more strict.
10365 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10366 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10367 (i386_linux_intx80_sysenter_syscall_record): ... here.
10368 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10369 Use the renamed function name.
10373 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10374 * breakpoint.c (until_break_command): Likewise.
10375 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10376 * infcall.c (call_function_by_hand): Likewise.
10377 * infcmd.c (finish_forward): Likewise.
10378 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10382 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10383 avoid variable assignments inside condition.
10387 Fix static analysis issue found by cppcheck.
10388 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10389 uninitialized BUF for size 2.
10395 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10396 (mips16_instruction_has_delay_slot): Likewise.
10397 (mips_segment_boundary): Likewise.
10398 (mips_adjust_breakpoint_address): Likewise.
10399 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10404 * infrun.c (handle_inferior_event): Don't proceed through
10405 shared library trampolines if stepping at the machine
10410 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10415 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10416 (sh_stub_unwind_sniffer): New functions.
10417 (sh_stub_unwind): New variable.
10418 (sh_gdbarch_init): Wire everything.
10422 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10423 (linux_nat_post_attach_wait): Adjust to use
10424 linux_proc_pid_is_stopped.
10425 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10426 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10427 based on pid_is_stopped from both linux-nat.c and
10428 gdbserver/linux-low.c, and renamed.
10432 * remote.c (remote_watchpoint_addr_within_range): New function.
10433 (init_remote_ops): Use it.
10437 * target.h (target_watchpoint_addr_within_range): Document macro.
10441 * stack.c (set_last_displayed_sal): Issue internal_error instead
10442 of warning, and issue it after clearing the last displayed sal.
10447 * breakpoint.c (until_break_command): Install breakpoints after
10448 all frame manipulations.
10452 * remote.c (remote_supports_cond_breakpoints): New forward
10454 (remote_add_target_side_condition): New function.
10455 (remote_insert_breakpoint): Add target-side breakpoint
10456 conditional if supported.
10457 (remote_insert_hw_breakpoint): Likewise.
10458 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10461 * target.c (update_current_target): Inherit
10462 to_supports_evaluation_of_breakpoint_conditions.
10463 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10465 * target.h (struct target_ops)
10466 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10467 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10469 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10470 (condition_evaluation_both, condition_evaluation_auto,
10471 condition_evaluation_host, condition_evaluation_target,
10472 condition_evaluation_enums, condition_evaluation_mode_1,
10473 condition_evaluation_mode): New static globals.
10474 (translate_condition_evaluation_mode): New function.
10475 (breakpoint_condition_evaluation_mode): New function.
10476 (gdb_evaluates_breakpoint_condition_p): New function.
10477 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10478 (mark_breakpoint_modified): New function.
10479 (mark_breakpoint_location_modified): New function.
10480 (set_condition_evaluation_mode): New function.
10481 (show_condition_evaluation_mode): New function.
10482 (bp_location_compare_addrs): New function.
10483 (get_first_location_gte_addr): New helper function.
10484 (set_breakpoint_condition): Free condition bytecode if locations
10485 has become unconditional. Call mark_breakpoint_modified (...).
10486 (condition_command): Call update_global_location_list (1) for
10488 (breakpoint_xfer_memory): Use is_breakpoint (...).
10489 (is_breakpoint): New function.
10490 (parse_cond_to_aexpr): New function.
10491 (build_target_condition_list): New function.
10492 (insert_bp_location): Handle target-side conditional
10493 breakpoints and call build_target_condition_list (...).
10494 (update_inserted_breakpoint_locations): New function.
10495 (insert_breakpoint_locations): Handle target-side conditional
10497 (bpstat_check_breakpoint_conditions): Add comment.
10498 (bp_condition_evaluator): New function.
10499 (bp_location_condition_evaluator): New function.
10500 (print_breakpoint_location): Print information on where the condition
10502 (print_one_breakpoint_location): Likewise.
10503 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10504 breakpoint location.
10505 (force_breakpoint_reinsertion): New functions.
10506 (update_global_location_list): Handle target-side breakpoint
10508 Reinsert locations that are already inserted if conditions have
10510 (bp_location_dtor): Free agent expression bytecode.
10511 (disable_breakpoint): Call mark_breakpoint_modified (...).
10512 Call update_global_location_list (...) with parameter 1 for breakpoints.
10513 (disable_command): Call mark_breakpoint_location_modified (...).
10514 Call update_global_location_list (...) with parameter 1 for breakpoints.
10515 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10516 (enable_command): mark_breakpoint_location_modified (...).
10517 (_initialize_breakpoint): Update documentation and add
10518 condition-evaluation breakpoint subcommand.
10520 * breakpoint.h: Include ax.h.
10521 (condition_list): New data structure.
10522 (condition_status): New enum.
10523 (bp_target_info) <cond_list>: New field.
10524 (bp_location) <condition_changed, cond_bytecode>: New fields.
10525 (is_breakpoint): New prototype.
10529 * remote.c (remote_state) <cond_breakpoints>: New field.
10530 (PACKET_ConditionalBreakpoints): New enum.
10531 (remote_cond_breakpoint_feature): New function.
10532 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10533 (remote_supports_cond_breakpoints): New function.
10534 (_initialize_remote): Add new packet configuration for
10535 target-side conditional breakpoints.
10539 * NEWS: Mention target-side conditional breakpoint support,
10540 new condition-evaluation breakpoint subcommand and remote
10545 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10550 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10551 (after_prologue): Remove.
10555 * jv-valprint.c (java_val_print): Remove dead code.
10559 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10560 known_tasks_element and known_tasks_length fields.
10561 (read_known_tasks_array): Change argument type. Use pointer type
10562 and number of elements from DATA. Adjust.
10563 (read_known_tasks_list): Likewise.
10564 (get_known_tasks_addr): Remove.
10565 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10566 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10567 type and array length. Merge former get_known_tasks_addr code.
10572 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10573 it after set_momentary_breakpoint.
10578 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10582 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10583 (find_slot_in_mapped_hash): Likewise.
10588 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10589 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10590 * configure: Regenerate.
10595 * ia64-tdep.c: Do not include libunwind-ia64.h.
10596 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10597 Include libunwind-ia64.h instead of libunwind.h.
10598 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10599 for libunwind.h existence.
10600 * configure, config.in: Regenerate.
10604 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10605 instead of value_rtti_target_type.
10606 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10607 instead of value_rtti_target_type.
10608 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10609 value_rtti_target_type.
10610 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10611 (value_rtti_target_type): Rename to ...
10612 (value_rtti_indirect_type): ... here and make it indirect. Update
10614 * value.c (readjust_indirect_value_type): New function.
10615 (coerce_ref): Support for enclosing type setting for references
10616 with readjust_indirect_value_type.
10617 * value.h (readjust_value_type): New declaration.
10618 (value_rtti_target_type): Rename to ...
10619 (value_rtti_indirect_type): ... here.
10623 * MAINTAINERS (Write After Approval): Add myself to the list.
10627 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10628 Rename objfile_p_char parameter to objfilep.
10629 (build_objfile_section_table): Result is now void. All callers
10631 * objfiles.h (struct objfile): Tweak comments, whitespace.
10632 (build_objfile_section_table): Update.
10634 * elfread.c (elf_symfile_segments): Fix warning text.
10639 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10640 particular set of file names once.
10641 (dw2_map_symbol_filenames): Likewise.
10646 * main.c (write_files): Remove the declaration.
10647 (external_editor_command): Move the declaration ...
10648 [GDBTK] (external_editor_command): ... here. Fix the comment.
10652 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10657 * darwin-nat.h (enum darwin_msg_state): Add comments.
10661 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10666 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10667 between function description and implementation.
10672 * python/py-event.c (event_object_getset): New global.
10673 (event_object_type): Reference it.
10674 * python/py-type.c (field_object_getset): New global.
10675 (field_object_type): Reference it.
10676 * python/python-internal.h (gdb_py_generic_dict): Declare.
10677 * python/py-utils.c (gdb_py_generic_dict): New function.
10681 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10685 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10686 TYPE_CALLING_CONVENTION annotation.
10690 * MAINTAINERS: Add rx to target ISA section.
10691 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10692 (ALLDEPFILES): Add rx-tdep.c.
10696 * symfile.c (symbol_file_add_main_1): Use inferior's
10698 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10699 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10701 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10703 (follow_exec): Use inferior's symfile_flags.
10704 * inferior.h (struct inferior) <symfile_flags>: New field.
10709 * remote-sim.c (gdbsim_create_inferior): Call error() when
10710 sim_create_inferior() fails.
10714 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10719 * thread.c (struct current_thread_cleanup) <was_removable>: New
10721 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10722 (make_cleanup_restore_current_thread): Initialize new field.
10726 * MAINTAINERS: Add rl78 to target ISA section.
10727 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10728 (ALLDEPFILES): Add rl78-tdep.c.
10729 * NEWS: Mention rl78 as a new target.
10733 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10735 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10740 * infcmd.c (registers_info): Print just the current register's
10745 * python/py-symbol.c (sympy_value): Use _().
10749 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10750 output to be like native targets'.
10751 (remote_pid_to_str): Special case the null ptid.
10755 * NEWS: Mention enable count command.
10756 * breakpoint.h (struct breakpoint): New field enable_count.
10757 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10758 (enable_breakpoint): Add arg to call.
10759 (struct disp_data): New struct.
10760 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10761 (do_map_enable_once_breakpoint): Create a struct and pass it.
10762 (do_map_enable_delete_breakpoint): Ditto.
10763 (do_map_enable_count_breakpoint): New function.
10764 (enable_count_command): New function.
10765 (bpstat_stop_status): Decrement enable_count.
10766 (print_one_breakpoint_location): Report enable count.
10767 (_initialize_breakpoint): Add enable count command.
10771 * rl78-tdep.c (reggroups.h): Include.
10772 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10773 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10774 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10775 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10776 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10777 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10778 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10779 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10780 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10781 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10782 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10783 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10784 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10785 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10786 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10787 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10788 beginning of register list.
10789 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10790 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10791 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10792 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10793 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10794 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10795 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10796 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10797 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10798 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10799 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10800 the pseudo registers. Rearrange other pseudo registers too so
10801 that the bank registers appear at the end.
10802 (rl78_register_type): Account for the fact that the byte sized
10803 bank registers are now pseudo-registers.
10804 (rl78_register_name): Rearrange the register name array. Make
10805 initial set of raw banked registers inaccessible.
10806 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10807 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10808 case for copying bytes back and forth between raw and pseudo
10809 versions of the banked registers. Update other cases to reflect
10811 (rl78_return_value): Update to account for changed names of
10813 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10814 rl78_register_sim_regno().
10818 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10819 the name parameter being passed to find_pc_partial_function().
10823 * MAINTAINERS: Step down from being ia64 target maintainer.
10827 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10828 compilation warning.
10832 Fix crash on loaded shlibs without loaded exec_bfd.
10833 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10834 (set_section_command): Replace exec_bfd by p->bfd.
10838 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10839 when we have a C++ qualified name.
10843 * inferior.c (inferior_pid_to_str): New.
10844 (print_inferior, inferior_command): Use it.
10848 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10850 * configure: Regenerate.
10854 * linespec.c (decode_line_internal): Fix comment correctness.
10859 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10860 * amd64bsd-nat.c: Add support for debug registers (adapted from
10862 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10863 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10864 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10865 (amd64bsd_dr_get_control): New functions.
10866 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10867 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10868 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10869 watchpoints initialization.
10870 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10874 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10876 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10880 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10884 * language.h (symbol_name_cmp_ftype): Renames
10885 symbol_name_match_p_ftype.
10886 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10887 la_get_symbol_name_match_p.
10888 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10889 ada_get_symbol_name_match_p. Update comment.
10890 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10891 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10892 Renames symbol_name_match_p. Update field type.
10893 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10894 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10895 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10896 "la_get_symbol_name_cmp" in comments.
10897 * language.c: Likewise.
10901 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10903 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10904 (amd64_sol2_gregset32_reg_offs): Likewise.
10908 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10909 of the returned BFD is allocated by GDB.
10914 * python/python-internal.h (frame_object_type): Declare.
10915 * python/py-symbol.c (sympy_needs_frame): New function.
10916 (sympy_value): New function.
10917 (symbol_object_getset): Add "needs_frame".
10918 (symbol_object_methods): Add "value".
10919 * python/py-frame.c (frame_object_type): No longer static.
10924 * python/py-symbol.c (sympy_line): New function.
10925 (symbol_object_getset): Add "line".
10929 * charset.c (find_charset_names): Check 'in' against NULL.
10933 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10934 and fields.name members from char * to const char *. All uses updated.
10935 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10936 from char * to const char *. All uses updated.
10937 (type_name_no_tag): Update.
10938 (lookup_unsigned_typename, lookup_signed_typename): Update.
10939 * gdbtypes.c (type_name_no_tag): Change result type
10940 from char * to const char *. All callers updated.
10941 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10942 name parameter from char * to const char *.
10943 * symtab.h (struct cplus_specific): Change type of demangled_name
10944 member from char * to const char *. All uses updated.
10945 (struct general_symbol_info): Change type of name and
10946 mangled_lang.demangled_name members from char * to const char *.
10948 (symbol_get_demangled_name, symbol_natural_name): Update.
10949 (symbol_demangled_name, symbol_search_name): Update.
10950 * symtab.c (symbol_get_demangled_name): Change result type
10951 from char * to const char *. All callers updated.
10952 (symbol_natural_name, symbol_demangled_name): Ditto.
10953 (symbol_search_name): Ditto.
10954 (completion_list_add_name): Change type of symname,sym_text,
10955 text,word parameters from char * to const char *.
10956 (completion_list_objc_symbol): Change type of sym_text,
10957 text,word parameters from char * to const char *.
10958 * ada-lang.c (find_struct_field): Change type of name parameter
10959 from char * to const char *.
10960 (encoded_ordered_before): Similarly for N0,N1 parameters.
10961 (old_renaming_is_invisible): Similarly for function_name parameter.
10962 (ada_type_name): Change result type from char * to const char *.
10963 All callers updated.
10964 * ada-lang.h (ada_type_name): Update.
10965 * buildsym.c (hashname): Change type of name parameter
10966 from char * to const char *.
10967 * buildsym.h (hashname): Update.
10968 * dbxread.c (end_psymtab): Change type of include_list parameter
10969 from char ** to const char **.
10970 * dwarf2read.c (determine_prefix): Change result type
10971 from char * to const char *. All callers updated.
10972 * f-lang.c (find_common_for_function): Change type of name, funcname
10973 parameters from char * to const char *.
10974 * f-lang.c (find_common_for_function): Update.
10975 * f-valprint.c (list_all_visible_commons): Change type of funcname
10976 parameters from char * to const char *.
10977 * gdbarch.sh (static_transform_name): Change type of name parameter
10978 and result from char * to const char *.
10979 * gdbarch.c: Regenerate.
10980 * gdbarch.h: Regenerate.
10981 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10982 of name parameter from char * to const char *.
10983 * jv-lang.c (java_primitive_type_from_name): Ditto.
10984 (java_demangled_signature_length): Similarly for signature parameter.
10985 (java_demangled_signature_copy): Ditto.
10986 (java_demangle_type_signature): Ditto.
10987 * jv-lang.h (java_primitive_type_from_name): Update.
10988 (java_demangle_type_signature): Update.
10989 * objc-lang.c (specialcmp): Change type of a,b parameters
10990 from char * to const char *.
10991 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10992 from char * to const char *. All callers updated.
10993 * p-lang.h (is_pascal_string_type): Update.
10994 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10995 of name parameter from char * to const char *.
10996 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10997 * utils.c (fprintf_symbol_filtered): Ditto.
10998 * defs.h (fprintf_symbol_filtered): Update.
10999 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11000 * stabsread.h (end_psymtab): Update.
11001 * stack.c (find_frame_funname): Change type of funname parameter
11002 from char ** to const char **.
11003 * stack.h (find_frame_funname): Update.
11004 * typeprint.c (type_print): Change type of varstring parameter
11005 from char * to const char *.
11006 * value.h (type_print): Update.
11007 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11008 from char * to const char *. All callers updated.
11009 (xcoff_end_psymtab): Change type of include_list parameter
11010 from char ** to const char **. All callers updated.
11011 (swap_sym): Similarly for name parameter. All callers updated.
11012 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11014 (process_coff_symbol): Use xstrdup.
11015 * stabsread.c (stabs_method_name_from_physname): Renamed from
11016 update_method_name_from_physname. Change result type from void
11017 to char *. All callers updated.
11018 (read_member_functions): In has_destructor case, store name in objfile
11019 obstack instead of malloc space. In !has_stub case, fix mem leak.
11023 * configure: Rebuild.
11024 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11029 * configure.tgt (rl78-*-elf): New target.
11030 * rl78-tdep.c: New file.
11034 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11035 and continue the loop. Add QUIT statement.
11040 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11041 bfd_lookup_symbol_from_symtab.
11042 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11043 gdb_bfd_lookup_symbol_from_symtab.
11047 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11048 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11049 symbol. Add assertion that sym2 is never NULL.
11053 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11054 "name" parameter to const char ** from char **. All callers updated.
11055 (find_pc_partial_function): Ditto.
11056 (cache_pc_function_name): Change type to const char * from char *.
11057 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11058 (find_pc_partial_function): Update.
11059 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11060 type of "name" parameter to const char * from char *.
11062 * arch-utils.c (generic_in_solib_return_trampoline): Change
11063 type of "name" parameter to const char * from char *.
11064 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11065 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11066 type of "name" parameter to const char * from char *.
11067 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11068 * gdbarch.c: Regenerate.
11069 * gdbarch.h: Regenerate.
11070 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11071 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11072 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11073 type of "name" parameter to const char * from char *.
11074 * skip.c (skip_function_pc): Ditto.
11075 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11076 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11077 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11078 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11079 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11080 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11081 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11082 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11083 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11087 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11088 the current inferior has no execution. Make sure the current
11089 remote process matches gdb's current inferior.
11094 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11100 * symtab.c (lookup_language_this): Set block_found.
11105 * jit.c (struct jit_inferior_data): Rewrite.
11106 (struct jit_objfile_data): New.
11107 (get_jit_objfile_data): New function.
11108 (add_objfile_entry): Update.
11109 (jit_read_descriptor): Return int. Replace descriptor_addr
11110 argument with inf_data. Update. Don't call error.
11111 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11113 (jit_inferior_init): Don't look up descriptor. Don't call error.
11114 (jit_reset_inferior_data_and_breakpoints)
11115 (jit_inferior_created_observer): Remove.
11116 (jit_inferior_exit_hook): Update.
11117 (jit_executable_changed_observer): Remove.
11118 (jit_event_handler): Update.
11119 (free_objfile_data): Reset inferior data if needed.
11120 (_initialize_jit): Update.
11124 * jit.c (bfd_open_from_target_memory): Move higher in file.
11128 * libunwind-frame.c (libunwind_load): Display message if dlopen
11133 * symtab.h (symbol_found_callback_ftype): New typedef.
11134 (iterate_over_symbols): Use the above.
11135 * symtab.c (iterate_over_symbols): Likewise.
11136 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11137 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11138 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11139 (iterate_name_matcher): Document return values.
11140 (collect_one_symbol): Likewise.
11141 (collect_function_symbols): Likewise.
11142 (collect_symbols): Likewise.
11146 * ada-lang.c (resolve_subexp): Update.
11147 (ada_lookup_symbol_list): Add 'full_search' argument.
11148 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11149 ada_lookup_symbol_list.
11150 (ada_lookup_encoded_symbol): Update.
11151 (get_var_value): Update.
11152 * ada-exp.y (block_lookup): Update.
11153 (write_var_or_type): Update.
11154 (write_name_assoc): Update.
11155 * ada-lang.h (ada_lookup_symbol_list): Update.
11159 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11164 * symtab.h: Remove outdated comment.
11165 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11169 Fix build error in Darwin port.
11170 * i386-darwin-nat.c: Include i386-nat.h.
11174 PR breakpoints/13568:
11175 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11176 argument. Check for recursive includes.
11177 (dwarf_decode_macros): Create an include hash.
11181 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11182 * ppc-linux-tdep.c: Include glibc-tdep.h.
11183 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11184 (powerpc_linux_in_plt_stub): New function.
11185 (powerpc_linux_in_dynsym_resolve_code): New function.
11186 (ppc_skip_trampoline_code): New function.
11187 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11188 Use glibc_skip_solib_resolver.
11192 Code cleanup: Make 1440 bytes of data segment read-only.
11193 * arch-utils.c (endian_enum): Make it const char *const [].
11194 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11196 * breakpoint.c (always_inserted_enums): Likewise.
11197 * cli/cli-cmds.c (script_ext_enums): Likewise.
11198 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11199 enumlist parameter const char *const *.
11200 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11201 const char *const *.
11202 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11203 parameter const char *const *.
11204 * cris-tdep.c (cris_modes): Make it const char *const [].
11205 * filesystem.c (target_file_system_kinds): Likewise.
11206 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11207 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11208 (can_use_displaced_stepping_enum, scheduler_enums)
11209 (exec_direction_names): Likewise.
11210 * language.c (_initialize_language): Make the type_or_range_names and
11211 case_sensitive_names variables const char *const [].
11212 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11213 * python/python.c (python_excp_enums): Likewise.
11214 * remote.c (interrupt_sequence_modes): Likewise.
11215 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11216 * serial.c (logbase_enums): Likewise.
11217 * sh-tdep.c (sh_cc_enum): Likewise.
11218 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11220 * symtab.c (multiple_symbols_modes): Likewise.
11221 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11223 * utils.c (internal_problem_modes): Likewise.
11227 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11228 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11233 * configure.ac (with_python): Fix absolute path handling for win32.
11234 * configure: Regenerate.
11238 * symtab.c: Whitespace cleanup, no code changes.
11240 * symtab.c (lookup_symbol_in_language): Improve comment.
11241 (lookup_symbol_aux): Fix comment.
11243 * psymtab.c (add_psymbol_to_list): Result is now "void".
11244 * psympriv.h (add_psymbol_to_list): Update.
11246 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11250 Do not open script filenames twice.
11251 * cli/cli-cmds.c (source_script_from_stream): Pass to
11252 source_python_script also STREAM.
11253 * python/py-auto-load.c (source_section_scripts): Pass to
11254 source_python_script_for_objfile also STREAM.
11255 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11257 * python/python-internal.h (source_python_script_for_objfile): New
11258 parameter file, rename parameter file to filename.
11259 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11260 instead if !_WIN32. Update the function comment.
11261 (source_python_script, source_python_script_for_objfile)
11262 (source_python_script): New parameter file, rename parameter file to
11263 filename. Pass FILENAME to python_run_simple_file.
11264 * python/python.h (source_python_script): New parameter file, rename
11265 parameter file to filename.
11269 * corelow.c (core_has_fake_pid): Delete.
11270 (core_close): Delete references to `core_has_fake_pid'.
11271 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11272 (core_open): Delete references to `core_has_fake_pid'.
11273 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11274 the removed global.
11278 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11279 Remove language parameter from name_matcher. Adjust the comment.
11280 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11281 Remove language parameter.
11282 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11283 * linespec.c (iterate_name_matcher): Likewise.
11284 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11285 name_matcher. Adjust call accordingly.
11286 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11287 (maintenance_check_symtabs): Adjust type of parameter "fun".
11288 * psymtab.h (maintenance_check_symtabs): Likewise.
11292 * language.h (symbol_name_match_p_ftype): New typedef.
11293 (struct language_defn): Replace field la_symbol_name_compare
11294 by la_get_symbol_name_match_p.
11295 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11296 (ada_language_defn): Use it.
11297 * linespec.c (struct symbol_matcher_data): New type.
11298 (iterate_name_matcher): Rewrite.
11299 (iterate_over_all_matching_symtabs): Pass a pointer to
11300 a symbol_matcher_data struct to expand_symtabs_matching
11301 instead of just the lookup name.
11302 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11303 opencl-lang.c, p-lang.c, language.c: Delete field
11304 la_symbol_name_compare, and replace by NULL for new field
11305 la_get_symbol_name_match_p.
11306 * symfile.h (struct quick_symbol_functions): Update comment.
11310 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11316 * solib.c (update_solib_list): Update the program space's
11317 added_solibs and deleted_solibs fields.
11318 * progspace.h (struct program_space) <added_solibs,
11319 deleted_solibs>: New fields.
11320 (clear_program_space_solib_cache): Declare.
11321 * progspace.c (release_program_space): Call
11322 clear_program_space_solib_cache.
11323 (clear_program_space_solib_cache): New function.
11324 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11325 bpstat_stop_status. Use handle_solib_event.
11326 * breakpoint.c: Include gdb_regex.h.
11327 (print_solib_event): New function.
11328 (bpstat_print): Use print_solib_event.
11329 (bpstat_stop_status): Add special case for bp_shlib_event.
11330 (handle_solib_event): New function.
11331 (bpstat_what): Use handle_solib_event.
11332 (struct solib_catchpoint): New.
11333 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11334 (breakpoint_hit_catch_solib, check_status_catch_solib)
11335 (print_it_catch_solib, print_one_catch_solib)
11336 (print_mention_catch_solib, print_recreate_catch_solib): New
11338 (catch_solib_breakpoint_ops): New global.
11339 (catch_load_or_unload, catch_load_command_1)
11340 (catch_unload_command_1): New functions.
11341 (internal_bkpt_check_status): Add special case for
11343 (internal_bkpt_print_it): Use print_solib_event.
11344 (initialize_breakpoint_ops): Initialize
11345 catch_solib_breakpoint_ops.
11346 (_initialize_breakpoint): Register "catch load" and "catch
11348 * breakpoint.h (handle_solib_event): Declare.
11349 * NEWS: Add entry for "catch load" and "catch unload".
11353 * ada-lang.c: Include gdb_vecs.h.
11354 * charset.c: Include gdb_vecs.h.
11355 * tracepoint.h: Include gdb_vecs.h.
11356 * gdb_vecs.h: New file.
11360 * breakpoint.c (breakpoint_hit_catch_fork)
11361 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11362 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11363 * infrun.c (inferior_has_forked, inferior_has_vforked)
11364 (inferior_has_execd, inferior_has_called_syscall): Delete.
11365 (handle_syscall_event): Get syscall_number from the execution
11366 control state's wait status.
11367 (wait_for_inferior): Don't clear syscall_number.
11371 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11372 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11373 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11374 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11376 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11377 false for events other than TARGET_SIGNAL_TRAP.
11378 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11379 Add `ws' parameter.
11380 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11381 events other than TARGET_SIGNAL_TRAP.
11382 (tracepoint_breakpoint_hit): Add `ws' parameter.
11383 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11385 (bpstat_stop_status): Same.
11386 (pc_at_non_inline_function): Same.
11387 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11388 to pass the current event's waitstatus to bpstat_stop_status
11389 and pc_at_non_inline_function.
11394 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11395 Update the function comment for it.
11396 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11397 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11402 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11403 outside `bs->stop' block.
11404 (bpstat_what): Rework bp_shlib_event handling.
11405 (internal_bkpt_check_status): If the breakpoint is a
11406 bp_shlib_event, then set bs->stop and bs->print if
11407 stop_on_solib_events is set.
11411 Delete #if 0'd out code.
11412 * stack.c (print_frame_label_vars): Remove.
11413 (catch_info): Likewise.
11414 (_initialize_stack): Remove "info catch" command.
11415 * NEWS: Mention the above.
11419 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11421 (remote_notice_new_inferior): If the remote end doesn't support
11422 the multiprocess extensions, then the PID is fake.
11423 (add_current_inferior_and_thread): New.
11424 (remote_start_remote): Use it.
11425 (extended_remote_attach_1): Adjust.
11426 (extended_remote_create_inferior_1): Use
11427 add_current_inferior_and_thread.
11431 Fix watchpoints to be specific for each inferior.
11432 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11433 current_program_space.
11434 * i386-nat.c (i386_inferior_data_cleanup): New.
11435 (i386_inferior_data_get): Replace variable inf_data_local by an
11436 inferior_data call.
11437 (i386_use_watchpoints): Initialize i386_inferior_data.
11438 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11439 specific iterate_over_lwps.
11443 Fix watchpoints across inferior fork.
11444 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11445 comment for linux_nat_iterate_watchpoint_lwps.
11446 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11447 linux_nat_iterate_watchpoint_lwps.
11448 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11449 * i386-linux-nat.c (update_debug_registers_callback): Update the
11450 comment for linux_nat_iterate_watchpoint_lwps.
11451 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11452 linux_nat_iterate_watchpoint_lwps.
11453 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11454 * i386-nat.c: Include inferior.h.
11455 (dr_mirror): Remove.
11456 (i386_inferior_data, struct i386_inferior_data)
11457 (i386_inferior_data_get): New.
11458 (i386_debug_reg_state): Use i386_inferior_data_get.
11459 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11460 (i386_insert_watchpoint, i386_remove_watchpoint)
11461 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11462 (i386_remove_hw_breakpoint): New variable state, use
11463 i386_debug_reg_state instead of DR_MIRROR.
11464 * linux-nat.c (delete_lwp): New declaration.
11465 (num_lwps): Move here from downwards.
11466 (delete_lwp_cleanup): New.
11467 (linux_child_follow_fork): Create new child_lp, call
11468 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11470 (num_lwps): Move upwards.
11471 (linux_nat_iterate_watchpoint_lwps): New.
11472 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11473 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11481 * top.c (caution): Rename to ...
11482 (confirm): ... this.
11483 (show_caution): Rename to ...
11484 (show_confirm): ... this.
11485 (quit_cover): Adjust.
11486 (init_main): Adjust.
11487 * top.h (caution): Rename to ...
11488 (confirm): ... this.
11489 * utils.c (internal_vproblem, defaulted_query): Adjust.
11493 * top.c (caution): Update comment.
11494 (execute_command): Don't consider the current value of `caution'.
11498 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11502 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11503 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11504 * target.c (target_fileio_pwrite): Remove buffer address from
11506 (target_fileio_pread): Likewise.
11510 * NEWS: Document remote "info proc" and "generate-core-file".
11514 * gdbarch.sh (find_memory_regions): New callback.
11515 * gdbarch.c, gdbarch.h: Regenerate.
11517 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11518 callback before falling back to target method.
11520 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11521 (linux_target_install_ops): No longer install it.
11523 * linux-tdep.c (linux_find_memory_regions): New function.
11524 (linux_init_abi): Install it.
11528 * gdbarch.sh (make_corefile_notes): New architecture callback.
11529 * gdbarch.c: Regenerate.
11530 * gdbarch.h: Likewise.
11532 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11533 before target_make_corefile_notes. If NULL is returned, the
11534 target does not support core file generation.
11536 * linux-nat.c: Include "linux-tdep.h".
11537 (find_signalled_thread, find_stop_signal): Remove.
11538 (linux_nat_do_thread_registers): Likewise.
11539 (struct linux_nat_corefile_thread_data): Likewise.
11540 (linux_nat_corefile_thread_callback): Likewise.
11541 (iterate_over_spus): Likewise.
11542 (struct linux_spu_corefile_data): Likewise.
11543 (linux_spu_corefile_callback): Likewise.
11544 (linux_spu_make_corefile_notes): Likewise.
11545 (linux_nat_collect_thread_registers): New function.
11546 (linux_nat_make_corefile_notes): Replace contents by call to
11547 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11548 as native-only callback.
11550 * linux-tdep.h: Include "bfd.h".
11551 (struct regcache): Add forward declaration.
11552 (linux_collect_thread_registers_ftype): New typedef.
11553 (linux_make_corefile_notes): Add prototype.
11554 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11555 "regset.h", and "elf-bfd.h".
11556 (find_signalled_thread, find_stop_signal): New functions.
11557 (linux_spu_make_corefile_notes): Likewise.
11558 (linux_collect_thread_registers): Likewise.
11559 (struct linux_corefile_thread_data): New data structure.
11560 (linux_corefile_thread_callback): New funcion.
11561 (linux_make_corefile_notes): Likewise.
11562 (linux_make_corefile_notes_1): Likewise.
11563 (linux_init_abi): Install it.
11567 * gdbarch.sh (info_proc): New callback.
11568 * gdbarch.c, gdbarch.h: Regenerate.
11570 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11571 before falling back to the target info_proc callback.
11573 * linux-nat.c: Do not include "cli/cli-utils.h".
11574 (linux_nat_info_proc): Remove.
11575 (linux_target_install_ops): No longer install it.
11577 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11578 (read_mapping): New function.
11579 (linux_info_proc): Likewise.
11580 (linux_init_abi): Install it.
11584 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11585 * infcmd.c: (info_proc_cmd_1): New function.
11586 (info_proc_cmd): New function, moved here from equivalent routine
11587 orignally in linux-nat.c.
11588 (info_proc_cmd_mappings): Likewise.
11589 (info_proc_cmd_stat): Likewise.
11590 (info_proc_cmd_status): Likewise.
11591 (info_proc_cmd_cwd): Likewise.
11592 (info_proc_cmd_cmdline): Likewise.
11593 (info_proc_cmd_exe): Likewise.
11594 (info_proc_cmd_all): Likewise.
11595 (_initialize_infcmd): Install "info proc" command and subcommands.
11597 * target.h (struct target_ops): Add to_info_proc.
11598 (target_info_proc): Add prototype.
11599 * target.c (target_info_proc): New function.
11601 * procfs.c (procfs_info_proc): Add prototype.
11602 (info_proc_cmd): Rename into ...
11603 (procfs_info_proc): ... this. Update argument types as appropriate
11604 for a to_info_proc implementation. Handle "what" argument.
11605 (procfs_target): Install procfs_info_proc.
11606 (_initialize_procfs): No longer install "info proc" command.
11608 * linux-nat.c: (enum info_proc_what): Remove.
11609 (linux_nat_info_proc_cmd_1): Rename into ...
11610 (linux_nat_info_proc): ... this. Update argument types as appropriate
11611 for a to_info_proc implementation.
11612 (linux_nat_info_proc_cmd): Remove.
11613 (linux_nat_info_proc_cmd_mappings): Likewise.
11614 (linux_nat_info_proc_cmd_stat): Likewise.
11615 (linux_nat_info_proc_cmd_status): Likewise.
11616 (linux_nat_info_proc_cmd_cwd): Likewise.
11617 (linux_nat_info_proc_cmd_cmdline): Likewise.
11618 (linux_nat_info_proc_cmd_exe): Likewise.
11619 (linux_nat_info_proc_cmd_all): Likewise.
11620 (linux_target_install_ops): Install linux_nat_info_proc.
11621 (_initialize_linux_nat): No longer install "info proc" command
11626 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11627 * config.in, configure: Regenerate.
11629 * target.h (struct target_ops): Add to_fileio_readlink.
11630 (target_fileio_readlink): Add prototype.
11631 * target.c (target_fileio_readlink): New function.
11633 * inf-child.c: Conditionally include <sys/param.h>.
11634 (inf_child_fileio_readlink): New function.
11635 (inf_child_target): Install it.
11637 * remote.c (PACKET_vFile_readlink): New enum value.
11638 (remote_hostio_readlink): New function.
11639 (init_remote_ops): Install it.
11640 (_initialize_remote): Handle vFile:readlink packet type.
11645 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11646 * config.in, configure: Regenerate.
11648 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11649 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11650 (target_fileio_open): Add prototype.
11651 (target_fileio_pwrite): Likewise.
11652 (target_fileio_pread): Likewise.
11653 (target_fileio_close): Likewise.
11654 (target_fileio_unlink): Likewise.
11655 (target_fileio_read_alloc): Likewise.
11656 (target_fileio_read_stralloc): Likewise.
11658 * target.c: Include "gdb/fileio.h".
11659 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11660 (default_fileio_target): New function.
11661 (target_fileio_open): Likewise.
11662 (target_fileio_pwrite): Likewise.
11663 (target_fileio_pread): Likewise.
11664 (target_fileio_close): Likewise.
11665 (target_fileio_unlink): Likewise.
11666 (target_fileio_close_cleanup): Likewise.
11667 (target_fileio_read_alloc_1): Likewise.
11668 (target_fileio_read_alloc): Likewise.
11669 (target_fileio_read_stralloc): Likewise.
11671 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11672 <fcntl.h>, and <unistd.h>.
11673 (inf_child_fileio_open_flags_to_host): New function.
11674 (inf_child_errno_to_fileio_error): Likewise.
11675 (inf_child_fileio_open): Likewise.
11676 (inf_child_fileio_pwrite): Likewise.
11677 (inf_child_fileio_pread): Likewise.
11678 (inf_child_fileio_close): Likewise.
11679 (inf_child_fileio_unlink): Likewise.
11680 (inf_child_target): Install to_fileio routines.
11682 * remote.c (init_remote_ops): Install to_fileio routines.
11687 * remote.c (remote_multi_process_p): Only check for multi-process
11688 protocol feature, do not check for extended protocol.
11689 (remote_supports_multi_process): Check for extended protocol here.
11690 (set_general_process): Likewise.
11691 (extended_remote_kill): Likewise.
11692 (remote_pid_to_str): Likewise.
11693 (remote_query_supported): Always query multiprocess mode.
11698 * inferior.h (struct inferior): Add fake_pid_p.
11699 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11700 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11701 magic_null_ptid since the remote side doesn't provide a real PID.
11705 * NEWS: Combine the two Python sections.
11709 * target.h (target_close): Update comment on the target's unpush state.
11713 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11714 linux_nat_async directly instead of going through the target
11716 * target.c (unpush_target): Close target after unpushing it, not
11721 * mdebugread.c (sort_blocks): Replace integer constants with ones
11722 derived from FIRST_LOCAL_BLOCK.
11728 * symfile.c (find_separate_debug_file): New function.
11729 (terminate_after_last_dir_separator): Likewise.
11730 (find_separate_debug_file_by_debuglink): Also try realpath.
11731 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11732 * configure: Regenerate.
11733 * config.in: Regenerate.
11737 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11738 (main.o): Remove rule.
11739 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11740 (--with-sysroot): Rewrite.
11741 * configure: Regenerate.
11742 * config.in: Regenerate.
11746 * parse.c (initialize_expout): New function.
11747 (reallocate_expout): Likewise.
11748 (parse_exp_in_context): Use `initialize_expout' and
11749 `reallocate_expout' when appropriate.
11753 * record.c (struct record_breakpoint, record_breakpoint_p)
11754 (record_breakpoints): New.
11755 (record_insert_breakpoint, record_remove_breakpoint): Manage
11756 record breakpoints list. Only remove breakpoints from the
11757 inferior if they had been inserted there in the first place.
11761 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11762 if we know we don't have a file name to look for.
11766 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11767 the frame's stop reason is UNWIND_UNAVAILABLE.
11771 Fix compilation error.
11772 * m2-exp.y (yyerror): Use ANSI C prototype.
11776 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11777 (growbuf_by_size): Likewise.
11778 (yyerror): Likewise.
11779 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11780 (modblock): Remove variable (was #if 0'ed).
11781 (parse_number): Convert prototype from K&R to ANSI C.
11782 (yyerror): Likewise.
11783 * objc-exp.y (parse_number): Likewise.
11784 (yyerror): Likewise.
11785 (yylex): Remove #if 0'ed code.
11786 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11787 (yyerror): Likewise.
11792 * symtab.h (compare_filenames_for_search): Declare.
11793 * symtab.c (compare_filenames_for_search): New function.
11794 (iterate_over_some_symtabs): Use it.
11795 * symfile.h (struct quick_symbol_functions)
11796 <map_symtabs_matching_filename>: Change spec.
11797 * psymtab.c (partial_map_symtabs_matching_filename): Use
11798 compare_filenames_for_search. Update for new spec.
11799 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11800 compare_filenames_for_search. Update for new spec.
11801 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11806 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11807 (struct main_type) <flag_flag_enum>: New field.
11808 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11809 * NEWS: Add entries.
11810 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11812 * python/lib/gdb/printing.py (_EnumInstance): New class.
11813 (FlagEnumerationPrinter): Likewise.
11817 * breakpoint.c (create_sals_from_address_default): New function.
11818 (create_breakpoints_sal_default): Likewise.
11819 (decode_linespec_default): Likewise.
11820 (is_marker_spec): Removed.
11821 (strace_marker_p): New function.
11822 (init_breakpoint_sal): Using `strace_marker_p' instead of
11824 (create_breakpoint): Call method `create_sals_from_address' from
11825 breakpoint_ops, replacing code that created SALs conditionally
11826 on the type of the breakpoint. Call method `create_breakpoints_sal',
11827 replacing code that created breakpoints conditionally on the type
11829 (base_breakpoint_create_sals_from_address): New function.
11830 (base_breakpoint_create_breakpoints_sal): Likewise.
11831 (base_breakpoint_decode_linespec): Likewise.
11832 (base_breakpoint_ops): Add methods
11833 `base_breakpoint_create_sals_from_address',
11834 `base_breakpoint_create_breakpoints_sal' and
11835 `base_breakpoint_decode_linespec'.
11836 (bkpt_create_sals_from_address): New function.
11837 (bkpt_create_breakpoints_sal): Likewise.
11838 (bkpt_decode_linespec): Likewise.
11839 (tracepoint_create_sals_from_address): Likewise.
11840 (tracepoint_create_breakpoints_sal): Likewise.
11841 (tracepoint_decode_linespec): Likewise.
11842 (strace_marker_create_sals_from_address): Likewise.
11843 (strace_marker_create_breakpoints_sal): Likewise.
11844 (strace_marker_decode_linespec): Likewise.
11845 (strace_marker_breakpoint_ops): New variable.
11846 (addr_string_to_sals): Remove `marker_spec'. Call method
11847 `decode_linespec' from breakpoint_ops, replacing code that decoded
11848 an address string into a SAL. Use `strace_marker_p' instead of
11850 (strace_command): Decide whether we are dealing with a static
11851 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11852 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11853 * breakpoint.h (linespec_result, linespec_sals): New forward
11855 (breakpoint_ops) <create_sals_from_address>,
11856 <create_breakpoints_sal>, <decode_linespec>: New methods.
11860 * NEWS: Update text for "maint set python print-stack".
11861 It is deprecated in gdb 7.4 and deleted in 7.5.
11865 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11866 including curses.h.
11870 * configure: Regenerate.
11871 * config.in: Regenerate.
11876 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11877 (ANONYMOUS_UNION_NAME): Define.
11878 (is_path_expr_parent): New function.
11879 (get_path_expr_parent): New function.
11880 (is_anonymous_child): New function.
11881 (create_child_with_value): If the child is anonymous and without
11882 a name, assign an object name to it.
11883 (c_describe_child): Use get_path_expr_parent to determine
11884 the parent expression.
11885 If there field represents an anonymous struct or union and
11886 has no name, set an appropriate display name and expression.
11887 (cplus_describe_child): Likewise.
11891 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11892 available when %ebp is found to be zero (outermost).
11896 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11897 an internal gdb_static_assert.
11898 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11903 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11904 catch" and "catch throw".
11908 * blockframe.c (block_innermost_frame): Start search from selected
11909 frame, if present, or otherwise the current frame.
11911 * c-exp.y (variable): Update innermost_block for
11912 'block COLONCOLON NAME' clause.
11913 * m2-exp.y (variable): Ditto.
11914 * objc-exp.y (variable): Ditto.
11919 * python/python.c (finish_python_initialization): Set sys.argv.
11923 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11924 "want_line_info". All callers updated.
11925 (dwarf_decode_lines_1): New function.
11926 (handle_DW_AT_stmt_list): Add function comment.
11927 New arg "want_line_info". All callers updated.
11928 (read_file_scope,read_type_unit_scope): Move comment from
11929 handle_DW_AT_stmt_list to here.
11933 Fix regression after libiberty/ update for GCC PR 6057 and others.
11934 * c-exp.y (operator) <OPERATOR DELETE>
11935 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11936 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11937 (make_builtin_type, make_name): New variable i, add gdb_assert.
11938 (operator) <OPERATOR NEW>: Update ARGS to 3.
11939 (operator) <OPERATOR DELETE>: Add trailing space.
11940 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11941 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11942 * cp-support.c (cp_canonicalize_string): Check NULL from
11943 cp_comp_to_string, call warning and return.
11947 Fix duplicate .o files after omitting libbfd.a.
11948 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11949 (SFILES): Add corelow.c.
11950 (COMMON_OBS): Add corelow.o.
11951 (ALLDEPFILES): Remove corelow.c.
11952 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11953 * config/alpha/alpha-osf3.mh: Likewise.
11954 * config/alpha/fbsd.mh: Likewise.
11955 * config/arm/nbsdaout.mh: Likewise.
11956 * config/arm/nbsdelf.mh: Likewise.
11957 * config/i386/i386gnu.mh: Likewise.
11958 * config/ia64/hpux.mh: Likewise.
11959 * config/ia64/linux.mh: Likewise.
11960 * config/m32r/linux.mh: Likewise.
11961 * config/m68k/linux.mh: Likewise.
11962 * config/mips/irix5.mh: Likewise.
11963 * config/mips/irix6.mh: Likewise.
11964 * config/pa/hpux.mh: Likewise.
11965 * config/pa/linux.mh: Likewise.
11966 * config/powerpc/aix.mh: Likewise.
11967 * config/sparc/linux.mh: Likewise.
11968 * config/sparc/linux64.mh: Likewise.
11969 * config/sparc/sol2.mh: Likewise.
11970 * config/vax/vax.mh: Likewise.
11971 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11972 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11973 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11974 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11975 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11976 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11977 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11978 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11979 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11980 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11981 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11982 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11983 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11984 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11985 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11986 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11987 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11988 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11989 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11990 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11991 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11992 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11993 corelow.o from gdb_target_obs.
11994 * corefile.c (core_target): Update the comment on NULL value.
11995 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11996 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11997 MATCHES. Drop YUMMY set on NULL.
11998 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11999 reclaim CORE_DATA if it is already NULL.
12003 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12004 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12008 * breakpoint.c (wrapper.h): Don't include.
12012 * Makefile.in (SFILES): Remove wrapper.c.
12013 (HFILES_NO_SRCDIR): Remove wrapper.h.
12014 (COMMON_OBS): Remove wrapper.o.
12015 * cli/cli-interp.c: Don't inlude wrapper.h.
12016 * corelow.c: Likewise.
12017 (core_open): Replace gdb_target_find_new_threads with
12018 TRY_CATCH around target_find_new_threads.
12019 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12020 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12021 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12022 evaluate_expression.
12023 (varobj_set_value): Likewise for evaluate_expression and
12025 (install_new_variable): Likewise for value_fetch_lazy.
12026 (adjust_value_for_child_access): Likewise for value_ind.
12027 (c_describe_child): Likewise for value_subscript and
12029 (c_value_of_root): Likewise for evaluate_expression.
12030 * wrapper.c: Remove.
12031 * wrapper.h: Remove.
12035 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12036 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12037 "abfd" args with "section". All callers updated.
12038 Error checking code moved ...
12039 (error_check_comp_unit_head): ... here. New function.
12040 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12041 Delete arg "abfd". New arg "type_offset". All callers updated.
12042 (create_debug_types_hash_table): Simplify by using
12043 read_and_check_type_unit_head.
12045 * parser-defs.h (namecopy): Delete.
12046 * parse.c (namecopy, namecopy_size): Move into copy_name.
12050 Partially fix duplicate .o files after omitting libbfd.a.
12051 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12052 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12053 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12054 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12055 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12056 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12057 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12061 * MAINTAINERS: Update my email address.
12065 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12066 n_type_units. Rename type_comp_units to all_type_units.
12068 (add_signatured_type_cu_to_table): Renamed from
12069 add_signatured_type_cu_to_list. All callers updated.
12071 * gdbtypes.h (struct cplus_struct_type): Delete member
12072 nfn_fields_total. All uses removed.
12076 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12078 (dwarf2_find_comp_unit): Delete.
12079 (process_psymtab_comp_unit): Make result "void".
12080 Delete args buffer, info_ptr, buffer_size, and replace with
12081 "section". All callers updated.
12082 (dwarf2_build_psymtabs_hard): Simplify.
12087 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12088 before `struct gdb_exception'.
12089 * breakpoint.c (update_global_location_list_nothrow)
12090 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12091 * cp-abi.c (value_rtti_type): Likewise.
12092 * cp-support.c (cp_validate_operator): Likewise.
12093 * infrun.c (insert_exception_resume_breakpoint)
12094 (check_exception_resume, keep_going): Likewise.
12095 * mi-interp.c (mi_breakpoint_created)
12096 (mi_breakpoint_modified): Likewise.
12097 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12098 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12099 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12103 * dwarf2read.c (statement_prologue): Delete, unused.
12105 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12106 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12108 * dwarf2read.c (comp_unit_header): Delete, unused.
12112 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12113 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12117 * infrun.c (normal_stop): Don't skip calling the normal_stop
12118 observers if the thread was doing a multi-step, but stopped for
12119 some reason other than stepping.
12123 * cli/cli-decode.h: Add comments.
12124 (CMD_LIST_AMBIGUOUS): Moved to command.h
12125 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12126 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12127 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12128 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12129 (add_com, add_com_alias, add_info, add_info_alias)
12130 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12132 * command.h: Add and adjust comments.
12133 (CMD_LIST_AMBIGUOUS): Moved here.
12134 (help_cmd, help_cmd_list): Delete declarations.
12138 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12139 All callers updated.
12140 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12141 Replace all arguments with "per_cu". All callers updated.
12143 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12145 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12146 New arg "per_cu". All callers updated.
12148 Delete #if 0'd out code.
12149 * language.c (binop_result_type): Delete.
12150 (simple_type, ordered_type, same_type, integral_type): Delete.
12151 (numeric_type, character_type, string_type, boolean_type): Delete.
12152 (float_type, structured_type): Delete.
12153 * language.h: Update.
12157 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12161 * corefile.c (close_exec_file): Delete.
12162 (reopen_exec_file): Remove commented out code that seems related
12163 to close_exec_file, which is being deleted here.
12164 * inferior.h (close_exec_file): Delete.
12165 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12169 * ada-lang.c: #include "cli/cli-utils.h".
12170 (get_selections): Use skip_spaces.
12171 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12172 (catch_ada_exception_command_split): Use skip_spaces.
12173 (ada_decode_assert_location): Likewise.
12177 * linespec.c (decode_line_internal): Check for C++ or Java
12178 compound constructs only if the current language is C, C++
12186 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12187 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12189 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12190 fall through into AT_ENTRY_POINT.
12191 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12192 DUMMY_ADDR with it.
12193 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12194 PPC_INSN_SIZE skip to 3 times.
12198 * linespec.c (add_minsym): Preserve function descriptors.
12202 * breakpoint.c (all_locations_are_pending): Consider locations
12203 in program spaces executing during startup pending as well.
12207 Copyright year update in most files of the GDB Project.
12211 * copyright.sh: Delete.
12212 * copyright.py: Rewrite.
12216 * gnulib/extra/update-copyright: New file, imported from gnulib.
12220 * README (Copyright and License Notices): New section.
12225 * python/py-value.c (valpy_dereference, valpy_get_address
12226 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12227 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12228 (valpy_absolute, valpy_richcompare): Free intermediate values.
12232 * ada-lang.c: Reformat the copyright notice.
12236 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12237 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12238 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12239 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12240 Revert this part of:
12242 Build gdb directly from *.o files not using libgdb.a.
12243 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12247 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12248 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12249 Reformat the copyright header.
12253 Revert this part of:
12255 Remove the gdbtui binary.
12256 * gdb.c (main): Remove args.interpreter_p initialization.
12257 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12258 * main.h (struct captured_main_args): Remove interpreter_p.
12262 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12266 * top.c (print_gdb_version): Update copyright year.
12270 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12275 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12276 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12278 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12279 fall through into AT_ENTRY_POINT.
12280 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12281 DUMMY_ADDR with it.
12282 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12283 PPC_INSN_SIZE skip to 3 times.
12287 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12289 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12293 Build gdb directly from *.o files not using libgdb.a.
12294 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12295 (COMMON_OBS): Remove solib-target.o.
12296 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12297 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12298 (LIBGDB_OBS, libgdb.a): Move it above.
12299 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12300 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12301 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12302 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12303 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12304 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12305 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12306 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12307 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12308 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12309 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12310 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12311 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12312 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12313 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12314 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12315 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12316 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12317 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12318 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12319 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12320 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12321 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12322 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12323 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12324 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12325 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12329 Remove the gdbtui binary.
12330 * .gitignore (/gdbtui): Remove.
12331 * Makefile.in (TUI): Remove.
12332 (SUBDIR_TUI_OBS): Remove tui-main.o.
12333 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12334 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12335 (tui-main.o): Remove.
12336 (all_object_files): Remove tui-main.o.
12337 * NEWS: New note for the gdbtui removal.
12338 * configure: Rebuilt.
12339 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12340 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12341 CONFIG_UNINSTALL respectively.
12342 * gdb.c (main): Remove args.interpreter_p initialization.
12343 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12344 * main.h (struct captured_main_args): Remove interpreter_p.
12345 * tui/tui-main.c: Remove.
12349 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12350 (dwarf2_physname, read_import_statement): Ditto.
12351 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12352 (process_structure_scope read_subroutine_type): Ditto.
12353 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12354 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12355 (dwarf2_fetch_die_location_block): Ditto.
12356 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12358 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12359 All callers updated.
12360 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12361 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12362 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12364 * dwarf2read.c (load_cu): Move assert to more useful location.
12366 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12367 All callers updated.
12369 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12370 (dwarf2_elf_names): Minor reformat.
12371 (dwarf2_per_cu_data): Tweak comment.
12372 (dwarf2_read_section): Fix comment.
12373 (create_all_comp_units): Fix comment.
12374 (load_full_comp_unit): Fix comment.
12375 (process_full_comp_unit): Fix comment.
12376 (read_signatured_type): Fix comment.
12378 For older changes see ChangeLog-2011.
12384 version-control: never