3 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
4 result variable. Rename variable fopen_e_ever_failed to
5 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
9 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
10 (monitor_write_memory_longlongs, monitor_write_memory_block):
11 Constify 'myaddr' parameter.
12 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
14 (monitor_xfer_partial): New function.
15 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
16 hook. Install a to_xfer_partial hook.
20 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
21 bfd_get_alt_debug_link_info.
25 New flag OBJF_NOT_FILENAME.
26 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
27 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
29 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
30 symbol_file_add_from_bfd.
31 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
33 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
35 * objfiles.h (OBJF_NOT_FILENAME): New.
39 * Makefile.in (SFILES): Add build-id.c.
40 (HFILES_NO_SRCDIR): Add build-id.h.
41 * build-id.c: New file, largely from elfread.c. Modified
43 * build-id.h: New file.
44 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
45 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
46 Search for dwz file using build-id.
47 * elfread.c (build_id_bfd_get, build_id_verify)
48 (build_id_to_debug_filename, find_separate_debug_file): Remove.
52 * ada-lang.c (compare_names_with_case): Renamed from
53 compare_names, adding a new parameter "casing" and its handling.
54 New function documentation.
55 (compare_names): New function, implemented using
56 compare_names_with_case.
60 * ada-lang.c (ada_exception_sal): Remove advance declaration.
64 * objfiles.c (free_objfile_per_bfd_storage): Delete the
66 (free_objfile): Don't delete the demangled_names_hash.
67 * objfiles.h (struct objfile_per_bfd_storage)
68 <demangled_names_hash>: New field.
69 (struct objfile) <demangled_names_hash>: Move to
70 objfile_per_bfd_storage.
71 * symfile.c (reread_symbols): Don't delete the
73 * symtab.c (create_demangled_names_hash): Update.
74 (symbol_set_names): Update.
78 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
79 needs_relocations>: New fields.
80 (gdb_bfd_requires_relocations): New function.
81 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
82 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
83 the BFD needs relocations applied.
88 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
89 the thread list" instead of "gone".
93 * NEWS: Mention new convenience variable $_exitsignal.
94 * corelow.c (core_open): Reset exit convenience variables. Set
95 $_exitsignal to the uncaught signal which generated the corefile.
96 * infrun.c (handle_inferior_event): Reset exit convenience
97 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
98 (clear_exit_convenience_vars): New function.
99 * inferior.h (clear_exit_convenience_vars): New prototype.
103 * varobj.h: Add comments to enum varobj_languages.
107 Add support for DWP file format version 2.
108 * NEWS: Mention support for DWP file format version 2.
109 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
110 union of asection, containing_section. New fields virtual_offset
111 and is_virtual. Change type of readin filed from int to char.
112 (dwo_sections, dwo_file): Tweak comments.
113 (dwp_v2_section_ids): New enum.
114 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
116 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
118 (virtual_v2_dwo_sections): New struct.
119 (dwp_hash_table): New fields version, nr_columns. Change type of
120 section_pool field to a union.
121 (dwp_file): New field version.
122 (dwarf2_has_info): Check for virtual sections.
123 (get_containing_section): New function.
124 (get_section_bfd_owner, get_section_bfd_section): Call it.
125 (dwarf2_locate_sections): Update.
126 (dwarf2_section_empty_p): Update.
127 (dwarf2_read_section): Handle virtual sections.
128 (locate_dwz_sections): Update.
129 (create_dwp_hash_table): Document and handle V2 format.
130 (locate_v1_virtual_dwo_sections): Renamed from
131 locate_virtual_dwo_sections and update. All callers updated.
132 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
133 Delete arg htab. Rename arg section_index to unit_index.
135 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
137 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
138 (lookup_dwo_unit_in_dwp): Add V2 support.
139 (dwarf2_locate_dwo_sections): Update.
140 (dwarf2_locate_common_dwp_sections): Renamed from
141 dwarf2_locate_dwp_sections and update. All callers updated.
142 (dwarf2_locate_v2_dwp_sections): New function.
143 (open_and_init_dwp_file): Add V2 support.
144 (read_str_index): New locals str_section, str_offsets_section.
148 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
149 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
150 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
151 describing comments with references to ptid.h.
152 * common/ptid.h: Remove intro description of constructors,
153 accessors and predicates.
154 (struct ptid): Reformat.
155 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
156 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
161 * aix-thread.c (sync_threadlists): Add missing ')' in call
166 * procfs.c (procfs_init_inferior): Fix typo causing the build
171 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
175 * mi/mi-main.c (run_one_inferior): Add function description.
176 Make ARG a pointer to an integer whose value determines whether
177 we should "run" or "start" the program.
178 (mi_cmd_exec_run): Add handling of the "--start" option.
179 Reject all other command-line options.
180 * NEWS: Add entry for "-exec-run"'s new "--start" option.
184 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
185 (struct notif_client) <pending_event>: Moved
186 to struct remote_notif_state.
188 (struct remote_notif_state) <pending_event>: New field.
189 (notif_event_xfree): Declare.
190 * remote-notif.c (handle_notification): Adjust.
191 (notif_event_xfree): New function.
192 (do_notif_event_xfree): Call notif_event_xfree.
193 (remote_notif_state_xfree): Call notif_event_xfree to free
194 each element in field pending_event.
195 * remote.c (discard_pending_stop_replies): Remove declaration.
196 (discard_pending_stop_replies_in_queue): Declare.
197 (remote_close): Call discard_pending_stop_replies_in_queue
198 instead of discard_pending_stop_replies.
199 (remote_start_remote): Adjust.
200 (stop_reply_xfree): Call notif_event_xfree.
201 (notif_client_stop): Adjust initialization.
202 (remote_notif_remove_all): Rename it to ...
203 (remove_stop_reply_for_inferior): ... this. Update comments.
204 Don't check INF is NULL.
205 (discard_pending_stop_replies): Return early if notif_state is
206 NULL. Adjust. Don't check INF is NULL.
207 (remote_notif_get_pending_events): Adjust.
208 (discard_pending_stop_replies_in_queue): New function.
209 (remote_wait_ns): Likewise.
213 * remote-notif.c (DECLARE_QUEUE_P): Remove.
214 (notif_queue): Remove.
215 (remote_notif_process): Add one parameter 'notif_queue'.
216 Update comments. Callers update.
217 (remote_async_get_pending_events_token): Remove.
218 (remote_notif_register_async_event_handler): Remove.
219 (remote_notif_unregister_async_event_handler): Remove.
220 (handle_notification): Add parameter 'notif_queue'. Update
221 comments. Callers update.
222 (notif_xfree): Remove.
223 (remote_notif_state_allocate): New function.
224 (remote_notif_state_xfree): New function.
225 (_initialize_notif): Remove code to allocate queue.
226 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
227 (struct remote_notif_state): New.
228 (handle_notification): Update declaration.
229 (remote_notif_process): Likewise.
230 (remote_notif_register_async_event_handler): Remove.
231 (remote_notif_unregister_async_event_handler): Remove.
232 (remote_notif_state_allocate): Declare.
233 (remote_notif_state_xfree): Declare.
234 * remote.c (struct remote_state) <notif_state>: New field.
235 (remote_close): Don't call
236 remote_notif_unregister_async_event_handler. Call
237 remote_notif_state_xfree.
238 (remote_open_1): Don't call
239 remote_notif_register_async_event_handler. Call
240 remote_notif_state_allocate.
244 * varobj.c (create_child_with_value): Remove 'const' from the
245 type of parameter 'name'.
246 (varobj_add_child): Likewise.
247 (install_dynamic_child): Remove 'const' from the type of
249 (varobj_add_child): Likewise.
250 (create_child_with_value): Likewise. Update comments. Don't
252 (update_dynamic_varobj_children): Duplicate 'name'
253 and pass it to install_dynamic_child.
257 * python/py-value.c (convert_value_from_python): Move PyInt_Check
258 conversion logic to occur after PyLong_Check. Comment on order
260 * python/py-arch.c (archpy_disassemble): Comment on order of
261 conversion for integers and longs.
265 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
266 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
267 functions. Always test for PTRACE_O_TRACESYSGOOD even if
268 PTRACE_O_TRACEFORK is not supported.
269 (linux_test_for_tracesysgood): New function.
270 (linux_test_for_tracefork): New function, factored out from
271 linux_check_ptrace_features, and also don't kill child_pid here.
275 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
276 Remove verbose error reporting. Use detected state to
277 thread_set_state call.
278 (i386_darwin_dr_get): Fix return type. Remove verbose error
280 Remove trailing spaces.
284 * cp-valprint.c (cp_print_value_fields): Adjust calls to
285 val_print_optimized_out.
286 * jv-valprint.c (java_print_value_fields): Likewise.
287 * p-valprint.c (pascal_object_print_value_fields): Likewise.
288 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
289 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
290 new optimized out value.
291 * findvar.c (address_from_register): Likewise.
292 * frame.c (put_frame_register): Tweak error string to say the
293 register was not saved, rather than optimized out.
294 * infcmd.c (default_print_one_register_info): Adjust call to
295 val_print_optimized_out. Use value_of_register instead of
296 get_frame_register_value.
297 * mi/mi-main.c (output_register): Use value_of_register instead of
298 get_frame_register_value.
299 * valprint.c (valprint_check_validity): Likewise.
300 (val_print_optimized_out): New value parameter. If the value is
301 lval_register, print <not saved> instead.
302 (value_check_printable, val_print_scalar_formatted): Adjust calls
303 to val_print_optimized_out.
304 * valprint.h (val_print_optimized_out): New value parameter.
305 * value.c (struct value) <optimized_out>: Extend comment.
306 (error_value_optimized_out): New function.
307 (require_not_optimized_out): Use it. Use a different string for
308 lval_register values.
309 * value.h (error_value_optimized_out): New declaration.
310 * NEWS: Mention <not saved>.
314 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
315 strcmp to compare two symtab filenames.
319 * symtab.c (search_symbols_equal): Delete.
320 (sort_search_symbols_remove_dups): Replace call to
321 search_symbols_equal by call to compare_search_syms,
322 adjusting as necessary.
328 * python/python.c: Document gdb.execute command in Python help.
332 * python/py-frame.c (frame_info_to_frame_object): Use
333 gdbpy_convert_exception. Clean up Python object on failure.
337 * python/lib/gdb/command/frame_filters.py
338 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
339 (ShowFrameFilterPriority.invoke): Ditto.
343 * linespec.c (struct ls_parser): Make 'saved_arg' const.
344 (parse_linespec): Make 'argptr' const.
345 Remove temporary cast of 'argptr' to const char **.
346 (decode_line_full): Pass const pointer to parse_linespec.
347 (decode_line_1): Likewise.
348 (decode_objc): Make local variable 'new_argptr' const.
349 (find_function_symbols): Remove temporary cast to char *
351 * objc-lang.c (find_imps): Make argument 'method' const.
353 * objc-lang.h (find_imps): Likewise.
357 * completer.c (skip_quoted_chars): Make all arguments const.
359 (skip_quoted): Likewise.
360 * completer.h (skip_quoted_chars): Likewise.
361 (skip_quoted): Likewise.
362 * defs.h (skip_quoted): Remove duplicate declaration.
363 * jv-exp.y: Include completer.h.
364 (yylex): Remove unneccessary cast to char * fro skip_quoted.
365 * p-exp.y: Include completer.h.
369 * c-exp.y (parse_number): Make first argument const.
370 Make a copy of the input to manipulate.
371 (c_parse_escape): Make first argument const.
372 Make local variable 'tokptr' const.
373 (parse_string_or_char): Make first two arguments const.
374 (macro_original_text): Make const.
375 (lex_one_token): Make local variable 'tokstart' const.
376 Likewise for local variables named 'p'.
377 Cast away const for struct stoken (temporary).
378 * c-lang.h (c_parse_escpae): Make first argument const.
379 * cli/cli-cmds.c (echo_command): Make local variable 'p'
381 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
383 * f-exp.y (parse_number): Make first argument const.
384 (match_string_literal): Make local variable 'tokstart'
386 (yylex): Make local variable 'p' const.
387 Cast away const for struct stoken (temporary).
388 * go-exp.y (parse_number): Make first argument const.
389 (parse_string_or_char): Likewise.
390 Make local variable 'tokstart' const.
391 (lex_one_token): Likewise for numerous locals called 'p'.
392 Cast away const for struct stoken (temporary).
393 * jv-exp.y (parse_number): Make first argument const.
394 Make local variables 'tokstart' and 'tokptr' const.
395 Cast away const for call to skip_quoted (temporary).
396 (yylex): Make local variable 'p' const.
397 Cast away const for struct stoken (temporary).
398 * m2-exp.y (parse_number): Make local variable 'p' const.
399 (yylex): Likewise for 'tokstart'.
400 Cast away const for struct stoken (temporary).
401 Make local variable 'p' const.
402 * macroexp.c (get_character_constant): Pass a const string
404 (get_string_literal): Likewise.
405 (macro_expand_next): Make first argument const.
406 Cast away const for init_shared_buffer.
407 * macroexp.h (macro_expand_next): Make first argument const.
408 * p-exp.y (yylex): Make a local copy of 'lexptr'.
409 Pass a const string to c_parse_escape.
410 Make local variables 'p' and 'namestart' const.
411 * parse.c (lexptr): Make const.
412 (prev_lexptr): Likewise.
413 (find_template_name_end): Return const.
414 Make argument const, too.
415 (parse_exp_in_context): Make first argument const.
416 Remove the entire const_hack.
417 (parse_exp_in_context_1): Make first argument const.
418 * parser-defs.h (find_template_name_end): Return const.
419 Make argument const, too.
420 (lexptr): Make const.
421 (prev_lexptr): Likewise.
422 * utils.c (parse_escape): Make second argument const.
423 * utils.h (parse_escape): Likewise.
427 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
429 (block_lookup): Make 'raw_name' and 'name' const.
430 * ada-lex.l (processString): Update for struct stoken.ptr.
431 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
432 (operator_stoken): Likewise.
433 (lex_one_token): Remove temporary cast to char * for
435 * f-exp.y (yylex): Likewise.
436 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
437 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
438 * go-exp.y (lex_one_token): Remove temporary cast to char * for
440 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
441 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
442 * linespec.c (struct ls_parser): Make 'stream' const.
443 (find_parameter_list_end): Make argument 'input' and local
445 (linespec_lexer_lex_string): Make local variables 'start' and
447 Use skip_spaces_const instead of skip_spaces.
448 (linespec_lexer_peek_token): Make local variable 'saved_stream'
450 (parse_linespec): Temporarily cast 'argptr' to const for
451 'parser->lexer.stream'.
452 * m2-exp.y (yylex): Remove temporary cast to char * for
454 * objc-lang.c (add_msglist): Make local variable 'p' const.
455 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
456 (exp : STRING): Make 'sp' const.
457 (parse_number): Make argument 'p' const.
458 * parser-defs.h (struct stoken): Make 'ptr' const.
462 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
466 * varobj.c (c_value_of_root): Remove declaration.
467 (cplus_value_of_root, java_value_of_root): Likewise.
468 (ada_value_of_root): Likewise.
469 (struct language_specific) <value_of_root>: Remove.
470 (languages): Update initialization.
471 (check_scope): Move earlier.
472 (c_value_of_root): Move earlier and rename to ...
473 (value_of_root_1): ... this.
474 (value_of_root): Caller update.
475 (cplus_value_of_root, java_value_of_root): Remove.
476 (ada_value_of_root): Remove.
480 * varobj.c (varobj_format_string): Remove "unknown".
481 (languages): Remove the first element.
482 * varobj.h (enum varobj_languages): Remove vlang_c.
486 * varobj.c (struct language_specific) <language>: Remove.
487 (languages): Update the initialization.
491 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
492 "solib-target.h". Include "windows-tdep.h".
493 (arm_wince_init_abi): Call windows_init_abi. Remove call to
494 set_solib_ops and set_gdbarch_has_dos_based_file_system.
495 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
496 windows-tdep.o to gdb_target_obs.
500 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
502 (amd64_windows_init_abi): Don't call set_solib_ops and
503 set_gdbarch_iterate_over_objfiles_in_search_order. Call
504 windows_init_abi instead.
505 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
507 (i386_cygwin_init_abi): Don't call set_solib_ops,
508 set_gdbarch_has_dos_based_file_system and
509 set_gdbarch_iterate_over_objfiles_in_search_order. Call
510 windows_init_abi instead.
511 * windows-tdep.c: Include "solib.h" and "solib-target.h".
512 (windows_init_abi): New function.
513 (windows_iterate_over_objfiles_in_search_order): Make it
515 * windows-tdep.h (windows_init_abi): Declare.
516 (windows_iterate_over_objfiles_in_search_order): Remove
522 * system-gdbinit/elinos.py (get_elinos_environment): Return an
523 incomplete dictionnary instead of None in case of missing
524 environment variables.
525 (elinos_init): in case of an incomplete environment, best
526 effort to load system libraries instead of abort.
530 * ada-lang.c (ada_has_this_exception_support): Ignore
531 mst_solib_trampoline minimal symbols.
535 * i386-darwin-nat.c (darwin_complete_target): Install methods for
537 (i386_darwin_dr_set): Support 32 and 64 bit states.
538 (i386_darwin_dr_get): Likewise.
539 (i386_darwin_dr_set_control): Make static.
540 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
541 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
545 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
546 Replace TIDGET with ptid_get_lwp.
547 Replace GET_LWP with ptid_get_lwp.
548 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
549 Replace BUILD_THREAD with ptid_build.
550 Replace BUILD_LWP with ptid_build.
551 Replace PIDGET with ptid_get_pid.
552 Replace TIDGET with ptid_get_lwp.
553 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
554 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
555 Replace TIDGET with ptid_get_lwp.
556 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
557 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
558 Replace TIDGET with ptid_get_lwp.
559 Replace GET_LWP with ptid_get_lwp.
560 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
562 * breakpoint.c: Likewise.
563 * common/ptid.c (ptid_is_pid): Condense check for
564 null_ptid and minus_one_ptid.
565 (ptid_lwp_p): New function.
566 (ptid_tid_p): New function.
567 * common/ptid.h: Update comments for accessors.
568 (ptid_lwp_p): New prototype.
569 (ptid_tid_p): New prototype.
570 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
571 * gcore.c: Replace PIDGET with ptid_get_pid.
572 * gdbthread.h: Likewise.
573 * gnu-nat.c: Likewise.
574 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
575 Replace TIDGET with ptid_get_lwp.
576 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
577 * hppanbsd-nat.c: Likewise.
578 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
579 Replace TIDGET with ptid_get_lwp.
580 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
581 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
582 * infcmd.c: Likewise.
583 * inferior.h: Likewise.
584 * inflow.c: Likewise.
585 * infrun.c: Likewise.
586 * linux-fork.c: Likewise.
587 * linux-nat.c: Replace PIDGET with ptid_get_pid.
588 Replace GET_PID with ptid_get_pid.
589 Replace is_lwp with ptid_lwp_p.
590 Replace GET_LWP with ptid_get_lwp.
591 Replace BUILD_LWP with ptid_build.
595 * common/linux-btrace.c: Move sys/syscall.h out of the
596 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
597 Also check for SYS_perf_event_open before attempting to buid.
601 * dwarf2read.c (dwarf2_section_info): Add comment.
602 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
604 (dwarf2_section_empty_p): Rename arg from "info" to "section".
605 (dwarf2_read_section): Delete unused local "header". Add section
606 name to error message.
607 (create_dwo_in_dwp): Tweak comment.
608 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
610 * dwarf2read.c (die_reader_specs): Tweak comment.
611 (get_section_bfd_owner, get_section_bfd_section): New functions.
612 (get_section_name, get_section_file_name): New functions.
613 (get_section_id, get_section_flags): New functions.
614 (*): Use new functions to access section fields.
616 * dwarf2read.c (struct dwo_file): Add/tweak comments.
617 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
618 arg "htab". All callers updated.
619 (create_debug_types_hash_table): Remove redundant copy of
621 (create_dwo_in_dwp): Tweak comments.
622 (read_str_index): Tweak comment. Record dwarf form name in static
627 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
628 (remote_filename_p): Add comment.
629 * remote.c (remote_filename_p): Adjust to use
630 REMOTE_SYSROOT_PREFIX.
631 * solib.c (solib_find): When deciding whether we need to add a
632 directory separator, check whether the sysroot is "remote:"
633 instead of checking whether the patch has a drive spec. Add
638 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
640 (remote_parse_stop_reply): Adjust, setting event->ws.kind
645 Fix set debug frame output.
646 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
647 SENTINEL_FRAME entry lower to match enum frame_type order.
651 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
652 AMD64_R15_REGNUM when a register index is expected.
653 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
655 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
656 (amd64_push_arguments): Substitute in integer_regnum array.
660 * objfiles.c (allocate_objfile): Move comment to better place.
662 New option "set debug symfile on".
663 * NEWS: Mention "set debug symfile".
664 * Makefile.in (SFILES): Add symfile-debug.c.
665 (COMMON_OBS): Add symfile-debug.o.
666 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
667 objfile's symbol functions.
668 * objfiles.h (objfile_set_sym_fns): Declare.
669 * symfile-debug.c: New file.
670 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
671 objfile's symbol functions.
672 (reread_symbols): Ditto.
674 * symfile.h (struct sym_fns): Delete member "sym_flavour".
676 (add_symtab_fns): Update prototype.
677 * symfile.c (sym_fns_ptr): Delete. Replace with ...
678 (registered_sym_fns): ... this.
679 (symtab_fns): Update.
680 (add_symtab_fns): New arg "flavour". All callers updated.
681 (find_sym_fns): Rewrite to use new sym_fns registry.
683 * symfile.h (struct sym_fns): Add "objfile" argument to
684 sym_read_linetable. All uses updated.
686 * symtab.c (domain_name, search_domain_name): New functions.
687 * symtab.h (domain_name, search_domain_name): Declare.
689 * symfile.h (struct quick_symbol_functions): Reorg arg list of
690 map_matching_symbols so objfile is first. All uses updated.
691 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
692 * psymtab.c (map_matching_symbols_psymtab): Update signature.
697 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
702 * objfiles.c (free_objfile): Move comment.
706 * ada-exp.y (string_to_operator): Delete.
707 (dummy_string_to_ada_operator): Delete.
712 * i386-tdep.h (enum amd64_reg_class): New, moved here from
714 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
715 call_dummy_integer_regs, and classify.
716 * amd64-tdep.h (amd64_classify): Add declaration.
717 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
718 (amd64_reg_class): Delete, moved to i386-tdep.h.
719 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
720 Replace call to amd64_classify by call to tdep->classify.
721 (amd64_push_arguments): Get the list of registers to use for
722 passing integer parameters from the gdbarch tdep structure,
723 rather than using a hardcoded one. Replace calls to amd64_classify
724 by calls to tdep->classify.
725 (amd64_push_dummy_call): Get the register number used for
726 the "hidden" argument from tdep->call_dummy_integer_regs.
727 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
728 and tdep->call_dummy_integer_regs. Set tdep->classify.
733 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
734 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
735 where tdep->memory_args_by_pointer is non-zero.
740 * i386-tdep.h (struct gdbarch_tdep): Add new field
741 integer_param_regs_saved_in_caller_frame.
742 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
743 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
747 * amd64-windows-tdep.c: #include "value.h"
748 (amd64_windows_classify): Delete.
749 (amd64_windows_passed_by_integer_register)
750 (amd64_windows_passed_by_xmm_register)
751 (amd64_windows_passed_by_pointer)
752 (amd64_windows_adjust_args_passed_by_pointer)
753 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
754 (amd64_windows_push_dummy_call): New functions.
755 (amd64_windows_init_abi): Remove setting of
756 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
757 tdep->classify, tdep->memory_args_by_pointer and
758 tdep->integer_param_regs_saved_in_caller_frame.
759 Add call to set_gdbarch_push_dummy_call.
763 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
764 objfile->original_name.
768 Pass down original filename for objfile.
769 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
770 * elfread.c (elf_symfile_read): Likewise.
771 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
772 longer set ORIGINAL_NAME.
773 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
774 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
775 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
776 symbol_file_add_from_bfd call.
777 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
778 (macho_check_dsym): Add parameter filenamep. Change function comment.
780 (macho_symfile_read): New variable dsym_filename. Update
781 macho_check_dsym call. Use it for symbol_file_add_separate.
782 * objfiles.c (allocate_objfile): Add parameter name. New comment for
783 it. Use it for objfile->original_name.
784 (objfile_name): Return OBFD's filename, if available.
785 * objfiles.h (allocate_objfile): Add new parameter name.
786 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
787 * symfile-mem.c (symbol_file_add_from_memory): Update
788 symbol_file_add_from_bfd call.
789 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
791 (symbol_file_add_with_addrs): New parameter name, add function comment
792 for it. Remove variable name. Update allocate_objfile call.
793 (symbol_file_add_separate): New parameter name, add function comment
794 for it. Update symbol_file_add_with_addrs call.
795 (symbol_file_add_from_bfd): New parameter name. Update
796 symbol_file_add_with_addrs call.
797 (symbol_file_add): Update symbol_file_add_from_bfd call.
798 (reread_symbols): New variable original_name. Save
799 objfile->original_name by it.
800 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
805 Code cleanup: Add objfile_name accessor function.
806 * ada-lang.c (is_known_support_routine): Use objfile_name.
807 * auto-load.c (source_gdb_script_for_objfile)
808 (auto_load_objfile_script): Likewise.
809 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
810 * dbxread.c (dbx_symfile_read): Likewise.
811 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
812 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
813 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
814 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
815 (lookup_dwp_signatured_type, lookup_dwo_unit)
816 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
817 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
818 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
819 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
820 (dwarf2_record_block_ranges, read_common_block, read_typedef)
821 (read_subrange_type, load_partial_dies, read_partial_die)
822 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
823 (die_containing_type, build_error_marker_type, lookup_die_type)
824 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
825 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
826 (get_DW_AT_signature_type, write_psymtabs_to_index)
827 (save_gdb_index_command): Likewise.
828 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
830 * expprint.c (dump_subexp_body_standard): Likewise.
831 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
832 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
834 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
835 obj_name, use objfile_name for it, use the variable.
836 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
838 * machoread.c (macho_symtab_read, macho_check_dsym)
839 (macho_symfile_relocate): Likewise.
840 * maint.c (maintenance_translate_address): Likewise.
841 * minidebug.c (find_separate_debug_file_in_section): Likewise.
842 * minsyms.c (install_minimal_symbols): Likewise.
843 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
845 (filter_overlapping_sections): Use objfile_name.
846 (objfile_name): New function.
847 * objfiles.h (struct objfile): Rename field name to original_name.
848 (objfile_name): New prototype.
849 * printcmd.c (sym_info, address_info): Use objfile_name.
850 * probe.c (parse_probes, collect_probes, compare_probes)
851 (info_probes_for_ops): Likewise.
852 * progspace.c (clone_program_space): Likewise.
853 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
854 (maintenance_info_psymtabs): Likewise.
855 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
856 (source_section_scripts): Likewise.
857 * python/py-objfile.c (objfpy_get_filename): Likewise.
858 * python/py-progspace.c (pspy_get_filename): Likewise.
859 * solib-aix.c (solib_aix_get_toc_value): Likewise.
860 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
861 * solib.c (solib_read_symbols): Likewise.
862 * stabsread.c (scan_file_globals): Likewise.
863 * stap-probe.c (handle_stap_probe): Likewise.
864 * symfile.c (symbol_file_clear, separate_debug_file_exists)
865 (find_separate_debug_file_by_debuglink): Likewise.
866 (reread_symbols): Likewise. Use the objfile field name renamed to
868 (allocate_symtab): Use objfile_name.
869 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
870 (dump_objfile, dump_msymbols, dump_symtab_1)
871 (maintenance_print_msymbols, maintenance_print_objfiles)
872 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
873 * target.c (target_translate_tls_address, target_info): Likewise.
874 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
880 * probe.c (parse_probes): Rename variable objfile_name to
885 Remove solib-sunos.c.
886 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
887 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
888 * objfiles.c (rt_common_objfile): Remove.
889 (free_objfile): Remove rt_common_objfile comparison.
890 * objfiles.h (rt_common_objfile): Remove.
891 * solib-sunos.c: Remove.
892 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
896 Remove a.out NetBSD and OpenBSD hosts.
897 * NEWS (Removed native configurations): New.
898 * config/arm/nbsdaout.mh: Remove.
899 * config/i386/nbsdaout.mh: Remove.
900 * config/i386/obsdaout.mh: Remove.
901 * config/m68k/nbsdaout.mh: Remove.
902 * config/sparc/nbsdaout.mh: Remove.
903 * config/vax/nbsdaout.mh: Remove.
904 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
905 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
906 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
908 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
909 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
910 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
914 * linespec.c (struct minsym_and_objfile): Remove.
915 (minsym_and_objfile_d): Remove.
916 (struct linespec, struct collect_info, linespec_parse_basic)
917 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
918 (compare_msymbols, find_method, find_function_symbols)
919 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
920 (add_minsym, search_minsyms_for_name): Update.
924 * regcache.c: Add include of valprint.h.
925 (dump_endian_bytes): Delete.
926 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
930 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
934 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
941 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
942 Take a gdb_byte pointer instead of a char pointer.
944 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
945 gnu_xfer_partial helper.
946 (gnu_xfer_partial): New function.
947 (gnu_target): Don't install a deprecated_xfer_memory hook.
948 Install a to_xfer_partial hook.
953 * main.c (captured_main): Replace catch_command_errors by
954 catch_command_errors_const. Twice.
955 * symfile.c (symbol_file_add_main_1): Make args parameter const.
956 (symbol_file_add): Make name parameter const.
957 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
958 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
959 variable name. Change their usage accordingly.
960 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
962 (symbol_file_add_main): Make args parameter const.
967 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
969 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
974 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
975 (gnu_create_inferior)
976 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
977 (set_sig_thread_cmd): Use the lwpid field of ptids to
978 store/extract thread ids instead of the tid field.
979 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
983 * infcmd.c (default_print_one_register_info): Add detection of
984 optimized out values.
985 (default_print_registers_info): Switch to using
986 get_frame_register_value.
990 * infrun.c (handle_inferior_event): Check if we know the
991 function start address before setting a resume breakpoint.
995 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
996 minus_one_ptid instead of looking at the ptid's tid field and
997 comparing that to -1.
1001 * main.h (get_gdb_program_name): Remove extra whitespace.
1005 * main.h (get_gdb_program_name): Add declaration.
1006 * main.c (get_gdb_program_name): Add definition.
1010 * dwarf2read.c: Move definitions of complaint functions to after
1011 forward declarations of local functions.
1017 * breakpoint.c (remove_threaded_breakpoints): New function.
1018 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1019 as thread_exit observer.
1024 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1025 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1026 * corelow.c (core_open):
1027 * frame.h (print_stack_frame, print_frame_info): New
1028 'set_current_sal' parameter.
1029 * infcmd.c (finish_command, kill_command): Adjust call to
1031 * inferior.c (inferior_command): Likewise.
1032 * infrun.c (normal_stop): Likewise.
1033 * linux-fork.c (linux_fork_context): Likewise.
1034 * record-full.c (record_full_goto_entry, record_full_restore):
1036 * remote-mips.c (common_open): Likewise.
1037 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1039 (print_frame_info): New 'set_current_sal' parameter. Set the last
1040 displayed sal depending on the new paremeter instead of looking at
1042 (backtrace_command_1, select_and_print_frame, frame_command)
1043 (current_frame_command, up_command, down_command): Adjust call to
1045 * thread.c (print_thread_info, restore_selected_frame)
1046 (do_captured_thread_select): Adjust call to print_stack_frame.
1047 * tracepoint.c (tfind_1): Likewise.
1048 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1049 (mi_cmd_stack_info_frame): Likewise.
1050 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1051 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1055 * value.c (isvoid_internal_fn): Replace "parameter" with
1060 * README: Update references to writing code for GDB.
1061 * configure.ac (build_warnings): Remove obsolete comment.
1062 * configure: Regenerate.
1063 * gdbarch.sh: Remove references to gdbint.texinfo.
1064 * gdbarch.h: Regenerate.
1065 * gdbtypes.c (objfile_type): Remove comments referencing internals
1070 * NEWS: Mention new convenience function $_isvoid.
1071 * value.c (isvoid_internal_fn): New function.
1072 (_initialize_values): Add new convenience function $_isvoid.
1076 * arm-linux-tdep.c: Add "elf/common.h" header.
1077 Remove AT_HWCAP macro definintion as it is provided in
1079 * s390-tdep.c: Remove system header <elf.h>
1080 Add "elf/common.h" header for AT_HWCAP definition.
1081 (s390_core_read_description): Use correct CORE_ADDR
1082 for hwcap local variable used as third parameter
1083 of function target_auxv_search.
1089 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1090 mode if operating system doesn't know O_CLOEXEC.
1095 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1100 * NEWS: Mention TDB support.
1101 * features/s390-tdb.xml: New file.
1102 * features/s390-te-linux64.xml: New file.
1103 * features/s390x-te-linux64.xml: New file.
1104 * features/Makefile (WHICH): Add new tdescs above.
1105 (s390-te-linux64-expedite): Set.
1106 (s390x-te-linux64-expedite): Set.
1107 * features/s390-te-linux64.c: New file (generated).
1108 * features/s390x-te-linux64.c: New file (generated).
1109 * regformats/s390-te-linux64.dat: New file (generated).
1110 * regformats/s390x-te-linux64.dat: New file (generated).
1111 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1112 (HWCAP_S390_TE): Likewise.
1113 (S390_TDB_DWORD0_REGNUM): Likewise.
1114 (S390_TDB_DWORD0_REGNUM): Likewise.
1115 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1116 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1117 (S390_TDB_ATIA_REGNUM): Likewise.
1118 (S390_TDB_R0_REGNUM): Likewise.
1119 (S390_TDB_R1_REGNUM): Likewise.
1120 (S390_TDB_R2_REGNUM): Likewise.
1121 (S390_TDB_R3_REGNUM): Likewise.
1122 (S390_TDB_R4_REGNUM): Likewise.
1123 (S390_TDB_R5_REGNUM): Likewise.
1124 (S390_TDB_R6_REGNUM): Likewise.
1125 (S390_TDB_R7_REGNUM): Likewise.
1126 (S390_TDB_R8_REGNUM): Likewise.
1127 (S390_TDB_R9_REGNUM): Likewise.
1128 (S390_TDB_R10_REGNUM): Likewise.
1129 (S390_TDB_R11_REGNUM): Likewise.
1130 (S390_TDB_R12_REGNUM): Likewise.
1131 (S390_TDB_R13_REGNUM): Likewise.
1132 (S390_TDB_R14_REGNUM): Likewise.
1133 (S390_TDB_R15_REGNUM): Likewise.
1134 (S390_NUM_REGS): Increase.
1135 (S390_IS_TDBREGSET_REGNUM): New macro.
1136 (s390_regmap_tdb): Declare.
1137 (s390_sizeof_tdbregset): Define.
1138 (tdesc_s390_te_linux64): Declare.
1139 (tdesc_s390x_te_linux64): Likewise.
1140 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1141 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1142 (s390_regmap_tdb): New regmap.
1143 (s390_supply_tdb_regset): New function.
1144 (s390_tdb_regset): New regset.
1145 (s390_linux64v2_regset_sections): Add TDB regset to list.
1146 (s390x_linux64v2_regset_sections): Likewise.
1147 (s390_regset_from_core_section): Recognize TDB core note section.
1148 (s390_core_read_description): If HWCAP indicates TE support,
1149 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1150 (s390_gdbarch_init): Handle TDB regset.
1151 (_initialize_s390_tdep): Initialize new tdescs.
1152 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1153 (have_regset_tdb): New variable.
1154 (s390_native_supply): Support register invalidation.
1155 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1156 (check_regset): Treat ENODATA as "regset exists".
1157 (s390_linux_fetch_inferior_registers): Add TDB.
1158 (s390_read_description): Check for TDB existence and select
1160 * gdbserver/Makefile.in (clean): Add removal of new makefile
1162 (s390-te-linux64.c): New makefile target.
1163 (s390x-te-linux64.c): Likewise.
1164 * gdbserver/configure.srv (srv_regobj): Append new objects
1165 s390-te-linux64.o and s390x-te-linux64.o.
1166 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1167 s390x-te-linux64.xml, and s390-tdb.xml.
1168 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1170 (tdesc_s390_te_linux64): Likewise.
1171 (init_registers_s390x_te_linux64): Likewise.
1172 (tdesc_s390x_te_linux64): Likewise.
1173 (s390_check_regset): Treat ENODATA as "regset exists".
1174 (s390_arch_setup): Add TDB regset support.
1175 (initialize_low_arch): Initialize registers for new tdescs.
1179 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1180 (S390_IS_FPREGSET_REGNUM): New macro.
1181 * s390-tdep.c (s390_dwarf_regmap): Make const.
1182 (regnum_is_gpr_full): New function for replacing repeated code.
1183 (s390_pseudo_register_name): Use it.
1184 (s390_pseudo_register_type): Likewise.
1185 (s390_pseudo_register_read): Likewise.
1186 (s390_pseudo_register_write): Likewise.
1187 (s390_unwind_pseudo_register): Likewise.
1188 (s390_regmap_gregset): New format for regmap.
1189 (s390x_regmap_gregset): Likewise.
1190 (s390_regmap_fpregset): Likewise.
1191 (s390_regmap_upper): Likewise.
1192 (s390_regmap_last_break): Likewise.
1193 (s390_regmap_system_call): Likewise.
1194 (s390_supply_regset): Adjust to new regmap format.
1195 (s390_collect_regset): Likewise.
1196 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1197 (s390_native_collect): Likewise.
1198 (supply_gregset): Likewise.
1199 (fill_gregset): Likewise.
1200 (supply_fpregset): Likewise.
1201 (fill_fpregset): Likewise.
1202 (fetch_regset): Likewise.
1203 (store_regset): Likewise.
1204 (s390_linux_fetch_inferior_registers): Likewise.
1205 (s390_linux_fetch_inferior_registers): Likewise.
1209 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1213 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1217 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1221 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1222 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1223 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1224 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1225 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1230 * remote-sim.c (dump_mem): Constify buf parameter.
1231 gdbsim_xfer_inferior_memory): Rename to ...
1232 (gdbsim_xfer_memory): ... this. Adjust interface as
1233 target_xfer_partial helper.
1234 (gdbsim_xfer_partial): New function.
1235 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1236 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1240 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1241 host_address_to_string, and send debug output to gdb_stdlog.
1245 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1246 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1247 gdb_target_obs for cris target.
1248 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1249 (cris_gdbarch_init): Move calls to
1250 set_gdbarch_fetch_tls_load_module_address and
1251 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1252 Add call to gdbarch_init_osabi.
1253 * cris-linux-tdep.c: New file.
1254 * cris-tdep.h: New file.
1258 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1259 to deprecated_init_ui_hook.
1263 * cli/cli-interp.c (_initialize_cli_interp): Add a
1264 command_loop_proc to interp_procs.
1265 * event-top.c (cli_command_loop): Change signature to match
1266 interp_command_loop_ftype.
1267 * event-top.h (cli_command_loop): Same.
1268 * interps.c (interp_new): Require every interpreter to have a
1270 (current_interp_command_loop): Just call the command_loop_proc on
1271 the current interpreter.
1272 * tui/tui-interp.c (_initialize_tui_interp): Add a
1273 command_loop_proc to interp_procs.
1277 * cris-tdep.c (cris_gdbarch_init): Add call to
1278 get_gdbarch_fetch_tls_load_module_address.
1282 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1283 (cris_elf_gregset_t): Rename from elf_gregset_t.
1284 (crisv32_elf_gregset_t): Adjust.
1285 (cris_supply_gregset, fetch_core_registers): Adjust.
1289 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1293 * defs.h (deprecated_command_loop_hook): Remove, including
1294 references in comments.
1295 * interps.c (current_interp_command_loop): No longer use
1296 deprecated_command_loop_hook.
1297 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1299 * top.c (deprecated_command_loop_hook): Remove.
1303 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1304 local is now int instead of ULONGEST. Print it with %d
1305 instead of paddress.
1309 * MAINTAINERS: Remove avr maintainership.
1313 * findvar.c (value_of_register): Rework in terms of
1314 value_of_register_lazy.
1318 * symfile.c (add_symbol_file_command): Remove trailing
1319 whitespaces and blank line after comment.
1323 * tui/tui-regs.c (tui_register_format): Don't look at the
1324 register's name here. Return string representing register
1325 value instead of storing it in the data element.
1326 (tui_get_register): Compare register string representations
1327 instead of register value states and contents.
1332 * tui/tui-regs.c (tui_show_registers): Show registers of the
1333 selected frame, not the current frame.
1337 * MAINTAINERS (Write After Approval): Add myself to the list.
1341 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1342 (queue_and_load_dwo_tu): New function.
1343 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1344 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1345 Make dependent_cu optional.
1346 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1347 and an older .gdb_index is in use, queue and load all its TUs too.
1351 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1352 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1353 variable search_flags.
1354 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1355 (OPF_RETURN_REALPATH): ... here.
1356 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1357 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1359 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1361 * solib.c (solib_find): Likewise. Four times.
1362 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1363 in the function comment and for the realpath_fptr variable.
1364 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1365 (find_and_open_source): Likewise. Twice.
1366 * symfile.c (symfile_bfd_open): Likewise, also twice.
1370 * progspace.c (save_current_space_and_thread): Remove unnecessary
1371 call to save_current_inferior.
1375 * sh64-tdep.c (sh64_do_register): Return after printing message
1376 about unavailable register contents.
1381 * symfile.c (add_symbol_file_command): Error out on unknown
1382 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1383 options and collapse into single conditional branch.
1387 * inf-child.c (inf_child_follow_fork): New parameter
1389 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1390 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1391 * inferior.h (detach_fork): Remove.
1392 * infrun.c (detach_fork): Adjust comment and make it
1394 (follow_fork): Pass detach_fork parameter to
1396 * linux-nat.c (linux_child_follow_fork): New parameter
1398 * target.c (target_follow_fork): New parameter detach_fork.
1399 Pass detach_fork as parameter and print its value.
1400 * target.h (struct target_ops) <to_follow_fork>: New int
1402 (target_follow_fork): New parameter detach_fork.
1406 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1407 Replace sec->bfd by sec->the_bfd_section->owner.
1411 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1412 from linux_has_shared_address_space.
1413 (linux_has_shared_address_space): Call linux_is_uclinux.
1414 * linux-tdep.h (linux_is_uclinux): Declare.
1415 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1420 * config/djgpp/fnchange.lst: Remove entry of
1421 i386-interix-nat.c and i386-interix-tdep.c.
1422 * configure.ac: Remove '*-*-interix*'.
1423 * configure: Re-generated.
1424 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1425 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1427 * osabi.c (gdb_osabi_names): Remove "Interix".
1431 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1435 * record.h (record_print_flag) <record_print_src_line,
1436 record_print_insn_range>: Rename into ...
1437 (record_print_flag) <record_print_src_line,
1438 record_print_insn_range>: ... this. Update all users.
1442 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1447 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1448 by use of plongest function.
1452 * NEWS: Add entry mentioning support for native Windows x64
1455 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1456 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1457 (struct amd64_windows_frame_cache): New struct.
1458 (amd64_windows_w2gdb_regnum): New global.
1459 (pc_in_range, amd64_windows_frame_decode_epilogue)
1460 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1461 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1462 (amd64_windows_frame_this_id): New functions.
1463 (amd64_windows_frame_unwind): New static global.
1464 (amd64_windows_skip_prologue): New function.
1465 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1466 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1467 with amd64_windows_skip_prologue.
1475 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1480 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1485 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1486 Adjust arguments to print_stack_frame.
1490 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1494 * frame.h (show_and_print_stack_frame): Delete declaration.
1500 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1501 (archpy_name): Check for valid architecture.
1502 (archpy_disassemble): Ditto.
1506 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1507 instead of "long long" in call to ptrace64.
1511 * mi/mi-interp.c (mi_command_loop): Change signature to match
1512 interp_command_loop_ftype.
1513 (mi1_command_loop): Remove.
1514 (mi2_command_loop): Remove.
1515 (mi3_command_loop): Remove.
1516 (mi_interpreter_resume): Remove setting of
1517 deprecated_command_loop_hook.
1518 (_initialize_mi_interp): Set mi_command_loop as the command loop
1523 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1528 * value.c (allocate_value_contents): Make static.
1529 * value.h (allocate_value_contents): Remove prototype.
1533 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1534 of assembling value via allocate_value_lazy and attribute setter.
1535 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1536 assembling value via allocate_value_lazy and attribute setter.
1537 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1538 assembling value via allocate_value_lazy and attribute setter.
1542 * value.c (value_from_contents_and_address): Replace allocate_value and
1543 memcpy with value_from_contents.
1547 * python/py-framefilter.c (py_print_frame): Remove usage of
1548 PyString_AsString. Use python_string_to_host_string instead.
1549 Refactor function to work with a string as a new allocation
1550 instead of a pointer.
1551 (py_print_frame): Ditto.
1552 * python/lib/gdb/frames.py (return_list): Cain iterators together
1553 instead of adding them as a list.
1554 (_sort_list): Call return_list, and remove duplicate code.
1555 (execute_frame_filters): Convert iterator to a list with list().
1556 * python/lib/gdb/command/frame_filters.py
1557 (SetFrameFilterPriority._set_filter_priority): Convert priority
1558 attribute to an integer.
1559 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1560 wrapper function __next__.
1561 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1567 * python/py-framefilter.c (apply_frame_filter): Check
1568 gdb_python_initialized. Exit if the Python frame-filter code
1569 cannot be initialized.
1574 * top.c (print_gdb_version): Remove erroneous newline after help
1579 * varobj.c (install_dynamic_child): Remove trailing space.
1580 Add one blank line after variable declaration.
1585 * corefile.c (get_exec_file): Use exec_filename.
1586 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1587 * exec.c (exec_close): Free EXEC_FILENAME.
1588 (exec_file_attach): New variable canonical_pathname. Use
1589 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1591 * exec.h (exec_filename): New.
1592 * inferior.c (print_inferior, inferior_command): Use
1593 PSPACE_EXEC_FILENAME.
1594 * mi/mi-main.c (print_one_inferior): Likewise.
1595 * progspace.c (clone_program_space, print_program_space): Likewise.
1596 * progspace.h (struct program_space): New field pspace_exec_filename.
1597 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1598 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1602 * common/linux-ptrace.c: Include stdint.h unconditionally.
1607 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1612 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1613 instead of stdio_fileopen.
1614 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1615 .Call stderr_fileopen instead of stdio_fileopen.
1616 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1617 [__MINGW32__] (stderr_file_fputs): New function.
1618 (stderr_fileopen): New function.
1619 * ui-file.h (stderr_fileopen): Declare.
1623 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1624 (struct dwarf2_per_cu_data): Ditto.
1625 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1626 (process_imported_unit_die): Ditto.
1627 (follow_die_sig_1): Simplify assert.
1631 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1632 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1633 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1634 windows_xfer_memory directly.
1635 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1639 * darwin-nat.c (darwin_xfer_memory): Delete.
1640 (_initialize_darwin_inferior): Don't install a
1641 deprecated_xfer_memory method.
1646 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1647 (parse_no_frames_option): Remove.
1648 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1649 (mi_cmd_stack_list_args): Adjust.
1650 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1651 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1652 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1654 (list_args_or_locals): New parameter 'skip_unavailable'.
1656 * valprint.c (scalar_type_p): Rename to ...
1657 (val_print_scalar_type_p): ... this. Make extern.
1658 (val_print, value_check_printable): Adjust.
1659 * valprint.h (val_print_scalar_type_p): Declare.
1660 * value.c (value_entirely_unavailable): New function.
1661 * value.h (value_entirely_unavailable): Declare.
1663 * NEWS: Mention the new option "--skip-unavailable" to MI
1664 commands '-stack-list-locals', '-stack-list-arguments' and
1665 '-stack-list-variables'.
1669 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1670 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1672 * mi/mi-getopt.c (mi_getopt): Remove.
1673 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1675 (mi_getopt): Call mi_getopt_1.
1676 (mi_getopt_silent): New.
1677 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1682 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1683 .gdb_index is in use.
1684 * symfile.c (reread_symbols): Reset objfile->sf.
1686 * NEWS: Document "mt print objfiles" now takes optional regexp.
1687 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1688 regexp of objfiles to print.
1689 (_initialize_symmisc): Update doc string for "mt print objfiles".
1691 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1692 missing debug info checks.
1697 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1698 line tables generated by XLC compiled binaries.
1702 * symmisc.c (dump_symtab): Delete prototype.
1703 (dump_msymbols, dump_objfile): Ditto.
1704 (maintenance_info_symtabs): Mark as dont_repeat.
1705 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1707 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1708 debugging printf to better location.
1712 * target.c (target_read_live_memory): Change type of 'ret' local
1717 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1718 (remote_read_bytes): Change return type to LONGEST, and adjust to
1719 return a target_xfer_error on error.
1720 (remote_xfer_memory): Delete.
1721 (remote_flash_write): Change type of 'ret' local to LONGEST.
1722 (remote_xfer_partial, remote_xfer_partial): Adjust.
1723 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1727 ARI fix: Push # directives to start of line.
1728 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1733 * breakpoint.c (enable_command, disable_command): Iterate over
1734 all specified breakpoint locations.
1738 * common/linux-ptrace.c (linux_fork_to_function): Push #
1739 directives to the start of the line.
1740 (linux_check_ptrace_features): Fix warning message to use
1745 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1746 nat/linux-waitpid.h.
1747 (linux-waitpid.o): New object file rule.
1748 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1749 (current_ptrace_options): Moved from linux-nat.c.
1750 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1752 (linux_fork_to_function): New function.
1753 (linux_grandchild_function): Likewise.
1754 (linux_child_function): Likewise.
1755 (linux_check_ptrace_features): New function, heavily
1756 based on linux-nat.c:linux_test_for_tracefork.
1757 (linux_enable_event_reporting): New function.
1758 (ptrace_supports_feature): Likewise.
1759 (linux_supports_tracefork): Likewise.
1760 (linux_supports_traceclone): Likewise.
1761 (linux_supports_tracevforkdone): Likewise.
1762 (linux_supports_tracesysgood): Likewise.
1763 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1764 gdbserver/linux-low.c.
1765 (linux_enable_event_reporting): New declaration.
1766 (linux_supports_tracefork): Likewise.
1767 (linux_supports_traceclone): Likewise.
1768 (linux_supports_tracevforkdone): Likewise.
1769 (linux_supports_tracesysgood): Likewise.
1770 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1771 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1772 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1773 * config/arm/linux.mh (NATDEPFILES): Likewise.
1774 * config/i386/linux.mh (NATDEPFILES): Likewise.
1775 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1776 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1777 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1778 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1779 * config/mips/linux.mh (NATDEPFILES): Likewise.
1780 * config/pa/linux.mh (NATDEPFILES): Likewise..
1781 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1782 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1783 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1784 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1785 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1786 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1787 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1788 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1789 ptrace's 4th argument's types.
1790 Check the type of PTRACE_TYPE_ARG4.
1791 * configure: Regenerate.
1792 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1793 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1794 (linux_supports_tracefork_flag): Remove.
1795 (linux_supports_tracesysgood_flag): Likewise.
1796 (linux_supports_tracevforkdone_flag): Likewise.
1797 (current_ptrace_options): Moved to
1798 common/linux-ptrace.c.
1799 (linux_tracefork_child): Remove.
1800 (my_waitpid): Remove.
1801 (linux_test_for_tracefork): Renamed to
1802 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1803 (linux_test_for_tracesysgood): Remove.
1804 (linux_supports_tracesysgood): Remove.
1805 (linux_supports_tracefork): Remove.
1806 (linux_supports_tracevforkdone): Remove.
1807 (linux_enable_tracesysgood): Remove.
1808 (linux_enable_event_reporting): Remove.
1809 (linux_init_ptrace): New function.
1810 (linux_child_post_attach): Call linux_init_ptrace.
1811 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1812 (linux_child_follow_fork): Call linux_supports_tracefork
1813 and linux_supports_tracevforkdone.
1814 (linux_child_insert_fork_catchpoint): Call
1815 linux_supports_tracefork.
1816 (linux_child_insert_vfork_catchpoint): Likewise.
1817 (linux_child_set_syscall_catchpoint): Call
1818 linux_supports_tracesysgood.
1819 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1820 * nat/linux-nat.h: New file.
1821 * nat/linux-waitpid.c: New file.
1822 * nat/linux-waitpid.h: New file.
1826 ARM Linux support for `catch syscall'.
1827 * syscalls/arm-linux.py: New file.
1828 * syscalls/arm-linux.xml: Likewise.
1829 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1830 (arm_linux_init_abi): Register the new function and syscall xml file.
1831 * data-directory/Makefile.in: Install the new syscall xml file.
1832 * NEWS: Brag about this.
1837 * corefile.c (target_xfer_memory_error): New function.
1838 (memory_error): Defer EIO to target_memory_error.
1839 (read_memory): Use target_xfer_partial, and handle finer-grained
1841 * target.c (target_xfer_error_to_string): New function.
1842 (memory_xfer_partial_1): If memory is known to be
1843 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1844 (target_xfer_partial): Make extern.
1845 * target.h (enum target_xfer_error): New enum.
1846 (target_xfer_error_to_string): Declare function.
1847 (target_xfer_partial): Declare function.
1848 (struct target_ops) <xfer_partial>: Adjust describing comment.
1852 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1853 * configure.tgt: Likewise as targets.
1857 * buildsym.c (subfile_stack): Move here from buildsym.h.
1858 (pending_macros): Ditto.
1859 (get_macro_table): New function.
1860 (buildsym_init): Initialize subfile_stack.
1861 * coffread.c (type_vector,type_vector_length): Moved here from
1863 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1864 (coff_symtab_read): Use it.
1865 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1866 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1867 with call to get_macro_table.
1868 * stabsread.c (type_vector,type_vector_length): Moved here from
1870 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1871 * buildsym.h (get_macro_table): Declare.
1875 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1877 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1881 * blockframe.c: Remove #include "psymtab.h".
1882 * cp-support.c: Ditto.
1889 * exceptions.h (return_mask): Now an enum.
1890 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1895 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1897 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1898 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1899 * jit.c (jit_object_close_impl): Update.
1900 * jv-lang.c (get_dynamics_objfile): Update.
1901 * linespec.c (add_minsym): Use get_dynamics_objfile.
1902 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1903 (allocate_objfile): Don't initialize 'gdbarch' field.
1904 (get_objfile_arch): Update.
1905 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1907 (struct objfile) <gdbarch>: ... here. Remove.
1908 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1910 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1914 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1915 for IBM long double nan and inf.
1916 (floatformat_is_negative, floatformat_classify,
1917 floatformat_mantissa): Similarly.
1918 (floatformat_ieee_single, floatformat_ieee_double,
1919 floatformat_ieee_quad, floatformat_arm_ext,
1920 floatformat_ia64_spill): Delete unused vars.
1921 (_initialize_doublest): Delete unused function.
1922 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1923 little-endian variants of floatformat_ibm_long_double.
1927 * Makefile.in (SFILES): Remove common/target-common.c and
1928 add target/waitstatus.c.
1929 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1930 target/resume.h, target/wait.h and target/waitstatus.h.
1931 (COMMON_OBS): Remove target-common.o and add
1933 (target-common.o): Remove.
1934 (waitstatus.o): New target object file.
1935 * common/target-common.c: Move contents to
1936 target/waitstatus.c and remove.
1937 * common/target-common.h: Move contents to other files and
1939 (enum resume_kind: Move to target/resume.h.
1940 (TARGET_WNOHANG): Move to target/wait.h.
1941 (enum target_waitkind): Move to target/waitstatus.h.
1942 (struct target_waitstatus): Likewise.
1943 * target.h: Do not include target-common.h and
1944 include target/resume.h, target/wait.h and
1945 target/waitstatus.h.
1946 * target/resume.h: New file.
1947 * target/wait.h: New file.
1948 * target/waitstatus.h: New file.
1949 * target/waitstatus.c: New file.
1953 * linux-nat.c (linux_test_for_tracefork)
1954 (linux_test_for_tracesysgood, linux_child_follow_fork)
1955 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1956 (linux_nat_wait_1): Extend comment.
1957 (linux_async_pipe): Add comment.
1961 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1962 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1963 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1964 Update to account for fact that PC is now a pseudo-register.
1965 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1966 cases for RL78_PC_REGNUM.
1971 * top.c (quit_force): Skip writing history file
1972 if input is not from terminal.
1976 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1977 resultthreadlist>: New fields.
1978 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1979 (remote_get_threadlist, remote_threadlist_iterator): Use
1980 new fields. Remove static variables.
1984 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1985 remote_watch_data_address>: New fields.
1986 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1987 (process_stop_reply, remote_wait_as)
1988 (remote_check_watch_resources, remote_stopped_data_address): Update.
1992 * remote.c (struct remote_state) <async_client_callback,
1993 async_client_context>: New fields.
1994 (async_client_callback, async_client_context): Remove.
1995 (remote_async_serial_handler, remote_async): Update.
1999 * remote.c (sizeof_pkt): Remove.
2000 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2004 * remote.c (struct remote_state) <use_threadinfo_query,
2005 use_threadextra_query>: New fields.
2006 (remote_threads_info, remote_threads_extra_info)
2007 (remote_open_1): Update.
2011 * remote.c (struct remote_state) <finished_object,
2012 finished_annex, finished_offset>: New fields.
2013 (remote_read_qxfer): Use remote_state fields; remove static
2018 * remote.c (struct remote_state) <last_sent_step>:
2020 (last_sent_step): Remove.
2021 (remote_resume, remote_wait_as): Update.
2025 * remote.c (struct remote_state) <last_sent_signal>:
2027 (last_sent_signal): Remove.
2028 (new_remote_state, remote_resume, remote_wait_as): Update.
2032 * remote.c (struct remote_state) <last_program_signals_packet>:
2034 (last_program_signals_packet): Remove.
2035 (remote_program_signals, remote_open_1): Update.
2039 * remote.c (struct remote_state) <last_pass_packet>:
2041 (last_pass_packet): Remove.
2042 (remote_pass_signals, remote_open_1): Update.
2046 * remote.c (struct remote_state) <remote_traceframe_number>:
2048 (remote_traceframe_number): Remove.
2049 (new_remote_state, remote_open_1, set_remote_traceframe)
2050 (remote_trace_find): Update.
2054 * remote.c (struct remote_state) <general_thread, continue_thread>:
2056 (general_thread, continue_thread): Remove.
2057 (record_currthread, set_thread, set_general_process)
2058 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2059 (extended_remote_mourn_1): Update.
2063 * remote.c (struct remote_state) <remote_desc>: New field.
2064 (remote_desc): Remove.
2065 (remote_threads_info, remote_threads_extra_info, remote_close)
2066 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2067 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2068 (remote_hostio_send_command, remote_file_put, remote_file_get)
2069 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2070 (remote_async, remote_new_objfile, set_range_stepping): Update.
2074 * remote.c (remote_state): Now a pointer.
2075 (get_remote_state_raw): Update.
2076 (new_remote_state): New function.
2077 (_initialize_remote): Use new_remote_state.
2081 * remote.c (remote_protocol_features): Now const.
2085 * remote.c (crc32_table, crc32): Remove.
2086 (remote_verify_memory): Use xcrc32.
2090 * value.h (create_internalvar_type_lazy): Adjust prototype
2095 * common/format.c (parse_format_string): Don't allow '#' flag for
2096 pointer arguments in format string.
2100 * utils.c (init_page_info): Only call tgetnum function
2101 if rl_get_screen_size did not return useful values.
2105 PR breakpoints/15117
2106 * linespec.c (linespec_parse_basic): Check for convenience
2107 variable or history value while parsing.
2111 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2113 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2114 different signals between the generic Linux kernel implementation
2116 (avr_linux_gdb_signal_from_target): Delete.
2117 (avr_linux_gdb_signal_to_target): Delete.
2118 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2122 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2127 * linux-tdep.c: Define enum with generic signal numbers.
2128 (linux_gdb_signal_from_target): New function.
2129 (linux_gdb_signal_to_target): Likewise.
2130 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2131 methods to the functions above.
2132 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2133 (linux_gdb_signal_to_target): Likewise.
2134 * alpha-linux-tdep.c: Define new enum with signals different
2135 from generic Linux kernel.
2136 (alpha_linux_gdb_signal_from_target): New function.
2137 (alpha_linux_gdb_signal_to_target): Likewise.
2138 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2139 with the functions mentioned above.
2140 * avr-tdep.c: Define enum with differences between Linux kernel
2142 (avr_linux_gdb_signal_from_target): New function.
2143 (avr_linux_gdb_signal_to_target): Likewise.
2144 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2145 the functions mentioned above.
2146 * sparc-linux-tdep.c: Define enum with differences between SPARC
2147 and generic Linux kernel signal numbers.
2148 (sparc32_linux_gdb_signal_from_target): New function.
2149 (sparc32_linux_gdb_signal_to_target): Likewise.
2150 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2151 to the functions defined above.
2152 * xtensa-linux-tdep.c: Define enum with differences between
2153 Xtensa and Linux kernel generic signals.
2154 (xtensa_linux_gdb_signal_from_target): New function.
2155 (xtensa_linux_gdb_signal_to_target): Likewise.
2156 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2157 to the functions defined above.
2158 * mips-linux-tdep.c: Define enum with differences between
2159 signals in MIPS and Linux kernel generic ones.
2160 (mips_gdb_signal_to_target): New function.
2161 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2162 only different signals from the Linux kernel generic.
2163 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2164 the functions defined above.
2165 * mips-linux-tdep.h (enum mips_signals): Remove.
2169 * avr-tdep.c (XMALLOC): Delete macro.
2170 * cli/cli-dump.c (XMALLOC): Delete macro.
2174 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2175 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2176 (fopen_with_cleanup, add_dump_command): Make static.
2177 * cli/cli-dump.h: Delete file.
2178 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2183 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2188 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2193 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2194 (gcore_command): Use tilde_expand here, and when showing the
2195 filename to the user, show the expanded version.
2199 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2204 * gcore.c (create_gcore_bfd): Use tilde_expand.
2208 * frame.h (read_frame_local): Declare.
2209 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2211 * stack.c (read_frame_local): New.
2215 * mi/mi-cmd-stack.c: Update comments to function
2216 list_args_or_locals.
2221 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2222 (process_psymtab_comp_unit_reader): Use it.
2223 (process_psymtab_comp_unit): Update. Add "pretend_language"
2225 (dwarf2_build_psymtabs_hard): Update.
2226 (scan_partial_symbols): Pass CU's language to
2227 process_psymtab_comp_unit.
2231 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2232 (dwarf2_gdb_index_functions): Update.
2233 * psymtab.c (find_symbol_file_from_partial): Remove.
2234 (psym_functions): Update.
2235 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2240 * symfile.c (set_initial_language): Look up "main" symbol
2241 and use its language.
2242 * symtab.c (find_main_filename): Remove.
2243 * symtab.h (find_main_filename): Remove.
2247 * dwarf2read.c (recursively_compute_inclusions): Add
2248 "immediate_parent" argument. Set symtab's "user" field
2250 (compute_symtab_includes): Update.
2254 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2255 when adding label symbols.
2260 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2261 * configure.host (powerpc64-*-aix*): Likewise.
2266 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2268 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2269 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2270 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2271 * configure.ac: Check for ptrace64.
2272 * configure, config.in: Regenerate.
2277 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2278 Call ptrace64 instead of ptrace if defined.
2279 Add macro addr_ptr to take care of ptrace address argument.
2280 (pdc_read_regs): Likewise.
2281 (pdc_write_regs): Likewise.
2282 (aix_thread_resume): Likewise.
2283 (fetch_regs_kernel_thread): Likewise.
2284 (store_regs_kernel_thread): Likewise.
2288 * MAINTAINERS: Add myself to Write After Approval.
2292 * aix-thread.c (_initialize_aix_thread): Use
2293 complete_target_initialization.
2294 * bsd-uthread.c (_initialize_bsd_uthread): Use
2295 complete_target_initialization.
2296 * dec-thread.c (_initialize_dec_thread): Use
2297 complete_target_initialization.
2298 * ravenscar-thread.c (_initialize_ravenscar): Use
2299 complete_target_initialization.
2300 * sol-thread.c (_initialize_sol_thread): Use
2301 complete_target_initialization.
2302 * spu-multiarch.c (_initialize_spu_multiarch): Use
2303 complete_target_initialization.
2307 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2308 * ada-lang.c (ada_lookup_simple_minsym): Return
2309 bound_minimal_symbol.
2310 * ada-lang.h (ada_lookup_simple_minsym): Update.
2311 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2312 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2313 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2314 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2315 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2316 * minsyms.c (msymbol_objfile): Remove.
2317 (lookup_minimal_symbol_internal): New function, from
2318 lookup_minimal_symbol.
2319 (lookup_minimal_symbol): Rewrite using
2320 lookup_minimal_symbol_internal.
2321 (lookup_bound_minimal_symbol): New function.
2322 * minsyms.h (msymbol_objfile): Remove.
2323 (lookup_bound_minimal_symbol): Declare.
2324 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2325 * parse.c (write_exp_msymbol): Change parameter to a
2326 bound_minimal_symbol.
2327 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2328 * parser-defs.h (write_exp_msymbol): Update.
2329 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2330 * symfile.c (simple_read_overlay_table): Use
2331 lookup_bound_minimal_symbol.
2332 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2333 (search_symbols): Likewise.
2334 (print_msymbol_info): Take a bound_minimal_symbol argument.
2335 (symtab_symbol_info, rbreak_command): Update.
2336 * symtab.h (struct symbol_search) <msymbol>: Change type
2337 to bound_minimal_symbol.
2338 * valops.c (find_function_in_inferior): Use
2339 lookup_bound_minimal_symbol.
2340 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2345 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2347 (async_cleanup_sigint_signal_handler): ... this.
2348 (initialize_sigint_signal_handler): Remove declaration.
2349 (handle_remote_sigint): Rename the declaration to ...
2350 (async_handle_remote_sigint): ... this.
2351 (handle_remote_sigint_twice): Rename the declaration to ...
2352 (async_handle_remote_sigint_twice): ... this.
2353 (async_remote_interrupt, async_remote_interrupt_twice)
2354 (remote_interrupt): Remove the declarations.
2355 (remote_interrupt_twice): Rename the declaration ...
2356 (sync_remote_interrupt_twice): ... this.
2357 (sigint_remote_twice_token): Rename the variable to ...
2358 (async_sigint_remote_twice_token): ... this.
2359 (sigint_remote_token): Rename the variable to ...
2360 (async_sigint_remote_token): ... this.
2361 (initialize_sigint_signal_handler): Rename the function to ...
2362 (async_initialize_sigint_signal_handler): ... this. Update the name
2364 (handle_remote_sigint): Rename the function to ...
2365 (async_handle_remote_sigint): ... this. Update the names inside.
2366 (handle_remote_sigint_twice): Rename the function to ...
2367 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2368 (cleanup_sigint_signal_handler): Rename the function to ...
2369 (async_cleanup_sigint_signal_handler): ... this.
2370 (remote_interrupt): Rename the function to ...
2371 (sync_remote_interrupt): this. Update the names inside.
2372 (remote_interrupt_twice): Rename the function to ...
2373 (sync_remote_interrupt_twice): this. Update the names inside.
2374 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2375 (_initialize_remote): Update the names inside.
2380 * breakpoint.c (update_watchpoint, watchpoint_check)
2381 (watch_command_1): Update.
2382 * eval.c (fetch_subexp_value): Add "preserve_errors"
2384 * ppc-linux-nat.c (check_condition): Update.
2385 * value.h (fetch_subexp_value): Update.
2389 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2395 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2396 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2397 Add assert of sig_entry->dwo_unit == NULL.
2398 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2399 had already been read.
2400 (read_signatured_type): Set per_cu.tu_read.
2403 * valops.c (value_struct_elt): Add missing call to check_typedef.
2404 (value_find_oload_method_list): Ditto.
2406 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2407 effectively, struct symbol_search **.
2408 (make_cleanup_free_search_symbols): Change arg to struct
2409 symbol_search **. All callers updated.
2410 (compare_search_syms): Compare symtab file name and block as well.
2411 (search_symbols_equal): New function.
2412 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2413 New args new_head, new_tail. Result is now void. Remove dups after
2414 sorting the symbols.
2415 (search_symbols): Sort all found symbols once, after all have been
2416 found, and remove duplicates. Simplify cleanup tracking of result.
2417 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2419 Further workarounds for binutils/15021.
2420 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2421 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2422 Watch for duplicate symtabs coming from type units.
2423 (compute_symtab_includes): Update call to
2424 recursively_compute_inclusions. Build vector of included symtabs
2426 * symtab.h (symtab_ptr): New typedef.
2427 (DEF_VEC_P (symtab_ptr)): New VEC type.
2428 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2433 * cli/cli-script.c (script_from_file): Remove use of
2435 * main.c (captured_main): Remove use of error_pre_print and
2437 * utils.c (error_pre_print, quit_pre_print): Remove.
2438 * utils.h (error_pre_print, quit_pre_print): Likewise.
2442 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2444 (mi_cmd_stack_list_variables): Likewise.
2448 * exceptions.c (deprecated_throw_reason): Remove.
2449 * exceptions.h (deprecated_throw_reason): Remove.
2453 * remote-mips.c (mips_error): Replace use of
2454 deprecated_throw_reason with throw_verror. Use the error message
2455 passed to mips_error as the error message for throw_verror.
2459 * monitor.c (monitor_interrupt_query): Replace use of
2460 deprecated_throw_reason with quit.
2461 * nto-procfs.c (interrupt_query): Likewise.
2462 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2463 * remote-mips.c (mips_kill): Likewise.
2464 * remote.c (interrupt_query): Likewise.
2468 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2474 * tracepoint.c (trace_dump_command): Select the current frame.
2478 * dwarf2read.c (process_queue): Add type signature to debug output.
2482 * value.c (value_fetch_lazy): Mark optimized out values as such
2483 rather than raising an error.
2487 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2488 before checking which bits of the parent, not the child, value are
2494 * top.c: Include "filenames.h".
2495 (set_history_filename): New function.
2496 (init_main): Install it as set hook of the "set history filename"
2501 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2502 attribute parameter.
2503 (dwarf2_const_value_data): Constify struct attribute parameter.
2504 (dwarf2_const_value): Constify struct attribute parameter.
2505 (dwarf2_const_value_attr): Constify struct attribute parameter.
2506 (lookup_die_type): Constify struct attribute parameter.
2507 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2508 (follow_die_ref_or_sig): Constify struct attribute parameter.
2509 (follow_die_ref): Constify struct attribute parameter.
2510 (follow_die_sig): Constify struct attribute parameter.
2511 (get_DW_AT_signature_type): Constify struct attribute parameter.
2512 (get_type_unit_group): Constify struct attribute parameter.
2513 (fill_in_loclist_baton): Constify struct attribute parameter.
2514 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2515 (type_unit_group): Constify struct attribute parameter.
2519 * dwarf2read.c (attr_form_is_block): Make argument const.
2520 (attr_form_is_section_offset): Make argument const.
2521 (attr_form_is_constant): Make argument const.
2522 (attr_form_is_ref): Make argument const.
2526 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2528 (attr_form_is_ref): Moved below attr_form_is_constant.
2532 * main.c (captured_command_loop): Tweak comment.
2534 * target.c (target_async_permitted_1): Fix comment.
2536 * symtab.c (iterate_over_some_symtabs): Add comment.
2538 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2542 * NEWS: Mention that GDBserver now supports hardware
2543 watchpoints on the MIPS GNU/Linux target.
2547 * Makefile.in (HFILES_NO_SRCDIR): Add
2548 common/mips-linux-watch.h.
2549 (mips-linux-watch.o): New rule.
2550 * common/mips-linux-watch.c: New.
2551 * common/mips-linux-watch.h: New.
2552 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2553 * mips-linux-nat.c: Include mips-linux-watch.h.
2554 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2555 to common/mips-linux-watch.h.
2556 (MAX_DEBUG_REGISTER): Likewise.
2557 (enum pt_watch_style): Likewise.
2558 (struct mips32_watch_regs): Likewise.
2559 (struct mips64_watch_regs): Likewise.
2560 (struct pt_watch_regs): Likewise.
2561 (struct mips_watchpoint): Likewise.
2562 (mips_linux_watch_get_irw_mask): Move to
2563 common/mips-linux-watch.c.
2564 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2565 (mips_linux_watch_get_watchlo): Likewise.
2566 (mips_linux_watch_set_watchlo): Likewise.
2567 (mips_linux_watch_get_watchhi): Likewise.
2568 (mips_linux_watch_set_watchhi): Likewise.
2569 (mips_linux_read_watch_registers): Likewise.
2570 (mips_linux_watch_type_to_irw): Likewise.
2571 (mips_linux_stopped_data_address, fill_mask): Likewise.
2572 (mips_linux_watch_try_one_watch): Likewise.
2573 (mips_linux_watch_populate_regs): Likewise.
2577 * mips-linux-nat.c (get_irw_mask): Rename to ...
2578 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2579 'set' to 'n'. Update function comment. All callers changed.
2580 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2581 function comment. All callers changed.
2582 (get_num_valid): Rename to ...
2583 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2584 'set' to 'n'. Update function comment. All callers changed.
2585 (get_watchlo): Rename to ...
2586 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2587 'set' to 'n'. Update function comment. All callers changed.
2588 (set_watchlo): Rename to ...
2589 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2590 'set' to 'n'. Update function comment. All callers changed.
2591 (get_watchhi): Rename to ...
2592 (mips_linux_watch_get_watchhi): ... this. Update function
2593 comment. All callers changed.
2594 (set_watchhi): Rename to ...
2595 (mips_linux_watch_set_watchhi): ... this. Update function
2596 comment. All callers changed.
2597 (mips_linux_read_watch_registers): Update function comment.
2598 Add new parameters 'lwpid', 'watch_readback', and
2599 'watch_readback_valid'. Update.
2600 (type_to_irw): Rename to ...
2601 (mips_linux_watch_type_to_irw): ... this. Update function
2602 comment. All callers changed.
2603 (fill_mask): Update function comment.
2604 (try_one_watch): Rename to ...
2605 (mips_linux_watch_try_one_watch): ... this. Change the type
2606 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2607 (populate_regs_from_watches): Rename to ...
2608 (mips_linux_watch_populate_regs): ... this. Add parameter
2609 'current_watches'. All callers changed.
2613 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2615 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2616 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2617 (struct pt_watch_regs): Likewise.
2618 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2619 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2620 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2621 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2622 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2626 * breakpoint.h: Include break-common.h.
2627 (enum target_hw_bp_type): Move to ...
2628 * common/break-common.h: ... here. New.
2632 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2633 process group regardless of having tty on stdin.
2637 * linux-fork.h (detach_fork): Delete.
2641 PR remote/15256, PR remote/15266:
2642 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2643 * monitor.c (monitor_detach): Use unpush_target.
2644 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2645 * remote-mips.c (mips_detach): Use unpush_target. Don't
2647 * remote-sim.c (gdbsim_detach): Use unpush_target.
2648 * target.c (pop_target): Remove.
2649 (pop_all_targets_above): Don't call target_close.
2650 (target_close): Assert that the target is unpushed.
2651 * target.h (pop_target): Don't declare.
2652 * tracepoint.c (tfile_open): Use unpush_target.
2656 * linux-thread-db.c (init_thread_db_ops): Call
2657 complete_target_initialization.
2658 (_initialize_thread_db): Don't call add_target.
2659 * target.c (complete_target_initialization): New function.
2660 (add_target_with_completer): Call it.
2661 * target.h (complete_target_initialization): Declare.
2665 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2666 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2667 (HPPANBSD_SIZEOF_GREGS): New define.
2668 (hppaobsd_supply_gregset): Handle additional registers.
2669 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2670 we provide more registers now.
2671 (hppabsd_supply_gregset): Supply additional registers.
2672 (hppabsd_collect_gregset): Collect additional registers.
2676 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2677 (hppabsd_dwarf2_frame_init_reg): New function.
2678 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2682 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2683 'z' format code. Remove error for optimized out values, standard
2684 code will handle these fine.
2688 * NEWS: Mention new 'z' formatter.
2689 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2690 (_initialize_printcmd): Mention 'z' formatter in help text of the
2695 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2700 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2701 interface can evaluate arguments. Fallback to the old mode if it
2703 (create_exception_master_breakpoint): Likewise.
2704 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2705 (struct sym_probe_fns elf_probe_fns): Export function above to the
2707 * probe.c (can_evaluate_probe_arguments): New function.
2708 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2710 (can_evaluate_probe_arguments): New function prototype.
2711 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2712 probe interface can evaluate arguments. Fallback to the old mode
2714 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2715 interface can evaluate arguments. Warning the user if it cannot.
2716 (stap_can_evaluate_probe_arguments): New function.
2717 (struct probe_ops stap_probe_ops): Export function above to the
2719 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2720 New function pointer.
2724 * Makefile.in (SFILES): Add common/target-common.c.
2725 Add common/target-common.h to headers.
2726 (COMMON_OBS): Add target-common.o.
2727 (target-common.o): New target.
2728 * linux-nat.h (resume_kind): Move to common/target-common.h.
2729 * target.c (target_waitstatus_to_string): Move to
2730 common/target-common.c.
2731 * target.h: Include target-common.h.
2732 (target_waitkind): Move to common/target-common.h.
2733 (target_waitstatus): Likewise.
2734 (TARGET_WNOHANG): Likewise.
2735 * common/target-common.c: New file.
2736 * common/target-common.h: New file.
2740 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2745 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2746 parameter 'gdbarch'.
2747 (i386_stack_tramp_frame_sniffer): Caller update.
2748 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2749 parameter 'gdbarch' and 'target'.
2750 (i386_linux_core_read_description): Caller update.
2751 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2753 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2758 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2763 * exec.h (remove_target_sections): Delete arg abfd.
2764 * exec.c (exec_close): Update call to remove_target_sections.
2765 (remove_target_sections): Delete arg abfd.
2766 * solib.c (update_solib_list): Ditto.
2767 (reload_shared_libraries_1): Ditto.
2768 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2769 * target.h (struct target_section): Rename key to owner.
2774 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2778 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2779 Simplify cleanup handling.
2783 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2784 on all return paths.
2788 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2789 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2790 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2794 * top.c (print_gdb_version): Add help, apropos description and
2795 url to online documentation.
2800 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2804 * target.c (update_current_target): Change the default action
2805 of 'to_traceframe_info' from tcomplain to return_zero.
2806 * target.h (struct target_ops) <to_traceframe_info>: Add more
2808 * valops.c (read_value_memory): Call
2809 traceframe_available_memory unconditionally.
2813 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2814 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2815 symbol without prefix. If found, set its type to
2816 'mst_solib_trampoline'.
2820 * NEWS: Mention "set print raw frame-arguments".
2821 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2822 * stack.c (print_raw_frame_arguments): New static global.
2823 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2824 (_initialize_stack): New command "set/show print raw frame-arguments".
2825 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2826 (set_print_raw, show_print_raw): New functions.
2827 (_initialize_valprint): New prefix command "set/show print raw".
2828 * valprint.h (value_print_options): Improve comments.
2830 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2831 of all *list variables.
2833 * gdbcmd.h (togglelist): Delete.
2834 * cli/cli-cmds.c (togglelist): Delete.
2835 (init_cmd_lists): Update.
2836 * cli/cli-cmds.h (togglelist): Delete.
2840 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2845 * nto-tdep.c (nto_relocate_section_addresses): Update,
2846 target_section.bfd deleted.
2847 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2848 * s390-tdep.c (s390_load): Ditto.
2849 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2853 * common/format.c (parse_format_string): Add checks for NULL
2854 character before calling strchr.
2858 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2859 temp_pathname argument.
2860 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2861 when opening the file fails.
2863 * target.h (struct target_section): Delete member bfd.
2864 All users updated to use the_bfd_section->owner instead.
2865 * exec.c (add_to_section_table): Assert bfd is expected value.
2866 Remove initialization of target_section.bfd.
2867 (remove_target_sections): Update.
2868 (section_table_available_memory): Update.
2869 (section_table_xfer_memory_partial): Update.
2870 (print_section_info): Update.
2871 (exec_set_section_address): Update.
2872 * record-full.c (record_full_core_xfer_partial): Update.
2873 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2874 * solib-target.c (solib_target_relocate_section_addresses): Update.
2875 * symfile.c (build_section_addr_info_from_section_table): Update.
2876 * target.c (memory_xfer_live_readonly_partial): Update.
2877 (memory_xfer_partial_1): Update.
2881 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2882 now available for embedded (BookE) and server (BookS) processors,
2883 correct mentions of 'booke' and adjust comments accordingly in order to
2884 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2885 (have_ptrace_booke_interface): Rename function and variable
2886 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2887 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2888 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2889 'hwdebug_point_cmp'. Update all uses.
2890 (booke_find_thread_points_by_tid): Rename function
2891 'booke_find_thread_points_by_tid' to
2892 'hwdebug_find_thread_points_by_tid'. Update all uses.
2893 (booke_insert_point): Rename function 'booke_insert_point' to
2894 'hwdebug_insert_point'. Update all uses.
2895 (booke_remove_point): Rename function 'booke_remove_point' to
2896 'hwdebug_remove_point'. Update all uses.
2900 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2901 numbers with enum values.
2906 * thread.c (thread_apply_all_command): Check for valid threads
2908 (thread_array_cleanup): New struct.
2909 (set_thread_refcount): New function.
2913 * infcmd.c (default_print_one_register_info): Reuse function
2918 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2919 (ada-exp.o): New target.
2923 * mt-tdep.c (mt_registers_info): Call
2924 get_no_prettyformat_print_options instead of
2925 get_raw_print_options (regression by last patch from Doug
2931 * ada-lang.c (coerce_unspec_val_to_type): Use
2932 value_optimized_out_const.
2933 * value.c (value_optimized_out_const): New function.
2934 * value.h (value_optimized_out_const): New declaration.
2938 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2939 Enum values rename as well. All uses updated.
2940 * valprint.h (value_print_options): Rename member pretty to
2941 pretty format. Rename member prettyprint_arrays to
2942 prettyformat_arrays. Rename member prettyprint_structs to
2943 prettyformat_structs. All uses updated.
2944 (get_no_prettyformat_print_options): Renamed from
2945 get_raw_print_options.
2946 * valprint.c (get_no_prettyformat_print_options): Renamed from
2947 get_raw_print_options. All callers updated.
2948 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2949 All callers updated.
2950 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2951 All callers updated.
2952 (_initialize_valprint): Improve help text for "set print pretty" and
2957 * value.c (value_bits_valid): Revert previous change, and change
2958 by Pedro on 2013-07-04, due to regressions in
2959 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2964 * value.c (value_bits_valid): If the value is not lval_computed
2965 or has no check validity handler then the answer is the
2966 optimized_out flag, otherwise defer to the handler.
2970 * top.c (print_gdb_configuration): Explain in output of
2971 --configuration what does "relocatable" mean.
2973 * main.c (print_gdb_help): Regroup options in the --help text.
2974 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2975 the relevant discussions.
2979 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2980 Remove parameter 'lsal'.
2981 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2982 to inner block. Caller update.
2983 (base_breakpoint_create_breakpoints_sal): Update.
2984 (bkpt_create_breakpoints_sal): Likewise.
2985 (tracepoint_create_breakpoints_sal): Likewise.
2986 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2987 element 0 of vector 'canonical->sals'.
2991 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2992 register number instead of the pseudo register one.
2993 (rs6000_dwarf2_reg_to_regnum): Likewise.
2997 * findvar.c (value_of_register): Use allocate_optimized_out_value
2998 if the register has been optimized out, instead of
2999 set_value_optimized_out.
3000 * frame-unwind.c (frame_unwind_got_optimized): Use
3001 allocate_optimized_out_value.
3005 * value.c (value_bits_valid): If the value is not lval_computed,
3006 or doesn't have a check_validity hook, assume the value is entirely
3011 * stack.c (read_frame_arg): No longer fetch lazy values.
3012 * value.c (value_optimized_out): If the value is not already
3013 marked optimized out, and is lazy then fetch it.
3014 (value_primitive_field): Move optimized out check to later in the
3015 function, after we have loaded any lazy values.
3016 (value_fetch_lazy): Use optimized out flag directly rather than
3017 calling optimized_out method.
3021 * valops.c: Don't include "user-regs.h".
3022 (value_fetch_lazy): Moved to value.c.
3023 * value.c: Include "user-regs.h".
3024 (value_fetch_lazy): Moved from valops.c.
3031 * common/create-version.sh: Update comments. Handle the case
3032 that TARGET_ALIAS is empty.
3036 * Makefile.in (config.status): Depend on development.sh.
3037 (aclocal_m4_deps): Add libmcheck.m4.
3038 * acinclude.m4: Include libmcheck.m4.
3039 * configure.ac: Source development.sh instead of setting
3040 'development' here. --enable-libmcheck/--disable-libmcheck code
3041 factored out to GDB_AC_LIBMCHECK. Run it.
3042 * development.sh: New file.
3043 * libmcheck.m4: New file.
3044 * configure: Regenerate.
3048 * contrib/ari/update-web-ari.sh: Update for version.in change.
3052 * common/ptid.h: Comment fixes.
3056 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3057 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3058 (dwarf2_read_index, create_all_comp_units): Update.
3062 * configure.ac (build_warnings): Add -Wold-style-definition.
3063 * configure: Rebuild.
3064 * machoread.c (_initialize_machoread): Use "(void)".
3065 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3070 * configure.ac (build_warnings): Add -Wold-style-declaration.
3071 * configure: Rebuild.
3072 * dsrec.c (make_srec): Use "static const", not "const static".
3073 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3075 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3076 Use "static const", not "const static".
3077 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3079 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3081 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3083 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3085 (v850_dbtrap_breakpoint_from_pc): Likewise.
3086 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3091 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3092 * configure: Rebuild.
3096 * defs.h: Include "pathmax.h".
3097 * utils.c: Don't include sys/param.h.
3098 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3099 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3100 instead of MAXPATHLEN.
3101 * solib-sunos.c: Don't include sys/param.h.
3102 * xcoffread.c: Don't include sys/param.h.
3103 * bsd-kvm.c: Don't include sys/param.h.
3104 * darwin-nat.c: Don't include sys/param.h.
3105 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3106 * darwin-nat-info.c: Don't include sys/param.h.
3107 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3109 * i386obsd-nat.c: Don't include sys/param.h.
3110 * inf-child.c: Don't include sys/param.h.
3111 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3112 * linux-fork.c: Don't include sys/param.h.
3113 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3114 * linux-nat.c: Don't include sys/param.h.
3115 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3116 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3117 * m68klinux-nat.c: Don't include sys/param.h.
3118 * nbsd-nat.c: Don't include sys/param.h.
3119 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3120 * ppc-linux-nat.c: Don't include sys/param.h.
3121 * rs6000-nat.c: Don't include sys/param.h.
3122 * spu-linux-nat.c. Don't include sys/param.h.
3123 * windows-nat.c: Don't include sys/param.h.
3124 * xtensa-linux-nat.c: Don't include sys/param.h.
3125 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3129 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3130 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3131 * gnulib/aclocal.m4: Regenerate.
3132 * gnulib/config.in: Regenerate.
3133 * gnulib/configure: Regenerate.
3134 * gnulib/import/pathmax.h: New file.
3135 * gnulib/import/Makefile.am: Regenerate.
3136 * gnulib/import/Makefile.in: Regenerate.
3137 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3138 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3139 * gnulib/import/m4/pathmax.m4: New file.
3143 * configure.ac (GDBINIT): Define, depending on host.
3144 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3145 * top.c (PATH_MAX): Delete fallback definition.
3146 (GDBINIT_FILENAME): Delete.
3147 (gdbinit): Reimplement as const char array set to the GDBINIT
3149 * top.h (gdbinit): Make const.
3150 * configure, config.in: Regenerate.
3154 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3155 * cli/cli-cmds.h (source_script): Likewise.
3156 * exceptions.c (catch_command_errors_const): New function.
3157 * exceptions.h (catch_command_errors_const): Declare.
3158 * main.c (get_init_files): Make parameters const, and adjust.
3159 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3160 'local_gdbinit' locals const. Adjust to use
3161 catch_command_errors_const.
3162 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3163 'local_gdbinit' locals const.
3167 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3168 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3169 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3174 Import the "unistd" gnulib module.
3175 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3176 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3177 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3178 import/m4/unistd_h.m4.
3179 * gnulib/aclocal.m4: Renenerate.
3180 * gnulib/config.in: Renenerate.
3181 * gnulib/configure: Renenerate.
3182 * gnulib/import/Makefile.am: Renenerate.
3183 * gnulib/import/Makefile.in: Renenerate.
3184 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3185 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3186 * gnulib/import/m4/off_t.m4: New file.
3187 * gnulib/import/m4/ssize_t.m4: New file.
3188 * gnulib/import/m4/sys_types_h.m4: New file.
3189 * gnulib/import/m4/unistd_h.m4: New file.
3190 * gnulib/import/sys_types.in.h: New file.
3191 * gnulib/import/unistd.c: New file.
3192 * gnulib/import/unistd.in.h: New file.
3196 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3197 defined instead of checking HAVE_UNISTD_H.
3201 Reimport gnulib from scratch.
3202 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3203 import/m4/onceonly.m4.
3204 * gnulib/aclocal.m4: Renegerate.
3205 * gnulib/config.in: Renegerate.
3206 * gnulib/configure: Renegerate.
3207 * gnulib/import/Makefile.in: Renegerate.
3208 * gnulib/import/extra/update-copyright: Renegerate.
3209 * gnulib/import/m4/onceonly.m4: Delete.
3213 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3218 * remote.c (async_remote_interrupt_twice): Make it static.
3219 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3223 * ia64-linux-tdep.c: Include <ctype.h>.
3224 (ia64_linux_stap_is_single_operand): New function.
3225 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3229 * Makefile.in (version.c): Use version.in, not
3231 * common/create-version.sh: Likewise.
3232 * common/version.in: Move...
3233 * version.in: ...here.
3237 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3239 * utils.h (pagination_enabled): Declare.
3243 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3244 Move higher up in file.
3248 * tracepoint.c (deprecated_readline_begin_hook)
3249 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3255 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3256 checking if they're available.
3257 * value.c (value_available_contents_eq): Change comment.
3258 * value.h (value_available_contents_eq): Expand comment.
3262 * target.c (find_run_target): Remove.
3263 * target.h (find_run_target): Remove.
3267 * corelow.c (core_gdbarch): Now static.
3271 * target.c (target_struct_index): Remove.
3275 * infrun.c: Remove comment describing the 'stepping over runtime
3276 loader dynamic symbol resolution code' mechanism; moved to
3281 * exceptions.c (catch_command_errors): Remove spurious space.
3282 * exceptions.h (catch_command_errors): Second parameter is "arg",
3287 * common/create-version.sh: Update comments. Handle the case
3288 that TARGET_ALIAS is empty.
3292 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3297 * infrun.c: Update comments on stepping over runtime loader
3298 dynamic symbol resolution code.
3302 * ax-gdb.h (union exp_element): Forward declare.
3303 * parser-defs.h: Include expression.h.
3307 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3311 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3315 Fix trace-status to output proper start-time and stop-time.
3316 * tracepoint.c (trace_status_command): Fix type of printf arg to
3317 prevent improper type conversion.
3318 (trace_status_mi): Likewise.
3322 * mips-tdep.c (mips_next_pc): Fix a typo.
3326 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3331 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3332 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3333 * mi/mi-main.c (print_variable_or_computed): New function.
3334 (mi_cmd_trace_frame_collected): New function.
3335 * tracepoint.c (find_trace_state_variable_by_number): New.
3336 (struct traceframe_info): Move to tracepoint.h
3337 (struct collection_list): Likewise.
3338 (do_collect_symbol): Include locals and arguments in the
3339 collected variables list.
3340 (clear_collection_list): Clear wholly collected variables list
3341 and computed variables list.
3342 (append_exp): New function.
3343 (encode_actions_1): Include variables in the wholly
3344 collected variables list. Include memory ranges and
3345 full-fledged expressions in the computed expressions list.
3346 (encode_actions): Move some code to ...
3347 Return the cleanup chain.
3348 (encode_actions_rsp): ... here. New function.
3349 (get_traceframe_location, get_traceframe_info): Remove static.
3350 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3351 (struct collection_list): Moved from tracepoint.c. Add two
3352 new fields 'wholly_collected' and 'computed'.
3353 (find_trace_state_variable_by_number): Declare.
3354 (encode_actions): Adjust declaration.
3355 (encode_actions_rsp): Declare.
3356 (get_traceframe_info, get_traceframe_location): Declare.
3358 * NEWS: Mention new MI command -trace-frame-collected.
3363 * ctf.c (ctf_traceframe_info): Push trace state variables
3364 present in the trace data into the traceframe info object.
3365 * breakpoint.c (DEF_VEC_I): Remove.
3366 * common/filestuff.c (DEF_VEC_I): Likewise.
3367 * dwarf2loc.c (DEF_VEC_I): Likewise.
3368 * mi/mi-main.c (DEF_VEC_I): Likewise.
3369 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3370 * features/traceframe-info.dtd: Add tvar element and its
3372 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3373 (build_traceframe_info): Push trace state variables present in
3374 the trace data into the traceframe info object.
3375 (traceframe_info_start_tvar): New function.
3376 (tvar_attributes): New.
3377 (traceframe_info_children): Add "tvar" element.
3378 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3380 * NEWS: Mention the change in GDB and GDBserver.
3385 * tracepoint.c (trace_dump_command): Move code to ...
3386 (get_traceframe_location): ... here. New.
3391 * tracepoint.c (trace_dump_command): GDB emits an error
3392 instead of a warning when a traceframe is not selected.
3397 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3398 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3400 (do_clear_collection_list, init_collection_list): New.
3401 (encode_actions): Add local variables 'tracepoint_list' and
3402 'stepping_list'. Call init_collection_list and make cleanup
3403 which calls do_clear_collection_list. Don't call
3404 clear_collection_list.
3405 (_initialize_tracepoint): Delete references to
3406 'tracepoint_list' and 'stepping_list'.
3410 * common/create-version.sh (date): Use "$", not "$$" in sed
3415 * NEWS (New targets): Add entry for TI MSP430.
3419 * remote.c (remote_start_remote): Move code to upload tsv
3426 PR breakpoints/15075
3427 PR breakpoints/15434
3428 * breakpoint.c (bpstat_stop_status): Call
3429 b->ops->after_condition_true.
3430 (update_dprintf_command_list): Don't append "continue" command
3431 to the command list of dprintf breakpoint.
3432 (base_breakpoint_after_condition_true): New function.
3433 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3434 (dprintf_after_condition_true): New function.
3435 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3436 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3440 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3441 (ALLDEPFILES): Add msp430-tdep.c.
3442 * configure.tgt (msp430*-*-elf): New target.
3443 * msp430-tdep.c: New file.
3447 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3448 microMIPS synthetic symbols.
3452 * objfiles.h (pc_in_section): New prototype.
3453 (in_plt_section): Remove name argument, replace prototype with
3454 static inline function.
3455 * mips-tdep.h: Include "objfiles.h".
3456 (in_mips_stubs_section): New function.
3457 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3458 in_solib_call_trampoline member.
3459 (hppa_in_solib_call_trampoline): Remove name argument.
3460 * objfiles.c (pc_in_section): New function.
3461 (in_plt_section): Remove function.
3462 * mips-linux-tdep.c: Include "objfiles.h".
3463 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3464 name argument. Return 1 rather than the low 16-bit halfword of
3465 any instruction examined.
3466 (mips_linux_in_dynsym_resolve_code): Update
3467 mips_linux_in_dynsym_stub call accordingly.
3468 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3469 rather than an equivalent hand-coded sequence.
3470 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3471 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3472 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3473 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3475 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3476 on call to tdep->in_solib_call_trampoline.
3477 (hppa_in_solib_call_trampoline): Remove name argument, update
3478 according to in_plt_section change.
3479 (hppa_skip_trampoline_code): Update according to in_plt_section
3481 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3482 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3484 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3485 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3486 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3487 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3488 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3489 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3490 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3491 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3492 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3493 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3494 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3495 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3496 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3500 * common/create-version.sh: Fix expansion of $host_alias
3501 and $target_alias in generation of HOST_NAME and TARGET_NAME
3506 * common/create-version.sh: New file.
3507 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3509 (HFILES_NO_SRCDIR): Use common/version.h.
3510 * version.in: Move to ...
3511 * common/version.in: ... here. Replace date with "DATE".
3512 * version.h: Move to ...
3513 * common/version.h: ... here.
3517 * gdb/gnulib/Makefile.in: Update date in copyright header.
3518 * gdb/gnulib/configure.ac: Ditto.
3519 * gdb/gnulib/update-gnulib.sh: Ditto.
3523 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3524 "gdb/gnulib/import".
3528 * doublest.c (ldfrexp): Remove function.
3529 (convert_doublest_to_floatformat): Call frexpl instead of
3534 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3535 * gnulib/aclocal.m4: Regenerate.
3536 * gnulib/config.in: Regenerate.
3537 * gnulib/configure: Regenerate.
3538 * gnulib/import/Makefile.am: Update.
3539 * gnulib/import/Makefile.in: Update.
3540 * gnulib/import/m4/gnulib-cache.m4: Update.
3541 * gnulib/import/m4/gnulib-comp.m4: Update.
3542 * gnulib/import/float+.h: Import.
3543 * gnulib/import/float.c: Import.
3544 * gnulib/import/float.in.h: Import.
3545 * gnulib/import/fpucw.h: Import.
3546 * gnulib/import/frexp.c: Import.
3547 * gnulib/import/frexpl.c: Import.
3548 * gnulib/import/isnan.c: Import.
3549 * gnulib/import/isnand-nolibm.h: Import.
3550 * gnulib/import/isnand.c: Import.
3551 * gnulib/import/isnanl-nolibm.h: Import.
3552 * gnulib/import/isnanl.c: Import.
3553 * gnulib/import/itold.c: Import.
3554 * gnulib/import/m4/exponentd.m4: Import.
3555 * gnulib/import/m4/exponentl.m4: Import.
3556 * gnulib/import/m4/float_h.m4: Import.
3557 * gnulib/import/m4/fpieee.m4: Import.
3558 * gnulib/import/m4/frexp.m4: Import.
3559 * gnulib/import/m4/frexpl.m4: Import.
3560 * gnulib/import/m4/isnand.m4: Import.
3561 * gnulib/import/m4/isnanl.m4: Import.
3562 * gnulib/import/m4/math_h.m4: Import.
3563 * gnulib/import/math.c: Import.
3564 * gnulib/import/math.in.h: Import.
3568 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3569 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3570 signature_INTEL_edx comparisons.
3575 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3576 All callers updated.
3577 (open_dwp_file): If we can't find the dwp file, search the basename
3578 in debug-file-directory.
3580 * dwarf2read.c (struct dwp_file): Fix comment.
3581 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3583 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3588 * breakpoint.c (create_breakpoint): Fix code indentation.
3592 * breakpoint.c (create_breakpoints_sal_default): Remove
3593 parameter 'lsal'. Update declaration.
3594 (bkpt_create_breakpoints_sal): Caller update.
3595 (tracepoint_create_breakpoints_sal): Likewise.
3600 * NEWS: Mention the new option '--skip-unavailable' of command
3601 -data-list-register-values.
3602 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3603 --skip-unavailable option. Adjust to use output_register.
3604 (output_register): Add new 'skip_unavailable' parameter.
3609 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3610 common/i386-gcc-cpuid.h.
3611 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3612 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3613 Copy the latest version from upstream gcc.
3614 * common/linux-btrace.c: Include i386-cpuid.h.
3615 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3617 (cpu_supports_btrace): Likewise.
3618 * go32-nat.c: Include i386-cpuid.h.
3619 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3623 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3624 (get_section_index): Ditto.
3628 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3633 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3635 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3636 Move test of cu_index closer to use. Print complaint if cu_index
3641 * machoread.c (oso_vector): Delete this global.
3642 (macho_register_oso): Add new parameter "oso_vector_ptr".
3643 Use it instead of the "oso_vector" global.
3644 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3645 (macho_symfile_read): Use a local oso_vector, to be free'ed
3646 at the end of this function, in place of the old "oso_vector"
3647 global. Update various function calls accordingly. Use one
3648 single cleanup chain for the entire function.
3652 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3653 DWARF2_PER_OBJFILE by uses of DATA instead.
3657 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3659 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3660 Special case signals other than GDB_SIGNAL_TRAP.
3661 (explains_signal_watchpoint): New function.
3662 (base_breakpoint_explains_signal): Add 'sig' argument.
3663 (initialize_breakpoint_ops): Set 'explains_signal' method for
3665 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3667 (bpstat_explains_signal): Likewise.
3668 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3672 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3676 * python/python.c (finish_python_initialization): Decref
3677 'pythondir' on failure path as well.
3682 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3683 after taking bits_to_skip into account. Sign extend byte_offset.
3684 * utils.h (gdb_sign_extend): Declare.
3685 * utils.c (gdb_sign_extend): New function.
3689 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3693 * corelow.c (core_open): Print GDB signal name instead of target
3698 * .gitignore: Add /gcore.
3702 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3703 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3707 * stack.c (backtrace_command_1): Fix indentation.
3711 * window-nat.c (thread_rec): Add missing empty line after
3712 local variable declaration.
3716 * windows-nat.c (thread_rec): Revert format used to print
3717 error code returned by SuspendThread from %d back to %u.
3721 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3723 (get_windows_debug_event): Likewise, for all debug traces.
3727 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3733 * mi/mi-main.c (get_register): Remove declaration.
3734 (output_register): Declare.
3735 (mi_cmd_data_list_register_values): Remove local variable
3736 'tuple_cleanup'. Move some code into output_register.
3737 (get_register): Renamed to ...
3738 (output_register): ... this. Output the register's
3739 "number" ui_out tuple here.
3743 * darwin-nat.c: Fix formating in copyright header.
3744 * darwin-nat.h: Likewise.
3745 * gnu-nat.c: Likewise.
3746 * machoread.c: Likewise.
3751 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3752 static. Output a global target description pointer.
3753 (init_registers_${name}): Adjust to initialize a
3754 target description structure.
3758 * printcmd.c (build_address_symbolic): Call
3759 gdbarch_addr_bits_remove for text minimal symbols.
3763 * MAINTAINERS: Add myself to Write After Approval.
3767 * tracepoint.c (start_tracing): Move code to ...
3768 (trace_reset_local_state): ... here. New.
3769 (disconnect_tracing): Don't call set_current_traceframe,
3770 set_tracepoint_num, and set_traceframe_context. Call
3771 trace_reset_local_state instead.
3772 (tfile_close): Call trace_reset_local_state.
3773 * ctf.c (ctf_close): Likewise.
3774 * remote.c (remote_close): Likewise.
3775 * tracepoint.h (trace_reset_local_state): Declare.
3779 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3780 and fix header docs.
3786 * cp-namespace.c (find_symbol_in_baseclass): Call
3787 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3788 Check result of call to lookup_symbol_static.
3789 Call lookup_static_symbol_aux unconditionally.
3790 Call check_typedef on base types before accessing them.
3791 (cp_lookup_nested_symbol): Fix comment.
3795 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3796 minimal symbols pointing to function descriptors.
3800 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3805 * remote.c (remote_wait_as): Restore signal handler before returning
3806 when GDB gets a notification.
3811 * breakpoint.h (handle_solib_event): Moved function declaration
3813 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3814 (bpstat_stop_status): Pass new argument to handle_solib_event.
3815 * solib.h (update_solib_breakpoints): New function declaration.
3816 (handle_solib_event): Moved function declaration from
3818 * solib.c (update_solib_breakpoints): New function.
3819 (handle_solib_event): Moved function from breakpoint.c.
3820 Updated to call solib_ops->handle_event if not NULL.
3821 * solist.h (target_so_ops): New fields "update_breakpoints" and
3823 * infrun.c (set_stop_on_solib_events): New function.
3824 (_initialize_infrun): Use the above for "set
3825 stop-on-solib-events".
3826 (handle_inferior_event): Pass new argument to handle_solib_event.
3827 * solib-svr4.c (probe.h): New include.
3828 (svr4_free_library_list): New forward declaration.
3829 (probe_action): New enum.
3830 (probe_info): New struct.
3831 (probe_info): New static variable.
3832 (NUM_PROBES): New definition.
3833 (svr4_info): New fields "using_xfer", "probes_table" and
3835 (free_probes_table): New function.
3836 (free_solib_list): New function.
3837 (svr4_pspace_data_cleanup): Free probes table and solib list.
3838 (svr4_copy_library_list): New function.
3839 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3840 (svr4_read_so_list): New parameter "prev_lm".
3841 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3842 (svr4_current_sos): New function.
3843 (probe_and_action): New struct.
3844 (hash_probe_and_action): New function.
3845 (equal_probe_and_action): Likewise.
3846 (register_solib_event_probe): Likewise.
3847 (solib_event_probe_at): Likewise.
3848 (solib_event_probe_action): Likewise.
3849 (solist_update_full): Likewise.
3850 (solist_update_incremental): Likewise.
3851 (disable_probes_interface_cleanup): Likewise.
3852 (svr4_handle_solib_event): Likewise.
3853 (svr4_update_solib_event_breakpoint): Likewise.
3854 (svr4_update_solib_event_breakpoints): Likewise.
3855 (svr4_create_solib_event_breakpoints): Likewise.
3856 (enable_break): Free probes table before creating breakpoints.
3857 Use svr4_create_solib_event_breakpoints to create breakpoints.
3858 (svr4_solib_create_inferior_hook): Free the solib list.
3859 (_initialize_svr4_solib): Initialise
3860 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3864 * target.h (target_ops): New field
3865 "to_augmented_libraries_svr4_read".
3866 (target_augmented_libraries_svr4_read): New macro.
3867 * target.c (update_current_target): Handle
3868 to_augmented_libraries_svr4_read.
3869 * remote.c (remote_state): New field
3870 "augmented_libraries_svr4_read".
3871 (remote_augmented_libraries_svr4_read_feature): New function.
3872 (remote_protocol_features): Add entry for
3873 "augmented-libraries-svr4-read".
3874 (remote_augmented_libraries_svr4_read): New function.
3875 (init_remote_ops): Initialize
3876 remote_ops.to_augmented_libraries_svr4_read.
3884 * objfiles.h (inhibit_section_map_updates): New function
3886 (resume_section_map_updates): Likewise.
3887 (resume_section_map_updates_cleanup): Likewise.
3888 * objfiles.c (objfile_pspace_info): Removed field
3889 "objfiles_changed_p". New fields "new_objfiles_available",
3890 "section_map_dirty" and "inhibit_updates".
3891 (allocate_objfile): Set new_objfiles_available.
3892 (free_objfile): Set section_map_dirty.
3893 (objfile_relocate1): Likewise.
3894 (in_plt_section): Likewise.
3895 (find_pc_section): Update the conditions under which the
3896 section map will be updated.
3897 (inhibit_section_map_updates): New function.
3898 (resume_section_map_updates): Likewise.
3899 (resume_section_map_updates_cleanup): Likewise.
3903 * probe.h (get_probe_argument_count): New declaration.
3904 (evaluate_probe_argument): Likewise.
3905 * probe.c (get_probe_argument_count): New function.
3906 (evaluate_probe_argument): Likewise.
3907 (probe_safe_evaluate_at_pc): Use the above new functions.
3911 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3912 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3913 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3914 target mem reads on optional insns.
3915 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3916 ppc_insns_match_pattern calls.
3917 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3918 Add match for power7 thread safety insns, and new order of
3919 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3920 invocation in comment, and update rest of comment.
3921 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3922 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3923 (ppc64_standard_linkage2_target): Update insn offsets.
3924 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3925 stubs first. Update calls.
3929 * solib.c (solib_find): Don't need dir separator if path has
3934 Revert (indirectly causes a SIGSEGV):
3935 * machoread.c (macho_symfile_read): Assign first cleanup to
3940 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3941 mi-parse.c. Make them static.
3942 (mi_all_values): Likewise.
3943 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3944 mi_parse_print_values. Make it external.
3945 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3946 Remove the declarations.
3947 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3948 * mi/mi-parse.h (mi_parse_print_values): Declare.
3949 * mi/mi-cmd-stack.c: Include mi-parse.h.
3950 (parse_print_values): Remove
3951 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3952 of parse_print_values.
3953 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3958 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3959 (encode_actions): Move code to ...
3960 (all_tracepoint_actions_and_cleanup): ... here. New.
3961 (trace_dump_command): Likewise.
3965 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3969 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3970 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3971 'old_chain' argument. Add 'parser_result' argument.
3972 (gdb_xml_create_parser_and_cleanup): Remove old version.
3973 (gdb_xml_parse_quick): Update.
3974 (xml_process_xincludes): Update.
3975 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3980 * probe.c (collect_probes): Check arguments for NULL before
3981 calling compile_rx_or_error.
3982 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3987 * infrun.c (adjust_pc_after_break): Introduce an outer null
3992 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3996 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3997 for 'old_chain'. Do not check 'head' before processing
4002 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4007 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4008 inner scope. Unconditionally call do_cleanups.
4012 * source.c (find_and_open_source): Call do_cleanups.
4016 * linux-thread-db.c (thread_db_load_search): Unconditionally
4021 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4022 for 'cleanup'; instead use a later one.
4026 * python/py-breakpoint.c (bppy_get_commands): Use
4027 explicit, unconditional return.
4028 * python/py-frame.c (frapy_read_var): Likewise.
4029 * python/python.c (gdbpy_decode_line): Likewise.
4033 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4034 do_cleanups on all return paths.
4038 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4042 * stabsread.c (read_struct_type): Call do_cleanups along
4047 * mips-linux-tdep.c: Adjust formatting throughout.
4051 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4052 along all return paths.
4056 * symfile.c (find_separate_debug_file): Call do_cleanups
4057 along all return paths.
4061 * symtab.c (search_symbols): Introduce a null cleanup for
4066 * python/py-value.c (valpy_binop): Call do_cleanups before
4071 * python/py-prettyprint.c (print_children): Remove extra
4076 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4081 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4082 along all return paths.
4086 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4091 * varobj.c (c_value_of_root): Call do_cleanups along all
4096 * tracepoint.c (trace_dump_command): Unconditionally call
4101 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4102 do_cleanups earlier.
4106 * machoread.c (macho_symfile_read): Assign first cleanup to
4111 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4115 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4119 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4120 call discard_cleanups.
4121 (inf_ptrace_attach): Likewise.
4125 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4127 (mips_initialize): Likewise.
4128 (common_open): Call do_cleanups.
4132 * utils.c (internal_vproblem): Call do_cleanups.
4136 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4140 * cli/cli-script.c (setup_user_args): Don't return after error.
4144 * somread.c (som_symtab_read): Call do_cleanups.
4148 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4152 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4153 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4154 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4155 * source.c (show_substitute_path_command): Call do_cleanups.
4156 (unset_substitute_path_command, set_substitute_path_command):
4158 * symfile.c (load_command): Call do_cleanups.
4162 * contrib/cleanup_check.py: New file.
4163 * contrib/gcc-with-excheck: Add option parsing.
4167 * windows-nat.c (windows_delete_thread): Add missing space
4172 * inferior.c (top level): Include tilde.h.
4173 (add_inferior_command): Call tilde_expand on the value of 'exec'
4179 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4181 (encode_actions): Likewise.
4182 * remote.c (remote_download_tracepoint): Caller update.
4183 * tracepoint.h (encode_actions): Update declaration.
4187 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4192 * remote.c (remote_check_symbols): Remove unused parameter
4195 (remote_start_remote, remote_new_objfile): Caller update.
4199 * mi/mi-cmds.c (mi_cmds): Define MI command
4200 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4205 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4206 (remote_insert_watchpoint, remote_remove_watchpoint)
4207 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4208 (remote_verify_memory, compare_sections_command)
4209 (remote_search_memory): Set the general process/thread on the
4214 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4215 (_initialize_aarch64_tdep): Don't call
4216 initialize_tdesc_aarch64_without_fpu.
4217 * features/Makefile (WHICH): Remove reference to
4218 aarch64-without-fpu.
4219 * features/aarch64-without-fpu.c: Delete file.
4220 * regformats/aarch64-without-fpu.dat: Delete file.
4224 * tracepoint.c (stringify_collection_list): Remove parameter
4226 (encode_actions): Caller update. Remove local variables.
4230 * tracepoint.c (TFILE_PID): Remove.
4231 (tfile_open): Don't add thread and inferior.
4232 (tfile_close): Don't set 'inferior_ptid'. Don't call
4233 exit_inferior_silent.
4234 (tfile_thread_alive): Remove.
4235 (init_tfile_ops): Don't set field 'to_thread_alive' of
4240 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4244 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4245 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4246 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4247 Only define if HAVE_SOCKETS is defined.
4248 * configure.ac: Check for sys/socket.h.
4249 * config.in, configure: Regenerate.
4253 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4254 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4255 printing uint32_t variables.
4259 * NEWS: Mention GDBserver range stepping support.
4264 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4266 * infcmd.c (step_once, until_next_command): Enable range stepping.
4267 * infrun.c (displaced_step_prepare): Disable range stepping.
4268 (resume): Disable range stepping if stepping over a breakpoint or
4269 we have software watchpoints. If range stepping is enabled,
4270 assert the thread is in the stepping range.
4271 (clear_proceed_status_thread): Clear may_range_step.
4272 (handle_inferior_event): Disable range stepping as soon as we know
4273 the thread that hit the event. Re-enable it whenever we're going
4274 to step with a step range.
4275 * remote.c (struct vCont_action_support) <r>: New field.
4276 (use_range_stepping): New global.
4277 (remote_vcont_probe): Handle 'r' action.
4278 (append_resumption): Append an 'r' action if the thread may range
4280 (show_range_stepping): New function.
4281 (set_range_stepping): New function.
4282 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4283 'set range-stepping' and 'show range-stepping' commands.
4284 * NEWS: Mention range stepping, the new vCont;r action, and the
4285 new "set/show range-stepping" commands.
4290 * remote.c (struct vCont_action_support): New struct.
4291 (struct remote_state) <support_vCont_t>: Remove field.
4292 <vCont_actions_support>: New field.
4293 (remote_vcont_probe, remote_stop_ns): Update.
4298 * gdbthread.h (pc_in_thread_step_range): New declaration.
4299 * thread.c (pc_in_thread_step_range): New function.
4300 * infrun.c (handle_inferior_event): Use it.
4304 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4309 * ada-lang.c (is_known_support_routine): Add explicit free of
4310 'func_name' from find_frame_funname.
4311 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4312 for func_name from find_frame_funname.
4313 * python/py-frame.c (frapy_name): Add explicit free of
4314 'name' from find_frame_funname.
4315 * stack.c (find_frame_funname): Add comment explaining that
4316 funcp must be freed by the caller.
4317 Return copy of symbol names instead of pointers.
4318 (print_frame): Add a cleanup for 'funname' from
4320 * stack.h (find_frame_funname): Remove "const" from
4321 'funname' parameter.
4326 * c-valprint.c (c_value_print): Use value_addr for
4327 references. Convert back to reference type with value_ref.
4331 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4332 unloaded DLL, it will be done by handle_solib_event. See
4333 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4338 * ui-out.c: Create typedef ui_out_level_p and define vector
4339 operations for that type.
4340 (struct ui_out): Use a vector instead of an array.
4341 (current_level): Return level from a vector.
4342 (push_level): Create a level in a vector.
4343 (pop_level): Delete a level in a vector.
4344 (ui_out_new): Create initial level zero level, and store in a
4346 (ui_out_destroy): Add vector cleanup.
4350 * python/python-internal.h (gdb_Py_DECREF): Tag with
4351 "ARI: editCase function".
4355 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4359 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4360 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4361 * python/py-utils.c (py_decref): Don't check for NULL before
4366 * python/py-utils.c (py_decref): Remove extra braces.
4367 (gdb_pymodule_addobject): Remove extra braces.
4368 * python-internal.h (gdb_Py_DECREF): New static inline function.
4369 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4373 * breakpoints.c (detach_breakpoints): Do not
4374 detach breakpoints locations with loc_type bp_loc_other.
4378 Workaround Python 2.6.
4379 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4384 Code cleanup: constification.
4385 * solib.c (solib_ops): Make return type and ops variable type const.
4386 (set_solib_ops): Make the new_ops parameter and ops variable const.
4387 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4388 (solib_add, solib_keep_data_in_core, clear_solib)
4389 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4390 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4392 * solib.h (set_solib_ops): Make the new_ops parameter const.
4396 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4398 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4399 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4400 (SYSTEM_GDBINIT_FILES): New variables.
4401 (all): Add stamp-system-gdbinit.
4402 (stamp-system-gdbinit): New rule.
4403 (clean-system-gdbinit, install-system-gdbinit)
4404 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4405 (install-only): Add dependency on install-system-gdbinit.
4406 (uninstall): Add dependency on uninstall-system-gdbinit.
4407 (clean): Add dependency on clean-system-gdbinit.
4408 * system-gdbinit/elinos.py: New file.
4409 * system-gdbinit/wrs-linux.py: New file.
4413 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4417 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4418 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4419 * mi/mi-cmd-break.c (ctype.h): New include.
4420 (gdb_obstack.h): New include.
4421 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4422 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4423 (mi_cmd_dprintf_insert): New.
4424 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4425 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4429 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4433 * python/py-value.c (valpy_get_dynamic_type): Simplify
4434 dynamic_type assignment. Use Py_XINCREF.
4438 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4442 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4443 (gdbpy_selected_frame): Move object-construction code
4448 * python/py-arch.c (gdbpy_initialize_arch): Use
4449 gdb_pymodule_addobject.
4450 * python/py-block.c (gdbpy_initialize_blocks): Use
4451 gdb_pymodule_addobject.
4452 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4453 gdb_pymodule_addobject.
4454 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4455 gdb_pymodule_addobject.
4456 * python/py-event.c (gdbpy_initialize_event_generic): Use
4457 gdb_pymodule_addobject.
4458 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4459 gdb_pymodule_addobject.
4460 * python/py-evts.c (add_new_registry): Use
4461 gdb_pymodule_addobject.
4462 (gdbpy_initialize_py_events): Likewise.
4463 * python/py-finishbreakpoint.c
4464 (gdbpy_initialize_finishbreakpoints): Use
4465 gdb_pymodule_addobject.
4466 * python/py-frame.c (gdbpy_initialize_frames): Use
4467 gdb_pymodule_addobject.
4468 * python/py-function.c (gdbpy_initialize_functions): Use
4469 gdb_pymodule_addobject.
4470 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4471 gdb_pymodule_addobject.
4472 * python/py-infthread.c (gdbpy_initialize_thread): Use
4473 gdb_pymodule_addobject.
4474 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4475 gdb_pymodule_addobject.
4476 * python/py-param.c (gdbpy_initialize_parameters): Use
4477 gdb_pymodule_addobject.
4478 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4479 gdb_pymodule_addobject.
4480 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4481 gdb_pymodule_addobject.
4482 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4483 gdb_pymodule_addobject.
4484 * python/py-type.c (gdbpy_initialize_types): Use
4485 gdb_pymodule_addobject.
4486 * python/py-utils.c (gdb_pymodule_addobject): New function.
4487 * python/py-value.c (gdbpy_initialize_values): Use
4488 gdb_pymodule_addobject.
4489 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4490 * python/python.c (_initialize_python): Use
4491 gdb_pymodule_addobject.
4495 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4496 * python/py-param.c (get_set_value, get_show_value): Use
4498 * python/python.c (start_type_printers, apply_type_printers):
4499 Use explicit decrefs.
4503 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4508 * python/python.c (gdbpy_run_events): Decref the result
4509 of PyObject_CallObject.
4513 * python/py-symtab.c (set_sal): Use
4514 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4515 (symtab_and_line_to_sal_object): Update.
4519 * python/py-param.c (compute_enum_values): Decref 'item'.
4523 * mi/mi-main.c: Include python-internal.h.
4524 (mi_cmd_list_features): Check gdb_python_initialized.
4525 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4526 (python_inferior_exit, python_new_objfile, add_thread_object)
4527 (delete_thread_object, py_free_inferior): Check
4528 gdb_python_initialized.
4529 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4530 gdb_python_initialized.
4531 * python/py-type.c (save_objfile_types): Check
4532 gdb_python_initialized.
4533 * python/python-internal.h (gdb_python_initialized): Declare.
4534 * python/python.c (ensure_python_env): Throw exception if
4535 Python not initialized.
4536 (before_prompt_hook, source_python_script_for_objfile)
4537 (start_type_printers, apply_type_printers,
4538 free_type_printers): Check gdb_python_initialized.
4539 * varobj.c (varobj_get_display_hint)
4540 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4541 (install_new_value_visualizer, varobj_set_visualizer)
4542 (value_get_print_value): Check gdb_python_initialized.
4546 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4548 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4549 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4551 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4553 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4555 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4557 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4558 init function to return 'int'.
4559 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4560 Return 'int'. Check errors.
4561 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4563 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4564 Return 'int'. Check errors.
4565 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4567 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4569 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4571 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4573 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4575 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4577 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4579 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4581 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4583 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4585 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4587 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4589 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4591 * python/python-internal.h (gdbpy_initialize_auto_load,
4592 gdbpy_initialize_values, gdbpy_initialize_frames,
4593 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4594 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4595 gdbpy_initialize_blocks, gdbpy_initialize_types,
4596 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4597 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4598 gdbpy_initialize_finishbreakpoints,
4599 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4600 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4601 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4602 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4603 gdbpy_initialize_signal_event,
4604 gdbpy_initialize_breakpoint_event,
4605 gdbpy_initialize_continue_event,
4606 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4607 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4608 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4609 * python/python.c (gdb_python_initialized): New global.
4610 (gdbpy_initialize_events): Return 'int'. Check errors.
4611 (_initialize_python): Check errors. Set
4612 gdb_python_initialized.
4616 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4617 Decref the reslut of PyObject_CallMethod.
4621 * python/py-event.c (gdbpy_initialize_event_generic): Return
4622 early if PyType_Ready fails.
4626 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4627 as 'default' in the switch.
4631 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4632 get_addr_from_python calls out of TRY_CATCH.
4633 (infpy_write_memory, infpy_search_memory): Likewise.
4634 * python/py-utils.c (get_addr_from_python): Return negative
4635 value on error. Use TRY_CATCH.
4636 * python/python-internal.h (get_addr_from_python): Use
4637 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4641 * python/py-event.c (evpy_emit_event): Decref the
4642 result of PyObject_CallFunctionObjArgs.
4646 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4651 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4655 * python/py-event.h (gdbpy_initialize_event_generic): Use
4656 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4657 * python/py-evts.c (add_new_registry): Use
4658 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4659 * python/python-internal.h
4660 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4664 * python/py-arch.c (archpy_disassemble): Update.
4665 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4666 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4667 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4668 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4670 (GDB_PY_HANDLE_EXCEPTION): Update.
4671 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4675 * python/python-internal.h (events_object_type): Remove.
4679 * python/py-event.h (evpy_emit_event): Use
4680 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4681 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4686 * py-evtregistry.c (create_event_object): Decref
4687 eventregistry_object if PyList_New fails.
4691 * py-cmd.c (gdbpy_string_to_argv): Check result of
4696 * python/python.c (before_prompt_hook): Add cleanup to
4701 * python/py-function.c (fnpy_init): Decref result of
4702 PyObject_GetAttrString.
4706 * python/py-threadevent.c (get_event_thread): Use
4707 CPYCHECKER_RETURNS_BORROWED_REF.
4708 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4710 (pspace_to_pspace_object, objfile_to_objfile_object)
4711 (find_thread_object): Use it.
4715 * python/py-arch.c (arch_object_type): Use
4716 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4717 * python/py-block.c (block_syms_iterator_object_type):
4718 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4719 * python/py-bpevent.c (breakpoint_event_object_type):
4720 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4721 * python/py-cmd.c (cmdpy_object_type): Use
4722 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4723 * python/py-continueevent.c (continue_event_object_type):
4724 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4725 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4726 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4727 * python/py-events.h (thread_event_object_type):
4728 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4729 * python/py-evtregistry.c (eventregistry_object_type): Use
4730 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4731 * python/py-exitedevent.c (exited_event_object_type):
4732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4733 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4735 * python/py-function.c (fnpy_object_type): Use
4736 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4737 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4739 * python/py-infthread.c (thread_object_type): Use
4740 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4741 * python/py-lazy-string.c (lazy_string_object_type):
4742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4743 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4744 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4745 * python/py-objfile.c (objfile_object_type): Use
4746 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4747 * python/py-param.c (parmpy_object_type):
4748 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4749 * python/py-progspace.c (pspace_object_type):
4750 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4751 * python/py-signalevent.c (signal_event_object_type):
4752 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4753 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4754 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4755 * python/py-type.c (type_object_type, field_object_type)
4756 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4757 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4759 (value_object_type, block_object_type, symbol_object_type)
4760 (event_object_type, stop_event_object_type, breakpoint_object_type)
4761 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4765 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4766 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4770 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4772 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4773 reading_dwo_directly.
4774 (struct signatured_type): New member dwo_unit.
4775 (struct die_reader_specs): New member comp_dir.
4776 (create_signatured_type_table_from_index): Use malloc for
4777 all_type_units instead of objfile's obstack.
4778 (create_all_type_units): Ditto.
4779 (fill_in_sig_entry_from_dwo_entry): New function.
4780 (add_type_unit): New function.
4781 (lookup_dwo_signatured_type): New function.
4782 (lookup_dwp_signatured_type): New function.
4783 (lookup_signatured_type): New arg cu. All callers updated.
4784 (init_cu_die_reader): Initialize comp_dir.
4785 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4786 Change assert of matching type signatures to call error on mismatch.
4787 (lookup_dwo_unit): Add assert.
4788 (init_tu_and_read_dwo_dies): New function.
4789 (init_cutu_and_read_dies): Call it.
4790 (build_type_unit_groups): Handle case of no type unit groups created.
4791 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4792 (lookup_dwo_cutu): Tweak complaint.
4793 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4794 (dwarf2_per_objfile_free): Free all_type_units.
4798 * windows-nat.c (handle_unload_dll): Add missing empty line.
4802 * dwarf2read.c (prototyped_function_p): New function.
4803 (read_subroutine_type): Use it.
4807 * rs6000-aix-tdep.c: De-indent some example code provided
4812 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4813 region is ok for a hardware watchpoint using the new ptrace interface
4818 * NEWS: Mention new maintenance commands check-symtabs, and
4819 expand-symtabs, and renamed check-psymtabs.
4820 * psymtab.c (maintenance_check_psymtabs): Renamed from
4821 maintenance_check_symtabs. Only process already-expanded symbol
4823 (_initialize_psymtab): Update.
4824 * symmisc.c (maintenance_check_symtabs): New function.
4825 (maintenance_expand_name_matcher): New function
4826 (maintenance_expand_file_matcher): New function
4827 (maintenance_expand_symtabs): New function.
4828 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4833 * python/py-inferior.c (infpy_read_memory): Don't call
4834 PyErr_SetString if PyObject_New fails.
4835 * python/py-frame.c (frame_info_to_frame_object): Don't call
4836 PyErr_SetString if PyObject_New fails.
4840 * acinclude.m4: Add check for dlopen in libdl.
4841 * configure.ac: Ditto.
4842 * configure: Regenerate.
4846 * frame.c (frame_stash): Convert to htab.
4847 (frame_addr_hash): New function.
4848 (frame_addr_hash_eq): New function.
4849 (frame_stash_create): Convert function to create
4851 (frame_stash_add): Convert function to add an entry to a hash
4853 (frame_stash_find): Convert function to search the hash table.
4854 (frame_stash_invalidate): Convert function to empty the hash
4856 (get_frame_id): Only add to stash if a frame_id is created.
4857 (_initialize_frame): Call frame_stash_create.
4861 * configure.ac: Ensure MIG is available when building for GNU Hurd
4863 * configure: Regenerate.
4867 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4871 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4872 all cleanups are done before returning from this function.
4876 * utils.h: #include "exceptions.h".
4877 (enum errors): Remove partial declaration.
4881 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4882 * gdbarch.h, gdbarch.c: Regenerate.
4883 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4886 * rs6000-aix-tdep.h: New file.
4887 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4888 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4890 (struct field_info, struct ld_info_desc): New types.
4891 (ld_info32_desc, ld_info64_desc): New static constants.
4892 (struct ld_info): New type.
4893 (rs6000_aix_extract_ld_info): New function.
4894 (rs6000_aix_shared_library_to_xml): Likewise.
4895 (rs6000_aix_ld_info_to_xml): Likewise.
4896 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4897 (rs6000_aix_init_osabi): Add call to
4898 set_gdbarch_core_xfer_shared_libraries_aix.
4899 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4900 Remove "xml-utils.h" include.
4901 (LdInfo): Delete typedef.
4902 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4904 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4905 Adjust code accordingly.
4906 (rs6000_core_ldinfo): Delete, folded into
4907 rs6000_aix_core_xfer_shared_libraries_aix.
4908 (rs6000_xfer_shared_library): Delete.
4909 (rs6000_xfer_shared_libraries): Reimplement.
4913 * record.c (record_goto_cmdlist): New.
4914 (cmd_record_goto): Split into this ...
4915 (cmd_record_goto_begin): ... this
4916 (cmd_record_goto_end): ... and this.
4917 (_initialize_record): Change "record goto" to prefix command.
4918 Add commands for "record goto begin" and "record goto end".
4919 Add an alias for "record goto start" to "record goto begin".
4923 * linespec.c (convert_linespec_to_sals): New comment for
4924 SOURCE_FILENAME assignment.
4928 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4933 * eval.c (parse_and_eval_long): Make 'exp' const.
4934 * value.h (parse_and_eval_long): Update.
4938 * ui-file.c (gdb_fopen): Make arguments const.
4939 * ui-file.h (gdb_fopen): Make arguments const.
4943 * remote.c (remote_set_trace_notes): Make arguments const.
4944 * target.c (update_current_target): Update cast.
4945 * target.h (to_set_trace_notes): Make arguments const.
4949 * go32-nat.c (go32_terminal_info): Make 'args' const.
4950 * inferior.h (child_terminal_info): Update.
4951 * inflow.c (child_terminal_info): Make 'args' const.
4952 * target.c (default_terminal_info): Make 'args' const.
4953 (debug_to_terminal_save_ours): Likewise.
4954 * target.h (struct target_ops) <to_terminal_info>: Make argument
4959 * gcore.c (create_gcore_bfd): Make 'filename' const.
4960 * gcore.h (create_gcore_bfd): Make 'filename' const.
4961 * record-full.c (record_full_save): Make 'recfilename' const.
4962 * target.c (target_save_record): Make 'filename' const.
4963 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4965 (target_save_record): Likewise.
4970 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4971 ranges section has been read.
4976 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4977 STRUCTOP_PTR>: Return a not_lval value for
4978 EVAL_AVOID_SIDE_EFFECTS.
4979 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4980 for EVAL_AVOID_SIDE_EFFECTS.
4984 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4985 floating point registers to register type before storing
4987 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4993 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4995 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4997 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4998 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4999 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5000 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5006 * configure: Rebuild.
5007 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5012 * remote.c (_initialize_remote): Fix spelling of
5013 qXfer:traceframe-info:read packet in packet config command.
5019 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5020 "QTro" at start of packet.
5024 * solib-aix.c (solib_aix_relocate_section_addresses):
5025 For the .bss section action, apply the same offset as
5030 * solib-aix.c (solib_aix_relocate_section_addresses):
5031 Remove FIXME comment.
5036 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5037 New functions, directly copied from sparc-sol-thread.c.
5038 * sparc-sol-thread.c: Delete.
5039 * configure.ac: Remove code handling sparc-solaris-thread.c.
5040 * configure: Regenerate.
5044 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5046 (backtrace_command): Add "no-filters" option parsing.
5047 (_initialize_stack): Alter help to reflect "no-filters" option.
5048 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5049 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5050 (py-frame.o): Add target
5051 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5053 * python/python.h: Add new frame filter constants, and flag enum.
5054 (apply_frame_filter): Add definition.
5055 * python/python.c (apply_frame_filter): New non-Python
5057 * python/py-utils.c (py_xdecref): New function.
5058 (make_cleanup_py_xdecref): Ditto.
5059 * python/py-objfile.c: Declare frame_filters dictionary.
5060 (objfpy_dealloc): Add frame_filters dealloc.
5061 (objfpy_new): Initialize frame_filters attribute.
5062 (objfile_to_objfile_object): Ditto.
5063 (objfpy_get_frame_filters): New function.
5064 (objfpy_set_frame_filters): New function.
5065 * python/py-progspace.c: Declare frame_filters dictionary.
5066 (pspy_dealloc): Add frame_filters dealloc.
5067 (pspy_new): Initialize frame_filters attribute.
5068 (pspacee_to_pspace_object): Ditto.
5069 (pspy_get_frame_filters): New function.
5070 (pspy_set_frame_filters): New function.
5071 * python/py-framefilter.c: New file.
5072 * python/lib/gdb/command/frame_filters.py: New file.
5073 * python/lib/gdb/frames.py: New file.
5074 * python/lib/gdb/__init__.py: Initialize global frame_filters
5076 * python/lib/gdb/FrameDecorator.py: New file.
5077 * python/lib/gdb/FrameIterator.py: New file.
5078 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5079 * mi/mi-cmds.h: Declare.
5080 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5081 --no-frame-filter logic, and Python frame filter logic.
5082 (stack_enable_frame_filters): New function.
5083 (parse_no_frame_option): Ditto.
5084 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5086 (mi_cmd_stack_list_locals): Ditto.
5087 (mi_cmd_stack_list_args): Ditto.
5088 (mi_cmd_stack_list_variables): Ditto.
5089 * NEWS: Add frame filter note.
5093 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5094 All callers updated.
5095 (syms_from_objfile): Ditto. Make static.
5096 (symbol_file_add_with_addrs): Renamed from
5097 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5098 num_offsets. All callers updated.
5099 * symfile.h (syms_from_objfile): Delete.
5101 * symfile.c (decrement_reading_symtab): Add assert.
5102 (increment_reading_symtab): Ditto.
5106 * source.c (forward_search_command): Replace call to getc
5108 (reverse_search_command): Likewise.
5112 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5117 * sol-thread.c (info_cb): Factorize the code a little.
5121 * sol-thread.c (info_cb): Rework the output of the "maintenance
5122 info sol-threads" command a bit.
5126 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5127 Replace ti.ti_startfunc by ti.ti_pc.
5131 * solib-aix.c (solib_aix_free_library_list): New function
5132 for the case where HAVE_LIBEXPAT is not defined.
5136 PR breakpoints/15413:
5137 * breakpoint.c (condition_completer): Simplify the code to
5138 disconsider multiple locations of breakpoints when completing the
5139 "condition" command.
5143 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5144 instead of <sys/wait.h>.
5148 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5149 trailing new line from warning message.
5153 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5154 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5158 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5159 error message (ARI fix).
5163 * features/library-list-aix.dtd: Replace library-list by
5165 * rs6000-nat.c: Replace library-list by library-list-aix
5167 * solib-aix.c: Likewise.
5171 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5172 Renames TARGET_OBJECT_AIX_LIBRARIES.
5173 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5174 TARGET_OBJECT_LIBRARIES_AIX throughout.
5175 * solib-aix.c: Likwise.
5179 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5180 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5184 * solib-dsbt.c (enable_break): Declare.
5185 (dsbt_current_sos): Remove call to enable_break2.
5186 (enable_break2): Rename to enable_break. Set solib breakpoint
5187 on '_dl_debug_state'.
5188 (enable_break): Remove.
5192 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5193 debug state prior to replicating existing hardware watchpoints or
5198 * gcore.c (gcore_create_callback): Ignore sections with
5199 separate_debug_objfile_backlink != NULL.
5206 Based on the nios2-elf port from Altera Corporation.
5208 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5210 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5211 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5212 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5213 * nios2-tdep.h: New.
5214 * nios2-tdep.c: New.
5215 * nios2-linux-tdep.c: New.
5216 * features/Makefile (WHICH): Add nios2-linux.
5217 (nios2-linux-expedite): Set.
5218 * features/nios2-cpu.xml: New.
5219 * features/nios2.xml: New.
5220 * features/nios2-linux.xml: New.
5221 * features/nios2.c: New (autogenerated).
5222 * features/nios2-linux.c: New (autogenerated).
5223 * regformats/nios2-linux.dat: New (autogenerated).
5224 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5229 * symfile.c: Whitespace cleanup.
5231 * solist.h (struct target_so_ops): New member clear_so.
5232 * solib-svr4.c (svr4_clear_so): New function.
5233 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5234 * solib.c (clear_so): Renamed from free_so_symbols.
5235 All callers updated. Call target clear_so if it exists.
5239 * ada-lang.c (ada_value_primitive_packed_val): Don't
5241 * value.c (set_value_parent): Incref the new parent and decref
5243 (value_copy, value_primitive_field): Use set_value_parent.
5247 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5248 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5250 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5251 * dwarf2read.c (write_constant_as_bytes)
5252 (dwarf2_fetch_constant_bytes): New functions.
5256 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5258 (dwarf2_const_value_attr): Update.
5262 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5263 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5264 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5269 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5274 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5275 * stabsread.h (process_one_symbol): Update declaration.
5276 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5277 * elfread.c (elf_symfile_relocate_probe): Ditto.
5278 * psymtab.c (relocate_psymtabs): Ditto.
5279 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5280 (objfile_relocate): Ditto.
5281 * objfiles.h (objfile_relocate): Update declaration.
5282 * symfile.c (relative_addr_info_to_section_offsets): Constify
5284 (default_symfile_offsets): Ditto.
5285 (syms_from_objfile_1): Constify offsets parameter.
5286 (syms_from_objfile): Ditto.
5287 (symbol_file_add_with_addrs_or_offsets): Ditto.
5288 (symfile_map_offsets_to_segments): Constify data parameter.
5289 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5290 delta parameters of member relocate.
5291 (struct sym_probe_fns): Constify new_offsets,
5292 delta parameters of member sym_relocate_probe.
5293 (struct sym_fns): Constify section_addr_info parameter of member
5295 (relative_addr_info_to_section_offsets): Update declaration.
5296 (default_symfile_offsets): Ditto.
5297 (syms_from_objfile): Ditto.
5298 (symfile_map_offsets_to_segments): Ditto.
5300 * symfile.c (syms_from_objfile_1): Use correct section count when
5301 objfile->sf == NULL.
5305 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5309 * psympriv.h (struct partial_symtab): Augment comment for member
5314 Reimplement shared library support on ppc-aix...
5315 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5316 * features/library-list-aix.dtd: New file.
5317 * solib-aix.h, solib-aix.c: New file.
5318 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5319 (rs6000_find_toc_address_hook): Delete.
5320 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5321 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5322 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5324 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5325 (vmap_symtab, fixup_breakpoints): Delete.
5326 (rs6000_xfer_shared_libraries): New function.
5327 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5328 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5329 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5330 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5331 (rs6000_xfer_shared_library): New function.
5332 (find_toc_address): Delete.
5333 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5334 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5335 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5336 before creating minimal symbol. Adjust function description
5338 (scan_xcoff_symtab): Replace call to
5339 prim_record_minimal_symbol_and_info by call to
5340 record_minimal_symbol.
5341 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5342 around default_symfile_offsets.
5343 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5344 powerpc-aix targets.
5345 * config/rs6000/nm-rs6000.h: Delete.
5346 * config/powerpc/aix.mh (NAT_FILE): Delete.
5347 (NATDEPFILES): Remove xcoffsolib.o.
5348 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5349 (ALL_TARGET_OBS): Add solib-aix.o.
5350 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5351 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5352 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5353 * xcoffsolib.h, xcoffsolib.c: Delete.
5355 * solib.c (reload_shared_libraries): Remove reference to
5356 SOLIB_CREATE_INFERIOR_HOOK.
5357 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5358 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5359 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5361 * corelow.c (deprecated_core_resize_section_table): Delete.
5362 * exec.c: Remove include of xcoffsolib.h".
5363 (map_vmap, vmap): Delete.
5364 (exec_close_1): Remove references to vmap.
5365 (exec_file_attach): Remove vmap handling code, and reference
5366 to DEPRECATED_IBM6000_TARGET.
5367 (bfdsec_to_vmap): Delete.
5368 (exec_files_info): Remove block of code handling VMAP.
5369 * infcmd.c (post_create_inferior): Remove reference to
5370 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5371 * infrun.c (follow_exec): Remove reference to
5372 SOLIB_CREATE_INFERIOR_HOOK.
5373 * stack.c (print_frame): Remove reference to PC_SOLIB.
5374 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5375 (dsbt_relocate_main_executable): Likewise.
5376 * solib-frv.c (frv_current_sos): Likewise.
5380 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5381 to target_write_memory and target_read_memory.
5385 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5386 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5390 * darwin-nat.c: Replace all "%x" instances in format strings
5391 into "0x%x" throughout.
5395 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5396 gdb_assert by call to MACH_CHECK_ERROR.
5397 (darwin_attach_pid): Raise an error rather than a failed
5398 assertion when various system calls failed. Report a warning
5399 instead of raising a failed assertion when PREV_NOT is not NULL
5400 after call to mach_port_request_notification.
5401 (darwin_ptrace_me): Raise an error rather than a failed
5402 assertion when read returns nonzero.
5406 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5410 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5414 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5415 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5416 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5417 a stale cleanup. Fix double free of NAME.
5421 * windows-nat.c (windows_delete_thread): Accept an additional
5422 argument, the thread's exit code, and announce thread death when
5423 print_thread_events is non-zero and we are deleting a thread that
5424 is not the main thread.
5425 (get_windows_debug_event): Pass thread exit code to
5426 windows_delete_thread.
5430 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5431 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5432 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5433 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5434 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5435 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5436 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5437 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5438 (gdbarch_tdep): New struct.
5439 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5441 (v850e3v5_register_name): New function.
5442 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5443 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5444 code handling the struct return conventions for the RH850 ABI.
5446 (v850_eight_byte_align_p): New function.
5447 (v850_push_call_dummy): Push structs by value, not by reference
5448 for the RH850 ABI. Add support for eight byte alignment.
5449 (v850_dbtrap_breakpoint_from_pc): New function.
5450 (v850_gdbarch_init): Add ABI detection code. Register
5451 v850e3v5_register_name for the v850e3v5 architecture. Set the
5452 number of registers for v850e3v5. Register
5453 v850_dbtrap_breakpoint_from_pc as appropriate.
5454 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5458 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5459 of bfd_count_sections.
5460 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5461 * symfile.c (default_symfile_offsets): Ditto.
5462 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5463 one entry, not bfd_count_sections entries.
5467 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5468 `save' and `restore' register groups. Don't include SPL
5469 or SPH in these groups.
5470 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5471 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5472 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5473 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5474 dwarf2_append_unwinders().
5478 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5479 ignore SIGINT and SIGTRAP in case these internal signals are
5484 * darwin-nat.c (darwin_read_write_inferior): Change types
5485 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5486 of copy_count to "mach_msg_type_number_t".
5487 (darwin_read_dyld_info): Change type of parameter
5488 rdaddr to "gdb_byte *".
5492 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5493 of &info->load_map from "char *" to "gdb_byte *".
5497 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5498 from "char *" to "gdb_byte *".
5499 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5503 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5504 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5505 DWO stub. If DWO isn't found, just use stub.
5506 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5508 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5509 calling init_cutu_and_read_dies.
5513 * target-descriptions.c (maint_print_c_tdesc_cmd):
5514 Add case to parse structures as register types and
5519 * MAINTAINERS (Write After Approval): Add myself to the list.
5523 * sol-thread.c (rw_common): Change type of parameter "buf"
5525 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5526 rw_common to "gdb_byte *" instead of "char *".
5530 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5531 of local variable msym to const struct bound_minimal_symbol.
5532 Adjust use accordingly.
5533 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5537 * i386gnu-nat.c (CREG_OFFSET): New macro.
5538 (creg_offset): New array.
5539 (CREG_ADDR): Use creg_offset instead of reg_offset.
5543 * mep-tdep.c (mep_write_pc): Delete.
5544 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5545 Add call to set_gdbarch_pc_regnum.
5549 * common/filestuff.c: Replace #include <dirent.h> by
5550 #include "gdb_dirent.h".
5554 * common/filestuff.c: Replace #include <sys/stat.h> by
5555 #include "gdb_stat.h".
5559 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5560 editCase function rule.
5561 (get_DW_AT_signature_type): Likewise.
5565 * m32r-tdep.c (m32r_write_pc): Delete.
5566 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5567 Add call to set_gdbarch_pc_regnum.
5571 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5575 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5579 * solib-dsbt.c (fetch_loadmap): Re-indent.
5580 (displacement_from_map, enable_break2): Likewise.
5581 (dsbt_relocate_section_addresses): Likewise.
5590 * dwarf2read.c (process_full_comp_unit): Always create a static
5595 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5596 to loc->cmd_bytecode.
5600 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5604 * tracepoint.c (trace_save): Call the writer's start method.
5609 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5614 * common/filestuff.c: Check USE_WIN32API before including
5616 (HAVE_F_GETFD): New define.
5617 (mark_cloexec): Check HAVE_F_GETFD.
5618 (gdb_open_cloexec): Change 'mode' to unsigned long.
5619 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5620 (gdb_pipe_cloexec): Check HAVE_PIPE.
5621 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5627 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5632 * breakpoint.c (dprintf_print_recreate): New.
5633 (save_breakpoints): Let it not save dprintf commands.
5634 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5639 * Makefile.in (SFILES): Add filestuff.c
5640 (COMMON_OBS): Add filestuff.o.
5641 (filestuff.o): New target.
5642 * auto-load.c (auto_load_objfile_script_1): Use
5644 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5645 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5646 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5647 * common/agent.c (gdb_connect_sync_socket): Use
5649 * common/filestuff.c: New file.
5650 * common/filestuff.h: New file.
5651 * common/linux-osdata.c (linux_common_core_of_thread)
5652 (command_from_pid, commandline_from_pid, print_source_lines)
5653 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5654 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5656 * common/linux-procfs.c (linux_proc_get_int)
5657 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5658 * config.in, configure: Rebuild.
5659 * configure.ac: Don't check for sys/socket.h. Check for
5661 * corelow.c (core_open): Use gdb_open_cloexec.
5662 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5663 * fork-child.c (fork_inferior): Call close_most_fds.
5664 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5665 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5666 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5667 Use gdb_fopen_cloexec.
5668 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5670 (linux_async_pipe): Use gdb_pipe_cloexec.
5671 * remote-fileio.c (remote_fileio_func_open): Use
5673 * remote.c (remote_file_put, remote_file_get): Use
5675 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5677 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5678 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5679 * solib.c (solib_find): Use gdb_open_cloexec.
5680 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5681 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5682 (tfile_open): Use gdb_open_cloexec.
5683 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5684 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5685 * xml-support.c (xml_fetch_content_from_file): Use
5687 * main.c (captured_main): Call notice_open_fds.
5691 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5692 'char *' to 'gdb_byte *'.
5693 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5698 * infrun.c: Fix typo in comment.
5702 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5707 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5708 'char *' to 'gdb_byte *'. Cast the return value of
5709 'bt_ctf_get_char_array' to 'gdb_byte *'.
5713 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5715 * configure: Regenerate.
5719 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5724 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5725 Change type of 'myaddr' parameter to gdb_byte pointer.
5726 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5727 to 'long long' pointer instead of to 'unsigned long long'.
5728 (monitor_write_memory_block, monitor_read_memory_single)
5729 (monitor_read_memory): Change type of 'myaddr' parameter to
5734 * record.c (validate_history_size): Make parameter 'setting'
5739 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5744 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5749 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5750 * ada-tasks.c (read_fat_string_value): Likewise.
5754 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5755 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5756 'offset', and adjust.
5760 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5761 (read_index_from_section): Add cast to 'char *'.
5765 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5769 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5773 * record-full.c (record_full_get_bookmark): Change local 'ret'
5774 type to char * and add cast to gdb_byte *.
5775 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5777 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5781 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5782 * python/py-prettyprint.c (print_string_repr): Change type of
5783 'output' local to char *. Add cast to gdb_byte * in
5784 LA_PRINT_STRING call.
5785 (print_children): Change type of 'output' local to char *.
5786 * python/py-value.c (valpy_string): Add cast to const char * in
5787 PyUnicode_Decode call.
5791 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5792 and change its type to 'const char *'. Adjust.
5793 (mips_send_packet): Add cast to 'char *', and remove cast to
5795 (mips_receive_packet): Remove cast to 'unsigned char *'.
5796 (mips_load_srec): Use bfd_byte.
5797 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5798 (pmon_checkset): Make 'value' parameter unsigned.
5802 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5806 * remote.c (remote_write_bytes_aux, compare_sections_command)
5808 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5809 (remote_hostio_readlink, remote_bfd_iovec_pread)
5810 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5811 binary buffer, and char when buffer is used as string.
5812 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5813 (trace_save, tfile_open, traceframe_walk_blocks)
5814 (tfile_fetch_registers): Likewise.
5818 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5819 buffer and size_t size. Adjust.
5820 * ser-base.h (ser_base_write): Adjust.
5821 * ser-go32.c (cnts): Change type to size_t.
5822 (dos_write): Change prototype -- take 'void *'
5823 buffer and size_t size. Adjust.
5824 (dos_info): Print elements of 'cnts' as unsigned long.
5825 * serial.c (serial_write): Likewise.
5826 * serial.h (serial_write): Adjust.
5827 (struct serial_ops) <write>: Change prototype -- take 'void *'
5828 buffer and size_t size. Adjust.
5832 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5834 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5838 * alpha-tdep.c (alpha_extract_return_value): Use
5839 regcache_cooked_read_unsigned to read 'v0'.
5843 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5844 parameters 'at', 'as' and 'offset' to uint32_t.
5848 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5849 'is64' to signed 'int'.
5853 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5858 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5859 'insnbuf' buffer type to unsigned int[].
5863 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5867 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5872 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5873 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5875 * mips-tdep.c (heuristic_fence_post): Change type to int.
5876 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5880 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5881 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5882 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5886 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5887 it to get a string view of the byte buffer.
5888 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5889 type to gdb_byte *. Adjust.
5890 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5891 Change local to char *.
5892 * solib-darwin.c (find_program_interpreter): Change return type to
5894 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5895 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5896 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5897 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5898 * solib-svr4.c (find_program_interpreter): Change return type to
5900 (enable_break): Change local 'interp_name' to char *.
5901 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5902 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5903 (spu_pseudo_register_write_spu): Use char for string buffer.
5905 (info_spu_event_command, info_spu_signal_command): Add casts to
5910 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5912 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5913 * ada-lang.c (ada_value_assign): Use gdb_byte.
5914 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5915 (alphanbsd_sigtramp_offset): Use gdb_byte.
5916 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5917 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5918 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5919 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5920 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5921 * arm-tdep.c (arm_stub_unwind_sniffer)
5922 (arm_displaced_init_closure): Use gdb_byte.
5923 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5924 (arm_default_thumb_le_breakpoint)
5925 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5926 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5927 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5928 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5929 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5930 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5931 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5932 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5933 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5934 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5935 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5936 (cris_store_return_value, cris_extract_return_value): Use
5938 (constraint): Change type of parameter to char * from signed
5939 char*. Use gdb_byte.
5940 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5941 of local buffer to gdb_byte *.
5942 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5943 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5944 (add_address_entry): Change type of local buffer to gdb_byte[].
5945 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5946 (frv_push_dummy_call): Use gdb_byte.
5947 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5948 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5949 (hppa_hpux_supply_save_state): Use gdb_byte.
5950 * hppa-tdep.c (hppa32_push_dummy_call)
5951 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5952 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5953 (slotN_contents, replace_slotN_contents): Change type of parameter
5955 (fetch_instruction, ia64_pseudo_register_write)
5956 (ia64_register_to_value, ia64_value_to_register)
5957 (ia64_extract_return_value, ia64_store_return_value)
5958 (ia64_push_dummy_call): Use gdb_byte.
5959 * m32c-tdep.c (m32c_return_value): Remove cast.
5960 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5961 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5963 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5964 * mn10300-tdep.c (mn10300_store_return_value)
5965 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5967 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5968 (moxie_process_record): Remove casts.
5969 * ppc-ravenscar-thread.c (supply_register_at_address)
5970 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5971 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5972 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5973 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5974 * remote.c (compare_sections_command): Use gdb_byte.
5975 * score-tdep.c (score7_free_memblock): Change type of parameter to
5977 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5978 gdb_byte *. Use gdb_byte.
5979 (sh_push_dummy_call_fpu): Use gdb_byte.
5980 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5981 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5982 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5983 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5984 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5985 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5986 (sh64_store_return_value, sh64_register_convert_to_virtual):
5987 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5988 (sh64_pseudo_register_write): Use gdb_byte.
5989 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5990 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5992 (irix_current_sos): Use gdb_byte.
5993 * solib-som.c (som_current_sos): Use gdb_byte.
5994 * sparc-ravenscar-thread.c (supply_register_at_address)
5995 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5996 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5997 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5998 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6000 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6002 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6003 * xstormy16-tdep.c (xstormy16_extract_return_value)
6004 (xstormy16_store_return_value): Change parameter type to
6005 'gdb_byte *'. Adjust.
6006 (xstormy16_push_dummy_call): Use gdb_byte.
6007 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6008 (call0_analyze_prologue, execute_code): Use gdb_byte.
6013 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6018 * dwarf2read.c (struct signatured_type): New member type.
6019 (struct attribute): Replace member signatured_type with signature.
6020 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6021 (read_call_site_scope): Call follow_die_ref instead of
6022 follow_die_ref_or_sig.
6023 (read_structure_type): Rewrite handling of signatured types.
6024 (read_enumeration_type): Ditto.
6025 (read_attribute_value): Update.
6026 (build_error_marker_type): New function.
6027 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6028 Don't call error for bad types, just build an error marker type.
6029 (dump_die_shallow): Update.
6030 (follow_die_sig_1): Renamed from follow_die_sig.
6031 Don't call error for bad types, instead return NULL.
6032 (follow_die_sig): New function.
6033 (get_signatured_type, get_DW_AT_signature_type): New functions.
6037 * aarch64-tdep.c (aarch64_write_pc): Removed.
6038 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6043 * top.c (print_gdb_configuration): Print configure-time
6044 parameter on using libbabeltrace or not.
6048 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6052 * common/glibc_thread_db.h: Update from upstream glibc
6053 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6057 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6058 * common/glibc_thread_db.h: ... this new file ...
6059 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6066 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6067 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6073 * NEWS: Mention "set foo unlimited".
6077 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6078 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6079 (create_dwo_cu_reader): Renamed from
6080 create_dwo_debug_info_hash_table_reader.
6081 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6082 Remove support for multiple CUs in a DWO file.
6083 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6085 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6087 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6088 (create_dwo_in_dwp): Ditto.
6092 * NEWS: Move recent entries into "since 7.6" section.
6098 * break-catch-throw.c (struct exception_catchpoint)
6099 <exception_rx, pattern>: New fields.
6100 (fetch_probe_arguments, dtor_exception_catchpoint)
6101 (check_status_exception_catchpoint)
6102 (print_one_detail_exception_catchpoint): New functions.
6103 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6104 Compile regular expression if needed.
6105 (extract_exception_regexp): New function.
6106 (catch_exception_command_1): Use extract_exception_regexp.
6107 (compute_exception): Use fetch_probe_arguments.
6108 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6109 and check_status fields.
6110 * cp-abi.c (cplus_typename_from_type_info): New function.
6111 * cp-abi.h (cplus_typename_from_type_info): Declare.
6112 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6113 * gdb_regex.h (compile_rx_or_error): Declare.
6114 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6116 (init_gnuv3_ops): Set get_type_from_type_info field.
6117 * probe.c (compile_rx_or_error): Move...
6118 * utils.c (compile_rx_or_error): ... here.
6124 * break-catch-throw.c (compute_exception): New function.
6125 (exception_funcs): New global.
6126 (_initialize_break_catch_throw): Create $_exception.
6127 * cp-abi.c (cplus_type_from_type_info): New function.
6128 * cp-abi.h (cplus_type_from_type_info): Declare.
6129 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6130 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6131 (gnuv3_get_type_from_type_info): New functions.
6132 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6136 * break-catch-throw.c (struct exception_names): New.
6137 (exception_functions): Change type.
6138 (re_set_exception_catchpoint): Look for SDT probes.
6143 * break-catch-throw.c (exception_functions): New global.
6144 (gnu_v3_exception_catchpoint_ops): Move earlier.
6145 (struct exception_catchpoint): New.
6146 (classify_exception_breakpoint): Rewrite.
6147 (re_set_exception_catchpoint): New function.
6148 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6149 Allocate a struct exception_catchpoint.
6150 (catch_exception_command_1): Update.
6151 (initialize_throw_catchpoint_ops): Set 're_set' method.
6155 * Makefile.in (SFILES): Add break-catch-throw.c
6156 (COMMON_OBS): Add break-catch-throw.o.
6157 * break-catch-throw.c: New file.
6158 * breakpoint.c: Move exception-catching code to new file.
6159 (ep_parse_optional_if_clause): No longer static.
6160 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6166 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6167 * c-exp.y (TYPEID): New token.
6168 (exp): Add new TYPEID productions.
6169 (ident_tokens): Add "typeid".
6170 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6171 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6172 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6173 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6174 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6176 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6177 (build_std_type_info_type, gnuv3_get_typeid_type)
6178 (gnuv3_get_typeid): New functions.
6179 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6180 new fields on ABI object.
6181 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6182 * std-operator.def (OP_TYPEID): New.
6186 * elfread.c (elf_symtab_read): Install versioned symbol under
6187 unversioned name as well.
6192 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6193 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6194 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6195 (gdb_demangle): New function.
6196 * cp-support.h (gdb_demangle): Declare.
6197 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6198 (dwarf2_name): Use gdb_demangle.
6199 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6200 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6202 (gnuv3_print_method_ptr): Use gdb_demangle.
6203 * jv-lang.c (java_demangle): Use gdb_demangle.
6204 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6205 * language.c (unk_lang_demangle): Use gdb_demangle.
6206 * symtab.c (symbol_find_demangled_name)
6207 (demangle_for_lookup): Use gdb_demangle.
6213 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6215 (classify_exception_breakpoint): New function.
6216 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6217 (print_mention_exception_catchpoint)
6218 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6219 (catch_exception_command_1): Handle "rethrow" catchpoint.
6220 (catch_rethrow_command): New function.
6221 (_initialize_breakpoint): Add "catch rethrow" command.
6225 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6226 set_gdbarch_write_pc as deprecated anymore.
6230 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6235 * ctf.c (_initialize_ctf): Include "completer.h".
6236 Call add_target_with_completer instead of add_target.
6240 Fix GDB regression related to PR binutils/14813.
6241 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6242 * minidebug.c (lzma_close): Add return value comment.
6243 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6244 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6245 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6249 * config.in: Regenerate.
6253 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6255 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6256 (struct die_reader_specs) <buffer>: Likewise.
6257 (die_reader_func_ftype): Make 'info_ptr' const.
6258 (struct line_header) <include_dirs, statement_program_start,
6259 statement_program_end>: Now const.
6260 (struct file_entry) <name>: Likewise.
6261 (struct partial_die_info) <sibling>: Likewise.
6262 (struct dwarf_block) <data>: Likewise.
6263 (dwarf2_read_section): Remove cast.
6264 (dwarf2_get_section_info): Make 'bufp' const.
6265 (read_index_from_section): Constify.
6266 (dw2_get_file_names_reader): Make 'info_ptr' const.
6267 (dw2_get_primary_filename_reader): Likewise.
6268 (read_comp_unit_head): Make 'info_ptr' and return type const.
6269 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6271 (read_abbrev_offset): Constify.
6272 (dwarf2_create_include_psymtab): Make 'name' const.
6273 (create_debug_types_hash_table): Update.
6274 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6275 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6277 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6278 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6279 (read_comp_units_from_section): Constify.
6280 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6281 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6283 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6284 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6285 (create_dwp_hash_table, dwarf2_ranges_read)
6286 (dwarf2_record_block_ranges): Constify.
6287 (read_die_and_children, read_die_and_siblings_1)
6288 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6290 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6291 (abbrev_table_read_table): Constify.
6292 (load_partial_dies): Make 'info_ptr' const.
6293 (read_partial_die, read_attribute_value, read_attribute): Make
6294 'info_ptr' and return type const.
6295 (read_address, read_initial_length)
6296 (read_checked_initial_length_and_offset, read_offset)
6297 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6299 (read_direct_string): Make 'buf' and return type const.
6300 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6301 (read_indirect_string): Make return type const.
6302 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6303 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6305 (read_str_index): Make return type const.
6306 (add_include_dir): Make 'include_dir' const.
6307 (add_file_name): Make 'name' const.
6308 (dwarf_decode_line_header): Constify.
6309 (psymtab_include_file_name): Make return type const.
6310 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6311 (dwarf2_start_subfile): Make 'filename' const.
6312 (dwarf2_const_value_attr): Make 'bytes' const.
6313 (read_signatured_type_reader): Make 'info_ptr' const.
6314 (decode_locdesc): Constify.
6315 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6317 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6318 'mac_end', and return type const.
6319 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6320 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6322 (per_cu_header_read_in): Constify.
6323 * symfile.h (dwarf2_get_section_info): Update.
6327 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6331 * NEWS: Mention "show configuration", --configuration.
6332 * top.c (print_gdb_configuration): New function, displays the
6333 details about GDB configure-time parameters.
6334 (print_gdb_version): Mention "show configuration".
6335 * cli/cli-cmds.c (show_configuration): New function.
6336 (_initialize_cli_cmds): Add the "show configuration" command.
6337 * main.c (captured_main) <print_configuration>: New static var.
6338 <long_options>: Use it.
6339 If --configuration was given, call print_gdb_configuration.
6344 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6345 (generated_files): Add gcore.
6346 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6347 HAVE_NATIVE_GCORE_HOST.
6349 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6350 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6351 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6352 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6353 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6354 Add HAVE_NATIVE_GCORE_HOST.
6355 * configure: Regenerate.
6356 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6357 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6358 AC_CONFIG_FILES for gcore.
6359 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6361 * gdb_gcore.sh: Rename to ...
6362 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6363 and GCORE_TRANSFORM_NAME substitutions.
6365 Fix parsing tabs in ${gdb_target_obs}.
6366 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6370 * remote.c (unpush_and_perror): Add output message final dot.
6374 * tracepoint.c (tfile_interp_line): Fit parameters line and
6379 * solib.c (solib_map_sections): Remove code overwriting
6380 SO->SO_NAME with the bfd's filename.
6384 * cli/cli-decode.c (integer_unlimited_completer): New function.
6385 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6386 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6388 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6389 (is_unlimited_literal): New function.
6390 (do_set_command): Handle literal "unlimited" arguments.
6391 * frame.c (_initialize_frame) <set backtrace limit>: Document
6393 * printcmd.c (_initialize_printcmd) <set print
6394 max-symbolic-offset>: Add help text.
6395 * record-full.c (_initialize_record_full) <set record full
6396 insn-number-max>: Likewise.
6397 * record.c (_initialize_record) <set record
6398 instruction-history-size, set record function-call-history-size>:
6400 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6402 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6404 * source.c (_initialize_source) <set listsize>: Add help text.
6405 * utils.c (initialize_utils) <set height, set width>: Likewise.
6406 <set pagination>: Mention "set height unlimited".
6407 * valprint.c (_initialize_valprint) <set print elements, set print
6408 repeats>: Document "unlimited".
6412 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6413 instead of disconnect_tracing.
6414 * infcmd.c (detach_command, disconnect_command): Call
6415 query_if_trace_running. Adjust.
6416 * top.c: Include "tracepoint.h".
6417 (quit_target): Delete. Contents moved ...
6418 (quit_force): ... here. Wrap each stage of teardown in
6419 TRY_CATCH. Call disconnect_tracing before detaching.
6424 * configure.ac: Check libbabeltrace is installed.
6425 * config.in: Regenerate.
6426 * configure: Regenerate.
6427 * Makefile.in (LIBBABELTRACE): New.
6428 (CLIBS): Add LIBBABELTRACE.
6429 * ctf.c: Include "exec.h".
6430 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6431 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6432 (ctf_save_metadata_header): Define new type aliases in
6434 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6435 in metadata. Start a new faked packet for trace status.
6436 (ctf_write_status): Write trace status to CTF.
6437 (ctf_write_uploaded_tsv): Write TSV to CTF.
6438 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6439 (ctf_write_definition_end): End the faked packet.
6441 (ctx, ctf_iter, trace_dirname): New.
6442 (start_pos): New variable.
6443 (ctf_destroy, ctf_open_dir, ctf_open): New.
6444 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6446 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6447 (ctf_fetch_registers, ctf_xfer_partial): New.
6448 (ctf_get_trace_state_variable_value): New.
6449 (ctf_get_tpnum_from_frame_event): New.
6450 (ctf_get_traceframe_address): New.
6451 (ctf_trace_find, ctf_has_stack): New.
6452 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6453 (ctf_get_trace_status, ctf_read_status): New.
6454 (_initialize_ctf): New.
6455 * tracepoint.c (get_tracepoint_number): New
6456 (get_uploaded_tsv): Remove 'static'.
6457 (struct traceframe_info, trace_regblock_size): Move it to ...
6458 * tracepoint.h: ... here.
6459 (get_tracepoint_number): Declare it.
6460 (get_uploaded_tsv): Declare it.
6462 * NEWS: Mention new configure option.
6467 * breakpoint.c (dprintf_re_set): New.
6468 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6473 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6474 Remove solib-svr4.o from the list.
6478 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6479 Use gdb_assert_not_reached instead of invalid boolean expression.
6483 * remote.c (unpush_and_perror): New function.
6484 (readchar, remote_serial_write): Use it.
6488 * NEWS: Mention new btrace RSP packets.
6492 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6497 * maint.c (print_bfd_section_info): Print the section index.
6498 * symmisc.c (dump_msymbols): Print the section index.
6503 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6504 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6505 * breakpoint.c (resolve_sal_pc): Update.
6506 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6507 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6508 (minsym_lookup_iterator_cb): Use it.
6509 (default_read_var_value): Update.
6510 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6512 * infcmd.c (jump_command): Update.
6513 * linespec.c (minsym_found): Update.
6514 * maint.c (maintenance_translate_address): Update.
6515 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6516 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6517 * parse.c (write_exp_msymbol): Update.
6518 * printcmd.c (address_info): Update.
6519 * psymtab.c (find_pc_sect_psymbol): Update.
6520 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6522 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6523 Don't initialize SYMBOL_OBJ_SECTION.
6524 * spu-tdep.c (spu_catch_start): Update.
6525 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6526 * symmisc.c (dump_msymbols, print_symbol): Update.
6527 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6528 how fallback section is computed.
6529 (fixup_symbol_section): Update.
6530 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6532 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6533 Initialize SYMBOL_SECTION.
6534 * symtab.h (struct general_symbol_info) <section>: Update comment.
6535 <obj_section>: Remove.
6536 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6537 (SYMBOL_OBJFILE): New macro.
6541 * coffread.c (record_minimal_symbol): Update.
6542 * dbxread.c (record_minimal_symbol): Update.
6543 * elfread.c (record_minimal_symbol): Update.
6544 * machoread.c (macho_symtab_add_minsym): Update.
6545 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6547 * minsyms.c (prim_record_minimal_symbol): Update.
6548 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6550 (prim_record_minimal_symbol_and_info): Likewise.
6551 * minsyms.h (prim_record_minimal_symbol_full)
6552 (prim_record_minimal_symbol_and_info): Update.
6553 * symtab.c (allocate_symbol, initialize_symbol)
6554 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6555 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6561 * solib-som.c (som_solib_section_offsets): Use BFD section
6562 indices. Set offsets for all sections.
6563 * somread.c (som_symtab_read): Compute BFD section for
6564 symbol. Use prim_record_minimal_symbol_and_info.
6565 (som_symfile_read): Fix comment.
6566 (struct find_section_offset_arg): New.
6567 (find_section_offset, set_section_index): New functions.
6568 (som_symfile_offsets): Use set_section_index to compute
6573 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6574 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6575 gdb_bfd_section_index.
6576 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6578 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6580 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6582 * objfiles.c (add_to_objfile_sections_full): New function.
6583 (add_to_objfile_sections): Use it.
6584 (build_section_table): Rewrite.
6585 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6586 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6587 (struct objfile) <sections>: Update comment.
6588 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6590 (ALL_OBJSECTIONS): Use it.
6591 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6592 * solib-frv.c (frv_relocate_main_executable): Update.
6593 * solib-target.c (solib_target_relocate_section_addresses):
6594 Use gdb_bfd_section_index.
6595 * symfile.c (build_section_addr_info_from_section_table):
6596 Use gdb_bfd_section_index.
6597 (build_section_addr_info_from_bfd, place_section): Likewise.
6598 * symtab.c (fixup_section): Update.
6599 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6603 * minsyms.h (struct bound_minimal_symbol): New.
6604 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6605 Remove objfile argument.
6606 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6607 Return bound_minimal_symbol.
6608 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6609 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6610 Return bound_minimal_symbol.
6611 (in_gnu_ifunc_stub): Update.
6612 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6613 Remove 'objfile_p' argument.
6614 (lookup_solib_trampoline_symbol_by_pc): Update.
6615 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6616 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6617 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6618 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6619 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6620 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6621 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6622 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6623 stack.c, symtab.c, tui/tui-disasm.c: Update.
6627 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6628 Use symbol's obstack, not an objfile.
6629 * coffread.c (process_coff_symbol): Update.
6630 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6631 * jv-lang.c (add_class_symbol): Update.
6632 * mdebugread.c (new_symbol): Update.
6633 * minsyms.c (prim_record_minimal_symbol_full)
6634 (terminate_minimal_symbol_table): Update.
6635 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6636 * stabsread.c (define_symbol, read_enum_type): Update.
6637 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6638 Handle Ada specially.
6639 (symbol_set_language): Add 'obstack' argument.
6640 (symbol_set_names): Update.
6641 (symbol_natural_name, symbol_demangled_name): Always use
6643 * symtab.h (struct general_symbol_info)
6644 <language_specific::obstack>: New field.
6645 <ada_mangled>: New field.
6646 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6647 (symbol_set_language): Update.
6651 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6652 Take an obstack, not an objfile.
6653 (symbol_set_names): Update.
6654 * symtab.h (symbol_set_demangled_name): Update.
6658 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6660 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6661 (read_func_scope): Call allocate_template_symbol.
6662 (new_symbol_full): Call allocate_symbol.
6663 * jit.c (finalize_symtab): Call allocate_symbol.
6664 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6665 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6666 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6667 (common_block_end): Call allocate_symbol.
6668 * symtab.c (allocate_symbol, initialize_symbol)
6669 (allocate_template_symbol): New functions.
6670 * symtab.c (allocate_symbol, initialize_symbol)
6671 (allocate_template_symbol): Declare.
6672 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6677 * breakpoint.c (create_breakpoint): Rename
6678 "parse_condition_and_thread" parameter to "parse_arg". Update
6679 describing comment. If !PARSE_ARG, then error out if ARG is not
6680 the empty string after extracting the location.
6681 * breakpoint.h (create_breakpoint): Rename
6682 "parse_condition_and_thread" parameter to "parse_arg".
6686 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6690 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6691 and 'addr2' to CORE_ADDR.
6692 * target.c (update_current_target): Update.
6693 * target.h (struct target_ops) <to_trace_find>: Change parameter
6695 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6696 'addr2' to CORE_ADDR.
6697 (tfile_trace_find): Likewise.
6698 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6699 Change local variable 'addr' to type CORE_ADDR.
6700 * tracepoint.h (tfind_1): Update declaration.
6704 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6705 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6708 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6710 * main.h (windows_get_absolute_argv0): ...to here.
6714 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6715 (read_cutu_die_from_dwo): Add comments.
6716 (read_structure_type): Update comment.
6717 (read_enumeration_type, read_namespace_type): Update comment.
6718 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6722 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6723 * Makefile.in (gdb.z): Remove.
6724 (install-only): Remove $(man1dir) and gdb.1 installation.
6729 Fix compatibility with Linux kernel 3.8.3.
6730 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6731 to more inner block. Remove parsing of NUMBER from outer block.
6732 Parse NUMBER only if KEYWORD has been identified.
6736 Fix variable name shadowing.
6737 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6738 filename to mapsfilename and update its uses.
6742 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6743 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6744 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6745 details of the problem.
6750 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6751 tracepoint, reset its STEP_COUNT and call validate_actionline.
6755 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6756 read_die_and_siblings.
6757 (read_die_and_siblings): New function.
6758 (read_cutu_die_from_dwo): Dump die if requested.
6759 (read_die_and_children): Call read_full_die_1 and
6760 read_die_and_siblings_1.
6761 (read_full_die): Dump die if requested.
6763 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6765 * dwarf2read.c (struct dwo_file): New member comp_dir.
6766 Rename member name to dwo_name. All uses updated.
6767 (hash_dwo_file): Include comp_dir in computation.
6768 (eq_dwo_file): Ditto.
6769 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6770 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6772 * psymtab.c (read_psymtabs_with_fullname): Don't call
6773 psymtab_to_fullname if the basenames are different.
6777 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6778 New entry about "fullname" presence.
6782 * NEWS: Mention x86_64/Cygwin as new native configuration.
6786 * dwarf2read.c (read_structure_type): Fix typo in comment.
6790 * NEWS: Mention "set/show debug aarch64", "set/show debug
6791 coff-pe-read" and "set/show debug mach-o".
6795 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6799 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6800 gdb_string.h is now in common/.
6804 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6805 under "New options".
6811 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6817 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6818 (remote_serial_write): New function.
6819 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6823 * NEWS: Mention TILE-Gx in "New native configurations" and
6824 "New targets" sections.
6828 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6829 (process_enumeration_scope): Simplify.
6831 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6833 (struct signatured_type): ... to here.
6834 (sig_type_ptr): New typedef.
6835 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6836 out of union 't'. All uses updated.
6837 (dw2_get_file_names_reader): Assert not called for a type unit.
6838 (dw2_get_file_names): Assert not called for a type unit or type
6840 (build_type_psymtabs_reader): Assert called for a type unit.
6841 (build_type_psymtab_dependencies): Assert called for a type unit group.
6843 * dwarf2read.c (free_dwo_file): Add comment.
6844 (dwarf2_per_objfile_free): Unref dwp bfd.
6848 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6849 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6850 (read_pe_exported_syms): Remove unused 'exportix'.
6851 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6852 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6853 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6857 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6858 (print_it_watchpoint): Remove unused 'bl'.
6859 (say_where): Remove unused 'uiout'.
6860 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6861 (bkpt_breakpoint_hit): Remove unused 'b'.
6862 (internal_bkpt_print_it): Remove unused 'uiout'.
6863 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6867 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6868 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6872 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6873 Delete arg is_dwp. All callers updated.
6874 (open_dwp_file): New function.
6875 (open_and_init_dwp_file): Call it.
6876 (get_dwp_file): New function.
6877 (lookup_dwo_cutu): Call it.
6879 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6880 unnecessary, cleanup.
6882 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6884 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6885 (lookup_dwo_unit): New function.
6886 (init_cutu_and_read_dies): Move DWO handling to new functions.
6888 * dwarf2read.c (struct signatured_type): Tweak comment.
6889 (struct dwo_unit): Tweak comment.
6890 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6891 (create_dwo_debug_info_hash_table): Tweak comment.
6892 (dwarf2_per_cu_offset_and_type): Tweak comment.
6894 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6895 missing .debug_types section.
6899 * corelow.c: Include "completer.h".
6900 (_initialize_corelow): Call add_target_with_completer with
6901 argument 'filename_completer'.
6902 * tracepoint.c: Likewise.
6903 * exec.c (_initialize_exec): Likewise.
6904 * target.c (add_target): Rename to ...
6905 (add_target_with_completer): ... this. Call set_cmd_completer
6906 if parameter completer is not NULL.
6908 * target.h: Include "command.h".
6909 (add_target_with_completer): Declare it.
6913 * coffread.c (is_import_fixup_symbol): New function.
6914 (record_minimal_symbol): Use is_import_fixup_symbol to
6915 detect import fixup symbols, and discard them.
6919 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6920 types hash table until we know we need it.
6922 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6925 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6926 All callers updated.
6927 (dw2_print_stats): Print #read CUs too.
6928 (dump_die_shallow): Print signatured types better.
6930 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6931 info_or_types_section to section. All uses updated.
6932 (struct dwo_unit): Ditto.
6936 * NEWS (New options): New section.
6937 (New options): Mention set/show remote trace-status-packet.
6938 * remote.c (PACKET_qTStatus): New enumeration value.
6939 (remote_get_trace_status): Skip sending qTStatus if the packet is
6940 disabled. Use packet_ok.
6941 (_initialize_remote): Register a configuration command for
6946 * symfile.c (find_separate_debug_file): Add comment.
6947 (terminate_after_last_dir_separator): Tweak comment.
6949 * dwarf2read.c (create_partial_symtab): Add forward decl.
6950 (create_partial_symtab): Move to be closer to other psymtab functions.
6951 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6953 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6954 (compute_symtab_includes): Remove unnecessary forward declaration.
6955 (die_needs_namespace): Add comment marking group of functions for
6956 dwarf2 name computation.
6958 * typeprint.c (_initialize_typeprint): Improve type help text.
6960 * python/python.c (finish_python_initialization): Provide suggestion
6961 for how to tell gdb to find its python files.
6967 * source.c (_initialize_source): Change back "set listsize" to an
6973 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6977 * top.c (history_size): Rename to ...
6978 (history_size_setshow_var): ... this. Add comment.
6979 (show_commands): Use readline's 'history_length' instead of
6980 computing the history length by calling history_get in a loop.
6981 (set_history_size_command): Error out for sizes over INT_MAX.
6982 Restore previous history size on invalid size.
6983 (init_history): If HISTSIZE is negative, leave the history size as
6985 (init_main): Adjust.
6989 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6990 coff_pe_read" command to "set debug coff-pe-read".
6994 * record.c (command_size_to_target_size): Fix size comparison.
6995 Change parameter type from pointer to integer to integer.
7000 * windows-nat.c (handle_output_debug_string): Avoid typecast
7001 from integer of different size warning.
7005 * windows-nat.c (handle_output_debug_string): Add empty line
7006 after local block variable definition.
7010 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7011 (net_open): Make 'polls' local unsigned.
7015 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7016 a zuinteger command instead of uinteger.
7020 * record-full.c (record_full_insn_num): Make it unsigned.
7021 (record_full_check_insn_num, record_full_message)
7022 (record_full_registers_change, record_full_xfer_partial): Remove
7023 record_full_insn_max_num check (it's always != 0).
7024 (record_full_info, record_full_restore): Use %u as format string.
7025 (): Use %u as format string.
7026 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7027 check (it's always != 0).
7031 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7032 and "set dcache size" commands zuinteger instead of uinteger.
7036 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7037 command zuinteger instead of uinteger.
7041 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7042 zuinteger instead of uinteger.
7046 * record.c (record_insn_history_size_setshow_var)
7047 (record_call_history_size_setshow_var): New globals.
7048 (command_size_to_target_size): New function.
7049 (cmd_record_insn_history, cmd_record_call_history): Use
7050 command_size_to_target_size instead of cast.
7051 (validate_history_size, set_record_insn_history_size)
7052 (set_record_call_history_size): New functions.
7053 (_initialize_record): Install set_record_insn_history_size and
7054 set_record_call_history_size as "set" hooks of "set record
7055 instruction-history-size" and "set record
7056 function-call-history-size".
7060 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7061 use with history_max_entries use. Remove FIXME note.
7065 * record-btrace.c (record_btrace_close): Call
7066 record_btrace_auto_disable.
7070 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7074 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7079 * c-exp.y (exp): Add new productions for destructors after '.' and
7081 (write_destructor_name): New function.
7086 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7087 value_struct_elt, not lookup_struct_elt_type.
7088 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7089 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7090 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7094 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7095 instead of '_mkdir'.
7099 * windows-nat.c (windows_get_absolute_argv0): New function.
7100 * windows-nat.h: Add its prototype.
7102 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7103 Use IS_DIR_SEPARATOR instead of looking for a character inside
7104 SLASH_STRING. Include filenames.h.
7105 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7106 relocate_gdb_directory works when passed gdb_program_name.
7107 Include windows-nat.h.
7111 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7112 * remote.c (trace_error): Remove the special handling of '2'.
7113 (readchar) <SERIAL_EOF>
7114 (readchar) <SERIAL_ERROR>
7115 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7116 (remote_get_trace_status): Call throw_exception if EX is
7118 * utils.c (perror_with_name): Rename to ...
7119 (throw_perror_with_name): ... here. New parameter errcode, describe it
7120 in the function comment.
7121 (perror_with_name): New function wrapper.
7122 * utils.h (enum errors): New stub declaration.
7123 (throw_perror_with_name): New declaration.
7129 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7130 Don't let the user set the value to UINT_MAX directly.
7131 <var_integer>: Don't let the user set the value to INT_MAX
7136 * remote.c (remote_unpush_target): New function.
7137 (remote_open_1): Remove two pop_target calls, update one comment, add
7138 comment to target_preopen call. Replace pop_target call by
7139 remote_unpush_target call.
7140 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7141 pop_target calls by remote_unpush_target calls.
7145 * linux-nat.c (linux_child_follow_fork): Don't call
7146 linux_enable_event_reporting.
7147 (linux_handle_extended_wait): Don't call
7148 linux_enable_event_reporting.
7152 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7153 use it to rewrite the trampoline buffers with type gdb_byte[], and
7154 undefine the macro. Remove char* cast.
7158 New commands "mt set per-command {space,time,symtab} {on,off}".
7160 * event-top.c: #include "maint.h".
7161 * main.c: #include "maint.h".
7162 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7163 timeval-utils.h, maint.h, cli/cli-setshow.h.
7164 (per_command_time, per_command_space): New static globals.
7165 (per_command_symtab): New static global.
7166 (per_command_setlist, per_command_showlist): New static globals.
7167 (struct cmd_stats): Move here from utils.c.
7168 (set_per_command_time): Renamed from set_display_time in utils.c
7169 and moved here. All callers updated.
7170 (set_per_command_space): Renamed from set_display_space in utils.c
7171 and moved here. All callers updated.
7172 (count_symtabs_and_blocks): New function.
7173 (report_command_stats): Moved here from utils.c. Add support for
7174 printing symtab stats. Only print data if enabled before command
7176 (make_command_stats_cleanup): Ditto.
7177 (sert_per_command_cmd, show_per_command_cmd): New functions.
7178 (_initialize_maint_cmds): Add new commands
7179 mt set per-command {space,time,symtab} {on,off}.
7180 * maint.h: New file.
7181 * top.c: #include "maint.h".
7182 * utils.c (reset_prompt_for_continue_wait_time): New function.
7183 (get_prompt_for_continue_wait_time): New function.
7184 * utils.h (reset_prompt_for_continue_wait_time): Declare
7185 (get_prompt_for_continue_wait_time): Declare.
7186 (make_command_stats_cleanup): Moved to maint.h.
7187 (set_display_time, set_display_space): Moved to maint.h and renamed
7188 to set_per_command_time, set_per_command_space.
7189 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7190 parse_binary_operation and made non-static. Don't call error,
7191 just return an error marker. All callers updated.
7192 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7196 * symfile.c (alloc_section_addr_info): Update header. Don't set
7197 'num_sections' field.
7198 (build_section_addr_info_from_section_table): Set 'num_sections'.
7199 (build_section_addr_info_from_bfd): Likewise.
7200 (build_section_addr_info_from_objfile): Remove dead loop
7202 (free_section_addr_info): Unconditionally call xfree.
7203 (relative_addr_info_to_section_offsets, addrs_section_sort)
7204 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7206 (syms_from_objfile_1): Remove dead 'if' condition. Check
7208 (add_symbol_file_command): Set 'num_sections'.
7209 * symfile-mem.c (symbol_file_add_from_memory): Set
7211 * somread.c (som_symfile_offsets): Remove dead loop condition.
7212 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7213 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7217 * tracepoint.h (decode_agent_options): Add 'trace_string'
7219 * tracepoint.c (decode_agent_options): Add 'trace_string'
7221 (validate_actionline): Update.
7222 (collect_symbol): Add 'trace_string' argument.
7223 (struct add_local_symbols_data) <trace_string>: New field.
7224 (do_collect_symbol): Update.
7225 (add_local_symbols): Add 'trace_string' argument.
7226 (encode_actions_1): Update.
7227 (trace_dump_actions): Update.
7228 * dwarf2loc.c (access_memory): Update.
7229 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7230 * ax-general.c (new_agent_expr): Update.
7231 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7232 (gen_trace_for_return_address): Add argument.
7233 (trace_kludge, trace_string_kludge): Remove.
7234 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7235 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7236 (gen_trace_for_var): Add 'trace_string' argument.
7237 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7238 (gen_printf, agent_eval_command_one): Update.
7243 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7244 Handle FILENAME token.
7248 * c-exp.y (YYPRINT): Define.
7249 (c_print_token): New function.
7253 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7257 * ctf.c: Include "gdb_stat.h".
7258 [USE_WIN32API]: New macro 'mkdir'.
7259 (ctf_start): Use permission bits macros if they are defined.
7263 * breakpoint.h (struct breakpoint): Add comment to
7264 extra_string indicating that this member is mallod'd.
7265 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7271 * cli/cli-setshow.c (do_set_command)
7272 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7273 the result of parsing the command argument. Throw error if the
7274 value is greater than UINT_MAX. Print the invalid value with
7276 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7277 result of parsing the command argument. Throw error if the value
7278 is greater than INT_MAX, not greater or equal. Also throw error
7279 if the value is less than INT_MIN. Print the invalid value with
7281 <var_zuinteger_unlimited>: Throw error if the value is greater
7282 than INT_MAX, not greater or equal.
7283 (do_show_command) <var_integer, var_zinteger,
7284 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7288 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7290 * dwarf2read.c (read_func_scope): Remove old FIXME.
7291 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7293 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7294 Unconditionally call via computed ops, if possible.
7295 * printcmd.c (address_info): Unconditionally call via computed ops,
7297 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7299 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7300 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7307 * coffread.c (coff_register_index): New global.
7308 (process_coff_symbol, coff_read_enum_type): Set
7309 SYMBOL_ACLASS_INDEX.
7310 (_initialize_coffread): Initialize new global.
7311 * dwarf2loc.c (locexpr_find_frame_base_location)
7312 (dwarf2_block_frame_base_locexpr_funcs)
7313 (loclist_find_frame_base_location)
7314 (dwarf2_block_frame_base_loclist_funcs): New.
7315 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7316 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7317 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7318 (dwarf2_block_frame_base_loclist_funcs): New.
7319 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7320 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7322 (read_func_scope): Update.
7323 (fixup_go_packaging, mark_common_block_symbol_computed)
7324 (var_decode_location, new_symbol_full, dwarf2_const_value):
7325 Set SYMBOL_ACLASS_INDEX.
7326 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7327 (_initialize_dwarf2_read): Initialize new globals.
7328 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7329 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7330 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7332 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7333 (_initialize_mdebugread): Initialize new globals.
7334 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7335 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7336 (stab_register_index, stab_regparm_index): New globals.
7337 (define_symbol, read_enum_type, common_block_end): Set
7338 SYMBOL_ACLASS_INDEX.
7339 (_initialize_stabsread): Initialize new globals.
7340 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7342 (MAX_SYMBOL_IMPLS): New define.
7343 (register_symbol_computed_impl, register_symbol_block_impl)
7344 (register_symbol_register_impl)
7345 (initialize_ordinary_address_classes): New functions.
7346 (_initialize_symtab): Call initialize_ordinary_address_classes.
7347 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7348 (struct symbol_impl): New.
7349 (SYMBOL_ACLASS_BITS): New define.
7350 (struct symbol) <aclass, ops>: Remove fields.
7351 <aclass_index>: New field.
7352 (symbol_impls): Declare.
7353 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7354 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7355 (register_symbol_computed_impl, register_symbol_block_impl)
7356 (register_symbol_register_impl): Declare.
7357 (struct symbol_computed_ops): Add location_has_loclist.
7358 (struct symbol_block_ops): New.
7359 (SYMBOL_BLOCK_OPS): New.
7360 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7364 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7365 (print_partial_symbols, recursively_search_psymtabs): Use
7370 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7371 addtion, subtraction, multiplication and division binary operator.
7376 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7377 * bsd-kvm.c (bsd_kvm_close): Likewise.
7378 * bsd-uthread.c (bsd_uthread_close): Likewise.
7379 * corelow.c (core_close): Likewise.
7380 (core_close_cleanup): Remove parameter quitting from a caller.
7381 * event-top.c (async_disconnect): Likewise.
7382 * exec.c (exec_close_1): Remove parameter quitting.
7383 * go32-nat.c (go32_close): Likewise.
7384 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7385 parameter quitting from a caller.
7386 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7388 (mips_linux_close): Remove parameter quitting. Remove parameter
7389 quitting from a caller.
7390 * monitor.c (monitor_close): Remove parameter quitting.
7391 * monitor.h (monitor_close): Likewise.
7392 * record-btrace.c (record_btrace_close): Likewise.
7393 * record-full.c (record_full_close): Likewise.
7394 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7395 it also from fprintf_unfiltered.
7396 * remote-mips.c (mips_close): Remove parameter quitting.
7397 (mips_detach): Remove parameter quitting from a caller.
7398 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7399 (gdbsim_close): Remove duplicate function comment. Remove parameter
7400 quitting and remove it also from printf_filtered.
7401 * remote.c (remote_close): Remove parameter quitting.
7402 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7403 * target.c (update_current_target): Remove parameter int from to_close
7405 (push_target, unpush_target, pop_target): Remove parameter quitting from
7407 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7408 Remove parameter quitting from a caller.
7409 (target_preopen): Remove parameter quitting from a caller.
7410 (target_close): Remove parameter quitting. Remove parameter quitting
7411 from a caller two times. Remove parameter quitting also from
7413 * target.h (struct target_ops): Remove parameter quitting and as int
7414 from fields to_xclose and to_close.
7415 (extern struct target_ops current_target):
7416 (target_close, pop_all_targets): Remove parameter quitting. Update the
7418 (pop_all_targets_above): Remove parameter quitting.
7419 * top.c (quit_target): Remove parameter quitting from a caller.
7420 * tracepoint.c (tfile_close): Remove parameter quitting.
7421 * windows-nat.c (windows_close): Remove parameter quitting.
7425 * windows-nat.c (handle_output_debug_string): Replace call
7426 to string_to_core_addr with call to strtoull.
7430 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7431 and write it to CTF metadata.
7435 * windows-nat.c (handle_output_debug_string): Change type of n to
7436 SIZE_T to avoid crash on 64 bit systems.
7440 * python/python-internal.h (HAVE_SNPRINTF)
7441 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7442 about redefinition of snprintf by pyerrors.h.
7446 * remote-sim.c (sim_command_completer): Make char arguments const.
7451 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7455 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7457 (get_file_crc): Move from symfile.c.
7458 (gdb_bfd_crc): New function.
7459 * gdb_bfd.h (gdb_bfd_crc): Declare.
7460 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7461 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7462 (separate_debug_file_exists): Use gdb_bfd_crc.
7466 * symfile.c (get_debug_link_info): Remove.
7467 (find_separate_debug_file_by_debuglink): Use
7468 bfd_get_debug_link_info.
7472 * symtab.c (error_in_psymtab_expansion): New function.
7473 (lookup_symbol_aux_quick)
7474 (basic_lookup_transparent_type_quick): Remove "last resort"
7475 code. Use error_in_psymtab_expansion.
7480 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7481 any successful compare_filenames_for_search or FILENAME_CMP.
7482 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7483 * symtab.c (iterate_over_some_symtabs): Likewise.
7487 * source.c (print_source_lines_base): Make a local copy of
7493 * source.c (print_source_lines_base): Suppress "file" for TUI.
7500 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7502 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7507 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7508 status to tfile if trace is stopped by command 'tstop'.
7512 * tracepoint.c (tfile_write_status): Write trace notes and user
7513 name into tfile if they are not NULL.
7518 * Makefile.in (REMOTE_OBS): Add ctf.o.
7519 (SFILES): Add ctf.c.
7520 (HFILES_NO_SRCDIR): Add ctf.h.
7521 * ctf.c, ctf.h: New files.
7522 * tracepoint.c: Include 'ctf.h'.
7523 (collect_pseudocommand): Remove static.
7524 (trace_save_command): Parse option "-ctf".
7525 Produce different trace file writers per option.
7526 Adjust output message.
7527 (trace_save_tfile, trace_save_ctf): New.
7528 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7529 * mi/mi-main.c: Include 'ctf.h'.
7530 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7531 trace_save_tfile or trace_save_ctf.
7532 * NEWS: Mention these changes.
7536 * tracepoint.c (trace_file_writer_xfree): New.
7537 (struct tfile_writer_data): New.
7538 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7539 (tfile_write_header, tfile_write_regblock_type): New.
7540 (tfile_write_status, tfile_write_uploaded_tsv): New.
7541 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7542 (tfile_write_raw_data, (tfile_end): New.
7543 (tfile_write_ops): New global variable.
7544 (TRACE_WRITE_R_BLOCK): New macro.
7545 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7546 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7547 (TRACE_WRITE_V_BLOCK): New macro.
7548 (trace_save): Add extra one parameter WRITER. Make it static.
7549 Use WRITER to writer trace.
7550 (tfile_trace_file_writer_new): New.
7551 (trace_save_command): Caller update.
7552 (trace_save_tfile): Write trace data in TFILE format.
7553 * tracepoint.h (struct trace_frame_write_ops): New.
7554 (struct trace_file_write_ops): New.
7555 (struct trace_file_writer): New.
7556 (trace_save): Remove its declaration.
7557 (trace_save_tfile): Declare it.
7558 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7559 instead of trace_save.
7563 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7567 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7569 * demangle.c (current_demangling_style_string): Make it const.
7570 (set_demangling_command): Assert the demangling style is known.
7571 Remove all handling of unknown styles. Set
7572 'current_demangling_style_string' to an element of the
7573 demangling_style_names array.
7574 (set_demangling_style): Delete.
7575 (_initialize_demangler): Set current_demangling_style_string to the
7576 element of the demangling_style_names array that corresponds to
7577 the default demangling style. Remove FIXME note. Don't call
7578 set_demangling_style.
7579 * gdb-demangle.h (set_demangling_style): Remove declaration.
7583 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7585 (ada_make_symbol_completion_list): Make "text0" parameter const.
7586 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7587 * breakpoint.c (condition_completer): Make "text" and "word"
7588 parameters const. Adjust.
7589 (check_tracepoint_command): Adjust to validate_actionline
7591 (catch_syscall_completer): Make "text" and "word" parameters
7593 * cli/cli-cmds.c (show_user): Make "comname" local const.
7594 (valid_command_p): Make "command" parameter const.
7595 (alias_command): Make "alias_prefix" and "command_prefix" locals
7597 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7598 (add_alias_cmd): Make "name" and "oldname" parameters const.
7599 Adjust. No longer make copy of OLDNAME.
7600 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7601 (add_setshow_cmd_full, add_setshow_enum_cmd)
7602 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7603 (add_setshow_filename_cmd, add_setshow_string_cmd)
7604 (add_setshow_string_noescape_cmd)
7605 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7606 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7607 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7608 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7609 Make "name" parameter const.
7610 (help_cmd): Rename "command" parameter to "arg". New const local
7612 (find_cmd): Make "command" parameter const.
7613 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7614 deprecated_cmd_warning prototype change.
7615 (undef_cmd_error): Make "cmdtype" parameter const.
7616 (lookup_cmd): Make "line" parameter const.
7617 (deprecated_cmd_warning): Change type of "text" parameter to
7618 pointer to const char, from pointer to pointer to char. Adjust.
7619 (lookup_cmd_composition): Make "text" parameter const.
7620 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7622 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7624 * cli/cli-script.c (validate_comname): Make "tem" local const.
7625 (define_command): New const local "tem_c". Use it in calls to
7627 (document_command): Make "tem" and "comfull" locals const.
7628 (show_user_1): Make "prefix" and "name" parameters const.
7629 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7631 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7632 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7633 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7634 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7635 (complete_on_enum, add_setshow_enum_cmd)
7636 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7637 (add_setshow_filename_cmd, add_setshow_string_cmd)
7638 (add_setshow_string_noescape_cmd)
7639 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7640 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7641 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7642 Change prototypes, constifying strings.
7643 * completer.c (noop_completer, filename_completer): Make "text"
7644 and "prefix" parameters const.
7645 (location_completer, expression_completer)
7646 (complete_line_internal): Make "text" and "prefix" parameters
7648 (command_completer, signal_completer): Make "text" and "prefix"
7650 * completer.h (noop_completer, filename_completer)
7651 (expression_completer, location_completer, command_completer)
7652 (signal_completer): Change prototypes.
7653 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7655 * cp-abi.c (cp_abi_completer): Likewise.
7656 * expression.h (parse_expression_for_completion): Change
7658 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7660 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7661 * infrun.c (handle_completer): Make "text" and "word" parameters
7663 * interps.c (interpreter_completer): Make "text" and "word"
7665 * language.h (struct language_defn)
7666 <la_make_symbol_completion_list>: Make "text" and "word"
7668 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7669 (parse_exp_in_context): Rename to ...
7670 (parse_exp_in_context_1): ... this.
7671 (parse_exp_in_context): Reimplement, with const hack from
7673 (parse_expression_for_completion): Make "string" parameter const.
7674 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7675 to pointer to const char. Adjust.
7676 (print_command_1): Make "exp" parameter const.
7677 (output_command): Rename to ...
7678 (output_command_const): ... this. Make "exp" parameter const.
7679 (output_command): Reimplement.
7680 (x_command): Adjust.
7681 (display_command): Rename "exp" parameter to "arg". New "exp"
7682 local, const version of "arg".
7683 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7684 "cmd_name" local const.
7685 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7687 (cmdpy_completer): Make "text" and "word" parameters const.
7688 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7689 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7691 * remote.c (_initialize_remote): Make "cmd_name" local const.
7692 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7693 parameters const. Adjust.
7694 (completion_list_add_fields): Make "sym_text", "text" and "word"
7696 (struct add_name_data) <sym_text, text, word>: Make fields const.
7697 (default_make_symbol_completion_list_break_on): Make "text" and
7698 "word" parameters const. Adjust locals.
7699 (default_make_symbol_completion_list)
7700 (make_symbol_completion_list, make_symbol_completion_type)
7701 (make_symbol_completion_list_fn): Make "text" and "word"
7703 (make_file_symbol_completion_list): Make "text", "word" and
7704 "srcfile" parameters const. Adjust locals.
7705 (add_filename_to_list): Make "text" and "word" parameters const.
7706 (struct add_partial_filename_data) <text, word>: Make fields
7708 (make_source_files_completion_list): Make "text" and "word"
7710 * symtab.h (default_make_symbol_completion_list_break_on)
7711 (default_make_symbol_completion_list, make_symbol_completion_list)
7712 (make_symbol_completion_type enum type_code)
7713 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7714 (make_source_files_completion_list): Change prototype.
7715 * top.c (execute_command): Adjust to pass pointer to pointer to
7716 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7718 (set_verbose): Make "cmdname" local const.
7719 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7721 (validate_actionline): Make "line" parameter a pointer to const
7723 (encode_actions_1): Make "action_exp" local const, and adjust.
7724 (encode_actions): Adjust.
7725 (replace_comma): Delete.
7726 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7727 const, and adjust. Don't frob the action string while splitting
7728 it at commas. Instead, make a copy of each split substring in
7730 (trace_dump_command): Adjust to validate_actionline prototype
7732 * tracepoint.h (decode_agent_options, decode_agent_options)
7733 (encode_actions, validate_actionline): Change prototypes.
7734 * valprint.h (output_command): Delete declaration.
7735 (output_command_const): Declare.
7736 * value.c (function_destroyer): Cast const away in xfree call.
7740 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7741 rather than casting 'const char * const *' to 'const char **'.
7742 * ada-lex.l (processInt): Make "trailer" local const. Remove
7743 'const char **' cast.
7744 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7745 locals, and use those as strtol output pointer, instead than doing
7746 invalid casts to from 'const char **' to 'char **'.
7747 (_initialize_demangle): Remove cast.
7748 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7749 locals, and use those as strtol output pointer, instead than doing
7750 invalid casts to from 'const char **' to 'char **'.
7751 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7753 * stap-probe.c (stap_parse_register_operand)
7754 (stap_parse_single_operand): Likewise.
7758 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7759 the last matched 'V' blcok in trace frame.
7763 * NEWS: Create a new section for the next release branch.
7764 Rename the section of the current branch, now that it has
7769 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7770 * version.in: Bump version to 7.6.50.20130312-cvs.
7774 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7775 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7776 Remove temporary copy of input string.
7777 (mi_execute_command_wrapper): Make "cmd" const.
7778 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7779 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7781 (mi_parse): Make "cmd" const.
7783 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7787 * ada-lang.c (ada_read_renaming_var_value): Pass const
7788 pointer to expression string to parse_exp_1.
7789 (create_excep_cond_exprs): Likewise.
7790 * ax-gdb.c (agent_eval_command_one): Likewise.
7791 (maint_agent_printf_command): Likewise.
7792 Constify much of the string handling/parsing.
7793 * breakpoint.c (set_breakpoint_condition): Pass const
7794 pointer to expression string to parse_exp_1.
7795 (update_watchpoint): Likewise.
7796 (parse_cmd_to_aexpr): Constify string handling.
7797 Pass const pointer to parse_exp_1.
7798 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7799 (find_condition_and_thread): Likewise.
7801 (watch_command_1): Make "arg" const.
7802 Constify string handling.
7803 Copy the expression string instead of changing the input
7805 (update_breakpoint_location): Pass const pointer to
7807 * eval.c (parse_and_eval_address): Make "exp" const.
7808 (parse_to_comma_and_eval): Make "expp" const.
7809 (parse_and_eval): Make "exp" const.
7810 * expression.h (parse_expression): Make argument const.
7811 (parse_exp_1): Make first argument const.
7812 * findcmd.c (parse_find_args): Treat "args" as const.
7813 * linespec.c (parse_linespec): Pass const pointer to
7814 linespec_expression_to_pc.
7815 (linespec_expression_to_pc): Make "exp_ptr" const.
7816 * parse.c (parse_exp_1): Make "stringptr" const.
7817 Make a copy of the expression to pass to parse_exp_in_context until
7818 this whole interface can be constified.
7819 (parse_expression): Make "string" const.
7820 * printcmd.c (ui_printf): Treat "arg" as const.
7821 Handle const strings.
7822 * tracepoint.c (validate_actionline): Pass const pointer to
7823 all calls to parse_exp_1.
7824 (encode_actions_1): Likewise.
7825 * value.h (parse_to_comma_and_eval): Make argument const.
7826 (parse_and_eval_address): Likewise.
7827 (parse_and_eval): Likewise.
7828 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7829 (varobj_set_value): Likewise.
7830 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7831 constify string handling.
7832 Pass const pointers to parse_and_eval_address and
7833 parse_to_comman_and_eval.
7834 * cli/cli-utils.c (skip_to_space): Rename to ...
7835 (skip_to_space_const): ... this. Handle const strings.
7836 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7837 skip_to_space_const.
7838 (skip_to_space_const): Declare.
7839 * common/format.c (parse_format_string): Make "arg" const.
7840 Handle const strings.
7841 * common/format.h (parse_format_string): Make "arg" const.
7842 * gdbserver/ax.c (ax_printf): Make "format" const.
7843 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7844 of the expression string.
7848 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7853 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7854 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7859 * ada-lex.l (rules): Only recognize 'thread' as a
7860 delimiter when followed by numerals, as for c-exp.y.
7861 Use new rewind_to_char function to rewind the input for
7862 expression-delimiting tokens.
7863 (rewind_to_char): New function.
7868 * configure: Regenerate.
7869 * configure.ac (check dynamic export flag): Link python test with
7875 * linespec.c (find_linespec_symbols): Call find_function_symbols
7876 first, and then call lookup_prefix_sym/find_method.
7880 * charset.c (convert_between_encodings): Don't cast between
7881 different pointer to pointer types. Instead, make the 'inp' local
7882 be of the type iconv expects.
7883 (wchar_iterate): Don't cast between different pointer to pointer
7884 types. Instead, use new pointer local of the type iconv expects.
7885 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7886 Add new local of type char pointer, and use it to get a
7887 char/string view of the byte buffer, instead of casting between
7888 pointer to pointer types.
7892 * remote.c (remote_set_trace_buffer_size): Move != operator
7893 to the start of next line to fix an ARI warning.
7897 * NEWS: Add record changes.
7901 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7902 the instruction history disassembly.
7903 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7904 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7908 * Makefile.in (SFILES): Add record-btrace.c
7909 (COMMON_OBS): Add record-btrace.o
7910 * record-btrace.c: New.
7911 * objfiles.c: Include btrace.h.
7912 (free_objfile): call btrace_free_objfile.
7916 * target.c (target_call_history, target_call_history_from,
7917 target_call_history_range): New.
7918 * target.h (target_ops) <to_call_history, to_call_history_from,
7919 to_call_history_range>: New fields.
7920 (target_call_history, target_call_history_from,
7921 target_call_history_range): New declaration.
7922 * record.c (get_call_history_modifiers, cmd_record_call_history,
7923 record_call_history_size): New.
7924 (_initialize_record): Add the "record function-call-history" command.
7925 Add "set/show record function-call-history-size" commands.
7926 * record.h (record_print_flag): New.
7930 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7931 to_insn_history_range>: New fields.
7932 (target_insn_history): New.
7933 (target_insn_history_from): New.
7934 (target_insn_history_range): New.
7935 * target.c (target_insn_history): New.
7936 (target_insn_history_from): New.
7937 (target_insn_history_range): New.
7938 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7939 (record_insn_history_size): New.
7940 (get_insn_number): New.
7941 (get_context_size): New.
7943 (get_insn_history_modifiers): New.
7944 (cmd_record_insn_history): New.
7945 (_initialize_record): Add "set/show record instruction-history-size"
7946 command. Add "record instruction-history" command.
7950 * record.h (record_disconnect): New.
7951 (record_detach): New.
7952 (record_mourn_inferior): New.
7954 * record-full.c (record_disconnect, record_detach,
7955 record_mourn_inferior, record_kill): Move to...
7956 * record.c: ...here.
7959 (record_unpush): New.
7960 (cmd_record_stop): Call record_stop. Replace unpush_target
7961 call with record_unpush call.
7962 (record_disconnect, record_detach): Assert that the target
7963 is of record stratum. Call record_unpush, record_stop, and
7965 (record_mourn_inferior, record_kill): Assert that the target
7966 is of record stratum. Call record_unpush and DEBUG.
7970 * record-full.h, record-full.c (record_memory_query): Rename
7972 (record_full_memory_query): ...this. Update all users.
7973 (record_arch_list_add_reg): Rename to ...
7974 (record_full_arch_list_add_reg): ...this. Update all users.
7975 (record_arch_list_add_mem): Rename to ...
7976 (record_full_arch_list_add_mem): ...this. Update all users.
7977 (record_arch_list_add_end): Rename to ...
7978 (record_full_arch_list_add_end): ...this. Update all users.
7979 (record_gdb_operation_disable_set): Rename to ...
7980 (record_full_gdb_operation_disable_set): ...this.
7985 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7986 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7987 (RECORD_IS_REPLAY): Renamed to ...
7988 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7989 (RECORD_FILE_MAGIC): Renamed to ...
7990 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7991 (record_mem_entry): Renamed to ...
7992 (record_full_mem_entry): ... this. Updated all users.
7993 (record_reg_entry): Renamed to ...
7994 (record_full_reg_entry): ... this. Updated all users.
7995 (record_end_entry): Renamed to ...
7996 (record_full_end_entry): ... this. Updated all users.
7997 (record_type) <record_end, record_reg, record_mem>: Renamed
7999 (record_full_type) <record_full_end, record_full_reg,
8000 record_full_mem>: ... this. Updated all users.
8001 (record_entry): Renamed to ...
8002 (record_full_entry): ... this. Updated all users.
8003 (record_core_buf_entry): Renamed to ...
8004 (record_full_core_buf_entry): ... this. Updated all users.
8005 (record_core_regbuf): Renamed to ...
8006 (record_full_core_regbuf): ... this. Updated all users.
8007 (record_core_start): Renamed to ...
8008 (record_full_core_start): ... this. Updated all users.
8009 (record_core_end): Renamed to ...
8010 (record_full_core_end): ... this. Updated all users.
8011 (record_core_buf_list): Renamed to ...
8012 (record_full_core_buf_list): ... this. Updated all users.
8013 (record_first): Renamed to ...
8014 (record_full_first): ... this. Updated all users.
8015 (record_list): Renamed to ...
8016 (record_full_list): ... this. Updated all users.
8017 (record_arch_list_head): Renamed to ...
8018 (record_full_arch_list_head): ... this. Updated all users.
8019 (record_arch_list_tail): Renamed to ...
8020 (record_full_arch_list_tail): ... this. Updated all users.
8021 (record_stop_at_limit): Renamed to ...
8022 (record_full_stop_at_limit): ... this. Updated all users.
8023 (record_insn_max_num): Renamed to ...
8024 (record_full_insn_max_num): ... this. Updated all users.
8025 (record_insn_num): Renamed to ...
8026 (record_full_insn_num): ... this. Updated all users.
8027 (record_insn_count): Renamed to ...
8028 (record_full_insn_count): ... this. Updated all users.
8029 (record_ops): Renamed to ...
8030 (record_full_ops): ... this. Updated all users.
8031 (record_core_ops): Renamed to ...
8032 (record_full_core_ops): ... this. Updated all users.
8033 (set_record_cmdlist): Renamed to ...
8034 (set_record_full_cmdlist): ... this. Updated all users.
8035 (show_record_cmdlist): Renamed to ...
8036 (show_record_full_cmdlist): ... this. Updated all users.
8037 (record_cmdlist): Renamed to ...
8038 (record_full_cmdlist): ... this. Updated all users.
8039 (record_beneath_to_resume_ops): Renamed to ...
8040 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8041 (record_beneath_to_resume): Renamed to ...
8042 (record_full_beneath_to_resume): ... this. Updated all users.
8043 (record_beneath_to_wait_ops): Renamed to ...
8044 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8045 (record_beneath_to_wait): Renamed to ...
8046 (record_full_beneath_to_wait): ... this. Updated all users.
8047 (record_beneath_to_store_registers_ops): Renamed to ...
8048 (record_full_beneath_to_store_registers_ops): ... this.
8050 (record_beneath_to_store_registers): Renamed to ...
8051 (record_full_beneath_to_store_registers): ... this.
8053 (record_beneath_to_xfer_partial_ops): Renamed to ...
8054 (record_full_beneath_to_xfer_partial_ops): ... this.
8056 (record_beneath_to_xfer_partial): Renamed to ...
8057 (record_full_beneath_to_xfer_partial): ... this.
8059 (record_beneath_to_insert_breakpoint): Renamed to ...
8060 (record_full_beneath_to_insert_breakpoint): ... this.
8062 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8063 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8065 (record_beneath_to_stopped_data_address): Renamed to ...
8066 (record_full_beneath_to_stopped_data_address): ... this.
8068 (record_beneath_to_async): Renamed to ...
8069 (record_full_beneath_to_async): ... this. Updated all users.
8070 (record_goto_insn): Renamed to ...
8071 (record_full_goto_insn): ... this. Updated all users.
8072 (record_save): Renamed to ...
8073 (record_full_save): ... this. Updated all users.
8074 (record_reg_alloc): Renamed to ...
8075 (record_full_reg_alloc): ... this. Updated all users.
8076 (record_reg_release): Renamed to ...
8077 (record_full_reg_release): ... this. Updated all users.
8078 (record_mem_alloc): Renamed to ...
8079 (record_full_mem_alloc): ... this. Updated all users.
8080 (record_mem_release): Renamed to ...
8081 (record_full_mem_release): ... this. Updated all users.
8082 (record_end_alloc): Renamed to ...
8083 (record_full_end_alloc): ... this. Updated all users.
8084 (record_end_release): Renamed to ...
8085 (record_full_end_release): ... this. Updated all users.
8086 (record_entry_release): Renamed to ...
8087 (record_full_entry_release): ... this. Updated all users.
8088 (record_list_release): Renamed to ...
8089 (record_full_list_release): ... this. Updated all users.
8090 (record_list_release_following): Renamed to ...
8091 (record_full_list_release_following): ... this.
8093 (record_list_release_first): Renamed to ...
8094 (record_full_list_release_first): ... this. Updated all users.
8095 (record_arch_list_add): Renamed to ...
8096 (record_full_arch_list_add): ... this. Updated all users.
8097 (record_get_loc): Renamed to ...
8098 (record_full_get_loc): ... this. Updated all users.
8099 (record_check_insn_num): Renamed to ...
8100 (record_full_check_insn_num): ... this. Updated all users.
8101 (record_arch_list_cleanups): Renamed to ...
8102 (record_full_arch_list_cleanups): ... this. Updated all users.
8103 (record_message): Renamed to ...
8104 (record_full_message): ... this. Updated all users.
8105 (record_message_wrapper): Renamed to ...
8106 (record_full_message_wrapper): ... this. Updated all users.
8107 (record_message_wrapper_safe): Renamed to ...
8108 (record_full_message_wrapper_safe): ... this. Updated all users.
8109 (record_gdb_operation_disable): Renamed to ...
8110 (record_full_gdb_operation_disable): ... this. Updated all users.
8111 (record_hw_watchpoint): Renamed to ...
8112 (record_full_hw_watchpoint): ... this. Updated all users.
8113 (record_exec_insn): Renamed to ...
8114 (record_full_exec_insn): ... this. Updated all users.
8115 (record_restore): Renamed to ...
8116 (record_full_restore): ... this. Updated all users.
8117 (record_async_inferior_event_token): Renamed to ...
8118 (record_full_async_inferior_event_token): ... this.
8120 (record_async_inferior_event_handler): Renamed to ...
8121 (record_full_async_inferior_event_handler): ... this.
8123 (record_core_open_1): Renamed to ...
8124 (record_full_core_open_1): ... this. Updated all users.
8125 (record_open_1): Renamed to ...
8126 (record_full_open_1): ... this. Updated all users.
8127 (record_open): Renamed to ...
8128 (record_full_open): ... this. Updated all users.
8129 (record_close): Renamed to ...
8130 (record_full_close): ... this. Updated all users.
8131 (record_resume_step): Renamed to ...
8132 (record_full_resume_step): ... this. Updated all users.
8133 (record_resumed): Renamed to ...
8134 (record_full_resumed): ... this. Updated all users.
8135 (record_execution_dir): Renamed to ...
8136 (record_full_execution_dir): ... this. Updated all users.
8137 (record_resume): Renamed to ...
8138 (record_full_resume): ... this. Updated all users.
8139 (record_get_sig): Renamed to ...
8140 (record_full_get_sig): ... this. Updated all users.
8141 (record_sig_handler): Renamed to ...
8142 (record_full_sig_handler): ... this. Updated all users.
8143 (record_wait_cleanups): Renamed to ...
8144 (record_full_wait_cleanups): ... this. Updated all users.
8145 (record_wait_1): Renamed to ...
8146 (record_full_wait_1): ... this. Updated all users.
8147 (record_wait): Renamed to ...
8148 (record_full_wait): ... this. Updated all users.
8149 (record_stopped_by_watchpoint): Renamed to ...
8150 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8151 (record_disconnect): Renamed to ...
8152 (record_full_disconnect): ... this. Updated all users.
8153 (record_detach): Renamed to ...
8154 (record_full_detach): ... this. Updated all users.
8155 (record_mourn_inferior): Renamed to ...
8156 (record_full_mourn_inferior): ... this. Updated all users.
8157 (record_kill): Renamed to ...
8158 (record_full_kill): ... this. Updated all users.
8159 (record_stopped_data_address): Renamed to ...
8160 (record_full_stopped_data_address): ... this. Updated all users.
8161 (record_registers_change): Renamed to ...
8162 (record_full_registers_change): ... this. Updated all users.
8163 (record_store_registers): Renamed to ...
8164 (record_full_store_registers): ... this. Updated all users.
8165 (record_xfer_partial): Renamed to ...
8166 (record_full_xfer_partial): ... this. Updated all users.
8167 (record_breakpoint): Renamed to ...
8168 (record_full_breakpoint): ... this. Updated all users.
8169 (record_breakpoint_p): Renamed to ...
8170 (record_full_breakpoint_p): ... this. Updated all users.
8171 (record_breakpoints): Renamed to ...
8172 (record_full_breakpoints): ... this. Updated all users.
8173 (record_sync_record_breakpoints): Renamed to ...
8174 (record_full_sync_record_breakpoints): ... this.
8176 (record_init_record_breakpoints): Renamed to ...
8177 (record_full_init_record_breakpoints): ... this.
8179 (record_insert_breakpoint): Renamed to ...
8180 (record_full_insert_breakpoint): ... this. Updated all users.
8181 (record_remove_breakpoint): Renamed to ...
8182 (record_full_remove_breakpoint): ... this. Updated all users.
8183 (record_can_execute_reverse): Renamed to ...
8184 (record_full_can_execute_reverse): ... this. Updated all users.
8185 (record_get_bookmark): Renamed to ...
8186 (record_full_get_bookmark): ... this. Updated all users.
8187 (record_goto_bookmark): Renamed to ...
8188 (record_full_goto_bookmark): ... this. Updated all users.
8189 (record_async): Renamed to ...
8190 (record_full_async): ... this. Updated all users.
8191 (record_can_async_p): Renamed to ...
8192 (record_full_can_async_p): ... this. Updated all users.
8193 (record_is_async_p): Renamed to ...
8194 (record_full_is_async_p): ... this. Updated all users.
8195 (record_execution_direction): Renamed to ...
8196 (record_full_execution_direction): ... this. Updated all users.
8197 (record_info): Renamed to ...
8198 (record_full_info): ... this. Updated all users.
8199 (record_delete): Renamed to ...
8200 (record_full_delete): ... this. Updated all users.
8201 (record_is_replaying): Renamed to ...
8202 (record_full_is_replaying): ... this. Updated all users.
8203 (record_goto_entry): Renamed to ...
8204 (record_full_goto_entry): ... this. Updated all users.
8205 (record_goto_begin): Renamed to ...
8206 (record_full_goto_begin): ... this. Updated all users.
8207 (record_goto_end): Renamed to ...
8208 (record_full_goto_end): ... this. Updated all users.
8209 (record_goto): Renamed to ...
8210 (record_full_goto): ... this. Updated all users.
8211 (init_record_ops): Renamed to ...
8212 (init_record_full_ops): ... this. Updated all users.
8213 (record_core_resume): Renamed to ...
8214 (record_full_core_resume): ... this. Updated all users.
8215 (record_core_kill): Renamed to ...
8216 (record_full_core_kill): ... this. Updated all users.
8217 (record_core_fetch_registers): Renamed to ...
8218 (record_full_core_fetch_registers): ... this. Updated all users.
8219 (record_core_prepare_to_store): Renamed to ...
8220 (record_full_core_prepare_to_store): ... this. Updated all users.
8221 (record_core_store_registers): Renamed to ...
8222 (record_full_core_store_registers): ... this. Updated all users.
8223 (record_core_xfer_partial): Renamed to ...
8224 (record_full_core_xfer_partial): ... this. Updated all users.
8225 (record_core_insert_breakpoint): Renamed to ...
8226 (record_full_core_insert_breakpoint): ... this. Updated all users.
8227 (record_core_remove_breakpoint): Renamed to ...
8228 (record_full_core_remove_breakpoint): ... this. Updated all users.
8229 (record_core_has_execution): Renamed to ...
8230 (record_full_core_has_execution): ... this. Updated all users.
8231 (init_record_core_ops): Renamed to ...
8232 (init_record_full_core_ops): ... this. Updated all users.
8233 (cmd_record_restore): Renamed to ...
8234 (cmd_record_full_restore): ... this. Updated all users.
8235 (record_save_cleanups): Renamed to ...
8236 (record_full_save_cleanups): ... this. Updated all users.
8237 (cmd_record_start): Renamed to ...
8238 (cmd_record_full_start): ... this. Updated all users.
8239 (set_record_insn_max_num): Renamed to ...
8240 (set_record_full_insn_max_num): ... this. Updated all users.
8241 (set_record_command): Renamed to ...
8242 (set_record_full_command): ... this. Updated all users.
8243 (show_record_command): Renamed to ...
8244 (show_record_full_command): ... this. Updated all users.
8245 (_initialize_record): Renamed to ...
8246 (_initialize_record_full): ... this. Updated all users.
8250 * record.h: Split into this and ...
8251 * record-full.h: ... this.
8252 * record.c: Split into this and ...
8253 * record-full.c: ... this.
8254 * target.h (target_ops): Add new fields to_info_record,
8255 to_save_record, to_delete_record, to_record_is_replaying,
8256 to_goto_record_begin, to_goto_record_end, to_goto_record.
8257 (target_info_record): New.
8258 (target_save_record): New.
8259 (target_supports_delete_record): New.
8260 (target_delete_record): New.
8261 (target_record_is_replaying): New.
8262 (target_goto_record_begin): New.
8263 (target_goto_record_end): New.
8264 (target_goto_record): New.
8265 * target.c (target_info_record): New.
8266 (target_save_record): New.
8267 (target_supports_delete_record): New.
8268 (target_delete_record): New.
8269 (target_record_is_replaying): New.
8270 (target_goto_record_begin): New.
8271 (target_goto_record_end): New.
8272 (target_goto_record): New.
8273 * record.h: Declare struct cmd_list_element.
8274 (record_cmdlist): New declaration.
8275 (set_record_cmdlist): New declaration.
8276 (show_record_cmdlist): New declaration.
8277 (info_record_cmdlist): New declaration.
8278 (cmd_record_goto): New declaration.
8279 * record.c: Remove unnecessary includes.
8281 (cmd_record_goto): Remove declaration.
8282 (record_cmdlist): Now extern. Initialize.
8283 (set_record_cmdlist): Now extern. Initialize.
8284 (show_record_cmdlist): Now extern. Initialize.
8285 (info_record_cmdlist): Now extern. Initialize.
8286 (find_record_target): New.
8287 (require_record_target): New.
8288 (cmd_record_start): Update.
8289 (cmd_record_delete): Remove target-specific code.
8290 Call target_delete_record.
8291 (cmd_record_stop): Unpush any record target.
8292 (set_record_insn_max_num): Move to record-full.c
8293 (set_record_command): Add comment.
8294 (show_record_command): Add comment.
8295 (info_record_command): Update comment.
8296 Remove target-specific code.
8297 Call the record target's to_info_record.
8298 (cmd_record_start): New.
8299 (cmd_record_goto): Now extern.
8300 Remove target-specific code.
8301 Call target_goto_begin, target_goto_end, or target_goto.
8302 (_initialize_record): Move record target ops initialization to
8304 Change "record" command help text.
8305 Move "record restore", "record set", and "record show" commands to
8307 * Makefile.in (SFILES): Add record-full.c.
8308 (HFILES_NO_SRCDIR): Add record-full.h.
8309 (COMMON_OBS): Add record-full.o.
8310 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8311 * arm-tdep.c: Include record-full.h.
8312 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8313 * i386-tdep.c: Include record-full.h.
8314 * infrun.c: Include record-full.h.
8315 * linux-record.c: Include record-full.h.
8316 * moxie-tdep.c: Include record-full.h.
8317 * record-full.c: Include record-full.h.
8318 Change module comment.
8319 (set_record_full_cmdlist): New.
8320 (show_record_full_cmdlist): New.
8321 (record_full_cmdlist): New.
8322 (record_goto_insn): New declaration.
8323 (record_save): New declaration.
8324 (record_check_insn_num): Change query string.
8326 (record_delete): New.
8327 (record_is_replaying): New.
8328 (record_goto_entry): New.
8329 (record_goto_begin): New.
8330 (record_goto_end): New.
8332 (init_record_ops): Update.
8333 (init_record_core_ops): Update.
8334 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8335 (cmd_record_start): New.
8336 (set_record_insn_max_num): Moved from record.c
8337 (set_record_full_command): New.
8338 (show_record_full_command): New.
8339 (_initialize_record_full): New.
8343 * target.h (add_deprecated_target_alias): New.
8344 * target.c (add_deprecated_target_alias): New.
8348 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8350 (linux_supports_btrace): Add kernel and
8352 (kernel_supports_btrace): New function.
8353 (cpu_supports_btrace): New function.
8354 (intel_supports_btrace): New function.
8358 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8359 * remote.c: Include btrace.h.
8360 (struct btrace_target_info): New struct.
8361 (remote_supports_btrace): New function.
8362 (send_Qbtrace): New function.
8363 (remote_enable_btrace): New function.
8364 (remote_disable_btrace): New function.
8365 (remote_teardown_btrace): New function.
8366 (remote_read_btrace): New function.
8367 (init_remote_ops): Add btrace ops.
8368 (enum <unnamed>): Add btrace packets.
8369 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8370 (_initialize_remote): Add packet configuration for branch tracing.
8374 * features/btrace.dtd: New file.
8375 * Makefile.in (XMLFILES): Add btrace.dtd.
8376 * btrace.h (parse_xml_btrace): New declaration.
8377 * btrace.c: Include xml-support.h.
8378 (parse_xml_btrace): New function.
8379 (parse_xml_btrace_block): New function.
8380 (block_attributes): New struct.
8381 (btrace_attributes): New struct.
8382 (btrace_children): New struct.
8383 (btrace_elements): New struct.
8387 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8388 (amd64_linux_enable_btrace): New.
8389 (amd64_linux_disable_btrace): New.
8390 (amd64_linux_teardown_btrace): New.
8391 (_initialize_amd64_linux_nat): Initialize btrace ops.
8392 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8393 (i386_linux_enable_btrace): New.
8394 (i386_linux_disable_btrace): New.
8395 (i386_linux_teardown_btrace): New.
8396 (_initialize_i386_linux_nat): Initialize btrace ops.
8397 * config/i386/linux.mh: Add linux-btrace.o.
8398 * config/i386/linux64.mh: Add linux-btrace.o.
8402 * common/linux_btrace.h: New file.
8403 * common/linux_btrace.c: New file.
8404 * Makefile.in (SFILES): Add btrace.c.
8405 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8406 (COMMON_OBS): Add btrace.o.
8407 (linux-btrace.o): New rule.
8411 * target.h: Include btrace.h.
8412 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8413 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8414 * target.c (target_supports_btrace): New function.
8415 (target_enable_btrace): New function.
8416 (target_disable_btrace): New function.
8417 (target_teardown_btrace): New function.
8418 (target_read_btrace): New function.
8419 * btrace.h: New file.
8420 * btrace.c: New file.
8421 * Makefile.in: Add btrace.c.
8422 * gdbthread.h: Include btrace.h.
8423 (struct thread_info): Add btrace field.
8424 * thread.c: Include btrace.h.
8425 (clear_thread_inferior_resources): Call target_teardown_btrace.
8426 * common/btrace-common.h: New file.
8430 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8431 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8432 kill_status to outer block.
8436 Fix entry-values if the callee called a noreturn function.
8437 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8438 get_frame_address_in_block. Add new comment.
8442 Fix entry-values in C++ across CUs.
8443 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8444 lookup_minimal_symbol. Add a comment.
8446 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8451 * tracepoint.c (_initialize_tracepoint): Indent the code.
8455 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8456 (parse_find_args, find_command): Change type of pattern buffer
8457 locals to 'gdb_byte *'.
8462 * NEWS: Mention set and show trace-buffer-size commands.
8464 * target.h (struct target_ops): New method
8465 to_set_trace_buffer_size.
8466 (target_set_trace_buffer_size): New macro.
8467 * target.c (update_current_target): Set up new method.
8468 * tracepoint.c (trace_buffer_size): New global.
8469 (start_tracing): Send it to the target.
8470 (set_trace_buffer_size): New function.
8471 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8472 * remote.c (remote_set_trace_buffer_size): New function.
8473 (_initialize_remote): Use it.
8474 (QTBuffer:size) New remote command.
8475 (PACKET_QTBuffer_size): New enum.
8476 (remote_protocol_features): Add an entry for
8477 PACKET_QTBuffer_size.
8481 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8486 * target.c (target_read_stralloc, target_fileio_read_alloc):
8487 *Cast pointer to 'gdb_byte *' in target call.
8491 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8496 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8497 (trace_pass_command): Likewise.
8498 * cli/cli-cmds.c: Include cli/cli-utils.h.
8499 (source_command): Use skip-spaces.
8500 (disassemble_command): Likewise.
8501 * findcmd.c: Include cli/cli-utils.h.
8502 (parse_find_args): Use skip_spaces.
8503 * go32-nat.c: Include cli/cli-utils.h.
8504 (go32_sldt): Use skip_spaces.
8505 (go32_sgdt): Likewise.
8506 (go32_sidt): Likewise.
8507 (go32_pde): Likewise.
8508 (go32_pte): Likewise.
8509 (go32_pte_for_address): Likewise.
8510 * infcmd.c: Include cli/cli-utils.h.
8511 (registers_info): Use skip_spaces.
8512 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8513 (linux_info_proc): Likewise.
8514 * linux-thread-db.c: Include cli/cli-utils.h.
8515 (info_auto_load_libthread_db): Use skip_spaces_const.
8516 * m32r-rom.c: Include cli/cli-utils.h.
8517 (m32r_upload_command): Use skip_spaces.
8518 * maint.c: Include cli/cli-utils.h.
8519 (maintenance_translate_address): Use skip_spaces.
8520 * mi/mi-parse.c: Include cli/cli-utils.h.
8521 (mi_parse_argv): Use skip_spaces.
8522 (mi_parse): Likewise.
8523 * minsyms.c: Include cli/cli-utils.h.
8524 (msymbol_hash_iw): Use skip_spaces_const.
8525 * objc-lang.c: Include cli/cli-utils.h.
8526 (parse_selector): Use skip_spaces.
8527 (parse_method): Likewise.
8528 * python/python.c: Include cli/cli-utils.h.
8529 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8530 (python_command)[HAVE_PYTHON]: Likewise.
8531 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8532 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8533 (m32r_load): Use skip_spaces.
8534 * serial.c: Include cli/cli-utils.h.
8535 (serial_open): Use skip_spaces_const.
8536 * stack.c: Include cli/cli-utils.h.
8537 (parse_frame_specification_1): Use skip_spaces_const.
8538 * symfile.c: Include cli/cli-utils.h.
8539 (set_ext_lang_command): Use skip_spaces.
8540 * symtab.c: Include cli/cli-utils.h.
8541 (rbreak_command): Use skip_spaces.
8542 * thread.c (thread_name_command): Use skip_spaces.
8543 * tracepoint.c (validate_actionline): Use skip_spaces.
8544 (encode_actions_1): Likewise.
8545 (trace_find_range_command): Likewise.
8546 (trace_find_outside_command): Likewise.
8547 (trace_dump_actions): Likewise.
8551 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8552 * expprint.c (print_subexp_standard): Likewise.
8553 * utils.c (host_char_to_target): Likewise.
8554 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8555 * varobj.c (value_get_print_value): Change type of local to char*.
8556 Cast it gdb_byte * in call to language printer.
8560 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8562 (make_wchar_iterator): Remove cast to char*.
8563 (wchar_iterate): Change type of local.
8567 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8568 for 'regcache->register_status'.
8572 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8577 * stap-probe.c (handle_stap_probe): Add cast to char*.
8581 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8582 RECORD_MSGRCV>: Pass a signed variable to
8583 regcache_raw_read_signed, instead of an unsigned one.
8587 * remote-notif.c (notif_debug): Change type to int.
8588 * remote-notif.h (notif_debug): Likewise.
8592 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8596 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8597 * remote.h (hex2bin, bin2hex): ... here.
8598 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8602 * utils.c (initialize_utils): Improve doc strings of "set/show
8603 width", "set/show height", and "set/show pagination".
8607 * ax-gdb.c (gen_printf): Make FORMAT const.
8608 * ax-gdb.h (gen_printf): Likewise.
8609 * ax-general.c (ax_string): Make STR const.
8610 * ax.h (ax_string): Likewise.
8614 * elfread.c (elf_symfile_read): Move debugging printf to more
8619 * python/py-utils.c (target_string_to_unicode): Delete function.
8620 * python/python-internal.h (target_string_to_unicode): Delete
8625 * linespec.c (get_current_search_block): ARI fix, use (void)
8626 for empty parameter list.
8630 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8631 of old ada_lookup_symbol_list. In !full_search case, don't
8633 (ada_lookup_symbol_list): Delete arg full_search, all callers
8634 updated. Call ada_lookup_symbol_list_worker.
8635 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8636 * ada-lang.h (ada_lookup_symbol_list): Update.
8637 * language.h (language_defn): Update comment for
8638 la_iterate_over_symbols.
8639 * linespec.c (iterate_over_file_blocks): New function.
8640 (iterate_over_all_matching_symtabs): Call it.
8641 (lookup_prefix_sym): Ditto.
8642 (get_current_search_block): New function.
8643 (get_search_block): Delete.
8644 (find_label_symbols): Call get_current_search_block.
8645 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8646 * symtab.c (iterate_over_symbols): Don't search superblocks.
8650 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8651 parameter VAR's type from "unsigned int" to "int".
8652 * command.h (var_zuinteger_unlimited): Update its comments.
8653 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8657 * NEWS: Mention new target x86_64-*-cygwin*.
8661 * configure.host: Add x86_64-*-cygwin* as host.
8662 * configure.tgt: Add x86_64-*-cygwin* as target.
8663 * config/i386/cygwin64.mh: New file.
8667 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8671 * linespec.c (struct linespec_canonical_name): New.
8672 (struct linespec_state): Change canonical_names type to it.
8673 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8674 xrealloc element size. Initialize the different CANONICAL fields.
8675 (canonical_to_fullform): New.
8676 (filter_results): Use it. Add variables canonical, fullform and
8678 (struct decode_line_2_item, decode_line_2_compare_items): New.
8679 (decode_line_2): Remove variables iter and item_names, add variables
8680 items and items_count. Modify the code for these new variables.
8684 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8689 * tracepoint.c (build_traceframe_info): Add code for byte order.
8693 * v850-tdep.c: (v850e2_register_name): Revise system register
8694 names to match current V850E2M architecture specifications.
8695 Update register number enum comments too.
8700 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8702 (tilegx_skip_prologue): Limit prologue analysis to section end.
8706 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8711 Use gdb_byte for bytes from the program being debugged.
8713 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8714 Change type of local 'buf' to gdb_byte.
8715 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8716 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8717 * cris-tdep.c (cris_sigcontext_addr)
8718 (cris_sigtramp_frame_unwind_cache): Likewise.
8719 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8720 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8722 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8723 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8724 (hppa32_hpux_search_dummy_call_sequence)
8725 (hppa_hpux_supply_save_state): Likewise.
8726 * hppa-linux-tdep.c (insns_match_pattern)
8727 (hppa_linux_find_global_pointer): Likewise.
8728 * hppa-tdep.c (hppa_in_function_epilogue_p)
8729 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8730 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8731 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8732 (i386fbsd_collect_uthread): Likewise.
8733 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8734 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8735 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8736 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8737 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8738 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8739 (ia64_libunwind_frame_prev_register)
8740 (ia64_libunwind_sigtramp_frame_this_id)
8741 (ia64_find_global_pointer_from_dynamic_section)
8742 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8743 (ia64_unwind_pc): Likewise.
8744 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8745 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8746 (m68hc11_extract_return_value): Likewise.
8747 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8748 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8749 (mep_get_insn, mep_push_dummy_call): Likewise.
8750 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8751 (mips_linux_in_dynsym_stub): Likewise.
8752 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8753 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8754 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8756 * remote-mips.c (mips_set_register): Likewise.
8757 * remote-sim.c (gdbsim_fetch_register): Likewise.
8758 * score-tdep.c (score7_fetch_inst): Change type of parameter
8759 'memblock' and local 'buf' to gdb_byte.
8760 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8761 Change type of local 'buf' to gdb_byte. Adjust.
8762 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8764 (score7_analyze_prologue): Change type of 'memblock' and
8765 'memblock_ptr' locals to gdb_byte*.
8766 * sh64-tdep.c (sh64_extract_return_value)
8767 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8768 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8769 * solib-pa64.c (pa64_solib_create_inferior_hook)
8770 (pa64_open_symbol_file_object): Remove local 'buf'.
8771 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8772 (som_open_symbol_file_object): Likewise.
8773 * solib-spu.c (spu_current_sos): Likewise.
8774 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8775 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8776 (spu_store_registers): Likewise.
8777 * target.c (debug_print_register): Likewise.
8778 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8779 * xstormy16-tdep.c (xstormy16_store_return_value)
8780 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8781 (xstormy16_find_jmp_table_entry): Likewise.
8785 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8786 (tilegx_gdbarch_init): Install it.
8790 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8795 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8796 * python/python.c (gdbpy_find_pc_line): Ditto.
8800 * contrib/excheck.py: New file.
8801 * contrib/exsummary.py: New file.
8802 * contrib/gcc-with-excheck: New file.
8806 * python/python.c (gdbpy_print_stack): Call begin_line and
8807 fprintf_filtered inside TRY_CATCH.
8811 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8816 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8817 frame_object_to_frame_info inside TRY_CATCH.
8821 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8826 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8830 * windows-nat.c: Throughout, fix format strings and casts of
8831 printf-like functions to avoid type related warnings on all
8833 (handle_output_debug_string): Fetch context information address
8834 from debug string using string_to_core_addr.
8838 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8839 * regformats/reg-tilegx32.dat: New.
8843 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8847 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8852 * tracepoint.c (tfile_trace_find): For tfind
8853 pc/tp/range/outside, look for the next trace frame instead of
8854 always starting from frame 0.
8858 * configure.tgt: Add support for moxie-*-rtems* target.
8862 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8867 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8868 if $fp is used as the virtual frame pointer.
8872 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8874 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8875 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8876 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8877 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8882 * elfread.c (build_id_bfd_get): Make the return type const.
8883 (build_id_verify): Make the check parameter const.
8884 (build_id_to_debug_filename): Make the build_id parameter and variable
8886 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8890 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8894 Add a new method 'disassemble' to gdb.Architecture class.
8895 * python/py-arch.c (archpy_disassmble): Implementation of the
8896 new method gdb.Architecture.disassemble.
8897 (arch_object_methods): Add entry for the new method.
8901 * MAINTAINERS (Write After Approval): Add myself to the list.
8905 Garbage collect 'struct monitor_ops'::load_routine.
8907 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8908 * monitor.c (monitor_load): No longer call
8909 current_monitor->load_routine.
8910 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8911 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8912 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8918 Harmonize with generic_load.
8920 * monitor.c: Include "readline/readline.h".
8921 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8922 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8923 long/strtol for the 'load_offset' local. Error out if no argument
8924 is given or if too many arguments are given. Tilde expand the
8925 passed in file name.
8930 * symfile.c (load_section_data): Change type of load_offset
8932 (generic_load): User strtoulst instead of strtoul for conversion
8937 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8938 for return address, "lr" register, saved on stack.
8939 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8940 after we invoke tilegx_analyze_prologue.
8944 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8948 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8952 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8953 (tilegx_write_pc): New function.
8954 (tilegx_cannot_reference_register): Return zero if REGNO
8955 is TILEGX_FAULTNUM_REGNUM.
8956 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8957 (tilegx_register_name): Add handling of "faultnum" register.
8958 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8959 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8960 handling of TILEGX_FAULTNUM_REGNUM.
8961 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8965 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
8966 should be aligned to 64bit.
8970 * windows-nat.c (windows_xfer_memory): Fix debug-output
8975 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8976 Don't check DSP register number if HAVE_DSP is not set.
8980 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8981 throughout file instead.
8982 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8983 Don't xmalloc return value.
8984 (build_id_verify): Similarly. Don't xfree.
8985 (build_id_to_debug_filename): Update.
8986 (find_separate_debug_file_by_buildid): Update, don't xfree.
8991 * dwarf2read.c (read_subrange_type): Use result of
8996 * frame.c: Remove one extra white space after #include
9001 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9005 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9006 and dir commands into an if block.
9010 * python/py-breakpoint (struct pybp_code): Use int instead of
9016 * NEWS: Mention new field "trace-file".
9017 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9018 (tfile_open): Record the trace file's filename in the trace
9020 (tfile_files_info): Mention the name of the trace file.
9021 Check the "filename" field explicitely.
9022 (trace_status_command): Explicitely check "filename" field.
9023 (trace_find_command): Ditto.
9024 (trace_find_pc_command): Ditto.
9025 (trace_find_tracepoint_command): Ditto.
9026 (trace_find_line_command): Ditto.
9027 (trace_find_range_command): Ditto.
9028 (trace_find_outside_command): Ditto.
9029 * tracepoint.h (struct trace_status) <from_file>: Rename it
9030 to "filename" and make it hold the trace file's filename
9031 instead of a boolean.
9032 * remote.c (remote_get_trace_status): Initialize "filename"
9033 field with NULL instead of 0.
9037 * remote.c: Fix a typo.
9041 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9045 * utils.c (savestring): Don't #undef it. Move function to
9046 common/common-utils.c.
9047 * common/common-utils.c: Include gdb_string.h.
9048 (savestring): Move here from utils.c.
9049 * common/common-utils.h (savestring): Declare.
9053 * utils.c (savestring): Rename parameter 'size' to 'len'.
9058 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9059 (aarch64_inferior_data, struct aarch64_inferior_data):
9061 (struct aarch64_process_info): New.
9062 (aarch64_process_list): New global.
9063 (aarch64_find_process_pid, aarch64_add_process)
9064 (aarch64_process_info_get): New functions.
9065 (aarch64_inferior_data_get): Delete.
9066 (aarch64_process_info_get): New function.
9067 (aarch64_forget_process): New function.
9068 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9069 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9070 aarch64_get_debug_reg_state.
9071 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9072 instead of linux_nat_iterate_watchpoint_lwps.
9073 (aarch64_linux_new_fork): New function.
9074 (aarch64_linux_child_post_startup_inferior): Use
9075 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9076 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9077 (aarch64_linux_remove_hw_breakpoint)
9078 (aarch64_handle_aligned_watchpoint)
9079 (aarch64_handle_unaligned_watchpoint)
9080 (aarch64_linux_insert_watchpoint)
9081 (aarch64_linux_remove_watchpoint)
9082 (aarch64_linux_stopped_data_address): Adjust to pass the current
9083 process id to aarch64_debug_reg_state.
9084 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9085 linux_nat_new_fork hook, and aarch64_forget_process as
9086 linux_nat_forget_process hook; remove the call to
9087 register_inferior_data_with_cleanup.
9091 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9092 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9098 * tracepoint.h (validate_trace_state_variable_name): Declare.
9099 * tracepoint.c (validate_trace_state_variable_name): New.
9100 (trace_variable_command): Parse the trace state variable's name
9101 without using parse_expression. Do several validations.
9102 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9103 trace state variable's name with parse_expression. Validate it.
9107 * infcmd.c (breakpoint_proceeded): Remove it.
9111 * tracepoint.c (end_actions_pseudocommand): Make it static.
9112 (while_stepping_pseudocommand): Likewise.
9113 * tracepoint.h (end_actions_pseudocommand): Remove the
9115 (while_stepping_pseudocommand): Likewise.
9119 * cli/cli-decode.c (help_cmd): Remove the declaration of
9121 (help_all): Likewise.
9125 * amd64-linux-nat.c (update_debug_registers_callback):
9127 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9129 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9130 i386_debug_reg_state.
9131 (amd64_linux_new_fork): New function.
9132 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9133 linux_nat_new_fork hook, and i386_forget_process as
9134 linux_nat_forget_process hook.
9135 * i386-linux-nat.c (update_debug_registers_callback):
9137 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9139 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9140 i386_debug_reg_state.
9141 (i386_linux_new_fork): New function.
9142 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9143 linux_nat_new_fork hook, and i386_forget_process as
9144 linux_nat_forget_process hook.
9145 * i386-nat.c (i386_init_dregs): Delete.
9146 (i386_inferior_data, struct i386_inferior_data):
9148 (struct i386_process_info): New.
9149 (i386_process_list): New global.
9150 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9152 (i386_inferior_data_get): Delete.
9153 (i386_process_info_get): New function.
9154 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9155 (i386_forget_process): New function.
9156 (i386_cleanup_dregs): Rewrite.
9157 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9158 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9159 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9160 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9161 to i386_debug_reg_state.
9162 (i386_use_watchpoints): Don't register inferior data.
9163 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9165 (i386_forget_process): Declare.
9166 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9167 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9169 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9170 (add_initial_lwp): New, factored out from ...
9171 (add_lwp): ... this. Don't check the number of lwps before
9172 calling linux_nat_new_thread.
9173 (linux_nat_iterate_watchpoint_lwps): Delete.
9174 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9175 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9177 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9179 (linux_nat_kill, linux_nat_mourn_inferior): Call
9180 linux_nat_forget_process.
9181 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9182 (linux_nat_forget_process): New functions.
9183 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9185 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9186 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9188 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9189 (linux_nat_forget_process): New declarations.
9191 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9192 (amd64fbsd_mourn_inferior): New function.
9193 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9194 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9198 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9203 * aarch64-linux-nat.c (debug_reg_change_callback)
9204 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9209 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9215 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9220 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9222 (classify_inner_name): Remove 'first_name' argument, add
9223 'context'. Remove unused variable.
9224 (yylex): Explicitly maintain the context type. Exit loop earlier
9225 if NAME result is seen.
9229 * amd64-darwin-tdep.c: Add (C) after Copyright.
9230 * cli/cli-cmds.h: Ditto.
9231 * cli/cli-decode.c: Ditto.
9232 * cli/cli-decode.h: Ditto.
9233 * cli/cli-dump.c: Ditto.
9234 * cli/cli-dump.h: Ditto.
9235 * cli/cli-interp.c: Ditto.
9236 * cli/cli-logging.c: Ditto.
9237 * cli/cli-script.c: Ditto.
9238 * cli/cli-script.h: Ditto.
9239 * cli/cli-setshow.c: Ditto.
9240 * cli/cli-setshow.h: Ditto.
9241 * cli/cli-utils.c: Ditto.
9242 * cli/cli-utils.h: Ditto.
9243 * config/alpha/nm-osf3.h: Ditto.
9244 * config/djgpp/djconfig.sh: Ditto.
9245 * config/i386/nm-fbsd.h: Ditto.
9246 * config/i386/nm-i386gnu.h: Ditto.
9247 * config/nm-linux.h: Ditto.
9248 * config/nm-nto.h: Ditto.
9249 * config/rs6000/nm-rs6000.h: Ditto.
9250 * config/sparc/nm-sol2.h: Ditto.
9251 * darwin-nat-info.c: Ditto.
9254 * gdb-demangle.h: Ditto.
9255 * i386-darwin-nat.c: Ditto.
9256 * i386-darwin-tdep.c: Ditto.
9257 * linux-fork.h: Ditto.
9258 * m32c-tdep.c: Ditto.
9259 * microblaze-linux-tdep.c: Ditto.
9260 * microblaze-rom.c: Ditto.
9261 * microblaze-tdep.c: Ditto.
9262 * microblaze-tdep.h: Ditto.
9263 * mips-linux-tdep.h: Ditto.
9264 * ppc-ravenscar-thread.c: Ditto.
9265 * ppc-ravenscar-thread.h: Ditto.
9266 * prologue-value.c: Ditto.
9267 * prologue-value.h: Ditto.
9268 * ravenscar-thread.c: Ditto.
9269 * ravenscar-thread.h: Ditto.
9270 * sparc-ravenscar-thread.c: Ditto.
9271 * sparc-ravenscar-thread.h: Ditto.
9272 * tilegx-linux-tdep.c: Ditto.
9273 * unwind_stop_reasons.def: Ditto.
9274 * windows-nat.h: Ditto.
9275 * xtensa-linux-tdep.c: Ditto.
9276 * xtensa-xtregs.c: Ditto.
9277 * regformats/regdat.sh: Ditto.
9278 * regformats/regdef.h: Ditto.
9282 * break-catch-sig.c: Update copyright years.
9286 Add support for a destructor for ui_out data and use it to
9287 provide a ui_out destructor.
9288 * ui-out.h: Declare the new ui_out destructor.
9289 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9290 * ui-out.c (default_data_destroy): Add a default data destructor
9292 (default_ui_out_impl): Set the new data_destroy field to
9293 default_data_destroy
9294 (uo_data_destroy): Local function which invokes the data
9295 destructor if present.
9296 (clear_table): Local function which clears the table data of a
9298 (ui_out_destroy): Public function which frees a ui_out object.
9299 (ui_out_table_end): Use the new clear_table function.
9300 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9302 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9307 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9308 (printf_decfloat): New function. Broken out from ui_printf.
9309 Remove unnecessary code to shift the entire format string down.
9310 (printf_pointer): New function.
9311 (ui_printf): Code to print C strings, wide C strings, decfloats,
9312 and pointers moved to separate functions.
9316 * valops.c (value_assign): Handling bitfield offset in
9317 `lval_internalvar_component' case.
9321 * common/format.c (parse_format_string): Fix whitespace.
9325 * stack.c (return_command): Work around uninitialized variable
9330 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9331 number of the registers from 36 to 34.
9335 * NEWS: Mention new AArch64 native and target support.
9339 * MAINTAINERS (Write After Approval): Add myself.
9346 * aarch64-linux-nat.c: New file.
9347 * config/aarch64/linux.mh: New file.
9348 * configure.host: Add AArch64.
9349 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9353 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9354 disassemble command.
9358 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9359 set_gdbarch_fetch_tls_load_module_address.
9363 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9364 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9365 * value.c (struct_return_convention): New function.
9366 (using_struct_return): Implement in terms of struct_return_convention.
9367 * value.h (struct_return_convention): Declare.
9368 * stack.c (return_command): Allow successful overriding of the return
9369 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9373 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9374 outside of TRY_CATCH.
9378 * mi/mi-interp.c: Include "tracepoint.h".
9379 (mi_tsv_modified): Declare.
9380 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9381 (mi_interpreter_init): Call observer_attach_tsv_modified.
9382 (mi_tsv_modified): New.
9383 (mi_tsv_created, mi_tsv_deleted): Update.
9384 * tracepoint.c (trace_variable_command): Call
9385 observer_notify_tsv_modified if the initial value of tsv is
9387 (delete_trace_state_variable): Call
9388 observer_notify_tsv_deleted earlier.
9389 (trace_variable_command): Caller update.
9390 (create_tsv_from_upload): Likewise.
9391 * observer.sh: Declare "struct trace_state_variable".
9393 * NEWS: Mention the new MI notification "=tsv-modified".
9397 * completer.c (location_completer): Fix typo in comment.
9401 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9406 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9407 Refactor if statement to avoid trailing || operator.
9411 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9415 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9416 * configure.host: Add powerpc*-*-freebsd* target.
9417 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9418 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9419 * config/powerpc/fbsd.mh: New file.
9425 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9426 (struct elf_internal_linux_prpsinfo): Forward declare.
9427 * gdbarch.h, gdbarch.c: Regenerate.
9428 * linux-tdep.c: Include `cli/cli-utils.h'.
9429 (linux_fill_prpsinfo): New function.
9430 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9431 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9432 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9433 depending on gdbarch pointer bitness.
9434 * ppc-linux-tdep.c: Include elf-bfd.h.
9435 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9443 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9450 * aarch64-newlib-tdep.c: New file.
9451 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9453 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9454 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9455 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9456 * osabi.c (gdb_osabi_names): Add "Newlib".
9463 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9464 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9465 * aarch64-linux-tdep.c: New file.
9466 * aarch64-linux-tdep.h: New file.
9467 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9468 * configure.tgt: Add aarch64-none-linux-gnu.
9475 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9476 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9477 (ALLDEPFILES): Add aarch64-tdep.c.
9478 * aarch64-tdep.c: New file.
9479 * aarch64-tdep.h: New file.
9480 * configure.tgt: Add AArch64.
9481 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9482 (aarch64-expedite): New definition.
9483 * features/aarch64-core.xml: New file.
9484 * features/aarch64-fpu.xml: New file.
9485 * features/aarch64-without-fpu.c: New file (generated).
9486 * features/aarch64-without-fpu.xml: New file.
9487 * features/aarch64.c: New file (generated).
9488 * features/aarch64.xml: New file.
9489 * regformats/aarch64-without-fpu.dat: New file (generated).
9490 * regformats/aarch64.dat: New file (generated).
9494 * contrib/expect-read1.c: New file.
9495 * contrib/expect-read1.sh: New file.
9499 * dwarf2read.c (file_file_name): New function with code from
9501 (file_full_name): Move most of the code to file_file_name.
9502 (macro_start_file): Rename variable full_name to file_name and use
9503 file_file_name for it. Add comp_dir parameter to new_macro_table.
9504 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9505 macro_source_file->filename access by macro_source_fullname call.
9506 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9508 * macrotab.c (struct macro_table): New field comp_dir.
9509 (macro_include): New variables link_fullname and source_fullname.
9510 Replace any macro_source_file->filename access by macro_source_fullname
9512 (macro_lookup_inclusion): Remove the partial filenames checking code.
9513 (check_for_redefinition): New variables source_fullname and
9514 found_key_fullname. Replace any macro_source_file->filename access by
9515 macro_source_fullname call.
9516 (macro_undef): New variables source_fullname and key_fullname. Replace
9517 any macro_source_file->filename access by macro_source_fullname call.
9518 (macro_lookup_definition): New variables retval and source_fullname.
9519 Replace any macro_source_file->filename access by macro_source_fullname
9521 (foreach_macro): New variable key_fullname. Replace any
9522 macro_source_file->filename access by macro_source_fullname call.
9523 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9524 macro_source_file->filename access by macro_source_fullname call.
9525 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9526 (macro_source_fullname): New function.
9527 * macrotab.h (struct macro_source_file): Extent the filename field
9529 (new_macro_table): New parameter comp_dir, add a comment for it.
9530 (macro_source_fullname): new declaration.
9534 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9535 this_real_name to outer block. Use it also for
9536 compare_filenames_for_search.
9537 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9538 with dw2_get_real_path for file_matcher, considering also
9539 BASENAMES_MAY_DIFFER.
9540 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9544 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9545 to the file_matcher parameter. Pass 0 to it.
9546 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9547 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9548 NULL psymtab_to_fullname result.
9549 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9550 an expected filename instead.
9551 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9552 file_matcher parameter. Call also psymtab_to_fullname, after newly
9553 considering BASENAMES_MAY_DIFFER.
9554 * source.c (rewrite_source_path): Remove static.
9555 * source.h (rewrite_source_path): New declaration.
9556 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9557 the expand_symtabs_matching field. Comment it.
9558 * symtab.c (file_matches): New function comment. Add parameter
9559 basenames, implement it.
9560 (search_symbols_file_matches): Add basenames parameter. Update the
9561 file_matches caller.
9562 (search_symbols): Match FILES also against symtab_to_fullname.
9563 Optimize it for BASENAMES_MAY_DIFFER.
9567 * source.c (print_source_lines_base): Print for TUI also "fullname".
9568 * tui/tui-data.c (init_content_element): Change tui_locator_element
9570 * tui/tui-data.h (struct tui_locator_element): Likewise.
9571 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9572 tui_update_locator_filename calls to tui_update_locator_fullname.
9573 Replace symtab->filename refererence by symtab_to_fullname call.
9574 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9575 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9576 field to full_name. Replace symtab->filename refererence by
9577 symtab_to_fullname call.
9578 (tui_show_symtab_source): Rename parameter to fullname. Change
9579 tui_locator_element field to full_name.
9580 * tui/tui-stack.c: Include source.h.
9581 (tui_set_locator_filename): Rename the declaration to ...
9582 (tui_set_locator_fullname): ... here. Rename its parameter to
9583 fullname, updates its comment.
9584 (tui_set_locator_info): Rename its parameter to fullname.
9585 (tui_set_locator_filename): Rename the definition to ...
9586 (tui_set_locator_fullname): ... here. Rename its parameter to
9587 fullname, updates its comment. Change tui_locator_element field to
9589 (tui_set_locator_info): Rename its parameter to fullname.
9590 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9591 (tui_update_locator_filename): Rename to ...
9592 (tui_update_locator_fullname): ... here. Rename callee to
9593 tui_set_locator_fullname.
9594 (tui_show_frame_info): Replace symtab->filename refererence by
9595 symtab_to_fullname call.
9596 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9597 (tui_update_locator_fullname): ... here.
9598 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9599 tui_update_locator_fullname. Replace symtab->filename refererence by
9600 symtab_to_fullname call.
9601 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9602 Rename the callee to tui_update_locator_fullname.
9603 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9607 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9608 by symtab_to_filename_for_display calls.
9609 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9610 (clear_command): New variable sal_fullname, initialize it. Replace
9611 compare_filenames_for_search by filename_cmp with sal_fullname.
9612 (say_where, update_static_tracepoint): Replace symtab->filename
9613 refererences by symtab_to_filename_for_display calls.
9614 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9616 * dwarf2read.c: Include source.h.
9617 (fixup_go_packaging): Replace symtab->filename refererences by
9618 symtab_to_filename_for_display calls.
9619 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9620 Replace symtab->filename refererences by symtab_to_filename_for_display
9622 (create_sals_line_offset, convert_linespec_to_sals): New variable
9623 fullname, initialize it, replace symtab->filename reference by the
9625 * linux-fork.c: Include source.h.
9626 (info_checkpoints_command): Replace symtab->filename refererences by
9627 symtab_to_filename_for_display calls.
9628 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9629 by symtab_to_filename_for_display calls.
9630 * mdebugread.c: Include source.h.
9631 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9632 symtab_to_filename_for_display calls.
9633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9634 (mi_cmd_file_list_exec_source_files): Likewise.
9635 * printcmd.c: Include source.h.
9636 (build_address_symbolic): Replace symtab->filename refererences by
9637 symtab_to_filename_for_display calls.
9638 * psymtab.c (partial_map_symtabs_matching_filename)
9639 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9640 with psymtab_to_fullname.
9641 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9642 by symtab_to_filename_for_display calls.
9643 (stpy_get_filename): New variable filename, initialize it, use instead
9644 of symtab->filename refererences.
9645 (salpy_str): Make variable filename const char *. Replace
9646 symtab->filename refererences by symtab_to_filename_for_display calls.
9647 * skip.c: Include source.h and filenames.h.
9648 (skip_file_command): Remove const from the symtab variable. Replace
9649 symtab->filename refererences by symtab_to_fullname call.
9650 (function_name_is_marked_for_skip): New variables searched_for_fullname
9651 and fullname. Use them to search also with symtab's fullname.
9652 * source.c (find_source_lines): Replace symtab->filename refererences
9653 by symtab_to_filename_for_display calls.
9654 (print_source_lines_base): New variable filename, use it instead of
9655 symtab->filename. Replace symtab->filename refererences by
9656 symtab_to_filename_for_display calls.
9657 (line_info, forward_search_command): Replace symtab->filename
9658 refererences by symtab_to_filename_for_display calls.
9659 (reverse_search_command): Replace symtab->filename refererences by
9660 symtab_to_filename_for_display calls. New variable filename for it.
9661 * stack.c (frame_info): Likewise.
9662 * symmisc.c: Include source.h.
9663 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9664 (maintenance_info_symtabs): Replace symtab->filename refererences by
9665 symtab_to_filename_for_display calls.
9666 * symtab.c (iterate_over_some_symtabs): Call
9667 compare_filenames_for_search also with symtab_to_fullname.
9668 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9669 symtab->filename refererences by symtab_to_filename_for_display calls.
9670 (find_line_symtab): Replace symtab->filename refererences by
9671 symtab_to_filename_for_display calls.
9672 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9673 (print_symbol_info): Make the last parameter const char *. New
9674 variable s_filename. Use it in the function.
9675 (symtab_symbol_info): Make the last_filename variable const char *.
9676 Replace symtab->filename refererences by symtab_to_filename_for_display
9678 (rbreak_command): New variable fullname. Use it. Replace
9679 symtab->filename refererence by symtab_to_filename_for_display call.
9680 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9681 (print_one_static_tracepoint_marker): Replace symtab->filename
9682 refererences by symtab_to_filename_for_display calls.
9683 * tui/tui-source.c (tui_set_source_content): New variables filename and
9684 s_filename. Replace symtab->filename refererences by this variable.
9685 Replace other symtab->filename refererences by
9686 symtab_to_filename_for_display calls.
9691 Add a new variable that controls a way in which filenames are
9693 * NEWS (set filename-display): New entry.
9694 * source.c (filename_display_basename, filename_display_relative)
9695 (filename_display_absolute, filename_display_kind_names)
9696 (filename_display_string, show_filename_display_string)
9697 (symtab_to_filename_for_display): New.
9698 (_initialize_source): Added initialization of 'filename-display'
9700 * source.h (symtab_to_filename_for_display): Added declaration.
9701 * stack.c (print_frame): Added new variable and calling of a new
9702 function and condition with this variable. Changed third argument of
9703 calling of a function.
9707 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9708 Rename field reference filename to fullname.
9709 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9710 fullname. New comment for it.
9711 * tui/tui-source.c (tui_set_source_content): Rename field reference
9712 filename to fullname. Initialize field by symtab_to_fullname now.
9713 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9714 reference filename to fullname. Use symtab_to_fullname during
9720 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9721 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9722 filename to fullname. Rename variable this_name to this_fullname.
9723 Lowercase FILENAME_CMP call.
9724 (dw2_find_symbol_file): New comment for the returned string.
9725 (dwarf2_gdb_index_functions): Rename the function to
9726 dw2_expand_symtabs_with_fullname.
9727 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9728 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9730 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9731 * symfile.h (struct quick_symbol_functions): Rename field
9732 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9733 parameter filename to fullname. Document returned string meaning for
9735 * symtab.c (find_line_symtab): Rename the called function to
9736 expand_symtabs_with_fullname.
9741 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9742 call of filename_cmp with compare_filenames_for_search.
9743 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9744 is_abs, unify the call of FILENAME_CMP with
9745 compare_filenames_for_search. New gdb_asserts for real_path and name.
9746 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9747 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9748 * symfile.h (struct quick_symbol_functions): Extend the comment for
9749 map_symtabs_matching_filename.
9750 * symtab.c (compare_filenames_for_search): Remove the function comment
9751 relative path requirement. Handle absolute filenames, with a comment.
9752 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9753 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9754 real_path and name. Unify the call of compare_filenames_for_search
9756 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9761 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9762 source_file references by symtab field references. Remove variables
9764 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9765 (clear_command, say_where): Replace bp_location field source_file
9766 references by symtab field references.
9767 (bp_location_dtor): Remove the source_file reference.
9768 (update_static_tracepoint): Replace bp_location field source_file
9769 references by symtab field references.
9770 (breakpoint_free_objfile): New function.
9771 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9772 Replace the field source_file by field symtab, extend its comment.
9773 (breakpoint_free_objfile): New declaration.
9774 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9775 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9776 field source_file references by symtab field references.
9780 Replace xfullpath calls by gdb_realpath calls.
9781 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9783 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9784 Remove it from the iterate_over_some_symtabs call.
9785 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9786 Remove it from the dw2_map_expand_apply calls, remove a block handling
9788 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9789 Remove it from the iterate_over_some_symtabs call.
9790 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9791 Remove it from the partial_map_expand_apply calls, remove a block
9792 handling it. Drop gdb_realpath call and cleanups from the real_path
9794 * source.c (openp): Drop the comment part about xfullpath. Replace
9795 xfullpath calls by gdb_realpath calls.
9796 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9797 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9798 from method map_symtabs_matching_filename and its comment.
9799 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9801 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9802 remove it also from the function comment, remove a block handling it.
9803 Drop gdb_realpath call and cleanups from the real_path handling.
9804 (iterate_over_symtabs): Drop variable full_path and its use.
9805 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9806 * utils.c (xfullpath): Remove.
9807 * utils.h (xfullpath): Remove.
9811 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9812 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9813 (ALLDEPFILES): Add ppc64-tdep.c.
9814 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9815 ppc64-tdep.o to gdb_target_obs.
9816 * ppc64-tdep.h: New file.
9817 * ppc64-tdep.c: New file.
9818 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9819 ppc-linux-tdep.c to here.
9820 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9821 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9822 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9823 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9824 from ppc-linux-tdep.c to here.
9825 (ppc64_convert_from_func_ptr_addr): Rename from
9826 ppc64_linux_convert_from_func_ptr_addr to
9827 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9830 (read_insn): Move from ppc-linux-tdep.c to here.
9831 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9832 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9833 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9834 Removed above functions.
9835 (ppc_linux_init_abi): Adjust.
9839 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9843 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9847 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9848 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9852 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9853 files with no separate debug info.
9854 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9855 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9856 only for files with no separate debug info.
9860 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9862 (struct jit_program_space_data): Rename from jit_inferior_data.
9864 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9865 Change return type. Attach data to program space.
9866 (jit_program_space_data_cleanup): Rename from
9867 jit_inferior_data_cleanup; change argument type.
9868 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9870 (jit_register_code): Update.
9871 (jit_update_inferior_cache): Remove.
9872 (jit_breakpoint_deleted): Get jit data from the location's program
9874 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9875 'ps_data', change type.
9876 (jit_inferior_init, jit_breakpoint_re_set_internal)
9877 (jit_event_handler): Update.
9878 (free_objfile_data): Get data from objfile's program space.
9879 (_initialize_jit): Update.
9884 * jit.c (struct jit_inferior_data) <cached_code_address,
9885 jit_breakpoint>: New fields.
9886 (jit_breakpoint_re_set_internal): Fix logging. Only create
9887 breakpoint if cached address has changed.
9888 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9890 (_initialize_jit): Register breakpoint deleted observer.
9894 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9895 (save_infcall_suspend_state): Ifdef out unused inf.
9896 (restore_infcall_suspend_state): Ifdef out unused inf.
9897 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9898 (jit_frame_sniffer): Remove unused inf_data.
9902 * c-exp.y (classify_inner_name): Remove unused type.
9903 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9904 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9906 (c_get_string): Remove unused kind.
9907 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9911 * charset.c (intermediate_encoding): Remove unused i.
9912 * completer.c (signal_completer): Remove unused i.
9913 * continuations.c (discard_my_continuations_1): Remove unused
9915 * corelow.c (core_close): Remove unuseD name.
9916 (get_core_siginfo): Remove unused pid.
9917 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9919 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9920 (loclist_describe_location): Remove unused first.
9921 * event-top.c (command_line_handler): Remove unused got_eof.
9922 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9923 (resize_section_table): Remove unused old_value.
9924 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9925 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9926 * i386-tdep.c (i386_process_record): Remove unused rex.
9927 * infcmd.c (get_return_value): Remove unused uiout.
9928 * jv-lang.c (type_from_class): Remove unused is_array.
9929 * jv-valprint.c (java_val_print): Remove unused i.
9930 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9931 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9932 * m2-typeprint.c (m2_print_type): Remove unused code.
9933 * macroexp.c (get_character_constant): Remove unused body_start.
9934 (macro_stringify): Remove unused result.
9935 * objc-lang.c (find_methods): Remove unused gdbarch.
9936 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9937 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9938 * stack.c (print_frame_args): Remove unused summary.
9939 * thread.c (thread_apply_command): Remove unused p.
9940 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9941 * valops.c (search_struct_method): Remove unused skip.
9942 * valprint.c (generic_val_print): Remove unused byte_order.
9943 * varobj.c (varobj_update): Remove unused changed.
9944 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9945 (alias_command): Remove unused c.
9946 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9947 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9949 (mi_cmd_data_write_memory): Remove unused word_format.
9950 (mi_cmd_data_write_memory_bytes): Remove unused r.
9951 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9953 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9954 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9959 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9960 * symtab.c (iterate_over_symtabs): Remove unused s.
9961 (find_pc_sect_symtab): Remove unused pspAce.
9962 (find_pc_sect_line): Remove unused alt_symtab.
9963 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9964 (completion_list_add_name): Remove unused newsize.
9969 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9974 * target.c (target_read_string): Remove unused origlen.
9978 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9979 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9980 * ax-general.c (ax_print): Remove unused is_float.
9981 * blockframe.c (block_innermost_frame): Remove unused start, end.
9982 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9986 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9987 (svr4_read_so_list): Remove unused lmo.
9988 * solib-target.c (solib_target_relocate_section_addresses): Remove
9993 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9997 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9998 * utils.c (gnu_debuglink_crc32): Remove.
9999 * utils.h (gnu_debuglink_crc32): Don't declare.
10003 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10004 (read_structure_type, read_enumeration_type): Remove cast.
10008 * dwarf2read.c (read_namespace_type): Remove cast.
10009 (read_typedef): Likewise.
10013 * dwarf2read.c (free_dwo_file): Remove assert.
10017 * value.c (deprecated_set_value_modifiable): Remove.
10018 * value.h (deprecated_set_value_modifiable): Remove.
10022 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10023 to addresses from dwo files.
10027 * valops.c (find_overload_match): Remove unused argument 'lax'.
10028 * value.h: Remove unused argument 'lax' from the declaration of
10029 find_overload_match.
10030 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10031 to find_overload_match.
10032 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10033 argument to find_overload_match.
10037 * dwarf2read.c (processing_has_namespace_info): Remove.
10038 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10039 (process_die, read_func_scope, dwarf2_start_symtab)
10040 (new_symbol_full): Update.
10044 * cp-namespace.c (cp_set_block_scope): Remove.
10045 * cp-support.h (cp_set_block_scope): Remove.
10046 * dbxread.c: Include block.h.
10047 (cp_set_block_scope): New function.
10048 (process_one_symbol): Update.
10049 * dwarf2read.c (read_func_scope): Use block_set_scope.
10053 * remote.c (add_current_inferior_and_thread): Tweak comment.
10057 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10058 (cp_add_using_directive): Add 'copy_names' argument.
10059 * cp-support.h (cp_add_using_directive): Update.
10060 (struct using_direct) <import_src, import_dest, alias,
10061 declaration>: Now const.
10062 * dwarf2read.c (read_import_statement): Use obconcat.
10063 Don't copy names passed to cp_add_using_directive.
10067 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10071 * remote.c (stop_reply_extract_thread): New.
10072 (add_current_inferior_and_thread): New parameter 'wait_status'.
10074 (remote_start_remote): Pass wait status to
10075 add_current_inferior_and_thread.
10076 (extended_remote_run): Update comment.
10077 (extended_remote_create_inferior_1): Pass wait status to
10078 add_current_inferior_and_thread.
10083 * valarith.c (value_vector_widen): New function for replicating a
10084 scalar into a vector.
10085 (value_binop): Use value_vector_widen to widen scalar to vector
10086 rather than casting, this better matches gcc C behaviour.
10087 * valops.c (value_casst): Update logic for casting between vector
10088 types, and for casting from scalar to vector, try to match gcc C
10090 * value.h (value_vector_widen): Declare.
10091 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10092 function, handle special case for casting scalar to vector.
10093 (opencl_relop): Use opencl_value_cast.
10094 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10095 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10096 in order to use opencl_value_cast.
10100 * event-loop.c: Include "queue.h".
10101 (gdb_event_p): New typedef.
10102 (DECLARE_QUEUE_P): Use.
10103 (DEFINE_QUEUE_P): Use.
10104 (async_queue_event): Remove.
10105 (gdb_event_xfree): New.
10106 (initialize_event_loop): New.
10107 (process_event): Use QUEUE macros.
10108 (event_queue): Remove.
10109 (gdb_wait_for_event): Caller update.
10110 (check_async_event_handlers): Likewise.
10111 (poll_timers): Likewise.
10112 * event-loop.h (initialize_event_loop): Declare.
10113 * event-loop.c (gdb_event_xfree): New.
10114 * top.c (gdb_init): Call initialize_event_loop.
10118 * event-loop.c (async_queue_event): Remove one parameter
10119 'position'. Remove code handling 'position' == TAIL.
10120 (gdb_wait_for_event): Caller update.
10121 (check_async_event_handlers): Caller update.
10122 (poll_timers): Caller update.
10123 * event-loop.h (enum queue_position): Remove.
10127 * MAINTAINERS: Update my email.
10131 * main.c (print_gdb_help): Remove "--epoch" from the help
10136 * symtab.c (skip_prologue_using_sal): Consider a file
10137 change the same as an increased line number
10141 * MAINTAINERS (Write After Approval): Add myself to the list.
10145 * ada-lang.h (ada_decode_symbol): Make return type const.
10146 * ada-lang.c (ada_decode_symbol): Likewise.
10150 * linespec.c (find_linespec_symbols): Make static.
10154 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10155 type on float conversion for complex type.
10159 Add a new class gdb.Architecture which exposes GDB's
10160 internal representation of architecture via GDB Python API.
10161 * Makefile.in: Add entries corresponding to the new file
10163 * NEWS (Python Scripting): Add entries for the new class
10164 gdb.Architecture and the new method gdb.Frame.architecture.
10165 * python/py-arch.c: Implement gdb.Architecture class.
10166 * python/py-frame.c (frapy_arch): Implement the method
10167 gdb.Frame.architecture().
10168 (frame_object_methods): Add 'architecture' to the method table.
10169 * python/python-internal.h: Add declarations of new utility
10171 * python/python.c (_initialize_python): Initialize
10172 gdb.Architecture class.
10176 Work around binutils/15021.
10177 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10178 type_unit_group out of union s. All uses updated.
10179 (read_index_from_section): Watch for index version 8.
10180 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10181 an imported symtab.
10182 (write_psymtabs_to_index): Increment version number to 8.
10186 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10191 * annotate.c (annotate_breakpoints_changed): Rename to ...
10192 (annotate_breakpoints_invalid): ... this. Make static.
10193 (breakpoint_changed): Adjust.
10194 (_initialize_annotate): Always install the observers. Install a
10195 "breakpoint_created" observer.
10196 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10197 * breakpoint.c (set_breakpoint_condition)
10198 (breakpoint_set_commands, do_map_commands_command)
10199 (init_raw_breakpoint, clear_command, set_ignore_count)
10200 (enable_breakpoint_disp): No longer call
10201 annotate_breakpoints_changed.
10205 * annotate.c: Include "inferior.h".
10206 (frames_invalid_emitted)
10207 (breakpoints_invalid_emitted): New globals.
10208 (async_background_execution_p): New function.
10209 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10210 emitting the annotation if it has already been emitted.
10211 (annotate_display_prompt): New function.
10212 * annotate.h (annotate_display_prompt): New declaration.
10213 * event-top.c: Include annotate.h.
10214 (display_gdb_prompt): Call annotate_display_prompt.
10218 * annotate.c (ignore_count_changed): Delete.
10219 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10220 (annotate_ignore_count_change): Delete.
10221 (annotate_stopped): Don't emit a delayed breakpoints-changed
10223 * annotate.h (annotate_ignore_count_change): Delete.
10224 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10225 annotate_ignore_count_change.
10229 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10230 require_rvalue for a register location.
10234 * breakpoint.c (print_one_breakpoint_location): Add MI
10235 field 'thread-groups' when printing a breakpoint.
10236 (output_thread_groups): New function.
10240 * python/lib/gdb/commands/explore.py
10241 (CompoundExplorer.explore_expr): Correct the name of a method
10243 (ExploreTypeCommand.invoke): Add a missing 'return'.
10247 * gdb_obstack.h (obconcat): Move declaration here, from...
10248 * symfile.h (obconcat): ... here.
10249 * gdb_obstack.c: New file.
10250 (obconcat): Move from...
10251 * symfile.c (obconcat): ... here.
10252 * Makefile.in (SFILES): Add gdb_obstack.c.
10253 (COMMON_OBS): Add gdb_obstack.o.
10257 * symfile.h (obsavestring): Don't declare.
10258 * symfile.c (obsavestring): Remove.
10259 * ada-exp.y: Use obstack_copy0, not obsavestring.
10260 * ada-lang.c: Use obstack_copy0, not obsavestring.
10261 * coffread.c: Use obstack_copy0, not obsavestring.
10262 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10263 * dbxread.c: Use obstack_copy0, not obsavestring.
10264 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10265 * jit.c: Use obstack_copy0, not obsavestring.
10266 * mdebugread.c: Use obstack_copy0, not obsavestring.
10267 * psymtab.c: Use obstack_copy0, not obsavestring.
10268 * stabsread.c: Use obstack_copy0, not obsavestring.
10269 * xcoffread.c: Use obstack_copy0, not obsavestring.
10273 * dwarf2read.c (fixup_go_packaging): Save package name
10274 on objfile obstack.
10275 * gdbtypes.c (init_type): Don't copy name.
10279 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10281 (struct attribute) <u.str>: Now const.
10282 (struct fnfieldlist) <name>: Now const.
10283 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10284 (partial_die_parent_scope): Make return type const.
10285 (partial_die_full_name, add_partial_symbol): Update.
10286 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10288 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10289 (read_file_scope, read_func_scope, dwarf2_add_field)
10290 (dwarf2_add_member_fn, read_structure_type)
10291 (process_enumeration_scope, read_array_type, read_module_type)
10292 (read_base_type, read_subrange_type): Update.
10293 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10294 (new_symbol_full, guess_full_die_structure_name): Update.
10295 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10296 (dwarf2_name): Return const type.
10297 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10302 * gdbtypes.c (init_type): Make 'name' const.
10303 * gdbtypes.h (init_type): Update.
10307 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10308 (start_symtab): Make 'name' and 'dirname' const. Use
10309 set_last_source_file.
10310 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10311 (last_source_file): Define. Now static.
10312 (set_last_source_file, get_last_source_file): New functions.
10313 * buildsym.h (last_source_file): Don't declare.
10314 (start_symtab): Update.
10315 (set_last_source_file, get_last_source_file): Declare.
10316 * coffread.c (complete_symtab): Use set_last_source_file.
10317 (coff_end_symtab): Likewise.
10318 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10319 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10320 set_last_source_file.
10321 (process_one_symbol): Use get_last_source_file.
10322 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10323 (psymtab_to_symtab_1): Use get_last_source_file.
10324 * xcoffread.c (process_linenos): Use get_last_source_file.
10325 (complete_symtab): Use set_last_source_file.
10326 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10327 (scan_xcoff_symtab): Use set_last_source_file.
10331 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10332 (symbol_set_names): Remove casts. Handle field const-ness.
10336 * dwarf2read.c (new_symbol_full): Remove cast.
10337 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10338 * symtab.h (symbol_set_demangled_name): Update.
10342 * main.c (captured_main): Call bfd_init.
10346 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10347 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10348 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10353 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10357 Fix gdb.fortran/common-block.exp crash in PIE mode.
10358 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10360 * f-valprint.c (info_common_command_for_block): Expect
10361 LOC_COMMON_BLOCK in gdb_assert.
10362 * symtab.h (struct general_symbol_info): Update comment for the
10363 common_block member.
10364 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10365 (enum address_class): New member LOC_COMMON_BLOCK.
10369 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10374 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10375 Call require_rvalue.
10379 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10380 (dbx_read_symtab): New declaration.
10381 (dbx_psymtab_to_symtab): Delete.
10382 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10383 Rename parameter PST to SELF. Exchanged two parameters.
10384 (start_psymtab): Caller update.
10385 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10386 (dwarf2_read_symtab): New declaration.
10387 (dwarf2_psymtab_to_symtab): Delete.
10388 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10389 Rename parameter PST to SELF. Exchanged two parameters.
10390 (create_partial_symtab): Caller update.
10391 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10392 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10393 Rename parameter PST to SELF. Exchanged two parameters.
10394 (parse_partial_symbols, new_psymtab): Caller update.
10395 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10397 * psymtab.c (psymtab_to_symtab): Caller update.
10398 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10399 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10400 Rename parameter PST to SELF. Exchanged two parameters.
10401 (xcoff_start_psymtab): Caller update.
10405 * infrun.c (proceed): Rename local variable 'oneproc' to
10410 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10411 (dw2_build_type_unit_groups): Delete. All uses updated.
10413 * symtab.h (struct symbol_search): Add comment.
10417 * symtab.c (compare_filenames_for_search): New comment for
10422 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10426 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10427 initialize it by existing make_cleanup. Call new do_cleanups.
10431 * cp-abi.c (cp_abi_completer): New function.
10432 (_initialize_cp_abi): Set completer for "set cp-abi".
10436 * mem-break.c: Remove obsolete comment.
10437 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10441 * jit.c (jit_reader_load_command): Interpret the jit reader name
10442 as an absolute path if it begins with a forward slash.
10448 * jit.c (finalize_symtab): Ensure that only the global block has a
10453 * acinclude.m4: Include ../config/plugins.m4,
10454 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10455 * Makefile.in (aclocal_m4_deps): Update.
10456 * aclocal.m4: Renegerate.
10460 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10466 * NEWS: Add "catch signal".
10467 * breakpoint.c (base_breakpoint_ops): No longer static.
10468 (bpstat_explains_signal): New function.
10469 (init_catchpoint): No longer static.
10470 (base_breakpoint_explains_signal): New function.
10471 (base_breakpoint_ops): Initialize new field.
10472 * breakpoint.h (enum bpstat_signal_value): New.
10473 (struct breakpoint_ops) <explains_signal>: New field.
10474 (bpstat_explains_signal): Remove macro, declare as function.
10475 (base_breakpoint_ops, init_catchpoint): Declare.
10476 * break-catch-sig.c: New file.
10477 * inferior.h (signal_catch_update): Declare.
10478 * infrun.c (signal_catch): New global.
10479 (handle_syscall_event): Update for change to
10480 bpstat_explains_signal.
10481 (handle_inferior_event): Likewise. Always handle random signals
10483 (signal_cache_update): Check signal_catch.
10484 (signal_catch_update): New function.
10485 (_initialize_infrun): Initialize signal_catch.
10486 * Makefile.in (SFILES): Add break-catch-sig.c.
10487 (COMMON_OBS): Add break-catch-sig.o.
10491 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10492 (print_one_catch_solib, print_one_catch_syscall)
10493 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10498 * printcmd.c (current_display_number): Make it static.
10502 * infcmd.c (step_once): Don't check '!single_inst' as it was
10507 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10511 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10513 * command.h (add_setshow_string_noescape_cmd): Update.
10514 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10515 (complete_set_gnutarget): New function.
10516 (_initialize_core): Set the "set gnutarget" completer.
10521 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10522 (c_type_print_modifier): Likewise.
10523 * dwarf2read.c (read_tag_restrict_type): New function.
10524 (read_type_die_1): Handle DW_TAG_restrict_type.
10525 * gdbtypes.c (make_restrict_type): New function.
10526 (recursive_dump_type): Handle TYPE_RESTRICT.
10527 * gdbtypes.h (enum type_flag_values): Renumber.
10528 (enum type_instance_flag_value): Add
10529 TYPE_INSTANCE_FLAG_RESTRICT.
10530 (TYPE_RESTRICT): New macro.
10531 (make_restrict_type): Declare.
10536 * psymtab.c (struct psymtab_state): New.
10537 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10539 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10540 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10547 * remote.c (remote_threads_info): Make a copy of the reply from
10548 qfThreadInfo and use that instead of rs->buf.
10552 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10553 (dbx_psymtab_to_symtab): Likewise.
10554 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10555 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10556 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10560 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10561 make_cleanup_restore_current_language. Call set_language. Move
10562 OLD_CHAIN and INNER_CHAIN cleanups.
10563 * utils.c (do_restore_current_language)
10564 (make_cleanup_restore_current_language): New functions.
10565 * utils.h (make_cleanup_restore_current_language): New declaration.
10569 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10570 non-existing files.
10572 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10573 non-existing files if FILENAME is already absolute.
10577 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10578 fputs_filtered. Append trailing newline.
10583 * psymtab.c (init_psymbol_list): Clarify the comment.
10587 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10588 (update_dprintf_command_list): Assert that 'printf_line' is
10589 non-null. Remove condition check.
10594 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10596 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10598 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10602 * cp-abi.c (cplus_print_vtable): Don't return value from void
10604 * ada-lang.c (re_set_catch_assert): Ditto.
10608 * symfile.h (quick_symbol_functions): Delete member
10609 pre_expand_symtabs_matching. All uses removed.
10610 * dwarf2read.c (dw2_lookup_symbol): Implement.
10611 (dw2_do_expand_symtabs_matching): Delete.
10612 (dw2_pre_expand_symtabs_matching): Delete.
10613 (struct dw2_symtab_iterator): New type.
10614 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10615 (dw2_expand_symtabs_for_function): Rewrite.
10616 (dwarf2_gdb_index_functions): Update.
10617 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10618 (psym_functions): Update.
10622 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10623 * configure: Rebuild.
10624 * configure.ac: Add somread.o to the build if BFD has SOM
10626 * somread.c: Include som/aout.h, not syms.h.
10627 (som_symtab_read): Use som_external_symbol_dictionary_record.
10628 Unpack records manually.
10629 (_initialize_somread): Declare.
10633 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10634 Cast return_address to 64bits.
10638 * printcmd.c: Remove define of function output_command.
10639 * tracepoint.c: Remove extern of function output_command.
10640 * valprint.h: (output_command): New extern.
10644 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10646 (objc_language_defn): Use c_printchar, c_printstr,
10653 * ada-valprint.c (printstr, print_field_values): Remove
10655 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10657 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10659 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10660 * main.c (captured_main): Remove "epoch" argument.
10661 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10662 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10663 * p-valprint.c (pascal_object_print_value_fields): Remove
10665 * printcmd.c (print_command_1): Remove 'inspect' argument.
10666 (print_command, call_command): Update.
10667 (inspect_command): Remove.
10668 (_initialize_printcmd): Make "inspect" an alias for "print".
10669 * top.c (epoch_interface): Remove.
10670 * top.h (epoch_interface): Remove.
10671 * valprint.c (user_print_options): Update.
10672 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10673 * valprint.h (struct value_print_options) <inspect_it>: Remove
10678 * valprint.h (read_string): Add 'extern'.
10682 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10683 used to decide whether to define darwin_read_dyld_info or not.
10687 * main.c (relocate_gdb_directory): Avoid calling stat function
10692 * psymtab.c (fixup_psymbol_section): Update declaration.
10693 (fixup_psymbol_section): Remove code returning value.
10697 * symtab.h: Remove some out of date comments.
10698 (enum exception_event_kind): Move it ...
10699 * breakpoint.c: ... here.
10704 * darwin-nat.c (darwin_read_dyld_info): Only build if
10705 TASK_DYLD_INFO_COUNT is defined.
10706 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10707 TASK_DYLD_INFO_COUNT is defined.
10711 * symfile.h (struct ecoff_debug_hack): Remove.
10712 * objfiles.c: Don't include mdebugread.h.
10716 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10717 * configure.ac: Check for Mach-O support in BFD. Update
10719 * configure: Rebuild.
10723 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10724 * configure.ac: Use GDB_AC_CHECK_BFD.
10725 * configure: Rebuild.
10729 * MAINTAINERS: Update my email.
10733 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10737 * rs6000-nat.c (bss_data_overlap): New function.
10738 (vmap_symtab): Use it to adjust the .bss section's offset.
10742 Update year range in copyright notice of all files.
10746 * top.c (print_gdb_version): Update copyright year.
10748 For older changes see ChangeLog-2012.
10754 version-control: never