4 * remote-notif.c (handle_notification): Return early if no
9 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
14 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
18 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
19 * ctf.c (ctf_start): Remove obsolete comment.
23 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
27 * auto-load.h (script_language): New members name, auto_load_enabled.
28 Add missing comments on struct members.
29 (auto_load_objfile_script): Delete.
30 * auto-load.c: #include "cli/cli-cmds.h".
31 (auto_load_gdb_scripts_enabled): New function.
32 (script_language_gdb): Update, add new members.
33 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
34 and call to maybe_add_script moved to caller.
35 (auto_load_objfile_script_1): Auto-load safe-checking and
36 call to maybe_add_script moved here.
37 (auto_load_objfile_script): Make static. Early exit if support for
38 scripting language hasn't been compiled in, or auto-loading has been
40 (source_section_scripts): Argument "source_name" renamed to
41 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
42 with section_name. Skip loading script if support for scripting
43 language hasn't been compiled in, or auto-loading has been disabled.
44 Call language->source_script_for_objfile instead of calling
45 source_python_script_for_objfile directly.
46 (load_auto_scripts_for_objfile): Update.
47 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
48 (gdbpy_load_auto_script_for_objfile): Delete.
49 (auto_load_python_scripts_enabled): New function.
50 (script_language_python): Update, add new members.
51 (gdbpy_script_language_defn): New function.
52 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
53 (gdbpy_script_language_defn): Declare.
55 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
56 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
57 (source_section_scripts): Moved here from py-auto-load.c.
58 (auto_load_section_scripts): Ditto.
59 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
60 auto-load.c, renamed AUTO_SECTION_NAME.
61 (source_section_scripts, auto_load_section_scripts): Moved to
66 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
70 * gdbarch.sh: Remove include of "gdb_string.h", replace by
75 * python/py-auto-load.c (source_section_scripts): Move comment to
76 more relevant location.
79 * python/py-breakpoint.c: Remove trailing whitespace.
80 * python/py-cmd.c: Ditto.
81 * python/py-evts.c: Ditto.
82 * python/py-finishbreakpoint.c: Ditto.
83 * python/py-frame.c: Ditto.
84 * python/py-function.c: Ditto.
85 * python/py-inferior.c: Ditto.
86 * python/py-infthread.c: Ditto.
87 * python/py-param.c: Ditto.
88 * python/py-prettyprint.c: Ditto.
89 * python/py-symbol.c: Ditto.
90 * python/py-type.c: Ditto.
91 * python/py-utils.c: Ditto.
92 * python/py-value.c: Ditto.
93 * python/python-internal.h: Ditto.
94 * python/python.c: Ditto.
98 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
102 * breakpoint.c (build_target_condition_list): Release previous
104 (build_target_command_list): Release previous commands.
105 (bp_location_dtor): Release target conditions and commands.
106 * remote.c (remote_add_target_side_condition): Don't release
108 (remote_add_target_side_commands): Don't release commands.
113 * dcache.c (dcache_read_line): Use current_target.beneath
114 instead of ¤t_target.
115 * target.c (memory_xfer_partial_1): Factor code out to ...
116 (raw_memory_xfer_partial): ... it. New function.
117 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
118 is TARGET_OBJECT_RAW_MEMORY.
122 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
123 breakpoint_object. All uses updated.
124 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
125 breakpoint_object. All uses updated.
126 * python.c (*): All uses of breakpoint_object updated.
127 * python.h (*): All uses of breakpoint_object updated.
128 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
129 * python/py-finishbreakpoint.c (*): Ditto.
133 * configure.ac: Add comments delineating libpython and libmcheck.
134 * configure: Regenerate.
139 * valprint.c (value_check_printable): If the value is entirely
140 unavailable, print a single "<unavailable>" instead of printing
145 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
146 Add "set debug frame" output.
147 (frame_stop_reason_symbol_string): New function.
151 * frame-unwind.c (default_frame_unwind_stop_reason): Return
152 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
153 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
157 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
158 set the unwind stop reason to UNWIND_OUTERMOST, not
159 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
163 * frame.c (frame_unwind_register): Say the register was "not
164 saved" instead of "optimized out".
169 * configure: Rebuild.
170 * configure.ac: Tighten cygwin detection check.
174 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
175 register in the previous frame's arch.
179 * frame-unwind.c (frame_unwind_got_optimized): Return
180 an lval_register value instead of a not_lval value.
184 * frame.c: Include "valprint.h".
185 (frame_unwind_register_value): Use value_optimized_out.
186 * value.c (value_fetch_lazy): Likewise.
190 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
194 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
199 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
200 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
201 (HAS_MPX): New macro.
202 (HAS_AVX): New macro.
203 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
208 * c-exp.y (classify_inner_name): If no matching symbol was
209 found, try looking up the token as a base class.
210 Likewise if a constructor was found.
211 * cp-namespace.c (find_type_baseclass_by_name): New function.
212 * cp-support.h (find_type_baseclass_by_name): Declare.
213 * valops.c (value_struct_elt_for_reference): If we get
214 a non-static field, try to get a value based on the
215 current instance, if any.
219 * disasm.c (dis_asm_read_memory): Call target_read_code
220 instead of target_read_memory.
224 * NEWS: Add note on new "set code-cache" option.
225 * target-dcache.c (code_cache_enabled_1): New variable.
226 (code_cache_enabled): New variable.
227 (show_code_cache, set_code_cache): New function.
228 (code_cache_enabled_p): New function.
229 (_initialize_target_dcache): Register command.
230 * target-dcache.h (code_cache_enabled_p): Declare.
231 * target.c (memory_xfer_partial_1):Handle
232 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
233 (target_read_code): New function.
234 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
236 (target_read_code): Declare.
240 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
241 (stack_cache_enabled_1): ... this. New variable.
242 (stack_cache_enabled_p): Rename to ...
243 (stack_cache_enabled): ... this. New variable.
244 (set_stack_cache_enabled_p): Rename to ...
245 (set_stack_cache): ... this. Update caller.
246 (show_stack_cache_enabled_p): Rename to ...
247 (show_stack_cache): ... this. Update caller.
248 (stack_cache_enabled): Rename to ...
249 (stack_cache_enabled_p): ... this. Update caller.
250 (_initialize_target_dcache): Replace "data cache" with
251 "target memory cache".
252 * target-dcache.h (stack_cache_enabled): Remove declaration.
253 (stack_cache_enabled_p): Add declaration.
257 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
262 * python/py-frame.c (frapy_block): Fix error message text.
266 * cli/cli-script.c (multi_line_command_p): New function.
267 (recurse_read_control_structure, read_command_lines_1): Call it.
268 (execute_control_command): Consistently have a blank line between
274 * valprint.c (read_string): Set new variable fetchlen based on
275 fetchlimit and size. Use it in call to partial_memory_read.
281 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
282 the return address column is unspecified.
288 * value.c (value_fetch_lazy): Internal error if
289 get_frame_register_value returns the same register.
294 * frame.c (frame_stash_add): Now returns whether a frame with the
295 same ID was already known.
296 (compute_frame_id): New function, factored out from get_frame_id.
297 (get_frame_id): No longer lazilly compute the frame id here.
298 (get_prev_frame_if_no_cycle): New function. Detects wider stack
300 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
301 and checking for stack cycles here.
306 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
307 this frame and the new previous frame, not between this frame and
313 * dwarf2-frame.c (struct dwarf2_frame_cache)
314 <checked_tailcall_bottom, entry_cfa_sp_offset,
315 entry_cfa_sp_offset_p>: New fields.
316 (dwarf2_frame_cache): Adjust to use the new cache fields instead
317 of locals. Don't call dwarf2_tailcall_sniffer_first here.
318 (dwarf2_frame_prev_register): Call it here, but only once.
322 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
323 (type_equality_entry): Move here from python/py-type.c.
324 (type_equality_entry_d): Ditto.
325 (compare_maybe_null_strings, check_types_equal): Ditto.
326 (check_types_worklist, types_deeply_equal): Ditto.
327 * gdbtypes.h (types_deeply_equal): Declare.
328 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
329 (typy_richcompare): Update.
333 * python/py-value.c (is_intlike): Delete.
334 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
335 by use of is_integral_type.
336 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
337 by use of is_integral_type and check for TYPE_CODE_PTR.
341 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
343 * gnulib/aclocal.m4: Update.
344 * gnulib/config.in: Update.
345 * gnulib/configure: Update.
346 * gnulib/import/Makefile.am: Update.
347 * gnulib/import/Makefile.in: Update.
348 * gnulib/import/errno.in.h: Remove.
349 * gnulib/import/intprops.h: Remove.
350 * gnulib/import/m4/errno_h.m4: Remove.
351 * gnulib/import/m4/gnulib-cache.m4: Update.
352 * gnulib/import/m4/gnulib-comp.m4: Update.
353 * gnulib/import/m4/strerror.m4: Remove.
354 * gnulib/import/m4/sys_socket_h.m4: Remove.
355 * gnulib/import/strerror-override.c: Remove.
356 * gnulib/import/strerror-override.h: Remove.
357 * gnulib/import/strerror.c: Remove.
358 * gnulib/update-gnulib.sh: Update.
362 * target-dcache.c (target_dcache_get_or_init): Call
363 set_address_space_data if 'dcache' is NULL.
367 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
371 * python/lib/gdb/command/bound_register.py: New file.
372 * data-directory/Makefile.in: Copy bond_register.py to the right path
373 to be initialized at gdb startup.
377 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
379 (amd64_linux_read_description): Add initialization for MPX and
381 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
382 (amd64_linux_gregset_reg_offset): Add MPX registers.
383 (amd64_linux_core_read_description): Add initialization for MPX
385 (_initialize_amd64_linux_tdep): Initialize MPX targets.
386 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
387 register on the list.
388 (tdesc_amd64_mpx_linux) Add new target for MPX.
389 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
390 (amd64_mpx_names): MPX register names.
391 (amd64_init_abi): Add MPX register while initializing the ABI.
392 (_initialize_amd64_tdep): Initialize MPX targets.
393 * amd64-tdep.h (amd64_regnum): Add MPX registers.
394 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
398 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
399 registers on the range of registers to be read from
401 (i386_linux_read_description): Add case for MPX.
402 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
403 (i386_linux_gregset_reg_offset): Add MPX registers.
404 (i386_linux_core_read_description): Initialize also MPX.
405 (_initialize_i386_linux_tdep): Add mpx initialization.
406 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
408 (i386_regnum): Add MPX registers.
409 (I386_MPX_NUM_REGS): New macro.
410 (i386_bnd_regnum_p): New function.
411 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
412 number of registers to be the number of BNDSTATUS.
413 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
414 * i386-tdep.c: Include features/i386/i386-mpx.c.
415 (i386_mpx_names): Add MPX register names array.
416 (i386_bnd_names): Add bnd pseudo register names array.
417 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
419 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
420 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
422 (i386_bnd_type): New function.
423 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
425 (i386_pseudo_register_read_into_value): Add bnd case.
426 (i386_pseudo_register_write): Add bnd pseudo registers.
427 (i386_register_reggroup_p): Add MPX register to the group all.
428 (i386_validate_tdesc_p): Add MPX to the target description
430 (i386_pseudo_register_name): Add bnd pseudo registers.
431 (i386_gdbarch_init): Add MPX for architecture initialization.
432 (_initia_initialize_i386_tdep): Add mpx initialization.
433 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
435 (XSAVE_MPX_ADDR): New macro.
436 (i387_supply_xsave): Add MPX case.
437 (i387_collect_xsave): Add MPX case.
438 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
439 (I387_BNDCFGU_REGNUM): New macro.
440 (I387_NUM_MPX_REGS): New macro.
441 (I387_NUM_BND_REGS): New macro.
442 (I387_NUM_MPX_CTRL_REGS): New macro.
443 (I387_MPXEND_REGNUM): New macro.
444 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
445 (I386_XSTATE_BNDCFG): Likewise.
446 (I386_XSTATE_MPX_MASK): Likewise.
447 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
448 (I386_XSTATE_BNDREGS_SIZE): New macro.
449 (I386_XSTATE_BNDCFG_SIZE): Likewise.
450 (I386_XSTATE_SIZE): Adapt for MPX.
451 (I386_XSTATE_MAX_SIZE): Likewise.
455 * features/i386/Makefile: Adapts for using MPX registers.
456 * features/i386/32bit-mpx.xml: New file.
457 * features/i386/64bit-mpx.xml: Likewise.
458 * features/i386/amd64-mpx-linux.c: Likewise.
459 * features/i386/amd64-mpx-linux.xml: Likewise.
460 * features/i386/amd64-mpx.c: Likewise.
461 * features/i386/amd64-mpx.xml: Likewise.
462 * features/i386/i386-mpx-linux.c: Likewise.
463 * features/i386/i386-mpx-linux.xml: Likewise.
464 * features/i386/i386-mpx.c: Likewise.
465 * features/i386/i386-mpx.xml: Likewise.
466 * regformats/i386/amd64-mpx-linux.dat: New file.
467 * regformats/i386/amd64-mpx.dat: Likewise.
468 * regformats/i386/i386-mpx-linux.dat: Likewise.
469 * regformats/i386/i386-mpx.dat: Likewise.
473 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
474 Modified logic of creating a bitfield to be in sync with
479 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
484 * progspace.h (struct address_space_data): Declare.
485 * target-dcache.c: Include "progspace.h".
486 (target_dache): Remove.
487 (target_dcache_aspace_key): New.
488 (target_dcache_cleanup): New function.
489 (target_dcache_init_p): Get data through
490 target_dcache_aspace_key.
491 (target_dcache_invalidate): Likewise.
492 (target_dcache_get): Likewise.
493 (target_dcache_get_or_init): Likewise.
494 (_initialize_target_dcache): Initialize
495 target_dcache_aspace_key.
499 * progspace.c (struct address_space): Update comments.
500 <REGISTRY_FIELDS>: New fields.
501 DEFINE_REGISTRY for address_space.
502 (new_address_space): Call address_space_alloc_data.
503 (free_address_space): Call address_space_free_data.
504 * progspace.h: Use DECLARE_REGISTRY.
508 * Makefile.in (SFILES):Add target-dcache.c.
509 (HFILES_NO_SRCDIR): Add target-dcache.h.
510 (COMMON_OBS): Add target-dcache.o.
511 * dcache.c: Remove inclusion to "target.h". Include
513 * memattr.c: Include "target-dcache.h".
515 * tracepoint.c: Likewise.
516 * target.c: (stack_cache_enabled_p_1): Move to
518 (stack_cache_enabled_p): Likewise.
519 (set_stack_cache_enabled_p): Likewise.
520 (show_stack_cache_enabled_p): Likewise.
521 (target_dcache, target_dcache_init_p): Likewise.
522 (target_dcache_invalidate): Likewise.
523 (target_dcache_get, target_dcache_get_or_init): Likewise.
524 (memory_xfer_partial_1): Call function stack_cache_enabled.
525 (initialize_target): Move code to target-dcache.c.
526 * target.h (target_dcache_invalidate): Move to
528 (target_dcache_get): Likewise.
529 * target-dcache.c: New.
530 * target-dcache.h: New.
534 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
539 * dcache.c (last_cache): Remove.
540 (dcache_free, dcache_init): Update.
542 (dcache_print_line): Add parameter 'dcache'. Replace
543 'target_dcache' with 'dcache'.
544 (dcache_info): Move code to dcache_info_1. Call
546 (dcache_info_1): New function.
547 (set_dcache_size): Call target_dcache_invalidate.
548 (set_dcache_line_size): Call target_dcache_invalidate.
549 * target.c (target_dcache_init_p): New function.
550 (target_dcache_invalidate): Check target_dcache_init_p first.
551 (target_dcache_get, target_dcache_get_or_init): New function.
552 (memory_xfer_partial_1): Adjust.
553 (initialize_target): Don't initialize 'target_dcache'.
554 * target.h (struct dcache_struct): Declare.
555 (target_dcache_get): Declare.
559 * varobj.c (varobj_get_type): Fix typo.
563 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
567 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
572 * common/gdb_stat.h: Remove.
573 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
574 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
575 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
576 * corefile.c: Use sys/stat.h, not gdb_stat.h.
577 * ctf.c: Use sys/stat.h, not gdb_stat.h.
578 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
579 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
580 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
581 * exec.c: Use sys/stat.h, not gdb_stat.h.
582 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
583 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
584 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
585 * jit.c: Use sys/stat.h, not gdb_stat.h.
586 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
587 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
588 * main.c: Use sys/stat.h, not gdb_stat.h.
589 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
590 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
591 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
592 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
593 * procfs.c: Use sys/stat.h, not gdb_stat.h.
594 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
595 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
596 * remote.c: Use sys/stat.h, not gdb_stat.h.
597 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
598 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
599 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
600 * source.c: Use sys/stat.h, not gdb_stat.h.
601 * symfile.c: Use sys/stat.h, not gdb_stat.h.
602 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
603 * symtab.c: Use sys/stat.h, not gdb_stat.h.
604 * top.c: Use sys/stat.h, not gdb_stat.h.
605 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
609 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
611 * gnulib/aclocal.m4: Update.
612 * gnulib/config.in: Update.
613 * gnulib/configure: Update.
614 * gnulib/import/Makefile.am: Update.
615 * gnulib/import/Makefile.in: Update.
616 * gnulib/import/m4/gnulib-cache.m4: Update.
617 * gnulib/import/m4/gnulib-comp.m4: Update.
618 * gnulib/import/m4/sys_stat_h.m4: New.
619 * gnulib/import/m4/time_h.m4: New.
620 * gnulib/import/sys_stat.in.h: New.
621 * gnulib/import/time.in.h: New.
625 * configure: Rebuild.
626 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
630 * configure: Rebuild.
631 * configure.ac: Don't check for unistd.h.
635 * configure: Rebuild.
636 * configure.ac: Don't check for stdlib.h
637 * defs.h: Include stdlib.h unconditionally.
641 * config.in: Rebuild.
642 * configure: Rebuild.
643 * configure.ac: Don't check for stddef.h.
644 * defs.h: Unconditionally include stddef.h. Remove duplicate
649 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
650 * common/gdb_dirent.h: Remove.
651 * common/filestuff.c: Use dirent.h.
652 * common/linux-osdata.c: Use dirent.h.
654 * config.in: Rebuild.
655 * configure: Rebuild.
656 * configure.ac: Don't use AC_HEADER_DIRENT.
657 * linux-fork.c: Use dirent.h
658 * linux-nat.c: Use dirent.h.
659 * nto-procfs.c: Use dirent.h.
660 * procfs.c: Use dirent.h.
664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
665 * gnulib/aclocal.m4: Update.
666 * gnulib/config.in: Update.
667 * gnulib/configure: Update.
668 * gnulib/import/Makefile.am: Update.
669 * gnulib/import/Makefile.in: Update.
670 * gnulib/import/dirent.in.h: New.
671 * gnulib/import/m4/dirent_h.m4: New.
672 * gnulib/import/m4/gnulib-cache.m4: Update.
673 * gnulib/import/m4/gnulib-comp.m4: Update.
677 * configure: Rebuild.
678 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
683 * common/gdb_string.h: Remove.
684 * aarch64-tdep.c: Use string.h, not gdb_string.h.
685 * ada-exp.y: Use string.h, not gdb_string.h.
686 * ada-lang.c: Use string.h, not gdb_string.h.
687 * ada-lex.l: Use string.h, not gdb_string.h.
688 * ada-typeprint.c: Use string.h, not gdb_string.h.
689 * ada-valprint.c: Use string.h, not gdb_string.h.
690 * aix-thread.c: Use string.h, not gdb_string.h.
691 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
692 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
693 * alpha-nat.c: Use string.h, not gdb_string.h.
694 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
695 * alpha-tdep.c: Use string.h, not gdb_string.h.
696 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
697 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
698 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
699 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
700 * amd64-nat.c: Use string.h, not gdb_string.h.
701 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
702 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
703 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
704 * arch-utils.c: Use string.h, not gdb_string.h.
705 * arm-linux-nat.c: Use string.h, not gdb_string.h.
706 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
707 * arm-tdep.c: Use string.h, not gdb_string.h.
708 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
709 * armbsd-tdep.c: Use string.h, not gdb_string.h.
710 * armnbsd-nat.c: Use string.h, not gdb_string.h.
711 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
712 * armobsd-tdep.c: Use string.h, not gdb_string.h.
713 * avr-tdep.c: Use string.h, not gdb_string.h.
714 * ax-gdb.c: Use string.h, not gdb_string.h.
715 * ax-general.c: Use string.h, not gdb_string.h.
716 * bcache.c: Use string.h, not gdb_string.h.
717 * bfin-tdep.c: Use string.h, not gdb_string.h.
718 * breakpoint.c: Use string.h, not gdb_string.h.
719 * build-id.c: Use string.h, not gdb_string.h.
720 * buildsym.c: Use string.h, not gdb_string.h.
721 * c-exp.y: Use string.h, not gdb_string.h.
722 * c-lang.c: Use string.h, not gdb_string.h.
723 * c-typeprint.c: Use string.h, not gdb_string.h.
724 * c-valprint.c: Use string.h, not gdb_string.h.
725 * charset.c: Use string.h, not gdb_string.h.
726 * cli-out.c: Use string.h, not gdb_string.h.
727 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
728 * cli/cli-decode.c: Use string.h, not gdb_string.h.
729 * cli/cli-dump.c: Use string.h, not gdb_string.h.
730 * cli/cli-interp.c: Use string.h, not gdb_string.h.
731 * cli/cli-logging.c: Use string.h, not gdb_string.h.
732 * cli/cli-script.c: Use string.h, not gdb_string.h.
733 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
734 * cli/cli-utils.c: Use string.h, not gdb_string.h.
735 * coffread.c: Use string.h, not gdb_string.h.
736 * common/common-utils.c: Use string.h, not gdb_string.h.
737 * common/filestuff.c: Use string.h, not gdb_string.h.
738 * common/linux-procfs.c: Use string.h, not gdb_string.h.
739 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
740 * common/signals.c: Use string.h, not gdb_string.h.
741 * common/vec.h: Use string.h, not gdb_string.h.
742 * core-regset.c: Use string.h, not gdb_string.h.
743 * corefile.c: Use string.h, not gdb_string.h.
744 * corelow.c: Use string.h, not gdb_string.h.
745 * cp-abi.c: Use string.h, not gdb_string.h.
746 * cp-support.c: Use string.h, not gdb_string.h.
747 * cp-valprint.c: Use string.h, not gdb_string.h.
748 * cris-tdep.c: Use string.h, not gdb_string.h.
749 * d-lang.c: Use string.h, not gdb_string.h.
750 * dbxread.c: Use string.h, not gdb_string.h.
751 * dcache.c: Use string.h, not gdb_string.h.
752 * demangle.c: Use string.h, not gdb_string.h.
753 * dicos-tdep.c: Use string.h, not gdb_string.h.
754 * disasm.c: Use string.h, not gdb_string.h.
755 * doublest.c: Use string.h, not gdb_string.h.
756 * dsrec.c: Use string.h, not gdb_string.h.
757 * dummy-frame.c: Use string.h, not gdb_string.h.
758 * dwarf2-frame.c: Use string.h, not gdb_string.h.
759 * dwarf2loc.c: Use string.h, not gdb_string.h.
760 * dwarf2read.c: Use string.h, not gdb_string.h.
761 * elfread.c: Use string.h, not gdb_string.h.
762 * environ.c: Use string.h, not gdb_string.h.
763 * eval.c: Use string.h, not gdb_string.h.
764 * event-loop.c: Use string.h, not gdb_string.h.
765 * exceptions.c: Use string.h, not gdb_string.h.
766 * exec.c: Use string.h, not gdb_string.h.
767 * expprint.c: Use string.h, not gdb_string.h.
768 * f-exp.y: Use string.h, not gdb_string.h.
769 * f-lang.c: Use string.h, not gdb_string.h.
770 * f-typeprint.c: Use string.h, not gdb_string.h.
771 * f-valprint.c: Use string.h, not gdb_string.h.
772 * fbsd-nat.c: Use string.h, not gdb_string.h.
773 * findcmd.c: Use string.h, not gdb_string.h.
774 * findvar.c: Use string.h, not gdb_string.h.
775 * fork-child.c: Use string.h, not gdb_string.h.
776 * frame.c: Use string.h, not gdb_string.h.
777 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
778 * frv-tdep.c: Use string.h, not gdb_string.h.
779 * gdb.c: Use string.h, not gdb_string.h.
780 * gdb_bfd.c: Use string.h, not gdb_string.h.
781 * gdbarch.c: Use string.h, not gdb_string.h.
782 * gdbtypes.c: Use string.h, not gdb_string.h.
783 * gnu-nat.c: Use string.h, not gdb_string.h.
784 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
785 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
786 * go-exp.y: Use string.h, not gdb_string.h.
787 * go-lang.c: Use string.h, not gdb_string.h.
788 * go32-nat.c: Use string.h, not gdb_string.h.
789 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
790 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
791 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
792 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
793 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
794 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
795 * i386-linux-nat.c: Use string.h, not gdb_string.h.
796 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
797 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
798 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
799 * i386-tdep.c: Use string.h, not gdb_string.h.
800 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
801 * i386gnu-nat.c: Use string.h, not gdb_string.h.
802 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
803 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
804 * i387-tdep.c: Use string.h, not gdb_string.h.
805 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
806 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
807 * inf-child.c: Use string.h, not gdb_string.h.
808 * inf-ptrace.c: Use string.h, not gdb_string.h.
809 * inf-ttrace.c: Use string.h, not gdb_string.h.
810 * infcall.c: Use string.h, not gdb_string.h.
811 * infcmd.c: Use string.h, not gdb_string.h.
812 * inflow.c: Use string.h, not gdb_string.h.
813 * infrun.c: Use string.h, not gdb_string.h.
814 * interps.c: Use string.h, not gdb_string.h.
815 * iq2000-tdep.c: Use string.h, not gdb_string.h.
816 * irix5-nat.c: Use string.h, not gdb_string.h.
817 * jv-exp.y: Use string.h, not gdb_string.h.
818 * jv-lang.c: Use string.h, not gdb_string.h.
819 * jv-typeprint.c: Use string.h, not gdb_string.h.
820 * jv-valprint.c: Use string.h, not gdb_string.h.
821 * language.c: Use string.h, not gdb_string.h.
822 * linux-fork.c: Use string.h, not gdb_string.h.
823 * linux-nat.c: Use string.h, not gdb_string.h.
824 * lm32-tdep.c: Use string.h, not gdb_string.h.
825 * m2-exp.y: Use string.h, not gdb_string.h.
826 * m2-typeprint.c: Use string.h, not gdb_string.h.
827 * m32c-tdep.c: Use string.h, not gdb_string.h.
828 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
829 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
830 * m32r-rom.c: Use string.h, not gdb_string.h.
831 * m32r-tdep.c: Use string.h, not gdb_string.h.
832 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
833 * m68k-tdep.c: Use string.h, not gdb_string.h.
834 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
835 * m68klinux-nat.c: Use string.h, not gdb_string.h.
836 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
837 * m88k-tdep.c: Use string.h, not gdb_string.h.
838 * macrocmd.c: Use string.h, not gdb_string.h.
839 * main.c: Use string.h, not gdb_string.h.
840 * mdebugread.c: Use string.h, not gdb_string.h.
841 * mem-break.c: Use string.h, not gdb_string.h.
842 * memattr.c: Use string.h, not gdb_string.h.
843 * memory-map.c: Use string.h, not gdb_string.h.
844 * mep-tdep.c: Use string.h, not gdb_string.h.
845 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
846 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
847 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
848 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
849 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
850 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
851 * mi/mi-console.c: Use string.h, not gdb_string.h.
852 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
853 * mi/mi-interp.c: Use string.h, not gdb_string.h.
854 * mi/mi-main.c: Use string.h, not gdb_string.h.
855 * mi/mi-parse.c: Use string.h, not gdb_string.h.
856 * microblaze-rom.c: Use string.h, not gdb_string.h.
857 * microblaze-tdep.c: Use string.h, not gdb_string.h.
858 * mingw-hdep.c: Use string.h, not gdb_string.h.
859 * minidebug.c: Use string.h, not gdb_string.h.
860 * minsyms.c: Use string.h, not gdb_string.h.
861 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
862 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
863 * mips-tdep.c: Use string.h, not gdb_string.h.
864 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
865 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
866 * mipsread.c: Use string.h, not gdb_string.h.
867 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
868 * mn10300-tdep.c: Use string.h, not gdb_string.h.
869 * monitor.c: Use string.h, not gdb_string.h.
870 * moxie-tdep.c: Use string.h, not gdb_string.h.
871 * mt-tdep.c: Use string.h, not gdb_string.h.
872 * nbsd-tdep.c: Use string.h, not gdb_string.h.
873 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
874 * nto-procfs.c: Use string.h, not gdb_string.h.
875 * nto-tdep.c: Use string.h, not gdb_string.h.
876 * objc-lang.c: Use string.h, not gdb_string.h.
877 * objfiles.c: Use string.h, not gdb_string.h.
878 * opencl-lang.c: Use string.h, not gdb_string.h.
879 * osabi.c: Use string.h, not gdb_string.h.
880 * osdata.c: Use string.h, not gdb_string.h.
881 * p-exp.y: Use string.h, not gdb_string.h.
882 * p-lang.c: Use string.h, not gdb_string.h.
883 * p-typeprint.c: Use string.h, not gdb_string.h.
884 * parse.c: Use string.h, not gdb_string.h.
885 * posix-hdep.c: Use string.h, not gdb_string.h.
886 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
887 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
888 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
889 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
890 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
891 * printcmd.c: Use string.h, not gdb_string.h.
892 * procfs.c: Use string.h, not gdb_string.h.
893 * prologue-value.c: Use string.h, not gdb_string.h.
894 * python/py-auto-load.c: Use string.h, not gdb_string.h.
895 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
896 * ravenscar-thread.c: Use string.h, not gdb_string.h.
897 * regcache.c: Use string.h, not gdb_string.h.
898 * registry.c: Use string.h, not gdb_string.h.
899 * remote-fileio.c: Use string.h, not gdb_string.h.
900 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
901 * remote-mips.c: Use string.h, not gdb_string.h.
902 * remote-sim.c: Use string.h, not gdb_string.h.
903 * remote.c: Use string.h, not gdb_string.h.
904 * reverse.c: Use string.h, not gdb_string.h.
905 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
906 * ser-base.c: Use string.h, not gdb_string.h.
907 * ser-go32.c: Use string.h, not gdb_string.h.
908 * ser-mingw.c: Use string.h, not gdb_string.h.
909 * ser-pipe.c: Use string.h, not gdb_string.h.
910 * ser-tcp.c: Use string.h, not gdb_string.h.
911 * ser-unix.c: Use string.h, not gdb_string.h.
912 * serial.c: Use string.h, not gdb_string.h.
913 * sh-tdep.c: Use string.h, not gdb_string.h.
914 * sh64-tdep.c: Use string.h, not gdb_string.h.
915 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
916 * skip.c: Use string.h, not gdb_string.h.
917 * sol-thread.c: Use string.h, not gdb_string.h.
918 * solib-dsbt.c: Use string.h, not gdb_string.h.
919 * solib-frv.c: Use string.h, not gdb_string.h.
920 * solib-osf.c: Use string.h, not gdb_string.h.
921 * solib-spu.c: Use string.h, not gdb_string.h.
922 * solib-target.c: Use string.h, not gdb_string.h.
923 * solib.c: Use string.h, not gdb_string.h.
924 * somread.c: Use string.h, not gdb_string.h.
925 * source.c: Use string.h, not gdb_string.h.
926 * sparc-nat.c: Use string.h, not gdb_string.h.
927 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
928 * sparc-tdep.c: Use string.h, not gdb_string.h.
929 * sparc64-tdep.c: Use string.h, not gdb_string.h.
930 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
931 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
932 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
933 * spu-linux-nat.c: Use string.h, not gdb_string.h.
934 * spu-multiarch.c: Use string.h, not gdb_string.h.
935 * spu-tdep.c: Use string.h, not gdb_string.h.
936 * stabsread.c: Use string.h, not gdb_string.h.
937 * stack.c: Use string.h, not gdb_string.h.
938 * std-regs.c: Use string.h, not gdb_string.h.
939 * symfile.c: Use string.h, not gdb_string.h.
940 * symmisc.c: Use string.h, not gdb_string.h.
941 * symtab.c: Use string.h, not gdb_string.h.
942 * target.c: Use string.h, not gdb_string.h.
943 * thread.c: Use string.h, not gdb_string.h.
944 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
945 * tilegx-tdep.c: Use string.h, not gdb_string.h.
946 * top.c: Use string.h, not gdb_string.h.
947 * tracepoint.c: Use string.h, not gdb_string.h.
948 * tui/tui-command.c: Use string.h, not gdb_string.h.
949 * tui/tui-data.c: Use string.h, not gdb_string.h.
950 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
951 * tui/tui-file.c: Use string.h, not gdb_string.h.
952 * tui/tui-layout.c: Use string.h, not gdb_string.h.
953 * tui/tui-out.c: Use string.h, not gdb_string.h.
954 * tui/tui-regs.c: Use string.h, not gdb_string.h.
955 * tui/tui-source.c: Use string.h, not gdb_string.h.
956 * tui/tui-stack.c: Use string.h, not gdb_string.h.
957 * tui/tui-win.c: Use string.h, not gdb_string.h.
958 * tui/tui-windata.c: Use string.h, not gdb_string.h.
959 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
960 * typeprint.c: Use string.h, not gdb_string.h.
961 * ui-file.c: Use string.h, not gdb_string.h.
962 * ui-out.c: Use string.h, not gdb_string.h.
963 * user-regs.c: Use string.h, not gdb_string.h.
964 * utils.c: Use string.h, not gdb_string.h.
965 * v850-tdep.c: Use string.h, not gdb_string.h.
966 * valarith.c: Use string.h, not gdb_string.h.
967 * valops.c: Use string.h, not gdb_string.h.
968 * valprint.c: Use string.h, not gdb_string.h.
969 * value.c: Use string.h, not gdb_string.h.
970 * varobj.c: Use string.h, not gdb_string.h.
971 * vax-tdep.c: Use string.h, not gdb_string.h.
972 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
973 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
974 * windows-nat.c: Use string.h, not gdb_string.h.
975 * xcoffread.c: Use string.h, not gdb_string.h.
976 * xml-support.c: Use string.h, not gdb_string.h.
977 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
978 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
982 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
984 * gnulib/aclocal.m4: Update.
985 * gnulib/config.in: Update.
986 * gnulib/configure: Update.
987 * gnulib/import/Makefile.am: Update.
988 * gnulib/import/Makefile.in: Update.
989 * gnulib/import/errno.in.h: New.
990 * gnulib/import/intprops.h: New.
991 * gnulib/import/m4/errno_h.m4: New.
992 * gnulib/import/m4/gnulib-cache.m4: Update.
993 * gnulib/import/m4/gnulib-comp.m4: Update.
994 * gnulib/import/m4/strerror.m4: New.
995 * gnulib/import/m4/strstr.m4: New.
996 * gnulib/import/m4/sys_socket_h.m4: New.
997 * gnulib/import/strerror-override.c: New.
998 * gnulib/import/strerror-override.h: New.
999 * gnulib/import/strerror.c: New.
1000 * gnulib/import/strstr.c: New.
1004 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1009 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1010 * sparc-tdep.h: And its prototype.
1012 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1014 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1018 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1023 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1024 to -list-features output.
1028 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1029 <read_addr_from_reg>: Renames "read_reg".
1030 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1032 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1033 Use read_addr_from_reg in place of read_reg.
1034 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1035 in place of read_reg.
1036 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1037 dwarf_expr_read_reg.
1038 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1039 with dwarf_expr_read_addr_from_reg.
1040 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1041 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1042 needs_frame_read_addr_from_reg.
1046 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1050 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1056 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1057 (classify_name): Likewise. Prefer a field of "this" over a
1059 (classify_inner_name, yylex): Update.
1063 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1064 Extend the documentation a bit.
1065 <get_reg_value>: New field.
1066 * dwarf2loc.c (dwarf_expr_get_reg_value)
1067 (needs_frame_get_reg_value): New functions.
1068 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1070 * dwarf2-frame.c (get_reg_value): New function.
1071 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1072 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1073 Use new callback to compute result_val.
1077 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1078 (ppc64_desc_entry_point): ..this. Update comments here and at
1080 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1081 ppc64_standard_linkage3): Update comments.
1082 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1083 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1085 (ppc64_standard_linkage4_target): New function.
1086 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1087 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1088 nop match. Fix comment wrap.
1092 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1093 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1097 * infrun.c (struct execution_control_state)
1098 <stepped_after_stopped_by_watchpoint>: New field.
1099 (get_inferior_stop_soon): New function.
1100 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1101 moved to struct execution_control_state -- adjust. Use
1102 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1104 (handle_signal_stop): New function, factored out from
1105 handle_inferior_event.
1109 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1111 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1113 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1114 Adjust to return a boolean.
1115 * breakpoint.h (enum bpstat_signal_value): Delete.
1116 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1117 (bpstat_explains_signal): Likewise.
1118 * infrun.c (handle_inferior_event) <random signal checks>:
1119 bpstat_explains_signal now returns a boolean - adjust. No longer
1120 consider hiding signals.
1124 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1125 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1126 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1128 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1129 instead of BPSTAT_SIGNAL_HIDE.
1130 * infrun.c (handle_inferior_event): Rework random signal checks.
1134 * infrun.c (struct execution_control_state): Remove
1135 'random_signal' field.
1136 (handle_syscall_event): Use bpstat_causes_stop instead of
1137 bpstat_explains_signal. Don't set ecs->random_signal.
1138 (handle_inferior_event): New 'random_signal' local.
1139 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1140 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1141 bpstat_explains_signal. Don't set ecs->random_signal.
1142 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1147 * infrun.c (handle_inferior_event): Move comment from the
1148 function's body to the function's description, adjusted.
1152 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1153 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1154 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1159 * python/py-linetable.c (ltpy_has_line)
1160 (ltpy_get_all_source_lines): Fix loop termination condition.
1164 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1165 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1166 PARSE->LANGUAGE during command execution, if set.
1167 * mi/mi-parse.c: Add "language.h" #include.
1168 (mi_parse): Add parsing of "--language" command option.
1170 * NEWS: Add entry mentioning the new "--language" command option.
1175 * cli/cli-utils.h (extract_arg_const): Add declaration.
1176 * cli/cli-utils.c (extract_arg_const): New function.
1177 (extract_arg): Reimplement using extract_arg_const.
1181 * language.h: Add "symtab.h" #include.
1185 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1186 specific breakpoints, don't evaluate breakpoint condition if
1193 * cp-support.c (insepct_type): Add support for substituting
1194 namespace aliases, too.
1195 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1196 for DW_TAG_imported_declaration.
1197 (add_partial_symbol): Likewise.
1198 (process_die): Handle namespace aliases with
1199 read_namespace_alias.
1200 (die_needs_namespace): Add DW_TAG_imported_declaration.
1201 (read_namespace_alias): New function.
1202 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1203 (new_symbol_full): Handle DW_TAG_imported_declaration.
1207 * p-exp.y (uptok): Make first parameter const.
1208 (yylex): Make `tokstart' and `tokptr' const.
1209 Don't copy the lexer input to a temporary buffer.
1211 Remove const workaround for parse_escape.
1212 Create a temporary buffer for a convenience variable instead
1213 of doing in-place modification of the input.
1214 If a match is found with a different case from the input,
1215 do not change the input at all.
1216 Use `tmp' to construct the resultant stoken instead of
1221 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1225 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1226 entry with "ada-exceptions".
1230 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1231 after re-initialization of OBJFILE's obstack.
1235 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1236 bs->stop != 0 on entry. Update function comment. Simplify early
1237 exit for frame mismatch. Reindent rest of function.
1241 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1246 Work around gold/15646.
1247 * dwarf2read.c (read_index_from_section): Update comment.
1248 (struct dw2_symtab_iterator): New member global_seen.
1249 (dw2_symtab_iter_init): Initialize it.
1250 (dw2_symtab_iter_next): Skip duplicate global symbols.
1251 (dw2_expand_symtabs_matching): Ditto.
1255 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1256 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1258 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1259 (mi_cmd_info_ada_exceptions): New function.
1260 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1264 * ada-lang.h: #include "vec.h".
1265 (struct ada_exc_info): New.
1266 (ada_exc_info): New typedef.
1267 (DEF_VEC_O(ada_exc_info)): New vector.
1268 (ada_exceptions_list): Add declaration.
1269 * ada-lang.c (ada_is_exception_sym)
1270 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1271 (sort_remove_dups_ada_exceptions_list)
1272 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1273 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1274 (ada_exceptions_list_1, ada_exceptions_list)
1275 (info_exceptions_command): New function.
1276 (_initialize_ada_language): Add "info exception" command.
1281 * NEWS: Add linetable feature.
1282 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1283 * python/py-linetable.c: New file.
1284 * python/py-symtab.c (stpy_get_linetable): New function.
1285 * python/python-internal.h (symtab_to_linetable_object): Declare.
1286 (gdbpy_initialize_linetable): Ditto.
1287 * python/python.c (_initialize_python): Call
1288 gdbpy_initialize_linetable.
1292 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1293 the documentation of fields "except_string" and "condition".
1294 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1295 CONDITION on the heap before passing it to
1296 create_ada_exception_catchpoint.
1297 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1302 * config.in, configure: Rebuild.
1303 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1307 * remote-sim.c (gdbsim_detach): Break declaration into
1308 shorter lines. No code change.
1312 * remote-sim.c (gdbsim_detach): Fix prototype.
1316 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1317 (create_debug_types_hash_table): Only print debugging messages for
1318 each TU if dwarf2-read >= 2.
1319 (process_queue): Ditto.
1320 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1325 * configure: Rebuild.
1326 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1330 * configure, config.in: Rebuild.
1331 * configure.ac: Remove unused configury.
1335 * m32c-tdep.c: Use gdb_string.h.
1339 * configure, config.in: Rebuild.
1340 * configure.ac: Remove all link.h-related checks.
1344 * acinclude.m4: Include common.m4.
1345 * common/common.m4: New file.
1346 * configure, config.in: Rebuild.
1347 * configure.ac: Use GDB_AC_COMMON.
1351 * NEWS: Mention that "set debug symtab-create" now accepts a
1353 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1354 to set the symtab's primary flag.
1355 * jit.c (finalize_symtab): Ditto.
1356 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1357 * symfile.c (allocate_symtab): Only print debugging messages for
1358 symtab_create_debug levels 2 and higher.
1359 * symtab.c (symtab_create_debug): Change type to unsigned int.
1360 (set_symtab_primary): New function.
1361 (_initialize_symtab): Change "set debug symtab-create" to a
1363 * symtab.h (set_symtab_primary): Declare.
1364 (symtab_create_debug): Update decl.
1368 * aix-thread.c (aix_thread_detach): Update.
1369 * corelow.c (core_detach): Update.
1370 * darwin-nat.c (darwin_detach): Update.
1371 * dec-thread.c (dec_thread_detach): Update.
1372 * gnu-nat.c (gnu_detach): Update.
1373 * go32-nat.c (go32_detach): Update.
1374 * inf-ptrace.c (inf_ptrace_detach): Update.
1375 * inf-ttrace.c (inf_ttrace_detach): Update.
1376 * linux-fork.c (linux_fork_detach): Update.
1377 * linux-fork.h (linux_fork_detach): Update.
1378 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1379 local for const-correctness.
1380 * linux-thread-db.c (thread_db_detach): Update.
1381 * monitor.c (monitor_detach): Update.
1382 * nto-procfs.c (procfs_detach): Update.
1383 * procfs.c (procfs_detach): Update.
1384 * record.c (record_detach): Update.
1385 * record.h (record_detach): Update.
1386 * remote-m32r-sdi.c (m32r_detach): Update.
1387 * remote-mips.c (mips_detach): Update.
1388 * remote-sim.c (gdbsim_detach): Update.
1389 * remote.c (remote_detach_1, remote_detach)
1390 (extended_remote_detach): Update.
1391 * sol-thread.c (sol_thread_detach): Update.
1392 * target.c (target_detach): Make "args" const.
1393 (init_dummy_target): Update.
1394 * target.h (struct target_ops) <to_detach>: Make argument const.
1395 (target_detach): Likewise.
1396 * windows-nat.c (windows_detach): Update.
1401 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1402 and align fields for PT_GNU_RELRO segments.
1407 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1411 * NEWS: Document Python temporary breakpoint support.
1412 * python/py-breakpoint.c (bppy_get_temporary): New function.
1413 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1414 to temporary if True.
1418 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1419 removed to allow analyzing unconditional branch instructions
1420 with PC-relative offsets of zero.
1424 * mi/mi-cmd-var.c: Include "language.h".
1425 (mi_cmd_var_info_expression): Get language name from
1427 * varobj.c (varobj_language_string): Remove.
1428 (variable_language): Remove declaration.
1429 (languages): Remove.
1430 (varobj_get_language): Change the type of return value.
1431 (variable_language): Remove.
1432 * varobj.h (enum varobj_languages): Remove.
1433 (varobj_language_string): Remove declaration.
1434 (varobj_get_language): Update declaration.
1438 * language.h (struct language_defn) <la_natural_name>: New
1440 * ada-lang.c (ada_language_defn): Initialize field
1442 * c-lang.c (c_language_defn): Likewise.
1443 (cplus_language_defn, asm_language_defn): Likewise.
1444 * d-lang.c (d_language_defn): Likewise.
1445 * f-lang.c (f_language_defn): Likewise.
1446 * go-lang.c (go_language_defn): Likewise.
1447 * jv-lang.c (java_language_defn): Likewise.
1448 * language.c (unknown_language_defn ): Likewise.
1449 (auto_language_defn): Likewise.
1450 * m2-lang.c (m2_language_defn): Likewise.
1451 * objc-lang.c (objc_language_defn): Likewise.
1452 * opencl-lang.c (opencl_language_defn): Likewise.
1453 * p-lang.c (pascal_language_defn): Likewise.
1457 * language.c (language_str): Return const char *.
1458 (add_language): Add const to 'language_names'
1459 * language.h (struct language_defn) <la_name>: Add const.
1460 (language_str: Update declaration.
1464 * s390-linux-nat.c (s390_read_description): Consider the TE field
1465 in the HWCAP for determining 'have_regset_tdb'.
1470 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1471 values. (read_partial_die): Likewise.
1476 * top.c (command_line_input): Unify interactivity tests to use
1477 input_from_terminal_p.
1478 * event-top.c (command_line_handler): Likewise.
1482 * Makefile.in (check-perf): New target.
1487 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1488 (arm_print_float_info): Likewise.
1492 * target.c (memory_xfer_partial): Cap write to 4KB.
1496 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1497 probe scan even when the arch provides no get_longjmp_target.
1501 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1502 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1503 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1504 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1505 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1506 <bpstat handling>: If the bpstat chain wants the signal to be
1507 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1512 * breakpoint.c (update_watchpoint): Update error message and add
1513 an additional error message.
1517 * s390-tdep.h: Rename to...
1518 * s390-linux-tdep.h: ...here.
1519 * s390-tdep.c: Rename to...
1520 * s390-linux-tdep.c: ...here. Adjust #include.
1521 * s390-nat.c: Rename to...
1522 * s390-linux-nat.c: ...here. Adjust #include.
1523 * config/s390/s390.mh: Rename to...
1524 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1526 * configure.host: Reflect host rename "s390" -> "linux".
1527 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1528 * Makefile.in (ALL_TARGET_OBS): Likewise.
1529 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1531 (ALLDEPFILES): Reflect rename of .c files.
1535 * s390-nat.c: Whitespace cleanup.
1536 * s390-tdep.c: Likewise.
1537 * s390-tdep.h: Remove empty line at end of file.
1541 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1546 * utils.c (reg): Move undefinition...
1547 * gdb_curses.h: ... here. Update comment to mention AIX.
1551 * exec.h (add_target_sections_of_objfile): New declaration.
1552 * exec.c (add_target_sections_of_objfile): New function.
1553 * symfile.c (add_symbol_file_command): Update current target sections.
1554 (remove_symbol_file_command): New command.
1555 (symfile_free_objfile): New function.
1556 (_initialize_symfile): Register observer for free_objfile events.
1557 * NEWS: Add description of the remove-symbol-file command.
1558 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1559 * objfiles.c (free_objfile): Notify free_objfile.
1560 (is_addr_in_objfile): New function.
1561 * objfiles.h (is_addr_in_objfile): New declaration.
1562 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1563 events instead of solib_unloaded events.
1564 (_initialize_printcmd): Register observer for free_objfile instead
1565 of solib_unloaded notifications.
1566 * solib.c (remove_user_added_objfile): New function.
1567 (_initialize_symfile): Add remove-symbol-file.
1571 * infcmd.c (default_print_one_register_info): Use val_print to
1572 print all values even optimized out or unavailable ones. Don't
1573 try to print a raw form of optimized out or unavailable values.
1577 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1578 parameter 'arg' instead of from program_space_data.
1579 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1580 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1581 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1582 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1583 * inflow.c (inflow_inferior_data_cleanup): Get data from
1584 parameter 'arg' instead of inferior_data.
1585 * registry.h: Add comments.
1589 * breakpoint.c (watchpoints_triggered)
1590 <!target_stopped_data_address>: Hardcode return 1.
1594 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1599 * infrun.c (process_event_stop_test): New function, factored out
1600 from handle_inferior_event.
1601 (handle_inferior_event): 'process_event_stop_test' is now a
1602 function instead of a goto label -- adjust.
1606 * infrun.c (handle_inferior_event): Move process_event_stop_test
1607 goto label to the else branch of the ecs->random_signal check,
1608 along with FRAME and GDBARCH re-fetching.
1612 * infrun.c (switch_back_to_stepped_thread): New function, factored
1613 out from handle_inferior_event.
1614 (handle_inferior_event): Adjust to call
1615 switch_back_to_stepped_thread. Call it also at the tail of the
1616 random signal handling, and return, instead of also handling
1617 random signals just before the stepping tests.
1621 * infrun.c (clear_stop_func): Delete.
1622 (handle_inferior_event): Don't call clear_stop_func and don't
1623 clear 'ecs->random_signal'.
1627 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1628 (varobj_create, varobj_get_path_expr): Update.
1629 (varobj_value_has_mutated, varobj_update): Likewise.
1630 (create_child_with_value, new_root_variable): Likewise.
1631 (number_of_children, name_of_variable): Likewise.
1632 (value_of_child, my_value_of_variable): Likewise.
1633 (varobj_value_is_changeable_p): Likewise.
1637 * language.h (struct lang_varobj_ops): Declare.
1638 (struct language_defn) <la_varobj_ops>: New field.
1639 * ada-lang.c: Include "varobj.h"
1640 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1642 * c-lang.c: Include "varobj.h"
1643 (c_language_defn): Initialize field 'la_varobj_ops' with
1645 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1647 (asm_language_defn): Initialize field 'la_varobj_ops' with
1649 (minimal_language_defn): Likewise.
1650 * d-lang.c (d_language_defn): Likewise.
1651 * f-lang.c (f_language_defn): Likewise.
1652 * go-lang.c (go_language_defn): Likewise.
1653 * m2-lang.c (m2_language_defn): Likewise.
1654 * objc-lang.c (objc_language_defn): Likewise.
1655 * opencl-lang.c (opencl_language_defn): Likewise.
1656 * p-lang.c (pascal_language_defn): Likewise.
1657 * language.c (unknown_language_defn): Likewise.
1658 (auto_language_defn): Likewise.
1659 (local_language_defn): Likewise.
1660 * jv-lang.c (java_language_defn): Initialize field
1661 'la_varobj_ops' with java_varobj_ops.
1662 * varobj.c (varobj_create): Update.
1663 * varobj.h (default_varobj_ops): Define macro.
1667 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1669 (cp_print_static_field): If the value is entirely optimized out,
1670 print <optimized out> here.
1671 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1673 * p-valprint.c (pascal_object_print_static_field): If the value is
1674 entirely optimized out, print <optimized out> here.
1675 * valops.c (do_search_struct_field)
1676 (value_struct_elt_for_reference): No longer handle a NULL static
1678 * value.c (value_static_field): Return an optimized out value
1683 * remote.c (remote_traceframe_info): Return early if
1684 traceframe is not selected.
1688 * tracepoint.c (traceframe_fun): Remove.
1689 (traceframe_sal): Remove.
1690 (set_traceframe_context): Add local variables.
1694 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1699 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1700 failure from register information collection.
1704 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1706 (linux_corefile_thread_callback): Update accordingly.
1707 (linux_make_corefile_notes): Likewise.
1711 * NEWS (New options): Mention set/show startup-with-shell.
1712 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1714 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1715 startup-with-shell'.
1716 (show_startup_with_shell): New function.
1717 (_initialize_fork_child): Register the set/show startup-with-shell
1719 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1720 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1721 * procfs.c (procfs_init_inferior): Remove comment.
1722 * infcmd.c (startup_with_shell): New global.
1723 * inferior.h (startup_with_shell): Declare global.
1724 (STARTUP_WITH_SHELL): Delete.
1725 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1729 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1730 * common/signals.c: Include "gdb_assert.h".
1731 (signals): New field 'symbol'.
1732 (SET): Use the 'symbol' parameter.
1733 (gdb_signal_to_symbol_string): New function.
1734 * infrun.c (handle_inferior_event) <random signal>: In debug
1735 output, print the random signal enum as string in addition to its
1737 * target/waitstatus.c (target_waitstatus_to_string): Print the
1738 signal's enum value as string instead of the (POSIX) signal name.
1743 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1744 from 32 to 18. Adjusted fscanf format string accordingly.
1745 (Avoids leaving cmd unterminated.)
1746 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1747 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1748 that local_address and remote_address will not overflow.
1749 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1750 leaving dependencies unterminated. Parse size as "%u" to match
1755 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1756 set ecs->random signal.
1760 * infrun.c (keep_going): Update comments.
1764 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1765 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1769 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1771 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1772 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1773 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1774 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1775 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1776 (GDB_SIGNAL_LAST): Change description string.
1777 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1778 Adjust to signal renaming.
1779 * darwin-nat.c (darwin_decode_message): Likewise.
1783 * MAINTAINERS (Write After Approval): Add myself to the list.
1787 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1788 forced off, downgrade them to software watchpoints if possible,
1789 and error out if not possible.
1790 (watch_command_1): Move watchpoint type selection closer to
1791 watchpoint creation, and extend the comments.
1796 * infrun.c (handle_inferior_event): Keep going if we got a random
1797 signal we should not stop for, instead of falling through to the
1802 * c-varobj.c (cplus_number_of_children): Fix indentation.
1807 * printcmd.c (printcmd): Call gdb_flush.
1811 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1812 (elf_locate_sections): Update.
1816 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1817 * ada-varobj.c: Remove the include of ada-varobj.h.
1818 (ada_varobj_get_number_of_children): Declare.
1819 (ada_varobj_get_name_of_child): Make it static.
1820 (ada_varobj_get_path_expr_of_child): Likewise.
1821 (ada_varobj_get_value_of_child): Likewise.
1822 (ada_varobj_get_type_of_child): Likewise.
1823 (ada_varobj_get_value_of_array_variable): Likewise.
1824 * ada-varobj.h: Remove.
1828 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1829 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1830 * ada-varobj.c: Include "varobj.h".
1831 (ada_number_of_children): New. Moved from varobj.c.
1832 (ada_name_of_variable, ada_name_of_child): Likewise.
1833 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1834 (ada_type_of_child, ada_value_of_variable): Likewise.
1835 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1836 (ada_varobj_ops): New.
1837 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1838 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1839 * gdbtypes.h (get_target_type): Declare.
1840 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1842 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1843 (ANONYMOUS_UNION_NAME): Likewise.
1844 (get_type, get_value_type, get_target_type): Remove declarations.
1845 (value_get_print_value, varobj_value_get_print_value): Likewise.
1846 (c_number_of_children, c_name_of_variable): Likewise.
1847 (c_name_of_child, c_path_expr_of_child): Likewise.
1848 (c_value_of_child, c_type_of_child): Likewise.
1849 (c_value_of_variable, cplus_number_of_children): Likewise.
1850 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1851 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1852 (cplus_value_of_child, cplus_type_of_child): Likewise.
1853 (cplus_value_of_variable, java_number_of_children): Likewise.
1854 (java_name_of_variable, java_name_of_child): Likewise.
1855 (java_path_expr_of_child, java_value_of_child): Likewise.
1856 (java_type_of_child, java_value_of_variable): Likewise.
1857 (ada_number_of_children, ada_name_of_variable): Likewise.
1858 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1859 (ada_value_of_child, ada_type_of_child): Likewise.
1860 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1861 (ada_value_has_mutated): Likewise.
1862 (struct language_specific): Move it to varobj.h.
1863 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1864 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1866 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1868 (is_anonymous_child): Move it to c-varobj.c and rename to
1869 varobj_is_anonymous_child. Caller update.
1870 (get_type): Move it to c-varobj.c.
1871 (get_value_type): Rename it varobj_get_value_type. Make it
1873 (get_target_type): Move it gdbtypes.c.
1874 (varobj_formatted_print_options): New function.
1875 (value_get_print_value): Rename it to
1876 varobj_value_get_print_value and make it extern.
1877 (varobj_value_is_changeable_p): Make it extern.
1878 (adjust_value_for_child_access): Move it to c-varobj.c.
1879 (default_value_is_changeable_p): Rename it to
1880 varobj_default_value_is_changeable_p. Make it extern.
1881 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1882 (c_name_of_child, c_path_expr_of_child): Likewise.
1883 (c_value_of_child, c_type_of_child): Likewise.
1884 (c_value_of_variable, cplus_number_of_children): Likewise.
1885 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1886 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1887 (cplus_value_of_child, cplus_type_of_child): Likewise.
1888 (cplus_value_of_variable): Likewise.
1889 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1890 (java_name_of_child, java_path_expr_of_child): Likewise.
1891 (java_value_of_child, java_type_of_child): Likewise.
1892 (java_value_of_variable): Likewise.
1893 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1894 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1895 (ada_value_of_child, ada_type_of_child): Likewise.
1896 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1897 (ada_value_has_mutated): Likewise.
1898 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1899 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1900 (c_varobj_ops, cplus_varobj_ops): Declare.
1901 (java_varobj_ops, ada_varobj_ops): Declare.
1902 (varobj_default_value_is_changeable_p): Declare.
1903 (varobj_value_is_changeable_p): Declare.
1904 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1905 (varobj_get_path_expr_parent): Declare.
1906 (varobj_value_get_print_value): Declare.
1907 (varobj_formatted_print_options): Declare.
1908 (varobj_restrict_range): Declare.
1912 * target/waitstatus.h (target_waitkind): Remove spurious
1913 character from the comments.
1917 * gdbarch.sh (get_longjmp_target): Add method documentation.
1918 * gdbarch.h: Regenerate.
1922 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1927 * gcore.in: Call GDB using the full path to the gcore script.
1928 Error out if the GDB binary is not found.
1933 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1939 * target.c (target_disable_btrace): Fix invalid return value for
1941 (target_teardown_btrace): Likewise.
1945 * varobj.c (struct varobj): Move most of the fields to
1947 (struct varobj_dynamic): New struct.
1948 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1949 (varobj_has_more): Likewise.
1950 (dynamic_varobj_has_child_method): Likewise.
1951 (update_dynamic_varobj_children): Likewise.
1952 (varobj_get_num_children): Likewise.
1953 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1954 (install_new_value_visualizer): Likewise.
1955 (install_new_value_visualizer, install_new_value): Likewise.
1956 (varobj_update, new_variable, free_variable): Likewise.
1957 (my_value_of_variable, value_get_print_value): Likewise.
1958 (install_visualizer): Change the type of parameter 'var' to
1959 'struct varobjd_dynamic *'. Callers update.
1960 * varobj.h (struct varobj): Moved from varobj.c.
1961 (struct varobj) <dynamic>: New field.
1965 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1966 as the preferred name of r30.
1967 * nios2-linux-tdep.c (reg_offsets): Likewise.
1968 * features/nios2-cpu.xml: Likewise.
1969 * features/nios2-linux.c: Regenerated.
1970 * features/nios2.c: Regenerated.
1971 * regformats/nios2-linux.dat: Regenerated.
1975 Canonicalize directories for EXEC_FILENAME.
1976 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1978 * utils.c (gdb_realpath_keepfile): New function.
1979 * utils.h (gdb_realpath_keepfile): New declaration.
1983 * Makefile.in (GDBFLAGS): New variable.
1988 * NEWS: Add entry documenting the new "-catch-assert" and
1989 "-catch-exception" GDB/MI commands.
1993 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1995 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1996 "enabled". Set B->ENABLE_STATE accordingly.
1997 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1999 (create_ada_exception_catchpoint): Add declaration.
2000 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2001 (create_ada_exception_catchpoint): Make non-static. Add new
2002 parameter "disabled". Use it in call to
2003 init_ada_exception_breakpoint.
2004 (catch_ada_exception_command): Add parameter "enabled" in call
2005 to create_ada_exception_catchpoint.
2006 (catch_assert_command): Likewise.
2008 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2010 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2011 "catch-exception" commands.
2012 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2013 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2017 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2018 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2019 of all its enumerates with "ada_". Update the rest of this
2024 * ada-lang.c (ada_decode_exception_location): Delete.
2025 (create_ada_exception_catchpoint): Remove arguments "sal",
2026 "addr_string" and "ops". Add argument "ex_kind" instead.
2027 Adjust implementation accordingly, calling ada_exception_sal
2028 to get the entities it no longer gets passed as arguments.
2029 Document the function's arguments.
2030 (catch_ada_exception_command): Use catch_ada_exception_command_split
2031 instead of ada_decode_exception_location, and update call to
2032 create_ada_exception_catchpoint.
2033 (catch_ada_assert_command_split): Renames
2034 ada_decode_assert_location. Remove parameters "addr_string" and
2035 "ops", and now returns void. Adjust implementation accordingly.
2036 Update the function documentation.
2037 (catch_assert_command): Use catch_ada_assert_command_split
2038 instead of ada_decode_assert_location. Update call to
2039 create_ada_exception_catchpoint.
2043 * utils.h (perror_warning_with_name): Add declaration.
2044 * utils.c (perror_warning_with_name): New function.
2045 * cli/cli-cmds.c (source_script_with_search): Add call to
2046 perror_warning_with_name if from_tty is nul.
2050 * utils.c (perror_string): New function, extracted out of
2051 throw_perror_with_name.
2052 (throw_perror_with_name): Rework to use perror_string.
2056 * remote.c (discard_pending_stop_replies_in_queue): Update
2058 (struct stop_reply) <rs>: New field.
2059 (remove_stop_reply_of_remote_state): New function.
2060 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2061 Callers update. Pass remove_stop_reply_of_remote_state to
2063 (remote_parse_stop_reply): Initialize field 'rs'.
2067 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2072 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2073 serial_baud_show_cmd.
2074 (_initialize_cli_cmds): Delete the code creating the
2075 "set/show remotebaud" commands.
2076 * serial.c (baud_rate): Move here from top.c.
2077 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2078 (_initialize_serial): Create "set/show serial baud" commands.
2079 Add "set/show remotebaud" command aliases.
2080 * top.c (baud_rate): Moved to serial.c.
2081 * NEWS: Document the new "set/show serial baud" commands,
2082 replacing "set/show remotebaud".
2086 * breakpoint.c (insert_bp_location): Use memory_error_message to
2087 build the memory error string.
2088 * c-lang.c: Include "gdbcore.h".
2089 (c_get_string): Use memory_error to throw error.
2090 (target_xfer_memory_error): Delete.
2091 (memory_error_message): New, factored out from
2092 target_xfer_memory_error.
2093 (memory_error): Change parameter type to target_xfer_error.
2095 (read_memory): Use memory_error instead of
2096 target_xfer_memory_error.
2097 * gdbcore.h: Include "target.h".
2098 (memory_error): Change parameter type to target_xfer_error.
2099 (memory_error_message): Declare function.
2100 * target.c (target_read_memory, target_read_stack)
2101 (target_write_memory, target_write_raw_memory): Return
2102 TARGET_XFER_E_IO on error. Adjust comments.
2103 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2105 * target.h (target_read, target_insert_breakpoint)
2106 (target_remove_breakpoint): Adjust comments.
2107 * valprint.c (partial_memory_read): Rename parameter, and adjust
2109 (val_print_string): Use memory_error_message to build the memory
2114 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2115 result variable. Rename variable fopen_e_ever_failed to
2116 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2120 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2121 (monitor_write_memory_longlongs, monitor_write_memory_block):
2122 Constify 'myaddr' parameter.
2123 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2125 (monitor_xfer_partial): New function.
2126 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2127 hook. Install a to_xfer_partial hook.
2131 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2132 bfd_get_alt_debug_link_info.
2136 New flag OBJF_NOT_FILENAME.
2137 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2138 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2140 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2141 symbol_file_add_from_bfd.
2142 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2144 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2146 * objfiles.h (OBJF_NOT_FILENAME): New.
2150 * Makefile.in (SFILES): Add build-id.c.
2151 (HFILES_NO_SRCDIR): Add build-id.h.
2152 * build-id.c: New file, largely from elfread.c. Modified
2154 * build-id.h: New file.
2155 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2156 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2157 Search for dwz file using build-id.
2158 * elfread.c (build_id_bfd_get, build_id_verify)
2159 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2163 * ada-lang.c (compare_names_with_case): Renamed from
2164 compare_names, adding a new parameter "casing" and its handling.
2165 New function documentation.
2166 (compare_names): New function, implemented using
2167 compare_names_with_case.
2171 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2175 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2176 demangled_names_hash.
2177 (free_objfile): Don't delete the demangled_names_hash.
2178 * objfiles.h (struct objfile_per_bfd_storage)
2179 <demangled_names_hash>: New field.
2180 (struct objfile) <demangled_names_hash>: Move to
2181 objfile_per_bfd_storage.
2182 * symfile.c (reread_symbols): Don't delete the
2183 demangled_names_hash.
2184 * symtab.c (create_demangled_names_hash): Update.
2185 (symbol_set_names): Update.
2189 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2190 needs_relocations>: New fields.
2191 (gdb_bfd_requires_relocations): New function.
2192 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2193 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2194 the BFD needs relocations applied.
2198 PR breakpoints/11568
2199 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2200 the thread list" instead of "gone".
2204 * NEWS: Mention new convenience variable $_exitsignal.
2205 * corelow.c (core_open): Reset exit convenience variables. Set
2206 $_exitsignal to the uncaught signal which generated the corefile.
2207 * infrun.c (handle_inferior_event): Reset exit convenience
2208 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2209 (clear_exit_convenience_vars): New function.
2210 * inferior.h (clear_exit_convenience_vars): New prototype.
2214 * varobj.h: Add comments to enum varobj_languages.
2218 Add support for DWP file format version 2.
2219 * NEWS: Mention support for DWP file format version 2.
2220 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2221 union of asection, containing_section. New fields virtual_offset
2222 and is_virtual. Change type of readin filed from int to char.
2223 (dwo_sections, dwo_file): Tweak comments.
2224 (dwp_v2_section_ids): New enum.
2225 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2227 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2229 (virtual_v2_dwo_sections): New struct.
2230 (dwp_hash_table): New fields version, nr_columns. Change type of
2231 section_pool field to a union.
2232 (dwp_file): New field version.
2233 (dwarf2_has_info): Check for virtual sections.
2234 (get_containing_section): New function.
2235 (get_section_bfd_owner, get_section_bfd_section): Call it.
2236 (dwarf2_locate_sections): Update.
2237 (dwarf2_section_empty_p): Update.
2238 (dwarf2_read_section): Handle virtual sections.
2239 (locate_dwz_sections): Update.
2240 (create_dwp_hash_table): Document and handle V2 format.
2241 (locate_v1_virtual_dwo_sections): Renamed from
2242 locate_virtual_dwo_sections and update. All callers updated.
2243 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2244 Delete arg htab. Rename arg section_index to unit_index.
2245 All callers updated.
2246 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2248 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2249 (lookup_dwo_unit_in_dwp): Add V2 support.
2250 (dwarf2_locate_dwo_sections): Update.
2251 (dwarf2_locate_common_dwp_sections): Renamed from
2252 dwarf2_locate_dwp_sections and update. All callers updated.
2253 (dwarf2_locate_v2_dwp_sections): New function.
2254 (open_and_init_dwp_file): Add V2 support.
2255 (read_str_index): New locals str_section, str_offsets_section.
2259 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2260 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2261 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2262 describing comments with references to ptid.h.
2263 * common/ptid.h: Remove intro description of constructors,
2264 accessors and predicates.
2265 (struct ptid): Reformat.
2266 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2267 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2268 describing comments.
2272 * aix-thread.c (sync_threadlists): Add missing ')' in call
2277 * procfs.c (procfs_init_inferior): Fix typo causing the build
2282 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2286 * mi/mi-main.c (run_one_inferior): Add function description.
2287 Make ARG a pointer to an integer whose value determines whether
2288 we should "run" or "start" the program.
2289 (mi_cmd_exec_run): Add handling of the "--start" option.
2290 Reject all other command-line options.
2291 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2295 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2296 (struct notif_client) <pending_event>: Moved
2297 to struct remote_notif_state.
2299 (struct remote_notif_state) <pending_event>: New field.
2300 (notif_event_xfree): Declare.
2301 * remote-notif.c (handle_notification): Adjust.
2302 (notif_event_xfree): New function.
2303 (do_notif_event_xfree): Call notif_event_xfree.
2304 (remote_notif_state_xfree): Call notif_event_xfree to free
2305 each element in field pending_event.
2306 * remote.c (discard_pending_stop_replies): Remove declaration.
2307 (discard_pending_stop_replies_in_queue): Declare.
2308 (remote_close): Call discard_pending_stop_replies_in_queue
2309 instead of discard_pending_stop_replies.
2310 (remote_start_remote): Adjust.
2311 (stop_reply_xfree): Call notif_event_xfree.
2312 (notif_client_stop): Adjust initialization.
2313 (remote_notif_remove_all): Rename it to ...
2314 (remove_stop_reply_for_inferior): ... this. Update comments.
2315 Don't check INF is NULL.
2316 (discard_pending_stop_replies): Return early if notif_state is
2317 NULL. Adjust. Don't check INF is NULL.
2318 (remote_notif_get_pending_events): Adjust.
2319 (discard_pending_stop_replies_in_queue): New function.
2320 (remote_wait_ns): Likewise.
2324 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2325 (notif_queue): Remove.
2326 (remote_notif_process): Add one parameter 'notif_queue'.
2327 Update comments. Callers update.
2328 (remote_async_get_pending_events_token): Remove.
2329 (remote_notif_register_async_event_handler): Remove.
2330 (remote_notif_unregister_async_event_handler): Remove.
2331 (handle_notification): Add parameter 'notif_queue'. Update
2332 comments. Callers update.
2333 (notif_xfree): Remove.
2334 (remote_notif_state_allocate): New function.
2335 (remote_notif_state_xfree): New function.
2336 (_initialize_notif): Remove code to allocate queue.
2337 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2338 (struct remote_notif_state): New.
2339 (handle_notification): Update declaration.
2340 (remote_notif_process): Likewise.
2341 (remote_notif_register_async_event_handler): Remove.
2342 (remote_notif_unregister_async_event_handler): Remove.
2343 (remote_notif_state_allocate): Declare.
2344 (remote_notif_state_xfree): Declare.
2345 * remote.c (struct remote_state) <notif_state>: New field.
2346 (remote_close): Don't call
2347 remote_notif_unregister_async_event_handler. Call
2348 remote_notif_state_xfree.
2349 (remote_open_1): Don't call
2350 remote_notif_register_async_event_handler. Call
2351 remote_notif_state_allocate.
2355 * varobj.c (create_child_with_value): Remove 'const' from the
2356 type of parameter 'name'.
2357 (varobj_add_child): Likewise.
2358 (install_dynamic_child): Remove 'const' from the type of
2360 (varobj_add_child): Likewise.
2361 (create_child_with_value): Likewise. Update comments. Don't
2363 (update_dynamic_varobj_children): Duplicate 'name'
2364 and pass it to install_dynamic_child.
2368 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2369 conversion logic to occur after PyLong_Check. Comment on order
2370 change significance.
2371 * python/py-arch.c (archpy_disassemble): Comment on order of
2372 conversion for integers and longs.
2376 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2377 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2378 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2379 PTRACE_O_TRACEFORK is not supported.
2380 (linux_test_for_tracesysgood): New function.
2381 (linux_test_for_tracefork): New function, factored out from
2382 linux_check_ptrace_features, and also don't kill child_pid here.
2386 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2387 Remove verbose error reporting. Use detected state to
2388 thread_set_state call.
2389 (i386_darwin_dr_get): Fix return type. Remove verbose error
2391 Remove trailing spaces.
2395 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2396 val_print_optimized_out.
2397 * jv-valprint.c (java_print_value_fields): Likewise.
2398 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2399 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2400 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2401 new optimized out value.
2402 * findvar.c (address_from_register): Likewise.
2403 * frame.c (put_frame_register): Tweak error string to say the
2404 register was not saved, rather than optimized out.
2405 * infcmd.c (default_print_one_register_info): Adjust call to
2406 val_print_optimized_out. Use value_of_register instead of
2407 get_frame_register_value.
2408 * mi/mi-main.c (output_register): Use value_of_register instead of
2409 get_frame_register_value.
2410 * valprint.c (valprint_check_validity): Likewise.
2411 (val_print_optimized_out): New value parameter. If the value is
2412 lval_register, print <not saved> instead.
2413 (value_check_printable, val_print_scalar_formatted): Adjust calls
2414 to val_print_optimized_out.
2415 * valprint.h (val_print_optimized_out): New value parameter.
2416 * value.c (struct value) <optimized_out>: Extend comment.
2417 (error_value_optimized_out): New function.
2418 (require_not_optimized_out): Use it. Use a different string for
2419 lval_register values.
2420 * value.h (error_value_optimized_out): New declaration.
2421 * NEWS: Mention <not saved>.
2425 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2426 strcmp to compare two symtab filenames.
2430 * symtab.c (search_symbols_equal): Delete.
2431 (sort_search_symbols_remove_dups): Replace call to
2432 search_symbols_equal by call to compare_search_syms,
2433 adjusting as necessary.
2438 * python/python.c: Document gdb.execute command in Python help.
2442 * python/py-frame.c (frame_info_to_frame_object): Use
2443 gdbpy_convert_exception. Clean up Python object on failure.
2447 * python/lib/gdb/command/frame_filters.py
2448 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2449 (ShowFrameFilterPriority.invoke): Ditto.
2453 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2454 (parse_linespec): Make 'argptr' const.
2455 Remove temporary cast of 'argptr' to const char **.
2456 (decode_line_full): Pass const pointer to parse_linespec.
2457 (decode_line_1): Likewise.
2458 (decode_objc): Make local variable 'new_argptr' const.
2459 (find_function_symbols): Remove temporary cast to char *
2461 * objc-lang.c (find_imps): Make argument 'method' const.
2463 * objc-lang.h (find_imps): Likewise.
2467 * completer.c (skip_quoted_chars): Make all arguments const.
2469 (skip_quoted): Likewise.
2470 * completer.h (skip_quoted_chars): Likewise.
2471 (skip_quoted): Likewise.
2472 * defs.h (skip_quoted): Remove duplicate declaration.
2473 * jv-exp.y: Include completer.h.
2474 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2475 * p-exp.y: Include completer.h.
2479 * c-exp.y (parse_number): Make first argument const.
2480 Make a copy of the input to manipulate.
2481 (c_parse_escape): Make first argument const.
2482 Make local variable 'tokptr' const.
2483 (parse_string_or_char): Make first two arguments const.
2484 (macro_original_text): Make const.
2485 (lex_one_token): Make local variable 'tokstart' const.
2486 Likewise for local variables named 'p'.
2487 Cast away const for struct stoken (temporary).
2488 * c-lang.h (c_parse_escpae): Make first argument const.
2489 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2491 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2493 * f-exp.y (parse_number): Make first argument const.
2494 (match_string_literal): Make local variable 'tokstart'
2496 (yylex): Make local variable 'p' const.
2497 Cast away const for struct stoken (temporary).
2498 * go-exp.y (parse_number): Make first argument const.
2499 (parse_string_or_char): Likewise.
2500 Make local variable 'tokstart' const.
2501 (lex_one_token): Likewise for numerous locals called 'p'.
2502 Cast away const for struct stoken (temporary).
2503 * jv-exp.y (parse_number): Make first argument const.
2504 Make local variables 'tokstart' and 'tokptr' const.
2505 Cast away const for call to skip_quoted (temporary).
2506 (yylex): Make local variable 'p' const.
2507 Cast away const for struct stoken (temporary).
2508 * m2-exp.y (parse_number): Make local variable 'p' const.
2509 (yylex): Likewise for 'tokstart'.
2510 Cast away const for struct stoken (temporary).
2511 Make local variable 'p' const.
2512 * macroexp.c (get_character_constant): Pass a const string
2514 (get_string_literal): Likewise.
2515 (macro_expand_next): Make first argument const.
2516 Cast away const for init_shared_buffer.
2517 * macroexp.h (macro_expand_next): Make first argument const.
2518 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2519 Pass a const string to c_parse_escape.
2520 Make local variables 'p' and 'namestart' const.
2521 * parse.c (lexptr): Make const.
2522 (prev_lexptr): Likewise.
2523 (find_template_name_end): Return const.
2524 Make argument const, too.
2525 (parse_exp_in_context): Make first argument const.
2526 Remove the entire const_hack.
2527 (parse_exp_in_context_1): Make first argument const.
2528 * parser-defs.h (find_template_name_end): Return const.
2529 Make argument const, too.
2530 (lexptr): Make const.
2531 (prev_lexptr): Likewise.
2532 * utils.c (parse_escape): Make second argument const.
2533 * utils.h (parse_escape): Likewise.
2537 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2539 (block_lookup): Make 'raw_name' and 'name' const.
2540 * ada-lex.l (processString): Update for struct stoken.ptr.
2541 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2542 (operator_stoken): Likewise.
2543 (lex_one_token): Remove temporary cast to char * for
2545 * f-exp.y (yylex): Likewise.
2546 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2547 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2548 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2550 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2551 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2552 * linespec.c (struct ls_parser): Make 'stream' const.
2553 (find_parameter_list_end): Make argument 'input' and local
2555 (linespec_lexer_lex_string): Make local variables 'start' and
2557 Use skip_spaces_const instead of skip_spaces.
2558 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2560 (parse_linespec): Temporarily cast 'argptr' to const for
2561 'parser->lexer.stream'.
2562 * m2-exp.y (yylex): Remove temporary cast to char * for
2564 * objc-lang.c (add_msglist): Make local variable 'p' const.
2565 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2566 (exp : STRING): Make 'sp' const.
2567 (parse_number): Make argument 'p' const.
2568 * parser-defs.h (struct stoken): Make 'ptr' const.
2572 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2576 * varobj.c (c_value_of_root): Remove declaration.
2577 (cplus_value_of_root, java_value_of_root): Likewise.
2578 (ada_value_of_root): Likewise.
2579 (struct language_specific) <value_of_root>: Remove.
2580 (languages): Update initialization.
2581 (check_scope): Move earlier.
2582 (c_value_of_root): Move earlier and rename to ...
2583 (value_of_root_1): ... this.
2584 (value_of_root): Caller update.
2585 (cplus_value_of_root, java_value_of_root): Remove.
2586 (ada_value_of_root): Remove.
2590 * varobj.c (varobj_format_string): Remove "unknown".
2591 (languages): Remove the first element.
2592 * varobj.h (enum varobj_languages): Remove vlang_c.
2596 * varobj.c (struct language_specific) <language>: Remove.
2597 (languages): Update the initialization.
2601 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2602 "solib-target.h". Include "windows-tdep.h".
2603 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2604 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2605 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2606 windows-tdep.o to gdb_target_obs.
2610 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2612 (amd64_windows_init_abi): Don't call set_solib_ops and
2613 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2614 windows_init_abi instead.
2615 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2617 (i386_cygwin_init_abi): Don't call set_solib_ops,
2618 set_gdbarch_has_dos_based_file_system and
2619 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2620 windows_init_abi instead.
2621 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2622 (windows_init_abi): New function.
2623 (windows_iterate_over_objfiles_in_search_order): Make it
2625 * windows-tdep.h (windows_init_abi): Declare.
2626 (windows_iterate_over_objfiles_in_search_order): Remove
2632 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2633 incomplete dictionnary instead of None in case of missing
2634 environment variables.
2635 (elinos_init): in case of an incomplete environment, best
2636 effort to load system libraries instead of abort.
2640 * ada-lang.c (ada_has_this_exception_support): Ignore
2641 mst_solib_trampoline minimal symbols.
2645 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2646 hardware watchpoint.
2647 (i386_darwin_dr_set): Support 32 and 64 bit states.
2648 (i386_darwin_dr_get): Likewise.
2649 (i386_darwin_dr_set_control): Make static.
2650 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2651 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2655 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2656 Replace TIDGET with ptid_get_lwp.
2657 Replace GET_LWP with ptid_get_lwp.
2658 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2659 Replace BUILD_THREAD with ptid_build.
2660 Replace BUILD_LWP with ptid_build.
2661 Replace PIDGET with ptid_get_pid.
2662 Replace TIDGET with ptid_get_lwp.
2663 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2664 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2665 Replace TIDGET with ptid_get_lwp.
2666 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2667 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2668 Replace TIDGET with ptid_get_lwp.
2669 Replace GET_LWP with ptid_get_lwp.
2670 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2672 * breakpoint.c: Likewise.
2673 * common/ptid.c (ptid_is_pid): Condense check for
2674 null_ptid and minus_one_ptid.
2675 (ptid_lwp_p): New function.
2676 (ptid_tid_p): New function.
2677 * common/ptid.h: Update comments for accessors.
2678 (ptid_lwp_p): New prototype.
2679 (ptid_tid_p): New prototype.
2680 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2681 * gcore.c: Replace PIDGET with ptid_get_pid.
2682 * gdbthread.h: Likewise.
2683 * gnu-nat.c: Likewise.
2684 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2685 Replace TIDGET with ptid_get_lwp.
2686 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2687 * hppanbsd-nat.c: Likewise.
2688 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2689 Replace TIDGET with ptid_get_lwp.
2690 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2691 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2692 * infcmd.c: Likewise.
2693 * inferior.h: Likewise.
2694 * inflow.c: Likewise.
2695 * infrun.c: Likewise.
2696 * linux-fork.c: Likewise.
2697 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2698 Replace GET_PID with ptid_get_pid.
2699 Replace is_lwp with ptid_lwp_p.
2700 Replace GET_LWP with ptid_get_lwp.
2701 Replace BUILD_LWP with ptid_build.
2705 * common/linux-btrace.c: Move sys/syscall.h out of the
2706 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2707 Also check for SYS_perf_event_open before attempting to buid.
2711 * dwarf2read.c (dwarf2_section_info): Add comment.
2712 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2714 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2715 (dwarf2_read_section): Delete unused local "header". Add section
2716 name to error message.
2717 (create_dwo_in_dwp): Tweak comment.
2718 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2720 * dwarf2read.c (die_reader_specs): Tweak comment.
2721 (get_section_bfd_owner, get_section_bfd_section): New functions.
2722 (get_section_name, get_section_file_name): New functions.
2723 (get_section_id, get_section_flags): New functions.
2724 (*): Use new functions to access section fields.
2726 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2727 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2728 arg "htab". All callers updated.
2729 (create_debug_types_hash_table): Remove redundant copy of
2731 (create_dwo_in_dwp): Tweak comments.
2732 (read_str_index): Tweak comment. Record dwarf form name in static
2737 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2738 (remote_filename_p): Add comment.
2739 * remote.c (remote_filename_p): Adjust to use
2740 REMOTE_SYSROOT_PREFIX.
2741 * solib.c (solib_find): When deciding whether we need to add a
2742 directory separator, check whether the sysroot is "remote:"
2743 instead of checking whether the patch has a drive spec. Add
2748 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2750 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2755 Fix set debug frame output.
2756 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2757 SENTINEL_FRAME entry lower to match enum frame_type order.
2761 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2762 AMD64_R15_REGNUM when a register index is expected.
2763 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2764 Substitute in array.
2765 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2766 (amd64_push_arguments): Substitute in integer_regnum array.
2770 * objfiles.c (allocate_objfile): Move comment to better place.
2772 New option "set debug symfile on".
2773 * NEWS: Mention "set debug symfile".
2774 * Makefile.in (SFILES): Add symfile-debug.c.
2775 (COMMON_OBS): Add symfile-debug.o.
2776 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2777 objfile's symbol functions.
2778 * objfiles.h (objfile_set_sym_fns): Declare.
2779 * symfile-debug.c: New file.
2780 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2781 objfile's symbol functions.
2782 (reread_symbols): Ditto.
2784 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2786 (add_symtab_fns): Update prototype.
2787 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2788 (registered_sym_fns): ... this.
2789 (symtab_fns): Update.
2790 (add_symtab_fns): New arg "flavour". All callers updated.
2791 (find_sym_fns): Rewrite to use new sym_fns registry.
2793 * symfile.h (struct sym_fns): Add "objfile" argument to
2794 sym_read_linetable. All uses updated.
2796 * symtab.c (domain_name, search_domain_name): New functions.
2797 * symtab.h (domain_name, search_domain_name): Declare.
2799 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2800 map_matching_symbols so objfile is first. All uses updated.
2801 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2802 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2807 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2812 * objfiles.c (free_objfile): Move comment.
2816 * ada-exp.y (string_to_operator): Delete.
2817 (dummy_string_to_ada_operator): Delete.
2822 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2824 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2825 call_dummy_integer_regs, and classify.
2826 * amd64-tdep.h (amd64_classify): Add declaration.
2827 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2828 (amd64_reg_class): Delete, moved to i386-tdep.h.
2829 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2830 Replace call to amd64_classify by call to tdep->classify.
2831 (amd64_push_arguments): Get the list of registers to use for
2832 passing integer parameters from the gdbarch tdep structure,
2833 rather than using a hardcoded one. Replace calls to amd64_classify
2834 by calls to tdep->classify.
2835 (amd64_push_dummy_call): Get the register number used for
2836 the "hidden" argument from tdep->call_dummy_integer_regs.
2837 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2838 and tdep->call_dummy_integer_regs. Set tdep->classify.
2843 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2844 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2845 where tdep->memory_args_by_pointer is non-zero.
2850 * i386-tdep.h (struct gdbarch_tdep): Add new field
2851 integer_param_regs_saved_in_caller_frame.
2852 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2853 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2857 * amd64-windows-tdep.c: #include "value.h"
2858 (amd64_windows_classify): Delete.
2859 (amd64_windows_passed_by_integer_register)
2860 (amd64_windows_passed_by_xmm_register)
2861 (amd64_windows_passed_by_pointer)
2862 (amd64_windows_adjust_args_passed_by_pointer)
2863 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2864 (amd64_windows_push_dummy_call): New functions.
2865 (amd64_windows_init_abi): Remove setting of
2866 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2867 tdep->classify, tdep->memory_args_by_pointer and
2868 tdep->integer_param_regs_saved_in_caller_frame.
2869 Add call to set_gdbarch_push_dummy_call.
2873 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2874 objfile->original_name.
2878 Pass down original filename for objfile.
2879 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2880 * elfread.c (elf_symfile_read): Likewise.
2881 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2882 longer set ORIGINAL_NAME.
2883 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2884 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2885 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2886 symbol_file_add_from_bfd call.
2887 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2888 (macho_check_dsym): Add parameter filenamep. Change function comment.
2890 (macho_symfile_read): New variable dsym_filename. Update
2891 macho_check_dsym call. Use it for symbol_file_add_separate.
2892 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2893 it. Use it for objfile->original_name.
2894 (objfile_name): Return OBFD's filename, if available.
2895 * objfiles.h (allocate_objfile): Add new parameter name.
2896 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2897 * symfile-mem.c (symbol_file_add_from_memory): Update
2898 symbol_file_add_from_bfd call.
2899 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2901 (symbol_file_add_with_addrs): New parameter name, add function comment
2902 for it. Remove variable name. Update allocate_objfile call.
2903 (symbol_file_add_separate): New parameter name, add function comment
2904 for it. Update symbol_file_add_with_addrs call.
2905 (symbol_file_add_from_bfd): New parameter name. Update
2906 symbol_file_add_with_addrs call.
2907 (symbol_file_add): Update symbol_file_add_from_bfd call.
2908 (reread_symbols): New variable original_name. Save
2909 objfile->original_name by it.
2910 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2915 Code cleanup: Add objfile_name accessor function.
2916 * ada-lang.c (is_known_support_routine): Use objfile_name.
2917 * auto-load.c (source_gdb_script_for_objfile)
2918 (auto_load_objfile_script): Likewise.
2919 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2920 * dbxread.c (dbx_symfile_read): Likewise.
2921 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2922 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2923 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2924 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2925 (lookup_dwp_signatured_type, lookup_dwo_unit)
2926 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2927 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2928 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2929 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2930 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2931 (read_subrange_type, load_partial_dies, read_partial_die)
2932 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2933 (die_containing_type, build_error_marker_type, lookup_die_type)
2934 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2935 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2936 (get_DW_AT_signature_type, write_psymtabs_to_index)
2937 (save_gdb_index_command): Likewise.
2938 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2940 * expprint.c (dump_subexp_body_standard): Likewise.
2941 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2942 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2944 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2945 obj_name, use objfile_name for it, use the variable.
2946 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2948 * machoread.c (macho_symtab_read, macho_check_dsym)
2949 (macho_symfile_relocate): Likewise.
2950 * maint.c (maintenance_translate_address): Likewise.
2951 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2952 * minsyms.c (install_minimal_symbols): Likewise.
2953 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2955 (filter_overlapping_sections): Use objfile_name.
2956 (objfile_name): New function.
2957 * objfiles.h (struct objfile): Rename field name to original_name.
2958 (objfile_name): New prototype.
2959 * printcmd.c (sym_info, address_info): Use objfile_name.
2960 * probe.c (parse_probes, collect_probes, compare_probes)
2961 (info_probes_for_ops): Likewise.
2962 * progspace.c (clone_program_space): Likewise.
2963 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2964 (maintenance_info_psymtabs): Likewise.
2965 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2966 (source_section_scripts): Likewise.
2967 * python/py-objfile.c (objfpy_get_filename): Likewise.
2968 * python/py-progspace.c (pspy_get_filename): Likewise.
2969 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2970 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2971 * solib.c (solib_read_symbols): Likewise.
2972 * stabsread.c (scan_file_globals): Likewise.
2973 * stap-probe.c (handle_stap_probe): Likewise.
2974 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2975 (find_separate_debug_file_by_debuglink): Likewise.
2976 (reread_symbols): Likewise. Use the objfile field name renamed to
2978 (allocate_symtab): Use objfile_name.
2979 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2980 (dump_objfile, dump_msymbols, dump_symtab_1)
2981 (maintenance_print_msymbols, maintenance_print_objfiles)
2982 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2983 * target.c (target_translate_tls_address, target_info): Likewise.
2984 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2990 * probe.c (parse_probes): Rename variable objfile_name to
2995 Remove solib-sunos.c.
2996 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2997 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2998 * objfiles.c (rt_common_objfile): Remove.
2999 (free_objfile): Remove rt_common_objfile comparison.
3000 * objfiles.h (rt_common_objfile): Remove.
3001 * solib-sunos.c: Remove.
3002 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3006 Remove a.out NetBSD and OpenBSD hosts.
3007 * NEWS (Removed native configurations): New.
3008 * config/arm/nbsdaout.mh: Remove.
3009 * config/i386/nbsdaout.mh: Remove.
3010 * config/i386/obsdaout.mh: Remove.
3011 * config/m68k/nbsdaout.mh: Remove.
3012 * config/sparc/nbsdaout.mh: Remove.
3013 * config/vax/nbsdaout.mh: Remove.
3014 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3015 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3016 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3018 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3019 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3020 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3024 * linespec.c (struct minsym_and_objfile): Remove.
3025 (minsym_and_objfile_d): Remove.
3026 (struct linespec, struct collect_info, linespec_parse_basic)
3027 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3028 (compare_msymbols, find_method, find_function_symbols)
3029 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3030 (add_minsym, search_minsyms_for_name): Update.
3034 * regcache.c: Add include of valprint.h.
3035 (dump_endian_bytes): Delete.
3036 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3040 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3044 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3051 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3052 Take a gdb_byte pointer instead of a char pointer.
3054 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3055 gnu_xfer_partial helper.
3056 (gnu_xfer_partial): New function.
3057 (gnu_target): Don't install a deprecated_xfer_memory hook.
3058 Install a to_xfer_partial hook.
3063 * main.c (captured_main): Replace catch_command_errors by
3064 catch_command_errors_const. Twice.
3065 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3066 (symbol_file_add): Make name parameter const.
3067 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3068 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3069 variable name. Change their usage accordingly.
3070 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3072 (symbol_file_add_main): Make args parameter const.
3077 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3079 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3084 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3085 (gnu_create_inferior)
3086 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3087 (set_sig_thread_cmd): Use the lwpid field of ptids to
3088 store/extract thread ids instead of the tid field.
3089 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3093 * infcmd.c (default_print_one_register_info): Add detection of
3094 optimized out values.
3095 (default_print_registers_info): Switch to using
3096 get_frame_register_value.
3100 * infrun.c (handle_inferior_event): Check if we know the
3101 function start address before setting a resume breakpoint.
3105 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3106 minus_one_ptid instead of looking at the ptid's tid field and
3107 comparing that to -1.
3111 * main.h (get_gdb_program_name): Remove extra whitespace.
3115 * main.h (get_gdb_program_name): Add declaration.
3116 * main.c (get_gdb_program_name): Add definition.
3120 * dwarf2read.c: Move definitions of complaint functions to after
3121 forward declarations of local functions.
3127 * breakpoint.c (remove_threaded_breakpoints): New function.
3128 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3129 as thread_exit observer.
3134 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3135 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3136 * corelow.c (core_open):
3137 * frame.h (print_stack_frame, print_frame_info): New
3138 'set_current_sal' parameter.
3139 * infcmd.c (finish_command, kill_command): Adjust call to
3141 * inferior.c (inferior_command): Likewise.
3142 * infrun.c (normal_stop): Likewise.
3143 * linux-fork.c (linux_fork_context): Likewise.
3144 * record-full.c (record_full_goto_entry, record_full_restore):
3146 * remote-mips.c (common_open): Likewise.
3147 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3149 (print_frame_info): New 'set_current_sal' parameter. Set the last
3150 displayed sal depending on the new paremeter instead of looking at
3152 (backtrace_command_1, select_and_print_frame, frame_command)
3153 (current_frame_command, up_command, down_command): Adjust call to
3155 * thread.c (print_thread_info, restore_selected_frame)
3156 (do_captured_thread_select): Adjust call to print_stack_frame.
3157 * tracepoint.c (tfind_1): Likewise.
3158 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3159 (mi_cmd_stack_info_frame): Likewise.
3160 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3161 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3165 * value.c (isvoid_internal_fn): Replace "parameter" with
3170 * README: Update references to writing code for GDB.
3171 * configure.ac (build_warnings): Remove obsolete comment.
3172 * configure: Regenerate.
3173 * gdbarch.sh: Remove references to gdbint.texinfo.
3174 * gdbarch.h: Regenerate.
3175 * gdbtypes.c (objfile_type): Remove comments referencing internals
3180 * NEWS: Mention new convenience function $_isvoid.
3181 * value.c (isvoid_internal_fn): New function.
3182 (_initialize_values): Add new convenience function $_isvoid.
3186 * arm-linux-tdep.c: Add "elf/common.h" header.
3187 Remove AT_HWCAP macro definintion as it is provided in
3189 * s390-tdep.c: Remove system header <elf.h>
3190 Add "elf/common.h" header for AT_HWCAP definition.
3191 (s390_core_read_description): Use correct CORE_ADDR
3192 for hwcap local variable used as third parameter
3193 of function target_auxv_search.
3199 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3200 mode if operating system doesn't know O_CLOEXEC.
3205 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3210 * NEWS: Mention TDB support.
3211 * features/s390-tdb.xml: New file.
3212 * features/s390-te-linux64.xml: New file.
3213 * features/s390x-te-linux64.xml: New file.
3214 * features/Makefile (WHICH): Add new tdescs above.
3215 (s390-te-linux64-expedite): Set.
3216 (s390x-te-linux64-expedite): Set.
3217 * features/s390-te-linux64.c: New file (generated).
3218 * features/s390x-te-linux64.c: New file (generated).
3219 * regformats/s390-te-linux64.dat: New file (generated).
3220 * regformats/s390x-te-linux64.dat: New file (generated).
3221 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3222 (HWCAP_S390_TE): Likewise.
3223 (S390_TDB_DWORD0_REGNUM): Likewise.
3224 (S390_TDB_DWORD0_REGNUM): Likewise.
3225 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3226 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3227 (S390_TDB_ATIA_REGNUM): Likewise.
3228 (S390_TDB_R0_REGNUM): Likewise.
3229 (S390_TDB_R1_REGNUM): Likewise.
3230 (S390_TDB_R2_REGNUM): Likewise.
3231 (S390_TDB_R3_REGNUM): Likewise.
3232 (S390_TDB_R4_REGNUM): Likewise.
3233 (S390_TDB_R5_REGNUM): Likewise.
3234 (S390_TDB_R6_REGNUM): Likewise.
3235 (S390_TDB_R7_REGNUM): Likewise.
3236 (S390_TDB_R8_REGNUM): Likewise.
3237 (S390_TDB_R9_REGNUM): Likewise.
3238 (S390_TDB_R10_REGNUM): Likewise.
3239 (S390_TDB_R11_REGNUM): Likewise.
3240 (S390_TDB_R12_REGNUM): Likewise.
3241 (S390_TDB_R13_REGNUM): Likewise.
3242 (S390_TDB_R14_REGNUM): Likewise.
3243 (S390_TDB_R15_REGNUM): Likewise.
3244 (S390_NUM_REGS): Increase.
3245 (S390_IS_TDBREGSET_REGNUM): New macro.
3246 (s390_regmap_tdb): Declare.
3247 (s390_sizeof_tdbregset): Define.
3248 (tdesc_s390_te_linux64): Declare.
3249 (tdesc_s390x_te_linux64): Likewise.
3250 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3251 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3252 (s390_regmap_tdb): New regmap.
3253 (s390_supply_tdb_regset): New function.
3254 (s390_tdb_regset): New regset.
3255 (s390_linux64v2_regset_sections): Add TDB regset to list.
3256 (s390x_linux64v2_regset_sections): Likewise.
3257 (s390_regset_from_core_section): Recognize TDB core note section.
3258 (s390_core_read_description): If HWCAP indicates TE support,
3259 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3260 (s390_gdbarch_init): Handle TDB regset.
3261 (_initialize_s390_tdep): Initialize new tdescs.
3262 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3263 (have_regset_tdb): New variable.
3264 (s390_native_supply): Support register invalidation.
3265 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3266 (check_regset): Treat ENODATA as "regset exists".
3267 (s390_linux_fetch_inferior_registers): Add TDB.
3268 (s390_read_description): Check for TDB existence and select
3270 * gdbserver/Makefile.in (clean): Add removal of new makefile
3272 (s390-te-linux64.c): New makefile target.
3273 (s390x-te-linux64.c): Likewise.
3274 * gdbserver/configure.srv (srv_regobj): Append new objects
3275 s390-te-linux64.o and s390x-te-linux64.o.
3276 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3277 s390x-te-linux64.xml, and s390-tdb.xml.
3278 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3280 (tdesc_s390_te_linux64): Likewise.
3281 (init_registers_s390x_te_linux64): Likewise.
3282 (tdesc_s390x_te_linux64): Likewise.
3283 (s390_check_regset): Treat ENODATA as "regset exists".
3284 (s390_arch_setup): Add TDB regset support.
3285 (initialize_low_arch): Initialize registers for new tdescs.
3289 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3290 (S390_IS_FPREGSET_REGNUM): New macro.
3291 * s390-tdep.c (s390_dwarf_regmap): Make const.
3292 (regnum_is_gpr_full): New function for replacing repeated code.
3293 (s390_pseudo_register_name): Use it.
3294 (s390_pseudo_register_type): Likewise.
3295 (s390_pseudo_register_read): Likewise.
3296 (s390_pseudo_register_write): Likewise.
3297 (s390_unwind_pseudo_register): Likewise.
3298 (s390_regmap_gregset): New format for regmap.
3299 (s390x_regmap_gregset): Likewise.
3300 (s390_regmap_fpregset): Likewise.
3301 (s390_regmap_upper): Likewise.
3302 (s390_regmap_last_break): Likewise.
3303 (s390_regmap_system_call): Likewise.
3304 (s390_supply_regset): Adjust to new regmap format.
3305 (s390_collect_regset): Likewise.
3306 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3307 (s390_native_collect): Likewise.
3308 (supply_gregset): Likewise.
3309 (fill_gregset): Likewise.
3310 (supply_fpregset): Likewise.
3311 (fill_fpregset): Likewise.
3312 (fetch_regset): Likewise.
3313 (store_regset): Likewise.
3314 (s390_linux_fetch_inferior_registers): Likewise.
3315 (s390_linux_fetch_inferior_registers): Likewise.
3319 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3323 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3327 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3331 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3332 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3333 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3334 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3335 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3340 * remote-sim.c (dump_mem): Constify buf parameter.
3341 gdbsim_xfer_inferior_memory): Rename to ...
3342 (gdbsim_xfer_memory): ... this. Adjust interface as
3343 target_xfer_partial helper.
3344 (gdbsim_xfer_partial): New function.
3345 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3346 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3350 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3351 host_address_to_string, and send debug output to gdb_stdlog.
3355 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3356 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3357 gdb_target_obs for cris target.
3358 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3359 (cris_gdbarch_init): Move calls to
3360 set_gdbarch_fetch_tls_load_module_address and
3361 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3362 Add call to gdbarch_init_osabi.
3363 * cris-linux-tdep.c: New file.
3364 * cris-tdep.h: New file.
3368 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3369 to deprecated_init_ui_hook.
3373 * cli/cli-interp.c (_initialize_cli_interp): Add a
3374 command_loop_proc to interp_procs.
3375 * event-top.c (cli_command_loop): Change signature to match
3376 interp_command_loop_ftype.
3377 * event-top.h (cli_command_loop): Same.
3378 * interps.c (interp_new): Require every interpreter to have a
3380 (current_interp_command_loop): Just call the command_loop_proc on
3381 the current interpreter.
3382 * tui/tui-interp.c (_initialize_tui_interp): Add a
3383 command_loop_proc to interp_procs.
3387 * cris-tdep.c (cris_gdbarch_init): Add call to
3388 get_gdbarch_fetch_tls_load_module_address.
3392 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3393 (cris_elf_gregset_t): Rename from elf_gregset_t.
3394 (crisv32_elf_gregset_t): Adjust.
3395 (cris_supply_gregset, fetch_core_registers): Adjust.
3399 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3403 * defs.h (deprecated_command_loop_hook): Remove, including
3404 references in comments.
3405 * interps.c (current_interp_command_loop): No longer use
3406 deprecated_command_loop_hook.
3407 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3409 * top.c (deprecated_command_loop_hook): Remove.
3413 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3414 local is now int instead of ULONGEST. Print it with %d
3415 instead of paddress.
3419 * MAINTAINERS: Remove avr maintainership.
3423 * findvar.c (value_of_register): Rework in terms of
3424 value_of_register_lazy.
3428 * symfile.c (add_symbol_file_command): Remove trailing
3429 whitespaces and blank line after comment.
3433 * tui/tui-regs.c (tui_register_format): Don't look at the
3434 register's name here. Return string representing register
3435 value instead of storing it in the data element.
3436 (tui_get_register): Compare register string representations
3437 instead of register value states and contents.
3442 * tui/tui-regs.c (tui_show_registers): Show registers of the
3443 selected frame, not the current frame.
3447 * MAINTAINERS (Write After Approval): Add myself to the list.
3451 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3452 (queue_and_load_dwo_tu): New function.
3453 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3454 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3455 Make dependent_cu optional.
3456 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3457 and an older .gdb_index is in use, queue and load all its TUs too.
3461 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3462 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3463 variable search_flags.
3464 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3465 (OPF_RETURN_REALPATH): ... here.
3466 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3467 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3469 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3471 * solib.c (solib_find): Likewise. Four times.
3472 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3473 in the function comment and for the realpath_fptr variable.
3474 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3475 (find_and_open_source): Likewise. Twice.
3476 * symfile.c (symfile_bfd_open): Likewise, also twice.
3480 * progspace.c (save_current_space_and_thread): Remove unnecessary
3481 call to save_current_inferior.
3485 * sh64-tdep.c (sh64_do_register): Return after printing message
3486 about unavailable register contents.
3491 * symfile.c (add_symbol_file_command): Error out on unknown
3492 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3493 options and collapse into single conditional branch.
3497 * inf-child.c (inf_child_follow_fork): New parameter
3499 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3500 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3501 * inferior.h (detach_fork): Remove.
3502 * infrun.c (detach_fork): Adjust comment and make it
3504 (follow_fork): Pass detach_fork parameter to
3506 * linux-nat.c (linux_child_follow_fork): New parameter
3508 * target.c (target_follow_fork): New parameter detach_fork.
3509 Pass detach_fork as parameter and print its value.
3510 * target.h (struct target_ops) <to_follow_fork>: New int
3512 (target_follow_fork): New parameter detach_fork.
3516 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3517 Replace sec->bfd by sec->the_bfd_section->owner.
3521 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3522 from linux_has_shared_address_space.
3523 (linux_has_shared_address_space): Call linux_is_uclinux.
3524 * linux-tdep.h (linux_is_uclinux): Declare.
3525 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3530 * config/djgpp/fnchange.lst: Remove entry of
3531 i386-interix-nat.c and i386-interix-tdep.c.
3532 * configure.ac: Remove '*-*-interix*'.
3533 * configure: Re-generated.
3534 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3535 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3537 * osabi.c (gdb_osabi_names): Remove "Interix".
3541 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3545 * record.h (record_print_flag) <record_print_src_line,
3546 record_print_insn_range>: Rename into ...
3547 (record_print_flag) <record_print_src_line,
3548 record_print_insn_range>: ... this. Update all users.
3552 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3557 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3558 by use of plongest function.
3562 * NEWS: Add entry mentioning support for native Windows x64
3565 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3566 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3567 (struct amd64_windows_frame_cache): New struct.
3568 (amd64_windows_w2gdb_regnum): New global.
3569 (pc_in_range, amd64_windows_frame_decode_epilogue)
3570 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3571 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3572 (amd64_windows_frame_this_id): New functions.
3573 (amd64_windows_frame_unwind): New static global.
3574 (amd64_windows_skip_prologue): New function.
3575 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3576 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3577 with amd64_windows_skip_prologue.
3585 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3590 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3595 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3596 Adjust arguments to print_stack_frame.
3600 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3604 * frame.h (show_and_print_stack_frame): Delete declaration.
3609 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3610 (archpy_name): Check for valid architecture.
3611 (archpy_disassemble): Ditto.
3615 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3616 instead of "long long" in call to ptrace64.
3620 * mi/mi-interp.c (mi_command_loop): Change signature to match
3621 interp_command_loop_ftype.
3622 (mi1_command_loop): Remove.
3623 (mi2_command_loop): Remove.
3624 (mi3_command_loop): Remove.
3625 (mi_interpreter_resume): Remove setting of
3626 deprecated_command_loop_hook.
3627 (_initialize_mi_interp): Set mi_command_loop as the command loop
3632 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3637 * value.c (allocate_value_contents): Make static.
3638 * value.h (allocate_value_contents): Remove prototype.
3642 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3643 of assembling value via allocate_value_lazy and attribute setter.
3644 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3645 assembling value via allocate_value_lazy and attribute setter.
3646 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3647 assembling value via allocate_value_lazy and attribute setter.
3651 * value.c (value_from_contents_and_address): Replace allocate_value and
3652 memcpy with value_from_contents.
3656 * python/py-framefilter.c (py_print_frame): Remove usage of
3657 PyString_AsString. Use python_string_to_host_string instead.
3658 Refactor function to work with a string as a new allocation
3659 instead of a pointer.
3660 (py_print_frame): Ditto.
3661 * python/lib/gdb/frames.py (return_list): Cain iterators together
3662 instead of adding them as a list.
3663 (_sort_list): Call return_list, and remove duplicate code.
3664 (execute_frame_filters): Convert iterator to a list with list().
3665 * python/lib/gdb/command/frame_filters.py
3666 (SetFrameFilterPriority._set_filter_priority): Convert priority
3667 attribute to an integer.
3668 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3669 wrapper function __next__.
3670 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3676 * python/py-framefilter.c (apply_frame_filter): Check
3677 gdb_python_initialized. Exit if the Python frame-filter code
3678 cannot be initialized.
3683 * top.c (print_gdb_version): Remove erroneous newline after help
3688 * varobj.c (install_dynamic_child): Remove trailing space.
3689 Add one blank line after variable declaration.
3694 * corefile.c (get_exec_file): Use exec_filename.
3695 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3696 * exec.c (exec_close): Free EXEC_FILENAME.
3697 (exec_file_attach): New variable canonical_pathname. Use
3698 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3700 * exec.h (exec_filename): New.
3701 * inferior.c (print_inferior, inferior_command): Use
3702 PSPACE_EXEC_FILENAME.
3703 * mi/mi-main.c (print_one_inferior): Likewise.
3704 * progspace.c (clone_program_space, print_program_space): Likewise.
3705 * progspace.h (struct program_space): New field pspace_exec_filename.
3706 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3707 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3711 * common/linux-ptrace.c: Include stdint.h unconditionally.
3716 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3721 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3722 instead of stdio_fileopen.
3723 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3724 .Call stderr_fileopen instead of stdio_fileopen.
3725 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3726 [__MINGW32__] (stderr_file_fputs): New function.
3727 (stderr_fileopen): New function.
3728 * ui-file.h (stderr_fileopen): Declare.
3732 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3733 (struct dwarf2_per_cu_data): Ditto.
3734 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3735 (process_imported_unit_die): Ditto.
3736 (follow_die_sig_1): Simplify assert.
3740 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3741 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3742 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3743 windows_xfer_memory directly.
3744 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3748 * darwin-nat.c (darwin_xfer_memory): Delete.
3749 (_initialize_darwin_inferior): Don't install a
3750 deprecated_xfer_memory method.
3755 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3756 (parse_no_frames_option): Remove.
3757 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3758 (mi_cmd_stack_list_args): Adjust.
3759 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3760 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3761 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3763 (list_args_or_locals): New parameter 'skip_unavailable'.
3765 * valprint.c (scalar_type_p): Rename to ...
3766 (val_print_scalar_type_p): ... this. Make extern.
3767 (val_print, value_check_printable): Adjust.
3768 * valprint.h (val_print_scalar_type_p): Declare.
3769 * value.c (value_entirely_unavailable): New function.
3770 * value.h (value_entirely_unavailable): Declare.
3772 * NEWS: Mention the new option "--skip-unavailable" to MI
3773 commands '-stack-list-locals', '-stack-list-arguments' and
3774 '-stack-list-variables'.
3778 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3779 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3781 * mi/mi-getopt.c (mi_getopt): Remove.
3782 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3784 (mi_getopt): Call mi_getopt_1.
3785 (mi_getopt_silent): New.
3786 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3791 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3792 .gdb_index is in use.
3793 * symfile.c (reread_symbols): Reset objfile->sf.
3795 * NEWS: Document "mt print objfiles" now takes optional regexp.
3796 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3797 regexp of objfiles to print.
3798 (_initialize_symmisc): Update doc string for "mt print objfiles".
3800 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3801 missing debug info checks.
3806 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3807 line tables generated by XLC compiled binaries.
3811 * symmisc.c (dump_symtab): Delete prototype.
3812 (dump_msymbols, dump_objfile): Ditto.
3813 (maintenance_info_symtabs): Mark as dont_repeat.
3814 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3816 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3817 debugging printf to better location.
3821 * target.c (target_read_live_memory): Change type of 'ret' local
3826 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3827 (remote_read_bytes): Change return type to LONGEST, and adjust to
3828 return a target_xfer_error on error.
3829 (remote_xfer_memory): Delete.
3830 (remote_flash_write): Change type of 'ret' local to LONGEST.
3831 (remote_xfer_partial, remote_xfer_partial): Adjust.
3832 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3836 ARI fix: Push # directives to start of line.
3837 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3842 * breakpoint.c (enable_command, disable_command): Iterate over
3843 all specified breakpoint locations.
3847 * common/linux-ptrace.c (linux_fork_to_function): Push #
3848 directives to the start of the line.
3849 (linux_check_ptrace_features): Fix warning message to use
3854 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3855 nat/linux-waitpid.h.
3856 (linux-waitpid.o): New object file rule.
3857 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3858 (current_ptrace_options): Moved from linux-nat.c.
3859 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3861 (linux_fork_to_function): New function.
3862 (linux_grandchild_function): Likewise.
3863 (linux_child_function): Likewise.
3864 (linux_check_ptrace_features): New function, heavily
3865 based on linux-nat.c:linux_test_for_tracefork.
3866 (linux_enable_event_reporting): New function.
3867 (ptrace_supports_feature): Likewise.
3868 (linux_supports_tracefork): Likewise.
3869 (linux_supports_traceclone): Likewise.
3870 (linux_supports_tracevforkdone): Likewise.
3871 (linux_supports_tracesysgood): Likewise.
3872 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3873 gdbserver/linux-low.c.
3874 (linux_enable_event_reporting): New declaration.
3875 (linux_supports_tracefork): Likewise.
3876 (linux_supports_traceclone): Likewise.
3877 (linux_supports_tracevforkdone): Likewise.
3878 (linux_supports_tracesysgood): Likewise.
3879 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3880 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3881 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3882 * config/arm/linux.mh (NATDEPFILES): Likewise.
3883 * config/i386/linux.mh (NATDEPFILES): Likewise.
3884 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3885 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3886 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3887 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3888 * config/mips/linux.mh (NATDEPFILES): Likewise.
3889 * config/pa/linux.mh (NATDEPFILES): Likewise..
3890 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3891 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3892 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3893 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3894 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3895 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3896 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3897 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3898 ptrace's 4th argument's types.
3899 Check the type of PTRACE_TYPE_ARG4.
3900 * configure: Regenerate.
3901 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3902 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3903 (linux_supports_tracefork_flag): Remove.
3904 (linux_supports_tracesysgood_flag): Likewise.
3905 (linux_supports_tracevforkdone_flag): Likewise.
3906 (current_ptrace_options): Moved to
3907 common/linux-ptrace.c.
3908 (linux_tracefork_child): Remove.
3909 (my_waitpid): Remove.
3910 (linux_test_for_tracefork): Renamed to
3911 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3912 (linux_test_for_tracesysgood): Remove.
3913 (linux_supports_tracesysgood): Remove.
3914 (linux_supports_tracefork): Remove.
3915 (linux_supports_tracevforkdone): Remove.
3916 (linux_enable_tracesysgood): Remove.
3917 (linux_enable_event_reporting): Remove.
3918 (linux_init_ptrace): New function.
3919 (linux_child_post_attach): Call linux_init_ptrace.
3920 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3921 (linux_child_follow_fork): Call linux_supports_tracefork
3922 and linux_supports_tracevforkdone.
3923 (linux_child_insert_fork_catchpoint): Call
3924 linux_supports_tracefork.
3925 (linux_child_insert_vfork_catchpoint): Likewise.
3926 (linux_child_set_syscall_catchpoint): Call
3927 linux_supports_tracesysgood.
3928 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3929 * nat/linux-nat.h: New file.
3930 * nat/linux-waitpid.c: New file.
3931 * nat/linux-waitpid.h: New file.
3935 ARM Linux support for `catch syscall'.
3936 * syscalls/arm-linux.py: New file.
3937 * syscalls/arm-linux.xml: Likewise.
3938 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3939 (arm_linux_init_abi): Register the new function and syscall xml file.
3940 * data-directory/Makefile.in: Install the new syscall xml file.
3941 * NEWS: Brag about this.
3946 * corefile.c (target_xfer_memory_error): New function.
3947 (memory_error): Defer EIO to target_memory_error.
3948 (read_memory): Use target_xfer_partial, and handle finer-grained
3950 * target.c (target_xfer_error_to_string): New function.
3951 (memory_xfer_partial_1): If memory is known to be
3952 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3953 (target_xfer_partial): Make extern.
3954 * target.h (enum target_xfer_error): New enum.
3955 (target_xfer_error_to_string): Declare function.
3956 (target_xfer_partial): Declare function.
3957 (struct target_ops) <xfer_partial>: Adjust describing comment.
3961 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3962 * configure.tgt: Likewise as targets.
3966 * buildsym.c (subfile_stack): Move here from buildsym.h.
3967 (pending_macros): Ditto.
3968 (get_macro_table): New function.
3969 (buildsym_init): Initialize subfile_stack.
3970 * coffread.c (type_vector,type_vector_length): Moved here from
3972 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3973 (coff_symtab_read): Use it.
3974 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3975 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3976 with call to get_macro_table.
3977 * stabsread.c (type_vector,type_vector_length): Moved here from
3979 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3980 * buildsym.h (get_macro_table): Declare.
3984 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3986 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3990 * blockframe.c: Remove #include "psymtab.h".
3991 * cp-support.c: Ditto.
3998 * exceptions.h (return_mask): Now an enum.
3999 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4004 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4006 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4007 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4008 * jit.c (jit_object_close_impl): Update.
4009 * jv-lang.c (get_dynamics_objfile): Update.
4010 * linespec.c (add_minsym): Use get_dynamics_objfile.
4011 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4012 (allocate_objfile): Don't initialize 'gdbarch' field.
4013 (get_objfile_arch): Update.
4014 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4016 (struct objfile) <gdbarch>: ... here. Remove.
4017 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4019 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4023 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4024 for IBM long double nan and inf.
4025 (floatformat_is_negative, floatformat_classify,
4026 floatformat_mantissa): Similarly.
4027 (floatformat_ieee_single, floatformat_ieee_double,
4028 floatformat_ieee_quad, floatformat_arm_ext,
4029 floatformat_ia64_spill): Delete unused vars.
4030 (_initialize_doublest): Delete unused function.
4031 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4032 little-endian variants of floatformat_ibm_long_double.
4036 * Makefile.in (SFILES): Remove common/target-common.c and
4037 add target/waitstatus.c.
4038 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4039 target/resume.h, target/wait.h and target/waitstatus.h.
4040 (COMMON_OBS): Remove target-common.o and add
4042 (target-common.o): Remove.
4043 (waitstatus.o): New target object file.
4044 * common/target-common.c: Move contents to
4045 target/waitstatus.c and remove.
4046 * common/target-common.h: Move contents to other files and
4048 (enum resume_kind: Move to target/resume.h.
4049 (TARGET_WNOHANG): Move to target/wait.h.
4050 (enum target_waitkind): Move to target/waitstatus.h.
4051 (struct target_waitstatus): Likewise.
4052 * target.h: Do not include target-common.h and
4053 include target/resume.h, target/wait.h and
4054 target/waitstatus.h.
4055 * target/resume.h: New file.
4056 * target/wait.h: New file.
4057 * target/waitstatus.h: New file.
4058 * target/waitstatus.c: New file.
4062 * linux-nat.c (linux_test_for_tracefork)
4063 (linux_test_for_tracesysgood, linux_child_follow_fork)
4064 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4065 (linux_nat_wait_1): Extend comment.
4066 (linux_async_pipe): Add comment.
4070 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4071 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4072 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4073 Update to account for fact that PC is now a pseudo-register.
4074 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4075 cases for RL78_PC_REGNUM.
4080 * top.c (quit_force): Skip writing history file
4081 if input is not from terminal.
4085 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4086 resultthreadlist>: New fields.
4087 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4088 (remote_get_threadlist, remote_threadlist_iterator): Use
4089 new fields. Remove static variables.
4093 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4094 remote_watch_data_address>: New fields.
4095 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4096 (process_stop_reply, remote_wait_as)
4097 (remote_check_watch_resources, remote_stopped_data_address): Update.
4101 * remote.c (struct remote_state) <async_client_callback,
4102 async_client_context>: New fields.
4103 (async_client_callback, async_client_context): Remove.
4104 (remote_async_serial_handler, remote_async): Update.
4108 * remote.c (sizeof_pkt): Remove.
4109 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4113 * remote.c (struct remote_state) <use_threadinfo_query,
4114 use_threadextra_query>: New fields.
4115 (remote_threads_info, remote_threads_extra_info)
4116 (remote_open_1): Update.
4120 * remote.c (struct remote_state) <finished_object,
4121 finished_annex, finished_offset>: New fields.
4122 (remote_read_qxfer): Use remote_state fields; remove static
4127 * remote.c (struct remote_state) <last_sent_step>:
4129 (last_sent_step): Remove.
4130 (remote_resume, remote_wait_as): Update.
4134 * remote.c (struct remote_state) <last_sent_signal>:
4136 (last_sent_signal): Remove.
4137 (new_remote_state, remote_resume, remote_wait_as): Update.
4141 * remote.c (struct remote_state) <last_program_signals_packet>:
4143 (last_program_signals_packet): Remove.
4144 (remote_program_signals, remote_open_1): Update.
4148 * remote.c (struct remote_state) <last_pass_packet>:
4150 (last_pass_packet): Remove.
4151 (remote_pass_signals, remote_open_1): Update.
4155 * remote.c (struct remote_state) <remote_traceframe_number>:
4157 (remote_traceframe_number): Remove.
4158 (new_remote_state, remote_open_1, set_remote_traceframe)
4159 (remote_trace_find): Update.
4163 * remote.c (struct remote_state) <general_thread, continue_thread>:
4165 (general_thread, continue_thread): Remove.
4166 (record_currthread, set_thread, set_general_process)
4167 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4168 (extended_remote_mourn_1): Update.
4172 * remote.c (struct remote_state) <remote_desc>: New field.
4173 (remote_desc): Remove.
4174 (remote_threads_info, remote_threads_extra_info, remote_close)
4175 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4176 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4177 (remote_hostio_send_command, remote_file_put, remote_file_get)
4178 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4179 (remote_async, remote_new_objfile, set_range_stepping): Update.
4183 * remote.c (remote_state): Now a pointer.
4184 (get_remote_state_raw): Update.
4185 (new_remote_state): New function.
4186 (_initialize_remote): Use new_remote_state.
4190 * remote.c (remote_protocol_features): Now const.
4194 * remote.c (crc32_table, crc32): Remove.
4195 (remote_verify_memory): Use xcrc32.
4199 * value.h (create_internalvar_type_lazy): Adjust prototype
4204 * common/format.c (parse_format_string): Don't allow '#' flag for
4205 pointer arguments in format string.
4209 * utils.c (init_page_info): Only call tgetnum function
4210 if rl_get_screen_size did not return useful values.
4214 PR breakpoints/15117
4215 * linespec.c (linespec_parse_basic): Check for convenience
4216 variable or history value while parsing.
4220 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4222 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4223 different signals between the generic Linux kernel implementation
4225 (avr_linux_gdb_signal_from_target): Delete.
4226 (avr_linux_gdb_signal_to_target): Delete.
4227 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4231 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4236 * linux-tdep.c: Define enum with generic signal numbers.
4237 (linux_gdb_signal_from_target): New function.
4238 (linux_gdb_signal_to_target): Likewise.
4239 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4240 methods to the functions above.
4241 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4242 (linux_gdb_signal_to_target): Likewise.
4243 * alpha-linux-tdep.c: Define new enum with signals different
4244 from generic Linux kernel.
4245 (alpha_linux_gdb_signal_from_target): New function.
4246 (alpha_linux_gdb_signal_to_target): Likewise.
4247 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4248 with the functions mentioned above.
4249 * avr-tdep.c: Define enum with differences between Linux kernel
4251 (avr_linux_gdb_signal_from_target): New function.
4252 (avr_linux_gdb_signal_to_target): Likewise.
4253 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4254 the functions mentioned above.
4255 * sparc-linux-tdep.c: Define enum with differences between SPARC
4256 and generic Linux kernel signal numbers.
4257 (sparc32_linux_gdb_signal_from_target): New function.
4258 (sparc32_linux_gdb_signal_to_target): Likewise.
4259 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4260 to the functions defined above.
4261 * xtensa-linux-tdep.c: Define enum with differences between
4262 Xtensa and Linux kernel generic signals.
4263 (xtensa_linux_gdb_signal_from_target): New function.
4264 (xtensa_linux_gdb_signal_to_target): Likewise.
4265 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4266 to the functions defined above.
4267 * mips-linux-tdep.c: Define enum with differences between
4268 signals in MIPS and Linux kernel generic ones.
4269 (mips_gdb_signal_to_target): New function.
4270 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4271 only different signals from the Linux kernel generic.
4272 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4273 the functions defined above.
4274 * mips-linux-tdep.h (enum mips_signals): Remove.
4278 * avr-tdep.c (XMALLOC): Delete macro.
4279 * cli/cli-dump.c (XMALLOC): Delete macro.
4283 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4284 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4285 (fopen_with_cleanup, add_dump_command): Make static.
4286 * cli/cli-dump.h: Delete file.
4287 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4292 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4297 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4302 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4303 (gcore_command): Use tilde_expand here, and when showing the
4304 filename to the user, show the expanded version.
4308 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4313 * gcore.c (create_gcore_bfd): Use tilde_expand.
4317 * frame.h (read_frame_local): Declare.
4318 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4320 * stack.c (read_frame_local): New.
4324 * mi/mi-cmd-stack.c: Update comments to function
4325 list_args_or_locals.
4330 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4331 (process_psymtab_comp_unit_reader): Use it.
4332 (process_psymtab_comp_unit): Update. Add "pretend_language"
4334 (dwarf2_build_psymtabs_hard): Update.
4335 (scan_partial_symbols): Pass CU's language to
4336 process_psymtab_comp_unit.
4340 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4341 (dwarf2_gdb_index_functions): Update.
4342 * psymtab.c (find_symbol_file_from_partial): Remove.
4343 (psym_functions): Update.
4344 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4349 * symfile.c (set_initial_language): Look up "main" symbol
4350 and use its language.
4351 * symtab.c (find_main_filename): Remove.
4352 * symtab.h (find_main_filename): Remove.
4356 * dwarf2read.c (recursively_compute_inclusions): Add
4357 "immediate_parent" argument. Set symtab's "user" field
4359 (compute_symtab_includes): Update.
4363 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4364 when adding label symbols.
4369 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4370 * configure.host (powerpc64-*-aix*): Likewise.
4375 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4377 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4378 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4379 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4380 * configure.ac: Check for ptrace64.
4381 * configure, config.in: Regenerate.
4386 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4387 Call ptrace64 instead of ptrace if defined.
4388 Add macro addr_ptr to take care of ptrace address argument.
4389 (pdc_read_regs): Likewise.
4390 (pdc_write_regs): Likewise.
4391 (aix_thread_resume): Likewise.
4392 (fetch_regs_kernel_thread): Likewise.
4393 (store_regs_kernel_thread): Likewise.
4397 * MAINTAINERS: Add myself to Write After Approval.
4401 * aix-thread.c (_initialize_aix_thread): Use
4402 complete_target_initialization.
4403 * bsd-uthread.c (_initialize_bsd_uthread): Use
4404 complete_target_initialization.
4405 * dec-thread.c (_initialize_dec_thread): Use
4406 complete_target_initialization.
4407 * ravenscar-thread.c (_initialize_ravenscar): Use
4408 complete_target_initialization.
4409 * sol-thread.c (_initialize_sol_thread): Use
4410 complete_target_initialization.
4411 * spu-multiarch.c (_initialize_spu_multiarch): Use
4412 complete_target_initialization.
4416 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4417 * ada-lang.c (ada_lookup_simple_minsym): Return
4418 bound_minimal_symbol.
4419 * ada-lang.h (ada_lookup_simple_minsym): Update.
4420 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4421 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4422 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4423 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4424 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4425 * minsyms.c (msymbol_objfile): Remove.
4426 (lookup_minimal_symbol_internal): New function, from
4427 lookup_minimal_symbol.
4428 (lookup_minimal_symbol): Rewrite using
4429 lookup_minimal_symbol_internal.
4430 (lookup_bound_minimal_symbol): New function.
4431 * minsyms.h (msymbol_objfile): Remove.
4432 (lookup_bound_minimal_symbol): Declare.
4433 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4434 * parse.c (write_exp_msymbol): Change parameter to a
4435 bound_minimal_symbol.
4436 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4437 * parser-defs.h (write_exp_msymbol): Update.
4438 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4439 * symfile.c (simple_read_overlay_table): Use
4440 lookup_bound_minimal_symbol.
4441 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4442 (search_symbols): Likewise.
4443 (print_msymbol_info): Take a bound_minimal_symbol argument.
4444 (symtab_symbol_info, rbreak_command): Update.
4445 * symtab.h (struct symbol_search) <msymbol>: Change type
4446 to bound_minimal_symbol.
4447 * valops.c (find_function_in_inferior): Use
4448 lookup_bound_minimal_symbol.
4449 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4454 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4456 (async_cleanup_sigint_signal_handler): ... this.
4457 (initialize_sigint_signal_handler): Remove declaration.
4458 (handle_remote_sigint): Rename the declaration to ...
4459 (async_handle_remote_sigint): ... this.
4460 (handle_remote_sigint_twice): Rename the declaration to ...
4461 (async_handle_remote_sigint_twice): ... this.
4462 (async_remote_interrupt, async_remote_interrupt_twice)
4463 (remote_interrupt): Remove the declarations.
4464 (remote_interrupt_twice): Rename the declaration ...
4465 (sync_remote_interrupt_twice): ... this.
4466 (sigint_remote_twice_token): Rename the variable to ...
4467 (async_sigint_remote_twice_token): ... this.
4468 (sigint_remote_token): Rename the variable to ...
4469 (async_sigint_remote_token): ... this.
4470 (initialize_sigint_signal_handler): Rename the function to ...
4471 (async_initialize_sigint_signal_handler): ... this. Update the name
4473 (handle_remote_sigint): Rename the function to ...
4474 (async_handle_remote_sigint): ... this. Update the names inside.
4475 (handle_remote_sigint_twice): Rename the function to ...
4476 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4477 (cleanup_sigint_signal_handler): Rename the function to ...
4478 (async_cleanup_sigint_signal_handler): ... this.
4479 (remote_interrupt): Rename the function to ...
4480 (sync_remote_interrupt): this. Update the names inside.
4481 (remote_interrupt_twice): Rename the function to ...
4482 (sync_remote_interrupt_twice): this. Update the names inside.
4483 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4484 (_initialize_remote): Update the names inside.
4489 * breakpoint.c (update_watchpoint, watchpoint_check)
4490 (watch_command_1): Update.
4491 * eval.c (fetch_subexp_value): Add "preserve_errors"
4493 * ppc-linux-nat.c (check_condition): Update.
4494 * value.h (fetch_subexp_value): Update.
4498 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4504 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4505 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4506 Add assert of sig_entry->dwo_unit == NULL.
4507 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4508 had already been read.
4509 (read_signatured_type): Set per_cu.tu_read.
4512 * valops.c (value_struct_elt): Add missing call to check_typedef.
4513 (value_find_oload_method_list): Ditto.
4515 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4516 effectively, struct symbol_search **.
4517 (make_cleanup_free_search_symbols): Change arg to struct
4518 symbol_search **. All callers updated.
4519 (compare_search_syms): Compare symtab file name and block as well.
4520 (search_symbols_equal): New function.
4521 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4522 New args new_head, new_tail. Result is now void. Remove dups after
4523 sorting the symbols.
4524 (search_symbols): Sort all found symbols once, after all have been
4525 found, and remove duplicates. Simplify cleanup tracking of result.
4526 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4528 Further workarounds for binutils/15021.
4529 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4530 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4531 Watch for duplicate symtabs coming from type units.
4532 (compute_symtab_includes): Update call to
4533 recursively_compute_inclusions. Build vector of included symtabs
4535 * symtab.h (symtab_ptr): New typedef.
4536 (DEF_VEC_P (symtab_ptr)): New VEC type.
4537 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4542 * cli/cli-script.c (script_from_file): Remove use of
4544 * main.c (captured_main): Remove use of error_pre_print and
4546 * utils.c (error_pre_print, quit_pre_print): Remove.
4547 * utils.h (error_pre_print, quit_pre_print): Likewise.
4551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4553 (mi_cmd_stack_list_variables): Likewise.
4557 * exceptions.c (deprecated_throw_reason): Remove.
4558 * exceptions.h (deprecated_throw_reason): Remove.
4562 * remote-mips.c (mips_error): Replace use of
4563 deprecated_throw_reason with throw_verror. Use the error message
4564 passed to mips_error as the error message for throw_verror.
4568 * monitor.c (monitor_interrupt_query): Replace use of
4569 deprecated_throw_reason with quit.
4570 * nto-procfs.c (interrupt_query): Likewise.
4571 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4572 * remote-mips.c (mips_kill): Likewise.
4573 * remote.c (interrupt_query): Likewise.
4577 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4583 * tracepoint.c (trace_dump_command): Select the current frame.
4587 * dwarf2read.c (process_queue): Add type signature to debug output.
4591 * value.c (value_fetch_lazy): Mark optimized out values as such
4592 rather than raising an error.
4596 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4597 before checking which bits of the parent, not the child, value are
4603 * top.c: Include "filenames.h".
4604 (set_history_filename): New function.
4605 (init_main): Install it as set hook of the "set history filename"
4610 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4611 attribute parameter.
4612 (dwarf2_const_value_data): Constify struct attribute parameter.
4613 (dwarf2_const_value): Constify struct attribute parameter.
4614 (dwarf2_const_value_attr): Constify struct attribute parameter.
4615 (lookup_die_type): Constify struct attribute parameter.
4616 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4617 (follow_die_ref_or_sig): Constify struct attribute parameter.
4618 (follow_die_ref): Constify struct attribute parameter.
4619 (follow_die_sig): Constify struct attribute parameter.
4620 (get_DW_AT_signature_type): Constify struct attribute parameter.
4621 (get_type_unit_group): Constify struct attribute parameter.
4622 (fill_in_loclist_baton): Constify struct attribute parameter.
4623 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4624 (type_unit_group): Constify struct attribute parameter.
4628 * dwarf2read.c (attr_form_is_block): Make argument const.
4629 (attr_form_is_section_offset): Make argument const.
4630 (attr_form_is_constant): Make argument const.
4631 (attr_form_is_ref): Make argument const.
4635 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4637 (attr_form_is_ref): Moved below attr_form_is_constant.
4641 * main.c (captured_command_loop): Tweak comment.
4643 * target.c (target_async_permitted_1): Fix comment.
4645 * symtab.c (iterate_over_some_symtabs): Add comment.
4647 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4651 * NEWS: Mention that GDBserver now supports hardware
4652 watchpoints on the MIPS GNU/Linux target.
4656 * Makefile.in (HFILES_NO_SRCDIR): Add
4657 common/mips-linux-watch.h.
4658 (mips-linux-watch.o): New rule.
4659 * common/mips-linux-watch.c: New.
4660 * common/mips-linux-watch.h: New.
4661 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4662 * mips-linux-nat.c: Include mips-linux-watch.h.
4663 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4664 to common/mips-linux-watch.h.
4665 (MAX_DEBUG_REGISTER): Likewise.
4666 (enum pt_watch_style): Likewise.
4667 (struct mips32_watch_regs): Likewise.
4668 (struct mips64_watch_regs): Likewise.
4669 (struct pt_watch_regs): Likewise.
4670 (struct mips_watchpoint): Likewise.
4671 (mips_linux_watch_get_irw_mask): Move to
4672 common/mips-linux-watch.c.
4673 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4674 (mips_linux_watch_get_watchlo): Likewise.
4675 (mips_linux_watch_set_watchlo): Likewise.
4676 (mips_linux_watch_get_watchhi): Likewise.
4677 (mips_linux_watch_set_watchhi): Likewise.
4678 (mips_linux_read_watch_registers): Likewise.
4679 (mips_linux_watch_type_to_irw): Likewise.
4680 (mips_linux_stopped_data_address, fill_mask): Likewise.
4681 (mips_linux_watch_try_one_watch): Likewise.
4682 (mips_linux_watch_populate_regs): Likewise.
4686 * mips-linux-nat.c (get_irw_mask): Rename to ...
4687 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4688 'set' to 'n'. Update function comment. All callers changed.
4689 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4690 function comment. All callers changed.
4691 (get_num_valid): Rename to ...
4692 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4693 'set' to 'n'. Update function comment. All callers changed.
4694 (get_watchlo): Rename to ...
4695 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4696 'set' to 'n'. Update function comment. All callers changed.
4697 (set_watchlo): Rename to ...
4698 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4699 'set' to 'n'. Update function comment. All callers changed.
4700 (get_watchhi): Rename to ...
4701 (mips_linux_watch_get_watchhi): ... this. Update function
4702 comment. All callers changed.
4703 (set_watchhi): Rename to ...
4704 (mips_linux_watch_set_watchhi): ... this. Update function
4705 comment. All callers changed.
4706 (mips_linux_read_watch_registers): Update function comment.
4707 Add new parameters 'lwpid', 'watch_readback', and
4708 'watch_readback_valid'. Update.
4709 (type_to_irw): Rename to ...
4710 (mips_linux_watch_type_to_irw): ... this. Update function
4711 comment. All callers changed.
4712 (fill_mask): Update function comment.
4713 (try_one_watch): Rename to ...
4714 (mips_linux_watch_try_one_watch): ... this. Change the type
4715 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4716 (populate_regs_from_watches): Rename to ...
4717 (mips_linux_watch_populate_regs): ... this. Add parameter
4718 'current_watches'. All callers changed.
4722 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4724 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4725 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4726 (struct pt_watch_regs): Likewise.
4727 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4728 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4729 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4730 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4731 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4735 * breakpoint.h: Include break-common.h.
4736 (enum target_hw_bp_type): Move to ...
4737 * common/break-common.h: ... here. New.
4741 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4742 process group regardless of having tty on stdin.
4746 * linux-fork.h (detach_fork): Delete.
4750 PR remote/15256, PR remote/15266:
4751 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4752 * monitor.c (monitor_detach): Use unpush_target.
4753 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4754 * remote-mips.c (mips_detach): Use unpush_target. Don't
4756 * remote-sim.c (gdbsim_detach): Use unpush_target.
4757 * target.c (pop_target): Remove.
4758 (pop_all_targets_above): Don't call target_close.
4759 (target_close): Assert that the target is unpushed.
4760 * target.h (pop_target): Don't declare.
4761 * tracepoint.c (tfile_open): Use unpush_target.
4765 * linux-thread-db.c (init_thread_db_ops): Call
4766 complete_target_initialization.
4767 (_initialize_thread_db): Don't call add_target.
4768 * target.c (complete_target_initialization): New function.
4769 (add_target_with_completer): Call it.
4770 * target.h (complete_target_initialization): Declare.
4774 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4775 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4776 (HPPANBSD_SIZEOF_GREGS): New define.
4777 (hppaobsd_supply_gregset): Handle additional registers.
4778 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4779 we provide more registers now.
4780 (hppabsd_supply_gregset): Supply additional registers.
4781 (hppabsd_collect_gregset): Collect additional registers.
4785 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4786 (hppabsd_dwarf2_frame_init_reg): New function.
4787 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4791 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4792 'z' format code. Remove error for optimized out values, standard
4793 code will handle these fine.
4797 * NEWS: Mention new 'z' formatter.
4798 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4799 (_initialize_printcmd): Mention 'z' formatter in help text of the
4804 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4809 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4810 interface can evaluate arguments. Fallback to the old mode if it
4812 (create_exception_master_breakpoint): Likewise.
4813 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4814 (struct sym_probe_fns elf_probe_fns): Export function above to the
4816 * probe.c (can_evaluate_probe_arguments): New function.
4817 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4819 (can_evaluate_probe_arguments): New function prototype.
4820 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4821 probe interface can evaluate arguments. Fallback to the old mode
4823 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4824 interface can evaluate arguments. Warning the user if it cannot.
4825 (stap_can_evaluate_probe_arguments): New function.
4826 (struct probe_ops stap_probe_ops): Export function above to the
4828 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4829 New function pointer.
4833 * Makefile.in (SFILES): Add common/target-common.c.
4834 Add common/target-common.h to headers.
4835 (COMMON_OBS): Add target-common.o.
4836 (target-common.o): New target.
4837 * linux-nat.h (resume_kind): Move to common/target-common.h.
4838 * target.c (target_waitstatus_to_string): Move to
4839 common/target-common.c.
4840 * target.h: Include target-common.h.
4841 (target_waitkind): Move to common/target-common.h.
4842 (target_waitstatus): Likewise.
4843 (TARGET_WNOHANG): Likewise.
4844 * common/target-common.c: New file.
4845 * common/target-common.h: New file.
4849 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4854 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4855 parameter 'gdbarch'.
4856 (i386_stack_tramp_frame_sniffer): Caller update.
4857 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4858 parameter 'gdbarch' and 'target'.
4859 (i386_linux_core_read_description): Caller update.
4860 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4862 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4867 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4872 * exec.h (remove_target_sections): Delete arg abfd.
4873 * exec.c (exec_close): Update call to remove_target_sections.
4874 (remove_target_sections): Delete arg abfd.
4875 * solib.c (update_solib_list): Ditto.
4876 (reload_shared_libraries_1): Ditto.
4877 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4878 * target.h (struct target_section): Rename key to owner.
4883 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4887 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4888 Simplify cleanup handling.
4892 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4893 on all return paths.
4897 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4898 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4899 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4903 * top.c (print_gdb_version): Add help, apropos description and
4904 url to online documentation.
4909 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4913 * target.c (update_current_target): Change the default action
4914 of 'to_traceframe_info' from tcomplain to return_zero.
4915 * target.h (struct target_ops) <to_traceframe_info>: Add more
4917 * valops.c (read_value_memory): Call
4918 traceframe_available_memory unconditionally.
4922 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4923 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4924 symbol without prefix. If found, set its type to
4925 'mst_solib_trampoline'.
4929 * NEWS: Mention "set print raw frame-arguments".
4930 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4931 * stack.c (print_raw_frame_arguments): New static global.
4932 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4933 (_initialize_stack): New command "set/show print raw frame-arguments".
4934 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4935 (set_print_raw, show_print_raw): New functions.
4936 (_initialize_valprint): New prefix command "set/show print raw".
4937 * valprint.h (value_print_options): Improve comments.
4939 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4940 of all *list variables.
4942 * gdbcmd.h (togglelist): Delete.
4943 * cli/cli-cmds.c (togglelist): Delete.
4944 (init_cmd_lists): Update.
4945 * cli/cli-cmds.h (togglelist): Delete.
4949 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4954 * nto-tdep.c (nto_relocate_section_addresses): Update,
4955 target_section.bfd deleted.
4956 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4957 * s390-tdep.c (s390_load): Ditto.
4958 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4962 * common/format.c (parse_format_string): Add checks for NULL
4963 character before calling strchr.
4967 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4968 temp_pathname argument.
4969 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4970 when opening the file fails.
4972 * target.h (struct target_section): Delete member bfd.
4973 All users updated to use the_bfd_section->owner instead.
4974 * exec.c (add_to_section_table): Assert bfd is expected value.
4975 Remove initialization of target_section.bfd.
4976 (remove_target_sections): Update.
4977 (section_table_available_memory): Update.
4978 (section_table_xfer_memory_partial): Update.
4979 (print_section_info): Update.
4980 (exec_set_section_address): Update.
4981 * record-full.c (record_full_core_xfer_partial): Update.
4982 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4983 * solib-target.c (solib_target_relocate_section_addresses): Update.
4984 * symfile.c (build_section_addr_info_from_section_table): Update.
4985 * target.c (memory_xfer_live_readonly_partial): Update.
4986 (memory_xfer_partial_1): Update.
4990 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4991 now available for embedded (BookE) and server (BookS) processors,
4992 correct mentions of 'booke' and adjust comments accordingly in order to
4993 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4994 (have_ptrace_booke_interface): Rename function and variable
4995 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4996 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4997 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4998 'hwdebug_point_cmp'. Update all uses.
4999 (booke_find_thread_points_by_tid): Rename function
5000 'booke_find_thread_points_by_tid' to
5001 'hwdebug_find_thread_points_by_tid'. Update all uses.
5002 (booke_insert_point): Rename function 'booke_insert_point' to
5003 'hwdebug_insert_point'. Update all uses.
5004 (booke_remove_point): Rename function 'booke_remove_point' to
5005 'hwdebug_remove_point'. Update all uses.
5009 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5010 numbers with enum values.
5015 * thread.c (thread_apply_all_command): Check for valid threads
5017 (thread_array_cleanup): New struct.
5018 (set_thread_refcount): New function.
5022 * infcmd.c (default_print_one_register_info): Reuse function
5027 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5028 (ada-exp.o): New target.
5032 * mt-tdep.c (mt_registers_info): Call
5033 get_no_prettyformat_print_options instead of
5034 get_raw_print_options (regression by last patch from Doug
5040 * ada-lang.c (coerce_unspec_val_to_type): Use
5041 value_optimized_out_const.
5042 * value.c (value_optimized_out_const): New function.
5043 * value.h (value_optimized_out_const): New declaration.
5047 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5048 Enum values rename as well. All uses updated.
5049 * valprint.h (value_print_options): Rename member pretty to
5050 pretty format. Rename member prettyprint_arrays to
5051 prettyformat_arrays. Rename member prettyprint_structs to
5052 prettyformat_structs. All uses updated.
5053 (get_no_prettyformat_print_options): Renamed from
5054 get_raw_print_options.
5055 * valprint.c (get_no_prettyformat_print_options): Renamed from
5056 get_raw_print_options. All callers updated.
5057 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5058 All callers updated.
5059 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5060 All callers updated.
5061 (_initialize_valprint): Improve help text for "set print pretty" and
5066 * value.c (value_bits_valid): Revert previous change, and change
5067 by Pedro on 2013-07-04, due to regressions in
5068 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5073 * value.c (value_bits_valid): If the value is not lval_computed
5074 or has no check validity handler then the answer is the
5075 optimized_out flag, otherwise defer to the handler.
5079 * top.c (print_gdb_configuration): Explain in output of
5080 --configuration what does "relocatable" mean.
5082 * main.c (print_gdb_help): Regroup options in the --help text.
5083 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5084 the relevant discussions.
5088 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5089 Remove parameter 'lsal'.
5090 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5091 to inner block. Caller update.
5092 (base_breakpoint_create_breakpoints_sal): Update.
5093 (bkpt_create_breakpoints_sal): Likewise.
5094 (tracepoint_create_breakpoints_sal): Likewise.
5095 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5096 element 0 of vector 'canonical->sals'.
5100 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5101 register number instead of the pseudo register one.
5102 (rs6000_dwarf2_reg_to_regnum): Likewise.
5106 * findvar.c (value_of_register): Use allocate_optimized_out_value
5107 if the register has been optimized out, instead of
5108 set_value_optimized_out.
5109 * frame-unwind.c (frame_unwind_got_optimized): Use
5110 allocate_optimized_out_value.
5114 * value.c (value_bits_valid): If the value is not lval_computed,
5115 or doesn't have a check_validity hook, assume the value is entirely
5120 * stack.c (read_frame_arg): No longer fetch lazy values.
5121 * value.c (value_optimized_out): If the value is not already
5122 marked optimized out, and is lazy then fetch it.
5123 (value_primitive_field): Move optimized out check to later in the
5124 function, after we have loaded any lazy values.
5125 (value_fetch_lazy): Use optimized out flag directly rather than
5126 calling optimized_out method.
5130 * valops.c: Don't include "user-regs.h".
5131 (value_fetch_lazy): Moved to value.c.
5132 * value.c: Include "user-regs.h".
5133 (value_fetch_lazy): Moved from valops.c.
5140 * common/create-version.sh: Update comments. Handle the case
5141 that TARGET_ALIAS is empty.
5145 * Makefile.in (config.status): Depend on development.sh.
5146 (aclocal_m4_deps): Add libmcheck.m4.
5147 * acinclude.m4: Include libmcheck.m4.
5148 * configure.ac: Source development.sh instead of setting
5149 'development' here. --enable-libmcheck/--disable-libmcheck code
5150 factored out to GDB_AC_LIBMCHECK. Run it.
5151 * development.sh: New file.
5152 * libmcheck.m4: New file.
5153 * configure: Regenerate.
5157 * contrib/ari/update-web-ari.sh: Update for version.in change.
5161 * common/ptid.h: Comment fixes.
5165 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5166 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5167 (dwarf2_read_index, create_all_comp_units): Update.
5171 * configure.ac (build_warnings): Add -Wold-style-definition.
5172 * configure: Rebuild.
5173 * machoread.c (_initialize_machoread): Use "(void)".
5174 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5179 * configure.ac (build_warnings): Add -Wold-style-declaration.
5180 * configure: Rebuild.
5181 * dsrec.c (make_srec): Use "static const", not "const static".
5182 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5184 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5185 Use "static const", not "const static".
5186 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5188 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5190 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5192 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5194 (v850_dbtrap_breakpoint_from_pc): Likewise.
5195 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5200 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5201 * configure: Rebuild.
5205 * defs.h: Include "pathmax.h".
5206 * utils.c: Don't include sys/param.h.
5207 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5208 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5209 instead of MAXPATHLEN.
5210 * solib-sunos.c: Don't include sys/param.h.
5211 * xcoffread.c: Don't include sys/param.h.
5212 * bsd-kvm.c: Don't include sys/param.h.
5213 * darwin-nat.c: Don't include sys/param.h.
5214 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5215 * darwin-nat-info.c: Don't include sys/param.h.
5216 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5218 * i386obsd-nat.c: Don't include sys/param.h.
5219 * inf-child.c: Don't include sys/param.h.
5220 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5221 * linux-fork.c: Don't include sys/param.h.
5222 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5223 * linux-nat.c: Don't include sys/param.h.
5224 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5225 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5226 * m68klinux-nat.c: Don't include sys/param.h.
5227 * nbsd-nat.c: Don't include sys/param.h.
5228 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5229 * ppc-linux-nat.c: Don't include sys/param.h.
5230 * rs6000-nat.c: Don't include sys/param.h.
5231 * spu-linux-nat.c. Don't include sys/param.h.
5232 * windows-nat.c: Don't include sys/param.h.
5233 * xtensa-linux-nat.c: Don't include sys/param.h.
5234 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5238 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5239 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5240 * gnulib/aclocal.m4: Regenerate.
5241 * gnulib/config.in: Regenerate.
5242 * gnulib/configure: Regenerate.
5243 * gnulib/import/pathmax.h: New file.
5244 * gnulib/import/Makefile.am: Regenerate.
5245 * gnulib/import/Makefile.in: Regenerate.
5246 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5247 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5248 * gnulib/import/m4/pathmax.m4: New file.
5252 * configure.ac (GDBINIT): Define, depending on host.
5253 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5254 * top.c (PATH_MAX): Delete fallback definition.
5255 (GDBINIT_FILENAME): Delete.
5256 (gdbinit): Reimplement as const char array set to the GDBINIT
5258 * top.h (gdbinit): Make const.
5259 * configure, config.in: Regenerate.
5263 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5264 * cli/cli-cmds.h (source_script): Likewise.
5265 * exceptions.c (catch_command_errors_const): New function.
5266 * exceptions.h (catch_command_errors_const): Declare.
5267 * main.c (get_init_files): Make parameters const, and adjust.
5268 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5269 'local_gdbinit' locals const. Adjust to use
5270 catch_command_errors_const.
5271 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5272 'local_gdbinit' locals const.
5276 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5277 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5278 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5283 Import the "unistd" gnulib module.
5284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5285 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5286 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5287 import/m4/unistd_h.m4.
5288 * gnulib/aclocal.m4: Renenerate.
5289 * gnulib/config.in: Renenerate.
5290 * gnulib/configure: Renenerate.
5291 * gnulib/import/Makefile.am: Renenerate.
5292 * gnulib/import/Makefile.in: Renenerate.
5293 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5294 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5295 * gnulib/import/m4/off_t.m4: New file.
5296 * gnulib/import/m4/ssize_t.m4: New file.
5297 * gnulib/import/m4/sys_types_h.m4: New file.
5298 * gnulib/import/m4/unistd_h.m4: New file.
5299 * gnulib/import/sys_types.in.h: New file.
5300 * gnulib/import/unistd.c: New file.
5301 * gnulib/import/unistd.in.h: New file.
5305 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5306 defined instead of checking HAVE_UNISTD_H.
5310 Reimport gnulib from scratch.
5311 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5312 import/m4/onceonly.m4.
5313 * gnulib/aclocal.m4: Renegerate.
5314 * gnulib/config.in: Renegerate.
5315 * gnulib/configure: Renegerate.
5316 * gnulib/import/Makefile.in: Renegerate.
5317 * gnulib/import/extra/update-copyright: Renegerate.
5318 * gnulib/import/m4/onceonly.m4: Delete.
5322 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5327 * remote.c (async_remote_interrupt_twice): Make it static.
5328 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5332 * ia64-linux-tdep.c: Include <ctype.h>.
5333 (ia64_linux_stap_is_single_operand): New function.
5334 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5338 * Makefile.in (version.c): Use version.in, not
5340 * common/create-version.sh: Likewise.
5341 * common/version.in: Move...
5342 * version.in: ...here.
5346 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5348 * utils.h (pagination_enabled): Declare.
5352 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5353 Move higher up in file.
5357 * tracepoint.c (deprecated_readline_begin_hook)
5358 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5364 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5365 checking if they're available.
5366 * value.c (value_available_contents_eq): Change comment.
5367 * value.h (value_available_contents_eq): Expand comment.
5371 * target.c (find_run_target): Remove.
5372 * target.h (find_run_target): Remove.
5376 * corelow.c (core_gdbarch): Now static.
5380 * target.c (target_struct_index): Remove.
5384 * infrun.c: Remove comment describing the 'stepping over runtime
5385 loader dynamic symbol resolution code' mechanism; moved to
5390 * exceptions.c (catch_command_errors): Remove spurious space.
5391 * exceptions.h (catch_command_errors): Second parameter is "arg",
5396 * common/create-version.sh: Update comments. Handle the case
5397 that TARGET_ALIAS is empty.
5401 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5406 * infrun.c: Update comments on stepping over runtime loader
5407 dynamic symbol resolution code.
5411 * ax-gdb.h (union exp_element): Forward declare.
5412 * parser-defs.h: Include expression.h.
5416 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5420 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5424 Fix trace-status to output proper start-time and stop-time.
5425 * tracepoint.c (trace_status_command): Fix type of printf arg to
5426 prevent improper type conversion.
5427 (trace_status_mi): Likewise.
5431 * mips-tdep.c (mips_next_pc): Fix a typo.
5435 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5440 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5441 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5442 * mi/mi-main.c (print_variable_or_computed): New function.
5443 (mi_cmd_trace_frame_collected): New function.
5444 * tracepoint.c (find_trace_state_variable_by_number): New.
5445 (struct traceframe_info): Move to tracepoint.h
5446 (struct collection_list): Likewise.
5447 (do_collect_symbol): Include locals and arguments in the
5448 collected variables list.
5449 (clear_collection_list): Clear wholly collected variables list
5450 and computed variables list.
5451 (append_exp): New function.
5452 (encode_actions_1): Include variables in the wholly
5453 collected variables list. Include memory ranges and
5454 full-fledged expressions in the computed expressions list.
5455 (encode_actions): Move some code to ...
5456 Return the cleanup chain.
5457 (encode_actions_rsp): ... here. New function.
5458 (get_traceframe_location, get_traceframe_info): Remove static.
5459 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5460 (struct collection_list): Moved from tracepoint.c. Add two
5461 new fields 'wholly_collected' and 'computed'.
5462 (find_trace_state_variable_by_number): Declare.
5463 (encode_actions): Adjust declaration.
5464 (encode_actions_rsp): Declare.
5465 (get_traceframe_info, get_traceframe_location): Declare.
5467 * NEWS: Mention new MI command -trace-frame-collected.
5472 * ctf.c (ctf_traceframe_info): Push trace state variables
5473 present in the trace data into the traceframe info object.
5474 * breakpoint.c (DEF_VEC_I): Remove.
5475 * common/filestuff.c (DEF_VEC_I): Likewise.
5476 * dwarf2loc.c (DEF_VEC_I): Likewise.
5477 * mi/mi-main.c (DEF_VEC_I): Likewise.
5478 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5479 * features/traceframe-info.dtd: Add tvar element and its
5481 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5482 (build_traceframe_info): Push trace state variables present in
5483 the trace data into the traceframe info object.
5484 (traceframe_info_start_tvar): New function.
5485 (tvar_attributes): New.
5486 (traceframe_info_children): Add "tvar" element.
5487 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5489 * NEWS: Mention the change in GDB and GDBserver.
5494 * tracepoint.c (trace_dump_command): Move code to ...
5495 (get_traceframe_location): ... here. New.
5500 * tracepoint.c (trace_dump_command): GDB emits an error
5501 instead of a warning when a traceframe is not selected.
5506 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5507 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5509 (do_clear_collection_list, init_collection_list): New.
5510 (encode_actions): Add local variables 'tracepoint_list' and
5511 'stepping_list'. Call init_collection_list and make cleanup
5512 which calls do_clear_collection_list. Don't call
5513 clear_collection_list.
5514 (_initialize_tracepoint): Delete references to
5515 'tracepoint_list' and 'stepping_list'.
5519 * common/create-version.sh (date): Use "$", not "$$" in sed
5524 * NEWS (New targets): Add entry for TI MSP430.
5528 * remote.c (remote_start_remote): Move code to upload tsv
5535 PR breakpoints/15075
5536 PR breakpoints/15434
5537 * breakpoint.c (bpstat_stop_status): Call
5538 b->ops->after_condition_true.
5539 (update_dprintf_command_list): Don't append "continue" command
5540 to the command list of dprintf breakpoint.
5541 (base_breakpoint_after_condition_true): New function.
5542 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5543 (dprintf_after_condition_true): New function.
5544 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5545 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5549 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5550 (ALLDEPFILES): Add msp430-tdep.c.
5551 * configure.tgt (msp430*-*-elf): New target.
5552 * msp430-tdep.c: New file.
5556 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5557 microMIPS synthetic symbols.
5561 * objfiles.h (pc_in_section): New prototype.
5562 (in_plt_section): Remove name argument, replace prototype with
5563 static inline function.
5564 * mips-tdep.h: Include "objfiles.h".
5565 (in_mips_stubs_section): New function.
5566 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5567 in_solib_call_trampoline member.
5568 (hppa_in_solib_call_trampoline): Remove name argument.
5569 * objfiles.c (pc_in_section): New function.
5570 (in_plt_section): Remove function.
5571 * mips-linux-tdep.c: Include "objfiles.h".
5572 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5573 name argument. Return 1 rather than the low 16-bit halfword of
5574 any instruction examined.
5575 (mips_linux_in_dynsym_resolve_code): Update
5576 mips_linux_in_dynsym_stub call accordingly.
5577 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5578 rather than an equivalent hand-coded sequence.
5579 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5580 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5581 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5582 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5584 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5585 on call to tdep->in_solib_call_trampoline.
5586 (hppa_in_solib_call_trampoline): Remove name argument, update
5587 according to in_plt_section change.
5588 (hppa_skip_trampoline_code): Update according to in_plt_section
5590 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5591 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5593 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5594 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5595 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5596 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5597 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5598 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5599 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5600 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5601 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5602 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5603 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5604 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5605 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5609 * common/create-version.sh: Fix expansion of $host_alias
5610 and $target_alias in generation of HOST_NAME and TARGET_NAME
5615 * common/create-version.sh: New file.
5616 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5618 (HFILES_NO_SRCDIR): Use common/version.h.
5619 * version.in: Move to ...
5620 * common/version.in: ... here. Replace date with "DATE".
5621 * version.h: Move to ...
5622 * common/version.h: ... here.
5626 * gdb/gnulib/Makefile.in: Update date in copyright header.
5627 * gdb/gnulib/configure.ac: Ditto.
5628 * gdb/gnulib/update-gnulib.sh: Ditto.
5632 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5633 "gdb/gnulib/import".
5637 * doublest.c (ldfrexp): Remove function.
5638 (convert_doublest_to_floatformat): Call frexpl instead of
5643 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5644 * gnulib/aclocal.m4: Regenerate.
5645 * gnulib/config.in: Regenerate.
5646 * gnulib/configure: Regenerate.
5647 * gnulib/import/Makefile.am: Update.
5648 * gnulib/import/Makefile.in: Update.
5649 * gnulib/import/m4/gnulib-cache.m4: Update.
5650 * gnulib/import/m4/gnulib-comp.m4: Update.
5651 * gnulib/import/float+.h: Import.
5652 * gnulib/import/float.c: Import.
5653 * gnulib/import/float.in.h: Import.
5654 * gnulib/import/fpucw.h: Import.
5655 * gnulib/import/frexp.c: Import.
5656 * gnulib/import/frexpl.c: Import.
5657 * gnulib/import/isnan.c: Import.
5658 * gnulib/import/isnand-nolibm.h: Import.
5659 * gnulib/import/isnand.c: Import.
5660 * gnulib/import/isnanl-nolibm.h: Import.
5661 * gnulib/import/isnanl.c: Import.
5662 * gnulib/import/itold.c: Import.
5663 * gnulib/import/m4/exponentd.m4: Import.
5664 * gnulib/import/m4/exponentl.m4: Import.
5665 * gnulib/import/m4/float_h.m4: Import.
5666 * gnulib/import/m4/fpieee.m4: Import.
5667 * gnulib/import/m4/frexp.m4: Import.
5668 * gnulib/import/m4/frexpl.m4: Import.
5669 * gnulib/import/m4/isnand.m4: Import.
5670 * gnulib/import/m4/isnanl.m4: Import.
5671 * gnulib/import/m4/math_h.m4: Import.
5672 * gnulib/import/math.c: Import.
5673 * gnulib/import/math.in.h: Import.
5677 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5678 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5679 signature_INTEL_edx comparisons.
5684 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5685 All callers updated.
5686 (open_dwp_file): If we can't find the dwp file, search the basename
5687 in debug-file-directory.
5689 * dwarf2read.c (struct dwp_file): Fix comment.
5690 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5692 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5697 * breakpoint.c (create_breakpoint): Fix code indentation.
5701 * breakpoint.c (create_breakpoints_sal_default): Remove
5702 parameter 'lsal'. Update declaration.
5703 (bkpt_create_breakpoints_sal): Caller update.
5704 (tracepoint_create_breakpoints_sal): Likewise.
5709 * NEWS: Mention the new option '--skip-unavailable' of command
5710 -data-list-register-values.
5711 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5712 --skip-unavailable option. Adjust to use output_register.
5713 (output_register): Add new 'skip_unavailable' parameter.
5718 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5719 common/i386-gcc-cpuid.h.
5720 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5721 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5722 Copy the latest version from upstream gcc.
5723 * common/linux-btrace.c: Include i386-cpuid.h.
5724 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5726 (cpu_supports_btrace): Likewise.
5727 * go32-nat.c: Include i386-cpuid.h.
5728 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5732 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5733 (get_section_index): Ditto.
5737 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5742 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5744 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5745 Move test of cu_index closer to use. Print complaint if cu_index
5750 * machoread.c (oso_vector): Delete this global.
5751 (macho_register_oso): Add new parameter "oso_vector_ptr".
5752 Use it instead of the "oso_vector" global.
5753 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5754 (macho_symfile_read): Use a local oso_vector, to be free'ed
5755 at the end of this function, in place of the old "oso_vector"
5756 global. Update various function calls accordingly. Use one
5757 single cleanup chain for the entire function.
5761 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5762 DWARF2_PER_OBJFILE by uses of DATA instead.
5766 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5768 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5769 Special case signals other than GDB_SIGNAL_TRAP.
5770 (explains_signal_watchpoint): New function.
5771 (base_breakpoint_explains_signal): Add 'sig' argument.
5772 (initialize_breakpoint_ops): Set 'explains_signal' method for
5774 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5776 (bpstat_explains_signal): Likewise.
5777 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5781 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5785 * python/python.c (finish_python_initialization): Decref
5786 'pythondir' on failure path as well.
5791 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5792 after taking bits_to_skip into account. Sign extend byte_offset.
5793 * utils.h (gdb_sign_extend): Declare.
5794 * utils.c (gdb_sign_extend): New function.
5798 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5802 * corelow.c (core_open): Print GDB signal name instead of target
5807 * .gitignore: Add /gcore.
5811 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5812 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5816 * stack.c (backtrace_command_1): Fix indentation.
5820 * window-nat.c (thread_rec): Add missing empty line after
5821 local variable declaration.
5825 * windows-nat.c (thread_rec): Revert format used to print
5826 error code returned by SuspendThread from %d back to %u.
5830 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5832 (get_windows_debug_event): Likewise, for all debug traces.
5836 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5842 * mi/mi-main.c (get_register): Remove declaration.
5843 (output_register): Declare.
5844 (mi_cmd_data_list_register_values): Remove local variable
5845 'tuple_cleanup'. Move some code into output_register.
5846 (get_register): Renamed to ...
5847 (output_register): ... this. Output the register's
5848 "number" ui_out tuple here.
5852 * darwin-nat.c: Fix formating in copyright header.
5853 * darwin-nat.h: Likewise.
5854 * gnu-nat.c: Likewise.
5855 * machoread.c: Likewise.
5860 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5861 static. Output a global target description pointer.
5862 (init_registers_${name}): Adjust to initialize a
5863 target description structure.
5867 * printcmd.c (build_address_symbolic): Call
5868 gdbarch_addr_bits_remove for text minimal symbols.
5872 * MAINTAINERS: Add myself to Write After Approval.
5876 * tracepoint.c (start_tracing): Move code to ...
5877 (trace_reset_local_state): ... here. New.
5878 (disconnect_tracing): Don't call set_current_traceframe,
5879 set_tracepoint_num, and set_traceframe_context. Call
5880 trace_reset_local_state instead.
5881 (tfile_close): Call trace_reset_local_state.
5882 * ctf.c (ctf_close): Likewise.
5883 * remote.c (remote_close): Likewise.
5884 * tracepoint.h (trace_reset_local_state): Declare.
5888 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5889 and fix header docs.
5895 * cp-namespace.c (find_symbol_in_baseclass): Call
5896 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5897 Check result of call to lookup_symbol_static.
5898 Call lookup_static_symbol_aux unconditionally.
5899 Call check_typedef on base types before accessing them.
5900 (cp_lookup_nested_symbol): Fix comment.
5904 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5905 minimal symbols pointing to function descriptors.
5909 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5914 * remote.c (remote_wait_as): Restore signal handler before returning
5915 when GDB gets a notification.
5920 * breakpoint.h (handle_solib_event): Moved function declaration
5922 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5923 (bpstat_stop_status): Pass new argument to handle_solib_event.
5924 * solib.h (update_solib_breakpoints): New function declaration.
5925 (handle_solib_event): Moved function declaration from
5927 * solib.c (update_solib_breakpoints): New function.
5928 (handle_solib_event): Moved function from breakpoint.c.
5929 Updated to call solib_ops->handle_event if not NULL.
5930 * solist.h (target_so_ops): New fields "update_breakpoints" and
5932 * infrun.c (set_stop_on_solib_events): New function.
5933 (_initialize_infrun): Use the above for "set
5934 stop-on-solib-events".
5935 (handle_inferior_event): Pass new argument to handle_solib_event.
5936 * solib-svr4.c (probe.h): New include.
5937 (svr4_free_library_list): New forward declaration.
5938 (probe_action): New enum.
5939 (probe_info): New struct.
5940 (probe_info): New static variable.
5941 (NUM_PROBES): New definition.
5942 (svr4_info): New fields "using_xfer", "probes_table" and
5944 (free_probes_table): New function.
5945 (free_solib_list): New function.
5946 (svr4_pspace_data_cleanup): Free probes table and solib list.
5947 (svr4_copy_library_list): New function.
5948 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5949 (svr4_read_so_list): New parameter "prev_lm".
5950 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5951 (svr4_current_sos): New function.
5952 (probe_and_action): New struct.
5953 (hash_probe_and_action): New function.
5954 (equal_probe_and_action): Likewise.
5955 (register_solib_event_probe): Likewise.
5956 (solib_event_probe_at): Likewise.
5957 (solib_event_probe_action): Likewise.
5958 (solist_update_full): Likewise.
5959 (solist_update_incremental): Likewise.
5960 (disable_probes_interface_cleanup): Likewise.
5961 (svr4_handle_solib_event): Likewise.
5962 (svr4_update_solib_event_breakpoint): Likewise.
5963 (svr4_update_solib_event_breakpoints): Likewise.
5964 (svr4_create_solib_event_breakpoints): Likewise.
5965 (enable_break): Free probes table before creating breakpoints.
5966 Use svr4_create_solib_event_breakpoints to create breakpoints.
5967 (svr4_solib_create_inferior_hook): Free the solib list.
5968 (_initialize_svr4_solib): Initialise
5969 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5973 * target.h (target_ops): New field
5974 "to_augmented_libraries_svr4_read".
5975 (target_augmented_libraries_svr4_read): New macro.
5976 * target.c (update_current_target): Handle
5977 to_augmented_libraries_svr4_read.
5978 * remote.c (remote_state): New field
5979 "augmented_libraries_svr4_read".
5980 (remote_augmented_libraries_svr4_read_feature): New function.
5981 (remote_protocol_features): Add entry for
5982 "augmented-libraries-svr4-read".
5983 (remote_augmented_libraries_svr4_read): New function.
5984 (init_remote_ops): Initialize
5985 remote_ops.to_augmented_libraries_svr4_read.
5993 * objfiles.h (inhibit_section_map_updates): New function
5995 (resume_section_map_updates): Likewise.
5996 (resume_section_map_updates_cleanup): Likewise.
5997 * objfiles.c (objfile_pspace_info): Removed field
5998 "objfiles_changed_p". New fields "new_objfiles_available",
5999 "section_map_dirty" and "inhibit_updates".
6000 (allocate_objfile): Set new_objfiles_available.
6001 (free_objfile): Set section_map_dirty.
6002 (objfile_relocate1): Likewise.
6003 (in_plt_section): Likewise.
6004 (find_pc_section): Update the conditions under which the
6005 section map will be updated.
6006 (inhibit_section_map_updates): New function.
6007 (resume_section_map_updates): Likewise.
6008 (resume_section_map_updates_cleanup): Likewise.
6012 * probe.h (get_probe_argument_count): New declaration.
6013 (evaluate_probe_argument): Likewise.
6014 * probe.c (get_probe_argument_count): New function.
6015 (evaluate_probe_argument): Likewise.
6016 (probe_safe_evaluate_at_pc): Use the above new functions.
6020 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6021 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6022 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6023 target mem reads on optional insns.
6024 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6025 ppc_insns_match_pattern calls.
6026 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6027 Add match for power7 thread safety insns, and new order of
6028 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6029 invocation in comment, and update rest of comment.
6030 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6031 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6032 (ppc64_standard_linkage2_target): Update insn offsets.
6033 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6034 stubs first. Update calls.
6038 * solib.c (solib_find): Don't need dir separator if path has
6043 Revert (indirectly causes a SIGSEGV):
6044 * machoread.c (macho_symfile_read): Assign first cleanup to
6049 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6050 mi-parse.c. Make them static.
6051 (mi_all_values): Likewise.
6052 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6053 mi_parse_print_values. Make it external.
6054 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6055 Remove the declarations.
6056 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6057 * mi/mi-parse.h (mi_parse_print_values): Declare.
6058 * mi/mi-cmd-stack.c: Include mi-parse.h.
6059 (parse_print_values): Remove
6060 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6061 of parse_print_values.
6062 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6067 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6068 (encode_actions): Move code to ...
6069 (all_tracepoint_actions_and_cleanup): ... here. New.
6070 (trace_dump_command): Likewise.
6074 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6078 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6079 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6080 'old_chain' argument. Add 'parser_result' argument.
6081 (gdb_xml_create_parser_and_cleanup): Remove old version.
6082 (gdb_xml_parse_quick): Update.
6083 (xml_process_xincludes): Update.
6084 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6089 * probe.c (collect_probes): Check arguments for NULL before
6090 calling compile_rx_or_error.
6091 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6096 * infrun.c (adjust_pc_after_break): Introduce an outer null
6101 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6105 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6106 for 'old_chain'. Do not check 'head' before processing
6111 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6116 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6117 inner scope. Unconditionally call do_cleanups.
6121 * source.c (find_and_open_source): Call do_cleanups.
6125 * linux-thread-db.c (thread_db_load_search): Unconditionally
6130 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6131 for 'cleanup'; instead use a later one.
6135 * python/py-breakpoint.c (bppy_get_commands): Use
6136 explicit, unconditional return.
6137 * python/py-frame.c (frapy_read_var): Likewise.
6138 * python/python.c (gdbpy_decode_line): Likewise.
6142 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6143 do_cleanups on all return paths.
6147 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6151 * stabsread.c (read_struct_type): Call do_cleanups along
6156 * mips-linux-tdep.c: Adjust formatting throughout.
6160 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6161 along all return paths.
6165 * symfile.c (find_separate_debug_file): Call do_cleanups
6166 along all return paths.
6170 * symtab.c (search_symbols): Introduce a null cleanup for
6175 * python/py-value.c (valpy_binop): Call do_cleanups before
6180 * python/py-prettyprint.c (print_children): Remove extra
6185 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6190 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6191 along all return paths.
6195 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6200 * varobj.c (c_value_of_root): Call do_cleanups along all
6205 * tracepoint.c (trace_dump_command): Unconditionally call
6210 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6211 do_cleanups earlier.
6215 * machoread.c (macho_symfile_read): Assign first cleanup to
6220 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6224 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6228 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6229 call discard_cleanups.
6230 (inf_ptrace_attach): Likewise.
6234 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6236 (mips_initialize): Likewise.
6237 (common_open): Call do_cleanups.
6241 * utils.c (internal_vproblem): Call do_cleanups.
6245 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6249 * cli/cli-script.c (setup_user_args): Don't return after error.
6253 * somread.c (som_symtab_read): Call do_cleanups.
6257 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6261 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6262 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6263 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6264 * source.c (show_substitute_path_command): Call do_cleanups.
6265 (unset_substitute_path_command, set_substitute_path_command):
6267 * symfile.c (load_command): Call do_cleanups.
6271 * contrib/cleanup_check.py: New file.
6272 * contrib/gcc-with-excheck: Add option parsing.
6276 * windows-nat.c (windows_delete_thread): Add missing space
6281 * inferior.c (top level): Include tilde.h.
6282 (add_inferior_command): Call tilde_expand on the value of 'exec'
6288 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6290 (encode_actions): Likewise.
6291 * remote.c (remote_download_tracepoint): Caller update.
6292 * tracepoint.h (encode_actions): Update declaration.
6296 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6301 * remote.c (remote_check_symbols): Remove unused parameter
6304 (remote_start_remote, remote_new_objfile): Caller update.
6308 * mi/mi-cmds.c (mi_cmds): Define MI command
6309 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6314 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6315 (remote_insert_watchpoint, remote_remove_watchpoint)
6316 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6317 (remote_verify_memory, compare_sections_command)
6318 (remote_search_memory): Set the general process/thread on the
6323 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6324 (_initialize_aarch64_tdep): Don't call
6325 initialize_tdesc_aarch64_without_fpu.
6326 * features/Makefile (WHICH): Remove reference to
6327 aarch64-without-fpu.
6328 * features/aarch64-without-fpu.c: Delete file.
6329 * regformats/aarch64-without-fpu.dat: Delete file.
6333 * tracepoint.c (stringify_collection_list): Remove parameter
6335 (encode_actions): Caller update. Remove local variables.
6339 * tracepoint.c (TFILE_PID): Remove.
6340 (tfile_open): Don't add thread and inferior.
6341 (tfile_close): Don't set 'inferior_ptid'. Don't call
6342 exit_inferior_silent.
6343 (tfile_thread_alive): Remove.
6344 (init_tfile_ops): Don't set field 'to_thread_alive' of
6349 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6353 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6354 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6355 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6356 Only define if HAVE_SOCKETS is defined.
6357 * configure.ac: Check for sys/socket.h.
6358 * config.in, configure: Regenerate.
6362 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6363 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6364 printing uint32_t variables.
6368 * NEWS: Mention GDBserver range stepping support.
6373 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6375 * infcmd.c (step_once, until_next_command): Enable range stepping.
6376 * infrun.c (displaced_step_prepare): Disable range stepping.
6377 (resume): Disable range stepping if stepping over a breakpoint or
6378 we have software watchpoints. If range stepping is enabled,
6379 assert the thread is in the stepping range.
6380 (clear_proceed_status_thread): Clear may_range_step.
6381 (handle_inferior_event): Disable range stepping as soon as we know
6382 the thread that hit the event. Re-enable it whenever we're going
6383 to step with a step range.
6384 * remote.c (struct vCont_action_support) <r>: New field.
6385 (use_range_stepping): New global.
6386 (remote_vcont_probe): Handle 'r' action.
6387 (append_resumption): Append an 'r' action if the thread may range
6389 (show_range_stepping): New function.
6390 (set_range_stepping): New function.
6391 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6392 'set range-stepping' and 'show range-stepping' commands.
6393 * NEWS: Mention range stepping, the new vCont;r action, and the
6394 new "set/show range-stepping" commands.
6399 * remote.c (struct vCont_action_support): New struct.
6400 (struct remote_state) <support_vCont_t>: Remove field.
6401 <vCont_actions_support>: New field.
6402 (remote_vcont_probe, remote_stop_ns): Update.
6407 * gdbthread.h (pc_in_thread_step_range): New declaration.
6408 * thread.c (pc_in_thread_step_range): New function.
6409 * infrun.c (handle_inferior_event): Use it.
6413 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6418 * ada-lang.c (is_known_support_routine): Add explicit free of
6419 'func_name' from find_frame_funname.
6420 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6421 for func_name from find_frame_funname.
6422 * python/py-frame.c (frapy_name): Add explicit free of
6423 'name' from find_frame_funname.
6424 * stack.c (find_frame_funname): Add comment explaining that
6425 funcp must be freed by the caller.
6426 Return copy of symbol names instead of pointers.
6427 (print_frame): Add a cleanup for 'funname' from
6429 * stack.h (find_frame_funname): Remove "const" from
6430 'funname' parameter.
6435 * c-valprint.c (c_value_print): Use value_addr for
6436 references. Convert back to reference type with value_ref.
6440 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6441 unloaded DLL, it will be done by handle_solib_event. See
6442 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6447 * ui-out.c: Create typedef ui_out_level_p and define vector
6448 operations for that type.
6449 (struct ui_out): Use a vector instead of an array.
6450 (current_level): Return level from a vector.
6451 (push_level): Create a level in a vector.
6452 (pop_level): Delete a level in a vector.
6453 (ui_out_new): Create initial level zero level, and store in a
6455 (ui_out_destroy): Add vector cleanup.
6459 * python/python-internal.h (gdb_Py_DECREF): Tag with
6460 "ARI: editCase function".
6464 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6468 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6469 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6470 * python/py-utils.c (py_decref): Don't check for NULL before
6475 * python/py-utils.c (py_decref): Remove extra braces.
6476 (gdb_pymodule_addobject): Remove extra braces.
6477 * python-internal.h (gdb_Py_DECREF): New static inline function.
6478 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6482 * breakpoints.c (detach_breakpoints): Do not
6483 detach breakpoints locations with loc_type bp_loc_other.
6487 Workaround Python 2.6.
6488 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6493 Code cleanup: constification.
6494 * solib.c (solib_ops): Make return type and ops variable type const.
6495 (set_solib_ops): Make the new_ops parameter and ops variable const.
6496 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6497 (solib_add, solib_keep_data_in_core, clear_solib)
6498 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6499 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6501 * solib.h (set_solib_ops): Make the new_ops parameter const.
6505 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6507 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6508 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6509 (SYSTEM_GDBINIT_FILES): New variables.
6510 (all): Add stamp-system-gdbinit.
6511 (stamp-system-gdbinit): New rule.
6512 (clean-system-gdbinit, install-system-gdbinit)
6513 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6514 (install-only): Add dependency on install-system-gdbinit.
6515 (uninstall): Add dependency on uninstall-system-gdbinit.
6516 (clean): Add dependency on clean-system-gdbinit.
6517 * system-gdbinit/elinos.py: New file.
6518 * system-gdbinit/wrs-linux.py: New file.
6522 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6526 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6527 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6528 * mi/mi-cmd-break.c (ctype.h): New include.
6529 (gdb_obstack.h): New include.
6530 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6531 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6532 (mi_cmd_dprintf_insert): New.
6533 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6534 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6538 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6542 * python/py-value.c (valpy_get_dynamic_type): Simplify
6543 dynamic_type assignment. Use Py_XINCREF.
6547 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6551 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6552 (gdbpy_selected_frame): Move object-construction code
6557 * python/py-arch.c (gdbpy_initialize_arch): Use
6558 gdb_pymodule_addobject.
6559 * python/py-block.c (gdbpy_initialize_blocks): Use
6560 gdb_pymodule_addobject.
6561 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6562 gdb_pymodule_addobject.
6563 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6564 gdb_pymodule_addobject.
6565 * python/py-event.c (gdbpy_initialize_event_generic): Use
6566 gdb_pymodule_addobject.
6567 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6568 gdb_pymodule_addobject.
6569 * python/py-evts.c (add_new_registry): Use
6570 gdb_pymodule_addobject.
6571 (gdbpy_initialize_py_events): Likewise.
6572 * python/py-finishbreakpoint.c
6573 (gdbpy_initialize_finishbreakpoints): Use
6574 gdb_pymodule_addobject.
6575 * python/py-frame.c (gdbpy_initialize_frames): Use
6576 gdb_pymodule_addobject.
6577 * python/py-function.c (gdbpy_initialize_functions): Use
6578 gdb_pymodule_addobject.
6579 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6580 gdb_pymodule_addobject.
6581 * python/py-infthread.c (gdbpy_initialize_thread): Use
6582 gdb_pymodule_addobject.
6583 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6584 gdb_pymodule_addobject.
6585 * python/py-param.c (gdbpy_initialize_parameters): Use
6586 gdb_pymodule_addobject.
6587 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6588 gdb_pymodule_addobject.
6589 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6590 gdb_pymodule_addobject.
6591 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6592 gdb_pymodule_addobject.
6593 * python/py-type.c (gdbpy_initialize_types): Use
6594 gdb_pymodule_addobject.
6595 * python/py-utils.c (gdb_pymodule_addobject): New function.
6596 * python/py-value.c (gdbpy_initialize_values): Use
6597 gdb_pymodule_addobject.
6598 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6599 * python/python.c (_initialize_python): Use
6600 gdb_pymodule_addobject.
6604 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6605 * python/py-param.c (get_set_value, get_show_value): Use
6607 * python/python.c (start_type_printers, apply_type_printers):
6608 Use explicit decrefs.
6612 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6617 * python/python.c (gdbpy_run_events): Decref the result
6618 of PyObject_CallObject.
6622 * python/py-symtab.c (set_sal): Use
6623 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6624 (symtab_and_line_to_sal_object): Update.
6628 * python/py-param.c (compute_enum_values): Decref 'item'.
6632 * mi/mi-main.c: Include python-internal.h.
6633 (mi_cmd_list_features): Check gdb_python_initialized.
6634 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6635 (python_inferior_exit, python_new_objfile, add_thread_object)
6636 (delete_thread_object, py_free_inferior): Check
6637 gdb_python_initialized.
6638 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6639 gdb_python_initialized.
6640 * python/py-type.c (save_objfile_types): Check
6641 gdb_python_initialized.
6642 * python/python-internal.h (gdb_python_initialized): Declare.
6643 * python/python.c (ensure_python_env): Throw exception if
6644 Python not initialized.
6645 (before_prompt_hook, source_python_script_for_objfile)
6646 (start_type_printers, apply_type_printers,
6647 free_type_printers): Check gdb_python_initialized.
6648 * varobj.c (varobj_get_display_hint)
6649 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6650 (install_new_value_visualizer, varobj_set_visualizer)
6651 (value_get_print_value): Check gdb_python_initialized.
6655 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6657 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6658 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6660 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6662 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6664 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6666 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6667 init function to return 'int'.
6668 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6669 Return 'int'. Check errors.
6670 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6672 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6673 Return 'int'. Check errors.
6674 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6676 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6678 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6680 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6682 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6684 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6686 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6688 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6690 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6692 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6694 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6696 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6698 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6700 * python/python-internal.h (gdbpy_initialize_auto_load,
6701 gdbpy_initialize_values, gdbpy_initialize_frames,
6702 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6703 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6704 gdbpy_initialize_blocks, gdbpy_initialize_types,
6705 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6706 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6707 gdbpy_initialize_finishbreakpoints,
6708 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6709 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6710 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6711 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6712 gdbpy_initialize_signal_event,
6713 gdbpy_initialize_breakpoint_event,
6714 gdbpy_initialize_continue_event,
6715 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6716 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6717 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6718 * python/python.c (gdb_python_initialized): New global.
6719 (gdbpy_initialize_events): Return 'int'. Check errors.
6720 (_initialize_python): Check errors. Set
6721 gdb_python_initialized.
6725 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6726 Decref the reslut of PyObject_CallMethod.
6730 * python/py-event.c (gdbpy_initialize_event_generic): Return
6731 early if PyType_Ready fails.
6735 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6736 as 'default' in the switch.
6740 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6741 get_addr_from_python calls out of TRY_CATCH.
6742 (infpy_write_memory, infpy_search_memory): Likewise.
6743 * python/py-utils.c (get_addr_from_python): Return negative
6744 value on error. Use TRY_CATCH.
6745 * python/python-internal.h (get_addr_from_python): Use
6746 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6750 * python/py-event.c (evpy_emit_event): Decref the
6751 result of PyObject_CallFunctionObjArgs.
6755 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6760 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6764 * python/py-event.h (gdbpy_initialize_event_generic): Use
6765 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6766 * python/py-evts.c (add_new_registry): Use
6767 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6768 * python/python-internal.h
6769 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6773 * python/py-arch.c (archpy_disassemble): Update.
6774 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6775 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6776 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6777 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6779 (GDB_PY_HANDLE_EXCEPTION): Update.
6780 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6784 * python/python-internal.h (events_object_type): Remove.
6788 * python/py-event.h (evpy_emit_event): Use
6789 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6790 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6795 * py-evtregistry.c (create_event_object): Decref
6796 eventregistry_object if PyList_New fails.
6800 * py-cmd.c (gdbpy_string_to_argv): Check result of
6805 * python/python.c (before_prompt_hook): Add cleanup to
6810 * python/py-function.c (fnpy_init): Decref result of
6811 PyObject_GetAttrString.
6815 * python/py-threadevent.c (get_event_thread): Use
6816 CPYCHECKER_RETURNS_BORROWED_REF.
6817 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6819 (pspace_to_pspace_object, objfile_to_objfile_object)
6820 (find_thread_object): Use it.
6824 * python/py-arch.c (arch_object_type): Use
6825 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6826 * python/py-block.c (block_syms_iterator_object_type):
6827 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6828 * python/py-bpevent.c (breakpoint_event_object_type):
6829 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6830 * python/py-cmd.c (cmdpy_object_type): Use
6831 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6832 * python/py-continueevent.c (continue_event_object_type):
6833 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6834 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6835 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6836 * python/py-events.h (thread_event_object_type):
6837 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6838 * python/py-evtregistry.c (eventregistry_object_type): Use
6839 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6840 * python/py-exitedevent.c (exited_event_object_type):
6841 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6842 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6843 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6844 * python/py-function.c (fnpy_object_type): Use
6845 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6846 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6847 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6848 * python/py-infthread.c (thread_object_type): Use
6849 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6850 * python/py-lazy-string.c (lazy_string_object_type):
6851 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6852 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6853 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6854 * python/py-objfile.c (objfile_object_type): Use
6855 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6856 * python/py-param.c (parmpy_object_type):
6857 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6858 * python/py-progspace.c (pspace_object_type):
6859 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6860 * python/py-signalevent.c (signal_event_object_type):
6861 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6862 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6863 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6864 * python/py-type.c (type_object_type, field_object_type)
6865 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6866 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6868 (value_object_type, block_object_type, symbol_object_type)
6869 (event_object_type, stop_event_object_type, breakpoint_object_type)
6870 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6874 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6875 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6879 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6881 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6882 reading_dwo_directly.
6883 (struct signatured_type): New member dwo_unit.
6884 (struct die_reader_specs): New member comp_dir.
6885 (create_signatured_type_table_from_index): Use malloc for
6886 all_type_units instead of objfile's obstack.
6887 (create_all_type_units): Ditto.
6888 (fill_in_sig_entry_from_dwo_entry): New function.
6889 (add_type_unit): New function.
6890 (lookup_dwo_signatured_type): New function.
6891 (lookup_dwp_signatured_type): New function.
6892 (lookup_signatured_type): New arg cu. All callers updated.
6893 (init_cu_die_reader): Initialize comp_dir.
6894 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6895 Change assert of matching type signatures to call error on mismatch.
6896 (lookup_dwo_unit): Add assert.
6897 (init_tu_and_read_dwo_dies): New function.
6898 (init_cutu_and_read_dies): Call it.
6899 (build_type_unit_groups): Handle case of no type unit groups created.
6900 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6901 (lookup_dwo_cutu): Tweak complaint.
6902 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6903 (dwarf2_per_objfile_free): Free all_type_units.
6907 * windows-nat.c (handle_unload_dll): Add missing empty line.
6911 * dwarf2read.c (prototyped_function_p): New function.
6912 (read_subroutine_type): Use it.
6916 * rs6000-aix-tdep.c: De-indent some example code provided
6921 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6922 region is ok for a hardware watchpoint using the new ptrace interface
6927 * NEWS: Mention new maintenance commands check-symtabs, and
6928 expand-symtabs, and renamed check-psymtabs.
6929 * psymtab.c (maintenance_check_psymtabs): Renamed from
6930 maintenance_check_symtabs. Only process already-expanded symbol
6932 (_initialize_psymtab): Update.
6933 * symmisc.c (maintenance_check_symtabs): New function.
6934 (maintenance_expand_name_matcher): New function
6935 (maintenance_expand_file_matcher): New function
6936 (maintenance_expand_symtabs): New function.
6937 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6942 * python/py-inferior.c (infpy_read_memory): Don't call
6943 PyErr_SetString if PyObject_New fails.
6944 * python/py-frame.c (frame_info_to_frame_object): Don't call
6945 PyErr_SetString if PyObject_New fails.
6949 * acinclude.m4: Add check for dlopen in libdl.
6950 * configure.ac: Ditto.
6951 * configure: Regenerate.
6955 * frame.c (frame_stash): Convert to htab.
6956 (frame_addr_hash): New function.
6957 (frame_addr_hash_eq): New function.
6958 (frame_stash_create): Convert function to create
6960 (frame_stash_add): Convert function to add an entry to a hash
6962 (frame_stash_find): Convert function to search the hash table.
6963 (frame_stash_invalidate): Convert function to empty the hash
6965 (get_frame_id): Only add to stash if a frame_id is created.
6966 (_initialize_frame): Call frame_stash_create.
6970 * configure.ac: Ensure MIG is available when building for GNU Hurd
6972 * configure: Regenerate.
6976 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6980 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6981 all cleanups are done before returning from this function.
6985 * utils.h: #include "exceptions.h".
6986 (enum errors): Remove partial declaration.
6990 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6991 * gdbarch.h, gdbarch.c: Regenerate.
6992 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6995 * rs6000-aix-tdep.h: New file.
6996 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6997 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6999 (struct field_info, struct ld_info_desc): New types.
7000 (ld_info32_desc, ld_info64_desc): New static constants.
7001 (struct ld_info): New type.
7002 (rs6000_aix_extract_ld_info): New function.
7003 (rs6000_aix_shared_library_to_xml): Likewise.
7004 (rs6000_aix_ld_info_to_xml): Likewise.
7005 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7006 (rs6000_aix_init_osabi): Add call to
7007 set_gdbarch_core_xfer_shared_libraries_aix.
7008 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7009 Remove "xml-utils.h" include.
7010 (LdInfo): Delete typedef.
7011 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7013 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7014 Adjust code accordingly.
7015 (rs6000_core_ldinfo): Delete, folded into
7016 rs6000_aix_core_xfer_shared_libraries_aix.
7017 (rs6000_xfer_shared_library): Delete.
7018 (rs6000_xfer_shared_libraries): Reimplement.
7022 * record.c (record_goto_cmdlist): New.
7023 (cmd_record_goto): Split into this ...
7024 (cmd_record_goto_begin): ... this
7025 (cmd_record_goto_end): ... and this.
7026 (_initialize_record): Change "record goto" to prefix command.
7027 Add commands for "record goto begin" and "record goto end".
7028 Add an alias for "record goto start" to "record goto begin".
7032 * linespec.c (convert_linespec_to_sals): New comment for
7033 SOURCE_FILENAME assignment.
7037 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7042 * eval.c (parse_and_eval_long): Make 'exp' const.
7043 * value.h (parse_and_eval_long): Update.
7047 * ui-file.c (gdb_fopen): Make arguments const.
7048 * ui-file.h (gdb_fopen): Make arguments const.
7052 * remote.c (remote_set_trace_notes): Make arguments const.
7053 * target.c (update_current_target): Update cast.
7054 * target.h (to_set_trace_notes): Make arguments const.
7058 * go32-nat.c (go32_terminal_info): Make 'args' const.
7059 * inferior.h (child_terminal_info): Update.
7060 * inflow.c (child_terminal_info): Make 'args' const.
7061 * target.c (default_terminal_info): Make 'args' const.
7062 (debug_to_terminal_save_ours): Likewise.
7063 * target.h (struct target_ops) <to_terminal_info>: Make argument
7068 * gcore.c (create_gcore_bfd): Make 'filename' const.
7069 * gcore.h (create_gcore_bfd): Make 'filename' const.
7070 * record-full.c (record_full_save): Make 'recfilename' const.
7071 * target.c (target_save_record): Make 'filename' const.
7072 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7074 (target_save_record): Likewise.
7079 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7080 ranges section has been read.
7085 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7086 STRUCTOP_PTR>: Return a not_lval value for
7087 EVAL_AVOID_SIDE_EFFECTS.
7088 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7089 for EVAL_AVOID_SIDE_EFFECTS.
7093 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7094 floating point registers to register type before storing
7096 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7102 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7104 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7106 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7107 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7108 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7109 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7115 * configure: Rebuild.
7116 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7121 * remote.c (_initialize_remote): Fix spelling of
7122 qXfer:traceframe-info:read packet in packet config command.
7128 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7129 "QTro" at start of packet.
7133 * solib-aix.c (solib_aix_relocate_section_addresses):
7134 For the .bss section action, apply the same offset as
7139 * solib-aix.c (solib_aix_relocate_section_addresses):
7140 Remove FIXME comment.
7145 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7146 New functions, directly copied from sparc-sol-thread.c.
7147 * sparc-sol-thread.c: Delete.
7148 * configure.ac: Remove code handling sparc-solaris-thread.c.
7149 * configure: Regenerate.
7153 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7155 (backtrace_command): Add "no-filters" option parsing.
7156 (_initialize_stack): Alter help to reflect "no-filters" option.
7157 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7158 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7159 (py-frame.o): Add target
7160 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7162 * python/python.h: Add new frame filter constants, and flag enum.
7163 (apply_frame_filter): Add definition.
7164 * python/python.c (apply_frame_filter): New non-Python
7166 * python/py-utils.c (py_xdecref): New function.
7167 (make_cleanup_py_xdecref): Ditto.
7168 * python/py-objfile.c: Declare frame_filters dictionary.
7169 (objfpy_dealloc): Add frame_filters dealloc.
7170 (objfpy_new): Initialize frame_filters attribute.
7171 (objfile_to_objfile_object): Ditto.
7172 (objfpy_get_frame_filters): New function.
7173 (objfpy_set_frame_filters): New function.
7174 * python/py-progspace.c: Declare frame_filters dictionary.
7175 (pspy_dealloc): Add frame_filters dealloc.
7176 (pspy_new): Initialize frame_filters attribute.
7177 (pspacee_to_pspace_object): Ditto.
7178 (pspy_get_frame_filters): New function.
7179 (pspy_set_frame_filters): New function.
7180 * python/py-framefilter.c: New file.
7181 * python/lib/gdb/command/frame_filters.py: New file.
7182 * python/lib/gdb/frames.py: New file.
7183 * python/lib/gdb/__init__.py: Initialize global frame_filters
7185 * python/lib/gdb/FrameDecorator.py: New file.
7186 * python/lib/gdb/FrameIterator.py: New file.
7187 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7188 * mi/mi-cmds.h: Declare.
7189 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7190 --no-frame-filter logic, and Python frame filter logic.
7191 (stack_enable_frame_filters): New function.
7192 (parse_no_frame_option): Ditto.
7193 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7195 (mi_cmd_stack_list_locals): Ditto.
7196 (mi_cmd_stack_list_args): Ditto.
7197 (mi_cmd_stack_list_variables): Ditto.
7198 * NEWS: Add frame filter note.
7202 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7203 All callers updated.
7204 (syms_from_objfile): Ditto. Make static.
7205 (symbol_file_add_with_addrs): Renamed from
7206 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7207 num_offsets. All callers updated.
7208 * symfile.h (syms_from_objfile): Delete.
7210 * symfile.c (decrement_reading_symtab): Add assert.
7211 (increment_reading_symtab): Ditto.
7215 * source.c (forward_search_command): Replace call to getc
7217 (reverse_search_command): Likewise.
7221 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7226 * sol-thread.c (info_cb): Factorize the code a little.
7230 * sol-thread.c (info_cb): Rework the output of the "maintenance
7231 info sol-threads" command a bit.
7235 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7236 Replace ti.ti_startfunc by ti.ti_pc.
7240 * solib-aix.c (solib_aix_free_library_list): New function
7241 for the case where HAVE_LIBEXPAT is not defined.
7245 PR breakpoints/15413:
7246 * breakpoint.c (condition_completer): Simplify the code to
7247 disconsider multiple locations of breakpoints when completing the
7248 "condition" command.
7252 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7253 instead of <sys/wait.h>.
7257 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7258 trailing new line from warning message.
7262 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7263 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7267 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7268 error message (ARI fix).
7272 * features/library-list-aix.dtd: Replace library-list by
7274 * rs6000-nat.c: Replace library-list by library-list-aix
7276 * solib-aix.c: Likewise.
7280 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7281 Renames TARGET_OBJECT_AIX_LIBRARIES.
7282 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7283 TARGET_OBJECT_LIBRARIES_AIX throughout.
7284 * solib-aix.c: Likwise.
7288 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7289 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7293 * solib-dsbt.c (enable_break): Declare.
7294 (dsbt_current_sos): Remove call to enable_break2.
7295 (enable_break2): Rename to enable_break. Set solib breakpoint
7296 on '_dl_debug_state'.
7297 (enable_break): Remove.
7301 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7302 debug state prior to replicating existing hardware watchpoints or
7307 * gcore.c (gcore_create_callback): Ignore sections with
7308 separate_debug_objfile_backlink != NULL.
7315 Based on the nios2-elf port from Altera Corporation.
7317 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7319 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7320 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7321 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7322 * nios2-tdep.h: New.
7323 * nios2-tdep.c: New.
7324 * nios2-linux-tdep.c: New.
7325 * features/Makefile (WHICH): Add nios2-linux.
7326 (nios2-linux-expedite): Set.
7327 * features/nios2-cpu.xml: New.
7328 * features/nios2.xml: New.
7329 * features/nios2-linux.xml: New.
7330 * features/nios2.c: New (autogenerated).
7331 * features/nios2-linux.c: New (autogenerated).
7332 * regformats/nios2-linux.dat: New (autogenerated).
7333 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7338 * symfile.c: Whitespace cleanup.
7340 * solist.h (struct target_so_ops): New member clear_so.
7341 * solib-svr4.c (svr4_clear_so): New function.
7342 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7343 * solib.c (clear_so): Renamed from free_so_symbols.
7344 All callers updated. Call target clear_so if it exists.
7348 * ada-lang.c (ada_value_primitive_packed_val): Don't
7350 * value.c (set_value_parent): Incref the new parent and decref
7352 (value_copy, value_primitive_field): Use set_value_parent.
7356 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7357 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7359 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7360 * dwarf2read.c (write_constant_as_bytes)
7361 (dwarf2_fetch_constant_bytes): New functions.
7365 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7367 (dwarf2_const_value_attr): Update.
7371 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7372 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7373 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7378 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7383 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7384 * stabsread.h (process_one_symbol): Update declaration.
7385 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7386 * elfread.c (elf_symfile_relocate_probe): Ditto.
7387 * psymtab.c (relocate_psymtabs): Ditto.
7388 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7389 (objfile_relocate): Ditto.
7390 * objfiles.h (objfile_relocate): Update declaration.
7391 * symfile.c (relative_addr_info_to_section_offsets): Constify
7393 (default_symfile_offsets): Ditto.
7394 (syms_from_objfile_1): Constify offsets parameter.
7395 (syms_from_objfile): Ditto.
7396 (symbol_file_add_with_addrs_or_offsets): Ditto.
7397 (symfile_map_offsets_to_segments): Constify data parameter.
7398 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7399 delta parameters of member relocate.
7400 (struct sym_probe_fns): Constify new_offsets,
7401 delta parameters of member sym_relocate_probe.
7402 (struct sym_fns): Constify section_addr_info parameter of member
7404 (relative_addr_info_to_section_offsets): Update declaration.
7405 (default_symfile_offsets): Ditto.
7406 (syms_from_objfile): Ditto.
7407 (symfile_map_offsets_to_segments): Ditto.
7409 * symfile.c (syms_from_objfile_1): Use correct section count when
7410 objfile->sf == NULL.
7414 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7418 * psympriv.h (struct partial_symtab): Augment comment for member
7423 Reimplement shared library support on ppc-aix...
7424 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7425 * features/library-list-aix.dtd: New file.
7426 * solib-aix.h, solib-aix.c: New file.
7427 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7428 (rs6000_find_toc_address_hook): Delete.
7429 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7430 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7431 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7433 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7434 (vmap_symtab, fixup_breakpoints): Delete.
7435 (rs6000_xfer_shared_libraries): New function.
7436 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7437 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7438 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7439 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7440 (rs6000_xfer_shared_library): New function.
7441 (find_toc_address): Delete.
7442 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7443 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7444 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7445 before creating minimal symbol. Adjust function description
7447 (scan_xcoff_symtab): Replace call to
7448 prim_record_minimal_symbol_and_info by call to
7449 record_minimal_symbol.
7450 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7451 around default_symfile_offsets.
7452 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7453 powerpc-aix targets.
7454 * config/rs6000/nm-rs6000.h: Delete.
7455 * config/powerpc/aix.mh (NAT_FILE): Delete.
7456 (NATDEPFILES): Remove xcoffsolib.o.
7457 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7458 (ALL_TARGET_OBS): Add solib-aix.o.
7459 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7460 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7461 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7462 * xcoffsolib.h, xcoffsolib.c: Delete.
7464 * solib.c (reload_shared_libraries): Remove reference to
7465 SOLIB_CREATE_INFERIOR_HOOK.
7466 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7467 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7468 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7470 * corelow.c (deprecated_core_resize_section_table): Delete.
7471 * exec.c: Remove include of xcoffsolib.h".
7472 (map_vmap, vmap): Delete.
7473 (exec_close_1): Remove references to vmap.
7474 (exec_file_attach): Remove vmap handling code, and reference
7475 to DEPRECATED_IBM6000_TARGET.
7476 (bfdsec_to_vmap): Delete.
7477 (exec_files_info): Remove block of code handling VMAP.
7478 * infcmd.c (post_create_inferior): Remove reference to
7479 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7480 * infrun.c (follow_exec): Remove reference to
7481 SOLIB_CREATE_INFERIOR_HOOK.
7482 * stack.c (print_frame): Remove reference to PC_SOLIB.
7483 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7484 (dsbt_relocate_main_executable): Likewise.
7485 * solib-frv.c (frv_current_sos): Likewise.
7489 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7490 to target_write_memory and target_read_memory.
7494 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7495 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7499 * darwin-nat.c: Replace all "%x" instances in format strings
7500 into "0x%x" throughout.
7504 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7505 gdb_assert by call to MACH_CHECK_ERROR.
7506 (darwin_attach_pid): Raise an error rather than a failed
7507 assertion when various system calls failed. Report a warning
7508 instead of raising a failed assertion when PREV_NOT is not NULL
7509 after call to mach_port_request_notification.
7510 (darwin_ptrace_me): Raise an error rather than a failed
7511 assertion when read returns nonzero.
7515 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7519 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7523 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7524 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7525 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7526 a stale cleanup. Fix double free of NAME.
7530 * windows-nat.c (windows_delete_thread): Accept an additional
7531 argument, the thread's exit code, and announce thread death when
7532 print_thread_events is non-zero and we are deleting a thread that
7533 is not the main thread.
7534 (get_windows_debug_event): Pass thread exit code to
7535 windows_delete_thread.
7539 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7540 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7541 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7542 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7543 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7544 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7545 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7546 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7547 (gdbarch_tdep): New struct.
7548 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7550 (v850e3v5_register_name): New function.
7551 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7552 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7553 code handling the struct return conventions for the RH850 ABI.
7555 (v850_eight_byte_align_p): New function.
7556 (v850_push_call_dummy): Push structs by value, not by reference
7557 for the RH850 ABI. Add support for eight byte alignment.
7558 (v850_dbtrap_breakpoint_from_pc): New function.
7559 (v850_gdbarch_init): Add ABI detection code. Register
7560 v850e3v5_register_name for the v850e3v5 architecture. Set the
7561 number of registers for v850e3v5. Register
7562 v850_dbtrap_breakpoint_from_pc as appropriate.
7563 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7567 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7568 of bfd_count_sections.
7569 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7570 * symfile.c (default_symfile_offsets): Ditto.
7571 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7572 one entry, not bfd_count_sections entries.
7576 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7577 `save' and `restore' register groups. Don't include SPL
7578 or SPH in these groups.
7579 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7580 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7581 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7582 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7583 dwarf2_append_unwinders().
7587 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7588 ignore SIGINT and SIGTRAP in case these internal signals are
7593 * darwin-nat.c (darwin_read_write_inferior): Change types
7594 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7595 of copy_count to "mach_msg_type_number_t".
7596 (darwin_read_dyld_info): Change type of parameter
7597 rdaddr to "gdb_byte *".
7601 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7602 of &info->load_map from "char *" to "gdb_byte *".
7606 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7607 from "char *" to "gdb_byte *".
7608 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7612 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7613 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7614 DWO stub. If DWO isn't found, just use stub.
7615 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7617 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7618 calling init_cutu_and_read_dies.
7622 * target-descriptions.c (maint_print_c_tdesc_cmd):
7623 Add case to parse structures as register types and
7628 * MAINTAINERS (Write After Approval): Add myself to the list.
7632 * sol-thread.c (rw_common): Change type of parameter "buf"
7634 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7635 rw_common to "gdb_byte *" instead of "char *".
7639 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7640 of local variable msym to const struct bound_minimal_symbol.
7641 Adjust use accordingly.
7642 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7646 * i386gnu-nat.c (CREG_OFFSET): New macro.
7647 (creg_offset): New array.
7648 (CREG_ADDR): Use creg_offset instead of reg_offset.
7652 * mep-tdep.c (mep_write_pc): Delete.
7653 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7654 Add call to set_gdbarch_pc_regnum.
7658 * common/filestuff.c: Replace #include <dirent.h> by
7659 #include "gdb_dirent.h".
7663 * common/filestuff.c: Replace #include <sys/stat.h> by
7664 #include "gdb_stat.h".
7668 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7669 editCase function rule.
7670 (get_DW_AT_signature_type): Likewise.
7674 * m32r-tdep.c (m32r_write_pc): Delete.
7675 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7676 Add call to set_gdbarch_pc_regnum.
7680 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7684 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7688 * solib-dsbt.c (fetch_loadmap): Re-indent.
7689 (displacement_from_map, enable_break2): Likewise.
7690 (dsbt_relocate_section_addresses): Likewise.
7699 * dwarf2read.c (process_full_comp_unit): Always create a static
7704 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7705 to loc->cmd_bytecode.
7709 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7713 * tracepoint.c (trace_save): Call the writer's start method.
7718 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7723 * common/filestuff.c: Check USE_WIN32API before including
7725 (HAVE_F_GETFD): New define.
7726 (mark_cloexec): Check HAVE_F_GETFD.
7727 (gdb_open_cloexec): Change 'mode' to unsigned long.
7728 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7729 (gdb_pipe_cloexec): Check HAVE_PIPE.
7730 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7736 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7741 * breakpoint.c (dprintf_print_recreate): New.
7742 (save_breakpoints): Let it not save dprintf commands.
7743 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7748 * Makefile.in (SFILES): Add filestuff.c
7749 (COMMON_OBS): Add filestuff.o.
7750 (filestuff.o): New target.
7751 * auto-load.c (auto_load_objfile_script_1): Use
7753 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7754 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7755 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7756 * common/agent.c (gdb_connect_sync_socket): Use
7758 * common/filestuff.c: New file.
7759 * common/filestuff.h: New file.
7760 * common/linux-osdata.c (linux_common_core_of_thread)
7761 (command_from_pid, commandline_from_pid, print_source_lines)
7762 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7763 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7765 * common/linux-procfs.c (linux_proc_get_int)
7766 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7767 * config.in, configure: Rebuild.
7768 * configure.ac: Don't check for sys/socket.h. Check for
7770 * corelow.c (core_open): Use gdb_open_cloexec.
7771 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7772 * fork-child.c (fork_inferior): Call close_most_fds.
7773 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7774 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7775 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7776 Use gdb_fopen_cloexec.
7777 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7779 (linux_async_pipe): Use gdb_pipe_cloexec.
7780 * remote-fileio.c (remote_fileio_func_open): Use
7782 * remote.c (remote_file_put, remote_file_get): Use
7784 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7786 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7787 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7788 * solib.c (solib_find): Use gdb_open_cloexec.
7789 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7790 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7791 (tfile_open): Use gdb_open_cloexec.
7792 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7793 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7794 * xml-support.c (xml_fetch_content_from_file): Use
7796 * main.c (captured_main): Call notice_open_fds.
7800 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7801 'char *' to 'gdb_byte *'.
7802 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7807 * infrun.c: Fix typo in comment.
7811 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7816 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7817 'char *' to 'gdb_byte *'. Cast the return value of
7818 'bt_ctf_get_char_array' to 'gdb_byte *'.
7822 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7824 * configure: Regenerate.
7828 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7833 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7834 Change type of 'myaddr' parameter to gdb_byte pointer.
7835 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7836 to 'long long' pointer instead of to 'unsigned long long'.
7837 (monitor_write_memory_block, monitor_read_memory_single)
7838 (monitor_read_memory): Change type of 'myaddr' parameter to
7843 * record.c (validate_history_size): Make parameter 'setting'
7848 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7853 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7858 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7859 * ada-tasks.c (read_fat_string_value): Likewise.
7863 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7864 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7865 'offset', and adjust.
7869 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7870 (read_index_from_section): Add cast to 'char *'.
7874 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7878 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7882 * record-full.c (record_full_get_bookmark): Change local 'ret'
7883 type to char * and add cast to gdb_byte *.
7884 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7886 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7890 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7891 * python/py-prettyprint.c (print_string_repr): Change type of
7892 'output' local to char *. Add cast to gdb_byte * in
7893 LA_PRINT_STRING call.
7894 (print_children): Change type of 'output' local to char *.
7895 * python/py-value.c (valpy_string): Add cast to const char * in
7896 PyUnicode_Decode call.
7900 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7901 and change its type to 'const char *'. Adjust.
7902 (mips_send_packet): Add cast to 'char *', and remove cast to
7904 (mips_receive_packet): Remove cast to 'unsigned char *'.
7905 (mips_load_srec): Use bfd_byte.
7906 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7907 (pmon_checkset): Make 'value' parameter unsigned.
7911 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7915 * remote.c (remote_write_bytes_aux, compare_sections_command)
7917 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7918 (remote_hostio_readlink, remote_bfd_iovec_pread)
7919 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7920 binary buffer, and char when buffer is used as string.
7921 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7922 (trace_save, tfile_open, traceframe_walk_blocks)
7923 (tfile_fetch_registers): Likewise.
7927 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7928 buffer and size_t size. Adjust.
7929 * ser-base.h (ser_base_write): Adjust.
7930 * ser-go32.c (cnts): Change type to size_t.
7931 (dos_write): Change prototype -- take 'void *'
7932 buffer and size_t size. Adjust.
7933 (dos_info): Print elements of 'cnts' as unsigned long.
7934 * serial.c (serial_write): Likewise.
7935 * serial.h (serial_write): Adjust.
7936 (struct serial_ops) <write>: Change prototype -- take 'void *'
7937 buffer and size_t size. Adjust.
7941 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7943 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7947 * alpha-tdep.c (alpha_extract_return_value): Use
7948 regcache_cooked_read_unsigned to read 'v0'.
7952 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7953 parameters 'at', 'as' and 'offset' to uint32_t.
7957 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7958 'is64' to signed 'int'.
7962 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7967 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7968 'insnbuf' buffer type to unsigned int[].
7972 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7976 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7981 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7982 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7984 * mips-tdep.c (heuristic_fence_post): Change type to int.
7985 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7989 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7990 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7991 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7995 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7996 it to get a string view of the byte buffer.
7997 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7998 type to gdb_byte *. Adjust.
7999 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8000 Change local to char *.
8001 * solib-darwin.c (find_program_interpreter): Change return type to
8003 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8004 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8005 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8006 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8007 * solib-svr4.c (find_program_interpreter): Change return type to
8009 (enable_break): Change local 'interp_name' to char *.
8010 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8011 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8012 (spu_pseudo_register_write_spu): Use char for string buffer.
8014 (info_spu_event_command, info_spu_signal_command): Add casts to
8019 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8021 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8022 * ada-lang.c (ada_value_assign): Use gdb_byte.
8023 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8024 (alphanbsd_sigtramp_offset): Use gdb_byte.
8025 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8026 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8027 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8028 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8029 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8030 * arm-tdep.c (arm_stub_unwind_sniffer)
8031 (arm_displaced_init_closure): Use gdb_byte.
8032 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8033 (arm_default_thumb_le_breakpoint)
8034 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8035 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8036 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8037 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8038 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8039 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8040 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8041 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8042 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8043 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8044 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8045 (cris_store_return_value, cris_extract_return_value): Use
8047 (constraint): Change type of parameter to char * from signed
8048 char*. Use gdb_byte.
8049 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8050 of local buffer to gdb_byte *.
8051 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8052 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8053 (add_address_entry): Change type of local buffer to gdb_byte[].
8054 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8055 (frv_push_dummy_call): Use gdb_byte.
8056 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8057 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8058 (hppa_hpux_supply_save_state): Use gdb_byte.
8059 * hppa-tdep.c (hppa32_push_dummy_call)
8060 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8061 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8062 (slotN_contents, replace_slotN_contents): Change type of parameter
8064 (fetch_instruction, ia64_pseudo_register_write)
8065 (ia64_register_to_value, ia64_value_to_register)
8066 (ia64_extract_return_value, ia64_store_return_value)
8067 (ia64_push_dummy_call): Use gdb_byte.
8068 * m32c-tdep.c (m32c_return_value): Remove cast.
8069 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8070 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8072 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8073 * mn10300-tdep.c (mn10300_store_return_value)
8074 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8076 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8077 (moxie_process_record): Remove casts.
8078 * ppc-ravenscar-thread.c (supply_register_at_address)
8079 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8080 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8081 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8082 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8083 * remote.c (compare_sections_command): Use gdb_byte.
8084 * score-tdep.c (score7_free_memblock): Change type of parameter to
8086 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8087 gdb_byte *. Use gdb_byte.
8088 (sh_push_dummy_call_fpu): Use gdb_byte.
8089 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8090 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8091 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8092 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8093 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8094 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8095 (sh64_store_return_value, sh64_register_convert_to_virtual):
8096 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8097 (sh64_pseudo_register_write): Use gdb_byte.
8098 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8099 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8101 (irix_current_sos): Use gdb_byte.
8102 * solib-som.c (som_current_sos): Use gdb_byte.
8103 * sparc-ravenscar-thread.c (supply_register_at_address)
8104 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8105 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8106 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8107 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8109 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8111 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8112 * xstormy16-tdep.c (xstormy16_extract_return_value)
8113 (xstormy16_store_return_value): Change parameter type to
8114 'gdb_byte *'. Adjust.
8115 (xstormy16_push_dummy_call): Use gdb_byte.
8116 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8117 (call0_analyze_prologue, execute_code): Use gdb_byte.
8122 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8127 * dwarf2read.c (struct signatured_type): New member type.
8128 (struct attribute): Replace member signatured_type with signature.
8129 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8130 (read_call_site_scope): Call follow_die_ref instead of
8131 follow_die_ref_or_sig.
8132 (read_structure_type): Rewrite handling of signatured types.
8133 (read_enumeration_type): Ditto.
8134 (read_attribute_value): Update.
8135 (build_error_marker_type): New function.
8136 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8137 Don't call error for bad types, just build an error marker type.
8138 (dump_die_shallow): Update.
8139 (follow_die_sig_1): Renamed from follow_die_sig.
8140 Don't call error for bad types, instead return NULL.
8141 (follow_die_sig): New function.
8142 (get_signatured_type, get_DW_AT_signature_type): New functions.
8146 * aarch64-tdep.c (aarch64_write_pc): Removed.
8147 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8152 * top.c (print_gdb_configuration): Print configure-time
8153 parameter on using libbabeltrace or not.
8157 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8161 * common/glibc_thread_db.h: Update from upstream glibc
8162 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8166 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8167 * common/glibc_thread_db.h: ... this new file ...
8168 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8175 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8176 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8182 * NEWS: Mention "set foo unlimited".
8186 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8187 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8188 (create_dwo_cu_reader): Renamed from
8189 create_dwo_debug_info_hash_table_reader.
8190 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8191 Remove support for multiple CUs in a DWO file.
8192 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8194 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8196 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8197 (create_dwo_in_dwp): Ditto.
8201 * NEWS: Move recent entries into "since 7.6" section.
8207 * break-catch-throw.c (struct exception_catchpoint)
8208 <exception_rx, pattern>: New fields.
8209 (fetch_probe_arguments, dtor_exception_catchpoint)
8210 (check_status_exception_catchpoint)
8211 (print_one_detail_exception_catchpoint): New functions.
8212 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8213 Compile regular expression if needed.
8214 (extract_exception_regexp): New function.
8215 (catch_exception_command_1): Use extract_exception_regexp.
8216 (compute_exception): Use fetch_probe_arguments.
8217 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8218 and check_status fields.
8219 * cp-abi.c (cplus_typename_from_type_info): New function.
8220 * cp-abi.h (cplus_typename_from_type_info): Declare.
8221 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8222 * gdb_regex.h (compile_rx_or_error): Declare.
8223 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8225 (init_gnuv3_ops): Set get_type_from_type_info field.
8226 * probe.c (compile_rx_or_error): Move...
8227 * utils.c (compile_rx_or_error): ... here.
8233 * break-catch-throw.c (compute_exception): New function.
8234 (exception_funcs): New global.
8235 (_initialize_break_catch_throw): Create $_exception.
8236 * cp-abi.c (cplus_type_from_type_info): New function.
8237 * cp-abi.h (cplus_type_from_type_info): Declare.
8238 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8239 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8240 (gnuv3_get_type_from_type_info): New functions.
8241 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8245 * break-catch-throw.c (struct exception_names): New.
8246 (exception_functions): Change type.
8247 (re_set_exception_catchpoint): Look for SDT probes.
8252 * break-catch-throw.c (exception_functions): New global.
8253 (gnu_v3_exception_catchpoint_ops): Move earlier.
8254 (struct exception_catchpoint): New.
8255 (classify_exception_breakpoint): Rewrite.
8256 (re_set_exception_catchpoint): New function.
8257 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8258 Allocate a struct exception_catchpoint.
8259 (catch_exception_command_1): Update.
8260 (initialize_throw_catchpoint_ops): Set 're_set' method.
8264 * Makefile.in (SFILES): Add break-catch-throw.c
8265 (COMMON_OBS): Add break-catch-throw.o.
8266 * break-catch-throw.c: New file.
8267 * breakpoint.c: Move exception-catching code to new file.
8268 (ep_parse_optional_if_clause): No longer static.
8269 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8275 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8276 * c-exp.y (TYPEID): New token.
8277 (exp): Add new TYPEID productions.
8278 (ident_tokens): Add "typeid".
8279 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8280 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8281 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8282 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8283 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8285 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8286 (build_std_type_info_type, gnuv3_get_typeid_type)
8287 (gnuv3_get_typeid): New functions.
8288 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8289 new fields on ABI object.
8290 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8291 * std-operator.def (OP_TYPEID): New.
8295 * elfread.c (elf_symtab_read): Install versioned symbol under
8296 unversioned name as well.
8301 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8302 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8303 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8304 (gdb_demangle): New function.
8305 * cp-support.h (gdb_demangle): Declare.
8306 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8307 (dwarf2_name): Use gdb_demangle.
8308 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8309 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8311 (gnuv3_print_method_ptr): Use gdb_demangle.
8312 * jv-lang.c (java_demangle): Use gdb_demangle.
8313 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8314 * language.c (unk_lang_demangle): Use gdb_demangle.
8315 * symtab.c (symbol_find_demangled_name)
8316 (demangle_for_lookup): Use gdb_demangle.
8322 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8324 (classify_exception_breakpoint): New function.
8325 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8326 (print_mention_exception_catchpoint)
8327 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8328 (catch_exception_command_1): Handle "rethrow" catchpoint.
8329 (catch_rethrow_command): New function.
8330 (_initialize_breakpoint): Add "catch rethrow" command.
8334 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8335 set_gdbarch_write_pc as deprecated anymore.
8339 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8344 * ctf.c (_initialize_ctf): Include "completer.h".
8345 Call add_target_with_completer instead of add_target.
8349 Fix GDB regression related to PR binutils/14813.
8350 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8351 * minidebug.c (lzma_close): Add return value comment.
8352 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8353 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8354 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8358 * config.in: Regenerate.
8362 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8364 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8365 (struct die_reader_specs) <buffer>: Likewise.
8366 (die_reader_func_ftype): Make 'info_ptr' const.
8367 (struct line_header) <include_dirs, statement_program_start,
8368 statement_program_end>: Now const.
8369 (struct file_entry) <name>: Likewise.
8370 (struct partial_die_info) <sibling>: Likewise.
8371 (struct dwarf_block) <data>: Likewise.
8372 (dwarf2_read_section): Remove cast.
8373 (dwarf2_get_section_info): Make 'bufp' const.
8374 (read_index_from_section): Constify.
8375 (dw2_get_file_names_reader): Make 'info_ptr' const.
8376 (dw2_get_primary_filename_reader): Likewise.
8377 (read_comp_unit_head): Make 'info_ptr' and return type const.
8378 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8380 (read_abbrev_offset): Constify.
8381 (dwarf2_create_include_psymtab): Make 'name' const.
8382 (create_debug_types_hash_table): Update.
8383 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8384 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8386 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8387 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8388 (read_comp_units_from_section): Constify.
8389 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8390 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8392 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8393 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8394 (create_dwp_hash_table, dwarf2_ranges_read)
8395 (dwarf2_record_block_ranges): Constify.
8396 (read_die_and_children, read_die_and_siblings_1)
8397 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8399 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8400 (abbrev_table_read_table): Constify.
8401 (load_partial_dies): Make 'info_ptr' const.
8402 (read_partial_die, read_attribute_value, read_attribute): Make
8403 'info_ptr' and return type const.
8404 (read_address, read_initial_length)
8405 (read_checked_initial_length_and_offset, read_offset)
8406 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8408 (read_direct_string): Make 'buf' and return type const.
8409 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8410 (read_indirect_string): Make return type const.
8411 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8412 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8414 (read_str_index): Make return type const.
8415 (add_include_dir): Make 'include_dir' const.
8416 (add_file_name): Make 'name' const.
8417 (dwarf_decode_line_header): Constify.
8418 (psymtab_include_file_name): Make return type const.
8419 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8420 (dwarf2_start_subfile): Make 'filename' const.
8421 (dwarf2_const_value_attr): Make 'bytes' const.
8422 (read_signatured_type_reader): Make 'info_ptr' const.
8423 (decode_locdesc): Constify.
8424 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8426 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8427 'mac_end', and return type const.
8428 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8429 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8431 (per_cu_header_read_in): Constify.
8432 * symfile.h (dwarf2_get_section_info): Update.
8436 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8440 * NEWS: Mention "show configuration", --configuration.
8441 * top.c (print_gdb_configuration): New function, displays the
8442 details about GDB configure-time parameters.
8443 (print_gdb_version): Mention "show configuration".
8444 * cli/cli-cmds.c (show_configuration): New function.
8445 (_initialize_cli_cmds): Add the "show configuration" command.
8446 * main.c (captured_main) <print_configuration>: New static var.
8447 <long_options>: Use it.
8448 If --configuration was given, call print_gdb_configuration.
8453 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8454 (generated_files): Add gcore.
8455 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8456 HAVE_NATIVE_GCORE_HOST.
8458 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8459 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8460 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8461 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8462 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8463 Add HAVE_NATIVE_GCORE_HOST.
8464 * configure: Regenerate.
8465 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8466 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8467 AC_CONFIG_FILES for gcore.
8468 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8470 * gdb_gcore.sh: Rename to ...
8471 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8472 and GCORE_TRANSFORM_NAME substitutions.
8474 Fix parsing tabs in ${gdb_target_obs}.
8475 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8479 * remote.c (unpush_and_perror): Add output message final dot.
8483 * tracepoint.c (tfile_interp_line): Fit parameters line and
8488 * solib.c (solib_map_sections): Remove code overwriting
8489 SO->SO_NAME with the bfd's filename.
8493 * cli/cli-decode.c (integer_unlimited_completer): New function.
8494 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8495 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8497 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8498 (is_unlimited_literal): New function.
8499 (do_set_command): Handle literal "unlimited" arguments.
8500 * frame.c (_initialize_frame) <set backtrace limit>: Document
8502 * printcmd.c (_initialize_printcmd) <set print
8503 max-symbolic-offset>: Add help text.
8504 * record-full.c (_initialize_record_full) <set record full
8505 insn-number-max>: Likewise.
8506 * record.c (_initialize_record) <set record
8507 instruction-history-size, set record function-call-history-size>:
8509 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8511 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8513 * source.c (_initialize_source) <set listsize>: Add help text.
8514 * utils.c (initialize_utils) <set height, set width>: Likewise.
8515 <set pagination>: Mention "set height unlimited".
8516 * valprint.c (_initialize_valprint) <set print elements, set print
8517 repeats>: Document "unlimited".
8521 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8522 instead of disconnect_tracing.
8523 * infcmd.c (detach_command, disconnect_command): Call
8524 query_if_trace_running. Adjust.
8525 * top.c: Include "tracepoint.h".
8526 (quit_target): Delete. Contents moved ...
8527 (quit_force): ... here. Wrap each stage of teardown in
8528 TRY_CATCH. Call disconnect_tracing before detaching.
8533 * configure.ac: Check libbabeltrace is installed.
8534 * config.in: Regenerate.
8535 * configure: Regenerate.
8536 * Makefile.in (LIBBABELTRACE): New.
8537 (CLIBS): Add LIBBABELTRACE.
8538 * ctf.c: Include "exec.h".
8539 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8540 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8541 (ctf_save_metadata_header): Define new type aliases in
8543 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8544 in metadata. Start a new faked packet for trace status.
8545 (ctf_write_status): Write trace status to CTF.
8546 (ctf_write_uploaded_tsv): Write TSV to CTF.
8547 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8548 (ctf_write_definition_end): End the faked packet.
8550 (ctx, ctf_iter, trace_dirname): New.
8551 (start_pos): New variable.
8552 (ctf_destroy, ctf_open_dir, ctf_open): New.
8553 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8555 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8556 (ctf_fetch_registers, ctf_xfer_partial): New.
8557 (ctf_get_trace_state_variable_value): New.
8558 (ctf_get_tpnum_from_frame_event): New.
8559 (ctf_get_traceframe_address): New.
8560 (ctf_trace_find, ctf_has_stack): New.
8561 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8562 (ctf_get_trace_status, ctf_read_status): New.
8563 (_initialize_ctf): New.
8564 * tracepoint.c (get_tracepoint_number): New
8565 (get_uploaded_tsv): Remove 'static'.
8566 (struct traceframe_info, trace_regblock_size): Move it to ...
8567 * tracepoint.h: ... here.
8568 (get_tracepoint_number): Declare it.
8569 (get_uploaded_tsv): Declare it.
8571 * NEWS: Mention new configure option.
8576 * breakpoint.c (dprintf_re_set): New.
8577 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8582 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8583 Remove solib-svr4.o from the list.
8587 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8588 Use gdb_assert_not_reached instead of invalid boolean expression.
8592 * remote.c (unpush_and_perror): New function.
8593 (readchar, remote_serial_write): Use it.
8597 * NEWS: Mention new btrace RSP packets.
8601 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8606 * maint.c (print_bfd_section_info): Print the section index.
8607 * symmisc.c (dump_msymbols): Print the section index.
8612 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8613 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8614 * breakpoint.c (resolve_sal_pc): Update.
8615 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8616 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8617 (minsym_lookup_iterator_cb): Use it.
8618 (default_read_var_value): Update.
8619 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8621 * infcmd.c (jump_command): Update.
8622 * linespec.c (minsym_found): Update.
8623 * maint.c (maintenance_translate_address): Update.
8624 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8625 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8626 * parse.c (write_exp_msymbol): Update.
8627 * printcmd.c (address_info): Update.
8628 * psymtab.c (find_pc_sect_psymbol): Update.
8629 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8631 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8632 Don't initialize SYMBOL_OBJ_SECTION.
8633 * spu-tdep.c (spu_catch_start): Update.
8634 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8635 * symmisc.c (dump_msymbols, print_symbol): Update.
8636 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8637 how fallback section is computed.
8638 (fixup_symbol_section): Update.
8639 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8641 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8642 Initialize SYMBOL_SECTION.
8643 * symtab.h (struct general_symbol_info) <section>: Update comment.
8644 <obj_section>: Remove.
8645 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8646 (SYMBOL_OBJFILE): New macro.
8650 * coffread.c (record_minimal_symbol): Update.
8651 * dbxread.c (record_minimal_symbol): Update.
8652 * elfread.c (record_minimal_symbol): Update.
8653 * machoread.c (macho_symtab_add_minsym): Update.
8654 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8656 * minsyms.c (prim_record_minimal_symbol): Update.
8657 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8659 (prim_record_minimal_symbol_and_info): Likewise.
8660 * minsyms.h (prim_record_minimal_symbol_full)
8661 (prim_record_minimal_symbol_and_info): Update.
8662 * symtab.c (allocate_symbol, initialize_symbol)
8663 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8664 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8670 * solib-som.c (som_solib_section_offsets): Use BFD section
8671 indices. Set offsets for all sections.
8672 * somread.c (som_symtab_read): Compute BFD section for
8673 symbol. Use prim_record_minimal_symbol_and_info.
8674 (som_symfile_read): Fix comment.
8675 (struct find_section_offset_arg): New.
8676 (find_section_offset, set_section_index): New functions.
8677 (som_symfile_offsets): Use set_section_index to compute
8682 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8683 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8684 gdb_bfd_section_index.
8685 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8687 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8689 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8691 * objfiles.c (add_to_objfile_sections_full): New function.
8692 (add_to_objfile_sections): Use it.
8693 (build_section_table): Rewrite.
8694 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8695 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8696 (struct objfile) <sections>: Update comment.
8697 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8699 (ALL_OBJSECTIONS): Use it.
8700 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8701 * solib-frv.c (frv_relocate_main_executable): Update.
8702 * solib-target.c (solib_target_relocate_section_addresses):
8703 Use gdb_bfd_section_index.
8704 * symfile.c (build_section_addr_info_from_section_table):
8705 Use gdb_bfd_section_index.
8706 (build_section_addr_info_from_bfd, place_section): Likewise.
8707 * symtab.c (fixup_section): Update.
8708 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8712 * minsyms.h (struct bound_minimal_symbol): New.
8713 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8714 Remove objfile argument.
8715 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8716 Return bound_minimal_symbol.
8717 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8718 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8719 Return bound_minimal_symbol.
8720 (in_gnu_ifunc_stub): Update.
8721 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8722 Remove 'objfile_p' argument.
8723 (lookup_solib_trampoline_symbol_by_pc): Update.
8724 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8725 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8726 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8727 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8728 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8729 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8730 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8731 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8732 stack.c, symtab.c, tui/tui-disasm.c: Update.
8736 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8737 Use symbol's obstack, not an objfile.
8738 * coffread.c (process_coff_symbol): Update.
8739 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8740 * jv-lang.c (add_class_symbol): Update.
8741 * mdebugread.c (new_symbol): Update.
8742 * minsyms.c (prim_record_minimal_symbol_full)
8743 (terminate_minimal_symbol_table): Update.
8744 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8745 * stabsread.c (define_symbol, read_enum_type): Update.
8746 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8747 Handle Ada specially.
8748 (symbol_set_language): Add 'obstack' argument.
8749 (symbol_set_names): Update.
8750 (symbol_natural_name, symbol_demangled_name): Always use
8752 * symtab.h (struct general_symbol_info)
8753 <language_specific::obstack>: New field.
8754 <ada_mangled>: New field.
8755 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8756 (symbol_set_language): Update.
8760 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8761 Take an obstack, not an objfile.
8762 (symbol_set_names): Update.
8763 * symtab.h (symbol_set_demangled_name): Update.
8767 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8769 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8770 (read_func_scope): Call allocate_template_symbol.
8771 (new_symbol_full): Call allocate_symbol.
8772 * jit.c (finalize_symtab): Call allocate_symbol.
8773 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8774 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8775 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8776 (common_block_end): Call allocate_symbol.
8777 * symtab.c (allocate_symbol, initialize_symbol)
8778 (allocate_template_symbol): New functions.
8779 * symtab.c (allocate_symbol, initialize_symbol)
8780 (allocate_template_symbol): Declare.
8781 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8786 * breakpoint.c (create_breakpoint): Rename
8787 "parse_condition_and_thread" parameter to "parse_arg". Update
8788 describing comment. If !PARSE_ARG, then error out if ARG is not
8789 the empty string after extracting the location.
8790 * breakpoint.h (create_breakpoint): Rename
8791 "parse_condition_and_thread" parameter to "parse_arg".
8795 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8799 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8800 and 'addr2' to CORE_ADDR.
8801 * target.c (update_current_target): Update.
8802 * target.h (struct target_ops) <to_trace_find>: Change parameter
8804 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8805 'addr2' to CORE_ADDR.
8806 (tfile_trace_find): Likewise.
8807 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8808 Change local variable 'addr' to type CORE_ADDR.
8809 * tracepoint.h (tfind_1): Update declaration.
8813 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8814 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8817 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8819 * main.h (windows_get_absolute_argv0): ...to here.
8823 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8824 (read_cutu_die_from_dwo): Add comments.
8825 (read_structure_type): Update comment.
8826 (read_enumeration_type, read_namespace_type): Update comment.
8827 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8831 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8832 * Makefile.in (gdb.z): Remove.
8833 (install-only): Remove $(man1dir) and gdb.1 installation.
8838 Fix compatibility with Linux kernel 3.8.3.
8839 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8840 to more inner block. Remove parsing of NUMBER from outer block.
8841 Parse NUMBER only if KEYWORD has been identified.
8845 Fix variable name shadowing.
8846 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8847 filename to mapsfilename and update its uses.
8851 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8852 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8853 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8854 details of the problem.
8859 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8860 tracepoint, reset its STEP_COUNT and call validate_actionline.
8864 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8865 read_die_and_siblings.
8866 (read_die_and_siblings): New function.
8867 (read_cutu_die_from_dwo): Dump die if requested.
8868 (read_die_and_children): Call read_full_die_1 and
8869 read_die_and_siblings_1.
8870 (read_full_die): Dump die if requested.
8872 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8874 * dwarf2read.c (struct dwo_file): New member comp_dir.
8875 Rename member name to dwo_name. All uses updated.
8876 (hash_dwo_file): Include comp_dir in computation.
8877 (eq_dwo_file): Ditto.
8878 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8879 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8881 * psymtab.c (read_psymtabs_with_fullname): Don't call
8882 psymtab_to_fullname if the basenames are different.
8886 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8887 New entry about "fullname" presence.
8891 * NEWS: Mention x86_64/Cygwin as new native configuration.
8895 * dwarf2read.c (read_structure_type): Fix typo in comment.
8899 * NEWS: Mention "set/show debug aarch64", "set/show debug
8900 coff-pe-read" and "set/show debug mach-o".
8904 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8908 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8909 gdb_string.h is now in common/.
8913 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8914 under "New options".
8920 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8926 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8927 (remote_serial_write): New function.
8928 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8932 * NEWS: Mention TILE-Gx in "New native configurations" and
8933 "New targets" sections.
8937 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8938 (process_enumeration_scope): Simplify.
8940 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8942 (struct signatured_type): ... to here.
8943 (sig_type_ptr): New typedef.
8944 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8945 out of union 't'. All uses updated.
8946 (dw2_get_file_names_reader): Assert not called for a type unit.
8947 (dw2_get_file_names): Assert not called for a type unit or type
8949 (build_type_psymtabs_reader): Assert called for a type unit.
8950 (build_type_psymtab_dependencies): Assert called for a type unit group.
8952 * dwarf2read.c (free_dwo_file): Add comment.
8953 (dwarf2_per_objfile_free): Unref dwp bfd.
8957 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8958 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8959 (read_pe_exported_syms): Remove unused 'exportix'.
8960 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8961 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8962 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8966 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8967 (print_it_watchpoint): Remove unused 'bl'.
8968 (say_where): Remove unused 'uiout'.
8969 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8970 (bkpt_breakpoint_hit): Remove unused 'b'.
8971 (internal_bkpt_print_it): Remove unused 'uiout'.
8972 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8977 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8981 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8982 Delete arg is_dwp. All callers updated.
8983 (open_dwp_file): New function.
8984 (open_and_init_dwp_file): Call it.
8985 (get_dwp_file): New function.
8986 (lookup_dwo_cutu): Call it.
8988 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8989 unnecessary, cleanup.
8991 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8993 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8994 (lookup_dwo_unit): New function.
8995 (init_cutu_and_read_dies): Move DWO handling to new functions.
8997 * dwarf2read.c (struct signatured_type): Tweak comment.
8998 (struct dwo_unit): Tweak comment.
8999 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9000 (create_dwo_debug_info_hash_table): Tweak comment.
9001 (dwarf2_per_cu_offset_and_type): Tweak comment.
9003 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9004 missing .debug_types section.
9008 * corelow.c: Include "completer.h".
9009 (_initialize_corelow): Call add_target_with_completer with
9010 argument 'filename_completer'.
9011 * tracepoint.c: Likewise.
9012 * exec.c (_initialize_exec): Likewise.
9013 * target.c (add_target): Rename to ...
9014 (add_target_with_completer): ... this. Call set_cmd_completer
9015 if parameter completer is not NULL.
9017 * target.h: Include "command.h".
9018 (add_target_with_completer): Declare it.
9022 * coffread.c (is_import_fixup_symbol): New function.
9023 (record_minimal_symbol): Use is_import_fixup_symbol to
9024 detect import fixup symbols, and discard them.
9028 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9029 types hash table until we know we need it.
9031 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9034 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9035 All callers updated.
9036 (dw2_print_stats): Print #read CUs too.
9037 (dump_die_shallow): Print signatured types better.
9039 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9040 info_or_types_section to section. All uses updated.
9041 (struct dwo_unit): Ditto.
9045 * NEWS (New options): New section.
9046 (New options): Mention set/show remote trace-status-packet.
9047 * remote.c (PACKET_qTStatus): New enumeration value.
9048 (remote_get_trace_status): Skip sending qTStatus if the packet is
9049 disabled. Use packet_ok.
9050 (_initialize_remote): Register a configuration command for
9055 * symfile.c (find_separate_debug_file): Add comment.
9056 (terminate_after_last_dir_separator): Tweak comment.
9058 * dwarf2read.c (create_partial_symtab): Add forward decl.
9059 (create_partial_symtab): Move to be closer to other psymtab functions.
9060 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9062 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9063 (compute_symtab_includes): Remove unnecessary forward declaration.
9064 (die_needs_namespace): Add comment marking group of functions for
9065 dwarf2 name computation.
9067 * typeprint.c (_initialize_typeprint): Improve type help text.
9069 * python/python.c (finish_python_initialization): Provide suggestion
9070 for how to tell gdb to find its python files.
9076 * source.c (_initialize_source): Change back "set listsize" to an
9082 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9086 * top.c (history_size): Rename to ...
9087 (history_size_setshow_var): ... this. Add comment.
9088 (show_commands): Use readline's 'history_length' instead of
9089 computing the history length by calling history_get in a loop.
9090 (set_history_size_command): Error out for sizes over INT_MAX.
9091 Restore previous history size on invalid size.
9092 (init_history): If HISTSIZE is negative, leave the history size as
9094 (init_main): Adjust.
9098 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9099 coff_pe_read" command to "set debug coff-pe-read".
9103 * record.c (command_size_to_target_size): Fix size comparison.
9104 Change parameter type from pointer to integer to integer.
9109 * windows-nat.c (handle_output_debug_string): Avoid typecast
9110 from integer of different size warning.
9114 * windows-nat.c (handle_output_debug_string): Add empty line
9115 after local block variable definition.
9119 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9120 (net_open): Make 'polls' local unsigned.
9124 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9125 a zuinteger command instead of uinteger.
9129 * record-full.c (record_full_insn_num): Make it unsigned.
9130 (record_full_check_insn_num, record_full_message)
9131 (record_full_registers_change, record_full_xfer_partial): Remove
9132 record_full_insn_max_num check (it's always != 0).
9133 (record_full_info, record_full_restore): Use %u as format string.
9134 (): Use %u as format string.
9135 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9136 check (it's always != 0).
9140 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9141 and "set dcache size" commands zuinteger instead of uinteger.
9145 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9146 command zuinteger instead of uinteger.
9150 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9151 zuinteger instead of uinteger.
9155 * record.c (record_insn_history_size_setshow_var)
9156 (record_call_history_size_setshow_var): New globals.
9157 (command_size_to_target_size): New function.
9158 (cmd_record_insn_history, cmd_record_call_history): Use
9159 command_size_to_target_size instead of cast.
9160 (validate_history_size, set_record_insn_history_size)
9161 (set_record_call_history_size): New functions.
9162 (_initialize_record): Install set_record_insn_history_size and
9163 set_record_call_history_size as "set" hooks of "set record
9164 instruction-history-size" and "set record
9165 function-call-history-size".
9169 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9170 use with history_max_entries use. Remove FIXME note.
9174 * record-btrace.c (record_btrace_close): Call
9175 record_btrace_auto_disable.
9179 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9183 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9188 * c-exp.y (exp): Add new productions for destructors after '.' and
9190 (write_destructor_name): New function.
9195 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9196 value_struct_elt, not lookup_struct_elt_type.
9197 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9198 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9199 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9203 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9204 instead of '_mkdir'.
9208 * windows-nat.c (windows_get_absolute_argv0): New function.
9209 * windows-nat.h: Add its prototype.
9211 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9212 Use IS_DIR_SEPARATOR instead of looking for a character inside
9213 SLASH_STRING. Include filenames.h.
9214 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9215 relocate_gdb_directory works when passed gdb_program_name.
9216 Include windows-nat.h.
9220 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9221 * remote.c (trace_error): Remove the special handling of '2'.
9222 (readchar) <SERIAL_EOF>
9223 (readchar) <SERIAL_ERROR>
9224 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9225 (remote_get_trace_status): Call throw_exception if EX is
9227 * utils.c (perror_with_name): Rename to ...
9228 (throw_perror_with_name): ... here. New parameter errcode, describe it
9229 in the function comment.
9230 (perror_with_name): New function wrapper.
9231 * utils.h (enum errors): New stub declaration.
9232 (throw_perror_with_name): New declaration.
9238 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9239 Don't let the user set the value to UINT_MAX directly.
9240 <var_integer>: Don't let the user set the value to INT_MAX
9245 * remote.c (remote_unpush_target): New function.
9246 (remote_open_1): Remove two pop_target calls, update one comment, add
9247 comment to target_preopen call. Replace pop_target call by
9248 remote_unpush_target call.
9249 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9250 pop_target calls by remote_unpush_target calls.
9254 * linux-nat.c (linux_child_follow_fork): Don't call
9255 linux_enable_event_reporting.
9256 (linux_handle_extended_wait): Don't call
9257 linux_enable_event_reporting.
9261 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9262 use it to rewrite the trampoline buffers with type gdb_byte[], and
9263 undefine the macro. Remove char* cast.
9267 New commands "mt set per-command {space,time,symtab} {on,off}".
9269 * event-top.c: #include "maint.h".
9270 * main.c: #include "maint.h".
9271 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9272 timeval-utils.h, maint.h, cli/cli-setshow.h.
9273 (per_command_time, per_command_space): New static globals.
9274 (per_command_symtab): New static global.
9275 (per_command_setlist, per_command_showlist): New static globals.
9276 (struct cmd_stats): Move here from utils.c.
9277 (set_per_command_time): Renamed from set_display_time in utils.c
9278 and moved here. All callers updated.
9279 (set_per_command_space): Renamed from set_display_space in utils.c
9280 and moved here. All callers updated.
9281 (count_symtabs_and_blocks): New function.
9282 (report_command_stats): Moved here from utils.c. Add support for
9283 printing symtab stats. Only print data if enabled before command
9285 (make_command_stats_cleanup): Ditto.
9286 (sert_per_command_cmd, show_per_command_cmd): New functions.
9287 (_initialize_maint_cmds): Add new commands
9288 mt set per-command {space,time,symtab} {on,off}.
9289 * maint.h: New file.
9290 * top.c: #include "maint.h".
9291 * utils.c (reset_prompt_for_continue_wait_time): New function.
9292 (get_prompt_for_continue_wait_time): New function.
9293 * utils.h (reset_prompt_for_continue_wait_time): Declare
9294 (get_prompt_for_continue_wait_time): Declare.
9295 (make_command_stats_cleanup): Moved to maint.h.
9296 (set_display_time, set_display_space): Moved to maint.h and renamed
9297 to set_per_command_time, set_per_command_space.
9298 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9299 parse_binary_operation and made non-static. Don't call error,
9300 just return an error marker. All callers updated.
9301 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9305 * symfile.c (alloc_section_addr_info): Update header. Don't set
9306 'num_sections' field.
9307 (build_section_addr_info_from_section_table): Set 'num_sections'.
9308 (build_section_addr_info_from_bfd): Likewise.
9309 (build_section_addr_info_from_objfile): Remove dead loop
9311 (free_section_addr_info): Unconditionally call xfree.
9312 (relative_addr_info_to_section_offsets, addrs_section_sort)
9313 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9315 (syms_from_objfile_1): Remove dead 'if' condition. Check
9317 (add_symbol_file_command): Set 'num_sections'.
9318 * symfile-mem.c (symbol_file_add_from_memory): Set
9320 * somread.c (som_symfile_offsets): Remove dead loop condition.
9321 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9322 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9326 * tracepoint.h (decode_agent_options): Add 'trace_string'
9328 * tracepoint.c (decode_agent_options): Add 'trace_string'
9330 (validate_actionline): Update.
9331 (collect_symbol): Add 'trace_string' argument.
9332 (struct add_local_symbols_data) <trace_string>: New field.
9333 (do_collect_symbol): Update.
9334 (add_local_symbols): Add 'trace_string' argument.
9335 (encode_actions_1): Update.
9336 (trace_dump_actions): Update.
9337 * dwarf2loc.c (access_memory): Update.
9338 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9339 * ax-general.c (new_agent_expr): Update.
9340 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9341 (gen_trace_for_return_address): Add argument.
9342 (trace_kludge, trace_string_kludge): Remove.
9343 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9344 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9345 (gen_trace_for_var): Add 'trace_string' argument.
9346 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9347 (gen_printf, agent_eval_command_one): Update.
9352 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9353 Handle FILENAME token.
9357 * c-exp.y (YYPRINT): Define.
9358 (c_print_token): New function.
9362 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9366 * ctf.c: Include "gdb_stat.h".
9367 [USE_WIN32API]: New macro 'mkdir'.
9368 (ctf_start): Use permission bits macros if they are defined.
9372 * breakpoint.h (struct breakpoint): Add comment to
9373 extra_string indicating that this member is mallod'd.
9374 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9380 * cli/cli-setshow.c (do_set_command)
9381 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9382 the result of parsing the command argument. Throw error if the
9383 value is greater than UINT_MAX. Print the invalid value with
9385 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9386 result of parsing the command argument. Throw error if the value
9387 is greater than INT_MAX, not greater or equal. Also throw error
9388 if the value is less than INT_MIN. Print the invalid value with
9390 <var_zuinteger_unlimited>: Throw error if the value is greater
9391 than INT_MAX, not greater or equal.
9392 (do_show_command) <var_integer, var_zinteger,
9393 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9397 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9399 * dwarf2read.c (read_func_scope): Remove old FIXME.
9400 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9402 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9403 Unconditionally call via computed ops, if possible.
9404 * printcmd.c (address_info): Unconditionally call via computed ops,
9406 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9408 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9409 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9416 * coffread.c (coff_register_index): New global.
9417 (process_coff_symbol, coff_read_enum_type): Set
9418 SYMBOL_ACLASS_INDEX.
9419 (_initialize_coffread): Initialize new global.
9420 * dwarf2loc.c (locexpr_find_frame_base_location)
9421 (dwarf2_block_frame_base_locexpr_funcs)
9422 (loclist_find_frame_base_location)
9423 (dwarf2_block_frame_base_loclist_funcs): New.
9424 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9425 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9426 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9427 (dwarf2_block_frame_base_loclist_funcs): New.
9428 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9429 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9431 (read_func_scope): Update.
9432 (fixup_go_packaging, mark_common_block_symbol_computed)
9433 (var_decode_location, new_symbol_full, dwarf2_const_value):
9434 Set SYMBOL_ACLASS_INDEX.
9435 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9436 (_initialize_dwarf2_read): Initialize new globals.
9437 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9438 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9439 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9441 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9442 (_initialize_mdebugread): Initialize new globals.
9443 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9444 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9445 (stab_register_index, stab_regparm_index): New globals.
9446 (define_symbol, read_enum_type, common_block_end): Set
9447 SYMBOL_ACLASS_INDEX.
9448 (_initialize_stabsread): Initialize new globals.
9449 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9451 (MAX_SYMBOL_IMPLS): New define.
9452 (register_symbol_computed_impl, register_symbol_block_impl)
9453 (register_symbol_register_impl)
9454 (initialize_ordinary_address_classes): New functions.
9455 (_initialize_symtab): Call initialize_ordinary_address_classes.
9456 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9457 (struct symbol_impl): New.
9458 (SYMBOL_ACLASS_BITS): New define.
9459 (struct symbol) <aclass, ops>: Remove fields.
9460 <aclass_index>: New field.
9461 (symbol_impls): Declare.
9462 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9463 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9464 (register_symbol_computed_impl, register_symbol_block_impl)
9465 (register_symbol_register_impl): Declare.
9466 (struct symbol_computed_ops): Add location_has_loclist.
9467 (struct symbol_block_ops): New.
9468 (SYMBOL_BLOCK_OPS): New.
9469 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9473 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9474 (print_partial_symbols, recursively_search_psymtabs): Use
9479 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9480 addtion, subtraction, multiplication and division binary operator.
9485 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9486 * bsd-kvm.c (bsd_kvm_close): Likewise.
9487 * bsd-uthread.c (bsd_uthread_close): Likewise.
9488 * corelow.c (core_close): Likewise.
9489 (core_close_cleanup): Remove parameter quitting from a caller.
9490 * event-top.c (async_disconnect): Likewise.
9491 * exec.c (exec_close_1): Remove parameter quitting.
9492 * go32-nat.c (go32_close): Likewise.
9493 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9494 parameter quitting from a caller.
9495 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9497 (mips_linux_close): Remove parameter quitting. Remove parameter
9498 quitting from a caller.
9499 * monitor.c (monitor_close): Remove parameter quitting.
9500 * monitor.h (monitor_close): Likewise.
9501 * record-btrace.c (record_btrace_close): Likewise.
9502 * record-full.c (record_full_close): Likewise.
9503 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9504 it also from fprintf_unfiltered.
9505 * remote-mips.c (mips_close): Remove parameter quitting.
9506 (mips_detach): Remove parameter quitting from a caller.
9507 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9508 (gdbsim_close): Remove duplicate function comment. Remove parameter
9509 quitting and remove it also from printf_filtered.
9510 * remote.c (remote_close): Remove parameter quitting.
9511 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9512 * target.c (update_current_target): Remove parameter int from to_close
9514 (push_target, unpush_target, pop_target): Remove parameter quitting from
9516 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9517 Remove parameter quitting from a caller.
9518 (target_preopen): Remove parameter quitting from a caller.
9519 (target_close): Remove parameter quitting. Remove parameter quitting
9520 from a caller two times. Remove parameter quitting also from
9522 * target.h (struct target_ops): Remove parameter quitting and as int
9523 from fields to_xclose and to_close.
9524 (extern struct target_ops current_target):
9525 (target_close, pop_all_targets): Remove parameter quitting. Update the
9527 (pop_all_targets_above): Remove parameter quitting.
9528 * top.c (quit_target): Remove parameter quitting from a caller.
9529 * tracepoint.c (tfile_close): Remove parameter quitting.
9530 * windows-nat.c (windows_close): Remove parameter quitting.
9534 * windows-nat.c (handle_output_debug_string): Replace call
9535 to string_to_core_addr with call to strtoull.
9539 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9540 and write it to CTF metadata.
9544 * windows-nat.c (handle_output_debug_string): Change type of n to
9545 SIZE_T to avoid crash on 64 bit systems.
9549 * python/python-internal.h (HAVE_SNPRINTF)
9550 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9551 about redefinition of snprintf by pyerrors.h.
9555 * remote-sim.c (sim_command_completer): Make char arguments const.
9560 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9564 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9566 (get_file_crc): Move from symfile.c.
9567 (gdb_bfd_crc): New function.
9568 * gdb_bfd.h (gdb_bfd_crc): Declare.
9569 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9570 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9571 (separate_debug_file_exists): Use gdb_bfd_crc.
9575 * symfile.c (get_debug_link_info): Remove.
9576 (find_separate_debug_file_by_debuglink): Use
9577 bfd_get_debug_link_info.
9581 * symtab.c (error_in_psymtab_expansion): New function.
9582 (lookup_symbol_aux_quick)
9583 (basic_lookup_transparent_type_quick): Remove "last resort"
9584 code. Use error_in_psymtab_expansion.
9589 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9590 any successful compare_filenames_for_search or FILENAME_CMP.
9591 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9592 * symtab.c (iterate_over_some_symtabs): Likewise.
9596 * source.c (print_source_lines_base): Make a local copy of
9602 * source.c (print_source_lines_base): Suppress "file" for TUI.
9609 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9611 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9616 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9617 status to tfile if trace is stopped by command 'tstop'.
9621 * tracepoint.c (tfile_write_status): Write trace notes and user
9622 name into tfile if they are not NULL.
9627 * Makefile.in (REMOTE_OBS): Add ctf.o.
9628 (SFILES): Add ctf.c.
9629 (HFILES_NO_SRCDIR): Add ctf.h.
9630 * ctf.c, ctf.h: New files.
9631 * tracepoint.c: Include 'ctf.h'.
9632 (collect_pseudocommand): Remove static.
9633 (trace_save_command): Parse option "-ctf".
9634 Produce different trace file writers per option.
9635 Adjust output message.
9636 (trace_save_tfile, trace_save_ctf): New.
9637 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9638 * mi/mi-main.c: Include 'ctf.h'.
9639 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9640 trace_save_tfile or trace_save_ctf.
9641 * NEWS: Mention these changes.
9645 * tracepoint.c (trace_file_writer_xfree): New.
9646 (struct tfile_writer_data): New.
9647 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9648 (tfile_write_header, tfile_write_regblock_type): New.
9649 (tfile_write_status, tfile_write_uploaded_tsv): New.
9650 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9651 (tfile_write_raw_data, (tfile_end): New.
9652 (tfile_write_ops): New global variable.
9653 (TRACE_WRITE_R_BLOCK): New macro.
9654 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9655 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9656 (TRACE_WRITE_V_BLOCK): New macro.
9657 (trace_save): Add extra one parameter WRITER. Make it static.
9658 Use WRITER to writer trace.
9659 (tfile_trace_file_writer_new): New.
9660 (trace_save_command): Caller update.
9661 (trace_save_tfile): Write trace data in TFILE format.
9662 * tracepoint.h (struct trace_frame_write_ops): New.
9663 (struct trace_file_write_ops): New.
9664 (struct trace_file_writer): New.
9665 (trace_save): Remove its declaration.
9666 (trace_save_tfile): Declare it.
9667 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9668 instead of trace_save.
9672 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9676 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9678 * demangle.c (current_demangling_style_string): Make it const.
9679 (set_demangling_command): Assert the demangling style is known.
9680 Remove all handling of unknown styles. Set
9681 'current_demangling_style_string' to an element of the
9682 demangling_style_names array.
9683 (set_demangling_style): Delete.
9684 (_initialize_demangler): Set current_demangling_style_string to the
9685 element of the demangling_style_names array that corresponds to
9686 the default demangling style. Remove FIXME note. Don't call
9687 set_demangling_style.
9688 * gdb-demangle.h (set_demangling_style): Remove declaration.
9692 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9694 (ada_make_symbol_completion_list): Make "text0" parameter const.
9695 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9696 * breakpoint.c (condition_completer): Make "text" and "word"
9697 parameters const. Adjust.
9698 (check_tracepoint_command): Adjust to validate_actionline
9700 (catch_syscall_completer): Make "text" and "word" parameters
9702 * cli/cli-cmds.c (show_user): Make "comname" local const.
9703 (valid_command_p): Make "command" parameter const.
9704 (alias_command): Make "alias_prefix" and "command_prefix" locals
9706 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9707 (add_alias_cmd): Make "name" and "oldname" parameters const.
9708 Adjust. No longer make copy of OLDNAME.
9709 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9710 (add_setshow_cmd_full, add_setshow_enum_cmd)
9711 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9712 (add_setshow_filename_cmd, add_setshow_string_cmd)
9713 (add_setshow_string_noescape_cmd)
9714 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9715 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9716 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9717 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9718 Make "name" parameter const.
9719 (help_cmd): Rename "command" parameter to "arg". New const local
9721 (find_cmd): Make "command" parameter const.
9722 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9723 deprecated_cmd_warning prototype change.
9724 (undef_cmd_error): Make "cmdtype" parameter const.
9725 (lookup_cmd): Make "line" parameter const.
9726 (deprecated_cmd_warning): Change type of "text" parameter to
9727 pointer to const char, from pointer to pointer to char. Adjust.
9728 (lookup_cmd_composition): Make "text" parameter const.
9729 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9731 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9733 * cli/cli-script.c (validate_comname): Make "tem" local const.
9734 (define_command): New const local "tem_c". Use it in calls to
9736 (document_command): Make "tem" and "comfull" locals const.
9737 (show_user_1): Make "prefix" and "name" parameters const.
9738 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9740 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9741 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9742 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9743 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9744 (complete_on_enum, add_setshow_enum_cmd)
9745 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9746 (add_setshow_filename_cmd, add_setshow_string_cmd)
9747 (add_setshow_string_noescape_cmd)
9748 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9749 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9750 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9751 Change prototypes, constifying strings.
9752 * completer.c (noop_completer, filename_completer): Make "text"
9753 and "prefix" parameters const.
9754 (location_completer, expression_completer)
9755 (complete_line_internal): Make "text" and "prefix" parameters
9757 (command_completer, signal_completer): Make "text" and "prefix"
9759 * completer.h (noop_completer, filename_completer)
9760 (expression_completer, location_completer, command_completer)
9761 (signal_completer): Change prototypes.
9762 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9764 * cp-abi.c (cp_abi_completer): Likewise.
9765 * expression.h (parse_expression_for_completion): Change
9767 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9769 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9770 * infrun.c (handle_completer): Make "text" and "word" parameters
9772 * interps.c (interpreter_completer): Make "text" and "word"
9774 * language.h (struct language_defn)
9775 <la_make_symbol_completion_list>: Make "text" and "word"
9777 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9778 (parse_exp_in_context): Rename to ...
9779 (parse_exp_in_context_1): ... this.
9780 (parse_exp_in_context): Reimplement, with const hack from
9782 (parse_expression_for_completion): Make "string" parameter const.
9783 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9784 to pointer to const char. Adjust.
9785 (print_command_1): Make "exp" parameter const.
9786 (output_command): Rename to ...
9787 (output_command_const): ... this. Make "exp" parameter const.
9788 (output_command): Reimplement.
9789 (x_command): Adjust.
9790 (display_command): Rename "exp" parameter to "arg". New "exp"
9791 local, const version of "arg".
9792 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9793 "cmd_name" local const.
9794 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9796 (cmdpy_completer): Make "text" and "word" parameters const.
9797 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9798 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9800 * remote.c (_initialize_remote): Make "cmd_name" local const.
9801 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9802 parameters const. Adjust.
9803 (completion_list_add_fields): Make "sym_text", "text" and "word"
9805 (struct add_name_data) <sym_text, text, word>: Make fields const.
9806 (default_make_symbol_completion_list_break_on): Make "text" and
9807 "word" parameters const. Adjust locals.
9808 (default_make_symbol_completion_list)
9809 (make_symbol_completion_list, make_symbol_completion_type)
9810 (make_symbol_completion_list_fn): Make "text" and "word"
9812 (make_file_symbol_completion_list): Make "text", "word" and
9813 "srcfile" parameters const. Adjust locals.
9814 (add_filename_to_list): Make "text" and "word" parameters const.
9815 (struct add_partial_filename_data) <text, word>: Make fields
9817 (make_source_files_completion_list): Make "text" and "word"
9819 * symtab.h (default_make_symbol_completion_list_break_on)
9820 (default_make_symbol_completion_list, make_symbol_completion_list)
9821 (make_symbol_completion_type enum type_code)
9822 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9823 (make_source_files_completion_list): Change prototype.
9824 * top.c (execute_command): Adjust to pass pointer to pointer to
9825 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9827 (set_verbose): Make "cmdname" local const.
9828 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9830 (validate_actionline): Make "line" parameter a pointer to const
9832 (encode_actions_1): Make "action_exp" local const, and adjust.
9833 (encode_actions): Adjust.
9834 (replace_comma): Delete.
9835 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9836 const, and adjust. Don't frob the action string while splitting
9837 it at commas. Instead, make a copy of each split substring in
9839 (trace_dump_command): Adjust to validate_actionline prototype
9841 * tracepoint.h (decode_agent_options, decode_agent_options)
9842 (encode_actions, validate_actionline): Change prototypes.
9843 * valprint.h (output_command): Delete declaration.
9844 (output_command_const): Declare.
9845 * value.c (function_destroyer): Cast const away in xfree call.
9849 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9850 rather than casting 'const char * const *' to 'const char **'.
9851 * ada-lex.l (processInt): Make "trailer" local const. Remove
9852 'const char **' cast.
9853 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9854 locals, and use those as strtol output pointer, instead than doing
9855 invalid casts to from 'const char **' to 'char **'.
9856 (_initialize_demangle): Remove cast.
9857 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9858 locals, and use those as strtol output pointer, instead than doing
9859 invalid casts to from 'const char **' to 'char **'.
9860 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9862 * stap-probe.c (stap_parse_register_operand)
9863 (stap_parse_single_operand): Likewise.
9867 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9868 the last matched 'V' blcok in trace frame.
9872 * NEWS: Create a new section for the next release branch.
9873 Rename the section of the current branch, now that it has
9878 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9879 * version.in: Bump version to 7.6.50.20130312-cvs.
9883 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9884 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9885 Remove temporary copy of input string.
9886 (mi_execute_command_wrapper): Make "cmd" const.
9887 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9888 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9890 (mi_parse): Make "cmd" const.
9892 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9896 * ada-lang.c (ada_read_renaming_var_value): Pass const
9897 pointer to expression string to parse_exp_1.
9898 (create_excep_cond_exprs): Likewise.
9899 * ax-gdb.c (agent_eval_command_one): Likewise.
9900 (maint_agent_printf_command): Likewise.
9901 Constify much of the string handling/parsing.
9902 * breakpoint.c (set_breakpoint_condition): Pass const
9903 pointer to expression string to parse_exp_1.
9904 (update_watchpoint): Likewise.
9905 (parse_cmd_to_aexpr): Constify string handling.
9906 Pass const pointer to parse_exp_1.
9907 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9908 (find_condition_and_thread): Likewise.
9910 (watch_command_1): Make "arg" const.
9911 Constify string handling.
9912 Copy the expression string instead of changing the input
9914 (update_breakpoint_location): Pass const pointer to
9916 * eval.c (parse_and_eval_address): Make "exp" const.
9917 (parse_to_comma_and_eval): Make "expp" const.
9918 (parse_and_eval): Make "exp" const.
9919 * expression.h (parse_expression): Make argument const.
9920 (parse_exp_1): Make first argument const.
9921 * findcmd.c (parse_find_args): Treat "args" as const.
9922 * linespec.c (parse_linespec): Pass const pointer to
9923 linespec_expression_to_pc.
9924 (linespec_expression_to_pc): Make "exp_ptr" const.
9925 * parse.c (parse_exp_1): Make "stringptr" const.
9926 Make a copy of the expression to pass to parse_exp_in_context until
9927 this whole interface can be constified.
9928 (parse_expression): Make "string" const.
9929 * printcmd.c (ui_printf): Treat "arg" as const.
9930 Handle const strings.
9931 * tracepoint.c (validate_actionline): Pass const pointer to
9932 all calls to parse_exp_1.
9933 (encode_actions_1): Likewise.
9934 * value.h (parse_to_comma_and_eval): Make argument const.
9935 (parse_and_eval_address): Likewise.
9936 (parse_and_eval): Likewise.
9937 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9938 (varobj_set_value): Likewise.
9939 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9940 constify string handling.
9941 Pass const pointers to parse_and_eval_address and
9942 parse_to_comman_and_eval.
9943 * cli/cli-utils.c (skip_to_space): Rename to ...
9944 (skip_to_space_const): ... this. Handle const strings.
9945 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9946 skip_to_space_const.
9947 (skip_to_space_const): Declare.
9948 * common/format.c (parse_format_string): Make "arg" const.
9949 Handle const strings.
9950 * common/format.h (parse_format_string): Make "arg" const.
9951 * gdbserver/ax.c (ax_printf): Make "format" const.
9952 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9953 of the expression string.
9957 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9962 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9963 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9968 * ada-lex.l (rules): Only recognize 'thread' as a
9969 delimiter when followed by numerals, as for c-exp.y.
9970 Use new rewind_to_char function to rewind the input for
9971 expression-delimiting tokens.
9972 (rewind_to_char): New function.
9977 * configure: Regenerate.
9978 * configure.ac (check dynamic export flag): Link python test with
9984 * linespec.c (find_linespec_symbols): Call find_function_symbols
9985 first, and then call lookup_prefix_sym/find_method.
9989 * charset.c (convert_between_encodings): Don't cast between
9990 different pointer to pointer types. Instead, make the 'inp' local
9991 be of the type iconv expects.
9992 (wchar_iterate): Don't cast between different pointer to pointer
9993 types. Instead, use new pointer local of the type iconv expects.
9994 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9995 Add new local of type char pointer, and use it to get a
9996 char/string view of the byte buffer, instead of casting between
9997 pointer to pointer types.
10001 * remote.c (remote_set_trace_buffer_size): Move != operator
10002 to the start of next line to fix an ARI warning.
10006 * NEWS: Add record changes.
10010 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10011 the instruction history disassembly.
10012 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10013 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10017 * Makefile.in (SFILES): Add record-btrace.c
10018 (COMMON_OBS): Add record-btrace.o
10019 * record-btrace.c: New.
10020 * objfiles.c: Include btrace.h.
10021 (free_objfile): call btrace_free_objfile.
10025 * target.c (target_call_history, target_call_history_from,
10026 target_call_history_range): New.
10027 * target.h (target_ops) <to_call_history, to_call_history_from,
10028 to_call_history_range>: New fields.
10029 (target_call_history, target_call_history_from,
10030 target_call_history_range): New declaration.
10031 * record.c (get_call_history_modifiers, cmd_record_call_history,
10032 record_call_history_size): New.
10033 (_initialize_record): Add the "record function-call-history" command.
10034 Add "set/show record function-call-history-size" commands.
10035 * record.h (record_print_flag): New.
10039 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10040 to_insn_history_range>: New fields.
10041 (target_insn_history): New.
10042 (target_insn_history_from): New.
10043 (target_insn_history_range): New.
10044 * target.c (target_insn_history): New.
10045 (target_insn_history_from): New.
10046 (target_insn_history_range): New.
10047 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10048 (record_insn_history_size): New.
10049 (get_insn_number): New.
10050 (get_context_size): New.
10052 (get_insn_history_modifiers): New.
10053 (cmd_record_insn_history): New.
10054 (_initialize_record): Add "set/show record instruction-history-size"
10055 command. Add "record instruction-history" command.
10059 * record.h (record_disconnect): New.
10060 (record_detach): New.
10061 (record_mourn_inferior): New.
10062 (record_kill): New.
10063 * record-full.c (record_disconnect, record_detach,
10064 record_mourn_inferior, record_kill): Move to...
10065 * record.c: ...here.
10067 (record_stop): New.
10068 (record_unpush): New.
10069 (cmd_record_stop): Call record_stop. Replace unpush_target
10070 call with record_unpush call.
10071 (record_disconnect, record_detach): Assert that the target
10072 is of record stratum. Call record_unpush, record_stop, and
10074 (record_mourn_inferior, record_kill): Assert that the target
10075 is of record stratum. Call record_unpush and DEBUG.
10079 * record-full.h, record-full.c (record_memory_query): Rename
10081 (record_full_memory_query): ...this. Update all users.
10082 (record_arch_list_add_reg): Rename to ...
10083 (record_full_arch_list_add_reg): ...this. Update all users.
10084 (record_arch_list_add_mem): Rename to ...
10085 (record_full_arch_list_add_mem): ...this. Update all users.
10086 (record_arch_list_add_end): Rename to ...
10087 (record_full_arch_list_add_end): ...this. Update all users.
10088 (record_gdb_operation_disable_set): Rename to ...
10089 (record_full_gdb_operation_disable_set): ...this.
10094 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10095 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10096 (RECORD_IS_REPLAY): Renamed to ...
10097 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10098 (RECORD_FILE_MAGIC): Renamed to ...
10099 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10100 (record_mem_entry): Renamed to ...
10101 (record_full_mem_entry): ... this. Updated all users.
10102 (record_reg_entry): Renamed to ...
10103 (record_full_reg_entry): ... this. Updated all users.
10104 (record_end_entry): Renamed to ...
10105 (record_full_end_entry): ... this. Updated all users.
10106 (record_type) <record_end, record_reg, record_mem>: Renamed
10108 (record_full_type) <record_full_end, record_full_reg,
10109 record_full_mem>: ... this. Updated all users.
10110 (record_entry): Renamed to ...
10111 (record_full_entry): ... this. Updated all users.
10112 (record_core_buf_entry): Renamed to ...
10113 (record_full_core_buf_entry): ... this. Updated all users.
10114 (record_core_regbuf): Renamed to ...
10115 (record_full_core_regbuf): ... this. Updated all users.
10116 (record_core_start): Renamed to ...
10117 (record_full_core_start): ... this. Updated all users.
10118 (record_core_end): Renamed to ...
10119 (record_full_core_end): ... this. Updated all users.
10120 (record_core_buf_list): Renamed to ...
10121 (record_full_core_buf_list): ... this. Updated all users.
10122 (record_first): Renamed to ...
10123 (record_full_first): ... this. Updated all users.
10124 (record_list): Renamed to ...
10125 (record_full_list): ... this. Updated all users.
10126 (record_arch_list_head): Renamed to ...
10127 (record_full_arch_list_head): ... this. Updated all users.
10128 (record_arch_list_tail): Renamed to ...
10129 (record_full_arch_list_tail): ... this. Updated all users.
10130 (record_stop_at_limit): Renamed to ...
10131 (record_full_stop_at_limit): ... this. Updated all users.
10132 (record_insn_max_num): Renamed to ...
10133 (record_full_insn_max_num): ... this. Updated all users.
10134 (record_insn_num): Renamed to ...
10135 (record_full_insn_num): ... this. Updated all users.
10136 (record_insn_count): Renamed to ...
10137 (record_full_insn_count): ... this. Updated all users.
10138 (record_ops): Renamed to ...
10139 (record_full_ops): ... this. Updated all users.
10140 (record_core_ops): Renamed to ...
10141 (record_full_core_ops): ... this. Updated all users.
10142 (set_record_cmdlist): Renamed to ...
10143 (set_record_full_cmdlist): ... this. Updated all users.
10144 (show_record_cmdlist): Renamed to ...
10145 (show_record_full_cmdlist): ... this. Updated all users.
10146 (record_cmdlist): Renamed to ...
10147 (record_full_cmdlist): ... this. Updated all users.
10148 (record_beneath_to_resume_ops): Renamed to ...
10149 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10150 (record_beneath_to_resume): Renamed to ...
10151 (record_full_beneath_to_resume): ... this. Updated all users.
10152 (record_beneath_to_wait_ops): Renamed to ...
10153 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10154 (record_beneath_to_wait): Renamed to ...
10155 (record_full_beneath_to_wait): ... this. Updated all users.
10156 (record_beneath_to_store_registers_ops): Renamed to ...
10157 (record_full_beneath_to_store_registers_ops): ... this.
10159 (record_beneath_to_store_registers): Renamed to ...
10160 (record_full_beneath_to_store_registers): ... this.
10162 (record_beneath_to_xfer_partial_ops): Renamed to ...
10163 (record_full_beneath_to_xfer_partial_ops): ... this.
10165 (record_beneath_to_xfer_partial): Renamed to ...
10166 (record_full_beneath_to_xfer_partial): ... this.
10168 (record_beneath_to_insert_breakpoint): Renamed to ...
10169 (record_full_beneath_to_insert_breakpoint): ... this.
10171 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10172 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10174 (record_beneath_to_stopped_data_address): Renamed to ...
10175 (record_full_beneath_to_stopped_data_address): ... this.
10177 (record_beneath_to_async): Renamed to ...
10178 (record_full_beneath_to_async): ... this. Updated all users.
10179 (record_goto_insn): Renamed to ...
10180 (record_full_goto_insn): ... this. Updated all users.
10181 (record_save): Renamed to ...
10182 (record_full_save): ... this. Updated all users.
10183 (record_reg_alloc): Renamed to ...
10184 (record_full_reg_alloc): ... this. Updated all users.
10185 (record_reg_release): Renamed to ...
10186 (record_full_reg_release): ... this. Updated all users.
10187 (record_mem_alloc): Renamed to ...
10188 (record_full_mem_alloc): ... this. Updated all users.
10189 (record_mem_release): Renamed to ...
10190 (record_full_mem_release): ... this. Updated all users.
10191 (record_end_alloc): Renamed to ...
10192 (record_full_end_alloc): ... this. Updated all users.
10193 (record_end_release): Renamed to ...
10194 (record_full_end_release): ... this. Updated all users.
10195 (record_entry_release): Renamed to ...
10196 (record_full_entry_release): ... this. Updated all users.
10197 (record_list_release): Renamed to ...
10198 (record_full_list_release): ... this. Updated all users.
10199 (record_list_release_following): Renamed to ...
10200 (record_full_list_release_following): ... this.
10202 (record_list_release_first): Renamed to ...
10203 (record_full_list_release_first): ... this. Updated all users.
10204 (record_arch_list_add): Renamed to ...
10205 (record_full_arch_list_add): ... this. Updated all users.
10206 (record_get_loc): Renamed to ...
10207 (record_full_get_loc): ... this. Updated all users.
10208 (record_check_insn_num): Renamed to ...
10209 (record_full_check_insn_num): ... this. Updated all users.
10210 (record_arch_list_cleanups): Renamed to ...
10211 (record_full_arch_list_cleanups): ... this. Updated all users.
10212 (record_message): Renamed to ...
10213 (record_full_message): ... this. Updated all users.
10214 (record_message_wrapper): Renamed to ...
10215 (record_full_message_wrapper): ... this. Updated all users.
10216 (record_message_wrapper_safe): Renamed to ...
10217 (record_full_message_wrapper_safe): ... this. Updated all users.
10218 (record_gdb_operation_disable): Renamed to ...
10219 (record_full_gdb_operation_disable): ... this. Updated all users.
10220 (record_hw_watchpoint): Renamed to ...
10221 (record_full_hw_watchpoint): ... this. Updated all users.
10222 (record_exec_insn): Renamed to ...
10223 (record_full_exec_insn): ... this. Updated all users.
10224 (record_restore): Renamed to ...
10225 (record_full_restore): ... this. Updated all users.
10226 (record_async_inferior_event_token): Renamed to ...
10227 (record_full_async_inferior_event_token): ... this.
10229 (record_async_inferior_event_handler): Renamed to ...
10230 (record_full_async_inferior_event_handler): ... this.
10232 (record_core_open_1): Renamed to ...
10233 (record_full_core_open_1): ... this. Updated all users.
10234 (record_open_1): Renamed to ...
10235 (record_full_open_1): ... this. Updated all users.
10236 (record_open): Renamed to ...
10237 (record_full_open): ... this. Updated all users.
10238 (record_close): Renamed to ...
10239 (record_full_close): ... this. Updated all users.
10240 (record_resume_step): Renamed to ...
10241 (record_full_resume_step): ... this. Updated all users.
10242 (record_resumed): Renamed to ...
10243 (record_full_resumed): ... this. Updated all users.
10244 (record_execution_dir): Renamed to ...
10245 (record_full_execution_dir): ... this. Updated all users.
10246 (record_resume): Renamed to ...
10247 (record_full_resume): ... this. Updated all users.
10248 (record_get_sig): Renamed to ...
10249 (record_full_get_sig): ... this. Updated all users.
10250 (record_sig_handler): Renamed to ...
10251 (record_full_sig_handler): ... this. Updated all users.
10252 (record_wait_cleanups): Renamed to ...
10253 (record_full_wait_cleanups): ... this. Updated all users.
10254 (record_wait_1): Renamed to ...
10255 (record_full_wait_1): ... this. Updated all users.
10256 (record_wait): Renamed to ...
10257 (record_full_wait): ... this. Updated all users.
10258 (record_stopped_by_watchpoint): Renamed to ...
10259 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10260 (record_disconnect): Renamed to ...
10261 (record_full_disconnect): ... this. Updated all users.
10262 (record_detach): Renamed to ...
10263 (record_full_detach): ... this. Updated all users.
10264 (record_mourn_inferior): Renamed to ...
10265 (record_full_mourn_inferior): ... this. Updated all users.
10266 (record_kill): Renamed to ...
10267 (record_full_kill): ... this. Updated all users.
10268 (record_stopped_data_address): Renamed to ...
10269 (record_full_stopped_data_address): ... this. Updated all users.
10270 (record_registers_change): Renamed to ...
10271 (record_full_registers_change): ... this. Updated all users.
10272 (record_store_registers): Renamed to ...
10273 (record_full_store_registers): ... this. Updated all users.
10274 (record_xfer_partial): Renamed to ...
10275 (record_full_xfer_partial): ... this. Updated all users.
10276 (record_breakpoint): Renamed to ...
10277 (record_full_breakpoint): ... this. Updated all users.
10278 (record_breakpoint_p): Renamed to ...
10279 (record_full_breakpoint_p): ... this. Updated all users.
10280 (record_breakpoints): Renamed to ...
10281 (record_full_breakpoints): ... this. Updated all users.
10282 (record_sync_record_breakpoints): Renamed to ...
10283 (record_full_sync_record_breakpoints): ... this.
10285 (record_init_record_breakpoints): Renamed to ...
10286 (record_full_init_record_breakpoints): ... this.
10288 (record_insert_breakpoint): Renamed to ...
10289 (record_full_insert_breakpoint): ... this. Updated all users.
10290 (record_remove_breakpoint): Renamed to ...
10291 (record_full_remove_breakpoint): ... this. Updated all users.
10292 (record_can_execute_reverse): Renamed to ...
10293 (record_full_can_execute_reverse): ... this. Updated all users.
10294 (record_get_bookmark): Renamed to ...
10295 (record_full_get_bookmark): ... this. Updated all users.
10296 (record_goto_bookmark): Renamed to ...
10297 (record_full_goto_bookmark): ... this. Updated all users.
10298 (record_async): Renamed to ...
10299 (record_full_async): ... this. Updated all users.
10300 (record_can_async_p): Renamed to ...
10301 (record_full_can_async_p): ... this. Updated all users.
10302 (record_is_async_p): Renamed to ...
10303 (record_full_is_async_p): ... this. Updated all users.
10304 (record_execution_direction): Renamed to ...
10305 (record_full_execution_direction): ... this. Updated all users.
10306 (record_info): Renamed to ...
10307 (record_full_info): ... this. Updated all users.
10308 (record_delete): Renamed to ...
10309 (record_full_delete): ... this. Updated all users.
10310 (record_is_replaying): Renamed to ...
10311 (record_full_is_replaying): ... this. Updated all users.
10312 (record_goto_entry): Renamed to ...
10313 (record_full_goto_entry): ... this. Updated all users.
10314 (record_goto_begin): Renamed to ...
10315 (record_full_goto_begin): ... this. Updated all users.
10316 (record_goto_end): Renamed to ...
10317 (record_full_goto_end): ... this. Updated all users.
10318 (record_goto): Renamed to ...
10319 (record_full_goto): ... this. Updated all users.
10320 (init_record_ops): Renamed to ...
10321 (init_record_full_ops): ... this. Updated all users.
10322 (record_core_resume): Renamed to ...
10323 (record_full_core_resume): ... this. Updated all users.
10324 (record_core_kill): Renamed to ...
10325 (record_full_core_kill): ... this. Updated all users.
10326 (record_core_fetch_registers): Renamed to ...
10327 (record_full_core_fetch_registers): ... this. Updated all users.
10328 (record_core_prepare_to_store): Renamed to ...
10329 (record_full_core_prepare_to_store): ... this. Updated all users.
10330 (record_core_store_registers): Renamed to ...
10331 (record_full_core_store_registers): ... this. Updated all users.
10332 (record_core_xfer_partial): Renamed to ...
10333 (record_full_core_xfer_partial): ... this. Updated all users.
10334 (record_core_insert_breakpoint): Renamed to ...
10335 (record_full_core_insert_breakpoint): ... this. Updated all users.
10336 (record_core_remove_breakpoint): Renamed to ...
10337 (record_full_core_remove_breakpoint): ... this. Updated all users.
10338 (record_core_has_execution): Renamed to ...
10339 (record_full_core_has_execution): ... this. Updated all users.
10340 (init_record_core_ops): Renamed to ...
10341 (init_record_full_core_ops): ... this. Updated all users.
10342 (cmd_record_restore): Renamed to ...
10343 (cmd_record_full_restore): ... this. Updated all users.
10344 (record_save_cleanups): Renamed to ...
10345 (record_full_save_cleanups): ... this. Updated all users.
10346 (cmd_record_start): Renamed to ...
10347 (cmd_record_full_start): ... this. Updated all users.
10348 (set_record_insn_max_num): Renamed to ...
10349 (set_record_full_insn_max_num): ... this. Updated all users.
10350 (set_record_command): Renamed to ...
10351 (set_record_full_command): ... this. Updated all users.
10352 (show_record_command): Renamed to ...
10353 (show_record_full_command): ... this. Updated all users.
10354 (_initialize_record): Renamed to ...
10355 (_initialize_record_full): ... this. Updated all users.
10359 * record.h: Split into this and ...
10360 * record-full.h: ... this.
10361 * record.c: Split into this and ...
10362 * record-full.c: ... this.
10363 * target.h (target_ops): Add new fields to_info_record,
10364 to_save_record, to_delete_record, to_record_is_replaying,
10365 to_goto_record_begin, to_goto_record_end, to_goto_record.
10366 (target_info_record): New.
10367 (target_save_record): New.
10368 (target_supports_delete_record): New.
10369 (target_delete_record): New.
10370 (target_record_is_replaying): New.
10371 (target_goto_record_begin): New.
10372 (target_goto_record_end): New.
10373 (target_goto_record): New.
10374 * target.c (target_info_record): New.
10375 (target_save_record): New.
10376 (target_supports_delete_record): New.
10377 (target_delete_record): New.
10378 (target_record_is_replaying): New.
10379 (target_goto_record_begin): New.
10380 (target_goto_record_end): New.
10381 (target_goto_record): New.
10382 * record.h: Declare struct cmd_list_element.
10383 (record_cmdlist): New declaration.
10384 (set_record_cmdlist): New declaration.
10385 (show_record_cmdlist): New declaration.
10386 (info_record_cmdlist): New declaration.
10387 (cmd_record_goto): New declaration.
10388 * record.c: Remove unnecessary includes.
10389 Include inferior.h.
10390 (cmd_record_goto): Remove declaration.
10391 (record_cmdlist): Now extern. Initialize.
10392 (set_record_cmdlist): Now extern. Initialize.
10393 (show_record_cmdlist): Now extern. Initialize.
10394 (info_record_cmdlist): Now extern. Initialize.
10395 (find_record_target): New.
10396 (require_record_target): New.
10397 (cmd_record_start): Update.
10398 (cmd_record_delete): Remove target-specific code.
10399 Call target_delete_record.
10400 (cmd_record_stop): Unpush any record target.
10401 (set_record_insn_max_num): Move to record-full.c
10402 (set_record_command): Add comment.
10403 (show_record_command): Add comment.
10404 (info_record_command): Update comment.
10405 Remove target-specific code.
10406 Call the record target's to_info_record.
10407 (cmd_record_start): New.
10408 (cmd_record_goto): Now extern.
10409 Remove target-specific code.
10410 Call target_goto_begin, target_goto_end, or target_goto.
10411 (_initialize_record): Move record target ops initialization to
10413 Change "record" command help text.
10414 Move "record restore", "record set", and "record show" commands to
10416 * Makefile.in (SFILES): Add record-full.c.
10417 (HFILES_NO_SRCDIR): Add record-full.h.
10418 (COMMON_OBS): Add record-full.o.
10419 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10420 * arm-tdep.c: Include record-full.h.
10421 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10422 * i386-tdep.c: Include record-full.h.
10423 * infrun.c: Include record-full.h.
10424 * linux-record.c: Include record-full.h.
10425 * moxie-tdep.c: Include record-full.h.
10426 * record-full.c: Include record-full.h.
10427 Change module comment.
10428 (set_record_full_cmdlist): New.
10429 (show_record_full_cmdlist): New.
10430 (record_full_cmdlist): New.
10431 (record_goto_insn): New declaration.
10432 (record_save): New declaration.
10433 (record_check_insn_num): Change query string.
10434 (record_info): New.
10435 (record_delete): New.
10436 (record_is_replaying): New.
10437 (record_goto_entry): New.
10438 (record_goto_begin): New.
10439 (record_goto_end): New.
10440 (record_goto): New.
10441 (init_record_ops): Update.
10442 (init_record_core_ops): Update.
10443 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10444 (cmd_record_start): New.
10445 (set_record_insn_max_num): Moved from record.c
10446 (set_record_full_command): New.
10447 (show_record_full_command): New.
10448 (_initialize_record_full): New.
10452 * target.h (add_deprecated_target_alias): New.
10453 * target.c (add_deprecated_target_alias): New.
10457 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10459 (linux_supports_btrace): Add kernel and
10461 (kernel_supports_btrace): New function.
10462 (cpu_supports_btrace): New function.
10463 (intel_supports_btrace): New function.
10467 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10468 * remote.c: Include btrace.h.
10469 (struct btrace_target_info): New struct.
10470 (remote_supports_btrace): New function.
10471 (send_Qbtrace): New function.
10472 (remote_enable_btrace): New function.
10473 (remote_disable_btrace): New function.
10474 (remote_teardown_btrace): New function.
10475 (remote_read_btrace): New function.
10476 (init_remote_ops): Add btrace ops.
10477 (enum <unnamed>): Add btrace packets.
10478 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10479 (_initialize_remote): Add packet configuration for branch tracing.
10483 * features/btrace.dtd: New file.
10484 * Makefile.in (XMLFILES): Add btrace.dtd.
10485 * btrace.h (parse_xml_btrace): New declaration.
10486 * btrace.c: Include xml-support.h.
10487 (parse_xml_btrace): New function.
10488 (parse_xml_btrace_block): New function.
10489 (block_attributes): New struct.
10490 (btrace_attributes): New struct.
10491 (btrace_children): New struct.
10492 (btrace_elements): New struct.
10496 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10497 (amd64_linux_enable_btrace): New.
10498 (amd64_linux_disable_btrace): New.
10499 (amd64_linux_teardown_btrace): New.
10500 (_initialize_amd64_linux_nat): Initialize btrace ops.
10501 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10502 (i386_linux_enable_btrace): New.
10503 (i386_linux_disable_btrace): New.
10504 (i386_linux_teardown_btrace): New.
10505 (_initialize_i386_linux_nat): Initialize btrace ops.
10506 * config/i386/linux.mh: Add linux-btrace.o.
10507 * config/i386/linux64.mh: Add linux-btrace.o.
10511 * common/linux_btrace.h: New file.
10512 * common/linux_btrace.c: New file.
10513 * Makefile.in (SFILES): Add btrace.c.
10514 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10515 (COMMON_OBS): Add btrace.o.
10516 (linux-btrace.o): New rule.
10520 * target.h: Include btrace.h.
10521 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10522 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10523 * target.c (target_supports_btrace): New function.
10524 (target_enable_btrace): New function.
10525 (target_disable_btrace): New function.
10526 (target_teardown_btrace): New function.
10527 (target_read_btrace): New function.
10528 * btrace.h: New file.
10529 * btrace.c: New file.
10530 * Makefile.in: Add btrace.c.
10531 * gdbthread.h: Include btrace.h.
10532 (struct thread_info): Add btrace field.
10533 * thread.c: Include btrace.h.
10534 (clear_thread_inferior_resources): Call target_teardown_btrace.
10535 * common/btrace-common.h: New file.
10539 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10540 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10541 kill_status to outer block.
10545 Fix entry-values if the callee called a noreturn function.
10546 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10547 get_frame_address_in_block. Add new comment.
10551 Fix entry-values in C++ across CUs.
10552 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10553 lookup_minimal_symbol. Add a comment.
10555 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10556 DW_AT_linkage_name.
10560 * tracepoint.c (_initialize_tracepoint): Indent the code.
10564 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10565 (parse_find_args, find_command): Change type of pattern buffer
10566 locals to 'gdb_byte *'.
10571 * NEWS: Mention set and show trace-buffer-size commands.
10572 Mention new packet.
10573 * target.h (struct target_ops): New method
10574 to_set_trace_buffer_size.
10575 (target_set_trace_buffer_size): New macro.
10576 * target.c (update_current_target): Set up new method.
10577 * tracepoint.c (trace_buffer_size): New global.
10578 (start_tracing): Send it to the target.
10579 (set_trace_buffer_size): New function.
10580 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10581 * remote.c (remote_set_trace_buffer_size): New function.
10582 (_initialize_remote): Use it.
10583 (QTBuffer:size) New remote command.
10584 (PACKET_QTBuffer_size): New enum.
10585 (remote_protocol_features): Add an entry for
10586 PACKET_QTBuffer_size.
10590 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10595 * target.c (target_read_stralloc, target_fileio_read_alloc):
10596 *Cast pointer to 'gdb_byte *' in target call.
10600 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10605 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10606 (trace_pass_command): Likewise.
10607 * cli/cli-cmds.c: Include cli/cli-utils.h.
10608 (source_command): Use skip-spaces.
10609 (disassemble_command): Likewise.
10610 * findcmd.c: Include cli/cli-utils.h.
10611 (parse_find_args): Use skip_spaces.
10612 * go32-nat.c: Include cli/cli-utils.h.
10613 (go32_sldt): Use skip_spaces.
10614 (go32_sgdt): Likewise.
10615 (go32_sidt): Likewise.
10616 (go32_pde): Likewise.
10617 (go32_pte): Likewise.
10618 (go32_pte_for_address): Likewise.
10619 * infcmd.c: Include cli/cli-utils.h.
10620 (registers_info): Use skip_spaces.
10621 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10622 (linux_info_proc): Likewise.
10623 * linux-thread-db.c: Include cli/cli-utils.h.
10624 (info_auto_load_libthread_db): Use skip_spaces_const.
10625 * m32r-rom.c: Include cli/cli-utils.h.
10626 (m32r_upload_command): Use skip_spaces.
10627 * maint.c: Include cli/cli-utils.h.
10628 (maintenance_translate_address): Use skip_spaces.
10629 * mi/mi-parse.c: Include cli/cli-utils.h.
10630 (mi_parse_argv): Use skip_spaces.
10631 (mi_parse): Likewise.
10632 * minsyms.c: Include cli/cli-utils.h.
10633 (msymbol_hash_iw): Use skip_spaces_const.
10634 * objc-lang.c: Include cli/cli-utils.h.
10635 (parse_selector): Use skip_spaces.
10636 (parse_method): Likewise.
10637 * python/python.c: Include cli/cli-utils.h.
10638 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10639 (python_command)[HAVE_PYTHON]: Likewise.
10640 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10641 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10642 (m32r_load): Use skip_spaces.
10643 * serial.c: Include cli/cli-utils.h.
10644 (serial_open): Use skip_spaces_const.
10645 * stack.c: Include cli/cli-utils.h.
10646 (parse_frame_specification_1): Use skip_spaces_const.
10647 * symfile.c: Include cli/cli-utils.h.
10648 (set_ext_lang_command): Use skip_spaces.
10649 * symtab.c: Include cli/cli-utils.h.
10650 (rbreak_command): Use skip_spaces.
10651 * thread.c (thread_name_command): Use skip_spaces.
10652 * tracepoint.c (validate_actionline): Use skip_spaces.
10653 (encode_actions_1): Likewise.
10654 (trace_find_range_command): Likewise.
10655 (trace_find_outside_command): Likewise.
10656 (trace_dump_actions): Likewise.
10660 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10661 * expprint.c (print_subexp_standard): Likewise.
10662 * utils.c (host_char_to_target): Likewise.
10663 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10664 * varobj.c (value_get_print_value): Change type of local to char*.
10665 Cast it gdb_byte * in call to language printer.
10669 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10671 (make_wchar_iterator): Remove cast to char*.
10672 (wchar_iterate): Change type of local.
10676 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10677 for 'regcache->register_status'.
10681 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10686 * stap-probe.c (handle_stap_probe): Add cast to char*.
10690 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10691 RECORD_MSGRCV>: Pass a signed variable to
10692 regcache_raw_read_signed, instead of an unsigned one.
10696 * remote-notif.c (notif_debug): Change type to int.
10697 * remote-notif.h (notif_debug): Likewise.
10701 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10705 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10706 * remote.h (hex2bin, bin2hex): ... here.
10707 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10711 * utils.c (initialize_utils): Improve doc strings of "set/show
10712 width", "set/show height", and "set/show pagination".
10716 * ax-gdb.c (gen_printf): Make FORMAT const.
10717 * ax-gdb.h (gen_printf): Likewise.
10718 * ax-general.c (ax_string): Make STR const.
10719 * ax.h (ax_string): Likewise.
10723 * elfread.c (elf_symfile_read): Move debugging printf to more
10728 * python/py-utils.c (target_string_to_unicode): Delete function.
10729 * python/python-internal.h (target_string_to_unicode): Delete
10734 * linespec.c (get_current_search_block): ARI fix, use (void)
10735 for empty parameter list.
10739 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10740 of old ada_lookup_symbol_list. In !full_search case, don't
10741 search superblocks.
10742 (ada_lookup_symbol_list): Delete arg full_search, all callers
10743 updated. Call ada_lookup_symbol_list_worker.
10744 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10745 * ada-lang.h (ada_lookup_symbol_list): Update.
10746 * language.h (language_defn): Update comment for
10747 la_iterate_over_symbols.
10748 * linespec.c (iterate_over_file_blocks): New function.
10749 (iterate_over_all_matching_symtabs): Call it.
10750 (lookup_prefix_sym): Ditto.
10751 (get_current_search_block): New function.
10752 (get_search_block): Delete.
10753 (find_label_symbols): Call get_current_search_block.
10754 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10755 * symtab.c (iterate_over_symbols): Don't search superblocks.
10759 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10760 parameter VAR's type from "unsigned int" to "int".
10761 * command.h (var_zuinteger_unlimited): Update its comments.
10762 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10766 * NEWS: Mention new target x86_64-*-cygwin*.
10770 * configure.host: Add x86_64-*-cygwin* as host.
10771 * configure.tgt: Add x86_64-*-cygwin* as target.
10772 * config/i386/cygwin64.mh: New file.
10776 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10780 * linespec.c (struct linespec_canonical_name): New.
10781 (struct linespec_state): Change canonical_names type to it.
10782 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10783 xrealloc element size. Initialize the different CANONICAL fields.
10784 (canonical_to_fullform): New.
10785 (filter_results): Use it. Add variables canonical, fullform and
10787 (struct decode_line_2_item, decode_line_2_compare_items): New.
10788 (decode_line_2): Remove variables iter and item_names, add variables
10789 items and items_count. Modify the code for these new variables.
10793 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10794 calling do_cleanup.
10798 * tracepoint.c (build_traceframe_info): Add code for byte order.
10802 * v850-tdep.c: (v850e2_register_name): Revise system register
10803 names to match current V850E2M architecture specifications.
10804 Update register number enum comments too.
10809 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10811 (tilegx_skip_prologue): Limit prologue analysis to section end.
10815 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10820 Use gdb_byte for bytes from the program being debugged.
10822 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10823 Change type of local 'buf' to gdb_byte.
10824 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10825 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10826 * cris-tdep.c (cris_sigcontext_addr)
10827 (cris_sigtramp_frame_unwind_cache): Likewise.
10828 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10829 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10831 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10832 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10833 (hppa32_hpux_search_dummy_call_sequence)
10834 (hppa_hpux_supply_save_state): Likewise.
10835 * hppa-linux-tdep.c (insns_match_pattern)
10836 (hppa_linux_find_global_pointer): Likewise.
10837 * hppa-tdep.c (hppa_in_function_epilogue_p)
10838 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10839 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10840 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10841 (i386fbsd_collect_uthread): Likewise.
10842 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10843 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10844 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10845 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10846 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10847 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10848 (ia64_libunwind_frame_prev_register)
10849 (ia64_libunwind_sigtramp_frame_this_id)
10850 (ia64_find_global_pointer_from_dynamic_section)
10851 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10852 (ia64_unwind_pc): Likewise.
10853 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10854 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10855 (m68hc11_extract_return_value): Likewise.
10856 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10857 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10858 (mep_get_insn, mep_push_dummy_call): Likewise.
10859 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10860 (mips_linux_in_dynsym_stub): Likewise.
10861 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10862 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10863 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10865 * remote-mips.c (mips_set_register): Likewise.
10866 * remote-sim.c (gdbsim_fetch_register): Likewise.
10867 * score-tdep.c (score7_fetch_inst): Change type of parameter
10868 'memblock' and local 'buf' to gdb_byte.
10869 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10870 Change type of local 'buf' to gdb_byte. Adjust.
10871 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10873 (score7_analyze_prologue): Change type of 'memblock' and
10874 'memblock_ptr' locals to gdb_byte*.
10875 * sh64-tdep.c (sh64_extract_return_value)
10876 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10877 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10878 * solib-pa64.c (pa64_solib_create_inferior_hook)
10879 (pa64_open_symbol_file_object): Remove local 'buf'.
10880 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10881 (som_open_symbol_file_object): Likewise.
10882 * solib-spu.c (spu_current_sos): Likewise.
10883 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10884 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10885 (spu_store_registers): Likewise.
10886 * target.c (debug_print_register): Likewise.
10887 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10888 * xstormy16-tdep.c (xstormy16_store_return_value)
10889 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10890 (xstormy16_find_jmp_table_entry): Likewise.
10894 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10895 (tilegx_gdbarch_init): Install it.
10899 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10904 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10905 * python/python.c (gdbpy_find_pc_line): Ditto.
10909 * contrib/excheck.py: New file.
10910 * contrib/exsummary.py: New file.
10911 * contrib/gcc-with-excheck: New file.
10915 * python/python.c (gdbpy_print_stack): Call begin_line and
10916 fprintf_filtered inside TRY_CATCH.
10920 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10925 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10926 frame_object_to_frame_info inside TRY_CATCH.
10930 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10935 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10939 * windows-nat.c: Throughout, fix format strings and casts of
10940 printf-like functions to avoid type related warnings on all
10942 (handle_output_debug_string): Fetch context information address
10943 from debug string using string_to_core_addr.
10947 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10948 * regformats/reg-tilegx32.dat: New.
10952 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10956 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10961 * tracepoint.c (tfile_trace_find): For tfind
10962 pc/tp/range/outside, look for the next trace frame instead of
10963 always starting from frame 0.
10967 * configure.tgt: Add support for moxie-*-rtems* target.
10971 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10976 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10977 if $fp is used as the virtual frame pointer.
10981 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10983 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10984 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10985 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10986 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10991 * elfread.c (build_id_bfd_get): Make the return type const.
10992 (build_id_verify): Make the check parameter const.
10993 (build_id_to_debug_filename): Make the build_id parameter and variable
10995 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10999 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11003 Add a new method 'disassemble' to gdb.Architecture class.
11004 * python/py-arch.c (archpy_disassmble): Implementation of the
11005 new method gdb.Architecture.disassemble.
11006 (arch_object_methods): Add entry for the new method.
11010 * MAINTAINERS (Write After Approval): Add myself to the list.
11014 Garbage collect 'struct monitor_ops'::load_routine.
11016 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11017 * monitor.c (monitor_load): No longer call
11018 current_monitor->load_routine.
11019 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11020 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11021 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11027 Harmonize with generic_load.
11029 * monitor.c: Include "readline/readline.h".
11030 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11031 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11032 long/strtol for the 'load_offset' local. Error out if no argument
11033 is given or if too many arguments are given. Tilde expand the
11034 passed in file name.
11039 * symfile.c (load_section_data): Change type of load_offset
11041 (generic_load): User strtoulst instead of strtoul for conversion
11046 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11047 for return address, "lr" register, saved on stack.
11048 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11049 after we invoke tilegx_analyze_prologue.
11053 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11057 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11061 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11062 (tilegx_write_pc): New function.
11063 (tilegx_cannot_reference_register): Return zero if REGNO
11064 is TILEGX_FAULTNUM_REGNUM.
11065 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11066 (tilegx_register_name): Add handling of "faultnum" register.
11067 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11068 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11069 handling of TILEGX_FAULTNUM_REGNUM.
11070 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11074 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11075 should be aligned to 64bit.
11079 * windows-nat.c (windows_xfer_memory): Fix debug-output
11084 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11085 Don't check DSP register number if HAVE_DSP is not set.
11089 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11090 throughout file instead.
11091 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11092 Don't xmalloc return value.
11093 (build_id_verify): Similarly. Don't xfree.
11094 (build_id_to_debug_filename): Update.
11095 (find_separate_debug_file_by_buildid): Update, don't xfree.
11100 * dwarf2read.c (read_subrange_type): Use result of
11105 * frame.c: Remove one extra white space after #include
11110 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11114 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11115 and dir commands into an if block.
11119 * python/py-breakpoint (struct pybp_code): Use int instead of
11125 * NEWS: Mention new field "trace-file".
11126 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11127 (tfile_open): Record the trace file's filename in the trace
11129 (tfile_files_info): Mention the name of the trace file.
11130 Check the "filename" field explicitely.
11131 (trace_status_command): Explicitely check "filename" field.
11132 (trace_find_command): Ditto.
11133 (trace_find_pc_command): Ditto.
11134 (trace_find_tracepoint_command): Ditto.
11135 (trace_find_line_command): Ditto.
11136 (trace_find_range_command): Ditto.
11137 (trace_find_outside_command): Ditto.
11138 * tracepoint.h (struct trace_status) <from_file>: Rename it
11139 to "filename" and make it hold the trace file's filename
11140 instead of a boolean.
11141 * remote.c (remote_get_trace_status): Initialize "filename"
11142 field with NULL instead of 0.
11146 * remote.c: Fix a typo.
11150 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11154 * utils.c (savestring): Don't #undef it. Move function to
11155 common/common-utils.c.
11156 * common/common-utils.c: Include gdb_string.h.
11157 (savestring): Move here from utils.c.
11158 * common/common-utils.h (savestring): Declare.
11162 * utils.c (savestring): Rename parameter 'size' to 'len'.
11167 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11168 (aarch64_inferior_data, struct aarch64_inferior_data):
11170 (struct aarch64_process_info): New.
11171 (aarch64_process_list): New global.
11172 (aarch64_find_process_pid, aarch64_add_process)
11173 (aarch64_process_info_get): New functions.
11174 (aarch64_inferior_data_get): Delete.
11175 (aarch64_process_info_get): New function.
11176 (aarch64_forget_process): New function.
11177 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11178 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11179 aarch64_get_debug_reg_state.
11180 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11181 instead of linux_nat_iterate_watchpoint_lwps.
11182 (aarch64_linux_new_fork): New function.
11183 (aarch64_linux_child_post_startup_inferior): Use
11184 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11185 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11186 (aarch64_linux_remove_hw_breakpoint)
11187 (aarch64_handle_aligned_watchpoint)
11188 (aarch64_handle_unaligned_watchpoint)
11189 (aarch64_linux_insert_watchpoint)
11190 (aarch64_linux_remove_watchpoint)
11191 (aarch64_linux_stopped_data_address): Adjust to pass the current
11192 process id to aarch64_debug_reg_state.
11193 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11194 linux_nat_new_fork hook, and aarch64_forget_process as
11195 linux_nat_forget_process hook; remove the call to
11196 register_inferior_data_with_cleanup.
11200 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11201 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11207 * tracepoint.h (validate_trace_state_variable_name): Declare.
11208 * tracepoint.c (validate_trace_state_variable_name): New.
11209 (trace_variable_command): Parse the trace state variable's name
11210 without using parse_expression. Do several validations.
11211 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11212 trace state variable's name with parse_expression. Validate it.
11216 * infcmd.c (breakpoint_proceeded): Remove it.
11220 * tracepoint.c (end_actions_pseudocommand): Make it static.
11221 (while_stepping_pseudocommand): Likewise.
11222 * tracepoint.h (end_actions_pseudocommand): Remove the
11224 (while_stepping_pseudocommand): Likewise.
11228 * cli/cli-decode.c (help_cmd): Remove the declaration of
11230 (help_all): Likewise.
11234 * amd64-linux-nat.c (update_debug_registers_callback):
11236 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11238 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11239 i386_debug_reg_state.
11240 (amd64_linux_new_fork): New function.
11241 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11242 linux_nat_new_fork hook, and i386_forget_process as
11243 linux_nat_forget_process hook.
11244 * i386-linux-nat.c (update_debug_registers_callback):
11246 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11248 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11249 i386_debug_reg_state.
11250 (i386_linux_new_fork): New function.
11251 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11252 linux_nat_new_fork hook, and i386_forget_process as
11253 linux_nat_forget_process hook.
11254 * i386-nat.c (i386_init_dregs): Delete.
11255 (i386_inferior_data, struct i386_inferior_data):
11257 (struct i386_process_info): New.
11258 (i386_process_list): New global.
11259 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11261 (i386_inferior_data_get): Delete.
11262 (i386_process_info_get): New function.
11263 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11264 (i386_forget_process): New function.
11265 (i386_cleanup_dregs): Rewrite.
11266 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11267 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11268 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11269 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11270 to i386_debug_reg_state.
11271 (i386_use_watchpoints): Don't register inferior data.
11272 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11274 (i386_forget_process): Declare.
11275 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11276 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11277 New static globals.
11278 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11279 (add_initial_lwp): New, factored out from ...
11280 (add_lwp): ... this. Don't check the number of lwps before
11281 calling linux_nat_new_thread.
11282 (linux_nat_iterate_watchpoint_lwps): Delete.
11283 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11284 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11286 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11288 (linux_nat_kill, linux_nat_mourn_inferior): Call
11289 linux_nat_forget_process.
11290 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11291 (linux_nat_forget_process): New functions.
11292 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11294 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11295 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11297 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11298 (linux_nat_forget_process): New declarations.
11300 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11301 (amd64fbsd_mourn_inferior): New function.
11302 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11303 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11307 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11312 * aarch64-linux-nat.c (debug_reg_change_callback)
11313 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11318 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11324 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11329 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11331 (classify_inner_name): Remove 'first_name' argument, add
11332 'context'. Remove unused variable.
11333 (yylex): Explicitly maintain the context type. Exit loop earlier
11334 if NAME result is seen.
11338 * amd64-darwin-tdep.c: Add (C) after Copyright.
11339 * cli/cli-cmds.h: Ditto.
11340 * cli/cli-decode.c: Ditto.
11341 * cli/cli-decode.h: Ditto.
11342 * cli/cli-dump.c: Ditto.
11343 * cli/cli-dump.h: Ditto.
11344 * cli/cli-interp.c: Ditto.
11345 * cli/cli-logging.c: Ditto.
11346 * cli/cli-script.c: Ditto.
11347 * cli/cli-script.h: Ditto.
11348 * cli/cli-setshow.c: Ditto.
11349 * cli/cli-setshow.h: Ditto.
11350 * cli/cli-utils.c: Ditto.
11351 * cli/cli-utils.h: Ditto.
11352 * config/alpha/nm-osf3.h: Ditto.
11353 * config/djgpp/djconfig.sh: Ditto.
11354 * config/i386/nm-fbsd.h: Ditto.
11355 * config/i386/nm-i386gnu.h: Ditto.
11356 * config/nm-linux.h: Ditto.
11357 * config/nm-nto.h: Ditto.
11358 * config/rs6000/nm-rs6000.h: Ditto.
11359 * config/sparc/nm-sol2.h: Ditto.
11360 * darwin-nat-info.c: Ditto.
11363 * gdb-demangle.h: Ditto.
11364 * i386-darwin-nat.c: Ditto.
11365 * i386-darwin-tdep.c: Ditto.
11366 * linux-fork.h: Ditto.
11367 * m32c-tdep.c: Ditto.
11368 * microblaze-linux-tdep.c: Ditto.
11369 * microblaze-rom.c: Ditto.
11370 * microblaze-tdep.c: Ditto.
11371 * microblaze-tdep.h: Ditto.
11372 * mips-linux-tdep.h: Ditto.
11373 * ppc-ravenscar-thread.c: Ditto.
11374 * ppc-ravenscar-thread.h: Ditto.
11375 * prologue-value.c: Ditto.
11376 * prologue-value.h: Ditto.
11377 * ravenscar-thread.c: Ditto.
11378 * ravenscar-thread.h: Ditto.
11379 * sparc-ravenscar-thread.c: Ditto.
11380 * sparc-ravenscar-thread.h: Ditto.
11381 * tilegx-linux-tdep.c: Ditto.
11382 * unwind_stop_reasons.def: Ditto.
11383 * windows-nat.h: Ditto.
11384 * xtensa-linux-tdep.c: Ditto.
11385 * xtensa-xtregs.c: Ditto.
11386 * regformats/regdat.sh: Ditto.
11387 * regformats/regdef.h: Ditto.
11391 * break-catch-sig.c: Update copyright years.
11395 Add support for a destructor for ui_out data and use it to
11396 provide a ui_out destructor.
11397 * ui-out.h: Declare the new ui_out destructor.
11398 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11399 * ui-out.c (default_data_destroy): Add a default data destructor
11400 which does nothing.
11401 (default_ui_out_impl): Set the new data_destroy field to
11402 default_data_destroy
11403 (uo_data_destroy): Local function which invokes the data
11404 destructor if present.
11405 (clear_table): Local function which clears the table data of a
11407 (ui_out_destroy): Public function which frees a ui_out object.
11408 (ui_out_table_end): Use the new clear_table function.
11409 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11411 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11416 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11417 (printf_decfloat): New function. Broken out from ui_printf.
11418 Remove unnecessary code to shift the entire format string down.
11419 (printf_pointer): New function.
11420 (ui_printf): Code to print C strings, wide C strings, decfloats,
11421 and pointers moved to separate functions.
11425 * valops.c (value_assign): Handling bitfield offset in
11426 `lval_internalvar_component' case.
11430 * common/format.c (parse_format_string): Fix whitespace.
11434 * stack.c (return_command): Work around uninitialized variable
11439 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11440 number of the registers from 36 to 34.
11444 * NEWS: Mention new AArch64 native and target support.
11448 * MAINTAINERS (Write After Approval): Add myself.
11455 * aarch64-linux-nat.c: New file.
11456 * config/aarch64/linux.mh: New file.
11457 * configure.host: Add AArch64.
11458 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11462 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11463 disassemble command.
11467 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11468 set_gdbarch_fetch_tls_load_module_address.
11472 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11473 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11474 * value.c (struct_return_convention): New function.
11475 (using_struct_return): Implement in terms of struct_return_convention.
11476 * value.h (struct_return_convention): Declare.
11477 * stack.c (return_command): Allow successful overriding of the return
11478 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11482 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11483 outside of TRY_CATCH.
11487 * mi/mi-interp.c: Include "tracepoint.h".
11488 (mi_tsv_modified): Declare.
11489 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11490 (mi_interpreter_init): Call observer_attach_tsv_modified.
11491 (mi_tsv_modified): New.
11492 (mi_tsv_created, mi_tsv_deleted): Update.
11493 * tracepoint.c (trace_variable_command): Call
11494 observer_notify_tsv_modified if the initial value of tsv is
11496 (delete_trace_state_variable): Call
11497 observer_notify_tsv_deleted earlier.
11498 (trace_variable_command): Caller update.
11499 (create_tsv_from_upload): Likewise.
11500 * observer.sh: Declare "struct trace_state_variable".
11502 * NEWS: Mention the new MI notification "=tsv-modified".
11506 * completer.c (location_completer): Fix typo in comment.
11510 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11515 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11516 Refactor if statement to avoid trailing || operator.
11520 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11524 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11525 * configure.host: Add powerpc*-*-freebsd* target.
11526 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11527 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11528 * config/powerpc/fbsd.mh: New file.
11534 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11535 (struct elf_internal_linux_prpsinfo): Forward declare.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11537 * linux-tdep.c: Include `cli/cli-utils.h'.
11538 (linux_fill_prpsinfo): New function.
11539 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11540 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11541 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11542 depending on gdbarch pointer bitness.
11543 * ppc-linux-tdep.c: Include elf-bfd.h.
11544 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11552 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11559 * aarch64-newlib-tdep.c: New file.
11560 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11562 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11563 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11564 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11565 * osabi.c (gdb_osabi_names): Add "Newlib".
11572 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11573 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11574 * aarch64-linux-tdep.c: New file.
11575 * aarch64-linux-tdep.h: New file.
11576 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11577 * configure.tgt: Add aarch64-none-linux-gnu.
11584 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11585 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11586 (ALLDEPFILES): Add aarch64-tdep.c.
11587 * aarch64-tdep.c: New file.
11588 * aarch64-tdep.h: New file.
11589 * configure.tgt: Add AArch64.
11590 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11591 (aarch64-expedite): New definition.
11592 * features/aarch64-core.xml: New file.
11593 * features/aarch64-fpu.xml: New file.
11594 * features/aarch64-without-fpu.c: New file (generated).
11595 * features/aarch64-without-fpu.xml: New file.
11596 * features/aarch64.c: New file (generated).
11597 * features/aarch64.xml: New file.
11598 * regformats/aarch64-without-fpu.dat: New file (generated).
11599 * regformats/aarch64.dat: New file (generated).
11603 * contrib/expect-read1.c: New file.
11604 * contrib/expect-read1.sh: New file.
11608 * dwarf2read.c (file_file_name): New function with code from
11610 (file_full_name): Move most of the code to file_file_name.
11611 (macro_start_file): Rename variable full_name to file_name and use
11612 file_file_name for it. Add comp_dir parameter to new_macro_table.
11613 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11614 macro_source_file->filename access by macro_source_fullname call.
11615 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11617 * macrotab.c (struct macro_table): New field comp_dir.
11618 (macro_include): New variables link_fullname and source_fullname.
11619 Replace any macro_source_file->filename access by macro_source_fullname
11621 (macro_lookup_inclusion): Remove the partial filenames checking code.
11622 (check_for_redefinition): New variables source_fullname and
11623 found_key_fullname. Replace any macro_source_file->filename access by
11624 macro_source_fullname call.
11625 (macro_undef): New variables source_fullname and key_fullname. Replace
11626 any macro_source_file->filename access by macro_source_fullname call.
11627 (macro_lookup_definition): New variables retval and source_fullname.
11628 Replace any macro_source_file->filename access by macro_source_fullname
11630 (foreach_macro): New variable key_fullname. Replace any
11631 macro_source_file->filename access by macro_source_fullname call.
11632 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11633 macro_source_file->filename access by macro_source_fullname call.
11634 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11635 (macro_source_fullname): New function.
11636 * macrotab.h (struct macro_source_file): Extent the filename field
11638 (new_macro_table): New parameter comp_dir, add a comment for it.
11639 (macro_source_fullname): new declaration.
11643 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11644 this_real_name to outer block. Use it also for
11645 compare_filenames_for_search.
11646 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11647 with dw2_get_real_path for file_matcher, considering also
11648 BASENAMES_MAY_DIFFER.
11649 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11653 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11654 to the file_matcher parameter. Pass 0 to it.
11655 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11656 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11657 NULL psymtab_to_fullname result.
11658 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11659 an expected filename instead.
11660 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11661 file_matcher parameter. Call also psymtab_to_fullname, after newly
11662 considering BASENAMES_MAY_DIFFER.
11663 * source.c (rewrite_source_path): Remove static.
11664 * source.h (rewrite_source_path): New declaration.
11665 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11666 the expand_symtabs_matching field. Comment it.
11667 * symtab.c (file_matches): New function comment. Add parameter
11668 basenames, implement it.
11669 (search_symbols_file_matches): Add basenames parameter. Update the
11670 file_matches caller.
11671 (search_symbols): Match FILES also against symtab_to_fullname.
11672 Optimize it for BASENAMES_MAY_DIFFER.
11676 * source.c (print_source_lines_base): Print for TUI also "fullname".
11677 * tui/tui-data.c (init_content_element): Change tui_locator_element
11678 field to full_name.
11679 * tui/tui-data.h (struct tui_locator_element): Likewise.
11680 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11681 tui_update_locator_filename calls to tui_update_locator_fullname.
11682 Replace symtab->filename refererence by symtab_to_fullname call.
11683 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11684 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11685 field to full_name. Replace symtab->filename refererence by
11686 symtab_to_fullname call.
11687 (tui_show_symtab_source): Rename parameter to fullname. Change
11688 tui_locator_element field to full_name.
11689 * tui/tui-stack.c: Include source.h.
11690 (tui_set_locator_filename): Rename the declaration to ...
11691 (tui_set_locator_fullname): ... here. Rename its parameter to
11692 fullname, updates its comment.
11693 (tui_set_locator_info): Rename its parameter to fullname.
11694 (tui_set_locator_filename): Rename the definition to ...
11695 (tui_set_locator_fullname): ... here. Rename its parameter to
11696 fullname, updates its comment. Change tui_locator_element field to
11698 (tui_set_locator_info): Rename its parameter to fullname.
11699 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11700 (tui_update_locator_filename): Rename to ...
11701 (tui_update_locator_fullname): ... here. Rename callee to
11702 tui_set_locator_fullname.
11703 (tui_show_frame_info): Replace symtab->filename refererence by
11704 symtab_to_fullname call.
11705 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11706 (tui_update_locator_fullname): ... here.
11707 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11708 tui_update_locator_fullname. Replace symtab->filename refererence by
11709 symtab_to_fullname call.
11710 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11711 Rename the callee to tui_update_locator_fullname.
11712 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11716 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11717 by symtab_to_filename_for_display calls.
11718 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11719 (clear_command): New variable sal_fullname, initialize it. Replace
11720 compare_filenames_for_search by filename_cmp with sal_fullname.
11721 (say_where, update_static_tracepoint): Replace symtab->filename
11722 refererences by symtab_to_filename_for_display calls.
11723 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11725 * dwarf2read.c: Include source.h.
11726 (fixup_go_packaging): Replace symtab->filename refererences by
11727 symtab_to_filename_for_display calls.
11728 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11729 Replace symtab->filename refererences by symtab_to_filename_for_display
11731 (create_sals_line_offset, convert_linespec_to_sals): New variable
11732 fullname, initialize it, replace symtab->filename reference by the
11734 * linux-fork.c: Include source.h.
11735 (info_checkpoints_command): Replace symtab->filename refererences by
11736 symtab_to_filename_for_display calls.
11737 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11738 by symtab_to_filename_for_display calls.
11739 * mdebugread.c: Include source.h.
11740 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11741 symtab_to_filename_for_display calls.
11742 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11743 (mi_cmd_file_list_exec_source_files): Likewise.
11744 * printcmd.c: Include source.h.
11745 (build_address_symbolic): Replace symtab->filename refererences by
11746 symtab_to_filename_for_display calls.
11747 * psymtab.c (partial_map_symtabs_matching_filename)
11748 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11749 with psymtab_to_fullname.
11750 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11751 by symtab_to_filename_for_display calls.
11752 (stpy_get_filename): New variable filename, initialize it, use instead
11753 of symtab->filename refererences.
11754 (salpy_str): Make variable filename const char *. Replace
11755 symtab->filename refererences by symtab_to_filename_for_display calls.
11756 * skip.c: Include source.h and filenames.h.
11757 (skip_file_command): Remove const from the symtab variable. Replace
11758 symtab->filename refererences by symtab_to_fullname call.
11759 (function_name_is_marked_for_skip): New variables searched_for_fullname
11760 and fullname. Use them to search also with symtab's fullname.
11761 * source.c (find_source_lines): Replace symtab->filename refererences
11762 by symtab_to_filename_for_display calls.
11763 (print_source_lines_base): New variable filename, use it instead of
11764 symtab->filename. Replace symtab->filename refererences by
11765 symtab_to_filename_for_display calls.
11766 (line_info, forward_search_command): Replace symtab->filename
11767 refererences by symtab_to_filename_for_display calls.
11768 (reverse_search_command): Replace symtab->filename refererences by
11769 symtab_to_filename_for_display calls. New variable filename for it.
11770 * stack.c (frame_info): Likewise.
11771 * symmisc.c: Include source.h.
11772 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11773 (maintenance_info_symtabs): Replace symtab->filename refererences by
11774 symtab_to_filename_for_display calls.
11775 * symtab.c (iterate_over_some_symtabs): Call
11776 compare_filenames_for_search also with symtab_to_fullname.
11777 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11778 symtab->filename refererences by symtab_to_filename_for_display calls.
11779 (find_line_symtab): Replace symtab->filename refererences by
11780 symtab_to_filename_for_display calls.
11781 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11782 (print_symbol_info): Make the last parameter const char *. New
11783 variable s_filename. Use it in the function.
11784 (symtab_symbol_info): Make the last_filename variable const char *.
11785 Replace symtab->filename refererences by symtab_to_filename_for_display
11787 (rbreak_command): New variable fullname. Use it. Replace
11788 symtab->filename refererence by symtab_to_filename_for_display call.
11789 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11790 (print_one_static_tracepoint_marker): Replace symtab->filename
11791 refererences by symtab_to_filename_for_display calls.
11792 * tui/tui-source.c (tui_set_source_content): New variables filename and
11793 s_filename. Replace symtab->filename refererences by this variable.
11794 Replace other symtab->filename refererences by
11795 symtab_to_filename_for_display calls.
11800 Add a new variable that controls a way in which filenames are
11802 * NEWS (set filename-display): New entry.
11803 * source.c (filename_display_basename, filename_display_relative)
11804 (filename_display_absolute, filename_display_kind_names)
11805 (filename_display_string, show_filename_display_string)
11806 (symtab_to_filename_for_display): New.
11807 (_initialize_source): Added initialization of 'filename-display'
11809 * source.h (symtab_to_filename_for_display): Added declaration.
11810 * stack.c (print_frame): Added new variable and calling of a new
11811 function and condition with this variable. Changed third argument of
11812 calling of a function.
11816 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11817 Rename field reference filename to fullname.
11818 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11819 fullname. New comment for it.
11820 * tui/tui-source.c (tui_set_source_content): Rename field reference
11821 filename to fullname. Initialize field by symtab_to_fullname now.
11822 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11823 reference filename to fullname. Use symtab_to_fullname during
11829 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11830 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11831 filename to fullname. Rename variable this_name to this_fullname.
11832 Lowercase FILENAME_CMP call.
11833 (dw2_find_symbol_file): New comment for the returned string.
11834 (dwarf2_gdb_index_functions): Rename the function to
11835 dw2_expand_symtabs_with_fullname.
11836 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11837 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11839 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11840 * symfile.h (struct quick_symbol_functions): Rename field
11841 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11842 parameter filename to fullname. Document returned string meaning for
11844 * symtab.c (find_line_symtab): Rename the called function to
11845 expand_symtabs_with_fullname.
11850 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11851 call of filename_cmp with compare_filenames_for_search.
11852 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11853 is_abs, unify the call of FILENAME_CMP with
11854 compare_filenames_for_search. New gdb_asserts for real_path and name.
11855 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11856 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11857 * symfile.h (struct quick_symbol_functions): Extend the comment for
11858 map_symtabs_matching_filename.
11859 * symtab.c (compare_filenames_for_search): Remove the function comment
11860 relative path requirement. Handle absolute filenames, with a comment.
11861 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11862 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11863 real_path and name. Unify the call of compare_filenames_for_search
11865 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11870 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11871 source_file references by symtab field references. Remove variables
11873 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11874 (clear_command, say_where): Replace bp_location field source_file
11875 references by symtab field references.
11876 (bp_location_dtor): Remove the source_file reference.
11877 (update_static_tracepoint): Replace bp_location field source_file
11878 references by symtab field references.
11879 (breakpoint_free_objfile): New function.
11880 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11881 Replace the field source_file by field symtab, extend its comment.
11882 (breakpoint_free_objfile): New declaration.
11883 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11884 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11885 field source_file references by symtab field references.
11889 Replace xfullpath calls by gdb_realpath calls.
11890 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11892 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11893 Remove it from the iterate_over_some_symtabs call.
11894 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11895 Remove it from the dw2_map_expand_apply calls, remove a block handling
11897 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11898 Remove it from the iterate_over_some_symtabs call.
11899 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11900 Remove it from the partial_map_expand_apply calls, remove a block
11901 handling it. Drop gdb_realpath call and cleanups from the real_path
11903 * source.c (openp): Drop the comment part about xfullpath. Replace
11904 xfullpath calls by gdb_realpath calls.
11905 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11906 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11907 from method map_symtabs_matching_filename and its comment.
11908 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11910 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11911 remove it also from the function comment, remove a block handling it.
11912 Drop gdb_realpath call and cleanups from the real_path handling.
11913 (iterate_over_symtabs): Drop variable full_path and its use.
11914 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11915 * utils.c (xfullpath): Remove.
11916 * utils.h (xfullpath): Remove.
11920 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11921 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11922 (ALLDEPFILES): Add ppc64-tdep.c.
11923 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11924 ppc64-tdep.o to gdb_target_obs.
11925 * ppc64-tdep.h: New file.
11926 * ppc64-tdep.c: New file.
11927 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11928 ppc-linux-tdep.c to here.
11929 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11930 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11931 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11932 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11933 from ppc-linux-tdep.c to here.
11934 (ppc64_convert_from_func_ptr_addr): Rename from
11935 ppc64_linux_convert_from_func_ptr_addr to
11936 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11939 (read_insn): Move from ppc-linux-tdep.c to here.
11940 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11941 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11942 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11943 Removed above functions.
11944 (ppc_linux_init_abi): Adjust.
11948 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11952 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11956 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11957 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11961 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11962 files with no separate debug info.
11963 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11964 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11965 only for files with no separate debug info.
11969 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11971 (struct jit_program_space_data): Rename from jit_inferior_data.
11973 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11974 Change return type. Attach data to program space.
11975 (jit_program_space_data_cleanup): Rename from
11976 jit_inferior_data_cleanup; change argument type.
11977 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11979 (jit_register_code): Update.
11980 (jit_update_inferior_cache): Remove.
11981 (jit_breakpoint_deleted): Get jit data from the location's program
11983 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11984 'ps_data', change type.
11985 (jit_inferior_init, jit_breakpoint_re_set_internal)
11986 (jit_event_handler): Update.
11987 (free_objfile_data): Get data from objfile's program space.
11988 (_initialize_jit): Update.
11993 * jit.c (struct jit_inferior_data) <cached_code_address,
11994 jit_breakpoint>: New fields.
11995 (jit_breakpoint_re_set_internal): Fix logging. Only create
11996 breakpoint if cached address has changed.
11997 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11999 (_initialize_jit): Register breakpoint deleted observer.
12003 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12004 (save_infcall_suspend_state): Ifdef out unused inf.
12005 (restore_infcall_suspend_state): Ifdef out unused inf.
12006 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12007 (jit_frame_sniffer): Remove unused inf_data.
12011 * c-exp.y (classify_inner_name): Remove unused type.
12012 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12013 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12015 (c_get_string): Remove unused kind.
12016 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12020 * charset.c (intermediate_encoding): Remove unused i.
12021 * completer.c (signal_completer): Remove unused i.
12022 * continuations.c (discard_my_continuations_1): Remove unused
12024 * corelow.c (core_close): Remove unuseD name.
12025 (get_core_siginfo): Remove unused pid.
12026 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12028 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12029 (loclist_describe_location): Remove unused first.
12030 * event-top.c (command_line_handler): Remove unused got_eof.
12031 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12032 (resize_section_table): Remove unused old_value.
12033 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12034 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12035 * i386-tdep.c (i386_process_record): Remove unused rex.
12036 * infcmd.c (get_return_value): Remove unused uiout.
12037 * jv-lang.c (type_from_class): Remove unused is_array.
12038 * jv-valprint.c (java_val_print): Remove unused i.
12039 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12040 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12041 * m2-typeprint.c (m2_print_type): Remove unused code.
12042 * macroexp.c (get_character_constant): Remove unused body_start.
12043 (macro_stringify): Remove unused result.
12044 * objc-lang.c (find_methods): Remove unused gdbarch.
12045 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12046 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12047 * stack.c (print_frame_args): Remove unused summary.
12048 * thread.c (thread_apply_command): Remove unused p.
12049 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12050 * valops.c (search_struct_method): Remove unused skip.
12051 * valprint.c (generic_val_print): Remove unused byte_order.
12052 * varobj.c (varobj_update): Remove unused changed.
12053 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12054 (alias_command): Remove unused c.
12055 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12056 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12058 (mi_cmd_data_write_memory): Remove unused word_format.
12059 (mi_cmd_data_write_memory_bytes): Remove unused r.
12060 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12062 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12063 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12068 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12069 * symtab.c (iterate_over_symtabs): Remove unused s.
12070 (find_pc_sect_symtab): Remove unused pspAce.
12071 (find_pc_sect_line): Remove unused alt_symtab.
12072 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12073 (completion_list_add_name): Remove unused newsize.
12078 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12083 * target.c (target_read_string): Remove unused origlen.
12087 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12088 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12089 * ax-general.c (ax_print): Remove unused is_float.
12090 * blockframe.c (block_innermost_frame): Remove unused start, end.
12091 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12095 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12096 (svr4_read_so_list): Remove unused lmo.
12097 * solib-target.c (solib_target_relocate_section_addresses): Remove
12102 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12106 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12107 * utils.c (gnu_debuglink_crc32): Remove.
12108 * utils.h (gnu_debuglink_crc32): Don't declare.
12112 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12113 (read_structure_type, read_enumeration_type): Remove cast.
12117 * dwarf2read.c (read_namespace_type): Remove cast.
12118 (read_typedef): Likewise.
12122 * dwarf2read.c (free_dwo_file): Remove assert.
12126 * value.c (deprecated_set_value_modifiable): Remove.
12127 * value.h (deprecated_set_value_modifiable): Remove.
12131 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12132 to addresses from dwo files.
12136 * valops.c (find_overload_match): Remove unused argument 'lax'.
12137 * value.h: Remove unused argument 'lax' from the declaration of
12138 find_overload_match.
12139 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12140 to find_overload_match.
12141 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12142 argument to find_overload_match.
12146 * dwarf2read.c (processing_has_namespace_info): Remove.
12147 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12148 (process_die, read_func_scope, dwarf2_start_symtab)
12149 (new_symbol_full): Update.
12153 * cp-namespace.c (cp_set_block_scope): Remove.
12154 * cp-support.h (cp_set_block_scope): Remove.
12155 * dbxread.c: Include block.h.
12156 (cp_set_block_scope): New function.
12157 (process_one_symbol): Update.
12158 * dwarf2read.c (read_func_scope): Use block_set_scope.
12162 * remote.c (add_current_inferior_and_thread): Tweak comment.
12166 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12167 (cp_add_using_directive): Add 'copy_names' argument.
12168 * cp-support.h (cp_add_using_directive): Update.
12169 (struct using_direct) <import_src, import_dest, alias,
12170 declaration>: Now const.
12171 * dwarf2read.c (read_import_statement): Use obconcat.
12172 Don't copy names passed to cp_add_using_directive.
12176 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12180 * remote.c (stop_reply_extract_thread): New.
12181 (add_current_inferior_and_thread): New parameter 'wait_status'.
12183 (remote_start_remote): Pass wait status to
12184 add_current_inferior_and_thread.
12185 (extended_remote_run): Update comment.
12186 (extended_remote_create_inferior_1): Pass wait status to
12187 add_current_inferior_and_thread.
12192 * valarith.c (value_vector_widen): New function for replicating a
12193 scalar into a vector.
12194 (value_binop): Use value_vector_widen to widen scalar to vector
12195 rather than casting, this better matches gcc C behaviour.
12196 * valops.c (value_casst): Update logic for casting between vector
12197 types, and for casting from scalar to vector, try to match gcc C
12199 * value.h (value_vector_widen): Declare.
12200 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12201 function, handle special case for casting scalar to vector.
12202 (opencl_relop): Use opencl_value_cast.
12203 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12204 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12205 in order to use opencl_value_cast.
12209 * event-loop.c: Include "queue.h".
12210 (gdb_event_p): New typedef.
12211 (DECLARE_QUEUE_P): Use.
12212 (DEFINE_QUEUE_P): Use.
12213 (async_queue_event): Remove.
12214 (gdb_event_xfree): New.
12215 (initialize_event_loop): New.
12216 (process_event): Use QUEUE macros.
12217 (event_queue): Remove.
12218 (gdb_wait_for_event): Caller update.
12219 (check_async_event_handlers): Likewise.
12220 (poll_timers): Likewise.
12221 * event-loop.h (initialize_event_loop): Declare.
12222 * event-loop.c (gdb_event_xfree): New.
12223 * top.c (gdb_init): Call initialize_event_loop.
12227 * event-loop.c (async_queue_event): Remove one parameter
12228 'position'. Remove code handling 'position' == TAIL.
12229 (gdb_wait_for_event): Caller update.
12230 (check_async_event_handlers): Caller update.
12231 (poll_timers): Caller update.
12232 * event-loop.h (enum queue_position): Remove.
12236 * MAINTAINERS: Update my email.
12240 * main.c (print_gdb_help): Remove "--epoch" from the help
12245 * symtab.c (skip_prologue_using_sal): Consider a file
12246 change the same as an increased line number
12250 * MAINTAINERS (Write After Approval): Add myself to the list.
12254 * ada-lang.h (ada_decode_symbol): Make return type const.
12255 * ada-lang.c (ada_decode_symbol): Likewise.
12259 * linespec.c (find_linespec_symbols): Make static.
12263 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12264 type on float conversion for complex type.
12268 Add a new class gdb.Architecture which exposes GDB's
12269 internal representation of architecture via GDB Python API.
12270 * Makefile.in: Add entries corresponding to the new file
12272 * NEWS (Python Scripting): Add entries for the new class
12273 gdb.Architecture and the new method gdb.Frame.architecture.
12274 * python/py-arch.c: Implement gdb.Architecture class.
12275 * python/py-frame.c (frapy_arch): Implement the method
12276 gdb.Frame.architecture().
12277 (frame_object_methods): Add 'architecture' to the method table.
12278 * python/python-internal.h: Add declarations of new utility
12280 * python/python.c (_initialize_python): Initialize
12281 gdb.Architecture class.
12285 Work around binutils/15021.
12286 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12287 type_unit_group out of union s. All uses updated.
12288 (read_index_from_section): Watch for index version 8.
12289 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12290 an imported symtab.
12291 (write_psymtabs_to_index): Increment version number to 8.
12295 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12300 * annotate.c (annotate_breakpoints_changed): Rename to ...
12301 (annotate_breakpoints_invalid): ... this. Make static.
12302 (breakpoint_changed): Adjust.
12303 (_initialize_annotate): Always install the observers. Install a
12304 "breakpoint_created" observer.
12305 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12306 * breakpoint.c (set_breakpoint_condition)
12307 (breakpoint_set_commands, do_map_commands_command)
12308 (init_raw_breakpoint, clear_command, set_ignore_count)
12309 (enable_breakpoint_disp): No longer call
12310 annotate_breakpoints_changed.
12314 * annotate.c: Include "inferior.h".
12315 (frames_invalid_emitted)
12316 (breakpoints_invalid_emitted): New globals.
12317 (async_background_execution_p): New function.
12318 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12319 emitting the annotation if it has already been emitted.
12320 (annotate_display_prompt): New function.
12321 * annotate.h (annotate_display_prompt): New declaration.
12322 * event-top.c: Include annotate.h.
12323 (display_gdb_prompt): Call annotate_display_prompt.
12327 * annotate.c (ignore_count_changed): Delete.
12328 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12329 (annotate_ignore_count_change): Delete.
12330 (annotate_stopped): Don't emit a delayed breakpoints-changed
12332 * annotate.h (annotate_ignore_count_change): Delete.
12333 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12334 annotate_ignore_count_change.
12338 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12339 require_rvalue for a register location.
12343 * breakpoint.c (print_one_breakpoint_location): Add MI
12344 field 'thread-groups' when printing a breakpoint.
12345 (output_thread_groups): New function.
12349 * python/lib/gdb/commands/explore.py
12350 (CompoundExplorer.explore_expr): Correct the name of a method
12352 (ExploreTypeCommand.invoke): Add a missing 'return'.
12356 * gdb_obstack.h (obconcat): Move declaration here, from...
12357 * symfile.h (obconcat): ... here.
12358 * gdb_obstack.c: New file.
12359 (obconcat): Move from...
12360 * symfile.c (obconcat): ... here.
12361 * Makefile.in (SFILES): Add gdb_obstack.c.
12362 (COMMON_OBS): Add gdb_obstack.o.
12366 * symfile.h (obsavestring): Don't declare.
12367 * symfile.c (obsavestring): Remove.
12368 * ada-exp.y: Use obstack_copy0, not obsavestring.
12369 * ada-lang.c: Use obstack_copy0, not obsavestring.
12370 * coffread.c: Use obstack_copy0, not obsavestring.
12371 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12372 * dbxread.c: Use obstack_copy0, not obsavestring.
12373 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12374 * jit.c: Use obstack_copy0, not obsavestring.
12375 * mdebugread.c: Use obstack_copy0, not obsavestring.
12376 * psymtab.c: Use obstack_copy0, not obsavestring.
12377 * stabsread.c: Use obstack_copy0, not obsavestring.
12378 * xcoffread.c: Use obstack_copy0, not obsavestring.
12382 * dwarf2read.c (fixup_go_packaging): Save package name
12383 on objfile obstack.
12384 * gdbtypes.c (init_type): Don't copy name.
12388 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12390 (struct attribute) <u.str>: Now const.
12391 (struct fnfieldlist) <name>: Now const.
12392 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12393 (partial_die_parent_scope): Make return type const.
12394 (partial_die_full_name, add_partial_symbol): Update.
12395 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12397 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12398 (read_file_scope, read_func_scope, dwarf2_add_field)
12399 (dwarf2_add_member_fn, read_structure_type)
12400 (process_enumeration_scope, read_array_type, read_module_type)
12401 (read_base_type, read_subrange_type): Update.
12402 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12403 (new_symbol_full, guess_full_die_structure_name): Update.
12404 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12405 (dwarf2_name): Return const type.
12406 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12411 * gdbtypes.c (init_type): Make 'name' const.
12412 * gdbtypes.h (init_type): Update.
12416 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12417 (start_symtab): Make 'name' and 'dirname' const. Use
12418 set_last_source_file.
12419 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12420 (last_source_file): Define. Now static.
12421 (set_last_source_file, get_last_source_file): New functions.
12422 * buildsym.h (last_source_file): Don't declare.
12423 (start_symtab): Update.
12424 (set_last_source_file, get_last_source_file): Declare.
12425 * coffread.c (complete_symtab): Use set_last_source_file.
12426 (coff_end_symtab): Likewise.
12427 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12428 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12429 set_last_source_file.
12430 (process_one_symbol): Use get_last_source_file.
12431 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12432 (psymtab_to_symtab_1): Use get_last_source_file.
12433 * xcoffread.c (process_linenos): Use get_last_source_file.
12434 (complete_symtab): Use set_last_source_file.
12435 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12436 (scan_xcoff_symtab): Use set_last_source_file.
12440 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12441 (symbol_set_names): Remove casts. Handle field const-ness.
12445 * dwarf2read.c (new_symbol_full): Remove cast.
12446 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12447 * symtab.h (symbol_set_demangled_name): Update.
12451 * main.c (captured_main): Call bfd_init.
12455 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12456 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12457 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12462 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12466 Fix gdb.fortran/common-block.exp crash in PIE mode.
12467 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12469 * f-valprint.c (info_common_command_for_block): Expect
12470 LOC_COMMON_BLOCK in gdb_assert.
12471 * symtab.h (struct general_symbol_info): Update comment for the
12472 common_block member.
12473 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12474 (enum address_class): New member LOC_COMMON_BLOCK.
12478 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12483 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12484 Call require_rvalue.
12488 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12489 (dbx_read_symtab): New declaration.
12490 (dbx_psymtab_to_symtab): Delete.
12491 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12492 Rename parameter PST to SELF. Exchanged two parameters.
12493 (start_psymtab): Caller update.
12494 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12495 (dwarf2_read_symtab): New declaration.
12496 (dwarf2_psymtab_to_symtab): Delete.
12497 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12498 Rename parameter PST to SELF. Exchanged two parameters.
12499 (create_partial_symtab): Caller update.
12500 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12501 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12502 Rename parameter PST to SELF. Exchanged two parameters.
12503 (parse_partial_symbols, new_psymtab): Caller update.
12504 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12506 * psymtab.c (psymtab_to_symtab): Caller update.
12507 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12508 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12509 Rename parameter PST to SELF. Exchanged two parameters.
12510 (xcoff_start_psymtab): Caller update.
12514 * infrun.c (proceed): Rename local variable 'oneproc' to
12519 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12520 (dw2_build_type_unit_groups): Delete. All uses updated.
12522 * symtab.h (struct symbol_search): Add comment.
12526 * symtab.c (compare_filenames_for_search): New comment for
12531 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12535 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12536 initialize it by existing make_cleanup. Call new do_cleanups.
12540 * cp-abi.c (cp_abi_completer): New function.
12541 (_initialize_cp_abi): Set completer for "set cp-abi".
12545 * mem-break.c: Remove obsolete comment.
12546 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12550 * jit.c (jit_reader_load_command): Interpret the jit reader name
12551 as an absolute path if it begins with a forward slash.
12557 * jit.c (finalize_symtab): Ensure that only the global block has a
12562 * acinclude.m4: Include ../config/plugins.m4,
12563 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12564 * Makefile.in (aclocal_m4_deps): Update.
12565 * aclocal.m4: Renegerate.
12569 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12575 * NEWS: Add "catch signal".
12576 * breakpoint.c (base_breakpoint_ops): No longer static.
12577 (bpstat_explains_signal): New function.
12578 (init_catchpoint): No longer static.
12579 (base_breakpoint_explains_signal): New function.
12580 (base_breakpoint_ops): Initialize new field.
12581 * breakpoint.h (enum bpstat_signal_value): New.
12582 (struct breakpoint_ops) <explains_signal>: New field.
12583 (bpstat_explains_signal): Remove macro, declare as function.
12584 (base_breakpoint_ops, init_catchpoint): Declare.
12585 * break-catch-sig.c: New file.
12586 * inferior.h (signal_catch_update): Declare.
12587 * infrun.c (signal_catch): New global.
12588 (handle_syscall_event): Update for change to
12589 bpstat_explains_signal.
12590 (handle_inferior_event): Likewise. Always handle random signals
12592 (signal_cache_update): Check signal_catch.
12593 (signal_catch_update): New function.
12594 (_initialize_infrun): Initialize signal_catch.
12595 * Makefile.in (SFILES): Add break-catch-sig.c.
12596 (COMMON_OBS): Add break-catch-sig.o.
12600 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12601 (print_one_catch_solib, print_one_catch_syscall)
12602 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12607 * printcmd.c (current_display_number): Make it static.
12611 * infcmd.c (step_once): Don't check '!single_inst' as it was
12616 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12620 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12622 * command.h (add_setshow_string_noescape_cmd): Update.
12623 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12624 (complete_set_gnutarget): New function.
12625 (_initialize_core): Set the "set gnutarget" completer.
12630 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12631 (c_type_print_modifier): Likewise.
12632 * dwarf2read.c (read_tag_restrict_type): New function.
12633 (read_type_die_1): Handle DW_TAG_restrict_type.
12634 * gdbtypes.c (make_restrict_type): New function.
12635 (recursive_dump_type): Handle TYPE_RESTRICT.
12636 * gdbtypes.h (enum type_flag_values): Renumber.
12637 (enum type_instance_flag_value): Add
12638 TYPE_INSTANCE_FLAG_RESTRICT.
12639 (TYPE_RESTRICT): New macro.
12640 (make_restrict_type): Declare.
12645 * psymtab.c (struct psymtab_state): New.
12646 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12648 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12649 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12656 * remote.c (remote_threads_info): Make a copy of the reply from
12657 qfThreadInfo and use that instead of rs->buf.
12661 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12662 (dbx_psymtab_to_symtab): Likewise.
12663 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12664 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12665 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12669 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12670 make_cleanup_restore_current_language. Call set_language. Move
12671 OLD_CHAIN and INNER_CHAIN cleanups.
12672 * utils.c (do_restore_current_language)
12673 (make_cleanup_restore_current_language): New functions.
12674 * utils.h (make_cleanup_restore_current_language): New declaration.
12678 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12679 non-existing files.
12681 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12682 non-existing files if FILENAME is already absolute.
12686 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12687 fputs_filtered. Append trailing newline.
12692 * psymtab.c (init_psymbol_list): Clarify the comment.
12696 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12697 (update_dprintf_command_list): Assert that 'printf_line' is
12698 non-null. Remove condition check.
12703 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12705 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12707 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12711 * cp-abi.c (cplus_print_vtable): Don't return value from void
12713 * ada-lang.c (re_set_catch_assert): Ditto.
12717 * symfile.h (quick_symbol_functions): Delete member
12718 pre_expand_symtabs_matching. All uses removed.
12719 * dwarf2read.c (dw2_lookup_symbol): Implement.
12720 (dw2_do_expand_symtabs_matching): Delete.
12721 (dw2_pre_expand_symtabs_matching): Delete.
12722 (struct dw2_symtab_iterator): New type.
12723 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12724 (dw2_expand_symtabs_for_function): Rewrite.
12725 (dwarf2_gdb_index_functions): Update.
12726 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12727 (psym_functions): Update.
12731 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12732 * configure: Rebuild.
12733 * configure.ac: Add somread.o to the build if BFD has SOM
12735 * somread.c: Include som/aout.h, not syms.h.
12736 (som_symtab_read): Use som_external_symbol_dictionary_record.
12737 Unpack records manually.
12738 (_initialize_somread): Declare.
12742 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12743 Cast return_address to 64bits.
12747 * printcmd.c: Remove define of function output_command.
12748 * tracepoint.c: Remove extern of function output_command.
12749 * valprint.h: (output_command): New extern.
12753 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12755 (objc_language_defn): Use c_printchar, c_printstr,
12762 * ada-valprint.c (printstr, print_field_values): Remove
12764 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12766 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12768 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12769 * main.c (captured_main): Remove "epoch" argument.
12770 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12771 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12772 * p-valprint.c (pascal_object_print_value_fields): Remove
12774 * printcmd.c (print_command_1): Remove 'inspect' argument.
12775 (print_command, call_command): Update.
12776 (inspect_command): Remove.
12777 (_initialize_printcmd): Make "inspect" an alias for "print".
12778 * top.c (epoch_interface): Remove.
12779 * top.h (epoch_interface): Remove.
12780 * valprint.c (user_print_options): Update.
12781 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12782 * valprint.h (struct value_print_options) <inspect_it>: Remove
12787 * valprint.h (read_string): Add 'extern'.
12791 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12792 used to decide whether to define darwin_read_dyld_info or not.
12796 * main.c (relocate_gdb_directory): Avoid calling stat function
12801 * psymtab.c (fixup_psymbol_section): Update declaration.
12802 (fixup_psymbol_section): Remove code returning value.
12806 * symtab.h: Remove some out of date comments.
12807 (enum exception_event_kind): Move it ...
12808 * breakpoint.c: ... here.
12813 * darwin-nat.c (darwin_read_dyld_info): Only build if
12814 TASK_DYLD_INFO_COUNT is defined.
12815 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12816 TASK_DYLD_INFO_COUNT is defined.
12820 * symfile.h (struct ecoff_debug_hack): Remove.
12821 * objfiles.c: Don't include mdebugread.h.
12825 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12826 * configure.ac: Check for Mach-O support in BFD. Update
12828 * configure: Rebuild.
12832 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12833 * configure.ac: Use GDB_AC_CHECK_BFD.
12834 * configure: Rebuild.
12838 * MAINTAINERS: Update my email.
12842 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12846 * rs6000-nat.c (bss_data_overlap): New function.
12847 (vmap_symtab): Use it to adjust the .bss section's offset.
12851 Update year range in copyright notice of all files.
12855 * top.c (print_gdb_version): Update copyright year.
12857 For older changes see ChangeLog-2012.
12863 version-control: never