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