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