1 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3 * valops.c (value_must_coerce_to_target): Change return type to
5 * value.h (value_must_coerce_to_target): Likewise.
7 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
9 * breakpoint.c (is_hardware_watchpoint): Remove
11 (is_masked_watchpoint): Change return type to bool.
12 (is_tracepoint): Likewise.
13 (is_breakpoint): Likewise.
14 (is_hardware_watchpoint): Likewise.
15 (is_watchpoint): Likewise.
16 (is_no_memory_software_watchpoint): Likewise.
17 (is_catchpoint): Likewise.
18 (breakpoint_1): Make FILTER parameter's return type bool.
19 is_masked_watchpoint): Change return type to bool.
20 (save_breakpoints): Make FILTER parameter's return type bool.
21 * breakpoint.h (is_breakpoint): Change return type to bool.
22 (is_watchpoint): Likewise.
23 (is_catchpoint): Likewise.
24 (is_tracepoint): Likewise.
26 2019-07-10 Tom Tromey <tom@tromey.com>
28 * defs.h: Don't include gdbarch.h.
29 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
30 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
31 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
32 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
33 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
34 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
35 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
36 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
37 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
38 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
39 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
40 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
41 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
42 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
43 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
44 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
45 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
46 record-btrace.c, record.h, regcache-dump.c, regcache.h,
47 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
48 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
49 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
50 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
51 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
52 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
53 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
54 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
55 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
57 2019-07-10 Tom Tromey <tromey@adacore.com>
59 * ada-lang.h (is_ada_exception_catchpoint): Declare.
60 * breakpoint.c (init_ada_exception_breakpoint): Register as
62 (print_one_breakpoint_location, print_one_breakpoint): Use
63 is_ada_exception_catchpoint.
64 * ada-lang.c (class ada_catchpoint_location): Pass
65 bp_loc_software_breakpoint to bp_location constructor.
66 (is_ada_exception_catchpoint): New function.
68 2019-07-10 Tom Tromey <tromey@adacore.com>
70 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
72 (struct arm_exidx_entry): New method operator<.
73 (struct arm_exidx_data) <section_maps>: Change type.
74 (arm_exidx_data_free): Remove.
75 (arm_exidx_data_key): Change type. Move lower.
76 (arm_exidx_new_objfile): Update.
77 (arm_compare_exidx_entries): Remove.
78 (arm_find_exidx_entry, _initialize_arm_tdep)
80 2019-07-10 Tom Tromey <tromey@adacore.com>
82 * solib-spu.c (ocl_program_data_key): Change type.
83 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
86 2019-07-10 Tom Tromey <tromey@adacore.com>
88 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
89 (struct solib_aix_inferior_data) <library_list>: Change type.
90 (solib_aix_inferior_data_handle): Change type.
91 (get_solib_aix_inferior_data): Update.
92 (solib_aix_free_library_list): Remove.
93 (library_list_start_library): Update.
94 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
96 (solib_aix_get_library_list)
97 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
98 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
100 2019-07-10 Tom Tromey <tromey@adacore.com>
102 * solib-dsbt.c (struct dsbt_info): Add initializers.
103 (solib_dsbt_pspace_data): Change type.
104 (dsbt_pspace_data_cleanup): Remove.
105 (get_dsbt_info, _initialize_dsbt_solib): Update.
107 2019-07-10 Tom Tromey <tromey@adacore.com>
109 * spu-tdep.c (spu_overlay_data): Change type.
110 (spu_get_overlay_table, spu_overlay_new_objfile)
111 (_initialize_spu_tdep): Update.
113 2019-07-10 Tom Tromey <tromey@adacore.com>
115 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
117 (dbx_objfile_data_key): Change type and declare later.
118 (DBX_SYMFILE_INFO): Rewrite.
119 * dbxread.c (dbx_objfile_data_key): Change type.
120 (dbx_symfile_init): Update.
121 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
122 (coffstab_build_psymtabs, elfstab_build_psymtabs)
123 (stabsect_build_psymtabs, _initialize_dbxread): Update.
125 2019-07-10 Tom Tromey <tromey@adacore.com>
127 * jit.c (jit_program_space_key): Change type. Move lower.
128 (get_jit_program_space_data): Update.
129 (jit_program_space_data_cleanup): Remove.
130 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
132 (struct jit_program_space_data): Add initializers.
134 2019-07-10 Tom Tromey <tromey@adacore.com>
136 * solib-darwin.c (struct darwin_info): Add initializers.
137 (solib_darwin_pspace_data): Change type.
138 (darwin_pspace_data_cleanup): Remove.
139 (get_darwin_info, _initialize_darwin_solib): Update.
141 2019-07-10 Tom Tromey <tromey@adacore.com>
143 * remote-sim.c (struct sim_inferior_data): Add initializers,
144 constructor, and destructor.
145 (sim_inferior_data_key): Change type. Move lower.
146 (check_for_duplicate_sim_descriptor): Update.
147 (get_sim_inferior_data): Use new. Update.
148 (~sim_inferior_data_cleanup): Rename from
149 sim_inferior_data_cleanup. Simplify.
150 (gdbsim_close_inferior, simulator_command)
151 (sim_command_completer, _initialize_remote_sim): Update.
152 (next_pid, INITIAL_PID): Move earlier.
154 2019-07-10 Tom Tromey <tromey@adacore.com>
156 * python/python-internal.h (create_thread_object): Return
158 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
159 * python/py-inferior.c (struct threadlist_entry): Add
161 <thread_obj>: Now a gdbpy_ref.
162 (thread_to_thread_object): Update.
163 (add_thread_object): Use new.
164 (delete_thread_object): Use delete.
165 (infpy_threads): Update.
166 (py_free_inferior): Update. Construct "inf_obj" after acquiring
169 2019-07-10 Tom Tromey <tromey@adacore.com>
171 * valops.c (value_cast): Specialize error message for Ada.
173 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
175 * breakpoint.c (breakpoint_1): Update doc and parameter names.
177 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
179 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
180 bpstat_should_step): Return bool, adjust comments.
181 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
182 bpstat_should_step): Likewise.
184 2019-07-10 Alan Hayward <alan.hayward@arm.com>
186 * features/Makefile: Use feature target descriptions for Arm.
187 * features/arm/arm-core.c: Generate new file.
188 * features/arm/arm-fpa.c: Likewise.
189 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
190 * features/arm/arm-m-profile.c: Likewise.
191 * features/arm/arm-vfpv2.c: Likewise.
192 * features/arm/arm-vfpv3.c: Likewise.
193 * features/arm/xscale-iwmmxt.c: Likewise.
194 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
196 2019-07-10 Alan Hayward <alan.hayward@arm.com>
198 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
201 2019-07-10 Alan Hayward <alan.hayward@arm.com>
203 * features/aarch64-pauth.c: Regenerate.
205 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
207 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
209 (bpstat_what): Use false instead of 0.
211 2019-07-09 Pedro Alves <palves@redhat.com>
213 * break-catch-throw.c (is_exception_catchpoint): New.
214 * breakpoint.c (print_one_breakpoint_location): New parameter
215 'raw_loc'. Handle it. Use
216 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
217 looking at the breakpoint's type.
218 (print_one_breakpoint): If handling "maint info breakpoints", also
219 print locations of exception catchpoints.
220 * breakpoint.h (is_exception_catchpoint): Declare.
222 2019-07-09 Pedro Alves <palves@redhat.com>
224 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
226 (allocate_location_exception_catchpoint): New.
227 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
228 (initialize_throw_catchpoint_ops): Install
229 allocate_location_exception_catchpoint as allocate_location
231 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
232 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
234 (breakpoint_address_is_meaningful): Delete.
235 (bl_address_is_meaningful): New.
236 (breakpoint_locations_match): Adjust comment.
237 (bp_location_from_bp_type): New, factored out of...
238 (bp_location::bp_location(breakpoint *)): ... this.
239 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
241 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
242 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
243 breakpoint_address_is_meaningful.
244 (bp_locations_compare): Adjust comment.
245 (update_global_location_list): Use bl_address_is_meaningful
246 instead of breakpoint_address_is_meaningful.
247 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
249 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
250 * python/py-breakpoint.c (bppy_get_location): No longer check
251 whether location is null.
253 2019-07-09 Pedro Alves <palves@redhat.com>
256 * breakpoint.c (print_one_breakpoint_location): Remove
257 single-location assert.
259 2019-07-09 Tom Tromey <tom@tromey.com>
261 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
262 * configure: Rebuild.
263 * configure.ac: Change common to gdbsupport.
264 * gdbsupport: Rename from common.
265 * acinclude.m4: Change common to gdbsupport.
266 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
267 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
269 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
270 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
271 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
272 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
273 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
274 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
275 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
276 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
277 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
278 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
279 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
280 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
281 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
282 coff-pe-read.c, command.h, compile/compile-c-support.c,
283 compile/compile-c.h, compile/compile-cplus-symbols.c,
284 compile/compile-cplus-types.c, compile/compile-cplus.h,
285 compile/compile-loc2c.c, compile/compile.c, completer.c,
286 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
287 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
288 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
289 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
290 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
291 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
292 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
293 features/aarch64-core.c, features/aarch64-fpu.c,
294 features/aarch64-pauth.c, features/aarch64-sve.c,
295 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
296 features/i386/32bit-core.c, features/i386/32bit-linux.c,
297 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
298 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
299 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
300 features/i386/64bit-core.c, features/i386/64bit-linux.c,
301 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
302 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
303 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
304 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
305 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
306 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
307 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
308 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
309 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
310 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
311 go32-nat.c, guile/guile.c, guile/scm-ports.c,
312 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
313 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
314 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
315 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
316 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
317 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
318 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
319 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
320 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
321 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
322 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
323 minsyms.c, mips-linux-tdep.c, namespace.h,
324 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
325 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
326 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
327 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
328 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
329 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
330 nat/linux-waitpid.c, nat/mips-linux-watch.c,
331 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
332 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
333 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
334 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
335 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
336 procfs.c, producer.c, progspace.h, psymtab.h,
337 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
338 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
339 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
340 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
341 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
342 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
343 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
344 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
345 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
346 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
347 target-memory.c, target.c, target.h, target/waitstatus.c,
348 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
349 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
350 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
351 unittests/array-view-selftests.c,
352 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
353 unittests/common-utils-selftests.c,
354 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
355 unittests/format_pieces-selftests.c,
356 unittests/function-view-selftests.c,
357 unittests/lookup_name_info-selftests.c,
358 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
359 unittests/mkdir-recursive-selftests.c,
360 unittests/observable-selftests.c,
361 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
362 unittests/parse-connection-spec-selftests.c,
363 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
364 unittests/scoped_fd-selftests.c,
365 unittests/scoped_mmap-selftests.c,
366 unittests/scoped_restore-selftests.c,
367 unittests/string_view-selftests.c, unittests/style-selftests.c,
368 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
369 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
370 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
371 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
372 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
373 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
375 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
377 * linespec.c (decode_digits_list_mode): Set explicit_line to a
379 (decode_digits_ordinary): Set explicit_line field in sal.
380 * symtab.c (skip_prologue_sal): Don't skip prologue for a
381 symtab_and_line that was set on an explicit line number in
382 assembler code. Do always update the recorded symtab and line if
383 we do skip the prologue.
385 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
387 * breakpoint.c (set_breakpoint_location_function): Remove
388 explicit_loc parameter.
389 (momentary_breakpoint_from_master): Update call to
390 set_breakpoint_location_function.
391 (add_location_to_breakpoint): Likewise.
393 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
395 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
396 required features based on default bfd type when no specific bfd
399 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
401 * NEWS: Mention that GDB printf and eval commands can now print
402 C-style and Ada-style convenience var strings without
403 calling the inferior.
404 * printcmd.c (printf_c_string): Locally print GDB internal var
405 instead of transiting via the inferior.
406 (printf_wide_c_string): Likewise.
408 2019-07-04 Alan Hayward <alan.hayward@arm.com>
410 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
412 2019-07-04 Tom Tromey <tom@tromey.com>
415 * tui/tui-winsource.c (tui_clear_source_content): Update.
416 (tui_source_window_base::set_is_exec_point_at): Fix comment.
417 (tui_update_breakpoint_info): Update.
418 (tui_set_exec_info_content): Update.
419 * tui/tui-source.c (tui_set_source_content_nil): Update.
420 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
422 * tui/tui-data.h (enum tui_bp_flag): New.
423 (tui_bp_flags): New enum flags type.
424 (struct tui_source_element) <break_mode>: Change type. Rename
426 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
427 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
429 * tui/tui-winsource.h: Fix comment.
431 2019-07-04 Alan Hayward <alan.hayward@arm.com>
433 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
434 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
435 (store_fpregs_to_thread)
436 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
437 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
438 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
439 (IWMMXT_REGS_SIZE): Add define.
440 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
441 (fetch_vfp_regs, store_vfp_regs)
442 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
443 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
445 2019-07-04 Alan Hayward <alan.hayward@arm.com>
447 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
449 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
450 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
451 (ARM_INT_REGISTER_SIZE): ...to this.
452 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
453 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
454 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
455 (arm_linux_collect_gregset, supply_nwfpe_register)
456 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
458 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
459 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
460 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
461 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
462 (arm_return_in_memory, arm_store_return_value)
463 (arm_get_longjmp_target, arm_register_g_packet_guesses)
464 (arm_record_ld_st_multiple): Likewise.
465 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
466 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
468 2019-07-04 Alan Hayward <alan.hayward@arm.com>
470 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
471 AARCH64_DISPLACED_MODIFIED_INSNS.
472 * aarch64-tdep.c (struct aarch64_displaced_step_data)
473 (aarch64_displaced_step_copy_insn): Likewise.
474 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
475 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
476 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
477 ARM_DISPLACED_MODIFIED_INSNS.
478 * arm-tdep.c (arm_gdbarch_init): Likewise.
479 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
480 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
481 (struct arm_displaced_step_closure): Use
482 ARM_DISPLACED_MODIFIED_INSNS.
484 2019-07-04 Alan Hayward <alan.hayward@arm.com>
486 * features/Makefile: Remove unused xml files.
487 * features/aarch64.xml: Remove.
488 * features/i386/amd64-avx-avx512-linux.xml: Remove.
489 * features/i386/amd64-avx-avx512.xml: Remove.
490 * features/i386/amd64-avx-linux.xml: Remove.
491 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
492 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
493 * features/i386/amd64-avx-mpx-linux.xml: Remove.
494 * features/i386/amd64-avx-mpx.xml: Remove.
495 * features/i386/amd64-avx.xml: Remove.
496 * features/i386/amd64-linux.xml: Remove.
497 * features/i386/amd64-mpx-linux.xml: Remove.
498 * features/i386/amd64-mpx.xml: Remove.
499 * features/i386/amd64.xml: Remove.
500 * features/i386/i386-avx-avx512-linux.xml: Remove.
501 * features/i386/i386-avx-avx512.xml: Remove.
502 * features/i386/i386-avx-linux.xml: Remove.
503 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
504 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
505 * features/i386/i386-avx-mpx-linux.xml: Remove.
506 * features/i386/i386-avx-mpx.xml: Remove.
507 * features/i386/i386-avx.xml: Remove.
508 * features/i386/i386-linux.xml: Remove.
509 * features/i386/i386-mmx-linux.xml: Remove.
510 * features/i386/i386-mmx.xml: Remove.
511 * features/i386/i386-mpx-linux.xml: Remove.
512 * features/i386/i386-mpx.xml: Remove.
513 * features/i386/i386.xml: Remove.
514 * features/i386/x32-avx-avx512-linux.xml: Remove.
515 * features/i386/x32-avx-linux.xml: Remove.
516 * features/i386/x32-linux.xml: Remove.
518 2019-07-04 Alan Hayward <alan.hayward@arm.com>
520 * regformats/aarch64.dat: Remove.
521 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
522 * regformats/i386/amd64-avx-linux.dat: Remove.
523 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
524 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
525 * regformats/i386/amd64-linux.dat: Remove.
526 * regformats/i386/amd64-mpx-linux.dat: Remove.
527 * regformats/i386/amd64.dat: Remove.
528 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
529 * regformats/i386/i386-avx-linux.dat: Remove.
530 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
531 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
532 * regformats/i386/i386-linux.dat: Remove.
533 * regformats/i386/i386-mmx-linux.dat: Remove.
534 * regformats/i386/i386-mpx-linux.dat: Remove.
535 * regformats/i386/i386.dat: Remove.
536 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
537 * regformats/i386/x32-avx-linux.dat: Remove.
538 * regformats/i386/x32-linux.dat: Remove.
540 2019-07-04 Alan Hayward <alan.hayward@arm.com>
542 * aarch64-tdep.c: Remove xml self tests.
543 * amd64-linux-tdep.c: Likewise.
544 * amd64-tdep.c: Likewise.
545 * i386-linux-tdep.c: Likewise.
546 * i386-tdep.c: Likewise.
548 2019-07-03 Pedro Alves <palves@redhat.com>
551 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
552 (pipe_cmd_option_defs): New.
553 (make_pipe_cmd_options_def_group): New.
554 (pipe_command): Use gdb::option::process_options.
555 (pipe_command_completer): New function.
556 (_initialize_cli_cmds): Install completer for "pipe" command.
558 2019-07-03 Pedro Alves <palves@redhat.com>
560 * cli/cli-option.c (union option_value) <string>: New field.
561 (struct option_def_and_value): Add ctor, move ctor, dtor and
562 use DISABLE_COPY_AND_ASSIGN.
563 (option_def_and_value::clear_value): New.
564 (parse_option, save_option_value_in_ctx, get_val_type_str)
565 (add_setshow_cmds_for_options): Handle var_string.
566 * cli-option.h (union option_def::var_address) <string>: New
568 (struct string_option_def): New.
569 * maint-test-options.c (struct test_options_opts): Add default
570 ctor and use DISABLE_COPY_AND_ASSIGN.
571 <string_opt>: New field.
572 (test_options_opts::~test_options_opts): New.
573 (test_options_opts::dump): Also dump "-string".
574 (test_options_option_defs): Install "string.
576 2019-07-03 Pedro Alves <palves@redhat.com>
578 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
579 option_value with a null enumeration.
580 (complete_options): Save the option values in the context.
581 (save_option_value_in_ctx): New, factored out from ...
582 (process_options): ... here.
583 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
585 * maint-test-options.c (test_options_opts::dump): New, factored
587 (maintenance_test_options_command_mode): ... here.
588 (maintenance_test_options_command_completion_result): Delete.
589 (maintenance_test_options_command_completion_text): Update
591 (maintenance_show_test_options_completion_result): Change
592 prototype. Just print
593 maintenance_test_options_command_completion_text.
594 (save_completion_result): New.
595 (maintenance_test_options_completer_mode): Pass options context to
596 complete_options, and then save a dump.
597 (_initialize_maint_test_options): Use add_cmd to install "maint
598 show test-options-completion-result".
600 2019-07-03 Pedro Alves <palves@redhat.com>
602 * NEWS (New commands): Mention "with" and "maint with".
603 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
604 (with_command, with_command_completer): New.
605 (pipe_command): Adjust to new repeat_previous
607 (_initialize_cli_cmds): Install the "with" command and its "w"
609 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
611 * cli/cli-setshow.c (parse_cli_var_uinteger)
612 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
613 argument strings for all var_types.
614 (get_setshow_command_value_string): New, factored out from ...
615 (do_show_command): ... this.
616 * cli/cli-setshow.h: Include <string>.
617 (get_setshow_command_value_string): Declare.
618 * command.h (repeat_previous): Now returns const char *. Adjust
620 * maint.c: Include "cli/cli-cmds.h".
621 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
622 (_initialize_maint_cmds): Register the "maintenance with" command.
623 * top.c (repeat_previous): Move bits from pipe_command here:
624 Return the saved command line, if any; error out if there's no
627 2019-07-03 Pedro Alves <palves@redhat.com>
629 * NEWS (New commands): Mention "maint set/show test-settings"
630 instead of "maint test-settings".
631 * maint-test-settings.c (maintenance_test_settings_list): Delete.
632 (maintenance_test_settings_set_list): Rename to ...
633 (maintenance_set_test_settings_list): ... this.
634 (maintenance_test_settings_show_list): Rename to ...
635 (maintenance_show_test_settings_list): ... this.
636 (maintenance_test_settings_cmd): Delete.
637 (maintenance_test_settings_set_cmd): ...
638 (maintenance_set_test_settings_cmd): ... this.
639 (maintenance_test_settings_show_cmd): ...
640 (maintenance_show_test_settings_cmd): ... this.
641 (maintenance_test_settings_show_value_cmd):
642 (maintenance_show_test_settings_value_cmd): ... this.
643 (_initialize_maint_test_settings): No longer install the "maint
644 test-settings" prefix command. Rename "maint test-settings set"
645 to "maint set test-settings", and "maint test-settings show" to
646 "maint show test-settings". Adjust all subcommands.
648 2019-07-03 Pedro Alves <palves@redhat.com>
650 * maint-test-settings.c: Fix file's intro comment. Replace all
651 references to "test-options" with references to "test-settings",
654 2019-07-03 Pedro Alves <palves@redhat.com>
656 * maint-test-settings.c (maintenance_test_settings_xxx)
657 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
659 (maintenance_test_settings_enums): Use them.
660 (maintenance_test_settings_enum): Default to
661 maintenance_test_settings_xxx.
662 (_initialize_maint_test_settings): Initialize
663 MAINTENANCE_TEST_SETTINGS_FILENAME.
665 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
667 * breakpoint.h (remove_breakpoints_inf): Change return type to
668 void, move function documentation here.
669 * breakpoint.c (remove_breakpoints_inf): Change return type to
670 void, move function documentation to header.
672 2019-07-02 Pedro Alves <palves@redhat.com>
674 * NEWS (Completion improvements): Mention "info threads".
675 * thread.c (struct info_threads_opts, info_threads_option_defs)
676 (make_info_threads_options_def_group): New.
677 (info_threads_command): Use gdb::option::process_options.
678 (info_threads_command_completer): New.
679 (_initialize_thread): Use gdb::option::build_help to build the
680 help text for "info threads".
682 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
684 * defs.h (generic_load): Move from here...
685 * symfile.h (generic_load): ... to here. Rename name parameter
687 * symfile.c (generic_load): Add comment.
689 2019-07-01 Tom Tromey <tromey@adacore.com>
692 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
693 declaration of without_params. Fix formatting.
695 2019-07-01 Tom Tromey <tromey@adacore.com>
697 * ada-exp.y (find_primitive_type): Update.
698 * ada-lang.h (ada_lookup_symbol): Update.
699 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
701 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
703 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
706 * gdbarch.c: Regenerate.
707 * gdbarch.h: Regenerate.
708 * gdbarch.sh: Add 'stap_adjust_register'.
709 * i386-tdep.c: Include '<unordered_set>'.
710 (i386_stap_adjust_register): New function.
711 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
712 * stap-probe.c (stap_parse_register_operand): Call
713 'gdbarch_stap_adjust_register'.
715 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
718 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
719 * python/python.c (do_start_initialization): Use 'xmalloc'
720 instead of 'PyMem_Malloc'.
722 2019-06-28 Tom Tromey <tromey@adacore.com>
724 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
727 2019-06-27 Tom Tromey <tromey@adacore.com>
729 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
731 (arm_find_mapping_symbol, arm_record_special_symbol)
732 (_initialize_arm_tdep): Update.
733 (arm_objfile_data_free): Remove.
735 2019-06-27 Tom Tromey <tromey@adacore.com>
737 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
738 to cp_print_static_field.
740 2019-06-26 Tom Tromey <tromey@adacore.com>
742 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
743 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
746 2019-06-26 Alan Hayward <alan.hayward@arm.com>
748 * features/aarch64-core.c (create_feature_aarch64_core):
750 * features/aarch64-core.xml: Add cpsr flags.
752 2019-06-26 Alan Hayward <alan.hayward@arm.com>
754 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
755 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
757 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
759 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
761 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
763 (arm_record_special_symbol): Don't insert new symbol in sorted
764 position, push it at the end.
766 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
768 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
769 (arm_mapping_symbol_s): Remove.
770 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
771 (arm_mapping_symbol_vec): New typedef.
772 (struct arm_per_objfile): Add constructor.
773 <section_maps>: Change type to
774 std::unique_ptr<arm_mapping_symbol_vec[]>.
775 (arm_compare_mapping_symbols): Remove.
776 (arm_find_mapping_symbol): Adjust to section_maps type change.
777 (arm_objfile_data_free): Call delete on arm_per_objfile.
778 (arm_record_special_symbol): Adjust to section_maps type change.
779 Allocate arm_per_objfile with new.
781 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
783 * cli/cli-cmds.c (alias_command): Compare the alias prefix
784 with the command prefix.
786 2019-06-25 Tom Tromey <tom@tromey.com>
788 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
789 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
791 2019-06-25 Tom Tromey <tom@tromey.com>
793 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
795 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
798 2019-06-25 Tom Tromey <tom@tromey.com>
800 * tui/tui-winsource.c
801 (tui_source_window_base::set_is_exec_point_at): Add check against
804 2019-06-25 Tom Tromey <tom@tromey.com>
806 * tui/tui-source.c (tui_set_source_content): Don't check before
808 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
810 2019-06-25 Tom Tromey <tom@tromey.com>
812 * tui/tui-winsource.h (tui_update_source_window_as_is)
813 (tui_alloc_source_buffer, tui_line_is_displayed)
814 (tui_addr_is_displayed): Change type of win_info.
815 * tui/tui-winsource.c (tui_update_source_window_as_is)
816 (tui_clear_source_content, tui_show_source_line)
817 (tui_show_source_content, tui_source_window_base::refill)
818 (tui_source_window_base::set_is_exec_point_at)
819 (tui_source_window_base::set_is_exec_point_at)
820 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
821 (tui_alloc_source_buffer, tui_line_is_displayed)
822 (tui_addr_is_displayed): Change type of win_info. Update.
823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
824 (tui_source_window_base::do_make_visible_with_new_height):
826 * tui/tui-source.c (tui_set_source_content)
827 (tui_set_source_content_nil)
828 (tui_source_window::do_scroll_vertical): Update.
829 * tui/tui-layout.c (show_layout): Update.
830 * tui/tui-disasm.c (tui_set_disassem_content)
831 (tui_disasm_window::do_scroll_vertical): Update.
832 * tui/tui-data.h (tui_win_content): Remove.
833 (struct tui_gen_win_info) <content, content_size>: Remove.
834 (struct tui_source_element): Add initializers and destructor.
835 (union tui_which_element, struct tui_win_element): Remove.
836 (struct tui_source_window_base) <content>: New field.
837 (struct tui_data_window): Remove destructor.
838 (tui_alloc_content, tui_free_win_content)
839 (tui_free_all_source_wins_content): Don't declare.
840 * tui/tui-data.c (tui_initialize_static_data): Update.
841 (init_content_element, tui_alloc_content): Remove.
842 (~tui_gen_win_info): Update.
843 (~tui_data_window, tui_free_all_source_wins_content)
844 (tui_free_win_content, free_content, free_content_elements):
847 2019-06-25 Tom Tromey <tom@tromey.com>
849 * tui/tui-winsource.h (tui_clear_source_content)
850 (tui_erase_source_content, tui_show_source_content): Change type
852 * tui/tui-winsource.c (tui_clear_source_content)
853 (tui_erase_source_content, tui_show_source_content): Change type
855 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
856 * tui/tui-source.h (tui_set_source_content_nil): Change type of
858 * tui/tui-source.c (tui_set_source_content_nil): Change type of
860 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
862 2019-06-25 Tom Tromey <tom@tromey.com>
864 * tui/tui-winsource.c (tui_clear_source_content)
865 (tui_source_window_base::set_is_exec_point_at): Update.
866 * tui/tui-source.c (tui_set_source_content_nil): Update.
867 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
869 * tui/tui-data.c (init_content_element): Update.
871 2019-06-25 Tom Tromey <tom@tromey.com>
873 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
874 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
875 * tui/tui-layout.c (init_and_make_win): Update.
876 * tui/tui.h (enum tui_win_type): Update.
877 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
878 tui_win_is_auxillary.
879 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
880 tui_win_is_auxillary.
882 2019-06-25 Tom Tromey <tom@tromey.com>
884 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
885 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
886 (tui_delete_data_content_windows, tui_display_all_data)
887 (tui_data_window::do_scroll_vertical, tui_display_data_from):
889 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
890 * tui/tui-regs.c (tui_last_regs_line_no)
891 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
892 (tui_show_registers): Update.
893 (tui_show_register_group): Return void. Update.
894 (tui_display_registers_from, tui_display_reg_element_at_line)
895 (tui_display_registers_from_line, tui_check_register_values):
897 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
899 (struct tui_data_window) <regs_content>: Now a std::vector.
900 <regs_content_count>: Remove.
901 (tui_add_content_elements, tui_free_data_content): Don't declare.
902 * tui/tui-data.c (tui_data_window::clear_detail): Update.
903 (init_content_element): Remove DATA_WIN case. Add assert.
904 (tui_add_content_elements): Remove.
905 (tui_data_window): Update.
906 (tui_free_data_content): Remove.
907 (free_content_elements): Remove DATA_WIN case.
909 2019-06-25 Tom Tromey <tom@tromey.com>
911 * tui/tui-data.c (tui_data_item_window): Update.
912 * tui/tui-windata.h (tui_check_data_values): Don't declare.
913 * tui/tui-windata.c (tui_display_all_data)
914 (tui_display_data_from_line): Update.
915 (tui_check_data_values): Remove.
916 * tui/tui-regs.c (tui_show_register_group)
917 (tui_display_reg_element_at_line): Update.
918 * tui/tui-hooks.c (tui_register_changed)
919 (tui_refresh_frame_and_register_information): Call
920 tui_check_register_values.
921 * tui/tui-data.h (struct tui_data_window) <data_content,
922 data_content_count, data_type>: Remove.
923 (enum tui_data_type): Remove.
925 * tui/tui-data.c (tui_data_window::clear_detail)
926 (~tui_data_window): Update.
928 2019-06-25 Tom Tromey <tom@tromey.com>
930 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
932 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
933 Rename from tui_first_data_item_displayed. Update.
934 (tui_data_window::refresh_all)
935 (tui_data_window::do_scroll_vertical): Update.
936 * tui/tui-data.h (struct tui_data_window)
937 <first_data_item_displayed>: Declare new method.
939 2019-06-25 Tom Tromey <tom@tromey.com>
941 * tui/tui-data.h (tui_init_generic_part): Don't declare.
942 * tui/tui-data.c (tui_init_generic_part): Remove, moving
944 (tui_initialize_static_data): ...here.
946 2019-06-25 Tom Tromey <tom@tromey.com>
948 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
949 (tui_display_registers_from, tui_check_register_values): Update.
950 (tui_display_register): Remove win_info parameter; update.
951 (tui_get_register): Change type of parameters.
952 * tui/tui-data.h (struct tui_data_element): Remove.
953 (union tui_which_element) <data>: Remove.
954 <data_window>: Change type.
955 (struct tui_data_item_window): New.
956 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
958 (~tui_data_item_window): New destructor.
959 (free_content_elements): Remove DATA_ITEM_WIN case.
961 2019-06-25 Tom Tromey <tom@tromey.com>
963 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
966 2019-06-25 Tom Tromey <tom@tromey.com>
968 * tui/tui-data.h (struct tui_command_element): Remove.
969 (union tui_which_element) <command>: Remove.
970 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
972 (free_content_elements): Remove CMD_WIN case.
974 2019-06-25 Tom Tromey <tom@tromey.com>
976 * tui/tui-layout.c (tui_set_layout): Update.
977 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
978 * tui/tui-data.c (layout_def): Update.
980 2019-06-25 Tom Tromey <tom@tromey.com>
982 * tui/tui-wingeneral.c (tui_refresh_all): Update.
983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
984 (tui_source_window_base::set_new_height): Update.
985 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
987 (tui_set_locator_fullname, tui_set_locator_info)
988 (tui_show_frame_info): Update.
989 * tui/tui-source.c (tui_set_source_content)
990 (tui_source_is_displayed): Update.
991 * tui/tui-layout.c (show_source_disasm_command, show_data)
992 (show_source_or_disasm_and_command): Update.
993 * tui/tui-disasm.c (tui_set_disassem_content)
994 (tui_get_begin_asm_address): Update.
995 * tui/tui-data.h (struct tui_locator_element): Remove.
996 (union tui_which_element) <locator>: Remove.
997 (struct tui_locator_window): New.
998 (tui_locator_win_info_ptr): Change return type.
999 * tui/tui-data.c (_locator): Change type.
1000 (tui_locator_win_info_ptr): Change return type.
1001 (init_content_element): Remove LOCATOR_WIN case. Add assert.
1002 (tui_alloc_content): Add assert.
1004 2019-06-25 Tom Tromey <tom@tromey.com>
1006 * tui/tui-winsource.c
1007 (tui_exec_info_window::maybe_allocate_content): New method.
1008 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
1009 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
1010 (make_source_or_disasm_window): Add cast.
1011 * tui/tui-data.h (union tui_which_element) <simple_string>:
1013 (struct tui_source_info): New.
1014 (struct tui_source_window_base) <execution_info>: Change type.
1015 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
1016 case, and add assert.
1017 (tui_alloc_content): Add assert.
1019 2019-06-25 Tom Tromey <tom@tromey.com>
1021 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
1022 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
1023 * tui/tui-data.c (tui_alloc_win_info): Remove.
1025 2019-06-25 Tom Tromey <tom@tromey.com>
1027 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
1028 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
1031 2019-06-25 Tom Tromey <tom@tromey.com>
1033 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
1034 make_visible_with_new_height method.
1035 (tui_win_info::make_visible_with_new_height): New method.
1036 (tui_source_window_base::do_make_visible_with_new_height)
1037 (tui_data_window::do_make_visible_with_new_height)
1038 (tui_cmd_window::do_make_visible_with_new_height): New methods.
1039 (make_visible_with_new_height): Remove.
1040 (tui_resize_all, tui_adjust_win_heights): Use
1041 make_visible_with_new_height method.
1042 * tui/tui-data.h (struct tui_win_info)
1043 <do_make_visible_with_new_height, make_visible_with_new_height>:
1045 (struct tui_source_window_base, struct tui_data_window)
1046 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
1049 2019-06-25 Tom Tromey <tom@tromey.com>
1051 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
1053 (update_tab_width): Call update_tab_width method.
1054 * tui/tui-data.h (struct tui_win_info)
1055 (struct tui_source_window_base) <update_tab_width>: New methods.
1057 2019-06-25 Tom Tromey <tom@tromey.com>
1059 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
1061 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
1063 (tui_gen_win_info::make_visible): Update.
1064 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
1066 * tui/tui-data.h (enum tui_box): New enum.
1067 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
1069 2019-06-25 Tom Tromey <tom@tromey.com>
1071 * tui/tui-layout.c (make_source_or_disasm_window): Always use
1072 init_and_make_win for EXEC_INFO_WIN.
1073 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
1075 (struct tui_win_info) <~tui_win_info>: Inline.
1076 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1078 * tui/tui-data.c (source_win, disasm_win): Remove globals.
1079 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1081 (tui_initialize_static_data): Update.
1082 (~tui_gen_win_info): Handle more cleanup here.
1083 (~tui_source_window_base): Delete "execution_info".
1084 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
1086 2019-06-25 Tom Tromey <tom@tromey.com>
1088 * tui/tui-layout.c (make_command_window): Don't set
1090 (show_source_disasm_command): Call the reset method.
1091 (show_data): Don't set can_highlight. Call the reset method.
1092 (tui_gen_win_info::reset): Rename from init_gen_win_info
1093 (init_and_make_win): Simplify. Return tui_gen_win_info.
1094 (show_source_or_disasm_and_command): Call the reset method.
1095 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
1096 (struct tui_cmd_window): Set can_highlight.
1098 2019-06-25 Tom Tromey <tom@tromey.com>
1100 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
1102 (tui_make_visible, tui_make_invisible): Rewrite.
1103 (tui_win_info::make_visible): Remove.
1104 (tui_source_window_base::make_visible): Update.
1105 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
1106 method. Moved from...
1107 (struct tui_win_info) <make_visible>: ...here.
1109 2019-06-25 Tom Tromey <tom@tromey.com>
1111 * tui/tui-winsource.c
1112 (tui_source_window_base::do_scroll_horizontal): Remove direction
1114 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
1115 direction parameter.
1116 * tui/tui-win.c (tui_win_info::forward_scroll)
1117 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1118 (tui_win_info::right_scroll): Update.
1119 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
1120 direction parameter.
1121 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
1122 direction parameter.
1123 * tui/tui-data.h (enum tui_scroll_direction): Remove.
1124 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
1125 Remove direction parameter.
1126 (struct tui_source_window_base, struct tui_source_window)
1127 (struct tui_disasm_window, struct tui_data_window)
1128 (struct tui_cmd_window): Update.
1130 2019-06-25 Tom Tromey <tom@tromey.com>
1132 * tui/tui-winsource.h (tui_set_exec_info_content)
1133 (tui_show_exec_info_content, tui_erase_exec_info_content)
1134 (tui_clear_exec_info_content, tui_update_exec_info): Change
1135 argument to tui_source_window_base.
1136 * tui/tui-winsource.c (tui_set_exec_info_content)
1137 (tui_show_exec_info_content, tui_erase_exec_info_content)
1138 (tui_clear_exec_info_content, tui_update_exec_info): Change
1139 argument to tui_source_window_base.
1141 2019-06-25 Tom Tromey <tom@tromey.com>
1143 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
1144 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
1146 2019-06-25 Tom Tromey <tom@tromey.com>
1148 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
1151 2019-06-25 Tom Tromey <tom@tromey.com>
1153 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
1155 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
1157 * tui/tui-source.c (tui_set_source_content): Update.
1158 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1160 2019-06-25 Tom Tromey <tom@tromey.com>
1162 * tui/tui-win.c (window_name_completer, tui_set_focus)
1163 (tui_all_windows_info): Use name method.
1164 * tui/tui-data.h (struct tui_gen_win_info)
1165 (struct tui_source_window, struct tui_disasm_window)
1166 (struct tui_data_window, struct tui_cmd_window) <name>: New
1168 (tui_win_name): Don't declare.
1169 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
1170 (tui_win_name): Remove.
1172 2019-06-25 Tom Tromey <tom@tromey.com>
1174 * tui/tui-winsource.h (tui_update_source_window)
1175 (tui_update_source_window_as_is): Change parameter type.
1176 * tui/tui-winsource.c (tui_update_source_window): Change win_info
1177 to be a tui_source_window_base.
1178 (tui_update_source_window_as_is): Likewise.
1179 * tui/tui-win.c (make_visible_with_new_height): Update.
1181 2019-06-25 Tom Tromey <tom@tromey.com>
1183 * tui/tui-winsource.c (tui_erase_source_content)
1184 (tui_show_source_content, tui_show_exec_info_content)
1185 (tui_erase_exec_info_content): Use refresh_window method.
1186 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
1187 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
1188 from tui_refresh_win.
1189 (tui_data_window::refresh_window): New method.
1190 (tui_win_info::refresh, tui_source_window_base::refresh)
1191 (tui_refresh_all): Use refresh_window method.
1192 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
1194 * tui/tui-regs.c (tui_display_register): Call refresh_window
1196 * tui/tui-layout.c (show_source_disasm_command)
1197 (show_source_or_disasm_and_command): Call refresh_window method.
1198 * tui/tui-data.h (struct tui_gen_win_info)
1199 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
1202 2019-06-25 Tom Tromey <tom@tromey.com>
1204 * tui/tui.c (tui_rl_other_window, tui_enable)
1205 (tui_is_window_visible, tui_get_command_dimension): Update.
1206 * tui/tui-winsource.c (tui_update_source_window_as_is)
1207 (tui_clear_source_content, tui_erase_source_content)
1208 (tui_show_source_line, tui_source_window_base::refill)
1209 (tui_source_window_base::do_scroll_horizontal)
1210 (tui_source_window_base::set_is_exec_point_at)
1211 (tui_update_breakpoint_info, tui_set_exec_info_content)
1212 (tui_alloc_source_buffer, tui_line_is_displayed)
1213 (tui_addr_is_displayed): Update.
1214 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1215 (tui_check_and_display_highlight_if_needed)
1216 (tui_win_info::make_visible, tui_win_info::refresh)
1217 (tui_refresh_all): Update.
1218 * tui/tui-windata.c (tui_first_data_item_displayed)
1219 (tui_delete_data_content_windows, tui_erase_data_content)
1220 (tui_display_all_data, tui_data_window::refresh_all)
1221 (tui_check_data_values): Update.
1222 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
1223 (tui_set_win_focus_to, tui_win_info::forward_scroll)
1224 (tui_win_info::backward_scroll, tui_refresh_all_win)
1225 (tui_resize_all, tui_set_focus, tui_all_windows_info)
1226 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
1227 (tui_source_window_base::set_new_height)
1228 (tui_data_window::set_new_height)
1229 (make_invisible_and_set_new_height)
1230 (make_visible_with_new_height, new_height_ok)
1231 (parse_scrolling_args): Update.
1232 * tui/tui-stack.c (tui_show_frame_info): Update.
1233 * tui/tui-source.c (tui_set_source_content)
1234 (tui_set_source_content_nil, tui_source_is_displayed)
1235 (tui_source_window::do_scroll_vertical): Update.
1236 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1237 (tui_display_registers_from, tui_display_reg_element_at_line)
1238 (tui_check_register_values, tui_reg_command): Update.
1239 * tui/tui-layout.c (tui_default_win_height)
1240 (show_source_disasm_command, show_data, init_and_make_win)
1241 (show_source_or_disasm_and_command): Update.
1242 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1243 (tui_redisplay_readline, tui_mld_flush)
1244 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
1246 * tui/tui-disasm.c (tui_set_disassem_content)
1247 (tui_disasm_window::do_scroll_vertical): Update.
1248 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
1250 (struct tui_win_info): Derive from tui_gen_win_info.
1251 <~tui_win_info>: Mark as override.
1252 <generic>: Remove member.
1253 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
1254 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
1255 (~tui_data_window, ~tui_win_info)
1256 (tui_free_all_source_wins_content): Update.
1257 * tui/tui-command.c (tui_refresh_cmd_win): Update.
1259 2019-06-25 Tom Tromey <tom@tromey.com>
1261 * tui/tui-layout.c (init_and_make_win): Use new.
1262 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
1263 destructor, initializers.
1264 (tui_alloc_generic_win_info): Don't declare.
1265 * tui/tui-data.c (_locator): Add argument to constructor.
1266 (source_win, disasm_win): New globals.
1267 (exec_info): Remove.
1268 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1270 (tui_alloc_generic_win_info): Remove.
1271 (init_content_element): Use new.
1272 (tui_win_info::tui_win_info): Update.
1273 (free_content_elements) <case DATA_WIN>: Use delete.
1275 2019-06-25 Tom Tromey <tom@tromey.com>
1277 * tui/tui-wingeneral.c (tui_refresh_win): Update.
1278 * tui/tui-windata.c (tui_first_data_item_displayed)
1279 (tui_delete_data_content_windows): Update.
1280 * tui/tui-win.c (tui_data_window::set_new_height): Update.
1281 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1282 (tui_display_registers_from, tui_check_register_values): Update.
1283 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
1285 * tui/tui-data.c (init_content_element): Update. Allocate the new
1287 (tui_free_data_content): Update.
1288 (free_content_elements) <case DATA_WIN>: Free the window.
1290 2019-06-25 Tom Tromey <tom@tromey.com>
1292 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
1294 * tui/tui-layout.c (make_command_window)
1295 (show_source_disasm_command, show_data, init_and_make_win)
1296 (show_source_or_disasm_and_command): Update.
1297 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
1299 <can_highight, is_highlighted>: Now bool.
1300 (tui_set_win_highlight): Don't declare.
1301 * tui/tui-data.c (tui_set_win_highlight): Remove.
1303 2019-06-25 Tom Tromey <tom@tromey.com>
1305 * tui/tui-wingeneral.c (make_visible): Remove check of window
1308 2019-06-25 Tom Tromey <tom@tromey.com>
1310 * tui/tui-win.c (tui_win_info::max_height)
1311 (tui_cmd_window::max_height): New methods.
1312 (new_height_ok): Call max_height.
1313 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
1314 <max_height>: New method.
1316 2019-06-25 Tom Tromey <tom@tromey.com>
1318 * tui/tui-win.c (tui_source_window_base::set_new_height)
1319 (tui_data_window::set_new_height): New methods.
1320 (make_invisible_and_set_new_height): Call set_new_height method.
1321 * tui/tui-data.h (struct tui_win_info)
1322 (struct tui_source_window_base, struct tui_data_window)
1323 <set_new_height>: New method.
1325 2019-06-25 Tom Tromey <tom@tromey.com>
1327 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
1328 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
1329 tui_refresh_data_win.
1330 * tui/tui-win.c (tui_source_window_base::refresh_all): New
1332 (tui_refresh_all_win): Call the refresh_all method.
1333 (tui_set_focus): Likewise.
1334 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
1335 (struct tui_source_window_base, struct tui_data_window) <refresh>:
1338 2019-06-25 Tom Tromey <tom@tromey.com>
1340 * tui/tui-winsource.h (tui_refill_source_window)
1341 (tui_set_is_exec_point_at): Don't declare.
1342 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1343 (tui_source_window_base::refill): Rename from
1344 tui_refill_source_window.
1345 (tui_source_window_base::do_scroll_horizontal): Update.
1346 (tui_source_window_base::set_is_exec_point_at): Rename from
1347 tui_set_is_exec_point_at.
1348 (tui_update_all_breakpoint_info): Update.
1349 * tui/tui-stack.c (tui_show_frame_info): Update.
1350 * tui/tui-layout.c (show_data): Add cast.
1351 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
1352 * tui/tui-data.h (struct tui_source_window_base) <refill,
1353 set_is_exec_point_at>: New methods.
1354 (tui_source_windows, tui_add_to_source_windows): Update types.
1355 (tui_add_to_source_windows): Remove redundant declaration.
1356 * tui/tui-data.c (source_windows): Store tui_source_window_base.
1357 (tui_source_windows): Change return type.
1358 (tui_clear_source_windows_detail): Update.
1359 (tui_add_to_source_windows): Change type of parameter.
1360 (tui_free_all_source_wins_content): Update.
1362 2019-06-25 Tom Tromey <tom@tromey.com>
1364 * tui/tui-wingeneral.c (tui_win_info::refresh)
1365 (tui_source_window_base::refresh): New methods.
1366 (tui_refresh_all): Call the refresh method.
1367 * tui/tui-data.h (struct tui_win_info)
1368 (struct tui_source_window_base) <refresh>: New method.
1370 2019-06-25 Tom Tromey <tom@tromey.com>
1372 * tui/tui.h (tui_is_window_visible): Return bool.
1373 * tui/tui.c (tui_is_window_visible): Return bool.
1374 * tui/tui-wingeneral.c (tui_make_window, make_visible)
1375 (tui_make_visible, tui_make_invisible)
1376 (tui_win_info::make_visible)
1377 (tui_source_window_base::make_visible, make_all_visible)
1378 (tui_make_all_visible, tui_make_all_invisible): Update.
1379 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
1380 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
1382 (struct tui_win_info, struct tui_source_window_base)
1383 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
1384 * tui/tui-data.c (tui_init_generic_part): Update.
1386 2019-06-25 Tom Tromey <tom@tromey.com>
1388 * tui/tui-wingeneral.c (tui_win_info::make_visible)
1389 (tui_source_window_base::make_visible): New methods.
1390 (make_all_visible): Make method call.
1391 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
1392 (struct tui_source_window_base, struct tui_cmd_window): Override
1394 (tui_win_is_source_type): Don't declare.
1395 * tui/tui-data.c (tui_win_is_source_type): Remove.
1397 2019-06-25 Tom Tromey <tom@tromey.com>
1399 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
1402 2019-06-25 Tom Tromey <tom@tromey.com>
1404 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
1405 Inline constructor. Add initializers for members.
1406 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
1407 constructors; now inline in class.
1409 2019-06-25 Tom Tromey <tom@tromey.com>
1411 * tui/tui-regs.c (tui_show_registers): Update.
1412 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
1414 * tui/tui-data.c (tui_data_window::clear_detail)
1415 (tui_data_window): Update.
1417 2019-06-25 Tom Tromey <tom@tromey.com>
1419 * tui/tui-windata.c (tui_display_all_data)
1420 (tui_display_data_from_line, tui_display_data_from)
1421 (tui_check_data_values, tui_data_window::do_scroll_vertical):
1423 * tui/tui-regs.c (tui_last_regs_line_no)
1424 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
1425 (tui_show_registers, tui_show_register_group)
1426 (tui_display_registers_from, tui_display_reg_element_at_line)
1427 (tui_display_registers_from_line, tui_check_register_values)
1428 (tui_reg_next, tui_reg_prev): Update.
1429 * tui/tui-layout.c (tui_set_layout, show_data): Update.
1430 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
1432 (struct tui_win_info) <detail>: Remove. Add new fields from
1434 (TUI_DATA_WIN): Add cast.
1435 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
1436 (~tui_data_window): Simplify.
1438 2019-06-25 Tom Tromey <tom@tromey.com>
1440 * tui/tui-layout.c (show_source_disasm_command)
1441 (show_source_or_disasm_and_command): Update.
1442 * tui/tui-io.c (update_cmdwin_start_line)
1443 (tui_redisplay_readline): Update.
1444 * tui/tui-data.h (struct tui_command_info): Remove.
1445 (struct tui_win_info) <detail>: Remove command_info member.
1446 (struct tui_data_window) <start_line>: New member, from
1448 (TUI_CMD_WIN): Add casts.
1450 2019-06-25 Tom Tromey <tom@tromey.com>
1452 * tui/tui-winsource.c (tui_update_source_window)
1453 (tui_refill_source_window)
1454 (tui_source_window_base::do_scroll_horizontal)
1455 (tui_update_breakpoint_info, tui_set_exec_info_content)
1456 (tui_show_exec_info_content, tui_erase_exec_info_content)
1457 (tui_clear_exec_info_content): Update.
1458 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
1460 * tui/tui-win.c (make_invisible_and_set_new_height)
1461 (make_visible_with_new_height): Update.
1462 * tui/tui-source.c (tui_set_source_content)
1463 (tui_show_symtab_source): Update.
1464 * tui/tui-layout.c (extract_display_start_addr)
1465 (show_source_disasm_command, show_data)
1466 (make_source_or_disasm_window)
1467 (show_source_or_disasm_and_command): Update.
1468 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
1469 (tui_disasm_window::do_scroll_vertical): Remove shadowing
1471 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
1472 to tui_source_window_base.
1473 (struct tui_win_info) <detail>: Remove source_info member.
1474 (struct tui_source_window_base) <has_locator>: Inline.
1475 Move contents from tui_source_info; rename has_locator member to
1477 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
1478 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
1480 (tui_source_window_base::clear_detail, ~tui_source_window_base):
1482 (tui_free_all_source_wins_content): Cast to
1483 tui_source_window_base.
1485 2019-06-25 Tom Tromey <tom@tromey.com>
1487 * tui/tui-win.c (make_invisible_and_set_new_height)
1488 (make_visible_with_new_height): Call has_locator method.
1489 * tui/tui-layout.c (show_source_disasm_command, show_data)
1490 (show_source_or_disasm_and_command): Update for bool change.
1491 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
1492 (tui_win_info) <has_locator>: New method.
1493 (struct tui_source_window_base) <has_locator>: New method.
1494 (tui_win_has_locator): Don't declare.
1495 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
1496 from tui_win_has_locator.
1497 (tui_source_window_base): Use false, not FALSE.
1499 2019-06-25 Tom Tromey <tom@tromey.com>
1501 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
1502 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
1503 clear_detail method directly.
1504 (tui_clear_win_detail): Remove.
1506 2019-06-25 Tom Tromey <tom@tromey.com>
1508 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
1509 "this", not TUI_DISASM_WIN.
1511 2019-06-25 Tom Tromey <tom@tromey.com>
1513 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
1515 * tui/tui-winsource.c
1516 (tui_source_window_base::do_scroll_horizontal): Rename from
1517 tui_horizontal_source_scroll.
1518 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
1519 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
1520 from tui_vertical_data_scroll.
1521 * tui/tui-win.h (tui_scroll): Don't declare.
1522 * tui/tui-win.c (tui_win_info::forward_scroll)
1523 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1524 (tui_win_info::right_scroll): Rename and update.
1525 (tui_scroll_forward_command, tui_scroll_backward_command)
1526 (tui_scroll_left_command, tui_scroll_right_command): Update.
1527 (tui_scroll): Remove.
1528 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
1529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
1530 from tui_vertical_source_scroll.
1531 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
1532 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
1533 from tui_vertical_disassem_scroll.
1534 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
1535 do_scroll_horizontal>: New methods.
1536 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
1538 (struct tui_source_window_base): Add do_scroll_horizontal.
1539 (struct tui_source_window, struct tui_disasm_window): Add
1541 (struct tui_data_window, struct tui_cmd_window): Add
1542 do_scroll_horizontal and do_scroll_vertical.
1543 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
1545 2019-06-25 Tom Tromey <tom@tromey.com>
1547 * tui/tui-data.h (struct tui_source_window_base): New struct.
1548 (struct tui_source_window): Derive from tui_source_window_base.
1549 (struct tui_disasm_window): New struct.
1550 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
1551 from tui_source_window::clear_detail.
1552 (tui_source_window_base): Rename from tui_source_window.
1553 (~tui_source_window_base): Rename from ~tui_source_window.
1554 (tui_alloc_win_info): Create a tui_disasm_window.
1556 2019-06-25 Tom Tromey <tom@tromey.com>
1558 * tui/tui-data.h (struct tui_source_window)
1559 (struct tui_data_window): Declare destructors.
1560 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
1562 (tui_win_info): Simplify.
1564 2019-06-25 Tom Tromey <tom@tromey.com>
1566 * tui/tui-winsource.c (tui_display_main)
1567 (tui_update_source_windows_with_addr)
1568 (tui_update_all_breakpoint_info): Update.
1569 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1570 (new_height_ok, parse_scrolling_args): Update.
1571 * tui/tui-stack.c (tui_show_frame_info): Update.
1572 * tui/tui-data.h (struct tui_list): Remove.
1573 (tui_source_windows): Return a reference to a std::vector.
1574 * tui/tui-data.c (source_windows): Now a std::vector.
1575 (tui_source_windows): Change return type.
1576 (tui_clear_source_windows): Rewrite.
1577 (tui_clear_source_windows_detail, tui_add_to_source_windows)
1578 (tui_free_all_source_wins_content): Rewrite.
1580 2019-06-25 Tom Tromey <tom@tromey.com>
1582 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
1583 (struct tui_data_window, struct tui_cmd_window): Declare
1584 clear_detail method.
1585 * tui/tui-data.c (tui_source_window::clear_detail)
1586 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
1588 (tui_clear_win_detail): Simplify.
1590 2019-06-25 Tom Tromey <tom@tromey.com>
1592 * tui/tui-layout.c (make_source_window, make_disasm_window)
1593 (make_source_or_disasm_window): Remove win_info_ptr parameter.
1594 Return the new window.
1595 (show_source_disasm_command, show_data)
1596 (show_source_or_disasm_and_command): Update.
1598 2019-06-25 Tom Tromey <tom@tromey.com>
1600 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
1601 parameter. Return the new window.
1602 (show_source_disasm_command): Update and remove NULL check.
1603 (show_source_or_disasm_and_command): Update.
1605 2019-06-25 Tom Tromey <tom@tromey.com>
1607 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
1609 2019-06-25 Tom Tromey <tom@tromey.com>
1611 * tui/tui-data.h (struct tui_win_info): Make constructor
1612 protected. Make destructor virtual. Add initializers.
1613 (tui_source_window, tui_data_window, tui_cmd_window): New
1615 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
1616 constructor. Add "type" parameter.
1617 (tui_source_window, tui_data_window, tui_cmd_window): New
1619 (tui_alloc_win_info): Instantiate the appropriate subclass.
1621 2019-06-25 Tom Tromey <tom@tromey.com>
1623 * tui/tui-win.c (tui_resize_all): Use delete.
1624 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
1626 (tui_free_window): Don't declare.
1627 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
1630 2019-06-25 Tom Tromey <tom@tromey.com>
1632 * tui/tui-data.h (struct tui_win_info): Add constructor.
1633 * tui/tui-data.c (tui_alloc_win_info): Use new.
1634 (tui_free_window): Use delete.
1636 2019-06-22 Tom Tromey <tom@tromey.com>
1638 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
1640 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
1642 2019-06-22 Tom Tromey <tom@tromey.com>
1644 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
1646 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
1648 2019-06-22 Tom de Vries <tdevries@suse.de>
1650 * dwarf2read.c (create_addrmap_from_aranges)
1651 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
1654 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
1656 * dwarf2read.h (dwarf2_section_info_def): Remove.
1657 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
1658 * dwarf2read.c (struct dwo_sections) <types>: Change type to
1659 std::vector<dwarf2_section_info>.
1660 (struct dwo_file) <~dwo_file>: Remove.
1661 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
1663 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
1664 (dwarf2_read_debug_names): Likewise.
1665 (create_debug_types_hash_table): Change parameter type to
1666 array_view, adjust code accordingly.
1667 (dwarf2_locate_dwo_sections): Adjust to std::vector.
1668 (partial_die_info::fixup): Likewise.
1669 (determine_prefix): Likewise.
1670 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
1672 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1674 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
1676 <~dwo_file>: Remove call to gdb_bfd_unref.
1677 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
1678 gdb_bfd_ref_ptr::get.
1680 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1682 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
1684 * dwarf2read.c (struct dwo_file): Initialize fields.
1686 (free_dwo_file): Remove, move content to ~dwo_file.
1687 (struct dwo_file_deleter): Remove.
1688 (dwo_file_up>: Remove custom deleter.
1689 (free_dwo_files): Remove.
1690 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
1692 (process_skeletonless_type_units): Call unique_ptr::get.
1693 (allocate_dwo_file_hash_table): Add deleter to created hash
1694 table. Change return type to htab_up.
1695 (lookup_dwo_file_slot): Don't memset dwo_file, call
1697 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
1698 (create_dwo_unit_in_dwp_v2): Likewise.
1699 (open_and_init_dwo_file): Likewise.
1700 (free_dwo_file_from_slot): Remove.
1702 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1704 * dwarf2read.h (struct dwarf2_section_info) <readin,
1705 is_virtual>: Change type to bool.
1706 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
1709 2019-06-19 Tom Tromey <tom@tromey.com>
1711 * tui/tui-data.h (tui_init_content_element): Don't declare.
1713 2019-06-19 Tom Tromey <tom@tromey.com>
1715 * tui/tui-data.h (tui_init_win_info): Don't declare.
1717 2019-06-19 Tom de Vries <tdevries@suse.de>
1719 * dwarf2read.h (abstract_to_concrete): Change type to
1720 std::unordered_map<sect_offset, std::vector<sect_offset>,
1721 gdb::hash_enum<sect_offset>>.
1723 2019-06-19 Tom Tromey <tromey@adacore.com>
1725 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
1726 EVAL_AVOID_SIDE_EFFECTS specially.
1728 2019-06-19 Tom Tromey <tromey@adacore.com>
1730 * source-cache.c (highlighter): New global.
1731 (source_cache::get_source_lines): Create a highlighter on demand.
1733 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
1735 * defs.h (deprecated_interactive_hook): Delete declaration.
1736 * interps.c (clear_interpreter_hooks): Remove use of
1737 deprecated_interactive_hook.
1738 * top.c (deprecated_interactive_hook): Delete definition.
1739 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
1741 2019-06-18 Tom de Vries <tdevries@suse.de>
1744 * dwarf2read.h (abstract_to_concrete): Change type from
1745 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
1746 std::unordered_map<sect_offset, std::vector<sect_offset>>.
1747 * dwarf2read.c (read_variable): Update.
1748 (dwarf2_fetch_die_loc_sect_off): Update.
1750 2019-06-17 Tom de Vries <tdevries@suse.de>
1753 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
1754 accessing parent[parent_len - 1].
1756 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
1759 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
1760 call dtrace_process_dof with NULL dof.
1762 2019-06-16 Tom de Vries <tdevries@suse.de>
1765 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
1767 2019-06-16 Tom Tromey <tom@tromey.com>
1769 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1770 (make_all_visible): Use address of member.
1772 2019-06-16 Tom Tromey <tom@tromey.com>
1774 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
1775 (tui_free_window, free_content, free_content_elements): Remove
1777 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
1779 * tui/tui-regs.c (tui_show_register_group)
1780 (tui_display_registers_from, tui_display_reg_element_at_line):
1781 Remove unnecessary cast.
1783 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1785 * linux-nat.c (normal_mask): Delete.
1786 (_initialize_linux_nat): Don't initialise normal_mask.
1788 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
1791 * dwarf-index-write.h (write_psymtabs_to_index): Add
1792 dwz_basename parameter.
1793 * dwarf-index-write.c (write_gdbindex): Move file writing to
1794 write_gdbindex_1. Change return type void.
1795 (assert_file_size): Move up, remove filename parameter.
1796 (write_gdbindex_1): New function.
1797 (write_debug_names): Change return type to void, call
1799 (struct index_wip_file): New struct.
1800 (write_psymtabs_to_index): Add dwz_basename parameter. Move
1801 file logic to index_wip_file. Write index for dwz file if
1803 (save_gdb_index_command): Pass basename of dwz file, if present.
1804 * dwarf-index-cache.c (index_cache::store): Obtain and pass
1805 build-id of dwz file, if present.
1806 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
1807 (dwarf2_get_dwz_file): Likewise.
1808 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
1809 (dwarf2_get_dwz_file): Likewise.
1811 2019-06-16 Tom Tromey <tom@tromey.com>
1813 * coffread.c (process_coff_symbol): Use xstrdup.
1814 * value.c (create_internalvar): Use xstrdup.
1816 2019-06-16 Tom Tromey <tom@tromey.com>
1818 * valops.c (value_cast, value_slice): Remove unnecessary cast.
1819 * breakpoint.c (stopin_command, stopat_command)
1820 (until_break_command, decode_location_default): Remove unnecessary
1822 * utils.c (subset_compare): Remove unnecessary cast.
1823 * ada-lang.c (ada_update_initial_language): Remove unnecessary
1825 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
1827 * infcmd.c (path_command): Remove unnecessary cast.
1828 * coffread.c (decode_type): Remove unnecessary cast.
1829 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
1830 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
1831 * tui/tui-stack.c (tui_show_locator_content)
1832 (tui_show_frame_info): Remove unnecessary cast.
1833 * tui/tui-win.c (tui_scroll_forward_command)
1834 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
1835 (parse_scrolling_args): Remove unnecessary cast.
1836 * tui/tui-data.c (init_win_info, tui_del_window)
1837 (tui_free_window, tui_del_data_windows, tui_free_data_content)
1838 (free_content_elements): Remove unnecessary cast.
1839 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
1841 * tui/tui-source.c (tui_set_source_content)
1842 (tui_vertical_source_scroll): Remove unnecessary cast.
1843 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
1845 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
1846 * tui/tui-regs.c (tui_display_registers_from)
1847 (tui_display_register): Remove unnecessary cast.
1848 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
1849 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
1850 (make_visible): Remove unnecessary cast.
1851 * tui/tui-winsource.c (tui_erase_source_content)
1852 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
1854 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
1855 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
1856 * stabsread.c (read_type, read_array_type, read_range_type):
1857 Remove unnecessary cast.
1858 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
1859 (parse_symbol, parse_type, upgrade_type, parse_external)
1860 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
1862 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
1864 2019-06-16 Tom Tromey <tom@tromey.com>
1866 * tui/tui-data.c (tui_alloc_generic_win_info)
1867 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
1870 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
1871 Andrew Burgess <andrew.burgess@embecosm.com>
1873 * f-typeprint.c (f_print_type): Don't return early for not
1874 associated or not allocated types.
1875 (f_type_print_varspec_suffix): Add print_rank parameter and print
1876 ranks of array types in case they dangling.
1877 (f_type_print_base): Add print_rank parameter.
1879 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1881 * NEWS: Mention new MI commands.
1882 * break-catch-throw.c (enum exception_event_kind): Move to
1884 (print_mention_exception_catchpoint): Output text as a single
1886 (catch_exception_command_1): Rename to...
1887 (catch_exception_event): ...this, make non-static, update header
1888 command, and change some parameter types.
1889 (catch_catch_command): Update for changes to
1890 catch_exception_command_1.
1891 (catch_throw_command): Likewise.
1892 (catch_rethrow_command): Likewise.
1893 * breakpoint.c (enum exception_event_kind): Delete.
1894 * breakpoint.h (enum exception_event_kind): Moved here from
1895 break-catch-throw.c.
1896 (catch_exception_event): Declare.
1897 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
1898 (mi_cmd_catch_throw): New function.
1899 (mi_cmd_catch_rethrow): New function.
1900 (mi_cmd_catch_catch): New function.
1901 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
1902 'catch-catch' entries.
1903 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
1904 (mi_cmd_catch_rethrow): Declare.
1905 (mi_cmd_catch_catch): Declare.
1907 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1909 * annotate.c (annotate_source_line): Change return type to void,
1910 update implementation to match.
1911 * annotate.h (annotate_source_line): Change return type to void,
1912 update header comment.
1913 * stack.c (print_frame_info): Don't change what frame information
1914 is printed based on whether annotations are on or not.
1916 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
1919 (annotate_source): Make static.
1920 (annotate_source_line): Moved from source.c and renamed from
1921 identify_source_line. Update the return type.
1922 * annotate.h (annotate_source): Delete declaration.
1923 (annotate_source_line): Declaration moved from source.h, and
1924 renamed from identify_source_line. Return type updated.
1925 * source.c (identify_source_line): Moved to annotate.c and renamed
1926 to annotate_source_line.
1927 (info_line_command): Remove check of annotation_level.
1928 * source.h (identify_source_line): Move declaration to annotate.h
1929 and rename to annotate_source_line.
1930 * stack.c: Add 'annotate.h' include.
1931 (print_frame_info): Remove check of annotation_level before
1932 calling annotate_source_line.
1934 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1936 * source-cache.c (source_cache::get_plain_source_lines): Use
1937 open_source_file_with_line_charpos instead of just
1938 open_source_file, remove call to find_source_lines.
1939 (source_cache::get_source_lines): Likewise.
1940 * source.c (find_source_lines): Make static.
1941 (get_filename_and_charpos): Renamed into...
1942 (open_source_file_with_line_charpos): ..this along with changes to
1943 return a scoped_fd, and some other minor clean ups.
1944 (identify_source_line): Use open_source_file_with_line_charpos.
1945 (search_command_helper): Use open_source_file_with_line_charpos
1946 instead of just open_source_file, remove call to
1948 * source.h (open_source_file_with_line_charpos): Declare new
1950 (find_source_lines): Delete declaration.
1952 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1954 * source.c (get_filename_and_charpos): Remove fullname
1956 (identify_source_line): Update call to get_filename_and_charpos.
1958 2019-06-14 Tom Tromey <tromey@adacore.com>
1961 * ui-style.h (skip_ansi_escape): Update comment.
1962 * ui-file.h (class no_terminal_escape_file): New class.
1963 * ui-file.c (no_terminal_escape_file::write)
1964 (no_terminal_escape_file::puts): New methods.
1965 * cli/cli-logging.c (handle_redirections): Use
1966 no_terminal_escape_file.
1968 2019-06-14 Tom Tromey <tromey@adacore.com>
1970 * NEWS: Move convenience variable news above Python news.
1972 2019-06-14 Tom Tromey <tom@tromey.com>
1974 * gnulib: Move directory to top-level.
1975 * configure.ac: Don't configure gnulib.
1976 * configure: Rebuild.
1977 * common/common-defs.h: Use new path to gnulib.
1978 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
1980 (INCGNU): Look in new gnulib location.
1981 (HFILES_NO_SRCDIR): Remove gnulib files.
1982 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
1983 (generated_files): Remove GNULIB_H.
1984 ($(LIBGNU), all-lib): Remove targets.
1985 (distclean): Don't mention GNULIB_BUILDDIR.
1986 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
1988 2019-06-14 Tom Tromey <tromey@adacore.com>
1990 * symfile.c (add_symbol_file_command): Remove obsolete comment.
1991 Warn if symbol file does not provide any symbols.
1993 2019-06-14 Tom Tromey <tromey@adacore.com>
1995 * source.c (find_and_open_source): Respect basenames_may_differ.
1997 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
1999 * annotate.c (annotate_breakpoints_invalid): Make use of
2000 scoped_restore_terminal_state.
2001 (annotate_frames_invalid): Likewise.
2003 2019-06-14 Tom Tromey <tromey@adacore.com>
2005 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
2006 allow assignment to an internalvar.
2008 2019-06-14 Tom Tromey <tromey@adacore.com>
2010 * ada-lex.l: Allow "_" in attribute names.
2012 2019-06-14 Tom Tromey <tromey@adacore.com>
2015 * regcache.c (registers_changed): Don't call alloca.
2016 * top.c (execute_command): Don't call alloca.
2018 2019-06-13 Pedro Alves <palves@redhat.com>
2020 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
2021 'expression'. When parsing an expression, error out if there's
2022 junk after "unlimited".
2023 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2024 (do_set_command): Adjust calls to is_unlimited_literal.
2026 2019-06-13 Pedro Alves <palves@redhat.com>
2028 * compile/compile.c (make_compile_options_def_group): Add braces
2029 around array_view initializer.
2030 * thread.c (make_thread_apply_all_options_def_group)
2031 (make_thread_apply_all_options_def_group): Likewise.
2033 2019-06-13 Pedro Alves <palves@redhat.com>
2035 * NEWS (New commands): Mention "maint test-options
2036 require-delimiter", "maint test-options unknown-is-error", "maint
2037 test-options unknown-is-operand" and "maint show
2038 test-options-completion-result".
2039 (New command options, command completion): New section.
2040 (Completion improvements): New section.
2041 Mention that you can abbreviate "unlimited".
2043 2019-06-13 Pedro Alves <palves@redhat.com>
2045 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
2046 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
2047 * unittests/cli-utils-selftests.c (test_parse_flags)
2048 (test_parse_flags_qcs): Delete.
2049 (test_cli_utils): Don't call deleted functions.
2051 2019-06-13 Pedro Alves <palves@redhat.com>
2053 * thread.c: Include "cli/cli-option.h".
2054 (tp_array_compar_ascending): Global.
2055 (tp_array_compar): Delete function.
2056 (tp_array_compar_ascending, tp_array_compar_descending): New
2058 (ascending_option_def, qcs_flag_option_def)
2059 (thr_qcs_flags_option_defs)
2060 (make_thread_apply_all_options_def_group)
2061 (make_thread_apply_options_def_group): New.
2062 (thread_apply_all_command): Use gdb::option::process_options.
2063 (thread_apply_command_completer)
2064 (thread_apply_all_command_completer): New.
2065 (thread_apply_command): Use gdb::option::process_options.
2066 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
2067 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
2068 to generate help text of "thread apply". Adjust "taas"'s help.
2069 * tid-parse.c (tid_range_parser::in_thread_range): New method.
2070 * tid-parse.h (tid_range_parser::in_thread_range): New method.
2072 2019-06-13 Pedro Alves <palves@redhat.com>
2074 * thread.c (thread_apply_command): Check for invalid TID with
2075 isdigit instead of !isalpha.
2077 2019-06-13 Pedro Alves <palves@redhat.com>
2079 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
2080 (validate_flags_qcs): New.
2081 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
2082 (validate_flags_qcs): Declare.
2083 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
2084 (make_frame_apply_options_def_group): New.
2085 (frame_apply_command_count): Process options with
2086 gdb::option::process_options.
2087 (frame_apply_completer): New.
2088 (frame_apply_level_completer, frame_apply_all_completer)
2089 (frame_apply_completer): New.
2090 (_initialize_stack): Update help of "frame apply", "frame apply
2091 level", "frame apply all" and "faas" to mention supported options
2092 and install command completers.
2093 * stack.h (frame_apply_all_completer): Declare.
2094 * thread.c: Include "stack.h".
2095 (tfaas_command): Add "--".
2096 (_initialize_thread): Update help "tfaas" to mention supported
2097 options and install command completer.
2099 2019-06-13 Pedro Alves <palves@redhat.com>
2101 * completer.c (complete_nested_command_line): New.
2102 (gdb_completion_word_break_characters_throw): Add assertion.
2103 * completer.h (complete_nested_command_line): Declare.
2105 2019-06-13 Pedro Alves <palves@redhat.com>
2107 * stack.c (parse_backtrace_qualifiers): New.
2108 (backtrace_command): Use it.
2109 (backtrace_command_completer): Complete on qualifiers.
2111 2019-06-13 Pedro Alves <palves@redhat.com>
2113 * frame.c: Include "cli/cli-option.h.
2114 (user_set_backtrace_options): New.
2115 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
2117 (get_prev_frame): Adjust.
2118 (boolean_option_def, uinteger_option_def)
2119 (set_backtrace_option_defs): New.
2120 (_initialize_frame): Adjust and use
2121 gdb::option::add_setshow_cmds_for_options to install "set
2122 backtrace past-main" and "set backtrace past-entry".
2123 * frame.h: Include "cli/cli-option.h".
2124 (struct frame_print_options): Forward declare.
2125 (print_frame_arguments_all, print_frame_arguments_scalars)
2126 (print_frame_arguments_none): Declare.
2127 (print_entry_values): Delete declaration.
2128 (struct frame_print_options, user_frame_print_options): New.
2129 (struct set_backtrace_options): New.
2130 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
2131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2132 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2133 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
2134 (list_args_or_locals): Add frame_print_options parameter.
2135 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
2136 * python/py-framefilter.c (enumerate_args): Pass down
2137 USER_FRAME_PRINT_OPTIONS.
2138 * stack.c: Include "cli/cli-option.h".
2139 (print_frame_arguments_all, print_frame_arguments_scalars)
2140 (print_frame_arguments_none): Declare.
2141 (print_raw_frame_arguments, print_entry_values): Delete.
2142 (user_frame_print_options): New.
2143 (boolean_option_def, enum_option_def, frame_print_option_defs):
2145 (struct backtrace_cmd_options): New.
2146 (bt_flag_option_def): New.
2147 (backtrace_command_option_defs): New.
2148 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
2149 (print_frame_arg, read_frame_arg, print_frame_args)
2150 (print_frame_info, print_frame): Add frame_print_options parameter
2152 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
2153 (backtrace_command_1): Add frame_print_options and
2154 backtrace_cmd_options parameters and use them.
2155 (make_backtrace_options_def_group): New.
2156 (backtrace_command): Process command options with
2157 gdb::option::process_options.
2158 (backtrace_command_completer): New.
2159 (_initialize_stack): Extend "backtrace"'s help to mention
2160 supported options. Install completer for "backtrace".
2161 Install some settings commands with add_setshow_cmds_for_options.
2163 2019-06-13 Pedro Alves <palves@redhat.com>
2165 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
2166 and that "set/show print raw frame-arguments" are now deprecated.
2168 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
2170 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
2171 * stack.c (_initialize_stack): Install "set/show print
2172 raw-frame-arguments", and deprecate "set/show print raw
2174 * valprint.c (_initialize_valprint): Deprecate "set/show print
2177 2019-06-13 Pedro Alves <palves@redhat.com>
2179 * compile/compile.c (struct compile_options): New.
2180 (compile_flag_option_def, compile_command_option_defs)
2181 (make_compile_options_def_group): New.
2182 (compile_file_command): Handle options with
2183 gdb::option::process_options.
2184 (compile_file_command_completer): New function.
2185 (compile_code_command): Handle options with
2186 gdb::option::process_options.
2187 (compile_code_command_completer): New function.
2188 (_initialize_compiler): Install completers for "compile code" and
2189 "compile file". Mention available options in "compile code" and
2190 "compile code"'s help.
2191 * completer.c (advance_to_completion_word): New, factored out from
2193 (advance_to_expression_complete_word_point): ... this.
2194 (advance_to_filename_complete_word_point): New.
2195 * completer.h (advance_to_filename_complete_word_point): New
2198 2019-06-13 Pedro Alves <palves@redhat.com>
2200 * compile/compile.c: Include "cli/cli-option.h".
2201 (compile_print_value): Scope data pointer is now a
2202 value_print_options pointer; adjust.
2203 (compile_print_command): Process options. Scope data pointer is
2204 now a value_print_options pointer; adjust.
2205 (_initialize_compile): Update "compile print"'s help to include
2206 supported options. Install a completer for "compile print".
2207 * cp-valprint.c (show_vtblprint, show_objectprint)
2208 (show_static_field_print): Delete.
2209 (_initialize_cp_valprint): Don't install "set print
2210 static-members", "set print vtbl", "set print object" here.
2211 * printcmd.c: Include "cli/cli-option.h" and
2212 "common/gdb_optional.h".
2213 (print_command_parse_format): Rework to fill in a
2214 value_print_options instead of a format_data.
2215 (print_value): Change parameter type from format_data pointer to
2216 value_print_options reference. Adjust.
2217 (print_command_1): Process options. Adjust to pass down a
2218 value_print_options.
2219 (print_command_completer): New.
2220 (_initialize_printcmd): Install print_command_completer as
2221 handle_brkchars completer for the "print" command. Update
2222 "print"'s help to include supported options.
2223 * valprint.c: Include "cli/cli-option.h".
2224 (show_vtblprint, show_objectprint, show_static_field_print): Moved
2225 here from cp-valprint.c.
2226 (boolean_option_def, uinteger_option_def)
2227 (value_print_option_defs, make_value_print_options_def_group):
2228 New. Use gdb::option::add_setshow_cmds_for_options to install
2229 "set print elements", "set print null-stop", "set print repeats",
2230 "set print pretty", "set print union", "set print array", "set
2231 print address", "set print symbol", "set print array-indexes".
2232 * valprint.h: Include <string> and "cli/cli-option.h".
2233 (make_value_print_options_def_group): Declare.
2234 (print_value): Change parameter type from format_data pointer to
2235 value_print_options reference.
2236 (print_command_completer): Declare.
2238 2019-06-13 Pedro Alves <palves@redhat.com>
2240 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
2241 (COMMON_SFILES): Add maint-test-settings.c.
2242 * cli/cli-decode.c (boolean_enums): New global, factored out from
2244 (add_setshow_boolean_cmd): ... here.
2245 * cli/cli-decode.h (boolean_enums): Declare.
2246 * cli/cli-option.c: New file.
2247 * cli/cli-option.h: New file.
2248 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
2249 factored out from ...
2250 (parse_cli_boolean_value(const char *)): ... this.
2251 (is_unlimited_literal): Change parameter type to pointer to
2252 pointer. Adjust and advance ARG pointer.
2253 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2254 (parse_cli_var_enum): New, factored out from ...
2255 (do_set_command): ... this. Adjust.
2256 * cli/cli-setshow.h (parse_cli_boolean_value)
2257 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2258 (parse_cli_var_enum): Declare.
2259 * cli/cli-utils.c: Include "cli/cli-option.h".
2260 (get_ulongest): New.
2261 * cli/cli-utils.h (get_ulongest): Declare.
2262 (check_for_argument): New overloads.
2263 * maint-test-options.c: New file.
2265 2019-06-13 Pedro Alves <palves@redhat.com>
2267 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
2268 parse a range if "-" is at the end of the string.
2270 2019-06-13 Pedro Alves <palves@redhat.com>
2272 * cli/cli-setshow.c (parse_auto_binary_operation)
2273 (parse_cli_boolean_value): Don't allow "o".
2275 2019-06-13 Pedro Alves <palves@redhat.com>
2277 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
2278 * NEWS: Mention maint test-settings KIND.
2279 * maint-test-settings.c: New file.
2281 2019-06-13 Pedro Alves <palves@redhat.com>
2283 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
2285 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
2288 2019-06-13 Pedro Alves <palves@redhat.com>
2290 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
2293 2019-06-13 Pedro Alves <palves@redhat.com>
2295 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
2297 2019-06-13 Pedro Alves <palves@redhat.com>
2299 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
2300 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
2302 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
2303 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
2305 (check_for_argument): Skip spaces after argument.
2307 2019-06-13 Pedro Alves <palves@redhat.com>
2309 * thread.c (thread_apply_command): Adjust TID parsing.
2310 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
2311 detected before end of string.
2312 (tid_is_in_list): Error out if LIST is invalid.
2314 2019-06-13 Pedro Alves <palves@redhat.com>
2316 * completer.c (complete_line_internal_1): Rewind completion word
2318 (completion_tracker::advance_custom_word_point_by): Change
2319 parameter type to int.
2320 * completer.h (completion_tracker::advance_custom_word_point_by):
2323 2019-06-13 Pedro Alves <palves@redhat.com>
2325 * completer.c (advance_to_completion_word): Handle delimiters.
2327 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
2329 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
2331 2019-06-11 Tom Tromey <tom@tromey.com>
2333 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
2334 (xmalloc_failed): Move to alloc.c.
2335 * alloc.c: New file.
2336 * Makefile.in (COMMON_SFILES): Add alloc.c.
2338 2019-06-11 Tom Tromey <tom@tromey.com>
2340 * nat/linux-waitpid.c: Don't include server.h.
2341 (linux_debug): Remove.
2342 (my_waitpid): Update.
2344 2019-06-11 Tom Tromey <tromey@adacore.com>
2346 * infcall.c (_initialize_infcall): Remove trailing newline from
2348 * user-regs.c (_initialize_user_regs): Remove trailing newline
2350 * typeprint.c (_initialize_typeprint): Remove trailing newline
2352 * reverse.c (_initialize_reverse): Remove trailing newlines from
2354 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
2356 * language.c (add_set_language_command): Remove trailing newline
2358 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
2360 * disasm.c (_initialize_disasm): Remove trailing newline from
2362 * top.c (init_main): Remove trailing newline from help.
2363 * interps.c (_initialize_interpreter): Remove trailing newline
2365 * btrace.c (_initialize_btrace): Remove trailing newlines from
2367 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
2369 * python/python.c (_initialize_python): Remove trailing newline
2371 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
2373 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
2374 from help. Reformat some text.
2375 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
2377 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
2380 2019-06-11 Tom Tromey <tromey@adacore.com>
2382 * darwin-nat.c (darwin_decode_exception_message)
2383 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
2385 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
2387 * valops.c (value_slice): Check for not allocated or not
2390 2019-06-10 Tom de Vries <tdevries@suse.de>
2393 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
2394 sure an empty slot (defined by a 32-bit zero pair) is recognized as
2397 2019-06-10 Tom de Vries <tdevries@suse.de>
2400 * linespec.c (linespec_lexer_lex_string): Remove incorrect
2401 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
2403 2019-06-10 Tom de Vries <tdevries@suse.de>
2406 * symtab.c (struct demangled_name_entry): Add language field.
2407 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
2408 static minimal symbol". Set and use language field.
2410 2019-06-10 Tom Tromey <tromey@adacore.com>
2412 * ada-lang.c (_initialize_ada_language): Update help text.
2414 2019-06-10 Tom Tromey <tromey@adacore.com>
2416 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
2418 * guile/guile.c (handle_boot_error): Don't end warning with a
2420 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
2421 warning with a newline.
2422 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
2424 (s12z_frame_cache): Likewise.
2425 * dwarf-index-cache.c (index_cache::store): Don't end warning with
2427 * solib-svr4.c (disable_probes_interface): Don't end warning with
2429 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
2431 * python/python.c (do_finish_initialization): Don't end warning
2434 2019-06-10 Tom Tromey <tom@tromey.com>
2436 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2437 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2440 2019-06-10 Tom Tromey <tromey@adacore.com>
2442 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
2444 (elf_new_init): Don't call stabsread_new_init.
2445 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
2446 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
2447 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
2449 2019-06-10 Tom de Vries <tdevries@suse.de>
2453 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
2455 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
2457 * source.c (find_and_open_source): Also rewrite relative file
2460 2019-04-26 Amos Bird <amosbird@gmail.com>
2462 * annotate.c (annotate_thread_exited): Add "thread-exited"
2465 2019-06-06 Tom Tromey <tromey@adacore.com>
2467 * maint.h (class scoped_command_stats): Use
2468 DISABLE_COPY_AND_ASSIGN.
2469 <print_time>: New method.
2470 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
2472 (scoped_command_stats::print_time): New method.
2474 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2476 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
2477 instructions of lengths 6 or 8 bytes.
2479 2019-06-04 Pedro Alves <palves@redhat.com>
2481 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
2483 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
2484 * breakpoint.c (condition_completer): Likewise.
2485 * cli/cli-dump.c (scan_expression): Likewise.
2486 * common/filestuff.c (mkdir_recursive): Likewise.
2487 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
2488 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
2489 (gdb_abspath): Likewise.
2490 * compile/compile-cplus-types.c
2491 (compile_cplus_instance::decl_name): Likewise.
2492 * completer.c (complete_explicit_location):
2493 (signal_completer, reg_or_group_completer_1): Likewise.
2494 * cp-support.c (cp_remove_params_if_any): Likewise.
2495 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
2496 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
2497 * infcmd.c (strip_bg_char): Likewise.
2498 * linespec.c (copy_token_string): Likewise.
2499 * mi/mi-main.c (output_cores): Likewise.
2500 * psymtab.c (psymtab_search_name):
2501 * symfile.c (test_set_ext_lang_command): Likewise.
2502 * target.c (target_fileio_read_stralloc): Likewise.
2503 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
2504 * value.c (complete_internalvar): Likewise.
2506 2019-06-04 Christian Biesinger <cbiesinger@google.com>
2508 Add objfile property to gdb.Type.
2509 * NEWS: Mention Python API addition.
2510 * python/py-type.c (typy_get_objfile): New method.
2512 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2514 * NEWS: Mention the new set|show style [title|highlight].
2515 Mention changes to "show style", "help" and "apropos".
2517 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2519 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
2520 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
2521 instead of print_help_for_command.
2522 (print_doc_of_command): New function.
2523 (help_list): Add 'apropos -v word' suggestion.
2524 (print_help_for_command): Style the command name using title style.
2525 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
2526 (_initialize_cli_cmds): Describe -v in apropos_command help.
2528 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2530 * cli/cli-style.h (cli_style_option): Add name in constructor,
2531 add m_name class member, add constructor with intensity,
2532 add name class function.
2533 (cli_style_option::add_setshow_commands): Remove name argument.
2534 (highlight_style, title_style): New styles.
2535 * cli/cli-style.c (do_show): New function that shows a style
2536 characteristic styling the style name with itself.
2537 (set_style_name): New function.
2538 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
2539 Update all callers according to the changes in cli/cli-style.h.
2540 * utils.h (fputs_highlighted): New function.
2541 * utils.c (fputs_highlighted): Likewise.
2543 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2545 * NEWS: Mention new pipe command and new convenience variables.
2547 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2549 * cli/cli-cmds.c (pipe_command): New function.
2550 (_initialize_cli_cmds): Call add_com for pipe_command.
2551 Define | as an alias for pipe.
2552 (exit_status_set_internal_vars): New function.
2553 (shell_escape): Call exit_status_set_internal_vars.
2554 cli/cli-decode.c (find_command_name_length): Recognize | as
2555 a single character command.
2557 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2559 * gdbcmd.h (execute_command_to_ui_file): New declaration.
2560 top.c (execute_command_to_ui_file): New function, mostly a copy
2561 of execute_command_to_string.
2562 (execute_command_to_string): Implement by calling
2563 execute_command_to_ui_file.
2565 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2567 * top.h (saved_command_line): Remove declaration.
2568 * top.c (previous_saved_command_line, previous_repeat_arguments):
2570 (saved_command_line): Make static, define together with other
2572 (dont_repeat): Clear repeat_arguments.
2573 (repeat_previous, get_saved_command_line, save_command_line):
2575 (gdb_init): Initialize saved_command_line
2576 and previous_saved_command_line.
2577 * main.c (captured_main_1): Remove saved_command_line initialization.
2578 * event-top.c (handle_line_of_input): Update to use
2579 the new 'repeat' related functions instead of direct access to
2581 * command.h (repeat_previous, get_saved_command_line,
2582 save_command_line): New declarations.
2583 (dont_repeat): Add comment.
2585 2019-05-30 Tom Tromey <tromey@adacore.com>
2587 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
2589 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
2591 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
2594 * completer.c (complete): Initialize variable word.
2596 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
2598 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2599 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
2600 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
2601 'body' is NULL to the outter 'if', protecting the '!is_define'
2604 2019-05-29 Tom Tromey <tromey@adacore.com>
2606 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
2607 (dwarf_unknown): New function.
2608 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
2609 (dwarf_type_encoding_name): Use dwarf_unknown.
2611 2019-05-29 Tom Tromey <tromey@adacore.com>
2614 * cp-valprint.c (cp_print_value_fields): Call
2615 cp_print_static_field inside "try".
2617 2019-05-29 Tom Tromey <tromey@adacore.com>
2619 * inflow.c (struct terminal_info): Add default operator=.
2620 * configure: Rebuild.
2621 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
2622 -Wdeprecated-copy-dtor, -Wredundant-move.
2624 2019-05-29 Tom Tromey <tromey@adacore.com>
2627 * infcmd.c (print_return_value_1): Handle finish_print
2629 (show_print_finish): New function.
2630 (_initialize_infcmd): Add "set/show print finish" commands.
2631 * valprint.c (user_print_options): Initialize new member.
2632 * valprint.h (struct value_print_options) <finish_print>: New
2635 2019-05-28 Tom Tromey <tromey@adacore.com>
2637 * ada-lang.c (ada_remove_Xbn_suffix)
2638 (find_old_style_renaming_symbol)
2639 (parse_old_style_renaming): Remove.
2640 (ada_find_renaming_symbol): Don't call
2641 find_old_style_renaming_symbol.
2642 (ada_is_renaming_symbol): Rename from
2643 ada_find_renaming_symbol. Remove "block" parameter. Return
2645 (ada_read_var_value): Update and simplify.
2646 * ada-exp.y (write_var_or_type): Remove old code.
2648 2019-05-28 Alan Hayward <alan.hayward@arm.com>
2650 * event-top.c: Remove include comment.
2651 * inflow.c (class scoped_ignore_sigttou): Move from here...
2652 * inflow.h (class scoped_ignore_sigttou): ...to here.
2653 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
2654 * top.c: Remove include comment.
2656 2019-05-27 Tom Tromey <tom@tromey.com>
2660 2019-05-22 Tom Tromey <tromey@adacore.com>
2662 * target.c (target_follow_exec): Constify parameter.
2663 * target-delegates.c: Rebuild.
2664 * remote.c (remote_target::follow_exec): Constify parameter.
2665 * infrun.c (follow_exec): Constify parameter.
2666 * target.h (struct target_ops) <follow_exec>: Constify parameter.
2667 (target_follow_exec): Likewise.
2669 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2671 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
2672 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
2674 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2676 * NEWS: Add debugredirect and testsuite sections.
2678 2019-05-22 Simon Cook <simon.cook@embecosm.com>
2680 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
2681 target descriptions using exclusively floating point register name
2684 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2687 * f-lang.c (build_fortran_types): Handle the case where
2688 gdbarch_floatformat_for_type returns a nullptr.
2690 2019-05-21 Tom de Vries <tdevries@suse.de>
2693 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
2695 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2698 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
2700 * i386-tdep.c (i386_floatformat_for_type): Use
2701 floatformats_ia64_quad for the 16-byte floating point component
2702 within a fortran 32-byte complex number.
2704 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2706 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
2707 delete default constructor.
2708 (find_partial_die): Update to return const struct.
2709 (partial_die_parent_scope): Move variable declaration into scope
2710 of its use and change its type to auto.
2711 (guess_partial_die_structure_name): Likewise.
2712 (partial_die_info::fixup): Likewise.
2714 2019-05-17 Tom Tromey <tromey@adacore.com>
2716 * source.c (find_and_open_source): Remove cast.
2718 2019-05-17 Tom Tromey <tromey@adacore.com>
2720 * annotate.c (annotate_source): Make "filename" const.
2721 * annotate.h (annotate_source): Use const.
2723 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2725 * disasm.c (set_disassembler_options): Send errors to stderr.
2727 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2729 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
2730 (cli_interp_base::set_logging): Check debug_redirect.
2731 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
2732 * cli/cli-logging.c (debug_redirect): Add static variable.
2733 (pop_output_files): Add default param.
2734 (handle_redirections): Print debug setting.
2735 (show_logging_command): Likewise.
2736 (_initialize_cli_logging): Add debugredirect command.
2737 * interps.c (current_interp_set_logging): Add debug_redirect
2739 * interps.h (set_logging): Add debug_redirect parameter.
2740 (current_interp_set_logging): Likewise.
2741 * mi/mi-common.h: Likewise.
2742 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
2744 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2745 Tom Tromey <tromey@adacore.com>
2747 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
2749 * cli/cli-interp.h (make_logging_output): Remove declaration.
2750 * cli/cli-logging.c (make_logging_output): Remove function.
2751 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
2753 * ui-file.c (tee_file::tee_file): Remove bools.
2754 (tee_file::~tee_file): Remove deletes.
2755 * ui-file.h (tee_file): Remove bools.
2757 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
2759 * mi/mi-cmds.h (mi_cmd_complete): New function.
2760 * mi/mi-main.c (mi_cmd_complete): Likewise.
2761 * mi/mi-cmds.c: Define new MI command -complete.
2762 * NEWS: Mention new -complete command.
2764 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
2766 * completer.h (complete): New function.
2767 * completer.c (complete): Likewise.
2768 * cli/cli-cmds.c: (complete_command): Update to use new complete()
2769 function defined in completer.h.
2771 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
2773 * MAINTAINERS (Write After Approval): Add myself.
2775 2019-05-17 Tom de Vries <tdevries@suse.de>
2778 * dwarf2read.c (struct cu_partial_die_info): New struct.
2779 (find_partial_die): Return cu_partial_die_info.
2780 (partial_die_parent_scope, guess_partial_die_structure_name)
2781 (partial_die_info::fixup): Handle new return type of find_partial_die.
2783 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2785 * stap-probe.c (stap_parse_register_operand): Make "regname" an
2786 "std::string", simplifying the algorithm.
2788 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2790 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
2791 (stap_static_probe_ops::get_probes): Likewise.
2793 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2795 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
2796 '-')" and "else if".
2797 (stap_parse_single_operand): Join checks for
2798 "gdbarch_stap_parse_special_token_p" and
2799 "gdbarch_stap_parse_special_token" in the same "if" statement.
2800 Invert check when verifying for operation on register
2803 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2805 * stap-probe.c (stap_get_opcode): Update comment.
2806 (stap_get_expected_argument_type): Likewise.
2807 (handle_stap_probe): Likewise.
2809 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2811 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
2812 return type to 'bool'. Adjust comment. Use 'bool' when
2814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2815 * stap-probe.c (stap_parse_argument_1): Likewise.
2816 (stap_is_operator): Likewise.
2817 (stap_is_generic_prefix): Likewise.
2818 (stap_is_register_prefix): Likewise.
2819 (stap_is_register_indirection_prefix): Likewise.
2820 (stap_is_integer_prefix): Likewise.
2821 (stap_generic_check_suffix): Likewise.
2822 (stap_check_integer_suffix): Likewise.
2823 (stap_check_register_suffix): Likewise.
2824 (stap_check_register_indirection_suffix): Likewise.
2825 (stap_parse_register_operand): Likewise.
2826 (stap_parse_single_operand): Likewise.
2827 (stap_parse_argument_1): Likewise.
2828 (stap_probe::get_argument_count): Likewise.
2829 (stap_is_operator): Likewise.
2831 2019-05-16 Tom Tromey <tromey@adacore.com>
2833 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
2836 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
2838 * linux-thread-db.c (try_thread_db_load_1): Change return type
2840 (try_thread_db_load): Likewise.
2841 (try_thread_db_load_from_pdir_1): Likewise.
2842 (try_thread_db_load_from_pdir): Likewise.
2843 (try_thread_db_load_from_sdir): Likewise.
2844 (try_thread_db_load_from_dir): Likewise.
2845 (thread_db_load_search): Likewise.
2846 (has_libpthread): Likewise.
2847 (thread_db_load): Likewise.
2849 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
2851 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2852 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
2853 NULL, and complain/return if that's the case.
2855 2019-05-15 John Darrington <john@darrington.wattle.id.au>
2857 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
2858 (advance, posn, abstract_read_memory): New functions.
2859 [struct mem_read_abstraction]: New struct.
2860 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
2862 2019-05-14 Tom Tromey <tromey@adacore.com>
2864 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
2865 value is not lval_memory.
2867 2019-05-14 Tom Tromey <tromey@adacore.com>
2869 * solib.c (info_sharedlibrary_command): Style the file name.
2871 2019-05-14 Alan Hayward <alan.hayward@arm.com>
2873 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
2874 (aarch64_vnv_type): Likewise.
2875 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
2876 * common/tdesc.c: Likewise.
2877 * common/tdesc.h (enum tdesc_type_kind): Likewise.
2878 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
2879 * features/aarch64-fpu.xml: Add ieee half view.
2880 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
2881 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
2882 * gdbtypes.h (struct builtin_type): Likewise.
2883 (struct objfile_type): Likewise.
2885 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
2887 * language.c (language_sniff_from_mangled_name): Fix "langauge"
2889 * location.h (string_to_event_location): Likewise.
2891 2019-05-11 Joel Brobecker <brobecker@adacore.com>
2895 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2897 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
2898 New variable declaration.
2899 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
2901 (print_one_breakpoint): Use ui_out::test_flags and new global
2902 variable to compute use_fixed_output.
2903 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
2905 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
2906 (mi_multi_location_breakpoint_output_fixed): Remove.
2907 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
2909 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
2910 fix_multi_location_breakpoint_output flag if version >= 3.
2911 * ui-out.h (enum ui_out_flag)
2912 <fix_multi_location_breakpoint_output>: New enumerator.
2914 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2916 * contrib/cc-with-tweaks.sh: Validate dwz's work.
2918 2019-05-10 Tom Tromey <tromey@adacore.com>
2920 * ada-lang.c (catch_ada_completer): New function.
2921 (_initialize_ada_language): Use it.
2923 2019-05-10 Tom Tromey <tromey@adacore.com>
2925 * thread.c (print_thread_info): Make "requested_threads" const.
2926 * gdbthread.h (print_thread_info): Make "requested_threads"
2928 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
2929 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
2931 2019-05-08 Tom Tromey <tom@tromey.com>
2933 * gdbtypes.c (objfile_type_data): Change type.
2934 (objfile_type, _initialize_gdbtypes): Update.
2936 2019-05-08 Tom Tromey <tom@tromey.com>
2938 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
2939 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
2940 (_initialize_dwarf2_frame): Update.
2942 2019-05-08 Tom Tromey <tom@tromey.com>
2944 * objc-lang.c (objc_objfile_data): Change type.
2945 (find_methods): Update.
2946 (_initialize_objc_lang): Remove.
2948 2019-05-08 Tom Tromey <tom@tromey.com>
2950 * stabsread.c (rs6000_builtin_type_data): Change type.
2951 (rs6000_builtin_type, _initialize_stabsread): Update.
2953 2019-05-08 Tom Tromey <tom@tromey.com>
2955 * mips-tdep.c (mips_pdr_data): Remove.
2956 (_initialize_mips_tdep): Update.
2958 2019-05-08 Tom Tromey <tom@tromey.com>
2960 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
2961 (hppa_init_objfile_priv_data, read_unwind_info)
2962 (find_unwind_entry, _initialize_hppa_tdep): Update.
2964 2019-05-08 Tom Tromey <tom@tromey.com>
2966 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
2967 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
2969 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
2971 2019-05-08 Tom Tromey <tom@tromey.com>
2973 * mdebugread.c (basic_type_data): Change type.
2974 (basic_type, _initialize_mdebugread): Update.
2976 2019-05-08 Tom Tromey <tom@tromey.com>
2978 * common/gdb_unique_ptr.h (struct noop_deleter): New.
2980 2019-05-08 Tom Tromey <tom@tromey.com>
2982 * nto-tdep.c (nto_inferior_data_reg): Change type.
2983 (nto_inferior_data): Update.
2984 (nto_inferior_data_cleanup, nto_new_inferior_data)
2985 (_initialize_nto_tdep): Remove.
2986 * nto-tdep.h (struct nto_inferior_data): Add initializers.
2988 2019-05-08 Tom Tromey <tom@tromey.com>
2990 * ada-lang.c (struct ada_inferior_data): Add initializers.
2991 (ada_inferior_data): Change type.
2992 (ada_inferior_data_cleanup): Remove.
2993 (get_ada_inferior_data, ada_inferior_exit)
2994 (struct ada_pspace_data): Add initializers, destructor.
2995 (ada_pspace_data_handle): Change type.
2996 (get_ada_pspace_data): Update.
2997 (ada_pspace_data_cleanup): Remove.
2999 2019-05-08 Tom Tromey <tom@tromey.com>
3001 * coffread.c (struct coff_symfile_info): Add initializers.
3002 (coff_objfile_data_key): Move lower. Change type.
3003 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
3005 (coff_free_info): Remove.
3007 2019-05-08 Tom Tromey <tom@tromey.com>
3009 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
3010 (fbsd_pspace_data_handle): Move lower. Change type.
3011 (get_fbsd_pspace_data): Update.
3012 (fbsd_pspace_data_cleanup): Remove.
3013 (_initialize_fbsd_tdep): Update.
3015 2019-05-08 Tom Tromey <tom@tromey.com>
3017 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
3018 (get_ada_tasks_pspace_data): Update.
3019 (ada_tasks_pspace_data_cleanup): Remove.
3020 (_initialize_tasks): Update.
3021 (ada_tasks_inferior_data_handle): Change type.
3022 (get_ada_tasks_inferior_data): Update.
3023 (ada_tasks_inferior_data_cleanup): Remove.
3024 (struct ada_tasks_pspace_data): Add initializers.
3026 2019-05-08 Tom Tromey <tom@tromey.com>
3028 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
3029 * symfile-debug.c (debug_sym_get_probes): Change type.
3030 * stap-probe.c (handle_stap_probe):
3031 (stap_static_probe_ops::get_probes): Change type.
3032 * probe.h (class static_probe_ops) <get_probes>: Change type.
3033 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
3034 (parse_probes_in_pspace): Update.
3035 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
3037 (any_static_probe_ops::get_probes): Change type.
3038 * elfread.c (elfread_data): New typedef.
3039 (probe_key): Change type.
3040 (elf_get_probes): Likewise. Update.
3041 (probe_key_free): Remove.
3042 (_initialize_elfread): Update.
3043 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
3045 (dtrace_process_dof_probe, dtrace_process_dof)
3046 (dtrace_static_probe_ops::get_probe): Change type.
3048 2019-05-08 Tom Tromey <tom@tromey.com>
3050 * xcoffread.c (struct xcoff_symfile_info): Rename from
3051 coff_symfile_info. Add initializers.
3052 (xcoff_objfile_data_key): Move lower. Change type.
3053 (XCOFF_DATA): Rewrite.
3054 (xcoff_free_info): Remove.
3055 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
3056 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
3057 (xcoff_initial_scan): Update.
3059 2019-05-08 Tom Tromey <tom@tromey.com>
3061 * solib-svr4.c (struct svr4_info): Add initializers and
3063 <probes_table>: Now an htab_up.
3064 (solib_svr4_pspace_data): Change type.
3065 (free_probes_table): Simplify.
3066 (~svr4_info): Rename from svr4_pspace_data_cleanup.
3067 (get_svr4_info, probes_table_htab_remove_objfile_probes)
3068 (probes_table_remove_objfile_probes, register_solib_event_probe)
3069 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
3070 (_initialize_svr4_solib): Update.
3072 2019-05-08 Tom Tromey <tom@tromey.com>
3074 * remote.c (remote_pspace_data): Change type.
3075 (remote_pspace_data_cleanup): Remove.
3076 (get_remote_exec_file, set_pspace_remote_exec_file)
3077 (_initialize_remote): Update.
3079 2019-05-08 Tom Tromey <tom@tromey.com>
3081 * breakpoint.c (breakpoint_objfile_key): Change type.
3082 (get_breakpoint_objfile_data): Update.
3083 (free_breakpoint_objfile_data): Remove.
3084 (_initialize_breakpoint): Update.
3086 2019-05-08 Tom Tromey <tom@tromey.com>
3088 * linux-tdep.c (struct linux_info): Add initializers.
3089 (linux_inferior_data): Move. Change type.
3090 (invalidate_linux_cache_inf): Update.
3091 (linux_inferior_data_cleanup): Remove.
3092 (get_linux_inferior_data, _initialize_linux_tdep): Update.
3094 2019-05-08 Tom Tromey <tom@tromey.com>
3096 * auxv.c (auxv_inferior_data): Move. Change type.
3097 (auxv_inferior_data_cleanup): Remove.
3098 (invalidate_auxv_cache_inf): Rewrite.
3099 (get_auxv_inferior_data, _initialize_auxv): Update.
3101 2019-05-08 Tom Tromey <tom@tromey.com>
3103 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
3104 (symfile_debug_objfile_data_key): Change type.
3105 (symfile_debug_installed, debug_qf_has_symbols)
3106 (debug_qf_find_last_source_symtab)
3107 (debug_qf_forget_cached_source_info)
3108 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
3109 (debug_qf_print_stats, debug_qf_dump)
3110 (debug_qf_expand_symtabs_for_function)
3111 (debug_qf_expand_all_symtabs)
3112 (debug_qf_expand_symtabs_with_fullname)
3113 (debug_qf_map_matching_symbols)
3114 (debug_qf_expand_symtabs_matching)
3115 (debug_qf_find_pc_sect_compunit_symtab)
3116 (debug_qf_map_symbol_filenames)
3117 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
3118 (debug_sym_new_init, debug_sym_init, debug_sym_read)
3119 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
3120 (debug_sym_read_linetable, debug_sym_relocate): Update.
3121 (symfile_debug_free_objfile): Remove.
3122 (install_symfile_debug_logging, _initialize_symfile_debug):
3125 2019-05-08 Tom Tromey <tom@tromey.com>
3127 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
3128 allocate_on_obstack.
3129 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
3130 (get_dwarf2_per_objfile): Update.
3131 (set_dwarf2_per_objfile): Remove.
3132 (dwarf2_has_info, dwarf2_get_section_info): Update.
3133 (dwarf2_free_objfile): Remove.
3134 (_initialize_dwarf2_read): Update.
3136 2019-05-08 Tom Tromey <tom@tromey.com>
3138 * auto-load.c (struct auto_load_pspace_info): Add destructor and
3140 <unsupported_script_warning_printed,
3141 script_not_found_warning_printed>: Now bool.
3142 (auto_load_pspace_data): Change type.
3143 (~auto_load_pspace_info): Rename from
3144 auto_load_pspace_data_cleanup.
3145 (get_auto_load_pspace_data, init_loaded_scripts_info)
3146 (clear_section_scripts, maybe_print_unsupported_script_warning)
3147 (maybe_print_script_not_found_warning, _initialize_auto_load):
3150 2019-05-08 Tom Tromey <tom@tromey.com>
3152 * objfiles.c (objfile_pspace_info): Add destructor and
3154 (objfiles_pspace_data): Change type.
3155 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
3156 (get_objfile_pspace_data): Update.
3157 (objfiles_bfd_data): Change type.
3158 (get_objfile_bfd_data): Update.
3159 (objfile_bfd_data_free, _initialize_objfiles): Remove.
3161 2019-05-08 Tom Tromey <tom@tromey.com>
3163 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
3165 (get_catch_syscall_inferior_data): Update.
3166 (catch_syscall_inferior_data_cleanup): Remove.
3167 (_initialize_break_catch_syscall): Update.
3169 2019-05-08 Tom Tromey <tom@tromey.com>
3171 * inflow.c (struct terminal_info): Add destructor and
3173 (inflow_inferior_data): Change type.
3174 (~terminal_info): Rename from inflow_inferior_data_cleanup.
3175 (get_inflow_inferior_data, inflow_inferior_exit)
3176 (swap_terminal_info, _initialize_inflow): Update.
3178 2019-05-08 Tom Tromey <tom@tromey.com>
3180 * target-dcache.c (target_dcache_cleanup): Remove.
3181 (target_dcache_aspace_key): Change type.
3182 (target_dcache_init_p, target_dcache_invalidate)
3183 (target_dcache_get, target_dcache_get_or_init)
3184 (_initialize_target_dcache): Update.
3185 * dcache.h (struct dcache_deleter): New.
3187 2019-05-08 Tom Tromey <tom@tromey.com>
3189 * symtab.c (struct symbol_cache): Add destructor and
3191 (symbol_cache_key): Move. Change type.
3192 (make_symbol_cache, free_symbol_cache): Remove.
3193 (get_symbol_cache): Update.
3194 (symbol_cache_cleanup): Remove.
3195 (ALL_PSPACES, symbol_cache_flush)
3196 (maintenance_print_symbol_cache)
3197 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
3200 2019-05-08 Tom Tromey <tom@tromey.com>
3202 * symtab.c (struct main_info): Add destructor and initializers.
3203 (main_progspace_key): Move. Change type.
3204 (get_main_info): Update.
3205 (main_info_cleanup): Remove.
3206 (_initialize_symtab): Update.
3208 2019-05-08 Tom Tromey <tom@tromey.com>
3210 * registry.h (DECLARE_REGISTRY): Define the _key class.
3212 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3214 * NEWS: Merge two 'New commands' sections.
3216 2019-05-08 Joel Brobecker <brobecker@adacore.com>
3218 * ada-valprint.c (ada_val_print_gnat_array): Remove language
3219 parameter and use Ada language definition instead.
3220 (ada_val_print_ptr): Remove unused language parameter.
3221 (ada_val_print_num): Remove language parameter and use Ada language
3223 (ada_val_print_enum, ada_val_print_flt): Remove unused language
3225 (ada_val_print_struct_union, ada_val_print_ref): Remove language
3226 parameter and use Ada language definition instead.
3227 (ada_val_print_1): Update all ada_val_print_xxx calls.
3228 Remove language parameter.
3229 (ada_val_print): Update ada_val_print_1 call.
3231 2019-05-08 Tom Tromey <tromey@adacore.com>
3233 * remote.c (remote_hw_watchpoint_limit)
3234 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
3237 2019-05-08 Tom Tromey <tromey@adacore.com>
3239 * maint.c (_initialize_maint_cmds): Move initialization code to
3241 (watchdog, show_watchdog): Move to remote.c.
3242 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
3244 (_initialize_remote): Move initialization code from maint.c.
3245 * defs.h (watchdog): Don't declare.
3247 2019-05-08 Tom Tromey <tromey@adacore.com>
3249 * tui/tui-interp.c: Include main.h.
3250 * interps.c: Include main.h.
3251 * main.h (interpreter_p): Declare.
3252 * defs.h (interpreter_p): Don't declare.
3254 2019-05-08 Tom Tromey <tromey@adacore.com>
3256 * dwarf2loc.c: Include dwarf2read.h.
3257 * defs.h (read_unsigned_leb128): Don't declare.
3258 * dwarf2read.h (read_unsigned_leb128): Declare.
3260 2019-05-08 Tom Tromey <tromey@adacore.com>
3262 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
3265 2019-05-08 Tom Tromey <tromey@adacore.com>
3267 * utils.c (fputs_maybe_filtered): Reset style after paging, even
3268 when no wrap column is set.
3270 2019-05-08 Tom Tromey <tromey@adacore.com>
3272 * c-lang.c (c_get_string): Handle non-C-style arrays.
3274 2019-05-08 Tom Tromey <tromey@adacore.com>
3276 * typeprint.c (print_offset_data::update): Print the bit offset,
3277 not the number of bits remaining.
3279 2019-05-08 Tom Tromey <tromey@adacore.com>
3281 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
3282 padding at end of comment.
3284 2019-05-08 Tom Tromey <tromey@adacore.com>
3286 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
3289 2019-05-06 Tom Tromey <tom@tromey.com>
3291 * common/scoped_mmap.c: Include common-defs.h.
3292 * common/scoped_mmap.h: Don't include config.h.
3294 2019-05-04 Tom Tromey <tom@tromey.com>
3296 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
3297 (struct aarch64_call_info): Add initializers.
3298 <si>: Now a std::vector.
3299 (pass_on_stack, aarch64_push_dummy_call): Update.
3301 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
3302 Tom Tromey <tom@tromey.com>
3304 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
3305 (ppc_threads): Now a std::vector. Now static.
3306 (hwdebug_find_thread_points_by_tid)
3307 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
3310 2019-05-04 Tom Tromey <tom@tromey.com>
3312 * arc-tdep.c (arc_tdesc_init): Return bool.
3314 2019-05-04 Tom Tromey <tom@tromey.com>
3316 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
3317 Use gdb_assert_not_reached.
3319 2019-05-04 Tom Tromey <tom@tromey.com>
3321 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
3324 2019-05-04 Tom Tromey <tom@tromey.com>
3326 * arc-tdep.c (arc_tdesc_init): Use bool.
3328 2019-05-04 Tom Tromey <tom@tromey.com>
3330 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
3332 2019-05-04 Tom Tromey <tom@tromey.com>
3334 * cli/cli-cmds.c (valid_command_p): Return bool.
3336 2019-05-04 Tom Tromey <tom@tromey.com>
3338 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
3339 * command.h (valid_user_defined_cmd_name_p): Channge return type.
3341 2019-05-04 Raul Tambre <raul@tambre.ee>
3343 * python/lib/gdb/prompt.py (_ExtendedPrompt)
3344 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
3345 operator for comparison.
3347 2019-05-04 Tom Tromey <tom@tromey.com>
3349 * psymtab.c (psymbol_name_matches, match_partial_symbol)
3350 (lookup_partial_symbol, print_partial_symbols)
3351 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
3352 (psymbol_compare): Update.
3353 (add_psymbol_to_bcache): Clear the entire psymbol.
3354 (maintenance_check_psymtabs): Update.
3355 * psympriv.h (struct partial_symbol): Don't derive from
3356 general_symbol_info.
3357 <obj_section, unrelocated_address, address,
3358 set_unrelocated_address>: Update.
3359 <ginfo>: New member.
3360 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3361 (debug_names::write_psymbols): Update.
3363 2019-05-04 Tom de Vries <tdevries@suse.de>
3365 * contrib/cc-with-tweaks.sh: Support -n arg.
3367 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3369 * corelow.c (core_target::detach): Ensure frame cache and
3370 register caches are cleared.
3371 inferior.c (exit_inferior_1): Likewise.
3373 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
3374 Tom Tromey <tom@tromey.com>
3376 * dictionary.c (collate_pending_symbols_by_language): Remove
3377 "struct" from foreach.
3378 * symtab.c (lookup_global_symbol_from_objfile)
3379 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
3381 * ser-tcp.c (net_open): Remove "struct" from foreach.
3382 * objfiles.c (objfile_relocate, objfile_rebase)
3383 (objfile_has_symbols): Remove "struct" from foreach.
3384 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
3386 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
3388 * darwin-nat.c (thread_info_from_private_thread_info): Remove
3389 "struct" from foreach.
3390 * ada-lang.c (create_excep_cond_exprs)
3391 (ada_exception_catchpoint_cond_string): Remove "struct" from
3394 2019-05-03 Tom Tromey <tromey@adacore.com>
3396 * ada-exp.y (convert_char_literal): Check suffix of each
3399 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3402 * ada-exp.y (yywrap): Don't define.
3403 * ada-lex.l (%option): Add noyywrap
3406 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3408 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
3409 _WIN32_WINNT to the XP level, unless already defined to a higher
3412 * unittests/parse-connection-spec-selftests.c:
3414 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
3417 * symfile.c (find_separate_debug_file): Remove colon from the
3418 drive spec of DOS/Windows file names of the target, so that the
3419 file name produced from DEBUGDIR and the target's directory will
3420 be valid on DOS/Windows systems.
3422 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
3424 * rust-lang.c (val_print_struct): Handle printing structures
3427 2019-05-02 Tom Tromey <tromey@adacore.com>
3429 * valarith.c (_initialize_valarith): Remove.
3431 2019-05-01 Tom Tromey <tromey@adacore.com>
3433 * ada-lang.c (ada_value_primitive_field): Treat more fields as
3436 2019-05-01 Tom Tromey <tromey@adacore.com>
3438 * ada-lang.c (ada_value_assign): Correctly compute starting offset
3439 for big-endian copies.
3441 2019-04-30 Ali Tamur <tamur@google.com>
3442 * gdb/dwarf2read.c (read_3_bytes): New declaration.
3443 (read_attribute_value): Added DW_FORM_strx1-4 cases.
3444 (read_3_bytes): New function.
3446 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3448 * windows-nat.c (main_thread_id): Delete.
3449 (handle_output_debug_string): Replace main_thread_id by
3450 current_event.dwThreadId.
3451 (fake_create_process): Likewise.
3452 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
3453 Do not set main_thread_id.
3454 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
3455 current_event.dwThreadId.
3456 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
3458 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3460 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
3461 Use current_event.dwThreadId instead of main_thread_id.
3463 2019-04-30 Tom Tromey <tromey@adacore.com>
3465 * ada-lang.c (ada_lookup_simple_minsyms): New function.
3466 (create_excep_cond_exprs): Iterate over program spaces.
3467 (ada_exception_catchpoint_cond_string): Examine all minimal
3468 symbols for exception types.
3470 2019-04-30 Tom Tromey <tromey@adacore.com>
3473 * dwarf2read.c (process_structure_scope): Handle case where type
3474 has template parameters but no symbol was created.
3476 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3477 Chris January <chris.january@arm.com>
3479 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
3481 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
3483 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3485 * f-typeprint.c (f_print_type): Update rules for printing
3487 (f_type_print_varspec_suffix): Likewise.
3489 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3490 Chris January <chris.january@arm.com>
3492 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
3495 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3497 * f-lang.c (build_fortran_types): Change name of void type to
3499 * f-typeprint.c (f_type_print_base): Print the name of the void
3500 type, rather than a fixed string.
3501 * f-valprint.c (f_decorations): Use lower case void string.
3503 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3504 Chris January <chris.january@arm.com>
3506 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
3509 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3510 Chris January <chris.january@arm.com>
3511 David Lecomber <david.lecomber@arm.com>
3513 * f-exp.y (BINOP_INTRINSIC): New token.
3514 (exp): New parser rule handling BINOP_INTRINSIC.
3515 (f77_keywords): Add new builtin procedures.
3516 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
3517 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3518 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
3519 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3520 (print_unop_subexp_f): New function.
3521 (print_binop_subexp_f): New function.
3522 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3523 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3524 (dump_subexp_body_f): Likewise.
3525 (operator_check_f): Likewise.
3526 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3527 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
3529 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3531 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
3533 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
3534 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
3535 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
3536 (operator_length_f): New fuction.
3537 (print_subexp_f): New function.
3538 (op_name_f): New function.
3539 (dump_subexp_body_f): New function.
3540 (operator_check_f): New function.
3541 (exp_descriptor_f): Replace standard expression handling functions
3543 * gdb/fortran-operator.def: New file.
3544 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
3545 * gdb/std-operator.def: Remove UNOP_KIND.
3547 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3549 * std-operator.def: Remove unbalanced, stray double quote
3552 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3553 Chris January <chris.january@arm.com>
3554 Daniel Everett <daniel.everett@arm.com>
3555 Nick Forrington <nick.forrington@arm.com>
3556 Richard Bunt <richard.bunt@arm.com>
3558 * cp-valprint.c (cp_print_value_fields): Allow an additional level
3559 of depth when printing anonymous structs or unions.
3560 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3561 Don't print either the top-level value, or the children if the
3562 max-depth is exceeded.
3563 (ppscm_print_children): When printing the key of a map, allow one
3564 extra level of depth.
3565 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
3566 print either the top-level value, or the children if the max-depth
3568 (print_children): When printing the key of a map, allow one extra
3570 * python/py-value.c (valpy_format_string): Add max_depth keyword.
3571 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
3572 (user_print_options): Initialise max_depth field.
3573 (val_print_scalar_or_string_type_p): New function.
3574 (val_print): Check to see if the max depth has been reached.
3575 (val_print_check_max_depth): Define new function.
3576 (show_print_max_depth): New function.
3577 (_initialize_valprint): Add 'print max-depth' option.
3578 * valprint.h (struct value_print_options) <max_depth>: New field.
3579 (val_print_check_max_depth): Declare new function.
3580 * NEWS: Document new feature.
3582 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3584 * ada-lang.c (ada_language_defn): Initialise new field.
3585 * c-lang.c (c_is_string_type_p): New function.
3586 (c_language_defn): Initialise new field.
3587 (cplus_language_defn): Initialise new field.
3588 (asm_language_defn): Initialise new field.
3589 (minimal_language_defn): Initialise new field.
3590 * c-lang.h (c_is_string_type_p): Declare new function.
3591 * d-lang.c (d_language_defn): Initialise new field.
3592 * f-lang.c (f_is_string_type_p): New function.
3593 (f_language_defn): Initialise new field.
3594 * go-lang.c (go_is_string_type_p): New function.
3595 (go_language_defn): Initialise new field.
3596 * language.c (default_is_string_type_p): New function.
3597 (unknown_language_defn): Initialise new field.
3598 (auto_language_defn): Initialise new field.
3599 * language.h (struct language_defn) <la_is_string_type_p>: New
3601 (default_is_string_type_p): Declare new function.
3602 * m2-lang.c (m2_language_defn): Initialise new field.
3603 * objc-lang.c (objc_language_defn): Initialise new field.
3604 * opencl-lang.c (opencl_language_defn): Initialise new field.
3605 * p-lang.c (pascal_is_string_type_p): New function.
3606 (pascal_language_defn): Initialise new field.
3607 * rust-lang.c (rust_is_string_type_p): New function.
3608 (rust_language_defn): Initialise new field.
3610 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3612 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
3614 * ada-lang.c (ada_language_defn): Initialise new field.
3615 * c-lang.c (c_language_defn): Likewise.
3616 (cplus_language_defn): Likewise.
3617 (asm_language_defn): Likewise.
3618 (minimal_language_defn): Likewise.
3619 * d-lang.c (d_language_defn): Likewise.
3620 * f-lang.c (f_language_defn): Likewise.
3621 * go-lang.c (go_language_defn): Likewise.
3622 * language.c (unknown_language_defn): Likewise.
3623 (auto_language_defn): Likewise.
3624 * m2-lang.c (m2_language_defn): Likewise.
3625 * objc-lang.c (objc_language_defn): Likewise.
3626 * opencl-lang.c (opencl_language_defn): Likewise.
3627 * p-lang.c (pascal_language_defn): Likewise.
3628 * rust-lang.c (rust_language_defn): Likewise.
3630 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3632 * ada-lang.c (ada_is_character_type): Change return type to bool.
3633 (ada_is_string_type): Likewise.
3634 * ada-lang.h (ada_is_character_type): Update declaration
3635 (ada_is_string_type): Likewise.
3637 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3639 Support style in 'frame|thread apply'
3641 * gdbcmd.h (execute_command_to_string): New term_out parameter.
3642 * record.c (record_start, record_stop): Update callers of
3643 execute_command_to_string with false.
3644 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
3645 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
3647 (class string_file): New constructor with term_out parameter.
3648 Override methods term_out and can_emit_style_escape. New member
3650 (class stdio_file): Override can_emit_style_escape.
3651 (class tee_file): Override term_out and can_emit_style_escape.
3652 * utils.h (can_emit_style_escape): Remove.
3653 * utils.c (can_emit_style_escape): Likewise.
3654 Update all callers of can_emit_style_escape (SOMESTREAM) to
3655 SOMESTREAM->can_emit_style_escape.
3656 * source-cache.c (source_cache::get_source_lines): Likewise.
3657 * stack.c (frame_apply_command_count): Call execute_command_to_string
3658 passing the term_out characteristic of the current gdb_stdout.
3659 * thread.c (thr_try_catch_cmd): Likewise.
3660 * top.c (execute_command_to_string): pass term_out parameter
3661 to construct the string_file for the command output.
3662 * ui-file.c (term_cli_styling): New function (most code moved
3663 from utils.c can_emit_style_escape).
3664 (string_file::string_file, string_file::can_emit_style_escape,
3665 stdio_file::can_emit_style_escape, tee_file::term_out,
3666 tee_file::can_emit_style_escape): New functions.
3668 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3670 * NEWS: Mention the new set|show may-call-functions.
3671 * infcall.c (may_call_functions_p): New variable.
3672 (show_may_call_functions_p): New function.
3673 (call_function_by_hand_dummy): Throws an error if not
3675 (_initialize_infcall): Call add_setshow_boolean_cmd for
3678 2019-04-25 Keith Seitz <keiths@redhat.com>
3681 * cp-support.c (inspect_type): Don't attempt substitutions
3682 of symbol with the same name.
3684 2019-04-25 Tom Tromey <tromey@adacore.com>
3687 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
3690 2019-04-25 Tom Tromey <tromey@adacore.com>
3692 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
3694 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
3695 (gdb_xml_parser::parse): Use std::move.
3696 * python/python-internal.h (gdbpy_convert_exception): Take a const
3698 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
3700 * python/py-utils.c (gdbpy_convert_exception): Take a const
3702 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3704 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3706 * mi/mi-main.c (mi_print_exception): Take a const reference.
3707 * main.c (handle_command_errors): Take a const reference.
3708 * linespec.c (parse_linespec): Use std::move.
3709 * infcall.c (run_inferior_call): Use std::move.
3710 (call_function_by_hand_dummy): Use std::move.
3711 * exec.c (try_open_exec_file): Use std::move.
3712 * exceptions.h (exception_print, exception_fprintf)
3713 (exception_print_same): Update.
3714 * exceptions.c (print_exception, exception_print)
3715 (exception_fprintf, exception_print_same): Change parameters to
3717 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
3718 * common/new-op.c: Use std::move.
3719 * common/common-exceptions.h (struct gdb_exception): Add move
3721 (struct gdb_exception_error, struct gdb_exception_quit, struct
3722 gdb_quit_bad_alloc): Change constructor to move constructor.
3723 (throw_exception): Change parameter to rvalue reference.
3724 * common/common-exceptions.c (throw_exception): Take rvalue
3726 * cli/cli-interp.c (safe_execute_command): Use std::move.
3727 * breakpoint.c (insert_bp_location, location_to_sals): Use
3730 2019-04-25 Tom Tromey <tromey@adacore.com>
3732 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
3733 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
3734 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
3735 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
3736 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
3737 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
3738 guile/scm-value.c: Use unpack.
3739 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
3740 gdbscm_gdb_exception.
3741 (gdbscm_throw_gdb_exception): Likewise.
3742 (struct gdbscm_gdb_exception): New.
3743 (unpack): New function.
3744 (gdbscm_wrap): Use unpack.
3746 2019-04-25 Tom Tromey <tromey@adacore.com>
3748 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3749 (gdb_rl_callback_handler): Use std::move.
3750 * common/common-exceptions.h (struct gdb_exception): Add move
3751 assignment operator.
3752 (throw_exception_sjlj): Change "exception" to const reference.
3753 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
3754 (throw_exception_sjlj): Change "exception" to const reference.
3756 2019-04-25 Tom Tromey <tromey@adacore.com>
3758 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
3759 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
3760 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3762 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3764 * mi/mi-interp.c (mi_interp::exec): Update.
3765 * linespec.c (parse_linespec): Update.
3766 * infcall.c (run_inferior_call): Update.
3767 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
3768 * guile/scm-symbol.c (gdbscm_lookup_symbol)
3769 (gdbscm_lookup_global_symbol): Update.
3770 * guile/scm-param.c (gdbscm_parameter_value): Update.
3771 * guile/scm-frame.c (gdbscm_frame_read_register)
3772 (gdbscm_frame_read_var): Update.
3773 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
3774 * exec.c (try_open_exec_file): Update.
3775 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3776 (gdb_rl_callback_handler): Update.
3777 * common/common-exceptions.h (exception_none): Don't declare.
3778 * common/common-exceptions.c (exception_none): Don't define.
3779 (struct catcher) <exception>: Update.
3780 * cli/cli-interp.c (safe_execute_command): Update.
3781 * breakpoint.c (insert_bp_location, location_to_sals): Update.
3783 2019-04-25 Ali Tamur <tamur@google.com>
3785 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
3786 (read_attribute_value): Likewise.
3787 (dwarf2_read_addr_index): Update comment.
3788 (read_str_index): Add DW_FORM_strx.
3789 (dwarf2_string_attr): Likewise.
3790 (dwarf2_const_value_attr): Likewise.
3791 (dump_die_shallow): Likewise.
3792 (dwarf2_fetch_constant_bytes): Likewise.
3793 (skip_form_bytes): Likewise.
3794 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
3796 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3800 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
3801 OFFSET. Verify if current mapping contains an ELF header.
3802 (linux_find_memory_regions_full): Adjust call to
3805 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
3806 Kang Li <kanglictf@gmail.com>
3810 * dwarf2-frame.c (read_initial_length): Be consistent about using
3811 unsigned representation of length.
3812 (decode_frame_entry_1): Likewise. Check for wraparound of
3813 end pointer as well as buffer overflow.
3815 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3817 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
3820 2019-04-24 Tom Tromey <tromey@adacore.com>
3822 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
3824 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3826 * s12z-tdep.c (s12z_unwind_pc): Delete.
3827 (s12z_unwind_sp): Delete.
3828 (s12z_gdbarch_init): Don't register deleted functions with
3831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3833 * rl78-tdep.c (rl78_unwind_sp): Delete.
3834 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
3836 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3838 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
3839 (xstormy16_unwind_pc): Delete.
3840 (xstormy16_dummy_id): Delete.
3841 (xstormy16_gdbarch_init): Don't register deleted functions with
3844 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3846 * vax-tdep.c (vax_unwind_pc): Delete.
3847 (vax_gdbarch_init): Don't register deleted function with gdbarch.
3849 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3851 * v850-tdep.c (v850_unwind_sp): Delete.
3852 (v850_unwind_pc): Delete.
3853 (v850_dummy_id): Delete.
3854 (v850_gdbarch_init): Don't register deleted functions with
3857 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3859 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
3860 (tilegx_unwind_pc): Delete.
3861 (tilegx_unwind_dummy_id): Delete.
3862 (tilegx_gdbarch_init): Don't register deleted functions with
3865 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3867 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
3868 (tic6x_dummy_id): Delete.
3869 (tic6x_gdbarch_init): Don't register deleted functions with
3872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3874 * sparc-tdep.c (sparc_unwind_pc): Delete.
3875 (sparc32_gdbarch_init): Don't register deleted function with
3878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3880 * sh-tdep.c (sh_unwind_sp): Delete.
3881 (sh_unwind_pc): Delete.
3882 (sh_dummy_id): Delete.
3883 (sh_gdbarch_init): Don't register deleted functions with
3886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3888 * score-tdep.c (score_unwind_sp): Delete.
3889 (score_unwind_pc): Delete.
3890 (score_dummy_id): Delete.
3891 (score_gdbarch_init): Don't register deleted functions with
3894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3896 * rx-tdep.c (rx_unwind_pc): Delete.
3897 (rx_unwind_sp): Delete.
3898 (rx_dummy_id): Delete.
3899 (rx_gdbarch_init): Don't register deleted functions with
3900 gdbarch. Update comment.
3902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3904 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
3905 (rs6000_dummy_id): Delete.
3906 (rs6000_gdbarch_init): Don't register deleted functions with
3909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3911 * or1k-tdep.c (or1k_dummy_id): Delete.
3912 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
3914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3916 * nios2-tdep.c (nios2_dummy_id): Delete.
3917 (nios2_unwind_sp): Delete.
3918 (nios2_gdbarch_init): Don't register deleted functions with
3921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3923 * nds32-tdep.c (nds32_dummy_id): Delete.
3924 (nds32_unwind_pc): Delete.
3925 (nds32_unwind_sp): Delete.
3926 (nds32_gdbarch_init): Don't register deleted functions with
3929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3931 * msp430-tdep.c (msp430_unwind_pc): Delete.
3932 (msp430_unwind_sp): Delete.
3933 (msp430_dummy_id): Delete.
3934 (msp430_gdbarch_init): Don't register deleted functions with
3937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3939 * moxie-tdep.c (moxie_unwind_sp): Delete.
3940 (moxie_unwind_pc): Delete.
3941 (moxie_dummy_id): Delete.
3942 (moxie_gdbarch_init): Don't register deleted functions with
3945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3947 * mn10300-tdep.c (mn10300_dummy_id): Delete.
3948 (mn10300_unwind_pc): Delete.
3949 (mn10300_unwind_sp): Delete.
3950 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
3952 (mn10300_frame_unwind_init): Don't register deleted functions with
3955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3957 * mep-tdep.c (mep_unwind_pc): Delete.
3958 (mep_unwind_sp): Delete.
3959 (mep_dummy_id): Delete.
3960 (mep_gdbarch_init): Don't register deleted functions with
3963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3965 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
3966 (m68hc11_unwind_sp): Delete.
3967 (m68hc11_gdbarch_init): Don't register deleted functions with
3970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3972 * m32r-tdep.c (m32r_unwind_sp): Delete.
3973 (m32r_unwind_pc): Delete.
3974 (m32r_dummy_id): Delete.
3975 (m32r_gdbarch_init): Don't register deleted functions with
3978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3980 * m32c-tdep.c (m32c_unwind_pc): Delete.
3981 (m32c_unwind_sp): Delete.
3982 (m32c_dummy_id): Delete.
3983 (m32c_gdbarch_init): Don't register deleted functions with
3986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3988 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
3989 (lm32_unwind_pc): Delete.
3990 (lm32_dummy_id): Delete.
3991 (lm32_gdbarch_init): Don't register deleted functions with
3994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3996 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
3997 (iq2000_unwind_pc): Delete.
3998 (iq2000_dummy_id): Delete.
3999 (iq2000_gdbarch_init): Don't register deleted functions with
4002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4004 * nds32-tdep.c (nds32_type_align): Delete.
4005 (nds32_push_dummy_call): Use type_align instead.
4007 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4009 * arm-tdep.c (arm_type_align): Only handle vector override case.
4010 (arm_push_dummy_call): Use type_align.
4011 (arm_gdbarch_init): Register arm_type_align gdbarch function.
4013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4015 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
4017 (pass_on_stack): Use type_align.
4018 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
4021 2019-04-23 Tom Tromey <tromey@adacore.com>
4023 * dwarf2read.c (line_header::file_name_at): Remove unused
4026 2019-04-23 Tom de Vries <tdevries@suse.de>
4029 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
4033 2019-03-27 Ali Tamur <tamur@google.com>
4035 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
4036 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
4037 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
4038 (dwarf_expr_context::get_addr_index): Likewise
4039 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
4040 (symbol_needs_eval_context::get_addr_index): Likewise
4041 (disassemble_dwarf_expression): Add DW_OP_addrx
4042 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
4043 (read_cutu_die_from_dwo): Update comment
4044 (skip_one_die): Add DW_FORM_addrx
4045 (read_attribute_value): Likewise
4046 (var_decode_location): Add DW_OP_addrx
4047 (dwarf2_const_value_attr): Add DW_FORM_addrx
4048 (dump_die_shallow): Likewise
4049 (dwarf2_fetch_constant_bytes): Likewise
4050 (decode_locdesc): Add DW_OP_addrx
4051 (skip_form_bytes): Add DW_FORM_addrx
4053 2019-04-22 Ali Tamur <tamur@google.com>
4055 * MAINTAINERS (Write After Approval): Add self.
4057 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
4059 * solib-svr4.c (get_svr4_info): Add pspace parameter.
4060 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
4061 (open_symbol_file_object): Likewise.
4062 (svr4_default_sos): Add info parameter.
4063 (svr4_read_so_list): Likewise.
4064 (svr4_current_sos_direct): Adjust functions calls to pass down
4066 (svr4_current_sos_1): Add info parameter.
4067 (svr4_current_sos): Call get_svr4_info, pass info down to
4069 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
4071 (svr4_in_dynsym_resolve_code): Pass current_program_space to
4073 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
4075 (probes_table_remove_objfile_probes): Likewise.
4076 (register_solib_event_probe): Add info parameter.
4077 (solist_update_incremental): Pass info parameter down to
4079 (disable_probes_interface): Add info parameter.
4080 (svr4_handle_solib_event): Pass current_program_space to
4081 get_svr4_info. Adjust disable_probes_interface cleanup.
4082 (svr4_create_probe_breakpoints): Add info parameter, pass it
4083 down to register_solib_event_probe.
4084 (svr4_create_solib_event_breakpoints): Add info parameter,
4085 pass it down to svr4_create_probe_breakpoints.
4086 (enable_break): Pass info down to
4087 svr4_create_solib_event_breakpoints.
4088 (svr4_solib_create_inferior_hook): Pass current_program_space to
4090 (svr4_clear_solib): Likewise.
4092 2019-04-22 Pedro Alves <palves@redhat.com>
4094 * solib-svr4.c (svr4_free_objfile_observer): New.
4095 (probe_and_action::objfile): New field.
4096 (probes_table_htab_remove_objfile_probes)
4097 (probes_table_remove_objfile_probes): New functions.
4098 (register_solib_event_probe): Add 'objfile' parameter. Store it
4099 in the new probe_and_action. Don't store the probe in 'lookup'.
4100 (svr4_create_probe_breakpoints): Pass objfile to
4101 register_solib_event_probe.
4102 (_initialize_svr4_solib): Register a free_objfile observer.
4104 2019-04-19 Tom Tromey <tom@tromey.com>
4106 * common/queue.h: Remove.
4108 2019-04-19 Tom Tromey <tom@tromey.com>
4110 * event-loop.c: Don't include "common/queue.h".
4112 2019-04-19 Tom Tromey <tom@tromey.com>
4114 * remote.c (remote_target): Use delete.
4115 * remote-notif.h: Include <list>, not "common/queue.h".
4116 (notif_client_p): Remove typedef.
4117 (remote_notif_state): Add constructor, destructor, initializer.
4118 <notif_queue>: Now a std::list.
4119 (remote_notif_state_xfree): Don't declare.
4120 * remote-notif.c (remote_notif_process, handle_notification)
4121 (remote_notif_state_allocate): Update.
4122 (~remote_notif_state): Rename from remote_notif_state_xfree.
4124 2019-04-19 Tom Tromey <tom@tromey.com>
4126 * symfile.c (reread_symbols): Update.
4127 * objfiles.c (objfile_register_static_link)
4128 (objfile_lookup_static_link): Update
4129 (~objfile) Don't delete static_links.
4130 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
4132 2019-04-19 Tom Tromey <tom@tromey.com>
4134 * type-stack.h (struct type_stack) <insert>: Constify string.
4135 * type-stack.c (type_stack::insert): Constify string.
4136 * gdbtypes.h (lookup_template_type): Update.
4137 (address_space_name_to_int): Update.
4138 * gdbtypes.c (address_space_name_to_int): Make space_identifier
4140 (lookup_template_type): Make name const.
4141 * c-exp.y: Update rules.
4142 (lex_one_token, classify_name, classify_inner_name)
4143 (c_print_token): Update.
4144 * p-exp.y: Update rules.
4146 * f-exp.y: Update rules.
4148 * d-exp.y: Update rules.
4149 (lex_one_token, classify_name, classify_inner_name): Update.
4150 * parse.c (write_dollar_variable, copy_name): Return std::string.
4151 * parser-defs.h (copy_name): Change return type.
4152 * m2-exp.y: Update rules.
4154 * go-exp.y (lex_one_token): Update.
4156 (classify_unsafe_function, classify_packaged_name)
4157 (classify_name, yylex): Update.
4159 2019-04-19 Sergei Trofimovich <siarheit@google.com>
4161 * configure.ac: add --enable-source-highlight switch.
4162 * configure: Regenerate.
4163 * top.c (print_gdb_version): plumb --enable-source-highlight
4164 status to "show configuration".
4166 2019-04-19 Tom Tromey <tromey@adacore.com>
4168 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
4170 (empty_record, ada_template_to_fixed_record_type_1)
4171 (template_to_static_fixed_type)
4172 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
4173 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
4174 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
4177 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
4180 * source.c (print_source_lines_base): Advance "iter" when a
4181 control character is seen.
4183 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4185 * inferior.h (struct infcall_suspend_state_deleter):
4186 Catch exception in destructor to avoid crash.
4188 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4190 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
4191 close to the add_com "shell".
4193 2019-04-18 Tom Tromey <tromey@adacore.com>
4195 * process-stratum-target.h (class process_stratum_target)
4196 <stratum>: Add "final".
4198 2019-04-17 Tom Tromey <tromey@adacore.com>
4200 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
4201 against nullptr before use.
4203 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4205 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
4207 2019-04-17 Jim Wilson <jimw@sifive.com>
4208 Andrew Burgess <andrew.burgess@embecosm.com>
4210 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
4211 code read might fail, assume 4-byte breakpoint in that case.
4213 2019-04-15 Leszek Swirski <leszeks@google.com>
4215 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
4216 rather than a hand-rolled POD check when checking for forced MEMORY
4219 2019-04-15 Alan Hayward <alan.hayward@arm.com>
4221 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
4222 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
4224 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
4225 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
4226 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
4229 2019-04-15 Alan Hayward <alan.hayward@arm.com>
4231 * aarch64-linux-nat.c
4232 (aarch64_linux_nat_target::thread_architecture): Add override.
4233 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
4236 2019-04-15 Alan Hayward <alan.hayward@arm.com>
4238 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
4240 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
4242 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
4243 target types of size 96-bits, add some additional comments, and
4244 check that the builtin type we found was the correct size.
4246 2019-04-12 Eli Zaretskii <eliz@gnu.org>
4248 * utils.c (prompt_for_continue): Don't restore the styling at the
4249 end, as applied_style has the wrong value. This fixes styling in
4250 long lists of file names that are interrupted by the "Continue?"
4253 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
4255 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
4256 * c-lang.c (c_language_defn): Likewise.
4257 (cplus_language_defn): Likewise.
4258 (asm_language_defn): Likewise.
4259 (minimal_language_defn): Likewise.
4260 * d-lang.c (d_language_defn): Likewise.
4261 * f-lang.c (f_language_defn): Likewise.
4262 * go-lang.c (go_language_defn): Likewise.
4263 * language.c (unknown_language_defn): Likewise.
4264 (auto_language_defn): Likewise.
4265 * language.h (struct language_defn): Remove la_magic field.
4266 (LANG_MAGIC): Delete.
4267 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
4268 * objc-lang.c (objc_language_defn): Likewise.
4269 * opencl-lang.c (opencl_language_defn): Likewise.
4270 * p-lang.c (pascal_language_defn): Likewise.
4271 * rust-lang.c (rust_language_defn): Likewise.
4273 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4275 * riscv-tdep.c (riscv_type_align): New function.
4276 (riscv_type_alignment): Delete.
4277 (riscv_arg_location): Use 'type_align'.
4278 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
4280 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4282 * gdbtypes.c (type_align): A struct with no non-static fields also
4285 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4287 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
4289 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
4291 (riscv_struct_info::analyse): New implementation using new
4292 analyse_inner member function.
4293 (riscv_struct_info::field_offset): New member function.
4294 (riscv_struct_info::m_offsets): New member variable.
4295 (riscv_struct_info::analyse_inner): New private member function,
4296 takes the old implementation of riscv_struct_info::analyse but
4297 extended to track field offsets.
4298 (riscv_call_arg_struct): Update the struct folding special cases
4299 to handle cases where empty C++ structs, which are non-zero
4301 (riscv_arg_location): Initialise the length of each location, a
4302 non-zero length now indicates the location is in use.
4303 (riscv_push_dummy_call): Allow for the first location having a
4304 non-zero offset when setting up arguments.
4305 (riscv_return_value): Likewise, but for return values.
4307 2019-04-11 Tom Tromey <tromey@adacore.com>
4309 * utils.c (internal_vproblem): Make "msg" const.
4311 2019-04-11 Alan Hayward <alan.hayward@arm.com>
4313 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
4314 * trad-frame.c (trad_frame_reset_saved_regs): New function.
4315 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
4316 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
4318 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4320 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
4322 (fill_gregset): Call amd64_linux_collect_native_gregset instead
4323 of amd64_collect_native_gregset.
4324 (amd64_linux_nat_target::store_registers): Likewise.
4326 2019-04-10 Tom Tromey <tom@tromey.com>
4328 * symtab.c (lookup_global_symbol_from_objfile)
4329 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
4330 * objfiles.h (class separate_debug_iterator): New.
4331 (class separate_debug_range): New.
4332 (struct objfile) <separate_debug_objfiles>: New method.
4333 (objfile_separate_debug_iterate): Don't declare.
4334 * objfiles.c (separate_debug_iterator::operator++): Rename from
4335 objfile_separate_debug_iterate.
4336 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
4338 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
4341 2019-04-10 Tom Tromey <tom@tromey.com>
4343 * symfile.c (reread_symbols): Remove old comment.
4344 * objfiles.c (free_all_objfiles): Fix a typo.
4346 2019-04-10 Tom Tromey <tom@tromey.com>
4348 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
4349 * minsyms.c (lookup_minimal_symbol): Use foreach.
4350 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4351 (lookup_minimal_symbol_solib_trampoline): Likewise.
4352 * symfile.c (reread_symbols): Use foreach.
4354 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
4355 Tom Tromey <tromey@adacore.com>
4358 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
4359 (rust_lex_int_test): Change "value" to be LONGEST.
4360 (rust_lex_tests): Add test for long integer literal.
4362 2019-04-09 Tom Tromey <tromey@adacore.com>
4364 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
4366 (extended_remote_target::attach): Update.
4367 (remote_target::remote_notice_new_inferior): Update.
4368 (remote_target::add_current_inferior_and_thread): Update.
4369 * inferior.c (exit_inferior_1): Use "false".
4370 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
4372 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
4374 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
4375 the "start" command.
4377 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4379 * python/py-inferior.c (infpy_thread_from_thread_handle):
4380 Adjust comments to reflect renaming of thread_from_thread_handle
4381 to thread_from_handle. Adjust keywords. Fix type error message.
4382 (inferior_object_methods): Add thread_from_handle. Retain
4383 thread_from_thread_handle, but mark it as deprecated.
4385 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4387 * gdbthread.h (find_thread_by_handle): Revise declaration.
4388 * thread.c (find_thread_by_handle): Likewise. Adjust
4390 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
4391 support for buffer objects as handles.
4393 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4395 * python/py-infthread.c (thpy_thread_handle): New function.
4396 (thread_object_methods): Register thpy_thread_handle.
4398 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4400 * gdbthread.h (thread_to_thread_handle): Declare.
4401 * thread.c (gdbtypes.h): Include.
4402 (thread_to_thread_handle): New function.
4404 * target.h (struct target_ops): Add thread_info_to_thread_handle.
4405 (target_thread_info_to_thread_handle): Declare.
4406 * target.c (target_thread_info_to_thread_handle): New function.
4407 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
4408 * target-delegates.c: Regenerate.
4410 * linux-thread-db.c (class thread_db_target): Add method
4411 thread_info_to_thread_handle.
4412 (thread_db_target::thread_info_to_thread_handle): Define.
4413 * remote.c (class remote_target): Add new method
4414 thread_info_to_thread_handle.
4415 (remote_target::thread_info_to_thread_handle): Define.
4417 2019-04-08 Pedro Alves <palves@redhat.com>
4419 * common/common-exceptions.c (throw_exception): Don't create
4420 named object to throw; throw directly.
4421 (throw_it): Likewise. Don't initialize gdb_exception::message
4422 here, with new; pass FMT and AP to the ctor instead.
4423 * common/common-exceptions.h: Include <string>.
4424 (gdb_exception::gdb_exception(enum return_reason, enum errors,
4425 const char *, va_list)): New ctor. Use std::make_shared.
4426 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
4428 (gdb_exception_error::gdb_exception_error(enum errors, const char
4430 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
4432 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
4434 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
4435 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
4438 2019-04-08 Tom Tromey <tom@tromey.com>
4440 * valops.c (value_rtti_indirect_type): Replace throw_exception
4442 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
4444 * thread.c (thr_try_catch_cmd): Replace throw_exception with
4446 * target.c (target_translate_tls_address): Replace throw_exception
4448 * stack.c (frame_apply_command_count): Replace throw_exception
4450 * solib-spu.c (append_ocl_sos): Replace throw_exception with
4452 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
4454 * rs6000-tdep.c (rs6000_frame_cache)
4455 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
4456 * remote.c: Replace throw_exception with throw.
4457 * record-full.c (record_full_message, record_full_wait_1)
4458 (record_full_restore): Replace throw_exception with throw.
4460 (get_thread_current_frame_id, record_btrace_start_replaying)
4461 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
4462 (cmd_record_btrace_start): Replace throw_exception with throw.
4463 * parse.c (parse_exp_in_context_1): Replace throw_exception with
4465 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
4466 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
4468 (find_linespec_symbols): Replace throw_exception with throw.
4469 * infrun.c (displaced_step_prepare, resume): Replace
4470 throw_exception with throw.
4471 * infcmd.c (post_create_inferior): Replace throw_exception with
4473 * inf-loop.c (inferior_event_handler): Replace throw_exception
4475 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
4476 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
4477 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
4478 (get_prev_frame_always, get_frame_pc_if_available)
4479 (get_frame_address_in_block_if_available, get_frame_language):
4480 Replace throw_exception with throw.
4481 * frame-unwind.c (frame_unwind_try_unwinder): Replace
4482 throw_exception with throw.
4483 * eval.c (fetch_subexp_value, evaluate_var_value)
4484 (evaluate_funcall, evaluate_subexp_standard): Replace
4485 throw_exception with throw.
4486 * dwarf2loc.c (call_site_find_chain)
4487 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
4488 Replace throw_exception with throw.
4489 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
4491 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
4493 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
4494 * completer.c (complete_line_internal): Replace throw_exception
4496 * compile/compile-object-run.c (compile_object_run): Replace
4497 throw_exception with throw.
4498 * cli/cli-script.c (process_next_line): Replace throw_exception
4500 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
4501 (btrace_enable, btrace_maint_update_pt_packets): Replace
4502 throw_exception with throw.
4503 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
4504 throw_exception with throw.
4505 * break-catch-throw.c (re_set_exception_catchpoint): Replace
4506 throw_exception with throw.
4507 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
4508 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
4509 * aarch64-tdep.c (aarch64_make_prologue_cache)
4510 (aarch64_make_stub_cache): Replace throw_exception with throw.
4512 2019-04-08 Tom Tromey <tom@tromey.com>
4514 * common/common-exceptions.c (throw_exception): Rename from
4515 throw_exception_cxx. Remove old copy. Make argument const.
4516 (throw_it): Create and throw exception objects directly.
4517 * common/common-exceptions.h (throw_exception): Make argument
4519 (struct gdb_exception_error): Add constructor.
4520 (struct gdb_exception_quit): Add constructor.
4522 2019-04-08 Tom Tromey <tom@tromey.com>
4524 * common/common-exceptions.h (exception_rethrow): Don't declare.
4525 (TRY_SJLJ): Update comment.
4526 (TRY, CATCH, END_CATCH): Remove.
4527 * common/common-exceptions.c (exception_rethrow): Remove.
4529 2019-04-08 Tom Tromey <tom@tromey.com>
4531 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
4533 (gdb_exception_error): Rename from
4534 gdb_exception_RETURN_MASK_ERROR.
4535 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
4536 (gdb_quit_bad_alloc): Update.
4537 * aarch64-tdep.c: Update.
4538 * ada-lang.c: Update.
4539 * ada-typeprint.c: Update.
4540 * ada-valprint.c: Update.
4541 * amd64-tdep.c: Update.
4542 * arch-utils.c: Update.
4543 * break-catch-throw.c: Update.
4544 * breakpoint.c: Update.
4546 * c-varobj.c: Update.
4547 * cli/cli-cmds.c: Update.
4548 * cli/cli-interp.c: Update.
4549 * cli/cli-script.c: Update.
4550 * common/common-exceptions.c: Update.
4551 * common/new-op.c: Update.
4552 * common/selftest.c: Update.
4553 * compile/compile-c-symbols.c: Update.
4554 * compile/compile-cplus-symbols.c: Update.
4555 * compile/compile-object-load.c: Update.
4556 * compile/compile-object-run.c: Update.
4557 * completer.c: Update.
4558 * corelow.c: Update.
4560 * cp-support.c: Update.
4561 * cp-valprint.c: Update.
4562 * darwin-nat.c: Update.
4563 * disasm-selftests.c: Update.
4564 * dtrace-probe.c: Update.
4565 * dwarf-index-cache.c: Update.
4566 * dwarf-index-write.c: Update.
4567 * dwarf2-frame-tailcall.c: Update.
4568 * dwarf2-frame.c: Update.
4569 * dwarf2loc.c: Update.
4570 * dwarf2read.c: Update.
4572 * event-loop.c: Update.
4573 * event-top.c: Update.
4575 * f-valprint.c: Update.
4576 * fbsd-tdep.c: Update.
4577 * frame-unwind.c: Update.
4579 * gdbtypes.c: Update.
4580 * gnu-v3-abi.c: Update.
4581 * guile/guile-internal.h: Update.
4582 * guile/scm-block.c: Update.
4583 * guile/scm-breakpoint.c: Update.
4584 * guile/scm-cmd.c: Update.
4585 * guile/scm-disasm.c: Update.
4586 * guile/scm-frame.c: Update.
4587 * guile/scm-lazy-string.c: Update.
4588 * guile/scm-math.c: Update.
4589 * guile/scm-param.c: Update.
4590 * guile/scm-ports.c: Update.
4591 * guile/scm-pretty-print.c: Update.
4592 * guile/scm-symbol.c: Update.
4593 * guile/scm-symtab.c: Update.
4594 * guile/scm-type.c: Update.
4595 * guile/scm-value.c: Update.
4596 * i386-linux-tdep.c: Update.
4597 * i386-tdep.c: Update.
4598 * inf-loop.c: Update.
4599 * infcall.c: Update.
4603 * language.c: Update.
4604 * linespec.c: Update.
4605 * linux-fork.c: Update.
4606 * linux-nat.c: Update.
4607 * linux-tdep.c: Update.
4608 * linux-thread-db.c: Update.
4610 * mi/mi-cmd-break.c: Update.
4611 * mi/mi-cmd-stack.c: Update.
4612 * mi/mi-interp.c: Update.
4613 * mi/mi-main.c: Update.
4614 * objc-lang.c: Update.
4615 * p-valprint.c: Update.
4617 * ppc-linux-tdep.c: Update.
4618 * printcmd.c: Update.
4619 * python/py-arch.c: Update.
4620 * python/py-breakpoint.c: Update.
4621 * python/py-cmd.c: Update.
4622 * python/py-finishbreakpoint.c: Update.
4623 * python/py-frame.c: Update.
4624 * python/py-framefilter.c: Update.
4625 * python/py-gdb-readline.c: Update.
4626 * python/py-inferior.c: Update.
4627 * python/py-infthread.c: Update.
4628 * python/py-lazy-string.c: Update.
4629 * python/py-linetable.c: Update.
4630 * python/py-objfile.c: Update.
4631 * python/py-param.c: Update.
4632 * python/py-prettyprint.c: Update.
4633 * python/py-progspace.c: Update.
4634 * python/py-record-btrace.c: Update.
4635 * python/py-record.c: Update.
4636 * python/py-symbol.c: Update.
4637 * python/py-type.c: Update.
4638 * python/py-unwind.c: Update.
4639 * python/py-utils.c: Update.
4640 * python/py-value.c: Update.
4641 * python/python.c: Update.
4642 * record-btrace.c: Update.
4643 * record-full.c: Update.
4644 * remote-fileio.c: Update.
4646 * riscv-tdep.c: Update.
4647 * rs6000-aix-tdep.c: Update.
4648 * rs6000-tdep.c: Update.
4649 * rust-exp.y: Update.
4650 * rust-lang.c: Update.
4651 * s390-tdep.c: Update.
4652 * selftest-arch.c: Update.
4653 * solib-dsbt.c: Update.
4654 * solib-frv.c: Update.
4655 * solib-spu.c: Update.
4656 * solib-svr4.c: Update.
4658 * sparc64-linux-tdep.c: Update.
4660 * symfile-mem.c: Update.
4661 * symmisc.c: Update.
4665 * tracefile-tfile.c: Update.
4666 * tui/tui.c: Update.
4667 * typeprint.c: Update.
4668 * unittests/cli-utils-selftests.c: Update.
4669 * unittests/parse-connection-spec-selftests.c: Update.
4671 * valprint.c: Update.
4674 * windows-nat.c: Update.
4675 * x86-linux-nat.c: Update.
4676 * xml-support.c: Update.
4678 2019-04-08 Tom Tromey <tom@tromey.com>
4680 * xml-support.c: Use C++ exception handling.
4681 * x86-linux-nat.c: Use C++ exception handling.
4682 * windows-nat.c: Use C++ exception handling.
4683 * varobj.c: Use C++ exception handling.
4684 * value.c: Use C++ exception handling.
4685 * valprint.c: Use C++ exception handling.
4686 * valops.c: Use C++ exception handling.
4687 * unittests/parse-connection-spec-selftests.c: Use C++ exception
4689 * unittests/cli-utils-selftests.c: Use C++ exception handling.
4690 * typeprint.c: Use C++ exception handling.
4691 * tui/tui.c: Use C++ exception handling.
4692 * tracefile-tfile.c: Use C++ exception handling.
4693 * top.c: Use C++ exception handling.
4694 * thread.c: Use C++ exception handling.
4695 * target.c: Use C++ exception handling.
4696 * symmisc.c: Use C++ exception handling.
4697 * symfile-mem.c: Use C++ exception handling.
4698 * stack.c: Use C++ exception handling.
4699 * sparc64-linux-tdep.c: Use C++ exception handling.
4700 * solib.c: Use C++ exception handling.
4701 * solib-svr4.c: Use C++ exception handling.
4702 * solib-spu.c: Use C++ exception handling.
4703 * solib-frv.c: Use C++ exception handling.
4704 * solib-dsbt.c: Use C++ exception handling.
4705 * selftest-arch.c: Use C++ exception handling.
4706 * s390-tdep.c: Use C++ exception handling.
4707 * rust-lang.c: Use C++ exception handling.
4708 * rust-exp.y: Use C++ exception handling.
4709 * rs6000-tdep.c: Use C++ exception handling.
4710 * rs6000-aix-tdep.c: Use C++ exception handling.
4711 * riscv-tdep.c: Use C++ exception handling.
4712 * remote.c: Use C++ exception handling.
4713 * remote-fileio.c: Use C++ exception handling.
4714 * record-full.c: Use C++ exception handling.
4715 * record-btrace.c: Use C++ exception handling.
4716 * python/python.c: Use C++ exception handling.
4717 * python/py-value.c: Use C++ exception handling.
4718 * python/py-utils.c: Use C++ exception handling.
4719 * python/py-unwind.c: Use C++ exception handling.
4720 * python/py-type.c: Use C++ exception handling.
4721 * python/py-symbol.c: Use C++ exception handling.
4722 * python/py-record.c: Use C++ exception handling.
4723 * python/py-record-btrace.c: Use C++ exception handling.
4724 * python/py-progspace.c: Use C++ exception handling.
4725 * python/py-prettyprint.c: Use C++ exception handling.
4726 * python/py-param.c: Use C++ exception handling.
4727 * python/py-objfile.c: Use C++ exception handling.
4728 * python/py-linetable.c: Use C++ exception handling.
4729 * python/py-lazy-string.c: Use C++ exception handling.
4730 * python/py-infthread.c: Use C++ exception handling.
4731 * python/py-inferior.c: Use C++ exception handling.
4732 * python/py-gdb-readline.c: Use C++ exception handling.
4733 * python/py-framefilter.c: Use C++ exception handling.
4734 * python/py-frame.c: Use C++ exception handling.
4735 * python/py-finishbreakpoint.c: Use C++ exception handling.
4736 * python/py-cmd.c: Use C++ exception handling.
4737 * python/py-breakpoint.c: Use C++ exception handling.
4738 * python/py-arch.c: Use C++ exception handling.
4739 * printcmd.c: Use C++ exception handling.
4740 * ppc-linux-tdep.c: Use C++ exception handling.
4741 * parse.c: Use C++ exception handling.
4742 * p-valprint.c: Use C++ exception handling.
4743 * objc-lang.c: Use C++ exception handling.
4744 * mi/mi-main.c: Use C++ exception handling.
4745 * mi/mi-interp.c: Use C++ exception handling.
4746 * mi/mi-cmd-stack.c: Use C++ exception handling.
4747 * mi/mi-cmd-break.c: Use C++ exception handling.
4748 * main.c: Use C++ exception handling.
4749 * linux-thread-db.c: Use C++ exception handling.
4750 * linux-tdep.c: Use C++ exception handling.
4751 * linux-nat.c: Use C++ exception handling.
4752 * linux-fork.c: Use C++ exception handling.
4753 * linespec.c: Use C++ exception handling.
4754 * language.c: Use C++ exception handling.
4755 * jit.c: Use C++ exception handling.
4756 * infrun.c: Use C++ exception handling.
4757 * infcmd.c: Use C++ exception handling.
4758 * infcall.c: Use C++ exception handling.
4759 * inf-loop.c: Use C++ exception handling.
4760 * i386-tdep.c: Use C++ exception handling.
4761 * i386-linux-tdep.c: Use C++ exception handling.
4762 * guile/scm-value.c: Use C++ exception handling.
4763 * guile/scm-type.c: Use C++ exception handling.
4764 * guile/scm-symtab.c: Use C++ exception handling.
4765 * guile/scm-symbol.c: Use C++ exception handling.
4766 * guile/scm-pretty-print.c: Use C++ exception handling.
4767 * guile/scm-ports.c: Use C++ exception handling.
4768 * guile/scm-param.c: Use C++ exception handling.
4769 * guile/scm-math.c: Use C++ exception handling.
4770 * guile/scm-lazy-string.c: Use C++ exception handling.
4771 * guile/scm-frame.c: Use C++ exception handling.
4772 * guile/scm-disasm.c: Use C++ exception handling.
4773 * guile/scm-cmd.c: Use C++ exception handling.
4774 * guile/scm-breakpoint.c: Use C++ exception handling.
4775 * guile/scm-block.c: Use C++ exception handling.
4776 * guile/guile-internal.h: Use C++ exception handling.
4777 * gnu-v3-abi.c: Use C++ exception handling.
4778 * gdbtypes.c: Use C++ exception handling.
4779 * frame.c: Use C++ exception handling.
4780 * frame-unwind.c: Use C++ exception handling.
4781 * fbsd-tdep.c: Use C++ exception handling.
4782 * f-valprint.c: Use C++ exception handling.
4783 * exec.c: Use C++ exception handling.
4784 * event-top.c: Use C++ exception handling.
4785 * event-loop.c: Use C++ exception handling.
4786 * eval.c: Use C++ exception handling.
4787 * dwarf2read.c: Use C++ exception handling.
4788 * dwarf2loc.c: Use C++ exception handling.
4789 * dwarf2-frame.c: Use C++ exception handling.
4790 * dwarf2-frame-tailcall.c: Use C++ exception handling.
4791 * dwarf-index-write.c: Use C++ exception handling.
4792 * dwarf-index-cache.c: Use C++ exception handling.
4793 * dtrace-probe.c: Use C++ exception handling.
4794 * disasm-selftests.c: Use C++ exception handling.
4795 * darwin-nat.c: Use C++ exception handling.
4796 * cp-valprint.c: Use C++ exception handling.
4797 * cp-support.c: Use C++ exception handling.
4798 * cp-abi.c: Use C++ exception handling.
4799 * corelow.c: Use C++ exception handling.
4800 * completer.c: Use C++ exception handling.
4801 * compile/compile-object-run.c: Use C++ exception handling.
4802 * compile/compile-object-load.c: Use C++ exception handling.
4803 * compile/compile-cplus-symbols.c: Use C++ exception handling.
4804 * compile/compile-c-symbols.c: Use C++ exception handling.
4805 * common/selftest.c: Use C++ exception handling.
4806 * common/new-op.c: Use C++ exception handling.
4807 * cli/cli-script.c: Use C++ exception handling.
4808 * cli/cli-interp.c: Use C++ exception handling.
4809 * cli/cli-cmds.c: Use C++ exception handling.
4810 * c-varobj.c: Use C++ exception handling.
4811 * btrace.c: Use C++ exception handling.
4812 * breakpoint.c: Use C++ exception handling.
4813 * break-catch-throw.c: Use C++ exception handling.
4814 * arch-utils.c: Use C++ exception handling.
4815 * amd64-tdep.c: Use C++ exception handling.
4816 * ada-valprint.c: Use C++ exception handling.
4817 * ada-typeprint.c: Use C++ exception handling.
4818 * ada-lang.c: Use C++ exception handling.
4819 * aarch64-tdep.c: Use C++ exception handling.
4821 2019-04-08 Tom Tromey <tom@tromey.com>
4823 * xml-support.c (gdb_xml_parser::parse): Update.
4824 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4825 * value.c (show_convenience): Update.
4826 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
4827 (test_parse_flags_qcs): Update.
4828 * thread.c (thr_try_catch_cmd): Update.
4829 * target.c (target_translate_tls_address): Update.
4830 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4831 (info_frame_command_core, frame_apply_command_count): Update.
4832 * rust-exp.y (rust_lex_exception_test): Update.
4833 * riscv-tdep.c (riscv_print_one_register_info): Update.
4834 * remote.c (remote_target::enable_btrace): Update.
4835 * record-btrace.c (record_btrace_enable_warn): Update.
4836 * python/py-utils.c (gdbpy_convert_exception): Update.
4837 * printcmd.c (do_one_display, print_variable_and_value): Update.
4838 * mi/mi-main.c (mi_print_exception): Update.
4839 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
4840 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4841 * linux-nat.c (linux_nat_target::attach): Update.
4842 * linux-fork.c (class scoped_switch_fork_info): Update.
4843 * infrun.c (displaced_step_prepare): Update.
4844 * infcall.c (call_function_by_hand_dummy): Update.
4845 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
4846 * gnu-v3-abi.c (print_one_vtable): Update.
4847 * frame.c (get_prev_frame_always): Update.
4848 * f-valprint.c (info_common_command_for_block): Update.
4849 * exec.c (try_open_exec_file): Update.
4850 * exceptions.c (print_exception, exception_print)
4851 (exception_fprintf, exception_print_same): Update.
4852 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
4853 * dwarf-index-cache.c (index_cache::store)
4854 (index_cache::lookup_gdb_index): Update.
4855 * darwin-nat.c (maybe_cache_shell): Update.
4856 * cp-valprint.c (cp_print_value_fields): Update.
4857 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
4858 (gcc_cplus_symbol_address): Update.
4859 * compile/compile-c-symbols.c (gcc_convert_symbol)
4860 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
4861 * common/selftest.c: Update.
4862 * common/common-exceptions.h (struct gdb_exception) <message>: Now
4864 (exception_try_scope_entry, exception_try_scope_exit): Don't
4866 (struct exception_try_scope): Remove.
4867 (TRY): Don't use exception_try_scope.
4868 (struct gdb_exception): Add constructor, operator=.
4870 (struct gdb_exception_RETURN_MASK_ALL)
4871 (struct gdb_exception_RETURN_MASK_ERROR)
4872 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
4873 (struct gdb_quit_bad_alloc): Update.
4874 * common/common-exceptions.c (exception_none): Change
4876 (struct catcher) <state, exception>: Initialize inline.
4877 <prev>: Remove member.
4878 (current_catcher): Remove.
4879 (catchers): New global.
4880 (exceptions_state_mc_init): Simplify.
4881 (catcher_pop): Remove.
4882 (exceptions_state_mc, exceptions_state_mc_catch): Update.
4883 (try_scope_depth, exception_try_scope_entry)
4884 (exception_try_scope_exit): Remove.
4885 (throw_exception_sjlj): Update.
4886 (exception_messages, exception_messages_size): Remove.
4887 (throw_it): Simplify.
4888 (gdb_exception_sliced_copy): Remove.
4889 (throw_exception_cxx): Update.
4890 * cli/cli-script.c (script_from_file): Update.
4891 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
4893 * ada-valprint.c (ada_val_print): Update.
4894 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
4895 (create_excep_cond_exprs): Update.
4897 2019-04-08 Tom Tromey <tom@tromey.com>
4899 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
4900 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
4901 (TRY, CATCH, END_CATCH): Remove some definitions.
4902 * common/common-exceptions.c: Don't use GDB_XCPT.
4903 (catcher_list_size): Remove.
4904 (throw_exception, throw_it): Simplify.
4906 2019-04-05 Tom Tromey <tom@tromey.com>
4908 Revert the header-sorting patch.
4909 * ft32-tdep.c: Revert.
4910 * frv-tdep.c: Revert.
4911 * frv-linux-tdep.c: Revert.
4913 * frame-unwind.c: Revert.
4914 * frame-base.c: Revert.
4915 * fork-child.c: Revert.
4916 * findvar.c: Revert.
4917 * findcmd.c: Revert.
4918 * filesystem.c: Revert.
4919 * filename-seen-cache.h: Revert.
4920 * filename-seen-cache.c: Revert.
4921 * fbsd-tdep.c: Revert.
4922 * fbsd-nat.h: Revert.
4923 * fbsd-nat.c: Revert.
4924 * f-valprint.c: Revert.
4925 * f-typeprint.c: Revert.
4927 * extension.h: Revert.
4928 * extension.c: Revert.
4929 * extension-priv.h: Revert.
4930 * expprint.c: Revert.
4933 * exceptions.c: Revert.
4934 * event-top.c: Revert.
4935 * event-loop.c: Revert.
4937 * elfread.c: Revert.
4938 * dwarf2read.h: Revert.
4939 * dwarf2read.c: Revert.
4940 * dwarf2loc.c: Revert.
4941 * dwarf2expr.h: Revert.
4942 * dwarf2expr.c: Revert.
4943 * dwarf2-frame.c: Revert.
4944 * dwarf2-frame-tailcall.c: Revert.
4945 * dwarf-index-write.h: Revert.
4946 * dwarf-index-write.c: Revert.
4947 * dwarf-index-common.c: Revert.
4948 * dwarf-index-cache.h: Revert.
4949 * dwarf-index-cache.c: Revert.
4950 * dummy-frame.c: Revert.
4951 * dtrace-probe.c: Revert.
4954 * disasm-selftests.c: Revert.
4955 * dictionary.c: Revert.
4956 * dicos-tdep.c: Revert.
4957 * demangle.c: Revert.
4960 * darwin-nat.h: Revert.
4961 * darwin-nat.c: Revert.
4962 * darwin-nat-info.c: Revert.
4963 * d-valprint.c: Revert.
4964 * d-namespace.c: Revert.
4967 * csky-tdep.c: Revert.
4968 * csky-linux-tdep.c: Revert.
4969 * cris-tdep.c: Revert.
4970 * cris-linux-tdep.c: Revert.
4971 * cp-valprint.c: Revert.
4972 * cp-support.c: Revert.
4973 * cp-namespace.c: Revert.
4975 * corelow.c: Revert.
4976 * corefile.c: Revert.
4977 * continuations.c: Revert.
4978 * completer.h: Revert.
4979 * completer.c: Revert.
4980 * complaints.c: Revert.
4981 * coffread.c: Revert.
4982 * coff-pe-read.c: Revert.
4983 * cli-out.h: Revert.
4984 * cli-out.c: Revert.
4985 * charset.c: Revert.
4986 * c-varobj.c: Revert.
4987 * c-valprint.c: Revert.
4988 * c-typeprint.c: Revert.
4990 * buildsym.c: Revert.
4991 * buildsym-legacy.c: Revert.
4992 * build-id.h: Revert.
4993 * build-id.c: Revert.
4995 * bsd-uthread.c: Revert.
4996 * breakpoint.h: Revert.
4997 * breakpoint.c: Revert.
4998 * break-catch-throw.c: Revert.
4999 * break-catch-syscall.c: Revert.
5000 * break-catch-sig.c: Revert.
5001 * blockframe.c: Revert.
5003 * bfin-tdep.c: Revert.
5004 * bfin-linux-tdep.c: Revert.
5005 * bfd-target.c: Revert.
5007 * ax-general.c: Revert.
5010 * avr-tdep.c: Revert.
5012 * auto-load.c: Revert.
5013 * arm-wince-tdep.c: Revert.
5014 * arm-tdep.c: Revert.
5015 * arm-symbian-tdep.c: Revert.
5016 * arm-pikeos-tdep.c: Revert.
5017 * arm-obsd-tdep.c: Revert.
5018 * arm-nbsd-tdep.c: Revert.
5019 * arm-nbsd-nat.c: Revert.
5020 * arm-linux-tdep.c: Revert.
5021 * arm-linux-nat.c: Revert.
5022 * arm-fbsd-tdep.c: Revert.
5023 * arm-fbsd-nat.c: Revert.
5024 * arm-bsd-tdep.c: Revert.
5025 * arch-utils.c: Revert.
5026 * arc-tdep.c: Revert.
5027 * arc-newlib-tdep.c: Revert.
5028 * annotate.h: Revert.
5029 * annotate.c: Revert.
5030 * amd64-windows-tdep.c: Revert.
5031 * amd64-windows-nat.c: Revert.
5032 * amd64-tdep.c: Revert.
5033 * amd64-sol2-tdep.c: Revert.
5034 * amd64-obsd-tdep.c: Revert.
5035 * amd64-obsd-nat.c: Revert.
5036 * amd64-nbsd-tdep.c: Revert.
5037 * amd64-nbsd-nat.c: Revert.
5038 * amd64-nat.c: Revert.
5039 * amd64-linux-tdep.c: Revert.
5040 * amd64-linux-nat.c: Revert.
5041 * amd64-fbsd-tdep.c: Revert.
5042 * amd64-fbsd-nat.c: Revert.
5043 * amd64-dicos-tdep.c: Revert.
5044 * amd64-darwin-tdep.c: Revert.
5045 * amd64-bsd-nat.c: Revert.
5046 * alpha-tdep.c: Revert.
5047 * alpha-obsd-tdep.c: Revert.
5048 * alpha-nbsd-tdep.c: Revert.
5049 * alpha-mdebug-tdep.c: Revert.
5050 * alpha-linux-tdep.c: Revert.
5051 * alpha-linux-nat.c: Revert.
5052 * alpha-bsd-tdep.c: Revert.
5053 * alpha-bsd-nat.c: Revert.
5054 * aix-thread.c: Revert.
5056 * addrmap.c: Revert.
5057 * ada-varobj.c: Revert.
5058 * ada-valprint.c: Revert.
5059 * ada-typeprint.c: Revert.
5060 * ada-tasks.c: Revert.
5061 * ada-lang.c: Revert.
5062 * aarch64-tdep.c: Revert.
5063 * aarch64-ravenscar-thread.c: Revert.
5064 * aarch64-newlib-tdep.c: Revert.
5065 * aarch64-linux-tdep.c: Revert.
5066 * aarch64-linux-nat.c: Revert.
5067 * aarch64-fbsd-tdep.c: Revert.
5068 * aarch64-fbsd-nat.c: Revert.
5069 * aarch32-linux-nat.c: Revert.
5071 2019-04-05 Tom Tromey <tom@tromey.com>
5073 * ft32-tdep.c: Sort headers.
5074 * frv-tdep.c: Sort headers.
5075 * frv-linux-tdep.c: Sort headers.
5076 * frame.c: Sort headers.
5077 * frame-unwind.c: Sort headers.
5078 * frame-base.c: Sort headers.
5079 * fork-child.c: Sort headers.
5080 * findvar.c: Sort headers.
5081 * findcmd.c: Sort headers.
5082 * filesystem.c: Sort headers.
5083 * filename-seen-cache.h: Sort headers.
5084 * filename-seen-cache.c: Sort headers.
5085 * fbsd-tdep.c: Sort headers.
5086 * fbsd-nat.h: Sort headers.
5087 * fbsd-nat.c: Sort headers.
5088 * f-valprint.c: Sort headers.
5089 * f-typeprint.c: Sort headers.
5090 * f-lang.c: Sort headers.
5091 * extension.h: Sort headers.
5092 * extension.c: Sort headers.
5093 * extension-priv.h: Sort headers.
5094 * expprint.c: Sort headers.
5095 * exec.h: Sort headers.
5096 * exec.c: Sort headers.
5097 * exceptions.c: Sort headers.
5098 * event-top.c: Sort headers.
5099 * event-loop.c: Sort headers.
5100 * eval.c: Sort headers.
5101 * elfread.c: Sort headers.
5102 * dwarf2read.h: Sort headers.
5103 * dwarf2read.c: Sort headers.
5104 * dwarf2loc.c: Sort headers.
5105 * dwarf2expr.h: Sort headers.
5106 * dwarf2expr.c: Sort headers.
5107 * dwarf2-frame.c: Sort headers.
5108 * dwarf2-frame-tailcall.c: Sort headers.
5109 * dwarf-index-write.h: Sort headers.
5110 * dwarf-index-write.c: Sort headers.
5111 * dwarf-index-common.c: Sort headers.
5112 * dwarf-index-cache.h: Sort headers.
5113 * dwarf-index-cache.c: Sort headers.
5114 * dummy-frame.c: Sort headers.
5115 * dtrace-probe.c: Sort headers.
5116 * disasm.h: Sort headers.
5117 * disasm.c: Sort headers.
5118 * disasm-selftests.c: Sort headers.
5119 * dictionary.c: Sort headers.
5120 * dicos-tdep.c: Sort headers.
5121 * demangle.c: Sort headers.
5122 * dcache.h: Sort headers.
5123 * dcache.c: Sort headers.
5124 * darwin-nat.h: Sort headers.
5125 * darwin-nat.c: Sort headers.
5126 * darwin-nat-info.c: Sort headers.
5127 * d-valprint.c: Sort headers.
5128 * d-namespace.c: Sort headers.
5129 * d-lang.c: Sort headers.
5130 * ctf.c: Sort headers.
5131 * csky-tdep.c: Sort headers.
5132 * csky-linux-tdep.c: Sort headers.
5133 * cris-tdep.c: Sort headers.
5134 * cris-linux-tdep.c: Sort headers.
5135 * cp-valprint.c: Sort headers.
5136 * cp-support.c: Sort headers.
5137 * cp-namespace.c: Sort headers.
5138 * cp-abi.c: Sort headers.
5139 * corelow.c: Sort headers.
5140 * corefile.c: Sort headers.
5141 * continuations.c: Sort headers.
5142 * completer.h: Sort headers.
5143 * completer.c: Sort headers.
5144 * complaints.c: Sort headers.
5145 * coffread.c: Sort headers.
5146 * coff-pe-read.c: Sort headers.
5147 * cli-out.h: Sort headers.
5148 * cli-out.c: Sort headers.
5149 * charset.c: Sort headers.
5150 * c-varobj.c: Sort headers.
5151 * c-valprint.c: Sort headers.
5152 * c-typeprint.c: Sort headers.
5153 * c-lang.c: Sort headers.
5154 * buildsym.c: Sort headers.
5155 * buildsym-legacy.c: Sort headers.
5156 * build-id.h: Sort headers.
5157 * build-id.c: Sort headers.
5158 * btrace.c: Sort headers.
5159 * bsd-uthread.c: Sort headers.
5160 * breakpoint.h: Sort headers.
5161 * breakpoint.c: Sort headers.
5162 * break-catch-throw.c: Sort headers.
5163 * break-catch-syscall.c: Sort headers.
5164 * break-catch-sig.c: Sort headers.
5165 * blockframe.c: Sort headers.
5166 * block.c: Sort headers.
5167 * bfin-tdep.c: Sort headers.
5168 * bfin-linux-tdep.c: Sort headers.
5169 * bfd-target.c: Sort headers.
5170 * bcache.c: Sort headers.
5171 * ax-general.c: Sort headers.
5172 * ax-gdb.h: Sort headers.
5173 * ax-gdb.c: Sort headers.
5174 * avr-tdep.c: Sort headers.
5175 * auxv.c: Sort headers.
5176 * auto-load.c: Sort headers.
5177 * arm-wince-tdep.c: Sort headers.
5178 * arm-tdep.c: Sort headers.
5179 * arm-symbian-tdep.c: Sort headers.
5180 * arm-pikeos-tdep.c: Sort headers.
5181 * arm-obsd-tdep.c: Sort headers.
5182 * arm-nbsd-tdep.c: Sort headers.
5183 * arm-nbsd-nat.c: Sort headers.
5184 * arm-linux-tdep.c: Sort headers.
5185 * arm-linux-nat.c: Sort headers.
5186 * arm-fbsd-tdep.c: Sort headers.
5187 * arm-fbsd-nat.c: Sort headers.
5188 * arm-bsd-tdep.c: Sort headers.
5189 * arch-utils.c: Sort headers.
5190 * arc-tdep.c: Sort headers.
5191 * arc-newlib-tdep.c: Sort headers.
5192 * annotate.h: Sort headers.
5193 * annotate.c: Sort headers.
5194 * amd64-windows-tdep.c: Sort headers.
5195 * amd64-windows-nat.c: Sort headers.
5196 * amd64-tdep.c: Sort headers.
5197 * amd64-sol2-tdep.c: Sort headers.
5198 * amd64-obsd-tdep.c: Sort headers.
5199 * amd64-obsd-nat.c: Sort headers.
5200 * amd64-nbsd-tdep.c: Sort headers.
5201 * amd64-nbsd-nat.c: Sort headers.
5202 * amd64-nat.c: Sort headers.
5203 * amd64-linux-tdep.c: Sort headers.
5204 * amd64-linux-nat.c: Sort headers.
5205 * amd64-fbsd-tdep.c: Sort headers.
5206 * amd64-fbsd-nat.c: Sort headers.
5207 * amd64-dicos-tdep.c: Sort headers.
5208 * amd64-darwin-tdep.c: Sort headers.
5209 * amd64-bsd-nat.c: Sort headers.
5210 * alpha-tdep.c: Sort headers.
5211 * alpha-obsd-tdep.c: Sort headers.
5212 * alpha-nbsd-tdep.c: Sort headers.
5213 * alpha-mdebug-tdep.c: Sort headers.
5214 * alpha-linux-tdep.c: Sort headers.
5215 * alpha-linux-nat.c: Sort headers.
5216 * alpha-bsd-tdep.c: Sort headers.
5217 * alpha-bsd-nat.c: Sort headers.
5218 * aix-thread.c: Sort headers.
5219 * agent.c: Sort headers.
5220 * addrmap.c: Sort headers.
5221 * ada-varobj.c: Sort headers.
5222 * ada-valprint.c: Sort headers.
5223 * ada-typeprint.c: Sort headers.
5224 * ada-tasks.c: Sort headers.
5225 * ada-lang.c: Sort headers.
5226 * aarch64-tdep.c: Sort headers.
5227 * aarch64-ravenscar-thread.c: Sort headers.
5228 * aarch64-newlib-tdep.c: Sort headers.
5229 * aarch64-linux-tdep.c: Sort headers.
5230 * aarch64-linux-nat.c: Sort headers.
5231 * aarch64-fbsd-tdep.c: Sort headers.
5232 * aarch64-fbsd-nat.c: Sort headers.
5233 * aarch32-linux-nat.c: Sort headers.
5235 2019-04-04 Tom Tromey <tom@tromey.com>
5237 * varobj.c (varobj_create): Update.
5238 * rust-exp.y (struct rust_parser) <update_innermost_block,
5239 lookup_symbol>: New methods.
5240 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
5242 (rust_parser::rust_lookup_type)
5243 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
5244 * printcmd.c (display_command, do_one_display): Update.
5245 * parser-defs.h (struct parser_state) <parser_state>: Add
5246 "tracker" parameter.
5247 (block_tracker): New member.
5248 (class innermost_block_tracker) <innermost_block_tracker>: Add
5250 <reset>: Remove method.
5251 (innermost_block): Don't declare.
5252 (null_post_parser): Update.
5253 * parse.c (innermost_block): Remove global.
5254 (write_dollar_variable): Update.
5255 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
5256 Remove "tracker_types" parameter.
5257 (parse_expression): Add "tracker" parameter.
5258 (parse_expression_for_completion): Update.
5259 (null_post_parser): Add "tracker" parameter.
5260 * p-exp.y: Update rules.
5261 * m2-exp.y: Update rules.
5262 * language.h (struct language_defn) <la_post_parser>: Add
5263 "tracker" parameter.
5264 * go-exp.y: Update rules.
5265 * f-exp.y: Update rules.
5266 * expression.h (parse_expression, parse_exp_1): Add "tracker"
5268 * d-exp.y: Update rules.
5269 * c-exp.y: Update rules.
5270 * breakpoint.c (set_breakpoint_condition): Create an
5271 innermost_block_tracker.
5272 (watch_command_1): Likewise.
5273 * ada-lang.c (resolve): Add "tracker" parameter.
5274 (resolve_subexp): Likewise.
5275 * ada-exp.y (write_var_from_sym): Update.
5277 2019-04-04 Tom Tromey <tom@tromey.com>
5279 * type-stack.h: New file.
5280 * type-stack.c: New file.
5281 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
5283 (insert_into_type_stack, insert_type, push_type, push_type_int)
5284 (insert_type_address_space, pop_type, pop_type_int)
5285 (pop_typelist, pop_type_stack, append_type_stack)
5286 (push_type_stack, get_type_stack, push_typelist)
5287 (follow_type_instance_flags, follow_types): Don't declare.
5288 * parse.c (type_stack): Remove global.
5289 (parse_exp_in_context): Update.
5290 (insert_into_type_stack, insert_type, push_type, push_type_int)
5291 (insert_type_address_space, pop_type, pop_type_int)
5292 (pop_typelist, pop_type_stack, append_type_stack)
5293 (push_type_stack, get_type_stack, push_typelist)
5294 (follow_type_instance_flags, follow_types): Remove (moved to
5296 * f-exp.y (type_stack): New global.
5298 (push_kind_type, f_parse): Update.
5299 * d-exp.y (type_stack): New global.
5302 * c-exp.y (struct c_parse_state) <type_stack>: New member.
5304 * Makefile.in (COMMON_SFILES): Add type-stack.c.
5305 (HFILES_NO_SRCDIR): Add type-stack.h.
5307 2019-04-04 Tom Tromey <tom@tromey.com>
5309 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
5310 (rust_parser::convert_ast_to_expression, rust_parse)
5311 (rust_lex_test_completion, rust_lex_tests): Update.
5312 * parser-defs.h (struct expr_completion_state): New.
5313 (struct parser_state) <parser_state>: Add completion parameter.
5314 <mark_struct_expression, mark_completion_tag>: New methods.
5315 <parse_completion, m_completion_state>: New members.
5316 (prefixify_expression, null_post_parser): Update.
5317 (mark_struct_expression, mark_completion_tag): Don't declare.
5318 * parse.c (parse_completion, expout_last_struct)
5319 (expout_tag_completion_type, expout_completion_name): Remove
5321 (parser_state::mark_struct_expression)
5322 (parser_state::mark_completion_tag): Now methods.
5323 (prefixify_expression): Add last_struct parameter.
5324 (prefixify_subexp): Likewise.
5325 (parse_exp_1): Update.
5326 (parse_exp_in_context): Add cstate parameter. Update.
5327 (parse_expression_for_completion): Create an
5328 expr_completion_state.
5329 (null_post_parser): Add "completion" parameter.
5330 * p-exp.y: Update rules.
5332 * language.h (struct language_defn) <la_post_parser>: Add
5333 "completing" parameter.
5334 * go-exp.y: Update rules.
5335 (lex_one_token): Update.
5336 * expression.h (parse_completion): Don't declare.
5337 * d-exp.y: Update rules.
5338 (lex_one_token): Update rules.
5339 * c-exp.y: Update rules.
5340 (lex_one_token): Update.
5341 * ada-lang.c (resolve): Add "parse_completion" parameter.
5342 (resolve_subexp): Likewise.
5343 (ada_resolve_function): Likewise.
5345 2019-04-04 Tom Tromey <tom@tromey.com>
5347 * parser-defs.h (struct parser_state) <start_arglist,
5348 end_arglist>: New methods.
5349 <arglist_len, m_funcall_chain>: New members.
5350 (arglist_len, start_arglist, end_arglist): Don't declare.
5351 * parse.c (arglist_len, funcall_chain): Remove global.
5352 (start_arglist, end_arglist): Remove functions.
5353 (parse_exp_in_context): Update.
5354 * p-exp.y: Update rules.
5355 * m2-exp.y: Update rules.
5356 * go-exp.y: Update rules.
5357 * f-exp.y: Update rules.
5358 * d-exp.y: Update rules.
5359 * c-exp.y: Update rules.
5361 2019-04-04 Tom Tromey <tom@tromey.com>
5363 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
5364 lex_operator, push_back>: New methods.
5366 (rust_parser::lex_hex, lex_escape): Rename and update.
5367 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
5368 (rust_parser::lex_operator): Rename and update.
5369 (rust_parser::lex_number, rustyylex, rustyyerror)
5370 (rust_lex_test_init, rust_lex_test_sequence)
5371 (rust_lex_test_push_back, rust_lex_tests): Update.
5372 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
5374 <lexptr, prev_lexptr>: New members.
5375 (lexptr, prev_lexptr): Don't declare.
5376 * parse.c (lexptr, prev_lexptr): Remove globals.
5377 (parse_exp_in_context): Update.
5378 * p-exp.y (yylex, yyerror): Update.
5379 * m2-exp.y (parse_number, yylex, yyerror): Update.
5380 * go-exp.y (lex_one_token, yyerror): Update.
5381 * f-exp.y (match_string_literal, yylex, yyerror): Update.
5382 * d-exp.y (lex_one_token, yyerror): Update.
5383 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
5384 (lex_one_token, yyerror): Update.
5385 * ada-lex.l (YY_INPUT): Update.
5386 (rewind_to_char): Update.
5387 * ada-exp.y (yyerror): Update.
5389 2019-04-04 Tom Tromey <tom@tromey.com>
5391 * rust-exp.y (rustyylex, rust_lex_tests): Update.
5392 * parser-defs.h (struct parser_state) <parser_state>: Add new
5394 <comma_terminates>: New member.
5395 (comma_terminates): Don't declare global.
5396 * parse.c (comma_terminates): Remove global.
5397 (parse_exp_in_context): Update.
5398 * p-exp.y (yylex): Update.
5399 * m2-exp.y (yylex): Update.
5400 * go-exp.y (lex_one_token): Update.
5401 * f-exp.y (yylex): Update.
5402 * d-exp.y (lex_one_token): Update.
5403 * c-exp.y (lex_one_token): Update.
5404 * ada-lex.l: Update.
5406 2019-04-04 Tom Tromey <tom@tromey.com>
5408 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
5409 (rustyylex, rust_lex_test_init, rust_lex_test_one)
5410 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
5411 * parser-defs.h (paren_depth): Don't declare.
5412 * parse.c (paren_depth): Remove global.
5413 (parse_exp_in_context): Update.
5414 * p-exp.y (paren_depth): New global.
5415 (pascal_parse): Initialize it.
5416 * m2-exp.y (paren_depth): New global.
5417 (m2_parse): Initialize it.
5418 * go-exp.y (paren_depth): New global.
5419 (go_parse): Initialize it.
5420 * f-exp.y (paren_depth): New global.
5421 (f_parse): Initialize it.
5422 * d-exp.y (paren_depth): New global.
5423 (d_parse): Initialize it.
5424 * c-exp.y (paren_depth): New global.
5425 (c_parse): Initialize it.
5426 * ada-lex.l (paren_depth): New global.
5427 (lexer_init): Initialize it.
5429 2019-04-04 Tom Tromey <tom@tromey.com>
5431 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
5432 (rust_parser::convert_ast_to_type)
5433 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
5434 * parser-defs.h (struct parser_state) <parser_state>: Add
5435 parameters. Initialize new members.
5436 <expression_context_block, expression_context_pc>: New members.
5437 * parse.c (expression_context_block, expression_context_pc):
5439 (parse_exp_in_context): Update.
5440 * p-exp.y: Update all rules.
5442 * m2-exp.y: Update all rules.
5444 * go-exp.y (yylex): Update.
5445 * f-exp.y (yylex): Update.
5446 * d-exp.y: Update all rules.
5448 * c-exp.y: Update all rules.
5449 (lex_one_token, classify_name, yylex, c_parse): Update.
5450 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
5452 2019-04-04 Tom Tromey <tom@tromey.com>
5454 * gdbarch.h, gdbarch.c: Rebuild.
5455 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
5457 (struct stap_parse_info): Replace "parser_state" with
5459 * parser-defs.h (struct expr_builder): Rename from "parser_state".
5460 (parser_state): New class.
5461 * parse.c (expr_builder): Rename.
5462 (expr_builder::release): Rename.
5463 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
5464 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
5465 (write_exp_elt_longcst, write_exp_elt_floatcst)
5466 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
5467 (write_exp_string_vector, write_exp_bitstring)
5468 (write_exp_msymbol, mark_struct_expression)
5469 (write_dollar_variable)
5470 (insert_type_address_space, increase_expout_size): Replace
5471 "parser_state" with "expr_builder".
5472 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
5473 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
5474 "parser_state" with "expr_builder".
5476 2019-04-04 Tom Tromey <tom@tromey.com>
5478 * rust-exp.y: Replace "parse_language" with method call.
5480 (yylex): Replace "parse_language" with method call.
5482 (yylex): Replace "parse_language" with method call.
5483 * go-exp.y (classify_name): Replace "parse_language" with method
5485 * f-exp.y (yylex): Replace "parse_language" with method call.
5486 * d-exp.y (lex_one_token): Replace "parse_language" with method
5489 (lex_one_token, classify_name, yylex): Replace "parse_language"
5491 * ada-exp.y (find_primitive_type, type_char)
5492 (type_system_address): Replace "parse_language" with method call.
5494 2019-04-04 Tom Tromey <tom@tromey.com>
5496 * rust-exp.y: Replace "parse_gdbarch" with method call.
5497 * parse.c (write_dollar_variable, insert_type_address_space):
5498 Replace "parse_gdbarch" with method call.
5499 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
5501 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
5503 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
5504 "parse_gdbarch" with method call.
5505 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
5507 * f-exp.y (parse_type, parse_f_type, yylex): Replace
5508 "parse_gdbarch" with method call.
5509 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
5510 "parse_gdbarch" with method call.
5511 * c-exp.y (parse_type, parse_number, classify_name): Replace
5512 "parse_gdbarch" with method call.
5513 * ada-lex.l: Replace "parse_gdbarch" with method call.
5514 * ada-exp.y (parse_type, find_primitive_type, type_char)
5515 (type_system_address): Replace "parse_gdbarch" with method call.
5517 2019-04-04 Tom Tromey <tom@tromey.com>
5519 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
5520 * stap-probe.c (stap_parse_argument): Update.
5521 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
5522 initial_size parameter.
5523 * rust-exp.y (rust_lex_tests): Update.
5524 * parse.c (parser_state): Update.
5525 (parse_exp_in_context): Update.
5526 * parser-defs.h (struct parser_state) <parser_state>: Remove
5527 "initial_size" parameter.
5529 2019-04-04 Tom Tromey <tom@tromey.com>
5531 * parser-defs.h (increase_expout_size): Don't declare.
5532 * parse.c (increase_expout_size): Now static.
5534 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
5536 * gnu-nat.c (gnu_nat_target::wait): Fix
5537 target_waitstatus_to_string call.
5539 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5541 * eval.c (evaluate_subexp_standard): Handle internal functions
5542 during Fortran function call handling.
5544 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5546 * NEWS: Mention new internal functions.
5547 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
5548 (read_base_type): Use dwarf2_init_complex_target_type.
5549 * value.c (creal_internal_fn): New function.
5550 (cimag_internal_fn): New function.
5551 (_initialize_values): Register new internal functions.
5553 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5555 * infrun.c (stop_all_threads): If debug_infrun, always
5556 trace the wait status after wait_one, using
5557 target_waitstatus_to_string and target_pid_to_str.
5558 (handle_inferior_event): Replace various trace of
5559 wait status kind by a single trace.
5560 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
5561 wait status kind image by target_waitstatus_to_string.
5562 * target/waitstatus.c (target_waitstatus_to_string): Fix
5565 2019-04-01 Tom Tromey <tromey@adacore.com>
5568 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
5570 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
5571 Pedro Alves <palves@redhat.com>
5573 * top.c (quit_force): Call 'finalize_values'.
5574 * value.c (finalize_values): New function.
5575 * value.h (finalize_values): Declare.
5577 2019-03-30 Eli Zaretskii <eliz@gnu.org>
5579 * NEWS: Announce $_gdb_major and $_gdb_minor.
5581 * top.c (init_gdb_version_vars): New function.
5582 (gdb_init): Call init_gdb_version_vars.
5584 2019-03-29 Tom Tromey <tromey@adacore.com>
5586 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
5587 help text. Remove dead code.
5589 2019-03-29 Keith Seitz <keiths@redhat.com>
5591 From Siddhesh Poyarekar:
5592 * f-lang.h (f77_get_upperbound): Return LONGEST.
5593 (f77_get_lowerbound): Likewise.
5594 * f-typeprint.c (f_type_print_varspec_suffix): Expand
5595 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
5597 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
5598 plongest to format print it.
5599 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
5600 (f77_get_upperbound): Likewise.
5601 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
5602 LOWER_BOUND to LONGEST.
5603 (f77_create_arrayprint_offset_tbl): Likewise.
5605 2019-03-29 Keith Seitz <keiths@redhat.com>
5607 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5608 %s/pulongest for TYPE_LENGTH instead of %d in format
5610 * ada-typerint.c (ada_print_type): Likewise.
5611 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
5612 * compile/compile-c-support.c (generate_register_struct): Likewise.
5613 * gdbtypes.c (recursive_dump_type): Likewise.
5614 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
5615 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
5616 instead of %d in format strings.
5617 * riscv-tdep.c (riscv_type_alignment): Cast second argument
5618 to std::min to ULONGEST.
5619 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
5620 instead of %d in format strings.
5621 * tracepoint.c (info_scope_command): Likewise.
5622 * typeprint.c (print_offset_data::update)
5623 (print_offset_data::finish): Likewise.
5624 * xtensa-tdep.c (xtensa_store_return_value)
5625 (xtensa_push_dummy_call): Likewise.
5627 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
5629 * windows-nat.c (display_selector): Fixed format specifications
5632 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5634 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
5636 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
5638 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
5639 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
5640 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
5641 (nios2_linux_init_abi): Install it.
5643 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5645 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
5647 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5649 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
5651 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5652 Tom Tromey <tromey@adacore.com>
5654 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
5656 2019-03-26 Joel Brobecker <brobecker@adacore.com>
5658 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
5659 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
5660 method to compute the bounds of range types. Also print "[evaluated]"
5661 if the bounds' values come from a dynamic evaluation.
5663 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * cp-valprint.c (cp_print_value_fields): Don't print trailing
5666 whitespace when pretty printing is on.
5668 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5670 * ppc-linux-nat.c: Add include.
5672 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5674 * NEWS: Mention AArch64 Pointer Authentication.
5676 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5678 * arm-linux-nat.c: Add include.
5680 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
5682 * source-cache.c (source_cache::get_source_lines): Re-read
5683 fullname after calling open_source_file.
5685 2019-03-25 John Baldwin <jhb@FreeBSD.org>
5687 * NEWS: Mention TLS support for FreeBSD.
5689 2019-03-25 Tom Tromey <tromey@adacore.com>
5691 * minsyms.c (BUNCH_SIZE): Update comment.
5692 (~minimal_symbol_reader): Remove old comment.
5693 (compact_minimal_symbols): Update comment.
5694 (minimal_symbol_reader::install): Remove old comment. Update
5697 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5699 * s390-linux-nat.c: Add include.
5701 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5703 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5704 Call linux_get_hwcap.
5705 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5707 (aarch64_linux_get_hwcap): Remove function.
5708 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
5710 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
5712 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5713 * linux-tdep.c (linux_get_hwcap): Add function.
5714 (linux_get_hwcap2): Likewise.
5715 * linux-tdep.h (linux_get_hwcap): Add declaration.
5716 (linux_get_hwcap2): Likewise.
5717 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
5718 (ppc_linux_get_hwcap2): Likewise.
5719 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
5721 (ppc_linux_nat_target::insert_watchpoint): Likewise.
5722 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
5723 (ppc_linux_nat_target::read_description): Likewise.
5724 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
5725 * s390-linux-nat.c: Likewise.
5726 * s390-linux-tdep.c (s390_core_read_description): Likewise.
5728 2019-03-24 Tom Tromey <tom@tromey.com>
5730 * ada-lang.c (standard_lookup): Simplify initialization.
5731 (ada_lookup_symbol_nonlocal): Simplify return.
5732 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
5733 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
5734 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
5735 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
5737 * solib.c (solib_global_lookup): Simplify.
5738 * symtab.c (null_block_symbol): Remove.
5739 (symbol_cache_lookup): Simplify returns.
5740 (lookup_language_this): Simplify returns.
5741 (lookup_symbol_aux): Simplify return.
5742 (lookup_local_symbol): Simplify returns.
5743 (lookup_global_symbol_from_objfile): Simplify return.
5744 (lookup_symbol_in_objfile_symtabs)
5745 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
5746 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
5747 (lookup_static_symbol, lookup_global_symbol): Simplify return.
5748 * cp-namespace.c (cp_lookup_bare_symbol)
5749 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
5750 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
5751 (cp_lookup_nested_symbol): Don't use null_block_symbol.
5752 (cp_lookup_symbol_via_imports): Simplify initialization.
5753 (find_symbol_in_baseclass): Likewise.
5754 * symtab.h (null_block_symbol): Remove.
5755 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
5756 (d_lookup_nested_symbol, d_lookup_symbol_imports)
5757 (d_lookup_symbol_module): Likewise.
5758 (find_symbol_in_baseclass): Simplify initialization.
5760 2019-03-24 Tom Tromey <tom@tromey.com>
5762 * expression.h: Don't include symtab.h.
5763 (struct block): Forward declare.
5765 2019-03-24 Tom Tromey <tom@tromey.com>
5767 * c-exp.y (typebase): Remove casts.
5768 * gdbtypes.c (lookup_unsigned_typename, )
5769 (lookup_signed_typename): Remove cast.
5770 * eval.c (parse_to_comma_and_eval): Remove cast.
5771 * parse.c (write_dollar_variable): Remove cast.
5772 * block.h (struct block) <superblock>: Now const.
5773 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
5774 * psymtab.c (psym_map_matching_symbols): Make "block" const.
5775 (map_block): Make "block" const.
5776 * symfile.h (struct quick_symbol_functions)
5777 <map_matching_symbols>: Constify block argument to "callback".
5778 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
5780 (find_pc_sect_compunit_symtab): Make "b" const.
5781 (find_symbol_at_address): Likewise.
5782 (search_symbols): Likewise.
5783 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
5784 (dw2_debug_names_lookup_symbol): Likewise.
5785 (dw2_map_matching_symbols): Update.
5786 * p-valprint.c (pascal_val_print): Remove "block".
5787 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
5788 (aux_add_nonlocal_symbols): Make "block" const.
5789 (resolve_subexp): Remove cast.
5790 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
5792 (iterate_over_file_blocks): Likewise.
5793 * f-exp.y (%union) <bval>: Remove.
5794 * coffread.c (patch_opaque_types): Make "b" const.
5795 * spu-tdep.c (spu_catch_start): Make "block" const.
5796 * c-valprint.c (print_unpacked_pointer): Remove "block".
5797 * symmisc.c (dump_symtab_1): Make "b" const.
5798 (block_depth): Make "block" const.
5799 * d-exp.y (%union) <bval>: Remove.
5800 * cp-support.h (cp_lookup_rtti_type): Update.
5801 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
5802 * psymtab.c (psym_lookup_symbol): Make "block" const.
5803 (maintenance_check_psymtabs): Make "b" const.
5804 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
5805 (enumerate_locals, enumerate_args): Update.
5806 * python/py-symtab.c (stpy_global_block): Make "block" const.
5807 (stpy_static_block): Likewise.
5808 * inline-frame.c (block_starting_point_at): Make "new_block"
5810 * block.c (find_block_in_blockvector): Make return type const.
5811 (blockvector_for_pc_sect): Make "b" const.
5812 (find_block_in_blockvector): Make "b" const.
5814 2019-03-23 Tom Tromey <tom@tromey.com>
5816 * varobj.c (varobj_create): Update.
5817 * symfile.c (clear_symtab_users): Don't reset innermost_block.
5818 * printcmd.c (display_command, do_one_display): Don't reset
5820 * parser-defs.h (enum innermost_block_tracker_type): Move to
5822 (innermost_block): Update comment.
5823 * parse.c (parse_exp_1): Add tracker_types parameter.
5824 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
5825 tracker_types parameter. Reset innermost_block.
5826 (parse_exp_in_context): Remove.
5827 (parse_expression_for_completion): Update.
5828 * objfiles.c (~objfile): Don't reset expression_context_block or
5830 * expression.h (enum innermost_block_tracker_type): Move from
5832 (parse_exp_1): Add tracker_types parameter.
5833 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
5834 reset innermost_block.
5836 2019-03-23 Tom Tromey <tom@tromey.com>
5838 * objfiles.h: Include bcache.h.
5840 2019-03-23 Tom Tromey <tom@tromey.com>
5842 * linespec.c (get_current_search_block): Use
5843 scoped_restore_current_language.
5844 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
5846 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5847 Jiong Wang <jiong.wang@arm.com>
5849 * aarch64-linux-tdep.c
5850 (aarch64_linux_iterate_over_regset_sections): Check for pauth
5852 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
5854 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5855 Jiong Wang <jiong.wang@arm.com>
5857 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
5859 (aarch64_analyze_prologue_test): Add PACIASP test.
5860 (aarch64_prologue_prev_register): Unmask PC value.
5862 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5863 Jiong Wang <jiong.wang@arm.com>
5865 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
5866 (aarch64_dwarf2_prev_register): Unmask PC value.
5867 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
5868 (aarch64_execute_dwarf_cfa_vendor_op): Check for
5869 DW_CFA_AARCH64_negate_ra_state.
5870 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
5872 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5873 Jiong Wang <jiong.wang@arm.com>
5875 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
5877 (aarch64_pseudo_register_name): Likewise.
5878 (aarch64_pseudo_register_type): Likewise.
5879 (aarch64_pseudo_register_reggroup_p): Likewise.
5880 (aarch64_gdbarch_init): Add pauth registers.
5881 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
5882 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
5883 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
5884 (struct gdbarch_tdep): Add regnum for ra_state.
5886 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5887 Jiong Wang <jiong.wang@arm.com>
5889 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
5891 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5892 Jiong Wang <jiong.wang@arm.com>
5894 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
5896 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
5897 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
5898 (aarch64_gdbarch_init): Add puth registers.
5899 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
5900 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
5901 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
5903 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5904 Jiong Wang <jiong.wang@arm.com>
5906 * aarch64-linux-nat.c
5907 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
5908 * aarch64-linux-tdep.c
5909 (aarch64_linux_core_read_description): Likewise.
5910 (aarch64_linux_get_hwcap): New function.
5911 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
5912 (aarch64_linux_get_hwcap): New declaration.
5914 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5915 Jiong Wang <jiong.wang@arm.com>
5917 * aarch64-linux-nat.c
5918 (aarch64_linux_nat_target::read_description): Add pauth param.
5919 * aarch64-linux-tdep.c
5920 (aarch64_linux_core_read_description): Likewise.
5921 * aarch64-tdep.c (struct target_desc): Add in pauth.
5922 (aarch64_read_description): Add pauth param.
5923 (aarch64_gdbarch_init): Likewise.
5924 * aarch64-tdep.h (aarch64_read_description): Likewise.
5925 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5926 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5927 * features/Makefile: Add new files.
5928 * features/aarch64-pauth.c: New file.
5929 * features/aarch64-pauth.xml: New file.
5931 2019-03-20 Tom Tromey <tromey@adacore.com>
5933 * infrun.c (handle_inferior_event): Rename from
5934 handle_inferior_event_1. Create a scoped_value_mark.
5935 (handle_inferior_event): Remove.
5937 2019-03-19 Tom Tromey <tromey@adacore.com>
5939 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
5940 * infrun.h (print_stop_event): Add "displays" parameter.
5941 * infrun.c (print_stop_event): Add "displays" parameter.
5943 2019-03-19 Pedro Alves <palves@redhat.com>
5945 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
5946 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
5947 to -1. Fix TABs vs spaces.
5948 (tui_ui_out::tui_ui_out): Don't initialize fields here.
5949 * tui/tui-out.h (tui_ui_out) Add intro comments.
5950 <m_line, m_start_of_line>: In-class initialize, and add describing
5953 2019-03-18 Alan Hayward <alan.hayward@arm.com>
5955 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
5957 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
5959 2019-03-18 Pedro Alves <palves@redhat.com>
5960 Eli Zaretskii <eliz@gnu.org>
5962 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
5963 m_line and m_start_of_line.
5965 2019-03-18 Eli Zaretskii <eliz@gnu.org>
5967 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
5968 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
5969 it returns a newline. This fixes a regression in TU mode, whereby
5970 the next line is output on the same screen line as the user input.
5972 2019-03-18 Tom Tromey <tromey@adacore.com>
5974 * minsyms.c (minimal_symbol_reader::install): Remove call to
5977 2019-03-18 Pedro Alves <palves@redhat.com>
5979 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
5981 (apply_style): New, factored out from ...
5982 (apply_ansi_escape): ... this. Handle reverse video mode.
5983 (tui_set_reverse_mode): New function.
5984 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
5985 * tui/tui-winsource.c (tui_show_source_line): Use
5986 tui_set_reverse_mode instead of setting A_STANDOUT.
5987 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
5990 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
5992 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
5995 2019-03-18 Tom Tromey <tromey@adacore.com>
5997 * ada-lang.c (empty_array): Add "high" parameter.
5998 (ada_evaluate_subexp): Update.
6000 2019-03-17 Sergei Trofimovich <siarheit@google.com>
6002 * unittests/string_view-selftests.c: Define
6003 _initialize_string_view_selftests unconditionally.
6005 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6008 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
6010 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6013 * windows-nat.c (display_selector): Fix format specifiers.
6015 2019-03-17 Eli Zaretskii <eliz@gnu.org>
6017 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
6018 tui_refill_source_window instead of tui_refresh_win, to update the
6019 current execution line. This fixes redisplay of the current line
6020 when stepping through the code with "next" or "step".
6022 2019-03-16 Eli Zaretskii <eliz@gnu.org>
6024 * source-cache.c (source_cache::get_source_lines): Call
6025 find_source_lines to initialize s->nlines. This fixes vertical
6026 scrolling of TUI source window when the DOWN arrow is pressed.
6028 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6030 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
6031 linux-thread-db.c (_initialize_thread_db): Likewise.
6033 2019-03-16 Eli Zaretskii <eliz@gnu.org>
6035 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
6036 wclrtoeol in tui_show_source_line". This reverts changes made in
6037 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
6039 2019-03-15 Tom Tromey <tom@tromey.com>
6041 * symtab.h (struct minimal_symbol): Derive from
6042 general_symbol_info.
6043 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
6044 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6045 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6046 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6047 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
6048 (MSYMBOL_SEARCH_NAME): Update.
6049 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
6050 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
6051 * minsyms.c (minimal_symbol_reader::record_full): Update.
6053 2019-03-15 Tom Tromey <tom@tromey.com>
6055 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
6057 2019-03-15 Tom Tromey <tom@tromey.com>
6059 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
6061 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
6063 * minsyms.c (lookup_minimal_symbol_by_pc_section)
6064 (build_minimal_symbol_hash_tables)
6065 (minimal_symbol_reader::install): Update.
6067 2019-03-15 Tom Tromey <tom@tromey.com>
6069 * symtab.c (create_demangled_names_hash): Update.
6070 (symbol_set_names): Update.
6071 * objfiles.h (struct objfile_per_bfd_storage)
6072 <demangled_names_hash>: Now an htab_up.
6073 * objfiles.c (objfile_per_bfd_storage): Simplify.
6075 2019-03-15 Tom Tromey <tom@tromey.com>
6077 * objfiles.h (struct objfile_per_bfd_storage): Declare
6079 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
6081 (get_objfile_bfd_data): Use new. Don't initialize
6083 (free_objfile_per_bfd_storage): Remove.
6084 (objfile_bfd_data_free, objfile::~objfile): Use delete.
6086 2019-03-15 Tom Tromey <tom@tromey.com>
6088 * symfile.c (reread_symbols): Update.
6089 * objfiles.c (objfile::objfile): Update.
6090 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
6091 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
6093 (minimal_symbol_reader::install): Update.
6094 (terminate_minimal_symbol_table): Remove.
6095 * jit.c (jit_object_close_impl): Update.
6097 2019-03-15 Tom Tromey <tom@tromey.com>
6099 * minsyms.c (minimal_symbol_reader::record_full): Remove some
6102 2019-03-15 Tom Tromey <tom@tromey.com>
6104 * objfiles.h (struct objfile_per_bfd_storage)
6105 <demangled_hash_languages>: Now a bitset.
6106 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
6107 (lookup_minimal_symbol): Update.
6109 2019-03-15 Tom Tromey <tom@tromey.com>
6111 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
6112 Don't return the symbol.
6113 * coffread.c (record_minimal_symbol): Use record_full.
6115 2019-03-14 Eli Zaretskii <eliz@gnu.org>
6117 The MS-Windows port of ncurses fails to switch to a color pair if
6118 one or both of the colors are the implicit default colors. This
6119 change records the default colors when TUI is initialized, and
6120 then specifies them explicitly when a color pair uses the default
6121 colors. This allows color styling in TUI mode on MS-Windows.
6123 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
6125 (tui_initialize_io) [__MINGW32__]: Record the default terminal
6126 colors in ncurses_norm_attr.
6127 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
6128 "none", replace it with the default color recorded in
6131 2019-03-14 Tom Tromey <tromey@adacore.com>
6133 * source-cache.h (class source_cache) <get_source_lines>: Return
6135 * source-cache.c (source_cache::extract_lines): Handle case where
6136 first_pos==npos. Return std::string.
6137 (source_cache::get_source_lines): Update.
6139 2019-03-14 Tom Tromey <tromey@adacore.com>
6141 * NEWS: Add item for "style sources" commands.
6142 * source-cache.c (source_cache::get_source_lines): Check
6144 * cli/cli-style.c (source_styling): New global.
6145 (_initialize_cli_style): Add "style sources" commands.
6146 (show_style_sources): New function.
6147 * cli/cli-style.h (source_styling): Declare.
6149 2019-03-14 Pedro Alves <palves@redhat.com>
6150 Tom Tromey <tromey@adacore.com>
6152 * tui/tui-winsource.h (tui_refill_source_window): Declare.
6153 * tui/tui-winsource.c (tui_refill_source_window): New function,
6155 (tui_horizontal_source_scroll): ... here. Move some logic.
6156 * cli/cli-style.c (set_style_enabled): Notify new observable.
6157 * tui/tui-hooks.c (tui_redisplay_source): New function.
6158 (tui_attach_detach_observers): Attach or detach
6159 tui_redisplay_source.
6160 * observable.h (source_styling_changed): New observable.
6161 * observable.c: Define source_styling_changed observable.
6163 2019-03-13 Tom Tromey <tromey@adacore.com>
6165 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
6166 (i386_gnu_nat_target::store_registers): Update.
6167 * target-debug.h (target_debug_print_std_string): New macro.
6168 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6169 * windows-tdep.c (display_one_tib): Update.
6170 * tui/tui-stack.c (tui_make_status_line): Update.
6171 * top.c (print_inferior_quit_action): Update.
6172 * thread.c (thr_try_catch_cmd): Update.
6173 (add_thread_with_info): Update.
6174 (thread_target_id_str): Update.
6175 (thr_try_catch_cmd): Update.
6176 (thread_command): Update.
6177 (thread_find_command): Update.
6178 * record-btrace.c (record_btrace_target::info_record)
6179 (record_btrace_resume_thread, record_btrace_target::resume)
6180 (record_btrace_cancel_resume, record_btrace_step_thread)
6181 (record_btrace_target::wait, record_btrace_target::wait)
6182 (record_btrace_target::wait, record_btrace_target::stop): Update.
6183 * progspace.c (print_program_space): Update.
6184 * process-stratum-target.c
6185 (process_stratum_target::thread_address_space): Update.
6186 * linux-fork.c (linux_fork_mourn_inferior)
6187 (detach_checkpoint_command, info_checkpoints_command)
6188 (linux_fork_context): Update.
6189 (linux_fork_detach): Update.
6190 (class scoped_switch_fork_info): Update.
6191 (delete_checkpoint_command): Update.
6192 * infrun.c (follow_fork_inferior): Update.
6193 (follow_fork_inferior): Update.
6194 (proceed_after_vfork_done): Update.
6195 (handle_vfork_child_exec_or_exit): Update.
6196 (follow_exec): Update.
6197 (displaced_step_prepare_throw): Update.
6198 (displaced_step_restore): Update.
6199 (start_step_over): Update.
6201 (clear_proceed_status_thread): Update.
6203 (print_target_wait_results): Update.
6204 (do_target_wait): Update.
6205 (context_switch): Update.
6206 (stop_all_threads): Update.
6207 (restart_threads): Update.
6208 (finish_step_over): Update.
6209 (handle_signal_stop): Update.
6210 (switch_back_to_stepped_thread): Update.
6211 (keep_going_pass_signal): Update.
6212 (print_exited_reason): Update.
6213 (normal_stop): Update.
6214 * inferior.c (inferior_pid_to_str): Change return type.
6215 (print_selected_inferior): Update.
6216 (add_inferior): Update.
6217 (detach_inferior): Update.
6218 * dummy-frame.c (fprint_dummy_frames): Update.
6219 * dcache.c (dcache_info_1): Update.
6220 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6221 (btrace_fetch, btrace_clear): Update.
6222 * linux-tdep.c (linux_core_pid_to_str): Change return type.
6223 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
6225 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
6226 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
6227 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
6228 * gdbarch.c, gdbarch.h: Rebuild.
6229 * gdbarch.sh (core_pid_to_str): Change return type.
6230 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
6232 (windows_nat_target::pid_to_str): Change return type.
6233 (windows_delete_thread): Update.
6234 (windows_nat_target::attach): Update.
6235 (windows_nat_target::files_info): Update.
6236 * target-delegates.c: Rebuild.
6237 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
6239 (sol_thread_target::pid_to_str): Change return type.
6240 * remote.c (class remote_target) <pid_to_str>: Change return
6242 (remote_target::pid_to_str): Change return type.
6243 (extended_remote_target::attach, remote_target::remote_stop_ns)
6244 (remote_target::remote_notif_remove_queued_reply)
6245 (remote_target::push_stop_reply, remote_target::disable_btrace):
6247 (extended_remote_target::attach): Update.
6248 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
6250 (gdbsim_target::pid_to_str): Change return type.
6251 * ravenscar-thread.c (struct ravenscar_thread_target)
6252 <pid_to_str>: Change return type.
6253 (ravenscar_thread_target::pid_to_str): Change return type.
6254 * procfs.c (class procfs_target) <pid_to_str>: Change return
6256 (procfs_target::pid_to_str): Change return type.
6257 (procfs_target::attach): Update.
6258 (procfs_target::detach): Update.
6259 (procfs_target::fetch_registers): Update.
6260 (procfs_target::store_registers): Update.
6261 (procfs_target::wait): Update.
6262 (procfs_target::files_info): Update.
6263 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
6264 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
6266 (nto_procfs_target::pid_to_str): Change return type.
6267 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
6268 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
6270 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
6272 (attach_proc_task_lwp_callback, get_detach_signal)
6273 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
6274 (linux_nat_target::resume, wait_lwp, stop_callback)
6275 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
6276 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
6277 (linux_nat_wait_1, resume_stopped_resumed_lwps)
6278 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
6279 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
6281 (inf_ptrace_target::attach): Update.
6282 (inf_ptrace_target::files_info): Update.
6283 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
6285 (go32_nat_target::pid_to_str): Change return type.
6286 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
6287 (gnu_nat_target::wait): Update.
6288 (gnu_nat_target::wait): Update.
6289 (gnu_nat_target::resume): Update.
6290 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
6291 (fbsd_nat_target::wait): Update.
6292 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
6294 (darwin_nat_target::attach): Update.
6295 * corelow.c (class core_target) <pid_to_str>: Change return type.
6296 (core_target::pid_to_str): Change return type.
6297 * target.c (normal_pid_to_str): Change return type.
6298 (default_pid_to_str): Likewise.
6299 (target_pid_to_str): Change return type.
6300 (target_translate_tls_address): Update.
6301 (target_announce_detach): Update.
6302 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
6304 (bsd_uthread_target::pid_to_str): Change return type.
6305 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
6307 (bsd_kvm_target::pid_to_str): Change return type.
6308 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
6310 (aix_thread_target::pid_to_str): Change return type.
6311 * target.h (struct target_ops) <pid_to_str>: Change return type.
6312 (target_pid_to_str, normal_pid_to_str): Likewise.
6313 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
6315 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
6317 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
6319 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
6321 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
6323 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
6326 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
6328 * NEWS: Mention that the new default MI version is 3. Mention
6329 changes to the output of commands and events that deal with
6330 multi-location breakpoints.
6331 * breakpoint.c: Include "mi/mi-out.h".
6332 (print_one_breakpoint): Change output syntax if using MI version
6334 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
6336 (mi_multi_location_breakpoint_output_fixed): New.
6337 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
6338 (mi_cmd_fix_multi_location_breakpoint_output): New.
6339 (mi_multi_location_breakpoint_output_fixed): New.
6340 * mi/mi-cmds.c (mi_cmds): Register command
6341 -fix-multi-location-breakpoint-output.
6342 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
6345 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6347 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
6348 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
6349 instantiate mi_ui_out based on interpreter name.
6350 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
6351 * mi/mi-main.c (mi_load_progress): Likewise.
6353 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6355 * NEWS: Combine separate "New targets" sections for 8.3.
6357 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6359 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
6360 (ppcfbsd_init_abi): Install gdbarch
6361 "fetch_tls_load_module_address" and "get_thread_local_address"
6364 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6366 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
6367 (riscv_fbsd_init_abi): Install gdbarch
6368 "fetch_tls_load_module_address" and "get_thread_local_address"
6371 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6373 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
6374 (i386fbsd_init_abi): Install gdbarch
6375 "fetch_tls_load_module_address" and "get_thread_local_address"
6378 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6380 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
6381 (amd64fbsd_init_abi): Install gdbarch
6382 "fetch_tls_load_module_address" and "get_thread_local_address"
6385 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6387 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
6388 (struct fbsd_pspace_data): New type.
6389 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
6390 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
6391 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
6392 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
6393 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
6395 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6397 * gdbtypes.c (lookup_struct_elt): New function.
6398 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
6399 * gdbtypes.h (struct struct_elt): New type.
6400 (lookup_struct_elt): New prototype.
6402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6404 * gdbtypes.c (lookup_struct_elt_type): Update comment and
6405 remove disabled code block.
6407 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6409 * gdbarch.sh (get_thread_local_address): New method.
6410 * gdbarch.h, gdbarch.c: Regenerate.
6411 * target.c (target_translate_tls_address): Use
6412 gdbarch_get_thread_local_address if present instead of
6413 target::get_thread_local_address.
6415 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6417 * target.h (target::get_thread_local_address): Update comment.
6419 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6421 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
6422 objfile->separate_debug_objfile_backlink if not NULL.
6424 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6426 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6427 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
6428 (amd64bsd_store_inferior_registers): Likewise.
6429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6430 Enable segment base registers.
6431 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
6432 PT_GETFSBASE and PT_GETGSBASE.
6433 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
6435 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
6436 segment base registers.
6437 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6439 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6441 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6442 Update calls to i386_target_description to add 'segments'
6444 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
6445 add segment base registers.
6446 * arch/i386.c (i386_create_target_description): Add 'segments'
6447 parameter to enable segment base registers.
6448 * arch/i386.h (i386_create_target_description): Likewise.
6449 * features/i386/32bit-segments.xml: New file.
6450 * features/i386/32bit-segments.c: Generate.
6451 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
6452 call to i386_target_description to add 'segments' parameter.
6453 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6454 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
6455 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
6456 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
6457 if feature is present.
6458 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
6459 Add 'segments' parameter to call to i386_target_description.
6460 (i386_target_description): Add 'segments' parameter to enable
6461 segment base registers.
6462 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
6463 to call to i386_target_description.
6464 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
6465 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
6466 Define I386_NUM_REGS.
6467 (i386_target_description): Add 'segments' parameter to enable
6468 segment base registers.
6470 2019-03-12 Eli Zaretskii <eliz@gnu.org>
6473 * source-cache.c: #undef open and close, to avoid unresolved
6474 externals during linking.
6476 2019-03-12 Tom Tromey <tromey@adacore.com>
6478 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
6479 const. Add initializers.
6480 (_initialize_remote): Don't initialize ptid globals.
6482 2019-03-12 Pedro Alves <palves@redhat.com>
6484 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
6486 2019-03-12 Pedro Alves <palves@redhat.com>
6488 * cp-name-parser.y (main): Remove unused 'len' variable.
6490 2019-03-12 Tom Tromey <tromey@adacore.com>
6492 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
6493 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
6495 2019-03-12 Tom Tromey <tromey@adacore.com>
6497 * linux-nat.c (iterate_over_lwps): Update.
6498 (stop_callback): Remove parameter.
6499 (stop_wait_callback, detach_callback, resume_set_callback)
6500 (select_singlestep_lwp_callback, set_ignore_sigint)
6501 (status_callback, resumed_callback, resume_clear_callback)
6502 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
6504 (linux_nat_target::detach, linux_nat_target::resume)
6505 (linux_stop_and_wait_all_lwps, select_event_lwp)
6506 (linux_nat_filter_event, linux_nat_wait_1)
6507 (linux_nat_target::kill, linux_nat_target::stop)
6508 (linux_nat_target::stop): Update.
6509 (linux_nat_resume_callback): Change type.
6510 (resume_stopped_resumed_lwps, count_events_callback)
6511 (select_event_lwp_callback): Likewise.
6512 (linux_stop_lwp, linux_nat_stop_lwp): Update.
6513 * arm-linux-nat.c (struct update_registers_data): Remove.
6514 (update_registers_callback): Change type.
6515 (arm_linux_insert_hw_breakpoint1): Update.
6516 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
6518 (x86_linux_dr_set_addr): Update.
6519 (x86_linux_dr_set_control): Update.
6520 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
6521 (iterate_over_lwps): Use gdb::function_view.
6522 * nat/aarch64-linux-hw-point.c (struct
6523 aarch64_dr_update_callback_param): Remove.
6524 (debug_reg_change_callback): Change type.
6525 (aarch64_notify_debug_reg_change): Update.
6526 * s390-linux-nat.c (s390_refresh_per_info): Update.
6528 2019-03-11 Tom Tromey <tromey@adacore.com>
6530 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
6531 redundant assignment to "this_cu".
6533 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6535 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
6537 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6539 * gdbtypes.c (rank_one_type_parm_set): New function extracted
6541 (rank_one_type): ... this.
6543 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6545 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
6547 (rank_one_type): ... this.
6549 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6551 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
6553 (rank_one_type): ... this.
6555 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6557 * gdbtypes.c (rank_one_type_parm_float): New function extracted
6559 (rank_one_type): ... this.
6561 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6563 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
6565 (rank_one_type): ... this.
6567 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6569 * gdbtypes.c (rank_one_type_parm_range): New function extracted
6571 (rank_one_type): ... this.
6573 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6575 * gdbtypes.c (rank_one_type_parm_char): New function extracted
6577 (rank_one_type): ... this.
6579 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6581 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
6583 (rank_one_type): ... this.
6585 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6587 * gdbtypes.c (rank_one_type_parm_int): New function extracted
6589 (rank_one_type): ... this.
6591 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6593 * gdbtypes.c (rank_one_type_parm_func): New function extracted
6595 (rank_one_type): ... this.
6597 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6599 * gdbtypes.c (rank_one_type_parm_array): New function extracted
6601 (rank_one_type): ... this.
6603 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6605 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
6607 (rank_one_type): ... this.
6609 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6611 * inferior.c (initialize_inferiors): Ensure 'help set/show print
6612 inferior-events' shows the example events.
6614 2019-03-08 Eli Zaretskii <eliz@gnu.org>
6616 Support styling on native MS-Windows console
6619 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
6620 on MS-Windows if $TERM is not defined.
6622 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
6624 * posix-hdep.c (gdb_console_fputs):
6625 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
6627 * ui-file.h (gdb_console_fputs): Add prototype.
6629 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
6630 back to fputs only if the former returns zero.
6632 2019-03-07 Tom Tromey <tom@tromey.com>
6634 * symmisc.c (print_symbol_bcache_statistics): Update.
6635 (print_objfile_statistics): Update.
6636 * symfile.c (allocate_symtab): Update.
6637 * stabsread.c: Don't include bcache.h.
6638 * psymtab.h (struct psymbol_bcache): Don't declare.
6639 (class psymtab_storage) <psymbol_cache>: Now a bcache.
6640 (psymbol_bcache_init, psymbol_bcache_free)
6641 (psymbol_bcache_get_bcache): Don't declare.
6642 * psymtab.c (struct psymbol_bcache): Remove.
6643 (psymtab_storage::psymtab_storage): Update.
6644 (psymtab_storage::~psymtab_storage): Update.
6645 (psymbol_bcache_init, psymbol_bcache_free)
6646 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
6647 (add_psymbol_to_bcache): Update.
6648 (allocate_psymtab): Update.
6649 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6650 macro_cache>: No longer pointers.
6651 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
6652 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
6653 * macrotab.c (macro_bcache): Update.
6654 * macroexp.c: Don't include bcache.h.
6655 * gdbtypes.c (check_types_worklist): Update.
6656 (types_deeply_equal): Remove TRY/CATCH. Update.
6657 * elfread.c (elf_symtab_read): Update.
6658 * dwarf2read.c: Don't include bcache.h.
6659 * buildsym.c (buildsym_compunit::get_macro_table): Update.
6660 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
6661 (print_bcache_statistics, bcache_memory_used): Don't declare.
6662 (struct bcache): Move from bcache.c. Add constructor, destructor,
6663 methods. Rename all data members.
6664 * bcache.c (struct bcache): Move to bcache.h.
6665 (bcache::expand_hash_table): Rename from expand_hash_table.
6667 (bcache::insert): Rename from bcache_full.
6668 (bcache::compare): Rename from bcache_compare.
6669 (bcache_xmalloc): Remove.
6670 (bcache::~bcache): Rename from bcache_xfree.
6671 (bcache::print_statistics): Rename from print_bcache_statistics.
6672 (bcache::memory_used): Rename from bcache_memory_used.
6674 2019-03-07 Pedro Alves <palves@redhat.com>
6676 * infrun.c (normal_stop): Also check for
6677 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
6679 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
6681 * f-lang.c (value_from_host_double): Moved to...
6682 * value.c (value_from_host_double): ...here.
6683 * value.h (value_from_host_double): Declare.
6684 * guile/scm-math.c (vlscm_convert_typed_number): Use
6685 value_from_host_double.
6686 (vlscm_convert_number): Likewise.
6687 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
6688 * python/py-value.c (convert_value_from_python): Likewise.
6690 2019-03-06 Tom Tromey <tom@tromey.com>
6692 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
6694 2019-03-06 Tom Tromey <tom@tromey.com>
6696 * utils.h (free_current_contents): Don't declare.
6697 * utils.c (free_current_contents): Remove.
6699 2019-03-06 Tom Tromey <tom@tromey.com>
6701 * top.c (quit_force): Update.
6702 * main.c (captured_command_loop): Update.
6703 * common/new-op.c (operator new): Update.
6704 * common/common-exceptions.c (struct catcher)
6705 <save_cleanup_chain>: Remove member.
6706 (exceptions_state_mc_init): Update.
6707 (exception_try_scope_entry): Return nullptr.
6708 (exception_try_scope_exit, exception_rethrow)
6709 (throw_exception_sjlj, throw_exception_cxx): Update.
6710 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
6711 (all_cleanups, do_cleanups, discard_cleanups)
6712 (discard_final_cleanups, save_cleanups, save_final_cleanups)
6713 (restore_cleanups, restore_final_cleanups): Don't declare.
6714 (do_final_cleanups): Remove parameter.
6715 * common/cleanups.c (cleanup_chain, make_cleanup)
6716 (make_cleanup_dtor, all_cleanups, do_cleanups)
6717 (discard_my_cleanups, discard_cleanups)
6718 (discard_final_cleanups, save_my_cleanups, save_cleanups)
6719 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
6720 (null_cleanup): Remove.
6721 (do_final_cleanups): Remove parameter.
6723 2019-03-06 Tom Tromey <tom@tromey.com>
6725 * remote.c (remote_target::remote_parse_stop_reply): Use
6728 2019-03-06 Tom Tromey <tom@tromey.com>
6730 * stabsread.c (struct stabs_field_info): Rename from field_info.
6731 <list, fnlist>: Add initializers.
6732 <obstack>: New member.
6733 (read_member_functions, read_struct_fields, read_baseclasses):
6734 Allocate on obstack. Don't use cleanups.
6735 (read_one_struct_field, read_member_functions, read_struct_fields)
6736 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
6737 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
6738 (read_struct_type): Update.
6740 2019-03-06 Tom Tromey <tom@tromey.com>
6742 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
6743 * common/filestuff.h (make_cleanup_close): Don't declare.
6744 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
6747 2019-03-06 Tom Tromey <tom@tromey.com>
6749 * solib-aix.c: Use make_scope_exit.
6751 2019-03-06 Tom Tromey <tom@tromey.com>
6753 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
6754 Use make_scope_exit.
6756 2019-03-06 Tom Tromey <tom@tromey.com>
6758 * solib-svr4.c (disable_probes_interface): Remove parameter.
6759 (svr4_handle_solib_event): Use make_scope_exit.
6761 2019-03-06 Tom Tromey <tom@tromey.com>
6763 * remote.c (struct stop_reply_deleter): Remove.
6764 (stop_reply_up): Update.
6765 (struct stop_reply): Derive from notif_event. Don't typedef.
6766 <regcache>: Now a std::vector.
6767 (stop_reply_xfree): Remove.
6768 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
6769 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
6770 (remote_target::discard_pending_stop_replies): Use delete.
6771 (remote_target::remote_parse_stop_reply): Update.
6772 (remote_target::process_stop_reply): Update.
6773 * remote-notif.h (struct notif_event): Add virtual destructor.
6774 Remove "dtr" member.
6775 (struct notif_client) <alloc_event>: Return a unique_ptr.
6776 (notif_event_xfree): Don't declare.
6777 (notif_event_up): New typedef.
6778 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
6779 (notif_event_xfree, do_notif_event_xfree): Remove.
6780 (remote_notif_state_xfree): Update.
6782 2019-03-06 Tom Tromey <tom@tromey.com>
6784 * infrun.c (displaced_step_clear_cleanup): Now a
6785 forward_scope_exit type.
6786 (displaced_step_prepare_throw): Update.
6787 (displaced_step_fixup): Update.
6789 2019-03-06 Tom Tromey <tom@tromey.com>
6791 * inferior.h (class inferior): Update comment.
6792 * gdbthread.h (class thread_info): Update comment.
6794 2019-03-06 Joel Brobecker <brobecker@adacore.com>
6795 Tom Tromey <tom@tromey.com>
6797 * stabsread.h (struct stab_section_list): Remove.
6798 (coffstab_build_psymtabs): Update.
6799 * dbxread.c (symbuf_sections): Now a std::vector.
6800 (sect_idx): New global.
6801 (fill_symbuf): Update.
6802 (coffstab_build_psymtabs): Change type of stabsects parameter.
6804 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
6806 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
6807 (coff_locate_sections): Update.
6808 (coff_symfile_read): Remove cleanups. Update.
6809 (init_stringtab): Add storage parameter.
6810 (free_stringtab, free_stringtab_cleanup): Remove.
6811 (init_lineno): Add storage parameter.
6812 (free_linetab, free_linetab_cleanup): Remove.
6814 2019-03-06 Pedro Alves <palves@redhat.com>
6816 * linux-fork.c (fork_info::clobber_regs): Delete.
6817 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
6818 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
6820 (scoped_switch_fork_info::scoped_switch_fork_info)
6821 (checkpoint_command, linux_fork_context): Adjust
6822 fork_save_infrun_state calls.
6824 2019-03-06 Pedro Alves <palves@redhat.com>
6826 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
6827 (inf_has_multiple_threads): Return 'bool' and rewrite using
6828 inferior_info::threads().
6830 2019-03-06 Pedro Alves <palves@redhat.com>
6832 * linux-fork.c: Include <list>.
6833 (fork_list): Now a std::list instance.
6834 (fork_info): Add ctor, dtor, and in-class initialize all fields.
6835 (forks_exist_p, find_last_fork): Adjust.
6839 (free_fork): Delete, folded into fork_info::~fork_info().
6840 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
6842 (init_fork_list): Delete.
6843 (linux_fork_killall, linux_fork_mourn_inferior)
6844 (linux_fork_detach, info_checkpoints_command): Adjust.
6845 (_initialize_linux_fork): No longer call init_fork_list.
6847 2019-03-06 Pedro Alves <palves@redhat.com>
6849 * linux-fork.c (new_fork): New, split out of ...
6850 (add_fork): ... this. Return void. Move "first fork" special
6851 case from here, to ...
6852 (checkpoint_command): ... here.
6853 * linux-linux.h (add_fork): Return void.
6855 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6857 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
6859 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6860 Chris January <chris.january@arm.com>
6861 David Lecomber <david.lecomber@arm.com>
6863 * f-exp.y: New token, UNOP_INTRINSIC.
6864 (exp): New pattern using UNOP_INTRINSIC token.
6865 (f77_keywords): Add 'abs' keyword.
6866 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
6867 (value_from_host_double): New function.
6868 (evaluate_subexp_f): Support UNOP_ABS.
6870 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6872 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
6875 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6877 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
6878 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
6879 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
6881 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6883 * f-exp.y (convert_to_kind_type): Handle more type kinds.
6885 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6886 Chris January <chris.january@arm.com>
6888 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
6889 * f-exp.y: Define 'KIND' token.
6890 (exp): New pattern for KIND expressions.
6891 (ptype): Handle types with a kind extension.
6892 (direct_abs_decl): Extend to spot kind extensions.
6893 (f77_keywords): Add 'kind' to the list.
6894 (push_kind_type): New function.
6895 (convert_to_kind_type): New function.
6896 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
6897 * parse.c (operator_length_standard): Likewise.
6898 * parser-defs.h (enum type_pieces): Add tp_kind.
6899 * std-operator.def: Add UNOP_KIND.
6901 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6903 * f-exp.y (f_parse): Set yydebug.
6905 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6907 * f-lang.c (evaluate_subexp_f): New function.
6908 (exp_descriptor_f): New global.
6909 (f_language_defn): Use exp_descriptor_f instead of
6910 exp_descriptor_standard.
6912 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6914 * f-exp.y (struct token): Add comments.
6915 (dot_ops): Remove uppercase versions and the end marker.
6916 (f77_keywords): Likewise.
6917 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
6918 entries in the dot_ops array are case insensitive, and use
6919 strncasecmp to compare strings. Also some whitespace cleanup in
6920 this area. Similar for the f77_keywords array, except entries in
6921 this list might be case sensitive.
6923 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6925 * f-exp.y (struct f77_boolean_val): Add comments.
6926 (boolean_values): Remove uppercase versions, and end marker.
6927 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
6928 and use strncasecmp to achieve case insensitivity. Additionally,
6929 perform whitespace cleanup around this code.
6931 2019-03-06 Tom Tromey <tromey@adacore.com>
6933 * remote-sim.c (gdbsim_target_open): Use result of
6936 2019-03-06 Richard Bunt <richard.bunt@arm.com>
6937 Dirk Schubert <dirk.schubert@arm.com>
6938 Chris January <chris.january@arm.com>
6940 * eval.c (evaluate_subexp_standard): Call Fortran argument
6942 * f-lang.c (struct value): A value which can be passed into a
6943 Fortran function call.
6944 (fortran_argument_convert): Wrap Fortran arguments in a pointer
6946 (struct type): Value ready for a Fortran function call.
6947 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
6949 * f-lang.h (fortran_argument_convert): Declaration.
6950 (fortran_preserve_arg_pointer): Declaration.
6951 * infcall.c (value_arg_coerce): Call Fortran argument logic.
6953 2019-03-05 Tom Tromey <tromey@adacore.com>
6955 * python/py-prettyprint.c (print_string_repr): Remove #if.
6956 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
6958 2019-03-05 Tom Tromey <tromey@adacore.com>
6960 * target.c (the_dummy_target): Move later. Change type to
6962 (initialize_targets): Don't initialize the_dummy_target.
6964 2019-03-05 Tom Tromey <tromey@adacore.com>
6966 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
6967 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
6969 2019-03-05 Tom Tromey <tromey@adacore.com>
6971 * windows-nat.c (windows_nat_target::attach)
6972 (windows_nat_target::detach): Don't call gdb_flush.
6973 * valprint.c (generic_val_print, val_print, val_print_string):
6974 Don't call gdb_flush.
6975 * utils.c (defaulted_query): Don't call gdb_flush.
6976 * typeprint.c (print_type_scalar): Don't call gdb_flush.
6977 * target.c (target_announce_detach): Don't call gdb_flush.
6978 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
6979 * remote.c (extended_remote_target::attach): Don't call
6981 * procfs.c (procfs_target::detach): Don't call gdb_flush.
6982 * printcmd.c (do_examine): Don't call gdb_flush.
6983 (info_display_command): Don't call gdb_flush.
6984 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
6985 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
6986 * memattr.c (info_mem_command): Don't call gdb_flush.
6987 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
6988 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
6989 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
6990 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
6991 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
6992 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
6993 (gnu_nat_target::detach): Don't call gdb_flush.
6994 * f-valprint.c (f_val_print): Don't call gdb_flush.
6995 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
6996 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
6997 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
6999 * c-valprint.c (c_val_print): Don't call gdb_flush.
7000 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
7002 2019-03-05 Tom Tromey <tromey@adacore.com>
7004 * varobj.c (update_dynamic_varobj_children): Update.
7005 (install_default_visualizer): Use reset, not release.
7006 * value.c (set_internalvar): Update.
7007 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
7008 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
7009 ATTRIBUTE_UNUSED_RESULT.
7011 2019-03-05 Tom Tromey <tromey@adacore.com>
7013 * remote.c (class scoped_remote_fd) <release>: Add
7014 ATTRIBUTE_UNUSED_RESULT.
7016 2019-03-05 Tom Tromey <tromey@adacore.com>
7018 * macroexp.c (struct macro_buffer) <release>: Add
7019 ATTRIBUTE_UNUSED_RESULT.
7021 2019-03-05 Tom Tromey <tromey@adacore.com>
7023 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
7024 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
7025 ATTRIBUTE_UNUSED_RESULT.
7027 2019-03-05 Tom Tromey <tromey@adacore.com>
7029 * common/scoped_fd.h (class scoped_fd) <release>: Add
7030 ATTRIBUTE_UNUSED_RESULT.
7032 2019-03-05 Tom Tromey <tromey@adacore.com>
7034 * parser-defs.h (struct parser_state) <release>: Add
7035 ATTRIBUTE_UNUSED_RESULT.
7037 2019-03-05 Tom Tromey <tromey@adacore.com>
7039 * utils.h (class gdb_argv) <release>: Add
7040 ATTRIBUTE_UNUSED_RESULT.
7041 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
7043 2019-03-02 Eli Zaretskii <eliz@gnu.org>
7045 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
7046 for-loop range, to avoid compiler warnings.
7048 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
7049 avoid compiler warnings about unused variables.
7051 * NEWS: Mention end of support for native debugging on MS-Windows
7055 * common/netstuff.c:
7056 * gdbserver/gdbreplay.c
7057 * gdbserver/remote-utils.c:
7059 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
7060 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
7061 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
7062 'getaddrinfo' and 'freeaddrinfo' were not available before
7063 Windows XP, and mingw.org's MinGW headers by default define
7064 _WIN32_WINNT to 0x500.
7066 2019-03-01 Gary Benson <gbenson@redhat.com>
7068 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
7070 2019-02-28 Brian Vandenberg <phantall@gmail.com>
7071 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7074 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
7075 set_sigint_trap, clear_sigint_trap.
7077 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7079 * target.c (target_detach): Clear the regcache and the
7082 2019-02-27 Pedro Alves <palves@redhat.com>
7084 * utils.c (set_screen_size): When we cap the height/width sizes,
7085 tweak the corresponding command variable to show "unlimited":
7087 2019-02-27 Saagar Jha <saagar@saagarjha.com>
7088 Pedro Alves <palves@redhat.com>
7090 * utils.c (set_screen_size): Reduce "infinite" rows and columns
7091 before calling rl_set_screen_size.
7093 2019-02-27 Tom Tromey <tromey@adacore.com>
7095 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
7097 * python/py-value.c: Remove Python 2.4 workaround.
7098 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
7100 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
7101 Python 2.4 workaround.
7102 * python/python-internal.h: Remove Python 2.4 comment.
7103 (Py_ssize_t): Don't define.
7104 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
7105 (gdb_Py_DECREF): Remove Python 2.4 workaround.
7106 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
7107 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
7108 * python/python.c (do_start_initialization): Remove Python 2.4
7110 * python/py-prettyprint.c (class dummy_python_frame): Remove.
7111 (print_children): Remove Python 2.4 workaround.
7112 * python/py-inferior.c (buffer_procs): Remove Python 2.4
7114 (CHARBUFFERPROC_NAME): Remove.
7115 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
7116 Python 2.4 workaround.
7118 2019-02-27 Kevin Buettner <kevinb@redhat.com>
7120 * NEWS: Note minimum Python version.
7122 2019-02-27 Kevin Buettner <kevinb@redhat.com>
7124 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
7125 code from these functions. Remove corresponding ifdefs. Use
7126 Py_buffer_up instead of explicit calls to PyBuffer_Release.
7127 Remove gotos and target of gotos.
7128 (infpy_search_memory): Likewise.
7130 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7132 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
7133 (hppa_gdbarch_init): Don't register deleted functions with
7136 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7138 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
7139 (h8300_unwind_sp): Delete.
7140 (h8300_dummy_id): Delete.
7141 (h8300_gdbarch_init): Don't register deleted functions with
7144 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7146 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
7147 (ft32_unwind_pc): Delete.
7148 (ft32_unwind_sp): Delete.
7149 (ft32_gdbarch_init): Don't register deleted functions with
7152 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7154 * gdb/frv-tdep.c (frv_dummy_id): Delete.
7155 (frv_unwind_pc): Delete.
7156 (frv_unwind_sp): Delete.
7157 (frv_gdbarch_init): Don't register deleted functions with
7160 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7162 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
7163 (riscv_unwind_pc): Delete.
7164 (riscv_unwind_sp): Delete.
7165 (riscv_gdbarch_init): Don't register deleted functions with
7168 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7170 * gdb/csky-tdep.c (csky_dummy_id): Delete.
7171 (csky_unwind_pc): Delete.
7172 (csky_unwind_sp): Delete.
7173 (csky_gdbarch_init): Don't register deleted functions with
7176 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7178 * gdb/cris-tdep.c (cris_dummy_id): Delete.
7179 (cris_unwind_pc): Delete.
7180 (cris_unwind_sp): Delete.
7181 (cris_gdbarch_init): Don't register deleted functions with
7184 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7186 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
7187 (bfin_unwind_pc): Delete.
7188 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
7190 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7192 * gdb/arm-tdep.c (arm_dummy_id): Delete.
7193 (arm_unwind_pc): Delete.
7194 (arm_unwind_sp): Delete.
7195 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
7197 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7199 * gdb/arc-tdep.c (arc_dummy_id): Delete.
7200 (arc_unwind_pc): Delete.
7201 (arc_unwind_sp): Delete.
7202 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
7204 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7206 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
7207 (alpha_unwind_pc): Delete.
7208 (alpha_gdbarch_init): Don't register deleted functions with
7211 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7213 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
7214 (aarch64_unwind_pc): Delete.
7215 (aarch64_unwind_sp): Delete.
7216 (aarch64_gdbarch_init): Don't register deleted functions with
7219 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7221 * gdbtypes.c (type_align): Don't consider static members when
7222 computing structure alignment.
7224 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7226 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
7227 return 0 for other types.
7228 * arch-utils.c (default_type_align): Always return 0.
7229 * gdbarch.h: Regenerate.
7230 * gdbarch.sh (type_align): Extend comment.
7231 * gdbtypes.c (type_align): Add additional comments, always call
7232 gdbarch_type_align before applying the default rules.
7233 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
7234 generic code will then apply a suitable default.
7235 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
7236 types, return 0 for other types.
7238 2019-02-27 Joel Brobecker <brobecker@adacore.com>
7240 * NEWS: Create a new section for the next release branch.
7241 Rename the section of the current branch, now that it has
7244 2019-02-27 Joel Brobecker <brobecker@adacore.com>
7246 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
7247 * version.in: Bump version to 8.3.50.DATE-git.
7249 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
7251 * aix-thread.c (ptid_cmp): Remove unused variable.
7252 (get_signaled_thread): Likewise.
7253 (store_regs_user_thread): Likewise.
7254 (store_regs_kernel_thread): Likewise.
7255 (fetch_regs_kernel_thread): Remove shadowed variable.
7257 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
7259 * features/riscv/32bit-cpu.xml: Add register numbers.
7260 * features/riscv/32bit-fpu.c: Regenerate.
7261 * features/riscv/32bit-fpu.xml: Add register numbers.
7262 * features/riscv/64bit-cpu.xml: Add register numbers.
7263 * features/riscv/64bit-fpu.c: Regenerate.
7264 * features/riscv/64bit-fpu.xml: Add register numbers.
7266 2019-02-26 Kevin Buettner <kevinb@redhat.com>
7268 * NEWS: Mention two argument form of gdb.Value constructor.
7269 * python/py-value.c (convert_buffer_and_type_to_value): New
7271 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
7272 Add support for handling an optional second argument. Call
7273 convert_buffer_and_type_to_value as appropriate.
7274 * python/python-internal.h (Py_buffer_deleter): New struct.
7275 (Py_buffer_up): New typedef.
7277 2019-02-25 John Baldwin <jhb@FreeBSD.org>
7279 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
7280 instead of releasing ownership.
7282 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
7284 * dwarf2read.c (open_and_init_dwp_file): Call
7285 elf_numsections instead of bfd_count_sections to initialize
7286 dwp_file->num_sections.
7288 2019-02-25 Tom Tromey <tromey@adacore.com>
7290 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
7292 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
7294 * gcore.in: Add '--readnever' option when invoking GDB.
7296 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7298 * MAINTAINERS: Update my email address.
7300 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7302 * build-id.c (build_id_to_debug_bfd_1): New function.
7303 (build_id_to_debug_bfd): Look for separate debug file in
7306 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
7308 * gdbarch.sh: Update the copyright year range that is placed into
7311 2019-02-22 Keith Seitz <keiths@redhat.com>
7314 * linespec.c (create_sals_line_offset): Search for the default
7315 symtab's filename instead of its fullname.
7317 2019-02-21 Alan Hayward <alan.hayward@arm.com>
7319 * NEWS: Update style defaults.
7321 2019-02-21 Alan Hayward <alan.hayward@arm.com>
7323 * main.c (captured_main_1): Disable styling in batch mode.
7325 2019-02-20 Tom Tromey <tom@tromey.com>
7327 * symtab.c (symtab_symbol_info): Fix typos.
7329 2019-02-20 Tom Tromey <tromey@adacore.com>
7331 * findcmd.c (_initialize_mem_search): Use upper case for
7332 metasyntactic variables.
7334 2019-02-20 Alan Hayward <alan.hayward@arm.com>
7336 * aarch64-tdep.c (aarch64_add_reggroups): New function.
7337 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
7339 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
7341 * top.h (source_file_name): Change to std::string.
7342 * top.c (source_file_name): Likewise.
7343 (command_line_input): Adjust.
7344 * cli/cli-script.c (script_from_file): Adjust.
7346 2019-02-19 Tom Tromey <tromey@adacore.com>
7348 * ravenscar-thread.c
7349 (ravenscar_thread_target::update_thread_list): Don't call
7350 ada_build_task_list.
7351 * ada-lang.h (ada_build_task_list): Don't declare.
7352 * ada-tasks.c (struct ada_tasks_inferior_data)
7353 <task_list_valid_p>: Now bool.
7354 (read_known_tasks, ada_task_list_changed)
7355 (ada_tasks_invalidate_inferior_data): Update.
7356 (read_known_tasks_array): Return bool.
7357 (read_known_tasks_list): Likewise.
7358 (read_known_tasks): Return void.
7359 (ada_build_task_list): Now static.
7361 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
7363 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
7364 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
7366 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7368 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
7369 variant for ada_tasks_pspace_data_handle and
7370 ada_tasks_inferior_data_handle.
7371 (ada_tasks_pspace_data_cleanup): New function.
7372 (ada_tasks_inferior_data_cleanup): New function.
7374 2019-02-17 Tom Tromey <tom@tromey.com>
7376 * macrotab.h (macro_source_fullname): Return a std::string.
7377 * macrotab.c (macro_include, check_for_redefinition)
7378 (macro_undef, macro_lookup_definition, foreach_macro)
7379 (foreach_macro_in_scope): Update.
7380 (macro_source_fullname): Return a std::string.
7381 * macrocmd.c (show_pp_source_pos): Update.
7383 2019-02-17 Tom Tromey <tom@tromey.com>
7385 * macrocmd.c (show_pp_source_pos): Style the file names.
7387 2019-02-17 Tom Tromey <tom@tromey.com>
7390 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
7392 2019-02-17 Tom Tromey <tom@tromey.com>
7394 * ada-lang.c (user_select_syms): Use filtered printing.
7395 * utils.c (wrap_style): New global.
7396 (desired_style): Remove.
7397 (emit_style_escape): Add stream parameter.
7398 (set_output_style, reset_terminal_style, prompt_for_continue):
7400 (flush_wrap_buffer): Only flush gdb_stdout.
7401 (wrap_here): Set wrap_style.
7402 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
7403 treat escape sequences as a character. Change when wrap buffer is
7405 (fputs_styled): Do not set the output style when the default is
7407 * ui-style.h (struct ui_file_style) <is_default>: New method.
7408 * source.c (print_source_lines_base): Emit escape sequences in one
7411 2019-02-17 Joel Brobecker <brobecker@adacore.com>
7413 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
7414 integers and enumeration types.
7416 2019-02-17 Joel Brobecker <brobecker@adacore.com>
7418 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
7419 instead of lookup_symbol_in_language
7420 (do_exact_match): New function.
7421 (ada_get_symbol_name_matcher): Return do_exact_match when
7422 doing a verbatim match.
7424 2019-02-15 Tom Tromey <tromey@adacore.com>
7426 * ravenscar-thread.c (ravenscar_thread_target::resume)
7427 (ravenscar_thread_target::wait): Special case wildcard requests.
7429 2019-02-15 Tom Tromey <tromey@adacore.com>
7431 * ravenscar-thread.c (base_ptid): Remove.
7432 (struct ravenscar_thread_target) <close>: New method.
7433 <m_base_ptid>: New member.
7434 <update_inferior_ptid, active_task, task_is_currently_active,
7435 runtime_initialized>: Declare methods.
7436 <ravenscar_thread_target>: Add constructor.
7437 (ravenscar_thread_target::task_is_currently_active)
7438 (ravenscar_thread_target::update_inferior_ptid)
7439 (ravenscar_runtime_initialized): Rename. Now methods.
7440 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
7441 (ravenscar_thread_target::update_thread_list): Update.
7442 (ravenscar_thread_target::active_task): Now method.
7443 (ravenscar_thread_target::store_registers)
7444 (ravenscar_thread_target::prepare_to_store)
7445 (ravenscar_thread_target::prepare_to_store)
7446 (ravenscar_thread_target::mourn_inferior): Update.
7447 (ravenscar_inferior_created): Use "new" to create target.
7448 (ravenscar_thread_target::get_ada_task_ptid): Update.
7449 (_initialize_ravenscar): Don't initialize base_ptid.
7450 (ravenscar_ops): Remove global.
7452 2019-02-15 Tom Tromey <tromey@adacore.com>
7454 * target.h (push_target): Declare new overload.
7455 * target.c (push_target): New overload, taking an rvalue reference.
7456 * remote.c (remote_target::open_1): Use push_target overload.
7457 * corelow.c (core_target_open): Use push_target overload.
7459 2019-02-15 Tom Tromey <tromey@adacore.com>
7461 * ravenscar-thread.c (is_ravenscar_task)
7462 (ravenscar_task_is_currently_active): Return bool.
7463 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
7464 (_initialize_ravenscar): Remove "(void)".
7465 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
7468 2019-02-15 Tom Tromey <tromey@adacore.com>
7470 * ravenscar-thread.c (ravenscar_runtime_initializer)
7471 (has_ravenscar_runtime, get_running_thread_id)
7472 (ravenscar_thread_target::resume): Fix indentation.
7474 2019-02-15 Tom Tromey <tromey@adacore.com>
7476 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
7477 from ravenscar_arch_ops.
7478 (sparc_ravenscar_ops::fetch_registers)
7479 (sparc_ravenscar_ops::store_registers): Now methods.
7480 (sparc_ravenscar_prepare_to_store): Remove.
7481 (sparc_ravenscar_ops): Redefine.
7482 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
7483 methods and destructor. Remove members.
7484 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
7485 (ravenscar_thread_target::store_registers)
7486 (ravenscar_thread_target::prepare_to_store): Update.
7487 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
7489 (struct ppc_ravenscar_powerpc_ops): Derive from
7491 (ppc_ravenscar_powerpc_ops::fetch_registers)
7492 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
7493 (ppc_ravenscar_powerpc_ops): Redefine.
7494 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
7495 (ppc_ravenscar_e500_ops::fetch_registers)
7496 (ppc_ravenscar_e500_ops::store_registers): Now methods.
7497 (ppc_ravenscar_e500_ops): Redefine.
7498 * aarch64-ravenscar-thread.c
7499 (aarch64_ravenscar_generic_prepare_to_store): Remove.
7500 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
7501 (aarch64_ravenscar_fetch_registers)
7502 (aarch64_ravenscar_store_registers): Now methods.
7503 (aarch64_ravenscar_ops): Redefine.
7505 2019-02-15 Tom Tromey <tromey@adacore.com>
7507 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
7508 (ravenscar_thread_target::stopped_by_hw_breakpoint)
7509 (ravenscar_thread_target::stopped_by_watchpoint)
7510 (ravenscar_thread_target::stopped_data_address)
7511 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
7513 2019-02-15 Tom Tromey <tromey@adacore.com>
7515 * ravenscar-thread.c: Fix some typos.
7517 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7518 Tom Tromey <tromey@adacore.com>
7520 * ada-lang.c (ada_exception_sal): Change addr_string to a
7522 (create_ada_exception_catchpoint): Update.
7524 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7525 Tom Tromey <tromey@adacore.com>
7527 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
7528 (bp_location_ops): Remove.
7529 (base_breakpoint_allocate_location): Update.
7530 (free_bp_location): Update.
7531 * ada-lang.c (class ada_catchpoint_location)
7532 <ada_catchpoint_location>: Remove ops parameter.
7533 (ada_catchpoint_location_dtor): Remove.
7534 (ada_catchpoint_location_ops): Remove.
7535 (allocate_location_exception): Update.
7536 * breakpoint.h (struct bp_location_ops): Remove.
7537 (class bp_location) <bp_location>: Remove bp_location_ops
7539 <~bp_location>: Add destructor.
7542 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7543 Pedro Alves <palves@redhat.com>
7545 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
7548 2019-02-14 David Michael <fedora.dm0@gmail.com>
7549 Samuel Thibault <samuel.thibault@gnu.org>
7550 Thomas Schwinge <thomas@codesourcery.com>
7552 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
7553 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
7555 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7557 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
7558 (check_empty): Use "const char *".
7560 * gnu-nat.c (gnu_nat_target::detach): Instead of
7561 'detach_inferior (pid)' call
7562 'detach_inferior (find_inferior_pid (pid))'.
7564 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
7565 'nat/fork-inferior.o'.
7566 * gnu-nat.c: #include "nat/fork-inferior.h".
7568 * gnu-nat.c (gnu_nat_target::detach): Instead of
7569 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
7570 * gnu-nat.h: #include "inf-child.h".
7571 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
7572 'i386_gnu_nat_target::fetch_registers'.
7573 (gnu_store_registers): Rename/move to
7574 'i386_gnu_nat_target::store_registers'.
7576 * config/i386/nm-i386gnu.h: Don't "#include" any files.
7577 * gnu-nat.h (mach_thread_info): New function.
7578 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
7580 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
7582 2019-02-14 Frederic Konrad <konrad@adacore.com>
7584 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
7586 2019-02-14 Joel Brobecker <brobecker@adacore.com>
7588 * windows-nat.c (windows_add_thread): Add new parameter
7589 "main_thread_p" with default value set to false. Update
7590 function documentation as well as all callers.
7591 (windows_delete_thread): Likewise.
7592 (fake_create_process): Update call to windows_add_thread.
7593 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
7594 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
7595 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
7596 call to windows_delete_thread.
7598 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
7600 * MAINTAINERS: Add Andrew Burgess as global maintainer.
7602 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7604 * symfile.c (find_separate_debug_file): Use canonical path of
7605 sysroot with child_path instead of gdb_sysroot if it is valid.
7607 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7609 * symfile.c (find_separate_debug_file): Use child_path to
7610 determine if an object file is under a sysroot.
7612 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7615 unittests/child-path-selftests.c.
7616 * common/pathstuff.c (child_path): New function.
7617 * common/pathstuff.h (child_path): New prototype.
7618 * unittests/child-path-selftests.c: New file.
7620 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7622 * symfile.c (find_separate_debug_file): Look for separate debug
7623 files in debug directories under the sysroot.
7625 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7627 * symtab.h (struct minimal_symbol data_p): New const method.
7628 (struct minimal_symbol text_p): Likewise.
7629 * symtab.c (output_source_filename): Use file name style
7631 (print_symbol_info): Likewise.
7632 (print_msymbol_info): Use address style to print addresses.
7633 Use function name style to print executable text symbols.
7634 (expand_symtab_containing_pc): Use data_p.
7635 (find_pc_sect_compunit_symtab): Likewise.
7637 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7639 * breakpoint.c (describe_other_breakpoints): Use address style
7641 (say_where): Likewise.
7643 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7645 * ada-typeprint.c (print_func_type): Print function name
7646 style to print function name.
7647 * c-typeprint.c (c_print_type_1): Likewise.
7649 2019-02-11 Alan Hayward <alan.hayward@arm.com>
7651 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
7654 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7656 * c-exp.y (direct_abs_decl): Use emplace_back to record the
7659 2019-02-10 Joel Brobecker <brobecker@adacore.com>
7661 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
7662 TYPE_CODE_REF types.
7664 2019-02-08 Jim Wilson <jimw@sifive.com>
7666 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
7667 (riscv_linux_fregset): New.
7668 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
7670 2019-02-07 Tom Tromey <tom@tromey.com>
7672 * thread.c (thread_cancel_execution_command): Update.
7673 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
7675 (struct thread_fsm_ops): Remove.
7676 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
7677 (thread_fsm_should_stop, thread_fsm_return_value)
7678 (thread_fsm_set_finished, thread_fsm_finished_p)
7679 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
7681 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
7682 * infrun.c (clear_proceed_status_thread)
7683 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
7684 (print_stop_event): Update.
7685 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
7687 (step_command_fsm_ops): Remove.
7688 (new_step_command_fsm): Remove.
7690 (step_command_fsm::should_stop): Rename from
7691 step_command_fsm_should_stop.
7692 (step_command_fsm::clean_up): Rename from
7693 step_command_fsm_clean_up.
7694 (step_command_fsm::do_async_reply_reason): Rename from
7695 step_command_fsm_async_reply_reason.
7696 (struct until_next_fsm): Inherit from thread_fsm. Add
7698 (until_next_fsm_ops): Remove.
7699 (new_until_next_fsm): Remove.
7700 (until_next_fsm::should_stop): Rename from
7701 until_next_fsm_should_stop.
7702 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
7703 (until_next_fsm::do_async_reply_reason): Rename from
7704 until_next_fsm_async_reply_reason.
7705 (struct finish_command_fsm): Inherit from thread_fsm. Add
7706 constructor. Change type of breakpoint.
7707 (finish_command_fsm_ops): Remove.
7708 (new_finish_command_fsm): Remove.
7709 (finish_command_fsm::should_stop): Rename from
7710 finish_command_fsm_should_stop.
7711 (finish_command_fsm::clean_up): Rename from
7712 finish_command_fsm_clean_up.
7713 (finish_command_fsm::return_value): Rename from
7714 finish_command_fsm_return_value.
7715 (finish_command_fsm::do_async_reply_reason): Rename from
7716 finish_command_fsm_async_reply_reason.
7717 (finish_command): Update.
7718 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
7720 (call_thread_fsm_ops): Remove.
7721 (call_thread_fsm::call_thread_fsm): Rename from
7722 new_call_thread_fsm.
7723 (call_thread_fsm::should_stop): Rename from
7724 call_thread_fsm_should_stop.
7725 (call_thread_fsm::should_notify_stop): Rename from
7726 call_thread_fsm_should_notify_stop.
7727 (run_inferior_call, call_function_by_hand_dummy): Update.
7728 * cli/cli-interp.c (should_print_stop_to_console): Update.
7729 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
7730 Add constructor. Change type of location_breakpoint,
7732 (until_break_fsm_ops): Remove.
7733 (new_until_break_fsm): Remove.
7734 (until_break_fsm::should_stop): Rename from
7735 until_break_fsm_should_stop.
7736 (until_break_fsm::clean_up): Rename from
7737 until_break_fsm_clean_up.
7738 (until_break_fsm::do_async_reply_reason): Rename from
7739 until_break_fsm_async_reply_reason.
7740 (until_break_command): Update.
7741 * thread-fsm.c: Remove.
7742 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
7744 2019-02-07 Tom Tromey <tom@tromey.com>
7746 * yy-remap.h: Add include guard.
7747 * xtensa-tdep.h: Add include guard.
7748 * xcoffread.h: Rename include guard.
7749 * varobj-iter.h: Add include guard.
7750 * tui/tui.h: Rename include guard.
7751 * tui/tui-winsource.h: Rename include guard.
7752 * tui/tui-wingeneral.h: Rename include guard.
7753 * tui/tui-windata.h: Rename include guard.
7754 * tui/tui-win.h: Rename include guard.
7755 * tui/tui-stack.h: Rename include guard.
7756 * tui/tui-source.h: Rename include guard.
7757 * tui/tui-regs.h: Rename include guard.
7758 * tui/tui-out.h: Rename include guard.
7759 * tui/tui-layout.h: Rename include guard.
7760 * tui/tui-io.h: Rename include guard.
7761 * tui/tui-hooks.h: Rename include guard.
7762 * tui/tui-file.h: Rename include guard.
7763 * tui/tui-disasm.h: Rename include guard.
7764 * tui/tui-data.h: Rename include guard.
7765 * tui/tui-command.h: Rename include guard.
7766 * tic6x-tdep.h: Add include guard.
7767 * target/waitstatus.h: Rename include guard.
7768 * target/wait.h: Rename include guard.
7769 * target/target.h: Rename include guard.
7770 * target/resume.h: Rename include guard.
7771 * target-float.h: Rename include guard.
7772 * stabsread.h: Add include guard.
7773 * rs6000-tdep.h: Add include guard.
7774 * riscv-fbsd-tdep.h: Add include guard.
7775 * regformats/regdef.h: Rename include guard.
7776 * record.h: Rename include guard.
7777 * python/python.h: Rename include guard.
7778 * python/python-internal.h: Rename include guard.
7779 * python/py-stopevent.h: Rename include guard.
7780 * python/py-ref.h: Rename include guard.
7781 * python/py-record.h: Rename include guard.
7782 * python/py-record-full.h: Rename include guard.
7783 * python/py-record-btrace.h: Rename include guard.
7784 * python/py-instruction.h: Rename include guard.
7785 * python/py-events.h: Rename include guard.
7786 * python/py-event.h: Rename include guard.
7787 * procfs.h: Add include guard.
7788 * proc-utils.h: Add include guard.
7789 * p-lang.h: Add include guard.
7790 * or1k-tdep.h: Rename include guard.
7791 * observable.h: Rename include guard.
7792 * nto-tdep.h: Rename include guard.
7793 * nat/x86-linux.h: Rename include guard.
7794 * nat/x86-linux-dregs.h: Rename include guard.
7795 * nat/x86-gcc-cpuid.h: Add include guard.
7796 * nat/x86-dregs.h: Rename include guard.
7797 * nat/x86-cpuid.h: Rename include guard.
7798 * nat/ppc-linux.h: Rename include guard.
7799 * nat/mips-linux-watch.h: Rename include guard.
7800 * nat/linux-waitpid.h: Rename include guard.
7801 * nat/linux-ptrace.h: Rename include guard.
7802 * nat/linux-procfs.h: Rename include guard.
7803 * nat/linux-osdata.h: Rename include guard.
7804 * nat/linux-nat.h: Rename include guard.
7805 * nat/linux-namespaces.h: Rename include guard.
7806 * nat/linux-btrace.h: Rename include guard.
7807 * nat/glibc_thread_db.h: Rename include guard.
7808 * nat/gdb_thread_db.h: Rename include guard.
7809 * nat/gdb_ptrace.h: Rename include guard.
7810 * nat/fork-inferior.h: Rename include guard.
7811 * nat/amd64-linux-siginfo.h: Rename include guard.
7812 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
7813 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
7814 * nat/aarch64-linux.h: Rename include guard.
7815 * nat/aarch64-linux-hw-point.h: Rename include guard.
7816 * mn10300-tdep.h: Add include guard.
7817 * mips-linux-tdep.h: Add include guard.
7818 * mi/mi-parse.h: Rename include guard.
7819 * mi/mi-out.h: Rename include guard.
7820 * mi/mi-main.h: Rename include guard.
7821 * mi/mi-interp.h: Rename include guard.
7822 * mi/mi-getopt.h: Rename include guard.
7823 * mi/mi-console.h: Rename include guard.
7824 * mi/mi-common.h: Rename include guard.
7825 * mi/mi-cmds.h: Rename include guard.
7826 * mi/mi-cmd-break.h: Rename include guard.
7827 * m2-lang.h: Add include guard.
7828 * location.h: Rename include guard.
7829 * linux-record.h: Rename include guard.
7830 * linux-nat.h: Add include guard.
7831 * linux-fork.h: Add include guard.
7832 * i386-darwin-tdep.h: Rename include guard.
7833 * hppa-linux-offsets.h: Add include guard.
7834 * guile/guile.h: Rename include guard.
7835 * guile/guile-internal.h: Rename include guard.
7836 * gnu-nat.h: Rename include guard.
7837 * gdb-stabs.h: Rename include guard.
7838 * frv-tdep.h: Add include guard.
7839 * f-lang.h: Add include guard.
7840 * event-loop.h: Add include guard.
7841 * darwin-nat.h: Rename include guard.
7842 * cp-abi.h: Rename include guard.
7843 * config/sparc/nm-sol2.h: Rename include guard.
7844 * config/nm-nto.h: Rename include guard.
7845 * config/nm-linux.h: Add include guard.
7846 * config/i386/nm-i386gnu.h: Rename include guard.
7847 * config/djgpp/nl_types.h: Rename include guard.
7848 * config/djgpp/langinfo.h: Rename include guard.
7849 * compile/gcc-cp-plugin.h: Add include guard.
7850 * compile/gcc-c-plugin.h: Add include guard.
7851 * compile/compile.h: Rename include guard.
7852 * compile/compile-object-run.h: Rename include guard.
7853 * compile/compile-object-load.h: Rename include guard.
7854 * compile/compile-internal.h: Rename include guard.
7855 * compile/compile-cplus.h: Rename include guard.
7856 * compile/compile-c.h: Rename include guard.
7857 * common/xml-utils.h: Rename include guard.
7858 * common/x86-xstate.h: Rename include guard.
7859 * common/version.h: Rename include guard.
7860 * common/vec.h: Rename include guard.
7861 * common/tdesc.h: Rename include guard.
7862 * common/selftest.h: Rename include guard.
7863 * common/scoped_restore.h: Rename include guard.
7864 * common/scoped_mmap.h: Rename include guard.
7865 * common/scoped_fd.h: Rename include guard.
7866 * common/safe-iterator.h: Rename include guard.
7867 * common/run-time-clock.h: Rename include guard.
7868 * common/refcounted-object.h: Rename include guard.
7869 * common/queue.h: Rename include guard.
7870 * common/ptid.h: Rename include guard.
7871 * common/print-utils.h: Rename include guard.
7872 * common/preprocessor.h: Rename include guard.
7873 * common/pathstuff.h: Rename include guard.
7874 * common/observable.h: Rename include guard.
7875 * common/netstuff.h: Rename include guard.
7876 * common/job-control.h: Rename include guard.
7877 * common/host-defs.h: Rename include guard.
7878 * common/gdb_wait.h: Rename include guard.
7879 * common/gdb_vecs.h: Rename include guard.
7880 * common/gdb_unlinker.h: Rename include guard.
7881 * common/gdb_unique_ptr.h: Rename include guard.
7882 * common/gdb_tilde_expand.h: Rename include guard.
7883 * common/gdb_sys_time.h: Rename include guard.
7884 * common/gdb_string_view.h: Rename include guard.
7885 * common/gdb_splay_tree.h: Rename include guard.
7886 * common/gdb_setjmp.h: Rename include guard.
7887 * common/gdb_ref_ptr.h: Rename include guard.
7888 * common/gdb_optional.h: Rename include guard.
7889 * common/gdb_locale.h: Rename include guard.
7890 * common/gdb_assert.h: Rename include guard.
7891 * common/filtered-iterator.h: Rename include guard.
7892 * common/filestuff.h: Rename include guard.
7893 * common/fileio.h: Rename include guard.
7894 * common/environ.h: Rename include guard.
7895 * common/common-utils.h: Rename include guard.
7896 * common/common-types.h: Rename include guard.
7897 * common/common-regcache.h: Rename include guard.
7898 * common/common-inferior.h: Rename include guard.
7899 * common/common-gdbthread.h: Rename include guard.
7900 * common/common-exceptions.h: Rename include guard.
7901 * common/common-defs.h: Rename include guard.
7902 * common/common-debug.h: Rename include guard.
7903 * common/cleanups.h: Rename include guard.
7904 * common/buffer.h: Rename include guard.
7905 * common/btrace-common.h: Rename include guard.
7906 * common/break-common.h: Rename include guard.
7907 * cli/cli-utils.h: Rename include guard.
7908 * cli/cli-style.h: Rename include guard.
7909 * cli/cli-setshow.h: Rename include guard.
7910 * cli/cli-script.h: Rename include guard.
7911 * cli/cli-interp.h: Rename include guard.
7912 * cli/cli-decode.h: Rename include guard.
7913 * cli/cli-cmds.h: Rename include guard.
7914 * charset-list.h: Add include guard.
7915 * buildsym-legacy.h: Rename include guard.
7916 * bfin-tdep.h: Add include guard.
7917 * ax.h: Rename include guard.
7918 * arm-linux-tdep.h: Add include guard.
7919 * arm-fbsd-tdep.h: Add include guard.
7920 * arch/xtensa.h: Rename include guard.
7921 * arch/tic6x.h: Add include guard.
7922 * arch/i386.h: Add include guard.
7923 * arch/arm.h: Rename include guard.
7924 * arch/arm-linux.h: Rename include guard.
7925 * arch/arm-get-next-pcs.h: Rename include guard.
7926 * arch/amd64.h: Add include guard.
7927 * arch/aarch64-insn.h: Rename include guard.
7928 * arch-utils.h: Rename include guard.
7929 * annotate.h: Add include guard.
7930 * amd64-darwin-tdep.h: Rename include guard.
7931 * aarch64-linux-tdep.h: Add include guard.
7932 * aarch64-fbsd-tdep.h: Add include guard.
7933 * aarch32-linux-nat.h: Add include guard.
7935 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7937 * macrotab.c (macro_define_internal): New function that
7938 factorizes macro_define_object_internal and macro_define_function
7940 (macro_define_object_internal): Use macro_define_internal.
7941 (macro_define_function): Likewise.
7943 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7945 * macrocmd.c (extract_identifier): Return
7946 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
7949 2019-02-06 John Baldwin <jhb@FreeBSD.org>
7951 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
7953 2019-02-05 Tom Tromey <tom@tromey.com>
7955 * target.c (target_stack::unpush): Move assertion earlier.
7957 2019-01-30 Tom Tromey <tom@tromey.com>
7960 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
7961 (gdbpy_parse_and_eval): Likewise.
7962 * python/python-internal.h (gdbpy_allow_threads): New class.
7964 2019-01-28 John Baldwin <jhb@FreeBSD.org>
7966 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
7967 (aarch64_fbsd_fpregmap): Move earlier.
7968 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
7969 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7970 instead of individual calls to trad_frame_set_reg_addr.
7971 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
7973 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
7974 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7975 instead of individual calls to trad_frame_set_reg_addr.
7977 2019-01-28 Alan Hayward <alan.hayward@arm.com>
7979 * CONTRIBUTE: Replace contribution list with wiki link.
7981 2019-01-25 Tom Tromey <tom@tromey.com>
7983 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
7985 2019-01-25 Tom Tromey <tom@tromey.com>
7987 * xtensa-linux-nat.c: Fix common/ includes.
7988 * xml-support.h: Fix common/ includes.
7989 * xml-support.c: Fix common/ includes.
7990 * x86-linux-nat.c: Fix common/ includes.
7991 * windows-nat.c: Fix common/ includes.
7992 * varobj.h: Fix common/ includes.
7993 * varobj.c: Fix common/ includes.
7994 * value.c: Fix common/ includes.
7995 * valops.c: Fix common/ includes.
7996 * utils.c: Fix common/ includes.
7997 * unittests/xml-utils-selftests.c: Fix common/ includes.
7998 * unittests/utils-selftests.c: Fix common/ includes.
7999 * unittests/unpack-selftests.c: Fix common/ includes.
8000 * unittests/tracepoint-selftests.c: Fix common/ includes.
8001 * unittests/style-selftests.c: Fix common/ includes.
8002 * unittests/string_view-selftests.c: Fix common/ includes.
8003 * unittests/scoped_restore-selftests.c: Fix common/ includes.
8004 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
8005 * unittests/scoped_fd-selftests.c: Fix common/ includes.
8006 * unittests/rsp-low-selftests.c: Fix common/ includes.
8007 * unittests/parse-connection-spec-selftests.c: Fix common/
8009 * unittests/optional-selftests.c: Fix common/ includes.
8010 * unittests/offset-type-selftests.c: Fix common/ includes.
8011 * unittests/observable-selftests.c: Fix common/ includes.
8012 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
8013 * unittests/memrange-selftests.c: Fix common/ includes.
8014 * unittests/memory-map-selftests.c: Fix common/ includes.
8015 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
8016 * unittests/function-view-selftests.c: Fix common/ includes.
8017 * unittests/environ-selftests.c: Fix common/ includes.
8018 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
8019 * unittests/common-utils-selftests.c: Fix common/ includes.
8020 * unittests/cli-utils-selftests.c: Fix common/ includes.
8021 * unittests/array-view-selftests.c: Fix common/ includes.
8022 * ui-file.c: Fix common/ includes.
8023 * tui/tui-io.c: Fix common/ includes.
8024 * tracepoint.h: Fix common/ includes.
8025 * tracepoint.c: Fix common/ includes.
8026 * tracefile-tfile.c: Fix common/ includes.
8027 * top.h: Fix common/ includes.
8028 * top.c: Fix common/ includes.
8029 * thread.c: Fix common/ includes.
8030 * target/waitstatus.h: Fix common/ includes.
8031 * target/waitstatus.c: Fix common/ includes.
8032 * target.h: Fix common/ includes.
8033 * target.c: Fix common/ includes.
8034 * target-memory.c: Fix common/ includes.
8035 * target-descriptions.c: Fix common/ includes.
8036 * symtab.h: Fix common/ includes.
8037 * symfile.c: Fix common/ includes.
8038 * stap-probe.c: Fix common/ includes.
8039 * spu-linux-nat.c: Fix common/ includes.
8040 * sparc-nat.c: Fix common/ includes.
8041 * source.c: Fix common/ includes.
8042 * solib.c: Fix common/ includes.
8043 * solib-target.c: Fix common/ includes.
8044 * ser-unix.c: Fix common/ includes.
8045 * ser-tcp.c: Fix common/ includes.
8046 * ser-pipe.c: Fix common/ includes.
8047 * ser-base.c: Fix common/ includes.
8048 * selftest-arch.c: Fix common/ includes.
8049 * s12z-tdep.c: Fix common/ includes.
8050 * rust-exp.y: Fix common/ includes.
8051 * rs6000-aix-tdep.c: Fix common/ includes.
8052 * riscv-tdep.c: Fix common/ includes.
8053 * remote.c: Fix common/ includes.
8054 * remote-notif.h: Fix common/ includes.
8055 * remote-fileio.h: Fix common/ includes.
8056 * remote-fileio.c: Fix common/ includes.
8057 * regcache.h: Fix common/ includes.
8058 * regcache.c: Fix common/ includes.
8059 * record-btrace.c: Fix common/ includes.
8060 * python/python.c: Fix common/ includes.
8061 * python/py-type.c: Fix common/ includes.
8062 * python/py-inferior.c: Fix common/ includes.
8063 * progspace.h: Fix common/ includes.
8064 * producer.c: Fix common/ includes.
8065 * procfs.c: Fix common/ includes.
8066 * proc-api.c: Fix common/ includes.
8067 * printcmd.c: Fix common/ includes.
8068 * ppc-linux-nat.c: Fix common/ includes.
8069 * parser-defs.h: Fix common/ includes.
8070 * osdata.c: Fix common/ includes.
8071 * obsd-nat.c: Fix common/ includes.
8072 * nat/x86-linux.c: Fix common/ includes.
8073 * nat/x86-linux-dregs.c: Fix common/ includes.
8074 * nat/x86-dregs.h: Fix common/ includes.
8075 * nat/x86-dregs.c: Fix common/ includes.
8076 * nat/ppc-linux.c: Fix common/ includes.
8077 * nat/mips-linux-watch.h: Fix common/ includes.
8078 * nat/mips-linux-watch.c: Fix common/ includes.
8079 * nat/linux-waitpid.c: Fix common/ includes.
8080 * nat/linux-ptrace.h: Fix common/ includes.
8081 * nat/linux-ptrace.c: Fix common/ includes.
8082 * nat/linux-procfs.c: Fix common/ includes.
8083 * nat/linux-personality.c: Fix common/ includes.
8084 * nat/linux-osdata.c: Fix common/ includes.
8085 * nat/linux-namespaces.c: Fix common/ includes.
8086 * nat/linux-btrace.h: Fix common/ includes.
8087 * nat/linux-btrace.c: Fix common/ includes.
8088 * nat/fork-inferior.c: Fix common/ includes.
8089 * nat/amd64-linux-siginfo.c: Fix common/ includes.
8090 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
8091 * nat/aarch64-linux.c: Fix common/ includes.
8092 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
8093 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
8094 * namespace.h: Fix common/ includes.
8095 * mips-linux-tdep.c: Fix common/ includes.
8096 * minsyms.c: Fix common/ includes.
8097 * mi/mi-parse.h: Fix common/ includes.
8098 * mi/mi-main.c: Fix common/ includes.
8099 * mi/mi-cmd-env.c: Fix common/ includes.
8100 * memrange.h: Fix common/ includes.
8101 * memattr.c: Fix common/ includes.
8102 * maint.h: Fix common/ includes.
8103 * maint.c: Fix common/ includes.
8104 * main.c: Fix common/ includes.
8105 * machoread.c: Fix common/ includes.
8106 * location.c: Fix common/ includes.
8107 * linux-thread-db.c: Fix common/ includes.
8108 * linux-nat.c: Fix common/ includes.
8109 * linux-fork.c: Fix common/ includes.
8110 * inline-frame.c: Fix common/ includes.
8111 * infrun.c: Fix common/ includes.
8112 * inflow.c: Fix common/ includes.
8113 * inferior.h: Fix common/ includes.
8114 * inferior.c: Fix common/ includes.
8115 * infcmd.c: Fix common/ includes.
8116 * inf-ptrace.c: Fix common/ includes.
8117 * inf-child.c: Fix common/ includes.
8118 * ia64-linux-nat.c: Fix common/ includes.
8119 * i387-tdep.c: Fix common/ includes.
8120 * i386-tdep.c: Fix common/ includes.
8121 * i386-linux-tdep.c: Fix common/ includes.
8122 * i386-linux-nat.c: Fix common/ includes.
8123 * i386-go32-tdep.c: Fix common/ includes.
8124 * i386-fbsd-tdep.c: Fix common/ includes.
8125 * i386-fbsd-nat.c: Fix common/ includes.
8126 * guile/scm-type.c: Fix common/ includes.
8127 * guile/guile.c: Fix common/ includes.
8128 * go32-nat.c: Fix common/ includes.
8129 * gnu-nat.c: Fix common/ includes.
8130 * gdbthread.h: Fix common/ includes.
8131 * gdbarch-selftests.c: Fix common/ includes.
8132 * gdb_usleep.c: Fix common/ includes.
8133 * gdb_select.h: Fix common/ includes.
8134 * gdb_bfd.c: Fix common/ includes.
8135 * gcore.c: Fix common/ includes.
8136 * fork-child.c: Fix common/ includes.
8137 * findvar.c: Fix common/ includes.
8138 * fbsd-nat.c: Fix common/ includes.
8139 * event-top.c: Fix common/ includes.
8140 * event-loop.c: Fix common/ includes.
8141 * dwarf2read.c: Fix common/ includes.
8142 * dwarf2loc.c: Fix common/ includes.
8143 * dwarf2-frame.c: Fix common/ includes.
8144 * dwarf-index-cache.c: Fix common/ includes.
8145 * dtrace-probe.c: Fix common/ includes.
8146 * disasm-selftests.c: Fix common/ includes.
8147 * defs.h: Fix common/ includes.
8148 * csky-tdep.c: Fix common/ includes.
8149 * cp-valprint.c: Fix common/ includes.
8150 * cp-support.h: Fix common/ includes.
8151 * cp-support.c: Fix common/ includes.
8152 * corelow.c: Fix common/ includes.
8153 * completer.h: Fix common/ includes.
8154 * completer.c: Fix common/ includes.
8155 * compile/compile.c: Fix common/ includes.
8156 * compile/compile-loc2c.c: Fix common/ includes.
8157 * compile/compile-cplus-types.c: Fix common/ includes.
8158 * compile/compile-cplus-symbols.c: Fix common/ includes.
8159 * command.h: Fix common/ includes.
8160 * cli/cli-dump.c: Fix common/ includes.
8161 * cli/cli-cmds.c: Fix common/ includes.
8162 * charset.c: Fix common/ includes.
8163 * build-id.c: Fix common/ includes.
8164 * btrace.h: Fix common/ includes.
8165 * btrace.c: Fix common/ includes.
8166 * breakpoint.h: Fix common/ includes.
8167 * breakpoint.c: Fix common/ includes.
8169 (enum agent_op): Fix common/ includes.
8170 * ax-general.c (struct aop_map): Fix common/ includes.
8171 * ax-gdb.c: Fix common/ includes.
8172 * auxv.c: Fix common/ includes.
8173 * auto-load.c: Fix common/ includes.
8174 * arm-tdep.c: Fix common/ includes.
8175 * arch/riscv.c: Fix common/ includes.
8176 * arch/ppc-linux-common.c: Fix common/ includes.
8177 * arch/i386.c: Fix common/ includes.
8178 * arch/arm.c: Fix common/ includes.
8179 * arch/arm-linux.c: Fix common/ includes.
8180 * arch/arm-get-next-pcs.c: Fix common/ includes.
8181 * arch/amd64.c: Fix common/ includes.
8182 * arch/aarch64.c: Fix common/ includes.
8183 * arch/aarch64-insn.c: Fix common/ includes.
8184 * arch-utils.c: Fix common/ includes.
8185 * amd64-windows-tdep.c: Fix common/ includes.
8186 * amd64-tdep.c: Fix common/ includes.
8187 * amd64-sol2-tdep.c: Fix common/ includes.
8188 * amd64-obsd-tdep.c: Fix common/ includes.
8189 * amd64-nbsd-tdep.c: Fix common/ includes.
8190 * amd64-linux-tdep.c: Fix common/ includes.
8191 * amd64-linux-nat.c: Fix common/ includes.
8192 * amd64-fbsd-tdep.c: Fix common/ includes.
8193 * amd64-fbsd-nat.c: Fix common/ includes.
8194 * amd64-dicos-tdep.c: Fix common/ includes.
8195 * amd64-darwin-tdep.c: Fix common/ includes.
8196 * agent.c: Fix common/ includes.
8197 * ada-lang.h: Fix common/ includes.
8198 * ada-lang.c: Fix common/ includes.
8199 * aarch64-tdep.c: Fix common/ includes.
8201 2019-01-25 Tom Tromey <tom@tromey.com>
8203 * common/create-version.sh: Use common/version.h.
8205 2019-01-24 Pedro Alves <palves@redhat.com>
8207 * infrun.c (signal_stop, signal_print, signal_program)
8208 (signal_catch, signal_pass): Now arrays instead of pointers.
8209 (update_signals_program_target, do_target_resume)
8210 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
8211 * linux-nat.c (linux_nat_target::pass_signals)
8212 (linux_nat_target::create_inferior, linux_nat_target::attach):
8214 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
8215 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
8216 * procfs.c (procfs_target::pass_signals): Adjust.
8217 * record-full.c (record_full_target::resume): Adjust.
8218 * remote.c (remote_target::pass_signals)
8219 (remote_target::program_signals): Adjust.
8220 * target-debug.h (target_debug_print_signals): Now takes a
8221 gdb::array_view as parameter. Adjust.
8222 * target.h (target_ops) <pass_signals, program_signals>: Replace
8223 pointer and length parameters with gdb::array_view.
8224 (target_pass_signals, target_program_signals): Likewise.
8225 * target-delegates.c: Regenerate.
8227 2019-01-24 Pedro Alves <palves@redhat.com>
8229 * common/forward-scope-exit.h
8230 (forward_scope_exit::forward_scope_exit): Pass arguments to
8231 m_bind_function directly, instead of creating a std::bind and
8234 2019-01-24 Alan Hayward <alan.hayward@arm.com>
8236 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8238 (pass_in_v_vfp_candidate): Likewise.
8240 2019-01-23 Tom Tromey <tom@tromey.com>
8241 Pedro Alves <palves@redhat.com>
8243 * regcache.c (class regcache_invalidator): Remove.
8244 (regcache::raw_write): Use make_scope_exit.
8246 2019-01-23 Tom Tromey <tom@tromey.com>
8248 * ui-out.h (class ui_out_emit_type): Update comment.
8250 2019-01-23 Tom Tromey <tom@tromey.com>
8252 * infrun.c (fetch_inferior_event): Update comment.
8254 2019-01-23 Tom Tromey <tom@tromey.com>
8255 Pedro Alves <palves@redhat.com>
8257 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
8259 (fetch_inferior_event): Use SCOPE_EXIT.
8262 2019-01-23 Tom Tromey <tom@tromey.com>
8263 Pedro Alves <palves@redhat.com>
8265 * infrun.c (disable_thread_events): Delete.
8266 (stop_all_threads): Use SCOPE_EXIT.
8268 2019-01-23 Tom Tromey <tom@tromey.com>
8269 Pedro Alves <palves@redhat.com>
8271 * symfile.c: Include forward-scope-exit.h.
8272 (clear_symtab_users_cleanup): Replace forward declaration with
8273 a FORWARD_SCOPE_EXIT.
8274 (syms_from_objfile_1): Use the forward_scope_exit and
8275 gdb::optional instead of cleanup_function.
8276 (reread_symbols): Use the forward_scope_exit instead of
8278 (clear_symtab_users_cleanup): Remove function.
8280 2019-01-23 Tom Tromey <tom@tromey.com>
8281 Pedro Alves <palves@redhat.com>
8283 * linux-nat.c: Include scope-exit.h.
8284 (cleanup_target_stop): Remove.
8285 (linux_nat_target::static_tracepoint_markers_by_strid): Use
8288 2019-01-23 Tom Tromey <tom@tromey.com>
8289 Pedro Alves <palves@redhat.com>
8291 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
8292 (call_function_by_hand_dummy): Use SCOPE_EXIT.
8294 2019-01-23 Tom Tromey <tom@tromey.com>
8295 Andrew Burgess <andrew.burgess@embecosm.com>
8296 Pedro Alves <palves@redhat.com>
8298 * infrun.c (fetch_inferior_event): Use scope_exit.
8299 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
8300 * top.c (execute_command): Use scope_exit.
8301 * breakpoint.c (bpstat_do_actions): Use scope_exit.
8302 * utils.c (do_bpstat_clear_actions_cleanup)
8303 (make_bpstat_clear_actions_cleanup): Remove.
8305 2019-01-23 Tom Tromey <tom@tromey.com>
8306 Pedro Alves <palves@redhat.com>
8308 * infrun.c: Include "common/scope-exit.h"
8309 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
8310 (wait_for_inferior): Use SCOPE_EXIT.
8311 (fetch_inferior_event): Use scope_exit.
8313 2019-01-23 Tom Tromey <tom@tromey.com>
8314 Pedro Alves <palves@redhat.com>
8316 * breakpoint.c (create_breakpoint): Remove cleanup.
8318 2019-01-23 Tom Tromey <tom@tromey.com>
8319 Andrew Burgess <andrew.burgess@embecosm.com>
8320 Pedro Alves <palves@redhat.com>
8322 2019-01-23 Pedro Alves <palves@redhat.com>
8324 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
8326 2019-01-23 Pedro Alves <palves@redhat.com>
8327 Andrew Burgess <andrew.burgess@embecosm.com>
8329 * gdbthread.h: Include "common/forward-scope-exit.h".
8330 (scoped_finish_thread_state): Redefine custom class in terms of
8333 2019-01-23 Pedro Alves <palves@redhat.com>
8334 Andrew Burgess <andrew.burgess@embecosm.com>
8336 * common/forward-scope-exit.h: New file.
8338 2019-01-23 Pedro Alves <palves@redhat.com>
8339 Andrew Burgess <andrew.burgess@embecosm.com>
8340 Tom Tromey <tom@tromey.com>
8342 * common/scope-exit.h: New file.
8344 2019-01-23 Pedro Alves <palves@redhat.com>
8346 * common/preprocessor.h (ESC): Rename to ...
8347 (ESC_PARENS): ... this.
8348 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
8349 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
8351 2019-01-23 Tom Tromey <tom@tromey.com>
8353 * language.h (class scoped_switch_to_sym_language_if_auto):
8354 Initialize m_lang in both cases.
8356 2019-01-23 Alan Hayward <alan.hayward@arm.com>
8358 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
8361 2019-01-22 Tom Tromey <tom@tromey.com>
8363 * corelow.c: Do not include sys/file.h.
8365 2019-01-22 Tom Tromey <tom@tromey.com>
8367 * tui/tui-wingeneral.h: Include gdb_curses.h.
8369 2019-01-22 Tom Tromey <tom@tromey.com>
8371 * source-cache.h (class source_cache) <get_source_lines,
8372 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
8374 2019-01-22 Tom Tromey <tom@tromey.com>
8376 * remote-fileio.h (struct remote_target): Declare.
8378 2019-01-22 Tom Tromey <tom@tromey.com>
8380 * python/py-arch.c: Do not include py-ref.h.
8381 * python/py-bpevent.c: Do not include py-ref.h.
8382 * python/py-cmd.c: Do not include py-ref.h.
8383 * python/py-continueevent.c: Do not include py-ref.h.
8384 * python/py-event.h: Do not include py-ref.h.
8385 * python/py-evtregistry.c: Do not include py-ref.h.
8386 * python/py-finishbreakpoint.c: Do not include py-ref.h.
8387 * python/py-frame.c: Do not include py-ref.h.
8388 * python/py-framefilter.c: Do not include py-ref.h.
8389 * python/py-function.c: Do not include py-ref.h.
8390 * python/py-infevents.c: Do not include py-ref.h.
8391 * python/py-linetable.c: Do not include py-ref.h.
8392 * python/py-objfile.c: Do not include py-ref.h.
8393 * python/py-param.c: Do not include py-ref.h.
8394 * python/py-prettyprint.c: Do not include py-ref.h.
8395 * python/py-progspace.c: Do not include py-ref.h.
8396 * python/py-symbol.c: Do not include py-ref.h.
8397 * python/py-symtab.c: Do not include py-ref.h.
8398 * python/py-type.c: Do not include py-ref.h.
8399 * python/py-unwind.c: Do not include py-ref.h.
8400 * python/py-utils.c: Do not include py-ref.h.
8401 * python/py-value.c: Do not include py-ref.h.
8402 * python/py-varobj.c: Do not include py-ref.h.
8403 * python/py-xmethods.c: Do not include py-ref.h.
8404 * python/python.c: Do not include py-ref.h.
8405 * varobj.c: Do not include py-ref.h.
8407 2019-01-22 Tom Tromey <tom@tromey.com>
8409 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
8412 2019-01-22 Tom Tromey <tom@tromey.com>
8414 * compile/compile-cplus-types.c: Remove a comment by #include.
8416 2019-01-22 Tom Tromey <tom@tromey.com>
8418 * compile/gcc-c-plugin.h: Include compile-internal.h.
8420 2019-01-22 Tom Tromey <tom@tromey.com>
8422 * stabsread.c (EXTERN): Do not define.
8423 (symnum, next_symbol_text_func, processing_gcc_compilation)
8424 (within_function, global_sym_chain, global_stabs)
8425 (previous_stab_code, this_object_header_files)
8426 (n_this_object_header_files)
8427 (n_allocated_this_object_header_files): Define.
8428 * stabsread.h (EXTERN): Never define. Use "extern".
8430 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8432 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
8435 2019-01-21 Tom Tromey <tom@tromey.com>
8437 * ui-out.c: Fix includes.
8438 * tui/tui-source.c: Fix includes.
8439 * target.c: Fix includes.
8440 * remote.c: Fix includes.
8441 * regcache.c: Fix includes.
8442 * python/py-block.c: Fix includes.
8443 * printcmd.c: Fix includes.
8444 * or1k-tdep.c: Fix includes.
8445 * mi/mi-main.c: Fix includes.
8446 * m32r-tdep.c: Fix includes.
8447 * csky-tdep.c: Fix includes.
8448 * compile/compile-cplus-types.c: Fix includes.
8449 * cli/cli-interp.c: Fix includes.
8451 2019-01-21 Alan Hayward <alan.hayward@arm.com>
8453 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8456 2019-01-16 Tom Tromey <tom@tromey.com>
8458 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
8460 (struct objfile) <msymbols_range>: Move from top level.
8461 <msymbols>: New method.
8462 (class objfile_msymbols): Remove.
8463 * symtab.c (default_collect_symbol_completion_matches_break_on):
8465 * symmisc.c (dump_msymbols): Update.
8466 * stabsread.c (scan_file_globals): Update.
8467 * objc-lang.c (info_selectors_command, info_classes_command)
8468 (find_methods): Update.
8469 * minsyms.c (find_solib_trampoline_target): Update.
8470 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
8471 * coffread.c (coff_symfile_read): Update.
8472 * ada-lang.c (ada_lookup_simple_minsym)
8473 (ada_collect_symbol_completion_matches): Update.
8475 2019-01-16 Tom Tromey <tom@tromey.com>
8477 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
8478 type. Remove no-argument constructor.
8479 <iterator::operator++>: Simplify.
8481 <end>: Use minimal_symbol_count.
8483 2019-01-16 Tom Tromey <tom@tromey.com>
8485 * objfiles.h (struct objfile) <psymtabs>: New method.
8486 (class objfile_psymtabs): Remove.
8487 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
8489 <range>: New method.
8490 (require_partial_symbols): Change return type.
8491 * psymtab.c (require_partial_symbols)
8492 (psym_expand_symtabs_matching): Update.
8493 * mdebugread.c (parse_partial_symbols): Update.
8494 * dbxread.c (dbx_end_psymtab): Update.
8496 2019-01-15 Tom Tromey <tom@tromey.com>
8498 * symtab.c (lookup_objfile_from_block)
8499 (lookup_symbol_in_objfile_symtabs)
8500 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
8501 (find_line_symtab, info_sources_command)
8502 (default_collect_symbol_completion_matches_break_on)
8503 (make_source_files_completion_list): Update.
8504 * symmisc.c (print_objfile_statistics, dump_objfile)
8505 (maintenance_print_symbols, maintenance_info_symtabs)
8506 (maintenance_check_symtabs, maintenance_info_line_tables):
8508 * source.c (select_source_symtab)
8509 (forget_cached_source_info_for_objfile): Update.
8510 * objfiles.h (class objfile_compunits): Remove.
8511 (struct objfile) <compunits_range>: New typedef.
8512 (compunits): New method.
8513 * objfiles.c (objfile_relocate1): Update.
8514 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8515 * maint.c (count_symtabs_and_blocks): Update.
8516 * linespec.c (iterate_over_all_matching_symtabs): Update.
8517 * cp-support.c (add_symbol_overload_list_qualified): Update.
8518 * coffread.c (coff_symtab_read): Update.
8519 * ada-lang.c (add_nonlocal_symbols)
8520 (ada_collect_symbol_completion_matches)
8521 (ada_add_global_exceptions): Update.
8523 2019-01-15 Tom Tromey <tom@tromey.com>
8525 * progspace.h (program_space) <objfiles_safe_range>: New
8527 <objfiles_safe>: New method.
8528 * objfiles.h (class all_objfiles_safe): Remove.
8529 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
8530 * jit.c (jit_inferior_exit_hook): Update.
8532 2019-01-17 Tom Tromey <tom@tromey.com>
8534 * progspace.h (program_space) <objfiles_range>: New typedef.
8535 <objfiles>: New method.
8536 <objfiles_head>: Rename from objfiles.
8537 (object_files): Update.
8538 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
8539 * guile/scm-pretty-print.c
8540 (ppscm_find_pretty_printer_from_objfiles): Update.
8541 * guile/scm-objfile.c (gdbscm_objfiles): Update.
8542 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
8544 * python/py-progspace.c (pspy_get_objfiles): Update.
8545 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8547 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8548 (objfpy_lookup_objfile_by_build_id): Update.
8549 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8550 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8552 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8553 (expand_symtab_containing_pc, lookup_objfile_from_block)
8554 (lookup_static_symbol, basic_lookup_transparent_type)
8555 (find_pc_sect_compunit_symtab, find_symbol_at_address)
8556 (find_line_symtab, info_sources_command)
8557 (default_collect_symbol_completion_matches_break_on)
8558 (make_source_files_completion_list, find_main_name): Update.
8559 * symmisc.c (print_symbol_bcache_statistics)
8560 (print_objfile_statistics, maintenance_print_symbols)
8561 (maintenance_print_msymbols, maintenance_print_objfiles)
8562 (maintenance_info_symtabs, maintenance_check_symtabs)
8563 (maintenance_expand_symtabs, maintenance_info_line_tables):
8565 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
8566 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
8567 (map_overlay_command, unmap_overlay_command)
8568 (simple_overlay_update, expand_symtabs_matching)
8569 (map_symbol_filenames): Update.
8570 * symfile-debug.c (set_debug_symfile): Update.
8571 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
8573 * source.c (select_source_symtab, forget_cached_source_info):
8575 * solib.c (solib_read_symbols): Update.
8576 * solib-spu.c (append_ocl_sos): Update.
8577 * psymtab.c (maintenance_print_psymbols)
8578 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
8579 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
8580 * printcmd.c (info_symbol_command): Update.
8581 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
8583 * objfiles.h (class all_objfiles): Remove.
8584 * objfiles.c (have_partial_symbols, have_full_symbols)
8585 (have_minimal_symbols, qsort_cmp, update_section_map)
8586 (shared_objfile_contains_address_p)
8587 (default_iterate_over_objfiles_in_search_order): Update.
8588 * objc-lang.c (info_selectors_command, info_classes_command)
8589 (find_methods): Update.
8590 * minsyms.c (find_solib_trampoline_target): Update.
8591 * maint.c (maintenance_info_sections)
8592 (maintenance_translate_address, count_symtabs_and_blocks):
8594 * main.c (captured_main_1): Update.
8595 * linux-thread-db.c (try_thread_db_load_from_pdir)
8596 (has_libpthread): Update.
8597 * linespec.c (iterate_over_all_matching_symtabs)
8598 (search_minsyms_for_name): Update.
8599 * jit.c (jit_find_objf_with_entry_addr): Update.
8600 * hppa-tdep.c (find_unwind_entry)
8601 (hppa_lookup_stub_minimal_symbol): Update.
8602 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
8604 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8605 (elf_gnu_ifunc_resolve_by_got): Update.
8606 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
8607 * dwarf-index-write.c (save_gdb_index_command): Update.
8608 * cp-support.c (add_symbol_overload_list_qualified): Update.
8609 * breakpoint.c (create_overlay_event_breakpoint)
8610 (create_longjmp_master_breakpoint)
8611 (create_std_terminate_master_breakpoint)
8612 (create_exception_master_breakpoint): Update.
8613 * blockframe.c (find_pc_partial_function): Update.
8614 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
8615 (ada_collect_symbol_completion_matches)
8616 (ada_add_global_exceptions): Update.
8618 2019-01-17 Tom Tromey <tom@tromey.com>
8620 * solib-target.c (lm_info_target_p): Remove typedef. Don't
8622 (solib_target_parse_libraries): Change return type.
8623 (library_list_start_segment, library_list_start_section)
8624 (library_list_end_library, library_list_start_library); Update.
8625 (solib_target_free_library_list): Remove.
8626 (solib_target_parse_libraries): Remove cleanup. Change return
8628 (solib_target_current_sos): Update.
8630 2019-01-17 Tom Tromey <tromey@bapiya>
8632 * valprint.c: Replace "the the" with "the".
8633 * symtab.c: Replace "the the" with "the".
8634 * solib.c: Replace "the the" with "the".
8635 * solib-dsbt.c: Replace "the the" with "the".
8636 * linespec.c: Replace "the the" with "the".
8637 * dwarf2loc.h: Replace "the the" with "the".
8638 * amd64-windows-tdep.c: Replace "the the" with "the".
8639 * aarch64-tdep.c: Replace "the the" with "the".
8641 2019-01-16 Keith Seitz <keiths@redhat.com>
8644 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
8645 <builder>: Rename to ..
8646 <m_builder>: ... this and make private.
8647 (dwarf2_cu::get_builder): New method. Change all users of
8648 `builder' to use this method.
8649 (dwarf2_start_symtab): Move to ...
8650 (dwarf2_cu::start_symtab): ... here. Update all callers
8651 (setup_type_unit_groups): Move to ...
8652 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
8654 (dwarf2_cu::reset_builder): New method.
8655 (process_full_compunit, process_full_type_unit): Use
8656 dwarf2_cu::reset_builder.
8657 (follow_die_offset): Record the ancestor CU if it is different
8658 from the followed DIE's CU.
8659 (follow_die_sig_1): Likewise.
8661 2019-01-15 Tom Tromey <tom@tromey.com>
8663 * remote.c (class remote_state) <buf>: Now a char_vector.
8665 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
8667 (remote_target::getpkt_or_notif_sane_1)
8668 (remote_target::getpkt_sane)
8669 (remote_target::getpkt_or_notif_sane): Likewise.
8670 (class remote_target) <putpkt>: New overload.
8671 (remote_target::read_frame): Change type of "buf_p". Remove
8673 (packet_ok): New overload.
8674 (packet_check_result): New overload.
8677 2019-01-14 Tom Tromey <tom@tromey.com>
8679 * remote-notif.c (handle_notification, remote_notif_ack)
8680 (remote_notif_parse): Make "buf" const.
8681 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
8683 (remote_notif_parse, remote_notif_ack, handle_notification):
8685 * remote.c (remote_notif_stop_parse): Make "buf" const.
8686 (remote_target::remote_parse_stop_reply): Make "buf" const.
8687 (remote_notif_stop_ack): Make "buf" const.
8689 2019-01-14 Tom Tromey <tom@tromey.com>
8691 * remote.c (remote_console_output): Make parameter const.
8693 2019-01-14 Tom Tromey <tom@tromey.com>
8695 * target-debug.h (target_debug_print_signals): Constify.
8696 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
8697 * procfs.c (procfs_target::pass_signals): Update.
8698 * linux-nat.c (linux_nat_target::pass_signals): Update.
8699 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
8700 * target-delegates.c: Rebuild.
8701 * remote.c (remote_target::program_signals): Update.
8702 (remote_target::pass_signals): Update.
8703 * target.c (target_pass_signals): Constify argument.
8704 (target_program_signals): Likewise.
8705 * target.h (struct target_ops) <pass_signals, program_signals>:
8707 (target_pass_signals, target_program_signals): Constify argument.
8709 2019-01-14 Tom Tromey <tom@tromey.com>
8712 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
8714 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8716 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
8718 * rs6000-tdep.c: Include reggroups.h.
8719 (IS_V_ALIAS_PSEUDOREG): Define.
8720 (rs6000_register_name): Return names for the "vX" aliases.
8721 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
8722 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
8723 aliases. Call default_register_reggroup_p for all other
8725 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
8727 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
8728 Handle "vX" aliases.
8729 (v_alias_pseudo_register_collect): New function.
8730 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
8731 (rs6000_gdbarch_init): Initialize "vX" aliases as
8732 pseudo-registers. Restore registration of
8733 rs6000_pseudo_register_reggroup_p with
8734 set_tdesc_pseudo_register_reggroup_p.
8736 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
8738 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
8739 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
8740 set_gdbarch_num_pseudo_regs.
8742 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8744 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
8745 Remove arg prefixname, add do_set and do_show.
8746 Add member functions set_list and show_list.
8747 * cli/cli-style.c (class cli_style_option): Update accordingly.
8748 (style_set_list): Move to file scope.
8749 (style_show_list): Likewise.
8750 (set_style): Call help_list.
8751 (show_style): Call cmd_show_list.
8752 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
8753 Update to use the new macro.
8755 2019-10-12 Joel Brobecker <brobecker@adacore.com>
8757 * ada-lang.c (_initialize_ada_language): Expand the help text
8758 for the "catch exception" command.
8760 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8762 * symtab.c (matching_obj_sections): Initialize obj,
8763 declare it closer to its usage.
8765 2019-01-10 Tom Tromey <tom@tromey.com>
8767 * thread-iter.h (inf_threads_iterator): Use next_iterator.
8768 (basic_inf_threads_range): Remove.
8769 (inf_threads_range, inf_non_exited_threads_range)
8770 (safe_inf_threads_range): Use next_adapter.
8772 2019-01-10 Keith Seitz <keiths@redhat.com>
8776 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
8777 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
8779 2019-01-10 Keith Seitz <keiths@redhat.com>
8783 * dictionary.c (pending_to_vector): Remove.
8784 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8785 Remove _1 suffix, replacing functions of the same name. Update
8787 (dict_create_hashed, dict_create_hashed_expandable)
8788 (dict_create_linear, dict_create_linear_expandable, dict_free)
8789 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
8790 Make functions static.
8792 2019-01-10 Keith Seitz <keiths@redhat.com>
8796 * dictionary.h (struct dictionary): Replace declaration with
8798 (dict_create_hashed, dict_create_hashed_expandable)
8799 (dict_create_linear, dict_create_linear_expandable)
8800 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
8801 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
8802 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
8803 taking multidictionary argument.
8804 [ALL_DICT_SYMBOLS]: Update for multidictionary.
8805 * block.h (struct block) <dict>: Change to multidictionary
8806 and rename `multidict'.
8807 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
8808 symmisc.c: Update all dictionary references to multidictionary.
8810 2019-01-10 Keith Seitz <keiths@redhat.com>
8814 * dictionary.c: Include unordered_map.
8815 (pending_to_vector): New function.
8816 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8817 Rewrite the non-"_1" functions to take vector instead
8819 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
8820 "new" _1 versions of the same name.
8821 (multidictionary): Define.
8822 (std::hash<enum language): New definition.
8823 (collate_pending_symbols_by_language, mdict_create_hashed)
8824 (mdict_create_hashed_expandable, mdict_create_linear)
8825 (mdict_create_linear_expandable, mdict_free)
8826 (find_language_dictionary, create_new_language_dictionary)
8827 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
8828 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
8829 (mdict_size, mdict_empty): New functions.
8830 * dictionary.h (mdict_iterator): Define.
8832 2019-01-10 Pedro Alves <palves@redhat.com>
8834 * breakpoint.c (read_uploaded_action)
8835 (create_tracepoint_from_upload): Adjust to use
8836 gdb::unique_xmalloc_ptr.
8837 * ctf.c (ctf_write_uploaded_tp):
8838 (SET_ARRAY_FIELD): Use emplace_back.
8839 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
8840 * tracefile-tfile.c (tfile_write_uploaded_tp):
8841 * tracepoint.c (parse_tracepoint_definition): Adjust to use
8842 gdb::unique_xmalloc_ptr.
8843 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
8844 at_string, cond_string, cmd_strings>: Replace char pointers
8845 with gdb::unique_xmalloc_ptr.
8847 2019-01-10 Pedro Alves <palves@redhat.com>
8849 * solib-target.c (library_list_start_library): Don't xstrdup name.
8851 2019-01-10 Pedro Alves <palves@redhat.com>
8853 * mdebugread.c (parse_partial_symbols): Use
8854 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
8856 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8858 * linux-fork.c (scoped_switch_fork_info)
8859 <~scoped_switch_fork_info>: Fix incorrect variable name.
8861 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8863 * linux-fork.c (scoped_switch_fork_info)
8864 <scoped_switch_fork_info>: Make explicit.
8865 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
8867 2019-01-10 Tom Tromey <tom@tromey.com>
8869 * objfiles.h (objfile::reset_psymtabs): Update.
8870 * objfiles.c (objfile::objfile): Update.
8871 * psymtab.h (psymtab_storage::obstack): Update.
8872 (psymtab_storage::m_obstack): Use gdb::optional.
8873 (class psymtab_storage): Update comment. Remove objfile
8875 * psymtab.c (psymtab_storage::psymtab_storage): Update.
8877 2019-01-10 Tom Tromey <tom@tromey.com>
8879 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
8880 <free_psymtabs>: Now private.
8881 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
8882 (allocate_psymtab): Use new method.
8884 2019-01-10 Tom Tromey <tom@tromey.com>
8886 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
8887 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
8888 * mdebugread.c (parse_partial_symbols): Use
8889 allocate_dependencies.
8890 * dwarf2read.c (dwarf2_create_include_psymtab): Use
8891 allocate_dependencies.
8892 (process_psymtab_comp_unit_reader)
8893 (build_type_psymtab_dependencies): Likewise.
8894 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
8896 2019-01-10 Tom Tromey <tom@tromey.com>
8898 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
8899 PSYMBOL_SET_LANGUAGE.
8900 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
8902 2019-01-10 Tom Tromey <tom@tromey.com>
8904 * psymtab.h (psymtab_storage::obstack): New method.
8905 <m_obstack>: Rename from obstack; now private.
8906 * psymtab.c (psymtab_storage): Update.
8907 * dwarf2read.c (create_addrmap_from_index)
8908 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
8911 2019-01-10 Tom Tromey <tom@tromey.com>
8913 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
8914 * objfiles.h (objfile::reset_psymtabs): New method.
8916 2019-01-10 Tom Tromey <tom@tromey.com>
8918 * symmisc.c (print_symbol_bcache_statistics): Update.
8919 (print_objfile_statistics): Update.
8920 * symfile.c (reread_symbols): Update.
8921 * psymtab.h (class psymtab_storage): New.
8922 * psymtab.c (psymtab_storage): New constructor.
8923 (~psymtab_storage): New destructor.
8924 (require_partial_symbols): Update.
8925 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
8926 (find_pc_sect_psymtab, find_pc_sect_psymbol)
8927 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
8928 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
8929 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
8930 (start_psymtab_common, end_psymtab_common)
8931 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
8932 (allocate_psymtab): Update.
8933 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
8935 (dump_psymtab_addrmap, maintenance_print_psymbols)
8936 (maintenance_check_psymtabs): Update.
8937 (class objfile_psymtabs): Move to objfiles.h.
8938 * psympriv.h (discard_psymtab): Now inline.
8939 (psymtab_discarder::psymtab_discarder): Update.
8940 (psymtab_discarder::~psymtab_discarder): Update.
8941 (ALL_OBJFILE_PSYMTABS): Rewrite.
8942 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
8943 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
8945 <partial_symtabs>: New field.
8946 (class objfile_psymtabs): Move from psymtab.h. Update.
8947 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
8949 (objfile::~objfile): Don't destroy psymbol_cache.
8950 * mdebugread.c (parse_partial_symbols): Update.
8951 * dwarf2read.c (create_addrmap_from_index)
8952 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8953 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
8954 (add_partial_subprogram, dwarf2_ranges_read): Update.
8955 * dwarf-index-write.c (write_address_map)
8956 (write_one_signatured_type, recursively_write_psymbols)
8957 (class debug_names, class debug_names, write_psymtabs_to_index):
8960 2019-01-10 Tom Tromey <tom@tromey.com>
8962 * symtab.h (SYMBOL_SET_NAMES): Update.
8963 (symbol_set_names): Update.
8964 (MSYMBOL_SET_NAMES): Update.
8965 * symtab.c (symbol_set_names): Change argument to be an
8966 objfile_per_bfd_storage.
8967 * psymtab.c (add_psymbol_to_bcache): Update.
8968 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
8970 2019-01-10 Tom Tromey <tom@tromey.com>
8972 * symtab.c (create_demangled_names_hash): Change argument to be an
8973 objfile_per_bfd_storage.
8974 (symbol_set_names): Update.
8976 2019-01-10 Tom Tromey <tom@tromey.com>
8978 * xcoffread.c (xcoff_initial_scan): Unconditionally call
8980 * psymtab.c (init_psymbol_list): Do nothing if already called.
8981 * psympriv.h (init_psymbol_list): Add comment.
8982 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
8984 * dbxread.c (dbx_symfile_read): Unconditionally call
8987 2019-01-10 Tom Tromey <tom@tromey.com>
8989 * xcoffread.c (scan_xcoff_symtab): Update.
8990 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
8992 * mdebugread.c (parse_partial_symbols)
8993 (handle_psymbol_enumerators): Update.
8994 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
8995 * dbxread.c (read_dbx_symtab): Update.
8996 * psympriv.h (psymbol_placement): New enum.
8997 (add_psymbol_to_list): Update.
8999 2019-01-10 Tom Tromey <tom@tromey.com>
9001 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
9002 static_psymbols parameters.
9003 (scan_xcoff_symtab): Update.
9004 * psymtab.c (start_psymtab_common): Remove global_psymbols and
9005 static_psymbols parameters.
9006 * psympriv.h (start_psymtab_common): Update.
9007 * mdebugread.c (parse_partial_symbols): Update.
9008 * dwarf2read.c (create_partial_symtab): Update.
9009 * dbxread.c (read_dbx_symtab): Update.
9010 (start_psymtab): Remove global_psymbols and static_psymbols
9013 2019-01-10 Tom Tromey <tom@tromey.com>
9015 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
9016 * psymtab.c (allocate_psymtab): Add comment.
9017 * psympriv.h (allocate_psymtab): Add comment.
9018 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
9020 * dbxread.c (dbx_end_psymtab): Remove some initializations.
9022 2019-01-10 Tom Tromey <tom@tromey.com>
9024 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9026 * mipsread.c: Include mdebugread.h.
9027 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9029 * elfread.c: Include mdebugread.h.
9031 2019-01-09 Tom Tromey <tom@tromey.com>
9033 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
9034 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
9035 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
9036 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
9037 (psym_lookup_symbol, psym_find_last_source_symtab)
9038 (psym_forget_cached_source_info, psym_print_stats)
9039 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
9040 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
9041 (psym_map_matching_symbols, psym_expand_symtabs_matching)
9042 (psym_find_compunit_symtab_by_address)
9043 (maintenance_print_psymbols, maintenance_info_psymtabs)
9044 (maintenance_check_psymtabs): Use ranged for.
9045 * psymtab.h (class objfile_psymtabs): New.
9046 (require_partial_symbols): Return objfile_psymtabs.
9047 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
9049 2019-01-09 Tom Tromey <tom@tromey.com>
9051 * symfile.c (overlay_invalidate_all, find_pc_overlay)
9052 (find_pc_mapped_section, list_overlays_command)
9053 (map_overlay_command, unmap_overlay_command)
9054 (simple_overlay_update): Use all_objfiles.
9055 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
9056 * printcmd.c (info_symbol_command): Use all_objfiles.
9057 * objfiles.h (ALL_OBJSECTIONS): Remove.
9058 * maint.c (maintenance_translate_address): Use all_objfiles.
9059 * gcore.c (gcore_create_callback): Use all_objfiles.
9060 (objfile_find_memory_regions): Likewise.
9062 2019-01-09 Tom Tromey <tom@tromey.com>
9064 * symtab.c (find_line_symtab, info_sources_command)
9065 (make_source_files_completion_list): Use objfile_compunits.
9066 * source.c (select_source_symtab): Use objfile_compunits.
9067 * objfiles.h (struct objfile): Update comment.
9068 (ALL_OBJFILES): Remove.
9069 (ALL_FILETABS): Remove.
9070 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
9073 2019-01-09 Tom Tromey <tom@tromey.com>
9075 * symmisc.c (print_objfile_statistics, dump_objfile)
9076 (maintenance_print_symbols): Use compunit_filetabs.
9077 * source.c (forget_cached_source_info_for_objfile): Use
9079 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
9080 (ALL_FILETABS): Use compunit_filetabs.
9081 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
9082 * coffread.c (coff_symtab_read): Use compunit_filetabs.
9084 2019-01-09 Tom Tromey <tom@tromey.com>
9086 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
9087 (compunit_filetabs): New.
9088 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
9090 (info_sources_command, make_source_files_completion_list): Remove
9092 * symmisc.c (print_objfile_statistics, dump_objfile)
9093 (maintenance_print_symbols): Remove declaration.
9094 (maintenance_info_symtabs): Use compunit_filetabs.
9095 (maintenance_info_line_tables): Likewise.
9096 * source.c (select_source_symtab): Change local variable name.
9097 (forget_cached_source_info_for_objfile): Remove declaration.
9098 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
9099 * objfiles.c (objfile_relocate1): Remove declaration.
9100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
9102 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
9103 * coffread.c (coff_symtab_read): Remove declaration.
9104 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
9107 2019-01-09 Tom Tromey <tom@tromey.com>
9109 * symtab.c (lookup_objfile_from_block)
9110 (find_pc_sect_compunit_symtab, search_symbols)
9111 (default_collect_symbol_completion_matches_break_on): Use
9113 * objfiles.h (ALL_COMPUNITS): Remove.
9114 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
9115 * cp-support.c (add_symbol_overload_list_qualified): Use
9117 * ada-lang.c (ada_collect_symbol_completion_matches)
9118 (ada_add_global_exceptions): Use objfile_compunits.
9120 2019-01-09 Tom Tromey <tom@tromey.com>
9122 * source.c (select_source_symtab)
9123 (forget_cached_source_info_for_objfile): Remove declaration.
9124 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
9126 * maint.c (count_symtabs_and_blocks): Remove declaration.
9127 * cp-support.c (add_symbol_overload_list_qualified): Remove
9129 * coffread.c (coff_symtab_read): Remove declaration.
9130 * symtab.c (lookup_symbol_in_objfile_symtabs)
9131 (basic_lookup_transparent_type_1): Use objfile_compunits.
9132 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
9133 (info_sources_command, search_symbols)
9134 (default_collect_symbol_completion_matches_break_on)
9135 (make_source_files_completion_list): Remove declaration.
9136 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
9137 (ada_collect_symbol_completion_matches)
9138 (ada_add_global_exceptions): Remove declaration.
9139 * linespec.c (iterate_over_all_matching_symtabs): Use
9141 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
9142 (class objfile_compunits): New.
9143 (ALL_COMPUNITS): Use objfile_compunits.
9144 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
9145 (maintenance_check_symtabs, maintenance_info_line_tables): Use
9147 * objfiles.c (objfile_relocate1): Use objfile_compunits.
9149 2019-01-09 Tom Tromey <tom@tromey.com>
9151 * symtab.c (search_symbols)
9152 (default_collect_symbol_completion_matches_break_on): Use
9154 * ada-lang.c (ada_lookup_simple_minsym)
9155 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
9156 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
9157 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
9159 * coffread.c (coff_symfile_read): Use objfile_msymbols.
9160 * symmisc.c (dump_msymbols): Use objfile_msymbols.
9161 * objc-lang.c (find_methods): Use objfile_msymbols.
9162 (info_selectors_command, info_classes_command): Likewise.
9163 * stabsread.c (scan_file_globals): Use objfile_msymbols.
9164 * objfiles.h (class objfile_msymbols): New.
9165 (ALL_OBJFILE_MSYMBOLS): Remove.
9166 (ALL_MSYMBOLS): Remove.
9168 2019-01-09 Tom Tromey <tom@tromey.com>
9170 * common/next-iterator.h (next_adapter): Add Iterator template
9172 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
9173 (class all_objfiles_safe): New.
9174 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
9175 * objfiles.c (put_objfile_before): Update comment.
9176 (add_separate_debug_objfile): Likewise.
9177 (free_all_objfiles): Use all_objfiles_safe.
9178 (objfile_purge_solibs): Likewise.
9180 2019-01-09 Tom Tromey <tom@tromey.com>
9182 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9183 (expand_symtab_containing_pc, lookup_static_symbol)
9184 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
9185 (find_symbol_at_address, find_line_symtab, find_main_name): Use
9187 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
9188 * breakpoint.c (create_overlay_event_breakpoint)
9189 (create_longjmp_master_breakpoint)
9190 (create_std_terminate_master_breakpoint)
9191 (create_exception_master_breakpoint): Use all_objfiles.
9192 * linux-thread-db.c (try_thread_db_load_from_pdir)
9193 (has_libpthread): Use all_objfiles.
9194 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
9195 * linespec.c (iterate_over_all_matching_symtabs)
9196 (search_minsyms_for_name): Use all_objfiles.
9197 * maint.c (maintenance_info_sections): Use all_objfiles.
9198 * main.c (captured_main_1): Use all_objfiles.
9199 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
9200 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
9201 * guile/scm-pretty-print.c
9202 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
9203 * solib-spu.c (append_ocl_sos): Use all_objfiles.
9204 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
9205 (maintenance_print_msymbols): Use all_objfiles.
9206 * source.c (select_source_symtab): Use all_objfiles.
9207 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
9208 * symfile.c (remove_symbol_file_command)
9209 (expand_symtabs_matching, map_symbol_filenames): Use
9211 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
9213 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
9214 * objc-lang.c (find_methods): Use all_objfiles.
9215 * objfiles.c (have_partial_symbols, have_full_symbols)
9216 (have_minimal_symbols, qsort_cmp)
9217 (default_iterate_over_objfiles_in_search_order): Use
9219 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
9220 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
9221 (maintenance_check_psymtabs): Use all_objfiles.
9222 (ALL_PSYMTABS): Remove.
9223 * compile/compile-object-run.c (do_module_cleanup): Use
9225 * blockframe.c (find_pc_partial_function): Use all_objfiles.
9226 * cp-support.c (add_symbol_overload_list_qualified): Use
9228 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9230 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
9231 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
9233 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9234 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
9235 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9237 * solib.c (solib_read_symbols): Use all_objfiles
9239 2019-01-09 Tom Tromey <tom@tromey.com>
9241 * probe.c (parse_probes_in_pspace): Use all_objfiles.
9242 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
9244 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
9245 * symmisc.c (print_symbol_bcache_statistics)
9246 (print_objfile_statistics, maintenance_print_objfiles)
9247 (maintenance_info_symtabs, maintenance_check_symtabs)
9248 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
9250 * source.c (forget_cached_source_info): Use all_objfiles.
9251 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
9252 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
9253 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
9254 * objfiles.c (update_section_map): Use all_objfiles.
9255 (shared_objfile_contains_address_p): Likewise.
9256 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
9257 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
9259 2019-01-09 Tom Tromey <tom@tromey.com>
9261 * common/next-iterator.h: New file.
9262 * objfiles.h (class all_objfiles): New.
9263 (struct objfile_iterator): New.
9265 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9267 * NEWS: Move the description of the changed "frame", "select-frame",
9268 and "info frame" commands to the Changed commands section.
9270 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
9272 * gdbtypes.c (check_stub_method_group): Remove handling of old
9274 * linespec.c (find_methods): Likewise.
9275 * stabsread.c (read_member_functions): Likewise.
9276 * valops.c (search_struct_method): Likewise.
9277 (value_struct_elt_for_reference): Likewise.
9278 * NEWS: Mention this change.
9280 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9282 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
9284 * source.c (print_source_lines_base): Update line number check.
9285 (print_source_lines): New function.
9286 (source_lines_range::source_lines_range): New function.
9287 * source.h (class source_lines_range): New class.
9288 (print_source_lines): New declaration.
9290 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9292 * linespec.c (linespec_state_destructor): Free self->canonical_names.
9294 2019-01-08 Tom Tromey <tom@tromey.com>
9295 Simon Marchi <simon.marchi@ericsson.com>
9298 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
9299 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
9300 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9301 * f-exp.y (DOLLAR_VARIABLE): Likewise.
9302 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
9303 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9305 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9307 * source.c (select_source_symtab): Move header comment to
9308 declaration in source.h.
9309 (forget_cached_source_info_for_objfile): Likewise.
9310 (forget_cached_source_info): Likewise.
9311 (identify_source_line): Likewise.
9312 * source.h (identify_source_line): Move declaration from symtab.h
9313 and add comment from source.c
9314 (print_source_lines): Likewise.
9315 (forget_cached_source_info_for_objfile): Likewise.
9316 (forget_cached_source_info): Likewise.
9317 (select_source_symtab): Likewise.
9318 (enum print_source_lines_flag): Move definition from symtab.h.
9319 * symtab.h (identify_source_line): Move declaration to source.h.
9320 (print_source_lines): Likewise.
9321 (forget_cached_source_info_for_objfile): Likewise.
9322 (forget_cached_source_info): Likewise.
9323 (select_source_symtab): Likewise.
9324 (enum print_source_lines_flag): Move definition to source.h.
9325 * tui/tui-hooks.c: Add 'source.h' include.
9327 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9329 * source.c (print_source_lines_base): Handle requests to print
9330 reverse line number sequences, and guard against empty lines
9333 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9335 * source.c (print_source_lines_base): Fix skip of '\r' if next
9338 2019-01-06 Tom Tromey <tom@tromey.com>
9340 * c-exp.y (struct c_parse_state) <macro_original_text,
9341 expansion_obstack>: New member.
9342 (macro_original_text, expansion_obstack): Remove globals.
9343 (scan_macro_expansion, scanning_macro_expansion)
9344 (finished_macro_expansion): Update.
9345 (scan_macro_cleanup): Remove.
9346 (yylex, c_parse): Update.
9348 2019-01-06 Tom Tromey <tom@tromey.com>
9350 * c-exp.y (struct c_parse_state) <strings>: New member.
9351 (operator_stoken): Update.
9353 2019-01-06 Tom Tromey <tom@tromey.com>
9355 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
9356 (union type_stack_elt) <typelist_val>: Now a pointer to
9358 (type_stack_cleanup): Don't declare.
9359 (push_typelist): Update.
9360 * parse.c (pop_typelist): Return a std::vector.
9361 (push_typelist): Take a std::vector.
9362 (follow_types): Update. Do not free args.
9363 (type_stack_cleanup): Remove.
9364 * c-exp.y (struct c_parse_state): New.
9365 (cpstate): New global.
9366 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
9367 (nonempty_typelist): Update.
9368 (func_mod): Create a new vector.
9369 (c_parse): Create a c_parse_state.
9370 (check_parameter_typelist): Do not delete params.
9371 (function_method): Update. Do not delete type_list.
9373 2019-01-06 Tom Tromey <tom@tromey.com>
9376 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
9378 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
9379 (print_return_value): Likewise.
9381 2019-01-05 Tom Tromey <tom@tromey.com>
9383 * contrib/cleanup_check.py: Remove.
9384 * contrib/gcc-with-excheck: Remove.
9385 * contrib/exsummary.py: Remove.
9386 * contrib/excheck.py: Remove.
9388 2019-01-05 Joel Brobecker <brobecker@adacore.com>
9390 * thread.c (delete_thread_1): Add gdb_assert that THR is not
9391 NULL. Initialize tpprev to NULL instead of assigning it
9392 to NULL on the next statement.
9393 * windows-nat.c (windows_delete_thread): Remove check for
9394 main_thread_id before printing thread exit notifications.
9395 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
9396 Remove thread ID check against main_thread_id.
9397 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
9398 windows_delete_thread.
9399 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
9401 2019-01-04 Tom Tromey <tom@tromey.com>
9403 * compile/compile.c (_initialize_compile): Use upper case for
9404 metasyntactic variables.
9405 * symmisc.c (_initialize_symmisc): Use upper case for
9406 metasyntactic variables.
9407 * psymtab.c (_initialize_psymtab): Use upper case for
9408 metasyntactic variables.
9409 * demangle.c (demangle_command): Use upper case for metasyntactic
9411 (_initialize_demangler): Likewise.
9412 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
9415 2019-01-03 Tom Tromey <tom@tromey.com>
9417 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
9419 2019-01-03 Tom Tromey <tom@tromey.com>
9421 * python/py-symtab.c (salpy_str): Update.
9422 (struct salpy_sal_object) <symtab>: Now a PyObject.
9423 (salpy_dealloc): Update.
9424 (del_objfile_sal): Use gdbpy_ref.
9426 2019-01-03 Tom Tromey <tom@tromey.com>
9428 * python/py-type.c (convert_field): Use new_reference. Return
9430 (make_fielditem): Return gdbpy_ref.
9431 (typy_fields): Update.
9432 (typy_getitem): Update.
9433 (field_name): Return gdbpy_ref. Use new_reference.
9434 (typy_iterator_iternext): Update.
9436 2019-01-03 Tom Tromey <tom@tromey.com>
9438 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
9440 2019-01-03 Tom Tromey <tom@tromey.com>
9442 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
9443 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
9444 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
9445 (pspy_set_frame_filters, pspy_set_frame_unwinders)
9446 (pspy_set_type_printers): Likewise.
9447 * python/py-function.c (fnpy_init): Use gdbpy_ref.
9448 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
9449 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
9450 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
9451 (objfpy_set_type_printers): Likewise.
9453 2019-01-03 Tom Tromey <tom@tromey.com>
9455 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
9456 (gdbpy_print_stack): Use gdbpy_err_fetch.
9457 * python/python-internal.h (class gdbpy_err_fetch): New class.
9458 (class gdbpy_enter) <m_error_type, m_error_value,
9459 m_error_traceback>: Remove.
9460 <m_error>: New member.
9461 (gdbpy_exception_to_string): Don't declare.
9462 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
9463 * python/py-value.c (convert_value_from_python): Use
9465 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
9466 gdbpy_exception_to_string.
9467 (gdbpy_handle_exception): Use gdbpy_err_fetch.
9468 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
9471 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9473 * linux-nat.c (delete_lwp_cleanup): Delete.
9474 (struct lwp_deleter): New struct.
9475 (lwp_info_up): New typedef.
9476 (linux_nat_target::follow_fork): Delete cleanup, and make use of
9479 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9481 * linux-fork.c (class scoped_switch_fork_info): New class.
9482 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
9484 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9486 * valops.c (find_overload_match): Remove use of null_cleanup, and
9487 calls to do_cleanups.
9489 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9491 * compile/compile-cplus-types.c
9492 (compile_cplus_instance::decl_name): Handle changes to
9494 * cp-support.c (cp_func_name): Update header comment, update
9496 * cp-support.h (cp_func_name): Update return type in declaration.
9497 * valops.c (find_overload_match): Move temp_func local to top
9498 level of function and change its type. Use temp_func to hold and
9499 delete temporary string obtained from cp_func_name.
9501 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9503 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
9504 gdb::char_vector, remove cleanup, and update uses of `msg`.
9506 2019-01-03 Jim Wilson <jimw@sifive.com>
9508 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
9510 2019-01-02 Tom Tromey <tom@tromey.com>
9512 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
9513 (tdesc_parse_xml): Remove cleanups.
9514 * target-descriptions.h (make_cleanup_free_target_description):
9516 (target_desc_deleter): New struct.
9517 (target_desc_up): New typedef.
9518 * target-descriptions.c (target_desc_deleter::operator()): Rename
9519 from free_target_description.
9520 (make_cleanup_free_target_description): Remove.
9522 2019-01-02 Tom Tromey <tom@tromey.com>
9524 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
9525 constructor, destructor.
9526 (linespec_parser): Remove typedef.
9527 (~linespec_parser): Rename from linespec_parser_delete.
9528 (linespec_lex_to_end, linespec_complete_label)
9529 (linespec_complete): Update.
9530 (decode_line_full): Remove cleanups.
9531 (decode_line_1): Update.
9533 2019-01-02 Tom Tromey <tom@tromey.com>
9535 * python/python-internal.h (inferior_to_inferior_object): Change
9537 * python/py-exitedevent.c (create_exited_event_object): Update.
9538 * python/py-inferior.c (inferior_to_inferior_object): Return
9540 (python_new_inferior, python_inferior_deleted)
9541 (thread_to_thread_object, delete_thread_object)
9542 (build_inferior_list, gdbpy_selected_inferior): Update.
9543 * python/py-infthread.c (create_thread_object): Update. Also fail
9544 if inferior_to_inferior_object fails.
9546 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
9548 * inferior.h (class inferior) <displaced_step_state>: New field.
9549 * infrun.h (struct displaced_step_state): Move here from
9550 infrun.c. Initialize fields, add constructor.
9551 <inf>: Remove field.
9552 <reset>: New method.
9553 * infrun.c (struct displaced_step_inferior_state): Move to
9555 (displaced_step_inferior_states): Remove.
9556 (get_displaced_stepping_state): Adust.
9557 (displaced_step_in_progress_any_inferior): Adjust.
9558 (displaced_step_in_progress_thread): Adjust.
9559 (displaced_step_in_progress): Adjust.
9560 (add_displaced_stepping_state): Remove.
9561 (get_displaced_step_closure_by_addr): Adjust.
9562 (remove_displaced_stepping_state): Remove.
9563 (infrun_inferior_exit): Call displaced_step_state.reset.
9564 (use_displaced_stepping): Don't check for NULL.
9565 (displaced_step_prepare_throw): Call
9566 get_displaced_stepping_state.
9567 (displaced_step_fixup): Don't check for NULL.
9568 (prepare_for_detach): Don't check for NULL.
9570 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9572 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
9573 in case of call that did not complete.
9575 2019-01-02 Andrey Utkin <autkin@undo.io>
9577 * symfile.c (find_separate_debug_file): Fix search of debug files for
9580 2019-01-02 Tom Tromey <tom@tromey.com>
9582 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
9584 * python/py-frame.c (frapy_older): Remove cast.
9585 (frapy_newer): Likewise.
9586 * python/py-breakpoint.c (local_setattro): Remove cast.
9587 * python/py-arch.c (archpy_name): Remove local variable.
9588 * python/py-type.c (gdbpy_lookup_type): Remove cast.
9590 2019-01-02 Joel Brobecker <brobecker@adacore.com>
9592 * unittests/basic_string_view/element_access/char/empty.cc:
9593 Fix year range in copyright header.
9595 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
9597 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
9599 <operator==>: Update with for removed field.
9601 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
9602 <isa_features>: ...this.
9603 <abi_features>: New field.
9604 (riscv_isa_flen): Update comment.
9605 (riscv_abi_xlen): New declaration.
9606 (riscv_abi_flen): New declaration.
9607 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
9609 (riscv_abi_xlen): New function.
9610 (riscv_isa_flen): Update to get answer from isa_features.
9611 (riscv_abi_flen): New function.
9612 (riscv_has_fp_abi): Update to get answer from abi_features.
9613 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
9615 (riscv_call_info) <xlen, flen>: Update comment.
9616 (riscv_call_arg_struct): Remove invalid assertions
9617 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
9619 (riscv_gdbarch_init): Gather isa features and abi features
9620 separately, ensure both match on the gdbarch when reusing an old
9621 gdbarch. Relax an error check to allow 32-bit abi float to run on
9622 a target with 64-bit float hardware.
9624 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9626 * source.c (search_command_helper): Stop reverse search
9627 when line 1 has been searched.
9629 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9631 * record-full.c (record_full_base_target::close): Rewrite
9632 record_full_core_buf_list free logic.
9634 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9636 * break-catch-syscall.c (print_one_catch_syscall): xfree
9639 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9641 * top.c (print_gdb_version): Update Copyright year in version
9644 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9646 Update copyright year range in all GDB files.
9648 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
9650 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
9652 For older changes see ChangeLog-2018.
9658 version-control: never