3 * c-exp.y (enum token_flags): New.
4 (struct token) <cxx_only>: Remove.
6 (tokentab3, tokentab2, ident_tokens): Update.
7 (lex_one_token): Update. Handle FLAG_SHADOW.
11 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
12 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
13 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
14 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
15 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
16 type_exp production where appropriate.
17 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
18 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
19 <UNOP_MEMVAL_TYPE>: New case.
20 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
21 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
22 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
23 <UNOP_MEMVAL_TYPE>: New case.
24 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
25 UNOP_REINTERPRET_CAST>: Update.
26 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
27 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
28 UNOP_REINTERPRET_CAST>: Update.
29 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
30 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
31 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
37 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
38 and case 'var_optional_filename' together.
39 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
40 instead of add_setshow_optional_filename_cmd for setshow command
41 'args'. Set completer for 'set args'.
45 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
46 * common/gdb_vecs.c: New file, contents from utils.c.
47 * common/host-defs.h: New file, contents from defs.h.
48 * utils.h: New file, contents from defs.h.
49 * defs.h: Move all declarations of objects defined in utils.c
50 to utils.h (except QUIT() and related).
51 #include "utils.h", "host-defs.h".
52 * probe.h (probe_p): Move here from gdb_vecs.h.
53 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
54 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
55 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
56 * Makefile.in (SFILES): Add common/gdb_vecs.c.
57 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
58 (COMMON_OBS): Add gdb_vecs.o.
59 (gdb_vecs.o): New rule.
63 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
64 parameter. If non-zero, use SYMNAME as the canonical name
67 (convert_linespec_to_sals): Use add_sal_to_sals for
69 (decode_line_full): No need to "fill in missing canonical names"
70 anymore. Simply make cleanups for the allocated names.
74 * linespec.c (struct linespec): Constify expression,
75 source_filename, function_name, and label_name.
76 (symbol_not_found_error): Make all parameters const.
77 (linespec_parser_delete): No need to check for NULL
78 when using xfree. Cast const char * to char * for xfree.
82 * breakpoint.c (invalid_thread_id_error): New function.
83 (find_condition_and_thread): Use invalid_thread_id_error.
84 (watch_command_1): Likewise.
88 * cc-with-index.sh, cc-with-dwz.sh: Remove.
89 * contrib/cc-with-tweaks.sh: New file.
93 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
94 (locate_dwz_sections): Recognize .gdb_index.
95 (create_cus_from_index_list): New function.
96 (create_cus_from_index): Use it. Handle .dwz data.
97 (read_index_from_section): New function, extracted from
99 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
104 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
105 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
107 (struct dwz_file): New.
108 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
109 (locate_dwz_sections, dwarf2_get_dwz_file)
110 (get_abbrev_section_for_cu): New functions.
111 (error_check_comp_unit_head, read_and_check_comp_unit_head)
112 (read_and_check_type_unit_head): Add abbrev_section argument.
113 (create_debug_types_hash_table): Update.
114 (init_cutu_and_read_dies): Use proper abbrev section.
115 (init_cutu_and_read_dies_no_follow): Likewise.
116 (set_partial_user): Do nothing if PST==NULL.
117 (read_comp_units_from_section): New function.
118 (create_all_comp_units): Use it.
119 (scan_partial_symbols, partial_die_parent_scope): Update.
120 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
121 (process_imported_unit_die, read_partial_die): Handle .dwz files.
122 (find_partial_die): Add offset_in_dwz argument. Update.
123 (guess_partial_die_structure_name, fixup_partial_die): Update.
124 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
125 DW_FORM_GNU_strp_alt.
126 (read_indirect_string_from_dwz): New function.
127 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
128 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
129 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
130 (follow_die_offset): Add offset_in_dwz argument.
131 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
132 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
133 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
134 Handle new macro forms.
135 (dwarf_decode_macros): Update.
136 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
137 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
138 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
139 (create_debug_types_hash_table): Use correct abbrev section.
140 (get_debug_line_section): New function.
141 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
142 (process_full_comp_unit): Pass 'required' argument to
143 end_symtab_get_static_block.
144 * buildsym.h (end_symtab_get_static_block): Update.
145 * buildsym.c (end_symtab_get_static_block): Add 'required'
147 (end_symtab, end_expandable_symtab): Update.
151 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
153 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
154 (zlib_decompress_section): Remove.
155 (dwarf2_read_section): Use gdb_bfd_map_section.
156 (munmap_section_buffer): Remove.
157 (free_dwo_file, dwarf2_per_objfile_free): Don't use
158 munmap_section_buffer.
159 * gdb_bfd.c: Include zlib.h, sys/mman.h.
160 (struct gdb_bfd_section_data): New.
161 (free_one_bfd_section): New function.
162 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
163 (get_section_descriptor, zlib_decompress_section)
164 (gdb_bfd_map_section): New functions.
165 * gdb_bfd.h (gdb_bfd_map_section): Declare.
169 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
173 * gdb_bfd.c (struct gdb_bfd_data): New.
174 (gdb_bfd_cache): New global.
175 (struct gdb_bfd_cache_search): New.
176 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
177 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
178 * gdb_bfd.h (gdb_bfd_open): Declare.
182 * utils.c (make_cleanup_bfd_unref): Rename from
183 make_cleanup_bfd_close.
184 * defs.h (make_cleanup_bfd_unref): Rename from
185 make_cleanup_bfd_close.
186 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
187 (bfd_openw_with_cleanup): Update.
188 * corelow.c (core_open): Update.
189 * dsrec.c (load_srec): Update.
190 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
191 * remote-m32r-sdi.c (m32r_load): Update.
192 * remote-mips.c (mips_load_srec): Update.
193 (pmon_load_fast): Update.
194 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
196 (darwin_bfd_open): Update.
197 * solib.c (solib_bfd_fopen): Update.
198 * symfile-mem.c (symbol_file_add_from_memory): Update.
199 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
200 (symfile_bfd_open): Update.
201 (generic_load): Update.
205 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
206 (pmon_load_fast): Likewise.
207 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
208 (m32r_upload_command): Likewise.
209 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
210 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
211 Use make_cleanup_bfd_close.
215 * symfile.c (symfile_bfd_open): Don't copy name. Call
216 gdb_bfd_stash_filename.
217 (load_command): Open the new BFD before freeing the old.
218 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
219 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
220 Call gdb_bfd_stash_filename.
221 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
222 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
223 gdb_bfd_stash_filename.
224 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
226 * rs6000-nat.c (add_vmap): Don't copy filename. Call
227 gdb_bfd_stash_filename.
228 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
229 * machoread.c (macho_add_oso_symfile): Call
230 gdb_bfd_stash_filename.
231 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
232 gdb_bfd_stash_filename.
233 (macho_check_dsym): Don't copy filename. Call
234 gdb_bfd_stash_filename.
235 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
236 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
237 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
238 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
239 * exec.c (exec_close): Don't free the BFD's filename.
240 (exec_file_attach): Don't copy the filename. Call
241 gdb_bfd_stash_filename.
242 * corelow.c (core_close): Don't free the BFD's filename.
243 (core_open): Call gdb_bfd_stash_filename.
244 * corefile.c (reopen_exec_file): Remove #if 0 code.
245 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
247 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
251 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
253 (free_dwo_file): Use gdb_bfd_unref.
254 * cli/cli-dump.c: Include gdb_bfd.h.
255 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
256 (bfd_openr_with_cleanup): Likewise.
257 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
259 * utils.c: Include gdb_bfd.h.
260 (do_bfd_close_cleanup): Use gdb_bfd_unref.
261 * symfile.c: Include gdb_bfd.h.
262 (separate_debug_file_exists): Use gdb_bfd_unref.
263 (bfd_open_maybe_remote): Use gdb_bfd_ref.
264 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
265 (generic_load): Use gdb_bfd_ref.
266 (reread_symbols): Use gdb_bfd_unref.
267 * symfile-mem.c: Include gdb_bfd.h.
268 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
269 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
270 * solib.c: Include gdb_bfd.h.
271 (solib_bfd_fopen): Use gdb_bfd_ref.
272 (solib_bfd_open): Use gdb_bfd_unref.
273 (free_so_symbols): Use gdb_bfd_unref.
274 (reload_shared_libraries_1): Use gdb_bfd_unref.
275 * solib-spu.c: Include gdb_bfd.h.
276 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
277 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
279 * solib-frv.c: Include gdb_bfd.h.
280 (enable_break2): Use gdb_bfd_unref.
281 * solib-dsbt.c: Include gdb_bfd.h.
282 (enable_break2): Use gdb_bfd_unref.
283 * solib-darwin.c: Include gdb_bfd.h.
284 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
286 (darwin_bfd_open): Use gdb_bfd_unref.
287 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
288 * remote-mips.c: Include gdb_bfd.h.
289 (mips_load_srec): Use gdb_bfd_ref.
290 (pmon_load_fast): Use gdb_bfd_ref.
291 * remote-m32r-sdi.c: Include gdb_bfd.h.
292 (m32r_load): Use gdb_bfd_ref.
293 * record.c: Include gdb_bfd.h.
294 (record_save_cleanups): Use gdb_bfd_unref.
295 (cmd_record_save): Use gdb_bfd_unref.
296 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
298 * objfiles.h (gdb_bfd_close_or_warn): Remove.
299 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
300 * objfiles.c: Include gdb_bfd.h.
301 (free_objfile): Use gdb_bfd_unref.
302 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
304 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
305 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
306 (macho_check_dsym): Likewise.
307 * m32r-rom.c: Include gdb_bfd.h.
308 (m32r_load): Use gdb_bfd_ref.
309 (m32r_upload_command): Use gdb_bfd_ref.
310 * jit.c: Include gdb_bfd.h.
311 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
312 * gdb_bfd.h: New file.
313 * gdb_bfd.c: New file.
314 * gcore.c: Include gdb_bfd.h.
315 (create_gcore_bfd): Use gdb_bfd_ref.
316 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
317 (gcore_command): Use gdb_bfd_unref.
318 * exec.c: Include gdb_bfd.h.
319 (exec_close): Use gdb_bfd_unref.
320 (exec_close_1): Use gdb_bfd_unref.
321 (exec_file_attach): Use gdb_bfd_ref.
322 * elfread.c: Include gdb_bfd.h.
323 (build_id_verify): Use gdb_bfd_unref.
324 * dsrec.c: Include gdb_bfd.h.
325 (load_srec): Use gdb_bfd_ref.
326 * corelow.c: Include gdb_bfd.h.
327 (core_close): Use gdb_bfd_unref.
328 (core_open): Use gdb_bfd_ref.
329 * bfd-target.c: Include gdb_bfd.h.
330 (target_bfd_xclose): Use gdb_bfd_unref.
331 (target_bfd_reopen): Use gdb_bfd_ref.
332 * Makefile.in (SFILES): Add gdb_bfd.c.
333 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
334 (COMMON_OBS): Add gdb_bfd.o.
338 * breakpoint.c (find_condition_and_thread): Initialize
340 (create_breakpiont): find_condition_and_thread will now
341 initialize COND_STRING, THREAD, and REST (and TASK).
342 (addr_string_to_sals): Likewise.
346 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
347 Pull the single step breakpoints out of the target.
351 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
352 * stap-probe.c (compile_probe_arg): Likewise.
356 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
357 (elf_compile_to_ax): Likewise.
358 * infrun.c (insert_exception_resume_from_probe): Likewise.
359 (check_exception_resume): Remove `objfile' variable.
360 * probe.c (find_probe_by_pc): Remove `objfile' argument.
361 (struct probe_and_objfile, probe_and_objfile_s): Delete.
362 (collect_probes): Adjust return value to `VEC (probe_p) *'.
363 (compare_entries): Rename to...
364 (compare_probes): ...this. Adjust function to work with
365 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
367 (gen_ui_out_table_header_info): Adjust `probes' argument to be
369 (print_ui_out_info): Adjust argument to be `struct probe *'.
370 (info_probes_for_ops): Adjust internal computations to use
372 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
373 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
374 gen_info_probes_table_values>: Remove `objfile' argument.
375 (struct probe) <objfile>: New field.
376 (find_probe_by_pc): Remove `objfile' argument.
377 * stap-probe.c (stap_parse_probe_arguments): Likewise.
378 (stap_get_probe_argument_count): Likewise.
379 (stap_get_arg): Likewise.
380 (stap_evaluate_probe_argument): Likewise.
381 (stap_compile_to_ax): Likewise.
382 (compile_probe_arg): Refactor not to pass `objfile' anymore.
383 (handle_stap_probe): Fill `objfile' field from `struct probe'.
384 (stap_gen_info_probes_table_header): Remove `objfile' argument.
385 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
386 sym_compile_to_ax>: Likewise.
391 * defs.h (GDB_MI_MSG_WIDTH): New.
392 * ser_base (ser_base_read_error_fd): New function.
393 (do_ser_base_readchar): Poll error file descriptor as well as
395 (generic_readchar): Refactor error handling.
399 * NEWS: Create a new section for the next release branch.
400 Rename the section of the current branch, now that it has
405 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
406 * version.in: Bump version to 7.5.50.20120718-cvs.
410 * linespec.c (linespec_parse_line_offset): Make parameter
416 * f-valprint.c (info_common_command): New variable frame_id.
417 Reinitialize FI form FRAME_ID after each print_variable_and_value.
418 * printcmd.c (print_variable_and_value): Extend function comment.
419 Add comment for invalidated FRAME.
420 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
421 FI form FRAME_ID after each print_frame_local_vars.
422 (struct print_variable_and_value_data): Change frame to frame_id.
423 (do_print_variable_and_value): New variable frame, initialize it from
424 p->frame_id. Add comment for invalidated FRAME.
425 (print_frame_local_vars, print_frame_arg_vars): New function comment.
426 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
427 for invalidated FRAME.
432 * linux-nat.c (linux_nat_detach): Don't unregister from the event
437 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
441 * dwarf2read.c (stmt_list_hash): New struct.
442 (type_unit_group): Embed "per_cu" member, remove pointer.
443 New union member "t", move member "tus" into it, all uses updated.
444 New member "hash", replaces member "line_offset, all uses updated.
445 (quick_file_names): Replace member "offset" with "hash", all uses
447 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
448 (hash_file_name_entry, eq_file_name_entry): Call them.
449 (hash_type_unit_group, eq_type_unit_group): Ditto.
450 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
451 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
452 (dw2_get_file_names): Update.
453 (create_type_unit_group): Replace "per_cu" arg with "cu".
454 All callers updated. Fix "quick" (.gdb_index) handling.
455 (get_type_unit_group): Replace "per_cu" arg with "cu".
457 (build_type_unit_groups): Don't reset tu_stats.
459 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
460 "tab_cur_size". Change member "tab" to be a htab_t.
461 (create_filename_seen_cache): Update.
462 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
463 (filename_seen): Update.
467 * symtab.c (filename_seen): Update comment.
472 * buildsym.c (end_symtab_1): Split it to ...
473 (end_symtab_get_static_block): ... this ...
474 (end_symtab_from_static_block): ... and this function.
475 (end_symtab, end_expandable_symtab): Call them.
476 * buildsym.h (end_symtab_get_static_block)
477 (end_symtab_from_static_block): New declarations.
478 * dwarf2read.c (process_full_comp_unit): New variable static_block.
479 Set its valid CU ranges.
483 * dwarf2loc.c (disassemble_dwarf_expression): Handle
484 DW_OP_GNU_parameter_ref.
488 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
489 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
493 * symtab.c (output_source_filename): Delete unnecessary forward decl.
494 (filename_seen_cache): New struct.
495 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
496 (create_filename_seen_cache): New function.
497 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
498 (filename_seen): Delete arg "first". New arg "cache". All callers
500 (output_source_filename_data): New struct.
501 (output_source_filename): Delete arg "first". New arg "data".
503 (sources_info): Delete local "first". New locals "data", "cleanups".
504 Rewrite to use filename_seen_cache.
505 (add_partial_filename_data): Delete member "first". New member
506 "filename_seen_cache". All uses updated.
507 (make_source_files_completion_list): Rewrite to use
512 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
517 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
518 all_type_unit_groups, type_unit_groups, tu_stats.
519 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
520 All uses updated. Add type_unit_group to union "s".
521 (type_unit_group): New struct.
522 (IS_TYPE_UNIT_GROUP): New macro.
523 (abbrev_table): Delete unused member "section".
524 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
525 (dw2_get_cu): Assert not used with type_unit_group.
526 (dw2_get_primary_cu): New function.
527 (dw2_build_type_unit_groups_reader): New function.
528 (dw2_build_type_unit_groups): New function.
529 (dw2_get_file_names): Assert not called on type units.
530 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
531 Redo loop to iterate over type unit groups instead of type units.
532 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
533 (read_abbrev_offset): New function.
534 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
536 (create_partial_symtab): New function.
537 (process_psymtab_comp_unit_reader): Assert not used with type units.
538 Call create_partial_symtab.
539 (process_psymtab_type_unit): Delete.
540 (hash_type_unit_group, eq_type_unit_group): New functions.
541 (allocate_type_unit_groups_table): New function.
542 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
543 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
544 (create_type_unit_group, get_type_unit_group): New functions.
545 (tu_abbrev_offset): New struct.
546 (sort_tu_by_abbrev_offset): New function.
547 (add_type_unit_group_to_table): New function.
548 (build_type_unit_groups): New function.
549 (build_type_psymtabs_reader): New function.
550 (build_type_psymtab_dependencies): New function.
551 (build_type_psymtabs): Rewrite.
552 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
553 is seen in a type unit.
554 (process_queue): Move symtab expansion debugging printfs here.
555 Call process_full_type_unit for type units.
556 (compute_symtab_includes): Assert not called for type units.
557 (process_cu_includes): Don't call compute_symtab_includes for
559 (process_full_type_unit): New function.
560 (process_imported_unit_die): Flag an error if called for type units.
561 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
562 updated. Assert not called for type units.
563 (read_file_scope): Call dwarf2_start_symtab.
564 (setup_type_unit_groups): New function.
565 (read_type_unit_scope): Rewrite.
566 (abbrev_table_read_table): Initialize abbrev_table->offset.
567 (abbrev_table_free_cleanup): New function.
568 (dwarf2_start_symtab): New function.
569 (load_full_type_unit): Assert not called for type unit groups.
570 * buildsym.c (finish_block_internal): New arg "expandable".
572 (start_symtab): Move most contents to ...
573 (restart_symtab): ... here. New function.
574 (reset_symtab_globals): New function.
575 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
576 Call reset_symtab_globals.
577 (end_symtab, end_expandable_symtab): New functions.
578 (set_missing_symtab, augment_type_symtab): New functions.
579 * buildsym.h (end_expandable_symtab): Declare.
580 (augment_type_symtab, restart_symtab): Declare.
581 * psympriv.h (struct partial_symtab): New member "anonymous".
582 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
584 (read_psymtabs_with_filename): Ditto.
585 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
586 (expand_symtabs_matching_via_partial): Ditto.
587 (dump_psymtab): Update.
588 * dictionary.c (dict_add_pending): New function.
589 * dictionary.h (dict_add_pending): Declare.
593 * buildsym.c (start_subfile): Remove unnecessary check for
596 * psymtab.c (allocate_psymtab): Use host_address_to_string.
598 * dwarf2read.c (load_full_type_unit): Simplify.
600 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
601 to struct signatured_type **. All uses updated.
603 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
608 * c-exp.y (check_parameter_typelist): New function.
609 (parameter_typelist): Call it.
610 * eval.c (make_params): Handle '(void)' case.
611 * gdbtypes.c (lookup_function_type_with_arguments): Handle
616 * common/linux-ptrace.c: Include gdb_assert.h.
617 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
618 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
620 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
622 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
623 * linux-nat.c (linux_child_post_attach)
624 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
628 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
629 nptl <2.7 bug workaround for core files.
633 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
635 (save_siginfo): Remove.
636 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
638 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
639 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
640 * linux-nat.h (struct lwp_info): Remove field siginfo.
644 Code cleanup for the next patch.
645 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
646 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
648 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
649 (ia64_linux_stopped_data_address):
650 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
652 * linux-nat.h (linux_nat_get_siginfo): Likewise.
653 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
654 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
660 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
661 Increase buffer sizes to 2x we need, not just 2x of the previous size.
665 * c-exp.y (DOTDOTDOT): New token.
666 (func_mod, exp): Use parameter_typelist.
667 (parameter_typelist): New production.
668 (tokentab3): Add "..." token.
669 * eval.c (make_params): Handle varargs.
670 * gdbtypes.c (lookup_function_type_with_arguments): Handle
676 * c-exp.y (%union) <tvec>: Change type.
677 (func_mod): Now uses <tvec> type.
678 (exp): Update for tvec change.
679 (direct_abs_decl): Push the typelist.
680 (func_mod): Return a typelist.
681 (nonempty_typelist): Update for tvec change.
682 * gdbtypes.c (lookup_function_type_with_arguments): New function.
683 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
684 * parse.c (pop_type_list): New function.
685 (push_typelist): New function.
686 (follow_types): Handle tp_function_with_arguments.
687 * parser-defs.h (type_ptr): New typedef. Define a VEC.
688 (enum type_pieces) <tp_function_with_arguments>: New constant.
689 (union type_stack_elt) <typelist_val>: New field.
690 (push_typelist): Declare.
694 * c-exp.y (%union) <type_stack>: New field.
695 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
696 (ptr_operator_ts): New production.
698 * parse.c (type_stack_reserve): New function.
699 (check_type_stack_depth): Use it.
700 (pop_type_stack, append_type_stack, push_type_stack)
701 (get_type_stack, type_stack_cleanup): New functions.
702 (follow_types): Handle tp_type_stack.
703 (_initialize_parse): Simplify initialization.
704 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
706 (union type_stack_elt) <stack_val>: New field.
707 (get_type_stack, append_type_stack, push_type_stack)
708 (type_stack_cleanup): Declare.
712 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
714 (struct type_stack): New.
715 * parse.c (type_stack, type_stack_size, type_stack_depth):
717 (type_stack): New global.
718 (parse_exp_in_context, check_type_stack_depth)
719 (insert_into_type_stack, insert_type, push_type, push_type_int)
720 (insert_type_address_space, pop_type, pop_type_int)
721 (_initialize_parse): Update.
725 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
730 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
735 * cp-valprint.c (cp_print_value): Replace potentially unsafe
736 alloca with xmalloc/xfree.
740 * MAINTAINERS (Write After Approval): Add myself to the list.
744 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
748 * ax-gdb.c (cli/cli-utils.h): New include.
750 (agent_eval_command_one): New function.
751 (agent_command_1): Ditto.
752 (agent_command): Call function agent_command_1.
753 (agent_eval_command): Ditto.
754 (_initialize_ax_gdb): Change help for "maint agent"
755 and "maint agent-eval".
759 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
760 * cli/cli-utils.c (check_for_argument): New function.
761 * cli/cli-utils.h (check_for_argument): Ditto.
765 * NEWS: Mention x32 ABI support.
769 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
770 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
772 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
773 and pc_regnum_from_eax to -1. Update SP regnum from
774 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
777 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
782 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
783 * dwarf2expr.h: Include gdbtypes.h.
784 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
785 these forward declarations.
786 (cu_offset, sect_offset): Move these ...
787 * gdbtypes.h: Remove include dwarf2expr.h.
788 (cu_offset, sect_offset): ... here.
792 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
793 (amd64_linux_sigtramp_code): This.
794 (amd64_x32_linux_sigtramp_code): New.
795 (LINUX_SIGTRAMP_LEN): Updated.
796 (amd64_linux_sigtramp_start): Check x32 sigtramp.
800 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
804 * config.in: Regenerate.
805 * configure: Regenerate.
806 * configure.ac: Remove check for gnu/libc-version.h.
807 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
809 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
810 variables libc_version, libc_major and libc_minor. Replace sscanf by
811 inferior_has_bug. Extend the comment.
815 * linux-thread-db.c (inferior_has_bug): New function.
816 (thread_db_find_new_threads_silently): Return boolean as checked by
817 inferior_has_bug, describe it in the comments.
818 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
819 earlier. Abort the initialization if it returned non-zero.
820 (thread_db_new_objfile): Exclude debug files.
821 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
826 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
827 related to queue management.
829 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
830 instead of "debug dwarf2-die" in debugging printfs.
831 (create_debug_info_hash_table_reader): Ditto.
832 (create_debug_info_hash_table): Ditto.
833 (init_dwo_file): Ditto.
834 (init_cutu_and_read_dies): Add debugging printf.
835 (init_cutu_and_read_dies_no_follow): Ditto.
836 (process_psymtab_comp_unit_reader): Ditto.
840 Add target-side support for dynamic printf.
841 * NEWS: Mention the additional style.
842 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
843 (struct bp_location): New field cmd_bytecode.
844 * breakpoint.c: Include format.h.
845 (disconnected_dprintf): New global.
846 (parse_cmd_to_aexpr): New function.
847 (build_target_command_list): New function.
848 (insert_bp_location): Call it.
849 (remove_breakpoints_pid): Skip dprintf breakpoints.
850 (print_one_breakpoint_location): Ditto.
851 (dprintf_style_agent): New global.
852 (dprintf_style_enums): Add dprintf_style_agent.
853 (update_dprintf_command_list): Add agent case.
854 (agent_printf_command): New function.
855 (_initialize_breakpoint): Add new commands.
856 * common/ax.def (printf): New bytecode.
857 * ax.h (ax_string): Declare.
858 * ax-gdb.h (gen_printf): Declare.
859 * ax-gdb.c: Include cli-utils.h, format.h.
860 (gen_printf): New function.
861 (maint_agent_print_command): New function.
862 (_initialize_ax_gdb): Add maint agent-printf command.
863 * ax-general.c (ax_string): New function.
864 (ax_print): Add printf disassembly.
865 * Makefile.in (SFILES): Add format.c
866 (COMMON_OBS): Add format.o.
867 * common/format.h: New file.
868 * common/format.c: New file.
869 * printcmd.c: Include format.h.
870 (ui_printf): Call parse_format_string.
871 * remote.c (remote_state): New field breakpoint_commands.
872 (PACKET_BreakpointCommands): New enum.
873 (remote_breakpoint_commands_feature): New function.
874 (remote_protocol_features): Add new BreakpointCommands entry.
875 (remote_can_run_breakpoint_commands): New function.
876 (remote_add_target_side_commands): New function.
877 (remote_insert_breakpoint): Call it.
878 (remote_insert_hw_breakpoint): Ditto.
879 (_initialize_remote): Add new packet configuration for
880 target-side breakpoint commands.
881 * target.h (struct target_ops): New field
882 to_can_run_breakpoint_commands.
883 (target_can_run_breakpoint_commands): New macro.
884 * target.c (update_current_target): Handle
885 to_can_run_breakpoint_commands.
889 Execute -ix and -iex only after system and user gdbinit files.
890 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
891 processing down after gdbinit files.
895 Add fnmatch-gnu module.
896 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
897 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
898 * gnulib/aclocal.m4: Regenerate.
899 * gnulib/config.in: Regenerate.
900 * gnulib/configure: Regenerate.
901 * gnulib/import/dummy.c: Remove.
902 * gnulib/import/Makefile.am: Regenerate.
903 * gnulib/import/Makefile.in: Likewise.
904 * gnulib/import/m4/gnulib-cache.m4: Likewise.
905 * gnulib/import/m4/gnulib-comp.m4: Likewise.
906 * gnulib/import/alloca.c: New file.
907 * gnulib/import/alloca.in.h: Likewise.
908 * gnulib/import/config.charset: Likewise.
909 * gnulib/import/fnmatch.c: Likewise.
910 * gnulib/import/fnmatch.in.h: Likewise.
911 * gnulib/import/fnmatch_loop.c: Likewise.
912 * gnulib/import/localcharset.c: Likewise.
913 * gnulib/import/localcharset.h: Likewise.
914 * gnulib/import/m4/alloca.m4: Likewise.
915 * gnulib/import/m4/codeset.m4: Likewise.
916 * gnulib/import/m4/configmake.m4: Likewise.
917 * gnulib/import/m4/fcntl-o.m4: Likewise.
918 * gnulib/import/m4/fnmatch.m4: Likewise.
919 * gnulib/import/m4/glibc21.m4: Likewise.
920 * gnulib/import/m4/localcharset.m4: Likewise.
921 * gnulib/import/m4/locale-fr.m4: Likewise.
922 * gnulib/import/m4/locale-ja.m4: Likewise.
923 * gnulib/import/m4/locale-zh.m4: Likewise.
924 * gnulib/import/m4/mbrtowc.m4: Likewise.
925 * gnulib/import/m4/mbsinit.m4: Likewise.
926 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
927 * gnulib/import/m4/mbstate_t.m4: Likewise.
928 * gnulib/import/m4/stdbool.m4: Likewise.
929 * gnulib/import/m4/wchar_h.m4: Likewise.
930 * gnulib/import/m4/wctype_h.m4: Likewise.
931 * gnulib/import/m4/wint_t.m4: Likewise.
932 * gnulib/import/mbrtowc.c: Likewise.
933 * gnulib/import/mbsinit.c: Likewise.
934 * gnulib/import/mbsrtowcs-impl.h: Likewise.
935 * gnulib/import/mbsrtowcs-state.c: Likewise.
936 * gnulib/import/mbsrtowcs.c: Likewise.
937 * gnulib/import/ref-add.sin: Likewise.
938 * gnulib/import/ref-del.sin: Likewise.
939 * gnulib/import/stdbool.in.h: Likewise.
940 * gnulib/import/streq.h: Likewise.
941 * gnulib/import/strnlen1.c: Likewise.
942 * gnulib/import/strnlen1.h: Likewise.
943 * gnulib/import/verify.h: Likewise.
944 * gnulib/import/wchar.in.h: Likewise.
945 * gnulib/import/wctype.in.h: Likewise.
949 Support shell wildcards for 'set auto-load safe-path'.
950 * auto-load.c: Include fnmatch.h.
951 (filename_is_in_dir): Rename to ...
952 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
953 it. Update function comment. Rename dir_len to pattern_len. New
954 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
955 messages. Use gdb_filename_fnmatch.
956 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
958 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
959 * defs.h (gdb_filename_fnmatch): New declaration.
960 * utils.c: Include fnmatch.h.
961 (gdb_filename_fnmatch): New function.
965 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
966 `-probe' and `-probe-stap' options.
970 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
971 always_inserted_off, and always_inserted_enums.
972 Change always_inserted_mode's type to 'enum auto_boolean'.
973 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
975 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
976 of add_setshow_enum_cmd.
977 * infrun.c: Remove can_use_displaced_stepping_auto,
978 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
979 can_use_displaced_stepping_enum.
980 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
981 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
982 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
983 add_setshow_enum_cmd.
987 * dwarf2read.c (signatured_type): Make "per_cu" member first.
988 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
989 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
993 * linespec.c: #include "stack.h".
994 (decode_line_with_current_source): Moved here from symtab.c and
995 renamed from decode_line_spec. All callers updated.
996 (decode_line_with_last_displayed): Moved here from breakpoint.c and
997 renamed from decode_line_spec_1. All callers updated.
998 * linespec.h (decode_line_with_current_source): Move declaration here
999 from symtab.h and renamed from decode_line_spec.
1000 (decode_line_with_last_displayed): Move declaration here from symtab.h
1001 and renamed from decode_line_spec_1.
1002 * macrocmd.c: #include "linespec.h".
1003 * symtab.c: Remove #include "linespec.h".
1007 * dwarf2read.c (get_cu_length): New function.
1008 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1009 (create_debug_types_hash_table): Ditto.
1010 (init_cutu_and_read_dies): Ditto.
1011 (init_cutu_and_read_dies_no_follow): Ditto.
1013 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1015 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1016 (struct abbrev_table): Define.
1017 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1019 (init_cutu_and_read_dies): Update.
1020 (abbrev_table_alloc_abbrev): New function. Replaces
1021 dwarf_alloc_abbrev. All callers updated.
1022 (abbrev_table_add_abbrev): New function.
1023 (abbrev_table_lookup_abbrev): New function. Replaces
1024 dwarf2_lookup_abbrev. All callers updated.
1025 (abbrev_table_read_table): New function. Contents moved here from
1026 dwarf2_read_abbrevs.
1027 (dwarf2_read_abbrevs): Call it.
1028 (abbrev_table_free): New function.
1029 (dwarf2_free_abbrev_table): Call it.
1033 * osdata.c (info_osdata_command): Filter out "Title" columns
1035 * common/linux-osdata.c (struct osdata_type): Add title field.
1036 (osdata_table): Add titles to each entry.
1037 (linux_command_xfer_osdata): Add a column for title data.
1041 Make logging work for MI.
1043 * interps.h (interp_set_logging_ftype): New typedef.
1044 (struct interp_procs): New field set_logging_proc.
1045 (current_interp_set_logging): Declare.
1046 * interps.c (current_interp_set_logging): New function.
1047 * cli/cli-logging.c: Include interps.h.
1048 (set_logging_redirect): Call current_interp_set_logging.
1049 (pop_output_files): Ditto.
1050 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1051 * mi/mi-console.h (mi_console_set_raw): Declare.
1052 * mi/mi-console.c (mi_console_set_raw): New function.
1053 * mi/mi-interp.c (saved_raw_stdout): New global.
1054 (mi_set_logging): New function.
1055 (_initialize_mi_interp): Add it to interp procs.
1059 * symtab.c (lookup_symbol_aux_objfile): Use
1060 ALL_OBJFILE_PRIMARY_SYMTABS.
1062 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1066 * common/buffer.c: Include inttypes.h and stdint.h.
1067 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1072 * gdbthread.h (ALL_THREADS): New macro.
1073 (thread_list): Declare.
1074 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1075 going, but instead fall through to the stepping handling.
1076 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1077 the passed in signal. Adjust debug output.
1078 (resume_callback): Rename to ...
1079 (linux_nat_resume_callback): ... this. Pass the thread's last
1080 stop signal, if in "pass" state.
1081 (linux_nat_resume): Adjust to rename.
1082 (stop_wait_callback): New assertion. Don't respawn signals;
1083 instead let the LWP remain with SIGNALLED set.
1084 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1085 * remote.c (append_pending_thread_resumptions): New.
1086 (remote_vcont_resume): Call it.
1087 * target.h (target_resume): Extend comment.
1091 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1095 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1096 Delete have_addr_base, unused. All uses updated.
1097 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1098 (dwarf2_get_pc_bounds): Add ranges_base.
1099 (dwarf2_record_block_ranges): Ditto.
1104 * varobj.c (varobj_create): Update.
1105 (varobj_set_value): Update.
1106 * tracepoint.c (validate_actionline): Update.
1107 (encode_actions_1): Update.
1108 * parse.c (parse_exp_1): Add 'pc' argument.
1109 (parse_exp_in_context): Add 'pc' argument. Change how
1110 expression_context_pc is set.
1111 (parse_expression): Update.
1112 (parse_field_expression): Update.
1113 * expression.h (parse_exp_1): Update.
1114 * eval.c (parse_to_comma_and_eval): Update.
1115 * breakpoint.c (set_breakpoint_condition): Update.
1116 (update_watchpoint): Update.
1117 (init_breakpoint_sal): Update
1118 (find_condition_and_thread): Update.
1119 (watch_command_1): Update.
1120 (update_breakpoint_locations): Update.
1121 * ada-lang.c (ada_read_renaming_var_value): Update.
1122 (create_excep_cond_exprs): Update.
1126 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1131 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1133 (error_check_comp_unit_head): New arg abbrev_section. All callers
1135 (read_and_check_comp_unit_head): Ditto.
1136 (read_and_check_type_unit_head): Ditto.
1140 New attribute 'last' for gdb.Symtab_and_line.
1141 * NEWS (Python Scripting): Add entry about the new attribute.
1142 * python/py-symtab.c (salpy_get_last): New function which
1143 implements the get method for the 'last' attribute of
1144 gdb.Symtab_and_line.
1145 (sal_object_getset): Add entry for the 'last' attribute.
1149 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1150 (dwo_sections): Add macinfo, macro.
1151 (dwarf2_locate_dwo_sections): Watch for macro sections.
1152 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1153 All callers updated. Handle DWO files.
1155 * NEWS: Mention new options "set debug dwarf2-read" and
1156 "set debug symtab-create".
1157 * dwarf2read.c (dwarf2_read_debug): New static global.
1158 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1159 (process_queue): Ditto.
1160 (process_full_comp_unit): Ditto.
1161 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1162 * elfread.c (elf_symfile_read): Add debugging printf.
1163 * minsyms.c (install_minimal_symbols): Ditto.
1164 * psymtab.c (allocate_psymtab): Ditto.
1165 * symfile.c (allocate_symtab): Ditto.
1166 * symtab.c (symtab_create_debug): New global.
1167 (_initialize_symtab): Add new option "set debug symtab-create".
1168 * symtab.h (symtab_create_debug): Declare.
1170 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1171 (lookup_dwo_type_unit): Ditto.
1176 * amd64-linux-nat.c: Include <sys/user.h>.
1177 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1178 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1179 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1181 * configure.ac: Check if the fs_base and gs_base members of
1182 `struct user_regs_struct' exist.
1183 * config.in: Regenerated.
1184 * configure: Likewise.
1189 * python/python.c (gdbpy_write): Check for interrupted output.
1193 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1194 register as a stack alignment in ARM mode.
1198 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1199 * gnulib/config.in: Regenerate.
1200 * gnulib/configure: Likewise.
1201 * gnulib/import/m4/extensions.m4: Update it.
1202 * gnulib/import/m4/gnulib-common.m4: Likewise.
1203 * gnulib/import/m4/memmem.m4: Likewise.
1204 * gnulib/import/m4/mmap-anon.m4: Likewise.
1205 * gnulib/import/m4/multiarch.m4: Likewise.
1206 * gnulib/import/stdint.in.h: Likewise.
1210 * corefile.c (write_memory_with_notification): New.
1211 * gdbcore.h: Declare write_memory_with_notification.
1212 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1213 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1214 * valops.c (value_assign): Likewise.
1215 * python/py-inferior.c (infpy_write_memory): Call
1216 'write_memory_with_notification'.
1220 * cc-with-index.sh: Use also -ex "set auto-load no".
1225 * NEWS: Document additions to .gdb_index.
1226 * dwarf2read.c: #include "gdb/gdb-index.h".
1227 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1228 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1229 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1230 (dwarf2_read_index): Recognize version 7.
1231 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1232 block_kind, domain): All callers updated.
1233 (dw2_find_symbol_file): Handle new index CU values.
1234 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1235 (add_index_entry): New args is_static, kind. All callers updated.
1236 (offset_type_compare, uniquify_cu_indices): New functions
1237 (symbol_kind): New function.
1238 (write_psymtabs_to_index): Remove duplicate CU values.
1239 (write_psymtabs_to_index): Write .gdb_index version 7.
1243 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1244 * configure: Regenerate.
1248 * python/py-inferior.c: Update comments of infpy_read_memory
1249 and infpy_write_memory.
1254 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1255 (push_type_address_space): Remove.
1256 * parse.c (insert_into_type_stack): New function.
1257 (insert_type): Likewise.
1258 (insert_type_address_space): Rename from push_type_address_space.
1259 Insert tp_space_identifier.
1260 * c-exp.y (ptr_operator): New production.
1261 (abs_decl): Use ptr_operator.
1262 (space_identifier): Call insert_type_address_space.
1263 (ptype): Don't use const_or_volatile_or_space_identifier.
1264 (const_or_volatile_noopt): Call insert_type.
1265 (conversion_type_id, conversion_declarator): New productions.
1266 (operator): Use conversion_type_id.
1270 * symtab.h (minimal_symbol): New member created_by_gdb.
1271 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1273 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1274 (search_symbols): Call it instead of lookup_symbol.
1275 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1277 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1278 Adjust address for DW_OP_GNU_addr_index.
1279 * dwarf2expr.h (dwarf_expr_context): Update comment.
1280 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1281 all callers updated. Handle TLS vars described with
1282 DW_OP_GNU_const_index.
1283 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1284 and DW_OP_GNU_const_index.
1285 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1287 * block.c (find_block_in_blockvector): Make explicit the fact that we
1288 ignore GLOBAL_BLOCK.
1292 * c-exp.y (operator): Remove trailing space after "delete" and
1298 Switch i386 and derived targets to ON_STACK.
1299 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1300 (amd64_dicos_init_abi): Remove its installment.
1301 * dicos-tdep.c (dicos_init_abi): Remove the
1302 set_gdbarch_call_dummy_location call. Update the comment here.
1303 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1304 (i386_dicos_init_abi): Remove its installment.
1305 * i386-tdep.c (i386_push_dummy_code): New function.
1306 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1307 i386_push_dummy_code.
1311 Remove stale dummy frames.
1312 * breakpoint.c: Include dummy-frame.h.
1313 (longjmp_breakpoint_ops): New variable.
1314 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1315 bp_longjmp_call_dummy.
1316 (bpstat_what, bptype_string, print_one_breakpoint_location)
1317 (init_bp_location): Support bp_longjmp_call_dummy.
1318 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1319 (set_longjmp_breakpoint_for_call_dummy)
1320 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1322 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1323 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1324 FIXME comment and extend the other comment for bp_call_dummy.
1325 (set_longjmp_breakpoint_for_call_dummy)
1326 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1327 * dummy-frame.c: Include gdbthread.h.
1328 (pop_dummy_frame_bpt): New function.
1329 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1330 (dummy_frame_discard): New function.
1331 (cleanup_dummy_frames): Update the comment about longjmps.
1332 * dummy-frame.h (dummy_frame_discard): New declaration.
1333 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1334 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1335 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1336 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1337 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1338 keep_going if IS_LONGJMP and there is no other reason to stop.
1342 * remote-sim.c (sim_command_completer): Initialize
1347 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1348 * dwarf2loc.c (call_site_parameter_matches): Support
1349 CALL_SITE_PARAMETER_PARAM_OFFSET.
1350 (needs_dwarf_reg_entry_value): Push stub value.
1351 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1352 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1353 * gdbtypes.h (enum call_site_parameter_kind): New item
1354 CALL_SITE_PARAMETER_PARAM_OFFSET.
1355 (struct call_site.parameter.u): New field param_offset.
1359 Code cleanup: Generalize call_site.parameter key.
1360 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1361 variable dwarf_reg. New variable kind_u. Update parameters to
1362 push_dwarf_reg_entry_value.
1363 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1364 * dwarf2expr.h (enum call_site_parameter_kind)
1365 (union call_site_parameter_u): Forward declarations.
1366 (struct dwarf_expr_context_funcs): Update parameters and their
1367 description for push_dwarf_reg_entry_value.
1368 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1369 * dwarf2loc.c (call_site_parameter_matches): New function.
1370 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1371 description. Use call_site_parameter_matches.
1372 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1373 Update parameters and their description.
1374 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1375 New variable kind_u. Adjust the caller for updated parameters.
1376 (needs_dwarf_reg_entry_value): Update parameters.
1377 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1378 instead of attr. Update for the changed fields of struct
1379 call_site_parameter.
1380 * gdbtypes.h: Include dwarf2expr.h.
1381 (enum call_site_parameter_kind): New.
1382 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1383 fb_offset into new union u.
1387 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1388 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1393 * amd64-linux-nat.c (compat_x32_clock_t): New.
1394 (compat_x32_siginfo_t): Likewise.
1395 (compat_x32_siginfo_from_siginfo): Likewise.
1396 (siginfo_from_compat_x32_siginfo): Likewise.
1397 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1398 and siginfo_from_compat_x32_siginfo for x32.
1402 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1406 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1407 instead of gdbarch_ptr_bit.
1408 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1409 (amd64_supply_native_gregset): Likewise.
1410 (amd64_collect_native_gregset): Likewise.
1411 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1412 (amd64_supply_xsave): Likewise.
1413 (amd64_collect_fxsave): Likewise.
1414 (amd64_collect_xsave): Likewise.
1418 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1419 (amd64_linux_read_description): Check DS segment register for
1424 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1425 init_cutu_and_read_dies.
1429 * MAINTAINERS (Write After Approval): Add myself to the list.
1433 * valops.c (value_find_oload_method_list): Now static.
1434 * value.h (value_find_oload_method_list): Don't declare.
1438 * valops.c (find_overload_match): Use value_ind.
1442 * infrun.c (handle_inferior_event): Correct indentation.
1446 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1447 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1449 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1450 updated. Handle DEBUG_LOC_START_LENGTH.
1451 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1452 (loclist_describe_location): Ditto.
1457 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1458 after hiding inline functions.
1462 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1463 _initialize_inf_ttrace.
1467 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1468 _initialize_hppa_hpux_nat.
1472 * remote-sim.c (sim_command_completer): Change type of return
1473 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1479 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1480 stack on a 16-byte boundary.
1484 * jit.c (finalize_symtab): Set function's return type to 'void' by
1490 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1491 Move bits common to both the classic LP64 and the new x32 ILP32
1493 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1494 (amd64_x32_linux_init_abi): New function.
1495 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1498 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1499 * i386-tdep.c (i386_pseudo_register_name): Make public.
1500 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1501 * amd64-tdep.c (amd64_dword_names): Add "eip".
1502 (amd64_x32_pseudo_register_type): New function
1503 (amd64_x32_init_abi): New function.
1508 * inferior.h (struct inferior_suspend_state): Comment out.
1509 (struct inferior): Comment out the field suspend.
1510 * infrun.c (struct infcall_suspend_state): Comment out the field
1512 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1517 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1518 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1519 function comment. Return ERROR for unresolved cases. Implement
1520 returning proper NAME.
1521 (yylex): Accept also NAME from classify_inner_name.
1522 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1523 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1525 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1529 * breakpoint.c (condition_completer): New function.
1530 (_initialize_breakpoint): Use it.
1531 * value.c (complete_internalvar): New function.
1532 * value.h (complete_internalvar): Declare.
1536 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1537 * breakpoint.c (catch_syscall_completer): Return a VEC.
1538 * cli/cli-cmds.c (complete_command): Update.
1539 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1540 (complete_on_enum): Likewise.
1541 * command.h: Include gdb_vecs.h.
1542 (completer_ftype): Change return type.
1543 (complete_on_cmdlist, complete_on_enum): Likewise.
1544 * completer.c (noop_completer, filename_completer)
1545 (location_completer): Return a VEC.
1546 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1548 (expression_completer, complete_line_internal, complete_line)
1549 (command_completer): Return a VEC.
1550 (gdb_completion_word_break_characters, line_completion_function):
1552 * completer.h: Include gdb_vecs.h.
1553 (complete_line, noop_completer, filename_completer)
1554 (expression_completer, location_completer, command_completer):
1556 * f-lang.c (f_word_break_characters): Return a VEC.
1557 * interps.c (interpreter_completer): Return a VEC.
1558 * language.h (struct language_defn)
1559 <la_make_symbol_completion_list>: Return a VEC.
1560 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1561 * symtab.c (free_completion_list): Take a VEC.
1562 (return_val_size, return_val_index): Remove.
1563 (return_val): Now a VEC.
1564 (completion_list_add_name): Update.
1565 (default_make_symbol_completion_list_break_on)
1566 (default_make_symbol_completion_list, make_symbol_completion_list)
1567 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1569 (add_filename_to_list): Update.
1570 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1572 (maybe_add_partial_symtab_filename): Update.
1573 (make_source_files_completion_list): Return a VEC.
1574 * symtab.h (default_make_symbol_completion_list_break_on)
1575 (default_make_symbol_completion_list, make_symbol_completion_list)
1576 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1577 (make_source_files_completion_list): Update.
1581 * breakpoint.c (add_catch_command): Use completer_ftype.
1582 * breakpoint.h: Include command.h.
1583 (add_catch_command): Use completer_ftype.
1584 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1585 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1586 Use completer_ftype.
1587 * command.h (completer_ftype): New typedef.
1588 (set_cmd_completer): Use it.
1589 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1594 Partial revert of previous change.
1596 * serial.c (scb_base): New global.
1597 (serial_for_fd): New.
1598 (serial_open, serial_fdopen_ops): Link new serial in open serials
1600 (do_serial_close): Unlink serial from the open serials chain.
1604 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1606 (prepare_for_detach): No longer context switch here in non-stop
1608 (fetch_inferior_event): Ditto.
1609 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1610 to the event thread before removing breakpoints. Switch to the
1611 event thread before inserting breakpoints and resuming.
1612 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1613 event thread before resuming.
1614 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1615 Switch to the event thread before removing breakpoints.
1619 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1620 special characters correctly for the Windows shells. See
1621 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1623 [!__MINGW32__]: Remove extra double quote character from special
1628 * ui-out.h: Remove #if 0 declarations.
1629 * ui-out.c: Remove #if 0 functions.
1633 * ser-base.c (run_async_handler_and_reschedule): New.
1634 (fd_event, push_event): Use it.
1635 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1636 reference count to 1.
1637 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1639 (serial_is_open, serial_ref, serial_unref): New.
1640 * serial.h (serial_open): Adjust comment.
1641 (serial_is_open): Declare.
1642 (serial_close): Adjust comment.
1643 (serial_ref, serial_unref) Declare.
1644 (struct serial): New field 'refcnt'.
1648 Remove #if 0'd "connect" command, and unnecessary associated
1649 refcounting and serial reuse bits.
1651 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1652 * serial.c (last_serial_opened): Delete.
1654 (serial_open): Adjust.
1655 (serial_for_fd): Delete.
1656 (serial_fdopen_ops, do_serial_close): Adjust.
1657 (serial_fdopen_ops): Adjust.
1661 * serial.c (do_serial_close): Remove early return when SCB is
1666 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1670 Fix regression by the "ambiguous linespec" series.
1671 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1672 get_last_displayed_symtab and get_last_displayed_line and depending
1677 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1678 (dw2_find_symbol_file): Use it.
1682 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1683 * mips-linux-tdep.h (mips_signals): New
1687 * infrun.c (handle_inferior_event)
1688 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1690 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1691 exception logic in all cases. Update comments.
1692 (insert_longjmp_resume_breakpoint): Set the exception resume
1697 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1701 * valarith.c (binop_types_user_defined_p): Fix a typo.
1706 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1707 * arch-utils.h: Declare.
1708 * gdbarch.sh: Add return_in_first_hidden_param_p.
1709 * gdbarch.c, gdbarch.h: Regenerated.
1710 * infcall.c (call_function_by_hand): Call
1711 gdbarch_return_in_first_hidden_param_p instead of
1712 language_pass_by_reference.
1714 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1715 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1716 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1717 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1718 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1719 `cplus_return_struct_by_reference'.
1720 (tic6x_return_value): Handle language cplusplus.
1721 (tic6x_return_in_first_hidden_param_p): New.
1722 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1726 * dwarf2read.c (dwarf2_cu): Add comment.
1730 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1732 (mips_eabi_push_dummy_call): Likewise.
1733 (mips_n32n64_push_dummy_call): Likewise.
1734 (mips_o32_push_dummy_call): Likewise.
1735 (mips_o64_push_dummy_call): Likewise.
1739 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1743 * mips-tdep.c (mips_pseudo_register_type): Use
1744 mips_float_register_p.
1748 * infrun.c (handle_inferior_event): Remove calls to
1749 reinit_frame_cache that follow a context_switch call.
1753 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1754 context_switch and remove stale comment.
1758 * infrun.c (struct execution_control_state): Remove
1759 `new_thread_event' field.
1760 (handle_inferior_event): Simplify new threads handling; don't
1761 resume the inferior if we find a new thread.
1765 * NEWS: Document the deprecation of SH's 'regs' command.
1766 * inferior.h (all_registers_info): Add function declaration.
1767 * sh-tdep.c (sh_show_regs): Remove variable.
1768 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1769 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1770 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1771 (sh_show_regs_command): Remove functions.
1772 (sh_gdbarch_init): Don't set sh_show_regs.
1773 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1774 'info all-registers'.
1775 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1776 (sh64_show_regs): Remove functions.
1777 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1781 * configure.ac: Move development=true below AC_INIT.
1782 * configure: Regenerate.
1786 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
1791 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
1792 argument as ssize_t.
1793 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
1794 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
1795 * target.c (target_read_stack, target_write_memory)
1796 (target_write_raw_memory): Likewise.
1797 * target.h (target_read_stack, target_write_memory)
1798 (target_write_raw_memory): Likewise.
1802 * symfile-mem.c: Change gdb_static_assert to ssize_t.
1803 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
1804 * target.c (target_read_memory): Change LEN to ssize_t.
1805 * target.h (target_read_memory): Change LEN to ssize_t.
1811 * breakpoint.c (until_break_command): Only fetch the selected
1812 frame after decode_line_1.
1816 * solib-svr4.c (enable_break): Don't fallback to setting the solib
1817 event breakpoint at _start, __start or main if a program
1818 interpreter is not found.
1822 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
1824 * windows-tdep.c: #include "objfiles.h".
1825 (windows_iterate_over_objfiles_in_search_order): New function.
1826 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1827 iterate_over_objfiles_in_search_order gdbarch method to
1828 windows_iterate_over_objfiles_in_search_order.
1829 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1833 * gdbarch.sh: Add generation of
1834 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
1835 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
1836 (iterate_over_objfiles_in_search_order): New gdbarch method.
1837 * gdbarch.h, gdbarch.c: Regenerate.
1838 * objfiles.h (default_iterate_over_objfiles_in_search_order):
1840 * objfiles.c (default_iterate_over_objfiles_in_search_order):
1842 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1843 out of lookup_symbol_aux_symtabs.
1844 (lookup_symbol_aux_symtabs): Replace extracted-out code by
1845 call to lookup_symbol_aux_objfile.
1846 (struct global_sym_lookup_data): New type.
1847 (lookup_symbol_global_iterator_cb): New function.
1848 (lookup_symbol_global): Search for symbol using
1849 gdbarch_iterate_over_objfiles_in_search_order and
1850 lookup_symbol_global_iterator_cb.
1851 * findvar.c (struct minsym_lookup_data): New type.
1852 (minsym_lookup_iterator_cb): New function.
1853 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
1854 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
1855 and minsym_lookup_iterator_cb.
1859 Revert the following patch:
1860 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1861 try locating the symbol in the symbol's own objfile first, before
1862 extending the search to all objfiles.
1863 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1864 out of lookup_symbol_aux_symtabs.
1865 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1866 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1867 Do not search EXCLUDE_OBJFILE.
1868 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1869 (lookup_symbol_global): Search for matches in the block's objfile
1870 first, before searching all other objfiles.
1874 * breakpoint.c (find_condition_and_thread): Stop parsing
1875 as soon as the first invalid keyword is found.
1879 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
1883 * config/djgpp/djcheck.sh: Add copyright header.
1887 * copyright.py (update_files, main): Fix path to update-copyright
1892 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1893 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
1894 for which a reminder to update by hand is printed.
1898 * buildsym.c (make_blockvector): Add comment.
1902 * arch-utils.c (default_gdb_signal_from_target): Delete.
1903 * arch-utils.h (default_gdb_signal_from_target): Delete.
1904 * corelow.c (core_open) <signal mapping>: Extended comment. Check
1905 gdbarch_gdb_signal_from_target_p.
1906 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
1908 * gdbarch.h: Regenerate.
1909 * gdbarch.c: Regenerate.
1913 * gdbarch.sh (gdb_signal_from_target): Mention that the
1914 implementation of the method must be host independent.
1915 * gdbarch.h: Regenerate.
1919 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
1921 (target_read_memory_bfd): New function.
1922 (symbol_file_add_from_memory): Use it.
1926 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
1928 (basic_lookup_transparent_type): Ditto.
1930 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
1931 (ALL_PRIMARY_SYMTABS): Use it.
1932 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1933 * dwarf2read.c (dw2_find_symbol_file): Ditto.
1934 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
1935 * symtab.c (lookup_symbol_aux_objfile): Ditto.
1936 (basic_lookup_transparent_type): Ditto.
1940 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
1941 it to optimize resolution of demangled name.
1945 * configure.ac (development): Define new variable.
1946 Call AC_CHECK_LIB for mcheck if $development.
1947 (ERROR_ON_WARNING): Enable it by default only if $development.
1948 * config.in: Regenerate.
1949 * configure: Regenerate.
1953 * target.c (target_read_memory): Make LEN argument as size_t.
1954 * target.h (target_read_memory): Likewise.
1958 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
1962 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1963 BookE interface for PowerPC server processors if not available
1964 in the Linux Kernel.
1968 * linespec.c (decode_objc): Add cleanup to free
1970 (find_linespec_symbols): Add cleanup to free CLASSES.
1971 * symfile.c (find_separate_debug_file_by_debuglink): Add
1972 cleanup to free DEBUGLINK.
1973 * ui-out.c (clear_header_list): No need to check if
1974 HEADER_NEXT.COLHDR is NULL.
1975 Free HEADER_NEXT.COL_NAME.
1979 * ada-lang.c (standard_lookup): Prevent uninitialized variable
1984 * configure.host (gdb_host_cpu): Handle tilegx*.
1985 (gdb_host): Handle tilegx-*-linux*.
1986 * tilegx-linux-nat.c: New file.
1987 * config/tilegx/linux.mh: New file.
1991 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1992 tilegx-linux-tdep.o.
1993 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1994 tilegx-linux-tdep.c.
1995 * configure.tgt: Handle tilegx-*-linux*.
1996 * tilegx-tdep.h: New file.
1997 * tilegx-tdep.c: New file.
1998 * tilegx-linux-tdep.c: New file.
1999 * regformats/reg-tilegx.dat: New file.
2003 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2004 accounting of hw watchpoints on ppc.
2008 * source.c (openp): Expand tilde in path entries.
2012 * buildsym.c (block_compar): Fix comment.
2013 (end_symtab): Fix and clarify some comments.
2015 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2016 cleanup_undefined_types.
2017 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2018 All callers updated.
2022 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2024 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2025 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2027 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2032 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2033 (struct darwin_info): ... New struct.
2034 (solib_darwin_pspace_data): New variable.
2035 (darwin_pspace_data_cleanup): New function.
2036 (get_darwin_info): Likewise.
2037 (darwin_dyld_version_ok, darwin_load_image_infos)
2038 (darwin_solib_get_all_image_info_addr_at_init)
2039 (darwin_solib_read_all_image_info_addr): Add info argument.
2041 (darwin_current_sos): Use per pspace structure.
2042 (darwin_solib_create_inferior_hook): Likewise.
2043 (darwin_clear_solib): Likewise.
2044 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2048 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2049 block that uses them. Clear ecss before handling each event.
2053 * solib-svr4.c (svr4_current_sos): New comment on
2054 svr4_current_sos_via_xfer_libraries fall back.
2058 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2059 it as a fallback for TYPE_IS_OPAQUE.
2060 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2061 symbols for lookup_symbol.
2065 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2066 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2067 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2068 (check_producer): ... this new function, which also checks for ICC
2069 and caches the result.
2070 (producer_is_icc): New function.
2071 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2078 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2079 (default_gdb_signal_to_target): ... this. Add comment.
2080 (default_gdb_signal_from_host): Rename to ...
2081 (default_gdb_signal_from_target): ... this. Add comment.
2082 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2083 (default_gdb_signal_to_target): ... this.
2084 (default_gdb_signal_from_host): Rename to ...
2085 (default_gdb_signal_from_target): ... this.
2086 * corelow.c (core_open): Adjust to naming change. Replace comment.
2087 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2088 (gdb_signal_from_target): ... this. Adjust to
2089 default_gdb_signal_from_host naming change. Extend comment.
2090 (gdb_signal_to_host): Rename to ...
2091 (gdb_signal_to_target): ... this. Adjust to
2092 default_gdb_signal_to_host naming change.
2093 * gdbarch.h, gdbarch.c: Renegerate.
2099 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2105 Replace target_signal with gdb_signal throughout.
2111 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2112 string, instead of reusing the va_list argument.
2116 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2121 * symtab.c (search_symbols): Formatting fixes.
2122 (print_symbol_info): Formatting fixes.
2124 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2125 int64_t change to leb128 API.
2126 (read_encoded_value, decode_frame_entry_1): Ditto.
2127 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2128 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2129 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2130 (execute_stack_op): Ditto.
2131 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2132 (safe_read_uleb128, safe_read_sleb128): Ditto.
2133 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2134 (dwarf2_compile_expr_to_ax): Ditto.
2135 (locexpr_describe_location_piece): Ditto.
2136 (disassemble_dwarf_expression): Ditto.
2137 (locexpr_describe_location_1): Ditto.
2142 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2143 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2144 (mi-cmd-info.o): New rule.
2145 * osdata.h (info_osdata_command): New declaration.
2146 * osdata.c (info_osdata_command): Change to non-static.
2147 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2148 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2149 * mi/mi-cmd-info.c: New file.
2153 * symtab.c (search_symbols): Pass NULL for file_matcher to
2154 expand_symtabs_matching if there are no files to match.
2156 * gdbtypes.c (lookup_typename): Simplify.
2160 * arch-utils.h (default_target_signal_to_host): Delete.
2161 * arch-utils.c (default_target_signal_to_host): Delete.
2162 * gdbarch.sh (target_signal_to_host): Remove.
2163 * gdbarch.h, gdbarch.c: Regenerate.
2167 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2169 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2170 (execute_cfa_program): Update to match API of leb128 functions.
2171 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2173 (read_unsigned_leb128, read_signed_leb128): Delete.
2174 (read_initial_length): Change type of buf argument to
2176 (read_encoded_value): Update to match API of leb128 functions.
2177 (decode_frame_entry): Change result to "const gdb_byte *", and
2178 similarly for "start" parameter.
2179 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2180 (dwarf2_build_frame_info): Change local frame_ptr to
2182 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2183 read_uleb128, read_sleb128. All callers updated.
2184 (safe_skip_leb128): New function.
2185 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2186 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2187 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2188 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2189 read_uleb128, read_sleb128.
2190 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2191 (execute_stack_op): Update to match API of leb128 functions.
2192 * dwarf2expr.h: #include "leb128.h".
2193 (read_uleb128, read_sleb128): Delete.
2194 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2195 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2196 * dwarf2loc.c (debug_loc_kind): New enum.
2197 (decode_debug_loc_addresses): New function.
2198 (decode_debug_loc_dwo_addresses): New function.
2199 (dwarf2_find_location_expression): Rewrite.
2200 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2201 (locexpr_describe_location_piece): Ditto.
2202 (disassemble_dwarf_expression): Ditto.
2203 (locexpr_describe_location_1): Ditto.
2204 (loclist_describe_location): Rewrite.
2205 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2206 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2207 (dwarf2_section_buffer_overflow_complaint): Renamed from
2208 dwarf2_macros_too_long_complaint. All callers updated.
2209 (skip_leb128): Delete.
2210 (init_cu_die_reader): Initialize reader->buffer_end.
2211 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2212 (skip_form_bytes): New arg buffer_end. All callers updated.
2213 Replace call to skip_leb128 with gdb_skip_leb128.
2214 (skip_unknown_opcode): New arg mac_end. All callers updated.
2215 (fill_in_loclist_baton): Initialize baton->from_dwo.
2219 * mips-linux-nat.c (mips_linux_read_description): Use a more
2220 verbose error message.
2224 * NEWS: Add MIPS/Linux DSP support.
2225 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2226 (SIGCONTEXT_DSPCTL): New macro.
2227 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2228 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2229 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2230 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2231 (N64_SIGCONTEXT_HI3): Likewise.
2232 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2233 (N64_SIGCONTEXT_LO3): Likewise.
2234 (N64_SIGCONTEXT_DSPCTL): Likewise.
2235 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2236 (mips_linux_o32_sigframe_init): Handle DSP registers.
2237 (mips_linux_n32n64_sigframe_init): Likewise.
2241 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2246 * target.h (store_waitstatus): Move declaration ...
2247 * inf-child.h (store_waitstatus): ... here.
2248 * target.c: Move inclusion of gdb_wait.h, and ...
2249 (store_waitstatus): ... this ...
2250 * inf-child.c: ... here.
2251 * linux-nat.c: Include inf-child.h.
2252 * rs6000-nat.c: Include inf-child.h.
2253 * spu-linux-nat.c: Include inf-child.h.
2257 * tracepoint.c (start_tracing): Add missing i18n markup.
2258 (stop_tracing, set_trace_user): Ditto.
2259 (set_trace_notes, set_trace_stop_notes): Ditto.
2264 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2266 * value.h (value_cast_pointers): Update.
2267 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2268 (value_cast): Update.
2269 (update_search_result): New function.
2270 (do_search_struct_field): New, from search_struct_field. Check
2271 for ambiguous results.
2272 (search_struct_field): Rewrite.
2273 * infcall.c (value_arg_coerce): Update.
2274 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2275 value_cast_pointers.
2276 * ada-lang.c (ada_convert_actual): Update.
2280 * macroexp.c (macro_stringify): Terminate the string.
2284 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2286 * auto-load.c (auto_load_expand_dir_vars): New function.
2287 (auto_load_safe_path_vec_update): Use it, remove the
2288 substitute_path_component call thanks to it.
2289 (auto_load_objfile_script): Remove the debug_file_directory processing.
2290 Use auto_load_expand_dir_vars, remove the substitute_path_component
2292 * configure: Regenerate.
2293 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2294 path. Escape $ also for $debugdir.
2295 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2296 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2300 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2301 before use. Check for symtab->includes == NULL before scanning it.
2305 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2309 * NEWS: Add microMIPS support and "set mips compression",
2310 "show mips compression" commands.
2311 * mips-tdep.h (mips_isa): New enum.
2312 (gdbarch_tdep): Add mips_isa.
2313 (mips_pc_is_mips16): Update prototype.
2314 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2315 * mips-tdep.c (mips_compression_mips16): New variable.
2316 (mips_compression_micromips): Likewise.
2317 (mips_compression_strings): Likewise.
2318 (mips_compression_string): Likewise.
2319 (is_mips16_isa, is_micromips_isa): New functions.
2320 (is_mips16_addr): Rename to...
2321 (is_compact_addr): ... this.
2322 (unmake_mips16_addr): Likewise to...
2323 (unmake_compact_addr): ... this.
2324 (make_mips16_addr): Likewise to...
2325 (make_compact_addr): ... this.
2326 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2328 (mips_elf_make_msymbol_special): Handle microMIPS code.
2329 (msymbol_is_special): Rename to...
2330 (msymbol_is_mips16): ... this.
2331 (mips_make_symbol_special, mips_pc_is_mips16): Update
2333 (msymbol_is_mips, msymbol_is_micromips): New functions.
2334 (mips16_to_32_reg): Rename to...
2335 (mips_reg3_to_reg): ... this.
2336 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2337 (mips_pc_isa): Likewise.
2338 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2340 (mips_fetch_instruction): Pass return status instead of printing
2341 an error message if requested. Handle microMIPS code. Bail out
2343 (micromips_op): New macro.
2344 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2345 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2346 (b6s4_op, b7s3_reg): Likewise.
2347 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2348 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2349 (mips_insn_size): New function.
2350 (mips32_next_pc): Update mips_fetch_instruction call.
2351 (micromips_relative_offset7): New function.
2352 (micromips_relative_offset10): Likewise.
2353 (micromips_relative_offset16): Likewise.
2354 (micromips_pc_insn_size): Likewise.
2355 (micromips_bc1_pc): Likewise.
2356 (micromips_next_pc): Likewise.
2357 (unpack_mips16): Update mips_fetch_instruction call.
2358 (extended_mips16_next_pc): Update according to change to
2360 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2362 (mips16_scan_prologue): Update mips_fetch_instruction call.
2363 Update according to change to mips16_to_32_reg.
2364 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2365 (mips_insn16_frame_base_sniffer): Likewise.
2366 (micromips_decode_imm9): New function.
2367 (micromips_scan_prologue): Likewise.
2368 (mips_micro_frame_cache): Likewise.
2369 (mips_micro_frame_this_id): Likewise.
2370 (mips_micro_frame_prev_register): Likewise.
2371 (mips_micro_frame_sniffer): Likewise.
2372 (mips_micro_frame_unwind): New variable.
2373 (mips_micro_frame_base_address): New function.
2374 (mips_micro_frame_base): New variable.
2375 (mips_micro_frame_base_sniffer): New function.
2376 (mips32_scan_prologue): Update mips_fetch_instruction call.
2377 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2378 rather than for MIPS16.
2379 (mips_insn32_frame_base_sniffer): Likewise.
2380 (mips_addr_bits_remove): Handle microMIPS code.
2381 (deal_with_atomic_sequence): Rename to...
2382 (mips_deal_with_atomic_sequence): ... this. Update the type
2383 of the variable used to hold an instruction. Remove the ISA bit
2384 check. Update mips_fetch_instruction call.
2385 (micromips_deal_with_atomic_sequence): New function.
2386 (deal_with_atomic_sequence): Likewise.
2387 (mips_about_to_return): Handle microMIPS code. Update
2388 mips_fetch_instruction call.
2389 (heuristic_proc_start): Check for the standard MIPS ISA rather
2390 than for MIPS16. Update mips_pc_is_mips16 and
2391 mips_fetch_instruction calls. Handle microMIPS code.
2392 (mips_push_dummy_code): Handle microMIPS code.
2393 (mips_eabi_push_dummy_call): Likewise.
2394 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2395 (mips_o64_push_dummy_call): Handle microMIPS code.
2396 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2397 (is_delayed): Remove function.
2398 (mips_single_step_through_delay): Replace the call to is_delayed
2399 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2400 Handle microMIPS code.
2401 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2403 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2405 (micromips_in_function_epilogue_p): New function.
2406 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2408 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2410 (gdb_print_insn_mips): Likewise.
2411 (mips_breakpoint_from_pc): Likewise.
2412 (mips_remote_breakpoint_from_pc): New function.
2413 (mips32_instruction_has_delay_slot): Simplify making use of the
2414 updated mips_fetch_instruction interface.
2415 (micromips_instruction_has_delay_slot): New function.
2416 (mips16_instruction_has_delay_slot): Simplify making use of the
2417 updated mips_fetch_instruction interface.
2418 (mips_adjust_breakpoint_address): Check for the standard MIPS
2419 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2420 calls. Handle microMIPS code.
2421 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2422 (mips_skip_trampoline_code): Handle microMIPS code.
2423 (global_mips_compression): New function.
2424 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2425 file flags. Register the microMIPS remote breakpoint handler
2426 and heuristic frame unwinder.
2427 (show_mips_compression): New function.
2428 (_initialize_mips_tdep): Add the "set mips compression" and
2429 "show mips compression" commands.
2436 * amd64-darwin-tdep.c:
2437 * arm-symbian-tdep.c:
2441 * bfin-linux-tdep.c:
2448 * dwarf2-frame-tailcall.c:
2477 * microblaze-tdep.c:
2478 * mips-linux-tdep.c:
2486 * python/py-finishbreakpoint.c:
2487 * python/py-inferior.c:
2488 * python/py-infthread.c:
2492 * remote-m32r-sdi.c:
2496 * rs6000-aix-tdep.c:
2522 * amd64-darwin-tdep.c:
2523 * arm-symbian-tdep.c:
2524 * arm-tdep.c: Delete unused variables.
2528 Rename $ddir to $datadir.
2529 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2530 * auto-load.c (auto_load_safe_path_vec_update)
2531 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2532 * configure: Regenerate.
2533 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2534 Likewise. Remove the 'use $ddir' help string.
2538 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2539 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2544 * valprint.h (struct value_print_options) <symbol_print>: New
2546 * valprint.c (user_print_options): Add default for symbol_print.
2547 (show_symbol_print): New function.
2548 (generic_val_print): Respect symbol_print.
2549 (_initialize_valprint): Add "print symbol" setting.
2550 * f-valprint.c (f_val_print): Respect symbol_print.
2551 * c-valprint.c (c_val_print): Respect symbol_print.
2553 * printcmd.c (print_address_symbolic): Return int. Ignore some
2555 (print_address_demangle): Return int.
2556 * defs.h: (print_address_symbolic): Return int.
2557 * value.h (print_address_demangle): Return int.
2561 * valprint.c (val_print_string): Don't print leading space.
2562 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2563 print space before string or vtbl.
2564 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2566 * jv-valprint.c (java_value_print): Print space before string.
2567 * go-valprint.c (print_go_string): Print space before string.
2568 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2569 space before string.
2570 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2571 space before string or vtbl.
2572 * auxv.c (fprint_target_auxv): Print space after address.
2576 * printcmd.c (print_address_demangle): Remove special case for 0.
2580 * printcmd.c (print_address_demangle): Add 'opts' argument.
2581 * p-valprint.c (pascal_val_print): Update.
2582 * jv-valprint.c (java_val_print): Update.
2584 * valprint.c (generic_val_print): Update.
2585 (print_function_pointer_address): Add 'options' argument. Remove
2586 'addressprint' argument. Update.
2587 * m2-valprint.c (print_unpacked_pointer): Update.
2588 * gnu-v3-abi.c (print_one_vtable): Update.
2589 (gnuv3_print_method_ptr): Update.
2590 * f-valprint.c (f_val_print): Update.
2591 * cp-valprint.c (cp_print_value_fields): Update.
2592 * valprint.h (print_function_pointer_address): Update.
2593 * c-valprint.c (c_val_print): Update.
2597 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2598 directly corresponding to the found psymtab.
2599 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2600 (dw2_find_pc_sect_symtab): Use it.
2601 * block.h (blockvector_contains_pc): Declare.
2602 * block.c (find_block_in_blockvector): New function.
2603 (blockvector_for_pc_sect): Use it.
2604 (blockvector_contains_pc): New function.
2608 * mips-tdep.h (mips_write_pc): New prototype.
2609 * mips-tdep.c (mips_write_pc): Make external, add description.
2610 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2615 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2617 (mips_unwind_pc, mips_write_pc): Likewise.
2618 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2623 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2624 proc_warn, proc_error, proc_get_status, proc_flags,
2625 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2626 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2627 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2628 proc_stop_process, proc_wait_for_stop, proc_run_process,
2629 proc_set_traced_signals, proc_set_traced_faults,
2630 proc_set_traced_sysentry, proc_set_traced_sysexit,
2631 proc_set_held_signals, proc_get_held_signals,
2632 proc_get_traced_signals, proc_get_traced_faults,
2633 proc_get_traced_sysentry, proc_get_traced_sysexit,
2634 proc_clear_current_fault, proc_set_current_signal,
2635 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2636 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2637 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2638 proc_get_current_thread, proc_get_current_thread,
2639 proc_get_current_thread, proc_update_threads,
2640 proc_update_threads, proc_update_threads, proc_update_threads,
2641 proc_iterate_over_threads, procfs_find_new_threads,
2642 procfs_pid_to_str): Make static. Remove advance declaration.
2643 (proc_cursig): Make static. Conditionalized defintion on
2644 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2645 (proc_syscall, proc_set_kill_on_last_close,
2646 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2647 proc_get_pending_signals, proc_get_signal_actions,
2648 proc_trace_signal, proc_ignore_signal): Delete.
2652 * coffread.c (cs_section_address): Passing proper argument for
2653 `bfd_get_section_vma'.
2654 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2655 `bfd_get_section_flags'.
2656 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2657 `bfd_get_section_vma'.
2662 * macrotab.h: (macro_define_special): Declare.
2663 (enum macro_special_kind): New.
2664 (struct macro_definition) <argc, replacement>: Update comments.
2665 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2666 (macro_define_object_internal): New function.
2667 (macro_define_object): Use it.
2668 (macro_define_special): New function.
2669 (fixup_definition): New function.
2670 (macro_lookup_definition, foreach_macro_in_scope)
2671 (foreach_macro): Use fixup_definition.
2672 * macroexp.h (macro_stringify): Declare.
2673 * macroexp.c (free_buffer_return_text): New function.
2674 (stringify): Constify "arg".
2675 (macro_stringify): New function.
2676 * dwarf2read.c (macro_start_file): Call macro_define_special.
2681 * breakpoint.h (bp_location): Add related_address member.
2682 * inferior.h (get_return_value): Take a pointer to struct value
2683 instead of struct type for the function requested.
2684 * value.h (using_struct_return): Likewise.
2685 * gdbarch.sh (return_value): Take a pointer to struct value
2686 instead of struct type for the function requested.
2687 * breakpoint.c (set_breakpoint_location_function): Initialize
2688 related_address for bp_gnu_ifunc_resolver breakpoints.
2689 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2690 requested function's address to gdbarch_return_value.
2691 * eval.c (evaluate_subexp_standard): Pass the requested
2692 function's address to using_struct_return.
2693 * infcall.c (call_function_by_hand): Pass the requested
2694 function's address to using_struct_return and
2695 gdbarch_return_value.
2696 * infcmd.c (get_return_value): Take a pointer to struct value
2697 instead of struct type for the function requested.
2698 (print_return_value): Update accordingly.
2699 (finish_command_continuation): Likewise.
2700 * stack.c (return_command): Pass the requested function's
2701 address to using_struct_return and gdbarch_return_value.
2702 * value.c (using_struct_return): Take a pointer to struct value
2703 instead of struct type for the function requested. Pass the
2704 requested function's address to gdbarch_return_value.
2705 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2706 New function_value member, replacing function_type.
2707 (bpfinishpy_dealloc): Update accordingly.
2708 (bpfinishpy_pre_stop_hook): Likewise.
2709 (bpfinishpy_init): Likewise. Record the requested function's
2711 * mips-tdep.c (mips_fval_reg): New enum.
2712 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2713 words put in GP registers.
2714 (mips_o64_push_dummy_call): Update a comment.
2715 (mips_o32_return_value): Take a pointer to struct value instead
2716 of struct type for the function requested and use it to check if
2717 using the MIPS16 calling convention. Return the designated
2718 general purpose registers for floating-point values returned in
2720 (mips_o64_return_value): Likewise.
2721 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2722 (ppc_sysv_abi_broken_return_value): Likewise.
2723 (ppc64_sysv_abi_return_value): Likewise.
2724 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2725 value instead of struct type for the function requested.
2726 * amd64-tdep.c (amd64_return_value): Likewise.
2727 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2728 * arm-tdep.c (arm_return_value): Likewise.
2729 * avr-tdep.c (avr_return_value): Likewise.
2730 * bfin-tdep.c (bfin_return_value): Likewise.
2731 * cris-tdep.c (cris_return_value): Likewise.
2732 * frv-tdep.c (frv_return_value): Likewise.
2733 * h8300-tdep.c (h8300_return_value): Likewise.
2734 (h8300h_return_value): Likewise.
2735 * hppa-tdep.c (hppa32_return_value): Likewise.
2736 (hppa64_return_value): Likewise.
2737 * i386-tdep.c (i386_return_value): Likewise.
2738 * ia64-tdep.c (ia64_return_value): Likewise.
2739 * iq2000-tdep.c (iq2000_return_value): Likewise.
2740 * lm32-tdep.c (lm32_return_value): Likewise.
2741 * m32c-tdep.c (m32c_return_value): Likewise.
2742 * m32r-tdep.c (m32r_return_value): Likewise.
2743 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2744 * m68k-tdep.c (m68k_return_value): Likewise.
2745 (m68k_svr4_return_value): Likewise.
2746 * m88k-tdep.c (m88k_return_value): Likewise.
2747 * mep-tdep.c (mep_return_value): Likewise.
2748 * microblaze-tdep.c (microblaze_return_value): Likewise.
2749 * mn10300-tdep.c (mn10300_return_value): Likewise.
2750 * moxie-tdep.c (moxie_return_value): Likewise.
2751 * mt-tdep.c (mt_return_value): Likewise.
2752 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2753 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2754 (ppc_sysv_abi_broken_return_value): Likewise.
2755 (ppc64_sysv_abi_return_value): Likewise.
2756 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2757 * rl78-tdep.c (rl78_return_value): Likewise.
2758 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2759 * rx-tdep.c (rx_return_value): Likewise.
2760 * s390-tdep.c (s390_return_value): Likewise.
2761 * score-tdep.c (score_return_value): Likewise.
2762 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2763 (sh_return_value_fpu): Likewise.
2764 * sh64-tdep.c (sh64_return_value): Likewise.
2765 * sparc-tdep.c (sparc32_return_value): Likewise.
2766 * sparc64-tdep.c (sparc64_return_value): Likewise.
2767 * spu-tdep.c (spu_return_value): Likewise.
2768 * tic6x-tdep.c (tic6x_return_value): Likewise.
2769 * v850-tdep.c (v850_return_value): Likewise.
2770 * vax-tdep.c (vax_return_value): Likewise.
2771 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2772 * xtensa-tdep.c (xtensa_return_value): Likewise.
2773 * gdbarch.c: Regenerate.
2774 * gdbarch.h: Regenerate.
2778 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2782 * breakpoint.c (init_breakpoint_sal): Add quotes around part
2783 of command in two error message.
2787 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
2791 * breakpoint.c (find_condition_and_thread): Minor reformatting.
2795 * NEWS (show auto-load scripts-directory): Add forgotten command.
2799 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
2804 * amd64-tdep.c: Include features/i386/x32.c and
2805 features/i386/x32-avx.c.
2806 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
2807 initialize_tdesc_x32_avx.
2812 * breakpoint.h (enum bptype): New type bp_dprintf.
2813 (struct breakpoint): New field extra_string.
2814 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
2815 (create_breakpoint): Add extra_string arg.
2816 * breakpoint.c (dprintf_breakpoint_ops): New.
2817 (is_breakpoint): Add bp_dprintf.
2818 (bpstat_what): Add dprintf case.
2819 (bptype_string): Ditto.
2820 (print_one_breakpoint_location): Ditto.
2821 (init_bp_location): Ditto.
2822 (bkpt_print_mention): Ditto.
2823 (dprintf_style_enums): New array.
2824 (dprintf_style): New global.
2825 (dprintf_function): New global.
2826 (dprintf_channel): New global.
2827 (update_dprintf_command_list): New function.
2828 (update_dprintf_commands): New function.
2829 (init_breakpoint_sal): Add extra_string argument, handle it.
2830 (create_breakpoint_sal): Add extra_string argument.
2831 (create_breakpoints_sal): Add extra_string argument, update callers.
2832 (find_condition_and_thread): Add extra argument.
2833 (create_breakpoint): Add extra_string argument, record it.
2834 (dprintf_command): New function.
2835 (break_command_1): Add arg to create_breakpoint call.
2836 (handle_gnu_v3_exceptions): Ditto.
2837 (trace_command): Ditto.
2838 (ftrace_command): Ditto.
2839 (strace_command): Ditto.
2840 (bkpt_print_mention): Add dprintf case.
2841 (create_breakpoint_sal_default): Add extra_string argument.
2842 (_initialize_breakpoint): Add new commands.
2843 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
2844 * python/py-breakpoint.c (bppy_init): Ditto.
2845 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2849 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
2853 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
2858 Add a new function gdb.find_pc_line to the Python API.
2859 * NEWS (Python Scripting): Add entry about the new function.
2860 * python/python.c (gdbpy_find_pc_line): New function which
2861 implements gdb.find_pc_line.
2862 (GdbMethods): Add entry for the new function.
2866 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
2867 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
2871 * inferior.c: Include completer.h
2872 (initialize_inferiors): Set completer of add-inferior to
2877 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2878 gdbarch_ptr_bit for x32 core dump.
2882 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
2883 and features/i386/x32-avx-linux.c.
2888 * NEWS: Describe new info os commands.
2889 * common/linux-osdata.c (PID_T, TIME_T): Define.
2890 (MAX_PID_T_STRLEN): New.
2891 (linux_common_core_of_thread): Add comment. Change to use PID_T and
2893 (command_from_pid): Add comment. Change to use PID_T.
2894 (commandline_from_pid): Change to use PID_T.
2895 (user_from_pid): Add comment.
2896 (get_process_owner): Add comment. Change to use PID_T and
2898 (get_number_of_cpu_cores): Add comment.
2899 (get_cores_used_by_process): Add comment. Change to use PID_T and
2901 (linux_xfer_osdata_processes): Change to use PID_T and
2903 (compare_processes): New function.
2904 (linux_xfer_osdata_processgroups): New function.
2905 (linux_xfer_osdata_threads): Change to use PID_T.
2906 (linux_xfer_osdata_fds): New function.
2907 (format_socket_state, print_sockets): New functions.
2908 (union socket_addr): New union.
2909 (linux_xfer_osdata_isockets): New function.
2910 (time_from_time_t, group_from_gid): New functions.
2911 (linux_xfer_osdata_shm): New function.
2912 (linux_xfer_osdata_sem): New function.
2913 (linux_xfer_osdata_msg): New function.
2914 (linux_xfer_osdata_modules): New function.
2915 (osdata_table): Add new entries.
2916 * common/buffer.c (buffer_xml_printf): Add support for long and
2917 long long format specifiers.
2921 * amd64-linux-tdep.h (tdesc_x32_linux): New.
2922 (tdesc_x32_avx_linux): Likewise.
2926 Implement multi-component --with-auto-load-dir.
2927 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
2929 (--with-auto-load-safe-path): Update the default value description.
2930 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
2932 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
2933 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
2934 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
2935 (_initialize_auto_load): Initialize also auto_load_dir. Install new
2936 "set auto-load scripts-directory".
2937 * config.in: Regenerate.
2938 * configure: Regenerate.
2939 * configure.ac (--with-auto-load-dir): New configure option.
2940 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
2944 Provide $ddir substitution for --with-auto-load-safe-path.
2945 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
2947 * auto-load.c: Include observer.h.
2948 (auto_load_safe_path_vec_update): Call substitute_path_component for
2949 each component. New variable ddir_subst.
2950 (auto_load_gdb_datadir_changed): New function.
2951 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2952 AUTO_LOAD_SAFE_PATH. New comment.
2953 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2954 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
2955 * config.in: Regenerate.
2956 * configure: Regenerate.
2957 * configure.ac (--auto-load-safe-path): Rename
2958 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
2959 GDB_DATADIR/auto-load.
2960 * defs.h (substitute_path_component): New declaration.
2961 * top.c: Include observer.h.
2962 (set_gdb_datadir): New function.
2963 (init_main): Install it for "set data-directory".
2964 * utils.c (substitute_path_component): New function.
2968 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2969 * auto-load.c (auto_load_objfile_script): Remove check for NULL
2970 DEBUG_FILE_DIRECTORY. Handle multiple components of
2971 DEBUG_FILE_DIRECTORY.
2975 * dwarf2read.c (recursively_write_psymbols): New function.
2976 (write_psymtabs_to_index): Use it.
2978 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2980 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2981 (load_partial_comp_unit): Update.
2982 (queue_comp_unit): Add argument 'pretend_language'.
2983 (process_queue): Update.
2984 (psymtab_to_symtab_1): Skip dependencies that have a user.
2985 (load_partial_comp_unit_reader): Give meaning to the 'data'
2987 (load_full_comp_unit): Add 'pretend_language' argument.
2988 (process_full_comp_unit): Add 'pretend_language' argument. Set
2990 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2992 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2993 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2995 (prepare_one_comp_unit): Add 'pretend_language' argument.
2997 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2998 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2999 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3000 (dw2_do_instantiate_symtab): Check whether symtab was read in
3002 (dw2_instantiate_symtab): Add assertion. Call
3003 process_cu_includes.
3004 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3005 (partial_symtab_p): New typedef.
3006 (set_partial_user): New function.
3007 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3008 (scan_partial_symbols): Add imported CU to imported_symtabs.
3009 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3010 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3011 (get_symtab, recursively_compute_inclusions)
3012 (compute_symtab_includes, process_cu_includes)
3013 (process_imported_unit_die): New functions.
3014 (process_die) <DW_TAG_imported_unit>: New case.
3015 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3017 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3019 (struct partial_die_info) <locdesc>: Remove.
3021 (process_psymtab_comp_unit): Add 'read_partial' argument.
3023 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3024 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3025 (add_partial_symbol): Update.
3026 (process_die): Handle DW_TAG_partial_unit.
3027 (read_file_scope): Update comment.
3028 (load_partial_dies): Handle DW_TAG_imported_unit.
3029 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3030 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3034 * cc-with-dwz.sh: New file.
3038 * symtab.h (struct symtab) <includes, user>: New fields.
3039 * block.h (struct block_iterator) <d, idx, which>: New fields.
3040 * block.c (initialize_block_iterator, find_iterator_symtab)
3041 (block_iterator_step, block_iter_name_step)
3042 (block_iter_match_step): New functions.
3043 (block_iterator_first, block_iterator_next)
3044 (block_iter_name_first, block_iter_name_next)
3045 (block_iter_match_first, block_iter_match_next): Rewrite.
3046 (get_block_symtab): New function.
3050 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3052 * jit.c (finalize_symtab): Use allocate_global_block,
3054 * buildsym.c (finish_block_internal): New function, from old
3056 (finish_block): Rewrite.
3057 (end_symtab): Use finish_block_internal, set_block_symtab.
3058 * block.h (struct global_block): New.
3059 (allocate_global_block, set_block_symtab): Declare.
3060 * block.c (allocate_global_block, set_block_symtab): New
3065 * psymtab.c (partial_map_expand_apply): Add assertion.
3066 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3067 (psymtab_to_symtab): Find unshared psymtab.
3068 (dump_psymtab): Print including psymtabs.
3069 (recursively_search_psymtabs): New function.
3070 (expand_symtabs_matching_via_partial): Use it.
3071 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3073 (enum psymtab_search_status): New.
3077 * tracepoint.c (scope_info): Update.
3078 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3079 (find_pc_sect_symtab, search_symbols)
3080 (default_make_symbol_completion_list_break_on)
3081 (make_file_symbol_completion_list): Update.
3082 * symmisc.c (dump_symtab_1): Update.
3083 * stack.c (print_frame_args, iterate_over_block_locals)
3084 (print_frame_labels, iterate_over_block_arg_vars): Update.
3085 * python/py-block.c (block_object) <dict>: Remove.
3087 <iter>: Change type.
3088 (blpy_iter): Update.
3089 (blpy_block_syms_iternext): Update.
3090 * psymtab.c (map_block): Use block iterators.
3091 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3092 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3093 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3094 * infrun.c (check_exception_resume): Update.
3095 * cp-support.c (make_symbol_overload_list_block): Update.
3096 * coffread.c (patch_opaque_types): Update.
3097 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3098 * block.h (struct block_iterator): New.
3099 (block_iterator_first, block_iterator_next, block_iter_name_first)
3100 (block_iter_name_next, block_iter_match_first)
3101 (block_iter_match_next): Declare.
3102 (ALL_BLOCK_SYMBOLS): Redefine.
3103 * block.c (block_iterator_first, block_iterator_next)
3104 (block_iter_name_first, block_iter_name_next)
3105 (block_iter_match_first, block_iter_match_next): New functions.
3106 * ada-lang.c (ada_add_block_symbols)
3107 (ada_make_symbol_completion_list): Use block iterator.
3111 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3112 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3113 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3114 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3115 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3120 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3121 print-file-var-lib2.c, print-file-var-main.c and
3122 print-file-var.exp (located in gdb/testsuite/gdb.base).
3126 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3127 try locating the symbol in the symbol's own objfile first, before
3128 extending the search to all objfiles.
3129 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3130 out of lookup_symbol_aux_symtabs.
3131 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3132 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3133 Do not search EXCLUDE_OBJFILE.
3134 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3135 (lookup_symbol_global): Search for matches in the block's objfile
3136 first, before searching all other objfiles.
3140 * printcmd.c (set_command): Add pre/post inc/dec.
3144 * gdb.1: Document -ex option.
3148 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3149 * inferior.h (AT_SYMBOL): Delete.
3153 * mips-tdep.c (mips_push_dummy_code): New function.
3154 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3155 ON_STACK and install mips_push_dummy_code as our gdbarch
3156 push_dummy_code routine.
3160 * target.c (set_maintenance_target_async_permitted): Rename to ...
3161 (set_target_async_command): ... this.
3162 (show_maintenance_target_async_permitted): Rename to ...
3163 (show_target_async_command): ... this.
3164 (initialize_targets): Adjust.
3168 * go-exp.y (classify_name): Add missing assignment of fields of
3173 Display the ">" prompt in interactive mode while reading canned
3174 commands, even when the current interpreter is MI.
3176 * interps.c (interp_set_temp): New function.
3178 * interps.h (interp_set_temp): Add prototype.
3180 * cli/cli-script.c (restore_interp): New cleanup function.
3181 (read_command_lines): Temporarily override the current interpreter
3182 with CLI and arrange for restoring the original one.
3186 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3190 * probe.c (parse_probes): Move conditional to check for
3191 debuginfo files from here...
3192 * stap-probe.c (stap_get_probes): ... to here.
3197 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3198 `movl %esp, %ebp' for the X32 ABI.
3202 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3204 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3205 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3206 (dwarf_stack_op_name): Remove.
3207 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3208 (decode_locdesc): Use get_DW_OP_name.
3209 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3210 (dwarf2_compile_expr_to_ax): Likewise.
3211 (disassemble_dwarf_expression): Likewise.
3212 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3216 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3217 (sh_linux_sigtramp_cache): New function.
3218 (sh_linux_sigreturn_init): New function.
3219 (sh_linux_rt_sigreturn_init): New function.
3220 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3222 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3224 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3225 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3226 (sh_linux_init_abi): Add init calls to register new tramp_frame
3227 definitions under 32-bit SH, update comments.
3233 * amd64-linux-tdep.c: Include glibc-tdep.h.
3234 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3235 gdbarch_skip_solib_resolver callback.
3239 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3240 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3241 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3242 (add_auto_load_safe_path): Change the error message.
3243 (_initialize_auto_load): Change the "safe-path" help text.
3244 * configure: Regenerate
3245 * configure.ac (--without-auto-load-safe-path): Set
3246 WITH_AUTO_LOAD_SAFE_PATH to /.
3250 * stap-probe.h: Do not include unecessary `probe.h'.
3254 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3255 bfd_und_section_ptr.
3256 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3257 and bfd_com_section_ptr.
3261 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3265 * windows-nat.h (segment_register_p_ftype): New typedef.
3266 (windows_set_segment_register_p): Add declaration.
3267 * windows-nat.c (segment_register_p): New static global.
3268 (windows_set_segment_register_p): New function.
3269 (do_windows_fetch_inferior_registers): Add special handling
3270 for segment registers.
3271 * amd64-windows-nat.c: #include "amd64-tdep.h".
3272 (amd64_windows_segment_register_p): New function.
3273 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3274 * i386-windows-nat.c: #include "i386-tdep.h".
3275 (i386_windows_segment_register_p): New function.
3276 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3280 * printcmd.c (set_command): Emit a warning if the expression is not
3285 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3290 * stap-probe.c (stap_is_operator): Change declaration.
3291 (stap_get_opcode): Change return value.
3292 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3293 `stap_parse_argument_1'.
3297 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3302 Add two new methods global_block and static_block to gdb.Symtab
3304 * NEWS (Python scripting): Add entry about the new methods.
3305 * python/py-symtab.c (stpy_global_block): New function which
3306 implements the gdb.Symtab.global_block() method.
3307 (stpy_static_block): New function which implements the
3308 gdb.Symtab.static_block() method.
3309 (symtab_object_methods): Add entries for the two new methods.
3313 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3318 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3320 (i386_process_record): Ditto.
3324 * infcall.c (unwind_on_signal_p): Make static.
3328 * sol-thread.c (solaris_pid_to_str): Make static.
3329 (_initialize_sol_thread): Add prototype.
3333 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3337 * MAINTAINERS: Remove myself.
3341 Fix --without-auto-load-safe-path for MS-Windows host platform.
3342 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3346 * gdb_curses.h: Undefine KEY_EVENT before including curses
3347 headers. Move "#undef MOUSE_MOVED" before any curses header
3352 * features/i386/i386-mmx-linux.c: Regenerate.
3353 * features/rs6000/powerpc-32.c: Likewise.
3354 * features/rs6000/powerpc-32l.c: Likewise.
3355 * features/rs6000/powerpc-403.c: Likewise.
3356 * features/rs6000/powerpc-403gc.c: Likewise.
3357 * features/rs6000/powerpc-405.c: Likewise.
3358 * features/rs6000/powerpc-505.c: Likewise.
3359 * features/rs6000/powerpc-601.c: Likewise.
3360 * features/rs6000/powerpc-602.c: Likewise.
3361 * features/rs6000/powerpc-603.c: Likewise.
3362 * features/rs6000/powerpc-604.c: Likewise.
3363 * features/rs6000/powerpc-64.c: Likewise.
3364 * features/rs6000/powerpc-64l.c: Likewise.
3365 * features/rs6000/powerpc-750.c: Likewise.
3366 * features/rs6000/powerpc-860.c: Likewise.
3367 * features/rs6000/powerpc-e500.c: Likewise.
3368 * features/rs6000/powerpc-e500l.c: Likewise.
3369 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3370 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3371 * features/rs6000/rs6000.c: Likewise.
3375 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3377 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3378 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3379 (stap_parse_argument) <e>: Likewise.
3380 (handle_stap_probe) <byte_order>: Likewise.
3384 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3385 init_and_read_dies_worker. All callers updated.
3386 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3387 replaced with init_cutu_and_read_dies.
3388 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3389 (find_partial_die): Remove FIXME. Don't free current CU.
3393 * contrib: New directory.
3394 * contrib/test_pubnames_and_indexes.py: New file.
3398 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3399 All callers updated.
3400 (init_cu_die_reader): Verify the section is non-empty.
3401 (dwarf_decode_line_header): Don't dereference section->asection
3402 until we know the section is present.
3406 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3411 * gdb-code-style.el: New hook gdb-markup-hook
3412 and gdb-comment-hook.
3416 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3417 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3419 * symfile.h (dwarf2_debug_sections): New member addr.
3420 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3421 (ctx_no_get_addr_index): New function.
3422 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3423 (ctx_no_get_addr_index): Declare.
3424 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3425 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3426 (dwarf_expr_ctx_funcs): Update.
3427 (needs_get_addr_index): New function.
3428 (needs_frame_ctx_funcs): Update.
3429 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3430 * dwarf2read.c: #include "gdbcore.h".
3431 (dwarf2_per_objfile): New members addr, dwo_files.
3432 (dwarf2_elf_names): Add entry for addr.
3433 (struct dwo_section_names): New type.
3434 (dwo_section_names): New static global.
3435 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3436 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3437 old debug_types_section member updated to use this.
3438 Rename member debug_types_section to info_or_types_section,
3440 (signatured_type): Rename member type_offset to type_offset_in_tu,
3441 all uses updated. New member type_offset_in_section.
3442 (struct dwo_sections): New type.
3443 (struct dwo_unit): New type.
3444 (struct dwo_file): New type.
3445 (die_reader_specs): New member dwo_file.
3446 (dwarf2_locate_sections): Watch for .debug_addr.
3447 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3448 (dwarf2_read_section): Get bfd of section from bfd's asection,
3450 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3451 (create_signatured_type_table_from_index): Initialize
3452 sig_type->info_or_types_section.
3453 (dw2_get_file_names): Statement lists for type units with DWO files
3454 live in the DWO file.
3455 (create_debug_types_hash_table): New function.
3456 (create_all_type_units): Rewrite.
3457 (init_cu_die_reader): New arg dwo_file, all callers updated.
3458 (init_and_read_dies_worker): Get section from
3459 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3460 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3461 continue reading the CU/TU from there.
3462 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3463 updated. Get section from this_cu->info_or_types_section.
3464 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3465 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3466 DW_FORM_GNU_str_index.
3467 (hash_dwo_file, eq_dwo_file): New functions.
3468 (allocate_dwo_file_hash_table): New function.
3469 (hash_dwo_unit, eq_dwo_unit): New functions.
3470 (allocate_dwo_unit_table): New function.
3471 (dwarf2_locate_dwo_sections): New function.
3472 (struct create_dwo_info_table_data): New type.
3473 (create_debug_info_hash_table_reader): New function.
3474 (create_debug_info_hash_table): New function.
3475 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3476 (lookup_dwo_file): New function.
3477 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3478 (free_dwo_file, free_dwo_file_cleanup): New functions.
3479 (free_dwo_file_from_slot, free_dwo_files): New functions.
3480 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3481 (dwarf2_record_block_ranges): Ditto.
3482 (read_partial_die): Ditto.
3483 (process_enumeration_scope): Update to use type_offset_in_section.
3484 (read_full_die_1): New function.
3485 (read_full_die): Rewrite.
3486 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3487 DW_FORM_GNU_str_index.
3488 (read_addr_index_1, read_addr_index): New functions.
3489 (read_addr_index_from_leb128): New function.
3490 (struct dwarf2_read_addr_index_data): New type.
3491 (dwarf2_read_addr_index_reader): New function.
3492 (dwarf2_read_addr_index): New function.
3493 (read_str_index): New function.
3494 (leb128_size): New function.
3495 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3496 If processing a type unit from a DWO file, get the line section
3498 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3499 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3500 DW_FORM_GNU_str_index.
3501 (lookup_die_type): Check whether section offset of type's die is
3502 known before looking it up. Remove assert. Condition can
3503 legimately happen for inter-cu type references.
3504 (dwarf_attr_name): Handle Fission attributes.
3505 (dwarf_form_name): Handle Fission forms.
3506 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3507 DW_FORM_GNU_str_index.
3508 (follow_die_sig): Update to use type_offset_in_section.
3509 (decode_locdesc): New case DW_OP_GNU_addr_index.
3510 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3511 DW_FORM_GNU_str_index.
3512 (cu_debug_loc_section): New function.
3513 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3514 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3515 Free DWO files if present.
3516 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3518 Refactor DIE reading.
3519 * dwarf2read.c (dwarf2_per_objfile): Replace members
3520 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3521 (die_reader_specs): New member "die_section". Temporarily make
3522 member "buffer" non-const, pending constifying all info_ptr uses.
3523 (die_reader_func_ftype): New typedef.
3524 (dw2_get_file_names_reader): New function.
3525 (dw2_get_file_names): Rewrite.
3526 (read_and_check_type_unit_head): Rename arg type_offset to
3528 (create_all_type_units): Improve debugging message.
3529 Improve dummy type unit check.
3530 (init_cu_die_reader): New arg "section". All callers updated.
3531 (init_and_read_dies_worker): New function.
3532 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3533 (init_cutu_and_read_dies_no_follow): New function.
3534 (init_cutu_and_read_dies_simple): New function.
3535 (process_psymtab_comp_unit_reader): New function.
3536 (process_psymtab_comp_unit): Delete args section,
3537 is_debug_types_section. Rewrite. All callers updated.
3538 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3539 All callers updated. Rewrite.
3540 (load_partial_comp_unit_reader): New function.
3541 (load_partial_comp_unit): Rewrite.
3542 (skip_children): New arg reader. Delete args buffer, cu.
3543 All callers updated.
3544 (skip_one_die): New arg reader. Delete args buffer, cu.
3545 All callers updated.
3546 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3547 All callers updated.
3548 (load_full_comp_unit_reader): New function.
3549 (load_full_comp_unit): Rewrite.
3550 (read_comp_unit): Delete.
3551 (read_die_and_children_1): Delete, contents moved ...
3552 (read_die_and_children): ... here.
3553 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3554 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3555 All callers updated.
3556 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3557 All callers updated.
3558 (find_partial_die): Rewrite load_all_dies support.
3559 (read_attribute_value): New arg reader. Delete args abfd, cu.
3560 All callers updated.
3561 (read_attribute): New arg reader. Delete args abfd, cu.
3562 All callers updated.
3563 (load_full_type_unit): Add assert.
3564 (read_signatured_type_reader): New function.
3565 (read_signatured_type): Rewrite.
3566 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3567 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3568 All callers updated. Set per_cu->cu = NULL after freeing it.
3569 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3570 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3571 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3572 (set_die_type): Update.
3573 (get_die_type_at_offset): Update.
3574 (read_file_scope): Call prepare_one_comp_unit.
3575 (read_type_unit_scope): Ditto.
3576 (prepare_one_comp_unit): Set producer if present.
3580 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3581 gettext function on `error'.
3585 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3591 * breakpoint.c (struct breakpoint_objfile_data)
3592 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3593 <exception_probes>: New fields.
3594 (free_breakpoint_probes): New function.
3595 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3596 `_Unwind_DebugHook'.
3597 (create_exception_master_breakpoint): Likewise.
3598 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3599 * infrun.c: Including necessary header files for handling SystemTap
3601 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3602 via SystemTap probes.
3603 (check_exception_resume): Remove `func' argument. Handle exception
3604 unwinding breakpoint set via a SystemTap probe.
3605 (insert_exception_resume_from_probe): New function.
3611 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3612 (COMMON_OBS): Likewise.
3613 (HFILES_NO_SRCDIR): Add `probe'.
3614 * NEWS: Mention support for static and SystemTap probes.
3615 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3616 SystemTap probes' arguments parser.
3617 * arm-linux-tdep.c: Including headers needed to perform the parsing
3618 of SystemTap probes' arguments.
3619 (arm_stap_is_single_operand): New function.
3620 (arm_stap_parse_special_token): Likewise.
3621 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3622 probes' arguments parser.
3623 * ax-gdb.c (require_rvalue): Removing static declaration.
3624 (gen_expr): Likewise.
3625 * ax-gdb.h (gen_expr): Declaring function.
3626 (require_rvalue): Likewise.
3627 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3628 (bkpt_probe_breakpoint_ops): New variable.
3629 (momentary_breakpoint_from_master): Set the `probe' value.
3630 (add_location_to_breakpoint): Likewise.
3631 (break_command_1): Using proper breakpoint_ops according to the
3632 argument passed by the user in the command line.
3633 (bkpt_probe_insert_location): New function.
3634 (bkpt_probe_remove_location): Likewise.
3635 (bkpt_probe_create_sals_from_address): Likewise.
3636 (bkpt_probe_decode_linespec): Likewise.
3637 (tracepoint_probe_create_sals_from_address): Likewise.
3638 (tracepoint_probe_decode_linespec): Likewise.
3639 (tracepoint_probe_breakpoint_ops): New variable.
3640 (trace_command): Using proper breakpoint_ops according to the
3641 argument passed by the user in the command line.
3642 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3643 static probes on breakpoints and tracepoints.
3644 * breakpoint.h (struct bp_location) <probe>: New field.
3645 * cli-utils.c (skip_spaces_const): New function.
3646 (extract_arg): Likewise.
3647 * cli-utils.h (skip_spaces_const): Likewise.
3648 (extract_arg): Likewise.
3649 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3650 * configure.ac: Append `stap-probe.o' to be generated when ELF
3652 * configure: Regenerate.
3653 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3654 * elfread.c: Include `probe.h' and `arch-utils.h'.
3655 (probe_key): New variable.
3656 (elf_get_probes): New function.
3657 (elf_get_probe_argument_count): Likewise.
3658 (elf_evaluate_probe_argument): Likewise.
3659 (elf_compile_to_ax): Likewise.
3660 (elf_symfile_relocate_probe): Likewise.
3661 (stap_probe_key_free): Likewise.
3662 (elf_probe_fns): New variable.
3663 (elf_sym_fns): Add `sym_probe_fns' value.
3664 (elf_sym_fns_lazy_psyms): Likewise.
3665 (elf_sym_fns_gdb_index): Likewise.
3666 (_initialize_elfread): Initialize objfile cache for static
3668 * gdb_vecs.h (struct probe): New forward declaration.
3669 (probe_p): New VEC declaration.
3670 * gdbarch.c: Regenerate.
3671 * gdbarch.h: Regenerate.
3672 * gdbarch.sh (stap_integer_prefix): New variable.
3673 (stap_integer_suffix): Likewise.
3674 (stap_register_prefix): Likewise.
3675 (stap_register_suffix): Likewise.
3676 (stap_register_indirection_prefix): Likewise.
3677 (stap_register_indirection_suffix): Likewise.
3678 (stap_gdb_register_prefix): Likewise.
3679 (stap_gdb_register_suffix): Likewise.
3680 (stap_is_single_operand): New function.
3681 (stap_parse_special_token): Likewise.
3682 (struct stap_parse_info): Forward declaration.
3683 * i386-tdep.c: Including headers needed to perform the parsing
3684 of SystemTap probes' arguments.
3685 (i386_stap_is_single_operand): New function.
3686 (i386_stap_parse_special_token): Likewise.
3687 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3688 probes' arguments parser.
3689 * i386-tdep.h (i386_stap_is_single_operand): New function.
3690 (i386_stap_parse_special_token): Likewise.
3691 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3692 * mipsread.c (ecoff_sym_fns): Likewise.
3693 * objfiles.c (objfile_relocate1): Support relocation for static
3695 * parse.c (prefixify_expression): Remove static declaration.
3696 (initialize_expout): Likewise.
3697 (reallocate_expout): Likewise.
3698 * parser-defs.h (initialize_expout): Declare function.
3699 (reallocate_expout): Likewise.
3700 (prefixify_expression): Likewise.
3701 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3702 of SystemTap probes' arguments.
3703 (ppc_stap_is_single_operand): New function.
3704 (ppc_stap_parse_special_token): Likewise.
3705 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3706 probes' arguments parser.
3707 * probe.c: New file, for generic statically defined probe support.
3708 * probe.h: Likewise.
3709 * s390-tdep.c: Including headers needed to perform the parsing of
3710 SystemTap probes' arguments.
3711 (s390_stap_is_single_operand): New function.
3712 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3713 probes' arguments parser.
3714 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3715 * stap-probe.c: New file, for SystemTap probe support.
3716 * stap-probe.h: Likewise.
3717 * symfile.h: Include `gdb_vecs.h'.
3718 (struct sym_probe_fns): New struct.
3719 (struct sym_fns) <sym_probe_fns>: New field.
3720 * symtab.c (init_sal): Initialize `probe' field.
3721 * symtab.h (struct probe): Forward declaration.
3722 (struct symtab_and_line) <probe>: New field.
3723 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3725 (stop_tracing): Likewise.
3726 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3731 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3732 and to compile agent expressions.
3733 * infrun.c (siginfo_make_value): New argument `ignore'.
3734 (siginfo_funcs): New struct.
3735 (_initialize_infrun): New argument when calling
3736 `create_internalvar_type_lazy'.
3737 * thread.c (thread_id_make_value): New argument `ignore'.
3738 (thread_funcs): New struct.
3739 (_initialize_thread): New argument when calling
3740 `create_internalvar_type_lazy'.
3741 * tracepoint.c (sdata_make_value): New argument `ignore'.
3742 (sdata_funcs): New struct.
3743 (_initialize_tracepoint): New argument when calling
3744 `create_internalvar_type_lazy'.
3745 * value.c (make_value): New struct.
3746 (create_internalvar_type_lazy): New argument `data'.
3747 (compile_internalvar_to_ax): New function.
3748 (value_of_internalvar): Properly handling `make_value' case.
3749 (clear_internalvar): Likewise.
3750 (show_convenience): Adding `TRY_CATCH' block.
3751 * value.h (internalvar_make_value): Delete, replace by...
3752 (struct internalvar_funcs): ... this.
3753 (create_internalvar_type_lazy) <fun>: Delete argument.
3754 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3755 (compile_internalvar_to_ax): New function.
3756 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3757 (tlb_funcs): New struct.
3758 (_initialize_windows_tdep): New argument when calling
3759 `create_internalvar_type_lazy'.
3763 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3764 see whether it is an address or a constant offset from DW_AT_low_pc.
3765 (dwarf2_record_block_ranges): Likewise.
3766 (read_partial_die): Likewise.
3770 * MAINTAINERS (Write After Approval): Add myself to the list.
3774 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3775 (proc_prettyprint_signal): Likewise.
3776 (proc_prettyprint_faultset): Likewise.
3777 (proc_prettyprint_fault): Likewise.
3778 (proc_prettyprint_actionset): Likewise.
3779 (proc_prettyprint_flags): Move to new proc-flags.c section.
3780 (proc_prettyfprint_flags): New prototype.
3781 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
3782 (proc_syscall, proc_cursig): Likewise.
3783 (proc_set_kill_on_last_close): Likewise.
3784 (proc_unset_kill_on_last_close): Likewise.
3785 (proc_set_watchpoint): Make static.
3786 (proc_delete_dead_threads): Likewise.
3787 (procfs_set_watchpoint): Likewise.
3788 (_initialize_procfs): Add prototype.
3789 * proc-events.c: Include proc-utils.h.
3790 (init_syscall_table): Make static.
3791 * proc-api.c (_initialize_proc_api): Add prototype.
3792 * proc-flags.c: Include proc-utils.h.
3796 * configure.ac: Add AC_ARG_PROGRAM.
3797 * configure: Regenerate.
3801 Fix DW_AT_lower_bound defaults for DWARF-4+.
3802 * dwarf2read.c (read_subrange_type): Remove initialization of low and
3803 high. New variable low_default_is_valid. Implement DWARF-4+
3804 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
3805 no default by the DWARF standard.
3810 * infrun.c (handle_inferior_event): Move the check for return
3811 trampolines ahead of the check for function trampolines.
3812 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
3813 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
3814 (mips_str_mips16_ret_stub): Likewise.
3815 (mips_str_call_fp_stub): Likewise.
3816 (mips_str_call_stub): Likewise.
3817 (mips_str_fn_stub): Likewise.
3818 (mips_str_pic): Likewise.
3819 (mips_in_frame_stub): New function.
3820 (mips_unwind_pc): Return the return address rather than the PC
3821 if the PC of an intermediate frame is inside a call thunk.
3822 (mips_is_stub_suffix): New function.
3823 (mips_is_stub_mode): Likewise.
3824 (mips_get_mips16_fn_stub_pc): Likewise.
3825 (mips_skip_mips16_trampoline_code): Update to handle all the
3826 currently generated stub types. Don't recurse into __fn_stub
3827 thunks. Remove heuristics to handle stubs beyond etext/_etext.
3828 Use cooked register accesses.
3829 (mips_in_return_stub): Reintroduce function.
3830 (mips_skip_trampoline_code): Traverse trampolines recursively.
3831 (mips_gdbarch_init): Handle MIPS16 return trampolines.
3839 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
3840 * features/arm-with-m-vfp-d16.xml: New file. Describes
3841 Cortex-M with VFPv4-sp-d16 FPU register layout.
3842 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
3843 * features/arm-with-m-vfp-d16.c: New. Generated from above.
3844 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
3845 (arm-register_g_packet_guesses): Add vfp-d16 guess.
3846 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
3850 * cli/cli-decode.c (print_doc_line): Use stream instead of
3855 * features/arm-with-iwmmxt.c: Regenerate.
3856 * features/arm-with-m-fpa-layout.c: Likewise.
3857 * features/arm-with-m.c: Likewise.
3858 * features/arm-with-neon.c: Likewise.
3859 * features/arm-with-vfpv2.c: Likewise.
3860 * features/arm-with-vfpv3.c: Likewise.
3861 * features/mips-dsp-linux.c: Likewise.
3862 * features/mips-linux.c: Likewise.
3863 * features/mips64-dsp-linux.c: Likewise.
3864 * features/mips64-linux.c: Likewise.
3865 * features/s390-linux32.c: Likewise.
3866 * features/s390-linux32v1.c: Likewise.
3867 * features/s390-linux32v2.c: Likewise.
3868 * features/s390-linux64.c: Likewise.
3869 * features/s390-linux64v1.c: Likewise.
3870 * features/s390-linux64v2.c: Likewise.
3871 * features/s390x-linux64.c: Likewise.
3872 * features/s390x-linux64v1.c: Likewise.
3873 * features/s390x-linux64v2.c: Likewise.
3874 * features/tic6x-c62x-linux.c: Likewise.
3875 * features/tic6x-c62x.c: Likewise.
3876 * features/tic6x-c64x-linux.c: Likewise.
3877 * features/tic6x-c64x.c: Likewise.
3878 * features/tic6x-c64xp-linux.c: Likewise.
3879 * features/tic6x-c64xp.c: Likewise.
3880 * target-descriptions.c: Only generate `field_type' and `type'
3881 variables when needed.
3885 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3889 Initial pass at Go language support.
3891 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3893 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
3894 (YYFILES): Add go-exp.c.
3895 (YYOBJ): Add go-exp.o.
3896 (local-maintainer-clean): Delete go-exp.c.
3897 * defs.h (enum language): Add language_go.
3898 * dwarf2read.c: #include "go-lang.h".
3899 (fixup_go_packaging): New function.
3900 (process_full_comp_unit): Call it when processing Go CUs.
3901 (dwarf2_physname): Add Go support.
3902 (read_file_scope): Handle missing language spec for GNU Go.
3903 (set_cu_language): Handle DW_LANG_Go.
3904 * go-exp.y: New file.
3905 * go-lang.h: New file.
3906 * go-lang.c: New file.
3907 * go-typeprint.c: New file.
3908 * go-valprint.c: New file.
3909 * symtab.c: #include "go-lang.h".
3910 (symbol_set_language): Handle language_go.
3911 (symbol_find_demangled_name, symbol_set_names): Ditto.
3912 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
3916 avoid a few strncpy-induced buffer overruns
3917 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
3918 fname and psargs before trying to concatenate.
3919 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
3920 "name" before applying strchr.
3924 * CONTRIBUTE: Use unified diff instead of context diff when
3929 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
3930 code. Handle JR.HB correctly.
3935 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
3936 with the other MIPS16 helpers.
3940 * observer.sh: Conditionally declare `args', thus cleaning up
3941 unused instances of this variable.
3945 Revert this patch to allow breakpoint always-inserted
3948 * breakpoint.c: Include record.h.
3949 (breakpoints_always_inserted_mode): Return false when the record
3952 * breakpoint.c (iterate_over_bp_locations): New.
3953 * breakpoint.h: Declare.
3954 New typedef walk_bp_location_callback.
3955 * record.c (record_open): Call record_init_record_breakpoints.
3956 (record_sync_record_breakpoints): New.
3957 (record_init_record_breakpoints): New.
3958 * NEWS: Mention supporting breakpoint always-inserted mode in
3963 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3968 * breakpoint.c (ep_is_catchpoint): Renamed to ...
3969 (is_catchpoint): ... it.
3970 (print_one_breakpoint_location): Caller update.
3971 * breakpoint.h: Update declaration.
3975 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3979 * buildsym.c (add_free_pendings): Remove.
3980 * buildsym.h (add_free_pendings): Remove.
3984 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3985 attr.u.unsnd instead of attr.u.addr.
3986 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3987 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3989 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3990 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3992 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3996 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3997 (mips_o32_return_value): Likewise.
3998 (mips_o64_return_value): Likewise.
4002 * ada-lang.c (ada_evaluate_subexp): Add cases for
4003 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4004 their treatment in eval.c.
4008 * sparc-tdep.c (X_DISP10): Define.
4009 (sparc_analyze_control_transfer): Handle compare-and-branch.
4013 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4014 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4019 * mips-tdep.c (mips_float_register_p): New function.
4020 (mips_convert_register_float_case_p): Use mips_float_register_p.
4021 (mips_register_type): Likewise.
4022 (mips_print_register): Likewise.
4023 (print_gp_register_row): Likewise.
4024 (mips_print_registers_info): Likewise.
4028 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4033 * MAINTAINERS (Write After Approval): Add myself to the list.
4037 * MAINTAINERS: Update my e-mail address.
4041 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4043 * configure: Regenerate.
4047 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4049 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4053 Fix compilation compatibility with python-2.4
4054 * python/py-type.c (convert_field): Cast ADDRSTRING for
4055 PyObject_SetAttrString as non-const. New comment.
4059 * top.c (quit_target): Use all_cleanups.
4060 * main.c (captured_command_loop): Use all_cleanups.
4061 * exceptions.c (throw_exception): Use all_cleanups.
4065 * Makefile.in (GNULIB_BUILDDIR): New.
4066 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4067 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4068 (CLEANDIRS). Remove gnulib/import.
4069 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4071 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4072 (gnulib/import/Makefile): Replace gnulib/import with
4073 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4074 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4075 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4076 acx_configure_dir.m4.
4077 * acinclude.m4: Include acx_configure_dir.m4.
4078 * acx_configure_dir.m4: New file.
4079 * aclocal.m4: Regenerate.
4080 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4081 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4082 (GNULIB): New variable.
4083 (GNULIB_STDINT_H): Adjust.
4084 (AC_OUTPUT): Don't output gnulib/Makefile.
4085 * gdb/defs.h: Include build-gnulib/config.h.
4086 * aclocal.m4: Regenerate.
4087 * config.in: Regenerate.
4088 * configure: Regenerate.
4090 * gnulib/Makefile.in: New file.
4091 * gnulib/configure.ac: New file.
4092 * gnulib/aclocal.m4: New file.
4093 * gnulib/config.in: New file.
4094 * gnulib/configure: New file.
4095 * gnulib/: Re-run gnulib-tool to adjust.
4099 * cleanups.h (struct cleanup): Move to cleanups.c.
4100 (make_cleanup_dtor_ftype): New typedef.
4101 (make_cleanup_dtor): Use it.
4102 (ALL_CLEANUPS): Replace with ...
4103 (all_cleanups): ... this. Declare. All uses updated.
4104 * cleanups.c: #include "gdb_assert.h".
4105 (sentinel_cleanup): New static global.
4106 (SENTINEL_CLEANUP): Define.
4107 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4108 (make_my_cleanup2): Assert result is non-NULL.
4109 (all_cleanups): New function.
4110 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4115 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4116 Adjust paths to gnulib imported files.
4120 * gnulib/: Move whole directory ...
4121 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4122 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4123 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4124 (aclocal_m4_deps): Adjust.
4125 * aclocal.m4: Regenerate.
4126 * configure: Regenerate.
4127 * configure.ac: Adjust AC_OUTPUT output.
4131 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4133 * vec.c: Move it ...
4134 * common/vec.c: ... here.
4135 * vec.h: Move it ...
4136 * common/vec.h: ... here.
4140 * gdb-code-style.el: New.
4144 Update gnulib from latest git.
4145 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4147 * gnulib/Makefile.am: Update.
4148 * gnulib/dummy.c: Update.
4149 * gnulib/extra/arg-nonnull.h: Update.
4150 * gnulib/extra/c++defs.h: Update.
4151 * gnulib/extra/update-copyright: Update.
4152 * gnulib/extra/warn-on-use.h: Update.
4153 * gnulib/inttypes.in.h: Update.
4154 * gnulib/m4/00gnulib.m4: Update.
4155 * gnulib/m4/extensions.m4: Update.
4156 * gnulib/m4/gnulib-cache.m4: Update.
4157 * gnulib/m4/gnulib-common.m4: Update.
4158 * gnulib/m4/gnulib-comp.m4: Update.
4159 * gnulib/m4/gnulib-tool.m4: Update.
4160 * gnulib/m4/include_next.m4: Update.
4161 * gnulib/m4/inttypes-pri.m4: Update.
4162 * gnulib/m4/inttypes.m4: Update.
4163 * gnulib/m4/longlong.m4: Update.
4164 * gnulib/m4/memchr.m4: Update.
4165 * gnulib/m4/memmem.m4: Update.
4166 * gnulib/m4/mmap-anon.m4: Update.
4167 * gnulib/m4/multiarch.m4: Update.
4168 * gnulib/m4/onceonly.m4: Update.
4169 * gnulib/m4/stddef_h.m4: Update.
4170 * gnulib/m4/stdint.m4: Update.
4171 * gnulib/m4/string_h.m4: Update.
4172 * gnulib/m4/warn-on-use.m4: Update.
4173 * gnulib/m4/wchar_h.m4: Update.
4174 * gnulib/m4/wchar_t.m4: Update.
4175 * gnulib/m4/wint_t.m4: Update.
4176 * gnulib/memchr.c: Update.
4177 * gnulib/memmem.c: Update.
4178 * gnulib/stddef.in.h: Update.
4179 * gnulib/stdint.in.h: Update.
4180 * gnulib/str-two-way.h: Update.
4181 * gnulib/string.in.h: Update.
4182 * gnulib/wchar.in.h: Update.
4184 * gnulib/extra/arg-nonnull.h: Delete.
4185 * gnulib/extra/c++defs.h: Delete.
4186 * gnulib/extra/warn-on-use.h: Delete.
4187 * gnulib/m4/wchar_h.m4: Delete.
4188 * gnulib/m4/wint_t.m4: Delete.
4189 * gnulib/wchar.in.h: Delete.
4191 * gnulib/extra/snippets/arg-nonnull.h: New.
4192 * gnulib/extra/snippets/c++defs.h: New.
4193 * gnulib/extra/snippets/warn-on-use.h: New.
4195 * aclocal.m4: Regenerate.
4196 * config.in: Regenerate.
4197 * configure: Regenerate.
4198 * gnulib/Makefile.in: Regenerate.
4202 Reimport the update-copyright module from gnulib
4203 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4205 * configure: Regenerate.
4206 * gnulib/Makefile.am: Update.
4207 * gnulib/Makefile.in: Regenerate.
4208 * gnulib/extra/update-copyright: Update.
4209 * gnulib/m4/gnulib-cache.m4: Update.
4210 * gnulib/m4/gnulib-comp.m4: Update.
4214 * configure.ac (aix): Put -lpthread into libs.
4215 * configure: Regenerate.
4219 * linespec.c (convert_linespec_to_sals): Don't use
4221 (compare_msymbols): Arguments are minsym_and_objfile, not
4222 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4226 Revert gnulib/ part of:
4228 Copyright year update in most files (performed by copyright.sh).
4232 Fix 64-bit constants on 32-bit hosts.
4233 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4234 from unsigned long to ULONGEST.
4235 (read_signed_leb128): Change declaration return type from long to
4237 (dwarf2_const_value_attr): Change declaration parameter value from long
4239 (dwarf2_compute_name): Change variable value from long to LONGEST.
4240 (read_unsigned_leb128): Change return type, variable result and some
4241 casts from unsigned long to ULONGEST.
4242 (read_signed_leb128): Change return type, variable result and some
4243 casts from long to LONGEST.
4244 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4245 value from long to LONGEST.
4246 (dwarf2_const_value): Change variable value from long to LONGEST.
4247 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4248 plongest and hex_string.
4249 * symtab.h (struct general_symbol_info): Change ivalue from long to
4250 LONGEST, remove the comment.
4251 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4252 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4257 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4258 * ada-lang.c (ada_discrete_type_high_bound)
4259 (ada_discrete_type_low_bound): Fix function comment. Use
4260 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4261 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4262 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4263 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4264 Use TYPE_FIELD_ENUMVAL.
4265 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4266 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4267 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4268 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4270 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4271 * dwarf2read.c (process_enumeration_scope): Likewise.
4272 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4274 (class StructMainTypePrettyPrinter): Support also
4275 FIELD_LOC_KIND_ENUMVAL.
4276 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4278 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4279 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4280 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4281 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4283 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4284 accommodate enumval.
4285 (struct call_site): Adjust loc_kind to accommodate enumval.
4286 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4287 (TYPE_FIELD_ENUMVAL): New macros.
4288 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4289 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4291 * p-typeprint.c (pascal_type_print_base): Likewise.
4292 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4294 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4295 * python/py-type.c (convert_field): New variable addrstring. Use
4296 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4297 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4298 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4299 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4301 * valprint.c (generic_val_print): Likewise.
4305 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4307 * dwarf2read.c: Whitespace fixes.
4308 (lookup_signatured_type): Tweak comment.
4309 (get_die_type_at_offset): Fix comment.
4313 * xcoffread.c (xcoff_secnum_to_sections): New function.
4314 (secnum_to_section, secnum_to_bfd_section): Reimplement
4315 using xcoff_secnum_to_sections. Rename "secnum" parameter
4317 (RECORD_MINIMAL_SYMBOL): Delete.
4318 (record_minimal_symbol): New function.
4319 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4320 by call to record_minimal_symbol and set misc_func_recorded
4321 to 1. Set last_csect_sec to the XCOFF section index instead
4322 of GDB's section_offset index. Update calls to
4323 prim_record_minimal_symbol_and_info to pass the BFD section
4328 * xcoffread.c (read_xcoff_symtab): Delete variables
4329 last_csect_val and last_csect_sec and associated code.
4333 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4334 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4335 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4336 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4338 * cleanups.h: New file.
4339 * cleanups.c: New file.
4340 * Makefile.in (SFILES): Add cleanups.c.
4341 (HFILES_NO_SRCDIR): Add cleanups.h.
4342 (COMMON_OBS): Add cleanups.o.
4343 * defs.h (struct cleanup): Moved to cleanups.h.
4344 (do_cleanups,do_final_cleanups): Ditto.
4345 (discard_cleanups,discard_final_cleanups): Ditto
4346 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4347 (save_cleanups,save_final_cleanups): Ditto.
4348 (restore_cleanups,restore_final_cleanups): Ditto.
4349 (null_cleanup): Ditto.
4350 (make_my_cleanup,make_my_cleanup2): Ditto.
4351 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4352 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4353 (do_cleanups,do_final_cleanups): Ditto.
4354 (discard_cleanups,discard_final_cleanups): Ditto
4355 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4356 (save_cleanups,save_final_cleanups): Ditto.
4357 (restore_cleanups,restore_final_cleanups): Ditto.
4358 (null_cleanup): Ditto.
4359 (make_my_cleanup,make_my_cleanup2): Ditto.
4360 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4362 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4364 (make_cleanup_dyn_string_delete): Ditto.
4365 (make_cleanup_ui_file_delete): Ditto.
4366 (make_cleanup_ui_out_redirect_pop): Ditto.
4367 (make_cleanup_free_section_addr_info): Ditto.
4368 (make_cleanup_restore_integer): Ditto.
4369 (make_cleanup_unpush_target): Ditto.
4370 (make_cleanup_value_free_to_mark): Ditto.
4371 (make_cleanup_value_free): Ditto.
4372 (make_cleanup_free_so): Ditto.
4376 New option "set debug auto-load".
4377 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4378 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4379 (auto_load_safe_path_vec_update)
4380 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4382 (file_is_auto_load_safe): New parameters debug_fmt and ....
4383 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4384 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4385 caller by explanatory string.
4386 (_initialize_auto_load): Register "set debug auto-load".
4387 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4389 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4390 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4391 by explanatory string.
4392 * main.c (captured_main): Likewise.
4393 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4394 (source_section_scripts): Likewise.
4398 New option "set auto-load safe-path".
4399 * NEWS: New commands "set auto-load safe-path"
4400 and "show auto-load safe-path".
4401 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4402 (auto_load_safe_path, auto_load_safe_path_vec)
4403 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4404 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4405 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4406 (source_gdb_script_for_objfile): New variable is_safe. Call
4407 file_is_auto_load_safe. Return if it is not.
4408 (struct loaded_script): New field loaded.
4409 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4410 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4411 output "Missing" to "No".
4412 (_initialize_auto_load): New variable cmd. Initialize
4413 auto_load_safe_path. Register "set auto-load safe-path",
4414 "show auto-load safe-path" and "add-auto-load-safe-path".
4415 * auto-load.h (maybe_add_script): Add parameter loaded.
4416 (file_is_auto_load_safe): New declaration.
4417 * config.in: Regenerate.
4418 * configure: Regenerate.
4419 * configure.ac: New parameters --with-auto-load-safe-path
4420 and --without-auto-load-safe-path.
4421 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4422 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4423 * main.c (captured_main): Check file_is_auto_load_safe for
4425 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4426 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4427 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4432 auto-load: Implementation.
4433 * NEWS: New descriptions for "info auto-load",
4434 "info auto-load gdb-scripts", "info auto-load python-scripts",
4435 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4436 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4437 and "show auto-load-scripts". New description for "set auto-load",
4438 "show auto-load", "set auto-load gdb-scripts",
4439 "show auto-load gdb-scripts", "set auto-load python-scripts",
4440 "show auto-load python-scripts", "set auto-load local-gdbinit",
4441 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4442 "show auto-load libthread-db".
4443 * auto-load.c: Remove include python/python-internal.h. Add includes
4444 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4446 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4447 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4448 (gdbpy_global_auto_load): Rename to ...
4449 (global_auto_load): ... here.
4450 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4451 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4452 (script_language_gdb, source_gdb_script_for_objfile): New.
4453 (struct loaded_script): New field language.
4454 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4456 (maybe_add_script): Add parameter language. Drop redundant
4457 entry.full_path initialization. Initialize entry.language and
4459 (auto_load_objfile_script): Change parameter suffix to language.
4460 Remove the call of maybe_add_script.
4461 Call language->source_script_for_objfile.
4462 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4464 (collect_matching_scripts): Adjust it for
4465 struct collect_matching_scripts_data.
4466 (auto_load_info_scripts_pattern_nl): New variable.
4467 (info_auto_load_scripts): Rename to ...
4468 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4469 for struct collect_matching_scripts_data.
4470 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4471 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4472 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4473 (auto_load_info_cmdlist_get): New.
4474 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4475 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4476 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4477 "info auto-load local-gdbinit".
4478 * auto-load.h (struct script_language): New.
4479 (gdbpy_global_auto_load): Rename to ...
4480 (global_auto_load): ... here.
4481 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4482 (auto_load_local_gdbinit_loaded): New declarations.
4483 (maybe_add_script): New parameter language.
4484 (auto_load_objfile_script): Change parameter suffix to language.
4485 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4486 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4487 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4489 * linux-thread-db.c: Include auto-load.h and ctype.h.
4490 (auto_load_thread_db, show_auto_load_thread_db): New.
4491 (struct thread_db_info): New field filename.
4492 (delete_thread_db_info): Call xfree for FILENAME.
4493 (try_thread_db_load): Initialize FILENAME.
4494 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4495 if !AUTO_LOAD_THREAD_DB.
4496 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4497 (_initialize_thread_db): Install auto_load_thread_db
4498 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4499 as "info auto-load libthread-db".
4500 * main.c (captured_main): Rename gdbpy_global_auto_load to
4501 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4502 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4503 (print_gdb_help): Extend the help for 'local init file'.
4504 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4505 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4506 (auto_load_scripts): Rename to ...
4507 (auto_load_python_scripts): ... here, update the comment.
4508 (gdbpy_load_auto_script_for_objfile): New declaration.
4509 (show_auto_load_python_scripts, script_language_python)
4510 (gdbpy_load_auto_script_for_objfile): New.
4511 (source_section_scripts): Refactor the code.
4512 (load_auto_scripts_for_objfile): Rename to ...
4513 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4514 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4515 (info_auto_load_python_scripts): New.
4516 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4517 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4518 Register "set auto-load-scripts" as its deprecated alias. Register
4519 "info auto-load python-scripts". Register "info auto-load-scripts" as
4520 its deprecated alias.
4521 (load_auto_scripts_for_objfile): Rename to ...
4522 (gdbpy_load_auto_scripts_for_objfile): ... here.
4523 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4524 (gdbpy_load_auto_scripts_for_objfile): ... here.
4528 auto-load: Move files.
4529 * Makefile.in (SFILES): Add auto-load.c.
4530 (HFILES_NO_SRCDIR): Add auto-load.h.
4531 (COMMON_OBS): Add auto-load.o.
4532 (distclean): Change .gdbinit for gdb-gdb.gdb.
4533 * auto-load.c: New file, with parts from python/py-auto-load.c.
4534 * auto-load.h: New file, with parts from python/python.h.
4535 * configure: Regenerate.
4536 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4537 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4538 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4539 * main.c: Include auto-load.h.
4540 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4541 command.h, observer.h and progspace.h to auto-load.c. Add include
4543 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4544 (struct loaded_script, auto_load_pspace_data)
4545 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4546 (hash_loaded_script_entry, eq_loaded_script_entry)
4547 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4548 (maybe_add_script): Move to auto-load.c.
4549 (source_section_scripts): Change maybe_add_script parameters passing,
4550 use script_not_found_warning_print.
4551 (clear_section_scripts, auto_load_objfile_script)
4552 (auto_load_new_objfile, loaded_script_ptr)
4553 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4554 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4555 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4556 auto_load_new_objfile and info_auto_load_scripts initizations to
4558 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4563 * charset.c (find_charset_names): Remove variables ix and elt.
4564 Use free_char_ptr_vec.
4565 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4566 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4567 debugdir_end. New variable debugdir_len.
4568 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4569 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4571 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4572 and elt. Use free_char_ptr_vec.
4573 * source.c (add_path): Remove variables argv, arg and argv_index.
4574 New variables dir_vec, back_to, ix and name.
4575 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4576 make_cleanup_freeargv. Remove variable separator. Simplify the code
4577 no longer expecting DIRNAME_SEPARATOR.
4578 (openp): Remove variable p, p1 and len. New variables dir_vec,
4579 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4580 no longer expecting DIRNAME_SEPARATOR.
4581 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4582 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4584 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4585 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4586 (dirnames_to_char_ptr_vec): New functions.
4591 * source.c (add_path): Remove always true conditional 'p == 0' and
4592 unindent its code block.
4596 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4597 (FIELD_BITPOS_LVAL): ... this.
4598 (FIELD_BITPOS): New.
4599 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4600 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4601 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4603 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4605 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4606 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4607 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4612 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4613 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4614 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4615 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4616 * jv-lang.c (java_link_class_type): Likewise, once.
4617 * stabsread.c (read_enum_type): Likewise.
4621 * common/agent.c (agent_run_command): Add one more parameter `len'.
4623 * common/agent.h: Update declaration.
4624 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4626 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4631 * value.c (value_actual_type): New function.
4632 * value.h (value_actual_type): New declaration.
4633 * varobj.c (update_type_if_necessary): New function.
4634 (varobj_create): Call value_actual_type instead of
4636 (install_dynamic_child): distinct changed and type changed MI variable
4638 (update_dynamic_varobj_children): Updated for install_dynamic_child
4639 change. All callers updated.
4640 (varobj_update): Support for MI variable object type change if
4641 the value changed and RTTI is used to determine the type.
4642 (create_child_with_value): Call value_actual_type instead of
4644 (adjust_value_for_child_access): Extended with a new parameter which
4645 specify whether the given value should be casted to enclosing type.
4646 All callers updated.
4650 Import gnulib module inttypes from git
4651 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4652 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4653 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4654 gnulib/m4/inttypes-pri.m4
4655 * aclocal.m4, config.in, configure: Regenerated.
4656 * gnulib/Makefile.am: Update.
4657 * gnulib/Makefile.in: Update.
4658 * gnulib/m4/gnulib-cache.m4: Update.
4659 * gnulib/m4/gnulib-comp.m4: Update.
4660 * gnulib/inttypes.in.h: New.
4661 * gnulib/m4/inttypes-pri.m4: New.
4662 * gnulib/m4/inttypes.m4: New.
4666 * infrun.c (resume): Update PC address to the real PC after
4667 preparing to do displaced stepping.
4671 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4672 All callers updated.
4676 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4680 * dwarf2read.c (create_all_type_units): Renamed from
4681 create_debug_types_hash_table. All callers updated.
4683 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4684 local type_sig to sig_type, type_offset to type_offset_in_tu.
4685 (hash_signatured_type): Renamed from hash_type_signature,
4686 all callers updated.
4687 (eq_signatured_type): Renamed from eq_type_signature,
4688 all callers updated.
4689 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4690 (process_enumeration_scope): Ditto.
4691 (lookup_signatured_type_at_offset): Ditto.
4692 (load_full_type_unit, read_signatured_type): Ditto.
4696 * remote.c (async_remote_interrupt): Correct function name in
4698 (async_remote_interrupt_twice): Ditto.
4702 * source.c (find_and_open_source): Consistently pass resulting
4703 full path through xfullpath.
4707 Provide more specific displaced-stepping memory error message.
4708 * infrun.c (displaced_step_prepare): New variable status. Call
4709 target_read_memory instead of read_memory, provide more specific
4715 * darwin-nat.c (darwin_execvp): Revert previous patch.
4720 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4725 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4730 New command 'explore' which helps explore values and types in
4732 * NEWS: Add an entry about the new 'explore' command.
4733 * data-directory/Makefile.in: Add gdb/command/explore.py
4734 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4735 command using the GDB Python API.
4739 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4740 extension in jump target calculation.
4744 * mips-tdep.c (mips32_next_pc): Handle JALX.
4748 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4752 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4753 and gnulib/m4/gnulib-tool.m4.
4757 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4758 (load_partial_dies): Clarify comment.
4759 (find_partial_die): Support rereading type units.
4760 Clarify CU handling, if we know offset is in CU, don't search for the
4761 containing CU. Add comment regarding memory waste.
4765 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4766 i386/x32-avx and i386/x32-avx-linux.
4767 (i386/x32-expedite): New.
4768 (i386/x32-linux-expedite): Likewise.
4769 (i386/x32-avx-expedite): Likewise.
4770 (i386/x32-avx-linux-expedite): Likewise.
4771 ($(outdir)/i386/x32.dat): Likewise.
4772 ($(outdir)/i386/x32-linux.dat): Likewise.
4773 ($(outdir)/i386/x32-avx.dat): Likewise.
4774 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4776 * features/i386/x32-avx-linux.xml: New file.
4777 * features/i386/x32-avx.xml: Likewise.
4778 * features/i386/x32-core.xml: Likewise.
4779 * features/i386/x32-linux.xml: Likewise.
4780 * features/i386/x32.xml: Likewise.
4782 * features/i386/x32-avx-linux.c: New. Generated.
4783 * features/i386/x32-avx.c: Likewise.
4784 * features/i386/x32-linux.c: Likewise.
4785 * features/i386/x32.c: Likewise.
4786 * regformats/i386/x32-avx-linux.dat: Likewise.
4787 * regformats/i386/x32-avx.dat: Likewise.
4788 * regformats/i386/x32-linux.dat: Likewise.
4789 * regformats/i386/x32.dat: Likewise.
4793 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
4794 code to kill the inferior.
4798 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4800 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4802 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
4803 (yyvsp): New defines.
4804 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4806 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4808 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4810 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4812 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4817 * sparc64-tdep.c (sparc64_store_arguments)
4818 (sparc64_store_arguments): Fix coding style.
4822 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4823 complex floats, adjust some related comments and tighten a related
4825 (sparc64_extract_return_value): Handle complex floats.
4829 * dwarf2read.c (load_partial_dies): Change condition to assert.
4833 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
4838 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
4840 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
4841 (v850_gdbarch_init): Set `num_regs' as appropriate for the
4846 * linespec.c (decode_compound): Remove.
4847 (enum offset_relative_sign): New enum.
4848 (struct line_offset): New struct.
4849 (struct linespec): New struct.
4850 (struct linespec_state): Move file_symtabs,
4851 user_filename, and user_function into struct linespec.
4852 Make result an anonymous struct holding vectors of
4853 symbolp and minsym_and_objfile_d.
4854 Add language member.
4855 (enum ls_token_type): New enum.
4856 (linespec_keywords): New array.
4857 (struct ls_token): New struct.
4858 (struct ls_parser): New struct.
4859 (linespec_lexer_lex_number): New function.
4860 (linespec_lexer_lex_keyword): New function.
4861 (is_ada_operator): New function.
4862 (skip_quote_char): New function.
4863 (copy_token_string): New function.
4864 (is_closing_quote_enclosed): New function.
4865 (find_parameter_list_end): New function.
4866 (linespec_lexer_lex_string): New function.
4867 (linespec_lexer_lex_one): New function.
4868 (linespec_lexer_consume_token): New function.
4869 (linespec_lexer_peek_token): New function.
4870 (cplusplus_error): Remove unused function.
4871 (find_methods): Update comment.
4872 (find_toplevel_char): Return const.
4873 (is_objc_method_format): Remove unused function.
4874 (find_toplevel_string): New function.
4875 (is_linespec_boundary): Remove.
4876 (symbol_not_found_error): New function.
4877 (find_method_overload_end): Remove function.
4878 (unexpected_linespec_error): New function.
4879 (keep_name_info): Remove.
4880 (linespec_parse_line_offset): New function.
4881 (linespec_parse_basic): New function.
4882 (canonicalize_linespec): New function.
4883 (decode_line_internal): Remove.
4884 (create_sals_line_offset): New function adapted from
4886 (convert_linespec_to_sals): New function.
4887 (parse_linespec): New function.
4888 (linespec_parser_new): New function.
4889 (linespec_state_destructor): Change parameter type to
4890 struct linespec_state *.
4891 Add language parameter.
4892 Remove freeing of moved members.
4893 (linespec_parser_delete): New function.
4894 (decode_line_full): Use parse_linespec and linespec_parser_new.
4895 (decode_line_1): Likewise.
4896 (decode_indirect): Rename to ...
4897 (linespec_expression_to_pc): ... this and rewrite
4898 to simply find CORE_ADDR, storing this result for later
4900 (locate_first_half): Remove.
4901 (deocde_objc): Add parameter LS.
4902 Initialize new struct collect_info members.
4903 Handle minimal symbols, too.
4904 (decode_compound): Delete.
4905 (lookup_prefix_sym): Rewrite.
4906 (compare_msymbols): New function.
4907 (find_method): Rewrite.
4908 Do not call cplusplus_error.
4909 (symtabs_from_filename): Rewrite.
4910 (collect_function_symbols): Delete.
4911 (find_function_symbols): Rewrite without ARGPTR-style
4913 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
4914 (decode_dollar): Adapted and renamed to ...
4915 (linespec_parse_variable): ... this.
4916 (find_linespec_symbols): New function.
4917 (decode_label): Adapted and renamed to ...
4918 (find_label_symbols): ... this.
4919 (decode_digits_list_mode): Add and use LS argument.
4920 (decode_digits_ordinary): Likewise.
4921 (collect_symbols): Do not collect SALs, just symbols and msymbols.
4922 If in list mode, allow any symbol class. Otherwise, only
4923 permit LOC_BLOCK symbols.
4924 (minsym_found): Update comments.
4925 (search_minsyms_for_name): Do not convert the matching symbol
4926 into a SAL. Simply push the symbol and objfile into the
4928 (decode_variable): Delete. Contents adapted into
4929 find_linespec_symbols.
4931 * cp-support.c (SKIP_SPACE): Remove.
4932 (operator_tokens): Remove unused global.
4933 (cp_validate_operator): Remove.
4934 * cp-support.h (cp_validate_operator): Remove declaration.
4938 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
4939 for TYPE_VPTR_FIELDNO.
4940 * valprint.c (valprint_check_validity): Make it global, move the
4941 function comment ...
4942 * value.h (valprint_check_validity): ... to this new declaration.
4946 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
4947 the STATE32 api for i386 state.
4948 (i386_darwin_store_inferior_registers): Likewise.
4952 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
4954 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4960 * darwin-nat.c (darwin_execvp): Set binary preference.
4964 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4968 * python/python.c (gdbpy_decode_line): Move cleanup creation out
4969 of TRY_CATCH. Fix error handling.
4970 * python/py-value.c (convert_value_from_python): Move 'old'
4971 declaration to innermost scope.
4976 -Wshadow warning fix.
4977 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4978 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4979 Adjust code accordingly.
4983 * ada-lang.c (symbol_completion_add): Rename parameter
4984 "encoded" into "encoded_p". Ajust code and documentation
4990 -Wshadow warning fix.
4991 * ada-lang.c (symbol_completion_add): Rename parameter
4992 "wild_match" into wild_match_p. Update code and documentation
4997 * ada-lang.c (symbol_completion_match): Rename parameter
4998 "encoded" into "encoded_p". Ajust code and documentation
5004 -Wshadow warning fix.
5005 * ada-lang.c (symbol_completion_match): Rename parameter
5006 "wild_match" into "wild_match_p". Adjust code and function
5007 documentation accordingly.
5012 -Wshadow warning fix.
5013 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5014 "symbol_info" into "info". Adjust code accordingly.
5015 (ada_lookup_symbol): Likewise.
5019 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5020 of this function's documentation.
5025 -Wshadow warning fix.
5026 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5027 variable into "wild_match_p". Adjust code accordingly.
5032 -Wshadow warning fix.
5033 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5034 parameter into "wild_match_p". Adjust code accordingly.
5035 Document this parameter in the function description.
5040 -Wshadow warning fix.
5041 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5042 "wild_match" parameter to "wild_match_p" (-Wshadow).
5046 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5047 in function documentation.
5052 -Wshadow warning fix.
5053 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5054 variable into wild_match_p. Adjust code accordingly.
5059 * ada-valprint.c (ada_val_print_1): Move the code handling
5060 TYPE_CODE_ENUM inside its own lexical block. Declare
5061 variables len and val there, instead of in the function's
5062 top level block. Avoid declaring deref_val again in a way
5063 that shadows another variable of the same name declared
5064 in one of the up-level blocks. Just re-use the up-level
5069 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5070 Replace block_found argument by symbol_info. Adjust
5071 implementation accordingly. Add function documentation.
5072 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5074 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5075 * ada-exp.y (write_object_renaming): Adjust to new
5076 ada_lookup_encoded_symbol API.
5080 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5085 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5086 (v850_register_name): Add the mpu and fpu register names.
5087 (v850e_register_name): Add the mpu and fpu register names.
5088 (v850e2_register_name): New function.
5089 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5094 * NEWS: Add entry for Ada varobj support.
5098 * varobj.c (default_value_is_changeable_p): New function,
5099 extracted from varobj_value_is_changeable_p. Add declaration.
5100 (ada_value_is_changeable_p): New function, extracted from
5101 varobj_value_is_changeable_p. Add declaration.
5102 (struct language_specific): New field "value_is_changeable_p".
5103 (languages): Add entries for new field.
5104 (varobj_create): Set language before calling install_new_value.
5105 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5106 "value_is_changeable_p" language callback.
5110 * ada-varobj.h, ada-varobj.c: New files.
5111 * Makefile.in (SFILES): Add ada-varobj.c.
5112 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5113 (COMMON_OBS): Add ada-varobj.o.
5117 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5118 (struct language_specific): New field "value_has_mutated".
5119 (languages): Set field "value_has_mutated" in each entry of array.
5120 (varobj_value_has_mutated): New function.
5121 (varobj_udpdate): Add handling of type mutation.
5122 (value_of_root): Add handling of type mutation.
5123 (ada_value_has_mutated): New function.
5127 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5128 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5132 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5133 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5138 * .dir-locals.el: New file.
5142 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5146 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5151 Eliminate struct ui_stream.
5153 * ui-out.h (struct ui_stream): Delete.
5154 (ui_out_field_stream): Adjust prototype.
5155 (ui_out_stream_new, ui_out_stream_delete)
5156 (make_cleanup_ui_out_stream_delete): Delete declarations.
5157 * ui-out.c (ui_out_field_stream): Change prototype to take a
5158 ui_file instead of a ui_stream. Adjust.
5159 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5160 (make_cleanup_ui_out_stream_delete): Delete.
5161 * breakpoint.c (print_breakpoint_location)
5162 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5163 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5164 * disasm.c (dump_insns): Ditto.
5165 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5167 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5168 ui_stream/ui_out_stream_new.
5169 * infcmd.c (print_return_value): Ditto.
5170 * osdata.c (info_osdata_command): Don't allocate a local
5172 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5173 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5174 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5175 allocate a local ui_stream.
5176 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5177 instead of ui_stream/ui_out_stream_new.
5178 (list_args_or_locals): Don't allocate a local ui_stream.
5179 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5180 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5181 ui_stream/ui_out_stream_new.
5182 * cli/cli-setshow.c (do_setshow_command): Ditto.
5186 * arm-linux-tdep.c (arm_linux_init_abi): Call
5187 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5188 * arm-tdep.c (arm_process_record): New function.
5189 (deallocate_reg_mem): New function.
5190 (decode_insn): New function.
5191 (thumb_record_branch): New function.
5192 (thumb_record_ldm_stm_swi(): New function.
5193 (thumb_record_misc): New function.
5194 (thumb_record_ld_st_stack): New function.
5195 (thumb_record_ld_st_imm_offset): New function.
5196 (thumb_record_ld_st_reg_offset(): New function.
5197 (thumb_record_add_sub_cmp_mov): New function.
5198 (thumb_record_shift_add_sub): New function.
5199 (arm_record_coproc_data_proc): New function.
5200 (arm_record_coproc): New function.
5201 (arm_record_b_bl): New function.
5202 (arm_record_ld_st_multiple): New function.
5203 (arm_record_ld_st_reg_offset): New function.
5204 (arm_record_ld_st_imm_offset): New function.
5205 (arm_record_data_proc_imm): New function.
5206 (arm_record_data_proc_misc_ld_str): New function.
5207 (arm_record_extension_space): New function.
5208 (arm_record_strx): New function.
5209 (sbo_sbz): New function.
5210 (struct insn_decode_record): New structure for arm insn record.
5211 (REG_ALLOC): New macro for reg allocations.
5212 (MEM_ALLOC): New macro for memory allocations.
5213 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5217 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5218 (store_register): Likewise.
5222 * MAINTAINERS (Write After Approval): Add myself to the list.
5226 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5227 Describe also the option "auto".
5231 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5232 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5236 * jit.c (jit_read_code_entry): Compute alignment and offset of
5237 int64_t member before computing entry_size.
5241 Python scripting: Add new method Value.referenced_value to
5242 gdb.Value which can dereference pointer as well as reference
5244 * NEWS: Add entry under 'Python scripting' about the new method
5245 Value.referenced_value on gdb.Value objects.
5246 * python/py-value.c (valpy_referenced_value): New function
5247 defining a new method on gdb.Value objects which can dereference
5248 pointer and reference values.
5252 * MAINTAINERS (Write After Approval): Add myself to the list.
5256 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5257 in addition to "main".
5261 * expression.h (op_name): Add declaration.
5262 * expprint.c (op_name): Remove declaration. Make non-static.
5263 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5267 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5269 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5270 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5271 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5272 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5273 (linux_nat_get_siginfo): Likewise.
5274 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5275 (linux_nat_get_siginfo): Likewise.
5276 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5277 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5278 * procfs.c (gdb_siginfo_t): Likewise.
5282 * .gitignore: Ignore more files.
5286 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5296 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5297 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5298 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5300 * dwarf2expr.h (cu_offset, sect_offset): New types.
5301 (struct dwarf_expr_context_funcs) <dwarf_call>
5302 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5304 (struct dwarf_expr_context) <len>: Improve the comment.
5305 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5306 cu_offset and sect_offset.
5307 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5308 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5309 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5310 * dwarf2loc.h: Include dwarf2expr.h.
5311 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5313 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5314 Improve the comment.
5315 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5316 (struct signatured_type, struct line_header, struct partial_die_info)
5317 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5318 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5319 (get_die_type_at_offset, create_cus_from_index)
5320 (create_signatured_type_table_from_index, dw2_get_file_names)
5321 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5322 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5323 (create_debug_types_hash_table, process_psymtab_comp_unit)
5324 (load_partial_comp_unit, create_all_comp_units)
5325 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5326 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5327 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5328 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5329 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5330 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5331 (find_partial_die, read_attribute_value, lookup_die_type)
5332 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5333 (is_ref_attr): New function comment.
5334 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5335 Use cu_offset and sect_offset.
5336 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5337 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5338 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5339 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5340 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5341 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5342 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5348 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5349 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5351 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5355 * NEWS: Describe new options --init-command=FILE, -ix and
5356 --init-eval-command=COMMAND, -iex.
5357 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5358 CMDARG_INIT_COMMAND.
5359 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5360 "init-command", "init-eval-command", "ix" and "iex" to the variable
5361 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5362 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5363 (print_gdb_help): Describe --init-command=FILE, -ix and
5364 --init-eval-command=COMMAND, -iex.
5369 * main.c (struct cmdarg): Move it here from main. Add more comments.
5370 (cmdarg_s, VEC (cmdarg_s)): New.
5371 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5372 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5373 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5374 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5379 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5384 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5389 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5394 * source.c (add_path): Use memmove instead of strcpy because the
5399 * value.h (set_value_parent): Add declaration.
5400 * value.c (set_value_parent): New function.
5401 (value_address): If VALUE->PARENT is not NULL, then use it as
5402 the base address instead of VALUE->LOCATION.address.
5403 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5404 the same as OBJ's address. Adjust V's offset accordingly.
5409 PR breakpoints/10738
5410 * dwarf2read.c (use_deprecated_index_sections): New global.
5411 (struct partial_die_info): New member may_be_inlined.
5412 (read_partial_die): Set may_be_inlined where appropriate.
5413 (add_partial_subprogram): Add partial symbols for partial
5414 DIEs that may be inlined.
5415 (new_symbol_full): Add inlined subroutines to the current
5417 (write_psymtabs_to_index): Bump version number.
5418 (dwarf2_read_index): Read only version 6 indices unless
5419 use_deprecated_index_sections is set.
5420 * linespec.c (symbol_and_data_callback): New structure.
5421 (iterate_inline_only): New function.
5422 (iterate_over_all_matching_symtabs): New argument
5423 "include_inline". If nonzero, also call the callback for
5424 symbols representing inlined subroutines.
5425 (lookup_prefix_sym): Pass extra argument to the above.
5426 (find_function_symbols): Likewise.
5427 (add_matching_symbols_to_info): Likewise.
5428 * NEWS: Mention that GDB can now set breakpoints on inlined
5433 * p-typeprint.c (pascal_type_print_method_args):
5434 Fix display of parameter of methods.
5438 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5439 Add missing prototype.
5444 Fix false compilation warning.
5445 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5450 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5451 (arm_register_g_packet_guesses): New function.
5452 (arm_gdbarch_init): Don't force a target description with
5453 registers when the executable is detected as M-profile. Instead
5454 set gdbarch->tdep->is_m. Register `g' packet guesses.
5455 (_initialize_arm_tdep): Initialize the new target description.
5456 * features/arm-with-m-fpa-layout.xml: New description.
5457 * features/arm-with-m-fpa-layout.c: New, generated.
5461 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5462 Update function description.
5463 (insert_bp_location): Do not wipe bl->target_info out.
5464 * mem-break.c: #include "gdb_string.h".
5465 (default_memory_insert_breakpoint): Do not call target_read_memory
5466 with a pointer to the breakpoint's shadow_contents buffer. Use
5467 a local buffer instead.
5468 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5472 * NEWS: Mention "info vtbl", not "info vtable".
5473 * cp-support.c (info_vtbl_command): Fix comment.
5474 (_initialize_cp_support): Fix text.
5478 * cp-valprint.c (cp_print_value_fields): Use
5479 print_function_pointer_address for vtable slot.
5483 * gnu-v3-abi.c (struct value_and_voffset): New.
5484 (hash_value_and_voffset, eq_value_and_voffset)
5485 (compare_value_and_voffset, compute_vtable_size)
5486 (print_one_vtable, gnuv3_print_vtable): New functions.
5487 (init_gnuv3_ops): Initialize 'print_vtable' field.
5488 * cp-support.c (info_vtbl_command): New function.
5489 (_initialize_cp_support): Add "info vtbl".
5490 * cp-abi.h (cplus_print_vtable): Declare.
5491 (struct cp_abi_ops) <print_vtable>: New field.
5492 * cp-abi.c (cplus_print_vtable): New function.
5497 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5498 iterate_over_symbols.
5502 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5503 DW_OP_GNU_parameter_ref.
5507 Fix double prompt of 'interpreter-exec mi'.
5508 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5509 (mi_interpreter_resume): use it.
5510 (mi_execute_command_input_handler): New function.
5511 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5512 mi_execute_command_input_handler.
5516 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5518 (darwin_debug_port_info): Make static.
5519 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5520 * machoread.c (_initialize_machoread): Add prototype.
5521 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5522 (i386_darwin_set_control, i386_darwin_get_control)
5523 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5524 i386_darwin_get_status, i386_darwin_get_control):
5525 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5529 * ax-gdb.c (gen_usual_unary): Remove special handling of
5530 enum and bool types.
5534 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5538 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5542 * aix-thread.c (fill_sprs): Store the floating point registers
5543 at the correct offsets into vals.
5547 * NEWS: Mention symbol-reloading has been deleted.
5548 * symfile.c (symbol_reloading): Delete.
5549 (show_symbol_reloading): Delete.
5550 (_initialize_symfile): Delete set/show symbol-reloading.
5552 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5553 read_in_chain until we have successfully read it in.
5554 (load_full_comp_unit): Ditto.
5555 (read_signatured_type): Add comment.
5559 * stabsread.c (fix_common_block): Change type of valu argument
5564 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5569 * common/linux-procfs.c (linux_proc_get_int): New, from
5570 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5572 (linux_proc_get_tgid): Only call linux_proc_get_int.
5573 (linux_proc_get_tracerpid): New.
5574 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5575 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5576 linux_proc_pid_has_state.
5577 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5578 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5579 (linux_ptrace_attach_warnings): New.
5580 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5582 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5583 (linux_nat_attach): New variables ex, buffer, message and message_s.
5584 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5588 * Makefile.in (linux-ptrace.o): New.
5589 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5591 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5592 * common/linux-ptrace.c: New file.
5593 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5594 * config/arm/linux.mh: Likewise.
5595 * config/i386/linux.mh: Likewise.
5596 * config/i386/linux64.mh: Likewise.
5597 * config/ia64/linux.mh: Likewise.
5598 * config/m32r/linux.mh: Likewise.
5599 * config/m68k/linux.mh: Likewise.
5600 * config/mips/linux.mh: Likewise.
5601 * config/pa/linux.mh: Likewise.
5602 * config/powerpc/linux.mh: Likewise.
5603 * config/powerpc/ppc64-linux.mh: Likewise.
5604 * config/powerpc/spu-linux.mh: Likewise.
5605 * config/s390/s390.mh: Likewise.
5606 * config/sparc/linux.mh: Likewise.
5607 * config/sparc/linux64.mh: Likewise.
5608 * config/xtensa/linux.mh: Likewise.
5609 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5610 common/linux-procfs.c.
5611 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5616 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5617 CREATE_BREAKPOINT_FLAGS_INSERTED.
5618 (create_breakpoint_sal, create_breakpoints_sal)
5619 (base_breakpoint_create_breakpoints_sal)
5620 (tracepoint_create_breakpoints_sal)
5621 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5623 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5624 (ftrace_command, strace_command): Adjust.
5625 (create_tracepoint_from_upload): Pass
5626 CREATE_BREAKPOINT_FLAGS_INSERTED.
5627 * breakpoint.h (enum breakpoint_create_flags): New.
5628 (create_breakpoint): New flags parameter.
5629 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5630 * python/py-breakpoint.c (bppy_init): Adjust.
5631 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5632 * spu-tdep.c (spu_catch_start): Adjust.
5638 * remote.c (struct remote_state): New field `starting_up'.
5639 (remote_start_remote): Set and clear it.
5640 (remote_can_download_tracepoint): If starting up, return false.
5644 * inferior.h (struct inferior): Remove fields any_syscall_count,
5645 syscalls_counts and total_syscalls_count. Move them to new
5646 struct catch_syscall_inferior_data in breakpoint.c.
5647 * breakpoint.c: Call DEF_VEC_I(int).
5648 (struct catch_syscall_inferior_data): New.
5649 (get_catch_syscall_inferior_data): New.
5650 (catch_syscall_inferior_data_cleanup): New.
5651 (insert_catch_syscall): Update to access data in
5652 struct catch_syscall_inferior_data.
5653 (insert_catch_syscall): Likewise.
5654 (remove_catch_syscall): Likewise.
5655 (remove_catch_syscall): Likewise.
5656 (is_syscall_catchpoint_enabled): Likewise.
5657 (add_catch_command): Likewise.
5658 (_initialize_breakpoint): Register cleanup.
5659 * breakpoint.h: Removed DEF_VEC_I(int).
5660 * dwarf2loc.c: Call DEF_VEC_I(int).
5661 * mi/mi-main.c: Likewise.
5665 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5669 * aix-thread.c (_initialize_aix_thread): Add prototype.
5670 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5671 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5675 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5676 include of "amd64-nat.h".
5680 * buildsym.c (record_pending_block): Now static.
5681 * buildsym.h: (record_pending_block): Remove.
5685 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5689 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5690 producer_is_gxx_lt_4_6>: New fields.
5691 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5695 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5699 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5704 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5708 Fix -Wmissing-prototypes build.
5709 * arm-linux-nat.c (get_thread_id): Make it static.
5710 * xtensa-linux-nat.c (get_thread_id): Likewise.
5714 * server.c (process_point_options): If a conditional expression
5715 is found, only print a message if remote_debug is nonzero.
5719 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5720 of internal error for unknown/unsupported types.
5724 Fix CU relative vs. absolute DIE offsets.
5725 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5726 offset to offset_in_cu.
5727 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5729 (dwarf2_fetch_die_location_block): Rename parameter offset to
5730 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5734 * libunwind-frame.c: Rename to ...
5735 * ia64-libunwind-tdep.c: ... here.
5736 * libunwind-frame.h: Rename to ...
5737 * ia64-libunwind-tdep.h: ... here.
5738 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5739 ia64-libunwind-tdep.h.
5740 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5741 * README (--with-libunwind): Rename to ...
5742 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5743 * config.in: Regenerate.
5744 * configure: Regenerate.
5745 * configure.ac: New option --with-libunwind-ia64, make the
5746 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5747 Remove AC_DEFINE for HAVE_LIBUNWIND.
5748 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5749 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5750 Rename libunwind-frame in the general comment.
5751 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5752 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5753 Move forward declarations inside #ifndef. Rename libunwind-frame in
5754 the general comment.
5755 * ia64-tdep.c: Rename libunwind-frame.h #include to
5756 ia64-libunwind-tdep.h.
5757 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5758 (ia64_libunwind_descr): Rename libunwind-frame to
5759 ia64-libunwind-tdep in these function comments.
5760 * ia64-tdep.h: Rename libunwind-frame.h #include to
5761 ia64-libunwind-tdep.h.
5762 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5763 ia64-libunwind-tdep in that data comment.
5767 * libunwind-frame.h (struct frame_unwind): New declaration.
5771 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5772 "set breakpoint condition-evaluation" command.
5776 * sparc-stub.c: Move to stubs/
5777 * sh-stub.c: Likewise.
5778 * m68k-stub.c: Likewise.
5779 * m32r-stub.c: Likewise.
5780 * i386-stub.c: Likewise.
5784 * m68klinux-tdep.c (m68k_linux_init_abi): Register
5785 linux_get_siginfo_type.
5787 * m68klinux-nat.c: Include "gdb_proc_service.h".
5788 (PTRACE_GET_THREAD_AREA): Define.
5789 (ps_get_thread_area): New function.
5793 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
5795 (remote_query_attached): Likewise.
5796 (remote_static_tracepoint_marker_at): Likewise.
5797 (remote_set_permissions): Likewise.
5798 (remote_detach_1, extended_remote_attach_1): Likewise.
5799 (send_g_packet, remote_vkill): Likewise.
5800 (extended_remote_disable_randomization): Likewise.
5801 (remote_add_target_side_condition): Likewise.
5802 (remote_insert_breakpoint): Likewise.
5803 (remote_remove_breakpoint): Likewise.
5804 (remote_insert_watchpoint): Likewise.
5805 (remote_remove_watchpoint): Likewise.
5806 (remote_insert_hw_breakpoint): Likewise.
5807 (remote_insert_hw_breakpoint): Likewise.
5808 (remote_remove_hw_breakpoint): Likewise.
5809 (remote_download_command_source): Likewise.
5810 (remote_download_tracepoint): Likewise.
5811 (remote_download_trace_state_variable): Likewise.
5812 (remote_disable_tracepoint): Likewise.
5813 (remote_trace_set_readonly_regions): Likewise.
5814 (remote_get_tracepoint_status): Likewise.
5815 (remote_trace_find): Likewise.
5816 (remote_get_trace_state_variable_value): Likewise.
5817 (remote_set_disconnected_tracing): Likewise.
5818 (remote_set_circular_trace_buffer): Likewise.
5819 (remote_get_min_fast_tracepoint_insn_len): Likewise.
5820 (remote_use_agent): Likewise.
5821 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
5826 * NEWS: Mention QProgramSignals.
5827 * inferior.h (update_signals_program_target): Declare.
5828 * infrun.c: (update_signals_program_target): New.
5829 (handle_command): Update the target of the new program signals
5831 * remote.c (PACKET_QProgramSignals): New enum.
5832 (last_program_signals_packet): New global.
5833 (remote_program_signals): New.
5834 (remote_start_remote): Update the target with the program signals
5836 (remote_protocol_features): Add entry for QPassSignals.
5837 (remote_open_1): Free anc clear last_program_signals_packet.
5838 (init_remote_ops): Install remote_program_signals.
5839 * target.c (update_current_target): Adjust.
5840 (target_program_signals): New.
5841 * target.h (struct target_ops) <to_program_signals>: New field.
5842 (target_program_signals): Declare.
5846 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
5851 * m68klinux-nat.c (getregs_supplies): Make static.
5852 (getfpregs_supplies): Likewise.
5853 (have_ptrace_getregs): Likewise.
5857 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
5858 in call to get_die_type_at_offset.
5862 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
5863 * mi/mi-cmd-disas.c: Ditto.
5864 * mi/mi-cmd-env.c: Ditto.
5865 * mi/mi-cmd-file.c: Ditto.
5866 * mi/mi-cmd-stack.c: Ditto.
5867 * mi/mi-cmd-target.c: Ditto.
5868 * mi/mi-cmd-var.c: Ditto.
5869 * mi/mi-cmds.c: Ditto.
5870 * mi/mi-cmds.h: Ditto.
5871 * mi/mi-console.c: Ditto.
5872 * mi/mi-getopt.c: Ditto.
5873 * mi/mi-getopt.h: Ditto.
5874 * mi/mi-interp.c: Ditto.
5875 * mi/mi-main.c: Ditto.
5876 * mi/mi-out.c: Ditto.
5877 * mi/mi-parse.c: Ditto.
5878 * mi/mi-parse.h: Ditto.
5879 * mi/mi-symbol-cmds.c: Ditto.
5881 * mi/mi-getopt.h: Move mi_opt struct up.
5882 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
5884 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
5888 * proc-service.c (ps_pglobal_lookup): Set the current program
5893 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
5897 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
5902 * common/linux-osdata.c (linux_common_core_of_thread): New function
5904 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
5905 call by linux_common_core_of_thread.
5906 (linux_nat_core_of_thread_1): Remove.
5907 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
5908 * linux-thread-db.c: Include linux-osdata.h.
5909 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
5910 linux_common_core_of_thread.
5914 * value.c (value_primitive_field): Don't fetch contents for
5919 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
5923 * s390-nat.c: Include "gregset.h".
5927 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
5928 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
5929 (libunwind_load): New variable so_error, use it for dlerror. Try to
5930 load also LIBUNWIND_SO_7.
5934 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
5935 is not NULL, and remove resulting dead code.
5939 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
5940 prologue to sh_analyze_prologue.
5941 (sh_analyze_prologue): Make better use of such an upper limit, and
5942 generally be more cautious about accessing memory.
5946 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
5947 _initialize_ia64_hpux_tdep.
5953 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
5954 the register state is clear, supply explicit zero, instead of
5955 marking the register unavailable.
5959 * NEWS: Mention OpenVMS ia64 new target.
5963 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5964 (ia64_unw_accessors, ia64_unw_rse_accessors)
5965 (ia64_libunwind_descr): Declare.
5966 * ia64-vms-tdep.c: New file.
5967 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5968 (ia64_libunwind_descr): Make them public.
5969 * configure.tgt: Add ia64-*-*vms*.
5970 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5971 (ALLDEPFILES): Add ia64-vms-tdep.c
5975 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5976 * remote.c (PACKET_qXfer_uib): New enum value.
5977 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5978 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5979 (_initialize_remote): Call add_packet_config_cmd for
5984 * osabi.c (gdb_osabi_names): Add OpenVMS.
5985 (generic_elf_osabi_sniffer): Likewise.
5986 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
5990 Removed unused code.
5991 * libunwind-frame.c (libunwind_frame_unwind)
5992 (libunwind_frame_base_address): Remove.
5993 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5997 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5998 remove trailing new line.
5999 (agent_run_command, agent_run_command): Add _ markup.
6000 (agent_capability_check): Likewise.
6004 * breakpoint.c (set_condition_evaluation_mode): Set
6005 CONDITION_EVALUATION_MODE unconditionally.
6009 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6010 * common/agent.h: Update declaration.
6011 * inf-child.c (inf_child_use_agent): New.
6012 (inf_child_can_use_agent): New.
6013 (inf_child_target): Initialize fields `to_use_agent'
6014 and `to_can_use_agent'.
6015 * agent.c (agent_new_objfile): New.
6016 (_initialize_agent): Add agent_new_objfile to new_objfile
6019 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6021 (linux_target_install_ops): Initialize field
6022 `to_static_tracepoint_markers_by_strid'.
6023 * remote.c (free_current_marker): Move it to ...
6024 * tracepoint.c (free_current_marker): ... here. New.
6025 (cleanup_target_stop): New.
6026 * tracepoint.h: Declare free_current_marker.
6027 * NEWS: Add one entry about `info static-tracepoint-marker'.
6031 * common/agent.c (agent_loaded_p): New.
6032 (agent_look_up_symbols): New global.
6033 * common/agent.h: Declare agent_loaded_p.
6037 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6038 (agent_capability_check, agent_capability_invalidate): New.
6039 (symbol_list): New array element.
6040 * common/agent.h (enum agent_capa): New.
6041 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6045 * target.h (struct target_ops) <to_use_agent>: New field.
6046 (struct target_ops) <to_can_use_agent>: New field.
6047 (target_use_agent, target_can_use_agent): New macro.
6048 * target.c (update_current_target): Update.
6049 * remote.c: New enum `PACKET_QAgent'.
6050 (remote_protocol_features): Add a new element.
6051 (remote_use_agent, remote_can_use_agent): New.
6052 (init_remote_ops): Initialize field `can_use_agent' with
6053 remote_can_use_agent. Intiailize field `use_agent' with
6055 * common/agent.c (use_agent): New global.
6056 * common/agent.h: Declare it.
6057 * tracepoint.c (info_static_tracepoint_markers_command): Add
6059 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6060 (COMMON_OBS): Add common/agent.o and agent.o
6061 (common-agent.o): New rule.
6066 * common/agent.c: New.
6067 * common/agent.h: New.
6068 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6070 * configure, configh.in: Regenerated.
6074 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6075 unless it exists for this architecture.
6079 * language.h (struct language_defn): New "method" la_read_var_value.
6080 * findvar.c: #include "language.h".
6081 (default_read_var_value): Renames read_var_value. Rewrite
6082 function description.
6083 (read_var_value): New function.
6084 * value.h (default_read_var_value): Add prototype.
6085 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6087 (ada_language_defn): Add entry for la_read_var_value.
6088 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6089 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6090 language_defn structures to add entry for new la_read_var_value
6096 PR breakpoints/13776:
6097 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6099 (delete_longjmp_breakpoint_at_next_stop): New.
6100 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6101 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6102 before deleting the inferior. Add comments.
6103 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6104 breakpoints immediately, but only on next stop. Move that code
6105 next to where we mark other breakpoints for deletion.
6109 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6111 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6116 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6120 Fix -Wmissing-prototypes build.
6121 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6122 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6123 (gdbsim_has_memory): Likewise.
6127 Fix -Wmissing-prototypes build.
6128 * charset.c (phony_iconv_open): Make static.
6129 (phony_iconv_close, phony_iconv): Likewise.
6130 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6131 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6133 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6134 * ser-mingw.c (create_select_thread): Make static.
6135 * windows-termcap.c (tgetent): New prototype.
6136 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6140 Fix -Wmissing-prototypes build.
6141 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6142 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6143 (_initialize_loadable): New prototypes.
6147 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6148 abbrev table, read_comp_unit will do it.
6152 Fix -Wmissing-prototypes build.
6153 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6154 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6155 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6156 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6157 (_initialize_arm_symbian_tdep): New prototype.
6158 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6159 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6160 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6162 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6163 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6165 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6166 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6167 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6169 * moxie-tdep.c (moxie_process_record): Likewise.
6170 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6171 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6172 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6173 (_initialize_rl78_tdep): New prototype.
6174 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6175 (_initialize_rx_tdep): New prototype.
6176 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6177 (_initialize_darwin_solib): New prototype.
6178 * solib-spu.c: Include solib-spu.h.
6179 (_initialize_spu_solib): New prototype.
6180 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6181 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6182 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6183 (tic6x_software_single_step): Make it static.
6184 (_initialize_tic6x_tdep): New prototype.
6188 Fix -Wmissing-prototypes build.
6189 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6190 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6194 Fix -Wmissing-prototypes build.
6195 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6196 (frv_have_stopped_data_address): Remove.
6200 Fix -Wmissing-prototypes build.
6201 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6202 * sh-tdep.c: Include sh64-tdep.h.
6203 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6204 * sh64-tdep.c: Include sh64-tdep.h.
6205 * sh64-tdep.h: New file.
6209 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6213 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6214 sp_regnum once the gdbarch_init_osabi hook has been called.
6218 * mips-tdep.c (mips32_bc1_pc): New function.
6219 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6220 BPOSGE32 and BPOSGE64 instructions.
6221 (deal_with_atomic_sequence): Likewise.
6222 (mips32_instruction_has_delay_slot): Likewise.
6229 * features/mips-dsp.xml: New file.
6230 * features/mips64-dsp.xml: New file.
6231 * features/mips-dsp-linux.xml: New file.
6232 * features/mips64-dsp-linux.xml: New file.
6233 * features/Makefile (WHICH): Add mips-dsp-linux and
6235 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6236 * features/mips-dsp-linux.c: New file.
6237 * features/mips64-dsp-linux.c: New file.
6238 * regformats/mips-dsp-linux.dat: New file.
6239 * regformats/mips64-dsp-linux.dat: New file.
6240 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6242 (mips64_linux_register_addr): Likewise.
6243 (mips64_linux_regsets_fetch_registers): Likewise.
6244 (mips64_linux_regsets_store_registers): Likewise.
6245 (mips64_linux_fetch_registers): Update call to
6246 mips64_linux_regsets_fetch_registers.
6247 (mips64_linux_store_registers): Update call to
6248 mips64_linux_regsets_store_registers.
6249 (mips_linux_read_description): Probe for DSP registers.
6250 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6251 and initialize_tdesc_mips64_dsp_linux.
6252 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6253 Remove padding of no longer used embedded register slots.
6254 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6255 (MIPS_RESTART_REGNUM): Redefine enum value.
6256 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6258 (mips_tx39_reg_names): Likewise.
6259 (mips_linux_reg_names): New array of register names for Linux
6261 (mips_register_name): Check for a null pointer in
6262 mips_processor_reg_names and return an empty string.
6263 (mips_register_type): Exclude embedded registers for the IRIX
6265 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6266 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6268 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6269 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6270 (mips_gdbarch_init): Likewise. Initialize internal register
6271 indices for the Linux ABI. Use dynamic numbers to refer to
6272 registers, as applicable, while parsing the target description.
6273 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6277 * frame.h (read_frame_register_unsigned): Fix typo in function
6282 * jit-reader.in [!__cplusplus]
6283 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6287 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6288 * configure: Regenerate.
6292 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6293 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6294 (ftrace_command, strace_command): Make static.
6295 * d-lang.c (_initialize_d_language): Declare.
6296 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6297 * dwarf2loc.c (_initialize_dwarf2loc):
6298 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6299 * exec.c (exec_get_section_table): Make static.
6300 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6301 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6302 * inferior.c (remove_inferior_command, add_inferior_command)
6303 (clone_inferior_command): Make static.
6304 * linux-nat.c (linux_nat_thread_address_space)
6305 (linux_nat_core_of_thread): Make static.
6306 * linux-tdep.c (_initialize_linux_tdep): Declare.
6307 * objc-lang.c (_initialize_objc_lang): Declare.
6308 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6310 (_initialize_opencl_language): Declare.
6311 * record.c (_initialize_record): Declare.
6312 * remote.c (demand_private_info, remote_get_tib_address)
6313 (remote_supports_cond_tracepoints)
6314 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6316 * skip.c (_initialize_step_skip): Declare.
6317 * symtab.c (skip_prologue_using_lineinfo): Make static.
6318 * tracepoint.c (delete_trace_state_variable)
6319 (trace_variable_command, delete_trace_variable_command)
6320 (get_uploaded_tsv, find_matching_tracepoint_location)
6321 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6323 * value.c (pack_unsigned_long): Make static.
6324 * varobj.c (varobj_ensure_python_env): Make static.
6325 * windows-tdep.c (_initialize_windows_tdep): Declare.
6326 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6330 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6332 (linux_init_abi): Install it as has_shared_address_space gdbarch
6337 * observer.c (observer_test_first_notification_function)
6338 (observer_test_second_notification_function)
6339 (observer_test_third_notification_function): Add declarations.
6343 * common/signals.c (default_target_signal_to_host)
6344 (default_target_signal_from_host): Move ...
6345 * arch-utils.c: ... here.
6346 * arch-utils.h (default_target_signal_to_host)
6347 (default_target_signal_from_host): Declare.
6349 * common/signals.c (target_signal_from_command): Move ...
6350 * infrun.c: ... here.
6351 * inferior.h (target_signal_from_command): Declare.
6352 * target.h (target_signal_from_command)
6353 (default_target_signal_from_host, default_target_signal_to_host):
6354 Delete declarations.
6356 * common/signals.c (_initialize_signals): Delete.
6360 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6361 both __cplusplus and !__cplusplus.
6365 * psymtab.c (find_and_open_source): Delete declaration.
6366 * source.c (find_and_open_source): Move comment ...
6367 * source.h (find_and_open_source): ... to this new declaration.
6371 * inline-frame.c: Include inline-frame.h.
6375 * tui/tui-data.c (set_gen_win_origin): Delete.
6376 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6377 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6381 * remote.c (encode_actions): Delete declaration.
6382 * tracepoint.c (encode_actions): Make extern.
6383 * tracepoint.h (encode_actions): Declare.
6387 * python/py-breakpoint.c: Include python.h.
6388 * python/py-continueevent.c (create_continue_event_object): Make
6390 * python/py-lazy-string.c (stpy_get_type): Make static.
6391 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6393 * python/py-utils.c (unicode_to_target_python_string): Make
6395 * python/py-value.c: Include python.h.
6399 * inferior.c (delete_threads_of_inferior): Delete.
6403 Import fallback definitions from glibc.
6405 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6406 ps_prochandle): Forward declare.
6407 (ps_err_e): Use glibc's comments.
6408 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6409 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6410 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6411 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6412 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6413 (struct ps_prochandle): Adjust comment.
6417 * ada-lang.c (ada_modulus_from_name): Delete.
6418 * ada-lex.l (lexer_init): Make static.
6424 * frame.c (read_frame_register_unsigned): New.
6425 * frame.h (read_frame_register_unsigned): Declare.
6426 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6428 (print_i387_control_word): New parameter `control_p'. Handle it.
6429 (i387_print_float_info): Handle unavailable float registers.
6433 * linespec.c (decode_line_2): Sort the list of methods
6434 alphabetically before presenting the user with a selection
6439 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6441 (dwarf2_read_abbrevs): Remove corresponding initialization.
6445 * NEWS: Mention new python command class gdb.COMMAND_USER.
6446 * cli/cli-cmds.c (show_user): Print error when used on a python
6448 (init_cli_cmds): Update documentation strings for "show user" and
6449 "set/show max-user-call-depth" to clarify that it does not apply to
6451 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6453 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6455 * top.c (execute_command): Only execute a user-defined command as a
6456 legacy macro if c->user_commands is set.
6460 * valprint.h (struct generic_val_print_decorations): New.
6461 (generic_val_print): Declare.
6462 * valprint.c (generic_val_print): New function.
6463 * p-valprint.c (p_decorations): New global.
6464 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6465 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6466 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6467 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6468 * m2-valprint.c (m2_decorations): New global.
6469 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6470 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6471 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6472 TYPE_CODE_ERROR>: Call generic_val_print.
6473 * f-valprint.c (f_decorations): New global.
6474 (f_val_print): Use print_function_pointer_address.
6475 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6476 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6477 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6479 * c-valprint.c (c_decorations): New global.
6480 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6481 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6482 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6483 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6484 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6485 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6490 * valprint.c (val_print): Update.
6491 * p-valprint (pascal_val_print): Return void.
6492 * p-lang.h (pascal_val_print): Return void.
6493 * m2-valprint.c (m2_val_print): Return void.
6494 * m2-lang.h (m2_val_print): Return void.
6495 * language.h (struct language_defn) <la_val_print>: Return void.
6496 * language.c (unk_lang_val_print): Return void.
6497 * jv-valprint.c (java_val_print): Return void.
6498 * jv-lang.h (java_val_print): Return void.
6499 * f-valprint.c (f_val_print): Return void.
6500 * f-lang.h (f_val_print): Return void.
6501 * d-valprint.c (d_val_print): Return void.
6502 (dynamic_array_type): Update.
6503 * d-lang.h (d_val_print): Return void.
6504 * c-valprint.c (c_val_print): Return void.
6505 * c-lang.h (c_val_print): Return void.
6506 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6508 * ada-lang.h (ada_val_print): Return void.
6512 * value.h (val_print): Return void.
6513 * valprint.c (val_print): Return void.
6517 * value.h (common_val_print): Return void.
6518 * valprint.c (common_val_print): Return void.
6522 * value.h (value_print): Return void.
6523 * valprint.c (value_print): Return void.
6524 * p-valprint.c (pascal_value_print): Return void.
6525 * p-lang.h (pascal_value_print): Return void.
6526 * language.h (struct language_defn) <la_value_print>: Return
6528 * language.c (unk_lang_value_print): Return void.
6529 * jv-valprint.c (java_value_print): Return void.
6530 * jv-lang.h (java_value_print): Return void.
6531 * f-valprint.c (c_value_print): Don't declare.
6533 * c-valprint.c (c_value_print): Return void.
6534 * c-lang.h (c_value_print): Return void.
6535 * ada-valprint.c (ada_value_print): Return void.
6536 * ada-lang.h (ada_value_print): Return void.
6540 * value.c (value_primitive_field): Handle virtual base classes.
6544 * gdbtypes.h (struct vbase): Remove.
6548 * c-valprint.c (print_function_pointer_address): Move...
6549 * valprint.c: ... here. Make non-static.
6550 * m2-valprint.c (print_function_pointer_address): Remove.
6551 * valprint.h (print_function_pointer_address): Declare.
6555 * NEWS: Document the fact that one can provide a condition when
6556 creating an Ada exception catchpoint.
6560 * valprint.c (val_print_type_code_flags): Fix placement of
6565 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6566 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6567 environment variable before calling update-copyright.
6571 * gnulib/extra/update-copyright: Update to the latest from
6572 gnulib's git repository.
6573 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6574 variable to 2 instead of 1.
6578 * varobj.c (c_value_of_variable): Remove dead code.
6582 * ada-lex.p (processId): Do not modify already encoded IDs.
6583 Update function documentation.
6587 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6588 "name" with "struct symbol *name_sym".
6589 * ada-exp.y (write_var_or_type): Update call to
6590 ada_find_renaming_symbol.
6591 "name" with "struct symbol *name_sym". Adjust Implementation
6592 accordingly. Adjust the function documentation.
6596 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6597 * ada-lang.c (ada_find_any_type): Add advance declaration.
6598 Make static. Replace ada_find_any_symbol by
6599 ada_find_any_type_symbol.
6600 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6601 Improve function description. Make static.
6602 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6603 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6607 * ada-lang.c (struct tag_args): Delete.
6608 (ada_get_tsd_type): Function body moved up in source file.
6609 (ada_tag_name_1, ada_tag_name_2): Delete.
6610 (ada_get_tsd_from_tag): New function.
6611 (ada_tag_name_from_tsd): New function.
6612 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6613 to determine the tag name.
6617 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6619 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6624 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6628 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6633 * ada-lang.c (constrained_packed_array_type): If there is a
6634 parallel XA type, use it to determine the array index type.
6638 * ada-valprint.c (ada_val_print_1): If our value is a reference
6639 to an array descriptor, dereference it before converting it
6644 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6645 creating fixed value.
6646 (ada_value_ind, ada_coerce_ref, assign_component)
6647 (ada_evaluate_subexp): Remove call to unwrap_value before
6648 call to ada_to_fixed_value.
6652 * ada-lang.c (to_fixed_array_type): Set result's type name.
6656 * ada-lang.c (catch_ada_exception_command_split): Add new
6657 argument cond_string. Add support for condition at end of
6658 "catch exception" commands.
6659 (ada_decode_exception_location): Add new argument cond_string.
6660 Update call to catch_ada_exception_command_split.
6661 (create_ada_exception_catchpoint): Add new argument cond_string.
6662 Set the breakpoint condition if needed.
6663 (catch_ada_exception_command): Update call to
6664 ada_decode_exception_location.
6665 (ada_decode_assert_location): Add function documentation.
6666 Add support for condition at end of "catch assert" command.
6667 (catch_assert_command): Update calls to ada_decode_assert_location
6668 and create_ada_exception_catchpoint.
6672 Fix disp-step-syscall.exp: fork: single step over fork.
6673 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6674 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6675 comment, change parameters gdbarch and ptid to regcache. Remove
6676 parameter regcache, initialize gdbarch from regcache here.
6677 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6679 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6681 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6682 'syscall'. Make the 'int' check more strict.
6686 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6687 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6688 (i386_linux_intx80_sysenter_syscall_record): ... here.
6689 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6690 Use the renamed function name.
6694 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6695 * breakpoint.c (until_break_command): Likewise.
6696 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6697 * infcall.c (call_function_by_hand): Likewise.
6698 * infcmd.c (finish_forward): Likewise.
6699 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6703 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6704 avoid variable assignments inside condition.
6708 Fix static analysis issue found by cppcheck.
6709 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6710 uninitialized BUF for size 2.
6716 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6717 (mips16_instruction_has_delay_slot): Likewise.
6718 (mips_segment_boundary): Likewise.
6719 (mips_adjust_breakpoint_address): Likewise.
6720 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6725 * infrun.c (handle_inferior_event): Don't proceed through
6726 shared library trampolines if stepping at the machine
6731 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6736 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6737 (sh_stub_unwind_sniffer): New functions.
6738 (sh_stub_unwind): New variable.
6739 (sh_gdbarch_init): Wire everything.
6743 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6744 (linux_nat_post_attach_wait): Adjust to use
6745 linux_proc_pid_is_stopped.
6746 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6747 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6748 based on pid_is_stopped from both linux-nat.c and
6749 gdbserver/linux-low.c, and renamed.
6753 * remote.c (remote_watchpoint_addr_within_range): New function.
6754 (init_remote_ops): Use it.
6758 * target.h (target_watchpoint_addr_within_range): Document macro.
6762 * stack.c (set_last_displayed_sal): Issue internal_error instead
6763 of warning, and issue it after clearing the last displayed sal.
6768 * breakpoint.c (until_break_command): Install breakpoints after
6769 all frame manipulations.
6773 * remote.c (remote_supports_cond_breakpoints): New forward
6775 (remote_add_target_side_condition): New function.
6776 (remote_insert_breakpoint): Add target-side breakpoint
6777 conditional if supported.
6778 (remote_insert_hw_breakpoint): Likewise.
6779 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
6782 * target.c (update_current_target): Inherit
6783 to_supports_evaluation_of_breakpoint_conditions.
6784 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
6786 * target.h (struct target_ops)
6787 <to_supports_evaluation_of_breakpoint_conditions>: New field.
6788 (target_supports_evaluation_of_breakpoint_conditions): New #define.
6790 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
6791 (condition_evaluation_both, condition_evaluation_auto,
6792 condition_evaluation_host, condition_evaluation_target,
6793 condition_evaluation_enums, condition_evaluation_mode_1,
6794 condition_evaluation_mode): New static globals.
6795 (translate_condition_evaluation_mode): New function.
6796 (breakpoint_condition_evaluation_mode): New function.
6797 (gdb_evaluates_breakpoint_condition_p): New function.
6798 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
6799 (mark_breakpoint_modified): New function.
6800 (mark_breakpoint_location_modified): New function.
6801 (set_condition_evaluation_mode): New function.
6802 (show_condition_evaluation_mode): New function.
6803 (bp_location_compare_addrs): New function.
6804 (get_first_location_gte_addr): New helper function.
6805 (set_breakpoint_condition): Free condition bytecode if locations
6806 has become unconditional. Call mark_breakpoint_modified (...).
6807 (condition_command): Call update_global_location_list (1) for
6809 (breakpoint_xfer_memory): Use is_breakpoint (...).
6810 (is_breakpoint): New function.
6811 (parse_cond_to_aexpr): New function.
6812 (build_target_condition_list): New function.
6813 (insert_bp_location): Handle target-side conditional
6814 breakpoints and call build_target_condition_list (...).
6815 (update_inserted_breakpoint_locations): New function.
6816 (insert_breakpoint_locations): Handle target-side conditional
6818 (bpstat_check_breakpoint_conditions): Add comment.
6819 (bp_condition_evaluator): New function.
6820 (bp_location_condition_evaluator): New function.
6821 (print_breakpoint_location): Print information on where the condition
6823 (print_one_breakpoint_location): Likewise.
6824 (init_bp_location): Call mark_breakpoint_location_modified (...) for
6825 breakpoint location.
6826 (force_breakpoint_reinsertion): New functions.
6827 (update_global_location_list): Handle target-side breakpoint
6829 Reinsert locations that are already inserted if conditions have
6831 (bp_location_dtor): Free agent expression bytecode.
6832 (disable_breakpoint): Call mark_breakpoint_modified (...).
6833 Call update_global_location_list (...) with parameter 1 for breakpoints.
6834 (disable_command): Call mark_breakpoint_location_modified (...).
6835 Call update_global_location_list (...) with parameter 1 for breakpoints.
6836 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
6837 (enable_command): mark_breakpoint_location_modified (...).
6838 (_initialize_breakpoint): Update documentation and add
6839 condition-evaluation breakpoint subcommand.
6841 * breakpoint.h: Include ax.h.
6842 (condition_list): New data structure.
6843 (condition_status): New enum.
6844 (bp_target_info) <cond_list>: New field.
6845 (bp_location) <condition_changed, cond_bytecode>: New fields.
6846 (is_breakpoint): New prototype.
6850 * remote.c (remote_state) <cond_breakpoints>: New field.
6851 (PACKET_ConditionalBreakpoints): New enum.
6852 (remote_cond_breakpoint_feature): New function.
6853 (remote_protocol_features): Add new ConditionalBreakpoints entry.
6854 (remote_supports_cond_breakpoints): New function.
6855 (_initialize_remote): Add new packet configuration for
6856 target-side conditional breakpoints.
6860 * NEWS: Mention target-side conditional breakpoint support,
6861 new condition-evaluation breakpoint subcommand and remote
6866 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
6871 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
6872 (after_prologue): Remove.
6876 * jv-valprint.c (java_val_print): Remove dead code.
6880 * ada-tasks.c (struct ada_tasks_inferior_data): Add
6881 known_tasks_element and known_tasks_length fields.
6882 (read_known_tasks_array): Change argument type. Use pointer type
6883 and number of elements from DATA. Adjust.
6884 (read_known_tasks_list): Likewise.
6885 (get_known_tasks_addr): Remove.
6886 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6887 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
6888 type and array length. Merge former get_known_tasks_addr code.
6893 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
6894 it after set_momentary_breakpoint.
6899 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
6903 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
6904 (find_slot_in_mapped_hash): Likewise.
6909 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
6910 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
6911 * configure: Regenerate.
6916 * ia64-tdep.c: Do not include libunwind-ia64.h.
6917 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6918 Include libunwind-ia64.h instead of libunwind.h.
6919 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
6920 for libunwind.h existence.
6921 * configure, config.in: Regenerate.
6925 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
6926 instead of value_rtti_target_type.
6927 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
6928 instead of value_rtti_target_type.
6929 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
6930 value_rtti_target_type.
6931 * valops.c (value_ind): Extract function readjust_indirect_value_type.
6932 (value_rtti_target_type): Rename to ...
6933 (value_rtti_indirect_type): ... here and make it indirect. Update
6935 * value.c (readjust_indirect_value_type): New function.
6936 (coerce_ref): Support for enclosing type setting for references
6937 with readjust_indirect_value_type.
6938 * value.h (readjust_value_type): New declaration.
6939 (value_rtti_target_type): Rename to ...
6940 (value_rtti_indirect_type): ... here.
6944 * MAINTAINERS (Write After Approval): Add myself to the list.
6948 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
6949 Rename objfile_p_char parameter to objfilep.
6950 (build_objfile_section_table): Result is now void. All callers
6952 * objfiles.h (struct objfile): Tweak comments, whitespace.
6953 (build_objfile_section_table): Update.
6955 * elfread.c (elf_symfile_segments): Fix warning text.
6960 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
6961 particular set of file names once.
6962 (dw2_map_symbol_filenames): Likewise.
6967 * main.c (write_files): Remove the declaration.
6968 (external_editor_command): Move the declaration ...
6969 [GDBTK] (external_editor_command): ... here. Fix the comment.
6973 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6978 * darwin-nat.h (enum darwin_msg_state): Add comments.
6982 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6987 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6988 between function description and implementation.
6993 * python/py-event.c (event_object_getset): New global.
6994 (event_object_type): Reference it.
6995 * python/py-type.c (field_object_getset): New global.
6996 (field_object_type): Reference it.
6997 * python/python-internal.h (gdb_py_generic_dict): Declare.
6998 * python/py-utils.c (gdb_py_generic_dict): New function.
7002 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7006 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7007 TYPE_CALLING_CONVENTION annotation.
7011 * MAINTAINERS: Add rx to target ISA section.
7012 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7013 (ALLDEPFILES): Add rx-tdep.c.
7017 * symfile.c (symbol_file_add_main_1): Use inferior's
7019 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7020 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7022 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7024 (follow_exec): Use inferior's symfile_flags.
7025 * inferior.h (struct inferior) <symfile_flags>: New field.
7030 * remote-sim.c (gdbsim_create_inferior): Call error() when
7031 sim_create_inferior() fails.
7035 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7040 * thread.c (struct current_thread_cleanup) <was_removable>: New
7042 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7043 (make_cleanup_restore_current_thread): Initialize new field.
7047 * MAINTAINERS: Add rl78 to target ISA section.
7048 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7049 (ALLDEPFILES): Add rl78-tdep.c.
7050 * NEWS: Mention rl78 as a new target.
7054 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7056 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7061 * infcmd.c (registers_info): Print just the current register's
7066 * python/py-symbol.c (sympy_value): Use _().
7070 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7071 output to be like native targets'.
7072 (remote_pid_to_str): Special case the null ptid.
7076 * NEWS: Mention enable count command.
7077 * breakpoint.h (struct breakpoint): New field enable_count.
7078 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7079 (enable_breakpoint): Add arg to call.
7080 (struct disp_data): New struct.
7081 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7082 (do_map_enable_once_breakpoint): Create a struct and pass it.
7083 (do_map_enable_delete_breakpoint): Ditto.
7084 (do_map_enable_count_breakpoint): New function.
7085 (enable_count_command): New function.
7086 (bpstat_stop_status): Decrement enable_count.
7087 (print_one_breakpoint_location): Report enable count.
7088 (_initialize_breakpoint): Add enable count command.
7092 * rl78-tdep.c (reggroups.h): Include.
7093 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7094 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7095 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7096 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7097 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7098 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7099 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7100 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7101 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7102 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7103 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7104 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7105 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7106 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7107 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7108 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7109 beginning of register list.
7110 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7111 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7112 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7113 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7114 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7115 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7116 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7117 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7118 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7119 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7120 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7121 the pseudo registers. Rearrange other pseudo registers too so
7122 that the bank registers appear at the end.
7123 (rl78_register_type): Account for the fact that the byte sized
7124 bank registers are now pseudo-registers.
7125 (rl78_register_name): Rearrange the register name array. Make
7126 initial set of raw banked registers inaccessible.
7127 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7128 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7129 case for copying bytes back and forth between raw and pseudo
7130 versions of the banked registers. Update other cases to reflect
7132 (rl78_return_value): Update to account for changed names of
7134 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7135 rl78_register_sim_regno().
7139 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7140 the name parameter being passed to find_pc_partial_function().
7144 * MAINTAINERS: Step down from being ia64 target maintainer.
7148 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7149 compilation warning.
7153 Fix crash on loaded shlibs without loaded exec_bfd.
7154 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7155 (set_section_command): Replace exec_bfd by p->bfd.
7159 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7160 when we have a C++ qualified name.
7164 * inferior.c (inferior_pid_to_str): New.
7165 (print_inferior, inferior_command): Use it.
7169 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7171 * configure: Regenerate.
7175 * linespec.c (decode_line_internal): Fix comment correctness.
7180 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7181 * amd64bsd-nat.c: Add support for debug registers (adapted from
7183 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7184 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7185 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7186 (amd64bsd_dr_get_control): New functions.
7187 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7188 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7189 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7190 watchpoints initialization.
7191 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7195 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7197 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7201 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7205 * language.h (symbol_name_cmp_ftype): Renames
7206 symbol_name_match_p_ftype.
7207 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7208 la_get_symbol_name_match_p.
7209 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7210 ada_get_symbol_name_match_p. Update comment.
7211 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7212 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7213 Renames symbol_name_match_p. Update field type.
7214 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7215 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7216 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7217 "la_get_symbol_name_cmp" in comments.
7218 * language.c: Likewise.
7222 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7224 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7225 (amd64_sol2_gregset32_reg_offs): Likewise.
7229 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7230 of the returned BFD is allocated by GDB.
7235 * python/python-internal.h (frame_object_type): Declare.
7236 * python/py-symbol.c (sympy_needs_frame): New function.
7237 (sympy_value): New function.
7238 (symbol_object_getset): Add "needs_frame".
7239 (symbol_object_methods): Add "value".
7240 * python/py-frame.c (frame_object_type): No longer static.
7245 * python/py-symbol.c (sympy_line): New function.
7246 (symbol_object_getset): Add "line".
7250 * charset.c (find_charset_names): Check 'in' against NULL.
7254 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7255 and fields.name members from char * to const char *. All uses updated.
7256 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7257 from char * to const char *. All uses updated.
7258 (type_name_no_tag): Update.
7259 (lookup_unsigned_typename, lookup_signed_typename): Update.
7260 * gdbtypes.c (type_name_no_tag): Change result type
7261 from char * to const char *. All callers updated.
7262 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7263 name parameter from char * to const char *.
7264 * symtab.h (struct cplus_specific): Change type of demangled_name
7265 member from char * to const char *. All uses updated.
7266 (struct general_symbol_info): Change type of name and
7267 mangled_lang.demangled_name members from char * to const char *.
7269 (symbol_get_demangled_name, symbol_natural_name): Update.
7270 (symbol_demangled_name, symbol_search_name): Update.
7271 * symtab.c (symbol_get_demangled_name): Change result type
7272 from char * to const char *. All callers updated.
7273 (symbol_natural_name, symbol_demangled_name): Ditto.
7274 (symbol_search_name): Ditto.
7275 (completion_list_add_name): Change type of symname,sym_text,
7276 text,word parameters from char * to const char *.
7277 (completion_list_objc_symbol): Change type of sym_text,
7278 text,word parameters from char * to const char *.
7279 * ada-lang.c (find_struct_field): Change type of name parameter
7280 from char * to const char *.
7281 (encoded_ordered_before): Similarly for N0,N1 parameters.
7282 (old_renaming_is_invisible): Similarly for function_name parameter.
7283 (ada_type_name): Change result type from char * to const char *.
7284 All callers updated.
7285 * ada-lang.h (ada_type_name): Update.
7286 * buildsym.c (hashname): Change type of name parameter
7287 from char * to const char *.
7288 * buildsym.h (hashname): Update.
7289 * dbxread.c (end_psymtab): Change type of include_list parameter
7290 from char ** to const char **.
7291 * dwarf2read.c (determine_prefix): Change result type
7292 from char * to const char *. All callers updated.
7293 * f-lang.c (find_common_for_function): Change type of name, funcname
7294 parameters from char * to const char *.
7295 * f-lang.c (find_common_for_function): Update.
7296 * f-valprint.c (list_all_visible_commons): Change type of funcname
7297 parameters from char * to const char *.
7298 * gdbarch.sh (static_transform_name): Change type of name parameter
7299 and result from char * to const char *.
7300 * gdbarch.c: Regenerate.
7301 * gdbarch.h: Regenerate.
7302 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7303 of name parameter from char * to const char *.
7304 * jv-lang.c (java_primitive_type_from_name): Ditto.
7305 (java_demangled_signature_length): Similarly for signature parameter.
7306 (java_demangled_signature_copy): Ditto.
7307 (java_demangle_type_signature): Ditto.
7308 * jv-lang.h (java_primitive_type_from_name): Update.
7309 (java_demangle_type_signature): Update.
7310 * objc-lang.c (specialcmp): Change type of a,b parameters
7311 from char * to const char *.
7312 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7313 from char * to const char *. All callers updated.
7314 * p-lang.h (is_pascal_string_type): Update.
7315 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7316 of name parameter from char * to const char *.
7317 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7318 * utils.c (fprintf_symbol_filtered): Ditto.
7319 * defs.h (fprintf_symbol_filtered): Update.
7320 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7321 * stabsread.h (end_psymtab): Update.
7322 * stack.c (find_frame_funname): Change type of funname parameter
7323 from char ** to const char **.
7324 * stack.h (find_frame_funname): Update.
7325 * typeprint.c (type_print): Change type of varstring parameter
7326 from char * to const char *.
7327 * value.h (type_print): Update.
7328 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7329 from char * to const char *. All callers updated.
7330 (xcoff_end_psymtab): Change type of include_list parameter
7331 from char ** to const char **. All callers updated.
7332 (swap_sym): Similarly for name parameter. All callers updated.
7333 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7335 (process_coff_symbol): Use xstrdup.
7336 * stabsread.c (stabs_method_name_from_physname): Renamed from
7337 update_method_name_from_physname. Change result type from void
7338 to char *. All callers updated.
7339 (read_member_functions): In has_destructor case, store name in objfile
7340 obstack instead of malloc space. In !has_stub case, fix mem leak.
7344 * configure: Rebuild.
7345 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7350 * configure.tgt (rl78-*-elf): New target.
7351 * rl78-tdep.c: New file.
7355 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7356 and continue the loop. Add QUIT statement.
7361 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7362 bfd_lookup_symbol_from_symtab.
7363 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7364 gdb_bfd_lookup_symbol_from_symtab.
7368 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7369 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7370 symbol. Add assertion that sym2 is never NULL.
7374 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7375 "name" parameter to const char ** from char **. All callers updated.
7376 (find_pc_partial_function): Ditto.
7377 (cache_pc_function_name): Change type to const char * from char *.
7378 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7379 (find_pc_partial_function): Update.
7380 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7381 type of "name" parameter to const char * from char *.
7383 * arch-utils.c (generic_in_solib_return_trampoline): Change
7384 type of "name" parameter to const char * from char *.
7385 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7386 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7387 type of "name" parameter to const char * from char *.
7388 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7389 * gdbarch.c: Regenerate.
7390 * gdbarch.h: Regenerate.
7391 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7392 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7393 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7394 type of "name" parameter to const char * from char *.
7395 * skip.c (skip_function_pc): Ditto.
7396 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7397 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7398 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7399 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7400 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7401 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7402 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7403 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7404 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7408 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7409 the current inferior has no execution. Make sure the current
7410 remote process matches gdb's current inferior.
7415 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7421 * symtab.c (lookup_language_this): Set block_found.
7426 * jit.c (struct jit_inferior_data): Rewrite.
7427 (struct jit_objfile_data): New.
7428 (get_jit_objfile_data): New function.
7429 (add_objfile_entry): Update.
7430 (jit_read_descriptor): Return int. Replace descriptor_addr
7431 argument with inf_data. Update. Don't call error.
7432 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7434 (jit_inferior_init): Don't look up descriptor. Don't call error.
7435 (jit_reset_inferior_data_and_breakpoints)
7436 (jit_inferior_created_observer): Remove.
7437 (jit_inferior_exit_hook): Update.
7438 (jit_executable_changed_observer): Remove.
7439 (jit_event_handler): Update.
7440 (free_objfile_data): Reset inferior data if needed.
7441 (_initialize_jit): Update.
7445 * jit.c (bfd_open_from_target_memory): Move higher in file.
7449 * libunwind-frame.c (libunwind_load): Display message if dlopen
7454 * symtab.h (symbol_found_callback_ftype): New typedef.
7455 (iterate_over_symbols): Use the above.
7456 * symtab.c (iterate_over_symbols): Likewise.
7457 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7458 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7459 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7460 (iterate_name_matcher): Document return values.
7461 (collect_one_symbol): Likewise.
7462 (collect_function_symbols): Likewise.
7463 (collect_symbols): Likewise.
7467 * ada-lang.c (resolve_subexp): Update.
7468 (ada_lookup_symbol_list): Add 'full_search' argument.
7469 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7470 ada_lookup_symbol_list.
7471 (ada_lookup_encoded_symbol): Update.
7472 (get_var_value): Update.
7473 * ada-exp.y (block_lookup): Update.
7474 (write_var_or_type): Update.
7475 (write_name_assoc): Update.
7476 * ada-lang.h (ada_lookup_symbol_list): Update.
7480 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7485 * symtab.h: Remove outdated comment.
7486 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7490 Fix build error in Darwin port.
7491 * i386-darwin-nat.c: Include i386-nat.h.
7495 PR breakpoints/13568:
7496 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7497 argument. Check for recursive includes.
7498 (dwarf_decode_macros): Create an include hash.
7502 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7503 * ppc-linux-tdep.c: Include glibc-tdep.h.
7504 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7505 (powerpc_linux_in_plt_stub): New function.
7506 (powerpc_linux_in_dynsym_resolve_code): New function.
7507 (ppc_skip_trampoline_code): New function.
7508 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7509 Use glibc_skip_solib_resolver.
7513 Code cleanup: Make 1440 bytes of data segment read-only.
7514 * arch-utils.c (endian_enum): Make it const char *const [].
7515 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7517 * breakpoint.c (always_inserted_enums): Likewise.
7518 * cli/cli-cmds.c (script_ext_enums): Likewise.
7519 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7520 enumlist parameter const char *const *.
7521 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7522 const char *const *.
7523 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7524 parameter const char *const *.
7525 * cris-tdep.c (cris_modes): Make it const char *const [].
7526 * filesystem.c (target_file_system_kinds): Likewise.
7527 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7528 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7529 (can_use_displaced_stepping_enum, scheduler_enums)
7530 (exec_direction_names): Likewise.
7531 * language.c (_initialize_language): Make the type_or_range_names and
7532 case_sensitive_names variables const char *const [].
7533 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7534 * python/python.c (python_excp_enums): Likewise.
7535 * remote.c (interrupt_sequence_modes): Likewise.
7536 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7537 * serial.c (logbase_enums): Likewise.
7538 * sh-tdep.c (sh_cc_enum): Likewise.
7539 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7541 * symtab.c (multiple_symbols_modes): Likewise.
7542 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7544 * utils.c (internal_problem_modes): Likewise.
7548 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7549 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7554 * configure.ac (with_python): Fix absolute path handling for win32.
7555 * configure: Regenerate.
7559 * symtab.c: Whitespace cleanup, no code changes.
7561 * symtab.c (lookup_symbol_in_language): Improve comment.
7562 (lookup_symbol_aux): Fix comment.
7564 * psymtab.c (add_psymbol_to_list): Result is now "void".
7565 * psympriv.h (add_psymbol_to_list): Update.
7567 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7571 Do not open script filenames twice.
7572 * cli/cli-cmds.c (source_script_from_stream): Pass to
7573 source_python_script also STREAM.
7574 * python/py-auto-load.c (source_section_scripts): Pass to
7575 source_python_script_for_objfile also STREAM.
7576 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7578 * python/python-internal.h (source_python_script_for_objfile): New
7579 parameter file, rename parameter file to filename.
7580 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7581 instead if !_WIN32. Update the function comment.
7582 (source_python_script, source_python_script_for_objfile)
7583 (source_python_script): New parameter file, rename parameter file to
7584 filename. Pass FILENAME to python_run_simple_file.
7585 * python/python.h (source_python_script): New parameter file, rename
7586 parameter file to filename.
7590 * corelow.c (core_has_fake_pid): Delete.
7591 (core_close): Delete references to `core_has_fake_pid'.
7592 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7593 (core_open): Delete references to `core_has_fake_pid'.
7594 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7599 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7600 Remove language parameter from name_matcher. Adjust the comment.
7601 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7602 Remove language parameter.
7603 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7604 * linespec.c (iterate_name_matcher): Likewise.
7605 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7606 name_matcher. Adjust call accordingly.
7607 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7608 (maintenance_check_symtabs): Adjust type of parameter "fun".
7609 * psymtab.h (maintenance_check_symtabs): Likewise.
7613 * language.h (symbol_name_match_p_ftype): New typedef.
7614 (struct language_defn): Replace field la_symbol_name_compare
7615 by la_get_symbol_name_match_p.
7616 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7617 (ada_language_defn): Use it.
7618 * linespec.c (struct symbol_matcher_data): New type.
7619 (iterate_name_matcher): Rewrite.
7620 (iterate_over_all_matching_symtabs): Pass a pointer to
7621 a symbol_matcher_data struct to expand_symtabs_matching
7622 instead of just the lookup name.
7623 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7624 opencl-lang.c, p-lang.c, language.c: Delete field
7625 la_symbol_name_compare, and replace by NULL for new field
7626 la_get_symbol_name_match_p.
7627 * symfile.h (struct quick_symbol_functions): Update comment.
7631 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7637 * solib.c (update_solib_list): Update the program space's
7638 added_solibs and deleted_solibs fields.
7639 * progspace.h (struct program_space) <added_solibs,
7640 deleted_solibs>: New fields.
7641 (clear_program_space_solib_cache): Declare.
7642 * progspace.c (release_program_space): Call
7643 clear_program_space_solib_cache.
7644 (clear_program_space_solib_cache): New function.
7645 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7646 bpstat_stop_status. Use handle_solib_event.
7647 * breakpoint.c: Include gdb_regex.h.
7648 (print_solib_event): New function.
7649 (bpstat_print): Use print_solib_event.
7650 (bpstat_stop_status): Add special case for bp_shlib_event.
7651 (handle_solib_event): New function.
7652 (bpstat_what): Use handle_solib_event.
7653 (struct solib_catchpoint): New.
7654 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7655 (breakpoint_hit_catch_solib, check_status_catch_solib)
7656 (print_it_catch_solib, print_one_catch_solib)
7657 (print_mention_catch_solib, print_recreate_catch_solib): New
7659 (catch_solib_breakpoint_ops): New global.
7660 (catch_load_or_unload, catch_load_command_1)
7661 (catch_unload_command_1): New functions.
7662 (internal_bkpt_check_status): Add special case for
7664 (internal_bkpt_print_it): Use print_solib_event.
7665 (initialize_breakpoint_ops): Initialize
7666 catch_solib_breakpoint_ops.
7667 (_initialize_breakpoint): Register "catch load" and "catch
7669 * breakpoint.h (handle_solib_event): Declare.
7670 * NEWS: Add entry for "catch load" and "catch unload".
7674 * ada-lang.c: Include gdb_vecs.h.
7675 * charset.c: Include gdb_vecs.h.
7676 * tracepoint.h: Include gdb_vecs.h.
7677 * gdb_vecs.h: New file.
7681 * breakpoint.c (breakpoint_hit_catch_fork)
7682 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7683 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7684 * infrun.c (inferior_has_forked, inferior_has_vforked)
7685 (inferior_has_execd, inferior_has_called_syscall): Delete.
7686 (handle_syscall_event): Get syscall_number from the execution
7687 control state's wait status.
7688 (wait_for_inferior): Don't clear syscall_number.
7692 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7693 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7694 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7695 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7697 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7698 false for events other than TARGET_SIGNAL_TRAP.
7699 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7701 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7702 events other than TARGET_SIGNAL_TRAP.
7703 (tracepoint_breakpoint_hit): Add `ws' parameter.
7704 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7706 (bpstat_stop_status): Same.
7707 (pc_at_non_inline_function): Same.
7708 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7709 to pass the current event's waitstatus to bpstat_stop_status
7710 and pc_at_non_inline_function.
7715 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7716 Update the function comment for it.
7717 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7718 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7723 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7724 outside `bs->stop' block.
7725 (bpstat_what): Rework bp_shlib_event handling.
7726 (internal_bkpt_check_status): If the breakpoint is a
7727 bp_shlib_event, then set bs->stop and bs->print if
7728 stop_on_solib_events is set.
7732 Delete #if 0'd out code.
7733 * stack.c (print_frame_label_vars): Remove.
7734 (catch_info): Likewise.
7735 (_initialize_stack): Remove "info catch" command.
7736 * NEWS: Mention the above.
7740 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7742 (remote_notice_new_inferior): If the remote end doesn't support
7743 the multiprocess extensions, then the PID is fake.
7744 (add_current_inferior_and_thread): New.
7745 (remote_start_remote): Use it.
7746 (extended_remote_attach_1): Adjust.
7747 (extended_remote_create_inferior_1): Use
7748 add_current_inferior_and_thread.
7752 Fix watchpoints to be specific for each inferior.
7753 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7754 current_program_space.
7755 * i386-nat.c (i386_inferior_data_cleanup): New.
7756 (i386_inferior_data_get): Replace variable inf_data_local by an
7758 (i386_use_watchpoints): Initialize i386_inferior_data.
7759 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7760 specific iterate_over_lwps.
7764 Fix watchpoints across inferior fork.
7765 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7766 comment for linux_nat_iterate_watchpoint_lwps.
7767 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7768 linux_nat_iterate_watchpoint_lwps.
7769 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7770 * i386-linux-nat.c (update_debug_registers_callback): Update the
7771 comment for linux_nat_iterate_watchpoint_lwps.
7772 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7773 linux_nat_iterate_watchpoint_lwps.
7774 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7775 * i386-nat.c: Include inferior.h.
7776 (dr_mirror): Remove.
7777 (i386_inferior_data, struct i386_inferior_data)
7778 (i386_inferior_data_get): New.
7779 (i386_debug_reg_state): Use i386_inferior_data_get.
7780 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
7781 (i386_insert_watchpoint, i386_remove_watchpoint)
7782 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7783 (i386_remove_hw_breakpoint): New variable state, use
7784 i386_debug_reg_state instead of DR_MIRROR.
7785 * linux-nat.c (delete_lwp): New declaration.
7786 (num_lwps): Move here from downwards.
7787 (delete_lwp_cleanup): New.
7788 (linux_child_follow_fork): Create new child_lp, call
7789 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
7791 (num_lwps): Move upwards.
7792 (linux_nat_iterate_watchpoint_lwps): New.
7793 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
7794 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
7802 * top.c (caution): Rename to ...
7803 (confirm): ... this.
7804 (show_caution): Rename to ...
7805 (show_confirm): ... this.
7806 (quit_cover): Adjust.
7807 (init_main): Adjust.
7808 * top.h (caution): Rename to ...
7809 (confirm): ... this.
7810 * utils.c (internal_vproblem, defaulted_query): Adjust.
7814 * top.c (caution): Update comment.
7815 (execute_command): Don't consider the current value of `caution'.
7819 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
7823 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7824 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
7825 * target.c (target_fileio_pwrite): Remove buffer address from
7827 (target_fileio_pread): Likewise.
7831 * NEWS: Document remote "info proc" and "generate-core-file".
7835 * gdbarch.sh (find_memory_regions): New callback.
7836 * gdbarch.c, gdbarch.h: Regenerate.
7838 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
7839 callback before falling back to target method.
7841 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
7842 (linux_target_install_ops): No longer install it.
7844 * linux-tdep.c (linux_find_memory_regions): New function.
7845 (linux_init_abi): Install it.
7849 * gdbarch.sh (make_corefile_notes): New architecture callback.
7850 * gdbarch.c: Regenerate.
7851 * gdbarch.h: Likewise.
7853 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
7854 before target_make_corefile_notes. If NULL is returned, the
7855 target does not support core file generation.
7857 * linux-nat.c: Include "linux-tdep.h".
7858 (find_signalled_thread, find_stop_signal): Remove.
7859 (linux_nat_do_thread_registers): Likewise.
7860 (struct linux_nat_corefile_thread_data): Likewise.
7861 (linux_nat_corefile_thread_callback): Likewise.
7862 (iterate_over_spus): Likewise.
7863 (struct linux_spu_corefile_data): Likewise.
7864 (linux_spu_corefile_callback): Likewise.
7865 (linux_spu_make_corefile_notes): Likewise.
7866 (linux_nat_collect_thread_registers): New function.
7867 (linux_nat_make_corefile_notes): Replace contents by call to
7868 linux_make_corefile_notes passing linux_nat_collect_thread_registers
7869 as native-only callback.
7871 * linux-tdep.h: Include "bfd.h".
7872 (struct regcache): Add forward declaration.
7873 (linux_collect_thread_registers_ftype): New typedef.
7874 (linux_make_corefile_notes): Add prototype.
7875 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
7876 "regset.h", and "elf-bfd.h".
7877 (find_signalled_thread, find_stop_signal): New functions.
7878 (linux_spu_make_corefile_notes): Likewise.
7879 (linux_collect_thread_registers): Likewise.
7880 (struct linux_corefile_thread_data): New data structure.
7881 (linux_corefile_thread_callback): New funcion.
7882 (linux_make_corefile_notes): Likewise.
7883 (linux_make_corefile_notes_1): Likewise.
7884 (linux_init_abi): Install it.
7888 * gdbarch.sh (info_proc): New callback.
7889 * gdbarch.c, gdbarch.h: Regenerate.
7891 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7892 before falling back to the target info_proc callback.
7894 * linux-nat.c: Do not include "cli/cli-utils.h".
7895 (linux_nat_info_proc): Remove.
7896 (linux_target_install_ops): No longer install it.
7898 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
7899 (read_mapping): New function.
7900 (linux_info_proc): Likewise.
7901 (linux_init_abi): Install it.
7905 * defs.h (enum info_proc_what): Moved here from linux-nat.c
7906 * infcmd.c: (info_proc_cmd_1): New function.
7907 (info_proc_cmd): New function, moved here from equivalent routine
7908 orignally in linux-nat.c.
7909 (info_proc_cmd_mappings): Likewise.
7910 (info_proc_cmd_stat): Likewise.
7911 (info_proc_cmd_status): Likewise.
7912 (info_proc_cmd_cwd): Likewise.
7913 (info_proc_cmd_cmdline): Likewise.
7914 (info_proc_cmd_exe): Likewise.
7915 (info_proc_cmd_all): Likewise.
7916 (_initialize_infcmd): Install "info proc" command and subcommands.
7918 * target.h (struct target_ops): Add to_info_proc.
7919 (target_info_proc): Add prototype.
7920 * target.c (target_info_proc): New function.
7922 * procfs.c (procfs_info_proc): Add prototype.
7923 (info_proc_cmd): Rename into ...
7924 (procfs_info_proc): ... this. Update argument types as appropriate
7925 for a to_info_proc implementation. Handle "what" argument.
7926 (procfs_target): Install procfs_info_proc.
7927 (_initialize_procfs): No longer install "info proc" command.
7929 * linux-nat.c: (enum info_proc_what): Remove.
7930 (linux_nat_info_proc_cmd_1): Rename into ...
7931 (linux_nat_info_proc): ... this. Update argument types as appropriate
7932 for a to_info_proc implementation.
7933 (linux_nat_info_proc_cmd): Remove.
7934 (linux_nat_info_proc_cmd_mappings): Likewise.
7935 (linux_nat_info_proc_cmd_stat): Likewise.
7936 (linux_nat_info_proc_cmd_status): Likewise.
7937 (linux_nat_info_proc_cmd_cwd): Likewise.
7938 (linux_nat_info_proc_cmd_cmdline): Likewise.
7939 (linux_nat_info_proc_cmd_exe): Likewise.
7940 (linux_nat_info_proc_cmd_all): Likewise.
7941 (linux_target_install_ops): Install linux_nat_info_proc.
7942 (_initialize_linux_nat): No longer install "info proc" command
7947 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
7948 * config.in, configure: Regenerate.
7950 * target.h (struct target_ops): Add to_fileio_readlink.
7951 (target_fileio_readlink): Add prototype.
7952 * target.c (target_fileio_readlink): New function.
7954 * inf-child.c: Conditionally include <sys/param.h>.
7955 (inf_child_fileio_readlink): New function.
7956 (inf_child_target): Install it.
7958 * remote.c (PACKET_vFile_readlink): New enum value.
7959 (remote_hostio_readlink): New function.
7960 (init_remote_ops): Install it.
7961 (_initialize_remote): Handle vFile:readlink packet type.
7966 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7967 * config.in, configure: Regenerate.
7969 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7970 to_fileio_pread, to_fileio_close, to_fileio_unlink.
7971 (target_fileio_open): Add prototype.
7972 (target_fileio_pwrite): Likewise.
7973 (target_fileio_pread): Likewise.
7974 (target_fileio_close): Likewise.
7975 (target_fileio_unlink): Likewise.
7976 (target_fileio_read_alloc): Likewise.
7977 (target_fileio_read_stralloc): Likewise.
7979 * target.c: Include "gdb/fileio.h".
7980 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7981 (default_fileio_target): New function.
7982 (target_fileio_open): Likewise.
7983 (target_fileio_pwrite): Likewise.
7984 (target_fileio_pread): Likewise.
7985 (target_fileio_close): Likewise.
7986 (target_fileio_unlink): Likewise.
7987 (target_fileio_close_cleanup): Likewise.
7988 (target_fileio_read_alloc_1): Likewise.
7989 (target_fileio_read_alloc): Likewise.
7990 (target_fileio_read_stralloc): Likewise.
7992 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7993 <fcntl.h>, and <unistd.h>.
7994 (inf_child_fileio_open_flags_to_host): New function.
7995 (inf_child_errno_to_fileio_error): Likewise.
7996 (inf_child_fileio_open): Likewise.
7997 (inf_child_fileio_pwrite): Likewise.
7998 (inf_child_fileio_pread): Likewise.
7999 (inf_child_fileio_close): Likewise.
8000 (inf_child_fileio_unlink): Likewise.
8001 (inf_child_target): Install to_fileio routines.
8003 * remote.c (init_remote_ops): Install to_fileio routines.
8008 * remote.c (remote_multi_process_p): Only check for multi-process
8009 protocol feature, do not check for extended protocol.
8010 (remote_supports_multi_process): Check for extended protocol here.
8011 (set_general_process): Likewise.
8012 (extended_remote_kill): Likewise.
8013 (remote_pid_to_str): Likewise.
8014 (remote_query_supported): Always query multiprocess mode.
8019 * inferior.h (struct inferior): Add fake_pid_p.
8020 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8021 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8022 magic_null_ptid since the remote side doesn't provide a real PID.
8026 * NEWS: Combine the two Python sections.
8030 * target.h (target_close): Update comment on the target's unpush state.
8034 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8035 linux_nat_async directly instead of going through the target
8037 * target.c (unpush_target): Close target after unpushing it, not
8042 * mdebugread.c (sort_blocks): Replace integer constants with ones
8043 derived from FIRST_LOCAL_BLOCK.
8049 * symfile.c (find_separate_debug_file): New function.
8050 (terminate_after_last_dir_separator): Likewise.
8051 (find_separate_debug_file_by_debuglink): Also try realpath.
8052 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8053 * configure: Regenerate.
8054 * config.in: Regenerate.
8058 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8059 (main.o): Remove rule.
8060 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8061 (--with-sysroot): Rewrite.
8062 * configure: Regenerate.
8063 * config.in: Regenerate.
8067 * parse.c (initialize_expout): New function.
8068 (reallocate_expout): Likewise.
8069 (parse_exp_in_context): Use `initialize_expout' and
8070 `reallocate_expout' when appropriate.
8074 * record.c (struct record_breakpoint, record_breakpoint_p)
8075 (record_breakpoints): New.
8076 (record_insert_breakpoint, record_remove_breakpoint): Manage
8077 record breakpoints list. Only remove breakpoints from the
8078 inferior if they had been inserted there in the first place.
8082 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8083 if we know we don't have a file name to look for.
8087 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8088 the frame's stop reason is UNWIND_UNAVAILABLE.
8092 Fix compilation error.
8093 * m2-exp.y (yyerror): Use ANSI C prototype.
8097 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8098 (growbuf_by_size): Likewise.
8099 (yyerror): Likewise.
8100 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8101 (modblock): Remove variable (was #if 0'ed).
8102 (parse_number): Convert prototype from K&R to ANSI C.
8103 (yyerror): Likewise.
8104 * objc-exp.y (parse_number): Likewise.
8105 (yyerror): Likewise.
8106 (yylex): Remove #if 0'ed code.
8107 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8108 (yyerror): Likewise.
8113 * symtab.h (compare_filenames_for_search): Declare.
8114 * symtab.c (compare_filenames_for_search): New function.
8115 (iterate_over_some_symtabs): Use it.
8116 * symfile.h (struct quick_symbol_functions)
8117 <map_symtabs_matching_filename>: Change spec.
8118 * psymtab.c (partial_map_symtabs_matching_filename): Use
8119 compare_filenames_for_search. Update for new spec.
8120 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8121 compare_filenames_for_search. Update for new spec.
8122 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8127 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8128 (struct main_type) <flag_flag_enum>: New field.
8129 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8130 * NEWS: Add entries.
8131 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8133 * python/lib/gdb/printing.py (_EnumInstance): New class.
8134 (FlagEnumerationPrinter): Likewise.
8138 * breakpoint.c (create_sals_from_address_default): New function.
8139 (create_breakpoints_sal_default): Likewise.
8140 (decode_linespec_default): Likewise.
8141 (is_marker_spec): Removed.
8142 (strace_marker_p): New function.
8143 (init_breakpoint_sal): Using `strace_marker_p' instead of
8145 (create_breakpoint): Call method `create_sals_from_address' from
8146 breakpoint_ops, replacing code that created SALs conditionally
8147 on the type of the breakpoint. Call method `create_breakpoints_sal',
8148 replacing code that created breakpoints conditionally on the type
8150 (base_breakpoint_create_sals_from_address): New function.
8151 (base_breakpoint_create_breakpoints_sal): Likewise.
8152 (base_breakpoint_decode_linespec): Likewise.
8153 (base_breakpoint_ops): Add methods
8154 `base_breakpoint_create_sals_from_address',
8155 `base_breakpoint_create_breakpoints_sal' and
8156 `base_breakpoint_decode_linespec'.
8157 (bkpt_create_sals_from_address): New function.
8158 (bkpt_create_breakpoints_sal): Likewise.
8159 (bkpt_decode_linespec): Likewise.
8160 (tracepoint_create_sals_from_address): Likewise.
8161 (tracepoint_create_breakpoints_sal): Likewise.
8162 (tracepoint_decode_linespec): Likewise.
8163 (strace_marker_create_sals_from_address): Likewise.
8164 (strace_marker_create_breakpoints_sal): Likewise.
8165 (strace_marker_decode_linespec): Likewise.
8166 (strace_marker_breakpoint_ops): New variable.
8167 (addr_string_to_sals): Remove `marker_spec'. Call method
8168 `decode_linespec' from breakpoint_ops, replacing code that decoded
8169 an address string into a SAL. Use `strace_marker_p' instead of
8171 (strace_command): Decide whether we are dealing with a static
8172 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8173 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8174 * breakpoint.h (linespec_result, linespec_sals): New forward
8176 (breakpoint_ops) <create_sals_from_address>,
8177 <create_breakpoints_sal>, <decode_linespec>: New methods.
8181 * NEWS: Update text for "maint set python print-stack".
8182 It is deprecated in gdb 7.4 and deleted in 7.5.
8186 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8191 * configure: Regenerate.
8192 * config.in: Regenerate.
8197 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8198 (ANONYMOUS_UNION_NAME): Define.
8199 (is_path_expr_parent): New function.
8200 (get_path_expr_parent): New function.
8201 (is_anonymous_child): New function.
8202 (create_child_with_value): If the child is anonymous and without
8203 a name, assign an object name to it.
8204 (c_describe_child): Use get_path_expr_parent to determine
8205 the parent expression.
8206 If there field represents an anonymous struct or union and
8207 has no name, set an appropriate display name and expression.
8208 (cplus_describe_child): Likewise.
8212 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8213 available when %ebp is found to be zero (outermost).
8217 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8218 an internal gdb_static_assert.
8219 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8224 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8225 catch" and "catch throw".
8229 * blockframe.c (block_innermost_frame): Start search from selected
8230 frame, if present, or otherwise the current frame.
8232 * c-exp.y (variable): Update innermost_block for
8233 'block COLONCOLON NAME' clause.
8234 * m2-exp.y (variable): Ditto.
8235 * objc-exp.y (variable): Ditto.
8240 * python/python.c (finish_python_initialization): Set sys.argv.
8244 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8245 "want_line_info". All callers updated.
8246 (dwarf_decode_lines_1): New function.
8247 (handle_DW_AT_stmt_list): Add function comment.
8248 New arg "want_line_info". All callers updated.
8249 (read_file_scope,read_type_unit_scope): Move comment from
8250 handle_DW_AT_stmt_list to here.
8254 Fix regression after libiberty/ update for GCC PR 6057 and others.
8255 * c-exp.y (operator) <OPERATOR DELETE>
8256 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8257 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8258 (make_builtin_type, make_name): New variable i, add gdb_assert.
8259 (operator) <OPERATOR NEW>: Update ARGS to 3.
8260 (operator) <OPERATOR DELETE>: Add trailing space.
8261 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8262 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8263 * cp-support.c (cp_canonicalize_string): Check NULL from
8264 cp_comp_to_string, call warning and return.
8268 Fix duplicate .o files after omitting libbfd.a.
8269 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8270 (SFILES): Add corelow.c.
8271 (COMMON_OBS): Add corelow.o.
8272 (ALLDEPFILES): Remove corelow.c.
8273 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8274 * config/alpha/alpha-osf3.mh: Likewise.
8275 * config/alpha/fbsd.mh: Likewise.
8276 * config/arm/nbsdaout.mh: Likewise.
8277 * config/arm/nbsdelf.mh: Likewise.
8278 * config/i386/i386gnu.mh: Likewise.
8279 * config/ia64/hpux.mh: Likewise.
8280 * config/ia64/linux.mh: Likewise.
8281 * config/m32r/linux.mh: Likewise.
8282 * config/m68k/linux.mh: Likewise.
8283 * config/mips/irix5.mh: Likewise.
8284 * config/mips/irix6.mh: Likewise.
8285 * config/pa/hpux.mh: Likewise.
8286 * config/pa/linux.mh: Likewise.
8287 * config/powerpc/aix.mh: Likewise.
8288 * config/sparc/linux.mh: Likewise.
8289 * config/sparc/linux64.mh: Likewise.
8290 * config/sparc/sol2.mh: Likewise.
8291 * config/vax/vax.mh: Likewise.
8292 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8293 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8294 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8295 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8296 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8297 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8298 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8299 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8300 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8301 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8302 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8303 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8304 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8305 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8306 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8307 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8308 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8309 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8310 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8311 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8312 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8313 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8314 corelow.o from gdb_target_obs.
8315 * corefile.c (core_target): Update the comment on NULL value.
8316 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8317 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8318 MATCHES. Drop YUMMY set on NULL.
8319 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8320 reclaim CORE_DATA if it is already NULL.
8324 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8325 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8329 * breakpoint.c (wrapper.h): Don't include.
8333 * Makefile.in (SFILES): Remove wrapper.c.
8334 (HFILES_NO_SRCDIR): Remove wrapper.h.
8335 (COMMON_OBS): Remove wrapper.o.
8336 * cli/cli-interp.c: Don't inlude wrapper.h.
8337 * corelow.c: Likewise.
8338 (core_open): Replace gdb_target_find_new_threads with
8339 TRY_CATCH around target_find_new_threads.
8340 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8341 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8342 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8343 evaluate_expression.
8344 (varobj_set_value): Likewise for evaluate_expression and
8346 (install_new_variable): Likewise for value_fetch_lazy.
8347 (adjust_value_for_child_access): Likewise for value_ind.
8348 (c_describe_child): Likewise for value_subscript and
8350 (c_value_of_root): Likewise for evaluate_expression.
8351 * wrapper.c: Remove.
8352 * wrapper.h: Remove.
8356 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8357 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8358 "abfd" args with "section". All callers updated.
8359 Error checking code moved ...
8360 (error_check_comp_unit_head): ... here. New function.
8361 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8362 Delete arg "abfd". New arg "type_offset". All callers updated.
8363 (create_debug_types_hash_table): Simplify by using
8364 read_and_check_type_unit_head.
8366 * parser-defs.h (namecopy): Delete.
8367 * parse.c (namecopy, namecopy_size): Move into copy_name.
8371 Partially fix duplicate .o files after omitting libbfd.a.
8372 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8373 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8374 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8375 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8376 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8377 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8378 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8382 * MAINTAINERS: Update my email address.
8386 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8387 n_type_units. Rename type_comp_units to all_type_units.
8389 (add_signatured_type_cu_to_table): Renamed from
8390 add_signatured_type_cu_to_list. All callers updated.
8392 * gdbtypes.h (struct cplus_struct_type): Delete member
8393 nfn_fields_total. All uses removed.
8397 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8399 (dwarf2_find_comp_unit): Delete.
8400 (process_psymtab_comp_unit): Make result "void".
8401 Delete args buffer, info_ptr, buffer_size, and replace with
8402 "section". All callers updated.
8403 (dwarf2_build_psymtabs_hard): Simplify.
8408 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8409 before `struct gdb_exception'.
8410 * breakpoint.c (update_global_location_list_nothrow)
8411 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8412 * cp-abi.c (value_rtti_type): Likewise.
8413 * cp-support.c (cp_validate_operator): Likewise.
8414 * infrun.c (insert_exception_resume_breakpoint)
8415 (check_exception_resume, keep_going): Likewise.
8416 * mi-interp.c (mi_breakpoint_created)
8417 (mi_breakpoint_modified): Likewise.
8418 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8419 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8420 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8424 * dwarf2read.c (statement_prologue): Delete, unused.
8426 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8427 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8429 * dwarf2read.c (comp_unit_header): Delete, unused.
8433 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8434 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8438 * infrun.c (normal_stop): Don't skip calling the normal_stop
8439 observers if the thread was doing a multi-step, but stopped for
8440 some reason other than stepping.
8444 * cli/cli-decode.h: Add comments.
8445 (CMD_LIST_AMBIGUOUS): Moved to command.h
8446 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8447 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8448 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8449 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8450 (add_com, add_com_alias, add_info, add_info_alias)
8451 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8453 * command.h: Add and adjust comments.
8454 (CMD_LIST_AMBIGUOUS): Moved here.
8455 (help_cmd, help_cmd_list): Delete declarations.
8459 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8460 All callers updated.
8461 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8462 Replace all arguments with "per_cu". All callers updated.
8464 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8466 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8467 New arg "per_cu". All callers updated.
8469 Delete #if 0'd out code.
8470 * language.c (binop_result_type): Delete.
8471 (simple_type, ordered_type, same_type, integral_type): Delete.
8472 (numeric_type, character_type, string_type, boolean_type): Delete.
8473 (float_type, structured_type): Delete.
8474 * language.h: Update.
8478 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8482 * corefile.c (close_exec_file): Delete.
8483 (reopen_exec_file): Remove commented out code that seems related
8484 to close_exec_file, which is being deleted here.
8485 * inferior.h (close_exec_file): Delete.
8486 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8490 * ada-lang.c: #include "cli/cli-utils.h".
8491 (get_selections): Use skip_spaces.
8492 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8493 (catch_ada_exception_command_split): Use skip_spaces.
8494 (ada_decode_assert_location): Likewise.
8498 * linespec.c (decode_line_internal): Check for C++ or Java
8499 compound constructs only if the current language is C, C++
8507 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8508 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8510 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8511 fall through into AT_ENTRY_POINT.
8512 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8514 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8515 PPC_INSN_SIZE skip to 3 times.
8519 * linespec.c (add_minsym): Preserve function descriptors.
8523 * breakpoint.c (all_locations_are_pending): Consider locations
8524 in program spaces executing during startup pending as well.
8528 Copyright year update in most files of the GDB Project.
8532 * copyright.sh: Delete.
8533 * copyright.py: Rewrite.
8537 * gnulib/extra/update-copyright: New file, imported from gnulib.
8541 * README (Copyright and License Notices): New section.
8546 * python/py-value.c (valpy_dereference, valpy_get_address
8547 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8548 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8549 (valpy_absolute, valpy_richcompare): Free intermediate values.
8553 * ada-lang.c: Reformat the copyright notice.
8557 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8558 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8559 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8560 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8561 Revert this part of:
8563 Build gdb directly from *.o files not using libgdb.a.
8564 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8568 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8569 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8570 Reformat the copyright header.
8574 Revert this part of:
8576 Remove the gdbtui binary.
8577 * gdb.c (main): Remove args.interpreter_p initialization.
8578 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8579 * main.h (struct captured_main_args): Remove interpreter_p.
8583 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8587 * top.c (print_gdb_version): Update copyright year.
8591 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8596 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8597 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8599 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8600 fall through into AT_ENTRY_POINT.
8601 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8603 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8604 PPC_INSN_SIZE skip to 3 times.
8608 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8610 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8614 Build gdb directly from *.o files not using libgdb.a.
8615 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8616 (COMMON_OBS): Remove solib-target.o.
8617 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8618 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8619 (LIBGDB_OBS, libgdb.a): Move it above.
8620 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8621 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8622 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8623 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8624 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8625 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8626 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8627 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8628 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8629 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8630 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8631 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8632 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8633 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8634 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8635 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8636 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8637 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8638 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8639 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8640 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8641 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8642 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8643 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8644 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8645 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8646 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8650 Remove the gdbtui binary.
8651 * .gitignore (/gdbtui): Remove.
8652 * Makefile.in (TUI): Remove.
8653 (SUBDIR_TUI_OBS): Remove tui-main.o.
8654 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8655 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8656 (tui-main.o): Remove.
8657 (all_object_files): Remove tui-main.o.
8658 * NEWS: New note for the gdbtui removal.
8659 * configure: Rebuilt.
8660 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8661 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8662 CONFIG_UNINSTALL respectively.
8663 * gdb.c (main): Remove args.interpreter_p initialization.
8664 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8665 * main.h (struct captured_main_args): Remove interpreter_p.
8666 * tui/tui-main.c: Remove.
8670 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8671 (dwarf2_physname, read_import_statement): Ditto.
8672 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8673 (process_structure_scope read_subroutine_type): Ditto.
8674 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8675 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8676 (dwarf2_fetch_die_location_block): Ditto.
8677 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8679 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8680 All callers updated.
8681 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8682 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8683 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8685 * dwarf2read.c (load_cu): Move assert to more useful location.
8687 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8688 All callers updated.
8690 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8691 (dwarf2_elf_names): Minor reformat.
8692 (dwarf2_per_cu_data): Tweak comment.
8693 (dwarf2_read_section): Fix comment.
8694 (create_all_comp_units): Fix comment.
8695 (load_full_comp_unit): Fix comment.
8696 (process_full_comp_unit): Fix comment.
8697 (read_signatured_type): Fix comment.
8699 For older changes see ChangeLog-2011.
8705 version-control: never