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