3 * linespec.c (struct ls_parser): Make 'saved_arg' const.
4 (parse_linespec): Make 'argptr' const.
5 Remove temporary cast of 'argptr' to const char **.
6 (decode_line_full): Pass const pointer to parse_linespec.
7 (decode_line_1): Likewise.
8 (decode_objc): Make local variable 'new_argptr' const.
9 (find_function_symbols): Remove temporary cast to char *
11 * objc-lang.c (find_imps): Make argument 'method' const.
13 * objc-lang.h (find_imps): Likewise.
17 * completer.c (skip_quoted_chars): Make all arguments const.
19 (skip_quoted): Likewise.
20 * completer.h (skip_quoted_chars): Likewise.
21 (skip_quoted): Likewise.
22 * defs.h (skip_quoted): Remove duplicate declaration.
23 * jv-exp.y: Include completer.h.
24 (yylex): Remove unneccessary cast to char * fro skip_quoted.
25 * p-exp.y: Include completer.h.
29 * c-exp.y (parse_number): Make first argument const.
30 Make a copy of the input to manipulate.
31 (c_parse_escape): Make first argument const.
32 Make local variable 'tokptr' const.
33 (parse_string_or_char): Make first two arguments const.
34 (macro_original_text): Make const.
35 (lex_one_token): Make local variable 'tokstart' const.
36 Likewise for local variables named 'p'.
37 Cast away const for struct stoken (temporary).
38 * c-lang.h (c_parse_escpae): Make first argument const.
39 * cli/cli-cmds.c (echo_command): Make local variable 'p'
41 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
43 * f-exp.y (parse_number): Make first argument const.
44 (match_string_literal): Make local variable 'tokstart'
46 (yylex): Make local variable 'p' const.
47 Cast away const for struct stoken (temporary).
48 * go-exp.y (parse_number): Make first argument const.
49 (parse_string_or_char): Likewise.
50 Make local variable 'tokstart' const.
51 (lex_one_token): Likewise for numerous locals called 'p'.
52 Cast away const for struct stoken (temporary).
53 * jv-exp.y (parse_number): Make first argument const.
54 Make local variables 'tokstart' and 'tokptr' const.
55 Cast away const for call to skip_quoted (temporary).
56 (yylex): Make local variable 'p' const.
57 Cast away const for struct stoken (temporary).
58 * m2-exp.y (parse_number): Make local variable 'p' const.
59 (yylex): Likewise for 'tokstart'.
60 Cast away const for struct stoken (temporary).
61 Make local variable 'p' const.
62 * macroexp.c (get_character_constant): Pass a const string
64 (get_string_literal): Likewise.
65 (macro_expand_next): Make first argument const.
66 Cast away const for init_shared_buffer.
67 * macroexp.h (macro_expand_next): Make first argument const.
68 * p-exp.y (yylex): Make a local copy of 'lexptr'.
69 Pass a const string to c_parse_escape.
70 Make local variables 'p' and 'namestart' const.
71 * parse.c (lexptr): Make const.
72 (prev_lexptr): Likewise.
73 (find_template_name_end): Return const.
74 Make argument const, too.
75 (parse_exp_in_context): Make first argument const.
76 Remove the entire const_hack.
77 (parse_exp_in_context_1): Make first argument const.
78 * parser-defs.h (find_template_name_end): Return const.
79 Make argument const, too.
81 (prev_lexptr): Likewise.
82 * utils.c (parse_escape): Make second argument const.
83 * utils.h (parse_escape): Likewise.
87 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
89 (block_lookup): Make 'raw_name' and 'name' const.
90 * ada-lex.l (processString): Update for struct stoken.ptr.
91 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
92 (operator_stoken): Likewise.
93 (lex_one_token): Remove temporary cast to char * for
95 * f-exp.y (yylex): Likewise.
96 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
97 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
98 * go-exp.y (lex_one_token): Remove temporary cast to char * for
100 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
101 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
102 * linespec.c (struct ls_parser): Make 'stream' const.
103 (find_parameter_list_end): Make argument 'input' and local
105 (linespec_lexer_lex_string): Make local variables 'start' and
107 Use skip_spaces_const instead of skip_spaces.
108 (linespec_lexer_peek_token): Make local variable 'saved_stream'
110 (parse_linespec): Temporarily cast 'argptr' to const for
111 'parser->lexer.stream'.
112 * m2-exp.y (yylex): Remove temporary cast to char * for
114 * objc-lang.c (add_msglist): Make local variable 'p' const.
115 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
116 (exp : STRING): Make 'sp' const.
117 (parse_number): Make argument 'p' const.
118 * parser-defs.h (struct stoken): Make 'ptr' const.
122 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
126 * varobj.c (c_value_of_root): Remove declaration.
127 (cplus_value_of_root, java_value_of_root): Likewise.
128 (ada_value_of_root): Likewise.
129 (struct language_specific) <value_of_root>: Remove.
130 (languages): Update initialization.
131 (check_scope): Move earlier.
132 (c_value_of_root): Move earlier and rename to ...
133 (value_of_root_1): ... this.
134 (value_of_root): Caller update.
135 (cplus_value_of_root, java_value_of_root): Remove.
136 (ada_value_of_root): Remove.
140 * varobj.c (varobj_format_string): Remove "unknown".
141 (languages): Remove the first element.
142 * varobj.h (enum varobj_languages): Remove vlang_c.
146 * varobj.c (struct language_specific) <language>: Remove.
147 (languages): Update the initialization.
151 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
152 "solib-target.h". Include "windows-tdep.h".
153 (arm_wince_init_abi): Call windows_init_abi. Remove call to
154 set_solib_ops and set_gdbarch_has_dos_based_file_system.
155 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
156 windows-tdep.o to gdb_target_obs.
160 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
162 (amd64_windows_init_abi): Don't call set_solib_ops and
163 set_gdbarch_iterate_over_objfiles_in_search_order. Call
164 windows_init_abi instead.
165 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
167 (i386_cygwin_init_abi): Don't call set_solib_ops,
168 set_gdbarch_has_dos_based_file_system and
169 set_gdbarch_iterate_over_objfiles_in_search_order. Call
170 windows_init_abi instead.
171 * windows-tdep.c: Include "solib.h" and "solib-target.h".
172 (windows_init_abi): New function.
173 (windows_iterate_over_objfiles_in_search_order): Make it
175 * windows-tdep.h (windows_init_abi): Declare.
176 (windows_iterate_over_objfiles_in_search_order): Remove
182 * system-gdbinit/elinos.py (get_elinos_environment): Return an
183 incomplete dictionnary instead of None in case of missing
184 environment variables.
185 (elinos_init): in case of an incomplete environment, best
186 effort to load system libraries instead of abort.
190 * ada-lang.c (ada_has_this_exception_support): Ignore
191 mst_solib_trampoline minimal symbols.
195 * i386-darwin-nat.c (darwin_complete_target): Install methods for
197 (i386_darwin_dr_set): Support 32 and 64 bit states.
198 (i386_darwin_dr_get): Likewise.
199 (i386_darwin_dr_set_control): Make static.
200 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
201 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
205 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
206 Replace TIDGET with ptid_get_lwp.
207 Replace GET_LWP with ptid_get_lwp.
208 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
209 Replace BUILD_THREAD with ptid_build.
210 Replace BUILD_LWP with ptid_build.
211 Replace PIDGET with ptid_get_pid.
212 Replace TIDGET with ptid_get_lwp.
213 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
214 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
215 Replace TIDGET with ptid_get_lwp.
216 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
217 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
218 Replace TIDGET with ptid_get_lwp.
219 Replace GET_LWP with ptid_get_lwp.
220 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
222 * breakpoint.c: Likewise.
223 * common/ptid.c (ptid_is_pid): Condense check for
224 null_ptid and minus_one_ptid.
225 (ptid_lwp_p): New function.
226 (ptid_tid_p): New function.
227 * common/ptid.h: Update comments for accessors.
228 (ptid_lwp_p): New prototype.
229 (ptid_tid_p): New prototype.
230 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
231 * gcore.c: Replace PIDGET with ptid_get_pid.
232 * gdbthread.h: Likewise.
233 * gnu-nat.c: Likewise.
234 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
235 Replace TIDGET with ptid_get_lwp.
236 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
237 * hppanbsd-nat.c: Likewise.
238 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
239 Replace TIDGET with ptid_get_lwp.
240 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
241 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
242 * infcmd.c: Likewise.
243 * inferior.h: Likewise.
244 * inflow.c: Likewise.
245 * infrun.c: Likewise.
246 * linux-fork.c: Likewise.
247 * linux-nat.c: Replace PIDGET with ptid_get_pid.
248 Replace GET_PID with ptid_get_pid.
249 Replace is_lwp with ptid_lwp_p.
250 Replace GET_LWP with ptid_get_lwp.
251 Replace BUILD_LWP with ptid_build.
255 * common/linux-btrace.c: Move sys/syscall.h out of the
256 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
257 Also check for SYS_perf_event_open before attempting to buid.
261 * dwarf2read.c (dwarf2_section_info): Add comment.
262 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
264 (dwarf2_section_empty_p): Rename arg from "info" to "section".
265 (dwarf2_read_section): Delete unused local "header". Add section
266 name to error message.
267 (create_dwo_in_dwp): Tweak comment.
268 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
270 * dwarf2read.c (die_reader_specs): Tweak comment.
271 (get_section_bfd_owner, get_section_bfd_section): New functions.
272 (get_section_name, get_section_file_name): New functions.
273 (get_section_id, get_section_flags): New functions.
274 (*): Use new functions to access section fields.
276 * dwarf2read.c (struct dwo_file): Add/tweak comments.
277 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
278 arg "htab". All callers updated.
279 (create_debug_types_hash_table): Remove redundant copy of
281 (create_dwo_in_dwp): Tweak comments.
282 (read_str_index): Tweak comment. Record dwarf form name in static
287 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
288 (remote_filename_p): Add comment.
289 * remote.c (remote_filename_p): Adjust to use
290 REMOTE_SYSROOT_PREFIX.
291 * solib.c (solib_find): When deciding whether we need to add a
292 directory separator, check whether the sysroot is "remote:"
293 instead of checking whether the patch has a drive spec. Add
298 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
300 (remote_parse_stop_reply): Adjust, setting event->ws.kind
305 Fix set debug frame output.
306 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
307 SENTINEL_FRAME entry lower to match enum frame_type order.
311 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
312 AMD64_R15_REGNUM when a register index is expected.
313 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
315 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
316 (amd64_push_arguments): Substitute in integer_regnum array.
320 * objfiles.c (allocate_objfile): Move comment to better place.
322 New option "set debug symfile on".
323 * NEWS: Mention "set debug symfile".
324 * Makefile.in (SFILES): Add symfile-debug.c.
325 (COMMON_OBS): Add symfile-debug.o.
326 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
327 objfile's symbol functions.
328 * objfiles.h (objfile_set_sym_fns): Declare.
329 * symfile-debug.c: New file.
330 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
331 objfile's symbol functions.
332 (reread_symbols): Ditto.
334 * symfile.h (struct sym_fns): Delete member "sym_flavour".
336 (add_symtab_fns): Update prototype.
337 * symfile.c (sym_fns_ptr): Delete. Replace with ...
338 (registered_sym_fns): ... this.
339 (symtab_fns): Update.
340 (add_symtab_fns): New arg "flavour". All callers updated.
341 (find_sym_fns): Rewrite to use new sym_fns registry.
343 * symfile.h (struct sym_fns): Add "objfile" argument to
344 sym_read_linetable. All uses updated.
346 * symtab.c (domain_name, search_domain_name): New functions.
347 * symtab.h (domain_name, search_domain_name): Declare.
349 * symfile.h (struct quick_symbol_functions): Reorg arg list of
350 map_matching_symbols so objfile is first. All uses updated.
351 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
352 * psymtab.c (map_matching_symbols_psymtab): Update signature.
357 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
362 * objfiles.c (free_objfile): Move comment.
366 * ada-exp.y (string_to_operator): Delete.
367 (dummy_string_to_ada_operator): Delete.
372 * i386-tdep.h (enum amd64_reg_class): New, moved here from
374 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
375 call_dummy_integer_regs, and classify.
376 * amd64-tdep.h (amd64_classify): Add declaration.
377 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
378 (amd64_reg_class): Delete, moved to i386-tdep.h.
379 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
380 Replace call to amd64_classify by call to tdep->classify.
381 (amd64_push_arguments): Get the list of registers to use for
382 passing integer parameters from the gdbarch tdep structure,
383 rather than using a hardcoded one. Replace calls to amd64_classify
384 by calls to tdep->classify.
385 (amd64_push_dummy_call): Get the register number used for
386 the "hidden" argument from tdep->call_dummy_integer_regs.
387 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
388 and tdep->call_dummy_integer_regs. Set tdep->classify.
393 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
394 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
395 where tdep->memory_args_by_pointer is non-zero.
400 * i386-tdep.h (struct gdbarch_tdep): Add new field
401 integer_param_regs_saved_in_caller_frame.
402 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
403 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
407 * amd64-windows-tdep.c: #include "value.h"
408 (amd64_windows_classify): Delete.
409 (amd64_windows_passed_by_integer_register)
410 (amd64_windows_passed_by_xmm_register)
411 (amd64_windows_passed_by_pointer)
412 (amd64_windows_adjust_args_passed_by_pointer)
413 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
414 (amd64_windows_push_dummy_call): New functions.
415 (amd64_windows_init_abi): Remove setting of
416 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
417 tdep->classify, tdep->memory_args_by_pointer and
418 tdep->integer_param_regs_saved_in_caller_frame.
419 Add call to set_gdbarch_push_dummy_call.
423 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
424 objfile->original_name.
428 Pass down original filename for objfile.
429 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
430 * elfread.c (elf_symfile_read): Likewise.
431 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
432 longer set ORIGINAL_NAME.
433 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
434 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
435 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
436 symbol_file_add_from_bfd call.
437 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
438 (macho_check_dsym): Add parameter filenamep. Change function comment.
440 (macho_symfile_read): New variable dsym_filename. Update
441 macho_check_dsym call. Use it for symbol_file_add_separate.
442 * objfiles.c (allocate_objfile): Add parameter name. New comment for
443 it. Use it for objfile->original_name.
444 (objfile_name): Return OBFD's filename, if available.
445 * objfiles.h (allocate_objfile): Add new parameter name.
446 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
447 * symfile-mem.c (symbol_file_add_from_memory): Update
448 symbol_file_add_from_bfd call.
449 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
451 (symbol_file_add_with_addrs): New parameter name, add function comment
452 for it. Remove variable name. Update allocate_objfile call.
453 (symbol_file_add_separate): New parameter name, add function comment
454 for it. Update symbol_file_add_with_addrs call.
455 (symbol_file_add_from_bfd): New parameter name. Update
456 symbol_file_add_with_addrs call.
457 (symbol_file_add): Update symbol_file_add_from_bfd call.
458 (reread_symbols): New variable original_name. Save
459 objfile->original_name by it.
460 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
465 Code cleanup: Add objfile_name accessor function.
466 * ada-lang.c (is_known_support_routine): Use objfile_name.
467 * auto-load.c (source_gdb_script_for_objfile)
468 (auto_load_objfile_script): Likewise.
469 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
470 * dbxread.c (dbx_symfile_read): Likewise.
471 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
472 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
473 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
474 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
475 (lookup_dwp_signatured_type, lookup_dwo_unit)
476 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
477 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
478 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
479 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
480 (dwarf2_record_block_ranges, read_common_block, read_typedef)
481 (read_subrange_type, load_partial_dies, read_partial_die)
482 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
483 (die_containing_type, build_error_marker_type, lookup_die_type)
484 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
485 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
486 (get_DW_AT_signature_type, write_psymtabs_to_index)
487 (save_gdb_index_command): Likewise.
488 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
490 * expprint.c (dump_subexp_body_standard): Likewise.
491 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
492 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
494 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
495 obj_name, use objfile_name for it, use the variable.
496 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
498 * machoread.c (macho_symtab_read, macho_check_dsym)
499 (macho_symfile_relocate): Likewise.
500 * maint.c (maintenance_translate_address): Likewise.
501 * minidebug.c (find_separate_debug_file_in_section): Likewise.
502 * minsyms.c (install_minimal_symbols): Likewise.
503 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
505 (filter_overlapping_sections): Use objfile_name.
506 (objfile_name): New function.
507 * objfiles.h (struct objfile): Rename field name to original_name.
508 (objfile_name): New prototype.
509 * printcmd.c (sym_info, address_info): Use objfile_name.
510 * probe.c (parse_probes, collect_probes, compare_probes)
511 (info_probes_for_ops): Likewise.
512 * progspace.c (clone_program_space): Likewise.
513 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
514 (maintenance_info_psymtabs): Likewise.
515 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
516 (source_section_scripts): Likewise.
517 * python/py-objfile.c (objfpy_get_filename): Likewise.
518 * python/py-progspace.c (pspy_get_filename): Likewise.
519 * solib-aix.c (solib_aix_get_toc_value): Likewise.
520 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
521 * solib.c (solib_read_symbols): Likewise.
522 * stabsread.c (scan_file_globals): Likewise.
523 * stap-probe.c (handle_stap_probe): Likewise.
524 * symfile.c (symbol_file_clear, separate_debug_file_exists)
525 (find_separate_debug_file_by_debuglink): Likewise.
526 (reread_symbols): Likewise. Use the objfile field name renamed to
528 (allocate_symtab): Use objfile_name.
529 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
530 (dump_objfile, dump_msymbols, dump_symtab_1)
531 (maintenance_print_msymbols, maintenance_print_objfiles)
532 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
533 * target.c (target_translate_tls_address, target_info): Likewise.
534 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
540 * probe.c (parse_probes): Rename variable objfile_name to
545 Remove solib-sunos.c.
546 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
547 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
548 * objfiles.c (rt_common_objfile): Remove.
549 (free_objfile): Remove rt_common_objfile comparison.
550 * objfiles.h (rt_common_objfile): Remove.
551 * solib-sunos.c: Remove.
552 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
556 Remove a.out NetBSD and OpenBSD hosts.
557 * NEWS (Removed native configurations): New.
558 * config/arm/nbsdaout.mh: Remove.
559 * config/i386/nbsdaout.mh: Remove.
560 * config/i386/obsdaout.mh: Remove.
561 * config/m68k/nbsdaout.mh: Remove.
562 * config/sparc/nbsdaout.mh: Remove.
563 * config/vax/nbsdaout.mh: Remove.
564 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
565 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
566 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
568 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
569 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
570 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
574 * linespec.c (struct minsym_and_objfile): Remove.
575 (minsym_and_objfile_d): Remove.
576 (struct linespec, struct collect_info, linespec_parse_basic)
577 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
578 (compare_msymbols, find_method, find_function_symbols)
579 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
580 (add_minsym, search_minsyms_for_name): Update.
584 * regcache.c: Add include of valprint.h.
585 (dump_endian_bytes): Delete.
586 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
590 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
594 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
601 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
602 Take a gdb_byte pointer instead of a char pointer.
604 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
605 gnu_xfer_partial helper.
606 (gnu_xfer_partial): New function.
607 (gnu_target): Don't install a deprecated_xfer_memory hook.
608 Install a to_xfer_partial hook.
613 * main.c (captured_main): Replace catch_command_errors by
614 catch_command_errors_const. Twice.
615 * symfile.c (symbol_file_add_main_1): Make args parameter const.
616 (symbol_file_add): Make name parameter const.
617 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
618 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
619 variable name. Change their usage accordingly.
620 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
622 (symbol_file_add_main): Make args parameter const.
627 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
629 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
634 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
635 (gnu_create_inferior)
636 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
637 (set_sig_thread_cmd): Use the lwpid field of ptids to
638 store/extract thread ids instead of the tid field.
639 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
643 * infcmd.c (default_print_one_register_info): Add detection of
644 optimized out values.
645 (default_print_registers_info): Switch to using
646 get_frame_register_value.
650 * infrun.c (handle_inferior_event): Check if we know the
651 function start address before setting a resume breakpoint.
655 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
656 minus_one_ptid instead of looking at the ptid's tid field and
657 comparing that to -1.
661 * main.h (get_gdb_program_name): Remove extra whitespace.
665 * main.h (get_gdb_program_name): Add declaration.
666 * main.c (get_gdb_program_name): Add definition.
670 * dwarf2read.c: Move definitions of complaint functions to after
671 forward declarations of local functions.
677 * breakpoint.c (remove_threaded_breakpoints): New function.
678 (_initialize_breakpoint): Attach remove_threaded_breakpoints
679 as thread_exit observer.
684 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
685 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
686 * corelow.c (core_open):
687 * frame.h (print_stack_frame, print_frame_info): New
688 'set_current_sal' parameter.
689 * infcmd.c (finish_command, kill_command): Adjust call to
691 * inferior.c (inferior_command): Likewise.
692 * infrun.c (normal_stop): Likewise.
693 * linux-fork.c (linux_fork_context): Likewise.
694 * record-full.c (record_full_goto_entry, record_full_restore):
696 * remote-mips.c (common_open): Likewise.
697 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
699 (print_frame_info): New 'set_current_sal' parameter. Set the last
700 displayed sal depending on the new paremeter instead of looking at
702 (backtrace_command_1, select_and_print_frame, frame_command)
703 (current_frame_command, up_command, down_command): Adjust call to
705 * thread.c (print_thread_info, restore_selected_frame)
706 (do_captured_thread_select): Adjust call to print_stack_frame.
707 * tracepoint.c (tfind_1): Likewise.
708 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
709 (mi_cmd_stack_info_frame): Likewise.
710 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
711 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
715 * value.c (isvoid_internal_fn): Replace "parameter" with
720 * README: Update references to writing code for GDB.
721 * configure.ac (build_warnings): Remove obsolete comment.
722 * configure: Regenerate.
723 * gdbarch.sh: Remove references to gdbint.texinfo.
724 * gdbarch.h: Regenerate.
725 * gdbtypes.c (objfile_type): Remove comments referencing internals
730 * NEWS: Mention new convenience function $_isvoid.
731 * value.c (isvoid_internal_fn): New function.
732 (_initialize_values): Add new convenience function $_isvoid.
736 * arm-linux-tdep.c: Add "elf/common.h" header.
737 Remove AT_HWCAP macro definintion as it is provided in
739 * s390-tdep.c: Remove system header <elf.h>
740 Add "elf/common.h" header for AT_HWCAP definition.
741 (s390_core_read_description): Use correct CORE_ADDR
742 for hwcap local variable used as third parameter
743 of function target_auxv_search.
749 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
750 mode if operating system doesn't know O_CLOEXEC.
755 * symfile.c (reread_symbols): Move variable obfd_filename to a more
760 * NEWS: Mention TDB support.
761 * features/s390-tdb.xml: New file.
762 * features/s390-te-linux64.xml: New file.
763 * features/s390x-te-linux64.xml: New file.
764 * features/Makefile (WHICH): Add new tdescs above.
765 (s390-te-linux64-expedite): Set.
766 (s390x-te-linux64-expedite): Set.
767 * features/s390-te-linux64.c: New file (generated).
768 * features/s390x-te-linux64.c: New file (generated).
769 * regformats/s390-te-linux64.dat: New file (generated).
770 * regformats/s390x-te-linux64.dat: New file (generated).
771 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
772 (HWCAP_S390_TE): Likewise.
773 (S390_TDB_DWORD0_REGNUM): Likewise.
774 (S390_TDB_DWORD0_REGNUM): Likewise.
775 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
776 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
777 (S390_TDB_ATIA_REGNUM): Likewise.
778 (S390_TDB_R0_REGNUM): Likewise.
779 (S390_TDB_R1_REGNUM): Likewise.
780 (S390_TDB_R2_REGNUM): Likewise.
781 (S390_TDB_R3_REGNUM): Likewise.
782 (S390_TDB_R4_REGNUM): Likewise.
783 (S390_TDB_R5_REGNUM): Likewise.
784 (S390_TDB_R6_REGNUM): Likewise.
785 (S390_TDB_R7_REGNUM): Likewise.
786 (S390_TDB_R8_REGNUM): Likewise.
787 (S390_TDB_R9_REGNUM): Likewise.
788 (S390_TDB_R10_REGNUM): Likewise.
789 (S390_TDB_R11_REGNUM): Likewise.
790 (S390_TDB_R12_REGNUM): Likewise.
791 (S390_TDB_R13_REGNUM): Likewise.
792 (S390_TDB_R14_REGNUM): Likewise.
793 (S390_TDB_R15_REGNUM): Likewise.
794 (S390_NUM_REGS): Increase.
795 (S390_IS_TDBREGSET_REGNUM): New macro.
796 (s390_regmap_tdb): Declare.
797 (s390_sizeof_tdbregset): Define.
798 (tdesc_s390_te_linux64): Declare.
799 (tdesc_s390x_te_linux64): Likewise.
800 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
801 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
802 (s390_regmap_tdb): New regmap.
803 (s390_supply_tdb_regset): New function.
804 (s390_tdb_regset): New regset.
805 (s390_linux64v2_regset_sections): Add TDB regset to list.
806 (s390x_linux64v2_regset_sections): Likewise.
807 (s390_regset_from_core_section): Recognize TDB core note section.
808 (s390_core_read_description): If HWCAP indicates TE support,
809 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
810 (s390_gdbarch_init): Handle TDB regset.
811 (_initialize_s390_tdep): Initialize new tdescs.
812 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
813 (have_regset_tdb): New variable.
814 (s390_native_supply): Support register invalidation.
815 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
816 (check_regset): Treat ENODATA as "regset exists".
817 (s390_linux_fetch_inferior_registers): Add TDB.
818 (s390_read_description): Check for TDB existence and select
820 * gdbserver/Makefile.in (clean): Add removal of new makefile
822 (s390-te-linux64.c): New makefile target.
823 (s390x-te-linux64.c): Likewise.
824 * gdbserver/configure.srv (srv_regobj): Append new objects
825 s390-te-linux64.o and s390x-te-linux64.o.
826 (srv_xmlfiles): Append new files s390-te-linux64.xml,
827 s390x-te-linux64.xml, and s390-tdb.xml.
828 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
830 (tdesc_s390_te_linux64): Likewise.
831 (init_registers_s390x_te_linux64): Likewise.
832 (tdesc_s390x_te_linux64): Likewise.
833 (s390_check_regset): Treat ENODATA as "regset exists".
834 (s390_arch_setup): Add TDB regset support.
835 (initialize_low_arch): Initialize registers for new tdescs.
839 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
840 (S390_IS_FPREGSET_REGNUM): New macro.
841 * s390-tdep.c (s390_dwarf_regmap): Make const.
842 (regnum_is_gpr_full): New function for replacing repeated code.
843 (s390_pseudo_register_name): Use it.
844 (s390_pseudo_register_type): Likewise.
845 (s390_pseudo_register_read): Likewise.
846 (s390_pseudo_register_write): Likewise.
847 (s390_unwind_pseudo_register): Likewise.
848 (s390_regmap_gregset): New format for regmap.
849 (s390x_regmap_gregset): Likewise.
850 (s390_regmap_fpregset): Likewise.
851 (s390_regmap_upper): Likewise.
852 (s390_regmap_last_break): Likewise.
853 (s390_regmap_system_call): Likewise.
854 (s390_supply_regset): Adjust to new regmap format.
855 (s390_collect_regset): Likewise.
856 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
857 (s390_native_collect): Likewise.
858 (supply_gregset): Likewise.
859 (fill_gregset): Likewise.
860 (supply_fpregset): Likewise.
861 (fill_fpregset): Likewise.
862 (fetch_regset): Likewise.
863 (store_regset): Likewise.
864 (s390_linux_fetch_inferior_registers): Likewise.
865 (s390_linux_fetch_inferior_registers): Likewise.
869 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
873 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
877 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
881 * remote-sim.c (dump_mem, gdbsim_fetch_register)
882 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
883 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
884 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
885 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
890 * remote-sim.c (dump_mem): Constify buf parameter.
891 gdbsim_xfer_inferior_memory): Rename to ...
892 (gdbsim_xfer_memory): ... this. Adjust interface as
893 target_xfer_partial helper.
894 (gdbsim_xfer_partial): New function.
895 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
896 Install a to_xfer_partial hook. Send output to gdb_stdlog.
900 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
901 host_address_to_string, and send debug output to gdb_stdlog.
905 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
906 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
907 gdb_target_obs for cris target.
908 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
909 (cris_gdbarch_init): Move calls to
910 set_gdbarch_fetch_tls_load_module_address and
911 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
912 Add call to gdbarch_init_osabi.
913 * cris-linux-tdep.c: New file.
914 * cris-tdep.h: New file.
918 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
919 to deprecated_init_ui_hook.
923 * cli/cli-interp.c (_initialize_cli_interp): Add a
924 command_loop_proc to interp_procs.
925 * event-top.c (cli_command_loop): Change signature to match
926 interp_command_loop_ftype.
927 * event-top.h (cli_command_loop): Same.
928 * interps.c (interp_new): Require every interpreter to have a
930 (current_interp_command_loop): Just call the command_loop_proc on
931 the current interpreter.
932 * tui/tui-interp.c (_initialize_tui_interp): Add a
933 command_loop_proc to interp_procs.
937 * cris-tdep.c (cris_gdbarch_init): Add call to
938 get_gdbarch_fetch_tls_load_module_address.
942 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
943 (cris_elf_gregset_t): Rename from elf_gregset_t.
944 (crisv32_elf_gregset_t): Adjust.
945 (cris_supply_gregset, fetch_core_registers): Adjust.
949 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
953 * defs.h (deprecated_command_loop_hook): Remove, including
954 references in comments.
955 * interps.c (current_interp_command_loop): No longer use
956 deprecated_command_loop_hook.
957 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
959 * top.c (deprecated_command_loop_hook): Remove.
963 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
964 local is now int instead of ULONGEST. Print it with %d
969 * MAINTAINERS: Remove avr maintainership.
973 * findvar.c (value_of_register): Rework in terms of
974 value_of_register_lazy.
978 * symfile.c (add_symbol_file_command): Remove trailing
979 whitespaces and blank line after comment.
983 * tui/tui-regs.c (tui_register_format): Don't look at the
984 register's name here. Return string representing register
985 value instead of storing it in the data element.
986 (tui_get_register): Compare register string representations
987 instead of register value states and contents.
992 * tui/tui-regs.c (tui_show_registers): Show registers of the
993 selected frame, not the current frame.
997 * MAINTAINERS (Write After Approval): Add myself to the list.
1001 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1002 (queue_and_load_dwo_tu): New function.
1003 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1004 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1005 Make dependent_cu optional.
1006 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1007 and an older .gdb_index is in use, queue and load all its TUs too.
1011 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1012 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1013 variable search_flags.
1014 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1015 (OPF_RETURN_REALPATH): ... here.
1016 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1017 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1019 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1021 * solib.c (solib_find): Likewise. Four times.
1022 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1023 in the function comment and for the realpath_fptr variable.
1024 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1025 (find_and_open_source): Likewise. Twice.
1026 * symfile.c (symfile_bfd_open): Likewise, also twice.
1030 * progspace.c (save_current_space_and_thread): Remove unnecessary
1031 call to save_current_inferior.
1035 * sh64-tdep.c (sh64_do_register): Return after printing message
1036 about unavailable register contents.
1041 * symfile.c (add_symbol_file_command): Error out on unknown
1042 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1043 options and collapse into single conditional branch.
1047 * inf-child.c (inf_child_follow_fork): New parameter
1049 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1050 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1051 * inferior.h (detach_fork): Remove.
1052 * infrun.c (detach_fork): Adjust comment and make it
1054 (follow_fork): Pass detach_fork parameter to
1056 * linux-nat.c (linux_child_follow_fork): New parameter
1058 * target.c (target_follow_fork): New parameter detach_fork.
1059 Pass detach_fork as parameter and print its value.
1060 * target.h (struct target_ops) <to_follow_fork>: New int
1062 (target_follow_fork): New parameter detach_fork.
1066 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1067 Replace sec->bfd by sec->the_bfd_section->owner.
1071 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1072 from linux_has_shared_address_space.
1073 (linux_has_shared_address_space): Call linux_is_uclinux.
1074 * linux-tdep.h (linux_is_uclinux): Declare.
1075 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1080 * config/djgpp/fnchange.lst: Remove entry of
1081 i386-interix-nat.c and i386-interix-tdep.c.
1082 * configure.ac: Remove '*-*-interix*'.
1083 * configure: Re-generated.
1084 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1085 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1087 * osabi.c (gdb_osabi_names): Remove "Interix".
1091 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1095 * record.h (record_print_flag) <record_print_src_line,
1096 record_print_insn_range>: Rename into ...
1097 (record_print_flag) <record_print_src_line,
1098 record_print_insn_range>: ... this. Update all users.
1102 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1107 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1108 by use of plongest function.
1112 * NEWS: Add entry mentioning support for native Windows x64
1115 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1116 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1117 (struct amd64_windows_frame_cache): New struct.
1118 (amd64_windows_w2gdb_regnum): New global.
1119 (pc_in_range, amd64_windows_frame_decode_epilogue)
1120 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1121 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1122 (amd64_windows_frame_this_id): New functions.
1123 (amd64_windows_frame_unwind): New static global.
1124 (amd64_windows_skip_prologue): New function.
1125 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1126 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1127 with amd64_windows_skip_prologue.
1135 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1140 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1145 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1146 Adjust arguments to print_stack_frame.
1150 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1154 * frame.h (show_and_print_stack_frame): Delete declaration.
1160 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1161 (archpy_name): Check for valid architecture.
1162 (archpy_disassemble): Ditto.
1166 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1167 instead of "long long" in call to ptrace64.
1171 * mi/mi-interp.c (mi_command_loop): Change signature to match
1172 interp_command_loop_ftype.
1173 (mi1_command_loop): Remove.
1174 (mi2_command_loop): Remove.
1175 (mi3_command_loop): Remove.
1176 (mi_interpreter_resume): Remove setting of
1177 deprecated_command_loop_hook.
1178 (_initialize_mi_interp): Set mi_command_loop as the command loop
1183 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1188 * value.c (allocate_value_contents): Make static.
1189 * value.h (allocate_value_contents): Remove prototype.
1193 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1194 of assembling value via allocate_value_lazy and attribute setter.
1195 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1196 assembling value via allocate_value_lazy and attribute setter.
1197 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1198 assembling value via allocate_value_lazy and attribute setter.
1202 * value.c (value_from_contents_and_address): Replace allocate_value and
1203 memcpy with value_from_contents.
1207 * python/py-framefilter.c (py_print_frame): Remove usage of
1208 PyString_AsString. Use python_string_to_host_string instead.
1209 Refactor function to work with a string as a new allocation
1210 instead of a pointer.
1211 (py_print_frame): Ditto.
1212 * python/lib/gdb/frames.py (return_list): Cain iterators together
1213 instead of adding them as a list.
1214 (_sort_list): Call return_list, and remove duplicate code.
1215 (execute_frame_filters): Convert iterator to a list with list().
1216 * python/lib/gdb/command/frame_filters.py
1217 (SetFrameFilterPriority._set_filter_priority): Convert priority
1218 attribute to an integer.
1219 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1220 wrapper function __next__.
1221 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1227 * python/py-framefilter.c (apply_frame_filter): Check
1228 gdb_python_initialized. Exit if the Python frame-filter code
1229 cannot be initialized.
1234 * top.c (print_gdb_version): Remove erroneous newline after help
1239 * varobj.c (install_dynamic_child): Remove trailing space.
1240 Add one blank line after variable declaration.
1245 * corefile.c (get_exec_file): Use exec_filename.
1246 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1247 * exec.c (exec_close): Free EXEC_FILENAME.
1248 (exec_file_attach): New variable canonical_pathname. Use
1249 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1251 * exec.h (exec_filename): New.
1252 * inferior.c (print_inferior, inferior_command): Use
1253 PSPACE_EXEC_FILENAME.
1254 * mi/mi-main.c (print_one_inferior): Likewise.
1255 * progspace.c (clone_program_space, print_program_space): Likewise.
1256 * progspace.h (struct program_space): New field pspace_exec_filename.
1257 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1258 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1262 * common/linux-ptrace.c: Include stdint.h unconditionally.
1267 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1272 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1273 instead of stdio_fileopen.
1274 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1275 .Call stderr_fileopen instead of stdio_fileopen.
1276 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1277 [__MINGW32__] (stderr_file_fputs): New function.
1278 (stderr_fileopen): New function.
1279 * ui-file.h (stderr_fileopen): Declare.
1283 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1284 (struct dwarf2_per_cu_data): Ditto.
1285 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1286 (process_imported_unit_die): Ditto.
1287 (follow_die_sig_1): Simplify assert.
1291 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1292 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1293 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1294 windows_xfer_memory directly.
1295 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1299 * darwin-nat.c (darwin_xfer_memory): Delete.
1300 (_initialize_darwin_inferior): Don't install a
1301 deprecated_xfer_memory method.
1306 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1307 (parse_no_frames_option): Remove.
1308 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1309 (mi_cmd_stack_list_args): Adjust.
1310 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1311 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1312 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1314 (list_args_or_locals): New parameter 'skip_unavailable'.
1316 * valprint.c (scalar_type_p): Rename to ...
1317 (val_print_scalar_type_p): ... this. Make extern.
1318 (val_print, value_check_printable): Adjust.
1319 * valprint.h (val_print_scalar_type_p): Declare.
1320 * value.c (value_entirely_unavailable): New function.
1321 * value.h (value_entirely_unavailable): Declare.
1323 * NEWS: Mention the new option "--skip-unavailable" to MI
1324 commands '-stack-list-locals', '-stack-list-arguments' and
1325 '-stack-list-variables'.
1329 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1330 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1332 * mi/mi-getopt.c (mi_getopt): Remove.
1333 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1335 (mi_getopt): Call mi_getopt_1.
1336 (mi_getopt_silent): New.
1337 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1342 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1343 .gdb_index is in use.
1344 * symfile.c (reread_symbols): Reset objfile->sf.
1346 * NEWS: Document "mt print objfiles" now takes optional regexp.
1347 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1348 regexp of objfiles to print.
1349 (_initialize_symmisc): Update doc string for "mt print objfiles".
1351 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1352 missing debug info checks.
1357 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1358 line tables generated by XLC compiled binaries.
1362 * symmisc.c (dump_symtab): Delete prototype.
1363 (dump_msymbols, dump_objfile): Ditto.
1364 (maintenance_info_symtabs): Mark as dont_repeat.
1365 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1367 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1368 debugging printf to better location.
1372 * target.c (target_read_live_memory): Change type of 'ret' local
1377 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1378 (remote_read_bytes): Change return type to LONGEST, and adjust to
1379 return a target_xfer_error on error.
1380 (remote_xfer_memory): Delete.
1381 (remote_flash_write): Change type of 'ret' local to LONGEST.
1382 (remote_xfer_partial, remote_xfer_partial): Adjust.
1383 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1387 ARI fix: Push # directives to start of line.
1388 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1393 * breakpoint.c (enable_command, disable_command): Iterate over
1394 all specified breakpoint locations.
1398 * common/linux-ptrace.c (linux_fork_to_function): Push #
1399 directives to the start of the line.
1400 (linux_check_ptrace_features): Fix warning message to use
1405 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1406 nat/linux-waitpid.h.
1407 (linux-waitpid.o): New object file rule.
1408 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1409 (current_ptrace_options): Moved from linux-nat.c.
1410 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1412 (linux_fork_to_function): New function.
1413 (linux_grandchild_function): Likewise.
1414 (linux_child_function): Likewise.
1415 (linux_check_ptrace_features): New function, heavily
1416 based on linux-nat.c:linux_test_for_tracefork.
1417 (linux_enable_event_reporting): New function.
1418 (ptrace_supports_feature): Likewise.
1419 (linux_supports_tracefork): Likewise.
1420 (linux_supports_traceclone): Likewise.
1421 (linux_supports_tracevforkdone): Likewise.
1422 (linux_supports_tracesysgood): Likewise.
1423 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1424 gdbserver/linux-low.c.
1425 (linux_enable_event_reporting): New declaration.
1426 (linux_supports_tracefork): Likewise.
1427 (linux_supports_traceclone): Likewise.
1428 (linux_supports_tracevforkdone): Likewise.
1429 (linux_supports_tracesysgood): Likewise.
1430 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1431 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1432 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1433 * config/arm/linux.mh (NATDEPFILES): Likewise.
1434 * config/i386/linux.mh (NATDEPFILES): Likewise.
1435 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1436 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1437 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1438 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1439 * config/mips/linux.mh (NATDEPFILES): Likewise.
1440 * config/pa/linux.mh (NATDEPFILES): Likewise..
1441 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1442 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1443 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1444 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1445 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1446 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1447 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1448 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1449 ptrace's 4th argument's types.
1450 Check the type of PTRACE_TYPE_ARG4.
1451 * configure: Regenerate.
1452 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1453 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1454 (linux_supports_tracefork_flag): Remove.
1455 (linux_supports_tracesysgood_flag): Likewise.
1456 (linux_supports_tracevforkdone_flag): Likewise.
1457 (current_ptrace_options): Moved to
1458 common/linux-ptrace.c.
1459 (linux_tracefork_child): Remove.
1460 (my_waitpid): Remove.
1461 (linux_test_for_tracefork): Renamed to
1462 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1463 (linux_test_for_tracesysgood): Remove.
1464 (linux_supports_tracesysgood): Remove.
1465 (linux_supports_tracefork): Remove.
1466 (linux_supports_tracevforkdone): Remove.
1467 (linux_enable_tracesysgood): Remove.
1468 (linux_enable_event_reporting): Remove.
1469 (linux_init_ptrace): New function.
1470 (linux_child_post_attach): Call linux_init_ptrace.
1471 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1472 (linux_child_follow_fork): Call linux_supports_tracefork
1473 and linux_supports_tracevforkdone.
1474 (linux_child_insert_fork_catchpoint): Call
1475 linux_supports_tracefork.
1476 (linux_child_insert_vfork_catchpoint): Likewise.
1477 (linux_child_set_syscall_catchpoint): Call
1478 linux_supports_tracesysgood.
1479 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1480 * nat/linux-nat.h: New file.
1481 * nat/linux-waitpid.c: New file.
1482 * nat/linux-waitpid.h: New file.
1486 ARM Linux support for `catch syscall'.
1487 * syscalls/arm-linux.py: New file.
1488 * syscalls/arm-linux.xml: Likewise.
1489 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1490 (arm_linux_init_abi): Register the new function and syscall xml file.
1491 * data-directory/Makefile.in: Install the new syscall xml file.
1492 * NEWS: Brag about this.
1497 * corefile.c (target_xfer_memory_error): New function.
1498 (memory_error): Defer EIO to target_memory_error.
1499 (read_memory): Use target_xfer_partial, and handle finer-grained
1501 * target.c (target_xfer_error_to_string): New function.
1502 (memory_xfer_partial_1): If memory is known to be
1503 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1504 (target_xfer_partial): Make extern.
1505 * target.h (enum target_xfer_error): New enum.
1506 (target_xfer_error_to_string): Declare function.
1507 (target_xfer_partial): Declare function.
1508 (struct target_ops) <xfer_partial>: Adjust describing comment.
1512 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1513 * configure.tgt: Likewise as targets.
1517 * buildsym.c (subfile_stack): Move here from buildsym.h.
1518 (pending_macros): Ditto.
1519 (get_macro_table): New function.
1520 (buildsym_init): Initialize subfile_stack.
1521 * coffread.c (type_vector,type_vector_length): Moved here from
1523 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1524 (coff_symtab_read): Use it.
1525 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1526 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1527 with call to get_macro_table.
1528 * stabsread.c (type_vector,type_vector_length): Moved here from
1530 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1531 * buildsym.h (get_macro_table): Declare.
1535 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1537 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1541 * blockframe.c: Remove #include "psymtab.h".
1542 * cp-support.c: Ditto.
1549 * exceptions.h (return_mask): Now an enum.
1550 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1555 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1557 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1558 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1559 * jit.c (jit_object_close_impl): Update.
1560 * jv-lang.c (get_dynamics_objfile): Update.
1561 * linespec.c (add_minsym): Use get_dynamics_objfile.
1562 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1563 (allocate_objfile): Don't initialize 'gdbarch' field.
1564 (get_objfile_arch): Update.
1565 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1567 (struct objfile) <gdbarch>: ... here. Remove.
1568 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1570 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1574 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1575 for IBM long double nan and inf.
1576 (floatformat_is_negative, floatformat_classify,
1577 floatformat_mantissa): Similarly.
1578 (floatformat_ieee_single, floatformat_ieee_double,
1579 floatformat_ieee_quad, floatformat_arm_ext,
1580 floatformat_ia64_spill): Delete unused vars.
1581 (_initialize_doublest): Delete unused function.
1582 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1583 little-endian variants of floatformat_ibm_long_double.
1587 * Makefile.in (SFILES): Remove common/target-common.c and
1588 add target/waitstatus.c.
1589 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1590 target/resume.h, target/wait.h and target/waitstatus.h.
1591 (COMMON_OBS): Remove target-common.o and add
1593 (target-common.o): Remove.
1594 (waitstatus.o): New target object file.
1595 * common/target-common.c: Move contents to
1596 target/waitstatus.c and remove.
1597 * common/target-common.h: Move contents to other files and
1599 (enum resume_kind: Move to target/resume.h.
1600 (TARGET_WNOHANG): Move to target/wait.h.
1601 (enum target_waitkind): Move to target/waitstatus.h.
1602 (struct target_waitstatus): Likewise.
1603 * target.h: Do not include target-common.h and
1604 include target/resume.h, target/wait.h and
1605 target/waitstatus.h.
1606 * target/resume.h: New file.
1607 * target/wait.h: New file.
1608 * target/waitstatus.h: New file.
1609 * target/waitstatus.c: New file.
1613 * linux-nat.c (linux_test_for_tracefork)
1614 (linux_test_for_tracesysgood, linux_child_follow_fork)
1615 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1616 (linux_nat_wait_1): Extend comment.
1617 (linux_async_pipe): Add comment.
1621 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1622 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1623 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1624 Update to account for fact that PC is now a pseudo-register.
1625 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1626 cases for RL78_PC_REGNUM.
1631 * top.c (quit_force): Skip writing history file
1632 if input is not from terminal.
1636 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1637 resultthreadlist>: New fields.
1638 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1639 (remote_get_threadlist, remote_threadlist_iterator): Use
1640 new fields. Remove static variables.
1644 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1645 remote_watch_data_address>: New fields.
1646 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1647 (process_stop_reply, remote_wait_as)
1648 (remote_check_watch_resources, remote_stopped_data_address): Update.
1652 * remote.c (struct remote_state) <async_client_callback,
1653 async_client_context>: New fields.
1654 (async_client_callback, async_client_context): Remove.
1655 (remote_async_serial_handler, remote_async): Update.
1659 * remote.c (sizeof_pkt): Remove.
1660 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1664 * remote.c (struct remote_state) <use_threadinfo_query,
1665 use_threadextra_query>: New fields.
1666 (remote_threads_info, remote_threads_extra_info)
1667 (remote_open_1): Update.
1671 * remote.c (struct remote_state) <finished_object,
1672 finished_annex, finished_offset>: New fields.
1673 (remote_read_qxfer): Use remote_state fields; remove static
1678 * remote.c (struct remote_state) <last_sent_step>:
1680 (last_sent_step): Remove.
1681 (remote_resume, remote_wait_as): Update.
1685 * remote.c (struct remote_state) <last_sent_signal>:
1687 (last_sent_signal): Remove.
1688 (new_remote_state, remote_resume, remote_wait_as): Update.
1692 * remote.c (struct remote_state) <last_program_signals_packet>:
1694 (last_program_signals_packet): Remove.
1695 (remote_program_signals, remote_open_1): Update.
1699 * remote.c (struct remote_state) <last_pass_packet>:
1701 (last_pass_packet): Remove.
1702 (remote_pass_signals, remote_open_1): Update.
1706 * remote.c (struct remote_state) <remote_traceframe_number>:
1708 (remote_traceframe_number): Remove.
1709 (new_remote_state, remote_open_1, set_remote_traceframe)
1710 (remote_trace_find): Update.
1714 * remote.c (struct remote_state) <general_thread, continue_thread>:
1716 (general_thread, continue_thread): Remove.
1717 (record_currthread, set_thread, set_general_process)
1718 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1719 (extended_remote_mourn_1): Update.
1723 * remote.c (struct remote_state) <remote_desc>: New field.
1724 (remote_desc): Remove.
1725 (remote_threads_info, remote_threads_extra_info, remote_close)
1726 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1727 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1728 (remote_hostio_send_command, remote_file_put, remote_file_get)
1729 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1730 (remote_async, remote_new_objfile, set_range_stepping): Update.
1734 * remote.c (remote_state): Now a pointer.
1735 (get_remote_state_raw): Update.
1736 (new_remote_state): New function.
1737 (_initialize_remote): Use new_remote_state.
1741 * remote.c (remote_protocol_features): Now const.
1745 * remote.c (crc32_table, crc32): Remove.
1746 (remote_verify_memory): Use xcrc32.
1750 * value.h (create_internalvar_type_lazy): Adjust prototype
1755 * common/format.c (parse_format_string): Don't allow '#' flag for
1756 pointer arguments in format string.
1760 * utils.c (init_page_info): Only call tgetnum function
1761 if rl_get_screen_size did not return useful values.
1765 PR breakpoints/15117
1766 * linespec.c (linespec_parse_basic): Check for convenience
1767 variable or history value while parsing.
1771 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1773 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1774 different signals between the generic Linux kernel implementation
1776 (avr_linux_gdb_signal_from_target): Delete.
1777 (avr_linux_gdb_signal_to_target): Delete.
1778 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1782 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1787 * linux-tdep.c: Define enum with generic signal numbers.
1788 (linux_gdb_signal_from_target): New function.
1789 (linux_gdb_signal_to_target): Likewise.
1790 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1791 methods to the functions above.
1792 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1793 (linux_gdb_signal_to_target): Likewise.
1794 * alpha-linux-tdep.c: Define new enum with signals different
1795 from generic Linux kernel.
1796 (alpha_linux_gdb_signal_from_target): New function.
1797 (alpha_linux_gdb_signal_to_target): Likewise.
1798 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1799 with the functions mentioned above.
1800 * avr-tdep.c: Define enum with differences between Linux kernel
1802 (avr_linux_gdb_signal_from_target): New function.
1803 (avr_linux_gdb_signal_to_target): Likewise.
1804 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1805 the functions mentioned above.
1806 * sparc-linux-tdep.c: Define enum with differences between SPARC
1807 and generic Linux kernel signal numbers.
1808 (sparc32_linux_gdb_signal_from_target): New function.
1809 (sparc32_linux_gdb_signal_to_target): Likewise.
1810 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1811 to the functions defined above.
1812 * xtensa-linux-tdep.c: Define enum with differences between
1813 Xtensa and Linux kernel generic signals.
1814 (xtensa_linux_gdb_signal_from_target): New function.
1815 (xtensa_linux_gdb_signal_to_target): Likewise.
1816 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1817 to the functions defined above.
1818 * mips-linux-tdep.c: Define enum with differences between
1819 signals in MIPS and Linux kernel generic ones.
1820 (mips_gdb_signal_to_target): New function.
1821 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1822 only different signals from the Linux kernel generic.
1823 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1824 the functions defined above.
1825 * mips-linux-tdep.h (enum mips_signals): Remove.
1829 * avr-tdep.c (XMALLOC): Delete macro.
1830 * cli/cli-dump.c (XMALLOC): Delete macro.
1834 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1835 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1836 (fopen_with_cleanup, add_dump_command): Make static.
1837 * cli/cli-dump.h: Delete file.
1838 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1843 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1848 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1853 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1854 (gcore_command): Use tilde_expand here, and when showing the
1855 filename to the user, show the expanded version.
1859 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1864 * gcore.c (create_gcore_bfd): Use tilde_expand.
1868 * frame.h (read_frame_local): Declare.
1869 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1871 * stack.c (read_frame_local): New.
1875 * mi/mi-cmd-stack.c: Update comments to function
1876 list_args_or_locals.
1881 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1882 (process_psymtab_comp_unit_reader): Use it.
1883 (process_psymtab_comp_unit): Update. Add "pretend_language"
1885 (dwarf2_build_psymtabs_hard): Update.
1886 (scan_partial_symbols): Pass CU's language to
1887 process_psymtab_comp_unit.
1891 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1892 (dwarf2_gdb_index_functions): Update.
1893 * psymtab.c (find_symbol_file_from_partial): Remove.
1894 (psym_functions): Update.
1895 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1900 * symfile.c (set_initial_language): Look up "main" symbol
1901 and use its language.
1902 * symtab.c (find_main_filename): Remove.
1903 * symtab.h (find_main_filename): Remove.
1907 * dwarf2read.c (recursively_compute_inclusions): Add
1908 "immediate_parent" argument. Set symtab's "user" field
1910 (compute_symtab_includes): Update.
1914 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1915 when adding label symbols.
1920 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1921 * configure.host (powerpc64-*-aix*): Likewise.
1926 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1928 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1929 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1930 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1931 * configure.ac: Check for ptrace64.
1932 * configure, config.in: Regenerate.
1937 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1938 Call ptrace64 instead of ptrace if defined.
1939 Add macro addr_ptr to take care of ptrace address argument.
1940 (pdc_read_regs): Likewise.
1941 (pdc_write_regs): Likewise.
1942 (aix_thread_resume): Likewise.
1943 (fetch_regs_kernel_thread): Likewise.
1944 (store_regs_kernel_thread): Likewise.
1948 * MAINTAINERS: Add myself to Write After Approval.
1952 * aix-thread.c (_initialize_aix_thread): Use
1953 complete_target_initialization.
1954 * bsd-uthread.c (_initialize_bsd_uthread): Use
1955 complete_target_initialization.
1956 * dec-thread.c (_initialize_dec_thread): Use
1957 complete_target_initialization.
1958 * ravenscar-thread.c (_initialize_ravenscar): Use
1959 complete_target_initialization.
1960 * sol-thread.c (_initialize_sol_thread): Use
1961 complete_target_initialization.
1962 * spu-multiarch.c (_initialize_spu_multiarch): Use
1963 complete_target_initialization.
1967 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1968 * ada-lang.c (ada_lookup_simple_minsym): Return
1969 bound_minimal_symbol.
1970 * ada-lang.h (ada_lookup_simple_minsym): Update.
1971 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1972 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1973 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1974 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1975 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1976 * minsyms.c (msymbol_objfile): Remove.
1977 (lookup_minimal_symbol_internal): New function, from
1978 lookup_minimal_symbol.
1979 (lookup_minimal_symbol): Rewrite using
1980 lookup_minimal_symbol_internal.
1981 (lookup_bound_minimal_symbol): New function.
1982 * minsyms.h (msymbol_objfile): Remove.
1983 (lookup_bound_minimal_symbol): Declare.
1984 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1985 * parse.c (write_exp_msymbol): Change parameter to a
1986 bound_minimal_symbol.
1987 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1988 * parser-defs.h (write_exp_msymbol): Update.
1989 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1990 * symfile.c (simple_read_overlay_table): Use
1991 lookup_bound_minimal_symbol.
1992 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1993 (search_symbols): Likewise.
1994 (print_msymbol_info): Take a bound_minimal_symbol argument.
1995 (symtab_symbol_info, rbreak_command): Update.
1996 * symtab.h (struct symbol_search) <msymbol>: Change type
1997 to bound_minimal_symbol.
1998 * valops.c (find_function_in_inferior): Use
1999 lookup_bound_minimal_symbol.
2000 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2005 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2007 (async_cleanup_sigint_signal_handler): ... this.
2008 (initialize_sigint_signal_handler): Remove declaration.
2009 (handle_remote_sigint): Rename the declaration to ...
2010 (async_handle_remote_sigint): ... this.
2011 (handle_remote_sigint_twice): Rename the declaration to ...
2012 (async_handle_remote_sigint_twice): ... this.
2013 (async_remote_interrupt, async_remote_interrupt_twice)
2014 (remote_interrupt): Remove the declarations.
2015 (remote_interrupt_twice): Rename the declaration ...
2016 (sync_remote_interrupt_twice): ... this.
2017 (sigint_remote_twice_token): Rename the variable to ...
2018 (async_sigint_remote_twice_token): ... this.
2019 (sigint_remote_token): Rename the variable to ...
2020 (async_sigint_remote_token): ... this.
2021 (initialize_sigint_signal_handler): Rename the function to ...
2022 (async_initialize_sigint_signal_handler): ... this. Update the name
2024 (handle_remote_sigint): Rename the function to ...
2025 (async_handle_remote_sigint): ... this. Update the names inside.
2026 (handle_remote_sigint_twice): Rename the function to ...
2027 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2028 (cleanup_sigint_signal_handler): Rename the function to ...
2029 (async_cleanup_sigint_signal_handler): ... this.
2030 (remote_interrupt): Rename the function to ...
2031 (sync_remote_interrupt): this. Update the names inside.
2032 (remote_interrupt_twice): Rename the function to ...
2033 (sync_remote_interrupt_twice): this. Update the names inside.
2034 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2035 (_initialize_remote): Update the names inside.
2040 * breakpoint.c (update_watchpoint, watchpoint_check)
2041 (watch_command_1): Update.
2042 * eval.c (fetch_subexp_value): Add "preserve_errors"
2044 * ppc-linux-nat.c (check_condition): Update.
2045 * value.h (fetch_subexp_value): Update.
2049 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2055 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2056 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2057 Add assert of sig_entry->dwo_unit == NULL.
2058 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2059 had already been read.
2060 (read_signatured_type): Set per_cu.tu_read.
2063 * valops.c (value_struct_elt): Add missing call to check_typedef.
2064 (value_find_oload_method_list): Ditto.
2066 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2067 effectively, struct symbol_search **.
2068 (make_cleanup_free_search_symbols): Change arg to struct
2069 symbol_search **. All callers updated.
2070 (compare_search_syms): Compare symtab file name and block as well.
2071 (search_symbols_equal): New function.
2072 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2073 New args new_head, new_tail. Result is now void. Remove dups after
2074 sorting the symbols.
2075 (search_symbols): Sort all found symbols once, after all have been
2076 found, and remove duplicates. Simplify cleanup tracking of result.
2077 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2079 Further workarounds for binutils/15021.
2080 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2081 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2082 Watch for duplicate symtabs coming from type units.
2083 (compute_symtab_includes): Update call to
2084 recursively_compute_inclusions. Build vector of included symtabs
2086 * symtab.h (symtab_ptr): New typedef.
2087 (DEF_VEC_P (symtab_ptr)): New VEC type.
2088 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2093 * cli/cli-script.c (script_from_file): Remove use of
2095 * main.c (captured_main): Remove use of error_pre_print and
2097 * utils.c (error_pre_print, quit_pre_print): Remove.
2098 * utils.h (error_pre_print, quit_pre_print): Likewise.
2102 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2104 (mi_cmd_stack_list_variables): Likewise.
2108 * exceptions.c (deprecated_throw_reason): Remove.
2109 * exceptions.h (deprecated_throw_reason): Remove.
2113 * remote-mips.c (mips_error): Replace use of
2114 deprecated_throw_reason with throw_verror. Use the error message
2115 passed to mips_error as the error message for throw_verror.
2119 * monitor.c (monitor_interrupt_query): Replace use of
2120 deprecated_throw_reason with quit.
2121 * nto-procfs.c (interrupt_query): Likewise.
2122 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2123 * remote-mips.c (mips_kill): Likewise.
2124 * remote.c (interrupt_query): Likewise.
2128 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2134 * tracepoint.c (trace_dump_command): Select the current frame.
2138 * dwarf2read.c (process_queue): Add type signature to debug output.
2142 * value.c (value_fetch_lazy): Mark optimized out values as such
2143 rather than raising an error.
2147 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2148 before checking which bits of the parent, not the child, value are
2154 * top.c: Include "filenames.h".
2155 (set_history_filename): New function.
2156 (init_main): Install it as set hook of the "set history filename"
2161 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2162 attribute parameter.
2163 (dwarf2_const_value_data): Constify struct attribute parameter.
2164 (dwarf2_const_value): Constify struct attribute parameter.
2165 (dwarf2_const_value_attr): Constify struct attribute parameter.
2166 (lookup_die_type): Constify struct attribute parameter.
2167 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2168 (follow_die_ref_or_sig): Constify struct attribute parameter.
2169 (follow_die_ref): Constify struct attribute parameter.
2170 (follow_die_sig): Constify struct attribute parameter.
2171 (get_DW_AT_signature_type): Constify struct attribute parameter.
2172 (get_type_unit_group): Constify struct attribute parameter.
2173 (fill_in_loclist_baton): Constify struct attribute parameter.
2174 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2175 (type_unit_group): Constify struct attribute parameter.
2179 * dwarf2read.c (attr_form_is_block): Make argument const.
2180 (attr_form_is_section_offset): Make argument const.
2181 (attr_form_is_constant): Make argument const.
2182 (attr_form_is_ref): Make argument const.
2186 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2188 (attr_form_is_ref): Moved below attr_form_is_constant.
2192 * main.c (captured_command_loop): Tweak comment.
2194 * target.c (target_async_permitted_1): Fix comment.
2196 * symtab.c (iterate_over_some_symtabs): Add comment.
2198 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2202 * NEWS: Mention that GDBserver now supports hardware
2203 watchpoints on the MIPS GNU/Linux target.
2207 * Makefile.in (HFILES_NO_SRCDIR): Add
2208 common/mips-linux-watch.h.
2209 (mips-linux-watch.o): New rule.
2210 * common/mips-linux-watch.c: New.
2211 * common/mips-linux-watch.h: New.
2212 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2213 * mips-linux-nat.c: Include mips-linux-watch.h.
2214 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2215 to common/mips-linux-watch.h.
2216 (MAX_DEBUG_REGISTER): Likewise.
2217 (enum pt_watch_style): Likewise.
2218 (struct mips32_watch_regs): Likewise.
2219 (struct mips64_watch_regs): Likewise.
2220 (struct pt_watch_regs): Likewise.
2221 (struct mips_watchpoint): Likewise.
2222 (mips_linux_watch_get_irw_mask): Move to
2223 common/mips-linux-watch.c.
2224 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2225 (mips_linux_watch_get_watchlo): Likewise.
2226 (mips_linux_watch_set_watchlo): Likewise.
2227 (mips_linux_watch_get_watchhi): Likewise.
2228 (mips_linux_watch_set_watchhi): Likewise.
2229 (mips_linux_read_watch_registers): Likewise.
2230 (mips_linux_watch_type_to_irw): Likewise.
2231 (mips_linux_stopped_data_address, fill_mask): Likewise.
2232 (mips_linux_watch_try_one_watch): Likewise.
2233 (mips_linux_watch_populate_regs): Likewise.
2237 * mips-linux-nat.c (get_irw_mask): Rename to ...
2238 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2239 'set' to 'n'. Update function comment. All callers changed.
2240 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2241 function comment. All callers changed.
2242 (get_num_valid): Rename to ...
2243 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2244 'set' to 'n'. Update function comment. All callers changed.
2245 (get_watchlo): Rename to ...
2246 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2247 'set' to 'n'. Update function comment. All callers changed.
2248 (set_watchlo): Rename to ...
2249 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2250 'set' to 'n'. Update function comment. All callers changed.
2251 (get_watchhi): Rename to ...
2252 (mips_linux_watch_get_watchhi): ... this. Update function
2253 comment. All callers changed.
2254 (set_watchhi): Rename to ...
2255 (mips_linux_watch_set_watchhi): ... this. Update function
2256 comment. All callers changed.
2257 (mips_linux_read_watch_registers): Update function comment.
2258 Add new parameters 'lwpid', 'watch_readback', and
2259 'watch_readback_valid'. Update.
2260 (type_to_irw): Rename to ...
2261 (mips_linux_watch_type_to_irw): ... this. Update function
2262 comment. All callers changed.
2263 (fill_mask): Update function comment.
2264 (try_one_watch): Rename to ...
2265 (mips_linux_watch_try_one_watch): ... this. Change the type
2266 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2267 (populate_regs_from_watches): Rename to ...
2268 (mips_linux_watch_populate_regs): ... this. Add parameter
2269 'current_watches'. All callers changed.
2273 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2275 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2276 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2277 (struct pt_watch_regs): Likewise.
2278 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2279 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2280 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2281 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2282 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2286 * breakpoint.h: Include break-common.h.
2287 (enum target_hw_bp_type): Move to ...
2288 * common/break-common.h: ... here. New.
2292 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2293 process group regardless of having tty on stdin.
2297 * linux-fork.h (detach_fork): Delete.
2301 PR remote/15256, PR remote/15266:
2302 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2303 * monitor.c (monitor_detach): Use unpush_target.
2304 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2305 * remote-mips.c (mips_detach): Use unpush_target. Don't
2307 * remote-sim.c (gdbsim_detach): Use unpush_target.
2308 * target.c (pop_target): Remove.
2309 (pop_all_targets_above): Don't call target_close.
2310 (target_close): Assert that the target is unpushed.
2311 * target.h (pop_target): Don't declare.
2312 * tracepoint.c (tfile_open): Use unpush_target.
2316 * linux-thread-db.c (init_thread_db_ops): Call
2317 complete_target_initialization.
2318 (_initialize_thread_db): Don't call add_target.
2319 * target.c (complete_target_initialization): New function.
2320 (add_target_with_completer): Call it.
2321 * target.h (complete_target_initialization): Declare.
2325 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2326 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2327 (HPPANBSD_SIZEOF_GREGS): New define.
2328 (hppaobsd_supply_gregset): Handle additional registers.
2329 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2330 we provide more registers now.
2331 (hppabsd_supply_gregset): Supply additional registers.
2332 (hppabsd_collect_gregset): Collect additional registers.
2336 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2337 (hppabsd_dwarf2_frame_init_reg): New function.
2338 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2342 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2343 'z' format code. Remove error for optimized out values, standard
2344 code will handle these fine.
2348 * NEWS: Mention new 'z' formatter.
2349 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2350 (_initialize_printcmd): Mention 'z' formatter in help text of the
2355 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2360 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2361 interface can evaluate arguments. Fallback to the old mode if it
2363 (create_exception_master_breakpoint): Likewise.
2364 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2365 (struct sym_probe_fns elf_probe_fns): Export function above to the
2367 * probe.c (can_evaluate_probe_arguments): New function.
2368 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2370 (can_evaluate_probe_arguments): New function prototype.
2371 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2372 probe interface can evaluate arguments. Fallback to the old mode
2374 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2375 interface can evaluate arguments. Warning the user if it cannot.
2376 (stap_can_evaluate_probe_arguments): New function.
2377 (struct probe_ops stap_probe_ops): Export function above to the
2379 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2380 New function pointer.
2384 * Makefile.in (SFILES): Add common/target-common.c.
2385 Add common/target-common.h to headers.
2386 (COMMON_OBS): Add target-common.o.
2387 (target-common.o): New target.
2388 * linux-nat.h (resume_kind): Move to common/target-common.h.
2389 * target.c (target_waitstatus_to_string): Move to
2390 common/target-common.c.
2391 * target.h: Include target-common.h.
2392 (target_waitkind): Move to common/target-common.h.
2393 (target_waitstatus): Likewise.
2394 (TARGET_WNOHANG): Likewise.
2395 * common/target-common.c: New file.
2396 * common/target-common.h: New file.
2400 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2405 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2406 parameter 'gdbarch'.
2407 (i386_stack_tramp_frame_sniffer): Caller update.
2408 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2409 parameter 'gdbarch' and 'target'.
2410 (i386_linux_core_read_description): Caller update.
2411 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2413 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2418 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2423 * exec.h (remove_target_sections): Delete arg abfd.
2424 * exec.c (exec_close): Update call to remove_target_sections.
2425 (remove_target_sections): Delete arg abfd.
2426 * solib.c (update_solib_list): Ditto.
2427 (reload_shared_libraries_1): Ditto.
2428 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2429 * target.h (struct target_section): Rename key to owner.
2434 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2438 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2439 Simplify cleanup handling.
2443 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2444 on all return paths.
2448 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2449 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2450 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2454 * top.c (print_gdb_version): Add help, apropos description and
2455 url to online documentation.
2460 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2464 * target.c (update_current_target): Change the default action
2465 of 'to_traceframe_info' from tcomplain to return_zero.
2466 * target.h (struct target_ops) <to_traceframe_info>: Add more
2468 * valops.c (read_value_memory): Call
2469 traceframe_available_memory unconditionally.
2473 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2474 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2475 symbol without prefix. If found, set its type to
2476 'mst_solib_trampoline'.
2480 * NEWS: Mention "set print raw frame-arguments".
2481 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2482 * stack.c (print_raw_frame_arguments): New static global.
2483 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2484 (_initialize_stack): New command "set/show print raw frame-arguments".
2485 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2486 (set_print_raw, show_print_raw): New functions.
2487 (_initialize_valprint): New prefix command "set/show print raw".
2488 * valprint.h (value_print_options): Improve comments.
2490 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2491 of all *list variables.
2493 * gdbcmd.h (togglelist): Delete.
2494 * cli/cli-cmds.c (togglelist): Delete.
2495 (init_cmd_lists): Update.
2496 * cli/cli-cmds.h (togglelist): Delete.
2500 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2505 * nto-tdep.c (nto_relocate_section_addresses): Update,
2506 target_section.bfd deleted.
2507 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2508 * s390-tdep.c (s390_load): Ditto.
2509 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2513 * common/format.c (parse_format_string): Add checks for NULL
2514 character before calling strchr.
2518 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2519 temp_pathname argument.
2520 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2521 when opening the file fails.
2523 * target.h (struct target_section): Delete member bfd.
2524 All users updated to use the_bfd_section->owner instead.
2525 * exec.c (add_to_section_table): Assert bfd is expected value.
2526 Remove initialization of target_section.bfd.
2527 (remove_target_sections): Update.
2528 (section_table_available_memory): Update.
2529 (section_table_xfer_memory_partial): Update.
2530 (print_section_info): Update.
2531 (exec_set_section_address): Update.
2532 * record-full.c (record_full_core_xfer_partial): Update.
2533 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2534 * solib-target.c (solib_target_relocate_section_addresses): Update.
2535 * symfile.c (build_section_addr_info_from_section_table): Update.
2536 * target.c (memory_xfer_live_readonly_partial): Update.
2537 (memory_xfer_partial_1): Update.
2541 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2542 now available for embedded (BookE) and server (BookS) processors,
2543 correct mentions of 'booke' and adjust comments accordingly in order to
2544 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2545 (have_ptrace_booke_interface): Rename function and variable
2546 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2547 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2548 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2549 'hwdebug_point_cmp'. Update all uses.
2550 (booke_find_thread_points_by_tid): Rename function
2551 'booke_find_thread_points_by_tid' to
2552 'hwdebug_find_thread_points_by_tid'. Update all uses.
2553 (booke_insert_point): Rename function 'booke_insert_point' to
2554 'hwdebug_insert_point'. Update all uses.
2555 (booke_remove_point): Rename function 'booke_remove_point' to
2556 'hwdebug_remove_point'. Update all uses.
2560 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2561 numbers with enum values.
2566 * thread.c (thread_apply_all_command): Check for valid threads
2568 (thread_array_cleanup): New struct.
2569 (set_thread_refcount): New function.
2573 * infcmd.c (default_print_one_register_info): Reuse function
2578 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2579 (ada-exp.o): New target.
2583 * mt-tdep.c (mt_registers_info): Call
2584 get_no_prettyformat_print_options instead of
2585 get_raw_print_options (regression by last patch from Doug
2591 * ada-lang.c (coerce_unspec_val_to_type): Use
2592 value_optimized_out_const.
2593 * value.c (value_optimized_out_const): New function.
2594 * value.h (value_optimized_out_const): New declaration.
2598 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2599 Enum values rename as well. All uses updated.
2600 * valprint.h (value_print_options): Rename member pretty to
2601 pretty format. Rename member prettyprint_arrays to
2602 prettyformat_arrays. Rename member prettyprint_structs to
2603 prettyformat_structs. All uses updated.
2604 (get_no_prettyformat_print_options): Renamed from
2605 get_raw_print_options.
2606 * valprint.c (get_no_prettyformat_print_options): Renamed from
2607 get_raw_print_options. All callers updated.
2608 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2609 All callers updated.
2610 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2611 All callers updated.
2612 (_initialize_valprint): Improve help text for "set print pretty" and
2617 * value.c (value_bits_valid): Revert previous change, and change
2618 by Pedro on 2013-07-04, due to regressions in
2619 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2624 * value.c (value_bits_valid): If the value is not lval_computed
2625 or has no check validity handler then the answer is the
2626 optimized_out flag, otherwise defer to the handler.
2630 * top.c (print_gdb_configuration): Explain in output of
2631 --configuration what does "relocatable" mean.
2633 * main.c (print_gdb_help): Regroup options in the --help text.
2634 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2635 the relevant discussions.
2639 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2640 Remove parameter 'lsal'.
2641 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2642 to inner block. Caller update.
2643 (base_breakpoint_create_breakpoints_sal): Update.
2644 (bkpt_create_breakpoints_sal): Likewise.
2645 (tracepoint_create_breakpoints_sal): Likewise.
2646 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2647 element 0 of vector 'canonical->sals'.
2651 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2652 register number instead of the pseudo register one.
2653 (rs6000_dwarf2_reg_to_regnum): Likewise.
2657 * findvar.c (value_of_register): Use allocate_optimized_out_value
2658 if the register has been optimized out, instead of
2659 set_value_optimized_out.
2660 * frame-unwind.c (frame_unwind_got_optimized): Use
2661 allocate_optimized_out_value.
2665 * value.c (value_bits_valid): If the value is not lval_computed,
2666 or doesn't have a check_validity hook, assume the value is entirely
2671 * stack.c (read_frame_arg): No longer fetch lazy values.
2672 * value.c (value_optimized_out): If the value is not already
2673 marked optimized out, and is lazy then fetch it.
2674 (value_primitive_field): Move optimized out check to later in the
2675 function, after we have loaded any lazy values.
2676 (value_fetch_lazy): Use optimized out flag directly rather than
2677 calling optimized_out method.
2681 * valops.c: Don't include "user-regs.h".
2682 (value_fetch_lazy): Moved to value.c.
2683 * value.c: Include "user-regs.h".
2684 (value_fetch_lazy): Moved from valops.c.
2691 * common/create-version.sh: Update comments. Handle the case
2692 that TARGET_ALIAS is empty.
2696 * Makefile.in (config.status): Depend on development.sh.
2697 (aclocal_m4_deps): Add libmcheck.m4.
2698 * acinclude.m4: Include libmcheck.m4.
2699 * configure.ac: Source development.sh instead of setting
2700 'development' here. --enable-libmcheck/--disable-libmcheck code
2701 factored out to GDB_AC_LIBMCHECK. Run it.
2702 * development.sh: New file.
2703 * libmcheck.m4: New file.
2704 * configure: Regenerate.
2708 * contrib/ari/update-web-ari.sh: Update for version.in change.
2712 * common/ptid.h: Comment fixes.
2716 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2717 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2718 (dwarf2_read_index, create_all_comp_units): Update.
2722 * configure.ac (build_warnings): Add -Wold-style-definition.
2723 * configure: Rebuild.
2724 * machoread.c (_initialize_machoread): Use "(void)".
2725 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2730 * configure.ac (build_warnings): Add -Wold-style-declaration.
2731 * configure: Rebuild.
2732 * dsrec.c (make_srec): Use "static const", not "const static".
2733 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2735 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2736 Use "static const", not "const static".
2737 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2739 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2741 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2743 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2745 (v850_dbtrap_breakpoint_from_pc): Likewise.
2746 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2751 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2752 * configure: Rebuild.
2756 * defs.h: Include "pathmax.h".
2757 * utils.c: Don't include sys/param.h.
2758 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2759 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2760 instead of MAXPATHLEN.
2761 * solib-sunos.c: Don't include sys/param.h.
2762 * xcoffread.c: Don't include sys/param.h.
2763 * bsd-kvm.c: Don't include sys/param.h.
2764 * darwin-nat.c: Don't include sys/param.h.
2765 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2766 * darwin-nat-info.c: Don't include sys/param.h.
2767 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2769 * i386obsd-nat.c: Don't include sys/param.h.
2770 * inf-child.c: Don't include sys/param.h.
2771 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2772 * linux-fork.c: Don't include sys/param.h.
2773 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2774 * linux-nat.c: Don't include sys/param.h.
2775 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2776 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2777 * m68klinux-nat.c: Don't include sys/param.h.
2778 * nbsd-nat.c: Don't include sys/param.h.
2779 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2780 * ppc-linux-nat.c: Don't include sys/param.h.
2781 * rs6000-nat.c: Don't include sys/param.h.
2782 * spu-linux-nat.c. Don't include sys/param.h.
2783 * windows-nat.c: Don't include sys/param.h.
2784 * xtensa-linux-nat.c: Don't include sys/param.h.
2785 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2789 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2790 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2791 * gnulib/aclocal.m4: Regenerate.
2792 * gnulib/config.in: Regenerate.
2793 * gnulib/configure: Regenerate.
2794 * gnulib/import/pathmax.h: New file.
2795 * gnulib/import/Makefile.am: Regenerate.
2796 * gnulib/import/Makefile.in: Regenerate.
2797 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2798 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2799 * gnulib/import/m4/pathmax.m4: New file.
2803 * configure.ac (GDBINIT): Define, depending on host.
2804 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2805 * top.c (PATH_MAX): Delete fallback definition.
2806 (GDBINIT_FILENAME): Delete.
2807 (gdbinit): Reimplement as const char array set to the GDBINIT
2809 * top.h (gdbinit): Make const.
2810 * configure, config.in: Regenerate.
2814 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2815 * cli/cli-cmds.h (source_script): Likewise.
2816 * exceptions.c (catch_command_errors_const): New function.
2817 * exceptions.h (catch_command_errors_const): Declare.
2818 * main.c (get_init_files): Make parameters const, and adjust.
2819 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2820 'local_gdbinit' locals const. Adjust to use
2821 catch_command_errors_const.
2822 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2823 'local_gdbinit' locals const.
2827 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2828 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2829 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2834 Import the "unistd" gnulib module.
2835 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2836 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2837 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2838 import/m4/unistd_h.m4.
2839 * gnulib/aclocal.m4: Renenerate.
2840 * gnulib/config.in: Renenerate.
2841 * gnulib/configure: Renenerate.
2842 * gnulib/import/Makefile.am: Renenerate.
2843 * gnulib/import/Makefile.in: Renenerate.
2844 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2845 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2846 * gnulib/import/m4/off_t.m4: New file.
2847 * gnulib/import/m4/ssize_t.m4: New file.
2848 * gnulib/import/m4/sys_types_h.m4: New file.
2849 * gnulib/import/m4/unistd_h.m4: New file.
2850 * gnulib/import/sys_types.in.h: New file.
2851 * gnulib/import/unistd.c: New file.
2852 * gnulib/import/unistd.in.h: New file.
2856 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2857 defined instead of checking HAVE_UNISTD_H.
2861 Reimport gnulib from scratch.
2862 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2863 import/m4/onceonly.m4.
2864 * gnulib/aclocal.m4: Renegerate.
2865 * gnulib/config.in: Renegerate.
2866 * gnulib/configure: Renegerate.
2867 * gnulib/import/Makefile.in: Renegerate.
2868 * gnulib/import/extra/update-copyright: Renegerate.
2869 * gnulib/import/m4/onceonly.m4: Delete.
2873 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2878 * remote.c (async_remote_interrupt_twice): Make it static.
2879 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2883 * ia64-linux-tdep.c: Include <ctype.h>.
2884 (ia64_linux_stap_is_single_operand): New function.
2885 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2889 * Makefile.in (version.c): Use version.in, not
2891 * common/create-version.sh: Likewise.
2892 * common/version.in: Move...
2893 * version.in: ...here.
2897 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2899 * utils.h (pagination_enabled): Declare.
2903 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2904 Move higher up in file.
2908 * tracepoint.c (deprecated_readline_begin_hook)
2909 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2915 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2916 checking if they're available.
2917 * value.c (value_available_contents_eq): Change comment.
2918 * value.h (value_available_contents_eq): Expand comment.
2922 * target.c (find_run_target): Remove.
2923 * target.h (find_run_target): Remove.
2927 * corelow.c (core_gdbarch): Now static.
2931 * target.c (target_struct_index): Remove.
2935 * infrun.c: Remove comment describing the 'stepping over runtime
2936 loader dynamic symbol resolution code' mechanism; moved to
2941 * exceptions.c (catch_command_errors): Remove spurious space.
2942 * exceptions.h (catch_command_errors): Second parameter is "arg",
2947 * common/create-version.sh: Update comments. Handle the case
2948 that TARGET_ALIAS is empty.
2952 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2957 * infrun.c: Update comments on stepping over runtime loader
2958 dynamic symbol resolution code.
2962 * ax-gdb.h (union exp_element): Forward declare.
2963 * parser-defs.h: Include expression.h.
2967 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2971 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2975 Fix trace-status to output proper start-time and stop-time.
2976 * tracepoint.c (trace_status_command): Fix type of printf arg to
2977 prevent improper type conversion.
2978 (trace_status_mi): Likewise.
2982 * mips-tdep.c (mips_next_pc): Fix a typo.
2986 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2991 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2992 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2993 * mi/mi-main.c (print_variable_or_computed): New function.
2994 (mi_cmd_trace_frame_collected): New function.
2995 * tracepoint.c (find_trace_state_variable_by_number): New.
2996 (struct traceframe_info): Move to tracepoint.h
2997 (struct collection_list): Likewise.
2998 (do_collect_symbol): Include locals and arguments in the
2999 collected variables list.
3000 (clear_collection_list): Clear wholly collected variables list
3001 and computed variables list.
3002 (append_exp): New function.
3003 (encode_actions_1): Include variables in the wholly
3004 collected variables list. Include memory ranges and
3005 full-fledged expressions in the computed expressions list.
3006 (encode_actions): Move some code to ...
3007 Return the cleanup chain.
3008 (encode_actions_rsp): ... here. New function.
3009 (get_traceframe_location, get_traceframe_info): Remove static.
3010 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3011 (struct collection_list): Moved from tracepoint.c. Add two
3012 new fields 'wholly_collected' and 'computed'.
3013 (find_trace_state_variable_by_number): Declare.
3014 (encode_actions): Adjust declaration.
3015 (encode_actions_rsp): Declare.
3016 (get_traceframe_info, get_traceframe_location): Declare.
3018 * NEWS: Mention new MI command -trace-frame-collected.
3023 * ctf.c (ctf_traceframe_info): Push trace state variables
3024 present in the trace data into the traceframe info object.
3025 * breakpoint.c (DEF_VEC_I): Remove.
3026 * common/filestuff.c (DEF_VEC_I): Likewise.
3027 * dwarf2loc.c (DEF_VEC_I): Likewise.
3028 * mi/mi-main.c (DEF_VEC_I): Likewise.
3029 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3030 * features/traceframe-info.dtd: Add tvar element and its
3032 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3033 (build_traceframe_info): Push trace state variables present in
3034 the trace data into the traceframe info object.
3035 (traceframe_info_start_tvar): New function.
3036 (tvar_attributes): New.
3037 (traceframe_info_children): Add "tvar" element.
3038 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3040 * NEWS: Mention the change in GDB and GDBserver.
3045 * tracepoint.c (trace_dump_command): Move code to ...
3046 (get_traceframe_location): ... here. New.
3051 * tracepoint.c (trace_dump_command): GDB emits an error
3052 instead of a warning when a traceframe is not selected.
3057 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3058 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3060 (do_clear_collection_list, init_collection_list): New.
3061 (encode_actions): Add local variables 'tracepoint_list' and
3062 'stepping_list'. Call init_collection_list and make cleanup
3063 which calls do_clear_collection_list. Don't call
3064 clear_collection_list.
3065 (_initialize_tracepoint): Delete references to
3066 'tracepoint_list' and 'stepping_list'.
3070 * common/create-version.sh (date): Use "$", not "$$" in sed
3075 * NEWS (New targets): Add entry for TI MSP430.
3079 * remote.c (remote_start_remote): Move code to upload tsv
3086 PR breakpoints/15075
3087 PR breakpoints/15434
3088 * breakpoint.c (bpstat_stop_status): Call
3089 b->ops->after_condition_true.
3090 (update_dprintf_command_list): Don't append "continue" command
3091 to the command list of dprintf breakpoint.
3092 (base_breakpoint_after_condition_true): New function.
3093 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3094 (dprintf_after_condition_true): New function.
3095 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3096 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3100 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3101 (ALLDEPFILES): Add msp430-tdep.c.
3102 * configure.tgt (msp430*-*-elf): New target.
3103 * msp430-tdep.c: New file.
3107 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3108 microMIPS synthetic symbols.
3112 * objfiles.h (pc_in_section): New prototype.
3113 (in_plt_section): Remove name argument, replace prototype with
3114 static inline function.
3115 * mips-tdep.h: Include "objfiles.h".
3116 (in_mips_stubs_section): New function.
3117 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3118 in_solib_call_trampoline member.
3119 (hppa_in_solib_call_trampoline): Remove name argument.
3120 * objfiles.c (pc_in_section): New function.
3121 (in_plt_section): Remove function.
3122 * mips-linux-tdep.c: Include "objfiles.h".
3123 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3124 name argument. Return 1 rather than the low 16-bit halfword of
3125 any instruction examined.
3126 (mips_linux_in_dynsym_resolve_code): Update
3127 mips_linux_in_dynsym_stub call accordingly.
3128 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3129 rather than an equivalent hand-coded sequence.
3130 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3131 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3132 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3133 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3135 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3136 on call to tdep->in_solib_call_trampoline.
3137 (hppa_in_solib_call_trampoline): Remove name argument, update
3138 according to in_plt_section change.
3139 (hppa_skip_trampoline_code): Update according to in_plt_section
3141 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3142 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3144 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3145 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3146 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3147 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3148 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3149 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3150 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3151 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3152 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3153 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3154 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3155 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3156 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3160 * common/create-version.sh: Fix expansion of $host_alias
3161 and $target_alias in generation of HOST_NAME and TARGET_NAME
3166 * common/create-version.sh: New file.
3167 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3169 (HFILES_NO_SRCDIR): Use common/version.h.
3170 * version.in: Move to ...
3171 * common/version.in: ... here. Replace date with "DATE".
3172 * version.h: Move to ...
3173 * common/version.h: ... here.
3177 * gdb/gnulib/Makefile.in: Update date in copyright header.
3178 * gdb/gnulib/configure.ac: Ditto.
3179 * gdb/gnulib/update-gnulib.sh: Ditto.
3183 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3184 "gdb/gnulib/import".
3188 * doublest.c (ldfrexp): Remove function.
3189 (convert_doublest_to_floatformat): Call frexpl instead of
3194 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3195 * gnulib/aclocal.m4: Regenerate.
3196 * gnulib/config.in: Regenerate.
3197 * gnulib/configure: Regenerate.
3198 * gnulib/import/Makefile.am: Update.
3199 * gnulib/import/Makefile.in: Update.
3200 * gnulib/import/m4/gnulib-cache.m4: Update.
3201 * gnulib/import/m4/gnulib-comp.m4: Update.
3202 * gnulib/import/float+.h: Import.
3203 * gnulib/import/float.c: Import.
3204 * gnulib/import/float.in.h: Import.
3205 * gnulib/import/fpucw.h: Import.
3206 * gnulib/import/frexp.c: Import.
3207 * gnulib/import/frexpl.c: Import.
3208 * gnulib/import/isnan.c: Import.
3209 * gnulib/import/isnand-nolibm.h: Import.
3210 * gnulib/import/isnand.c: Import.
3211 * gnulib/import/isnanl-nolibm.h: Import.
3212 * gnulib/import/isnanl.c: Import.
3213 * gnulib/import/itold.c: Import.
3214 * gnulib/import/m4/exponentd.m4: Import.
3215 * gnulib/import/m4/exponentl.m4: Import.
3216 * gnulib/import/m4/float_h.m4: Import.
3217 * gnulib/import/m4/fpieee.m4: Import.
3218 * gnulib/import/m4/frexp.m4: Import.
3219 * gnulib/import/m4/frexpl.m4: Import.
3220 * gnulib/import/m4/isnand.m4: Import.
3221 * gnulib/import/m4/isnanl.m4: Import.
3222 * gnulib/import/m4/math_h.m4: Import.
3223 * gnulib/import/math.c: Import.
3224 * gnulib/import/math.in.h: Import.
3228 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3229 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3230 signature_INTEL_edx comparisons.
3235 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3236 All callers updated.
3237 (open_dwp_file): If we can't find the dwp file, search the basename
3238 in debug-file-directory.
3240 * dwarf2read.c (struct dwp_file): Fix comment.
3241 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3243 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3248 * breakpoint.c (create_breakpoint): Fix code indentation.
3252 * breakpoint.c (create_breakpoints_sal_default): Remove
3253 parameter 'lsal'. Update declaration.
3254 (bkpt_create_breakpoints_sal): Caller update.
3255 (tracepoint_create_breakpoints_sal): Likewise.
3260 * NEWS: Mention the new option '--skip-unavailable' of command
3261 -data-list-register-values.
3262 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3263 --skip-unavailable option. Adjust to use output_register.
3264 (output_register): Add new 'skip_unavailable' parameter.
3269 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3270 common/i386-gcc-cpuid.h.
3271 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3272 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3273 Copy the latest version from upstream gcc.
3274 * common/linux-btrace.c: Include i386-cpuid.h.
3275 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3277 (cpu_supports_btrace): Likewise.
3278 * go32-nat.c: Include i386-cpuid.h.
3279 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3283 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3284 (get_section_index): Ditto.
3288 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3293 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3295 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3296 Move test of cu_index closer to use. Print complaint if cu_index
3301 * machoread.c (oso_vector): Delete this global.
3302 (macho_register_oso): Add new parameter "oso_vector_ptr".
3303 Use it instead of the "oso_vector" global.
3304 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3305 (macho_symfile_read): Use a local oso_vector, to be free'ed
3306 at the end of this function, in place of the old "oso_vector"
3307 global. Update various function calls accordingly. Use one
3308 single cleanup chain for the entire function.
3312 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3313 DWARF2_PER_OBJFILE by uses of DATA instead.
3317 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3319 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3320 Special case signals other than GDB_SIGNAL_TRAP.
3321 (explains_signal_watchpoint): New function.
3322 (base_breakpoint_explains_signal): Add 'sig' argument.
3323 (initialize_breakpoint_ops): Set 'explains_signal' method for
3325 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3327 (bpstat_explains_signal): Likewise.
3328 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3332 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3336 * python/python.c (finish_python_initialization): Decref
3337 'pythondir' on failure path as well.
3342 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3343 after taking bits_to_skip into account. Sign extend byte_offset.
3344 * utils.h (gdb_sign_extend): Declare.
3345 * utils.c (gdb_sign_extend): New function.
3349 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3353 * corelow.c (core_open): Print GDB signal name instead of target
3358 * .gitignore: Add /gcore.
3362 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3363 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3367 * stack.c (backtrace_command_1): Fix indentation.
3371 * window-nat.c (thread_rec): Add missing empty line after
3372 local variable declaration.
3376 * windows-nat.c (thread_rec): Revert format used to print
3377 error code returned by SuspendThread from %d back to %u.
3381 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3383 (get_windows_debug_event): Likewise, for all debug traces.
3387 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3393 * mi/mi-main.c (get_register): Remove declaration.
3394 (output_register): Declare.
3395 (mi_cmd_data_list_register_values): Remove local variable
3396 'tuple_cleanup'. Move some code into output_register.
3397 (get_register): Renamed to ...
3398 (output_register): ... this. Output the register's
3399 "number" ui_out tuple here.
3403 * darwin-nat.c: Fix formating in copyright header.
3404 * darwin-nat.h: Likewise.
3405 * gnu-nat.c: Likewise.
3406 * machoread.c: Likewise.
3411 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3412 static. Output a global target description pointer.
3413 (init_registers_${name}): Adjust to initialize a
3414 target description structure.
3418 * printcmd.c (build_address_symbolic): Call
3419 gdbarch_addr_bits_remove for text minimal symbols.
3423 * MAINTAINERS: Add myself to Write After Approval.
3427 * tracepoint.c (start_tracing): Move code to ...
3428 (trace_reset_local_state): ... here. New.
3429 (disconnect_tracing): Don't call set_current_traceframe,
3430 set_tracepoint_num, and set_traceframe_context. Call
3431 trace_reset_local_state instead.
3432 (tfile_close): Call trace_reset_local_state.
3433 * ctf.c (ctf_close): Likewise.
3434 * remote.c (remote_close): Likewise.
3435 * tracepoint.h (trace_reset_local_state): Declare.
3439 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3440 and fix header docs.
3446 * cp-namespace.c (find_symbol_in_baseclass): Call
3447 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3448 Check result of call to lookup_symbol_static.
3449 Call lookup_static_symbol_aux unconditionally.
3450 Call check_typedef on base types before accessing them.
3451 (cp_lookup_nested_symbol): Fix comment.
3455 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3456 minimal symbols pointing to function descriptors.
3460 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3465 * remote.c (remote_wait_as): Restore signal handler before returning
3466 when GDB gets a notification.
3471 * breakpoint.h (handle_solib_event): Moved function declaration
3473 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3474 (bpstat_stop_status): Pass new argument to handle_solib_event.
3475 * solib.h (update_solib_breakpoints): New function declaration.
3476 (handle_solib_event): Moved function declaration from
3478 * solib.c (update_solib_breakpoints): New function.
3479 (handle_solib_event): Moved function from breakpoint.c.
3480 Updated to call solib_ops->handle_event if not NULL.
3481 * solist.h (target_so_ops): New fields "update_breakpoints" and
3483 * infrun.c (set_stop_on_solib_events): New function.
3484 (_initialize_infrun): Use the above for "set
3485 stop-on-solib-events".
3486 (handle_inferior_event): Pass new argument to handle_solib_event.
3487 * solib-svr4.c (probe.h): New include.
3488 (svr4_free_library_list): New forward declaration.
3489 (probe_action): New enum.
3490 (probe_info): New struct.
3491 (probe_info): New static variable.
3492 (NUM_PROBES): New definition.
3493 (svr4_info): New fields "using_xfer", "probes_table" and
3495 (free_probes_table): New function.
3496 (free_solib_list): New function.
3497 (svr4_pspace_data_cleanup): Free probes table and solib list.
3498 (svr4_copy_library_list): New function.
3499 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3500 (svr4_read_so_list): New parameter "prev_lm".
3501 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3502 (svr4_current_sos): New function.
3503 (probe_and_action): New struct.
3504 (hash_probe_and_action): New function.
3505 (equal_probe_and_action): Likewise.
3506 (register_solib_event_probe): Likewise.
3507 (solib_event_probe_at): Likewise.
3508 (solib_event_probe_action): Likewise.
3509 (solist_update_full): Likewise.
3510 (solist_update_incremental): Likewise.
3511 (disable_probes_interface_cleanup): Likewise.
3512 (svr4_handle_solib_event): Likewise.
3513 (svr4_update_solib_event_breakpoint): Likewise.
3514 (svr4_update_solib_event_breakpoints): Likewise.
3515 (svr4_create_solib_event_breakpoints): Likewise.
3516 (enable_break): Free probes table before creating breakpoints.
3517 Use svr4_create_solib_event_breakpoints to create breakpoints.
3518 (svr4_solib_create_inferior_hook): Free the solib list.
3519 (_initialize_svr4_solib): Initialise
3520 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3524 * target.h (target_ops): New field
3525 "to_augmented_libraries_svr4_read".
3526 (target_augmented_libraries_svr4_read): New macro.
3527 * target.c (update_current_target): Handle
3528 to_augmented_libraries_svr4_read.
3529 * remote.c (remote_state): New field
3530 "augmented_libraries_svr4_read".
3531 (remote_augmented_libraries_svr4_read_feature): New function.
3532 (remote_protocol_features): Add entry for
3533 "augmented-libraries-svr4-read".
3534 (remote_augmented_libraries_svr4_read): New function.
3535 (init_remote_ops): Initialize
3536 remote_ops.to_augmented_libraries_svr4_read.
3544 * objfiles.h (inhibit_section_map_updates): New function
3546 (resume_section_map_updates): Likewise.
3547 (resume_section_map_updates_cleanup): Likewise.
3548 * objfiles.c (objfile_pspace_info): Removed field
3549 "objfiles_changed_p". New fields "new_objfiles_available",
3550 "section_map_dirty" and "inhibit_updates".
3551 (allocate_objfile): Set new_objfiles_available.
3552 (free_objfile): Set section_map_dirty.
3553 (objfile_relocate1): Likewise.
3554 (in_plt_section): Likewise.
3555 (find_pc_section): Update the conditions under which the
3556 section map will be updated.
3557 (inhibit_section_map_updates): New function.
3558 (resume_section_map_updates): Likewise.
3559 (resume_section_map_updates_cleanup): Likewise.
3563 * probe.h (get_probe_argument_count): New declaration.
3564 (evaluate_probe_argument): Likewise.
3565 * probe.c (get_probe_argument_count): New function.
3566 (evaluate_probe_argument): Likewise.
3567 (probe_safe_evaluate_at_pc): Use the above new functions.
3571 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3572 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3573 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3574 target mem reads on optional insns.
3575 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3576 ppc_insns_match_pattern calls.
3577 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3578 Add match for power7 thread safety insns, and new order of
3579 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3580 invocation in comment, and update rest of comment.
3581 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3582 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3583 (ppc64_standard_linkage2_target): Update insn offsets.
3584 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3585 stubs first. Update calls.
3589 * solib.c (solib_find): Don't need dir separator if path has
3594 Revert (indirectly causes a SIGSEGV):
3595 * machoread.c (macho_symfile_read): Assign first cleanup to
3600 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3601 mi-parse.c. Make them static.
3602 (mi_all_values): Likewise.
3603 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3604 mi_parse_print_values. Make it external.
3605 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3606 Remove the declarations.
3607 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3608 * mi/mi-parse.h (mi_parse_print_values): Declare.
3609 * mi/mi-cmd-stack.c: Include mi-parse.h.
3610 (parse_print_values): Remove
3611 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3612 of parse_print_values.
3613 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3618 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3619 (encode_actions): Move code to ...
3620 (all_tracepoint_actions_and_cleanup): ... here. New.
3621 (trace_dump_command): Likewise.
3625 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3629 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3630 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3631 'old_chain' argument. Add 'parser_result' argument.
3632 (gdb_xml_create_parser_and_cleanup): Remove old version.
3633 (gdb_xml_parse_quick): Update.
3634 (xml_process_xincludes): Update.
3635 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3640 * probe.c (collect_probes): Check arguments for NULL before
3641 calling compile_rx_or_error.
3642 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3647 * infrun.c (adjust_pc_after_break): Introduce an outer null
3652 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3656 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3657 for 'old_chain'. Do not check 'head' before processing
3662 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3667 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3668 inner scope. Unconditionally call do_cleanups.
3672 * source.c (find_and_open_source): Call do_cleanups.
3676 * linux-thread-db.c (thread_db_load_search): Unconditionally
3681 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3682 for 'cleanup'; instead use a later one.
3686 * python/py-breakpoint.c (bppy_get_commands): Use
3687 explicit, unconditional return.
3688 * python/py-frame.c (frapy_read_var): Likewise.
3689 * python/python.c (gdbpy_decode_line): Likewise.
3693 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3694 do_cleanups on all return paths.
3698 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3702 * stabsread.c (read_struct_type): Call do_cleanups along
3707 * mips-linux-tdep.c: Adjust formatting throughout.
3711 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3712 along all return paths.
3716 * symfile.c (find_separate_debug_file): Call do_cleanups
3717 along all return paths.
3721 * symtab.c (search_symbols): Introduce a null cleanup for
3726 * python/py-value.c (valpy_binop): Call do_cleanups before
3731 * python/py-prettyprint.c (print_children): Remove extra
3736 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3741 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3742 along all return paths.
3746 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3751 * varobj.c (c_value_of_root): Call do_cleanups along all
3756 * tracepoint.c (trace_dump_command): Unconditionally call
3761 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3762 do_cleanups earlier.
3766 * machoread.c (macho_symfile_read): Assign first cleanup to
3771 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3775 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3779 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3780 call discard_cleanups.
3781 (inf_ptrace_attach): Likewise.
3785 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3787 (mips_initialize): Likewise.
3788 (common_open): Call do_cleanups.
3792 * utils.c (internal_vproblem): Call do_cleanups.
3796 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3800 * cli/cli-script.c (setup_user_args): Don't return after error.
3804 * somread.c (som_symtab_read): Call do_cleanups.
3808 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3812 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3813 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3814 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3815 * source.c (show_substitute_path_command): Call do_cleanups.
3816 (unset_substitute_path_command, set_substitute_path_command):
3818 * symfile.c (load_command): Call do_cleanups.
3822 * contrib/cleanup_check.py: New file.
3823 * contrib/gcc-with-excheck: Add option parsing.
3827 * windows-nat.c (windows_delete_thread): Add missing space
3832 * inferior.c (top level): Include tilde.h.
3833 (add_inferior_command): Call tilde_expand on the value of 'exec'
3839 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3841 (encode_actions): Likewise.
3842 * remote.c (remote_download_tracepoint): Caller update.
3843 * tracepoint.h (encode_actions): Update declaration.
3847 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3852 * remote.c (remote_check_symbols): Remove unused parameter
3855 (remote_start_remote, remote_new_objfile): Caller update.
3859 * mi/mi-cmds.c (mi_cmds): Define MI command
3860 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3865 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3866 (remote_insert_watchpoint, remote_remove_watchpoint)
3867 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3868 (remote_verify_memory, compare_sections_command)
3869 (remote_search_memory): Set the general process/thread on the
3874 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3875 (_initialize_aarch64_tdep): Don't call
3876 initialize_tdesc_aarch64_without_fpu.
3877 * features/Makefile (WHICH): Remove reference to
3878 aarch64-without-fpu.
3879 * features/aarch64-without-fpu.c: Delete file.
3880 * regformats/aarch64-without-fpu.dat: Delete file.
3884 * tracepoint.c (stringify_collection_list): Remove parameter
3886 (encode_actions): Caller update. Remove local variables.
3890 * tracepoint.c (TFILE_PID): Remove.
3891 (tfile_open): Don't add thread and inferior.
3892 (tfile_close): Don't set 'inferior_ptid'. Don't call
3893 exit_inferior_silent.
3894 (tfile_thread_alive): Remove.
3895 (init_tfile_ops): Don't set field 'to_thread_alive' of
3900 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3904 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3905 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3906 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3907 Only define if HAVE_SOCKETS is defined.
3908 * configure.ac: Check for sys/socket.h.
3909 * config.in, configure: Regenerate.
3913 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3914 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3915 printing uint32_t variables.
3919 * NEWS: Mention GDBserver range stepping support.
3924 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3926 * infcmd.c (step_once, until_next_command): Enable range stepping.
3927 * infrun.c (displaced_step_prepare): Disable range stepping.
3928 (resume): Disable range stepping if stepping over a breakpoint or
3929 we have software watchpoints. If range stepping is enabled,
3930 assert the thread is in the stepping range.
3931 (clear_proceed_status_thread): Clear may_range_step.
3932 (handle_inferior_event): Disable range stepping as soon as we know
3933 the thread that hit the event. Re-enable it whenever we're going
3934 to step with a step range.
3935 * remote.c (struct vCont_action_support) <r>: New field.
3936 (use_range_stepping): New global.
3937 (remote_vcont_probe): Handle 'r' action.
3938 (append_resumption): Append an 'r' action if the thread may range
3940 (show_range_stepping): New function.
3941 (set_range_stepping): New function.
3942 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3943 'set range-stepping' and 'show range-stepping' commands.
3944 * NEWS: Mention range stepping, the new vCont;r action, and the
3945 new "set/show range-stepping" commands.
3950 * remote.c (struct vCont_action_support): New struct.
3951 (struct remote_state) <support_vCont_t>: Remove field.
3952 <vCont_actions_support>: New field.
3953 (remote_vcont_probe, remote_stop_ns): Update.
3958 * gdbthread.h (pc_in_thread_step_range): New declaration.
3959 * thread.c (pc_in_thread_step_range): New function.
3960 * infrun.c (handle_inferior_event): Use it.
3964 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3969 * ada-lang.c (is_known_support_routine): Add explicit free of
3970 'func_name' from find_frame_funname.
3971 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3972 for func_name from find_frame_funname.
3973 * python/py-frame.c (frapy_name): Add explicit free of
3974 'name' from find_frame_funname.
3975 * stack.c (find_frame_funname): Add comment explaining that
3976 funcp must be freed by the caller.
3977 Return copy of symbol names instead of pointers.
3978 (print_frame): Add a cleanup for 'funname' from
3980 * stack.h (find_frame_funname): Remove "const" from
3981 'funname' parameter.
3986 * c-valprint.c (c_value_print): Use value_addr for
3987 references. Convert back to reference type with value_ref.
3991 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3992 unloaded DLL, it will be done by handle_solib_event. See
3993 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3998 * ui-out.c: Create typedef ui_out_level_p and define vector
3999 operations for that type.
4000 (struct ui_out): Use a vector instead of an array.
4001 (current_level): Return level from a vector.
4002 (push_level): Create a level in a vector.
4003 (pop_level): Delete a level in a vector.
4004 (ui_out_new): Create initial level zero level, and store in a
4006 (ui_out_destroy): Add vector cleanup.
4010 * python/python-internal.h (gdb_Py_DECREF): Tag with
4011 "ARI: editCase function".
4015 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4019 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4020 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4021 * python/py-utils.c (py_decref): Don't check for NULL before
4026 * python/py-utils.c (py_decref): Remove extra braces.
4027 (gdb_pymodule_addobject): Remove extra braces.
4028 * python-internal.h (gdb_Py_DECREF): New static inline function.
4029 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4033 * breakpoints.c (detach_breakpoints): Do not
4034 detach breakpoints locations with loc_type bp_loc_other.
4038 Workaround Python 2.6.
4039 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4044 Code cleanup: constification.
4045 * solib.c (solib_ops): Make return type and ops variable type const.
4046 (set_solib_ops): Make the new_ops parameter and ops variable const.
4047 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4048 (solib_add, solib_keep_data_in_core, clear_solib)
4049 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4050 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4052 * solib.h (set_solib_ops): Make the new_ops parameter const.
4056 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4058 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4059 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4060 (SYSTEM_GDBINIT_FILES): New variables.
4061 (all): Add stamp-system-gdbinit.
4062 (stamp-system-gdbinit): New rule.
4063 (clean-system-gdbinit, install-system-gdbinit)
4064 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4065 (install-only): Add dependency on install-system-gdbinit.
4066 (uninstall): Add dependency on uninstall-system-gdbinit.
4067 (clean): Add dependency on clean-system-gdbinit.
4068 * system-gdbinit/elinos.py: New file.
4069 * system-gdbinit/wrs-linux.py: New file.
4073 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4077 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4078 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4079 * mi/mi-cmd-break.c (ctype.h): New include.
4080 (gdb_obstack.h): New include.
4081 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4082 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4083 (mi_cmd_dprintf_insert): New.
4084 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4085 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4089 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4093 * python/py-value.c (valpy_get_dynamic_type): Simplify
4094 dynamic_type assignment. Use Py_XINCREF.
4098 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4102 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4103 (gdbpy_selected_frame): Move object-construction code
4108 * python/py-arch.c (gdbpy_initialize_arch): Use
4109 gdb_pymodule_addobject.
4110 * python/py-block.c (gdbpy_initialize_blocks): Use
4111 gdb_pymodule_addobject.
4112 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4113 gdb_pymodule_addobject.
4114 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4115 gdb_pymodule_addobject.
4116 * python/py-event.c (gdbpy_initialize_event_generic): Use
4117 gdb_pymodule_addobject.
4118 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4119 gdb_pymodule_addobject.
4120 * python/py-evts.c (add_new_registry): Use
4121 gdb_pymodule_addobject.
4122 (gdbpy_initialize_py_events): Likewise.
4123 * python/py-finishbreakpoint.c
4124 (gdbpy_initialize_finishbreakpoints): Use
4125 gdb_pymodule_addobject.
4126 * python/py-frame.c (gdbpy_initialize_frames): Use
4127 gdb_pymodule_addobject.
4128 * python/py-function.c (gdbpy_initialize_functions): Use
4129 gdb_pymodule_addobject.
4130 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4131 gdb_pymodule_addobject.
4132 * python/py-infthread.c (gdbpy_initialize_thread): Use
4133 gdb_pymodule_addobject.
4134 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4135 gdb_pymodule_addobject.
4136 * python/py-param.c (gdbpy_initialize_parameters): Use
4137 gdb_pymodule_addobject.
4138 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4139 gdb_pymodule_addobject.
4140 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4141 gdb_pymodule_addobject.
4142 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4143 gdb_pymodule_addobject.
4144 * python/py-type.c (gdbpy_initialize_types): Use
4145 gdb_pymodule_addobject.
4146 * python/py-utils.c (gdb_pymodule_addobject): New function.
4147 * python/py-value.c (gdbpy_initialize_values): Use
4148 gdb_pymodule_addobject.
4149 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4150 * python/python.c (_initialize_python): Use
4151 gdb_pymodule_addobject.
4155 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4156 * python/py-param.c (get_set_value, get_show_value): Use
4158 * python/python.c (start_type_printers, apply_type_printers):
4159 Use explicit decrefs.
4163 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4168 * python/python.c (gdbpy_run_events): Decref the result
4169 of PyObject_CallObject.
4173 * python/py-symtab.c (set_sal): Use
4174 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4175 (symtab_and_line_to_sal_object): Update.
4179 * python/py-param.c (compute_enum_values): Decref 'item'.
4183 * mi/mi-main.c: Include python-internal.h.
4184 (mi_cmd_list_features): Check gdb_python_initialized.
4185 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4186 (python_inferior_exit, python_new_objfile, add_thread_object)
4187 (delete_thread_object, py_free_inferior): Check
4188 gdb_python_initialized.
4189 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4190 gdb_python_initialized.
4191 * python/py-type.c (save_objfile_types): Check
4192 gdb_python_initialized.
4193 * python/python-internal.h (gdb_python_initialized): Declare.
4194 * python/python.c (ensure_python_env): Throw exception if
4195 Python not initialized.
4196 (before_prompt_hook, source_python_script_for_objfile)
4197 (start_type_printers, apply_type_printers,
4198 free_type_printers): Check gdb_python_initialized.
4199 * varobj.c (varobj_get_display_hint)
4200 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4201 (install_new_value_visualizer, varobj_set_visualizer)
4202 (value_get_print_value): Check gdb_python_initialized.
4206 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4208 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4209 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4211 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4213 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4215 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4217 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4218 init function to return 'int'.
4219 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4220 Return 'int'. Check errors.
4221 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4223 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4224 Return 'int'. Check errors.
4225 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4227 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4229 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4231 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4233 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4235 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4237 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4239 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4241 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4243 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4245 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4247 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4249 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4251 * python/python-internal.h (gdbpy_initialize_auto_load,
4252 gdbpy_initialize_values, gdbpy_initialize_frames,
4253 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4254 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4255 gdbpy_initialize_blocks, gdbpy_initialize_types,
4256 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4257 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4258 gdbpy_initialize_finishbreakpoints,
4259 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4260 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4261 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4262 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4263 gdbpy_initialize_signal_event,
4264 gdbpy_initialize_breakpoint_event,
4265 gdbpy_initialize_continue_event,
4266 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4267 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4268 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4269 * python/python.c (gdb_python_initialized): New global.
4270 (gdbpy_initialize_events): Return 'int'. Check errors.
4271 (_initialize_python): Check errors. Set
4272 gdb_python_initialized.
4276 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4277 Decref the reslut of PyObject_CallMethod.
4281 * python/py-event.c (gdbpy_initialize_event_generic): Return
4282 early if PyType_Ready fails.
4286 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4287 as 'default' in the switch.
4291 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4292 get_addr_from_python calls out of TRY_CATCH.
4293 (infpy_write_memory, infpy_search_memory): Likewise.
4294 * python/py-utils.c (get_addr_from_python): Return negative
4295 value on error. Use TRY_CATCH.
4296 * python/python-internal.h (get_addr_from_python): Use
4297 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4301 * python/py-event.c (evpy_emit_event): Decref the
4302 result of PyObject_CallFunctionObjArgs.
4306 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4311 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4315 * python/py-event.h (gdbpy_initialize_event_generic): Use
4316 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4317 * python/py-evts.c (add_new_registry): Use
4318 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4319 * python/python-internal.h
4320 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4324 * python/py-arch.c (archpy_disassemble): Update.
4325 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4326 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4327 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4328 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4330 (GDB_PY_HANDLE_EXCEPTION): Update.
4331 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4335 * python/python-internal.h (events_object_type): Remove.
4339 * python/py-event.h (evpy_emit_event): Use
4340 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4341 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4346 * py-evtregistry.c (create_event_object): Decref
4347 eventregistry_object if PyList_New fails.
4351 * py-cmd.c (gdbpy_string_to_argv): Check result of
4356 * python/python.c (before_prompt_hook): Add cleanup to
4361 * python/py-function.c (fnpy_init): Decref result of
4362 PyObject_GetAttrString.
4366 * python/py-threadevent.c (get_event_thread): Use
4367 CPYCHECKER_RETURNS_BORROWED_REF.
4368 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4370 (pspace_to_pspace_object, objfile_to_objfile_object)
4371 (find_thread_object): Use it.
4375 * python/py-arch.c (arch_object_type): Use
4376 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4377 * python/py-block.c (block_syms_iterator_object_type):
4378 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4379 * python/py-bpevent.c (breakpoint_event_object_type):
4380 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4381 * python/py-cmd.c (cmdpy_object_type): Use
4382 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4383 * python/py-continueevent.c (continue_event_object_type):
4384 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4385 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4386 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4387 * python/py-events.h (thread_event_object_type):
4388 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4389 * python/py-evtregistry.c (eventregistry_object_type): Use
4390 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4391 * python/py-exitedevent.c (exited_event_object_type):
4392 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4393 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4394 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4395 * python/py-function.c (fnpy_object_type): Use
4396 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4397 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4398 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4399 * python/py-infthread.c (thread_object_type): Use
4400 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4401 * python/py-lazy-string.c (lazy_string_object_type):
4402 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4403 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4404 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4405 * python/py-objfile.c (objfile_object_type): Use
4406 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4407 * python/py-param.c (parmpy_object_type):
4408 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4409 * python/py-progspace.c (pspace_object_type):
4410 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4411 * python/py-signalevent.c (signal_event_object_type):
4412 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4413 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4414 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4415 * python/py-type.c (type_object_type, field_object_type)
4416 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4417 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4419 (value_object_type, block_object_type, symbol_object_type)
4420 (event_object_type, stop_event_object_type, breakpoint_object_type)
4421 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4425 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4426 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4430 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4432 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4433 reading_dwo_directly.
4434 (struct signatured_type): New member dwo_unit.
4435 (struct die_reader_specs): New member comp_dir.
4436 (create_signatured_type_table_from_index): Use malloc for
4437 all_type_units instead of objfile's obstack.
4438 (create_all_type_units): Ditto.
4439 (fill_in_sig_entry_from_dwo_entry): New function.
4440 (add_type_unit): New function.
4441 (lookup_dwo_signatured_type): New function.
4442 (lookup_dwp_signatured_type): New function.
4443 (lookup_signatured_type): New arg cu. All callers updated.
4444 (init_cu_die_reader): Initialize comp_dir.
4445 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4446 Change assert of matching type signatures to call error on mismatch.
4447 (lookup_dwo_unit): Add assert.
4448 (init_tu_and_read_dwo_dies): New function.
4449 (init_cutu_and_read_dies): Call it.
4450 (build_type_unit_groups): Handle case of no type unit groups created.
4451 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4452 (lookup_dwo_cutu): Tweak complaint.
4453 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4454 (dwarf2_per_objfile_free): Free all_type_units.
4458 * windows-nat.c (handle_unload_dll): Add missing empty line.
4462 * dwarf2read.c (prototyped_function_p): New function.
4463 (read_subroutine_type): Use it.
4467 * rs6000-aix-tdep.c: De-indent some example code provided
4472 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4473 region is ok for a hardware watchpoint using the new ptrace interface
4478 * NEWS: Mention new maintenance commands check-symtabs, and
4479 expand-symtabs, and renamed check-psymtabs.
4480 * psymtab.c (maintenance_check_psymtabs): Renamed from
4481 maintenance_check_symtabs. Only process already-expanded symbol
4483 (_initialize_psymtab): Update.
4484 * symmisc.c (maintenance_check_symtabs): New function.
4485 (maintenance_expand_name_matcher): New function
4486 (maintenance_expand_file_matcher): New function
4487 (maintenance_expand_symtabs): New function.
4488 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4493 * python/py-inferior.c (infpy_read_memory): Don't call
4494 PyErr_SetString if PyObject_New fails.
4495 * python/py-frame.c (frame_info_to_frame_object): Don't call
4496 PyErr_SetString if PyObject_New fails.
4500 * acinclude.m4: Add check for dlopen in libdl.
4501 * configure.ac: Ditto.
4502 * configure: Regenerate.
4506 * frame.c (frame_stash): Convert to htab.
4507 (frame_addr_hash): New function.
4508 (frame_addr_hash_eq): New function.
4509 (frame_stash_create): Convert function to create
4511 (frame_stash_add): Convert function to add an entry to a hash
4513 (frame_stash_find): Convert function to search the hash table.
4514 (frame_stash_invalidate): Convert function to empty the hash
4516 (get_frame_id): Only add to stash if a frame_id is created.
4517 (_initialize_frame): Call frame_stash_create.
4521 * configure.ac: Ensure MIG is available when building for GNU Hurd
4523 * configure: Regenerate.
4527 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4531 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4532 all cleanups are done before returning from this function.
4536 * utils.h: #include "exceptions.h".
4537 (enum errors): Remove partial declaration.
4541 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4542 * gdbarch.h, gdbarch.c: Regenerate.
4543 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4546 * rs6000-aix-tdep.h: New file.
4547 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4548 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4550 (struct field_info, struct ld_info_desc): New types.
4551 (ld_info32_desc, ld_info64_desc): New static constants.
4552 (struct ld_info): New type.
4553 (rs6000_aix_extract_ld_info): New function.
4554 (rs6000_aix_shared_library_to_xml): Likewise.
4555 (rs6000_aix_ld_info_to_xml): Likewise.
4556 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4557 (rs6000_aix_init_osabi): Add call to
4558 set_gdbarch_core_xfer_shared_libraries_aix.
4559 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4560 Remove "xml-utils.h" include.
4561 (LdInfo): Delete typedef.
4562 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4564 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4565 Adjust code accordingly.
4566 (rs6000_core_ldinfo): Delete, folded into
4567 rs6000_aix_core_xfer_shared_libraries_aix.
4568 (rs6000_xfer_shared_library): Delete.
4569 (rs6000_xfer_shared_libraries): Reimplement.
4573 * record.c (record_goto_cmdlist): New.
4574 (cmd_record_goto): Split into this ...
4575 (cmd_record_goto_begin): ... this
4576 (cmd_record_goto_end): ... and this.
4577 (_initialize_record): Change "record goto" to prefix command.
4578 Add commands for "record goto begin" and "record goto end".
4579 Add an alias for "record goto start" to "record goto begin".
4583 * linespec.c (convert_linespec_to_sals): New comment for
4584 SOURCE_FILENAME assignment.
4588 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4593 * eval.c (parse_and_eval_long): Make 'exp' const.
4594 * value.h (parse_and_eval_long): Update.
4598 * ui-file.c (gdb_fopen): Make arguments const.
4599 * ui-file.h (gdb_fopen): Make arguments const.
4603 * remote.c (remote_set_trace_notes): Make arguments const.
4604 * target.c (update_current_target): Update cast.
4605 * target.h (to_set_trace_notes): Make arguments const.
4609 * go32-nat.c (go32_terminal_info): Make 'args' const.
4610 * inferior.h (child_terminal_info): Update.
4611 * inflow.c (child_terminal_info): Make 'args' const.
4612 * target.c (default_terminal_info): Make 'args' const.
4613 (debug_to_terminal_save_ours): Likewise.
4614 * target.h (struct target_ops) <to_terminal_info>: Make argument
4619 * gcore.c (create_gcore_bfd): Make 'filename' const.
4620 * gcore.h (create_gcore_bfd): Make 'filename' const.
4621 * record-full.c (record_full_save): Make 'recfilename' const.
4622 * target.c (target_save_record): Make 'filename' const.
4623 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4625 (target_save_record): Likewise.
4630 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4631 ranges section has been read.
4636 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4637 STRUCTOP_PTR>: Return a not_lval value for
4638 EVAL_AVOID_SIDE_EFFECTS.
4639 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4640 for EVAL_AVOID_SIDE_EFFECTS.
4644 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4645 floating point registers to register type before storing
4647 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4653 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4655 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4657 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4658 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4659 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4660 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4666 * configure: Rebuild.
4667 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4672 * remote.c (_initialize_remote): Fix spelling of
4673 qXfer:traceframe-info:read packet in packet config command.
4679 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4680 "QTro" at start of packet.
4684 * solib-aix.c (solib_aix_relocate_section_addresses):
4685 For the .bss section action, apply the same offset as
4690 * solib-aix.c (solib_aix_relocate_section_addresses):
4691 Remove FIXME comment.
4696 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4697 New functions, directly copied from sparc-sol-thread.c.
4698 * sparc-sol-thread.c: Delete.
4699 * configure.ac: Remove code handling sparc-solaris-thread.c.
4700 * configure: Regenerate.
4704 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4706 (backtrace_command): Add "no-filters" option parsing.
4707 (_initialize_stack): Alter help to reflect "no-filters" option.
4708 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4709 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4710 (py-frame.o): Add target
4711 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4713 * python/python.h: Add new frame filter constants, and flag enum.
4714 (apply_frame_filter): Add definition.
4715 * python/python.c (apply_frame_filter): New non-Python
4717 * python/py-utils.c (py_xdecref): New function.
4718 (make_cleanup_py_xdecref): Ditto.
4719 * python/py-objfile.c: Declare frame_filters dictionary.
4720 (objfpy_dealloc): Add frame_filters dealloc.
4721 (objfpy_new): Initialize frame_filters attribute.
4722 (objfile_to_objfile_object): Ditto.
4723 (objfpy_get_frame_filters): New function.
4724 (objfpy_set_frame_filters): New function.
4725 * python/py-progspace.c: Declare frame_filters dictionary.
4726 (pspy_dealloc): Add frame_filters dealloc.
4727 (pspy_new): Initialize frame_filters attribute.
4728 (pspacee_to_pspace_object): Ditto.
4729 (pspy_get_frame_filters): New function.
4730 (pspy_set_frame_filters): New function.
4731 * python/py-framefilter.c: New file.
4732 * python/lib/gdb/command/frame_filters.py: New file.
4733 * python/lib/gdb/frames.py: New file.
4734 * python/lib/gdb/__init__.py: Initialize global frame_filters
4736 * python/lib/gdb/FrameDecorator.py: New file.
4737 * python/lib/gdb/FrameIterator.py: New file.
4738 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4739 * mi/mi-cmds.h: Declare.
4740 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4741 --no-frame-filter logic, and Python frame filter logic.
4742 (stack_enable_frame_filters): New function.
4743 (parse_no_frame_option): Ditto.
4744 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4746 (mi_cmd_stack_list_locals): Ditto.
4747 (mi_cmd_stack_list_args): Ditto.
4748 (mi_cmd_stack_list_variables): Ditto.
4749 * NEWS: Add frame filter note.
4753 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4754 All callers updated.
4755 (syms_from_objfile): Ditto. Make static.
4756 (symbol_file_add_with_addrs): Renamed from
4757 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4758 num_offsets. All callers updated.
4759 * symfile.h (syms_from_objfile): Delete.
4761 * symfile.c (decrement_reading_symtab): Add assert.
4762 (increment_reading_symtab): Ditto.
4766 * source.c (forward_search_command): Replace call to getc
4768 (reverse_search_command): Likewise.
4772 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4777 * sol-thread.c (info_cb): Factorize the code a little.
4781 * sol-thread.c (info_cb): Rework the output of the "maintenance
4782 info sol-threads" command a bit.
4786 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4787 Replace ti.ti_startfunc by ti.ti_pc.
4791 * solib-aix.c (solib_aix_free_library_list): New function
4792 for the case where HAVE_LIBEXPAT is not defined.
4796 PR breakpoints/15413:
4797 * breakpoint.c (condition_completer): Simplify the code to
4798 disconsider multiple locations of breakpoints when completing the
4799 "condition" command.
4803 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4804 instead of <sys/wait.h>.
4808 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4809 trailing new line from warning message.
4813 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4814 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4818 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4819 error message (ARI fix).
4823 * features/library-list-aix.dtd: Replace library-list by
4825 * rs6000-nat.c: Replace library-list by library-list-aix
4827 * solib-aix.c: Likewise.
4831 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4832 Renames TARGET_OBJECT_AIX_LIBRARIES.
4833 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4834 TARGET_OBJECT_LIBRARIES_AIX throughout.
4835 * solib-aix.c: Likwise.
4839 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4840 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4844 * solib-dsbt.c (enable_break): Declare.
4845 (dsbt_current_sos): Remove call to enable_break2.
4846 (enable_break2): Rename to enable_break. Set solib breakpoint
4847 on '_dl_debug_state'.
4848 (enable_break): Remove.
4852 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4853 debug state prior to replicating existing hardware watchpoints or
4858 * gcore.c (gcore_create_callback): Ignore sections with
4859 separate_debug_objfile_backlink != NULL.
4866 Based on the nios2-elf port from Altera Corporation.
4868 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4870 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4871 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4872 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4873 * nios2-tdep.h: New.
4874 * nios2-tdep.c: New.
4875 * nios2-linux-tdep.c: New.
4876 * features/Makefile (WHICH): Add nios2-linux.
4877 (nios2-linux-expedite): Set.
4878 * features/nios2-cpu.xml: New.
4879 * features/nios2.xml: New.
4880 * features/nios2-linux.xml: New.
4881 * features/nios2.c: New (autogenerated).
4882 * features/nios2-linux.c: New (autogenerated).
4883 * regformats/nios2-linux.dat: New (autogenerated).
4884 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4889 * symfile.c: Whitespace cleanup.
4891 * solist.h (struct target_so_ops): New member clear_so.
4892 * solib-svr4.c (svr4_clear_so): New function.
4893 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4894 * solib.c (clear_so): Renamed from free_so_symbols.
4895 All callers updated. Call target clear_so if it exists.
4899 * ada-lang.c (ada_value_primitive_packed_val): Don't
4901 * value.c (set_value_parent): Incref the new parent and decref
4903 (value_copy, value_primitive_field): Use set_value_parent.
4907 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4908 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4910 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4911 * dwarf2read.c (write_constant_as_bytes)
4912 (dwarf2_fetch_constant_bytes): New functions.
4916 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4918 (dwarf2_const_value_attr): Update.
4922 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4923 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4924 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4929 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4934 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4935 * stabsread.h (process_one_symbol): Update declaration.
4936 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4937 * elfread.c (elf_symfile_relocate_probe): Ditto.
4938 * psymtab.c (relocate_psymtabs): Ditto.
4939 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4940 (objfile_relocate): Ditto.
4941 * objfiles.h (objfile_relocate): Update declaration.
4942 * symfile.c (relative_addr_info_to_section_offsets): Constify
4944 (default_symfile_offsets): Ditto.
4945 (syms_from_objfile_1): Constify offsets parameter.
4946 (syms_from_objfile): Ditto.
4947 (symbol_file_add_with_addrs_or_offsets): Ditto.
4948 (symfile_map_offsets_to_segments): Constify data parameter.
4949 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4950 delta parameters of member relocate.
4951 (struct sym_probe_fns): Constify new_offsets,
4952 delta parameters of member sym_relocate_probe.
4953 (struct sym_fns): Constify section_addr_info parameter of member
4955 (relative_addr_info_to_section_offsets): Update declaration.
4956 (default_symfile_offsets): Ditto.
4957 (syms_from_objfile): Ditto.
4958 (symfile_map_offsets_to_segments): Ditto.
4960 * symfile.c (syms_from_objfile_1): Use correct section count when
4961 objfile->sf == NULL.
4965 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4969 * psympriv.h (struct partial_symtab): Augment comment for member
4974 Reimplement shared library support on ppc-aix...
4975 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4976 * features/library-list-aix.dtd: New file.
4977 * solib-aix.h, solib-aix.c: New file.
4978 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4979 (rs6000_find_toc_address_hook): Delete.
4980 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4981 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4982 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4984 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4985 (vmap_symtab, fixup_breakpoints): Delete.
4986 (rs6000_xfer_shared_libraries): New function.
4987 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4988 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4989 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4990 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4991 (rs6000_xfer_shared_library): New function.
4992 (find_toc_address): Delete.
4993 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4994 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4995 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4996 before creating minimal symbol. Adjust function description
4998 (scan_xcoff_symtab): Replace call to
4999 prim_record_minimal_symbol_and_info by call to
5000 record_minimal_symbol.
5001 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5002 around default_symfile_offsets.
5003 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5004 powerpc-aix targets.
5005 * config/rs6000/nm-rs6000.h: Delete.
5006 * config/powerpc/aix.mh (NAT_FILE): Delete.
5007 (NATDEPFILES): Remove xcoffsolib.o.
5008 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5009 (ALL_TARGET_OBS): Add solib-aix.o.
5010 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5011 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5012 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5013 * xcoffsolib.h, xcoffsolib.c: Delete.
5015 * solib.c (reload_shared_libraries): Remove reference to
5016 SOLIB_CREATE_INFERIOR_HOOK.
5017 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5018 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5019 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5021 * corelow.c (deprecated_core_resize_section_table): Delete.
5022 * exec.c: Remove include of xcoffsolib.h".
5023 (map_vmap, vmap): Delete.
5024 (exec_close_1): Remove references to vmap.
5025 (exec_file_attach): Remove vmap handling code, and reference
5026 to DEPRECATED_IBM6000_TARGET.
5027 (bfdsec_to_vmap): Delete.
5028 (exec_files_info): Remove block of code handling VMAP.
5029 * infcmd.c (post_create_inferior): Remove reference to
5030 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5031 * infrun.c (follow_exec): Remove reference to
5032 SOLIB_CREATE_INFERIOR_HOOK.
5033 * stack.c (print_frame): Remove reference to PC_SOLIB.
5034 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5035 (dsbt_relocate_main_executable): Likewise.
5036 * solib-frv.c (frv_current_sos): Likewise.
5040 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5041 to target_write_memory and target_read_memory.
5045 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5046 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5050 * darwin-nat.c: Replace all "%x" instances in format strings
5051 into "0x%x" throughout.
5055 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5056 gdb_assert by call to MACH_CHECK_ERROR.
5057 (darwin_attach_pid): Raise an error rather than a failed
5058 assertion when various system calls failed. Report a warning
5059 instead of raising a failed assertion when PREV_NOT is not NULL
5060 after call to mach_port_request_notification.
5061 (darwin_ptrace_me): Raise an error rather than a failed
5062 assertion when read returns nonzero.
5066 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5070 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5074 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5075 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5076 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5077 a stale cleanup. Fix double free of NAME.
5081 * windows-nat.c (windows_delete_thread): Accept an additional
5082 argument, the thread's exit code, and announce thread death when
5083 print_thread_events is non-zero and we are deleting a thread that
5084 is not the main thread.
5085 (get_windows_debug_event): Pass thread exit code to
5086 windows_delete_thread.
5090 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5091 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5092 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5093 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5094 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5095 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5096 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5097 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5098 (gdbarch_tdep): New struct.
5099 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5101 (v850e3v5_register_name): New function.
5102 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5103 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5104 code handling the struct return conventions for the RH850 ABI.
5106 (v850_eight_byte_align_p): New function.
5107 (v850_push_call_dummy): Push structs by value, not by reference
5108 for the RH850 ABI. Add support for eight byte alignment.
5109 (v850_dbtrap_breakpoint_from_pc): New function.
5110 (v850_gdbarch_init): Add ABI detection code. Register
5111 v850e3v5_register_name for the v850e3v5 architecture. Set the
5112 number of registers for v850e3v5. Register
5113 v850_dbtrap_breakpoint_from_pc as appropriate.
5114 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5118 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5119 of bfd_count_sections.
5120 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5121 * symfile.c (default_symfile_offsets): Ditto.
5122 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5123 one entry, not bfd_count_sections entries.
5127 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5128 `save' and `restore' register groups. Don't include SPL
5129 or SPH in these groups.
5130 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5131 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5132 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5133 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5134 dwarf2_append_unwinders().
5138 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5139 ignore SIGINT and SIGTRAP in case these internal signals are
5144 * darwin-nat.c (darwin_read_write_inferior): Change types
5145 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5146 of copy_count to "mach_msg_type_number_t".
5147 (darwin_read_dyld_info): Change type of parameter
5148 rdaddr to "gdb_byte *".
5152 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5153 of &info->load_map from "char *" to "gdb_byte *".
5157 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5158 from "char *" to "gdb_byte *".
5159 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5163 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5164 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5165 DWO stub. If DWO isn't found, just use stub.
5166 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5168 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5169 calling init_cutu_and_read_dies.
5173 * target-descriptions.c (maint_print_c_tdesc_cmd):
5174 Add case to parse structures as register types and
5179 * MAINTAINERS (Write After Approval): Add myself to the list.
5183 * sol-thread.c (rw_common): Change type of parameter "buf"
5185 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5186 rw_common to "gdb_byte *" instead of "char *".
5190 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5191 of local variable msym to const struct bound_minimal_symbol.
5192 Adjust use accordingly.
5193 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5197 * i386gnu-nat.c (CREG_OFFSET): New macro.
5198 (creg_offset): New array.
5199 (CREG_ADDR): Use creg_offset instead of reg_offset.
5203 * mep-tdep.c (mep_write_pc): Delete.
5204 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5205 Add call to set_gdbarch_pc_regnum.
5209 * common/filestuff.c: Replace #include <dirent.h> by
5210 #include "gdb_dirent.h".
5214 * common/filestuff.c: Replace #include <sys/stat.h> by
5215 #include "gdb_stat.h".
5219 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5220 editCase function rule.
5221 (get_DW_AT_signature_type): Likewise.
5225 * m32r-tdep.c (m32r_write_pc): Delete.
5226 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5227 Add call to set_gdbarch_pc_regnum.
5231 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5235 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5239 * solib-dsbt.c (fetch_loadmap): Re-indent.
5240 (displacement_from_map, enable_break2): Likewise.
5241 (dsbt_relocate_section_addresses): Likewise.
5250 * dwarf2read.c (process_full_comp_unit): Always create a static
5255 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5256 to loc->cmd_bytecode.
5260 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5264 * tracepoint.c (trace_save): Call the writer's start method.
5269 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5274 * common/filestuff.c: Check USE_WIN32API before including
5276 (HAVE_F_GETFD): New define.
5277 (mark_cloexec): Check HAVE_F_GETFD.
5278 (gdb_open_cloexec): Change 'mode' to unsigned long.
5279 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5280 (gdb_pipe_cloexec): Check HAVE_PIPE.
5281 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5287 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5292 * breakpoint.c (dprintf_print_recreate): New.
5293 (save_breakpoints): Let it not save dprintf commands.
5294 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5299 * Makefile.in (SFILES): Add filestuff.c
5300 (COMMON_OBS): Add filestuff.o.
5301 (filestuff.o): New target.
5302 * auto-load.c (auto_load_objfile_script_1): Use
5304 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5305 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5306 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5307 * common/agent.c (gdb_connect_sync_socket): Use
5309 * common/filestuff.c: New file.
5310 * common/filestuff.h: New file.
5311 * common/linux-osdata.c (linux_common_core_of_thread)
5312 (command_from_pid, commandline_from_pid, print_source_lines)
5313 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5314 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5316 * common/linux-procfs.c (linux_proc_get_int)
5317 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5318 * config.in, configure: Rebuild.
5319 * configure.ac: Don't check for sys/socket.h. Check for
5321 * corelow.c (core_open): Use gdb_open_cloexec.
5322 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5323 * fork-child.c (fork_inferior): Call close_most_fds.
5324 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5325 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5326 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5327 Use gdb_fopen_cloexec.
5328 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5330 (linux_async_pipe): Use gdb_pipe_cloexec.
5331 * remote-fileio.c (remote_fileio_func_open): Use
5333 * remote.c (remote_file_put, remote_file_get): Use
5335 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5337 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5338 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5339 * solib.c (solib_find): Use gdb_open_cloexec.
5340 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5341 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5342 (tfile_open): Use gdb_open_cloexec.
5343 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5344 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5345 * xml-support.c (xml_fetch_content_from_file): Use
5347 * main.c (captured_main): Call notice_open_fds.
5351 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5352 'char *' to 'gdb_byte *'.
5353 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5358 * infrun.c: Fix typo in comment.
5362 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5367 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5368 'char *' to 'gdb_byte *'. Cast the return value of
5369 'bt_ctf_get_char_array' to 'gdb_byte *'.
5373 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5375 * configure: Regenerate.
5379 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5384 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5385 Change type of 'myaddr' parameter to gdb_byte pointer.
5386 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5387 to 'long long' pointer instead of to 'unsigned long long'.
5388 (monitor_write_memory_block, monitor_read_memory_single)
5389 (monitor_read_memory): Change type of 'myaddr' parameter to
5394 * record.c (validate_history_size): Make parameter 'setting'
5399 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5404 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5409 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5410 * ada-tasks.c (read_fat_string_value): Likewise.
5414 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5415 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5416 'offset', and adjust.
5420 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5421 (read_index_from_section): Add cast to 'char *'.
5425 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5429 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5433 * record-full.c (record_full_get_bookmark): Change local 'ret'
5434 type to char * and add cast to gdb_byte *.
5435 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5437 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5441 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5442 * python/py-prettyprint.c (print_string_repr): Change type of
5443 'output' local to char *. Add cast to gdb_byte * in
5444 LA_PRINT_STRING call.
5445 (print_children): Change type of 'output' local to char *.
5446 * python/py-value.c (valpy_string): Add cast to const char * in
5447 PyUnicode_Decode call.
5451 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5452 and change its type to 'const char *'. Adjust.
5453 (mips_send_packet): Add cast to 'char *', and remove cast to
5455 (mips_receive_packet): Remove cast to 'unsigned char *'.
5456 (mips_load_srec): Use bfd_byte.
5457 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5458 (pmon_checkset): Make 'value' parameter unsigned.
5462 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5466 * remote.c (remote_write_bytes_aux, compare_sections_command)
5468 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5469 (remote_hostio_readlink, remote_bfd_iovec_pread)
5470 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5471 binary buffer, and char when buffer is used as string.
5472 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5473 (trace_save, tfile_open, traceframe_walk_blocks)
5474 (tfile_fetch_registers): Likewise.
5478 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5479 buffer and size_t size. Adjust.
5480 * ser-base.h (ser_base_write): Adjust.
5481 * ser-go32.c (cnts): Change type to size_t.
5482 (dos_write): Change prototype -- take 'void *'
5483 buffer and size_t size. Adjust.
5484 (dos_info): Print elements of 'cnts' as unsigned long.
5485 * serial.c (serial_write): Likewise.
5486 * serial.h (serial_write): Adjust.
5487 (struct serial_ops) <write>: Change prototype -- take 'void *'
5488 buffer and size_t size. Adjust.
5492 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5494 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5498 * alpha-tdep.c (alpha_extract_return_value): Use
5499 regcache_cooked_read_unsigned to read 'v0'.
5503 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5504 parameters 'at', 'as' and 'offset' to uint32_t.
5508 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5509 'is64' to signed 'int'.
5513 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5518 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5519 'insnbuf' buffer type to unsigned int[].
5523 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5527 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5532 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5533 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5535 * mips-tdep.c (heuristic_fence_post): Change type to int.
5536 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5540 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5541 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5542 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5546 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5547 it to get a string view of the byte buffer.
5548 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5549 type to gdb_byte *. Adjust.
5550 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5551 Change local to char *.
5552 * solib-darwin.c (find_program_interpreter): Change return type to
5554 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5555 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5556 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5557 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5558 * solib-svr4.c (find_program_interpreter): Change return type to
5560 (enable_break): Change local 'interp_name' to char *.
5561 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5562 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5563 (spu_pseudo_register_write_spu): Use char for string buffer.
5565 (info_spu_event_command, info_spu_signal_command): Add casts to
5570 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5572 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5573 * ada-lang.c (ada_value_assign): Use gdb_byte.
5574 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5575 (alphanbsd_sigtramp_offset): Use gdb_byte.
5576 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5577 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5578 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5579 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5580 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5581 * arm-tdep.c (arm_stub_unwind_sniffer)
5582 (arm_displaced_init_closure): Use gdb_byte.
5583 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5584 (arm_default_thumb_le_breakpoint)
5585 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5586 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5587 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5588 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5589 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5590 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5591 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5592 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5593 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5594 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5595 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5596 (cris_store_return_value, cris_extract_return_value): Use
5598 (constraint): Change type of parameter to char * from signed
5599 char*. Use gdb_byte.
5600 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5601 of local buffer to gdb_byte *.
5602 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5603 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5604 (add_address_entry): Change type of local buffer to gdb_byte[].
5605 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5606 (frv_push_dummy_call): Use gdb_byte.
5607 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5608 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5609 (hppa_hpux_supply_save_state): Use gdb_byte.
5610 * hppa-tdep.c (hppa32_push_dummy_call)
5611 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5612 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5613 (slotN_contents, replace_slotN_contents): Change type of parameter
5615 (fetch_instruction, ia64_pseudo_register_write)
5616 (ia64_register_to_value, ia64_value_to_register)
5617 (ia64_extract_return_value, ia64_store_return_value)
5618 (ia64_push_dummy_call): Use gdb_byte.
5619 * m32c-tdep.c (m32c_return_value): Remove cast.
5620 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5621 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5623 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5624 * mn10300-tdep.c (mn10300_store_return_value)
5625 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5627 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5628 (moxie_process_record): Remove casts.
5629 * ppc-ravenscar-thread.c (supply_register_at_address)
5630 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5631 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5632 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5633 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5634 * remote.c (compare_sections_command): Use gdb_byte.
5635 * score-tdep.c (score7_free_memblock): Change type of parameter to
5637 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5638 gdb_byte *. Use gdb_byte.
5639 (sh_push_dummy_call_fpu): Use gdb_byte.
5640 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5641 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5642 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5643 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5644 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5645 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5646 (sh64_store_return_value, sh64_register_convert_to_virtual):
5647 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5648 (sh64_pseudo_register_write): Use gdb_byte.
5649 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5650 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5652 (irix_current_sos): Use gdb_byte.
5653 * solib-som.c (som_current_sos): Use gdb_byte.
5654 * sparc-ravenscar-thread.c (supply_register_at_address)
5655 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5656 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5657 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5658 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5660 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5662 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5663 * xstormy16-tdep.c (xstormy16_extract_return_value)
5664 (xstormy16_store_return_value): Change parameter type to
5665 'gdb_byte *'. Adjust.
5666 (xstormy16_push_dummy_call): Use gdb_byte.
5667 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5668 (call0_analyze_prologue, execute_code): Use gdb_byte.
5673 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5678 * dwarf2read.c (struct signatured_type): New member type.
5679 (struct attribute): Replace member signatured_type with signature.
5680 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5681 (read_call_site_scope): Call follow_die_ref instead of
5682 follow_die_ref_or_sig.
5683 (read_structure_type): Rewrite handling of signatured types.
5684 (read_enumeration_type): Ditto.
5685 (read_attribute_value): Update.
5686 (build_error_marker_type): New function.
5687 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5688 Don't call error for bad types, just build an error marker type.
5689 (dump_die_shallow): Update.
5690 (follow_die_sig_1): Renamed from follow_die_sig.
5691 Don't call error for bad types, instead return NULL.
5692 (follow_die_sig): New function.
5693 (get_signatured_type, get_DW_AT_signature_type): New functions.
5697 * aarch64-tdep.c (aarch64_write_pc): Removed.
5698 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5703 * top.c (print_gdb_configuration): Print configure-time
5704 parameter on using libbabeltrace or not.
5708 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5712 * common/glibc_thread_db.h: Update from upstream glibc
5713 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5717 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5718 * common/glibc_thread_db.h: ... this new file ...
5719 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5726 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5727 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5733 * NEWS: Mention "set foo unlimited".
5737 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5738 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5739 (create_dwo_cu_reader): Renamed from
5740 create_dwo_debug_info_hash_table_reader.
5741 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5742 Remove support for multiple CUs in a DWO file.
5743 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5745 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5747 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5748 (create_dwo_in_dwp): Ditto.
5752 * NEWS: Move recent entries into "since 7.6" section.
5758 * break-catch-throw.c (struct exception_catchpoint)
5759 <exception_rx, pattern>: New fields.
5760 (fetch_probe_arguments, dtor_exception_catchpoint)
5761 (check_status_exception_catchpoint)
5762 (print_one_detail_exception_catchpoint): New functions.
5763 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5764 Compile regular expression if needed.
5765 (extract_exception_regexp): New function.
5766 (catch_exception_command_1): Use extract_exception_regexp.
5767 (compute_exception): Use fetch_probe_arguments.
5768 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5769 and check_status fields.
5770 * cp-abi.c (cplus_typename_from_type_info): New function.
5771 * cp-abi.h (cplus_typename_from_type_info): Declare.
5772 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5773 * gdb_regex.h (compile_rx_or_error): Declare.
5774 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5776 (init_gnuv3_ops): Set get_type_from_type_info field.
5777 * probe.c (compile_rx_or_error): Move...
5778 * utils.c (compile_rx_or_error): ... here.
5784 * break-catch-throw.c (compute_exception): New function.
5785 (exception_funcs): New global.
5786 (_initialize_break_catch_throw): Create $_exception.
5787 * cp-abi.c (cplus_type_from_type_info): New function.
5788 * cp-abi.h (cplus_type_from_type_info): Declare.
5789 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5790 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5791 (gnuv3_get_type_from_type_info): New functions.
5792 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5796 * break-catch-throw.c (struct exception_names): New.
5797 (exception_functions): Change type.
5798 (re_set_exception_catchpoint): Look for SDT probes.
5803 * break-catch-throw.c (exception_functions): New global.
5804 (gnu_v3_exception_catchpoint_ops): Move earlier.
5805 (struct exception_catchpoint): New.
5806 (classify_exception_breakpoint): Rewrite.
5807 (re_set_exception_catchpoint): New function.
5808 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5809 Allocate a struct exception_catchpoint.
5810 (catch_exception_command_1): Update.
5811 (initialize_throw_catchpoint_ops): Set 're_set' method.
5815 * Makefile.in (SFILES): Add break-catch-throw.c
5816 (COMMON_OBS): Add break-catch-throw.o.
5817 * break-catch-throw.c: New file.
5818 * breakpoint.c: Move exception-catching code to new file.
5819 (ep_parse_optional_if_clause): No longer static.
5820 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5826 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5827 * c-exp.y (TYPEID): New token.
5828 (exp): Add new TYPEID productions.
5829 (ident_tokens): Add "typeid".
5830 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5831 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5832 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5833 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5834 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5836 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5837 (build_std_type_info_type, gnuv3_get_typeid_type)
5838 (gnuv3_get_typeid): New functions.
5839 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5840 new fields on ABI object.
5841 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5842 * std-operator.def (OP_TYPEID): New.
5846 * elfread.c (elf_symtab_read): Install versioned symbol under
5847 unversioned name as well.
5852 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5853 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5854 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5855 (gdb_demangle): New function.
5856 * cp-support.h (gdb_demangle): Declare.
5857 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5858 (dwarf2_name): Use gdb_demangle.
5859 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5860 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5862 (gnuv3_print_method_ptr): Use gdb_demangle.
5863 * jv-lang.c (java_demangle): Use gdb_demangle.
5864 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5865 * language.c (unk_lang_demangle): Use gdb_demangle.
5866 * symtab.c (symbol_find_demangled_name)
5867 (demangle_for_lookup): Use gdb_demangle.
5873 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5875 (classify_exception_breakpoint): New function.
5876 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5877 (print_mention_exception_catchpoint)
5878 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5879 (catch_exception_command_1): Handle "rethrow" catchpoint.
5880 (catch_rethrow_command): New function.
5881 (_initialize_breakpoint): Add "catch rethrow" command.
5885 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5886 set_gdbarch_write_pc as deprecated anymore.
5890 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5895 * ctf.c (_initialize_ctf): Include "completer.h".
5896 Call add_target_with_completer instead of add_target.
5900 Fix GDB regression related to PR binutils/14813.
5901 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5902 * minidebug.c (lzma_close): Add return value comment.
5903 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5904 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5905 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5909 * config.in: Regenerate.
5913 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5915 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5916 (struct die_reader_specs) <buffer>: Likewise.
5917 (die_reader_func_ftype): Make 'info_ptr' const.
5918 (struct line_header) <include_dirs, statement_program_start,
5919 statement_program_end>: Now const.
5920 (struct file_entry) <name>: Likewise.
5921 (struct partial_die_info) <sibling>: Likewise.
5922 (struct dwarf_block) <data>: Likewise.
5923 (dwarf2_read_section): Remove cast.
5924 (dwarf2_get_section_info): Make 'bufp' const.
5925 (read_index_from_section): Constify.
5926 (dw2_get_file_names_reader): Make 'info_ptr' const.
5927 (dw2_get_primary_filename_reader): Likewise.
5928 (read_comp_unit_head): Make 'info_ptr' and return type const.
5929 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5931 (read_abbrev_offset): Constify.
5932 (dwarf2_create_include_psymtab): Make 'name' const.
5933 (create_debug_types_hash_table): Update.
5934 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5935 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5937 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5938 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5939 (read_comp_units_from_section): Constify.
5940 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5941 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5943 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5944 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5945 (create_dwp_hash_table, dwarf2_ranges_read)
5946 (dwarf2_record_block_ranges): Constify.
5947 (read_die_and_children, read_die_and_siblings_1)
5948 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5950 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5951 (abbrev_table_read_table): Constify.
5952 (load_partial_dies): Make 'info_ptr' const.
5953 (read_partial_die, read_attribute_value, read_attribute): Make
5954 'info_ptr' and return type const.
5955 (read_address, read_initial_length)
5956 (read_checked_initial_length_and_offset, read_offset)
5957 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5959 (read_direct_string): Make 'buf' and return type const.
5960 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5961 (read_indirect_string): Make return type const.
5962 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5963 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5965 (read_str_index): Make return type const.
5966 (add_include_dir): Make 'include_dir' const.
5967 (add_file_name): Make 'name' const.
5968 (dwarf_decode_line_header): Constify.
5969 (psymtab_include_file_name): Make return type const.
5970 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5971 (dwarf2_start_subfile): Make 'filename' const.
5972 (dwarf2_const_value_attr): Make 'bytes' const.
5973 (read_signatured_type_reader): Make 'info_ptr' const.
5974 (decode_locdesc): Constify.
5975 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5977 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5978 'mac_end', and return type const.
5979 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5980 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5982 (per_cu_header_read_in): Constify.
5983 * symfile.h (dwarf2_get_section_info): Update.
5987 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5991 * NEWS: Mention "show configuration", --configuration.
5992 * top.c (print_gdb_configuration): New function, displays the
5993 details about GDB configure-time parameters.
5994 (print_gdb_version): Mention "show configuration".
5995 * cli/cli-cmds.c (show_configuration): New function.
5996 (_initialize_cli_cmds): Add the "show configuration" command.
5997 * main.c (captured_main) <print_configuration>: New static var.
5998 <long_options>: Use it.
5999 If --configuration was given, call print_gdb_configuration.
6004 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6005 (generated_files): Add gcore.
6006 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6007 HAVE_NATIVE_GCORE_HOST.
6009 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6010 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6011 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6012 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6013 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6014 Add HAVE_NATIVE_GCORE_HOST.
6015 * configure: Regenerate.
6016 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6017 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6018 AC_CONFIG_FILES for gcore.
6019 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6021 * gdb_gcore.sh: Rename to ...
6022 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6023 and GCORE_TRANSFORM_NAME substitutions.
6025 Fix parsing tabs in ${gdb_target_obs}.
6026 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6030 * remote.c (unpush_and_perror): Add output message final dot.
6034 * tracepoint.c (tfile_interp_line): Fit parameters line and
6039 * solib.c (solib_map_sections): Remove code overwriting
6040 SO->SO_NAME with the bfd's filename.
6044 * cli/cli-decode.c (integer_unlimited_completer): New function.
6045 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6046 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6048 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6049 (is_unlimited_literal): New function.
6050 (do_set_command): Handle literal "unlimited" arguments.
6051 * frame.c (_initialize_frame) <set backtrace limit>: Document
6053 * printcmd.c (_initialize_printcmd) <set print
6054 max-symbolic-offset>: Add help text.
6055 * record-full.c (_initialize_record_full) <set record full
6056 insn-number-max>: Likewise.
6057 * record.c (_initialize_record) <set record
6058 instruction-history-size, set record function-call-history-size>:
6060 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6062 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6064 * source.c (_initialize_source) <set listsize>: Add help text.
6065 * utils.c (initialize_utils) <set height, set width>: Likewise.
6066 <set pagination>: Mention "set height unlimited".
6067 * valprint.c (_initialize_valprint) <set print elements, set print
6068 repeats>: Document "unlimited".
6072 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6073 instead of disconnect_tracing.
6074 * infcmd.c (detach_command, disconnect_command): Call
6075 query_if_trace_running. Adjust.
6076 * top.c: Include "tracepoint.h".
6077 (quit_target): Delete. Contents moved ...
6078 (quit_force): ... here. Wrap each stage of teardown in
6079 TRY_CATCH. Call disconnect_tracing before detaching.
6084 * configure.ac: Check libbabeltrace is installed.
6085 * config.in: Regenerate.
6086 * configure: Regenerate.
6087 * Makefile.in (LIBBABELTRACE): New.
6088 (CLIBS): Add LIBBABELTRACE.
6089 * ctf.c: Include "exec.h".
6090 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6091 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6092 (ctf_save_metadata_header): Define new type aliases in
6094 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6095 in metadata. Start a new faked packet for trace status.
6096 (ctf_write_status): Write trace status to CTF.
6097 (ctf_write_uploaded_tsv): Write TSV to CTF.
6098 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6099 (ctf_write_definition_end): End the faked packet.
6101 (ctx, ctf_iter, trace_dirname): New.
6102 (start_pos): New variable.
6103 (ctf_destroy, ctf_open_dir, ctf_open): New.
6104 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6106 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6107 (ctf_fetch_registers, ctf_xfer_partial): New.
6108 (ctf_get_trace_state_variable_value): New.
6109 (ctf_get_tpnum_from_frame_event): New.
6110 (ctf_get_traceframe_address): New.
6111 (ctf_trace_find, ctf_has_stack): New.
6112 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6113 (ctf_get_trace_status, ctf_read_status): New.
6114 (_initialize_ctf): New.
6115 * tracepoint.c (get_tracepoint_number): New
6116 (get_uploaded_tsv): Remove 'static'.
6117 (struct traceframe_info, trace_regblock_size): Move it to ...
6118 * tracepoint.h: ... here.
6119 (get_tracepoint_number): Declare it.
6120 (get_uploaded_tsv): Declare it.
6122 * NEWS: Mention new configure option.
6127 * breakpoint.c (dprintf_re_set): New.
6128 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6133 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6134 Remove solib-svr4.o from the list.
6138 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6139 Use gdb_assert_not_reached instead of invalid boolean expression.
6143 * remote.c (unpush_and_perror): New function.
6144 (readchar, remote_serial_write): Use it.
6148 * NEWS: Mention new btrace RSP packets.
6152 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6157 * maint.c (print_bfd_section_info): Print the section index.
6158 * symmisc.c (dump_msymbols): Print the section index.
6163 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6164 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6165 * breakpoint.c (resolve_sal_pc): Update.
6166 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6167 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6168 (minsym_lookup_iterator_cb): Use it.
6169 (default_read_var_value): Update.
6170 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6172 * infcmd.c (jump_command): Update.
6173 * linespec.c (minsym_found): Update.
6174 * maint.c (maintenance_translate_address): Update.
6175 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6176 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6177 * parse.c (write_exp_msymbol): Update.
6178 * printcmd.c (address_info): Update.
6179 * psymtab.c (find_pc_sect_psymbol): Update.
6180 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6182 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6183 Don't initialize SYMBOL_OBJ_SECTION.
6184 * spu-tdep.c (spu_catch_start): Update.
6185 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6186 * symmisc.c (dump_msymbols, print_symbol): Update.
6187 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6188 how fallback section is computed.
6189 (fixup_symbol_section): Update.
6190 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6192 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6193 Initialize SYMBOL_SECTION.
6194 * symtab.h (struct general_symbol_info) <section>: Update comment.
6195 <obj_section>: Remove.
6196 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6197 (SYMBOL_OBJFILE): New macro.
6201 * coffread.c (record_minimal_symbol): Update.
6202 * dbxread.c (record_minimal_symbol): Update.
6203 * elfread.c (record_minimal_symbol): Update.
6204 * machoread.c (macho_symtab_add_minsym): Update.
6205 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6207 * minsyms.c (prim_record_minimal_symbol): Update.
6208 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6210 (prim_record_minimal_symbol_and_info): Likewise.
6211 * minsyms.h (prim_record_minimal_symbol_full)
6212 (prim_record_minimal_symbol_and_info): Update.
6213 * symtab.c (allocate_symbol, initialize_symbol)
6214 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6215 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6221 * solib-som.c (som_solib_section_offsets): Use BFD section
6222 indices. Set offsets for all sections.
6223 * somread.c (som_symtab_read): Compute BFD section for
6224 symbol. Use prim_record_minimal_symbol_and_info.
6225 (som_symfile_read): Fix comment.
6226 (struct find_section_offset_arg): New.
6227 (find_section_offset, set_section_index): New functions.
6228 (som_symfile_offsets): Use set_section_index to compute
6233 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6234 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6235 gdb_bfd_section_index.
6236 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6238 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6240 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6242 * objfiles.c (add_to_objfile_sections_full): New function.
6243 (add_to_objfile_sections): Use it.
6244 (build_section_table): Rewrite.
6245 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6246 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6247 (struct objfile) <sections>: Update comment.
6248 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6250 (ALL_OBJSECTIONS): Use it.
6251 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6252 * solib-frv.c (frv_relocate_main_executable): Update.
6253 * solib-target.c (solib_target_relocate_section_addresses):
6254 Use gdb_bfd_section_index.
6255 * symfile.c (build_section_addr_info_from_section_table):
6256 Use gdb_bfd_section_index.
6257 (build_section_addr_info_from_bfd, place_section): Likewise.
6258 * symtab.c (fixup_section): Update.
6259 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6263 * minsyms.h (struct bound_minimal_symbol): New.
6264 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6265 Remove objfile argument.
6266 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6267 Return bound_minimal_symbol.
6268 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6269 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6270 Return bound_minimal_symbol.
6271 (in_gnu_ifunc_stub): Update.
6272 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6273 Remove 'objfile_p' argument.
6274 (lookup_solib_trampoline_symbol_by_pc): Update.
6275 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6276 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6277 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6278 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6279 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6280 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6281 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6282 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6283 stack.c, symtab.c, tui/tui-disasm.c: Update.
6287 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6288 Use symbol's obstack, not an objfile.
6289 * coffread.c (process_coff_symbol): Update.
6290 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6291 * jv-lang.c (add_class_symbol): Update.
6292 * mdebugread.c (new_symbol): Update.
6293 * minsyms.c (prim_record_minimal_symbol_full)
6294 (terminate_minimal_symbol_table): Update.
6295 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6296 * stabsread.c (define_symbol, read_enum_type): Update.
6297 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6298 Handle Ada specially.
6299 (symbol_set_language): Add 'obstack' argument.
6300 (symbol_set_names): Update.
6301 (symbol_natural_name, symbol_demangled_name): Always use
6303 * symtab.h (struct general_symbol_info)
6304 <language_specific::obstack>: New field.
6305 <ada_mangled>: New field.
6306 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6307 (symbol_set_language): Update.
6311 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6312 Take an obstack, not an objfile.
6313 (symbol_set_names): Update.
6314 * symtab.h (symbol_set_demangled_name): Update.
6318 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6320 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6321 (read_func_scope): Call allocate_template_symbol.
6322 (new_symbol_full): Call allocate_symbol.
6323 * jit.c (finalize_symtab): Call allocate_symbol.
6324 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6325 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6326 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6327 (common_block_end): Call allocate_symbol.
6328 * symtab.c (allocate_symbol, initialize_symbol)
6329 (allocate_template_symbol): New functions.
6330 * symtab.c (allocate_symbol, initialize_symbol)
6331 (allocate_template_symbol): Declare.
6332 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6337 * breakpoint.c (create_breakpoint): Rename
6338 "parse_condition_and_thread" parameter to "parse_arg". Update
6339 describing comment. If !PARSE_ARG, then error out if ARG is not
6340 the empty string after extracting the location.
6341 * breakpoint.h (create_breakpoint): Rename
6342 "parse_condition_and_thread" parameter to "parse_arg".
6346 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6350 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6351 and 'addr2' to CORE_ADDR.
6352 * target.c (update_current_target): Update.
6353 * target.h (struct target_ops) <to_trace_find>: Change parameter
6355 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6356 'addr2' to CORE_ADDR.
6357 (tfile_trace_find): Likewise.
6358 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6359 Change local variable 'addr' to type CORE_ADDR.
6360 * tracepoint.h (tfind_1): Update declaration.
6364 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6365 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6368 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6370 * main.h (windows_get_absolute_argv0): ...to here.
6374 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6375 (read_cutu_die_from_dwo): Add comments.
6376 (read_structure_type): Update comment.
6377 (read_enumeration_type, read_namespace_type): Update comment.
6378 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6382 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6383 * Makefile.in (gdb.z): Remove.
6384 (install-only): Remove $(man1dir) and gdb.1 installation.
6389 Fix compatibility with Linux kernel 3.8.3.
6390 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6391 to more inner block. Remove parsing of NUMBER from outer block.
6392 Parse NUMBER only if KEYWORD has been identified.
6396 Fix variable name shadowing.
6397 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6398 filename to mapsfilename and update its uses.
6402 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6403 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6404 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6405 details of the problem.
6410 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6411 tracepoint, reset its STEP_COUNT and call validate_actionline.
6415 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6416 read_die_and_siblings.
6417 (read_die_and_siblings): New function.
6418 (read_cutu_die_from_dwo): Dump die if requested.
6419 (read_die_and_children): Call read_full_die_1 and
6420 read_die_and_siblings_1.
6421 (read_full_die): Dump die if requested.
6423 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6425 * dwarf2read.c (struct dwo_file): New member comp_dir.
6426 Rename member name to dwo_name. All uses updated.
6427 (hash_dwo_file): Include comp_dir in computation.
6428 (eq_dwo_file): Ditto.
6429 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6430 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6432 * psymtab.c (read_psymtabs_with_fullname): Don't call
6433 psymtab_to_fullname if the basenames are different.
6437 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6438 New entry about "fullname" presence.
6442 * NEWS: Mention x86_64/Cygwin as new native configuration.
6446 * dwarf2read.c (read_structure_type): Fix typo in comment.
6450 * NEWS: Mention "set/show debug aarch64", "set/show debug
6451 coff-pe-read" and "set/show debug mach-o".
6455 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6459 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6460 gdb_string.h is now in common/.
6464 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6465 under "New options".
6471 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6477 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6478 (remote_serial_write): New function.
6479 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6483 * NEWS: Mention TILE-Gx in "New native configurations" and
6484 "New targets" sections.
6488 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6489 (process_enumeration_scope): Simplify.
6491 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6493 (struct signatured_type): ... to here.
6494 (sig_type_ptr): New typedef.
6495 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6496 out of union 't'. All uses updated.
6497 (dw2_get_file_names_reader): Assert not called for a type unit.
6498 (dw2_get_file_names): Assert not called for a type unit or type
6500 (build_type_psymtabs_reader): Assert called for a type unit.
6501 (build_type_psymtab_dependencies): Assert called for a type unit group.
6503 * dwarf2read.c (free_dwo_file): Add comment.
6504 (dwarf2_per_objfile_free): Unref dwp bfd.
6508 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6509 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6510 (read_pe_exported_syms): Remove unused 'exportix'.
6511 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6512 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6513 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6517 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6518 (print_it_watchpoint): Remove unused 'bl'.
6519 (say_where): Remove unused 'uiout'.
6520 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6521 (bkpt_breakpoint_hit): Remove unused 'b'.
6522 (internal_bkpt_print_it): Remove unused 'uiout'.
6523 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6527 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6528 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6532 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6533 Delete arg is_dwp. All callers updated.
6534 (open_dwp_file): New function.
6535 (open_and_init_dwp_file): Call it.
6536 (get_dwp_file): New function.
6537 (lookup_dwo_cutu): Call it.
6539 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6540 unnecessary, cleanup.
6542 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6544 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6545 (lookup_dwo_unit): New function.
6546 (init_cutu_and_read_dies): Move DWO handling to new functions.
6548 * dwarf2read.c (struct signatured_type): Tweak comment.
6549 (struct dwo_unit): Tweak comment.
6550 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6551 (create_dwo_debug_info_hash_table): Tweak comment.
6552 (dwarf2_per_cu_offset_and_type): Tweak comment.
6554 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6555 missing .debug_types section.
6559 * corelow.c: Include "completer.h".
6560 (_initialize_corelow): Call add_target_with_completer with
6561 argument 'filename_completer'.
6562 * tracepoint.c: Likewise.
6563 * exec.c (_initialize_exec): Likewise.
6564 * target.c (add_target): Rename to ...
6565 (add_target_with_completer): ... this. Call set_cmd_completer
6566 if parameter completer is not NULL.
6568 * target.h: Include "command.h".
6569 (add_target_with_completer): Declare it.
6573 * coffread.c (is_import_fixup_symbol): New function.
6574 (record_minimal_symbol): Use is_import_fixup_symbol to
6575 detect import fixup symbols, and discard them.
6579 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6580 types hash table until we know we need it.
6582 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6585 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6586 All callers updated.
6587 (dw2_print_stats): Print #read CUs too.
6588 (dump_die_shallow): Print signatured types better.
6590 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6591 info_or_types_section to section. All uses updated.
6592 (struct dwo_unit): Ditto.
6596 * NEWS (New options): New section.
6597 (New options): Mention set/show remote trace-status-packet.
6598 * remote.c (PACKET_qTStatus): New enumeration value.
6599 (remote_get_trace_status): Skip sending qTStatus if the packet is
6600 disabled. Use packet_ok.
6601 (_initialize_remote): Register a configuration command for
6606 * symfile.c (find_separate_debug_file): Add comment.
6607 (terminate_after_last_dir_separator): Tweak comment.
6609 * dwarf2read.c (create_partial_symtab): Add forward decl.
6610 (create_partial_symtab): Move to be closer to other psymtab functions.
6611 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6613 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6614 (compute_symtab_includes): Remove unnecessary forward declaration.
6615 (die_needs_namespace): Add comment marking group of functions for
6616 dwarf2 name computation.
6618 * typeprint.c (_initialize_typeprint): Improve type help text.
6620 * python/python.c (finish_python_initialization): Provide suggestion
6621 for how to tell gdb to find its python files.
6627 * source.c (_initialize_source): Change back "set listsize" to an
6633 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6637 * top.c (history_size): Rename to ...
6638 (history_size_setshow_var): ... this. Add comment.
6639 (show_commands): Use readline's 'history_length' instead of
6640 computing the history length by calling history_get in a loop.
6641 (set_history_size_command): Error out for sizes over INT_MAX.
6642 Restore previous history size on invalid size.
6643 (init_history): If HISTSIZE is negative, leave the history size as
6645 (init_main): Adjust.
6649 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6650 coff_pe_read" command to "set debug coff-pe-read".
6654 * record.c (command_size_to_target_size): Fix size comparison.
6655 Change parameter type from pointer to integer to integer.
6660 * windows-nat.c (handle_output_debug_string): Avoid typecast
6661 from integer of different size warning.
6665 * windows-nat.c (handle_output_debug_string): Add empty line
6666 after local block variable definition.
6670 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6671 (net_open): Make 'polls' local unsigned.
6675 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6676 a zuinteger command instead of uinteger.
6680 * record-full.c (record_full_insn_num): Make it unsigned.
6681 (record_full_check_insn_num, record_full_message)
6682 (record_full_registers_change, record_full_xfer_partial): Remove
6683 record_full_insn_max_num check (it's always != 0).
6684 (record_full_info, record_full_restore): Use %u as format string.
6685 (): Use %u as format string.
6686 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6687 check (it's always != 0).
6691 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6692 and "set dcache size" commands zuinteger instead of uinteger.
6696 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6697 command zuinteger instead of uinteger.
6701 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6702 zuinteger instead of uinteger.
6706 * record.c (record_insn_history_size_setshow_var)
6707 (record_call_history_size_setshow_var): New globals.
6708 (command_size_to_target_size): New function.
6709 (cmd_record_insn_history, cmd_record_call_history): Use
6710 command_size_to_target_size instead of cast.
6711 (validate_history_size, set_record_insn_history_size)
6712 (set_record_call_history_size): New functions.
6713 (_initialize_record): Install set_record_insn_history_size and
6714 set_record_call_history_size as "set" hooks of "set record
6715 instruction-history-size" and "set record
6716 function-call-history-size".
6720 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6721 use with history_max_entries use. Remove FIXME note.
6725 * record-btrace.c (record_btrace_close): Call
6726 record_btrace_auto_disable.
6730 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6734 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6739 * c-exp.y (exp): Add new productions for destructors after '.' and
6741 (write_destructor_name): New function.
6746 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6747 value_struct_elt, not lookup_struct_elt_type.
6748 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6749 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6750 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6754 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6755 instead of '_mkdir'.
6759 * windows-nat.c (windows_get_absolute_argv0): New function.
6760 * windows-nat.h: Add its prototype.
6762 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6763 Use IS_DIR_SEPARATOR instead of looking for a character inside
6764 SLASH_STRING. Include filenames.h.
6765 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6766 relocate_gdb_directory works when passed gdb_program_name.
6767 Include windows-nat.h.
6771 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6772 * remote.c (trace_error): Remove the special handling of '2'.
6773 (readchar) <SERIAL_EOF>
6774 (readchar) <SERIAL_ERROR>
6775 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6776 (remote_get_trace_status): Call throw_exception if EX is
6778 * utils.c (perror_with_name): Rename to ...
6779 (throw_perror_with_name): ... here. New parameter errcode, describe it
6780 in the function comment.
6781 (perror_with_name): New function wrapper.
6782 * utils.h (enum errors): New stub declaration.
6783 (throw_perror_with_name): New declaration.
6789 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6790 Don't let the user set the value to UINT_MAX directly.
6791 <var_integer>: Don't let the user set the value to INT_MAX
6796 * remote.c (remote_unpush_target): New function.
6797 (remote_open_1): Remove two pop_target calls, update one comment, add
6798 comment to target_preopen call. Replace pop_target call by
6799 remote_unpush_target call.
6800 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6801 pop_target calls by remote_unpush_target calls.
6805 * linux-nat.c (linux_child_follow_fork): Don't call
6806 linux_enable_event_reporting.
6807 (linux_handle_extended_wait): Don't call
6808 linux_enable_event_reporting.
6812 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6813 use it to rewrite the trampoline buffers with type gdb_byte[], and
6814 undefine the macro. Remove char* cast.
6818 New commands "mt set per-command {space,time,symtab} {on,off}".
6820 * event-top.c: #include "maint.h".
6821 * main.c: #include "maint.h".
6822 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6823 timeval-utils.h, maint.h, cli/cli-setshow.h.
6824 (per_command_time, per_command_space): New static globals.
6825 (per_command_symtab): New static global.
6826 (per_command_setlist, per_command_showlist): New static globals.
6827 (struct cmd_stats): Move here from utils.c.
6828 (set_per_command_time): Renamed from set_display_time in utils.c
6829 and moved here. All callers updated.
6830 (set_per_command_space): Renamed from set_display_space in utils.c
6831 and moved here. All callers updated.
6832 (count_symtabs_and_blocks): New function.
6833 (report_command_stats): Moved here from utils.c. Add support for
6834 printing symtab stats. Only print data if enabled before command
6836 (make_command_stats_cleanup): Ditto.
6837 (sert_per_command_cmd, show_per_command_cmd): New functions.
6838 (_initialize_maint_cmds): Add new commands
6839 mt set per-command {space,time,symtab} {on,off}.
6840 * maint.h: New file.
6841 * top.c: #include "maint.h".
6842 * utils.c (reset_prompt_for_continue_wait_time): New function.
6843 (get_prompt_for_continue_wait_time): New function.
6844 * utils.h (reset_prompt_for_continue_wait_time): Declare
6845 (get_prompt_for_continue_wait_time): Declare.
6846 (make_command_stats_cleanup): Moved to maint.h.
6847 (set_display_time, set_display_space): Moved to maint.h and renamed
6848 to set_per_command_time, set_per_command_space.
6849 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6850 parse_binary_operation and made non-static. Don't call error,
6851 just return an error marker. All callers updated.
6852 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6856 * symfile.c (alloc_section_addr_info): Update header. Don't set
6857 'num_sections' field.
6858 (build_section_addr_info_from_section_table): Set 'num_sections'.
6859 (build_section_addr_info_from_bfd): Likewise.
6860 (build_section_addr_info_from_objfile): Remove dead loop
6862 (free_section_addr_info): Unconditionally call xfree.
6863 (relative_addr_info_to_section_offsets, addrs_section_sort)
6864 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6866 (syms_from_objfile_1): Remove dead 'if' condition. Check
6868 (add_symbol_file_command): Set 'num_sections'.
6869 * symfile-mem.c (symbol_file_add_from_memory): Set
6871 * somread.c (som_symfile_offsets): Remove dead loop condition.
6872 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6873 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6877 * tracepoint.h (decode_agent_options): Add 'trace_string'
6879 * tracepoint.c (decode_agent_options): Add 'trace_string'
6881 (validate_actionline): Update.
6882 (collect_symbol): Add 'trace_string' argument.
6883 (struct add_local_symbols_data) <trace_string>: New field.
6884 (do_collect_symbol): Update.
6885 (add_local_symbols): Add 'trace_string' argument.
6886 (encode_actions_1): Update.
6887 (trace_dump_actions): Update.
6888 * dwarf2loc.c (access_memory): Update.
6889 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6890 * ax-general.c (new_agent_expr): Update.
6891 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6892 (gen_trace_for_return_address): Add argument.
6893 (trace_kludge, trace_string_kludge): Remove.
6894 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6895 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6896 (gen_trace_for_var): Add 'trace_string' argument.
6897 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6898 (gen_printf, agent_eval_command_one): Update.
6903 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6904 Handle FILENAME token.
6908 * c-exp.y (YYPRINT): Define.
6909 (c_print_token): New function.
6913 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6917 * ctf.c: Include "gdb_stat.h".
6918 [USE_WIN32API]: New macro 'mkdir'.
6919 (ctf_start): Use permission bits macros if they are defined.
6923 * breakpoint.h (struct breakpoint): Add comment to
6924 extra_string indicating that this member is mallod'd.
6925 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6931 * cli/cli-setshow.c (do_set_command)
6932 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6933 the result of parsing the command argument. Throw error if the
6934 value is greater than UINT_MAX. Print the invalid value with
6936 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6937 result of parsing the command argument. Throw error if the value
6938 is greater than INT_MAX, not greater or equal. Also throw error
6939 if the value is less than INT_MIN. Print the invalid value with
6941 <var_zuinteger_unlimited>: Throw error if the value is greater
6942 than INT_MAX, not greater or equal.
6943 (do_show_command) <var_integer, var_zinteger,
6944 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6948 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6950 * dwarf2read.c (read_func_scope): Remove old FIXME.
6951 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6953 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6954 Unconditionally call via computed ops, if possible.
6955 * printcmd.c (address_info): Unconditionally call via computed ops,
6957 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6959 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6960 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6967 * coffread.c (coff_register_index): New global.
6968 (process_coff_symbol, coff_read_enum_type): Set
6969 SYMBOL_ACLASS_INDEX.
6970 (_initialize_coffread): Initialize new global.
6971 * dwarf2loc.c (locexpr_find_frame_base_location)
6972 (dwarf2_block_frame_base_locexpr_funcs)
6973 (loclist_find_frame_base_location)
6974 (dwarf2_block_frame_base_loclist_funcs): New.
6975 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6976 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6977 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6978 (dwarf2_block_frame_base_loclist_funcs): New.
6979 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6980 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6982 (read_func_scope): Update.
6983 (fixup_go_packaging, mark_common_block_symbol_computed)
6984 (var_decode_location, new_symbol_full, dwarf2_const_value):
6985 Set SYMBOL_ACLASS_INDEX.
6986 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6987 (_initialize_dwarf2_read): Initialize new globals.
6988 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6989 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6990 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6992 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6993 (_initialize_mdebugread): Initialize new globals.
6994 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6995 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6996 (stab_register_index, stab_regparm_index): New globals.
6997 (define_symbol, read_enum_type, common_block_end): Set
6998 SYMBOL_ACLASS_INDEX.
6999 (_initialize_stabsread): Initialize new globals.
7000 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7002 (MAX_SYMBOL_IMPLS): New define.
7003 (register_symbol_computed_impl, register_symbol_block_impl)
7004 (register_symbol_register_impl)
7005 (initialize_ordinary_address_classes): New functions.
7006 (_initialize_symtab): Call initialize_ordinary_address_classes.
7007 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7008 (struct symbol_impl): New.
7009 (SYMBOL_ACLASS_BITS): New define.
7010 (struct symbol) <aclass, ops>: Remove fields.
7011 <aclass_index>: New field.
7012 (symbol_impls): Declare.
7013 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7014 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7015 (register_symbol_computed_impl, register_symbol_block_impl)
7016 (register_symbol_register_impl): Declare.
7017 (struct symbol_computed_ops): Add location_has_loclist.
7018 (struct symbol_block_ops): New.
7019 (SYMBOL_BLOCK_OPS): New.
7020 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7024 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7025 (print_partial_symbols, recursively_search_psymtabs): Use
7030 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7031 addtion, subtraction, multiplication and division binary operator.
7036 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7037 * bsd-kvm.c (bsd_kvm_close): Likewise.
7038 * bsd-uthread.c (bsd_uthread_close): Likewise.
7039 * corelow.c (core_close): Likewise.
7040 (core_close_cleanup): Remove parameter quitting from a caller.
7041 * event-top.c (async_disconnect): Likewise.
7042 * exec.c (exec_close_1): Remove parameter quitting.
7043 * go32-nat.c (go32_close): Likewise.
7044 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7045 parameter quitting from a caller.
7046 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7048 (mips_linux_close): Remove parameter quitting. Remove parameter
7049 quitting from a caller.
7050 * monitor.c (monitor_close): Remove parameter quitting.
7051 * monitor.h (monitor_close): Likewise.
7052 * record-btrace.c (record_btrace_close): Likewise.
7053 * record-full.c (record_full_close): Likewise.
7054 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7055 it also from fprintf_unfiltered.
7056 * remote-mips.c (mips_close): Remove parameter quitting.
7057 (mips_detach): Remove parameter quitting from a caller.
7058 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7059 (gdbsim_close): Remove duplicate function comment. Remove parameter
7060 quitting and remove it also from printf_filtered.
7061 * remote.c (remote_close): Remove parameter quitting.
7062 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7063 * target.c (update_current_target): Remove parameter int from to_close
7065 (push_target, unpush_target, pop_target): Remove parameter quitting from
7067 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7068 Remove parameter quitting from a caller.
7069 (target_preopen): Remove parameter quitting from a caller.
7070 (target_close): Remove parameter quitting. Remove parameter quitting
7071 from a caller two times. Remove parameter quitting also from
7073 * target.h (struct target_ops): Remove parameter quitting and as int
7074 from fields to_xclose and to_close.
7075 (extern struct target_ops current_target):
7076 (target_close, pop_all_targets): Remove parameter quitting. Update the
7078 (pop_all_targets_above): Remove parameter quitting.
7079 * top.c (quit_target): Remove parameter quitting from a caller.
7080 * tracepoint.c (tfile_close): Remove parameter quitting.
7081 * windows-nat.c (windows_close): Remove parameter quitting.
7085 * windows-nat.c (handle_output_debug_string): Replace call
7086 to string_to_core_addr with call to strtoull.
7090 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7091 and write it to CTF metadata.
7095 * windows-nat.c (handle_output_debug_string): Change type of n to
7096 SIZE_T to avoid crash on 64 bit systems.
7100 * python/python-internal.h (HAVE_SNPRINTF)
7101 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7102 about redefinition of snprintf by pyerrors.h.
7106 * remote-sim.c (sim_command_completer): Make char arguments const.
7111 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7115 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7117 (get_file_crc): Move from symfile.c.
7118 (gdb_bfd_crc): New function.
7119 * gdb_bfd.h (gdb_bfd_crc): Declare.
7120 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7121 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7122 (separate_debug_file_exists): Use gdb_bfd_crc.
7126 * symfile.c (get_debug_link_info): Remove.
7127 (find_separate_debug_file_by_debuglink): Use
7128 bfd_get_debug_link_info.
7132 * symtab.c (error_in_psymtab_expansion): New function.
7133 (lookup_symbol_aux_quick)
7134 (basic_lookup_transparent_type_quick): Remove "last resort"
7135 code. Use error_in_psymtab_expansion.
7140 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7141 any successful compare_filenames_for_search or FILENAME_CMP.
7142 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7143 * symtab.c (iterate_over_some_symtabs): Likewise.
7147 * source.c (print_source_lines_base): Make a local copy of
7153 * source.c (print_source_lines_base): Suppress "file" for TUI.
7160 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7162 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7167 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7168 status to tfile if trace is stopped by command 'tstop'.
7172 * tracepoint.c (tfile_write_status): Write trace notes and user
7173 name into tfile if they are not NULL.
7178 * Makefile.in (REMOTE_OBS): Add ctf.o.
7179 (SFILES): Add ctf.c.
7180 (HFILES_NO_SRCDIR): Add ctf.h.
7181 * ctf.c, ctf.h: New files.
7182 * tracepoint.c: Include 'ctf.h'.
7183 (collect_pseudocommand): Remove static.
7184 (trace_save_command): Parse option "-ctf".
7185 Produce different trace file writers per option.
7186 Adjust output message.
7187 (trace_save_tfile, trace_save_ctf): New.
7188 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7189 * mi/mi-main.c: Include 'ctf.h'.
7190 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7191 trace_save_tfile or trace_save_ctf.
7192 * NEWS: Mention these changes.
7196 * tracepoint.c (trace_file_writer_xfree): New.
7197 (struct tfile_writer_data): New.
7198 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7199 (tfile_write_header, tfile_write_regblock_type): New.
7200 (tfile_write_status, tfile_write_uploaded_tsv): New.
7201 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7202 (tfile_write_raw_data, (tfile_end): New.
7203 (tfile_write_ops): New global variable.
7204 (TRACE_WRITE_R_BLOCK): New macro.
7205 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7206 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7207 (TRACE_WRITE_V_BLOCK): New macro.
7208 (trace_save): Add extra one parameter WRITER. Make it static.
7209 Use WRITER to writer trace.
7210 (tfile_trace_file_writer_new): New.
7211 (trace_save_command): Caller update.
7212 (trace_save_tfile): Write trace data in TFILE format.
7213 * tracepoint.h (struct trace_frame_write_ops): New.
7214 (struct trace_file_write_ops): New.
7215 (struct trace_file_writer): New.
7216 (trace_save): Remove its declaration.
7217 (trace_save_tfile): Declare it.
7218 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7219 instead of trace_save.
7223 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7227 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7229 * demangle.c (current_demangling_style_string): Make it const.
7230 (set_demangling_command): Assert the demangling style is known.
7231 Remove all handling of unknown styles. Set
7232 'current_demangling_style_string' to an element of the
7233 demangling_style_names array.
7234 (set_demangling_style): Delete.
7235 (_initialize_demangler): Set current_demangling_style_string to the
7236 element of the demangling_style_names array that corresponds to
7237 the default demangling style. Remove FIXME note. Don't call
7238 set_demangling_style.
7239 * gdb-demangle.h (set_demangling_style): Remove declaration.
7243 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7245 (ada_make_symbol_completion_list): Make "text0" parameter const.
7246 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7247 * breakpoint.c (condition_completer): Make "text" and "word"
7248 parameters const. Adjust.
7249 (check_tracepoint_command): Adjust to validate_actionline
7251 (catch_syscall_completer): Make "text" and "word" parameters
7253 * cli/cli-cmds.c (show_user): Make "comname" local const.
7254 (valid_command_p): Make "command" parameter const.
7255 (alias_command): Make "alias_prefix" and "command_prefix" locals
7257 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7258 (add_alias_cmd): Make "name" and "oldname" parameters const.
7259 Adjust. No longer make copy of OLDNAME.
7260 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7261 (add_setshow_cmd_full, add_setshow_enum_cmd)
7262 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7263 (add_setshow_filename_cmd, add_setshow_string_cmd)
7264 (add_setshow_string_noescape_cmd)
7265 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7266 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7267 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7268 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7269 Make "name" parameter const.
7270 (help_cmd): Rename "command" parameter to "arg". New const local
7272 (find_cmd): Make "command" parameter const.
7273 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7274 deprecated_cmd_warning prototype change.
7275 (undef_cmd_error): Make "cmdtype" parameter const.
7276 (lookup_cmd): Make "line" parameter const.
7277 (deprecated_cmd_warning): Change type of "text" parameter to
7278 pointer to const char, from pointer to pointer to char. Adjust.
7279 (lookup_cmd_composition): Make "text" parameter const.
7280 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7282 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7284 * cli/cli-script.c (validate_comname): Make "tem" local const.
7285 (define_command): New const local "tem_c". Use it in calls to
7287 (document_command): Make "tem" and "comfull" locals const.
7288 (show_user_1): Make "prefix" and "name" parameters const.
7289 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7291 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7292 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7293 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7294 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7295 (complete_on_enum, add_setshow_enum_cmd)
7296 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7297 (add_setshow_filename_cmd, add_setshow_string_cmd)
7298 (add_setshow_string_noescape_cmd)
7299 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7300 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7301 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7302 Change prototypes, constifying strings.
7303 * completer.c (noop_completer, filename_completer): Make "text"
7304 and "prefix" parameters const.
7305 (location_completer, expression_completer)
7306 (complete_line_internal): Make "text" and "prefix" parameters
7308 (command_completer, signal_completer): Make "text" and "prefix"
7310 * completer.h (noop_completer, filename_completer)
7311 (expression_completer, location_completer, command_completer)
7312 (signal_completer): Change prototypes.
7313 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7315 * cp-abi.c (cp_abi_completer): Likewise.
7316 * expression.h (parse_expression_for_completion): Change
7318 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7320 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7321 * infrun.c (handle_completer): Make "text" and "word" parameters
7323 * interps.c (interpreter_completer): Make "text" and "word"
7325 * language.h (struct language_defn)
7326 <la_make_symbol_completion_list>: Make "text" and "word"
7328 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7329 (parse_exp_in_context): Rename to ...
7330 (parse_exp_in_context_1): ... this.
7331 (parse_exp_in_context): Reimplement, with const hack from
7333 (parse_expression_for_completion): Make "string" parameter const.
7334 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7335 to pointer to const char. Adjust.
7336 (print_command_1): Make "exp" parameter const.
7337 (output_command): Rename to ...
7338 (output_command_const): ... this. Make "exp" parameter const.
7339 (output_command): Reimplement.
7340 (x_command): Adjust.
7341 (display_command): Rename "exp" parameter to "arg". New "exp"
7342 local, const version of "arg".
7343 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7344 "cmd_name" local const.
7345 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7347 (cmdpy_completer): Make "text" and "word" parameters const.
7348 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7349 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7351 * remote.c (_initialize_remote): Make "cmd_name" local const.
7352 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7353 parameters const. Adjust.
7354 (completion_list_add_fields): Make "sym_text", "text" and "word"
7356 (struct add_name_data) <sym_text, text, word>: Make fields const.
7357 (default_make_symbol_completion_list_break_on): Make "text" and
7358 "word" parameters const. Adjust locals.
7359 (default_make_symbol_completion_list)
7360 (make_symbol_completion_list, make_symbol_completion_type)
7361 (make_symbol_completion_list_fn): Make "text" and "word"
7363 (make_file_symbol_completion_list): Make "text", "word" and
7364 "srcfile" parameters const. Adjust locals.
7365 (add_filename_to_list): Make "text" and "word" parameters const.
7366 (struct add_partial_filename_data) <text, word>: Make fields
7368 (make_source_files_completion_list): Make "text" and "word"
7370 * symtab.h (default_make_symbol_completion_list_break_on)
7371 (default_make_symbol_completion_list, make_symbol_completion_list)
7372 (make_symbol_completion_type enum type_code)
7373 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7374 (make_source_files_completion_list): Change prototype.
7375 * top.c (execute_command): Adjust to pass pointer to pointer to
7376 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7378 (set_verbose): Make "cmdname" local const.
7379 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7381 (validate_actionline): Make "line" parameter a pointer to const
7383 (encode_actions_1): Make "action_exp" local const, and adjust.
7384 (encode_actions): Adjust.
7385 (replace_comma): Delete.
7386 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7387 const, and adjust. Don't frob the action string while splitting
7388 it at commas. Instead, make a copy of each split substring in
7390 (trace_dump_command): Adjust to validate_actionline prototype
7392 * tracepoint.h (decode_agent_options, decode_agent_options)
7393 (encode_actions, validate_actionline): Change prototypes.
7394 * valprint.h (output_command): Delete declaration.
7395 (output_command_const): Declare.
7396 * value.c (function_destroyer): Cast const away in xfree call.
7400 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7401 rather than casting 'const char * const *' to 'const char **'.
7402 * ada-lex.l (processInt): Make "trailer" local const. Remove
7403 'const char **' cast.
7404 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7405 locals, and use those as strtol output pointer, instead than doing
7406 invalid casts to from 'const char **' to 'char **'.
7407 (_initialize_demangle): Remove cast.
7408 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7409 locals, and use those as strtol output pointer, instead than doing
7410 invalid casts to from 'const char **' to 'char **'.
7411 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7413 * stap-probe.c (stap_parse_register_operand)
7414 (stap_parse_single_operand): Likewise.
7418 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7419 the last matched 'V' blcok in trace frame.
7423 * NEWS: Create a new section for the next release branch.
7424 Rename the section of the current branch, now that it has
7429 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7430 * version.in: Bump version to 7.6.50.20130312-cvs.
7434 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7435 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7436 Remove temporary copy of input string.
7437 (mi_execute_command_wrapper): Make "cmd" const.
7438 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7439 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7441 (mi_parse): Make "cmd" const.
7443 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7447 * ada-lang.c (ada_read_renaming_var_value): Pass const
7448 pointer to expression string to parse_exp_1.
7449 (create_excep_cond_exprs): Likewise.
7450 * ax-gdb.c (agent_eval_command_one): Likewise.
7451 (maint_agent_printf_command): Likewise.
7452 Constify much of the string handling/parsing.
7453 * breakpoint.c (set_breakpoint_condition): Pass const
7454 pointer to expression string to parse_exp_1.
7455 (update_watchpoint): Likewise.
7456 (parse_cmd_to_aexpr): Constify string handling.
7457 Pass const pointer to parse_exp_1.
7458 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7459 (find_condition_and_thread): Likewise.
7461 (watch_command_1): Make "arg" const.
7462 Constify string handling.
7463 Copy the expression string instead of changing the input
7465 (update_breakpoint_location): Pass const pointer to
7467 * eval.c (parse_and_eval_address): Make "exp" const.
7468 (parse_to_comma_and_eval): Make "expp" const.
7469 (parse_and_eval): Make "exp" const.
7470 * expression.h (parse_expression): Make argument const.
7471 (parse_exp_1): Make first argument const.
7472 * findcmd.c (parse_find_args): Treat "args" as const.
7473 * linespec.c (parse_linespec): Pass const pointer to
7474 linespec_expression_to_pc.
7475 (linespec_expression_to_pc): Make "exp_ptr" const.
7476 * parse.c (parse_exp_1): Make "stringptr" const.
7477 Make a copy of the expression to pass to parse_exp_in_context until
7478 this whole interface can be constified.
7479 (parse_expression): Make "string" const.
7480 * printcmd.c (ui_printf): Treat "arg" as const.
7481 Handle const strings.
7482 * tracepoint.c (validate_actionline): Pass const pointer to
7483 all calls to parse_exp_1.
7484 (encode_actions_1): Likewise.
7485 * value.h (parse_to_comma_and_eval): Make argument const.
7486 (parse_and_eval_address): Likewise.
7487 (parse_and_eval): Likewise.
7488 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7489 (varobj_set_value): Likewise.
7490 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7491 constify string handling.
7492 Pass const pointers to parse_and_eval_address and
7493 parse_to_comman_and_eval.
7494 * cli/cli-utils.c (skip_to_space): Rename to ...
7495 (skip_to_space_const): ... this. Handle const strings.
7496 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7497 skip_to_space_const.
7498 (skip_to_space_const): Declare.
7499 * common/format.c (parse_format_string): Make "arg" const.
7500 Handle const strings.
7501 * common/format.h (parse_format_string): Make "arg" const.
7502 * gdbserver/ax.c (ax_printf): Make "format" const.
7503 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7504 of the expression string.
7508 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7513 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7514 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7519 * ada-lex.l (rules): Only recognize 'thread' as a
7520 delimiter when followed by numerals, as for c-exp.y.
7521 Use new rewind_to_char function to rewind the input for
7522 expression-delimiting tokens.
7523 (rewind_to_char): New function.
7528 * configure: Regenerate.
7529 * configure.ac (check dynamic export flag): Link python test with
7535 * linespec.c (find_linespec_symbols): Call find_function_symbols
7536 first, and then call lookup_prefix_sym/find_method.
7540 * charset.c (convert_between_encodings): Don't cast between
7541 different pointer to pointer types. Instead, make the 'inp' local
7542 be of the type iconv expects.
7543 (wchar_iterate): Don't cast between different pointer to pointer
7544 types. Instead, use new pointer local of the type iconv expects.
7545 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7546 Add new local of type char pointer, and use it to get a
7547 char/string view of the byte buffer, instead of casting between
7548 pointer to pointer types.
7552 * remote.c (remote_set_trace_buffer_size): Move != operator
7553 to the start of next line to fix an ARI warning.
7557 * NEWS: Add record changes.
7561 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7562 the instruction history disassembly.
7563 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7564 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7568 * Makefile.in (SFILES): Add record-btrace.c
7569 (COMMON_OBS): Add record-btrace.o
7570 * record-btrace.c: New.
7571 * objfiles.c: Include btrace.h.
7572 (free_objfile): call btrace_free_objfile.
7576 * target.c (target_call_history, target_call_history_from,
7577 target_call_history_range): New.
7578 * target.h (target_ops) <to_call_history, to_call_history_from,
7579 to_call_history_range>: New fields.
7580 (target_call_history, target_call_history_from,
7581 target_call_history_range): New declaration.
7582 * record.c (get_call_history_modifiers, cmd_record_call_history,
7583 record_call_history_size): New.
7584 (_initialize_record): Add the "record function-call-history" command.
7585 Add "set/show record function-call-history-size" commands.
7586 * record.h (record_print_flag): New.
7590 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7591 to_insn_history_range>: New fields.
7592 (target_insn_history): New.
7593 (target_insn_history_from): New.
7594 (target_insn_history_range): New.
7595 * target.c (target_insn_history): New.
7596 (target_insn_history_from): New.
7597 (target_insn_history_range): New.
7598 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7599 (record_insn_history_size): New.
7600 (get_insn_number): New.
7601 (get_context_size): New.
7603 (get_insn_history_modifiers): New.
7604 (cmd_record_insn_history): New.
7605 (_initialize_record): Add "set/show record instruction-history-size"
7606 command. Add "record instruction-history" command.
7610 * record.h (record_disconnect): New.
7611 (record_detach): New.
7612 (record_mourn_inferior): New.
7614 * record-full.c (record_disconnect, record_detach,
7615 record_mourn_inferior, record_kill): Move to...
7616 * record.c: ...here.
7619 (record_unpush): New.
7620 (cmd_record_stop): Call record_stop. Replace unpush_target
7621 call with record_unpush call.
7622 (record_disconnect, record_detach): Assert that the target
7623 is of record stratum. Call record_unpush, record_stop, and
7625 (record_mourn_inferior, record_kill): Assert that the target
7626 is of record stratum. Call record_unpush and DEBUG.
7630 * record-full.h, record-full.c (record_memory_query): Rename
7632 (record_full_memory_query): ...this. Update all users.
7633 (record_arch_list_add_reg): Rename to ...
7634 (record_full_arch_list_add_reg): ...this. Update all users.
7635 (record_arch_list_add_mem): Rename to ...
7636 (record_full_arch_list_add_mem): ...this. Update all users.
7637 (record_arch_list_add_end): Rename to ...
7638 (record_full_arch_list_add_end): ...this. Update all users.
7639 (record_gdb_operation_disable_set): Rename to ...
7640 (record_full_gdb_operation_disable_set): ...this.
7645 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7646 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7647 (RECORD_IS_REPLAY): Renamed to ...
7648 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7649 (RECORD_FILE_MAGIC): Renamed to ...
7650 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7651 (record_mem_entry): Renamed to ...
7652 (record_full_mem_entry): ... this. Updated all users.
7653 (record_reg_entry): Renamed to ...
7654 (record_full_reg_entry): ... this. Updated all users.
7655 (record_end_entry): Renamed to ...
7656 (record_full_end_entry): ... this. Updated all users.
7657 (record_type) <record_end, record_reg, record_mem>: Renamed
7659 (record_full_type) <record_full_end, record_full_reg,
7660 record_full_mem>: ... this. Updated all users.
7661 (record_entry): Renamed to ...
7662 (record_full_entry): ... this. Updated all users.
7663 (record_core_buf_entry): Renamed to ...
7664 (record_full_core_buf_entry): ... this. Updated all users.
7665 (record_core_regbuf): Renamed to ...
7666 (record_full_core_regbuf): ... this. Updated all users.
7667 (record_core_start): Renamed to ...
7668 (record_full_core_start): ... this. Updated all users.
7669 (record_core_end): Renamed to ...
7670 (record_full_core_end): ... this. Updated all users.
7671 (record_core_buf_list): Renamed to ...
7672 (record_full_core_buf_list): ... this. Updated all users.
7673 (record_first): Renamed to ...
7674 (record_full_first): ... this. Updated all users.
7675 (record_list): Renamed to ...
7676 (record_full_list): ... this. Updated all users.
7677 (record_arch_list_head): Renamed to ...
7678 (record_full_arch_list_head): ... this. Updated all users.
7679 (record_arch_list_tail): Renamed to ...
7680 (record_full_arch_list_tail): ... this. Updated all users.
7681 (record_stop_at_limit): Renamed to ...
7682 (record_full_stop_at_limit): ... this. Updated all users.
7683 (record_insn_max_num): Renamed to ...
7684 (record_full_insn_max_num): ... this. Updated all users.
7685 (record_insn_num): Renamed to ...
7686 (record_full_insn_num): ... this. Updated all users.
7687 (record_insn_count): Renamed to ...
7688 (record_full_insn_count): ... this. Updated all users.
7689 (record_ops): Renamed to ...
7690 (record_full_ops): ... this. Updated all users.
7691 (record_core_ops): Renamed to ...
7692 (record_full_core_ops): ... this. Updated all users.
7693 (set_record_cmdlist): Renamed to ...
7694 (set_record_full_cmdlist): ... this. Updated all users.
7695 (show_record_cmdlist): Renamed to ...
7696 (show_record_full_cmdlist): ... this. Updated all users.
7697 (record_cmdlist): Renamed to ...
7698 (record_full_cmdlist): ... this. Updated all users.
7699 (record_beneath_to_resume_ops): Renamed to ...
7700 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7701 (record_beneath_to_resume): Renamed to ...
7702 (record_full_beneath_to_resume): ... this. Updated all users.
7703 (record_beneath_to_wait_ops): Renamed to ...
7704 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7705 (record_beneath_to_wait): Renamed to ...
7706 (record_full_beneath_to_wait): ... this. Updated all users.
7707 (record_beneath_to_store_registers_ops): Renamed to ...
7708 (record_full_beneath_to_store_registers_ops): ... this.
7710 (record_beneath_to_store_registers): Renamed to ...
7711 (record_full_beneath_to_store_registers): ... this.
7713 (record_beneath_to_xfer_partial_ops): Renamed to ...
7714 (record_full_beneath_to_xfer_partial_ops): ... this.
7716 (record_beneath_to_xfer_partial): Renamed to ...
7717 (record_full_beneath_to_xfer_partial): ... this.
7719 (record_beneath_to_insert_breakpoint): Renamed to ...
7720 (record_full_beneath_to_insert_breakpoint): ... this.
7722 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7723 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7725 (record_beneath_to_stopped_data_address): Renamed to ...
7726 (record_full_beneath_to_stopped_data_address): ... this.
7728 (record_beneath_to_async): Renamed to ...
7729 (record_full_beneath_to_async): ... this. Updated all users.
7730 (record_goto_insn): Renamed to ...
7731 (record_full_goto_insn): ... this. Updated all users.
7732 (record_save): Renamed to ...
7733 (record_full_save): ... this. Updated all users.
7734 (record_reg_alloc): Renamed to ...
7735 (record_full_reg_alloc): ... this. Updated all users.
7736 (record_reg_release): Renamed to ...
7737 (record_full_reg_release): ... this. Updated all users.
7738 (record_mem_alloc): Renamed to ...
7739 (record_full_mem_alloc): ... this. Updated all users.
7740 (record_mem_release): Renamed to ...
7741 (record_full_mem_release): ... this. Updated all users.
7742 (record_end_alloc): Renamed to ...
7743 (record_full_end_alloc): ... this. Updated all users.
7744 (record_end_release): Renamed to ...
7745 (record_full_end_release): ... this. Updated all users.
7746 (record_entry_release): Renamed to ...
7747 (record_full_entry_release): ... this. Updated all users.
7748 (record_list_release): Renamed to ...
7749 (record_full_list_release): ... this. Updated all users.
7750 (record_list_release_following): Renamed to ...
7751 (record_full_list_release_following): ... this.
7753 (record_list_release_first): Renamed to ...
7754 (record_full_list_release_first): ... this. Updated all users.
7755 (record_arch_list_add): Renamed to ...
7756 (record_full_arch_list_add): ... this. Updated all users.
7757 (record_get_loc): Renamed to ...
7758 (record_full_get_loc): ... this. Updated all users.
7759 (record_check_insn_num): Renamed to ...
7760 (record_full_check_insn_num): ... this. Updated all users.
7761 (record_arch_list_cleanups): Renamed to ...
7762 (record_full_arch_list_cleanups): ... this. Updated all users.
7763 (record_message): Renamed to ...
7764 (record_full_message): ... this. Updated all users.
7765 (record_message_wrapper): Renamed to ...
7766 (record_full_message_wrapper): ... this. Updated all users.
7767 (record_message_wrapper_safe): Renamed to ...
7768 (record_full_message_wrapper_safe): ... this. Updated all users.
7769 (record_gdb_operation_disable): Renamed to ...
7770 (record_full_gdb_operation_disable): ... this. Updated all users.
7771 (record_hw_watchpoint): Renamed to ...
7772 (record_full_hw_watchpoint): ... this. Updated all users.
7773 (record_exec_insn): Renamed to ...
7774 (record_full_exec_insn): ... this. Updated all users.
7775 (record_restore): Renamed to ...
7776 (record_full_restore): ... this. Updated all users.
7777 (record_async_inferior_event_token): Renamed to ...
7778 (record_full_async_inferior_event_token): ... this.
7780 (record_async_inferior_event_handler): Renamed to ...
7781 (record_full_async_inferior_event_handler): ... this.
7783 (record_core_open_1): Renamed to ...
7784 (record_full_core_open_1): ... this. Updated all users.
7785 (record_open_1): Renamed to ...
7786 (record_full_open_1): ... this. Updated all users.
7787 (record_open): Renamed to ...
7788 (record_full_open): ... this. Updated all users.
7789 (record_close): Renamed to ...
7790 (record_full_close): ... this. Updated all users.
7791 (record_resume_step): Renamed to ...
7792 (record_full_resume_step): ... this. Updated all users.
7793 (record_resumed): Renamed to ...
7794 (record_full_resumed): ... this. Updated all users.
7795 (record_execution_dir): Renamed to ...
7796 (record_full_execution_dir): ... this. Updated all users.
7797 (record_resume): Renamed to ...
7798 (record_full_resume): ... this. Updated all users.
7799 (record_get_sig): Renamed to ...
7800 (record_full_get_sig): ... this. Updated all users.
7801 (record_sig_handler): Renamed to ...
7802 (record_full_sig_handler): ... this. Updated all users.
7803 (record_wait_cleanups): Renamed to ...
7804 (record_full_wait_cleanups): ... this. Updated all users.
7805 (record_wait_1): Renamed to ...
7806 (record_full_wait_1): ... this. Updated all users.
7807 (record_wait): Renamed to ...
7808 (record_full_wait): ... this. Updated all users.
7809 (record_stopped_by_watchpoint): Renamed to ...
7810 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7811 (record_disconnect): Renamed to ...
7812 (record_full_disconnect): ... this. Updated all users.
7813 (record_detach): Renamed to ...
7814 (record_full_detach): ... this. Updated all users.
7815 (record_mourn_inferior): Renamed to ...
7816 (record_full_mourn_inferior): ... this. Updated all users.
7817 (record_kill): Renamed to ...
7818 (record_full_kill): ... this. Updated all users.
7819 (record_stopped_data_address): Renamed to ...
7820 (record_full_stopped_data_address): ... this. Updated all users.
7821 (record_registers_change): Renamed to ...
7822 (record_full_registers_change): ... this. Updated all users.
7823 (record_store_registers): Renamed to ...
7824 (record_full_store_registers): ... this. Updated all users.
7825 (record_xfer_partial): Renamed to ...
7826 (record_full_xfer_partial): ... this. Updated all users.
7827 (record_breakpoint): Renamed to ...
7828 (record_full_breakpoint): ... this. Updated all users.
7829 (record_breakpoint_p): Renamed to ...
7830 (record_full_breakpoint_p): ... this. Updated all users.
7831 (record_breakpoints): Renamed to ...
7832 (record_full_breakpoints): ... this. Updated all users.
7833 (record_sync_record_breakpoints): Renamed to ...
7834 (record_full_sync_record_breakpoints): ... this.
7836 (record_init_record_breakpoints): Renamed to ...
7837 (record_full_init_record_breakpoints): ... this.
7839 (record_insert_breakpoint): Renamed to ...
7840 (record_full_insert_breakpoint): ... this. Updated all users.
7841 (record_remove_breakpoint): Renamed to ...
7842 (record_full_remove_breakpoint): ... this. Updated all users.
7843 (record_can_execute_reverse): Renamed to ...
7844 (record_full_can_execute_reverse): ... this. Updated all users.
7845 (record_get_bookmark): Renamed to ...
7846 (record_full_get_bookmark): ... this. Updated all users.
7847 (record_goto_bookmark): Renamed to ...
7848 (record_full_goto_bookmark): ... this. Updated all users.
7849 (record_async): Renamed to ...
7850 (record_full_async): ... this. Updated all users.
7851 (record_can_async_p): Renamed to ...
7852 (record_full_can_async_p): ... this. Updated all users.
7853 (record_is_async_p): Renamed to ...
7854 (record_full_is_async_p): ... this. Updated all users.
7855 (record_execution_direction): Renamed to ...
7856 (record_full_execution_direction): ... this. Updated all users.
7857 (record_info): Renamed to ...
7858 (record_full_info): ... this. Updated all users.
7859 (record_delete): Renamed to ...
7860 (record_full_delete): ... this. Updated all users.
7861 (record_is_replaying): Renamed to ...
7862 (record_full_is_replaying): ... this. Updated all users.
7863 (record_goto_entry): Renamed to ...
7864 (record_full_goto_entry): ... this. Updated all users.
7865 (record_goto_begin): Renamed to ...
7866 (record_full_goto_begin): ... this. Updated all users.
7867 (record_goto_end): Renamed to ...
7868 (record_full_goto_end): ... this. Updated all users.
7869 (record_goto): Renamed to ...
7870 (record_full_goto): ... this. Updated all users.
7871 (init_record_ops): Renamed to ...
7872 (init_record_full_ops): ... this. Updated all users.
7873 (record_core_resume): Renamed to ...
7874 (record_full_core_resume): ... this. Updated all users.
7875 (record_core_kill): Renamed to ...
7876 (record_full_core_kill): ... this. Updated all users.
7877 (record_core_fetch_registers): Renamed to ...
7878 (record_full_core_fetch_registers): ... this. Updated all users.
7879 (record_core_prepare_to_store): Renamed to ...
7880 (record_full_core_prepare_to_store): ... this. Updated all users.
7881 (record_core_store_registers): Renamed to ...
7882 (record_full_core_store_registers): ... this. Updated all users.
7883 (record_core_xfer_partial): Renamed to ...
7884 (record_full_core_xfer_partial): ... this. Updated all users.
7885 (record_core_insert_breakpoint): Renamed to ...
7886 (record_full_core_insert_breakpoint): ... this. Updated all users.
7887 (record_core_remove_breakpoint): Renamed to ...
7888 (record_full_core_remove_breakpoint): ... this. Updated all users.
7889 (record_core_has_execution): Renamed to ...
7890 (record_full_core_has_execution): ... this. Updated all users.
7891 (init_record_core_ops): Renamed to ...
7892 (init_record_full_core_ops): ... this. Updated all users.
7893 (cmd_record_restore): Renamed to ...
7894 (cmd_record_full_restore): ... this. Updated all users.
7895 (record_save_cleanups): Renamed to ...
7896 (record_full_save_cleanups): ... this. Updated all users.
7897 (cmd_record_start): Renamed to ...
7898 (cmd_record_full_start): ... this. Updated all users.
7899 (set_record_insn_max_num): Renamed to ...
7900 (set_record_full_insn_max_num): ... this. Updated all users.
7901 (set_record_command): Renamed to ...
7902 (set_record_full_command): ... this. Updated all users.
7903 (show_record_command): Renamed to ...
7904 (show_record_full_command): ... this. Updated all users.
7905 (_initialize_record): Renamed to ...
7906 (_initialize_record_full): ... this. Updated all users.
7910 * record.h: Split into this and ...
7911 * record-full.h: ... this.
7912 * record.c: Split into this and ...
7913 * record-full.c: ... this.
7914 * target.h (target_ops): Add new fields to_info_record,
7915 to_save_record, to_delete_record, to_record_is_replaying,
7916 to_goto_record_begin, to_goto_record_end, to_goto_record.
7917 (target_info_record): New.
7918 (target_save_record): New.
7919 (target_supports_delete_record): New.
7920 (target_delete_record): New.
7921 (target_record_is_replaying): New.
7922 (target_goto_record_begin): New.
7923 (target_goto_record_end): New.
7924 (target_goto_record): New.
7925 * target.c (target_info_record): New.
7926 (target_save_record): New.
7927 (target_supports_delete_record): New.
7928 (target_delete_record): New.
7929 (target_record_is_replaying): New.
7930 (target_goto_record_begin): New.
7931 (target_goto_record_end): New.
7932 (target_goto_record): New.
7933 * record.h: Declare struct cmd_list_element.
7934 (record_cmdlist): New declaration.
7935 (set_record_cmdlist): New declaration.
7936 (show_record_cmdlist): New declaration.
7937 (info_record_cmdlist): New declaration.
7938 (cmd_record_goto): New declaration.
7939 * record.c: Remove unnecessary includes.
7941 (cmd_record_goto): Remove declaration.
7942 (record_cmdlist): Now extern. Initialize.
7943 (set_record_cmdlist): Now extern. Initialize.
7944 (show_record_cmdlist): Now extern. Initialize.
7945 (info_record_cmdlist): Now extern. Initialize.
7946 (find_record_target): New.
7947 (require_record_target): New.
7948 (cmd_record_start): Update.
7949 (cmd_record_delete): Remove target-specific code.
7950 Call target_delete_record.
7951 (cmd_record_stop): Unpush any record target.
7952 (set_record_insn_max_num): Move to record-full.c
7953 (set_record_command): Add comment.
7954 (show_record_command): Add comment.
7955 (info_record_command): Update comment.
7956 Remove target-specific code.
7957 Call the record target's to_info_record.
7958 (cmd_record_start): New.
7959 (cmd_record_goto): Now extern.
7960 Remove target-specific code.
7961 Call target_goto_begin, target_goto_end, or target_goto.
7962 (_initialize_record): Move record target ops initialization to
7964 Change "record" command help text.
7965 Move "record restore", "record set", and "record show" commands to
7967 * Makefile.in (SFILES): Add record-full.c.
7968 (HFILES_NO_SRCDIR): Add record-full.h.
7969 (COMMON_OBS): Add record-full.o.
7970 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7971 * arm-tdep.c: Include record-full.h.
7972 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7973 * i386-tdep.c: Include record-full.h.
7974 * infrun.c: Include record-full.h.
7975 * linux-record.c: Include record-full.h.
7976 * moxie-tdep.c: Include record-full.h.
7977 * record-full.c: Include record-full.h.
7978 Change module comment.
7979 (set_record_full_cmdlist): New.
7980 (show_record_full_cmdlist): New.
7981 (record_full_cmdlist): New.
7982 (record_goto_insn): New declaration.
7983 (record_save): New declaration.
7984 (record_check_insn_num): Change query string.
7986 (record_delete): New.
7987 (record_is_replaying): New.
7988 (record_goto_entry): New.
7989 (record_goto_begin): New.
7990 (record_goto_end): New.
7992 (init_record_ops): Update.
7993 (init_record_core_ops): Update.
7994 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7995 (cmd_record_start): New.
7996 (set_record_insn_max_num): Moved from record.c
7997 (set_record_full_command): New.
7998 (show_record_full_command): New.
7999 (_initialize_record_full): New.
8003 * target.h (add_deprecated_target_alias): New.
8004 * target.c (add_deprecated_target_alias): New.
8008 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8010 (linux_supports_btrace): Add kernel and
8012 (kernel_supports_btrace): New function.
8013 (cpu_supports_btrace): New function.
8014 (intel_supports_btrace): New function.
8018 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8019 * remote.c: Include btrace.h.
8020 (struct btrace_target_info): New struct.
8021 (remote_supports_btrace): New function.
8022 (send_Qbtrace): New function.
8023 (remote_enable_btrace): New function.
8024 (remote_disable_btrace): New function.
8025 (remote_teardown_btrace): New function.
8026 (remote_read_btrace): New function.
8027 (init_remote_ops): Add btrace ops.
8028 (enum <unnamed>): Add btrace packets.
8029 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8030 (_initialize_remote): Add packet configuration for branch tracing.
8034 * features/btrace.dtd: New file.
8035 * Makefile.in (XMLFILES): Add btrace.dtd.
8036 * btrace.h (parse_xml_btrace): New declaration.
8037 * btrace.c: Include xml-support.h.
8038 (parse_xml_btrace): New function.
8039 (parse_xml_btrace_block): New function.
8040 (block_attributes): New struct.
8041 (btrace_attributes): New struct.
8042 (btrace_children): New struct.
8043 (btrace_elements): New struct.
8047 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8048 (amd64_linux_enable_btrace): New.
8049 (amd64_linux_disable_btrace): New.
8050 (amd64_linux_teardown_btrace): New.
8051 (_initialize_amd64_linux_nat): Initialize btrace ops.
8052 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8053 (i386_linux_enable_btrace): New.
8054 (i386_linux_disable_btrace): New.
8055 (i386_linux_teardown_btrace): New.
8056 (_initialize_i386_linux_nat): Initialize btrace ops.
8057 * config/i386/linux.mh: Add linux-btrace.o.
8058 * config/i386/linux64.mh: Add linux-btrace.o.
8062 * common/linux_btrace.h: New file.
8063 * common/linux_btrace.c: New file.
8064 * Makefile.in (SFILES): Add btrace.c.
8065 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8066 (COMMON_OBS): Add btrace.o.
8067 (linux-btrace.o): New rule.
8071 * target.h: Include btrace.h.
8072 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8073 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8074 * target.c (target_supports_btrace): New function.
8075 (target_enable_btrace): New function.
8076 (target_disable_btrace): New function.
8077 (target_teardown_btrace): New function.
8078 (target_read_btrace): New function.
8079 * btrace.h: New file.
8080 * btrace.c: New file.
8081 * Makefile.in: Add btrace.c.
8082 * gdbthread.h: Include btrace.h.
8083 (struct thread_info): Add btrace field.
8084 * thread.c: Include btrace.h.
8085 (clear_thread_inferior_resources): Call target_teardown_btrace.
8086 * common/btrace-common.h: New file.
8090 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8091 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8092 kill_status to outer block.
8096 Fix entry-values if the callee called a noreturn function.
8097 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8098 get_frame_address_in_block. Add new comment.
8102 Fix entry-values in C++ across CUs.
8103 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8104 lookup_minimal_symbol. Add a comment.
8106 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8111 * tracepoint.c (_initialize_tracepoint): Indent the code.
8115 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8116 (parse_find_args, find_command): Change type of pattern buffer
8117 locals to 'gdb_byte *'.
8122 * NEWS: Mention set and show trace-buffer-size commands.
8124 * target.h (struct target_ops): New method
8125 to_set_trace_buffer_size.
8126 (target_set_trace_buffer_size): New macro.
8127 * target.c (update_current_target): Set up new method.
8128 * tracepoint.c (trace_buffer_size): New global.
8129 (start_tracing): Send it to the target.
8130 (set_trace_buffer_size): New function.
8131 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8132 * remote.c (remote_set_trace_buffer_size): New function.
8133 (_initialize_remote): Use it.
8134 (QTBuffer:size) New remote command.
8135 (PACKET_QTBuffer_size): New enum.
8136 (remote_protocol_features): Add an entry for
8137 PACKET_QTBuffer_size.
8141 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8146 * target.c (target_read_stralloc, target_fileio_read_alloc):
8147 *Cast pointer to 'gdb_byte *' in target call.
8151 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8156 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8157 (trace_pass_command): Likewise.
8158 * cli/cli-cmds.c: Include cli/cli-utils.h.
8159 (source_command): Use skip-spaces.
8160 (disassemble_command): Likewise.
8161 * findcmd.c: Include cli/cli-utils.h.
8162 (parse_find_args): Use skip_spaces.
8163 * go32-nat.c: Include cli/cli-utils.h.
8164 (go32_sldt): Use skip_spaces.
8165 (go32_sgdt): Likewise.
8166 (go32_sidt): Likewise.
8167 (go32_pde): Likewise.
8168 (go32_pte): Likewise.
8169 (go32_pte_for_address): Likewise.
8170 * infcmd.c: Include cli/cli-utils.h.
8171 (registers_info): Use skip_spaces.
8172 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8173 (linux_info_proc): Likewise.
8174 * linux-thread-db.c: Include cli/cli-utils.h.
8175 (info_auto_load_libthread_db): Use skip_spaces_const.
8176 * m32r-rom.c: Include cli/cli-utils.h.
8177 (m32r_upload_command): Use skip_spaces.
8178 * maint.c: Include cli/cli-utils.h.
8179 (maintenance_translate_address): Use skip_spaces.
8180 * mi/mi-parse.c: Include cli/cli-utils.h.
8181 (mi_parse_argv): Use skip_spaces.
8182 (mi_parse): Likewise.
8183 * minsyms.c: Include cli/cli-utils.h.
8184 (msymbol_hash_iw): Use skip_spaces_const.
8185 * objc-lang.c: Include cli/cli-utils.h.
8186 (parse_selector): Use skip_spaces.
8187 (parse_method): Likewise.
8188 * python/python.c: Include cli/cli-utils.h.
8189 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8190 (python_command)[HAVE_PYTHON]: Likewise.
8191 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8192 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8193 (m32r_load): Use skip_spaces.
8194 * serial.c: Include cli/cli-utils.h.
8195 (serial_open): Use skip_spaces_const.
8196 * stack.c: Include cli/cli-utils.h.
8197 (parse_frame_specification_1): Use skip_spaces_const.
8198 * symfile.c: Include cli/cli-utils.h.
8199 (set_ext_lang_command): Use skip_spaces.
8200 * symtab.c: Include cli/cli-utils.h.
8201 (rbreak_command): Use skip_spaces.
8202 * thread.c (thread_name_command): Use skip_spaces.
8203 * tracepoint.c (validate_actionline): Use skip_spaces.
8204 (encode_actions_1): Likewise.
8205 (trace_find_range_command): Likewise.
8206 (trace_find_outside_command): Likewise.
8207 (trace_dump_actions): Likewise.
8211 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8212 * expprint.c (print_subexp_standard): Likewise.
8213 * utils.c (host_char_to_target): Likewise.
8214 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8215 * varobj.c (value_get_print_value): Change type of local to char*.
8216 Cast it gdb_byte * in call to language printer.
8220 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8222 (make_wchar_iterator): Remove cast to char*.
8223 (wchar_iterate): Change type of local.
8227 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8228 for 'regcache->register_status'.
8232 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8237 * stap-probe.c (handle_stap_probe): Add cast to char*.
8241 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8242 RECORD_MSGRCV>: Pass a signed variable to
8243 regcache_raw_read_signed, instead of an unsigned one.
8247 * remote-notif.c (notif_debug): Change type to int.
8248 * remote-notif.h (notif_debug): Likewise.
8252 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8256 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8257 * remote.h (hex2bin, bin2hex): ... here.
8258 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8262 * utils.c (initialize_utils): Improve doc strings of "set/show
8263 width", "set/show height", and "set/show pagination".
8267 * ax-gdb.c (gen_printf): Make FORMAT const.
8268 * ax-gdb.h (gen_printf): Likewise.
8269 * ax-general.c (ax_string): Make STR const.
8270 * ax.h (ax_string): Likewise.
8274 * elfread.c (elf_symfile_read): Move debugging printf to more
8279 * python/py-utils.c (target_string_to_unicode): Delete function.
8280 * python/python-internal.h (target_string_to_unicode): Delete
8285 * linespec.c (get_current_search_block): ARI fix, use (void)
8286 for empty parameter list.
8290 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8291 of old ada_lookup_symbol_list. In !full_search case, don't
8293 (ada_lookup_symbol_list): Delete arg full_search, all callers
8294 updated. Call ada_lookup_symbol_list_worker.
8295 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8296 * ada-lang.h (ada_lookup_symbol_list): Update.
8297 * language.h (language_defn): Update comment for
8298 la_iterate_over_symbols.
8299 * linespec.c (iterate_over_file_blocks): New function.
8300 (iterate_over_all_matching_symtabs): Call it.
8301 (lookup_prefix_sym): Ditto.
8302 (get_current_search_block): New function.
8303 (get_search_block): Delete.
8304 (find_label_symbols): Call get_current_search_block.
8305 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8306 * symtab.c (iterate_over_symbols): Don't search superblocks.
8310 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8311 parameter VAR's type from "unsigned int" to "int".
8312 * command.h (var_zuinteger_unlimited): Update its comments.
8313 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8317 * NEWS: Mention new target x86_64-*-cygwin*.
8321 * configure.host: Add x86_64-*-cygwin* as host.
8322 * configure.tgt: Add x86_64-*-cygwin* as target.
8323 * config/i386/cygwin64.mh: New file.
8327 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8331 * linespec.c (struct linespec_canonical_name): New.
8332 (struct linespec_state): Change canonical_names type to it.
8333 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8334 xrealloc element size. Initialize the different CANONICAL fields.
8335 (canonical_to_fullform): New.
8336 (filter_results): Use it. Add variables canonical, fullform and
8338 (struct decode_line_2_item, decode_line_2_compare_items): New.
8339 (decode_line_2): Remove variables iter and item_names, add variables
8340 items and items_count. Modify the code for these new variables.
8344 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8349 * tracepoint.c (build_traceframe_info): Add code for byte order.
8353 * v850-tdep.c: (v850e2_register_name): Revise system register
8354 names to match current V850E2M architecture specifications.
8355 Update register number enum comments too.
8360 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8362 (tilegx_skip_prologue): Limit prologue analysis to section end.
8366 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8371 Use gdb_byte for bytes from the program being debugged.
8373 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8374 Change type of local 'buf' to gdb_byte.
8375 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8376 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8377 * cris-tdep.c (cris_sigcontext_addr)
8378 (cris_sigtramp_frame_unwind_cache): Likewise.
8379 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8380 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8382 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8383 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8384 (hppa32_hpux_search_dummy_call_sequence)
8385 (hppa_hpux_supply_save_state): Likewise.
8386 * hppa-linux-tdep.c (insns_match_pattern)
8387 (hppa_linux_find_global_pointer): Likewise.
8388 * hppa-tdep.c (hppa_in_function_epilogue_p)
8389 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8390 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8391 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8392 (i386fbsd_collect_uthread): Likewise.
8393 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8394 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8395 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8396 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8397 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8398 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8399 (ia64_libunwind_frame_prev_register)
8400 (ia64_libunwind_sigtramp_frame_this_id)
8401 (ia64_find_global_pointer_from_dynamic_section)
8402 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8403 (ia64_unwind_pc): Likewise.
8404 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8405 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8406 (m68hc11_extract_return_value): Likewise.
8407 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8408 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8409 (mep_get_insn, mep_push_dummy_call): Likewise.
8410 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8411 (mips_linux_in_dynsym_stub): Likewise.
8412 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8413 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8414 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8416 * remote-mips.c (mips_set_register): Likewise.
8417 * remote-sim.c (gdbsim_fetch_register): Likewise.
8418 * score-tdep.c (score7_fetch_inst): Change type of parameter
8419 'memblock' and local 'buf' to gdb_byte.
8420 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8421 Change type of local 'buf' to gdb_byte. Adjust.
8422 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8424 (score7_analyze_prologue): Change type of 'memblock' and
8425 'memblock_ptr' locals to gdb_byte*.
8426 * sh64-tdep.c (sh64_extract_return_value)
8427 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8428 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8429 * solib-pa64.c (pa64_solib_create_inferior_hook)
8430 (pa64_open_symbol_file_object): Remove local 'buf'.
8431 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8432 (som_open_symbol_file_object): Likewise.
8433 * solib-spu.c (spu_current_sos): Likewise.
8434 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8435 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8436 (spu_store_registers): Likewise.
8437 * target.c (debug_print_register): Likewise.
8438 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8439 * xstormy16-tdep.c (xstormy16_store_return_value)
8440 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8441 (xstormy16_find_jmp_table_entry): Likewise.
8445 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8446 (tilegx_gdbarch_init): Install it.
8450 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8455 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8456 * python/python.c (gdbpy_find_pc_line): Ditto.
8460 * contrib/excheck.py: New file.
8461 * contrib/exsummary.py: New file.
8462 * contrib/gcc-with-excheck: New file.
8466 * python/python.c (gdbpy_print_stack): Call begin_line and
8467 fprintf_filtered inside TRY_CATCH.
8471 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8476 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8477 frame_object_to_frame_info inside TRY_CATCH.
8481 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8486 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8490 * windows-nat.c: Throughout, fix format strings and casts of
8491 printf-like functions to avoid type related warnings on all
8493 (handle_output_debug_string): Fetch context information address
8494 from debug string using string_to_core_addr.
8498 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8499 * regformats/reg-tilegx32.dat: New.
8503 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8507 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8512 * tracepoint.c (tfile_trace_find): For tfind
8513 pc/tp/range/outside, look for the next trace frame instead of
8514 always starting from frame 0.
8518 * configure.tgt: Add support for moxie-*-rtems* target.
8522 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8527 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8528 if $fp is used as the virtual frame pointer.
8532 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8534 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8535 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8536 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8537 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8542 * elfread.c (build_id_bfd_get): Make the return type const.
8543 (build_id_verify): Make the check parameter const.
8544 (build_id_to_debug_filename): Make the build_id parameter and variable
8546 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8550 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8554 Add a new method 'disassemble' to gdb.Architecture class.
8555 * python/py-arch.c (archpy_disassmble): Implementation of the
8556 new method gdb.Architecture.disassemble.
8557 (arch_object_methods): Add entry for the new method.
8561 * MAINTAINERS (Write After Approval): Add myself to the list.
8565 Garbage collect 'struct monitor_ops'::load_routine.
8567 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8568 * monitor.c (monitor_load): No longer call
8569 current_monitor->load_routine.
8570 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8571 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8572 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8578 Harmonize with generic_load.
8580 * monitor.c: Include "readline/readline.h".
8581 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8582 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8583 long/strtol for the 'load_offset' local. Error out if no argument
8584 is given or if too many arguments are given. Tilde expand the
8585 passed in file name.
8590 * symfile.c (load_section_data): Change type of load_offset
8592 (generic_load): User strtoulst instead of strtoul for conversion
8597 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8598 for return address, "lr" register, saved on stack.
8599 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8600 after we invoke tilegx_analyze_prologue.
8604 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8608 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8612 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8613 (tilegx_write_pc): New function.
8614 (tilegx_cannot_reference_register): Return zero if REGNO
8615 is TILEGX_FAULTNUM_REGNUM.
8616 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8617 (tilegx_register_name): Add handling of "faultnum" register.
8618 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8619 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8620 handling of TILEGX_FAULTNUM_REGNUM.
8621 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8625 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
8626 should be aligned to 64bit.
8630 * windows-nat.c (windows_xfer_memory): Fix debug-output
8635 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8636 Don't check DSP register number if HAVE_DSP is not set.
8640 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8641 throughout file instead.
8642 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8643 Don't xmalloc return value.
8644 (build_id_verify): Similarly. Don't xfree.
8645 (build_id_to_debug_filename): Update.
8646 (find_separate_debug_file_by_buildid): Update, don't xfree.
8651 * dwarf2read.c (read_subrange_type): Use result of
8656 * frame.c: Remove one extra white space after #include
8661 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8665 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8666 and dir commands into an if block.
8670 * python/py-breakpoint (struct pybp_code): Use int instead of
8676 * NEWS: Mention new field "trace-file".
8677 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8678 (tfile_open): Record the trace file's filename in the trace
8680 (tfile_files_info): Mention the name of the trace file.
8681 Check the "filename" field explicitely.
8682 (trace_status_command): Explicitely check "filename" field.
8683 (trace_find_command): Ditto.
8684 (trace_find_pc_command): Ditto.
8685 (trace_find_tracepoint_command): Ditto.
8686 (trace_find_line_command): Ditto.
8687 (trace_find_range_command): Ditto.
8688 (trace_find_outside_command): Ditto.
8689 * tracepoint.h (struct trace_status) <from_file>: Rename it
8690 to "filename" and make it hold the trace file's filename
8691 instead of a boolean.
8692 * remote.c (remote_get_trace_status): Initialize "filename"
8693 field with NULL instead of 0.
8697 * remote.c: Fix a typo.
8701 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8705 * utils.c (savestring): Don't #undef it. Move function to
8706 common/common-utils.c.
8707 * common/common-utils.c: Include gdb_string.h.
8708 (savestring): Move here from utils.c.
8709 * common/common-utils.h (savestring): Declare.
8713 * utils.c (savestring): Rename parameter 'size' to 'len'.
8718 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8719 (aarch64_inferior_data, struct aarch64_inferior_data):
8721 (struct aarch64_process_info): New.
8722 (aarch64_process_list): New global.
8723 (aarch64_find_process_pid, aarch64_add_process)
8724 (aarch64_process_info_get): New functions.
8725 (aarch64_inferior_data_get): Delete.
8726 (aarch64_process_info_get): New function.
8727 (aarch64_forget_process): New function.
8728 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8729 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8730 aarch64_get_debug_reg_state.
8731 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8732 instead of linux_nat_iterate_watchpoint_lwps.
8733 (aarch64_linux_new_fork): New function.
8734 (aarch64_linux_child_post_startup_inferior): Use
8735 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8736 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8737 (aarch64_linux_remove_hw_breakpoint)
8738 (aarch64_handle_aligned_watchpoint)
8739 (aarch64_handle_unaligned_watchpoint)
8740 (aarch64_linux_insert_watchpoint)
8741 (aarch64_linux_remove_watchpoint)
8742 (aarch64_linux_stopped_data_address): Adjust to pass the current
8743 process id to aarch64_debug_reg_state.
8744 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8745 linux_nat_new_fork hook, and aarch64_forget_process as
8746 linux_nat_forget_process hook; remove the call to
8747 register_inferior_data_with_cleanup.
8751 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8752 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8758 * tracepoint.h (validate_trace_state_variable_name): Declare.
8759 * tracepoint.c (validate_trace_state_variable_name): New.
8760 (trace_variable_command): Parse the trace state variable's name
8761 without using parse_expression. Do several validations.
8762 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8763 trace state variable's name with parse_expression. Validate it.
8767 * infcmd.c (breakpoint_proceeded): Remove it.
8771 * tracepoint.c (end_actions_pseudocommand): Make it static.
8772 (while_stepping_pseudocommand): Likewise.
8773 * tracepoint.h (end_actions_pseudocommand): Remove the
8775 (while_stepping_pseudocommand): Likewise.
8779 * cli/cli-decode.c (help_cmd): Remove the declaration of
8781 (help_all): Likewise.
8785 * amd64-linux-nat.c (update_debug_registers_callback):
8787 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8789 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8790 i386_debug_reg_state.
8791 (amd64_linux_new_fork): New function.
8792 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8793 linux_nat_new_fork hook, and i386_forget_process as
8794 linux_nat_forget_process hook.
8795 * i386-linux-nat.c (update_debug_registers_callback):
8797 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8799 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8800 i386_debug_reg_state.
8801 (i386_linux_new_fork): New function.
8802 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8803 linux_nat_new_fork hook, and i386_forget_process as
8804 linux_nat_forget_process hook.
8805 * i386-nat.c (i386_init_dregs): Delete.
8806 (i386_inferior_data, struct i386_inferior_data):
8808 (struct i386_process_info): New.
8809 (i386_process_list): New global.
8810 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8812 (i386_inferior_data_get): Delete.
8813 (i386_process_info_get): New function.
8814 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8815 (i386_forget_process): New function.
8816 (i386_cleanup_dregs): Rewrite.
8817 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8818 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8819 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8820 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8821 to i386_debug_reg_state.
8822 (i386_use_watchpoints): Don't register inferior data.
8823 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8825 (i386_forget_process): Declare.
8826 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8827 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8829 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8830 (add_initial_lwp): New, factored out from ...
8831 (add_lwp): ... this. Don't check the number of lwps before
8832 calling linux_nat_new_thread.
8833 (linux_nat_iterate_watchpoint_lwps): Delete.
8834 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8835 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8837 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8839 (linux_nat_kill, linux_nat_mourn_inferior): Call
8840 linux_nat_forget_process.
8841 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8842 (linux_nat_forget_process): New functions.
8843 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8845 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8846 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8848 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8849 (linux_nat_forget_process): New declarations.
8851 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8852 (amd64fbsd_mourn_inferior): New function.
8853 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8854 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8858 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8863 * aarch64-linux-nat.c (debug_reg_change_callback)
8864 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8869 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8875 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8880 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8882 (classify_inner_name): Remove 'first_name' argument, add
8883 'context'. Remove unused variable.
8884 (yylex): Explicitly maintain the context type. Exit loop earlier
8885 if NAME result is seen.
8889 * amd64-darwin-tdep.c: Add (C) after Copyright.
8890 * cli/cli-cmds.h: Ditto.
8891 * cli/cli-decode.c: Ditto.
8892 * cli/cli-decode.h: Ditto.
8893 * cli/cli-dump.c: Ditto.
8894 * cli/cli-dump.h: Ditto.
8895 * cli/cli-interp.c: Ditto.
8896 * cli/cli-logging.c: Ditto.
8897 * cli/cli-script.c: Ditto.
8898 * cli/cli-script.h: Ditto.
8899 * cli/cli-setshow.c: Ditto.
8900 * cli/cli-setshow.h: Ditto.
8901 * cli/cli-utils.c: Ditto.
8902 * cli/cli-utils.h: Ditto.
8903 * config/alpha/nm-osf3.h: Ditto.
8904 * config/djgpp/djconfig.sh: Ditto.
8905 * config/i386/nm-fbsd.h: Ditto.
8906 * config/i386/nm-i386gnu.h: Ditto.
8907 * config/nm-linux.h: Ditto.
8908 * config/nm-nto.h: Ditto.
8909 * config/rs6000/nm-rs6000.h: Ditto.
8910 * config/sparc/nm-sol2.h: Ditto.
8911 * darwin-nat-info.c: Ditto.
8914 * gdb-demangle.h: Ditto.
8915 * i386-darwin-nat.c: Ditto.
8916 * i386-darwin-tdep.c: Ditto.
8917 * linux-fork.h: Ditto.
8918 * m32c-tdep.c: Ditto.
8919 * microblaze-linux-tdep.c: Ditto.
8920 * microblaze-rom.c: Ditto.
8921 * microblaze-tdep.c: Ditto.
8922 * microblaze-tdep.h: Ditto.
8923 * mips-linux-tdep.h: Ditto.
8924 * ppc-ravenscar-thread.c: Ditto.
8925 * ppc-ravenscar-thread.h: Ditto.
8926 * prologue-value.c: Ditto.
8927 * prologue-value.h: Ditto.
8928 * ravenscar-thread.c: Ditto.
8929 * ravenscar-thread.h: Ditto.
8930 * sparc-ravenscar-thread.c: Ditto.
8931 * sparc-ravenscar-thread.h: Ditto.
8932 * tilegx-linux-tdep.c: Ditto.
8933 * unwind_stop_reasons.def: Ditto.
8934 * windows-nat.h: Ditto.
8935 * xtensa-linux-tdep.c: Ditto.
8936 * xtensa-xtregs.c: Ditto.
8937 * regformats/regdat.sh: Ditto.
8938 * regformats/regdef.h: Ditto.
8942 * break-catch-sig.c: Update copyright years.
8946 Add support for a destructor for ui_out data and use it to
8947 provide a ui_out destructor.
8948 * ui-out.h: Declare the new ui_out destructor.
8949 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8950 * ui-out.c (default_data_destroy): Add a default data destructor
8952 (default_ui_out_impl): Set the new data_destroy field to
8953 default_data_destroy
8954 (uo_data_destroy): Local function which invokes the data
8955 destructor if present.
8956 (clear_table): Local function which clears the table data of a
8958 (ui_out_destroy): Public function which frees a ui_out object.
8959 (ui_out_table_end): Use the new clear_table function.
8960 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8962 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8967 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8968 (printf_decfloat): New function. Broken out from ui_printf.
8969 Remove unnecessary code to shift the entire format string down.
8970 (printf_pointer): New function.
8971 (ui_printf): Code to print C strings, wide C strings, decfloats,
8972 and pointers moved to separate functions.
8976 * valops.c (value_assign): Handling bitfield offset in
8977 `lval_internalvar_component' case.
8981 * common/format.c (parse_format_string): Fix whitespace.
8985 * stack.c (return_command): Work around uninitialized variable
8990 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8991 number of the registers from 36 to 34.
8995 * NEWS: Mention new AArch64 native and target support.
8999 * MAINTAINERS (Write After Approval): Add myself.
9006 * aarch64-linux-nat.c: New file.
9007 * config/aarch64/linux.mh: New file.
9008 * configure.host: Add AArch64.
9009 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9013 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9014 disassemble command.
9018 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9019 set_gdbarch_fetch_tls_load_module_address.
9023 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9024 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9025 * value.c (struct_return_convention): New function.
9026 (using_struct_return): Implement in terms of struct_return_convention.
9027 * value.h (struct_return_convention): Declare.
9028 * stack.c (return_command): Allow successful overriding of the return
9029 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9033 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9034 outside of TRY_CATCH.
9038 * mi/mi-interp.c: Include "tracepoint.h".
9039 (mi_tsv_modified): Declare.
9040 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9041 (mi_interpreter_init): Call observer_attach_tsv_modified.
9042 (mi_tsv_modified): New.
9043 (mi_tsv_created, mi_tsv_deleted): Update.
9044 * tracepoint.c (trace_variable_command): Call
9045 observer_notify_tsv_modified if the initial value of tsv is
9047 (delete_trace_state_variable): Call
9048 observer_notify_tsv_deleted earlier.
9049 (trace_variable_command): Caller update.
9050 (create_tsv_from_upload): Likewise.
9051 * observer.sh: Declare "struct trace_state_variable".
9053 * NEWS: Mention the new MI notification "=tsv-modified".
9057 * completer.c (location_completer): Fix typo in comment.
9061 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9066 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9067 Refactor if statement to avoid trailing || operator.
9071 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9075 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9076 * configure.host: Add powerpc*-*-freebsd* target.
9077 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9078 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9079 * config/powerpc/fbsd.mh: New file.
9085 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9086 (struct elf_internal_linux_prpsinfo): Forward declare.
9087 * gdbarch.h, gdbarch.c: Regenerate.
9088 * linux-tdep.c: Include `cli/cli-utils.h'.
9089 (linux_fill_prpsinfo): New function.
9090 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9091 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9092 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9093 depending on gdbarch pointer bitness.
9094 * ppc-linux-tdep.c: Include elf-bfd.h.
9095 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9103 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9110 * aarch64-newlib-tdep.c: New file.
9111 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9113 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9114 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9115 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9116 * osabi.c (gdb_osabi_names): Add "Newlib".
9123 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9124 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9125 * aarch64-linux-tdep.c: New file.
9126 * aarch64-linux-tdep.h: New file.
9127 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9128 * configure.tgt: Add aarch64-none-linux-gnu.
9135 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9136 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9137 (ALLDEPFILES): Add aarch64-tdep.c.
9138 * aarch64-tdep.c: New file.
9139 * aarch64-tdep.h: New file.
9140 * configure.tgt: Add AArch64.
9141 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9142 (aarch64-expedite): New definition.
9143 * features/aarch64-core.xml: New file.
9144 * features/aarch64-fpu.xml: New file.
9145 * features/aarch64-without-fpu.c: New file (generated).
9146 * features/aarch64-without-fpu.xml: New file.
9147 * features/aarch64.c: New file (generated).
9148 * features/aarch64.xml: New file.
9149 * regformats/aarch64-without-fpu.dat: New file (generated).
9150 * regformats/aarch64.dat: New file (generated).
9154 * contrib/expect-read1.c: New file.
9155 * contrib/expect-read1.sh: New file.
9159 * dwarf2read.c (file_file_name): New function with code from
9161 (file_full_name): Move most of the code to file_file_name.
9162 (macro_start_file): Rename variable full_name to file_name and use
9163 file_file_name for it. Add comp_dir parameter to new_macro_table.
9164 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9165 macro_source_file->filename access by macro_source_fullname call.
9166 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9168 * macrotab.c (struct macro_table): New field comp_dir.
9169 (macro_include): New variables link_fullname and source_fullname.
9170 Replace any macro_source_file->filename access by macro_source_fullname
9172 (macro_lookup_inclusion): Remove the partial filenames checking code.
9173 (check_for_redefinition): New variables source_fullname and
9174 found_key_fullname. Replace any macro_source_file->filename access by
9175 macro_source_fullname call.
9176 (macro_undef): New variables source_fullname and key_fullname. Replace
9177 any macro_source_file->filename access by macro_source_fullname call.
9178 (macro_lookup_definition): New variables retval and source_fullname.
9179 Replace any macro_source_file->filename access by macro_source_fullname
9181 (foreach_macro): New variable key_fullname. Replace any
9182 macro_source_file->filename access by macro_source_fullname call.
9183 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9184 macro_source_file->filename access by macro_source_fullname call.
9185 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9186 (macro_source_fullname): New function.
9187 * macrotab.h (struct macro_source_file): Extent the filename field
9189 (new_macro_table): New parameter comp_dir, add a comment for it.
9190 (macro_source_fullname): new declaration.
9194 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9195 this_real_name to outer block. Use it also for
9196 compare_filenames_for_search.
9197 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9198 with dw2_get_real_path for file_matcher, considering also
9199 BASENAMES_MAY_DIFFER.
9200 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9204 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9205 to the file_matcher parameter. Pass 0 to it.
9206 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9207 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9208 NULL psymtab_to_fullname result.
9209 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9210 an expected filename instead.
9211 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9212 file_matcher parameter. Call also psymtab_to_fullname, after newly
9213 considering BASENAMES_MAY_DIFFER.
9214 * source.c (rewrite_source_path): Remove static.
9215 * source.h (rewrite_source_path): New declaration.
9216 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9217 the expand_symtabs_matching field. Comment it.
9218 * symtab.c (file_matches): New function comment. Add parameter
9219 basenames, implement it.
9220 (search_symbols_file_matches): Add basenames parameter. Update the
9221 file_matches caller.
9222 (search_symbols): Match FILES also against symtab_to_fullname.
9223 Optimize it for BASENAMES_MAY_DIFFER.
9227 * source.c (print_source_lines_base): Print for TUI also "fullname".
9228 * tui/tui-data.c (init_content_element): Change tui_locator_element
9230 * tui/tui-data.h (struct tui_locator_element): Likewise.
9231 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9232 tui_update_locator_filename calls to tui_update_locator_fullname.
9233 Replace symtab->filename refererence by symtab_to_fullname call.
9234 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9235 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9236 field to full_name. Replace symtab->filename refererence by
9237 symtab_to_fullname call.
9238 (tui_show_symtab_source): Rename parameter to fullname. Change
9239 tui_locator_element field to full_name.
9240 * tui/tui-stack.c: Include source.h.
9241 (tui_set_locator_filename): Rename the declaration to ...
9242 (tui_set_locator_fullname): ... here. Rename its parameter to
9243 fullname, updates its comment.
9244 (tui_set_locator_info): Rename its parameter to fullname.
9245 (tui_set_locator_filename): Rename the definition to ...
9246 (tui_set_locator_fullname): ... here. Rename its parameter to
9247 fullname, updates its comment. Change tui_locator_element field to
9249 (tui_set_locator_info): Rename its parameter to fullname.
9250 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9251 (tui_update_locator_filename): Rename to ...
9252 (tui_update_locator_fullname): ... here. Rename callee to
9253 tui_set_locator_fullname.
9254 (tui_show_frame_info): Replace symtab->filename refererence by
9255 symtab_to_fullname call.
9256 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9257 (tui_update_locator_fullname): ... here.
9258 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9259 tui_update_locator_fullname. Replace symtab->filename refererence by
9260 symtab_to_fullname call.
9261 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9262 Rename the callee to tui_update_locator_fullname.
9263 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9267 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9268 by symtab_to_filename_for_display calls.
9269 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9270 (clear_command): New variable sal_fullname, initialize it. Replace
9271 compare_filenames_for_search by filename_cmp with sal_fullname.
9272 (say_where, update_static_tracepoint): Replace symtab->filename
9273 refererences by symtab_to_filename_for_display calls.
9274 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9276 * dwarf2read.c: Include source.h.
9277 (fixup_go_packaging): Replace symtab->filename refererences by
9278 symtab_to_filename_for_display calls.
9279 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9280 Replace symtab->filename refererences by symtab_to_filename_for_display
9282 (create_sals_line_offset, convert_linespec_to_sals): New variable
9283 fullname, initialize it, replace symtab->filename reference by the
9285 * linux-fork.c: Include source.h.
9286 (info_checkpoints_command): Replace symtab->filename refererences by
9287 symtab_to_filename_for_display calls.
9288 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9289 by symtab_to_filename_for_display calls.
9290 * mdebugread.c: Include source.h.
9291 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9292 symtab_to_filename_for_display calls.
9293 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9294 (mi_cmd_file_list_exec_source_files): Likewise.
9295 * printcmd.c: Include source.h.
9296 (build_address_symbolic): Replace symtab->filename refererences by
9297 symtab_to_filename_for_display calls.
9298 * psymtab.c (partial_map_symtabs_matching_filename)
9299 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9300 with psymtab_to_fullname.
9301 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9302 by symtab_to_filename_for_display calls.
9303 (stpy_get_filename): New variable filename, initialize it, use instead
9304 of symtab->filename refererences.
9305 (salpy_str): Make variable filename const char *. Replace
9306 symtab->filename refererences by symtab_to_filename_for_display calls.
9307 * skip.c: Include source.h and filenames.h.
9308 (skip_file_command): Remove const from the symtab variable. Replace
9309 symtab->filename refererences by symtab_to_fullname call.
9310 (function_name_is_marked_for_skip): New variables searched_for_fullname
9311 and fullname. Use them to search also with symtab's fullname.
9312 * source.c (find_source_lines): Replace symtab->filename refererences
9313 by symtab_to_filename_for_display calls.
9314 (print_source_lines_base): New variable filename, use it instead of
9315 symtab->filename. Replace symtab->filename refererences by
9316 symtab_to_filename_for_display calls.
9317 (line_info, forward_search_command): Replace symtab->filename
9318 refererences by symtab_to_filename_for_display calls.
9319 (reverse_search_command): Replace symtab->filename refererences by
9320 symtab_to_filename_for_display calls. New variable filename for it.
9321 * stack.c (frame_info): Likewise.
9322 * symmisc.c: Include source.h.
9323 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9324 (maintenance_info_symtabs): Replace symtab->filename refererences by
9325 symtab_to_filename_for_display calls.
9326 * symtab.c (iterate_over_some_symtabs): Call
9327 compare_filenames_for_search also with symtab_to_fullname.
9328 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9329 symtab->filename refererences by symtab_to_filename_for_display calls.
9330 (find_line_symtab): Replace symtab->filename refererences by
9331 symtab_to_filename_for_display calls.
9332 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9333 (print_symbol_info): Make the last parameter const char *. New
9334 variable s_filename. Use it in the function.
9335 (symtab_symbol_info): Make the last_filename variable const char *.
9336 Replace symtab->filename refererences by symtab_to_filename_for_display
9338 (rbreak_command): New variable fullname. Use it. Replace
9339 symtab->filename refererence by symtab_to_filename_for_display call.
9340 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9341 (print_one_static_tracepoint_marker): Replace symtab->filename
9342 refererences by symtab_to_filename_for_display calls.
9343 * tui/tui-source.c (tui_set_source_content): New variables filename and
9344 s_filename. Replace symtab->filename refererences by this variable.
9345 Replace other symtab->filename refererences by
9346 symtab_to_filename_for_display calls.
9351 Add a new variable that controls a way in which filenames are
9353 * NEWS (set filename-display): New entry.
9354 * source.c (filename_display_basename, filename_display_relative)
9355 (filename_display_absolute, filename_display_kind_names)
9356 (filename_display_string, show_filename_display_string)
9357 (symtab_to_filename_for_display): New.
9358 (_initialize_source): Added initialization of 'filename-display'
9360 * source.h (symtab_to_filename_for_display): Added declaration.
9361 * stack.c (print_frame): Added new variable and calling of a new
9362 function and condition with this variable. Changed third argument of
9363 calling of a function.
9367 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9368 Rename field reference filename to fullname.
9369 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9370 fullname. New comment for it.
9371 * tui/tui-source.c (tui_set_source_content): Rename field reference
9372 filename to fullname. Initialize field by symtab_to_fullname now.
9373 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9374 reference filename to fullname. Use symtab_to_fullname during
9380 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9381 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9382 filename to fullname. Rename variable this_name to this_fullname.
9383 Lowercase FILENAME_CMP call.
9384 (dw2_find_symbol_file): New comment for the returned string.
9385 (dwarf2_gdb_index_functions): Rename the function to
9386 dw2_expand_symtabs_with_fullname.
9387 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9388 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9390 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9391 * symfile.h (struct quick_symbol_functions): Rename field
9392 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9393 parameter filename to fullname. Document returned string meaning for
9395 * symtab.c (find_line_symtab): Rename the called function to
9396 expand_symtabs_with_fullname.
9401 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9402 call of filename_cmp with compare_filenames_for_search.
9403 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9404 is_abs, unify the call of FILENAME_CMP with
9405 compare_filenames_for_search. New gdb_asserts for real_path and name.
9406 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9407 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9408 * symfile.h (struct quick_symbol_functions): Extend the comment for
9409 map_symtabs_matching_filename.
9410 * symtab.c (compare_filenames_for_search): Remove the function comment
9411 relative path requirement. Handle absolute filenames, with a comment.
9412 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9413 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9414 real_path and name. Unify the call of compare_filenames_for_search
9416 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9421 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9422 source_file references by symtab field references. Remove variables
9424 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9425 (clear_command, say_where): Replace bp_location field source_file
9426 references by symtab field references.
9427 (bp_location_dtor): Remove the source_file reference.
9428 (update_static_tracepoint): Replace bp_location field source_file
9429 references by symtab field references.
9430 (breakpoint_free_objfile): New function.
9431 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9432 Replace the field source_file by field symtab, extend its comment.
9433 (breakpoint_free_objfile): New declaration.
9434 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9435 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9436 field source_file references by symtab field references.
9440 Replace xfullpath calls by gdb_realpath calls.
9441 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9443 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9444 Remove it from the iterate_over_some_symtabs call.
9445 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9446 Remove it from the dw2_map_expand_apply calls, remove a block handling
9448 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9449 Remove it from the iterate_over_some_symtabs call.
9450 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9451 Remove it from the partial_map_expand_apply calls, remove a block
9452 handling it. Drop gdb_realpath call and cleanups from the real_path
9454 * source.c (openp): Drop the comment part about xfullpath. Replace
9455 xfullpath calls by gdb_realpath calls.
9456 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9457 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9458 from method map_symtabs_matching_filename and its comment.
9459 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9461 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9462 remove it also from the function comment, remove a block handling it.
9463 Drop gdb_realpath call and cleanups from the real_path handling.
9464 (iterate_over_symtabs): Drop variable full_path and its use.
9465 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9466 * utils.c (xfullpath): Remove.
9467 * utils.h (xfullpath): Remove.
9471 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9472 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9473 (ALLDEPFILES): Add ppc64-tdep.c.
9474 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9475 ppc64-tdep.o to gdb_target_obs.
9476 * ppc64-tdep.h: New file.
9477 * ppc64-tdep.c: New file.
9478 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9479 ppc-linux-tdep.c to here.
9480 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9481 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9482 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9483 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9484 from ppc-linux-tdep.c to here.
9485 (ppc64_convert_from_func_ptr_addr): Rename from
9486 ppc64_linux_convert_from_func_ptr_addr to
9487 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9490 (read_insn): Move from ppc-linux-tdep.c to here.
9491 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9492 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9493 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9494 Removed above functions.
9495 (ppc_linux_init_abi): Adjust.
9499 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9503 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9507 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9508 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9512 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9513 files with no separate debug info.
9514 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9515 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9516 only for files with no separate debug info.
9520 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9522 (struct jit_program_space_data): Rename from jit_inferior_data.
9524 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9525 Change return type. Attach data to program space.
9526 (jit_program_space_data_cleanup): Rename from
9527 jit_inferior_data_cleanup; change argument type.
9528 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9530 (jit_register_code): Update.
9531 (jit_update_inferior_cache): Remove.
9532 (jit_breakpoint_deleted): Get jit data from the location's program
9534 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9535 'ps_data', change type.
9536 (jit_inferior_init, jit_breakpoint_re_set_internal)
9537 (jit_event_handler): Update.
9538 (free_objfile_data): Get data from objfile's program space.
9539 (_initialize_jit): Update.
9544 * jit.c (struct jit_inferior_data) <cached_code_address,
9545 jit_breakpoint>: New fields.
9546 (jit_breakpoint_re_set_internal): Fix logging. Only create
9547 breakpoint if cached address has changed.
9548 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9550 (_initialize_jit): Register breakpoint deleted observer.
9554 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9555 (save_infcall_suspend_state): Ifdef out unused inf.
9556 (restore_infcall_suspend_state): Ifdef out unused inf.
9557 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9558 (jit_frame_sniffer): Remove unused inf_data.
9562 * c-exp.y (classify_inner_name): Remove unused type.
9563 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9564 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9566 (c_get_string): Remove unused kind.
9567 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9571 * charset.c (intermediate_encoding): Remove unused i.
9572 * completer.c (signal_completer): Remove unused i.
9573 * continuations.c (discard_my_continuations_1): Remove unused
9575 * corelow.c (core_close): Remove unuseD name.
9576 (get_core_siginfo): Remove unused pid.
9577 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9579 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9580 (loclist_describe_location): Remove unused first.
9581 * event-top.c (command_line_handler): Remove unused got_eof.
9582 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9583 (resize_section_table): Remove unused old_value.
9584 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9585 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9586 * i386-tdep.c (i386_process_record): Remove unused rex.
9587 * infcmd.c (get_return_value): Remove unused uiout.
9588 * jv-lang.c (type_from_class): Remove unused is_array.
9589 * jv-valprint.c (java_val_print): Remove unused i.
9590 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9591 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9592 * m2-typeprint.c (m2_print_type): Remove unused code.
9593 * macroexp.c (get_character_constant): Remove unused body_start.
9594 (macro_stringify): Remove unused result.
9595 * objc-lang.c (find_methods): Remove unused gdbarch.
9596 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9597 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9598 * stack.c (print_frame_args): Remove unused summary.
9599 * thread.c (thread_apply_command): Remove unused p.
9600 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9601 * valops.c (search_struct_method): Remove unused skip.
9602 * valprint.c (generic_val_print): Remove unused byte_order.
9603 * varobj.c (varobj_update): Remove unused changed.
9604 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9605 (alias_command): Remove unused c.
9606 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9607 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9609 (mi_cmd_data_write_memory): Remove unused word_format.
9610 (mi_cmd_data_write_memory_bytes): Remove unused r.
9611 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9613 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9614 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9619 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9620 * symtab.c (iterate_over_symtabs): Remove unused s.
9621 (find_pc_sect_symtab): Remove unused pspAce.
9622 (find_pc_sect_line): Remove unused alt_symtab.
9623 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9624 (completion_list_add_name): Remove unused newsize.
9629 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9634 * target.c (target_read_string): Remove unused origlen.
9638 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9639 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9640 * ax-general.c (ax_print): Remove unused is_float.
9641 * blockframe.c (block_innermost_frame): Remove unused start, end.
9642 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9646 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9647 (svr4_read_so_list): Remove unused lmo.
9648 * solib-target.c (solib_target_relocate_section_addresses): Remove
9653 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9657 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9658 * utils.c (gnu_debuglink_crc32): Remove.
9659 * utils.h (gnu_debuglink_crc32): Don't declare.
9663 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9664 (read_structure_type, read_enumeration_type): Remove cast.
9668 * dwarf2read.c (read_namespace_type): Remove cast.
9669 (read_typedef): Likewise.
9673 * dwarf2read.c (free_dwo_file): Remove assert.
9677 * value.c (deprecated_set_value_modifiable): Remove.
9678 * value.h (deprecated_set_value_modifiable): Remove.
9682 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9683 to addresses from dwo files.
9687 * valops.c (find_overload_match): Remove unused argument 'lax'.
9688 * value.h: Remove unused argument 'lax' from the declaration of
9689 find_overload_match.
9690 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9691 to find_overload_match.
9692 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9693 argument to find_overload_match.
9697 * dwarf2read.c (processing_has_namespace_info): Remove.
9698 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9699 (process_die, read_func_scope, dwarf2_start_symtab)
9700 (new_symbol_full): Update.
9704 * cp-namespace.c (cp_set_block_scope): Remove.
9705 * cp-support.h (cp_set_block_scope): Remove.
9706 * dbxread.c: Include block.h.
9707 (cp_set_block_scope): New function.
9708 (process_one_symbol): Update.
9709 * dwarf2read.c (read_func_scope): Use block_set_scope.
9713 * remote.c (add_current_inferior_and_thread): Tweak comment.
9717 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9718 (cp_add_using_directive): Add 'copy_names' argument.
9719 * cp-support.h (cp_add_using_directive): Update.
9720 (struct using_direct) <import_src, import_dest, alias,
9721 declaration>: Now const.
9722 * dwarf2read.c (read_import_statement): Use obconcat.
9723 Don't copy names passed to cp_add_using_directive.
9727 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9731 * remote.c (stop_reply_extract_thread): New.
9732 (add_current_inferior_and_thread): New parameter 'wait_status'.
9734 (remote_start_remote): Pass wait status to
9735 add_current_inferior_and_thread.
9736 (extended_remote_run): Update comment.
9737 (extended_remote_create_inferior_1): Pass wait status to
9738 add_current_inferior_and_thread.
9743 * valarith.c (value_vector_widen): New function for replicating a
9744 scalar into a vector.
9745 (value_binop): Use value_vector_widen to widen scalar to vector
9746 rather than casting, this better matches gcc C behaviour.
9747 * valops.c (value_casst): Update logic for casting between vector
9748 types, and for casting from scalar to vector, try to match gcc C
9750 * value.h (value_vector_widen): Declare.
9751 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9752 function, handle special case for casting scalar to vector.
9753 (opencl_relop): Use opencl_value_cast.
9754 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9755 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9756 in order to use opencl_value_cast.
9760 * event-loop.c: Include "queue.h".
9761 (gdb_event_p): New typedef.
9762 (DECLARE_QUEUE_P): Use.
9763 (DEFINE_QUEUE_P): Use.
9764 (async_queue_event): Remove.
9765 (gdb_event_xfree): New.
9766 (initialize_event_loop): New.
9767 (process_event): Use QUEUE macros.
9768 (event_queue): Remove.
9769 (gdb_wait_for_event): Caller update.
9770 (check_async_event_handlers): Likewise.
9771 (poll_timers): Likewise.
9772 * event-loop.h (initialize_event_loop): Declare.
9773 * event-loop.c (gdb_event_xfree): New.
9774 * top.c (gdb_init): Call initialize_event_loop.
9778 * event-loop.c (async_queue_event): Remove one parameter
9779 'position'. Remove code handling 'position' == TAIL.
9780 (gdb_wait_for_event): Caller update.
9781 (check_async_event_handlers): Caller update.
9782 (poll_timers): Caller update.
9783 * event-loop.h (enum queue_position): Remove.
9787 * MAINTAINERS: Update my email.
9791 * main.c (print_gdb_help): Remove "--epoch" from the help
9796 * symtab.c (skip_prologue_using_sal): Consider a file
9797 change the same as an increased line number
9801 * MAINTAINERS (Write After Approval): Add myself to the list.
9805 * ada-lang.h (ada_decode_symbol): Make return type const.
9806 * ada-lang.c (ada_decode_symbol): Likewise.
9810 * linespec.c (find_linespec_symbols): Make static.
9814 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9815 type on float conversion for complex type.
9819 Add a new class gdb.Architecture which exposes GDB's
9820 internal representation of architecture via GDB Python API.
9821 * Makefile.in: Add entries corresponding to the new file
9823 * NEWS (Python Scripting): Add entries for the new class
9824 gdb.Architecture and the new method gdb.Frame.architecture.
9825 * python/py-arch.c: Implement gdb.Architecture class.
9826 * python/py-frame.c (frapy_arch): Implement the method
9827 gdb.Frame.architecture().
9828 (frame_object_methods): Add 'architecture' to the method table.
9829 * python/python-internal.h: Add declarations of new utility
9831 * python/python.c (_initialize_python): Initialize
9832 gdb.Architecture class.
9836 Work around binutils/15021.
9837 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9838 type_unit_group out of union s. All uses updated.
9839 (read_index_from_section): Watch for index version 8.
9840 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9842 (write_psymtabs_to_index): Increment version number to 8.
9846 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9851 * annotate.c (annotate_breakpoints_changed): Rename to ...
9852 (annotate_breakpoints_invalid): ... this. Make static.
9853 (breakpoint_changed): Adjust.
9854 (_initialize_annotate): Always install the observers. Install a
9855 "breakpoint_created" observer.
9856 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9857 * breakpoint.c (set_breakpoint_condition)
9858 (breakpoint_set_commands, do_map_commands_command)
9859 (init_raw_breakpoint, clear_command, set_ignore_count)
9860 (enable_breakpoint_disp): No longer call
9861 annotate_breakpoints_changed.
9865 * annotate.c: Include "inferior.h".
9866 (frames_invalid_emitted)
9867 (breakpoints_invalid_emitted): New globals.
9868 (async_background_execution_p): New function.
9869 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9870 emitting the annotation if it has already been emitted.
9871 (annotate_display_prompt): New function.
9872 * annotate.h (annotate_display_prompt): New declaration.
9873 * event-top.c: Include annotate.h.
9874 (display_gdb_prompt): Call annotate_display_prompt.
9878 * annotate.c (ignore_count_changed): Delete.
9879 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9880 (annotate_ignore_count_change): Delete.
9881 (annotate_stopped): Don't emit a delayed breakpoints-changed
9883 * annotate.h (annotate_ignore_count_change): Delete.
9884 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9885 annotate_ignore_count_change.
9889 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9890 require_rvalue for a register location.
9894 * breakpoint.c (print_one_breakpoint_location): Add MI
9895 field 'thread-groups' when printing a breakpoint.
9896 (output_thread_groups): New function.
9900 * python/lib/gdb/commands/explore.py
9901 (CompoundExplorer.explore_expr): Correct the name of a method
9903 (ExploreTypeCommand.invoke): Add a missing 'return'.
9907 * gdb_obstack.h (obconcat): Move declaration here, from...
9908 * symfile.h (obconcat): ... here.
9909 * gdb_obstack.c: New file.
9910 (obconcat): Move from...
9911 * symfile.c (obconcat): ... here.
9912 * Makefile.in (SFILES): Add gdb_obstack.c.
9913 (COMMON_OBS): Add gdb_obstack.o.
9917 * symfile.h (obsavestring): Don't declare.
9918 * symfile.c (obsavestring): Remove.
9919 * ada-exp.y: Use obstack_copy0, not obsavestring.
9920 * ada-lang.c: Use obstack_copy0, not obsavestring.
9921 * coffread.c: Use obstack_copy0, not obsavestring.
9922 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9923 * dbxread.c: Use obstack_copy0, not obsavestring.
9924 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9925 * jit.c: Use obstack_copy0, not obsavestring.
9926 * mdebugread.c: Use obstack_copy0, not obsavestring.
9927 * psymtab.c: Use obstack_copy0, not obsavestring.
9928 * stabsread.c: Use obstack_copy0, not obsavestring.
9929 * xcoffread.c: Use obstack_copy0, not obsavestring.
9933 * dwarf2read.c (fixup_go_packaging): Save package name
9935 * gdbtypes.c (init_type): Don't copy name.
9939 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9941 (struct attribute) <u.str>: Now const.
9942 (struct fnfieldlist) <name>: Now const.
9943 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9944 (partial_die_parent_scope): Make return type const.
9945 (partial_die_full_name, add_partial_symbol): Update.
9946 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9948 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9949 (read_file_scope, read_func_scope, dwarf2_add_field)
9950 (dwarf2_add_member_fn, read_structure_type)
9951 (process_enumeration_scope, read_array_type, read_module_type)
9952 (read_base_type, read_subrange_type): Update.
9953 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9954 (new_symbol_full, guess_full_die_structure_name): Update.
9955 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9956 (dwarf2_name): Return const type.
9957 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9962 * gdbtypes.c (init_type): Make 'name' const.
9963 * gdbtypes.h (init_type): Update.
9967 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9968 (start_symtab): Make 'name' and 'dirname' const. Use
9969 set_last_source_file.
9970 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9971 (last_source_file): Define. Now static.
9972 (set_last_source_file, get_last_source_file): New functions.
9973 * buildsym.h (last_source_file): Don't declare.
9974 (start_symtab): Update.
9975 (set_last_source_file, get_last_source_file): Declare.
9976 * coffread.c (complete_symtab): Use set_last_source_file.
9977 (coff_end_symtab): Likewise.
9978 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9979 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9980 set_last_source_file.
9981 (process_one_symbol): Use get_last_source_file.
9982 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9983 (psymtab_to_symtab_1): Use get_last_source_file.
9984 * xcoffread.c (process_linenos): Use get_last_source_file.
9985 (complete_symtab): Use set_last_source_file.
9986 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9987 (scan_xcoff_symtab): Use set_last_source_file.
9991 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9992 (symbol_set_names): Remove casts. Handle field const-ness.
9996 * dwarf2read.c (new_symbol_full): Remove cast.
9997 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9998 * symtab.h (symbol_set_demangled_name): Update.
10002 * main.c (captured_main): Call bfd_init.
10006 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10007 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10008 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10013 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10017 Fix gdb.fortran/common-block.exp crash in PIE mode.
10018 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10020 * f-valprint.c (info_common_command_for_block): Expect
10021 LOC_COMMON_BLOCK in gdb_assert.
10022 * symtab.h (struct general_symbol_info): Update comment for the
10023 common_block member.
10024 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10025 (enum address_class): New member LOC_COMMON_BLOCK.
10029 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10034 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10035 Call require_rvalue.
10039 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10040 (dbx_read_symtab): New declaration.
10041 (dbx_psymtab_to_symtab): Delete.
10042 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10043 Rename parameter PST to SELF. Exchanged two parameters.
10044 (start_psymtab): Caller update.
10045 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10046 (dwarf2_read_symtab): New declaration.
10047 (dwarf2_psymtab_to_symtab): Delete.
10048 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10049 Rename parameter PST to SELF. Exchanged two parameters.
10050 (create_partial_symtab): Caller update.
10051 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10052 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10053 Rename parameter PST to SELF. Exchanged two parameters.
10054 (parse_partial_symbols, new_psymtab): Caller update.
10055 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10057 * psymtab.c (psymtab_to_symtab): Caller update.
10058 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10059 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10060 Rename parameter PST to SELF. Exchanged two parameters.
10061 (xcoff_start_psymtab): Caller update.
10065 * infrun.c (proceed): Rename local variable 'oneproc' to
10070 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10071 (dw2_build_type_unit_groups): Delete. All uses updated.
10073 * symtab.h (struct symbol_search): Add comment.
10077 * symtab.c (compare_filenames_for_search): New comment for
10082 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10086 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10087 initialize it by existing make_cleanup. Call new do_cleanups.
10091 * cp-abi.c (cp_abi_completer): New function.
10092 (_initialize_cp_abi): Set completer for "set cp-abi".
10096 * mem-break.c: Remove obsolete comment.
10097 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10101 * jit.c (jit_reader_load_command): Interpret the jit reader name
10102 as an absolute path if it begins with a forward slash.
10108 * jit.c (finalize_symtab): Ensure that only the global block has a
10113 * acinclude.m4: Include ../config/plugins.m4,
10114 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10115 * Makefile.in (aclocal_m4_deps): Update.
10116 * aclocal.m4: Renegerate.
10120 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10126 * NEWS: Add "catch signal".
10127 * breakpoint.c (base_breakpoint_ops): No longer static.
10128 (bpstat_explains_signal): New function.
10129 (init_catchpoint): No longer static.
10130 (base_breakpoint_explains_signal): New function.
10131 (base_breakpoint_ops): Initialize new field.
10132 * breakpoint.h (enum bpstat_signal_value): New.
10133 (struct breakpoint_ops) <explains_signal>: New field.
10134 (bpstat_explains_signal): Remove macro, declare as function.
10135 (base_breakpoint_ops, init_catchpoint): Declare.
10136 * break-catch-sig.c: New file.
10137 * inferior.h (signal_catch_update): Declare.
10138 * infrun.c (signal_catch): New global.
10139 (handle_syscall_event): Update for change to
10140 bpstat_explains_signal.
10141 (handle_inferior_event): Likewise. Always handle random signals
10143 (signal_cache_update): Check signal_catch.
10144 (signal_catch_update): New function.
10145 (_initialize_infrun): Initialize signal_catch.
10146 * Makefile.in (SFILES): Add break-catch-sig.c.
10147 (COMMON_OBS): Add break-catch-sig.o.
10151 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10152 (print_one_catch_solib, print_one_catch_syscall)
10153 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10158 * printcmd.c (current_display_number): Make it static.
10162 * infcmd.c (step_once): Don't check '!single_inst' as it was
10167 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10171 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10173 * command.h (add_setshow_string_noescape_cmd): Update.
10174 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10175 (complete_set_gnutarget): New function.
10176 (_initialize_core): Set the "set gnutarget" completer.
10181 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10182 (c_type_print_modifier): Likewise.
10183 * dwarf2read.c (read_tag_restrict_type): New function.
10184 (read_type_die_1): Handle DW_TAG_restrict_type.
10185 * gdbtypes.c (make_restrict_type): New function.
10186 (recursive_dump_type): Handle TYPE_RESTRICT.
10187 * gdbtypes.h (enum type_flag_values): Renumber.
10188 (enum type_instance_flag_value): Add
10189 TYPE_INSTANCE_FLAG_RESTRICT.
10190 (TYPE_RESTRICT): New macro.
10191 (make_restrict_type): Declare.
10196 * psymtab.c (struct psymtab_state): New.
10197 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10199 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10200 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10207 * remote.c (remote_threads_info): Make a copy of the reply from
10208 qfThreadInfo and use that instead of rs->buf.
10212 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10213 (dbx_psymtab_to_symtab): Likewise.
10214 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10215 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10216 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10220 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10221 make_cleanup_restore_current_language. Call set_language. Move
10222 OLD_CHAIN and INNER_CHAIN cleanups.
10223 * utils.c (do_restore_current_language)
10224 (make_cleanup_restore_current_language): New functions.
10225 * utils.h (make_cleanup_restore_current_language): New declaration.
10229 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10230 non-existing files.
10232 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10233 non-existing files if FILENAME is already absolute.
10237 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10238 fputs_filtered. Append trailing newline.
10243 * psymtab.c (init_psymbol_list): Clarify the comment.
10247 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10248 (update_dprintf_command_list): Assert that 'printf_line' is
10249 non-null. Remove condition check.
10254 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10256 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10258 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10262 * cp-abi.c (cplus_print_vtable): Don't return value from void
10264 * ada-lang.c (re_set_catch_assert): Ditto.
10268 * symfile.h (quick_symbol_functions): Delete member
10269 pre_expand_symtabs_matching. All uses removed.
10270 * dwarf2read.c (dw2_lookup_symbol): Implement.
10271 (dw2_do_expand_symtabs_matching): Delete.
10272 (dw2_pre_expand_symtabs_matching): Delete.
10273 (struct dw2_symtab_iterator): New type.
10274 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10275 (dw2_expand_symtabs_for_function): Rewrite.
10276 (dwarf2_gdb_index_functions): Update.
10277 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10278 (psym_functions): Update.
10282 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10283 * configure: Rebuild.
10284 * configure.ac: Add somread.o to the build if BFD has SOM
10286 * somread.c: Include som/aout.h, not syms.h.
10287 (som_symtab_read): Use som_external_symbol_dictionary_record.
10288 Unpack records manually.
10289 (_initialize_somread): Declare.
10293 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10294 Cast return_address to 64bits.
10298 * printcmd.c: Remove define of function output_command.
10299 * tracepoint.c: Remove extern of function output_command.
10300 * valprint.h: (output_command): New extern.
10304 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10306 (objc_language_defn): Use c_printchar, c_printstr,
10313 * ada-valprint.c (printstr, print_field_values): Remove
10315 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10317 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10319 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10320 * main.c (captured_main): Remove "epoch" argument.
10321 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10322 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10323 * p-valprint.c (pascal_object_print_value_fields): Remove
10325 * printcmd.c (print_command_1): Remove 'inspect' argument.
10326 (print_command, call_command): Update.
10327 (inspect_command): Remove.
10328 (_initialize_printcmd): Make "inspect" an alias for "print".
10329 * top.c (epoch_interface): Remove.
10330 * top.h (epoch_interface): Remove.
10331 * valprint.c (user_print_options): Update.
10332 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10333 * valprint.h (struct value_print_options) <inspect_it>: Remove
10338 * valprint.h (read_string): Add 'extern'.
10342 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10343 used to decide whether to define darwin_read_dyld_info or not.
10347 * main.c (relocate_gdb_directory): Avoid calling stat function
10352 * psymtab.c (fixup_psymbol_section): Update declaration.
10353 (fixup_psymbol_section): Remove code returning value.
10357 * symtab.h: Remove some out of date comments.
10358 (enum exception_event_kind): Move it ...
10359 * breakpoint.c: ... here.
10364 * darwin-nat.c (darwin_read_dyld_info): Only build if
10365 TASK_DYLD_INFO_COUNT is defined.
10366 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10367 TASK_DYLD_INFO_COUNT is defined.
10371 * symfile.h (struct ecoff_debug_hack): Remove.
10372 * objfiles.c: Don't include mdebugread.h.
10376 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10377 * configure.ac: Check for Mach-O support in BFD. Update
10379 * configure: Rebuild.
10383 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10384 * configure.ac: Use GDB_AC_CHECK_BFD.
10385 * configure: Rebuild.
10389 * MAINTAINERS: Update my email.
10393 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10397 * rs6000-nat.c (bss_data_overlap): New function.
10398 (vmap_symtab): Use it to adjust the .bss section's offset.
10402 Update year range in copyright notice of all files.
10406 * top.c (print_gdb_version): Update copyright year.
10408 For older changes see ChangeLog-2012.
10414 version-control: never