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