Don't include gdbarch.h from defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0d12e84c
TT
12019-07-10 Tom Tromey <tom@tromey.com>
2
3 * defs.h: Don't include gdbarch.h.
4 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
8 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
9 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
10 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
11 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
12 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
13 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
14 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
15 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
16 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
17 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
18 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
19 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
20 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
21 record-btrace.c, record.h, regcache-dump.c, regcache.h,
22 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
23 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
24 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
25 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
26 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
27 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
28 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
29 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
30 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
31
f06f1252
TT
322019-07-10 Tom Tromey <tromey@adacore.com>
33
34 * ada-lang.h (is_ada_exception_catchpoint): Declare.
35 * breakpoint.c (init_ada_exception_breakpoint): Register as
36 bp_catchpoint.
37 (print_one_breakpoint_location, print_one_breakpoint): Use
38 is_ada_exception_catchpoint.
39 * ada-lang.c (class ada_catchpoint_location): Pass
40 bp_loc_software_breakpoint to bp_location constructor.
41 (is_ada_exception_catchpoint): New function.
42
7a5d944b
TT
432019-07-10 Tom Tromey <tromey@adacore.com>
44
45 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
46 VEC.
47 (struct arm_exidx_entry): New method operator<.
48 (struct arm_exidx_data) <section_maps>: Change type.
49 (arm_exidx_data_free): Remove.
50 (arm_exidx_data_key): Change type. Move lower.
51 (arm_exidx_new_objfile): Update.
52 (arm_compare_exidx_entries): Remove.
53 (arm_find_exidx_entry, _initialize_arm_tdep)
54
48c66e1d
TT
552019-07-10 Tom Tromey <tromey@adacore.com>
56
57 * solib-spu.c (ocl_program_data_key): Change type.
58 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
59 Update.
60
a269fbf1
TT
612019-07-10 Tom Tromey <tromey@adacore.com>
62
63 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
64 (struct solib_aix_inferior_data) <library_list>: Change type.
65 (solib_aix_inferior_data_handle): Change type.
66 (get_solib_aix_inferior_data): Update.
67 (solib_aix_free_library_list): Remove.
68 (library_list_start_library): Update.
69 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
70 return type.
71 (solib_aix_get_library_list)
72 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
73 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
74
c294730c
TT
752019-07-10 Tom Tromey <tromey@adacore.com>
76
77 * solib-dsbt.c (struct dsbt_info): Add initializers.
78 (solib_dsbt_pspace_data): Change type.
79 (dsbt_pspace_data_cleanup): Remove.
80 (get_dsbt_info, _initialize_dsbt_solib): Update.
81
9d52077d
TT
822019-07-10 Tom Tromey <tromey@adacore.com>
83
84 * spu-tdep.c (spu_overlay_data): Change type.
85 (spu_get_overlay_table, spu_overlay_new_objfile)
86 (_initialize_spu_tdep): Update.
87
22a20dca
TT
882019-07-10 Tom Tromey <tromey@adacore.com>
89
90 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
91 destructor.
92 (dbx_objfile_data_key): Change type and declare later.
93 (DBX_SYMFILE_INFO): Rewrite.
94 * dbxread.c (dbx_objfile_data_key): Change type.
95 (dbx_symfile_init): Update.
96 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
97 (coffstab_build_psymtabs, elfstab_build_psymtabs)
98 (stabsect_build_psymtabs, _initialize_dbxread): Update.
99
cb60f420
TT
1002019-07-10 Tom Tromey <tromey@adacore.com>
101
102 * jit.c (jit_program_space_key): Change type. Move lower.
103 (get_jit_program_space_data): Update.
104 (jit_program_space_data_cleanup): Remove.
105 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
106 Update.
107 (struct jit_program_space_data): Add initializers.
108
51df2ae3
TT
1092019-07-10 Tom Tromey <tromey@adacore.com>
110
111 * solib-darwin.c (struct darwin_info): Add initializers.
112 (solib_darwin_pspace_data): Change type.
113 (darwin_pspace_data_cleanup): Remove.
114 (get_darwin_info, _initialize_darwin_solib): Update.
115
18101a35
TT
1162019-07-10 Tom Tromey <tromey@adacore.com>
117
118 * remote-sim.c (struct sim_inferior_data): Add initializers,
119 constructor, and destructor.
120 (sim_inferior_data_key): Change type. Move lower.
121 (check_for_duplicate_sim_descriptor): Update.
122 (get_sim_inferior_data): Use new. Update.
123 (~sim_inferior_data_cleanup): Rename from
124 sim_inferior_data_cleanup. Simplify.
125 (gdbsim_close_inferior, simulator_command)
126 (sim_command_completer, _initialize_remote_sim): Update.
127 (next_pid, INITIAL_PID): Move earlier.
128
05b08ac1
TT
1292019-07-10 Tom Tromey <tromey@adacore.com>
130
131 * python/python-internal.h (create_thread_object): Return
132 gdbpy_ref.
133 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
134 * python/py-inferior.c (struct threadlist_entry): Add
135 constructor.
136 <thread_obj>: Now a gdbpy_ref.
137 (thread_to_thread_object): Update.
138 (add_thread_object): Use new.
139 (delete_thread_object): Use delete.
140 (infpy_threads): Update.
141 (py_free_inferior): Update. Construct "inf_obj" after acquiring
142 GIL.
143
32372d80
TT
1442019-07-10 Tom Tromey <tromey@adacore.com>
145
146 * valops.c (value_cast): Specialize error message for Ada.
147
5c458ae8
SM
1482019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * breakpoint.c (breakpoint_1): Update doc and parameter names.
151
4c462cb0
SM
1522019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
155 bpstat_should_step): Return bool, adjust comments.
156 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
157 bpstat_should_step): Likewise.
158
89abbcc2
AH
1592019-07-10 Alan Hayward <alan.hayward@arm.com>
160
161 * features/Makefile: Use feature target descriptions for Arm.
162 * features/arm/arm-core.c: Generate new file.
163 * features/arm/arm-fpa.c: Likewise.
164 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
165 * features/arm/arm-m-profile.c: Likewise.
166 * features/arm/arm-vfpv2.c: Likewise.
167 * features/arm/arm-vfpv3.c: Likewise.
168 * features/arm/xscale-iwmmxt.c: Likewise.
169 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
170
166a82be
AH
1712019-07-10 Alan Hayward <alan.hayward@arm.com>
172
173 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
174 ptrace earlier.
175
9fb4c7e9
AH
1762019-07-10 Alan Hayward <alan.hayward@arm.com>
177
178 * features/aarch64-pauth.c: Regenerate.
179
e2d0f980
SM
1802019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
183 bool.
184 (bpstat_what): Use false instead of 0.
185
a38118e5
PA
1862019-07-09 Pedro Alves <palves@redhat.com>
187
188 * break-catch-throw.c (is_exception_catchpoint): New.
189 * breakpoint.c (print_one_breakpoint_location): New parameter
190 'raw_loc'. Handle it. Use
191 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
192 looking at the breakpoint's type.
193 (print_one_breakpoint): If handling "maint info breakpoints", also
194 print locations of exception catchpoints.
195 * breakpoint.h (is_exception_catchpoint): Declare.
196
cb1e4e32
PA
1972019-07-09 Pedro Alves <palves@redhat.com>
198
199 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
200 "addr" field.
201 (allocate_location_exception_catchpoint): New.
202 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
203 (initialize_throw_catchpoint_ops): Install
204 allocate_location_exception_catchpoint as allocate_location
205 method.
206 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
207 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
208 bp_loc_other.
209 (breakpoint_address_is_meaningful): Delete.
210 (bl_address_is_meaningful): New.
211 (breakpoint_locations_match): Adjust comment.
212 (bp_location_from_bp_type): New, factored out of...
213 (bp_location::bp_location(breakpoint *)): ... this.
214 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
215 factored out of...
216 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
217 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
218 breakpoint_address_is_meaningful.
219 (bp_locations_compare): Adjust comment.
220 (update_global_location_list): Use bl_address_is_meaningful
221 instead of breakpoint_address_is_meaningful.
222 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
223 explicit.
224 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
225 * python/py-breakpoint.c (bppy_get_location): No longer check
226 whether location is null.
227
b58a68fe
PA
2282019-07-09 Pedro Alves <palves@redhat.com>
229
230 PR c++/15468
231 * breakpoint.c (print_one_breakpoint_location): Remove
232 single-location assert.
233
268a13a5
TT
2342019-07-09 Tom Tromey <tom@tromey.com>
235
236 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
237 * configure: Rebuild.
238 * configure.ac: Change common to gdbsupport.
239 * gdbsupport: Rename from common.
240 * acinclude.m4: Change common to gdbsupport.
241 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
242 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
243 gdbsupport.
244 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
245 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
246 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
247 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
248 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
249 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
250 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
251 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
252 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
253 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
254 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
255 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
256 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
257 coff-pe-read.c, command.h, compile/compile-c-support.c,
258 compile/compile-c.h, compile/compile-cplus-symbols.c,
259 compile/compile-cplus-types.c, compile/compile-cplus.h,
260 compile/compile-loc2c.c, compile/compile.c, completer.c,
261 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
262 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
263 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
264 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
265 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
266 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
267 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
268 features/aarch64-core.c, features/aarch64-fpu.c,
269 features/aarch64-pauth.c, features/aarch64-sve.c,
270 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
271 features/i386/32bit-core.c, features/i386/32bit-linux.c,
272 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
273 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
274 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
275 features/i386/64bit-core.c, features/i386/64bit-linux.c,
276 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
277 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
278 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
279 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
280 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
281 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
282 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
283 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
284 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
285 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
286 go32-nat.c, guile/guile.c, guile/scm-ports.c,
287 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
288 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
289 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
290 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
291 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
292 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
293 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
294 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
295 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
296 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
297 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
298 minsyms.c, mips-linux-tdep.c, namespace.h,
299 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
300 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
301 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
302 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
303 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
304 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
305 nat/linux-waitpid.c, nat/mips-linux-watch.c,
306 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
307 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
308 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
309 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
310 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
311 procfs.c, producer.c, progspace.h, psymtab.h,
312 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
313 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
314 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
315 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
316 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
317 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
318 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
319 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
320 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
321 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
322 target-memory.c, target.c, target.h, target/waitstatus.c,
323 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
324 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
325 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
326 unittests/array-view-selftests.c,
327 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
328 unittests/common-utils-selftests.c,
329 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
330 unittests/format_pieces-selftests.c,
331 unittests/function-view-selftests.c,
332 unittests/lookup_name_info-selftests.c,
333 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
334 unittests/mkdir-recursive-selftests.c,
335 unittests/observable-selftests.c,
336 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
337 unittests/parse-connection-spec-selftests.c,
338 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
339 unittests/scoped_fd-selftests.c,
340 unittests/scoped_mmap-selftests.c,
341 unittests/scoped_restore-selftests.c,
342 unittests/string_view-selftests.c, unittests/style-selftests.c,
343 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
344 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
345 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
346 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
347 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
348 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
349
5b0e2db4
AB
3502019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * linespec.c (decode_digits_list_mode): Set explicit_line to a
353 bool value.
354 (decode_digits_ordinary): Set explicit_line field in sal.
355 * symtab.c (skip_prologue_sal): Don't skip prologue for a
356 symtab_and_line that was set on an explicit line number in
357 assembler code. Do always update the recorded symtab and line if
358 we do skip the prologue.
359
0ba852ab
AB
3602019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * breakpoint.c (set_breakpoint_location_function): Remove
363 explicit_loc parameter.
364 (momentary_breakpoint_from_master): Update call to
365 set_breakpoint_location_function.
366 (add_location_to_breakpoint): Likewise.
367
b3a7d171
AB
3682019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
371 required features based on default bfd type when no specific bfd
372 is present.
373
1f6f6e21
PW
3742019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
375
376 * NEWS: Mention that GDB printf and eval commands can now print
377 C-style and Ada-style convenience var strings without
378 calling the inferior.
379 * printcmd.c (printf_c_string): Locally print GDB internal var
380 instead of transiting via the inferior.
381 (printf_wide_c_string): Likewise.
382
3832019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
384
385 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
386
0598af48
TT
3872019-07-04 Tom Tromey <tom@tromey.com>
388
389 PR tui/24724:
390 * tui/tui-winsource.c (tui_clear_source_content): Update.
391 (tui_source_window_base::set_is_exec_point_at): Fix comment.
392 (tui_update_breakpoint_info): Update.
393 (tui_set_exec_info_content): Update.
394 * tui/tui-source.c (tui_set_source_content_nil): Update.
395 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
396 has_break.
397 * tui/tui-data.h (enum tui_bp_flag): New.
398 (tui_bp_flags): New enum flags type.
399 (struct tui_source_element) <break_mode>: Change type. Rename
400 from has_break.
401 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
402 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
403 constants.
404 * tui/tui-winsource.h: Fix comment.
405
350fab54
AH
4062019-07-04 Alan Hayward <alan.hayward@arm.com>
407
408 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
409 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
410 (store_fpregs_to_thread)
411 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
412 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
413 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
414 (IWMMXT_REGS_SIZE): Add define.
415 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
416 (fetch_vfp_regs, store_vfp_regs)
417 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
418 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
419
f0452268
AH
4202019-07-04 Alan Hayward <alan.hayward@arm.com>
421
422 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
423 defines.
424 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
425 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
426 (ARM_INT_REGISTER_SIZE): ...to this.
427 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
428 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
429 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
430 (arm_linux_collect_gregset, supply_nwfpe_register)
431 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
432 defines.
433 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
434 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
435 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
436 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
437 (arm_return_in_memory, arm_store_return_value)
438 (arm_get_longjmp_target, arm_register_g_packet_guesses)
439 (arm_record_ld_st_multiple): Likewise.
440 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
441 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
442
e935475c
AH
4432019-07-04 Alan Hayward <alan.hayward@arm.com>
444
445 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
446 AARCH64_DISPLACED_MODIFIED_INSNS.
447 * aarch64-tdep.c (struct aarch64_displaced_step_data)
448 (aarch64_displaced_step_copy_insn): Likewise.
449 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
450 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
451 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
452 ARM_DISPLACED_MODIFIED_INSNS.
453 * arm-tdep.c (arm_gdbarch_init): Likewise.
454 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
455 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
456 (struct arm_displaced_step_closure): Use
457 ARM_DISPLACED_MODIFIED_INSNS.
458
df0bb381
AH
4592019-07-04 Alan Hayward <alan.hayward@arm.com>
460
461 * features/Makefile: Remove unused xml files.
462 * features/aarch64.xml: Remove.
463 * features/i386/amd64-avx-avx512-linux.xml: Remove.
464 * features/i386/amd64-avx-avx512.xml: Remove.
465 * features/i386/amd64-avx-linux.xml: Remove.
466 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
467 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
468 * features/i386/amd64-avx-mpx-linux.xml: Remove.
469 * features/i386/amd64-avx-mpx.xml: Remove.
470 * features/i386/amd64-avx.xml: Remove.
471 * features/i386/amd64-linux.xml: Remove.
472 * features/i386/amd64-mpx-linux.xml: Remove.
473 * features/i386/amd64-mpx.xml: Remove.
474 * features/i386/amd64.xml: Remove.
475 * features/i386/i386-avx-avx512-linux.xml: Remove.
476 * features/i386/i386-avx-avx512.xml: Remove.
477 * features/i386/i386-avx-linux.xml: Remove.
478 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
479 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
480 * features/i386/i386-avx-mpx-linux.xml: Remove.
481 * features/i386/i386-avx-mpx.xml: Remove.
482 * features/i386/i386-avx.xml: Remove.
483 * features/i386/i386-linux.xml: Remove.
484 * features/i386/i386-mmx-linux.xml: Remove.
485 * features/i386/i386-mmx.xml: Remove.
486 * features/i386/i386-mpx-linux.xml: Remove.
487 * features/i386/i386-mpx.xml: Remove.
488 * features/i386/i386.xml: Remove.
489 * features/i386/x32-avx-avx512-linux.xml: Remove.
490 * features/i386/x32-avx-linux.xml: Remove.
491 * features/i386/x32-linux.xml: Remove.
492
edd6266a
AH
4932019-07-04 Alan Hayward <alan.hayward@arm.com>
494
495 * regformats/aarch64.dat: Remove.
496 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
497 * regformats/i386/amd64-avx-linux.dat: Remove.
498 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
499 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
500 * regformats/i386/amd64-linux.dat: Remove.
501 * regformats/i386/amd64-mpx-linux.dat: Remove.
502 * regformats/i386/amd64.dat: Remove.
503 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
504 * regformats/i386/i386-avx-linux.dat: Remove.
505 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
506 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
507 * regformats/i386/i386-linux.dat: Remove.
508 * regformats/i386/i386-mmx-linux.dat: Remove.
509 * regformats/i386/i386-mpx-linux.dat: Remove.
510 * regformats/i386/i386.dat: Remove.
511 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
512 * regformats/i386/x32-avx-linux.dat: Remove.
513 * regformats/i386/x32-linux.dat: Remove.
514
2b40fda7
AH
5152019-07-04 Alan Hayward <alan.hayward@arm.com>
516
517 * aarch64-tdep.c: Remove xml self tests.
518 * amd64-linux-tdep.c: Likewise.
519 * amd64-tdep.c: Likewise.
520 * i386-linux-tdep.c: Likewise.
521 * i386-tdep.c: Likewise.
522
5f4ba3e7
PA
5232019-07-03 Pedro Alves <palves@redhat.com>
524
525 PR cli/24732
526 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
527 (pipe_cmd_option_defs): New.
528 (make_pipe_cmd_options_def_group): New.
529 (pipe_command): Use gdb::option::process_options.
530 (pipe_command_completer): New function.
531 (_initialize_cli_cmds): Install completer for "pipe" command.
532
3d9be6f5
PA
5332019-07-03 Pedro Alves <palves@redhat.com>
534
535 * cli/cli-option.c (union option_value) <string>: New field.
536 (struct option_def_and_value): Add ctor, move ctor, dtor and
537 use DISABLE_COPY_AND_ASSIGN.
538 (option_def_and_value::clear_value): New.
539 (parse_option, save_option_value_in_ctx, get_val_type_str)
540 (add_setshow_cmds_for_options): Handle var_string.
541 * cli-option.h (union option_def::var_address) <string>: New
542 field.
543 (struct string_option_def): New.
544 * maint-test-options.c (struct test_options_opts): Add default
545 ctor and use DISABLE_COPY_AND_ASSIGN.
546 <string_opt>: New field.
547 (test_options_opts::~test_options_opts): New.
548 (test_options_opts::dump): Also dump "-string".
549 (test_options_option_defs): Install "string.
550
41fc454c
PA
5512019-07-03 Pedro Alves <palves@redhat.com>
552
553 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
554 option_value with a null enumeration.
555 (complete_options): Save the option values in the context.
556 (save_option_value_in_ctx): New, factored out from ...
557 (process_options): ... here.
558 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
559 of the function.
560 * maint-test-options.c (test_options_opts::dump): New, factored
561 out from ...
562 (maintenance_test_options_command_mode): ... here.
563 (maintenance_test_options_command_completion_result): Delete.
564 (maintenance_test_options_command_completion_text): Update
565 comment.
566 (maintenance_show_test_options_completion_result): Change
567 prototype. Just print
568 maintenance_test_options_command_completion_text.
569 (save_completion_result): New.
570 (maintenance_test_options_completer_mode): Pass options context to
571 complete_options, and then save a dump.
572 (_initialize_maint_test_options): Use add_cmd to install "maint
573 show test-options-completion-result".
574
fdbc9870
PA
5752019-07-03 Pedro Alves <palves@redhat.com>
576
577 * NEWS (New commands): Mention "with" and "maint with".
578 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
579 (with_command, with_command_completer): New.
580 (pipe_command): Adjust to new repeat_previous
581 interface.
582 (_initialize_cli_cmds): Install the "with" command and its "w"
583 alias.
584 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
585 declarations.
586 * cli/cli-setshow.c (parse_cli_var_uinteger)
587 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
588 argument strings for all var_types.
589 (get_setshow_command_value_string): New, factored out from ...
590 (do_show_command): ... this.
591 * cli/cli-setshow.h: Include <string>.
592 (get_setshow_command_value_string): Declare.
593 * command.h (repeat_previous): Now returns const char *. Adjust
594 comment.
595 * maint.c: Include "cli/cli-cmds.h".
596 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
597 (_initialize_maint_cmds): Register the "maintenance with" command.
598 * top.c (repeat_previous): Move bits from pipe_command here:
599 Return the saved command line, if any; error out if there's no
600 command to relaunch.
601
c6ac8931
PA
6022019-07-03 Pedro Alves <palves@redhat.com>
603
604 * NEWS (New commands): Mention "maint set/show test-settings"
605 instead of "maint test-settings".
606 * maint-test-settings.c (maintenance_test_settings_list): Delete.
607 (maintenance_test_settings_set_list): Rename to ...
608 (maintenance_set_test_settings_list): ... this.
609 (maintenance_test_settings_show_list): Rename to ...
610 (maintenance_show_test_settings_list): ... this.
611 (maintenance_test_settings_cmd): Delete.
612 (maintenance_test_settings_set_cmd): ...
613 (maintenance_set_test_settings_cmd): ... this.
614 (maintenance_test_settings_show_cmd): ...
615 (maintenance_show_test_settings_cmd): ... this.
616 (maintenance_test_settings_show_value_cmd):
617 (maintenance_show_test_settings_value_cmd): ... this.
618 (_initialize_maint_test_settings): No longer install the "maint
619 test-settings" prefix command. Rename "maint test-settings set"
620 to "maint set test-settings", and "maint test-settings show" to
621 "maint show test-settings". Adjust all subcommands.
622
d1fcf2fd
PA
6232019-07-03 Pedro Alves <palves@redhat.com>
624
625 * maint-test-settings.c: Fix file's intro comment. Replace all
626 references to "test-options" with references to "test-settings",
627 in comments.
628
970f9d09
PA
6292019-07-03 Pedro Alves <palves@redhat.com>
630
631 * maint-test-settings.c (maintenance_test_settings_xxx)
632 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
633 New.
634 (maintenance_test_settings_enums): Use them.
635 (maintenance_test_settings_enum): Default to
636 maintenance_test_settings_xxx.
637 (_initialize_maint_test_settings): Initialize
638 MAINTENANCE_TEST_SETTINGS_FILENAME.
639
f3869b1a
SM
6402019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * breakpoint.h (remove_breakpoints_inf): Change return type to
643 void, move function documentation here.
644 * breakpoint.c (remove_breakpoints_inf): Change return type to
645 void, move function documentation to header.
646
54d66006
PA
6472019-07-02 Pedro Alves <palves@redhat.com>
648
649 * NEWS (Completion improvements): Mention "info threads".
650 * thread.c (struct info_threads_opts, info_threads_option_defs)
651 (make_info_threads_options_def_group): New.
652 (info_threads_command): Use gdb::option::process_options.
653 (info_threads_command_completer): New.
654 (_initialize_thread): Use gdb::option::build_help to build the
655 help text for "info threads".
656
854f6088
SM
6572019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * defs.h (generic_load): Move from here...
660 * symfile.h (generic_load): ... to here. Rename name parameter
661 to args.
662 * symfile.c (generic_load): Add comment.
663
54ee4252
TT
6642019-07-01 Tom Tromey <tromey@adacore.com>
665
666 * dwarf2read.c
667 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
668 declaration of without_params. Fix formatting.
669
65392b3e
TT
6702019-07-01 Tom Tromey <tromey@adacore.com>
671
672 * ada-exp.y (find_primitive_type): Update.
673 * ada-lang.h (ada_lookup_symbol): Update.
674 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
675 parameter.
676 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
677
7d7571f0
SDJ
6782019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
679
680 PR breakpoints/24541
681 * gdbarch.c: Regenerate.
682 * gdbarch.h: Regenerate.
683 * gdbarch.sh: Add 'stap_adjust_register'.
684 * i386-tdep.c: Include '<unordered_set>'.
685 (i386_stap_adjust_register): New function.
686 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
687 * stap-probe.c (stap_parse_register_operand): Call
688 'gdbarch_stap_adjust_register'.
689
5af5392a
SDJ
6902019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
691
692 PR python/24742
693 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
694 * python/python.c (do_start_initialization): Use 'xmalloc'
695 instead of 'PyMem_Malloc'.
696
10d06d82
TT
6972019-06-28 Tom Tromey <tromey@adacore.com>
698
699 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
700 for Ada.
701
1b7f24cd
TT
7022019-06-27 Tom Tromey <tromey@adacore.com>
703
704 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
705 objfile_key.
706 (arm_find_mapping_symbol, arm_record_special_symbol)
707 (_initialize_arm_tdep): Update.
708 (arm_objfile_data_free): Remove.
709
3d507ff2
TT
7102019-06-27 Tom Tromey <tromey@adacore.com>
711
712 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
713 to cp_print_static_field.
714
762c164d
TT
7152019-06-26 Tom Tromey <tromey@adacore.com>
716
717 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
718 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
719 declare.
720
aa2f9bcf
AH
7212019-06-26 Alan Hayward <alan.hayward@arm.com>
722
723 * features/aarch64-core.c (create_feature_aarch64_core):
724 Regenerate.
725 * features/aarch64-core.xml: Add cpsr flags.
726
3426ae57
AH
7272019-06-26 Alan Hayward <alan.hayward@arm.com>
728
729 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
730 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
731
4838e44c
SM
7322019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
735 field.
736 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
737 use.
738 (arm_record_special_symbol): Don't insert new symbol in sorted
739 position, push it at the end.
740
54cc7474
SM
7412019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
744 (arm_mapping_symbol_s): Remove.
745 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
746 (arm_mapping_symbol_vec): New typedef.
747 (struct arm_per_objfile): Add constructor.
748 <section_maps>: Change type to
749 std::unique_ptr<arm_mapping_symbol_vec[]>.
750 (arm_compare_mapping_symbols): Remove.
751 (arm_find_mapping_symbol): Adjust to section_maps type change.
752 (arm_objfile_data_free): Call delete on arm_per_objfile.
753 (arm_record_special_symbol): Adjust to section_maps type change.
754 Allocate arm_per_objfile with new.
755
b65b566c
PW
7562019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
757
758 * cli/cli-cmds.c (alias_command): Compare the alias prefix
759 with the command prefix.
760
c2fc64f5
TT
7612019-06-25 Tom Tromey <tom@tromey.com>
762
763 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
764 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
765
fb54fa76
TT
7662019-06-25 Tom Tromey <tom@tromey.com>
767
768 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
769 type.
770 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
771 protected.
772
f7952c57
TT
7732019-06-25 Tom Tromey <tom@tromey.com>
774
775 * tui/tui-winsource.c
776 (tui_source_window_base::set_is_exec_point_at): Add check against
777 LOA_ADDRESS.
778
17568d78
TT
7792019-06-25 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-source.c (tui_set_source_content): Don't check before
782 xfree.
783 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
784
53e7cdba
TT
7852019-06-25 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-winsource.h (tui_update_source_window_as_is)
788 (tui_alloc_source_buffer, tui_line_is_displayed)
789 (tui_addr_is_displayed): Change type of win_info.
790 * tui/tui-winsource.c (tui_update_source_window_as_is)
791 (tui_clear_source_content, tui_show_source_line)
792 (tui_show_source_content, tui_source_window_base::refill)
793 (tui_source_window_base::set_is_exec_point_at)
794 (tui_source_window_base::set_is_exec_point_at)
795 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
796 (tui_alloc_source_buffer, tui_line_is_displayed)
797 (tui_addr_is_displayed): Change type of win_info. Update.
798 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
799 (tui_source_window_base::do_make_visible_with_new_height):
800 Update.
801 * tui/tui-source.c (tui_set_source_content)
802 (tui_set_source_content_nil)
803 (tui_source_window::do_scroll_vertical): Update.
804 * tui/tui-layout.c (show_layout): Update.
805 * tui/tui-disasm.c (tui_set_disassem_content)
806 (tui_disasm_window::do_scroll_vertical): Update.
807 * tui/tui-data.h (tui_win_content): Remove.
808 (struct tui_gen_win_info) <content, content_size>: Remove.
809 (struct tui_source_element): Add initializers and destructor.
810 (union tui_which_element, struct tui_win_element): Remove.
811 (struct tui_source_window_base) <content>: New field.
812 (struct tui_data_window): Remove destructor.
813 (tui_alloc_content, tui_free_win_content)
814 (tui_free_all_source_wins_content): Don't declare.
815 * tui/tui-data.c (tui_initialize_static_data): Update.
816 (init_content_element, tui_alloc_content): Remove.
817 (~tui_gen_win_info): Update.
818 (~tui_data_window, tui_free_all_source_wins_content)
819 (tui_free_win_content, free_content, free_content_elements):
820 Remove.
821
7908abbf
TT
8222019-06-25 Tom Tromey <tom@tromey.com>
823
824 * tui/tui-winsource.h (tui_clear_source_content)
825 (tui_erase_source_content, tui_show_source_content): Change type
826 of win_info.
827 * tui/tui-winsource.c (tui_clear_source_content)
828 (tui_erase_source_content, tui_show_source_content): Change type
829 of win_info.
830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
831 * tui/tui-source.h (tui_set_source_content_nil): Change type of
832 win_info.
833 * tui/tui-source.c (tui_set_source_content_nil): Change type of
834 win_info.
835 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
836
02c28df0
TT
8372019-06-25 Tom Tromey <tom@tromey.com>
838
839 * tui/tui-winsource.c (tui_clear_source_content)
840 (tui_source_window_base::set_is_exec_point_at): Update.
841 * tui/tui-source.c (tui_set_source_content_nil): Update.
842 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
843 a bool.
844 * tui/tui-data.c (init_content_element): Update.
845
6658b1bf
TT
8462019-06-25 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
849 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
850 * tui/tui-layout.c (init_and_make_win): Update.
851 * tui/tui.h (enum tui_win_type): Update.
852 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
853 tui_win_is_auxillary.
854 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
855 tui_win_is_auxillary.
856
21e1c91e
TT
8572019-06-25 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
860 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
861 (tui_delete_data_content_windows, tui_display_all_data)
862 (tui_data_window::do_scroll_vertical, tui_display_data_from):
863 Update.
864 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
865 * tui/tui-regs.c (tui_last_regs_line_no)
866 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
867 (tui_show_registers): Update.
868 (tui_show_register_group): Return void. Update.
869 (tui_display_registers_from, tui_display_reg_element_at_line)
870 (tui_display_registers_from_line, tui_check_register_values):
871 Update.
872 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
873 member.
874 (struct tui_data_window) <regs_content>: Now a std::vector.
875 <regs_content_count>: Remove.
876 (tui_add_content_elements, tui_free_data_content): Don't declare.
877 * tui/tui-data.c (tui_data_window::clear_detail): Update.
878 (init_content_element): Remove DATA_WIN case. Add assert.
879 (tui_add_content_elements): Remove.
880 (tui_data_window): Update.
881 (tui_free_data_content): Remove.
882 (free_content_elements): Remove DATA_WIN case.
883
115ac53b
TT
8842019-06-25 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-data.c (tui_data_item_window): Update.
887 * tui/tui-windata.h (tui_check_data_values): Don't declare.
888 * tui/tui-windata.c (tui_display_all_data)
889 (tui_display_data_from_line): Update.
890 (tui_check_data_values): Remove.
891 * tui/tui-regs.c (tui_show_register_group)
892 (tui_display_reg_element_at_line): Update.
893 * tui/tui-hooks.c (tui_register_changed)
894 (tui_refresh_frame_and_register_information): Call
895 tui_check_register_values.
896 * tui/tui-data.h (struct tui_data_window) <data_content,
897 data_content_count, data_type>: Remove.
898 (enum tui_data_type): Remove.
899
900 * tui/tui-data.c (tui_data_window::clear_detail)
901 (~tui_data_window): Update.
902
eaf9738b
TT
9032019-06-25 Tom Tromey <tom@tromey.com>
904
905 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
906 declare.
907 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
908 Rename from tui_first_data_item_displayed. Update.
909 (tui_data_window::refresh_all)
910 (tui_data_window::do_scroll_vertical): Update.
911 * tui/tui-data.h (struct tui_data_window)
912 <first_data_item_displayed>: Declare new method.
913
31ca4723
TT
9142019-06-25 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-data.h (tui_init_generic_part): Don't declare.
917 * tui/tui-data.c (tui_init_generic_part): Remove, moving
918 contents...
919 (tui_initialize_static_data): ...here.
920
41bcff7f
TT
9212019-06-25 Tom Tromey <tom@tromey.com>
922
923 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
924 (tui_display_registers_from, tui_check_register_values): Update.
925 (tui_display_register): Remove win_info parameter; update.
926 (tui_get_register): Change type of parameters.
927 * tui/tui-data.h (struct tui_data_element): Remove.
928 (union tui_which_element) <data>: Remove.
929 <data_window>: Change type.
930 (struct tui_data_item_window): New.
931 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
932 case. Add assert.
933 (~tui_data_item_window): New destructor.
934 (free_content_elements): Remove DATA_ITEM_WIN case.
935
d2802c33
TT
9362019-06-25 Tom Tromey <tom@tromey.com>
937
938 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
939 Remove.
940
dd835f8b
TT
9412019-06-25 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-data.h (struct tui_command_element): Remove.
944 (union tui_which_element) <command>: Remove.
945 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
946 assert.
947 (free_content_elements): Remove CMD_WIN case.
948
bd7db367
TT
9492019-06-25 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-layout.c (tui_set_layout): Update.
952 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
953 * tui/tui-data.c (layout_def): Update.
954
3add462f
TT
9552019-06-25 Tom Tromey <tom@tromey.com>
956
957 * tui/tui-wingeneral.c (tui_refresh_all): Update.
958 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
959 (tui_source_window_base::set_new_height): Update.
960 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
961 Update.
962 (tui_set_locator_fullname, tui_set_locator_info)
963 (tui_show_frame_info): Update.
964 * tui/tui-source.c (tui_set_source_content)
965 (tui_source_is_displayed): Update.
966 * tui/tui-layout.c (show_source_disasm_command, show_data)
967 (show_source_or_disasm_and_command): Update.
968 * tui/tui-disasm.c (tui_set_disassem_content)
969 (tui_get_begin_asm_address): Update.
970 * tui/tui-data.h (struct tui_locator_element): Remove.
971 (union tui_which_element) <locator>: Remove.
972 (struct tui_locator_window): New.
973 (tui_locator_win_info_ptr): Change return type.
974 * tui/tui-data.c (_locator): Change type.
975 (tui_locator_win_info_ptr): Change return type.
976 (init_content_element): Remove LOCATOR_WIN case. Add assert.
977 (tui_alloc_content): Add assert.
978
489e9d8b
TT
9792019-06-25 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-winsource.c
982 (tui_exec_info_window::maybe_allocate_content): New method.
983 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
984 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
985 (make_source_or_disasm_window): Add cast.
986 * tui/tui-data.h (union tui_which_element) <simple_string>:
987 Remove.
988 (struct tui_source_info): New.
989 (struct tui_source_window_base) <execution_info>: Change type.
990 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
991 case, and add assert.
992 (tui_alloc_content): Add assert.
993
c3fabb7d
TT
9942019-06-25 Tom Tromey <tom@tromey.com>
995
996 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
997 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
998 * tui/tui-data.c (tui_alloc_win_info): Remove.
999
bbc228ee
TT
10002019-06-25 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
1003 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
1004 can_highlight.
1005
5fcee43a
TT
10062019-06-25 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
1009 make_visible_with_new_height method.
1010 (tui_win_info::make_visible_with_new_height): New method.
1011 (tui_source_window_base::do_make_visible_with_new_height)
1012 (tui_data_window::do_make_visible_with_new_height)
1013 (tui_cmd_window::do_make_visible_with_new_height): New methods.
1014 (make_visible_with_new_height): Remove.
1015 (tui_resize_all, tui_adjust_win_heights): Use
1016 make_visible_with_new_height method.
1017 * tui/tui-data.h (struct tui_win_info)
1018 <do_make_visible_with_new_height, make_visible_with_new_height>:
1019 New methods.
1020 (struct tui_source_window_base, struct tui_data_window)
1021 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
1022 methods.
1023
d83f1fe6
TT
10242019-06-25 Tom Tromey <tom@tromey.com>
1025
1026 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
1027 method.
1028 (update_tab_width): Call update_tab_width method.
1029 * tui/tui-data.h (struct tui_win_info)
1030 (struct tui_source_window_base) <update_tab_width>: New methods.
1031
17374de4
TT
10322019-06-25 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
1035 parameter.
1036 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
1037 parameter.
1038 (tui_gen_win_info::make_visible): Update.
1039 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
1040 parameter.
1041 * tui/tui-data.h (enum tui_box): New enum.
1042 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
1043
f936bca2
TT
10442019-06-25 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-layout.c (make_source_or_disasm_window): Always use
1047 init_and_make_win for EXEC_INFO_WIN.
1048 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
1049 longer inline.
1050 (struct tui_win_info) <~tui_win_info>: Inline.
1051 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1052 Don't declare.
1053 * tui/tui-data.c (source_win, disasm_win): Remove globals.
1054 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1055 Remove.
1056 (tui_initialize_static_data): Update.
1057 (~tui_gen_win_info): Handle more cleanup here.
1058 (~tui_source_window_base): Delete "execution_info".
1059 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
1060
d6ba6a11
TT
10612019-06-25 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-layout.c (make_command_window): Don't set
1064 can_highlight.
1065 (show_source_disasm_command): Call the reset method.
1066 (show_data): Don't set can_highlight. Call the reset method.
1067 (tui_gen_win_info::reset): Rename from init_gen_win_info
1068 (init_and_make_win): Simplify. Return tui_gen_win_info.
1069 (show_source_or_disasm_and_command): Call the reset method.
1070 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
1071 (struct tui_cmd_window): Set can_highlight.
1072
48a3bd16
TT
10732019-06-25 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
1076 from make_visible.
1077 (tui_make_visible, tui_make_invisible): Rewrite.
1078 (tui_win_info::make_visible): Remove.
1079 (tui_source_window_base::make_visible): Update.
1080 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
1081 method. Moved from...
1082 (struct tui_win_info) <make_visible>: ...here.
1083
c3bd716f
TT
10842019-06-25 Tom Tromey <tom@tromey.com>
1085
1086 * tui/tui-winsource.c
1087 (tui_source_window_base::do_scroll_horizontal): Remove direction
1088 parameter.
1089 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
1090 direction parameter.
1091 * tui/tui-win.c (tui_win_info::forward_scroll)
1092 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1093 (tui_win_info::right_scroll): Update.
1094 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
1095 direction parameter.
1096 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
1097 direction parameter.
1098 * tui/tui-data.h (enum tui_scroll_direction): Remove.
1099 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
1100 Remove direction parameter.
1101 (struct tui_source_window_base, struct tui_source_window)
1102 (struct tui_disasm_window, struct tui_data_window)
1103 (struct tui_cmd_window): Update.
1104
21c32dca
TT
11052019-06-25 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-winsource.h (tui_set_exec_info_content)
1108 (tui_show_exec_info_content, tui_erase_exec_info_content)
1109 (tui_clear_exec_info_content, tui_update_exec_info): Change
1110 argument to tui_source_window_base.
1111 * tui/tui-winsource.c (tui_set_exec_info_content)
1112 (tui_show_exec_info_content, tui_erase_exec_info_content)
1113 (tui_clear_exec_info_content, tui_update_exec_info): Change
1114 argument to tui_source_window_base.
1115
73fbdc65
TT
11162019-06-25 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
1119 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
1120
33325343
TT
11212019-06-25 Tom Tromey <tom@tromey.com>
1122
1123 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
1124 check.
1125
29d2c474
TT
11262019-06-25 Tom Tromey <tom@tromey.com>
1127
1128 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
1129 type to void.
1130 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
1131 type to void.
1132 * tui/tui-source.c (tui_set_source_content): Update.
1133 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1134
152f3f4b
TT
11352019-06-25 Tom Tromey <tom@tromey.com>
1136
1137 * tui/tui-win.c (window_name_completer, tui_set_focus)
1138 (tui_all_windows_info): Use name method.
1139 * tui/tui-data.h (struct tui_gen_win_info)
1140 (struct tui_source_window, struct tui_disasm_window)
1141 (struct tui_data_window, struct tui_cmd_window) <name>: New
1142 method.
1143 (tui_win_name): Don't declare.
1144 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
1145 (tui_win_name): Remove.
1146
be4da588
TT
11472019-06-25 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-winsource.h (tui_update_source_window)
1150 (tui_update_source_window_as_is): Change parameter type.
1151 * tui/tui-winsource.c (tui_update_source_window): Change win_info
1152 to be a tui_source_window_base.
1153 (tui_update_source_window_as_is): Likewise.
1154 * tui/tui-win.c (make_visible_with_new_height): Update.
1155
5b81daba
TT
11562019-06-25 Tom Tromey <tom@tromey.com>
1157
1158 * tui/tui-winsource.c (tui_erase_source_content)
1159 (tui_show_source_content, tui_show_exec_info_content)
1160 (tui_erase_exec_info_content): Use refresh_window method.
1161 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
1162 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
1163 from tui_refresh_win.
1164 (tui_data_window::refresh_window): New method.
1165 (tui_win_info::refresh, tui_source_window_base::refresh)
1166 (tui_refresh_all): Use refresh_window method.
1167 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
1168 method.
1169 * tui/tui-regs.c (tui_display_register): Call refresh_window
1170 method.
1171 * tui/tui-layout.c (show_source_disasm_command)
1172 (show_source_or_disasm_and_command): Call refresh_window method.
1173 * tui/tui-data.h (struct tui_gen_win_info)
1174 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
1175 New method.
1176
cb2ce893
TT
11772019-06-25 Tom Tromey <tom@tromey.com>
1178
1179 * tui/tui.c (tui_rl_other_window, tui_enable)
1180 (tui_is_window_visible, tui_get_command_dimension): Update.
1181 * tui/tui-winsource.c (tui_update_source_window_as_is)
1182 (tui_clear_source_content, tui_erase_source_content)
1183 (tui_show_source_line, tui_source_window_base::refill)
1184 (tui_source_window_base::do_scroll_horizontal)
1185 (tui_source_window_base::set_is_exec_point_at)
1186 (tui_update_breakpoint_info, tui_set_exec_info_content)
1187 (tui_alloc_source_buffer, tui_line_is_displayed)
1188 (tui_addr_is_displayed): Update.
1189 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1190 (tui_check_and_display_highlight_if_needed)
1191 (tui_win_info::make_visible, tui_win_info::refresh)
1192 (tui_refresh_all): Update.
1193 * tui/tui-windata.c (tui_first_data_item_displayed)
1194 (tui_delete_data_content_windows, tui_erase_data_content)
1195 (tui_display_all_data, tui_data_window::refresh_all)
1196 (tui_check_data_values): Update.
1197 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
1198 (tui_set_win_focus_to, tui_win_info::forward_scroll)
1199 (tui_win_info::backward_scroll, tui_refresh_all_win)
1200 (tui_resize_all, tui_set_focus, tui_all_windows_info)
1201 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
1202 (tui_source_window_base::set_new_height)
1203 (tui_data_window::set_new_height)
1204 (make_invisible_and_set_new_height)
1205 (make_visible_with_new_height, new_height_ok)
1206 (parse_scrolling_args): Update.
1207 * tui/tui-stack.c (tui_show_frame_info): Update.
1208 * tui/tui-source.c (tui_set_source_content)
1209 (tui_set_source_content_nil, tui_source_is_displayed)
1210 (tui_source_window::do_scroll_vertical): Update.
1211 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1212 (tui_display_registers_from, tui_display_reg_element_at_line)
1213 (tui_check_register_values, tui_reg_command): Update.
1214 * tui/tui-layout.c (tui_default_win_height)
1215 (show_source_disasm_command, show_data, init_and_make_win)
1216 (show_source_or_disasm_and_command): Update.
1217 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1218 (tui_redisplay_readline, tui_mld_flush)
1219 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
1220 (tui_getc): Update.
1221 * tui/tui-disasm.c (tui_set_disassem_content)
1222 (tui_disasm_window::do_scroll_vertical): Update.
1223 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
1224 Now virtual.
1225 (struct tui_win_info): Derive from tui_gen_win_info.
1226 <~tui_win_info>: Mark as override.
1227 <generic>: Remove member.
1228 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
1229 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
1230 (~tui_data_window, ~tui_win_info)
1231 (tui_free_all_source_wins_content): Update.
1232 * tui/tui-command.c (tui_refresh_cmd_win): Update.
1233
ab313b35
TT
12342019-06-25 Tom Tromey <tom@tromey.com>
1235
1236 * tui/tui-layout.c (init_and_make_win): Use new.
1237 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
1238 destructor, initializers.
1239 (tui_alloc_generic_win_info): Don't declare.
1240 * tui/tui-data.c (_locator): Add argument to constructor.
1241 (source_win, disasm_win): New globals.
1242 (exec_info): Remove.
1243 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1244 Update.
1245 (tui_alloc_generic_win_info): Remove.
1246 (init_content_element): Use new.
1247 (tui_win_info::tui_win_info): Update.
1248 (free_content_elements) <case DATA_WIN>: Use delete.
1249
dc2c33e4
TT
12502019-06-25 Tom Tromey <tom@tromey.com>
1251
1252 * tui/tui-wingeneral.c (tui_refresh_win): Update.
1253 * tui/tui-windata.c (tui_first_data_item_displayed)
1254 (tui_delete_data_content_windows): Update.
1255 * tui/tui-win.c (tui_data_window::set_new_height): Update.
1256 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1257 (tui_display_registers_from, tui_check_register_values): Update.
1258 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
1259 pointer.
1260 * tui/tui-data.c (init_content_element): Update. Allocate the new
1261 window.
1262 (tui_free_data_content): Update.
1263 (free_content_elements) <case DATA_WIN>: Free the window.
1264
214a5cbe
TT
12652019-06-25 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
1268 Update.
1269 * tui/tui-layout.c (make_command_window)
1270 (show_source_disasm_command, show_data, init_and_make_win)
1271 (show_source_or_disasm_and_command): Update.
1272 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
1273 method.
1274 <can_highight, is_highlighted>: Now bool.
1275 (tui_set_win_highlight): Don't declare.
1276 * tui/tui-data.c (tui_set_win_highlight): Remove.
1277
8e2daf15
TT
12782019-06-25 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-wingeneral.c (make_visible): Remove check of window
1281 type.
1282
8903bd8a
TT
12832019-06-25 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-win.c (tui_win_info::max_height)
1286 (tui_cmd_window::max_height): New methods.
1287 (new_height_ok): Call max_height.
1288 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
1289 <max_height>: New method.
1290
3f02ce1e
TT
12912019-06-25 Tom Tromey <tom@tromey.com>
1292
1293 * tui/tui-win.c (tui_source_window_base::set_new_height)
1294 (tui_data_window::set_new_height): New methods.
1295 (make_invisible_and_set_new_height): Call set_new_height method.
1296 * tui/tui-data.h (struct tui_win_info)
1297 (struct tui_source_window_base, struct tui_data_window)
1298 <set_new_height>: New method.
1299
1825f487
TT
13002019-06-25 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
1303 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
1304 tui_refresh_data_win.
1305 * tui/tui-win.c (tui_source_window_base::refresh_all): New
1306 method.
1307 (tui_refresh_all_win): Call the refresh_all method.
1308 (tui_set_focus): Likewise.
1309 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
1310 (struct tui_source_window_base, struct tui_data_window) <refresh>:
1311 Likewise.
1312
ad54d15b
TT
13132019-06-25 Tom Tromey <tom@tromey.com>
1314
1315 * tui/tui-winsource.h (tui_refill_source_window)
1316 (tui_set_is_exec_point_at): Don't declare.
1317 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1318 (tui_source_window_base::refill): Rename from
1319 tui_refill_source_window.
1320 (tui_source_window_base::do_scroll_horizontal): Update.
1321 (tui_source_window_base::set_is_exec_point_at): Rename from
1322 tui_set_is_exec_point_at.
1323 (tui_update_all_breakpoint_info): Update.
1324 * tui/tui-stack.c (tui_show_frame_info): Update.
1325 * tui/tui-layout.c (show_data): Add cast.
1326 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
1327 * tui/tui-data.h (struct tui_source_window_base) <refill,
1328 set_is_exec_point_at>: New methods.
1329 (tui_source_windows, tui_add_to_source_windows): Update types.
1330 (tui_add_to_source_windows): Remove redundant declaration.
1331 * tui/tui-data.c (source_windows): Store tui_source_window_base.
1332 (tui_source_windows): Change return type.
1333 (tui_clear_source_windows_detail): Update.
1334 (tui_add_to_source_windows): Change type of parameter.
1335 (tui_free_all_source_wins_content): Update.
1336
2042b506
TT
13372019-06-25 Tom Tromey <tom@tromey.com>
1338
1339 * tui/tui-wingeneral.c (tui_win_info::refresh)
1340 (tui_source_window_base::refresh): New methods.
1341 (tui_refresh_all): Call the refresh method.
1342 * tui/tui-data.h (struct tui_win_info)
1343 (struct tui_source_window_base) <refresh>: New method.
1344
56122977
TT
13452019-06-25 Tom Tromey <tom@tromey.com>
1346
1347 * tui/tui.h (tui_is_window_visible): Return bool.
1348 * tui/tui.c (tui_is_window_visible): Return bool.
1349 * tui/tui-wingeneral.c (tui_make_window, make_visible)
1350 (tui_make_visible, tui_make_invisible)
1351 (tui_win_info::make_visible)
1352 (tui_source_window_base::make_visible, make_all_visible)
1353 (tui_make_all_visible, tui_make_all_invisible): Update.
1354 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
1355 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
1356 bool.
1357 (struct tui_win_info, struct tui_source_window_base)
1358 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
1359 * tui/tui-data.c (tui_init_generic_part): Update.
1360
cda37efb
TT
13612019-06-25 Tom Tromey <tom@tromey.com>
1362
1363 * tui/tui-wingeneral.c (tui_win_info::make_visible)
1364 (tui_source_window_base::make_visible): New methods.
1365 (make_all_visible): Make method call.
1366 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
1367 (struct tui_source_window_base, struct tui_cmd_window): Override
1368 make_visible.
1369 (tui_win_is_source_type): Don't declare.
1370 * tui/tui-data.c (tui_win_is_source_type): Remove.
1371
6a0ee02c
TT
13722019-06-25 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
1375 NULL check.
1376
63901aec
TT
13772019-06-25 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
1380 Inline constructor. Add initializers for members.
1381 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
1382 constructors; now inline in class.
1383
ceb13a13
TT
13842019-06-25 Tom Tromey <tom@tromey.com>
1385
1386 * tui/tui-regs.c (tui_show_registers): Update.
1387 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
1388 bool.
1389 * tui/tui-data.c (tui_data_window::clear_detail)
1390 (tui_data_window): Update.
1391
238eb706
TT
13922019-06-25 Tom Tromey <tom@tromey.com>
1393
1394 * tui/tui-windata.c (tui_display_all_data)
1395 (tui_display_data_from_line, tui_display_data_from)
1396 (tui_check_data_values, tui_data_window::do_scroll_vertical):
1397 Update.
1398 * tui/tui-regs.c (tui_last_regs_line_no)
1399 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
1400 (tui_show_registers, tui_show_register_group)
1401 (tui_display_registers_from, tui_display_reg_element_at_line)
1402 (tui_display_registers_from_line, tui_check_register_values)
1403 (tui_reg_next, tui_reg_prev): Update.
1404 * tui/tui-layout.c (tui_set_layout, show_data): Update.
1405 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
1406 tui_data_window.
1407 (struct tui_win_info) <detail>: Remove. Add new fields from
1408 tui_data_info.
1409 (TUI_DATA_WIN): Add cast.
1410 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
1411 (~tui_data_window): Simplify.
1412
81491aa0
TT
14132019-06-25 Tom Tromey <tom@tromey.com>
1414
1415 * tui/tui-layout.c (show_source_disasm_command)
1416 (show_source_or_disasm_and_command): Update.
1417 * tui/tui-io.c (update_cmdwin_start_line)
1418 (tui_redisplay_readline): Update.
1419 * tui/tui-data.h (struct tui_command_info): Remove.
1420 (struct tui_win_info) <detail>: Remove command_info member.
1421 (struct tui_data_window) <start_line>: New member, from
1422 tui_command_info.
1423 (TUI_CMD_WIN): Add casts.
1424
e6e41501
TT
14252019-06-25 Tom Tromey <tom@tromey.com>
1426
1427 * tui/tui-winsource.c (tui_update_source_window)
1428 (tui_refill_source_window)
1429 (tui_source_window_base::do_scroll_horizontal)
1430 (tui_update_breakpoint_info, tui_set_exec_info_content)
1431 (tui_show_exec_info_content, tui_erase_exec_info_content)
1432 (tui_clear_exec_info_content): Update.
1433 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
1434 Update.
1435 * tui/tui-win.c (make_invisible_and_set_new_height)
1436 (make_visible_with_new_height): Update.
1437 * tui/tui-source.c (tui_set_source_content)
1438 (tui_show_symtab_source): Update.
1439 * tui/tui-layout.c (extract_display_start_addr)
1440 (show_source_disasm_command, show_data)
1441 (make_source_or_disasm_window)
1442 (show_source_or_disasm_and_command): Update.
1443 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
1444 (tui_disasm_window::do_scroll_vertical): Remove shadowing
1445 "gdbarch".
1446 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
1447 to tui_source_window_base.
1448 (struct tui_win_info) <detail>: Remove source_info member.
1449 (struct tui_source_window_base) <has_locator>: Inline.
1450 Move contents from tui_source_info; rename has_locator member to
1451 m_has_locator.
1452 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
1453 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
1454 header file.
1455 (tui_source_window_base::clear_detail, ~tui_source_window_base):
1456 Simplify.
1457 (tui_free_all_source_wins_content): Cast to
1458 tui_source_window_base.
1459
44f0e208
TT
14602019-06-25 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-win.c (make_invisible_and_set_new_height)
1463 (make_visible_with_new_height): Call has_locator method.
1464 * tui/tui-layout.c (show_source_disasm_command, show_data)
1465 (show_source_or_disasm_and_command): Update for bool change.
1466 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
1467 (tui_win_info) <has_locator>: New method.
1468 (struct tui_source_window_base) <has_locator>: New method.
1469 (tui_win_has_locator): Don't declare.
1470 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
1471 from tui_win_has_locator.
1472 (tui_source_window_base): Use false, not FALSE.
1473
7778b912
TT
14742019-06-25 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
1477 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
1478 clear_detail method directly.
1479 (tui_clear_win_detail): Remove.
1480
f83d391c
TT
14812019-06-25 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
1484 "this", not TUI_DISASM_WIN.
1485
13446e05
TT
14862019-06-25 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
1489 declare.
1490 * tui/tui-winsource.c
1491 (tui_source_window_base::do_scroll_horizontal): Rename from
1492 tui_horizontal_source_scroll.
1493 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
1494 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
1495 from tui_vertical_data_scroll.
1496 * tui/tui-win.h (tui_scroll): Don't declare.
1497 * tui/tui-win.c (tui_win_info::forward_scroll)
1498 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1499 (tui_win_info::right_scroll): Rename and update.
1500 (tui_scroll_forward_command, tui_scroll_backward_command)
1501 (tui_scroll_left_command, tui_scroll_right_command): Update.
1502 (tui_scroll): Remove.
1503 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
1504 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
1505 from tui_vertical_source_scroll.
1506 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
1507 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
1508 from tui_vertical_disassem_scroll.
1509 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
1510 do_scroll_horizontal>: New methods.
1511 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
1512 Likewise.
1513 (struct tui_source_window_base): Add do_scroll_horizontal.
1514 (struct tui_source_window, struct tui_disasm_window): Add
1515 do_scroll_vertical.
1516 (struct tui_data_window, struct tui_cmd_window): Add
1517 do_scroll_horizontal and do_scroll_vertical.
1518 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
1519
5cf82909
TT
15202019-06-25 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-data.h (struct tui_source_window_base): New struct.
1523 (struct tui_source_window): Derive from tui_source_window_base.
1524 (struct tui_disasm_window): New struct.
1525 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
1526 from tui_source_window::clear_detail.
1527 (tui_source_window_base): Rename from tui_source_window.
1528 (~tui_source_window_base): Rename from ~tui_source_window.
1529 (tui_alloc_win_info): Create a tui_disasm_window.
1530
ee1d42d6
TT
15312019-06-25 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-data.h (struct tui_source_window)
1534 (struct tui_data_window): Declare destructors.
1535 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
1536 destructors.
1537 (tui_win_info): Simplify.
1538
b4eb2452
TT
15392019-06-25 Tom Tromey <tom@tromey.com>
1540
1541 * tui/tui-winsource.c (tui_display_main)
1542 (tui_update_source_windows_with_addr)
1543 (tui_update_all_breakpoint_info): Update.
1544 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1545 (new_height_ok, parse_scrolling_args): Update.
1546 * tui/tui-stack.c (tui_show_frame_info): Update.
1547 * tui/tui-data.h (struct tui_list): Remove.
1548 (tui_source_windows): Return a reference to a std::vector.
1549 * tui/tui-data.c (source_windows): Now a std::vector.
1550 (tui_source_windows): Change return type.
1551 (tui_clear_source_windows): Rewrite.
1552 (tui_clear_source_windows_detail, tui_add_to_source_windows)
1553 (tui_free_all_source_wins_content): Rewrite.
1554
8761a91b
TT
15552019-06-25 Tom Tromey <tom@tromey.com>
1556
1557 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
1558 (struct tui_data_window, struct tui_cmd_window): Declare
1559 clear_detail method.
1560 * tui/tui-data.c (tui_source_window::clear_detail)
1561 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
1562 methods.
1563 (tui_clear_win_detail): Simplify.
1564
0ed69eda
TT
15652019-06-25 Tom Tromey <tom@tromey.com>
1566
1567 * tui/tui-layout.c (make_source_window, make_disasm_window)
1568 (make_source_or_disasm_window): Remove win_info_ptr parameter.
1569 Return the new window.
1570 (show_source_disasm_command, show_data)
1571 (show_source_or_disasm_and_command): Update.
1572
82432e10
TT
15732019-06-25 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
1576 parameter. Return the new window.
1577 (show_source_disasm_command): Update and remove NULL check.
1578 (show_source_or_disasm_and_command): Update.
1579
ec328aa5
TT
15802019-06-25 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
1583
33b906ab
TT
15842019-06-25 Tom Tromey <tom@tromey.com>
1585
1586 * tui/tui-data.h (struct tui_win_info): Make constructor
1587 protected. Make destructor virtual. Add initializers.
1588 (tui_source_window, tui_data_window, tui_cmd_window): New
1589 classes.
1590 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
1591 constructor. Add "type" parameter.
1592 (tui_source_window, tui_data_window, tui_cmd_window): New
1593 constructors.
1594 (tui_alloc_win_info): Instantiate the appropriate subclass.
1595
e7e11af4
TT
15962019-06-25 Tom Tromey <tom@tromey.com>
1597
1598 * tui/tui-win.c (tui_resize_all): Use delete.
1599 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
1600 destructor.
1601 (tui_free_window): Don't declare.
1602 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
1603 Update.
1604
6792b55e
TT
16052019-06-25 Tom Tromey <tom@tromey.com>
1606
1607 * tui/tui-data.h (struct tui_win_info): Add constructor.
1608 * tui/tui-data.c (tui_alloc_win_info): Use new.
1609 (tui_free_window): Use delete.
1610
f95675e1
TT
16112019-06-22 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
1614 declare.
1615 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
1616
5bff081c
TT
16172019-06-22 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
1620 declare.
1621 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
1622
47e3f474
TV
16232019-06-22 Tom de Vries <tdevries@suse.de>
1624
1625 * dwarf2read.c (create_addrmap_from_aranges)
1626 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
1627 instead of '%zu'.
1628
fd5866f6
SM
16292019-06-21 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * dwarf2read.h (dwarf2_section_info_def): Remove.
1632 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
1633 * dwarf2read.c (struct dwo_sections) <types>: Change type to
1634 std::vector<dwarf2_section_info>.
1635 (struct dwo_file) <~dwo_file>: Remove.
1636 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
1637 types field.
1638 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
1639 (dwarf2_read_debug_names): Likewise.
1640 (create_debug_types_hash_table): Change parameter type to
1641 array_view, adjust code accordingly.
1642 (dwarf2_locate_dwo_sections): Adjust to std::vector.
1643 (partial_die_info::fixup): Likewise.
1644 (determine_prefix): Likewise.
1645 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
1646
fb1eb2f9
SM
16472019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1648
1649 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
1650 gdb_bfd_ref_ptr.
1651 <~dwo_file>: Remove call to gdb_bfd_unref.
1652 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
1653 gdb_bfd_ref_ptr::get.
1654
51ac9db5
SM
16552019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1656
1657 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
1658 type to htab_up.
1659 * dwarf2read.c (struct dwo_file): Initialize fields.
1660 <~dwo_file>: New.
1661 (free_dwo_file): Remove, move content to ~dwo_file.
1662 (struct dwo_file_deleter): Remove.
1663 (dwo_file_up>: Remove custom deleter.
1664 (free_dwo_files): Remove.
1665 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
1666 dwo_files.
1667 (process_skeletonless_type_units): Call unique_ptr::get.
1668 (allocate_dwo_file_hash_table): Add deleter to created hash
1669 table. Change return type to htab_up.
1670 (lookup_dwo_file_slot): Don't memset dwo_file, call
1671 unique_ptr::get.
1672 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
1673 (create_dwo_unit_in_dwp_v2): Likewise.
1674 (open_and_init_dwo_file): Likewise.
1675 (free_dwo_file_from_slot): Remove.
1676
dc4ccb6f
SM
16772019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * dwarf2read.h (struct dwarf2_section_info) <readin,
1680 is_virtual>: Change type to bool.
1681 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
1682 true instead of 1.
1683
e6a1c5cb
TT
16842019-06-19 Tom Tromey <tom@tromey.com>
1685
1686 * tui/tui-data.h (tui_init_content_element): Don't declare.
1687
6f6ffbeb
TT
16882019-06-19 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-data.h (tui_init_win_info): Don't declare.
1691
f23f598e
TV
16922019-06-19 Tom de Vries <tdevries@suse.de>
1693
1694 * dwarf2read.h (abstract_to_concrete): Change type to
1695 std::unordered_map<sect_offset, std::vector<sect_offset>,
1696 gdb::hash_enum<sect_offset>>.
1697
680e1bee
TT
16982019-06-19 Tom Tromey <tromey@adacore.com>
1699
1700 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
1701 EVAL_AVOID_SIDE_EFFECTS specially.
1702
dcf37923
TT
17032019-06-19 Tom Tromey <tromey@adacore.com>
1704
1705 * source-cache.c (highlighter): New global.
1706 (source_cache::get_source_lines): Create a highlighter on demand.
1707
494986d5
AB
17082019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
1709
1710 * defs.h (deprecated_interactive_hook): Delete declaration.
1711 * interps.c (clear_interpreter_hooks): Remove use of
1712 deprecated_interactive_hook.
1713 * top.c (deprecated_interactive_hook): Delete definition.
1714 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
1715
3360b6e7
TV
17162019-06-18 Tom de Vries <tdevries@suse.de>
1717
1718 PR gdb/24515
1719 * dwarf2read.h (abstract_to_concrete): Change type from
1720 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
1721 std::unordered_map<sect_offset, std::vector<sect_offset>>.
1722 * dwarf2read.c (read_variable): Update.
1723 (dwarf2_fetch_die_loc_sect_off): Update.
1724
310b3441
TV
17252019-06-17 Tom de Vries <tdevries@suse.de>
1726
1727 PR gdb/24617
1728 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
1729 accessing parent[parent_len - 1].
1730
ba9777be
PP
17312019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
1732
1733 PR gdb/24364
1734 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
1735 call dtrace_process_dof with NULL dof.
1736
2b9f6e89
TV
17372019-06-16 Tom de Vries <tdevries@suse.de>
1738
1739 PR gdb/24445
1740 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
1741
431b3ead
TT
17422019-06-16 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1745 (make_all_visible): Use address of member.
1746
d04b44a1
TT
17472019-06-16 Tom Tromey <tom@tromey.com>
1748
1749 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
1750 (tui_free_window, free_content, free_content_elements): Remove
1751 unnecessary cast.
1752 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
1753 cast.
1754 * tui/tui-regs.c (tui_show_register_group)
1755 (tui_display_registers_from, tui_display_reg_element_at_line):
1756 Remove unnecessary cast.
1757
bf5142e7
AB
17582019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * linux-nat.c (normal_mask): Delete.
1761 (_initialize_linux_nat): Don't initialise normal_mask.
1762
c4973306
SM
17632019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 PR gdb/24445
1766 * dwarf-index-write.h (write_psymtabs_to_index): Add
1767 dwz_basename parameter.
1768 * dwarf-index-write.c (write_gdbindex): Move file writing to
1769 write_gdbindex_1. Change return type void.
1770 (assert_file_size): Move up, remove filename parameter.
1771 (write_gdbindex_1): New function.
1772 (write_debug_names): Change return type to void, call
1773 assert_file_size.
1774 (struct index_wip_file): New struct.
1775 (write_psymtabs_to_index): Add dwz_basename parameter. Move
1776 file logic to index_wip_file. Write index for dwz file if
1777 needed.
1778 (save_gdb_index_command): Pass basename of dwz file, if present.
1779 * dwarf-index-cache.c (index_cache::store): Obtain and pass
1780 build-id of dwz file, if present.
1781 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
1782 (dwarf2_get_dwz_file): Likewise.
1783 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
1784 (dwarf2_get_dwz_file): Likewise.
1785
395f9c91
TT
17862019-06-16 Tom Tromey <tom@tromey.com>
1787
1788 * coffread.c (process_coff_symbol): Use xstrdup.
1789 * value.c (create_internalvar): Use xstrdup.
1790
cafb3438
TT
17912019-06-16 Tom Tromey <tom@tromey.com>
1792
1793 * valops.c (value_cast, value_slice): Remove unnecessary cast.
1794 * breakpoint.c (stopin_command, stopat_command)
1795 (until_break_command, decode_location_default): Remove unnecessary
1796 cast.
1797 * utils.c (subset_compare): Remove unnecessary cast.
1798 * ada-lang.c (ada_update_initial_language): Remove unnecessary
1799 cast.
1800 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
1801 cast.
1802 * infcmd.c (path_command): Remove unnecessary cast.
1803 * coffread.c (decode_type): Remove unnecessary cast.
1804 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
1805 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
1806 * tui/tui-stack.c (tui_show_locator_content)
1807 (tui_show_frame_info): Remove unnecessary cast.
1808 * tui/tui-win.c (tui_scroll_forward_command)
1809 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
1810 (parse_scrolling_args): Remove unnecessary cast.
1811 * tui/tui-data.c (init_win_info, tui_del_window)
1812 (tui_free_window, tui_del_data_windows, tui_free_data_content)
1813 (free_content_elements): Remove unnecessary cast.
1814 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
1815 unnecessary cast.
1816 * tui/tui-source.c (tui_set_source_content)
1817 (tui_vertical_source_scroll): Remove unnecessary cast.
1818 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
1819 cast.
1820 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
1821 * tui/tui-regs.c (tui_display_registers_from)
1822 (tui_display_register): Remove unnecessary cast.
1823 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
1824 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
1825 (make_visible): Remove unnecessary cast.
1826 * tui/tui-winsource.c (tui_erase_source_content)
1827 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
1828 unnecessary cast.
1829 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
1830 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
1831 * stabsread.c (read_type, read_array_type, read_range_type):
1832 Remove unnecessary cast.
1833 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
1834 (parse_symbol, parse_type, upgrade_type, parse_external)
1835 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
1836 unnecessary cast.
1837 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
1838
730ead81
TT
18392019-06-16 Tom Tromey <tom@tromey.com>
1840
1841 * tui/tui-data.c (tui_alloc_generic_win_info)
1842 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
1843 checks.
1844
584a927c
AB
18452019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
1846 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * f-typeprint.c (f_print_type): Don't return early for not
1849 associated or not allocated types.
1850 (f_type_print_varspec_suffix): Add print_rank parameter and print
1851 ranks of array types in case they dangling.
1852 (f_type_print_base): Add print_rank parameter.
1853
30056ea0
AB
18542019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * NEWS: Mention new MI commands.
1857 * break-catch-throw.c (enum exception_event_kind): Move to
1858 breakpoint.h.
1859 (print_mention_exception_catchpoint): Output text as a single
1860 message.
1861 (catch_exception_command_1): Rename to...
1862 (catch_exception_event): ...this, make non-static, update header
1863 command, and change some parameter types.
1864 (catch_catch_command): Update for changes to
1865 catch_exception_command_1.
1866 (catch_throw_command): Likewise.
1867 (catch_rethrow_command): Likewise.
1868 * breakpoint.c (enum exception_event_kind): Delete.
1869 * breakpoint.h (enum exception_event_kind): Moved here from
1870 break-catch-throw.c.
1871 (catch_exception_event): Declare.
1872 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
1873 (mi_cmd_catch_throw): New function.
1874 (mi_cmd_catch_rethrow): New function.
1875 (mi_cmd_catch_catch): New function.
1876 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
1877 'catch-catch' entries.
1878 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
1879 (mi_cmd_catch_rethrow): Declare.
1880 (mi_cmd_catch_catch): Declare.
1881
ec8e2b6d
AB
18822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * annotate.c (annotate_source_line): Change return type to void,
1885 update implementation to match.
1886 * annotate.h (annotate_source_line): Change return type to void,
1887 update header comment.
1888 * stack.c (print_frame_info): Don't change what frame information
1889 is printed based on whether annotations are on or not.
1890
0d3abd8c
AB
18912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
1894 (annotate_source): Make static.
1895 (annotate_source_line): Moved from source.c and renamed from
1896 identify_source_line. Update the return type.
1897 * annotate.h (annotate_source): Delete declaration.
1898 (annotate_source_line): Declaration moved from source.h, and
1899 renamed from identify_source_line. Return type updated.
1900 * source.c (identify_source_line): Moved to annotate.c and renamed
1901 to annotate_source_line.
1902 (info_line_command): Remove check of annotation_level.
1903 * source.h (identify_source_line): Move declaration to annotate.h
1904 and rename to annotate_source_line.
1905 * stack.c: Add 'annotate.h' include.
1906 (print_frame_info): Remove check of annotation_level before
1907 calling annotate_source_line.
1908
00df30ae
AB
19092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * source-cache.c (source_cache::get_plain_source_lines): Use
1912 open_source_file_with_line_charpos instead of just
1913 open_source_file, remove call to find_source_lines.
1914 (source_cache::get_source_lines): Likewise.
1915 * source.c (find_source_lines): Make static.
1916 (get_filename_and_charpos): Renamed into...
1917 (open_source_file_with_line_charpos): ..this along with changes to
1918 return a scoped_fd, and some other minor clean ups.
1919 (identify_source_line): Use open_source_file_with_line_charpos.
1920 (search_command_helper): Use open_source_file_with_line_charpos
1921 instead of just open_source_file, remove call to
1922 find_source_lines.
1923 * source.h (open_source_file_with_line_charpos): Declare new
1924 function.
1925 (find_source_lines): Delete declaration.
1926
afda45a2
AB
19272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * source.c (get_filename_and_charpos): Remove fullname
1930 parameter.
1931 (identify_source_line): Update call to get_filename_and_charpos.
1932
0735b091
TT
19332019-06-14 Tom Tromey <tromey@adacore.com>
1934
1935 PR gdb/24502:
1936 * ui-style.h (skip_ansi_escape): Update comment.
1937 * ui-file.h (class no_terminal_escape_file): New class.
1938 * ui-file.c (no_terminal_escape_file::write)
1939 (no_terminal_escape_file::puts): New methods.
1940 * cli/cli-logging.c (handle_redirections): Use
1941 no_terminal_escape_file.
1942
52ce35e2
TT
19432019-06-14 Tom Tromey <tromey@adacore.com>
1944
1945 * NEWS: Move convenience variable news above Python news.
1946
73cc7272
TT
19472019-06-14 Tom Tromey <tom@tromey.com>
1948
1949 * gnulib: Move directory to top-level.
1950 * configure.ac: Don't configure gnulib.
1951 * configure: Rebuild.
1952 * common/common-defs.h: Use new path to gnulib.
1953 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
1954 (GNULIB_H): Remove.
1955 (INCGNU): Look in new gnulib location.
1956 (HFILES_NO_SRCDIR): Remove gnulib files.
1957 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
1958 (generated_files): Remove GNULIB_H.
1959 ($(LIBGNU), all-lib): Remove targets.
1960 (distclean): Don't mention GNULIB_BUILDDIR.
1961 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
1962
f5686554
TT
19632019-06-14 Tom Tromey <tromey@adacore.com>
1964
1965 * symfile.c (add_symbol_file_command): Remove obsolete comment.
1966 Warn if symbol file does not provide any symbols.
1967
a0c1ffed
TT
19682019-06-14 Tom Tromey <tromey@adacore.com>
1969
1970 * source.c (find_and_open_source): Respect basenames_may_differ.
1971
7c39e397
AB
19722019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * annotate.c (annotate_breakpoints_invalid): Make use of
1975 scoped_restore_terminal_state.
1976 (annotate_frames_invalid): Likewise.
1977
f411722c
TT
19782019-06-14 Tom Tromey <tromey@adacore.com>
1979
1980 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
1981 allow assignment to an internalvar.
1982
4268ec18
TT
19832019-06-14 Tom Tromey <tromey@adacore.com>
1984
1985 * ada-lex.l: Allow "_" in attribute names.
1986
abdb711e
TT
19872019-06-14 Tom Tromey <tromey@adacore.com>
1988
1989 PR gdb/24653:
1990 * regcache.c (registers_changed): Don't call alloca.
1991 * top.c (execute_command): Don't call alloca.
1992
4c048731
PA
19932019-06-13 Pedro Alves <palves@redhat.com>
1994
1995 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
1996 'expression'. When parsing an expression, error out if there's
1997 junk after "unlimited".
1998 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1999 (do_set_command): Adjust calls to is_unlimited_literal.
2000
66eb1ed3
PA
20012019-06-13 Pedro Alves <palves@redhat.com>
2002
2003 * compile/compile.c (make_compile_options_def_group): Add braces
2004 around array_view initializer.
2005 * thread.c (make_thread_apply_all_options_def_group)
2006 (make_thread_apply_all_options_def_group): Likewise.
2007
3345721a
PA
20082019-06-13 Pedro Alves <palves@redhat.com>
2009
2010 * NEWS (New commands): Mention "maint test-options
2011 require-delimiter", "maint test-options unknown-is-error", "maint
2012 test-options unknown-is-operand" and "maint show
2013 test-options-completion-result".
2014 (New command options, command completion): New section.
2015 (Completion improvements): New section.
2016 Mention that you can abbreviate "unlimited".
2017
6206060d
PA
20182019-06-13 Pedro Alves <palves@redhat.com>
2019
2020 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
2021 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
2022 * unittests/cli-utils-selftests.c (test_parse_flags)
2023 (test_parse_flags_qcs): Delete.
2024 (test_cli_utils): Don't call deleted functions.
2025
6665660a
PA
20262019-06-13 Pedro Alves <palves@redhat.com>
2027
2028 * thread.c: Include "cli/cli-option.h".
2029 (tp_array_compar_ascending): Global.
2030 (tp_array_compar): Delete function.
2031 (tp_array_compar_ascending, tp_array_compar_descending): New
2032 functions.
2033 (ascending_option_def, qcs_flag_option_def)
2034 (thr_qcs_flags_option_defs)
2035 (make_thread_apply_all_options_def_group)
2036 (make_thread_apply_options_def_group): New.
2037 (thread_apply_all_command): Use gdb::option::process_options.
2038 (thread_apply_command_completer)
2039 (thread_apply_all_command_completer): New.
2040 (thread_apply_command): Use gdb::option::process_options.
2041 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
2042 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
2043 to generate help text of "thread apply". Adjust "taas"'s help.
2044 * tid-parse.c (tid_range_parser::in_thread_range): New method.
2045 * tid-parse.h (tid_range_parser::in_thread_range): New method.
2046
f7e13587
PA
20472019-06-13 Pedro Alves <palves@redhat.com>
2048
2049 * thread.c (thread_apply_command): Check for invalid TID with
2050 isdigit instead of !isalpha.
2051
5d707134
PA
20522019-06-13 Pedro Alves <palves@redhat.com>
2053
2054 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
2055 (validate_flags_qcs): New.
2056 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
2057 (validate_flags_qcs): Declare.
2058 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
2059 (make_frame_apply_options_def_group): New.
2060 (frame_apply_command_count): Process options with
2061 gdb::option::process_options.
2062 (frame_apply_completer): New.
2063 (frame_apply_level_completer, frame_apply_all_completer)
2064 (frame_apply_completer): New.
2065 (_initialize_stack): Update help of "frame apply", "frame apply
2066 level", "frame apply all" and "faas" to mention supported options
2067 and install command completers.
2068 * stack.h (frame_apply_all_completer): Declare.
2069 * thread.c: Include "stack.h".
2070 (tfaas_command): Add "--".
2071 (_initialize_thread): Update help "tfaas" to mention supported
2072 options and install command completer.
2073
272d4594
PA
20742019-06-13 Pedro Alves <palves@redhat.com>
2075
2076 * completer.c (complete_nested_command_line): New.
2077 (gdb_completion_word_break_characters_throw): Add assertion.
2078 * completer.h (complete_nested_command_line): Declare.
2079
90a1ef87
PA
20802019-06-13 Pedro Alves <palves@redhat.com>
2081
2082 * stack.c (parse_backtrace_qualifiers): New.
2083 (backtrace_command): Use it.
2084 (backtrace_command_completer): Complete on qualifiers.
2085
d4c16835
PA
20862019-06-13 Pedro Alves <palves@redhat.com>
2087
2088 * frame.c: Include "cli/cli-option.h.
2089 (user_set_backtrace_options): New.
2090 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
2091 Delete.
2092 (get_prev_frame): Adjust.
2093 (boolean_option_def, uinteger_option_def)
2094 (set_backtrace_option_defs): New.
2095 (_initialize_frame): Adjust and use
2096 gdb::option::add_setshow_cmds_for_options to install "set
2097 backtrace past-main" and "set backtrace past-entry".
2098 * frame.h: Include "cli/cli-option.h".
2099 (struct frame_print_options): Forward declare.
2100 (print_frame_arguments_all, print_frame_arguments_scalars)
2101 (print_frame_arguments_none): Declare.
2102 (print_entry_values): Delete declaration.
2103 (struct frame_print_options, user_frame_print_options): New.
2104 (struct set_backtrace_options): New.
2105 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
2106 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2107 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2108 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
2109 (list_args_or_locals): Add frame_print_options parameter.
2110 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
2111 * python/py-framefilter.c (enumerate_args): Pass down
2112 USER_FRAME_PRINT_OPTIONS.
2113 * stack.c: Include "cli/cli-option.h".
2114 (print_frame_arguments_all, print_frame_arguments_scalars)
2115 (print_frame_arguments_none): Declare.
2116 (print_raw_frame_arguments, print_entry_values): Delete.
2117 (user_frame_print_options): New.
2118 (boolean_option_def, enum_option_def, frame_print_option_defs):
2119 New.
2120 (struct backtrace_cmd_options): New.
2121 (bt_flag_option_def): New.
2122 (backtrace_command_option_defs): New.
2123 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
2124 (print_frame_arg, read_frame_arg, print_frame_args)
2125 (print_frame_info, print_frame): Add frame_print_options parameter
2126 and use it.
2127 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
2128 (backtrace_command_1): Add frame_print_options and
2129 backtrace_cmd_options parameters and use them.
2130 (make_backtrace_options_def_group): New.
2131 (backtrace_command): Process command options with
2132 gdb::option::process_options.
2133 (backtrace_command_completer): New.
2134 (_initialize_stack): Extend "backtrace"'s help to mention
2135 supported options. Install completer for "backtrace".
2136 Install some settings commands with add_setshow_cmds_for_options.
2137
2daf894e
PA
21382019-06-13 Pedro Alves <palves@redhat.com>
2139
2140 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
2141 and that "set/show print raw frame-arguments" are now deprecated.
2142
2143 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
2144 command.
2145 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
2146 * stack.c (_initialize_stack): Install "set/show print
2147 raw-frame-arguments", and deprecate "set/show print raw
2148 frame-arguments".
2149 * valprint.c (_initialize_valprint): Deprecate "set/show print
2150 raw".
2151
e6ed716c
PA
21522019-06-13 Pedro Alves <palves@redhat.com>
2153
2154 * compile/compile.c (struct compile_options): New.
2155 (compile_flag_option_def, compile_command_option_defs)
2156 (make_compile_options_def_group): New.
2157 (compile_file_command): Handle options with
2158 gdb::option::process_options.
2159 (compile_file_command_completer): New function.
2160 (compile_code_command): Handle options with
2161 gdb::option::process_options.
2162 (compile_code_command_completer): New function.
2163 (_initialize_compiler): Install completers for "compile code" and
2164 "compile file". Mention available options in "compile code" and
2165 "compile code"'s help.
2166 * completer.c (advance_to_completion_word): New, factored out from
2167 ...
2168 (advance_to_expression_complete_word_point): ... this.
2169 (advance_to_filename_complete_word_point): New.
2170 * completer.h (advance_to_filename_complete_word_point): New
2171 declaration.
2172
7d8062de
PA
21732019-06-13 Pedro Alves <palves@redhat.com>
2174
2175 * compile/compile.c: Include "cli/cli-option.h".
2176 (compile_print_value): Scope data pointer is now a
2177 value_print_options pointer; adjust.
2178 (compile_print_command): Process options. Scope data pointer is
2179 now a value_print_options pointer; adjust.
2180 (_initialize_compile): Update "compile print"'s help to include
2181 supported options. Install a completer for "compile print".
2182 * cp-valprint.c (show_vtblprint, show_objectprint)
2183 (show_static_field_print): Delete.
2184 (_initialize_cp_valprint): Don't install "set print
2185 static-members", "set print vtbl", "set print object" here.
2186 * printcmd.c: Include "cli/cli-option.h" and
2187 "common/gdb_optional.h".
2188 (print_command_parse_format): Rework to fill in a
2189 value_print_options instead of a format_data.
2190 (print_value): Change parameter type from format_data pointer to
2191 value_print_options reference. Adjust.
2192 (print_command_1): Process options. Adjust to pass down a
2193 value_print_options.
2194 (print_command_completer): New.
2195 (_initialize_printcmd): Install print_command_completer as
2196 handle_brkchars completer for the "print" command. Update
2197 "print"'s help to include supported options.
2198 * valprint.c: Include "cli/cli-option.h".
2199 (show_vtblprint, show_objectprint, show_static_field_print): Moved
2200 here from cp-valprint.c.
2201 (boolean_option_def, uinteger_option_def)
2202 (value_print_option_defs, make_value_print_options_def_group):
2203 New. Use gdb::option::add_setshow_cmds_for_options to install
2204 "set print elements", "set print null-stop", "set print repeats",
2205 "set print pretty", "set print union", "set print array", "set
2206 print address", "set print symbol", "set print array-indexes".
2207 * valprint.h: Include <string> and "cli/cli-option.h".
2208 (make_value_print_options_def_group): Declare.
2209 (print_value): Change parameter type from format_data pointer to
2210 value_print_options reference.
2211 (print_command_completer): Declare.
2212
9d0faba9
PA
22132019-06-13 Pedro Alves <palves@redhat.com>
2214
2215 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
2216 (COMMON_SFILES): Add maint-test-settings.c.
2217 * cli/cli-decode.c (boolean_enums): New global, factored out from
2218 ...
2219 (add_setshow_boolean_cmd): ... here.
2220 * cli/cli-decode.h (boolean_enums): Declare.
2221 * cli/cli-option.c: New file.
2222 * cli/cli-option.h: New file.
2223 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
2224 factored out from ...
2225 (parse_cli_boolean_value(const char *)): ... this.
2226 (is_unlimited_literal): Change parameter type to pointer to
2227 pointer. Adjust and advance ARG pointer.
2228 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2229 (parse_cli_var_enum): New, factored out from ...
2230 (do_set_command): ... this. Adjust.
2231 * cli/cli-setshow.h (parse_cli_boolean_value)
2232 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2233 (parse_cli_var_enum): Declare.
2234 * cli/cli-utils.c: Include "cli/cli-option.h".
2235 (get_ulongest): New.
2236 * cli/cli-utils.h (get_ulongest): Declare.
2237 (check_for_argument): New overloads.
2238 * maint-test-options.c: New file.
2239
2c722807
PA
22402019-06-13 Pedro Alves <palves@redhat.com>
2241
2242 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
2243 parse a range if "-" is at the end of the string.
2244
dee7b4c8
PA
22452019-06-13 Pedro Alves <palves@redhat.com>
2246
2247 * cli/cli-setshow.c (parse_auto_binary_operation)
2248 (parse_cli_boolean_value): Don't allow "o".
2249
dca0f6c0
PA
22502019-06-13 Pedro Alves <palves@redhat.com>
2251
2252 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
2253 * NEWS: Mention maint test-settings KIND.
2254 * maint-test-settings.c: New file.
2255
597bf39d
PA
22562019-06-13 Pedro Alves <palves@redhat.com>
2257
2258 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
2259 completer.
2260 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
2261 "set" completers.
2262
48c410fb
PA
22632019-06-13 Pedro Alves <palves@redhat.com>
2264
2265 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
2266 after item.
2267
93bcb043
PA
22682019-06-13 Pedro Alves <palves@redhat.com>
2269
2270 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
2271
cbba3ecd
PA
22722019-06-13 Pedro Alves <palves@redhat.com>
2273
2274 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
2275 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
2276 call.
2277 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
2278 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
2279 calls.
2280 (check_for_argument): Skip spaces after argument.
2281
b9a3f842
PA
22822019-06-13 Pedro Alves <palves@redhat.com>
2283
2284 * thread.c (thread_apply_command): Adjust TID parsing.
2285 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
2286 detected before end of string.
2287 (tid_is_in_list): Error out if LIST is invalid.
2288
3844e605
PA
22892019-06-13 Pedro Alves <palves@redhat.com>
2290
2291 * completer.c (complete_line_internal_1): Rewind completion word
2292 point.
2293 (completion_tracker::advance_custom_word_point_by): Change
2294 parameter type to int.
2295 * completer.h (completion_tracker::advance_custom_word_point_by):
2296 Likewise.
2297
00b56dbe
PA
22982019-06-13 Pedro Alves <palves@redhat.com>
2299
2300 * completer.c (advance_to_completion_word): Handle delimiters.
2301
d106773e
PA
23022019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
2303
2304 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
2305
08f10e02
TT
23062019-06-11 Tom Tromey <tom@tromey.com>
2307
2308 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
2309 (xmalloc_failed): Move to alloc.c.
2310 * alloc.c: New file.
2311 * Makefile.in (COMMON_SFILES): Add alloc.c.
2312
1c7fe951
TT
23132019-06-11 Tom Tromey <tom@tromey.com>
2314
2315 * nat/linux-waitpid.c: Don't include server.h.
2316 (linux_debug): Remove.
2317 (my_waitpid): Update.
2318
89549d7f
TT
23192019-06-11 Tom Tromey <tromey@adacore.com>
2320
2321 * infcall.c (_initialize_infcall): Remove trailing newline from
2322 help.
2323 * user-regs.c (_initialize_user_regs): Remove trailing newline
2324 from help.
2325 * typeprint.c (_initialize_typeprint): Remove trailing newline
2326 from help.
2327 * reverse.c (_initialize_reverse): Remove trailing newlines from
2328 help.
2329 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
2330 from help.
2331 * language.c (add_set_language_command): Remove trailing newline
2332 from help.
2333 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
2334 help.
2335 * disasm.c (_initialize_disasm): Remove trailing newline from
2336 help.
2337 * top.c (init_main): Remove trailing newline from help.
2338 * interps.c (_initialize_interpreter): Remove trailing newline
2339 from help.
2340 * btrace.c (_initialize_btrace): Remove trailing newlines from
2341 help.
2342 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
2343 from help.
2344 * python/python.c (_initialize_python): Remove trailing newline
2345 from help.
2346 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
2347 help.
2348 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
2349 from help. Reformat some text.
2350 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
2351 from help.
2352 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
2353 newline from help.
2354
86108c13
TT
23552019-06-11 Tom Tromey <tromey@adacore.com>
2356
2357 * darwin-nat.c (darwin_decode_exception_message)
2358 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
2359
a7067863
AB
23602019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * valops.c (value_slice): Check for not allocated or not
2363 associated values.
2364
9ab08412
TV
23652019-06-10 Tom de Vries <tdevries@suse.de>
2366
2367 PR gdb/24618
2368 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
2369 sure an empty slot (defined by a 32-bit zero pair) is recognized as
2370 invalid.
2371
f19e22e9
TV
23722019-06-10 Tom de Vries <tdevries@suse.de>
2373
2374 PR gdb/24611
2375 * linespec.c (linespec_lexer_lex_string): Remove incorrect
2376 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
2377
e99f9db0
TV
23782019-06-10 Tom de Vries <tdevries@suse.de>
2379
2380 PR symtab/24545
2381 * symtab.c (struct demangled_name_entry): Add language field.
2382 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
2383 static minimal symbol". Set and use language field.
2384
9bf7038b
TT
23852019-06-10 Tom Tromey <tromey@adacore.com>
2386
2387 * ada-lang.c (_initialize_ada_language): Update help text.
2388
422186a9
TT
23892019-06-10 Tom Tromey <tromey@adacore.com>
2390
2391 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
2392 with a newline.
2393 * guile/guile.c (handle_boot_error): Don't end warning with a
2394 newline.
2395 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
2396 warning with a newline.
2397 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
2398 newline.
2399 (s12z_frame_cache): Likewise.
2400 * dwarf-index-cache.c (index_cache::store): Don't end warning with
2401 a newline.
2402 * solib-svr4.c (disable_probes_interface): Don't end warning with
2403 a newline.
2404 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
2405 newline.
2406 * python/python.c (do_finish_initialization): Don't end warning
2407 with a newline.
2408
25ce02ee
TT
24092019-06-10 Tom Tromey <tom@tromey.com>
2410
2411 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2412 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2413 gdbpy_enter.
2414
caa429d8
TT
24152019-06-10 Tom Tromey <tromey@adacore.com>
2416
2417 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
2418 data.
2419 (elf_new_init): Don't call stabsread_new_init.
2420 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
2421 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
2422 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
2423
81873cc8
TV
24242019-06-10 Tom de Vries <tdevries@suse.de>
2425
2426 PR symtab/16264
2427 PR symtab/24517
2428 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
2429
4fa0265e
РИ
24302019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
2431
2432 * source.c (find_and_open_source): Also rewrite relative file
2433 names.
2434
1a3da2cd
AB
24352019-04-26 Amos Bird <amosbird@gmail.com>
2436
2437 * annotate.c (annotate_thread_exited): Add "thread-exited"
2438 annotation.
2439
3847a7bf
TT
24402019-06-06 Tom Tromey <tromey@adacore.com>
2441
2442 * maint.h (class scoped_command_stats): Use
2443 DISABLE_COPY_AND_ASSIGN.
2444 <print_time>: New method.
2445 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
2446 print_time.
2447 (scoped_command_stats::print_time): New method.
2448
312617a3
AB
24492019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
2452 instructions of lengths 6 or 8 bytes.
2453
b02f78f9
PA
24542019-06-04 Pedro Alves <palves@redhat.com>
2455
2456 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
2457
2458 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
2459 * breakpoint.c (condition_completer): Likewise.
2460 * cli/cli-dump.c (scan_expression): Likewise.
2461 * common/filestuff.c (mkdir_recursive): Likewise.
2462 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
2463 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
2464 (gdb_abspath): Likewise.
2465 * compile/compile-cplus-types.c
2466 (compile_cplus_instance::decl_name): Likewise.
2467 * completer.c (complete_explicit_location):
2468 (signal_completer, reg_or_group_completer_1): Likewise.
2469 * cp-support.c (cp_remove_params_if_any): Likewise.
2470 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
2471 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
2472 * infcmd.c (strip_bg_char): Likewise.
2473 * linespec.c (copy_token_string): Likewise.
2474 * mi/mi-main.c (output_cores): Likewise.
2475 * psymtab.c (psymtab_search_name):
2476 * symfile.c (test_set_ext_lang_command): Likewise.
2477 * target.c (target_fileio_read_stralloc): Likewise.
2478 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
2479 * value.c (complete_internalvar): Likewise.
2480
e1f2e1a2
CB
24812019-06-04 Christian Biesinger <cbiesinger@google.com>
2482
2483 Add objfile property to gdb.Type.
d3238f7d
PA
2484 * NEWS: Mention Python API addition.
2485 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 2486
e664d728
PW
24872019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2488
2489 * NEWS: Mention the new set|show style [title|highlight].
2490 Mention changes to "show style", "help" and "apropos".
2491
66d8c862
PW
24922019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2493
2494 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
2495 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
2496 instead of print_help_for_command.
2497 (print_doc_of_command): New function.
2498 (help_list): Add 'apropos -v word' suggestion.
2499 (print_help_for_command): Style the command name using title style.
2500 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
2501 (_initialize_cli_cmds): Describe -v in apropos_command help.
2502
9303eb2f
PW
25032019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2504
2505 * cli/cli-style.h (cli_style_option): Add name in constructor,
2506 add m_name class member, add constructor with intensity,
2507 add name class function.
2508 (cli_style_option::add_setshow_commands): Remove name argument.
2509 (highlight_style, title_style): New styles.
2510 * cli/cli-style.c (do_show): New function that shows a style
2511 characteristic styling the style name with itself.
2512 (set_style_name): New function.
2513 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
2514 Update all callers according to the changes in cli/cli-style.h.
2515 * utils.h (fputs_highlighted): New function.
2516 * utils.c (fputs_highlighted): Likewise.
2517
e2c52041
PW
25182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2519
2520 * NEWS: Mention new pipe command and new convenience variables.
2521
947d3946
PW
25222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2523
2524 * cli/cli-cmds.c (pipe_command): New function.
2525 (_initialize_cli_cmds): Call add_com for pipe_command.
2526 Define | as an alias for pipe.
2527 (exit_status_set_internal_vars): New function.
2528 (shell_escape): Call exit_status_set_internal_vars.
2529 cli/cli-decode.c (find_command_name_length): Recognize | as
2530 a single character command.
2531
b8fd0918
PW
25322019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2533
2534 * gdbcmd.h (execute_command_to_ui_file): New declaration.
2535 top.c (execute_command_to_ui_file): New function, mostly a copy
2536 of execute_command_to_string.
2537 (execute_command_to_string): Implement by calling
2538 execute_command_to_ui_file.
2539
68bb5386
PW
25402019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2541
2542 * top.h (saved_command_line): Remove declaration.
2543 * top.c (previous_saved_command_line, previous_repeat_arguments):
2544 New variables.
2545 (saved_command_line): Make static, define together with other
2546 'repeat variables'.
2547 (dont_repeat): Clear repeat_arguments.
2548 (repeat_previous, get_saved_command_line, save_command_line):
2549 New functions.
2550 (gdb_init): Initialize saved_command_line
2551 and previous_saved_command_line.
2552 * main.c (captured_main_1): Remove saved_command_line initialization.
2553 * event-top.c (handle_line_of_input): Update to use
2554 the new 'repeat' related functions instead of direct access to
2555 saved_command_line.
2556 * command.h (repeat_previous, get_saved_command_line,
2557 save_command_line): New declarations.
2558 (dont_repeat): Add comment.
2559
bfcdb852
TT
25602019-05-30 Tom Tromey <tromey@adacore.com>
2561
2562 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
2563 Fix comment.
2564 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
2565
0ef209f2
JV
25662019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
2567
2568 PR cli/24587
2569 * completer.c (complete): Initialize variable word.
2570
955b06fa
SDJ
25712019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
2572
2573 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2574 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
2575 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
2576 'body' is NULL to the outter 'if', protecting the '!is_define'
2577 situation as well.
2578
fa9c3fa0
TT
25792019-05-29 Tom Tromey <tromey@adacore.com>
2580
2581 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
2582 (dwarf_unknown): New function.
2583 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
2584 (dwarf_type_encoding_name): Use dwarf_unknown.
2585
4330d61d
TT
25862019-05-29 Tom Tromey <tromey@adacore.com>
2587
2588 PR c++/20020:
2589 * cp-valprint.c (cp_print_value_fields): Call
2590 cp_print_static_field inside "try".
2591
33a6bc35
TT
25922019-05-29 Tom Tromey <tromey@adacore.com>
2593
2594 * inflow.c (struct terminal_info): Add default operator=.
2595 * configure: Rebuild.
2596 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
2597 -Wdeprecated-copy-dtor, -Wredundant-move.
2598
000439d5
TT
25992019-05-29 Tom Tromey <tromey@adacore.com>
2600
2601 * NEWS: Add entry.
2602 * infcmd.c (print_return_value_1): Handle finish_print
2603 option.
2604 (show_print_finish): New function.
2605 (_initialize_infcmd): Add "set/show print finish" commands.
2606 * valprint.c (user_print_options): Initialize new member.
2607 * valprint.h (struct value_print_options) <finish_print>: New
2608 member.
2609
c0e70c62
TT
26102019-05-28 Tom Tromey <tromey@adacore.com>
2611
2612 * ada-lang.c (ada_remove_Xbn_suffix)
2613 (find_old_style_renaming_symbol)
2614 (parse_old_style_renaming): Remove.
2615 (ada_find_renaming_symbol): Don't call
2616 find_old_style_renaming_symbol.
2617 (ada_is_renaming_symbol): Rename from
2618 ada_find_renaming_symbol. Remove "block" parameter. Return
2619 bool. Now static.
2620 (ada_read_var_value): Update and simplify.
2621 * ada-exp.y (write_var_or_type): Remove old code.
2622
766f8836
AH
26232019-05-28 Alan Hayward <alan.hayward@arm.com>
2624
2625 * event-top.c: Remove include comment.
2626 * inflow.c (class scoped_ignore_sigttou): Move from here...
2627 * inflow.h (class scoped_ignore_sigttou): ...to here.
2628 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
2629 * top.c: Remove include comment.
2630
eb41253a
TT
26312019-05-27 Tom Tromey <tom@tromey.com>
2632
2633 * NEWS: Fix typo.
2634
4ca51187
TT
26352019-05-22 Tom Tromey <tromey@adacore.com>
2636
2637 * target.c (target_follow_exec): Constify parameter.
2638 * target-delegates.c: Rebuild.
2639 * remote.c (remote_target::follow_exec): Constify parameter.
2640 * infrun.c (follow_exec): Constify parameter.
2641 * target.h (struct target_ops) <follow_exec>: Constify parameter.
2642 (target_follow_exec): Likewise.
2643
8fca4da0
AH
26442019-05-22 Alan Hayward <alan.hayward@arm.com>
2645
2646 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
2647 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
2648
b7060614
AH
26492019-05-22 Alan Hayward <alan.hayward@arm.com>
2650
2651 * NEWS: Add debugredirect and testsuite sections.
2652
0a5954bd
SC
26532019-05-22 Simon Cook <simon.cook@embecosm.com>
2654
2655 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
2656 target descriptions using exclusively floating point register name
2657 aliases.
2658
dc42e902
AB
26592019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 PR gdb/18644:
2662 * f-lang.c (build_fortran_types): Handle the case where
2663 gdbarch_floatformat_for_type returns a nullptr.
2664
fb7806c7
TV
26652019-05-21 Tom de Vries <tdevries@suse.de>
2666
2667 PR cli/24587
2668 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
2669
34d11c68
AB
26702019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 PR gdb/18644:
2673 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
2674 16-byte floats.
2675 * i386-tdep.c (i386_floatformat_for_type): Use
2676 floatformats_ia64_quad for the 16-byte floating point component
2677 within a fortran 32-byte complex number.
2678
122cf0f2
AB
26792019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
2682 delete default constructor.
2683 (find_partial_die): Update to return const struct.
2684 (partial_die_parent_scope): Move variable declaration into scope
2685 of its use and change its type to auto.
2686 (guess_partial_die_structure_name): Likewise.
2687 (partial_die_info::fixup): Likewise.
2688
33d0e35a
TT
26892019-05-17 Tom Tromey <tromey@adacore.com>
2690
2691 * source.c (find_and_open_source): Remove cast.
2692
a45575b0
TT
26932019-05-17 Tom Tromey <tromey@adacore.com>
2694
2695 * annotate.c (annotate_source): Make "filename" const.
2696 * annotate.h (annotate_source): Use const.
2697
81f47ac2
AH
26982019-05-17 Alan Hayward <alan.hayward@arm.com>
2699
2700 * disasm.c (set_disassembler_options): Send errors to stderr.
2701
ca1285d1
AH
27022019-05-17 Alan Hayward <alan.hayward@arm.com>
2703
2704 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
2705 (cli_interp_base::set_logging): Check debug_redirect.
2706 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
2707 * cli/cli-logging.c (debug_redirect): Add static variable.
2708 (pop_output_files): Add default param.
2709 (handle_redirections): Print debug setting.
2710 (show_logging_command): Likewise.
2711 (_initialize_cli_logging): Add debugredirect command.
2712 * interps.c (current_interp_set_logging): Add debug_redirect
2713 parameter.
2714 * interps.h (set_logging): Add debug_redirect parameter.
2715 (current_interp_set_logging): Likewise.
2716 * mi/mi-common.h: Likewise.
2717 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
2718
27192019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
2720 Tom Tromey <tromey@adacore.com>
2721
2722 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
2723 directly.
2724 * cli/cli-interp.h (make_logging_output): Remove declaration.
2725 * cli/cli-logging.c (make_logging_output): Remove function.
2726 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
2727 directly.
2728 * ui-file.c (tee_file::tee_file): Remove bools.
2729 (tee_file::~tee_file): Remove deletes.
2730 * ui-file.h (tee_file): Remove bools.
2731
26648588
JV
27322019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
2733
2734 * mi/mi-cmds.h (mi_cmd_complete): New function.
2735 * mi/mi-main.c (mi_cmd_complete): Likewise.
2736 * mi/mi-cmds.c: Define new MI command -complete.
2737 * NEWS: Mention new -complete command.
2738
6e035501
JV
27392019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
2740
2741 * completer.h (complete): New function.
2742 * completer.c (complete): Likewise.
2743 * cli/cli-cmds.c: (complete_command): Update to use new complete()
2744 function defined in completer.h.
2745
7d0e2ece
JV
27462019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
2747
e79be6e5 2748 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 2749
fb816e8b
TV
27502019-05-17 Tom de Vries <tdevries@suse.de>
2751
2752 PR gdb/24094
2753 * dwarf2read.c (struct cu_partial_die_info): New struct.
2754 (find_partial_die): Return cu_partial_die_info.
2755 (partial_die_parent_scope, guess_partial_die_structure_name)
2756 (partial_die_info::fixup): Handle new return type of find_partial_die.
2757
677052f2
SDJ
27582019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2759
2760 * stap-probe.c (stap_parse_register_operand): Make "regname" an
2761 "std::string", simplifying the algorithm.
2762
f3da9116
SDJ
27632019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2764
2765 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
2766 (stap_static_probe_ops::get_probes): Likewise.
2767
f1bb75ab
SDJ
27682019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2769
2770 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
2771 '-')" and "else if".
2772 (stap_parse_single_operand): Join checks for
2773 "gdbarch_stap_parse_special_token_p" and
2774 "gdbarch_stap_parse_special_token" in the same "if" statement.
2775 Invert check when verifying for operation on register
2776 displacement.
2777
3ca58cde
SDJ
27782019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2779
2780 * stap-probe.c (stap_get_opcode): Update comment.
2781 (stap_get_expected_argument_type): Likewise.
2782 (handle_stap_probe): Likewise.
2783
af2d9bee
SDJ
27842019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2785
2786 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
2787 return type to 'bool'. Adjust comment. Use 'bool' when
2788 appropriate.
2789 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2790 * stap-probe.c (stap_parse_argument_1): Likewise.
2791 (stap_is_operator): Likewise.
2792 (stap_is_generic_prefix): Likewise.
2793 (stap_is_register_prefix): Likewise.
2794 (stap_is_register_indirection_prefix): Likewise.
2795 (stap_is_integer_prefix): Likewise.
2796 (stap_generic_check_suffix): Likewise.
2797 (stap_check_integer_suffix): Likewise.
2798 (stap_check_register_suffix): Likewise.
2799 (stap_check_register_indirection_suffix): Likewise.
2800 (stap_parse_register_operand): Likewise.
2801 (stap_parse_single_operand): Likewise.
2802 (stap_parse_argument_1): Likewise.
2803 (stap_probe::get_argument_count): Likewise.
2804 (stap_is_operator): Likewise.
2805
61c9c421
TT
28062019-05-16 Tom Tromey <tromey@adacore.com>
2807
2808 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
2809 keyword to foreach.
2810
9ddc1af1
SM
28112019-05-15 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * linux-thread-db.c (try_thread_db_load_1): Change return type
2814 to bool.
2815 (try_thread_db_load): Likewise.
2816 (try_thread_db_load_from_pdir_1): Likewise.
2817 (try_thread_db_load_from_pdir): Likewise.
2818 (try_thread_db_load_from_sdir): Likewise.
2819 (try_thread_db_load_from_dir): Likewise.
2820 (thread_db_load_search): Likewise.
2821 (has_libpthread): Likewise.
2822 (thread_db_load): Likewise.
2823
7bede828
SDJ
28242019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
2825
2826 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2827 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
2828 NULL, and complain/return if that's the case.
2829
c5358db4
JD
28302019-05-15 John Darrington <john@darrington.wattle.id.au>
2831
2832 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
2833 (advance, posn, abstract_read_memory): New functions.
2834 [struct mem_read_abstraction]: New struct.
2835 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
2836
c408a94f
TT
28372019-05-14 Tom Tromey <tromey@adacore.com>
2838
2839 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
2840 value is not lval_memory.
2841
e7bd7fba
TT
28422019-05-14 Tom Tromey <tromey@adacore.com>
2843
2844 * solib.c (info_sharedlibrary_command): Style the file name.
2845
a6d0f249
AH
28462019-05-14 Alan Hayward <alan.hayward@arm.com>
2847
2848 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
2849 (aarch64_vnv_type): Likewise.
2850 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
2851 * common/tdesc.c: Likewise.
2852 * common/tdesc.h (enum tdesc_type_kind): Likewise.
2853 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
2854 * features/aarch64-fpu.xml: Add ieee half view.
2855 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
2856 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
2857 * gdbtypes.h (struct builtin_type): Likewise.
2858 (struct objfile_type): Likewise.
2859
66b8bb74
SM
28602019-05-12 Paul Naert <paul.naert@polymtl.ca>
2861
2862 * language.c (language_sniff_from_mangled_name): Fix "langauge"
2863 typo.
2864 * location.h (string_to_event_location): Likewise.
2865
21c219fd
JB
28662019-05-11 Joel Brobecker <brobecker@adacore.com>
2867
2868 GDB 8.3 released.
2869
13674803
SM
28702019-05-10 Simon Marchi <simon.marchi@efficios.com>
2871
2872 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
2873 New variable declaration.
2874 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
2875 New variable.
2876 (print_one_breakpoint): Use ui_out::test_flags and new global
2877 variable to compute use_fixed_output.
2878 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
2879 Remove.
2880 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
2881 (mi_multi_location_breakpoint_output_fixed): Remove.
2882 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
2883 new variable.
2884 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
2885 fix_multi_location_breakpoint_output flag if version >= 3.
2886 * ui-out.h (enum ui_out_flag)
2887 <fix_multi_location_breakpoint_output>: New enumerator.
2888
a9eac7f9
SM
28892019-05-10 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * contrib/cc-with-tweaks.sh: Validate dwz's work.
2892
71bed2db
TT
28932019-05-10 Tom Tromey <tromey@adacore.com>
2894
2895 * ada-lang.c (catch_ada_completer): New function.
2896 (_initialize_ada_language): Use it.
2897
24c54127
TT
28982019-05-10 Tom Tromey <tromey@adacore.com>
2899
2900 * thread.c (print_thread_info): Make "requested_threads" const.
2901 * gdbthread.h (print_thread_info): Make "requested_threads"
2902 const.
2903 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
2904 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
2905
7a102139
TT
29062019-05-08 Tom Tromey <tom@tromey.com>
2907
2908 * gdbtypes.c (objfile_type_data): Change type.
2909 (objfile_type, _initialize_gdbtypes): Update.
2910
924d79e2
TT
29112019-05-08 Tom Tromey <tom@tromey.com>
2912
2913 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
2914 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
2915 (_initialize_dwarf2_frame): Update.
2916
4c58e337
TT
29172019-05-08 Tom Tromey <tom@tromey.com>
2918
2919 * objc-lang.c (objc_objfile_data): Change type.
2920 (find_methods): Update.
2921 (_initialize_objc_lang): Remove.
2922
d772d2ab
TT
29232019-05-08 Tom Tromey <tom@tromey.com>
2924
2925 * stabsread.c (rs6000_builtin_type_data): Change type.
2926 (rs6000_builtin_type, _initialize_stabsread): Update.
2927
d11d83f4
TT
29282019-05-08 Tom Tromey <tom@tromey.com>
2929
2930 * mips-tdep.c (mips_pdr_data): Remove.
2931 (_initialize_mips_tdep): Update.
2932
9a73f0ad
TT
29332019-05-08 Tom Tromey <tom@tromey.com>
2934
2935 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
2936 (hppa_init_objfile_priv_data, read_unwind_info)
2937 (find_unwind_entry, _initialize_hppa_tdep): Update.
2938
8127a2fa
TT
29392019-05-08 Tom Tromey <tom@tromey.com>
2940
2941 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
2942 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
2943 on obstack.
2944 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
2945
91d3055d
TT
29462019-05-08 Tom Tromey <tom@tromey.com>
2947
2948 * mdebugread.c (basic_type_data): Change type.
2949 (basic_type, _initialize_mdebugread): Update.
2950
31930bd3
TT
29512019-05-08 Tom Tromey <tom@tromey.com>
2952
2953 * common/gdb_unique_ptr.h (struct noop_deleter): New.
2954
bdb3ed9e
TT
29552019-05-08 Tom Tromey <tom@tromey.com>
2956
2957 * nto-tdep.c (nto_inferior_data_reg): Change type.
2958 (nto_inferior_data): Update.
2959 (nto_inferior_data_cleanup, nto_new_inferior_data)
2960 (_initialize_nto_tdep): Remove.
2961 * nto-tdep.h (struct nto_inferior_data): Add initializers.
2962
f37b313d
TT
29632019-05-08 Tom Tromey <tom@tromey.com>
2964
2965 * ada-lang.c (struct ada_inferior_data): Add initializers.
2966 (ada_inferior_data): Change type.
2967 (ada_inferior_data_cleanup): Remove.
2968 (get_ada_inferior_data, ada_inferior_exit)
2969 (struct ada_pspace_data): Add initializers, destructor.
2970 (ada_pspace_data_handle): Change type.
2971 (get_ada_pspace_data): Update.
2972 (ada_pspace_data_cleanup): Remove.
2973
24699405
TT
29742019-05-08 Tom Tromey <tom@tromey.com>
2975
2976 * coffread.c (struct coff_symfile_info): Add initializers.
2977 (coff_objfile_data_key): Move lower. Change type.
2978 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
2979 Update.
2980 (coff_free_info): Remove.
2981
d4e05d2f
TT
29822019-05-08 Tom Tromey <tom@tromey.com>
2983
2984 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
2985 (fbsd_pspace_data_handle): Move lower. Change type.
2986 (get_fbsd_pspace_data): Update.
2987 (fbsd_pspace_data_cleanup): Remove.
2988 (_initialize_fbsd_tdep): Update.
2989
14ef6690
TT
29902019-05-08 Tom Tromey <tom@tromey.com>
2991
2992 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
2993 (get_ada_tasks_pspace_data): Update.
2994 (ada_tasks_pspace_data_cleanup): Remove.
2995 (_initialize_tasks): Update.
2996 (ada_tasks_inferior_data_handle): Change type.
2997 (get_ada_tasks_inferior_data): Update.
2998 (ada_tasks_inferior_data_cleanup): Remove.
2999 (struct ada_tasks_pspace_data): Add initializers.
3000
814cf43a
TT
30012019-05-08 Tom Tromey <tom@tromey.com>
3002
3003 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
3004 * symfile-debug.c (debug_sym_get_probes): Change type.
3005 * stap-probe.c (handle_stap_probe):
3006 (stap_static_probe_ops::get_probes): Change type.
3007 * probe.h (class static_probe_ops) <get_probes>: Change type.
3008 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
3009 (parse_probes_in_pspace): Update.
3010 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
3011 Update.
3012 (any_static_probe_ops::get_probes): Change type.
3013 * elfread.c (elfread_data): New typedef.
3014 (probe_key): Change type.
3015 (elf_get_probes): Likewise. Update.
3016 (probe_key_free): Remove.
3017 (_initialize_elfread): Update.
3018 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
3019 Change type.
3020 (dtrace_process_dof_probe, dtrace_process_dof)
3021 (dtrace_static_probe_ops::get_probe): Change type.
3022
02dc647e
TT
30232019-05-08 Tom Tromey <tom@tromey.com>
3024
3025 * xcoffread.c (struct xcoff_symfile_info): Rename from
3026 coff_symfile_info. Add initializers.
3027 (xcoff_objfile_data_key): Move lower. Change type.
3028 (XCOFF_DATA): Rewrite.
3029 (xcoff_free_info): Remove.
3030 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
3031 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
3032 (xcoff_initial_scan): Update.
3033
09232438
TT
30342019-05-08 Tom Tromey <tom@tromey.com>
3035
3036 * solib-svr4.c (struct svr4_info): Add initializers and
3037 destructor.
3038 <probes_table>: Now an htab_up.
3039 (solib_svr4_pspace_data): Change type.
3040 (free_probes_table): Simplify.
3041 (~svr4_info): Rename from svr4_pspace_data_cleanup.
3042 (get_svr4_info, probes_table_htab_remove_objfile_probes)
3043 (probes_table_remove_objfile_probes, register_solib_event_probe)
3044 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
3045 (_initialize_svr4_solib): Update.
3046
7b4a314f
TT
30472019-05-08 Tom Tromey <tom@tromey.com>
3048
3049 * remote.c (remote_pspace_data): Change type.
3050 (remote_pspace_data_cleanup): Remove.
3051 (get_remote_exec_file, set_pspace_remote_exec_file)
3052 (_initialize_remote): Update.
3053
51d3063a
TT
30542019-05-08 Tom Tromey <tom@tromey.com>
3055
3056 * breakpoint.c (breakpoint_objfile_key): Change type.
3057 (get_breakpoint_objfile_data): Update.
3058 (free_breakpoint_objfile_data): Remove.
3059 (_initialize_breakpoint): Update.
3060
89fb8848
TT
30612019-05-08 Tom Tromey <tom@tromey.com>
3062
3063 * linux-tdep.c (struct linux_info): Add initializers.
3064 (linux_inferior_data): Move. Change type.
3065 (invalidate_linux_cache_inf): Update.
3066 (linux_inferior_data_cleanup): Remove.
3067 (get_linux_inferior_data, _initialize_linux_tdep): Update.
3068
e9b89e2d
TT
30692019-05-08 Tom Tromey <tom@tromey.com>
3070
3071 * auxv.c (auxv_inferior_data): Move. Change type.
3072 (auxv_inferior_data_cleanup): Remove.
3073 (invalidate_auxv_cache_inf): Rewrite.
3074 (get_auxv_inferior_data, _initialize_auxv): Update.
3075
8c42777c
TT
30762019-05-08 Tom Tromey <tom@tromey.com>
3077
3078 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
3079 (symfile_debug_objfile_data_key): Change type.
3080 (symfile_debug_installed, debug_qf_has_symbols)
3081 (debug_qf_find_last_source_symtab)
3082 (debug_qf_forget_cached_source_info)
3083 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
3084 (debug_qf_print_stats, debug_qf_dump)
3085 (debug_qf_expand_symtabs_for_function)
3086 (debug_qf_expand_all_symtabs)
3087 (debug_qf_expand_symtabs_with_fullname)
3088 (debug_qf_map_matching_symbols)
3089 (debug_qf_expand_symtabs_matching)
3090 (debug_qf_find_pc_sect_compunit_symtab)
3091 (debug_qf_map_symbol_filenames)
3092 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
3093 (debug_sym_new_init, debug_sym_init, debug_sym_read)
3094 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
3095 (debug_sym_read_linetable, debug_sym_relocate): Update.
3096 (symfile_debug_free_objfile): Remove.
3097 (install_symfile_debug_logging, _initialize_symfile_debug):
3098 Update.
3099
5bfd760d
TT
31002019-05-08 Tom Tromey <tom@tromey.com>
3101
3102 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
3103 allocate_on_obstack.
3104 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
3105 (get_dwarf2_per_objfile): Update.
3106 (set_dwarf2_per_objfile): Remove.
3107 (dwarf2_has_info, dwarf2_get_section_info): Update.
3108 (dwarf2_free_objfile): Remove.
3109 (_initialize_dwarf2_read): Update.
3110
e85e19b4
TT
31112019-05-08 Tom Tromey <tom@tromey.com>
3112
3113 * auto-load.c (struct auto_load_pspace_info): Add destructor and
3114 initializers.
3115 <unsupported_script_warning_printed,
3116 script_not_found_warning_printed>: Now bool.
3117 (auto_load_pspace_data): Change type.
3118 (~auto_load_pspace_info): Rename from
3119 auto_load_pspace_data_cleanup.
3120 (get_auto_load_pspace_data, init_loaded_scripts_info)
3121 (clear_section_scripts, maybe_print_unsupported_script_warning)
3122 (maybe_print_script_not_found_warning, _initialize_auto_load):
3123 Update.
3124
f6aa7436
TT
31252019-05-08 Tom Tromey <tom@tromey.com>
3126
3127 * objfiles.c (objfile_pspace_info): Add destructor and
3128 initializers.
3129 (objfiles_pspace_data): Change type.
3130 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
3131 (get_objfile_pspace_data): Update.
3132 (objfiles_bfd_data): Change type.
3133 (get_objfile_bfd_data): Update.
3134 (objfile_bfd_data_free, _initialize_objfiles): Remove.
3135
6ae614f6
TT
31362019-05-08 Tom Tromey <tom@tromey.com>
3137
3138 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
3139 Change type.
3140 (get_catch_syscall_inferior_data): Update.
3141 (catch_syscall_inferior_data_cleanup): Remove.
3142 (_initialize_break_catch_syscall): Update.
3143
6509b8eb
TT
31442019-05-08 Tom Tromey <tom@tromey.com>
3145
3146 * inflow.c (struct terminal_info): Add destructor and
3147 initializers.
3148 (inflow_inferior_data): Change type.
3149 (~terminal_info): Rename from inflow_inferior_data_cleanup.
3150 (get_inflow_inferior_data, inflow_inferior_exit)
3151 (swap_terminal_info, _initialize_inflow): Update.
3152
35632941
TT
31532019-05-08 Tom Tromey <tom@tromey.com>
3154
3155 * target-dcache.c (target_dcache_cleanup): Remove.
3156 (target_dcache_aspace_key): Change type.
3157 (target_dcache_init_p, target_dcache_invalidate)
3158 (target_dcache_get, target_dcache_get_or_init)
3159 (_initialize_target_dcache): Update.
3160 * dcache.h (struct dcache_deleter): New.
3161
3017b94d
TT
31622019-05-08 Tom Tromey <tom@tromey.com>
3163
3164 * symtab.c (struct symbol_cache): Add destructor and
3165 initializers.
3166 (symbol_cache_key): Move. Change type.
3167 (make_symbol_cache, free_symbol_cache): Remove.
3168 (get_symbol_cache): Update.
3169 (symbol_cache_cleanup): Remove.
3170 (ALL_PSPACES, symbol_cache_flush)
3171 (maintenance_print_symbol_cache)
3172 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
3173 Update.
3174
a32ad8c5
TT
31752019-05-08 Tom Tromey <tom@tromey.com>
3176
3177 * symtab.c (struct main_info): Add destructor and initializers.
3178 (main_progspace_key): Move. Change type.
3179 (get_main_info): Update.
3180 (main_info_cleanup): Remove.
3181 (_initialize_symtab): Update.
3182
5f6e90a0
TT
31832019-05-08 Tom Tromey <tom@tromey.com>
3184
3185 * registry.h (DECLARE_REGISTRY): Define the _key class.
3186
1bd0c6e4
AB
31872019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 * NEWS: Merge two 'New commands' sections.
3190
2228ef77
XR
31912019-05-08 Joel Brobecker <brobecker@adacore.com>
3192
3193 * ada-valprint.c (ada_val_print_gnat_array): Remove language
3194 parameter and use Ada language definition instead.
3195 (ada_val_print_ptr): Remove unused language parameter.
3196 (ada_val_print_num): Remove language parameter and use Ada language
3197 definition instead.
3198 (ada_val_print_enum, ada_val_print_flt): Remove unused language
3199 parameter.
3200 (ada_val_print_struct_union, ada_val_print_ref): Remove language
3201 parameter and use Ada language definition instead.
3202 (ada_val_print_1): Update all ada_val_print_xxx calls.
3203 Remove language parameter.
3204 (ada_val_print): Update ada_val_print_1 call.
3205
60fcc1c3
TT
32062019-05-08 Tom Tromey <tromey@adacore.com>
3207
3208 * remote.c (remote_hw_watchpoint_limit)
3209 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
3210 Now static.
3211
ed2b7c17
TT
32122019-05-08 Tom Tromey <tromey@adacore.com>
3213
3214 * maint.c (_initialize_maint_cmds): Move initialization code to
3215 remote.c.
3216 (watchdog, show_watchdog): Move to remote.c.
3217 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
3218 "watchdog" static.
3219 (_initialize_remote): Move initialization code from maint.c.
3220 * defs.h (watchdog): Don't declare.
3221
b0be6c91
TT
32222019-05-08 Tom Tromey <tromey@adacore.com>
3223
3224 * tui/tui-interp.c: Include main.h.
3225 * interps.c: Include main.h.
3226 * main.h (interpreter_p): Declare.
3227 * defs.h (interpreter_p): Don't declare.
3228
587ee17b
TT
32292019-05-08 Tom Tromey <tromey@adacore.com>
3230
3231 * dwarf2loc.c: Include dwarf2read.h.
3232 * defs.h (read_unsigned_leb128): Don't declare.
3233 * dwarf2read.h (read_unsigned_leb128): Declare.
3234
ca1df239
TT
32352019-05-08 Tom Tromey <tromey@adacore.com>
3236
3237 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
3238 method.
3239
99f20f08
TT
32402019-05-08 Tom Tromey <tromey@adacore.com>
3241
3242 * utils.c (fputs_maybe_filtered): Reset style after paging, even
3243 when no wrap column is set.
3244
80e55b13
TT
32452019-05-08 Tom Tromey <tromey@adacore.com>
3246
3247 * c-lang.c (c_get_string): Handle non-C-style arrays.
3248
9d3421af
TT
32492019-05-08 Tom Tromey <tromey@adacore.com>
3250
3251 * typeprint.c (print_offset_data::update): Print the bit offset,
3252 not the number of bits remaining.
3253
844333e2
TT
32542019-05-08 Tom Tromey <tromey@adacore.com>
3255
3256 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
3257 padding at end of comment.
3258
988915ee
TT
32592019-05-08 Tom Tromey <tromey@adacore.com>
3260
3261 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
3262 Compare main types.
3263
26bfd823
TT
32642019-05-06 Tom Tromey <tom@tromey.com>
3265
3266 * common/scoped_mmap.c: Include common-defs.h.
3267 * common/scoped_mmap.h: Don't include config.h.
3268
89055eaa
TT
32692019-05-04 Tom Tromey <tom@tromey.com>
3270
3271 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
3272 (struct aarch64_call_info): Add initializers.
3273 <si>: Now a std::vector.
3274 (pass_on_stack, aarch64_push_dummy_call): Update.
3275
5da01df5
TT
32762019-05-04 Simon Marchi <simon.marchi@efficios.com>
3277 Tom Tromey <tom@tromey.com>
3278
3279 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
3280 (ppc_threads): Now a std::vector. Now static.
3281 (hwdebug_find_thread_points_by_tid)
3282 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
3283 Update.
3284
fbdf05a1
TT
32852019-05-04 Tom Tromey <tom@tromey.com>
3286
3287 * arc-tdep.c (arc_tdesc_init): Return bool.
3288
06d16ec9
TT
32892019-05-04 Tom Tromey <tom@tromey.com>
3290
3291 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
3292 Use gdb_assert_not_reached.
3293
9c056022
TT
32942019-05-04 Tom Tromey <tom@tromey.com>
3295
3296 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
3297 "false".
3298
fa9c2a59
TT
32992019-05-04 Tom Tromey <tom@tromey.com>
3300
3301 * arc-tdep.c (arc_tdesc_init): Use bool.
3302
e2eb806a
TT
33032019-05-04 Tom Tromey <tom@tromey.com>
3304
3305 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
3306
6fe87677
TT
33072019-05-04 Tom Tromey <tom@tromey.com>
3308
3309 * cli/cli-cmds.c (valid_command_p): Return bool.
3310
7f008c9e
TT
33112019-05-04 Tom Tromey <tom@tromey.com>
3312
3313 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
3314 * command.h (valid_user_defined_cmd_name_p): Channge return type.
3315
b6484282
RT
33162019-05-04 Raul Tambre <raul@tambre.ee>
3317
3318 * python/lib/gdb/prompt.py (_ExtendedPrompt)
3319 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
3320 operator for comparison.
3321
af97b416
TT
33222019-05-04 Tom Tromey <tom@tromey.com>
3323
3324 * psymtab.c (psymbol_name_matches, match_partial_symbol)
3325 (lookup_partial_symbol, print_partial_symbols)
3326 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
3327 (psymbol_compare): Update.
3328 (add_psymbol_to_bcache): Clear the entire psymbol.
3329 (maintenance_check_psymtabs): Update.
3330 * psympriv.h (struct partial_symbol): Don't derive from
3331 general_symbol_info.
3332 <obj_section, unrelocated_address, address,
3333 set_unrelocated_address>: Update.
3334 <ginfo>: New member.
3335 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3336 (debug_names::write_psymbols): Update.
3337
9d6d4be8
TV
33382019-05-04 Tom de Vries <tdevries@suse.de>
3339
3340 * contrib/cc-with-tweaks.sh: Support -n arg.
3341
66452beb
PW
33422019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3343
3344 * corelow.c (core_target::detach): Ensure frame cache and
3345 register caches are cleared.
3346 inferior.c (exit_inferior_1): Likewise.
3347
bde09ab7
TT
33482019-05-03 Sandra Loosemore <sandra@codesourcery.com>
3349 Tom Tromey <tom@tromey.com>
3350
3351 * dictionary.c (collate_pending_symbols_by_language): Remove
3352 "struct" from foreach.
3353 * symtab.c (lookup_global_symbol_from_objfile)
3354 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
3355 foreach.
3356 * ser-tcp.c (net_open): Remove "struct" from foreach.
3357 * objfiles.c (objfile_relocate, objfile_rebase)
3358 (objfile_has_symbols): Remove "struct" from foreach.
3359 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
3360 from foreach.
3361 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
3362 foreach.
3363 * darwin-nat.c (thread_info_from_private_thread_info): Remove
3364 "struct" from foreach.
3365 * ada-lang.c (create_excep_cond_exprs)
3366 (ada_exception_catchpoint_cond_string): Remove "struct" from
3367 foreach.
3368
222a8d25
TT
33692019-05-03 Tom Tromey <tromey@adacore.com>
3370
3371 * ada-exp.y (convert_char_literal): Check suffix of each
3372 enumerator.
3373
fcd60b84
DP
33742019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3375
3376 PR ada/21406:
3377 * ada-exp.y (yywrap): Don't define.
3378 * ada-lex.l (%option): Add noyywrap
3379 (yywrap): Remove.
3380
5f2459c2
EZ
33812019-05-03 Eli Zaretskii <eliz@gnu.org>
3382
353ea2d1
EZ
3383 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
3384 _WIN32_WINNT to the XP level, unless already defined to a higher
3385 level.
3386
3387 * unittests/parse-connection-spec-selftests.c:
3388 * ser-tcp.c:
3389 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
3390 override.
3391
5f2459c2
EZ
3392 * symfile.c (find_separate_debug_file): Remove colon from the
3393 drive spec of DOS/Windows file names of the target, so that the
3394 file name produced from DEBUGDIR and the target's directory will
3395 be valid on DOS/Windows systems.
3396
80062eb9
AB
33972019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * rust-lang.c (val_print_struct): Handle printing structures
3400 containing strings.
3401
b8c05e85
TT
34022019-05-02 Tom Tromey <tromey@adacore.com>
3403
3404 * valarith.c (_initialize_valarith): Remove.
3405
4504bbde
TT
34062019-05-01 Tom Tromey <tromey@adacore.com>
3407
3408 * ada-lang.c (ada_value_primitive_field): Treat more fields as
3409 bitfields.
3410
d48e62f4
TT
34112019-05-01 Tom Tromey <tromey@adacore.com>
3412
3413 * ada-lang.c (ada_value_assign): Correctly compute starting offset
3414 for big-endian copies.
3415
15f18d14
AT
34162019-04-30 Ali Tamur <tamur@google.com>
3417 * gdb/dwarf2read.c (read_3_bytes): New declaration.
3418 (read_attribute_value): Added DW_FORM_strx1-4 cases.
3419 (read_3_bytes): New function.
3420
ab4ee614
JB
34212019-04-30 Joel Brobecker <brobecker@adacore.com>
3422
3423 * windows-nat.c (main_thread_id): Delete.
3424 (handle_output_debug_string): Replace main_thread_id by
3425 current_event.dwThreadId.
3426 (fake_create_process): Likewise.
3427 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
3428 Do not set main_thread_id.
3429 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
3430 current_event.dwThreadId.
3431 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
3432
8ed5b76e
JB
34332019-04-30 Joel Brobecker <brobecker@adacore.com>
3434
3435 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
3436 Use current_event.dwThreadId instead of main_thread_id.
3437
2ff0a947
TT
34382019-04-30 Tom Tromey <tromey@adacore.com>
3439
3440 * ada-lang.c (ada_lookup_simple_minsyms): New function.
3441 (create_excep_cond_exprs): Iterate over program spaces.
3442 (ada_exception_catchpoint_cond_string): Examine all minimal
3443 symbols for exception types.
3444
a776957c
TT
34452019-04-30 Tom Tromey <tromey@adacore.com>
3446
3447 PR c++/24470:
3448 * dwarf2read.c (process_structure_scope): Handle case where type
3449 has template parameters but no symbol was created.
3450
bc68014d
AB
34512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3452 Chris January <chris.january@arm.com>
3453
3454 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
3455 qualifier.
3456 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
3457
f1fdc960
AB
34582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * f-typeprint.c (f_print_type): Update rules for printing
3461 whitespace.
3462 (f_type_print_varspec_suffix): Likewise.
3463
bf7a4de1
AB
34642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3465 Chris January <chris.january@arm.com>
3466
3467 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
3468 function arguments.
3469
bbe75b9d
AB
34702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * f-lang.c (build_fortran_types): Change name of void type to
3473 lower case.
3474 * f-typeprint.c (f_type_print_base): Print the name of the void
3475 type, rather than a fixed string.
3476 * f-valprint.c (f_decorations): Use lower case void string.
3477
1db455a7
AB
34782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3479 Chris January <chris.january@arm.com>
3480
3481 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
3482 types for Fortran.
3483
b6d03bb2
AB
34842019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3485 Chris January <chris.january@arm.com>
3486 David Lecomber <david.lecomber@arm.com>
3487
3488 * f-exp.y (BINOP_INTRINSIC): New token.
3489 (exp): New parser rule handling BINOP_INTRINSIC.
3490 (f77_keywords): Add new builtin procedures.
3491 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
3492 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3493 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
3494 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3495 (print_unop_subexp_f): New function.
3496 (print_binop_subexp_f): New function.
3497 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3498 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3499 (dump_subexp_body_f): Likewise.
3500 (operator_check_f): Likewise.
3501 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3502 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
3503
83228e93
AB
35042019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
3507 UNOP_KIND.
3508 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
3509 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
3510 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
3511 (operator_length_f): New fuction.
3512 (print_subexp_f): New function.
3513 (op_name_f): New function.
3514 (dump_subexp_body_f): New function.
3515 (operator_check_f): New function.
3516 (exp_descriptor_f): Replace standard expression handling functions
3517 with new functions.
3518 * gdb/fortran-operator.def: New file.
3519 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
3520 * gdb/std-operator.def: Remove UNOP_KIND.
3521
6fdcd7cc
AB
35222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * std-operator.def: Remove unbalanced, stray double quote
3525 character.
3526
2e62ab40
AB
35272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3528 Chris January <chris.january@arm.com>
3529 Daniel Everett <daniel.everett@arm.com>
3530 Nick Forrington <nick.forrington@arm.com>
3531 Richard Bunt <richard.bunt@arm.com>
3532
3533 * cp-valprint.c (cp_print_value_fields): Allow an additional level
3534 of depth when printing anonymous structs or unions.
3535 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3536 Don't print either the top-level value, or the children if the
3537 max-depth is exceeded.
3538 (ppscm_print_children): When printing the key of a map, allow one
3539 extra level of depth.
3540 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
3541 print either the top-level value, or the children if the max-depth
3542 is exceeded.
3543 (print_children): When printing the key of a map, allow one extra
3544 level of depth.
3545 * python/py-value.c (valpy_format_string): Add max_depth keyword.
3546 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
3547 (user_print_options): Initialise max_depth field.
3548 (val_print_scalar_or_string_type_p): New function.
3549 (val_print): Check to see if the max depth has been reached.
3550 (val_print_check_max_depth): Define new function.
3551 (show_print_max_depth): New function.
3552 (_initialize_valprint): Add 'print max-depth' option.
3553 * valprint.h (struct value_print_options) <max_depth>: New field.
3554 (val_print_check_max_depth): Declare new function.
3555 * NEWS: Document new feature.
3556
4be290b2
AB
35572019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * ada-lang.c (ada_language_defn): Initialise new field.
3560 * c-lang.c (c_is_string_type_p): New function.
3561 (c_language_defn): Initialise new field.
3562 (cplus_language_defn): Initialise new field.
3563 (asm_language_defn): Initialise new field.
3564 (minimal_language_defn): Initialise new field.
3565 * c-lang.h (c_is_string_type_p): Declare new function.
3566 * d-lang.c (d_language_defn): Initialise new field.
3567 * f-lang.c (f_is_string_type_p): New function.
3568 (f_language_defn): Initialise new field.
3569 * go-lang.c (go_is_string_type_p): New function.
3570 (go_language_defn): Initialise new field.
3571 * language.c (default_is_string_type_p): New function.
3572 (unknown_language_defn): Initialise new field.
3573 (auto_language_defn): Initialise new field.
3574 * language.h (struct language_defn) <la_is_string_type_p>: New
3575 member variable.
3576 (default_is_string_type_p): Declare new function.
3577 * m2-lang.c (m2_language_defn): Initialise new field.
3578 * objc-lang.c (objc_language_defn): Initialise new field.
3579 * opencl-lang.c (opencl_language_defn): Initialise new field.
3580 * p-lang.c (pascal_is_string_type_p): New function.
3581 (pascal_language_defn): Initialise new field.
3582 * rust-lang.c (rust_is_string_type_p): New function.
3583 (rust_language_defn): Initialise new field.
3584
721b08c6
AB
35852019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3586
3587 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
3588 New field.
3589 * ada-lang.c (ada_language_defn): Initialise new field.
3590 * c-lang.c (c_language_defn): Likewise.
3591 (cplus_language_defn): Likewise.
3592 (asm_language_defn): Likewise.
3593 (minimal_language_defn): Likewise.
3594 * d-lang.c (d_language_defn): Likewise.
3595 * f-lang.c (f_language_defn): Likewise.
3596 * go-lang.c (go_language_defn): Likewise.
3597 * language.c (unknown_language_defn): Likewise.
3598 (auto_language_defn): Likewise.
3599 * m2-lang.c (m2_language_defn): Likewise.
3600 * objc-lang.c (objc_language_defn): Likewise.
3601 * opencl-lang.c (opencl_language_defn): Likewise.
3602 * p-lang.c (pascal_language_defn): Likewise.
3603 * rust-lang.c (rust_language_defn): Likewise.
3604
fc913e53
AB
36052019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * ada-lang.c (ada_is_character_type): Change return type to bool.
3608 (ada_is_string_type): Likewise.
3609 * ada-lang.h (ada_is_character_type): Update declaration
3610 (ada_is_string_type): Likewise.
3611
fa731fa0
PW
36122019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3613
3614 Support style in 'frame|thread apply'
3615
3616 * gdbcmd.h (execute_command_to_string): New term_out parameter.
3617 * record.c (record_start, record_stop): Update callers of
3618 execute_command_to_string with false.
3619 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
3620 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
3621 methods.
3622 (class string_file): New constructor with term_out parameter.
3623 Override methods term_out and can_emit_style_escape. New member
3624 term_out.
3625 (class stdio_file): Override can_emit_style_escape.
3626 (class tee_file): Override term_out and can_emit_style_escape.
3627 * utils.h (can_emit_style_escape): Remove.
3628 * utils.c (can_emit_style_escape): Likewise.
3629 Update all callers of can_emit_style_escape (SOMESTREAM) to
3630 SOMESTREAM->can_emit_style_escape.
3631 * source-cache.c (source_cache::get_source_lines): Likewise.
3632 * stack.c (frame_apply_command_count): Call execute_command_to_string
3633 passing the term_out characteristic of the current gdb_stdout.
3634 * thread.c (thr_try_catch_cmd): Likewise.
3635 * top.c (execute_command_to_string): pass term_out parameter
3636 to construct the string_file for the command output.
3637 * ui-file.c (term_cli_styling): New function (most code moved
3638 from utils.c can_emit_style_escape).
3639 (string_file::string_file, string_file::can_emit_style_escape,
3640 stdio_file::can_emit_style_escape, tee_file::term_out,
3641 tee_file::can_emit_style_escape): New functions.
3642
136afab8
PW
36432019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3644
3645 * NEWS: Mention the new set|show may-call-functions.
3646 * infcall.c (may_call_functions_p): New variable.
3647 (show_may_call_functions_p): New function.
3648 (call_function_by_hand_dummy): Throws an error if not
3649 may-call-functions.
3650 (_initialize_infcall): Call add_setshow_boolean_cmd for
3651 may-call-functions.
3652
725cbb63
KS
36532019-04-25 Keith Seitz <keiths@redhat.com>
3654
3655 PR c++/24367
3656 * cp-support.c (inspect_type): Don't attempt substitutions
3657 of symbol with the same name.
3658
3d1cbb78
TT
36592019-04-25 Tom Tromey <tromey@adacore.com>
3660
3661 PR gdb/24475:
3662 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
3663 static.
3664
94aeb44b
TT
36652019-04-25 Tom Tromey <tromey@adacore.com>
3666
3667 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
3668 rvalue reference.
3669 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
3670 (gdb_xml_parser::parse): Use std::move.
3671 * python/python-internal.h (gdbpy_convert_exception): Take a const
3672 reference.
3673 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
3674 std::move.
3675 * python/py-utils.c (gdbpy_convert_exception): Take a const
3676 reference.
3677 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3678 Use std::move.
3679 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3680 Use std::move.
3681 * mi/mi-main.c (mi_print_exception): Take a const reference.
3682 * main.c (handle_command_errors): Take a const reference.
3683 * linespec.c (parse_linespec): Use std::move.
3684 * infcall.c (run_inferior_call): Use std::move.
3685 (call_function_by_hand_dummy): Use std::move.
3686 * exec.c (try_open_exec_file): Use std::move.
3687 * exceptions.h (exception_print, exception_fprintf)
3688 (exception_print_same): Update.
3689 * exceptions.c (print_exception, exception_print)
3690 (exception_fprintf, exception_print_same): Change parameters to
3691 const reference.
3692 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
3693 * common/new-op.c: Use std::move.
3694 * common/common-exceptions.h (struct gdb_exception): Add move
3695 constructor.
3696 (struct gdb_exception_error, struct gdb_exception_quit, struct
3697 gdb_quit_bad_alloc): Change constructor to move constructor.
3698 (throw_exception): Change parameter to rvalue reference.
3699 * common/common-exceptions.c (throw_exception): Take rvalue
3700 reference.
3701 * cli/cli-interp.c (safe_execute_command): Use std::move.
3702 * breakpoint.c (insert_bp_location, location_to_sals): Use
3703 std::move.
3704
680d7fd5
TT
37052019-04-25 Tom Tromey <tromey@adacore.com>
3706
3707 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
3708 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
3709 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
3710 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
3711 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
3712 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
3713 guile/scm-value.c: Use unpack.
3714 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
3715 gdbscm_gdb_exception.
3716 (gdbscm_throw_gdb_exception): Likewise.
3717 (struct gdbscm_gdb_exception): New.
3718 (unpack): New function.
3719 (gdbscm_wrap): Use unpack.
3720
c6fdd8b2
TT
37212019-04-25 Tom Tromey <tromey@adacore.com>
3722
3723 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3724 (gdb_rl_callback_handler): Use std::move.
3725 * common/common-exceptions.h (struct gdb_exception): Add move
3726 assignment operator.
3727 (throw_exception_sjlj): Change "exception" to const reference.
3728 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
3729 (throw_exception_sjlj): Change "exception" to const reference.
3730
cc06b668
TT
37312019-04-25 Tom Tromey <tromey@adacore.com>
3732
3733 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
3734 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
3735 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3736 Update.
3737 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3738 Update.
3739 * mi/mi-interp.c (mi_interp::exec): Update.
3740 * linespec.c (parse_linespec): Update.
3741 * infcall.c (run_inferior_call): Update.
3742 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
3743 * guile/scm-symbol.c (gdbscm_lookup_symbol)
3744 (gdbscm_lookup_global_symbol): Update.
3745 * guile/scm-param.c (gdbscm_parameter_value): Update.
3746 * guile/scm-frame.c (gdbscm_frame_read_register)
3747 (gdbscm_frame_read_var): Update.
3748 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
3749 * exec.c (try_open_exec_file): Update.
3750 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3751 (gdb_rl_callback_handler): Update.
3752 * common/common-exceptions.h (exception_none): Don't declare.
3753 * common/common-exceptions.c (exception_none): Don't define.
3754 (struct catcher) <exception>: Update.
3755 * cli/cli-interp.c (safe_execute_command): Update.
3756 * breakpoint.c (insert_bp_location, location_to_sals): Update.
3757
cf532bd1
AT
37582019-04-25 Ali Tamur <tamur@google.com>
3759
3760 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
3761 (read_attribute_value): Likewise.
3762 (dwarf2_read_addr_index): Update comment.
3763 (read_str_index): Add DW_FORM_strx.
3764 (dwarf2_string_attr): Likewise.
3765 (dwarf2_const_value_attr): Likewise.
3766 (dump_die_shallow): Likewise.
3767 (dwarf2_fetch_constant_bytes): Likewise.
3768 (skip_form_bytes): Likewise.
3769 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
3770
82433e3e
SDJ
37712019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3772
3773 PR corefiles/11608
3774 PR corefiles/18187
3775 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
3776 OFFSET. Verify if current mapping contains an ELF header.
3777 (linux_find_memory_regions_full): Adjust call to
3778 dump_mapping_p.
3779
723adb65
SL
37802019-04-25 Sandra Loosemore <sandra@codesourcery.com>
3781 Kang Li <kanglictf@gmail.com>
3782
3783 PR gdb/21600
3784
3785 * dwarf2-frame.c (read_initial_length): Be consistent about using
3786 unsigned representation of length.
3787 (decode_frame_entry_1): Likewise. Check for wraparound of
3788 end pointer as well as buffer overflow.
3789
596179f7
SDJ
37902019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3791
3792 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
3793 "vq".
3794
a59240a4
TT
37952019-04-24 Tom Tromey <tromey@adacore.com>
3796
3797 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
3798
f872fdbb
AB
37992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * s12z-tdep.c (s12z_unwind_pc): Delete.
3802 (s12z_unwind_sp): Delete.
3803 (s12z_gdbarch_init): Don't register deleted functions with
3804 gdbarch.
3805
b614e6f3
AB
38062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * rl78-tdep.c (rl78_unwind_sp): Delete.
3809 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
3810
14faed38
AB
38112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3812
3813 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
3814 (xstormy16_unwind_pc): Delete.
3815 (xstormy16_dummy_id): Delete.
3816 (xstormy16_gdbarch_init): Don't register deleted functions with
3817 gdbarch.
3818
541aad8a
AB
38192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * vax-tdep.c (vax_unwind_pc): Delete.
3822 (vax_gdbarch_init): Don't register deleted function with gdbarch.
3823
29222070
AB
38242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * v850-tdep.c (v850_unwind_sp): Delete.
3827 (v850_unwind_pc): Delete.
3828 (v850_dummy_id): Delete.
3829 (v850_gdbarch_init): Don't register deleted functions with
3830 gdbarch.
3831
0f534d76
AB
38322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
3835 (tilegx_unwind_pc): Delete.
3836 (tilegx_unwind_dummy_id): Delete.
3837 (tilegx_gdbarch_init): Don't register deleted functions with
3838 gdbarch.
3839
1ba7b7f9
AB
38402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
3843 (tic6x_dummy_id): Delete.
3844 (tic6x_gdbarch_init): Don't register deleted functions with
3845 gdbarch.
3846
d31f262c
AB
38472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3848
3849 * sparc-tdep.c (sparc_unwind_pc): Delete.
3850 (sparc32_gdbarch_init): Don't register deleted function with
3851 gdbarch.
3852
6d14d64d
AB
38532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * sh-tdep.c (sh_unwind_sp): Delete.
3856 (sh_unwind_pc): Delete.
3857 (sh_dummy_id): Delete.
3858 (sh_gdbarch_init): Don't register deleted functions with
3859 gdbarch.
3860
a40dde9d
AB
38612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * score-tdep.c (score_unwind_sp): Delete.
3864 (score_unwind_pc): Delete.
3865 (score_dummy_id): Delete.
3866 (score_gdbarch_init): Don't register deleted functions with
3867 gdbarch.
3868
47c47d69
AB
38692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * rx-tdep.c (rx_unwind_pc): Delete.
3872 (rx_unwind_sp): Delete.
3873 (rx_dummy_id): Delete.
3874 (rx_gdbarch_init): Don't register deleted functions with
3875 gdbarch. Update comment.
3876
833a4480
AB
38772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
3880 (rs6000_dummy_id): Delete.
3881 (rs6000_gdbarch_init): Don't register deleted functions with
3882 gdbarch.
3883
3f2cef49
AB
38842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * or1k-tdep.c (or1k_dummy_id): Delete.
3887 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
3888
96acf884
AB
38892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * nios2-tdep.c (nios2_dummy_id): Delete.
3892 (nios2_unwind_sp): Delete.
3893 (nios2_gdbarch_init): Don't register deleted functions with
3894 gdbarch.
3895
ca0ab0aa
AB
38962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * nds32-tdep.c (nds32_dummy_id): Delete.
3899 (nds32_unwind_pc): Delete.
3900 (nds32_unwind_sp): Delete.
3901 (nds32_gdbarch_init): Don't register deleted functions with
3902 gdbarch.
3903
c8259044
AB
39042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * msp430-tdep.c (msp430_unwind_pc): Delete.
3907 (msp430_unwind_sp): Delete.
3908 (msp430_dummy_id): Delete.
3909 (msp430_gdbarch_init): Don't register deleted functions with
3910 gdbarch.
3911
27f113c8
AB
39122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3913
3914 * moxie-tdep.c (moxie_unwind_sp): Delete.
3915 (moxie_unwind_pc): Delete.
3916 (moxie_dummy_id): Delete.
3917 (moxie_gdbarch_init): Don't register deleted functions with
3918 gdbarch.
3919
aee6c3cd
AB
39202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * mn10300-tdep.c (mn10300_dummy_id): Delete.
3923 (mn10300_unwind_pc): Delete.
3924 (mn10300_unwind_sp): Delete.
3925 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
3926 mn10300_unwind_sp.
3927 (mn10300_frame_unwind_init): Don't register deleted functions with
3928 gdbarch.
3929
8e2b5aea
AB
39302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * mep-tdep.c (mep_unwind_pc): Delete.
3933 (mep_unwind_sp): Delete.
3934 (mep_dummy_id): Delete.
3935 (mep_gdbarch_init): Don't register deleted functions with
3936 gdbarch.
3937
43cf3ede
AB
39382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
3941 (m68hc11_unwind_sp): Delete.
3942 (m68hc11_gdbarch_init): Don't register deleted functions with
3943 gdbarch.
3944
5e79b7bb
AB
39452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * m32r-tdep.c (m32r_unwind_sp): Delete.
3948 (m32r_unwind_pc): Delete.
3949 (m32r_dummy_id): Delete.
3950 (m32r_gdbarch_init): Don't register deleted functions with
3951 gdbarch.
3952
89b268d8
AB
39532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3954
3955 * m32c-tdep.c (m32c_unwind_pc): Delete.
3956 (m32c_unwind_sp): Delete.
3957 (m32c_dummy_id): Delete.
3958 (m32c_gdbarch_init): Don't register deleted functions with
3959 gdbarch.
3960
946c28d2
AB
39612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
3964 (lm32_unwind_pc): Delete.
3965 (lm32_dummy_id): Delete.
3966 (lm32_gdbarch_init): Don't register deleted functions with
3967 gdbarch.
3968
bf12844a
AB
39692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
3972 (iq2000_unwind_pc): Delete.
3973 (iq2000_dummy_id): Delete.
3974 (iq2000_gdbarch_init): Don't register deleted functions with
3975 gdbarch.
3976
ecbc06d2
AB
39772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * nds32-tdep.c (nds32_type_align): Delete.
3980 (nds32_push_dummy_call): Use type_align instead.
3981
030197b4
AB
39822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * arm-tdep.c (arm_type_align): Only handle vector override case.
3985 (arm_push_dummy_call): Use type_align.
3986 (arm_gdbarch_init): Register arm_type_align gdbarch function.
3987
b907456c
AB
39882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
3991 case.
3992 (pass_on_stack): Use type_align.
3993 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
3994 function.
3995
9e97ba43
TT
39962019-04-23 Tom Tromey <tromey@adacore.com>
3997
3998 * dwarf2read.c (line_header::file_name_at): Remove unused
3999 overload.
4000
6892f601
TV
40012019-04-23 Tom de Vries <tdevries@suse.de>
4002
4003 PR gdb/24438
4004 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
4005 invocation.
4006
336d760d
AT
4007
40082019-03-27 Ali Tamur <tamur@google.com>
4009
4010 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
4011 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
4012 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
4013 (dwarf_expr_context::get_addr_index): Likewise
4014 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
4015 (symbol_needs_eval_context::get_addr_index): Likewise
4016 (disassemble_dwarf_expression): Add DW_OP_addrx
4017 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
4018 (read_cutu_die_from_dwo): Update comment
4019 (skip_one_die): Add DW_FORM_addrx
4020 (read_attribute_value): Likewise
4021 (var_decode_location): Add DW_OP_addrx
4022 (dwarf2_const_value_attr): Add DW_FORM_addrx
4023 (dump_die_shallow): Likewise
4024 (dwarf2_fetch_constant_bytes): Likewise
4025 (decode_locdesc): Add DW_OP_addrx
4026 (skip_form_bytes): Add DW_FORM_addrx
4027
ad9d13f8
AT
40282019-04-22 Ali Tamur <tamur@google.com>
4029
4030 * MAINTAINERS (Write After Approval): Add self.
4031
d70cc3ba
SM
40322019-04-22 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * solib-svr4.c (get_svr4_info): Add pspace parameter.
4035 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
4036 (open_symbol_file_object): Likewise.
4037 (svr4_default_sos): Add info parameter.
4038 (svr4_read_so_list): Likewise.
4039 (svr4_current_sos_direct): Adjust functions calls to pass down
4040 info.
4041 (svr4_current_sos_1): Add info parameter.
4042 (svr4_current_sos): Call get_svr4_info, pass info down to
4043 svr4_current_sos_1.
4044 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
4045 get_svr4_info.
4046 (svr4_in_dynsym_resolve_code): Pass current_program_space to
4047 get_svr4_info.
4048 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
4049 to get_svr4_info.
4050 (probes_table_remove_objfile_probes): Likewise.
4051 (register_solib_event_probe): Add info parameter.
4052 (solist_update_incremental): Pass info parameter down to
4053 svr4_read_so_list.
4054 (disable_probes_interface): Add info parameter.
4055 (svr4_handle_solib_event): Pass current_program_space to
4056 get_svr4_info. Adjust disable_probes_interface cleanup.
4057 (svr4_create_probe_breakpoints): Add info parameter, pass it
4058 down to register_solib_event_probe.
4059 (svr4_create_solib_event_breakpoints): Add info parameter,
4060 pass it down to svr4_create_probe_breakpoints.
4061 (enable_break): Pass info down to
4062 svr4_create_solib_event_breakpoints.
4063 (svr4_solib_create_inferior_hook): Pass current_program_space to
4064 get_svr4_info.
4065 (svr4_clear_solib): Likewise.
4066
7905fc35
PA
40672019-04-22 Pedro Alves <palves@redhat.com>
4068
4069 * solib-svr4.c (svr4_free_objfile_observer): New.
4070 (probe_and_action::objfile): New field.
4071 (probes_table_htab_remove_objfile_probes)
4072 (probes_table_remove_objfile_probes): New functions.
4073 (register_solib_event_probe): Add 'objfile' parameter. Store it
4074 in the new probe_and_action. Don't store the probe in 'lookup'.
4075 (svr4_create_probe_breakpoints): Pass objfile to
4076 register_solib_event_probe.
4077 (_initialize_svr4_solib): Register a free_objfile observer.
4078
fb881986
TT
40792019-04-19 Tom Tromey <tom@tromey.com>
4080
4081 * common/queue.h: Remove.
4082
8732db6c
TT
40832019-04-19 Tom Tromey <tom@tromey.com>
4084
4085 * event-loop.c: Don't include "common/queue.h".
4086
97dfbadd
TT
40872019-04-19 Tom Tromey <tom@tromey.com>
4088
4089 * remote.c (remote_target): Use delete.
4090 * remote-notif.h: Include <list>, not "common/queue.h".
4091 (notif_client_p): Remove typedef.
4092 (remote_notif_state): Add constructor, destructor, initializer.
4093 <notif_queue>: Now a std::list.
4094 (remote_notif_state_xfree): Don't declare.
4095 * remote-notif.c (remote_notif_process, handle_notification)
4096 (remote_notif_state_allocate): Update.
4097 (~remote_notif_state): Rename from remote_notif_state_xfree.
4098
cf250e36
TT
40992019-04-19 Tom Tromey <tom@tromey.com>
4100
4101 * symfile.c (reread_symbols): Update.
4102 * objfiles.c (objfile_register_static_link)
4103 (objfile_lookup_static_link): Update
4104 (~objfile) Don't delete static_links.
4105 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
4106
61f4b350
TT
41072019-04-19 Tom Tromey <tom@tromey.com>
4108
4109 * type-stack.h (struct type_stack) <insert>: Constify string.
4110 * type-stack.c (type_stack::insert): Constify string.
4111 * gdbtypes.h (lookup_template_type): Update.
4112 (address_space_name_to_int): Update.
4113 * gdbtypes.c (address_space_name_to_int): Make space_identifier
4114 const.
4115 (lookup_template_type): Make name const.
4116 * c-exp.y: Update rules.
4117 (lex_one_token, classify_name, classify_inner_name)
4118 (c_print_token): Update.
4119 * p-exp.y: Update rules.
4120 (yylex): Update.
4121 * f-exp.y: Update rules.
4122 (yylex): Update.
4123 * d-exp.y: Update rules.
4124 (lex_one_token, classify_name, classify_inner_name): Update.
4125 * parse.c (write_dollar_variable, copy_name): Return std::string.
4126 * parser-defs.h (copy_name): Change return type.
4127 * m2-exp.y: Update rules.
4128 (yylex): Update.
4129 * go-exp.y (lex_one_token): Update.
4130 Update rules.
4131 (classify_unsafe_function, classify_packaged_name)
4132 (classify_name, yylex): Update.
4133
189b8c2e
ST
41342019-04-19 Sergei Trofimovich <siarheit@google.com>
4135
4136 * configure.ac: add --enable-source-highlight switch.
4137 * configure: Regenerate.
4138 * top.c (print_gdb_version): plumb --enable-source-highlight
4139 status to "show configuration".
4140
8ecb59f8
TT
41412019-04-19 Tom Tromey <tromey@adacore.com>
4142
4143 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
4144 Check ADA_TYPE_P.
4145 (empty_record, ada_template_to_fixed_record_type_1)
4146 (template_to_static_fixed_type)
4147 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
4148 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
4149 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
4150 macros.
4151
62160ec9
TT
41522019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
4153
4154 PR symtab/24423:
4155 * source.c (print_source_lines_base): Advance "iter" when a
4156 control character is seen.
4157
f2ae8bc8
PW
41582019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4159
4160 * inferior.h (struct infcall_suspend_state_deleter):
4161 Catch exception in destructor to avoid crash.
4162
d563b953
PW
41632019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4164
4165 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
4166 close to the add_com "shell".
4167
dc34c897
TT
41682019-04-18 Tom Tromey <tromey@adacore.com>
4169
4170 * process-stratum-target.h (class process_stratum_target)
4171 <stratum>: Add "final".
4172
a12e5744
TT
41732019-04-17 Tom Tromey <tromey@adacore.com>
4174
4175 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
4176 against nullptr before use.
4177
a7e559cc
AH
41782019-04-17 Alan Hayward <alan.hayward@arm.com>
4179
4180 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
4181
c01660c6
AB
41822019-04-17 Jim Wilson <jimw@sifive.com>
4183 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
4186 code read might fail, assume 4-byte breakpoint in that case.
4187
4aa866af
LS
41882019-04-15 Leszek Swirski <leszeks@google.com>
4189
4190 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
4191 rather than a hand-rolled POD check when checking for forced MEMORY
4192 classification.
4193
48574d91
AH
41942019-04-15 Alan Hayward <alan.hayward@arm.com>
4195
4196 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
4197 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
4198 function.
4199 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
4200 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
4201 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
4202 declaration.
4203
4da037ef
AH
42042019-04-15 Alan Hayward <alan.hayward@arm.com>
4205
4206 * aarch64-linux-nat.c
4207 (aarch64_linux_nat_target::thread_architecture): Add override.
4208 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
4209 each VQ.
4210
ccb8d7e8
AH
42112019-04-15 Alan Hayward <alan.hayward@arm.com>
4212
4213 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
4214
35add35e
AB
42152019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
4218 target types of size 96-bits, add some additional comments, and
4219 check that the builtin type we found was the correct size.
4220
51196bbc
EZ
42212019-04-12 Eli Zaretskii <eliz@gnu.org>
4222
4223 * utils.c (prompt_for_continue): Don't restore the styling at the
4224 end, as applied_style has the wrong value. This fixes styling in
4225 long lists of file names that are interrupted by the "Continue?"
4226 prompt.
4227
62253a61
AB
42282019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
4231 * c-lang.c (c_language_defn): Likewise.
4232 (cplus_language_defn): Likewise.
4233 (asm_language_defn): Likewise.
4234 (minimal_language_defn): Likewise.
4235 * d-lang.c (d_language_defn): Likewise.
4236 * f-lang.c (f_language_defn): Likewise.
4237 * go-lang.c (go_language_defn): Likewise.
4238 * language.c (unknown_language_defn): Likewise.
4239 (auto_language_defn): Likewise.
4240 * language.h (struct language_defn): Remove la_magic field.
4241 (LANG_MAGIC): Delete.
4242 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
4243 * objc-lang.c (objc_language_defn): Likewise.
4244 * opencl-lang.c (opencl_language_defn): Likewise.
4245 * p-lang.c (pascal_language_defn): Likewise.
4246 * rust-lang.c (rust_language_defn): Likewise.
4247
a9158a86
AB
42482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4249
4250 * riscv-tdep.c (riscv_type_align): New function.
4251 (riscv_type_alignment): Delete.
4252 (riscv_arg_location): Use 'type_align'.
4253 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
4254
41077b66
AB
42552019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * gdbtypes.c (type_align): A struct with no non-static fields also
4258 has alignment of 1.
4259
9f0272f8
AB
42602019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
4263 component to 0.
4264 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
4265 member.
4266 (riscv_struct_info::analyse): New implementation using new
4267 analyse_inner member function.
4268 (riscv_struct_info::field_offset): New member function.
4269 (riscv_struct_info::m_offsets): New member variable.
4270 (riscv_struct_info::analyse_inner): New private member function,
4271 takes the old implementation of riscv_struct_info::analyse but
4272 extended to track field offsets.
4273 (riscv_call_arg_struct): Update the struct folding special cases
4274 to handle cases where empty C++ structs, which are non-zero
4275 length, are found.
4276 (riscv_arg_location): Initialise the length of each location, a
4277 non-zero length now indicates the location is in use.
4278 (riscv_push_dummy_call): Allow for the first location having a
4279 non-zero offset when setting up arguments.
4280 (riscv_return_value): Likewise, but for return values.
4281
02cf60c7
TT
42822019-04-11 Tom Tromey <tromey@adacore.com>
4283
4284 * utils.c (internal_vproblem): Make "msg" const.
4285
68811f8f
AH
42862019-04-11 Alan Hayward <alan.hayward@arm.com>
4287
4288 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
4289 * trad-frame.c (trad_frame_reset_saved_regs): New function.
4290 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
4291 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
4292
3f52fdbc
KB
42932019-04-10 Kevin Buettner <kevinb@redhat.com>
4294
4295 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
4296 function.
4297 (fill_gregset): Call amd64_linux_collect_native_gregset instead
4298 of amd64_collect_native_gregset.
4299 (amd64_linux_nat_target::store_registers): Likewise.
4300
e9ad22ee
TT
43012019-04-10 Tom Tromey <tom@tromey.com>
4302
4303 * symtab.c (lookup_global_symbol_from_objfile)
4304 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
4305 * objfiles.h (class separate_debug_iterator): New.
4306 (class separate_debug_range): New.
4307 (struct objfile) <separate_debug_objfiles>: New method.
4308 (objfile_separate_debug_iterate): Don't declare.
4309 * objfiles.c (separate_debug_iterator::operator++): Rename from
4310 objfile_separate_debug_iterate.
4311 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
4312 iterator.
4313 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
4314 iterator.
4315
ee371134
TT
43162019-04-10 Tom Tromey <tom@tromey.com>
4317
4318 * symfile.c (reread_symbols): Remove old comment.
4319 * objfiles.c (free_all_objfiles): Fix a typo.
4320
bf227d61
TT
43212019-04-10 Tom Tromey <tom@tromey.com>
4322
4323 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
4324 * minsyms.c (lookup_minimal_symbol): Use foreach.
4325 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4326 (lookup_minimal_symbol_solib_trampoline): Likewise.
4327 * symfile.c (reread_symbols): Use foreach.
4328
8dc433a0
TT
43292019-04-09 Ivan Begert <ivanbegert@gmail.com>
4330 Tom Tromey <tromey@adacore.com>
4331
4332 PR rust/24414:
4333 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
4334 (rust_lex_int_test): Change "value" to be LONGEST.
4335 (rust_lex_tests): Add test for long integer literal.
4336
9ab8741a
TT
43372019-04-09 Tom Tromey <tromey@adacore.com>
4338
4339 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
4340 to bool.
4341 (extended_remote_target::attach): Update.
4342 (remote_target::remote_notice_new_inferior): Update.
4343 (remote_target::add_current_inferior_and_thread): Update.
4344 * inferior.c (exit_inferior_1): Use "false".
4345 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
4346
e242fd12
SM
43472019-04-09 Simon Marchi <simon.marchi@efficios.com>
4348
9ca1957f 4349 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
4350 the "start" command.
4351
2b0c8b01
KB
43522019-04-08 Kevin Buettner <kevinb@redhat.com>
4353
4354 * python/py-inferior.c (infpy_thread_from_thread_handle):
4355 Adjust comments to reflect renaming of thread_from_thread_handle
4356 to thread_from_handle. Adjust keywords. Fix type error message.
4357 (inferior_object_methods): Add thread_from_handle. Retain
4358 thread_from_thread_handle, but mark it as deprecated.
4359
50a82723
KB
43602019-04-08 Kevin Buettner <kevinb@redhat.com>
4361
4362 * gdbthread.h (find_thread_by_handle): Revise declaration.
4363 * thread.c (find_thread_by_handle): Likewise. Adjust
4364 implementation too.
4365 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
4366 support for buffer objects as handles.
4367
cf63b016
KB
43682019-04-08 Kevin Buettner <kevinb@redhat.com>
4369
4370 * python/py-infthread.c (thpy_thread_handle): New function.
4371 (thread_object_methods): Register thpy_thread_handle.
4372
3d6c6204
KB
43732019-04-08 Kevin Buettner <kevinb@redhat.com>
4374
4375 * gdbthread.h (thread_to_thread_handle): Declare.
4376 * thread.c (gdbtypes.h): Include.
4377 (thread_to_thread_handle): New function.
4378
4379 * target.h (struct target_ops): Add thread_info_to_thread_handle.
4380 (target_thread_info_to_thread_handle): Declare.
4381 * target.c (target_thread_info_to_thread_handle): New function.
4382 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
4383 * target-delegates.c: Regenerate.
4384
4385 * linux-thread-db.c (class thread_db_target): Add method
4386 thread_info_to_thread_handle.
4387 (thread_db_target::thread_info_to_thread_handle): Define.
4388 * remote.c (class remote_target): Add new method
4389 thread_info_to_thread_handle.
4390 (remote_target::thread_info_to_thread_handle): Define.
4391
56be6ea8
PA
43922019-04-08 Pedro Alves <palves@redhat.com>
4393
4394 * common/common-exceptions.c (throw_exception): Don't create
4395 named object to throw; throw directly.
4396 (throw_it): Likewise. Don't initialize gdb_exception::message
4397 here, with new; pass FMT and AP to the ctor instead.
4398 * common/common-exceptions.h: Include <string>.
4399 (gdb_exception::gdb_exception(enum return_reason, enum errors,
4400 const char *, va_list)): New ctor. Use std::make_shared.
4401 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
4402 errors)): Delete.
4403 (gdb_exception_error::gdb_exception_error(enum errors, const char
4404 *, va_list)): New.
4405 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
4406 Add assertion.
4407 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
4408 errors)): Delete.
4409 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
4410 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
4411 Add assertion.
4412
eedc3f4f
TT
44132019-04-08 Tom Tromey <tom@tromey.com>
4414
4415 * valops.c (value_rtti_indirect_type): Replace throw_exception
4416 with throw.
4417 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
4418 with throw.
4419 * thread.c (thr_try_catch_cmd): Replace throw_exception with
4420 throw.
4421 * target.c (target_translate_tls_address): Replace throw_exception
4422 with throw.
4423 * stack.c (frame_apply_command_count): Replace throw_exception
4424 with throw.
4425 * solib-spu.c (append_ocl_sos): Replace throw_exception with
4426 throw.
4427 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
4428 with throw.
4429 * rs6000-tdep.c (rs6000_frame_cache)
4430 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
4431 * remote.c: Replace throw_exception with throw.
4432 * record-full.c (record_full_message, record_full_wait_1)
4433 (record_full_restore): Replace throw_exception with throw.
4434 * record-btrace.c:
4435 (get_thread_current_frame_id, record_btrace_start_replaying)
4436 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
4437 (cmd_record_btrace_start): Replace throw_exception with throw.
4438 * parse.c (parse_exp_in_context_1): Replace throw_exception with
4439 throw.
4440 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
4441 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
4442 * linespec.c:
4443 (find_linespec_symbols): Replace throw_exception with throw.
4444 * infrun.c (displaced_step_prepare, resume): Replace
4445 throw_exception with throw.
4446 * infcmd.c (post_create_inferior): Replace throw_exception with
4447 throw.
4448 * inf-loop.c (inferior_event_handler): Replace throw_exception
4449 with throw.
4450 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
4451 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
4452 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
4453 (get_prev_frame_always, get_frame_pc_if_available)
4454 (get_frame_address_in_block_if_available, get_frame_language):
4455 Replace throw_exception with throw.
4456 * frame-unwind.c (frame_unwind_try_unwinder): Replace
4457 throw_exception with throw.
4458 * eval.c (fetch_subexp_value, evaluate_var_value)
4459 (evaluate_funcall, evaluate_subexp_standard): Replace
4460 throw_exception with throw.
4461 * dwarf2loc.c (call_site_find_chain)
4462 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
4463 Replace throw_exception with throw.
4464 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
4465 with throw.
4466 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
4467 throw.
4468 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
4469 * completer.c (complete_line_internal): Replace throw_exception
4470 with throw.
4471 * compile/compile-object-run.c (compile_object_run): Replace
4472 throw_exception with throw.
4473 * cli/cli-script.c (process_next_line): Replace throw_exception
4474 with throw.
4475 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
4476 (btrace_enable, btrace_maint_update_pt_packets): Replace
4477 throw_exception with throw.
4478 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
4479 throw_exception with throw.
4480 * break-catch-throw.c (re_set_exception_catchpoint): Replace
4481 throw_exception with throw.
4482 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
4483 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
4484 * aarch64-tdep.c (aarch64_make_prologue_cache)
4485 (aarch64_make_stub_cache): Replace throw_exception with throw.
4486
26003a20
TT
44872019-04-08 Tom Tromey <tom@tromey.com>
4488
4489 * common/common-exceptions.c (throw_exception): Rename from
4490 throw_exception_cxx. Remove old copy. Make argument const.
4491 (throw_it): Create and throw exception objects directly.
4492 * common/common-exceptions.h (throw_exception): Make argument
4493 const.
4494 (struct gdb_exception_error): Add constructor.
4495 (struct gdb_exception_quit): Add constructor.
4496
d272eb37
TT
44972019-04-08 Tom Tromey <tom@tromey.com>
4498
4499 * common/common-exceptions.h (exception_rethrow): Don't declare.
4500 (TRY_SJLJ): Update comment.
4501 (TRY, CATCH, END_CATCH): Remove.
4502 * common/common-exceptions.c (exception_rethrow): Remove.
4503
230d2906
TT
45042019-04-08 Tom Tromey <tom@tromey.com>
4505
4506 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
4507 Remove.
4508 (gdb_exception_error): Rename from
4509 gdb_exception_RETURN_MASK_ERROR.
4510 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
4511 (gdb_quit_bad_alloc): Update.
4512 * aarch64-tdep.c: Update.
4513 * ada-lang.c: Update.
4514 * ada-typeprint.c: Update.
4515 * ada-valprint.c: Update.
4516 * amd64-tdep.c: Update.
4517 * arch-utils.c: Update.
4518 * break-catch-throw.c: Update.
4519 * breakpoint.c: Update.
4520 * btrace.c: Update.
4521 * c-varobj.c: Update.
4522 * cli/cli-cmds.c: Update.
4523 * cli/cli-interp.c: Update.
4524 * cli/cli-script.c: Update.
4525 * common/common-exceptions.c: Update.
4526 * common/new-op.c: Update.
4527 * common/selftest.c: Update.
4528 * compile/compile-c-symbols.c: Update.
4529 * compile/compile-cplus-symbols.c: Update.
4530 * compile/compile-object-load.c: Update.
4531 * compile/compile-object-run.c: Update.
4532 * completer.c: Update.
4533 * corelow.c: Update.
4534 * cp-abi.c: Update.
4535 * cp-support.c: Update.
4536 * cp-valprint.c: Update.
4537 * darwin-nat.c: Update.
4538 * disasm-selftests.c: Update.
4539 * dtrace-probe.c: Update.
4540 * dwarf-index-cache.c: Update.
4541 * dwarf-index-write.c: Update.
4542 * dwarf2-frame-tailcall.c: Update.
4543 * dwarf2-frame.c: Update.
4544 * dwarf2loc.c: Update.
4545 * dwarf2read.c: Update.
4546 * eval.c: Update.
4547 * event-loop.c: Update.
4548 * event-top.c: Update.
4549 * exec.c: Update.
4550 * f-valprint.c: Update.
4551 * fbsd-tdep.c: Update.
4552 * frame-unwind.c: Update.
4553 * frame.c: Update.
4554 * gdbtypes.c: Update.
4555 * gnu-v3-abi.c: Update.
4556 * guile/guile-internal.h: Update.
4557 * guile/scm-block.c: Update.
4558 * guile/scm-breakpoint.c: Update.
4559 * guile/scm-cmd.c: Update.
4560 * guile/scm-disasm.c: Update.
4561 * guile/scm-frame.c: Update.
4562 * guile/scm-lazy-string.c: Update.
4563 * guile/scm-math.c: Update.
4564 * guile/scm-param.c: Update.
4565 * guile/scm-ports.c: Update.
4566 * guile/scm-pretty-print.c: Update.
4567 * guile/scm-symbol.c: Update.
4568 * guile/scm-symtab.c: Update.
4569 * guile/scm-type.c: Update.
4570 * guile/scm-value.c: Update.
4571 * i386-linux-tdep.c: Update.
4572 * i386-tdep.c: Update.
4573 * inf-loop.c: Update.
4574 * infcall.c: Update.
4575 * infcmd.c: Update.
4576 * infrun.c: Update.
4577 * jit.c: Update.
4578 * language.c: Update.
4579 * linespec.c: Update.
4580 * linux-fork.c: Update.
4581 * linux-nat.c: Update.
4582 * linux-tdep.c: Update.
4583 * linux-thread-db.c: Update.
4584 * main.c: Update.
4585 * mi/mi-cmd-break.c: Update.
4586 * mi/mi-cmd-stack.c: Update.
4587 * mi/mi-interp.c: Update.
4588 * mi/mi-main.c: Update.
4589 * objc-lang.c: Update.
4590 * p-valprint.c: Update.
4591 * parse.c: Update.
4592 * ppc-linux-tdep.c: Update.
4593 * printcmd.c: Update.
4594 * python/py-arch.c: Update.
4595 * python/py-breakpoint.c: Update.
4596 * python/py-cmd.c: Update.
4597 * python/py-finishbreakpoint.c: Update.
4598 * python/py-frame.c: Update.
4599 * python/py-framefilter.c: Update.
4600 * python/py-gdb-readline.c: Update.
4601 * python/py-inferior.c: Update.
4602 * python/py-infthread.c: Update.
4603 * python/py-lazy-string.c: Update.
4604 * python/py-linetable.c: Update.
4605 * python/py-objfile.c: Update.
4606 * python/py-param.c: Update.
4607 * python/py-prettyprint.c: Update.
4608 * python/py-progspace.c: Update.
4609 * python/py-record-btrace.c: Update.
4610 * python/py-record.c: Update.
4611 * python/py-symbol.c: Update.
4612 * python/py-type.c: Update.
4613 * python/py-unwind.c: Update.
4614 * python/py-utils.c: Update.
4615 * python/py-value.c: Update.
4616 * python/python.c: Update.
4617 * record-btrace.c: Update.
4618 * record-full.c: Update.
4619 * remote-fileio.c: Update.
4620 * remote.c: Update.
4621 * riscv-tdep.c: Update.
4622 * rs6000-aix-tdep.c: Update.
4623 * rs6000-tdep.c: Update.
4624 * rust-exp.y: Update.
4625 * rust-lang.c: Update.
4626 * s390-tdep.c: Update.
4627 * selftest-arch.c: Update.
4628 * solib-dsbt.c: Update.
4629 * solib-frv.c: Update.
4630 * solib-spu.c: Update.
4631 * solib-svr4.c: Update.
4632 * solib.c: Update.
4633 * sparc64-linux-tdep.c: Update.
4634 * stack.c: Update.
4635 * symfile-mem.c: Update.
4636 * symmisc.c: Update.
4637 * target.c: Update.
4638 * thread.c: Update.
4639 * top.c: Update.
4640 * tracefile-tfile.c: Update.
4641 * tui/tui.c: Update.
4642 * typeprint.c: Update.
4643 * unittests/cli-utils-selftests.c: Update.
4644 * unittests/parse-connection-spec-selftests.c: Update.
4645 * valops.c: Update.
4646 * valprint.c: Update.
4647 * value.c: Update.
4648 * varobj.c: Update.
4649 * windows-nat.c: Update.
4650 * x86-linux-nat.c: Update.
4651 * xml-support.c: Update.
4652
a70b8144
TT
46532019-04-08 Tom Tromey <tom@tromey.com>
4654
4655 * xml-support.c: Use C++ exception handling.
4656 * x86-linux-nat.c: Use C++ exception handling.
4657 * windows-nat.c: Use C++ exception handling.
4658 * varobj.c: Use C++ exception handling.
4659 * value.c: Use C++ exception handling.
4660 * valprint.c: Use C++ exception handling.
4661 * valops.c: Use C++ exception handling.
4662 * unittests/parse-connection-spec-selftests.c: Use C++ exception
4663 handling.
4664 * unittests/cli-utils-selftests.c: Use C++ exception handling.
4665 * typeprint.c: Use C++ exception handling.
4666 * tui/tui.c: Use C++ exception handling.
4667 * tracefile-tfile.c: Use C++ exception handling.
4668 * top.c: Use C++ exception handling.
4669 * thread.c: Use C++ exception handling.
4670 * target.c: Use C++ exception handling.
4671 * symmisc.c: Use C++ exception handling.
4672 * symfile-mem.c: Use C++ exception handling.
4673 * stack.c: Use C++ exception handling.
4674 * sparc64-linux-tdep.c: Use C++ exception handling.
4675 * solib.c: Use C++ exception handling.
4676 * solib-svr4.c: Use C++ exception handling.
4677 * solib-spu.c: Use C++ exception handling.
4678 * solib-frv.c: Use C++ exception handling.
4679 * solib-dsbt.c: Use C++ exception handling.
4680 * selftest-arch.c: Use C++ exception handling.
4681 * s390-tdep.c: Use C++ exception handling.
4682 * rust-lang.c: Use C++ exception handling.
4683 * rust-exp.y: Use C++ exception handling.
4684 * rs6000-tdep.c: Use C++ exception handling.
4685 * rs6000-aix-tdep.c: Use C++ exception handling.
4686 * riscv-tdep.c: Use C++ exception handling.
4687 * remote.c: Use C++ exception handling.
4688 * remote-fileio.c: Use C++ exception handling.
4689 * record-full.c: Use C++ exception handling.
4690 * record-btrace.c: Use C++ exception handling.
4691 * python/python.c: Use C++ exception handling.
4692 * python/py-value.c: Use C++ exception handling.
4693 * python/py-utils.c: Use C++ exception handling.
4694 * python/py-unwind.c: Use C++ exception handling.
4695 * python/py-type.c: Use C++ exception handling.
4696 * python/py-symbol.c: Use C++ exception handling.
4697 * python/py-record.c: Use C++ exception handling.
4698 * python/py-record-btrace.c: Use C++ exception handling.
4699 * python/py-progspace.c: Use C++ exception handling.
4700 * python/py-prettyprint.c: Use C++ exception handling.
4701 * python/py-param.c: Use C++ exception handling.
4702 * python/py-objfile.c: Use C++ exception handling.
4703 * python/py-linetable.c: Use C++ exception handling.
4704 * python/py-lazy-string.c: Use C++ exception handling.
4705 * python/py-infthread.c: Use C++ exception handling.
4706 * python/py-inferior.c: Use C++ exception handling.
4707 * python/py-gdb-readline.c: Use C++ exception handling.
4708 * python/py-framefilter.c: Use C++ exception handling.
4709 * python/py-frame.c: Use C++ exception handling.
4710 * python/py-finishbreakpoint.c: Use C++ exception handling.
4711 * python/py-cmd.c: Use C++ exception handling.
4712 * python/py-breakpoint.c: Use C++ exception handling.
4713 * python/py-arch.c: Use C++ exception handling.
4714 * printcmd.c: Use C++ exception handling.
4715 * ppc-linux-tdep.c: Use C++ exception handling.
4716 * parse.c: Use C++ exception handling.
4717 * p-valprint.c: Use C++ exception handling.
4718 * objc-lang.c: Use C++ exception handling.
4719 * mi/mi-main.c: Use C++ exception handling.
4720 * mi/mi-interp.c: Use C++ exception handling.
4721 * mi/mi-cmd-stack.c: Use C++ exception handling.
4722 * mi/mi-cmd-break.c: Use C++ exception handling.
4723 * main.c: Use C++ exception handling.
4724 * linux-thread-db.c: Use C++ exception handling.
4725 * linux-tdep.c: Use C++ exception handling.
4726 * linux-nat.c: Use C++ exception handling.
4727 * linux-fork.c: Use C++ exception handling.
4728 * linespec.c: Use C++ exception handling.
4729 * language.c: Use C++ exception handling.
4730 * jit.c: Use C++ exception handling.
4731 * infrun.c: Use C++ exception handling.
4732 * infcmd.c: Use C++ exception handling.
4733 * infcall.c: Use C++ exception handling.
4734 * inf-loop.c: Use C++ exception handling.
4735 * i386-tdep.c: Use C++ exception handling.
4736 * i386-linux-tdep.c: Use C++ exception handling.
4737 * guile/scm-value.c: Use C++ exception handling.
4738 * guile/scm-type.c: Use C++ exception handling.
4739 * guile/scm-symtab.c: Use C++ exception handling.
4740 * guile/scm-symbol.c: Use C++ exception handling.
4741 * guile/scm-pretty-print.c: Use C++ exception handling.
4742 * guile/scm-ports.c: Use C++ exception handling.
4743 * guile/scm-param.c: Use C++ exception handling.
4744 * guile/scm-math.c: Use C++ exception handling.
4745 * guile/scm-lazy-string.c: Use C++ exception handling.
4746 * guile/scm-frame.c: Use C++ exception handling.
4747 * guile/scm-disasm.c: Use C++ exception handling.
4748 * guile/scm-cmd.c: Use C++ exception handling.
4749 * guile/scm-breakpoint.c: Use C++ exception handling.
4750 * guile/scm-block.c: Use C++ exception handling.
4751 * guile/guile-internal.h: Use C++ exception handling.
4752 * gnu-v3-abi.c: Use C++ exception handling.
4753 * gdbtypes.c: Use C++ exception handling.
4754 * frame.c: Use C++ exception handling.
4755 * frame-unwind.c: Use C++ exception handling.
4756 * fbsd-tdep.c: Use C++ exception handling.
4757 * f-valprint.c: Use C++ exception handling.
4758 * exec.c: Use C++ exception handling.
4759 * event-top.c: Use C++ exception handling.
4760 * event-loop.c: Use C++ exception handling.
4761 * eval.c: Use C++ exception handling.
4762 * dwarf2read.c: Use C++ exception handling.
4763 * dwarf2loc.c: Use C++ exception handling.
4764 * dwarf2-frame.c: Use C++ exception handling.
4765 * dwarf2-frame-tailcall.c: Use C++ exception handling.
4766 * dwarf-index-write.c: Use C++ exception handling.
4767 * dwarf-index-cache.c: Use C++ exception handling.
4768 * dtrace-probe.c: Use C++ exception handling.
4769 * disasm-selftests.c: Use C++ exception handling.
4770 * darwin-nat.c: Use C++ exception handling.
4771 * cp-valprint.c: Use C++ exception handling.
4772 * cp-support.c: Use C++ exception handling.
4773 * cp-abi.c: Use C++ exception handling.
4774 * corelow.c: Use C++ exception handling.
4775 * completer.c: Use C++ exception handling.
4776 * compile/compile-object-run.c: Use C++ exception handling.
4777 * compile/compile-object-load.c: Use C++ exception handling.
4778 * compile/compile-cplus-symbols.c: Use C++ exception handling.
4779 * compile/compile-c-symbols.c: Use C++ exception handling.
4780 * common/selftest.c: Use C++ exception handling.
4781 * common/new-op.c: Use C++ exception handling.
4782 * cli/cli-script.c: Use C++ exception handling.
4783 * cli/cli-interp.c: Use C++ exception handling.
4784 * cli/cli-cmds.c: Use C++ exception handling.
4785 * c-varobj.c: Use C++ exception handling.
4786 * btrace.c: Use C++ exception handling.
4787 * breakpoint.c: Use C++ exception handling.
4788 * break-catch-throw.c: Use C++ exception handling.
4789 * arch-utils.c: Use C++ exception handling.
4790 * amd64-tdep.c: Use C++ exception handling.
4791 * ada-valprint.c: Use C++ exception handling.
4792 * ada-typeprint.c: Use C++ exception handling.
4793 * ada-lang.c: Use C++ exception handling.
4794 * aarch64-tdep.c: Use C++ exception handling.
4795
3d6e9d23
TT
47962019-04-08 Tom Tromey <tom@tromey.com>
4797
4798 * xml-support.c (gdb_xml_parser::parse): Update.
4799 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4800 * value.c (show_convenience): Update.
4801 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
4802 (test_parse_flags_qcs): Update.
4803 * thread.c (thr_try_catch_cmd): Update.
4804 * target.c (target_translate_tls_address): Update.
4805 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4806 (info_frame_command_core, frame_apply_command_count): Update.
4807 * rust-exp.y (rust_lex_exception_test): Update.
4808 * riscv-tdep.c (riscv_print_one_register_info): Update.
4809 * remote.c (remote_target::enable_btrace): Update.
4810 * record-btrace.c (record_btrace_enable_warn): Update.
4811 * python/py-utils.c (gdbpy_convert_exception): Update.
4812 * printcmd.c (do_one_display, print_variable_and_value): Update.
4813 * mi/mi-main.c (mi_print_exception): Update.
4814 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
4815 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4816 * linux-nat.c (linux_nat_target::attach): Update.
4817 * linux-fork.c (class scoped_switch_fork_info): Update.
4818 * infrun.c (displaced_step_prepare): Update.
4819 * infcall.c (call_function_by_hand_dummy): Update.
4820 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
4821 * gnu-v3-abi.c (print_one_vtable): Update.
4822 * frame.c (get_prev_frame_always): Update.
4823 * f-valprint.c (info_common_command_for_block): Update.
4824 * exec.c (try_open_exec_file): Update.
4825 * exceptions.c (print_exception, exception_print)
4826 (exception_fprintf, exception_print_same): Update.
4827 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
4828 * dwarf-index-cache.c (index_cache::store)
4829 (index_cache::lookup_gdb_index): Update.
4830 * darwin-nat.c (maybe_cache_shell): Update.
4831 * cp-valprint.c (cp_print_value_fields): Update.
4832 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
4833 (gcc_cplus_symbol_address): Update.
4834 * compile/compile-c-symbols.c (gcc_convert_symbol)
4835 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
4836 * common/selftest.c: Update.
4837 * common/common-exceptions.h (struct gdb_exception) <message>: Now
4838 a std::string.
4839 (exception_try_scope_entry, exception_try_scope_exit): Don't
4840 declare.
4841 (struct exception_try_scope): Remove.
4842 (TRY): Don't use exception_try_scope.
4843 (struct gdb_exception): Add constructor, operator=.
4844 <what>: New method.
4845 (struct gdb_exception_RETURN_MASK_ALL)
4846 (struct gdb_exception_RETURN_MASK_ERROR)
4847 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
4848 (struct gdb_quit_bad_alloc): Update.
4849 * common/common-exceptions.c (exception_none): Change
4850 initializer.
4851 (struct catcher) <state, exception>: Initialize inline.
4852 <prev>: Remove member.
4853 (current_catcher): Remove.
4854 (catchers): New global.
4855 (exceptions_state_mc_init): Simplify.
4856 (catcher_pop): Remove.
4857 (exceptions_state_mc, exceptions_state_mc_catch): Update.
4858 (try_scope_depth, exception_try_scope_entry)
4859 (exception_try_scope_exit): Remove.
4860 (throw_exception_sjlj): Update.
4861 (exception_messages, exception_messages_size): Remove.
4862 (throw_it): Simplify.
4863 (gdb_exception_sliced_copy): Remove.
4864 (throw_exception_cxx): Update.
4865 * cli/cli-script.c (script_from_file): Update.
4866 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
4867 Update.
4868 * ada-valprint.c (ada_val_print): Update.
4869 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
4870 (create_excep_cond_exprs): Update.
4871
c5c10118
TT
48722019-04-08 Tom Tromey <tom@tromey.com>
4873
4874 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
4875 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
4876 (TRY, CATCH, END_CATCH): Remove some definitions.
4877 * common/common-exceptions.c: Don't use GDB_XCPT.
4878 (catcher_list_size): Remove.
4879 (throw_exception, throw_it): Simplify.
4880
4de283e4
TT
48812019-04-05 Tom Tromey <tom@tromey.com>
4882
4883 Revert the header-sorting patch.
4884 * ft32-tdep.c: Revert.
4885 * frv-tdep.c: Revert.
4886 * frv-linux-tdep.c: Revert.
4887 * frame.c: Revert.
4888 * frame-unwind.c: Revert.
4889 * frame-base.c: Revert.
4890 * fork-child.c: Revert.
4891 * findvar.c: Revert.
4892 * findcmd.c: Revert.
4893 * filesystem.c: Revert.
4894 * filename-seen-cache.h: Revert.
4895 * filename-seen-cache.c: Revert.
4896 * fbsd-tdep.c: Revert.
4897 * fbsd-nat.h: Revert.
4898 * fbsd-nat.c: Revert.
4899 * f-valprint.c: Revert.
4900 * f-typeprint.c: Revert.
4901 * f-lang.c: Revert.
4902 * extension.h: Revert.
4903 * extension.c: Revert.
4904 * extension-priv.h: Revert.
4905 * expprint.c: Revert.
4906 * exec.h: Revert.
4907 * exec.c: Revert.
4908 * exceptions.c: Revert.
4909 * event-top.c: Revert.
4910 * event-loop.c: Revert.
4911 * eval.c: Revert.
4912 * elfread.c: Revert.
4913 * dwarf2read.h: Revert.
4914 * dwarf2read.c: Revert.
4915 * dwarf2loc.c: Revert.
4916 * dwarf2expr.h: Revert.
4917 * dwarf2expr.c: Revert.
4918 * dwarf2-frame.c: Revert.
4919 * dwarf2-frame-tailcall.c: Revert.
4920 * dwarf-index-write.h: Revert.
4921 * dwarf-index-write.c: Revert.
4922 * dwarf-index-common.c: Revert.
4923 * dwarf-index-cache.h: Revert.
4924 * dwarf-index-cache.c: Revert.
4925 * dummy-frame.c: Revert.
4926 * dtrace-probe.c: Revert.
4927 * disasm.h: Revert.
4928 * disasm.c: Revert.
4929 * disasm-selftests.c: Revert.
4930 * dictionary.c: Revert.
4931 * dicos-tdep.c: Revert.
4932 * demangle.c: Revert.
4933 * dcache.h: Revert.
4934 * dcache.c: Revert.
4935 * darwin-nat.h: Revert.
4936 * darwin-nat.c: Revert.
4937 * darwin-nat-info.c: Revert.
4938 * d-valprint.c: Revert.
4939 * d-namespace.c: Revert.
4940 * d-lang.c: Revert.
4941 * ctf.c: Revert.
4942 * csky-tdep.c: Revert.
4943 * csky-linux-tdep.c: Revert.
4944 * cris-tdep.c: Revert.
4945 * cris-linux-tdep.c: Revert.
4946 * cp-valprint.c: Revert.
4947 * cp-support.c: Revert.
4948 * cp-namespace.c: Revert.
4949 * cp-abi.c: Revert.
4950 * corelow.c: Revert.
4951 * corefile.c: Revert.
4952 * continuations.c: Revert.
4953 * completer.h: Revert.
4954 * completer.c: Revert.
4955 * complaints.c: Revert.
4956 * coffread.c: Revert.
4957 * coff-pe-read.c: Revert.
4958 * cli-out.h: Revert.
4959 * cli-out.c: Revert.
4960 * charset.c: Revert.
4961 * c-varobj.c: Revert.
4962 * c-valprint.c: Revert.
4963 * c-typeprint.c: Revert.
4964 * c-lang.c: Revert.
4965 * buildsym.c: Revert.
4966 * buildsym-legacy.c: Revert.
4967 * build-id.h: Revert.
4968 * build-id.c: Revert.
4969 * btrace.c: Revert.
4970 * bsd-uthread.c: Revert.
4971 * breakpoint.h: Revert.
4972 * breakpoint.c: Revert.
4973 * break-catch-throw.c: Revert.
4974 * break-catch-syscall.c: Revert.
4975 * break-catch-sig.c: Revert.
4976 * blockframe.c: Revert.
4977 * block.c: Revert.
4978 * bfin-tdep.c: Revert.
4979 * bfin-linux-tdep.c: Revert.
4980 * bfd-target.c: Revert.
4981 * bcache.c: Revert.
4982 * ax-general.c: Revert.
4983 * ax-gdb.h: Revert.
4984 * ax-gdb.c: Revert.
4985 * avr-tdep.c: Revert.
4986 * auxv.c: Revert.
4987 * auto-load.c: Revert.
4988 * arm-wince-tdep.c: Revert.
4989 * arm-tdep.c: Revert.
4990 * arm-symbian-tdep.c: Revert.
4991 * arm-pikeos-tdep.c: Revert.
4992 * arm-obsd-tdep.c: Revert.
4993 * arm-nbsd-tdep.c: Revert.
4994 * arm-nbsd-nat.c: Revert.
4995 * arm-linux-tdep.c: Revert.
4996 * arm-linux-nat.c: Revert.
4997 * arm-fbsd-tdep.c: Revert.
4998 * arm-fbsd-nat.c: Revert.
4999 * arm-bsd-tdep.c: Revert.
5000 * arch-utils.c: Revert.
5001 * arc-tdep.c: Revert.
5002 * arc-newlib-tdep.c: Revert.
5003 * annotate.h: Revert.
5004 * annotate.c: Revert.
5005 * amd64-windows-tdep.c: Revert.
5006 * amd64-windows-nat.c: Revert.
5007 * amd64-tdep.c: Revert.
5008 * amd64-sol2-tdep.c: Revert.
5009 * amd64-obsd-tdep.c: Revert.
5010 * amd64-obsd-nat.c: Revert.
5011 * amd64-nbsd-tdep.c: Revert.
5012 * amd64-nbsd-nat.c: Revert.
5013 * amd64-nat.c: Revert.
5014 * amd64-linux-tdep.c: Revert.
5015 * amd64-linux-nat.c: Revert.
5016 * amd64-fbsd-tdep.c: Revert.
5017 * amd64-fbsd-nat.c: Revert.
5018 * amd64-dicos-tdep.c: Revert.
5019 * amd64-darwin-tdep.c: Revert.
5020 * amd64-bsd-nat.c: Revert.
5021 * alpha-tdep.c: Revert.
5022 * alpha-obsd-tdep.c: Revert.
5023 * alpha-nbsd-tdep.c: Revert.
5024 * alpha-mdebug-tdep.c: Revert.
5025 * alpha-linux-tdep.c: Revert.
5026 * alpha-linux-nat.c: Revert.
5027 * alpha-bsd-tdep.c: Revert.
5028 * alpha-bsd-nat.c: Revert.
5029 * aix-thread.c: Revert.
5030 * agent.c: Revert.
5031 * addrmap.c: Revert.
5032 * ada-varobj.c: Revert.
5033 * ada-valprint.c: Revert.
5034 * ada-typeprint.c: Revert.
5035 * ada-tasks.c: Revert.
5036 * ada-lang.c: Revert.
5037 * aarch64-tdep.c: Revert.
5038 * aarch64-ravenscar-thread.c: Revert.
5039 * aarch64-newlib-tdep.c: Revert.
5040 * aarch64-linux-tdep.c: Revert.
5041 * aarch64-linux-nat.c: Revert.
5042 * aarch64-fbsd-tdep.c: Revert.
5043 * aarch64-fbsd-nat.c: Revert.
5044 * aarch32-linux-nat.c: Revert.
5045
d55e5aa6
TT
50462019-04-05 Tom Tromey <tom@tromey.com>
5047
5048 * ft32-tdep.c: Sort headers.
5049 * frv-tdep.c: Sort headers.
5050 * frv-linux-tdep.c: Sort headers.
5051 * frame.c: Sort headers.
5052 * frame-unwind.c: Sort headers.
5053 * frame-base.c: Sort headers.
5054 * fork-child.c: Sort headers.
5055 * findvar.c: Sort headers.
5056 * findcmd.c: Sort headers.
5057 * filesystem.c: Sort headers.
5058 * filename-seen-cache.h: Sort headers.
5059 * filename-seen-cache.c: Sort headers.
5060 * fbsd-tdep.c: Sort headers.
5061 * fbsd-nat.h: Sort headers.
5062 * fbsd-nat.c: Sort headers.
5063 * f-valprint.c: Sort headers.
5064 * f-typeprint.c: Sort headers.
5065 * f-lang.c: Sort headers.
5066 * extension.h: Sort headers.
5067 * extension.c: Sort headers.
5068 * extension-priv.h: Sort headers.
5069 * expprint.c: Sort headers.
5070 * exec.h: Sort headers.
5071 * exec.c: Sort headers.
5072 * exceptions.c: Sort headers.
5073 * event-top.c: Sort headers.
5074 * event-loop.c: Sort headers.
5075 * eval.c: Sort headers.
5076 * elfread.c: Sort headers.
5077 * dwarf2read.h: Sort headers.
5078 * dwarf2read.c: Sort headers.
5079 * dwarf2loc.c: Sort headers.
5080 * dwarf2expr.h: Sort headers.
5081 * dwarf2expr.c: Sort headers.
5082 * dwarf2-frame.c: Sort headers.
5083 * dwarf2-frame-tailcall.c: Sort headers.
5084 * dwarf-index-write.h: Sort headers.
5085 * dwarf-index-write.c: Sort headers.
5086 * dwarf-index-common.c: Sort headers.
5087 * dwarf-index-cache.h: Sort headers.
5088 * dwarf-index-cache.c: Sort headers.
5089 * dummy-frame.c: Sort headers.
5090 * dtrace-probe.c: Sort headers.
5091 * disasm.h: Sort headers.
5092 * disasm.c: Sort headers.
5093 * disasm-selftests.c: Sort headers.
5094 * dictionary.c: Sort headers.
5095 * dicos-tdep.c: Sort headers.
5096 * demangle.c: Sort headers.
5097 * dcache.h: Sort headers.
5098 * dcache.c: Sort headers.
5099 * darwin-nat.h: Sort headers.
5100 * darwin-nat.c: Sort headers.
5101 * darwin-nat-info.c: Sort headers.
5102 * d-valprint.c: Sort headers.
5103 * d-namespace.c: Sort headers.
5104 * d-lang.c: Sort headers.
5105 * ctf.c: Sort headers.
5106 * csky-tdep.c: Sort headers.
5107 * csky-linux-tdep.c: Sort headers.
5108 * cris-tdep.c: Sort headers.
5109 * cris-linux-tdep.c: Sort headers.
5110 * cp-valprint.c: Sort headers.
5111 * cp-support.c: Sort headers.
5112 * cp-namespace.c: Sort headers.
5113 * cp-abi.c: Sort headers.
5114 * corelow.c: Sort headers.
5115 * corefile.c: Sort headers.
5116 * continuations.c: Sort headers.
5117 * completer.h: Sort headers.
5118 * completer.c: Sort headers.
5119 * complaints.c: Sort headers.
5120 * coffread.c: Sort headers.
5121 * coff-pe-read.c: Sort headers.
5122 * cli-out.h: Sort headers.
5123 * cli-out.c: Sort headers.
5124 * charset.c: Sort headers.
5125 * c-varobj.c: Sort headers.
5126 * c-valprint.c: Sort headers.
5127 * c-typeprint.c: Sort headers.
5128 * c-lang.c: Sort headers.
5129 * buildsym.c: Sort headers.
5130 * buildsym-legacy.c: Sort headers.
5131 * build-id.h: Sort headers.
5132 * build-id.c: Sort headers.
5133 * btrace.c: Sort headers.
5134 * bsd-uthread.c: Sort headers.
5135 * breakpoint.h: Sort headers.
5136 * breakpoint.c: Sort headers.
5137 * break-catch-throw.c: Sort headers.
5138 * break-catch-syscall.c: Sort headers.
5139 * break-catch-sig.c: Sort headers.
5140 * blockframe.c: Sort headers.
5141 * block.c: Sort headers.
5142 * bfin-tdep.c: Sort headers.
5143 * bfin-linux-tdep.c: Sort headers.
5144 * bfd-target.c: Sort headers.
5145 * bcache.c: Sort headers.
5146 * ax-general.c: Sort headers.
5147 * ax-gdb.h: Sort headers.
5148 * ax-gdb.c: Sort headers.
5149 * avr-tdep.c: Sort headers.
5150 * auxv.c: Sort headers.
5151 * auto-load.c: Sort headers.
5152 * arm-wince-tdep.c: Sort headers.
5153 * arm-tdep.c: Sort headers.
5154 * arm-symbian-tdep.c: Sort headers.
5155 * arm-pikeos-tdep.c: Sort headers.
5156 * arm-obsd-tdep.c: Sort headers.
5157 * arm-nbsd-tdep.c: Sort headers.
5158 * arm-nbsd-nat.c: Sort headers.
5159 * arm-linux-tdep.c: Sort headers.
5160 * arm-linux-nat.c: Sort headers.
5161 * arm-fbsd-tdep.c: Sort headers.
5162 * arm-fbsd-nat.c: Sort headers.
5163 * arm-bsd-tdep.c: Sort headers.
5164 * arch-utils.c: Sort headers.
5165 * arc-tdep.c: Sort headers.
5166 * arc-newlib-tdep.c: Sort headers.
5167 * annotate.h: Sort headers.
5168 * annotate.c: Sort headers.
5169 * amd64-windows-tdep.c: Sort headers.
5170 * amd64-windows-nat.c: Sort headers.
5171 * amd64-tdep.c: Sort headers.
5172 * amd64-sol2-tdep.c: Sort headers.
5173 * amd64-obsd-tdep.c: Sort headers.
5174 * amd64-obsd-nat.c: Sort headers.
5175 * amd64-nbsd-tdep.c: Sort headers.
5176 * amd64-nbsd-nat.c: Sort headers.
5177 * amd64-nat.c: Sort headers.
5178 * amd64-linux-tdep.c: Sort headers.
5179 * amd64-linux-nat.c: Sort headers.
5180 * amd64-fbsd-tdep.c: Sort headers.
5181 * amd64-fbsd-nat.c: Sort headers.
5182 * amd64-dicos-tdep.c: Sort headers.
5183 * amd64-darwin-tdep.c: Sort headers.
5184 * amd64-bsd-nat.c: Sort headers.
5185 * alpha-tdep.c: Sort headers.
5186 * alpha-obsd-tdep.c: Sort headers.
5187 * alpha-nbsd-tdep.c: Sort headers.
5188 * alpha-mdebug-tdep.c: Sort headers.
5189 * alpha-linux-tdep.c: Sort headers.
5190 * alpha-linux-nat.c: Sort headers.
5191 * alpha-bsd-tdep.c: Sort headers.
5192 * alpha-bsd-nat.c: Sort headers.
5193 * aix-thread.c: Sort headers.
5194 * agent.c: Sort headers.
5195 * addrmap.c: Sort headers.
5196 * ada-varobj.c: Sort headers.
5197 * ada-valprint.c: Sort headers.
5198 * ada-typeprint.c: Sort headers.
5199 * ada-tasks.c: Sort headers.
5200 * ada-lang.c: Sort headers.
5201 * aarch64-tdep.c: Sort headers.
5202 * aarch64-ravenscar-thread.c: Sort headers.
5203 * aarch64-newlib-tdep.c: Sort headers.
5204 * aarch64-linux-tdep.c: Sort headers.
5205 * aarch64-linux-nat.c: Sort headers.
5206 * aarch64-fbsd-tdep.c: Sort headers.
5207 * aarch64-fbsd-nat.c: Sort headers.
5208 * aarch32-linux-nat.c: Sort headers.
5209
699bd4cf
TT
52102019-04-04 Tom Tromey <tom@tromey.com>
5211
5212 * varobj.c (varobj_create): Update.
5213 * rust-exp.y (struct rust_parser) <update_innermost_block,
5214 lookup_symbol>: New methods.
5215 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
5216 Rename.
5217 (rust_parser::rust_lookup_type)
5218 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
5219 * printcmd.c (display_command, do_one_display): Update.
5220 * parser-defs.h (struct parser_state) <parser_state>: Add
5221 "tracker" parameter.
5222 (block_tracker): New member.
5223 (class innermost_block_tracker) <innermost_block_tracker>: Add
5224 "types" parameter.
5225 <reset>: Remove method.
5226 (innermost_block): Don't declare.
5227 (null_post_parser): Update.
5228 * parse.c (innermost_block): Remove global.
5229 (write_dollar_variable): Update.
5230 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
5231 Remove "tracker_types" parameter.
5232 (parse_expression): Add "tracker" parameter.
5233 (parse_expression_for_completion): Update.
5234 (null_post_parser): Add "tracker" parameter.
5235 * p-exp.y: Update rules.
5236 * m2-exp.y: Update rules.
5237 * language.h (struct language_defn) <la_post_parser>: Add
5238 "tracker" parameter.
5239 * go-exp.y: Update rules.
5240 * f-exp.y: Update rules.
5241 * expression.h (parse_expression, parse_exp_1): Add "tracker"
5242 parameter.
5243 * d-exp.y: Update rules.
5244 * c-exp.y: Update rules.
5245 * breakpoint.c (set_breakpoint_condition): Create an
5246 innermost_block_tracker.
5247 (watch_command_1): Likewise.
5248 * ada-lang.c (resolve): Add "tracker" parameter.
5249 (resolve_subexp): Likewise.
5250 * ada-exp.y (write_var_from_sym): Update.
5251
dac43e32
TT
52522019-04-04 Tom Tromey <tom@tromey.com>
5253
5254 * type-stack.h: New file.
5255 * type-stack.c: New file.
5256 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
5257 type-stack.h.
5258 (insert_into_type_stack, insert_type, push_type, push_type_int)
5259 (insert_type_address_space, pop_type, pop_type_int)
5260 (pop_typelist, pop_type_stack, append_type_stack)
5261 (push_type_stack, get_type_stack, push_typelist)
5262 (follow_type_instance_flags, follow_types): Don't declare.
5263 * parse.c (type_stack): Remove global.
5264 (parse_exp_in_context): Update.
5265 (insert_into_type_stack, insert_type, push_type, push_type_int)
5266 (insert_type_address_space, pop_type, pop_type_int)
5267 (pop_typelist, pop_type_stack, append_type_stack)
5268 (push_type_stack, get_type_stack, push_typelist)
5269 (follow_type_instance_flags, follow_types): Remove (moved to
5270 type-stack.c).
5271 * f-exp.y (type_stack): New global.
5272 Update rules.
5273 (push_kind_type, f_parse): Update.
5274 * d-exp.y (type_stack): New global.
5275 Update rules.
5276 (d_parse): Update.
5277 * c-exp.y (struct c_parse_state) <type_stack>: New member.
5278 Update rules.
5279 * Makefile.in (COMMON_SFILES): Add type-stack.c.
5280 (HFILES_NO_SRCDIR): Add type-stack.h.
5281
2a612529
TT
52822019-04-04 Tom Tromey <tom@tromey.com>
5283
5284 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
5285 (rust_parser::convert_ast_to_expression, rust_parse)
5286 (rust_lex_test_completion, rust_lex_tests): Update.
5287 * parser-defs.h (struct expr_completion_state): New.
5288 (struct parser_state) <parser_state>: Add completion parameter.
5289 <mark_struct_expression, mark_completion_tag>: New methods.
5290 <parse_completion, m_completion_state>: New members.
5291 (prefixify_expression, null_post_parser): Update.
5292 (mark_struct_expression, mark_completion_tag): Don't declare.
5293 * parse.c (parse_completion, expout_last_struct)
5294 (expout_tag_completion_type, expout_completion_name): Remove
5295 globals.
5296 (parser_state::mark_struct_expression)
5297 (parser_state::mark_completion_tag): Now methods.
5298 (prefixify_expression): Add last_struct parameter.
5299 (prefixify_subexp): Likewise.
5300 (parse_exp_1): Update.
5301 (parse_exp_in_context): Add cstate parameter. Update.
5302 (parse_expression_for_completion): Create an
5303 expr_completion_state.
5304 (null_post_parser): Add "completion" parameter.
5305 * p-exp.y: Update rules.
5306 (yylex): Update.
5307 * language.h (struct language_defn) <la_post_parser>: Add
5308 "completing" parameter.
5309 * go-exp.y: Update rules.
5310 (lex_one_token): Update.
5311 * expression.h (parse_completion): Don't declare.
5312 * d-exp.y: Update rules.
5313 (lex_one_token): Update rules.
5314 * c-exp.y: Update rules.
5315 (lex_one_token): Update.
5316 * ada-lang.c (resolve): Add "parse_completion" parameter.
5317 (resolve_subexp): Likewise.
5318 (ada_resolve_function): Likewise.
5319
43476f0b
TT
53202019-04-04 Tom Tromey <tom@tromey.com>
5321
5322 * parser-defs.h (struct parser_state) <start_arglist,
5323 end_arglist>: New methods.
5324 <arglist_len, m_funcall_chain>: New members.
5325 (arglist_len, start_arglist, end_arglist): Don't declare.
5326 * parse.c (arglist_len, funcall_chain): Remove global.
5327 (start_arglist, end_arglist): Remove functions.
5328 (parse_exp_in_context): Update.
5329 * p-exp.y: Update rules.
5330 * m2-exp.y: Update rules.
5331 * go-exp.y: Update rules.
5332 * f-exp.y: Update rules.
5333 * d-exp.y: Update rules.
5334 * c-exp.y: Update rules.
5335
5776fca3
TT
53362019-04-04 Tom Tromey <tom@tromey.com>
5337
5338 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
5339 lex_operator, push_back>: New methods.
5340 Update all rules.
5341 (rust_parser::lex_hex, lex_escape): Rename and update.
5342 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
5343 (rust_parser::lex_operator): Rename and update.
5344 (rust_parser::lex_number, rustyylex, rustyyerror)
5345 (rust_lex_test_init, rust_lex_test_sequence)
5346 (rust_lex_test_push_back, rust_lex_tests): Update.
5347 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
5348 parameter.
5349 <lexptr, prev_lexptr>: New members.
5350 (lexptr, prev_lexptr): Don't declare.
5351 * parse.c (lexptr, prev_lexptr): Remove globals.
5352 (parse_exp_in_context): Update.
5353 * p-exp.y (yylex, yyerror): Update.
5354 * m2-exp.y (parse_number, yylex, yyerror): Update.
5355 * go-exp.y (lex_one_token, yyerror): Update.
5356 * f-exp.y (match_string_literal, yylex, yyerror): Update.
5357 * d-exp.y (lex_one_token, yyerror): Update.
5358 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
5359 (lex_one_token, yyerror): Update.
5360 * ada-lex.l (YY_INPUT): Update.
5361 (rewind_to_char): Update.
5362 * ada-exp.y (yyerror): Update.
5363
8621b685
TT
53642019-04-04 Tom Tromey <tom@tromey.com>
5365
5366 * rust-exp.y (rustyylex, rust_lex_tests): Update.
5367 * parser-defs.h (struct parser_state) <parser_state>: Add new
5368 parameter.
5369 <comma_terminates>: New member.
5370 (comma_terminates): Don't declare global.
5371 * parse.c (comma_terminates): Remove global.
5372 (parse_exp_in_context): Update.
5373 * p-exp.y (yylex): Update.
5374 * m2-exp.y (yylex): Update.
5375 * go-exp.y (lex_one_token): Update.
5376 * f-exp.y (yylex): Update.
5377 * d-exp.y (lex_one_token): Update.
5378 * c-exp.y (lex_one_token): Update.
5379 * ada-lex.l: Update.
5380
28aaf3fd
TT
53812019-04-04 Tom Tromey <tom@tromey.com>
5382
5383 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
5384 (rustyylex, rust_lex_test_init, rust_lex_test_one)
5385 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
5386 * parser-defs.h (paren_depth): Don't declare.
5387 * parse.c (paren_depth): Remove global.
5388 (parse_exp_in_context): Update.
5389 * p-exp.y (paren_depth): New global.
5390 (pascal_parse): Initialize it.
5391 * m2-exp.y (paren_depth): New global.
5392 (m2_parse): Initialize it.
5393 * go-exp.y (paren_depth): New global.
5394 (go_parse): Initialize it.
5395 * f-exp.y (paren_depth): New global.
5396 (f_parse): Initialize it.
5397 * d-exp.y (paren_depth): New global.
5398 (d_parse): Initialize it.
5399 * c-exp.y (paren_depth): New global.
5400 (c_parse): Initialize it.
5401 * ada-lex.l (paren_depth): New global.
5402 (lexer_init): Initialize it.
5403
1e58a4a4
TT
54042019-04-04 Tom Tromey <tom@tromey.com>
5405
5406 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
5407 (rust_parser::convert_ast_to_type)
5408 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
5409 * parser-defs.h (struct parser_state) <parser_state>: Add
5410 parameters. Initialize new members.
5411 <expression_context_block, expression_context_pc>: New members.
5412 * parse.c (expression_context_block, expression_context_pc):
5413 Remove globals.
5414 (parse_exp_in_context): Update.
5415 * p-exp.y: Update all rules.
5416 (yylex): Update.
5417 * m2-exp.y: Update all rules.
5418 (yylex): Update.
5419 * go-exp.y (yylex): Update.
5420 * f-exp.y (yylex): Update.
5421 * d-exp.y: Update all rules.
5422 (yylex): Update.
5423 * c-exp.y: Update all rules.
5424 (lex_one_token, classify_name, yylex, c_parse): Update.
5425 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
5426
37eedb39
TT
54272019-04-04 Tom Tromey <tom@tromey.com>
5428
5429 * gdbarch.h, gdbarch.c: Rebuild.
5430 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
5431 * stap-probe.h:
5432 (struct stap_parse_info): Replace "parser_state" with
5433 "expr_builder".
5434 * parser-defs.h (struct expr_builder): Rename from "parser_state".
5435 (parser_state): New class.
5436 * parse.c (expr_builder): Rename.
5437 (expr_builder::release): Rename.
5438 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
5439 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
5440 (write_exp_elt_longcst, write_exp_elt_floatcst)
5441 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
5442 (write_exp_string_vector, write_exp_bitstring)
5443 (write_exp_msymbol, mark_struct_expression)
5444 (write_dollar_variable)
5445 (insert_type_address_space, increase_expout_size): Replace
5446 "parser_state" with "expr_builder".
5447 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
5448 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
5449 "parser_state" with "expr_builder".
5450
73923d7e
TT
54512019-04-04 Tom Tromey <tom@tromey.com>
5452
5453 * rust-exp.y: Replace "parse_language" with method call.
5454 * p-exp.y:
5455 (yylex): Replace "parse_language" with method call.
5456 * m2-exp.y:
5457 (yylex): Replace "parse_language" with method call.
5458 * go-exp.y (classify_name): Replace "parse_language" with method
5459 call.
5460 * f-exp.y (yylex): Replace "parse_language" with method call.
5461 * d-exp.y (lex_one_token): Replace "parse_language" with method
5462 call.
5463 * c-exp.y:
5464 (lex_one_token, classify_name, yylex): Replace "parse_language"
5465 with method call.
5466 * ada-exp.y (find_primitive_type, type_char)
5467 (type_system_address): Replace "parse_language" with method call.
5468
fa9f5be6
TT
54692019-04-04 Tom Tromey <tom@tromey.com>
5470
5471 * rust-exp.y: Replace "parse_gdbarch" with method call.
5472 * parse.c (write_dollar_variable, insert_type_address_space):
5473 Replace "parse_gdbarch" with method call.
5474 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
5475 call.
5476 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
5477 call.
5478 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
5479 "parse_gdbarch" with method call.
5480 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
5481 with method call.
5482 * f-exp.y (parse_type, parse_f_type, yylex): Replace
5483 "parse_gdbarch" with method call.
5484 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
5485 "parse_gdbarch" with method call.
5486 * c-exp.y (parse_type, parse_number, classify_name): Replace
5487 "parse_gdbarch" with method call.
5488 * ada-lex.l: Replace "parse_gdbarch" with method call.
5489 * ada-exp.y (parse_type, find_primitive_type, type_char)
5490 (type_system_address): Replace "parse_gdbarch" with method call.
5491
1201a264
TT
54922019-04-04 Tom Tromey <tom@tromey.com>
5493
5494 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
5495 * stap-probe.c (stap_parse_argument): Update.
5496 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
5497 initial_size parameter.
5498 * rust-exp.y (rust_lex_tests): Update.
5499 * parse.c (parser_state): Update.
5500 (parse_exp_in_context): Update.
5501 * parser-defs.h (struct parser_state) <parser_state>: Remove
5502 "initial_size" parameter.
5503
e3980ce2
TT
55042019-04-04 Tom Tromey <tom@tromey.com>
5505
5506 * parser-defs.h (increase_expout_size): Don't declare.
5507 * parse.c (increase_expout_size): Now static.
5508
e9f8e3f1
TS
55092019-04-04 Thomas Schwinge <thomas@codesourcery.com>
5510
5511 * gnu-nat.c (gnu_nat_target::wait): Fix
5512 target_waitstatus_to_string call.
5513
d7df6549
AB
55142019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5515
5516 * eval.c (evaluate_subexp_standard): Handle internal functions
5517 during Fortran function call handling.
5518
8bdc1658
AB
55192019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * NEWS: Mention new internal functions.
5522 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
5523 (read_base_type): Use dwarf2_init_complex_target_type.
5524 * value.c (creal_internal_fn): New function.
5525 (cimag_internal_fn): New function.
5526 (_initialize_values): Register new internal functions.
5527
c29705b7
PW
55282019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5529
5530 * infrun.c (stop_all_threads): If debug_infrun, always
5531 trace the wait status after wait_one, using
5532 target_waitstatus_to_string and target_pid_to_str.
5533 (handle_inferior_event): Replace various trace of
5534 wait status kind by a single trace.
5535 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
5536 wait status kind image by target_waitstatus_to_string.
5537 * target/waitstatus.c (target_waitstatus_to_string): Fix
5538 obsolete comment.
5539
05caa1d2
TT
55402019-04-01 Tom Tromey <tromey@adacore.com>
5541
5542 PR symtab/23331:
5543 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
5544
9d1447e0
SDJ
55452019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
5546 Pedro Alves <palves@redhat.com>
5547
5548 * top.c (quit_force): Call 'finalize_values'.
5549 * value.c (finalize_values): New function.
5550 * value.h (finalize_values): Declare.
5551
7734102d
EZ
55522019-03-30 Eli Zaretskii <eliz@gnu.org>
5553
5554 * NEWS: Announce $_gdb_major and $_gdb_minor.
5555
5556 * top.c (init_gdb_version_vars): New function.
5557 (gdb_init): Call init_gdb_version_vars.
5558
188e1fa9
TT
55592019-03-29 Tom Tromey <tromey@adacore.com>
5560
5561 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
5562 help text. Remove dead code.
5563
2880242d
KS
55642019-03-29 Keith Seitz <keiths@redhat.com>
5565
5566 From Siddhesh Poyarekar:
5567 * f-lang.h (f77_get_upperbound): Return LONGEST.
5568 (f77_get_lowerbound): Likewise.
5569 * f-typeprint.c (f_type_print_varspec_suffix): Expand
5570 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
5571 print them.
5572 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
5573 plongest to format print it.
5574 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
5575 (f77_get_upperbound): Likewise.
5576 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
5577 LOWER_BOUND to LONGEST.
5578 (f77_create_arrayprint_offset_tbl): Likewise.
5579
cc1defb1
KS
55802019-03-29 Keith Seitz <keiths@redhat.com>
5581
5582 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5583 %s/pulongest for TYPE_LENGTH instead of %d in format
5584 strings.
5585 * ada-typerint.c (ada_print_type): Likewise.
5586 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
5587 * compile/compile-c-support.c (generate_register_struct): Likewise.
5588 * gdbtypes.c (recursive_dump_type): Likewise.
5589 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
5590 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
5591 instead of %d in format strings.
5592 * riscv-tdep.c (riscv_type_alignment): Cast second argument
5593 to std::min to ULONGEST.
5594 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
5595 instead of %d in format strings.
5596 * tracepoint.c (info_scope_command): Likewise.
5597 * typeprint.c (print_offset_data::update)
5598 (print_offset_data::finish): Likewise.
5599 * xtensa-tdep.c (xtensa_store_return_value)
5600 (xtensa_push_dummy_call): Likewise.
5601
e432ccf1
JT
56022019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
5603
5604 * windows-nat.c (display_selector): Fixed format specifications
5605 for 64-bit Cygwin.
5606
65d2b333
PW
56072019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5608
5609 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
5610
f489207e
SL
56112019-03-28 Sandra Loosemore <sandra@codesourcery.com>
5612
5613 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
5614 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
5615 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
5616 (nios2_linux_init_abi): Install it.
5617
bffa1015
AH
56182019-03-28 Alan Hayward <alan.hayward@arm.com>
5619
5620 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
5621
fc96163a
AH
56222019-03-28 Alan Hayward <alan.hayward@arm.com>
5623
5624 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
5625
20dc7e9b
PW
56262019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627 Tom Tromey <tromey@adacore.com>
5628
5629 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
5630
7f5331a8
JB
56312019-03-26 Joel Brobecker <brobecker@adacore.com>
5632
5633 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
5634 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
5635 method to compute the bounds of range types. Also print "[evaluated]"
5636 if the bounds' values come from a dynamic evaluation.
5637
18c77628
AB
56382019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
5639
5640 * cp-valprint.c (cp_print_value_fields): Don't print trailing
5641 whitespace when pretty printing is on.
5642
53c973f2
AH
56432019-03-26 Alan Hayward <alan.hayward@arm.com>
5644
e79be6e5 5645 * ppc-linux-nat.c: Add include.
53c973f2 5646
d851aa71
AH
56472019-03-26 Alan Hayward <alan.hayward@arm.com>
5648
e79be6e5 5649 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 5650
2fe7bab7
AH
56512019-03-26 Alan Hayward <alan.hayward@arm.com>
5652
e79be6e5 5653 * arm-linux-nat.c: Add include.
2fe7bab7 5654
068ef30e
SM
56552019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * source-cache.c (source_cache::get_source_lines): Re-read
5658 fullname after calling open_source_file.
5659
81a24d04
JB
56602019-03-25 John Baldwin <jhb@FreeBSD.org>
5661
5662 * NEWS: Mention TLS support for FreeBSD.
5663
79e7ae11
TT
56642019-03-25 Tom Tromey <tromey@adacore.com>
5665
5666 * minsyms.c (BUNCH_SIZE): Update comment.
5667 (~minimal_symbol_reader): Remove old comment.
5668 (compact_minimal_symbols): Update comment.
5669 (minimal_symbol_reader::install): Remove old comment. Update
5670 other comments.
5671
d45963c2
AH
56722019-03-25 Alan Hayward <alan.hayward@arm.com>
5673
5674 * s390-linux-nat.c: Add include.
5675
0f83012e
AH
56762019-03-25 Alan Hayward <alan.hayward@arm.com>
5677
5678 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5679 Call linux_get_hwcap.
5680 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5681 Likewise.
5682 (aarch64_linux_get_hwcap): Remove function.
5683 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
5684 declaration.
5685 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
5686 linux_get_hwcap.
5687 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5688 * linux-tdep.c (linux_get_hwcap): Add function.
5689 (linux_get_hwcap2): Likewise.
5690 * linux-tdep.h (linux_get_hwcap): Add declaration.
5691 (linux_get_hwcap2): Likewise.
5692 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
5693 (ppc_linux_get_hwcap2): Likewise.
5694 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
5695 linux_get_hwcap.
5696 (ppc_linux_nat_target::insert_watchpoint): Likewise.
5697 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
5698 (ppc_linux_nat_target::read_description): Likewise.
5699 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
5700 * s390-linux-nat.c: Likewise.
5701 * s390-linux-tdep.c (s390_core_read_description): Likewise.
5702
6640a367
TT
57032019-03-24 Tom Tromey <tom@tromey.com>
5704
5705 * ada-lang.c (standard_lookup): Simplify initialization.
5706 (ada_lookup_symbol_nonlocal): Simplify return.
5707 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
5708 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
5709 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
5710 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
5711 initialization.
5712 * solib.c (solib_global_lookup): Simplify.
5713 * symtab.c (null_block_symbol): Remove.
5714 (symbol_cache_lookup): Simplify returns.
5715 (lookup_language_this): Simplify returns.
5716 (lookup_symbol_aux): Simplify return.
5717 (lookup_local_symbol): Simplify returns.
5718 (lookup_global_symbol_from_objfile): Simplify return.
5719 (lookup_symbol_in_objfile_symtabs)
5720 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
5721 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
5722 (lookup_static_symbol, lookup_global_symbol): Simplify return.
5723 * cp-namespace.c (cp_lookup_bare_symbol)
5724 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
5725 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
5726 (cp_lookup_nested_symbol): Don't use null_block_symbol.
5727 (cp_lookup_symbol_via_imports): Simplify initialization.
5728 (find_symbol_in_baseclass): Likewise.
5729 * symtab.h (null_block_symbol): Remove.
5730 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
5731 (d_lookup_nested_symbol, d_lookup_symbol_imports)
5732 (d_lookup_symbol_module): Likewise.
5733 (find_symbol_in_baseclass): Simplify initialization.
5734
a930ebcd
TT
57352019-03-24 Tom Tromey <tom@tromey.com>
5736
5737 * expression.h: Don't include symtab.h.
5738 (struct block): Forward declare.
5739
582942f4
TT
57402019-03-24 Tom Tromey <tom@tromey.com>
5741
5742 * c-exp.y (typebase): Remove casts.
5743 * gdbtypes.c (lookup_unsigned_typename, )
5744 (lookup_signed_typename): Remove cast.
5745 * eval.c (parse_to_comma_and_eval): Remove cast.
5746 * parse.c (write_dollar_variable): Remove cast.
5747 * block.h (struct block) <superblock>: Now const.
5748 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
5749 * psymtab.c (psym_map_matching_symbols): Make "block" const.
5750 (map_block): Make "block" const.
5751 * symfile.h (struct quick_symbol_functions)
5752 <map_matching_symbols>: Constify block argument to "callback".
5753 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
5754 const.
5755 (find_pc_sect_compunit_symtab): Make "b" const.
5756 (find_symbol_at_address): Likewise.
5757 (search_symbols): Likewise.
5758 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
5759 (dw2_debug_names_lookup_symbol): Likewise.
5760 (dw2_map_matching_symbols): Update.
5761 * p-valprint.c (pascal_val_print): Remove "block".
5762 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
5763 (aux_add_nonlocal_symbols): Make "block" const.
5764 (resolve_subexp): Remove cast.
5765 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
5766 const.
5767 (iterate_over_file_blocks): Likewise.
5768 * f-exp.y (%union) <bval>: Remove.
5769 * coffread.c (patch_opaque_types): Make "b" const.
5770 * spu-tdep.c (spu_catch_start): Make "block" const.
5771 * c-valprint.c (print_unpacked_pointer): Remove "block".
5772 * symmisc.c (dump_symtab_1): Make "b" const.
5773 (block_depth): Make "block" const.
5774 * d-exp.y (%union) <bval>: Remove.
5775 * cp-support.h (cp_lookup_rtti_type): Update.
5776 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
5777 * psymtab.c (psym_lookup_symbol): Make "block" const.
5778 (maintenance_check_psymtabs): Make "b" const.
5779 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
5780 (enumerate_locals, enumerate_args): Update.
5781 * python/py-symtab.c (stpy_global_block): Make "block" const.
5782 (stpy_static_block): Likewise.
5783 * inline-frame.c (block_starting_point_at): Make "new_block"
5784 const.
5785 * block.c (find_block_in_blockvector): Make return type const.
5786 (blockvector_for_pc_sect): Make "b" const.
5787 (find_block_in_blockvector): Make "b" const.
5788
7ad417dd
TT
57892019-03-23 Tom Tromey <tom@tromey.com>
5790
5791 * varobj.c (varobj_create): Update.
5792 * symfile.c (clear_symtab_users): Don't reset innermost_block.
5793 * printcmd.c (display_command, do_one_display): Don't reset
5794 innermost_block.
5795 * parser-defs.h (enum innermost_block_tracker_type): Move to
5796 expression.h.
5797 (innermost_block): Update comment.
5798 * parse.c (parse_exp_1): Add tracker_types parameter.
5799 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
5800 tracker_types parameter. Reset innermost_block.
5801 (parse_exp_in_context): Remove.
5802 (parse_expression_for_completion): Update.
5803 * objfiles.c (~objfile): Don't reset expression_context_block or
5804 innermost_block.
5805 * expression.h (enum innermost_block_tracker_type): Move from
5806 parser-defs.h.
5807 (parse_exp_1): Add tracker_types parameter.
5808 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
5809 reset innermost_block.
5810
b366c208
TT
58112019-03-23 Tom Tromey <tom@tromey.com>
5812
5813 * objfiles.h: Include bcache.h.
5814
9bb9b2f9
TT
58152019-03-23 Tom Tromey <tom@tromey.com>
5816
5817 * linespec.c (get_current_search_block): Use
5818 scoped_restore_current_language.
5819 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
5820
59c28372
AH
58212019-03-22 Alan Hayward <alan.hayward@arm.com>
5822 Jiong Wang <jiong.wang@arm.com>
5823
5824 * aarch64-linux-tdep.c
5825 (aarch64_linux_iterate_over_regset_sections): Check for pauth
5826 section.
5827 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
5828
17e116a7
AH
58292019-03-22 Alan Hayward <alan.hayward@arm.com>
5830 Jiong Wang <jiong.wang@arm.com>
5831
5832 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
5833 instructions.
5834 (aarch64_analyze_prologue_test): Add PACIASP test.
5835 (aarch64_prologue_prev_register): Unmask PC value.
5836
11e1b75f
AH
58372019-03-22 Alan Hayward <alan.hayward@arm.com>
5838 Jiong Wang <jiong.wang@arm.com>
5839
5840 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
5841 (aarch64_dwarf2_prev_register): Unmask PC value.
5842 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
5843 (aarch64_execute_dwarf_cfa_vendor_op): Check for
5844 DW_CFA_AARCH64_negate_ra_state.
5845 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
5846
34dcc7cf
AH
58472019-03-22 Alan Hayward <alan.hayward@arm.com>
5848 Jiong Wang <jiong.wang@arm.com>
5849
5850 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
5851 registers.
5852 (aarch64_pseudo_register_name): Likewise.
5853 (aarch64_pseudo_register_type): Likewise.
5854 (aarch64_pseudo_register_reggroup_p): Likewise.
5855 (aarch64_gdbarch_init): Add pauth registers.
5856 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
5857 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
5858 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
5859 (struct gdbarch_tdep): Add regnum for ra_state.
5860
1ef53e6b
AH
58612019-03-22 Alan Hayward <alan.hayward@arm.com>
5862 Jiong Wang <jiong.wang@arm.com>
5863
5864 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
5865
76bed0fd
AH
58662019-03-22 Alan Hayward <alan.hayward@arm.com>
5867 Jiong Wang <jiong.wang@arm.com>
5868
5869 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
5870 function.
5871 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
5872 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
5873 (aarch64_gdbarch_init): Add puth registers.
5874 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
5875 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
5876 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
5877
ee4fbcfa
AH
58782019-03-22 Alan Hayward <alan.hayward@arm.com>
5879 Jiong Wang <jiong.wang@arm.com>
5880
5881 * aarch64-linux-nat.c
5882 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
5883 * aarch64-linux-tdep.c
5884 (aarch64_linux_core_read_description): Likewise.
5885 (aarch64_linux_get_hwcap): New function.
5886 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
5887 (aarch64_linux_get_hwcap): New declaration.
5888
6dc0ebde
AH
58892019-03-22 Alan Hayward <alan.hayward@arm.com>
5890 Jiong Wang <jiong.wang@arm.com>
5891
5892 * aarch64-linux-nat.c
5893 (aarch64_linux_nat_target::read_description): Add pauth param.
5894 * aarch64-linux-tdep.c
5895 (aarch64_linux_core_read_description): Likewise.
5896 * aarch64-tdep.c (struct target_desc): Add in pauth.
5897 (aarch64_read_description): Add pauth param.
5898 (aarch64_gdbarch_init): Likewise.
5899 * aarch64-tdep.h (aarch64_read_description): Likewise.
5900 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5901 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5902 * features/Makefile: Add new files.
5903 * features/aarch64-pauth.c: New file.
5904 * features/aarch64-pauth.xml: New file.
5905
595915c1
TT
59062019-03-20 Tom Tromey <tromey@adacore.com>
5907
5908 * infrun.c (handle_inferior_event): Rename from
5909 handle_inferior_event_1. Create a scoped_value_mark.
5910 (handle_inferior_event): Remove.
5911
4c7d57e7
TT
59122019-03-19 Tom Tromey <tromey@adacore.com>
5913
5914 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
5915 * infrun.h (print_stop_event): Add "displays" parameter.
5916 * infrun.c (print_stop_event): Add "displays" parameter.
5917
cb246234
PA
59182019-03-19 Pedro Alves <palves@redhat.com>
5919
5920 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
5921 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
5922 to -1. Fix TABs vs spaces.
5923 (tui_ui_out::tui_ui_out): Don't initialize fields here.
5924 * tui/tui-out.h (tui_ui_out) Add intro comments.
5925 <m_line, m_start_of_line>: In-class initialize, and add describing
5926 comment.
5927
3a0e45b2
AH
59282019-03-18 Alan Hayward <alan.hayward@arm.com>
5929
5930 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
5931 variable names.
5932 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
5933
5371b850
PA
59342019-03-18 Pedro Alves <palves@redhat.com>
5935 Eli Zaretskii <eliz@gnu.org>
5936
5937 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
5938 m_line and m_start_of_line.
5939
b17c4cd0
EZ
59402019-03-18 Eli Zaretskii <eliz@gnu.org>
5941
5942 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
5943 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
5944 it returns a newline. This fixes a regression in TU mode, whereby
5945 the next line is output on the same screen line as the user input.
5946
4bd56d18
TT
59472019-03-18 Tom Tromey <tromey@adacore.com>
5948
5949 * minsyms.c (minimal_symbol_reader::install): Remove call to
5950 obstack_blank.
5951
55c10aca
PA
59522019-03-18 Pedro Alves <palves@redhat.com>
5953
5954 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
5955 New globals.
5956 (apply_style): New, factored out from ...
5957 (apply_ansi_escape): ... this. Handle reverse video mode.
5958 (tui_set_reverse_mode): New function.
5959 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
5960 * tui/tui-winsource.c (tui_show_source_line): Use
5961 tui_set_reverse_mode instead of setting A_STANDOUT.
5962 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
5963 New setter methods.
5964
647bb750
HD
59652019-03-18 Hannes Domani <ssbssa@yahoo.de>
5966
5967 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
5968 Handle tabs.
5969
bff8c71f
TT
59702019-03-18 Tom Tromey <tromey@adacore.com>
5971
5972 * ada-lang.c (empty_array): Add "high" parameter.
5973 (ada_evaluate_subexp): Update.
5974
58785d98
ST
59752019-03-17 Sergei Trofimovich <siarheit@google.com>
5976
5977 * unittests/string_view-selftests.c: Define
5978 _initialize_string_view_selftests unconditionally.
5979
d4cbef22
ВМ
59802019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5981
5982 PR gdb/24350
5983 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
5984
fce4c071
ВМ
59852019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5986
5987 PR gdb/24351
5988 * windows-nat.c (display_selector): Fix format specifiers.
5989
f7f0a123
EZ
59902019-03-17 Eli Zaretskii <eliz@gnu.org>
5991
5992 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
5993 tui_refill_source_window instead of tui_refresh_win, to update the
5994 current execution line. This fixes redisplay of the current line
5995 when stepping through the code with "next" or "step".
5996
ab42892f
EZ
59972019-03-16 Eli Zaretskii <eliz@gnu.org>
5998
5999 * source-cache.c (source_cache::get_source_lines): Call
6000 find_source_lines to initialize s->nlines. This fixes vertical
6001 scrolling of TUI source window when the DOWN arrow is pressed.
6002
8d8c087f
PW
60032019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6004
6005 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
6006 linux-thread-db.c (_initialize_thread_db): Likewise.
6007
798e1c30
EZ
60082019-03-16 Eli Zaretskii <eliz@gnu.org>
6009
6010 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
6011 wclrtoeol in tui_show_source_line". This reverts changes made in
6012 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
6013
eefba3da
TT
60142019-03-15 Tom Tromey <tom@tromey.com>
6015
6016 * symtab.h (struct minimal_symbol): Derive from
6017 general_symbol_info.
6018 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
6019 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6020 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6021 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6022 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
6023 (MSYMBOL_SEARCH_NAME): Update.
6024 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
6025 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
6026 * minsyms.c (minimal_symbol_reader::record_full): Update.
6027
0de2420c
TT
60282019-03-15 Tom Tromey <tom@tromey.com>
6029
6030 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
6031
042d75e4
TT
60322019-03-15 Tom Tromey <tom@tromey.com>
6033
6034 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
6035 unique_xmalloc_ptr.
6036 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
6037 Update.
6038 * minsyms.c (lookup_minimal_symbol_by_pc_section)
6039 (build_minimal_symbol_hash_tables)
6040 (minimal_symbol_reader::install): Update.
6041
db92718b
TT
60422019-03-15 Tom Tromey <tom@tromey.com>
6043
6044 * symtab.c (create_demangled_names_hash): Update.
6045 (symbol_set_names): Update.
6046 * objfiles.h (struct objfile_per_bfd_storage)
6047 <demangled_names_hash>: Now an htab_up.
6048 * objfiles.c (objfile_per_bfd_storage): Simplify.
6049
d6797f46
TT
60502019-03-15 Tom Tromey <tom@tromey.com>
6051
6052 * objfiles.h (struct objfile_per_bfd_storage): Declare
6053 destructor.
6054 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
6055 New.
6056 (get_objfile_bfd_data): Use new. Don't initialize
6057 language_of_main.
6058 (free_objfile_per_bfd_storage): Remove.
6059 (objfile_bfd_data_free, objfile::~objfile): Use delete.
6060
741d7538
TT
60612019-03-15 Tom Tromey <tom@tromey.com>
6062
6063 * symfile.c (reread_symbols): Update.
6064 * objfiles.c (objfile::objfile): Update.
6065 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
6066 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
6067 comment.
6068 (minimal_symbol_reader::install): Update.
6069 (terminate_minimal_symbol_table): Remove.
6070 * jit.c (jit_object_close_impl): Update.
6071
788c80d1
TT
60722019-03-15 Tom Tromey <tom@tromey.com>
6073
6074 * minsyms.c (minimal_symbol_reader::record_full): Remove some
6075 initializations.
6076
1b7a07cb
TT
60772019-03-15 Tom Tromey <tom@tromey.com>
6078
6079 * objfiles.h (struct objfile_per_bfd_storage)
6080 <demangled_hash_languages>: Now a bitset.
6081 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
6082 (lookup_minimal_symbol): Update.
6083
3db066bc
TT
60842019-03-15 Tom Tromey <tom@tromey.com>
6085
6086 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
6087 Don't return the symbol.
6088 * coffread.c (record_minimal_symbol): Use record_full.
6089
3fff2c37
EZ
60902019-03-14 Eli Zaretskii <eliz@gnu.org>
6091
6092 The MS-Windows port of ncurses fails to switch to a color pair if
6093 one or both of the colors are the implicit default colors. This
6094 change records the default colors when TUI is initialized, and
6095 then specifies them explicitly when a color pair uses the default
6096 colors. This allows color styling in TUI mode on MS-Windows.
6097
6098 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
6099 ncurses_norm_attr.
6100 (tui_initialize_io) [__MINGW32__]: Record the default terminal
6101 colors in ncurses_norm_attr.
6102 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
6103 "none", replace it with the default color recorded in
6104 ncurses_norm_attr.
6105
3b336828
TT
61062019-03-14 Tom Tromey <tromey@adacore.com>
6107
6108 * source-cache.h (class source_cache) <get_source_lines>: Return
6109 std::string.
6110 * source-cache.c (source_cache::extract_lines): Handle case where
6111 first_pos==npos. Return std::string.
6112 (source_cache::get_source_lines): Update.
6113
d085f989
TT
61142019-03-14 Tom Tromey <tromey@adacore.com>
6115
6116 * NEWS: Add item for "style sources" commands.
6117 * source-cache.c (source_cache::get_source_lines): Check
6118 source_styling.
6119 * cli/cli-style.c (source_styling): New global.
6120 (_initialize_cli_style): Add "style sources" commands.
6121 (show_style_sources): New function.
6122 * cli/cli-style.h (source_styling): Declare.
6123
6f11e682
TT
61242019-03-14 Pedro Alves <palves@redhat.com>
6125 Tom Tromey <tromey@adacore.com>
6126
6127 * tui/tui-winsource.h (tui_refill_source_window): Declare.
6128 * tui/tui-winsource.c (tui_refill_source_window): New function,
6129 from...
6130 (tui_horizontal_source_scroll): ... here. Move some logic.
6131 * cli/cli-style.c (set_style_enabled): Notify new observable.
6132 * tui/tui-hooks.c (tui_redisplay_source): New function.
6133 (tui_attach_detach_observers): Attach or detach
6134 tui_redisplay_source.
6135 * observable.h (source_styling_changed): New observable.
6136 * observable.c: Define source_styling_changed observable.
6137
a068643d
TT
61382019-03-13 Tom Tromey <tromey@adacore.com>
6139
6140 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
6141 (i386_gnu_nat_target::store_registers): Update.
6142 * target-debug.h (target_debug_print_std_string): New macro.
6143 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6144 * windows-tdep.c (display_one_tib): Update.
6145 * tui/tui-stack.c (tui_make_status_line): Update.
6146 * top.c (print_inferior_quit_action): Update.
6147 * thread.c (thr_try_catch_cmd): Update.
6148 (add_thread_with_info): Update.
6149 (thread_target_id_str): Update.
6150 (thr_try_catch_cmd): Update.
6151 (thread_command): Update.
6152 (thread_find_command): Update.
6153 * record-btrace.c (record_btrace_target::info_record)
6154 (record_btrace_resume_thread, record_btrace_target::resume)
6155 (record_btrace_cancel_resume, record_btrace_step_thread)
6156 (record_btrace_target::wait, record_btrace_target::wait)
6157 (record_btrace_target::wait, record_btrace_target::stop): Update.
6158 * progspace.c (print_program_space): Update.
6159 * process-stratum-target.c
6160 (process_stratum_target::thread_address_space): Update.
6161 * linux-fork.c (linux_fork_mourn_inferior)
6162 (detach_checkpoint_command, info_checkpoints_command)
6163 (linux_fork_context): Update.
6164 (linux_fork_detach): Update.
6165 (class scoped_switch_fork_info): Update.
6166 (delete_checkpoint_command): Update.
6167 * infrun.c (follow_fork_inferior): Update.
6168 (follow_fork_inferior): Update.
6169 (proceed_after_vfork_done): Update.
6170 (handle_vfork_child_exec_or_exit): Update.
6171 (follow_exec): Update.
6172 (displaced_step_prepare_throw): Update.
6173 (displaced_step_restore): Update.
6174 (start_step_over): Update.
6175 (resume_1): Update.
6176 (clear_proceed_status_thread): Update.
6177 (proceed): Update.
6178 (print_target_wait_results): Update.
6179 (do_target_wait): Update.
6180 (context_switch): Update.
6181 (stop_all_threads): Update.
6182 (restart_threads): Update.
6183 (finish_step_over): Update.
6184 (handle_signal_stop): Update.
6185 (switch_back_to_stepped_thread): Update.
6186 (keep_going_pass_signal): Update.
6187 (print_exited_reason): Update.
6188 (normal_stop): Update.
6189 * inferior.c (inferior_pid_to_str): Change return type.
6190 (print_selected_inferior): Update.
6191 (add_inferior): Update.
6192 (detach_inferior): Update.
6193 * dummy-frame.c (fprint_dummy_frames): Update.
6194 * dcache.c (dcache_info_1): Update.
6195 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6196 (btrace_fetch, btrace_clear): Update.
6197 * linux-tdep.c (linux_core_pid_to_str): Change return type.
6198 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
6199 type.
6200 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
6201 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
6202 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
6203 * gdbarch.c, gdbarch.h: Rebuild.
6204 * gdbarch.sh (core_pid_to_str): Change return type.
6205 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
6206 return type.
6207 (windows_nat_target::pid_to_str): Change return type.
6208 (windows_delete_thread): Update.
6209 (windows_nat_target::attach): Update.
6210 (windows_nat_target::files_info): Update.
6211 * target-delegates.c: Rebuild.
6212 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
6213 return type.
6214 (sol_thread_target::pid_to_str): Change return type.
6215 * remote.c (class remote_target) <pid_to_str>: Change return
6216 type.
6217 (remote_target::pid_to_str): Change return type.
6218 (extended_remote_target::attach, remote_target::remote_stop_ns)
6219 (remote_target::remote_notif_remove_queued_reply)
6220 (remote_target::push_stop_reply, remote_target::disable_btrace):
6221 Update.
6222 (extended_remote_target::attach): Update.
6223 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
6224 type.
6225 (gdbsim_target::pid_to_str): Change return type.
6226 * ravenscar-thread.c (struct ravenscar_thread_target)
6227 <pid_to_str>: Change return type.
6228 (ravenscar_thread_target::pid_to_str): Change return type.
6229 * procfs.c (class procfs_target) <pid_to_str>: Change return
6230 type.
6231 (procfs_target::pid_to_str): Change return type.
6232 (procfs_target::attach): Update.
6233 (procfs_target::detach): Update.
6234 (procfs_target::fetch_registers): Update.
6235 (procfs_target::store_registers): Update.
6236 (procfs_target::wait): Update.
6237 (procfs_target::files_info): Update.
6238 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
6239 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
6240 return type.
6241 (nto_procfs_target::pid_to_str): Change return type.
6242 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
6243 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
6244 return type.
6245 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
6246 (exit_lwp): Update.
6247 (attach_proc_task_lwp_callback, get_detach_signal)
6248 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
6249 (linux_nat_target::resume, wait_lwp, stop_callback)
6250 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
6251 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
6252 (linux_nat_wait_1, resume_stopped_resumed_lwps)
6253 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
6254 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
6255 type.
6256 (inf_ptrace_target::attach): Update.
6257 (inf_ptrace_target::files_info): Update.
6258 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
6259 type.
6260 (go32_nat_target::pid_to_str): Change return type.
6261 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
6262 (gnu_nat_target::wait): Update.
6263 (gnu_nat_target::wait): Update.
6264 (gnu_nat_target::resume): Update.
6265 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
6266 (fbsd_nat_target::wait): Update.
6267 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
6268 type.
6269 (darwin_nat_target::attach): Update.
6270 * corelow.c (class core_target) <pid_to_str>: Change return type.
6271 (core_target::pid_to_str): Change return type.
6272 * target.c (normal_pid_to_str): Change return type.
6273 (default_pid_to_str): Likewise.
6274 (target_pid_to_str): Change return type.
6275 (target_translate_tls_address): Update.
6276 (target_announce_detach): Update.
6277 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
6278 return type.
6279 (bsd_uthread_target::pid_to_str): Change return type.
6280 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
6281 type.
6282 (bsd_kvm_target::pid_to_str): Change return type.
6283 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
6284 return type.
6285 (aix_thread_target::pid_to_str): Change return type.
6286 * target.h (struct target_ops) <pid_to_str>: Change return type.
6287 (target_pid_to_str, normal_pid_to_str): Likewise.
6288 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
6289 type.
6290 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
6291 type.
6292 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
6293 return type.
6294 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
6295 type.
6296 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
6297 type.
6298 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
6299 return type.
6300
b4be1b06
SM
63012019-03-13 Simon Marchi <simon.marchi@ericsson.com>
6302
6303 * NEWS: Mention that the new default MI version is 3. Mention
6304 changes to the output of commands and events that deal with
6305 multi-location breakpoints.
6306 * breakpoint.c: Include "mi/mi-out.h".
6307 (print_one_breakpoint): Change output syntax if using MI version
6308 >= 3.
6309 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
6310 New.
6311 (mi_multi_location_breakpoint_output_fixed): New.
6312 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
6313 (mi_cmd_fix_multi_location_breakpoint_output): New.
6314 (mi_multi_location_breakpoint_output_fixed): New.
6315 * mi/mi-cmds.c (mi_cmds): Register command
6316 -fix-multi-location-breakpoint-output.
6317 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
6318 interpreter "mi".
6319
8e5e5494
SM
63202019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
6323 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
6324 instantiate mi_ui_out based on interpreter name.
6325 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
6326 * mi/mi-main.c (mi_load_progress): Likewise.
6327
197df35e
JB
63282019-03-12 John Baldwin <jhb@FreeBSD.org>
6329
6330 * NEWS: Combine separate "New targets" sections for 8.3.
6331
8399425f
JB
63322019-03-12 John Baldwin <jhb@FreeBSD.org>
6333
6334 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
6335 (ppcfbsd_init_abi): Install gdbarch
6336 "fetch_tls_load_module_address" and "get_thread_local_address"
6337 methods.
6338
b0f87ed0
JB
63392019-03-12 John Baldwin <jhb@FreeBSD.org>
6340
6341 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
6342 (riscv_fbsd_init_abi): Install gdbarch
6343 "fetch_tls_load_module_address" and "get_thread_local_address"
6344 methods.
6345
ce25aa57
JB
63462019-03-12 John Baldwin <jhb@FreeBSD.org>
6347
6348 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
6349 (i386fbsd_init_abi): Install gdbarch
6350 "fetch_tls_load_module_address" and "get_thread_local_address"
6351 methods.
6352
f5424cfa
JB
63532019-03-12 John Baldwin <jhb@FreeBSD.org>
6354
6355 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
6356 (amd64fbsd_init_abi): Install gdbarch
6357 "fetch_tls_load_module_address" and "get_thread_local_address"
6358 methods.
6359
945f3901
JB
63602019-03-12 John Baldwin <jhb@FreeBSD.org>
6361
6362 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
6363 (struct fbsd_pspace_data): New type.
6364 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
6365 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
6366 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
6367 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
6368 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
6369
ef0bd204
JB
63702019-03-12 John Baldwin <jhb@FreeBSD.org>
6371
6372 * gdbtypes.c (lookup_struct_elt): New function.
6373 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
6374 * gdbtypes.h (struct struct_elt): New type.
6375 (lookup_struct_elt): New prototype.
6376
36c53a02
JB
63772019-03-12 John Baldwin <jhb@FreeBSD.org>
6378
6379 * gdbtypes.c (lookup_struct_elt_type): Update comment and
6380 remove disabled code block.
6381
6e056c81
JB
63822019-03-12 John Baldwin <jhb@FreeBSD.org>
6383
6384 * gdbarch.sh (get_thread_local_address): New method.
6385 * gdbarch.h, gdbarch.c: Regenerate.
6386 * target.c (target_translate_tls_address): Use
6387 gdbarch_get_thread_local_address if present instead of
6388 target::get_thread_local_address.
6389
cd250a18
JB
63902019-03-12 John Baldwin <jhb@FreeBSD.org>
6391
6392 * target.h (target::get_thread_local_address): Update comment.
6393
df22c1e5
JB
63942019-03-12 John Baldwin <jhb@FreeBSD.org>
6395
6396 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
6397 objfile->separate_debug_objfile_backlink if not NULL.
6398
dd6876c9
JB
63992019-03-12 John Baldwin <jhb@FreeBSD.org>
6400
6401 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6402 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
6403 (amd64bsd_store_inferior_registers): Likewise.
6404 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6405 Enable segment base registers.
6406 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
6407 PT_GETFSBASE and PT_GETGSBASE.
6408 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
6409 PT_SETGSBASE.
6410 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
6411 segment base registers.
6412 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6413
1163a4b7
JB
64142019-03-12 John Baldwin <jhb@FreeBSD.org>
6415
6416 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6417 Update calls to i386_target_description to add 'segments'
6418 parameter.
6419 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
6420 add segment base registers.
6421 * arch/i386.c (i386_create_target_description): Add 'segments'
6422 parameter to enable segment base registers.
6423 * arch/i386.h (i386_create_target_description): Likewise.
6424 * features/i386/32bit-segments.xml: New file.
6425 * features/i386/32bit-segments.c: Generate.
6426 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
6427 call to i386_target_description to add 'segments' parameter.
6428 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6429 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
6430 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
6431 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
6432 if feature is present.
6433 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
6434 Add 'segments' parameter to call to i386_target_description.
6435 (i386_target_description): Add 'segments' parameter to enable
6436 segment base registers.
6437 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
6438 to call to i386_target_description.
6439 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
6440 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
6441 Define I386_NUM_REGS.
6442 (i386_target_description): Add 'segments' parameter to enable
6443 segment base registers.
6444
3a350822
EZ
64452019-03-12 Eli Zaretskii <eliz@gnu.org>
6446
6447 PR/24325
6448 * source-cache.c: #undef open and close, to avoid unresolved
6449 externals during linking.
6450
ffdd69cf
TT
64512019-03-12 Tom Tromey <tromey@adacore.com>
6452
6453 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
6454 const. Add initializers.
6455 (_initialize_remote): Don't initialize ptid globals.
6456
ec148c57
PA
64572019-03-12 Pedro Alves <palves@redhat.com>
6458
6459 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
6460
32764270
PA
64612019-03-12 Pedro Alves <palves@redhat.com>
6462
6463 * cp-name-parser.y (main): Remove unused 'len' variable.
6464
17547186
TT
64652019-03-12 Tom Tromey <tromey@adacore.com>
6466
6467 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
6468 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
6469
d3a70e03
TT
64702019-03-12 Tom Tromey <tromey@adacore.com>
6471
6472 * linux-nat.c (iterate_over_lwps): Update.
6473 (stop_callback): Remove parameter.
6474 (stop_wait_callback, detach_callback, resume_set_callback)
6475 (select_singlestep_lwp_callback, set_ignore_sigint)
6476 (status_callback, resumed_callback, resume_clear_callback)
6477 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
6478 data parameter.
6479 (linux_nat_target::detach, linux_nat_target::resume)
6480 (linux_stop_and_wait_all_lwps, select_event_lwp)
6481 (linux_nat_filter_event, linux_nat_wait_1)
6482 (linux_nat_target::kill, linux_nat_target::stop)
6483 (linux_nat_target::stop): Update.
6484 (linux_nat_resume_callback): Change type.
6485 (resume_stopped_resumed_lwps, count_events_callback)
6486 (select_event_lwp_callback): Likewise.
6487 (linux_stop_lwp, linux_nat_stop_lwp): Update.
6488 * arm-linux-nat.c (struct update_registers_data): Remove.
6489 (update_registers_callback): Change type.
6490 (arm_linux_insert_hw_breakpoint1): Update.
6491 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
6492 parameter.
6493 (x86_linux_dr_set_addr): Update.
6494 (x86_linux_dr_set_control): Update.
6495 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
6496 (iterate_over_lwps): Use gdb::function_view.
6497 * nat/aarch64-linux-hw-point.c (struct
6498 aarch64_dr_update_callback_param): Remove.
6499 (debug_reg_change_callback): Change type.
6500 (aarch64_notify_debug_reg_change): Update.
6501 * s390-linux-nat.c (s390_refresh_per_info): Update.
6502
82cb27ff
TT
65032019-03-11 Tom Tromey <tromey@adacore.com>
6504
6505 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
6506 redundant assignment to "this_cu".
6507
568c0683
SM
65082019-03-08 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
6511
f09ce22d
SM
65122019-03-08 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * gdbtypes.c (rank_one_type_parm_set): New function extracted
6515 from...
6516 (rank_one_type): ... this.
6517
595f96a9
SM
65182019-03-08 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
6521 from...
6522 (rank_one_type): ... this.
6523
2598a94b
SM
65242019-03-08 Simon Marchi <simon.marchi@efficios.com>
6525
6526 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
6527 from...
6528 (rank_one_type): ... this.
6529
7f17b20d
SM
65302019-03-08 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * gdbtypes.c (rank_one_type_parm_float): New function extracted
6533 from...
6534 (rank_one_type): ... this.
6535
2c509035
SM
65362019-03-08 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
6539 from...
6540 (rank_one_type): ... this.
6541
0dd322dc
SM
65422019-03-08 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * gdbtypes.c (rank_one_type_parm_range): New function extracted
6545 from...
6546 (rank_one_type): ... this.
6547
41ea4728
SM
65482019-03-08 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * gdbtypes.c (rank_one_type_parm_char): New function extracted
6551 from...
6552 (rank_one_type): ... this.
6553
793cd1d2
SM
65542019-03-08 Simon Marchi <simon.marchi@efficios.com>
6555
6556 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
6557 from...
6558 (rank_one_type): ... this.
6559
34910087
SM
65602019-03-08 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * gdbtypes.c (rank_one_type_parm_int): New function extracted
6563 from...
6564 (rank_one_type): ... this.
6565
f1f832d6
SM
65662019-03-08 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * gdbtypes.c (rank_one_type_parm_func): New function extracted
6569 from...
6570 (rank_one_type): ... this.
6571
b9f4512f
SM
65722019-03-08 Simon Marchi <simon.marchi@efficios.com>
6573
6574 * gdbtypes.c (rank_one_type_parm_array): New function extracted
6575 from...
6576 (rank_one_type): ... this.
6577
9293fc63
SM
65782019-03-08 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
6581 from...
6582 (rank_one_type): ... this.
6583
e3abbe7e
PW
65842019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6585
6586 * inferior.c (initialize_inferiors): Ensure 'help set/show print
6587 inferior-events' shows the example events.
6588
e4adb939
EZ
65892019-03-08 Eli Zaretskii <eliz@gnu.org>
6590
6591 Support styling on native MS-Windows console
6592
6593 PR/24315
6594 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
6595 on MS-Windows if $TERM is not defined.
6596
6597 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
6598
6599 * posix-hdep.c (gdb_console_fputs):
6600 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
6601 functions.
6602 * ui-file.h (gdb_console_fputs): Add prototype.
6603
6604 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
6605 back to fputs only if the former returns zero.
6606
25629dfd
TT
66072019-03-07 Tom Tromey <tom@tromey.com>
6608
6609 * symmisc.c (print_symbol_bcache_statistics): Update.
6610 (print_objfile_statistics): Update.
6611 * symfile.c (allocate_symtab): Update.
6612 * stabsread.c: Don't include bcache.h.
6613 * psymtab.h (struct psymbol_bcache): Don't declare.
6614 (class psymtab_storage) <psymbol_cache>: Now a bcache.
6615 (psymbol_bcache_init, psymbol_bcache_free)
6616 (psymbol_bcache_get_bcache): Don't declare.
6617 * psymtab.c (struct psymbol_bcache): Remove.
6618 (psymtab_storage::psymtab_storage): Update.
6619 (psymtab_storage::~psymtab_storage): Update.
6620 (psymbol_bcache_init, psymbol_bcache_free)
6621 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
6622 (add_psymbol_to_bcache): Update.
6623 (allocate_psymtab): Update.
6624 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6625 macro_cache>: No longer pointers.
6626 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
6627 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
6628 * macrotab.c (macro_bcache): Update.
6629 * macroexp.c: Don't include bcache.h.
6630 * gdbtypes.c (check_types_worklist): Update.
6631 (types_deeply_equal): Remove TRY/CATCH. Update.
6632 * elfread.c (elf_symtab_read): Update.
6633 * dwarf2read.c: Don't include bcache.h.
6634 * buildsym.c (buildsym_compunit::get_macro_table): Update.
6635 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
6636 (print_bcache_statistics, bcache_memory_used): Don't declare.
6637 (struct bcache): Move from bcache.c. Add constructor, destructor,
6638 methods. Rename all data members.
6639 * bcache.c (struct bcache): Move to bcache.h.
6640 (bcache::expand_hash_table): Rename from expand_hash_table.
6641 (bcache): Remove.
6642 (bcache::insert): Rename from bcache_full.
6643 (bcache::compare): Rename from bcache_compare.
6644 (bcache_xmalloc): Remove.
6645 (bcache::~bcache): Rename from bcache_xfree.
6646 (bcache::print_statistics): Rename from print_bcache_statistics.
6647 (bcache::memory_used): Rename from bcache_memory_used.
6648
fe726667
PA
66492019-03-07 Pedro Alves <palves@redhat.com>
6650
6651 * infrun.c (normal_stop): Also check for
6652 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
6653
7584bb30
AB
66542019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
6655
6656 * f-lang.c (value_from_host_double): Moved to...
6657 * value.c (value_from_host_double): ...here.
6658 * value.h (value_from_host_double): Declare.
6659 * guile/scm-math.c (vlscm_convert_typed_number): Use
6660 value_from_host_double.
6661 (vlscm_convert_number): Likewise.
6662 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
6663 * python/py-value.c (convert_value_from_python): Likewise.
6664
a7b1986e
TT
66652019-03-06 Tom Tromey <tom@tromey.com>
6666
6667 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
6668
0ccf4211
TT
66692019-03-06 Tom Tromey <tom@tromey.com>
6670
6671 * utils.h (free_current_contents): Don't declare.
6672 * utils.c (free_current_contents): Remove.
6673
fe7b42e5
TT
66742019-03-06 Tom Tromey <tom@tromey.com>
6675
6676 * top.c (quit_force): Update.
6677 * main.c (captured_command_loop): Update.
6678 * common/new-op.c (operator new): Update.
6679 * common/common-exceptions.c (struct catcher)
6680 <save_cleanup_chain>: Remove member.
6681 (exceptions_state_mc_init): Update.
6682 (exception_try_scope_entry): Return nullptr.
6683 (exception_try_scope_exit, exception_rethrow)
6684 (throw_exception_sjlj, throw_exception_cxx): Update.
6685 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
6686 (all_cleanups, do_cleanups, discard_cleanups)
6687 (discard_final_cleanups, save_cleanups, save_final_cleanups)
6688 (restore_cleanups, restore_final_cleanups): Don't declare.
6689 (do_final_cleanups): Remove parameter.
6690 * common/cleanups.c (cleanup_chain, make_cleanup)
6691 (make_cleanup_dtor, all_cleanups, do_cleanups)
6692 (discard_my_cleanups, discard_cleanups)
6693 (discard_final_cleanups, save_my_cleanups, save_cleanups)
6694 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
6695 (null_cleanup): Remove.
6696 (do_final_cleanups): Remove parameter.
6697
c6321f19
TT
66982019-03-06 Tom Tromey <tom@tromey.com>
6699
6700 * remote.c (remote_target::remote_parse_stop_reply): Use
6701 unique_xmalloc_ptr.
6702
61b30099
TT
67032019-03-06 Tom Tromey <tom@tromey.com>
6704
6705 * stabsread.c (struct stabs_field_info): Rename from field_info.
6706 <list, fnlist>: Add initializers.
6707 <obstack>: New member.
6708 (read_member_functions, read_struct_fields, read_baseclasses):
6709 Allocate on obstack. Don't use cleanups.
6710 (read_one_struct_field, read_member_functions, read_struct_fields)
6711 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
6712 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
6713 (read_struct_type): Update.
6714
6cceac94
TT
67152019-03-06 Tom Tromey <tom@tromey.com>
6716
6717 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
6718 * common/filestuff.h (make_cleanup_close): Don't declare.
6719 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
6720 Remove.
6721
72412762
TT
67222019-03-06 Tom Tromey <tom@tromey.com>
6723
6724 * solib-aix.c: Use make_scope_exit.
6725
2b6ff1c0
TT
67262019-03-06 Tom Tromey <tom@tromey.com>
6727
6728 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
6729 Use make_scope_exit.
6730
d01c5877
TT
67312019-03-06 Tom Tromey <tom@tromey.com>
6732
6733 * solib-svr4.c (disable_probes_interface): Remove parameter.
6734 (svr4_handle_solib_event): Use make_scope_exit.
6735
32603266
TT
67362019-03-06 Tom Tromey <tom@tromey.com>
6737
6738 * remote.c (struct stop_reply_deleter): Remove.
6739 (stop_reply_up): Update.
6740 (struct stop_reply): Derive from notif_event. Don't typedef.
6741 <regcache>: Now a std::vector.
6742 (stop_reply_xfree): Remove.
6743 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
6744 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
6745 (remote_target::discard_pending_stop_replies): Use delete.
6746 (remote_target::remote_parse_stop_reply): Update.
6747 (remote_target::process_stop_reply): Update.
6748 * remote-notif.h (struct notif_event): Add virtual destructor.
6749 Remove "dtr" member.
6750 (struct notif_client) <alloc_event>: Return a unique_ptr.
6751 (notif_event_xfree): Don't declare.
6752 (notif_event_up): New typedef.
6753 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
6754 (notif_event_xfree, do_notif_event_xfree): Remove.
6755 (remote_notif_state_xfree): Update.
6756
9799571e
TT
67572019-03-06 Tom Tromey <tom@tromey.com>
6758
6759 * infrun.c (displaced_step_clear_cleanup): Now a
6760 forward_scope_exit type.
6761 (displaced_step_prepare_throw): Update.
6762 (displaced_step_fixup): Update.
6763
09e3c4ca
TT
67642019-03-06 Tom Tromey <tom@tromey.com>
6765
6766 * inferior.h (class inferior): Update comment.
6767 * gdbthread.h (class thread_info): Update comment.
6768
e2a03548
TT
67692019-03-06 Joel Brobecker <brobecker@adacore.com>
6770 Tom Tromey <tom@tromey.com>
6771
6772 * stabsread.h (struct stab_section_list): Remove.
6773 (coffstab_build_psymtabs): Update.
6774 * dbxread.c (symbuf_sections): Now a std::vector.
6775 (sect_idx): New global.
6776 (fill_symbuf): Update.
6777 (coffstab_build_psymtabs): Change type of stabsects parameter.
6778 Update.
6779 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
6780 std::vector.
6781 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
6782 (coff_locate_sections): Update.
6783 (coff_symfile_read): Remove cleanups. Update.
6784 (init_stringtab): Add storage parameter.
6785 (free_stringtab, free_stringtab_cleanup): Remove.
6786 (init_lineno): Add storage parameter.
6787 (free_linetab, free_linetab_cleanup): Remove.
6788
b7e60d85
PA
67892019-03-06 Pedro Alves <palves@redhat.com>
6790
6791 * linux-fork.c (fork_info::clobber_regs): Delete.
6792 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
6793 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
6794 comment. Adjust.
6795 (scoped_switch_fork_info::scoped_switch_fork_info)
6796 (checkpoint_command, linux_fork_context): Adjust
6797 fork_save_infrun_state calls.
6798
e52c971f
PA
67992019-03-06 Pedro Alves <palves@redhat.com>
6800
6801 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
6802 (inf_has_multiple_threads): Return 'bool' and rewrite using
6803 inferior_info::threads().
6804
06974e6c
PA
68052019-03-06 Pedro Alves <palves@redhat.com>
6806
6807 * linux-fork.c: Include <list>.
6808 (fork_list): Now a std::list instance.
6809 (fork_info): Add ctor, dtor, and in-class initialize all fields.
6810 (forks_exist_p, find_last_fork): Adjust.
6811 (new_fork): Delete.
6812 (one_fork_p): New.
6813 (add_fork): Adjust.
6814 (free_fork): Delete, folded into fork_info::~fork_info().
6815 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
6816 Adjust.
6817 (init_fork_list): Delete.
6818 (linux_fork_killall, linux_fork_mourn_inferior)
6819 (linux_fork_detach, info_checkpoints_command): Adjust.
6820 (_initialize_linux_fork): No longer call init_fork_list.
6821
72f31aea
PA
68222019-03-06 Pedro Alves <palves@redhat.com>
6823
6824 * linux-fork.c (new_fork): New, split out of ...
6825 (add_fork): ... this. Return void. Move "first fork" special
6826 case from here, to ...
6827 (checkpoint_command): ... here.
6828 * linux-linux.h (add_fork): Return void.
6829
efbecbc1
AB
68302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
6833
0841c79a
AB
68342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6835 Chris January <chris.january@arm.com>
6836 David Lecomber <david.lecomber@arm.com>
6837
6838 * f-exp.y: New token, UNOP_INTRINSIC.
6839 (exp): New pattern using UNOP_INTRINSIC token.
6840 (f77_keywords): Add 'abs' keyword.
6841 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
6842 (value_from_host_double): New function.
6843 (evaluate_subexp_f): Support UNOP_ABS.
6844
4a270568
AB
68452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
6848 types.
6849
067630bd
AB
68502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
6853 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
6854 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
6855
3be47f7a
AB
68562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6857
6858 * f-exp.y (convert_to_kind_type): Handle more type kinds.
6859
4d00f5d8
AB
68602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6861 Chris January <chris.january@arm.com>
6862
6863 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
6864 * f-exp.y: Define 'KIND' token.
6865 (exp): New pattern for KIND expressions.
6866 (ptype): Handle types with a kind extension.
6867 (direct_abs_decl): Extend to spot kind extensions.
6868 (f77_keywords): Add 'kind' to the list.
6869 (push_kind_type): New function.
6870 (convert_to_kind_type): New function.
6871 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
6872 * parse.c (operator_length_standard): Likewise.
6873 * parser-defs.h (enum type_pieces): Add tp_kind.
6874 * std-operator.def: Add UNOP_KIND.
6875
e454224f
AB
68762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 * f-exp.y (f_parse): Set yydebug.
6879
9dad4a58
AB
68802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * f-lang.c (evaluate_subexp_f): New function.
6883 (exp_descriptor_f): New global.
6884 (f_language_defn): Use exp_descriptor_f instead of
6885 exp_descriptor_standard.
6886
c8f91604
AB
68872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * f-exp.y (struct token): Add comments.
6890 (dot_ops): Remove uppercase versions and the end marker.
6891 (f77_keywords): Likewise.
6892 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
6893 entries in the dot_ops array are case insensitive, and use
6894 strncasecmp to compare strings. Also some whitespace cleanup in
6895 this area. Similar for the f77_keywords array, except entries in
6896 this list might be case sensitive.
6897
dd9f2c76
AB
68982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * f-exp.y (struct f77_boolean_val): Add comments.
6901 (boolean_values): Remove uppercase versions, and end marker.
6902 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
6903 and use strncasecmp to achieve case insensitivity. Additionally,
6904 perform whitespace cleanup around this code.
6905
67a3048c
TT
69062019-03-06 Tom Tromey <tromey@adacore.com>
6907
6908 * remote-sim.c (gdbsim_target_open): Use result of
6909 gdb_argv::release.
6910
aa3cfbda
RB
69112019-03-06 Richard Bunt <richard.bunt@arm.com>
6912 Dirk Schubert <dirk.schubert@arm.com>
6913 Chris January <chris.january@arm.com>
6914
6915 * eval.c (evaluate_subexp_standard): Call Fortran argument
6916 wrapping logic.
6917 * f-lang.c (struct value): A value which can be passed into a
6918 Fortran function call.
6919 (fortran_argument_convert): Wrap Fortran arguments in a pointer
6920 where appropriate.
6921 (struct type): Value ready for a Fortran function call.
6922 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
6923 is needed.
6924 * f-lang.h (fortran_argument_convert): Declaration.
6925 (fortran_preserve_arg_pointer): Declaration.
6926 * infcall.c (value_arg_coerce): Call Fortran argument logic.
6927
ea38e5df
TT
69282019-03-05 Tom Tromey <tromey@adacore.com>
6929
6930 * python/py-prettyprint.c (print_string_repr): Remove #if.
6931 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
6932
06b5b831
TT
69332019-03-05 Tom Tromey <tromey@adacore.com>
6934
6935 * target.c (the_dummy_target): Move later. Change type to
6936 "dummy_target".
6937 (initialize_targets): Don't initialize the_dummy_target.
6938
edbd9e45
TT
69392019-03-05 Tom Tromey <tromey@adacore.com>
6940
6941 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
6942 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
6943
c119e040
TT
69442019-03-05 Tom Tromey <tromey@adacore.com>
6945
6946 * windows-nat.c (windows_nat_target::attach)
6947 (windows_nat_target::detach): Don't call gdb_flush.
6948 * valprint.c (generic_val_print, val_print, val_print_string):
6949 Don't call gdb_flush.
6950 * utils.c (defaulted_query): Don't call gdb_flush.
6951 * typeprint.c (print_type_scalar): Don't call gdb_flush.
6952 * target.c (target_announce_detach): Don't call gdb_flush.
6953 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
6954 * remote.c (extended_remote_target::attach): Don't call
6955 gdb_flush.
6956 * procfs.c (procfs_target::detach): Don't call gdb_flush.
6957 * printcmd.c (do_examine): Don't call gdb_flush.
6958 (info_display_command): Don't call gdb_flush.
6959 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
6960 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
6961 * memattr.c (info_mem_command): Don't call gdb_flush.
6962 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
6963 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
6964 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
6965 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
6966 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
6967 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
6968 (gnu_nat_target::detach): Don't call gdb_flush.
6969 * f-valprint.c (f_val_print): Don't call gdb_flush.
6970 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
6971 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
6972 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
6973 gdb_flush.
6974 * c-valprint.c (c_val_print): Don't call gdb_flush.
6975 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
6976
895dafa6
TT
69772019-03-05 Tom Tromey <tromey@adacore.com>
6978
6979 * varobj.c (update_dynamic_varobj_children): Update.
6980 (install_default_visualizer): Use reset, not release.
6981 * value.c (set_internalvar): Update.
6982 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
6983 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
6984 ATTRIBUTE_UNUSED_RESULT.
6985
88a774b9
TT
69862019-03-05 Tom Tromey <tromey@adacore.com>
6987
6988 * remote.c (class scoped_remote_fd) <release>: Add
6989 ATTRIBUTE_UNUSED_RESULT.
6990
4e4a8b93
TT
69912019-03-05 Tom Tromey <tromey@adacore.com>
6992
6993 * macroexp.c (struct macro_buffer) <release>: Add
6994 ATTRIBUTE_UNUSED_RESULT.
6995
083eef1f
TT
69962019-03-05 Tom Tromey <tromey@adacore.com>
6997
6998 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
6999 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
7000 ATTRIBUTE_UNUSED_RESULT.
7001
3cabd438
TT
70022019-03-05 Tom Tromey <tromey@adacore.com>
7003
7004 * common/scoped_fd.h (class scoped_fd) <release>: Add
7005 ATTRIBUTE_UNUSED_RESULT.
7006
41e3300a
TT
70072019-03-05 Tom Tromey <tromey@adacore.com>
7008
7009 * parser-defs.h (struct parser_state) <release>: Add
7010 ATTRIBUTE_UNUSED_RESULT.
7011
18cb7c9f
TT
70122019-03-05 Tom Tromey <tromey@adacore.com>
7013
7014 * utils.h (class gdb_argv) <release>: Add
7015 ATTRIBUTE_UNUSED_RESULT.
7016 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
7017
41fa577f
EZ
70182019-03-02 Eli Zaretskii <eliz@gnu.org>
7019
a6a4b2c6
EZ
7020 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
7021 for-loop range, to avoid compiler warnings.
7022
7023 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
7024 avoid compiler warnings about unused variables.
7025
742a7df5
EZ
7026 * NEWS: Mention end of support for native debugging on MS-Windows
7027 before XP.
7028
41fa577f
EZ
7029 PR gdb/24292
7030 * common/netstuff.c:
7031 * gdbserver/gdbreplay.c
7032 * gdbserver/remote-utils.c:
7033 * ser-tcp.c:
7034 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
7035 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
7036 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
7037 'getaddrinfo' and 'freeaddrinfo' were not available before
7038 Windows XP, and mingw.org's MinGW headers by default define
7039 _WIN32_WINNT to 0x500.
7040
827f438f
GB
70412019-03-01 Gary Benson <gbenson@redhat.com>
7042
7043 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
7044
92137da0
RO
70452019-02-28 Brian Vandenberg <phantall@gmail.com>
7046 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7047
7048 PR gdb/8527
7049 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
7050 set_sigint_trap, clear_sigint_trap.
7051
799efbe8
PW
70522019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7053
7054 * target.c (target_detach): Clear the regcache and the
7055 frame cache.
7056
8ed25214
PA
70572019-02-27 Pedro Alves <palves@redhat.com>
7058
7059 * utils.c (set_screen_size): When we cap the height/width sizes,
7060 tweak the corresponding command variable to show "unlimited":
7061
23031e31
SJ
70622019-02-27 Saagar Jha <saagar@saagarjha.com>
7063 Pedro Alves <palves@redhat.com>
7064
7065 * utils.c (set_screen_size): Reduce "infinite" rows and columns
7066 before calling rl_set_screen_size.
7067
6c28e44a
TT
70682019-02-27 Tom Tromey <tromey@adacore.com>
7069
7070 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
7071 define.
7072 * python/py-value.c: Remove Python 2.4 workaround.
7073 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
7074 workaround.
7075 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
7076 Python 2.4 workaround.
7077 * python/python-internal.h: Remove Python 2.4 comment.
7078 (Py_ssize_t): Don't define.
7079 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
7080 (gdb_Py_DECREF): Remove Python 2.4 workaround.
7081 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
7082 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
7083 * python/python.c (do_start_initialization): Remove Python 2.4
7084 workaround.
7085 * python/py-prettyprint.c (class dummy_python_frame): Remove.
7086 (print_children): Remove Python 2.4 workaround.
7087 * python/py-inferior.c (buffer_procs): Remove Python 2.4
7088 workaround.
7089 (CHARBUFFERPROC_NAME): Remove.
7090 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
7091 Python 2.4 workaround.
7092
2c3fc25d 70932019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 7094
2c3fc25d
KB
7095 * NEWS: Note minimum Python version.
7096
6ca62222
KB
70972019-02-27 Kevin Buettner <kevinb@redhat.com>
7098
7099 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
7100 code from these functions. Remove corresponding ifdefs. Use
7101 Py_buffer_up instead of explicit calls to PyBuffer_Release.
7102 Remove gotos and target of gotos.
7103 (infpy_search_memory): Likewise.
7104
f4bc7d2c
AB
71052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
7108 (hppa_gdbarch_init): Don't register deleted functions with
7109 gdbarch.
7110
9734a586
AB
71112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7112
7113 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
7114 (h8300_unwind_sp): Delete.
7115 (h8300_dummy_id): Delete.
7116 (h8300_gdbarch_init): Don't register deleted functions with
7117 gdbarch.
7118
68b867f3
AB
71192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7120
7121 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
7122 (ft32_unwind_pc): Delete.
7123 (ft32_unwind_sp): Delete.
7124 (ft32_gdbarch_init): Don't register deleted functions with
7125 gdbarch.
7126
2fbe7ad0
AB
71272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * gdb/frv-tdep.c (frv_dummy_id): Delete.
7130 (frv_unwind_pc): Delete.
7131 (frv_unwind_sp): Delete.
7132 (frv_gdbarch_init): Don't register deleted functions with
7133 gdbarch.
7134
76055cbe
AB
71352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7136
7137 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
7138 (riscv_unwind_pc): Delete.
7139 (riscv_unwind_sp): Delete.
7140 (riscv_gdbarch_init): Don't register deleted functions with
7141 gdbarch.
7142
4133e5a1
AB
71432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * gdb/csky-tdep.c (csky_dummy_id): Delete.
7146 (csky_unwind_pc): Delete.
7147 (csky_unwind_sp): Delete.
7148 (csky_gdbarch_init): Don't register deleted functions with
7149 gdbarch.
7150
8010f576
AB
71512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7152
7153 * gdb/cris-tdep.c (cris_dummy_id): Delete.
7154 (cris_unwind_pc): Delete.
7155 (cris_unwind_sp): Delete.
7156 (cris_gdbarch_init): Don't register deleted functions with
7157 gdbarch.
7158
b56bf084
AB
71592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7160
7161 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
7162 (bfin_unwind_pc): Delete.
7163 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
7164
a19a650f
AB
71652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * gdb/arm-tdep.c (arm_dummy_id): Delete.
7168 (arm_unwind_pc): Delete.
7169 (arm_unwind_sp): Delete.
7170 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
7171
f8278c3c
AB
71722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * gdb/arc-tdep.c (arc_dummy_id): Delete.
7175 (arc_unwind_pc): Delete.
7176 (arc_unwind_sp): Delete.
7177 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
7178
480e46cf
AB
71792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7180
7181 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
7182 (alpha_unwind_pc): Delete.
7183 (alpha_gdbarch_init): Don't register deleted functions with
7184 gdbarch.
7185
7a995095
AB
71862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
7189 (aarch64_unwind_pc): Delete.
7190 (aarch64_unwind_sp): Delete.
7191 (aarch64_gdbarch_init): Don't register deleted functions with
7192 gdbarch.
7193
bf9a735e
AB
71942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * gdbtypes.c (type_align): Don't consider static members when
7197 computing structure alignment.
7198
5561fc30
AB
71992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7200
7201 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
7202 return 0 for other types.
7203 * arch-utils.c (default_type_align): Always return 0.
7204 * gdbarch.h: Regenerate.
7205 * gdbarch.sh (type_align): Extend comment.
7206 * gdbtypes.c (type_align): Add additional comments, always call
7207 gdbarch_type_align before applying the default rules.
7208 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
7209 generic code will then apply a suitable default.
7210 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
7211 types, return 0 for other types.
7212
9335e75a
JB
72132019-02-27 Joel Brobecker <brobecker@adacore.com>
7214
7215 * NEWS: Create a new section for the next release branch.
7216 Rename the section of the current branch, now that it has
7217 been cut.
7218
3d34d8de
JB
72192019-02-27 Joel Brobecker <brobecker@adacore.com>
7220
7221 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
7222 * version.in: Bump version to 8.3.50.DATE-git.
7223
143420fb
SM
72242019-02-26 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * aix-thread.c (ptid_cmp): Remove unused variable.
7227 (get_signaled_thread): Likewise.
7228 (store_regs_user_thread): Likewise.
7229 (store_regs_kernel_thread): Likewise.
7230 (fetch_regs_kernel_thread): Remove shadowed variable.
7231
172fb711
AB
72322019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * features/riscv/32bit-cpu.xml: Add register numbers.
7235 * features/riscv/32bit-fpu.c: Regenerate.
7236 * features/riscv/32bit-fpu.xml: Add register numbers.
7237 * features/riscv/64bit-cpu.xml: Add register numbers.
7238 * features/riscv/64bit-fpu.c: Regenerate.
7239 * features/riscv/64bit-fpu.xml: Add register numbers.
7240
26c89782
KB
72412019-02-26 Kevin Buettner <kevinb@redhat.com>
7242
af54ade9 7243 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
7244 * python/py-value.c (convert_buffer_and_type_to_value): New
7245 function.
7246 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
7247 Add support for handling an optional second argument. Call
7248 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
7249 * python/python-internal.h (Py_buffer_deleter): New struct.
7250 (Py_buffer_up): New typedef.
7251
0f58c9e8
JB
72522019-02-25 John Baldwin <jhb@FreeBSD.org>
7253
7254 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
7255 instead of releasing ownership.
7256
0a0f4c01
JR
72572019-02-25 Jordan Rupprecht <rupprecht@google.com>
7258
7259 * dwarf2read.c (open_and_init_dwp_file): Call
7260 elf_numsections instead of bfd_count_sections to initialize
7261 dwp_file->num_sections.
7262
cd5a152c
TT
72632019-02-25 Tom Tromey <tromey@adacore.com>
7264
7265 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
7266
8a6a8513
SDJ
72672019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
7268
7269 * gcore.in: Add '--readnever' option when invoking GDB.
7270
04dcda9c
SM
72712019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * MAINTAINERS: Update my email address.
7274
07bc701d
SM
72752019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7276
7277 * build-id.c (build_id_to_debug_bfd_1): New function.
7278 (build_id_to_debug_bfd): Look for separate debug file in
7279 sysroot.
7280
c6f4a5d0
AB
72812019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * gdbarch.sh: Update the copyright year range that is placed into
7284 generated files.
7285
9600246d
KS
72862019-02-22 Keith Seitz <keiths@redhat.com>
7287
7288 PR symtab/23853
7289 * linespec.c (create_sals_line_offset): Search for the default
7290 symtab's filename instead of its fullname.
7291
7557a514
AH
72922019-02-21 Alan Hayward <alan.hayward@arm.com>
7293
7294 * NEWS: Update style defaults.
7295
ee2bcb0c
AH
72962019-02-21 Alan Hayward <alan.hayward@arm.com>
7297
7298 * main.c (captured_main_1): Disable styling in batch mode.
7299
0c95f9ed
TT
73002019-02-20 Tom Tromey <tom@tromey.com>
7301
7302 * symtab.c (symtab_symbol_info): Fix typos.
7303
c763b894
TT
73042019-02-20 Tom Tromey <tromey@adacore.com>
7305
7306 * findcmd.c (_initialize_mem_search): Use upper case for
7307 metasyntactic variables.
7308
0ef8a082
AH
73092019-02-20 Alan Hayward <alan.hayward@arm.com>
7310
7311 * aarch64-tdep.c (aarch64_add_reggroups): New function.
7312 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
7313
6caa91b6
SM
73142019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
7315
7316 * top.h (source_file_name): Change to std::string.
7317 * top.c (source_file_name): Likewise.
7318 (command_line_input): Adjust.
7319 * cli/cli-script.c (script_from_file): Adjust.
7320
98814c6c
TT
73212019-02-19 Tom Tromey <tromey@adacore.com>
7322
7323 * ravenscar-thread.c
7324 (ravenscar_thread_target::update_thread_list): Don't call
7325 ada_build_task_list.
7326 * ada-lang.h (ada_build_task_list): Don't declare.
7327 * ada-tasks.c (struct ada_tasks_inferior_data)
7328 <task_list_valid_p>: Now bool.
7329 (read_known_tasks, ada_task_list_changed)
7330 (ada_tasks_invalidate_inferior_data): Update.
7331 (read_known_tasks_array): Return bool.
7332 (read_known_tasks_list): Likewise.
7333 (read_known_tasks): Return void.
7334 (ada_build_task_list): Now static.
7335
70cd633e
AB
73362019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
7339 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
7340
040b3e95
PW
73412019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7342
7343 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
7344 variant for ada_tasks_pspace_data_handle and
7345 ada_tasks_inferior_data_handle.
7346 (ada_tasks_pspace_data_cleanup): New function.
7347 (ada_tasks_inferior_data_cleanup): New function.
7348
9409233b
TT
73492019-02-17 Tom Tromey <tom@tromey.com>
7350
7351 * macrotab.h (macro_source_fullname): Return a std::string.
7352 * macrotab.c (macro_include, check_for_redefinition)
7353 (macro_undef, macro_lookup_definition, foreach_macro)
7354 (foreach_macro_in_scope): Update.
7355 (macro_source_fullname): Return a std::string.
7356 * macrocmd.c (show_pp_source_pos): Update.
7357
6506371f
TT
73582019-02-17 Tom Tromey <tom@tromey.com>
7359
7360 * macrocmd.c (show_pp_source_pos): Style the file names.
7361
0c820d67
TT
73622019-02-17 Tom Tromey <tom@tromey.com>
7363
7364 PR tui/24197:
7365 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
7366
a0087920
TT
73672019-02-17 Tom Tromey <tom@tromey.com>
7368
7369 * ada-lang.c (user_select_syms): Use filtered printing.
7370 * utils.c (wrap_style): New global.
7371 (desired_style): Remove.
7372 (emit_style_escape): Add stream parameter.
7373 (set_output_style, reset_terminal_style, prompt_for_continue):
7374 Update.
7375 (flush_wrap_buffer): Only flush gdb_stdout.
7376 (wrap_here): Set wrap_style.
7377 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
7378 treat escape sequences as a character. Change when wrap buffer is
7379 flushed.
7380 (fputs_styled): Do not set the output style when the default is
7381 requested.
7382 * ui-style.h (struct ui_file_style) <is_default>: New method.
7383 * source.c (print_source_lines_base): Emit escape sequences in one
7384 piece.
7385
75ba10dc
JB
73862019-02-17 Joel Brobecker <brobecker@adacore.com>
7387
7388 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
7389 integers and enumeration types.
7390
a2cd4f14
JB
73912019-02-17 Joel Brobecker <brobecker@adacore.com>
7392
7393 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
7394 instead of lookup_symbol_in_language
7395 (do_exact_match): New function.
7396 (ada_get_symbol_name_matcher): Return do_exact_match when
7397 doing a verbatim match.
7398
485b851b
TT
73992019-02-15 Tom Tromey <tromey@adacore.com>
7400
7401 * ravenscar-thread.c (ravenscar_thread_target::resume)
7402 (ravenscar_thread_target::wait): Special case wildcard requests.
7403
0b790b1e
TT
74042019-02-15 Tom Tromey <tromey@adacore.com>
7405
7406 * ravenscar-thread.c (base_ptid): Remove.
7407 (struct ravenscar_thread_target) <close>: New method.
7408 <m_base_ptid>: New member.
7409 <update_inferior_ptid, active_task, task_is_currently_active,
7410 runtime_initialized>: Declare methods.
7411 <ravenscar_thread_target>: Add constructor.
7412 (ravenscar_thread_target::task_is_currently_active)
7413 (ravenscar_thread_target::update_inferior_ptid)
7414 (ravenscar_runtime_initialized): Rename. Now methods.
7415 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
7416 (ravenscar_thread_target::update_thread_list): Update.
7417 (ravenscar_thread_target::active_task): Now method.
7418 (ravenscar_thread_target::store_registers)
7419 (ravenscar_thread_target::prepare_to_store)
7420 (ravenscar_thread_target::prepare_to_store)
7421 (ravenscar_thread_target::mourn_inferior): Update.
7422 (ravenscar_inferior_created): Use "new" to create target.
7423 (ravenscar_thread_target::get_ada_task_ptid): Update.
7424 (_initialize_ravenscar): Don't initialize base_ptid.
7425 (ravenscar_ops): Remove global.
7426
dea57a62
TT
74272019-02-15 Tom Tromey <tromey@adacore.com>
7428
7429 * target.h (push_target): Declare new overload.
7430 * target.c (push_target): New overload, taking an rvalue reference.
7431 * remote.c (remote_target::open_1): Use push_target overload.
7432 * corelow.c (core_target_open): Use push_target overload.
7433
989f3c58
TT
74342019-02-15 Tom Tromey <tromey@adacore.com>
7435
7436 * ravenscar-thread.c (is_ravenscar_task)
7437 (ravenscar_task_is_currently_active): Return bool.
7438 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
7439 (_initialize_ravenscar): Remove "(void)".
7440 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
7441 Return bool.
7442
6cbcc006
TT
74432019-02-15 Tom Tromey <tromey@adacore.com>
7444
7445 * ravenscar-thread.c (ravenscar_runtime_initializer)
7446 (has_ravenscar_runtime, get_running_thread_id)
7447 (ravenscar_thread_target::resume): Fix indentation.
7448
7657f14d
TT
74492019-02-15 Tom Tromey <tromey@adacore.com>
7450
7451 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
7452 from ravenscar_arch_ops.
7453 (sparc_ravenscar_ops::fetch_registers)
7454 (sparc_ravenscar_ops::store_registers): Now methods.
7455 (sparc_ravenscar_prepare_to_store): Remove.
7456 (sparc_ravenscar_ops): Redefine.
7457 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
7458 methods and destructor. Remove members.
7459 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
7460 (ravenscar_thread_target::store_registers)
7461 (ravenscar_thread_target::prepare_to_store): Update.
7462 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
7463 Remove.
7464 (struct ppc_ravenscar_powerpc_ops): Derive from
7465 ravenscar_arch_ops.
7466 (ppc_ravenscar_powerpc_ops::fetch_registers)
7467 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
7468 (ppc_ravenscar_powerpc_ops): Redefine.
7469 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
7470 (ppc_ravenscar_e500_ops::fetch_registers)
7471 (ppc_ravenscar_e500_ops::store_registers): Now methods.
7472 (ppc_ravenscar_e500_ops): Redefine.
7473 * aarch64-ravenscar-thread.c
7474 (aarch64_ravenscar_generic_prepare_to_store): Remove.
7475 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
7476 (aarch64_ravenscar_fetch_registers)
7477 (aarch64_ravenscar_store_registers): Now methods.
7478 (aarch64_ravenscar_ops): Redefine.
7479
5b6ea500
TT
74802019-02-15 Tom Tromey <tromey@adacore.com>
7481
7482 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
7483 (ravenscar_thread_target::stopped_by_hw_breakpoint)
7484 (ravenscar_thread_target::stopped_by_watchpoint)
7485 (ravenscar_thread_target::stopped_data_address)
7486 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
7487
e397fd39
TT
74882019-02-15 Tom Tromey <tromey@adacore.com>
7489
7490 * ravenscar-thread.c: Fix some typos.
7491
cc12f4a8
TT
74922019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7493 Tom Tromey <tromey@adacore.com>
7494
7495 * ada-lang.c (ada_exception_sal): Change addr_string to a
7496 std::string.
7497 (create_ada_exception_catchpoint): Update.
7498
5f486660
TT
74992019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7500 Tom Tromey <tromey@adacore.com>
7501
7502 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
7503 (bp_location_ops): Remove.
7504 (base_breakpoint_allocate_location): Update.
7505 (free_bp_location): Update.
7506 * ada-lang.c (class ada_catchpoint_location)
7507 <ada_catchpoint_location>: Remove ops parameter.
7508 (ada_catchpoint_location_dtor): Remove.
7509 (ada_catchpoint_location_ops): Remove.
7510 (allocate_location_exception): Update.
7511 * breakpoint.h (struct bp_location_ops): Remove.
7512 (class bp_location) <bp_location>: Remove bp_location_ops
7513 parameter.
7514 <~bp_location>: Add destructor.
7515 <ops>: Remove.
7516
b671c7fb
TS
75172019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7518 Pedro Alves <palves@redhat.com>
7519
7520 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
7521 'PATH_MAX'.
7522
8071c5ce
DM
75232019-02-14 David Michael <fedora.dm0@gmail.com>
7524 Samuel Thibault <samuel.thibault@gnu.org>
7525 Thomas Schwinge <thomas@codesourcery.com>
7526
7527 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
7528 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
7529
b1041ae0
TS
75302019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7531
924514e1
TS
7532 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
7533 (check_empty): Use "const char *".
7534
c29ee8d4
TS
7535 * gnu-nat.c (gnu_nat_target::detach): Instead of
7536 'detach_inferior (pid)' call
7537 'detach_inferior (find_inferior_pid (pid))'.
7538
6c6ef69f
TS
7539 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
7540 'nat/fork-inferior.o'.
7541 * gnu-nat.c: #include "nat/fork-inferior.h".
7542
2d0a338c
TS
7543 * gnu-nat.c (gnu_nat_target::detach): Instead of
7544 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
7545 * gnu-nat.h: #include "inf-child.h".
7546 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
7547 'i386_gnu_nat_target::fetch_registers'.
7548 (gnu_store_registers): Rename/move to
7549 'i386_gnu_nat_target::store_registers'.
7550
cabb5f06
TS
7551 * config/i386/nm-i386gnu.h: Don't "#include" any files.
7552 * gnu-nat.h (mach_thread_info): New function.
7553 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
7554
b1041ae0
TS
7555 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
7556
2988d01e
KF
75572019-02-14 Frederic Konrad <konrad@adacore.com>
7558
7559 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
7560
c559d709
JB
75612019-02-14 Joel Brobecker <brobecker@adacore.com>
7562
7563 * windows-nat.c (windows_add_thread): Add new parameter
7564 "main_thread_p" with default value set to false. Update
7565 function documentation as well as all callers.
7566 (windows_delete_thread): Likewise.
7567 (fake_create_process): Update call to windows_add_thread.
7568 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
7569 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
7570 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
7571 call to windows_delete_thread.
7572
007024cc
SM
75732019-02-13 Simon Marchi <simon.marchi@ericsson.com>
7574
7575 * MAINTAINERS: Add Andrew Burgess as global maintainer.
7576
f62318e9
JB
75772019-02-12 John Baldwin <jhb@FreeBSD.org>
7578
7579 * symfile.c (find_separate_debug_file): Use canonical path of
7580 sysroot with child_path instead of gdb_sysroot if it is valid.
7581
cd4b7848
JB
75822019-02-12 John Baldwin <jhb@FreeBSD.org>
7583
7584 * symfile.c (find_separate_debug_file): Use child_path to
7585 determine if an object file is under a sysroot.
7586
efac4bfe
JB
75872019-02-12 John Baldwin <jhb@FreeBSD.org>
7588
7589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7590 unittests/child-path-selftests.c.
7591 * common/pathstuff.c (child_path): New function.
7592 * common/pathstuff.h (child_path): New prototype.
7593 * unittests/child-path-selftests.c: New file.
7594
402d2bfe
JB
75952019-02-12 John Baldwin <jhb@FreeBSD.org>
7596
7597 * symfile.c (find_separate_debug_file): Look for separate debug
7598 files in debug directories under the sysroot.
7599
1ed9f74e
PW
76002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7601
7602 * symtab.h (struct minimal_symbol data_p): New const method.
7603 (struct minimal_symbol text_p): Likewise.
7604 * symtab.c (output_source_filename): Use file name style
7605 to print file name.
7606 (print_symbol_info): Likewise.
7607 (print_msymbol_info): Use address style to print addresses.
7608 Use function name style to print executable text symbols.
7609 (expand_symtab_containing_pc): Use data_p.
7610 (find_pc_sect_compunit_symtab): Likewise.
7611
2636d81d
PW
76122019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7613
7614 * breakpoint.c (describe_other_breakpoints): Use address style
7615 to print addresses.
7616 (say_where): Likewise.
7617
ac8c53cc
PW
76182019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7619
7620 * ada-typeprint.c (print_func_type): Print function name
7621 style to print function name.
7622 * c-typeprint.c (c_print_type_1): Likewise.
7623
ea638c43
AH
76242019-02-11 Alan Hayward <alan.hayward@arm.com>
7625
7626 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
7627 for execve.
7628
ab759ca8
PW
76292019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7630
7631 * c-exp.y (direct_abs_decl): Use emplace_back to record the
7632 type_stack.
7633
aff29d1c
JB
76342019-02-10 Joel Brobecker <brobecker@adacore.com>
7635
7636 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
7637 TYPE_CODE_REF types.
7638
617126bc
JW
76392019-02-08 Jim Wilson <jimw@sifive.com>
7640
7641 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
7642 (riscv_linux_fregset): New.
7643 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
7644
46e3ed7f
TT
76452019-02-07 Tom Tromey <tom@tromey.com>
7646
7647 * thread.c (thread_cancel_execution_command): Update.
7648 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
7649 methods.
7650 (struct thread_fsm_ops): Remove.
7651 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
7652 (thread_fsm_should_stop, thread_fsm_return_value)
7653 (thread_fsm_set_finished, thread_fsm_finished_p)
7654 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
7655 Don't declare.
7656 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
7657 * infrun.c (clear_proceed_status_thread)
7658 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
7659 (print_stop_event): Update.
7660 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
7661 Add constructor.
7662 (step_command_fsm_ops): Remove.
7663 (new_step_command_fsm): Remove.
7664 (step_1): Update.
7665 (step_command_fsm::should_stop): Rename from
7666 step_command_fsm_should_stop.
7667 (step_command_fsm::clean_up): Rename from
7668 step_command_fsm_clean_up.
7669 (step_command_fsm::do_async_reply_reason): Rename from
7670 step_command_fsm_async_reply_reason.
7671 (struct until_next_fsm): Inherit from thread_fsm. Add
7672 constructor.
7673 (until_next_fsm_ops): Remove.
7674 (new_until_next_fsm): Remove.
7675 (until_next_fsm::should_stop): Rename from
7676 until_next_fsm_should_stop.
7677 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
7678 (until_next_fsm::do_async_reply_reason): Rename from
7679 until_next_fsm_async_reply_reason.
7680 (struct finish_command_fsm): Inherit from thread_fsm. Add
7681 constructor. Change type of breakpoint.
7682 (finish_command_fsm_ops): Remove.
7683 (new_finish_command_fsm): Remove.
7684 (finish_command_fsm::should_stop): Rename from
7685 finish_command_fsm_should_stop.
7686 (finish_command_fsm::clean_up): Rename from
7687 finish_command_fsm_clean_up.
7688 (finish_command_fsm::return_value): Rename from
7689 finish_command_fsm_return_value.
7690 (finish_command_fsm::do_async_reply_reason): Rename from
7691 finish_command_fsm_async_reply_reason.
7692 (finish_command): Update.
7693 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
7694 Add constructor.
7695 (call_thread_fsm_ops): Remove.
7696 (call_thread_fsm::call_thread_fsm): Rename from
7697 new_call_thread_fsm.
7698 (call_thread_fsm::should_stop): Rename from
7699 call_thread_fsm_should_stop.
7700 (call_thread_fsm::should_notify_stop): Rename from
7701 call_thread_fsm_should_notify_stop.
7702 (run_inferior_call, call_function_by_hand_dummy): Update.
7703 * cli/cli-interp.c (should_print_stop_to_console): Update.
7704 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
7705 Add constructor. Change type of location_breakpoint,
7706 caller_breakpoint.
7707 (until_break_fsm_ops): Remove.
7708 (new_until_break_fsm): Remove.
7709 (until_break_fsm::should_stop): Rename from
7710 until_break_fsm_should_stop.
7711 (until_break_fsm::clean_up): Rename from
7712 until_break_fsm_clean_up.
7713 (until_break_fsm::do_async_reply_reason): Rename from
7714 until_break_fsm_async_reply_reason.
7715 (until_break_command): Update.
7716 * thread-fsm.c: Remove.
7717 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
7718
1a5c2598
TT
77192019-02-07 Tom Tromey <tom@tromey.com>
7720
7721 * yy-remap.h: Add include guard.
7722 * xtensa-tdep.h: Add include guard.
7723 * xcoffread.h: Rename include guard.
7724 * varobj-iter.h: Add include guard.
7725 * tui/tui.h: Rename include guard.
7726 * tui/tui-winsource.h: Rename include guard.
7727 * tui/tui-wingeneral.h: Rename include guard.
7728 * tui/tui-windata.h: Rename include guard.
7729 * tui/tui-win.h: Rename include guard.
7730 * tui/tui-stack.h: Rename include guard.
7731 * tui/tui-source.h: Rename include guard.
7732 * tui/tui-regs.h: Rename include guard.
7733 * tui/tui-out.h: Rename include guard.
7734 * tui/tui-layout.h: Rename include guard.
7735 * tui/tui-io.h: Rename include guard.
7736 * tui/tui-hooks.h: Rename include guard.
7737 * tui/tui-file.h: Rename include guard.
7738 * tui/tui-disasm.h: Rename include guard.
7739 * tui/tui-data.h: Rename include guard.
7740 * tui/tui-command.h: Rename include guard.
7741 * tic6x-tdep.h: Add include guard.
7742 * target/waitstatus.h: Rename include guard.
7743 * target/wait.h: Rename include guard.
7744 * target/target.h: Rename include guard.
7745 * target/resume.h: Rename include guard.
7746 * target-float.h: Rename include guard.
7747 * stabsread.h: Add include guard.
7748 * rs6000-tdep.h: Add include guard.
7749 * riscv-fbsd-tdep.h: Add include guard.
7750 * regformats/regdef.h: Rename include guard.
7751 * record.h: Rename include guard.
7752 * python/python.h: Rename include guard.
7753 * python/python-internal.h: Rename include guard.
7754 * python/py-stopevent.h: Rename include guard.
7755 * python/py-ref.h: Rename include guard.
7756 * python/py-record.h: Rename include guard.
7757 * python/py-record-full.h: Rename include guard.
7758 * python/py-record-btrace.h: Rename include guard.
7759 * python/py-instruction.h: Rename include guard.
7760 * python/py-events.h: Rename include guard.
7761 * python/py-event.h: Rename include guard.
7762 * procfs.h: Add include guard.
7763 * proc-utils.h: Add include guard.
7764 * p-lang.h: Add include guard.
7765 * or1k-tdep.h: Rename include guard.
7766 * observable.h: Rename include guard.
7767 * nto-tdep.h: Rename include guard.
7768 * nat/x86-linux.h: Rename include guard.
7769 * nat/x86-linux-dregs.h: Rename include guard.
7770 * nat/x86-gcc-cpuid.h: Add include guard.
7771 * nat/x86-dregs.h: Rename include guard.
7772 * nat/x86-cpuid.h: Rename include guard.
7773 * nat/ppc-linux.h: Rename include guard.
7774 * nat/mips-linux-watch.h: Rename include guard.
7775 * nat/linux-waitpid.h: Rename include guard.
7776 * nat/linux-ptrace.h: Rename include guard.
7777 * nat/linux-procfs.h: Rename include guard.
7778 * nat/linux-osdata.h: Rename include guard.
7779 * nat/linux-nat.h: Rename include guard.
7780 * nat/linux-namespaces.h: Rename include guard.
7781 * nat/linux-btrace.h: Rename include guard.
7782 * nat/glibc_thread_db.h: Rename include guard.
7783 * nat/gdb_thread_db.h: Rename include guard.
7784 * nat/gdb_ptrace.h: Rename include guard.
7785 * nat/fork-inferior.h: Rename include guard.
7786 * nat/amd64-linux-siginfo.h: Rename include guard.
7787 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
7788 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
7789 * nat/aarch64-linux.h: Rename include guard.
7790 * nat/aarch64-linux-hw-point.h: Rename include guard.
7791 * mn10300-tdep.h: Add include guard.
7792 * mips-linux-tdep.h: Add include guard.
7793 * mi/mi-parse.h: Rename include guard.
7794 * mi/mi-out.h: Rename include guard.
7795 * mi/mi-main.h: Rename include guard.
7796 * mi/mi-interp.h: Rename include guard.
7797 * mi/mi-getopt.h: Rename include guard.
7798 * mi/mi-console.h: Rename include guard.
7799 * mi/mi-common.h: Rename include guard.
7800 * mi/mi-cmds.h: Rename include guard.
7801 * mi/mi-cmd-break.h: Rename include guard.
7802 * m2-lang.h: Add include guard.
7803 * location.h: Rename include guard.
7804 * linux-record.h: Rename include guard.
7805 * linux-nat.h: Add include guard.
7806 * linux-fork.h: Add include guard.
7807 * i386-darwin-tdep.h: Rename include guard.
7808 * hppa-linux-offsets.h: Add include guard.
7809 * guile/guile.h: Rename include guard.
7810 * guile/guile-internal.h: Rename include guard.
7811 * gnu-nat.h: Rename include guard.
7812 * gdb-stabs.h: Rename include guard.
7813 * frv-tdep.h: Add include guard.
7814 * f-lang.h: Add include guard.
7815 * event-loop.h: Add include guard.
7816 * darwin-nat.h: Rename include guard.
7817 * cp-abi.h: Rename include guard.
7818 * config/sparc/nm-sol2.h: Rename include guard.
7819 * config/nm-nto.h: Rename include guard.
7820 * config/nm-linux.h: Add include guard.
7821 * config/i386/nm-i386gnu.h: Rename include guard.
7822 * config/djgpp/nl_types.h: Rename include guard.
7823 * config/djgpp/langinfo.h: Rename include guard.
7824 * compile/gcc-cp-plugin.h: Add include guard.
7825 * compile/gcc-c-plugin.h: Add include guard.
7826 * compile/compile.h: Rename include guard.
7827 * compile/compile-object-run.h: Rename include guard.
7828 * compile/compile-object-load.h: Rename include guard.
7829 * compile/compile-internal.h: Rename include guard.
7830 * compile/compile-cplus.h: Rename include guard.
7831 * compile/compile-c.h: Rename include guard.
7832 * common/xml-utils.h: Rename include guard.
7833 * common/x86-xstate.h: Rename include guard.
7834 * common/version.h: Rename include guard.
7835 * common/vec.h: Rename include guard.
7836 * common/tdesc.h: Rename include guard.
7837 * common/selftest.h: Rename include guard.
7838 * common/scoped_restore.h: Rename include guard.
7839 * common/scoped_mmap.h: Rename include guard.
7840 * common/scoped_fd.h: Rename include guard.
7841 * common/safe-iterator.h: Rename include guard.
7842 * common/run-time-clock.h: Rename include guard.
7843 * common/refcounted-object.h: Rename include guard.
7844 * common/queue.h: Rename include guard.
7845 * common/ptid.h: Rename include guard.
7846 * common/print-utils.h: Rename include guard.
7847 * common/preprocessor.h: Rename include guard.
7848 * common/pathstuff.h: Rename include guard.
7849 * common/observable.h: Rename include guard.
7850 * common/netstuff.h: Rename include guard.
7851 * common/job-control.h: Rename include guard.
7852 * common/host-defs.h: Rename include guard.
7853 * common/gdb_wait.h: Rename include guard.
7854 * common/gdb_vecs.h: Rename include guard.
7855 * common/gdb_unlinker.h: Rename include guard.
7856 * common/gdb_unique_ptr.h: Rename include guard.
7857 * common/gdb_tilde_expand.h: Rename include guard.
7858 * common/gdb_sys_time.h: Rename include guard.
7859 * common/gdb_string_view.h: Rename include guard.
7860 * common/gdb_splay_tree.h: Rename include guard.
7861 * common/gdb_setjmp.h: Rename include guard.
7862 * common/gdb_ref_ptr.h: Rename include guard.
7863 * common/gdb_optional.h: Rename include guard.
7864 * common/gdb_locale.h: Rename include guard.
7865 * common/gdb_assert.h: Rename include guard.
7866 * common/filtered-iterator.h: Rename include guard.
7867 * common/filestuff.h: Rename include guard.
7868 * common/fileio.h: Rename include guard.
7869 * common/environ.h: Rename include guard.
7870 * common/common-utils.h: Rename include guard.
7871 * common/common-types.h: Rename include guard.
7872 * common/common-regcache.h: Rename include guard.
7873 * common/common-inferior.h: Rename include guard.
7874 * common/common-gdbthread.h: Rename include guard.
7875 * common/common-exceptions.h: Rename include guard.
7876 * common/common-defs.h: Rename include guard.
7877 * common/common-debug.h: Rename include guard.
7878 * common/cleanups.h: Rename include guard.
7879 * common/buffer.h: Rename include guard.
7880 * common/btrace-common.h: Rename include guard.
7881 * common/break-common.h: Rename include guard.
7882 * cli/cli-utils.h: Rename include guard.
7883 * cli/cli-style.h: Rename include guard.
7884 * cli/cli-setshow.h: Rename include guard.
7885 * cli/cli-script.h: Rename include guard.
7886 * cli/cli-interp.h: Rename include guard.
7887 * cli/cli-decode.h: Rename include guard.
7888 * cli/cli-cmds.h: Rename include guard.
7889 * charset-list.h: Add include guard.
7890 * buildsym-legacy.h: Rename include guard.
7891 * bfin-tdep.h: Add include guard.
7892 * ax.h: Rename include guard.
7893 * arm-linux-tdep.h: Add include guard.
7894 * arm-fbsd-tdep.h: Add include guard.
7895 * arch/xtensa.h: Rename include guard.
7896 * arch/tic6x.h: Add include guard.
7897 * arch/i386.h: Add include guard.
7898 * arch/arm.h: Rename include guard.
7899 * arch/arm-linux.h: Rename include guard.
7900 * arch/arm-get-next-pcs.h: Rename include guard.
7901 * arch/amd64.h: Add include guard.
7902 * arch/aarch64-insn.h: Rename include guard.
7903 * arch-utils.h: Rename include guard.
7904 * annotate.h: Add include guard.
7905 * amd64-darwin-tdep.h: Rename include guard.
7906 * aarch64-linux-tdep.h: Add include guard.
7907 * aarch64-fbsd-tdep.h: Add include guard.
7908 * aarch32-linux-nat.h: Add include guard.
7909
ab9268d2
PW
79102019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7911
7912 * macrotab.c (macro_define_internal): New function that
7913 factorizes macro_define_object_internal and macro_define_function
7914 code.
7915 (macro_define_object_internal): Use macro_define_internal.
7916 (macro_define_function): Likewise.
7917
bb0da2b4
PW
79182019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7919
7920 * macrocmd.c (extract_identifier): Return
7921 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
7922 callers.
7923
424eb552
JB
79242019-02-06 John Baldwin <jhb@FreeBSD.org>
7925
7926 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
7927
1688cb29
TT
79282019-02-05 Tom Tromey <tom@tromey.com>
7929
7930 * target.c (target_stack::unpush): Move assertion earlier.
7931
b5eba2d8
TT
79322019-01-30 Tom Tromey <tom@tromey.com>
7933
7934 PR python/23615:
7935 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
7936 (gdbpy_parse_and_eval): Likewise.
7937 * python/python-internal.h (gdbpy_allow_threads): New class.
7938
7054e2ff
JB
79392019-01-28 John Baldwin <jhb@FreeBSD.org>
7940
7941 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
7942 (aarch64_fbsd_fpregmap): Move earlier.
7943 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
7944 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7945 instead of individual calls to trad_frame_set_reg_addr.
7946 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
7947 earlier.
7948 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
7949 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7950 instead of individual calls to trad_frame_set_reg_addr.
7951
36c25ffa
AH
79522019-01-28 Alan Hayward <alan.hayward@arm.com>
7953
7954 * CONTRIBUTE: Replace contribution list with wiki link.
7955
a0707f3c
TT
79562019-01-25 Tom Tromey <tom@tromey.com>
7957
7958 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
7959
0747795c
TT
79602019-01-25 Tom Tromey <tom@tromey.com>
7961
7962 * xtensa-linux-nat.c: Fix common/ includes.
7963 * xml-support.h: Fix common/ includes.
7964 * xml-support.c: Fix common/ includes.
7965 * x86-linux-nat.c: Fix common/ includes.
7966 * windows-nat.c: Fix common/ includes.
7967 * varobj.h: Fix common/ includes.
7968 * varobj.c: Fix common/ includes.
7969 * value.c: Fix common/ includes.
7970 * valops.c: Fix common/ includes.
7971 * utils.c: Fix common/ includes.
7972 * unittests/xml-utils-selftests.c: Fix common/ includes.
7973 * unittests/utils-selftests.c: Fix common/ includes.
7974 * unittests/unpack-selftests.c: Fix common/ includes.
7975 * unittests/tracepoint-selftests.c: Fix common/ includes.
7976 * unittests/style-selftests.c: Fix common/ includes.
7977 * unittests/string_view-selftests.c: Fix common/ includes.
7978 * unittests/scoped_restore-selftests.c: Fix common/ includes.
7979 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
7980 * unittests/scoped_fd-selftests.c: Fix common/ includes.
7981 * unittests/rsp-low-selftests.c: Fix common/ includes.
7982 * unittests/parse-connection-spec-selftests.c: Fix common/
7983 includes.
7984 * unittests/optional-selftests.c: Fix common/ includes.
7985 * unittests/offset-type-selftests.c: Fix common/ includes.
7986 * unittests/observable-selftests.c: Fix common/ includes.
7987 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
7988 * unittests/memrange-selftests.c: Fix common/ includes.
7989 * unittests/memory-map-selftests.c: Fix common/ includes.
7990 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
7991 * unittests/function-view-selftests.c: Fix common/ includes.
7992 * unittests/environ-selftests.c: Fix common/ includes.
7993 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
7994 * unittests/common-utils-selftests.c: Fix common/ includes.
7995 * unittests/cli-utils-selftests.c: Fix common/ includes.
7996 * unittests/array-view-selftests.c: Fix common/ includes.
7997 * ui-file.c: Fix common/ includes.
7998 * tui/tui-io.c: Fix common/ includes.
7999 * tracepoint.h: Fix common/ includes.
8000 * tracepoint.c: Fix common/ includes.
8001 * tracefile-tfile.c: Fix common/ includes.
8002 * top.h: Fix common/ includes.
8003 * top.c: Fix common/ includes.
8004 * thread.c: Fix common/ includes.
8005 * target/waitstatus.h: Fix common/ includes.
8006 * target/waitstatus.c: Fix common/ includes.
8007 * target.h: Fix common/ includes.
8008 * target.c: Fix common/ includes.
8009 * target-memory.c: Fix common/ includes.
8010 * target-descriptions.c: Fix common/ includes.
8011 * symtab.h: Fix common/ includes.
8012 * symfile.c: Fix common/ includes.
8013 * stap-probe.c: Fix common/ includes.
8014 * spu-linux-nat.c: Fix common/ includes.
8015 * sparc-nat.c: Fix common/ includes.
8016 * source.c: Fix common/ includes.
8017 * solib.c: Fix common/ includes.
8018 * solib-target.c: Fix common/ includes.
8019 * ser-unix.c: Fix common/ includes.
8020 * ser-tcp.c: Fix common/ includes.
8021 * ser-pipe.c: Fix common/ includes.
8022 * ser-base.c: Fix common/ includes.
8023 * selftest-arch.c: Fix common/ includes.
8024 * s12z-tdep.c: Fix common/ includes.
8025 * rust-exp.y: Fix common/ includes.
8026 * rs6000-aix-tdep.c: Fix common/ includes.
8027 * riscv-tdep.c: Fix common/ includes.
8028 * remote.c: Fix common/ includes.
8029 * remote-notif.h: Fix common/ includes.
8030 * remote-fileio.h: Fix common/ includes.
8031 * remote-fileio.c: Fix common/ includes.
8032 * regcache.h: Fix common/ includes.
8033 * regcache.c: Fix common/ includes.
8034 * record-btrace.c: Fix common/ includes.
8035 * python/python.c: Fix common/ includes.
8036 * python/py-type.c: Fix common/ includes.
8037 * python/py-inferior.c: Fix common/ includes.
8038 * progspace.h: Fix common/ includes.
8039 * producer.c: Fix common/ includes.
8040 * procfs.c: Fix common/ includes.
8041 * proc-api.c: Fix common/ includes.
8042 * printcmd.c: Fix common/ includes.
8043 * ppc-linux-nat.c: Fix common/ includes.
8044 * parser-defs.h: Fix common/ includes.
8045 * osdata.c: Fix common/ includes.
8046 * obsd-nat.c: Fix common/ includes.
8047 * nat/x86-linux.c: Fix common/ includes.
8048 * nat/x86-linux-dregs.c: Fix common/ includes.
8049 * nat/x86-dregs.h: Fix common/ includes.
8050 * nat/x86-dregs.c: Fix common/ includes.
8051 * nat/ppc-linux.c: Fix common/ includes.
8052 * nat/mips-linux-watch.h: Fix common/ includes.
8053 * nat/mips-linux-watch.c: Fix common/ includes.
8054 * nat/linux-waitpid.c: Fix common/ includes.
8055 * nat/linux-ptrace.h: Fix common/ includes.
8056 * nat/linux-ptrace.c: Fix common/ includes.
8057 * nat/linux-procfs.c: Fix common/ includes.
8058 * nat/linux-personality.c: Fix common/ includes.
8059 * nat/linux-osdata.c: Fix common/ includes.
8060 * nat/linux-namespaces.c: Fix common/ includes.
8061 * nat/linux-btrace.h: Fix common/ includes.
8062 * nat/linux-btrace.c: Fix common/ includes.
8063 * nat/fork-inferior.c: Fix common/ includes.
8064 * nat/amd64-linux-siginfo.c: Fix common/ includes.
8065 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
8066 * nat/aarch64-linux.c: Fix common/ includes.
8067 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
8068 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
8069 * namespace.h: Fix common/ includes.
8070 * mips-linux-tdep.c: Fix common/ includes.
8071 * minsyms.c: Fix common/ includes.
8072 * mi/mi-parse.h: Fix common/ includes.
8073 * mi/mi-main.c: Fix common/ includes.
8074 * mi/mi-cmd-env.c: Fix common/ includes.
8075 * memrange.h: Fix common/ includes.
8076 * memattr.c: Fix common/ includes.
8077 * maint.h: Fix common/ includes.
8078 * maint.c: Fix common/ includes.
8079 * main.c: Fix common/ includes.
8080 * machoread.c: Fix common/ includes.
8081 * location.c: Fix common/ includes.
8082 * linux-thread-db.c: Fix common/ includes.
8083 * linux-nat.c: Fix common/ includes.
8084 * linux-fork.c: Fix common/ includes.
8085 * inline-frame.c: Fix common/ includes.
8086 * infrun.c: Fix common/ includes.
8087 * inflow.c: Fix common/ includes.
8088 * inferior.h: Fix common/ includes.
8089 * inferior.c: Fix common/ includes.
8090 * infcmd.c: Fix common/ includes.
8091 * inf-ptrace.c: Fix common/ includes.
8092 * inf-child.c: Fix common/ includes.
8093 * ia64-linux-nat.c: Fix common/ includes.
8094 * i387-tdep.c: Fix common/ includes.
8095 * i386-tdep.c: Fix common/ includes.
8096 * i386-linux-tdep.c: Fix common/ includes.
8097 * i386-linux-nat.c: Fix common/ includes.
8098 * i386-go32-tdep.c: Fix common/ includes.
8099 * i386-fbsd-tdep.c: Fix common/ includes.
8100 * i386-fbsd-nat.c: Fix common/ includes.
8101 * guile/scm-type.c: Fix common/ includes.
8102 * guile/guile.c: Fix common/ includes.
8103 * go32-nat.c: Fix common/ includes.
8104 * gnu-nat.c: Fix common/ includes.
8105 * gdbthread.h: Fix common/ includes.
8106 * gdbarch-selftests.c: Fix common/ includes.
8107 * gdb_usleep.c: Fix common/ includes.
8108 * gdb_select.h: Fix common/ includes.
8109 * gdb_bfd.c: Fix common/ includes.
8110 * gcore.c: Fix common/ includes.
8111 * fork-child.c: Fix common/ includes.
8112 * findvar.c: Fix common/ includes.
8113 * fbsd-nat.c: Fix common/ includes.
8114 * event-top.c: Fix common/ includes.
8115 * event-loop.c: Fix common/ includes.
8116 * dwarf2read.c: Fix common/ includes.
8117 * dwarf2loc.c: Fix common/ includes.
8118 * dwarf2-frame.c: Fix common/ includes.
8119 * dwarf-index-cache.c: Fix common/ includes.
8120 * dtrace-probe.c: Fix common/ includes.
8121 * disasm-selftests.c: Fix common/ includes.
8122 * defs.h: Fix common/ includes.
8123 * csky-tdep.c: Fix common/ includes.
8124 * cp-valprint.c: Fix common/ includes.
8125 * cp-support.h: Fix common/ includes.
8126 * cp-support.c: Fix common/ includes.
8127 * corelow.c: Fix common/ includes.
8128 * completer.h: Fix common/ includes.
8129 * completer.c: Fix common/ includes.
8130 * compile/compile.c: Fix common/ includes.
8131 * compile/compile-loc2c.c: Fix common/ includes.
8132 * compile/compile-cplus-types.c: Fix common/ includes.
8133 * compile/compile-cplus-symbols.c: Fix common/ includes.
8134 * command.h: Fix common/ includes.
8135 * cli/cli-dump.c: Fix common/ includes.
8136 * cli/cli-cmds.c: Fix common/ includes.
8137 * charset.c: Fix common/ includes.
8138 * build-id.c: Fix common/ includes.
8139 * btrace.h: Fix common/ includes.
8140 * btrace.c: Fix common/ includes.
8141 * breakpoint.h: Fix common/ includes.
8142 * breakpoint.c: Fix common/ includes.
8143 * ax.h:
8144 (enum agent_op): Fix common/ includes.
8145 * ax-general.c (struct aop_map): Fix common/ includes.
8146 * ax-gdb.c: Fix common/ includes.
8147 * auxv.c: Fix common/ includes.
8148 * auto-load.c: Fix common/ includes.
8149 * arm-tdep.c: Fix common/ includes.
8150 * arch/riscv.c: Fix common/ includes.
8151 * arch/ppc-linux-common.c: Fix common/ includes.
8152 * arch/i386.c: Fix common/ includes.
8153 * arch/arm.c: Fix common/ includes.
8154 * arch/arm-linux.c: Fix common/ includes.
8155 * arch/arm-get-next-pcs.c: Fix common/ includes.
8156 * arch/amd64.c: Fix common/ includes.
8157 * arch/aarch64.c: Fix common/ includes.
8158 * arch/aarch64-insn.c: Fix common/ includes.
8159 * arch-utils.c: Fix common/ includes.
8160 * amd64-windows-tdep.c: Fix common/ includes.
8161 * amd64-tdep.c: Fix common/ includes.
8162 * amd64-sol2-tdep.c: Fix common/ includes.
8163 * amd64-obsd-tdep.c: Fix common/ includes.
8164 * amd64-nbsd-tdep.c: Fix common/ includes.
8165 * amd64-linux-tdep.c: Fix common/ includes.
8166 * amd64-linux-nat.c: Fix common/ includes.
8167 * amd64-fbsd-tdep.c: Fix common/ includes.
8168 * amd64-fbsd-nat.c: Fix common/ includes.
8169 * amd64-dicos-tdep.c: Fix common/ includes.
8170 * amd64-darwin-tdep.c: Fix common/ includes.
8171 * agent.c: Fix common/ includes.
8172 * ada-lang.h: Fix common/ includes.
8173 * ada-lang.c: Fix common/ includes.
8174 * aarch64-tdep.c: Fix common/ includes.
8175
2f5c153e
TT
81762019-01-25 Tom Tromey <tom@tromey.com>
8177
8178 * common/create-version.sh: Use common/version.h.
8179
adc6a863
PA
81802019-01-24 Pedro Alves <palves@redhat.com>
8181
8182 * infrun.c (signal_stop, signal_print, signal_program)
8183 (signal_catch, signal_pass): Now arrays instead of pointers.
8184 (update_signals_program_target, do_target_resume)
8185 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
8186 * linux-nat.c (linux_nat_target::pass_signals)
8187 (linux_nat_target::create_inferior, linux_nat_target::attach):
8188 Adjust.
8189 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
8190 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
8191 * procfs.c (procfs_target::pass_signals): Adjust.
8192 * record-full.c (record_full_target::resume): Adjust.
8193 * remote.c (remote_target::pass_signals)
8194 (remote_target::program_signals): Adjust.
8195 * target-debug.h (target_debug_print_signals): Now takes a
8196 gdb::array_view as parameter. Adjust.
8197 * target.h (target_ops) <pass_signals, program_signals>: Replace
8198 pointer and length parameters with gdb::array_view.
8199 (target_pass_signals, target_program_signals): Likewise.
8200 * target-delegates.c: Regenerate.
8201
3046d67a
PA
82022019-01-24 Pedro Alves <palves@redhat.com>
8203
8204 * common/forward-scope-exit.h
8205 (forward_scope_exit::forward_scope_exit): Pass arguments to
8206 m_bind_function directly, instead of creating a std::bind and
8207 copying that.
8208
353229bf
AH
82092019-01-24 Alan Hayward <alan.hayward@arm.com>
8210
8211 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8212 for static members.
8213 (pass_in_v_vfp_candidate): Likewise.
8214
311dc83a
TT
82152019-01-23 Tom Tromey <tom@tromey.com>
8216 Pedro Alves <palves@redhat.com>
8217
8218 * regcache.c (class regcache_invalidator): Remove.
8219 (regcache::raw_write): Use make_scope_exit.
8220
296bd123
TT
82212019-01-23 Tom Tromey <tom@tromey.com>
8222
8223 * ui-out.h (class ui_out_emit_type): Update comment.
8224
979a0d13
TT
82252019-01-23 Tom Tromey <tom@tromey.com>
8226
8227 * infrun.c (fetch_inferior_event): Update comment.
8228
d238133d
TT
82292019-01-23 Tom Tromey <tom@tromey.com>
8230 Pedro Alves <palves@redhat.com>
8231
8232 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
8233 parameter.
8234 (fetch_inferior_event): Use SCOPE_EXIT.
8235
8236
9885e6bb
TT
82372019-01-23 Tom Tromey <tom@tromey.com>
8238 Pedro Alves <palves@redhat.com>
8239
8240 * infrun.c (disable_thread_events): Delete.
8241 (stop_all_threads): Use SCOPE_EXIT.
8242
286526c1
TT
82432019-01-23 Tom Tromey <tom@tromey.com>
8244 Pedro Alves <palves@redhat.com>
8245
8246 * symfile.c: Include forward-scope-exit.h.
8247 (clear_symtab_users_cleanup): Replace forward declaration with
8248 a FORWARD_SCOPE_EXIT.
8249 (syms_from_objfile_1): Use the forward_scope_exit and
8250 gdb::optional instead of cleanup_function.
8251 (reread_symbols): Use the forward_scope_exit instead of
8252 cleanup_function.
8253 (clear_symtab_users_cleanup): Remove function.
8254
1db93f14
TT
82552019-01-23 Tom Tromey <tom@tromey.com>
8256 Pedro Alves <palves@redhat.com>
8257
8258 * linux-nat.c: Include scope-exit.h.
8259 (cleanup_target_stop): Remove.
8260 (linux_nat_target::static_tracepoint_markers_by_strid): Use
8261 SCOPE_EXIT.
8262
2cc83d1e
TT
82632019-01-23 Tom Tromey <tom@tromey.com>
8264 Pedro Alves <palves@redhat.com>
8265
8266 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
8267 (call_function_by_hand_dummy): Use SCOPE_EXIT.
8268
694c6bf5
TT
82692019-01-23 Tom Tromey <tom@tromey.com>
8270 Andrew Burgess <andrew.burgess@embecosm.com>
8271 Pedro Alves <palves@redhat.com>
8272
8273 * infrun.c (fetch_inferior_event): Use scope_exit.
8274 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
8275 * top.c (execute_command): Use scope_exit.
8276 * breakpoint.c (bpstat_do_actions): Use scope_exit.
8277 * utils.c (do_bpstat_clear_actions_cleanup)
8278 (make_bpstat_clear_actions_cleanup): Remove.
8279
4c41382a
TT
82802019-01-23 Tom Tromey <tom@tromey.com>
8281 Pedro Alves <palves@redhat.com>
8282
8283 * infrun.c: Include "common/scope-exit.h"
8284 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
8285 (wait_for_inferior): Use SCOPE_EXIT.
8286 (fetch_inferior_event): Use scope_exit.
8287
89f8fb50
TT
82882019-01-23 Tom Tromey <tom@tromey.com>
8289 Pedro Alves <palves@redhat.com>
8290
8291 * breakpoint.c (create_breakpoint): Remove cleanup.
8292
5419bdae
TT
82932019-01-23 Tom Tromey <tom@tromey.com>
8294 Andrew Burgess <andrew.burgess@embecosm.com>
8295 Pedro Alves <palves@redhat.com>
8296
e587ef42
PA
82972019-01-23 Pedro Alves <palves@redhat.com>
8298
8299 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
8300
77f0e74c
PA
83012019-01-23 Pedro Alves <palves@redhat.com>
8302 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * gdbthread.h: Include "common/forward-scope-exit.h".
8305 (scoped_finish_thread_state): Redefine custom class in terms of
8306 forward_scope_exit.
8307
5b9b3e53
PA
83082019-01-23 Pedro Alves <palves@redhat.com>
8309 Andrew Burgess <andrew.burgess@embecosm.com>
8310
8311 * common/forward-scope-exit.h: New file.
8312
54b65c9b
PA
83132019-01-23 Pedro Alves <palves@redhat.com>
8314 Andrew Burgess <andrew.burgess@embecosm.com>
8315 Tom Tromey <tom@tromey.com>
8316
8317 * common/scope-exit.h: New file.
8318
cf08fb29
PA
83192019-01-23 Pedro Alves <palves@redhat.com>
8320
8321 * common/preprocessor.h (ESC): Rename to ...
8322 (ESC_PARENS): ... this.
8323 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
8324 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
8325
ae73e2e2
TT
83262019-01-23 Tom Tromey <tom@tromey.com>
8327
8328 * language.h (class scoped_switch_to_sym_language_if_auto):
8329 Initialize m_lang in both cases.
8330
6594e122
AH
83312019-01-23 Alan Hayward <alan.hayward@arm.com>
8332
8333 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
8334 with XCNEW.
8335
a7c9855d
TT
83362019-01-22 Tom Tromey <tom@tromey.com>
8337
8338 * corelow.c: Do not include sys/file.h.
8339
93cc1d53
TT
83402019-01-22 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-wingeneral.h: Include gdb_curses.h.
8343
38561778
TT
83442019-01-22 Tom Tromey <tom@tromey.com>
8345
8346 * source-cache.h (class source_cache) <get_source_lines,
8347 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
8348
37b3ab5b
TT
83492019-01-22 Tom Tromey <tom@tromey.com>
8350
8351 * remote-fileio.h (struct remote_target): Declare.
8352
3fabc016
TT
83532019-01-22 Tom Tromey <tom@tromey.com>
8354
8355 * python/py-arch.c: Do not include py-ref.h.
8356 * python/py-bpevent.c: Do not include py-ref.h.
8357 * python/py-cmd.c: Do not include py-ref.h.
8358 * python/py-continueevent.c: Do not include py-ref.h.
8359 * python/py-event.h: Do not include py-ref.h.
8360 * python/py-evtregistry.c: Do not include py-ref.h.
8361 * python/py-finishbreakpoint.c: Do not include py-ref.h.
8362 * python/py-frame.c: Do not include py-ref.h.
8363 * python/py-framefilter.c: Do not include py-ref.h.
8364 * python/py-function.c: Do not include py-ref.h.
8365 * python/py-infevents.c: Do not include py-ref.h.
8366 * python/py-linetable.c: Do not include py-ref.h.
8367 * python/py-objfile.c: Do not include py-ref.h.
8368 * python/py-param.c: Do not include py-ref.h.
8369 * python/py-prettyprint.c: Do not include py-ref.h.
8370 * python/py-progspace.c: Do not include py-ref.h.
8371 * python/py-symbol.c: Do not include py-ref.h.
8372 * python/py-symtab.c: Do not include py-ref.h.
8373 * python/py-type.c: Do not include py-ref.h.
8374 * python/py-unwind.c: Do not include py-ref.h.
8375 * python/py-utils.c: Do not include py-ref.h.
8376 * python/py-value.c: Do not include py-ref.h.
8377 * python/py-varobj.c: Do not include py-ref.h.
8378 * python/py-xmethods.c: Do not include py-ref.h.
8379 * python/python.c: Do not include py-ref.h.
8380 * varobj.c: Do not include py-ref.h.
8381
6b4d7774
TT
83822019-01-22 Tom Tromey <tom@tromey.com>
8383
8384 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
8385 keyword for bcache.
8386
7af7e9b5
TT
83872019-01-22 Tom Tromey <tom@tromey.com>
8388
8389 * compile/compile-cplus-types.c: Remove a comment by #include.
8390
951d1049
TT
83912019-01-22 Tom Tromey <tom@tromey.com>
8392
8393 * compile/gcc-c-plugin.h: Include compile-internal.h.
8394
d65d5705
TT
83952019-01-22 Tom Tromey <tom@tromey.com>
8396
8397 * stabsread.c (EXTERN): Do not define.
8398 (symnum, next_symbol_text_func, processing_gcc_compilation)
8399 (within_function, global_sym_chain, global_stabs)
8400 (previous_stab_code, this_object_header_files)
8401 (n_this_object_header_files)
8402 (n_allocated_this_object_header_files): Define.
8403 * stabsread.h (EXTERN): Never define. Use "extern".
8404
b6fb1ee5
PW
84052019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8406
8407 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
8408 history_value.
8409
be6d4f74
TT
84102019-01-21 Tom Tromey <tom@tromey.com>
8411
8412 * ui-out.c: Fix includes.
8413 * tui/tui-source.c: Fix includes.
8414 * target.c: Fix includes.
8415 * remote.c: Fix includes.
8416 * regcache.c: Fix includes.
8417 * python/py-block.c: Fix includes.
8418 * printcmd.c: Fix includes.
8419 * or1k-tdep.c: Fix includes.
8420 * mi/mi-main.c: Fix includes.
8421 * m32r-tdep.c: Fix includes.
8422 * csky-tdep.c: Fix includes.
8423 * compile/compile-cplus-types.c: Fix includes.
8424 * cli/cli-interp.c: Fix includes.
8425
73021deb
AH
84262019-01-21 Alan Hayward <alan.hayward@arm.com>
8427
8428 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8429 for padding.
8430
7932255d
TT
84312019-01-16 Tom Tromey <tom@tromey.com>
8432
8433 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
8434 earlier.
8435 (struct objfile) <msymbols_range>: Move from top level.
8436 <msymbols>: New method.
8437 (class objfile_msymbols): Remove.
8438 * symtab.c (default_collect_symbol_completion_matches_break_on):
8439 Update.
8440 * symmisc.c (dump_msymbols): Update.
8441 * stabsread.c (scan_file_globals): Update.
8442 * objc-lang.c (info_selectors_command, info_classes_command)
8443 (find_methods): Update.
8444 * minsyms.c (find_solib_trampoline_target): Update.
8445 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
8446 * coffread.c (coff_symfile_read): Update.
8447 * ada-lang.c (ada_lookup_simple_minsym)
8448 (ada_collect_symbol_completion_matches): Update.
8449
604b1bfb
TT
84502019-01-16 Tom Tromey <tom@tromey.com>
8451
8452 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
8453 type. Remove no-argument constructor.
8454 <iterator::operator++>: Simplify.
8455 <begin>: Update.
8456 <end>: Use minimal_symbol_count.
8457
f252c6d5
TT
84582019-01-16 Tom Tromey <tom@tromey.com>
8459
8460 * objfiles.h (struct objfile) <psymtabs>: New method.
8461 (class objfile_psymtabs): Remove.
8462 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
8463 typedef.
8464 <range>: New method.
8465 (require_partial_symbols): Change return type.
8466 * psymtab.c (require_partial_symbols)
8467 (psym_expand_symtabs_matching): Update.
8468 * mdebugread.c (parse_partial_symbols): Update.
8469 * dbxread.c (dbx_end_psymtab): Update.
8470
b669c953
TT
84712019-01-15 Tom Tromey <tom@tromey.com>
8472
8473 * symtab.c (lookup_objfile_from_block)
8474 (lookup_symbol_in_objfile_symtabs)
8475 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
8476 (find_line_symtab, info_sources_command)
8477 (default_collect_symbol_completion_matches_break_on)
8478 (make_source_files_completion_list): Update.
8479 * symmisc.c (print_objfile_statistics, dump_objfile)
8480 (maintenance_print_symbols, maintenance_info_symtabs)
8481 (maintenance_check_symtabs, maintenance_info_line_tables):
8482 Update.
8483 * source.c (select_source_symtab)
8484 (forget_cached_source_info_for_objfile): Update.
8485 * objfiles.h (class objfile_compunits): Remove.
8486 (struct objfile) <compunits_range>: New typedef.
8487 (compunits): New method.
8488 * objfiles.c (objfile_relocate1): Update.
8489 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8490 * maint.c (count_symtabs_and_blocks): Update.
8491 * linespec.c (iterate_over_all_matching_symtabs): Update.
8492 * cp-support.c (add_symbol_overload_list_qualified): Update.
8493 * coffread.c (coff_symtab_read): Update.
8494 * ada-lang.c (add_nonlocal_symbols)
8495 (ada_collect_symbol_completion_matches)
8496 (ada_add_global_exceptions): Update.
8497
7e955d83
TT
84982019-01-15 Tom Tromey <tom@tromey.com>
8499
8500 * progspace.h (program_space) <objfiles_safe_range>: New
8501 typedef.
8502 <objfiles_safe>: New method.
8503 * objfiles.h (class all_objfiles_safe): Remove.
8504 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
8505 * jit.c (jit_inferior_exit_hook): Update.
8506
2030c079
TT
85072019-01-17 Tom Tromey <tom@tromey.com>
8508
8509 * progspace.h (program_space) <objfiles_range>: New typedef.
8510 <objfiles>: New method.
8511 <objfiles_head>: Rename from objfiles.
8512 (object_files): Update.
8513 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
8514 * guile/scm-pretty-print.c
8515 (ppscm_find_pretty_printer_from_objfiles): Update.
8516 * guile/scm-objfile.c (gdbscm_objfiles): Update.
8517 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
8518 Update.
8519 * python/py-progspace.c (pspy_get_objfiles): Update.
8520 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8521 Update.
8522 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8523 (objfpy_lookup_objfile_by_build_id): Update.
8524 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8525 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8526 Update.
8527 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8528 (expand_symtab_containing_pc, lookup_objfile_from_block)
8529 (lookup_static_symbol, basic_lookup_transparent_type)
8530 (find_pc_sect_compunit_symtab, find_symbol_at_address)
8531 (find_line_symtab, info_sources_command)
8532 (default_collect_symbol_completion_matches_break_on)
8533 (make_source_files_completion_list, find_main_name): Update.
8534 * symmisc.c (print_symbol_bcache_statistics)
8535 (print_objfile_statistics, maintenance_print_symbols)
8536 (maintenance_print_msymbols, maintenance_print_objfiles)
8537 (maintenance_info_symtabs, maintenance_check_symtabs)
8538 (maintenance_expand_symtabs, maintenance_info_line_tables):
8539 Update.
8540 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
8541 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
8542 (map_overlay_command, unmap_overlay_command)
8543 (simple_overlay_update, expand_symtabs_matching)
8544 (map_symbol_filenames): Update.
8545 * symfile-debug.c (set_debug_symfile): Update.
8546 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
8547 Update.
8548 * source.c (select_source_symtab, forget_cached_source_info):
8549 Update.
8550 * solib.c (solib_read_symbols): Update.
8551 * solib-spu.c (append_ocl_sos): Update.
8552 * psymtab.c (maintenance_print_psymbols)
8553 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
8554 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
8555 * printcmd.c (info_symbol_command): Update.
8556 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
8557 Update.
8558 * objfiles.h (class all_objfiles): Remove.
8559 * objfiles.c (have_partial_symbols, have_full_symbols)
8560 (have_minimal_symbols, qsort_cmp, update_section_map)
8561 (shared_objfile_contains_address_p)
8562 (default_iterate_over_objfiles_in_search_order): Update.
8563 * objc-lang.c (info_selectors_command, info_classes_command)
8564 (find_methods): Update.
8565 * minsyms.c (find_solib_trampoline_target): Update.
8566 * maint.c (maintenance_info_sections)
8567 (maintenance_translate_address, count_symtabs_and_blocks):
8568 Update.
8569 * main.c (captured_main_1): Update.
8570 * linux-thread-db.c (try_thread_db_load_from_pdir)
8571 (has_libpthread): Update.
8572 * linespec.c (iterate_over_all_matching_symtabs)
8573 (search_minsyms_for_name): Update.
8574 * jit.c (jit_find_objf_with_entry_addr): Update.
8575 * hppa-tdep.c (find_unwind_entry)
8576 (hppa_lookup_stub_minimal_symbol): Update.
8577 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
8578 Update.
8579 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8580 (elf_gnu_ifunc_resolve_by_got): Update.
8581 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
8582 * dwarf-index-write.c (save_gdb_index_command): Update.
8583 * cp-support.c (add_symbol_overload_list_qualified): Update.
8584 * breakpoint.c (create_overlay_event_breakpoint)
8585 (create_longjmp_master_breakpoint)
8586 (create_std_terminate_master_breakpoint)
8587 (create_exception_master_breakpoint): Update.
8588 * blockframe.c (find_pc_partial_function): Update.
8589 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
8590 (ada_collect_symbol_completion_matches)
8591 (ada_add_global_exceptions): Update.
8592
776489e0
TT
85932019-01-17 Tom Tromey <tom@tromey.com>
8594
8595 * solib-target.c (lm_info_target_p): Remove typedef. Don't
8596 declare VEC.
8597 (solib_target_parse_libraries): Change return type.
8598 (library_list_start_segment, library_list_start_section)
8599 (library_list_end_library, library_list_start_library); Update.
8600 (solib_target_free_library_list): Remove.
8601 (solib_target_parse_libraries): Remove cleanup. Change return
8602 type.
8603 (solib_target_current_sos): Update.
8604
6471e7d2
TT
86052019-01-17 Tom Tromey <tromey@bapiya>
8606
8607 * valprint.c: Replace "the the" with "the".
8608 * symtab.c: Replace "the the" with "the".
8609 * solib.c: Replace "the the" with "the".
8610 * solib-dsbt.c: Replace "the the" with "the".
8611 * linespec.c: Replace "the the" with "the".
8612 * dwarf2loc.h: Replace "the the" with "the".
8613 * amd64-windows-tdep.c: Replace "the the" with "the".
8614 * aarch64-tdep.c: Replace "the the" with "the".
8615
c24bdb02
KS
86162019-01-16 Keith Seitz <keiths@redhat.com>
8617
8618 PR gdb/23773
8619 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
8620 <builder>: Rename to ..
8621 <m_builder>: ... this and make private.
8622 (dwarf2_cu::get_builder): New method. Change all users of
8623 `builder' to use this method.
8624 (dwarf2_start_symtab): Move to ...
8625 (dwarf2_cu::start_symtab): ... here. Update all callers
8626 (setup_type_unit_groups): Move to ...
8627 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
8628 callers.
8629 (dwarf2_cu::reset_builder): New method.
8630 (process_full_compunit, process_full_type_unit): Use
8631 dwarf2_cu::reset_builder.
8632 (follow_die_offset): Record the ancestor CU if it is different
8633 from the followed DIE's CU.
8634 (follow_die_sig_1): Likewise.
8635
8d64371b
TT
86362019-01-15 Tom Tromey <tom@tromey.com>
8637
8638 * remote.c (class remote_state) <buf>: Now a char_vector.
8639 <buf_size>: Remove.
8640 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
8641 parameter.
8642 (remote_target::getpkt_or_notif_sane_1)
8643 (remote_target::getpkt_sane)
8644 (remote_target::getpkt_or_notif_sane): Likewise.
8645 (class remote_target) <putpkt>: New overload.
8646 (remote_target::read_frame): Change type of "buf_p". Remove
8647 sizeof_p parameter.
8648 (packet_ok): New overload.
8649 (packet_check_result): New overload.
8650 Update all uses.
8651
bb277751
TT
86522019-01-14 Tom Tromey <tom@tromey.com>
8653
8654 * remote-notif.c (handle_notification, remote_notif_ack)
8655 (remote_notif_parse): Make "buf" const.
8656 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
8657 const.
8658 (remote_notif_parse, remote_notif_ack, handle_notification):
8659 Likewise.
8660 * remote.c (remote_notif_stop_parse): Make "buf" const.
8661 (remote_target::remote_parse_stop_reply): Make "buf" const.
8662 (remote_notif_stop_ack): Make "buf" const.
8663
05be00a8
TT
86642019-01-14 Tom Tromey <tom@tromey.com>
8665
8666 * remote.c (remote_console_output): Make parameter const.
8667
491adeca
TT
86682019-01-14 Tom Tromey <tom@tromey.com>
8669
8670 * target-debug.h (target_debug_print_signals): Constify.
8671 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
8672 * procfs.c (procfs_target::pass_signals): Update.
8673 * linux-nat.c (linux_nat_target::pass_signals): Update.
8674 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
8675 * target-delegates.c: Rebuild.
8676 * remote.c (remote_target::program_signals): Update.
8677 (remote_target::pass_signals): Update.
8678 * target.c (target_pass_signals): Constify argument.
8679 (target_program_signals): Likewise.
8680 * target.h (struct target_ops) <pass_signals, program_signals>:
8681 Constify argument.
8682 (target_pass_signals, target_program_signals): Constify argument.
8683
bbd94648
TT
86842019-01-14 Tom Tromey <tom@tromey.com>
8685
8686 PR tui/28819:
8687 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
8688
6f072a10
PFC
86892019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8690
8691 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
8692 field.
8693 * rs6000-tdep.c: Include reggroups.h.
8694 (IS_V_ALIAS_PSEUDOREG): Define.
8695 (rs6000_register_name): Return names for the "vX" aliases.
8696 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
8697 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
8698 aliases. Call default_register_reggroup_p for all other
8699 pseudo-registers.
8700 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
8701 New functions.
8702 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
8703 Handle "vX" aliases.
8704 (v_alias_pseudo_register_collect): New function.
8705 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
8706 (rs6000_gdbarch_init): Initialize "vX" aliases as
8707 pseudo-registers. Restore registration of
8708 rs6000_pseudo_register_reggroup_p with
8709 set_tdesc_pseudo_register_reggroup_p.
8710
1a782351
MF
87112019-01-13 Max Filippov <jcmvbkbc@gmail.com>
8712
8713 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
8714 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
8715 set_gdbarch_num_pseudo_regs.
8716
d73cff18
PW
87172019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8718
8719 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
8720 Remove arg prefixname, add do_set and do_show.
8721 Add member functions set_list and show_list.
8722 * cli/cli-style.c (class cli_style_option): Update accordingly.
8723 (style_set_list): Move to file scope.
8724 (style_show_list): Likewise.
8725 (set_style): Call help_list.
8726 (show_style): Call cmd_show_list.
8727 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
8728 Update to use the new macro.
8729
60a90376
JB
87302019-10-12 Joel Brobecker <brobecker@adacore.com>
8731
8732 * ada-lang.c (_initialize_ada_language): Expand the help text
8733 for the "catch exception" command.
8734
9d7c67bf
PW
87352019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8736
8737 * symtab.c (matching_obj_sections): Initialize obj,
8738 declare it closer to its usage.
8739
7cf47dc4
TT
87402019-01-10 Tom Tromey <tom@tromey.com>
8741
8742 * thread-iter.h (inf_threads_iterator): Use next_iterator.
8743 (basic_inf_threads_range): Remove.
8744 (inf_threads_range, inf_non_exited_threads_range)
8745 (safe_inf_threads_range): Use next_adapter.
8746
d3cb6808
KS
87472019-01-10 Keith Seitz <keiths@redhat.com>
8748
8749 PR gdb/23712
8750 PR symtab/23010
8751 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
8752 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
8753
63a20375
KS
87542019-01-10 Keith Seitz <keiths@redhat.com>
8755
8756 PR gdb/23712
8757 PR symtab/23010
8758 * dictionary.c (pending_to_vector): Remove.
8759 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8760 Remove _1 suffix, replacing functions of the same name. Update
8761 all callers.
8762 (dict_create_hashed, dict_create_hashed_expandable)
8763 (dict_create_linear, dict_create_linear_expandable, dict_free)
8764 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
8765 Make functions static.
8766
b026f593
KS
87672019-01-10 Keith Seitz <keiths@redhat.com>
8768
8769 PR gdb/23712
8770 PR symtab/23010
8771 * dictionary.h (struct dictionary): Replace declaration with
8772 multidictionary.
8773 (dict_create_hashed, dict_create_hashed_expandable)
8774 (dict_create_linear, dict_create_linear_expandable)
8775 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
8776 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
8777 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
8778 taking multidictionary argument.
8779 [ALL_DICT_SYMBOLS]: Update for multidictionary.
8780 * block.h (struct block) <dict>: Change to multidictionary
8781 and rename `multidict'.
8782 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
8783 symmisc.c: Update all dictionary references to multidictionary.
8784
c7748ee9
KS
87852019-01-10 Keith Seitz <keiths@redhat.com>
8786
8787 PR gdb/23712
8788 PR symtab/23010
8789 * dictionary.c: Include unordered_map.
8790 (pending_to_vector): New function.
8791 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8792 Rewrite the non-"_1" functions to take vector instead
8793 of linked list.
8794 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
8795 "new" _1 versions of the same name.
8796 (multidictionary): Define.
8797 (std::hash<enum language): New definition.
8798 (collate_pending_symbols_by_language, mdict_create_hashed)
8799 (mdict_create_hashed_expandable, mdict_create_linear)
8800 (mdict_create_linear_expandable, mdict_free)
8801 (find_language_dictionary, create_new_language_dictionary)
8802 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
8803 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
8804 (mdict_size, mdict_empty): New functions.
8805 * dictionary.h (mdict_iterator): Define.
8806
67aa1f3c
PA
88072019-01-10 Pedro Alves <palves@redhat.com>
8808
8809 * breakpoint.c (read_uploaded_action)
8810 (create_tracepoint_from_upload): Adjust to use
8811 gdb::unique_xmalloc_ptr.
8812 * ctf.c (ctf_write_uploaded_tp):
8813 (SET_ARRAY_FIELD): Use emplace_back.
8814 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
8815 * tracefile-tfile.c (tfile_write_uploaded_tp):
8816 * tracepoint.c (parse_tracepoint_definition): Adjust to use
8817 gdb::unique_xmalloc_ptr.
8818 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
8819 at_string, cond_string, cmd_strings>: Replace char pointers
8820 with gdb::unique_xmalloc_ptr.
8821
2f667667
PA
88222019-01-10 Pedro Alves <palves@redhat.com>
8823
8824 * solib-target.c (library_list_start_library): Don't xstrdup name.
8825
36cb7237
PA
88262019-01-10 Pedro Alves <palves@redhat.com>
8827
8828 * mdebugread.c (parse_partial_symbols): Use
8829 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
8830
da584958
AB
88312019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * linux-fork.c (scoped_switch_fork_info)
8834 <~scoped_switch_fork_info>: Fix incorrect variable name.
8835
1ef8573c
AB
88362019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * linux-fork.c (scoped_switch_fork_info)
8839 <scoped_switch_fork_info>: Make explicit.
8840 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
8841
8d7bcccb
TT
88422019-01-10 Tom Tromey <tom@tromey.com>
8843
8844 * objfiles.h (objfile::reset_psymtabs): Update.
8845 * objfiles.c (objfile::objfile): Update.
8846 * psymtab.h (psymtab_storage::obstack): Update.
8847 (psymtab_storage::m_obstack): Use gdb::optional.
8848 (class psymtab_storage): Update comment. Remove objfile
8849 parameter.
8850 * psymtab.c (psymtab_storage::psymtab_storage): Update.
8851
b596a3c7
TT
88522019-01-10 Tom Tromey <tom@tromey.com>
8853
8854 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
8855 <free_psymtabs>: Now private.
8856 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
8857 (allocate_psymtab): Use new method.
8858
a9342b62
TT
88592019-01-10 Tom Tromey <tom@tromey.com>
8860
8861 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
8862 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
8863 * mdebugread.c (parse_partial_symbols): Use
8864 allocate_dependencies.
8865 * dwarf2read.c (dwarf2_create_include_psymtab): Use
8866 allocate_dependencies.
8867 (process_psymtab_comp_unit_reader)
8868 (build_type_psymtab_dependencies): Likewise.
8869 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
8870
5af70966
TT
88712019-01-10 Tom Tromey <tom@tromey.com>
8872
8873 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
8874 PSYMBOL_SET_LANGUAGE.
8875 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
8876
5923a04c
TT
88772019-01-10 Tom Tromey <tom@tromey.com>
8878
8879 * psymtab.h (psymtab_storage::obstack): New method.
8880 <m_obstack>: Rename from obstack; now private.
8881 * psymtab.c (psymtab_storage): Update.
8882 * dwarf2read.c (create_addrmap_from_index)
8883 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
8884 Update.
8885
6d6a12bf
TT
88862019-01-10 Tom Tromey <tom@tromey.com>
8887
8888 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
8889 * objfiles.h (objfile::reset_psymtabs): New method.
8890
d320c2b5
TT
88912019-01-10 Tom Tromey <tom@tromey.com>
8892
8893 * symmisc.c (print_symbol_bcache_statistics): Update.
8894 (print_objfile_statistics): Update.
8895 * symfile.c (reread_symbols): Update.
8896 * psymtab.h (class psymtab_storage): New.
8897 * psymtab.c (psymtab_storage): New constructor.
8898 (~psymtab_storage): New destructor.
8899 (require_partial_symbols): Update.
8900 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
8901 (find_pc_sect_psymtab, find_pc_sect_psymbol)
8902 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
8903 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
8904 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
8905 (start_psymtab_common, end_psymtab_common)
8906 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
8907 (allocate_psymtab): Update.
8908 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
8909 Update.
8910 (dump_psymtab_addrmap, maintenance_print_psymbols)
8911 (maintenance_check_psymtabs): Update.
8912 (class objfile_psymtabs): Move to objfiles.h.
8913 * psympriv.h (discard_psymtab): Now inline.
8914 (psymtab_discarder::psymtab_discarder): Update.
8915 (psymtab_discarder::~psymtab_discarder): Update.
8916 (ALL_OBJFILE_PSYMTABS): Rewrite.
8917 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
8918 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
8919 Remove fields.
8920 <partial_symtabs>: New field.
8921 (class objfile_psymtabs): Move from psymtab.h. Update.
8922 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
8923 psymbol_cache.
8924 (objfile::~objfile): Don't destroy psymbol_cache.
8925 * mdebugread.c (parse_partial_symbols): Update.
8926 * dwarf2read.c (create_addrmap_from_index)
8927 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8928 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
8929 (add_partial_subprogram, dwarf2_ranges_read): Update.
8930 * dwarf-index-write.c (write_address_map)
8931 (write_one_signatured_type, recursively_write_psymbols)
8932 (class debug_names, class debug_names, write_psymtabs_to_index):
8933 Update.
8934
1d94a5a3
TT
89352019-01-10 Tom Tromey <tom@tromey.com>
8936
8937 * symtab.h (SYMBOL_SET_NAMES): Update.
8938 (symbol_set_names): Update.
8939 (MSYMBOL_SET_NAMES): Update.
8940 * symtab.c (symbol_set_names): Change argument to be an
8941 objfile_per_bfd_storage.
8942 * psymtab.c (add_psymbol_to_bcache): Update.
8943 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
8944
0f14768a
TT
89452019-01-10 Tom Tromey <tom@tromey.com>
8946
8947 * symtab.c (create_demangled_names_hash): Change argument to be an
8948 objfile_per_bfd_storage.
8949 (symbol_set_names): Update.
8950
6eee24ce
TT
89512019-01-10 Tom Tromey <tom@tromey.com>
8952
8953 * xcoffread.c (xcoff_initial_scan): Unconditionally call
8954 init_psymbol_list.
8955 * psymtab.c (init_psymbol_list): Do nothing if already called.
8956 * psympriv.h (init_psymbol_list): Add comment.
8957 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
8958 init_psymbol_list.
8959 * dbxread.c (dbx_symfile_read): Unconditionally call
8960 init_psymbol_list.
8961
75aedd27
TT
89622019-01-10 Tom Tromey <tom@tromey.com>
8963
8964 * xcoffread.c (scan_xcoff_symtab): Update.
8965 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
8966 "where".
8967 * mdebugread.c (parse_partial_symbols)
8968 (handle_psymbol_enumerators): Update.
8969 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
8970 * dbxread.c (read_dbx_symtab): Update.
8971 * psympriv.h (psymbol_placement): New enum.
8972 (add_psymbol_to_list): Update.
8973
939652a5
TT
89742019-01-10 Tom Tromey <tom@tromey.com>
8975
8976 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
8977 static_psymbols parameters.
8978 (scan_xcoff_symtab): Update.
8979 * psymtab.c (start_psymtab_common): Remove global_psymbols and
8980 static_psymbols parameters.
8981 * psympriv.h (start_psymtab_common): Update.
8982 * mdebugread.c (parse_partial_symbols): Update.
8983 * dwarf2read.c (create_partial_symtab): Update.
8984 * dbxread.c (read_dbx_symtab): Update.
8985 (start_psymtab): Remove global_psymbols and static_psymbols
8986 parameters.
8987
baa62830
TT
89882019-01-10 Tom Tromey <tom@tromey.com>
8989
8990 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
8991 * psymtab.c (allocate_psymtab): Add comment.
8992 * psympriv.h (allocate_psymtab): Add comment.
8993 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
8994 initializations.
8995 * dbxread.c (dbx_end_psymtab): Remove some initializations.
8996
0e8f53ba
TT
89972019-01-10 Tom Tromey <tom@tromey.com>
8998
8999 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9000 Don't declare.
9001 * mipsread.c: Include mdebugread.h.
9002 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9003 Declare.
9004 * elfread.c: Include mdebugread.h.
9005
b22a7c6a
TT
90062019-01-09 Tom Tromey <tom@tromey.com>
9007
9008 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
9009 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
9010 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
9011 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
9012 (psym_lookup_symbol, psym_find_last_source_symtab)
9013 (psym_forget_cached_source_info, psym_print_stats)
9014 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
9015 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
9016 (psym_map_matching_symbols, psym_expand_symtabs_matching)
9017 (psym_find_compunit_symtab_by_address)
9018 (maintenance_print_psymbols, maintenance_info_psymtabs)
9019 (maintenance_check_psymtabs): Use ranged for.
9020 * psymtab.h (class objfile_psymtabs): New.
9021 (require_partial_symbols): Return objfile_psymtabs.
9022 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
9023
3b9d3ac2
TT
90242019-01-09 Tom Tromey <tom@tromey.com>
9025
9026 * symfile.c (overlay_invalidate_all, find_pc_overlay)
9027 (find_pc_mapped_section, list_overlays_command)
9028 (map_overlay_command, unmap_overlay_command)
9029 (simple_overlay_update): Use all_objfiles.
9030 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
9031 * printcmd.c (info_symbol_command): Use all_objfiles.
9032 * objfiles.h (ALL_OBJSECTIONS): Remove.
9033 * maint.c (maintenance_translate_address): Use all_objfiles.
9034 * gcore.c (gcore_create_callback): Use all_objfiles.
9035 (objfile_find_memory_regions): Likewise.
9036
8b31193a
TT
90372019-01-09 Tom Tromey <tom@tromey.com>
9038
9039 * symtab.c (find_line_symtab, info_sources_command)
9040 (make_source_files_completion_list): Use objfile_compunits.
9041 * source.c (select_source_symtab): Use objfile_compunits.
9042 * objfiles.h (struct objfile): Update comment.
9043 (ALL_OBJFILES): Remove.
9044 (ALL_FILETABS): Remove.
9045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
9046 objfile_compunits.
9047
d5da8b3c
TT
90482019-01-09 Tom Tromey <tom@tromey.com>
9049
9050 * symmisc.c (print_objfile_statistics, dump_objfile)
9051 (maintenance_print_symbols): Use compunit_filetabs.
9052 * source.c (forget_cached_source_info_for_objfile): Use
9053 compunit_filetabs.
9054 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
9055 (ALL_FILETABS): Use compunit_filetabs.
9056 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
9057 * coffread.c (coff_symtab_read): Use compunit_filetabs.
9058
5accd1a0
TT
90592019-01-09 Tom Tromey <tom@tromey.com>
9060
9061 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
9062 (compunit_filetabs): New.
9063 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
9064 compunit_filetabs.
9065 (info_sources_command, make_source_files_completion_list): Remove
9066 declaration.
9067 * symmisc.c (print_objfile_statistics, dump_objfile)
9068 (maintenance_print_symbols): Remove declaration.
9069 (maintenance_info_symtabs): Use compunit_filetabs.
9070 (maintenance_info_line_tables): Likewise.
9071 * source.c (select_source_symtab): Change local variable name.
9072 (forget_cached_source_info_for_objfile): Remove declaration.
9073 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
9074 * objfiles.c (objfile_relocate1): Remove declaration.
9075 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
9076 declaration.
9077 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
9078 * coffread.c (coff_symtab_read): Remove declaration.
9079 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
9080 compunit_filetabs.
9081
d8aeb77f
TT
90822019-01-09 Tom Tromey <tom@tromey.com>
9083
9084 * symtab.c (lookup_objfile_from_block)
9085 (find_pc_sect_compunit_symtab, search_symbols)
9086 (default_collect_symbol_completion_matches_break_on): Use
9087 objfile_compunits.
9088 * objfiles.h (ALL_COMPUNITS): Remove.
9089 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
9090 * cp-support.c (add_symbol_overload_list_qualified): Use
9091 objfile_compunits.
9092 * ada-lang.c (ada_collect_symbol_completion_matches)
9093 (ada_add_global_exceptions): Use objfile_compunits.
9094
592553c4
TT
90952019-01-09 Tom Tromey <tom@tromey.com>
9096
9097 * source.c (select_source_symtab)
9098 (forget_cached_source_info_for_objfile): Remove declaration.
9099 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
9100 declaration.
9101 * maint.c (count_symtabs_and_blocks): Remove declaration.
9102 * cp-support.c (add_symbol_overload_list_qualified): Remove
9103 declaration.
9104 * coffread.c (coff_symtab_read): Remove declaration.
9105 * symtab.c (lookup_symbol_in_objfile_symtabs)
9106 (basic_lookup_transparent_type_1): Use objfile_compunits.
9107 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
9108 (info_sources_command, search_symbols)
9109 (default_collect_symbol_completion_matches_break_on)
9110 (make_source_files_completion_list): Remove declaration.
9111 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
9112 (ada_collect_symbol_completion_matches)
9113 (ada_add_global_exceptions): Remove declaration.
9114 * linespec.c (iterate_over_all_matching_symtabs): Use
9115 objfile_compunits.
9116 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
9117 (class objfile_compunits): New.
9118 (ALL_COMPUNITS): Use objfile_compunits.
9119 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
9120 (maintenance_check_symtabs, maintenance_info_line_tables): Use
9121 objfile_compunits.
9122 * objfiles.c (objfile_relocate1): Use objfile_compunits.
9123
5325b9bf
TT
91242019-01-09 Tom Tromey <tom@tromey.com>
9125
9126 * symtab.c (search_symbols)
9127 (default_collect_symbol_completion_matches_break_on): Use
9128 objfile_msymbols.
9129 * ada-lang.c (ada_lookup_simple_minsym)
9130 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
9131 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
9132 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
9133 objfile_msymbols.
9134 * coffread.c (coff_symfile_read): Use objfile_msymbols.
9135 * symmisc.c (dump_msymbols): Use objfile_msymbols.
9136 * objc-lang.c (find_methods): Use objfile_msymbols.
9137 (info_selectors_command, info_classes_command): Likewise.
9138 * stabsread.c (scan_file_globals): Use objfile_msymbols.
9139 * objfiles.h (class objfile_msymbols): New.
9140 (ALL_OBJFILE_MSYMBOLS): Remove.
9141 (ALL_MSYMBOLS): Remove.
9142
cac85af2
TT
91432019-01-09 Tom Tromey <tom@tromey.com>
9144
9145 * common/next-iterator.h (next_adapter): Add Iterator template
9146 parameter.
9147 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
9148 (class all_objfiles_safe): New.
9149 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
9150 * objfiles.c (put_objfile_before): Update comment.
9151 (add_separate_debug_objfile): Likewise.
9152 (free_all_objfiles): Use all_objfiles_safe.
9153 (objfile_purge_solibs): Likewise.
9154
aed57c53
TT
91552019-01-09 Tom Tromey <tom@tromey.com>
9156
9157 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9158 (expand_symtab_containing_pc, lookup_static_symbol)
9159 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
9160 (find_symbol_at_address, find_line_symtab, find_main_name): Use
9161 all_objfiles.
9162 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
9163 * breakpoint.c (create_overlay_event_breakpoint)
9164 (create_longjmp_master_breakpoint)
9165 (create_std_terminate_master_breakpoint)
9166 (create_exception_master_breakpoint): Use all_objfiles.
9167 * linux-thread-db.c (try_thread_db_load_from_pdir)
9168 (has_libpthread): Use all_objfiles.
9169 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
9170 * linespec.c (iterate_over_all_matching_symtabs)
9171 (search_minsyms_for_name): Use all_objfiles.
9172 * maint.c (maintenance_info_sections): Use all_objfiles.
9173 * main.c (captured_main_1): Use all_objfiles.
9174 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
9175 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
9176 * guile/scm-pretty-print.c
9177 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
9178 * solib-spu.c (append_ocl_sos): Use all_objfiles.
9179 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
9180 (maintenance_print_msymbols): Use all_objfiles.
9181 * source.c (select_source_symtab): Use all_objfiles.
9182 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
9183 * symfile.c (remove_symbol_file_command)
9184 (expand_symtabs_matching, map_symbol_filenames): Use
9185 all_objfiles.
9186 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
9187 all_objfiles.
9188 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
9189 * objc-lang.c (find_methods): Use all_objfiles.
9190 * objfiles.c (have_partial_symbols, have_full_symbols)
9191 (have_minimal_symbols, qsort_cmp)
9192 (default_iterate_over_objfiles_in_search_order): Use
9193 all_objfiles.
9194 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
9195 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
9196 (maintenance_check_psymtabs): Use all_objfiles.
9197 (ALL_PSYMTABS): Remove.
9198 * compile/compile-object-run.c (do_module_cleanup): Use
9199 all_objfiles.
9200 * blockframe.c (find_pc_partial_function): Use all_objfiles.
9201 * cp-support.c (add_symbol_overload_list_qualified): Use
9202 all_objfiles.
9203 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9204 Use all_objfiles.
9205 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
9206 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
9207 all_objfiles.
9208 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9209 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
9210 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9211 Uses all_objfiles.
9212 * solib.c (solib_read_symbols): Use all_objfiles
9213
99d89cde
TT
92142019-01-09 Tom Tromey <tom@tromey.com>
9215
9216 * probe.c (parse_probes_in_pspace): Use all_objfiles.
9217 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
9218 all_objfiles.
9219 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
9220 * symmisc.c (print_symbol_bcache_statistics)
9221 (print_objfile_statistics, maintenance_print_objfiles)
9222 (maintenance_info_symtabs, maintenance_check_symtabs)
9223 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
9224 all_objfiles.
9225 * source.c (forget_cached_source_info): Use all_objfiles.
9226 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
9227 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
9228 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
9229 * objfiles.c (update_section_map): Use all_objfiles.
9230 (shared_objfile_contains_address_p): Likewise.
9231 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
9232 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
9233
21708325
TT
92342019-01-09 Tom Tromey <tom@tromey.com>
9235
9236 * common/next-iterator.h: New file.
9237 * objfiles.h (class all_objfiles): New.
9238 (struct objfile_iterator): New.
9239
669e09f6
PW
92402019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9241
9242 * NEWS: Move the description of the changed "frame", "select-frame",
9243 and "info frame" commands to the Changed commands section.
9244
041be526
SM
92452019-01-09 Simon Marchi <simon.marchi@ericsson.com>
9246
9247 * gdbtypes.c (check_stub_method_group): Remove handling of old
9248 mangling schemes.
9249 * linespec.c (find_methods): Likewise.
9250 * stabsread.c (read_member_functions): Likewise.
9251 * valops.c (search_struct_method): Likewise.
9252 (value_struct_elt_for_reference): Likewise.
9253 * NEWS: Mention this change.
9254
0e2a2133
AB
92552019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
9258 print_source_lines.
9259 * source.c (print_source_lines_base): Update line number check.
9260 (print_source_lines): New function.
9261 (source_lines_range::source_lines_range): New function.
9262 * source.h (class source_lines_range): New class.
9263 (print_source_lines): New declaration.
9264
1055a3b4
PW
92652019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9266
9267 * linespec.c (linespec_state_destructor): Free self->canonical_names.
9268
cfeadda5
TT
92692019-01-08 Tom Tromey <tom@tromey.com>
9270 Simon Marchi <simon.marchi@ericsson.com>
9271
9272 PR gdb/24060
9273 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
9274 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
9275 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9276 * f-exp.y (DOLLAR_VARIABLE): Likewise.
9277 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
9278 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9279
583068ca
AB
92802019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9281
9282 * source.c (select_source_symtab): Move header comment to
9283 declaration in source.h.
9284 (forget_cached_source_info_for_objfile): Likewise.
9285 (forget_cached_source_info): Likewise.
9286 (identify_source_line): Likewise.
9287 * source.h (identify_source_line): Move declaration from symtab.h
9288 and add comment from source.c
9289 (print_source_lines): Likewise.
9290 (forget_cached_source_info_for_objfile): Likewise.
9291 (forget_cached_source_info): Likewise.
9292 (select_source_symtab): Likewise.
9293 (enum print_source_lines_flag): Move definition from symtab.h.
9294 * symtab.h (identify_source_line): Move declaration to source.h.
9295 (print_source_lines): Likewise.
9296 (forget_cached_source_info_for_objfile): Likewise.
9297 (forget_cached_source_info): Likewise.
9298 (select_source_symtab): Likewise.
9299 (enum print_source_lines_flag): Move definition to source.h.
9300 * tui/tui-hooks.c: Add 'source.h' include.
9301
ec98a4ad
AB
93022019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9303
9304 * source.c (print_source_lines_base): Handle requests to print
9305 reverse line number sequences, and guard against empty lines
9306 string.
9307
62ea19c1
AB
93082019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * source.c (print_source_lines_base): Fix skip of '\r' if next
9311 character is '\n'.
9312
9d30e1fd
TT
93132019-01-06 Tom Tromey <tom@tromey.com>
9314
9315 * c-exp.y (struct c_parse_state) <macro_original_text,
9316 expansion_obstack>: New member.
9317 (macro_original_text, expansion_obstack): Remove globals.
9318 (scan_macro_expansion, scanning_macro_expansion)
9319 (finished_macro_expansion): Update.
9320 (scan_macro_cleanup): Remove.
9321 (yylex, c_parse): Update.
9322
c65bac38
TT
93232019-01-06 Tom Tromey <tom@tromey.com>
9324
9325 * c-exp.y (struct c_parse_state) <strings>: New member.
9326 (operator_stoken): Update.
9327
02e12e38
TT
93282019-01-06 Tom Tromey <tom@tromey.com>
9329
9330 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
9331 (union type_stack_elt) <typelist_val>: Now a pointer to
9332 std::vector.
9333 (type_stack_cleanup): Don't declare.
9334 (push_typelist): Update.
9335 * parse.c (pop_typelist): Return a std::vector.
9336 (push_typelist): Take a std::vector.
9337 (follow_types): Update. Do not free args.
9338 (type_stack_cleanup): Remove.
9339 * c-exp.y (struct c_parse_state): New.
9340 (cpstate): New global.
9341 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
9342 (nonempty_typelist): Update.
9343 (func_mod): Create a new vector.
9344 (c_parse): Create a c_parse_state.
9345 (check_parameter_typelist): Do not delete params.
9346 (function_method): Update. Do not delete type_list.
9347
f097f5ad
TT
93482019-01-06 Tom Tromey <tom@tromey.com>
9349
9350 PR gdb/28155:
9351 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
9352 check_typedef.
9353 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
9354 (print_return_value): Likewise.
9355
d2adf9f1
TT
93562019-01-05 Tom Tromey <tom@tromey.com>
9357
9358 * contrib/cleanup_check.py: Remove.
9359 * contrib/gcc-with-excheck: Remove.
9360 * contrib/exsummary.py: Remove.
9361 * contrib/excheck.py: Remove.
9362
2eab46b1
JB
93632019-01-05 Joel Brobecker <brobecker@adacore.com>
9364
9365 * thread.c (delete_thread_1): Add gdb_assert that THR is not
9366 NULL. Initialize tpprev to NULL instead of assigning it
9367 to NULL on the next statement.
9368 * windows-nat.c (windows_delete_thread): Remove check for
9369 main_thread_id before printing thread exit notifications.
9370 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
9371 Remove thread ID check against main_thread_id.
9372 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
9373 windows_delete_thread.
9374 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
9375
48c5e7e2
TT
93762019-01-04 Tom Tromey <tom@tromey.com>
9377
9378 * compile/compile.c (_initialize_compile): Use upper case for
9379 metasyntactic variables.
9380 * symmisc.c (_initialize_symmisc): Use upper case for
9381 metasyntactic variables.
9382 * psymtab.c (_initialize_psymtab): Use upper case for
9383 metasyntactic variables.
9384 * demangle.c (demangle_command): Use upper case for metasyntactic
9385 variables.
9386 (_initialize_demangler): Likewise.
9387 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
9388 variables.
9389
986041cd
TT
93902019-01-03 Tom Tromey <tom@tromey.com>
9391
9392 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
9393
7c711119
TT
93942019-01-03 Tom Tromey <tom@tromey.com>
9395
9396 * python/py-symtab.c (salpy_str): Update.
9397 (struct salpy_sal_object) <symtab>: Now a PyObject.
9398 (salpy_dealloc): Update.
9399 (del_objfile_sal): Use gdbpy_ref.
9400
1b20edf0
TT
94012019-01-03 Tom Tromey <tom@tromey.com>
9402
9403 * python/py-type.c (convert_field): Use new_reference. Return
9404 gdbpy_ref.
9405 (make_fielditem): Return gdbpy_ref.
9406 (typy_fields): Update.
9407 (typy_getitem): Update.
9408 (field_name): Return gdbpy_ref. Use new_reference.
9409 (typy_iterator_iternext): Update.
9410
ea41325b
TT
94112019-01-03 Tom Tromey <tom@tromey.com>
9412
9413 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
9414
2a3c71d6
TT
94152019-01-03 Tom Tromey <tom@tromey.com>
9416
9417 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
9418 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
9419 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
9420 (pspy_set_frame_filters, pspy_set_frame_unwinders)
9421 (pspy_set_type_printers): Likewise.
9422 * python/py-function.c (fnpy_init): Use gdbpy_ref.
9423 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
9424 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
9425 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
9426 (objfpy_set_type_printers): Likewise.
9427
5c329e6a
TT
94282019-01-03 Tom Tromey <tom@tromey.com>
9429
9430 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
9431 (gdbpy_print_stack): Use gdbpy_err_fetch.
9432 * python/python-internal.h (class gdbpy_err_fetch): New class.
9433 (class gdbpy_enter) <m_error_type, m_error_value,
9434 m_error_traceback>: Remove.
9435 <m_error>: New member.
9436 (gdbpy_exception_to_string): Don't declare.
9437 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
9438 * python/py-value.c (convert_value_from_python): Use
9439 gdbpy_err_fetch.
9440 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
9441 gdbpy_exception_to_string.
9442 (gdbpy_handle_exception): Use gdbpy_err_fetch.
9443 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
9444 gdbpy_err_fetch.
9445
169bb27b
AB
94462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9447
9448 * linux-nat.c (delete_lwp_cleanup): Delete.
9449 (struct lwp_deleter): New struct.
9450 (lwp_info_up): New typedef.
9451 (linux_nat_target::follow_fork): Delete cleanup, and make use of
9452 lwp_info_up.
9453
a07c8880
AB
94542019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 * linux-fork.c (class scoped_switch_fork_info): New class.
9457 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
9458
26089c49
AB
94592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * valops.c (find_overload_match): Remove use of null_cleanup, and
9462 calls to do_cleanups.
9463
06d3e5b0
AB
94642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 * compile/compile-cplus-types.c
9467 (compile_cplus_instance::decl_name): Handle changes to
9468 cp_func_name.
9469 * cp-support.c (cp_func_name): Update header comment, update
9470 return type.
9471 * cp-support.h (cp_func_name): Update return type in declaration.
9472 * valops.c (find_overload_match): Move temp_func local to top
9473 level of function and change its type. Use temp_func to hold and
9474 delete temporary string obtained from cp_func_name.
9475
66644cd3
AB
94762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9477
9478 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
9479 gdb::char_vector, remove cleanup, and update uses of `msg`.
9480
592d8c0a
JW
94812019-01-03 Jim Wilson <jimw@sifive.com>
9482
9483 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
9484
c55d06ec
TT
94852019-01-02 Tom Tromey <tom@tromey.com>
9486
9487 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
9488 (tdesc_parse_xml): Remove cleanups.
9489 * target-descriptions.h (make_cleanup_free_target_description):
9490 Don't declare.
9491 (target_desc_deleter): New struct.
9492 (target_desc_up): New typedef.
9493 * target-descriptions.c (target_desc_deleter::operator()): Rename
9494 from free_target_description.
9495 (make_cleanup_free_target_description): Remove.
9496
3a6ae42d
TT
94972019-01-02 Tom Tromey <tom@tromey.com>
9498
9499 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
9500 constructor, destructor.
9501 (linespec_parser): Remove typedef.
9502 (~linespec_parser): Rename from linespec_parser_delete.
9503 (linespec_lex_to_end, linespec_complete_label)
9504 (linespec_complete): Update.
9505 (decode_line_full): Remove cleanups.
9506 (decode_line_1): Update.
9507
61fd3e73
TT
95082019-01-02 Tom Tromey <tom@tromey.com>
9509
9510 * python/python-internal.h (inferior_to_inferior_object): Change
9511 return type.
9512 * python/py-exitedevent.c (create_exited_event_object): Update.
9513 * python/py-inferior.c (inferior_to_inferior_object): Return
9514 gdbpy_ref.
9515 (python_new_inferior, python_inferior_deleted)
9516 (thread_to_thread_object, delete_thread_object)
9517 (build_inferior_list, gdbpy_selected_inferior): Update.
9518 * python/py-infthread.c (create_thread_object): Update. Also fail
9519 if inferior_to_inferior_object fails.
9520
d20172fc
SM
95212019-01-02 Simon Marchi <simon.marchi@ericsson.com>
9522
9523 * inferior.h (class inferior) <displaced_step_state>: New field.
9524 * infrun.h (struct displaced_step_state): Move here from
9525 infrun.c. Initialize fields, add constructor.
9526 <inf>: Remove field.
9527 <reset>: New method.
9528 * infrun.c (struct displaced_step_inferior_state): Move to
9529 infrun.h.
9530 (displaced_step_inferior_states): Remove.
9531 (get_displaced_stepping_state): Adust.
9532 (displaced_step_in_progress_any_inferior): Adjust.
9533 (displaced_step_in_progress_thread): Adjust.
9534 (displaced_step_in_progress): Adjust.
9535 (add_displaced_stepping_state): Remove.
9536 (get_displaced_step_closure_by_addr): Adjust.
9537 (remove_displaced_stepping_state): Remove.
9538 (infrun_inferior_exit): Call displaced_step_state.reset.
9539 (use_displaced_stepping): Don't check for NULL.
9540 (displaced_step_prepare_throw): Call
9541 get_displaced_stepping_state.
9542 (displaced_step_fixup): Don't check for NULL.
9543 (prepare_for_detach): Don't check for NULL.
9544
e3319240
PW
95452019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9546
9547 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
9548 in case of call that did not complete.
9549
5d36dfb9
AU
95502019-01-02 Andrey Utkin <autkin@undo.io>
9551
9552 * symfile.c (find_separate_debug_file): Fix search of debug files for
9553 remote debuggee.
9554
8833fbf0
TT
95552019-01-02 Tom Tromey <tom@tromey.com>
9556
9557 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
9558 indentation.
9559 * python/py-frame.c (frapy_older): Remove cast.
9560 (frapy_newer): Likewise.
9561 * python/py-breakpoint.c (local_setattro): Remove cast.
9562 * python/py-arch.c (archpy_name): Remove local variable.
9563 * python/py-type.c (gdbpy_lookup_type): Remove cast.
9564
4ada3dfd
JB
95652019-01-02 Joel Brobecker <brobecker@adacore.com>
9566
9567 * unittests/basic_string_view/element_access/char/empty.cc:
9568 Fix year range in copyright header.
9569
113b7b81
AB
95702019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
9573 Delete.
9574 <operator==>: Update with for removed field.
9575 <hash>: Likewise.
9576 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
9577 <isa_features>: ...this.
9578 <abi_features>: New field.
9579 (riscv_isa_flen): Update comment.
9580 (riscv_abi_xlen): New declaration.
9581 (riscv_abi_flen): New declaration.
9582 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
9583 isa_features.
9584 (riscv_abi_xlen): New function.
9585 (riscv_isa_flen): Update to get answer from isa_features.
9586 (riscv_abi_flen): New function.
9587 (riscv_has_fp_abi): Update to get answer from abi_features.
9588 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
9589 xlen and flen.
9590 (riscv_call_info) <xlen, flen>: Update comment.
9591 (riscv_call_arg_struct): Remove invalid assertions
9592 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
9593 is removed.
9594 (riscv_gdbarch_init): Gather isa features and abi features
9595 separately, ensure both match on the gdbarch when reusing an old
9596 gdbarch. Relax an error check to allow 32-bit abi float to run on
9597 a target with 64-bit float hardware.
9598
b18ca514
PW
95992019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9600
9601 * source.c (search_command_helper): Stop reverse search
9602 when line 1 has been searched.
9603
ec70d8db
PW
96042019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9605
9606 * record-full.c (record_full_base_target::close): Rewrite
9607 record_full_core_buf_list free logic.
9608
5b38f9c1
PW
96092019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610
9611 * break-catch-syscall.c (print_one_catch_syscall): xfree
9612 the last text.
9613
66d91b39
JB
96142019-01-01 Joel Brobecker <brobecker@adacore.com>
9615
9616 * top.c (print_gdb_version): Update Copyright year in version
9617 message.
9618
42a4f53d
JB
96192019-01-01 Joel Brobecker <brobecker@adacore.com>
9620
9621 Update copyright year range in all GDB files.
9622
7e955d83 96232019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 9624
5bbd631d 9625 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 9626
5bbd631d 9627For older changes see ChangeLog-2018.
c906108c
SS
9628\f
9629Local Variables:
9630mode: change-log
9631left-margin: 8
9632fill-column: 74
9633version-control: never
57da7796 9634coding: utf-8
c906108c 9635End:
5bbd631d 9636
This page took 2.59478 seconds and 4 git commands to generate.