]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0e5ad442
TT
12020-12-15 Tom Tromey <tromey@adacore.com>
2
3 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
4 command names.
5
a6f3c8a1
TT
62020-12-14 Tom Tromey <tom@tromey.com>
7
8 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
9 * typeprint.c (whatis_exp): Always use evaluate_type.
10 (maintenance_print_type): Likewise. Simplify.
11
86b44259
TT
122020-12-14 Tom Tromey <tromey@adacore.com>
13
14 * dictionary.c (language_defn::search_name_hash): Ignore "B".
15 * ada-lang.c (advance_wild_match): Ignore "B".
16 (full_match): Remove.
17 (do_full_match): Rewrite.
18
25a1127b
TT
192020-12-14 Tom Tromey <tromey@adacore.com>
20
21 * ada-lang.c (get_var_value): Only consider exact matches.
22
e26624c6
TT
232020-12-14 Tom Tromey <tromey@adacore.com>
24
25 * dwarf2/read.c (rewrite_array_type): New function.
26 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
27
a3bdae4e
TT
282020-12-14 Tom Tromey <tromey@adacore.com>
29
30 * valarith.c (fixed_point_binop): Call error on division by zero.
31
f5756acc
TT
322020-12-13 Tom Tromey <tom@tromey.com>
33
34 * gdbtypes.c (safe_parse_type): Make argument const.
35 * value.h (parse_and_eval_type): Make argument const.
36 * eval.c (parse_and_eval_type): Make argument const.
37
ee9812a0
AB
382020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
39
40 * NEWS: Mention new commands.
41 * target-dcache.c: Add 'cli/cli-cmds.h' include.
42 (maint_flush_dcache_command): New function.
43 (_initialize_target_dcache): Create new 'maint flush dcache'
44 command.
45
50a5f187
AB
462020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * NEWS: Mention new commands, and that the old commands are now
49 deprecated.
50 * cli/cli-cmds.c (maintenanceflushlist): Define.
51 * cli/cli-cmds.h (maintenanceflushlist): Declare.
52 * maint.c (_initialize_maint_cmds): Initialise
53 maintenanceflushlist.
54 * regcache.c: Add 'cli/cli-cmds.h' include.
55 (reg_flush_command): Add header comment.
56 (_initialize_regcache): Create new 'maint flush register-cache'
57 command, make 'flushregs' an alias.
58 * symtab.c: Add 'cli/cli-cmds.h' include.
59 (_initialize_symtab): Create new 'maint flush symbol-cache'
60 command, make old command an alias.
61
19c659f1
AB
622020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
65 result from lookup_cmd_composition_1, use the prefixes from both
66 the command and the alias instead.
67 (lookup_cmd_composition_1): Initial prefix command is the based on
68 the search list being passed in. Simplify the logic for tracking
69 the prefix command. Replace a use of alloca with a local
70 std::string.
71
44c77c32
AB
722020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
75 of NULL. Don't print message piece by piece, but sentence at a
76 time to allow internationalisation. Some whitespace cleanup.
77
9ef6d4a1
AB
782020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 PR cli/15104
81 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
82 deprecated_cmd_warning.
83 (deprecated_cmd_warning): Take extra parameter, call
84 lookup_cmd_composition_1 and pass new parameter through.
85 (lookup_cmd_composition_1): New function, takes implementation of
86 lookup_cmd_composition but with extra parameter.
87 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
88 passing in cmdlist.
89 * command.h (deprecated_cmd_warning): Add extra parameter to
90 declaration.
91 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
92
1536146f
AB
932020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
94
95 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
96 command.h, add extra parameter, and use this to guard giving a
97 warning.
98 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
99 include argument names in declaration, add new argument.
100 * completer.c (complete_line_internal_1): Remove unneeded
101 brackets, pass extra argument to lookup_cmd_1.
102
94ba44a6
SM
1032020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * infrun.h (debug_infrun): Make a bool.
106 * infrun.c (debug_infrun): Make a bool.
107 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
108 debug infrun".
109
74b773fc
SM
1102020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * displaced-stepping.h (displaced_debug_printf): Use
113 debug_prefixed_printf_cond.
114 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
115 (dwarf_read_debug_printf_v): Likewise.
116 * infrun.h (infrun_debug_printf): Likewise.
117 * linux-nat.c (linux_nat_debug_printf): Likewise.
118
02c72701
TT
1192020-12-11 Tom Tromey <tom@tromey.com>
120
121 * p-exp.y (intvar): Remove global.
122 (DOLLAR_VARIABLE): Change type.
123 (start): Update.
124 (exp): Call write_dollar_variable here...
125 (yylex): ... not here.
126 * m2-exp.y (DOLLAR_VARIABLE): Change type.
127 (variable): Call write_dollar_variable here...
128 (yylex): ... not here.
129 * f-exp.y (DOLLAR_VARIABLE): Change type.
130 (exp): Call write_dollar_variable here...
131 (yylex): ... not here.
132
07d9937a
TT
1332020-12-11 Tom Tromey <tom@tromey.com>
134
135 * varobj.c (varobj_create): Update.
136 (install_variable): Return void.
137
1345dee2
TT
1382020-12-11 Tom Tromey <tom@tromey.com>
139
140 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
141
446d2c03
TT
1422020-12-11 Tom Tromey <tom@tromey.com>
143
144 * varobj.c (varobj_clear_saved_item): Remove.
145 (update_dynamic_varobj_children): Update.
146 (varobj::~varobj): Don't call varobj_clear_saved_item.
147
11106495
TT
1482020-12-11 Tom Tromey <tom@tromey.com>
149
150 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
151 (update_dynamic_varobj_children, create_child)
152 (create_child_with_value): Update.
153 * varobj-iter.h (struct varobj_item) <value>: Now a
154 value_ref_ptr.
155 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
156
24fd95b4
TT
1572020-12-11 Tom Tromey <tom@tromey.com>
158
159 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
160 (varobj_get_iterator): Return unique_ptr.
161 (update_dynamic_varobj_children, install_visualizer)
162 (varobj::~varobj): Update.
163 * python/python-internal.h (py_varobj_get_iterator): Return
164 unique_ptr.
165 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
166
74462664
TT
1672020-12-11 Tom Tromey <tom@tromey.com>
168
169 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
170 (varobj_clear_saved_item, update_dynamic_varobj_children):
171 Update.
172
60ee72f6
TT
1732020-12-11 Tom Tromey <tom@tromey.com>
174
175 * varobj.c (update_dynamic_varobj_children): Update.
176 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
177 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
178 type.
179 (py_varobj_iter::next): Likewise.
180
54746ce3
TT
1812020-12-11 Tom Tromey <tom@tromey.com>
182
183 * varobj.c (update_dynamic_varobj_children, install_visualizer)
184 (varobj::~varobj): Update.
185 * varobj-iter.h (struct varobj_iter): Change to interface class.
186 (struct varobj_iter_ops): Remove.
187 (varobj_iter_next, varobj_iter_delete): Remove.
188 * python/py-varobj.c (struct py_varobj_iter): Derive from
189 varobj_iter. Add constructor, destructor. Rename members.
190 (py_varobj_iter::~py_varobj_iter): Rename from
191 py_varobj_iter_dtor.
192 (py_varobj_iter::next): Rename from py_varobj_iter_next.
193 (py_varobj_iter_ops): Remove.
194 (py_varobj_iter): Rename from py_varobj_iter_ctor.
195 (py_varobj_iter_new): Remove.
196 (py_varobj_get_iterator): Update.
197
d8f168dd
TT
1982020-12-11 Tom Tromey <tom@tromey.com>
199
200 * varobj.h (all_root_varobjs): Take a function_view.
201 * varobj.c (all_root_varobjs): Take a function_view.
202 (varobj_invalidate_iter): Remove unused parameter.
203 (varobj_invalidate): Update.
204 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
205 (mi_cmd_var_update_iter): Change parameters.
206
76deb5d9
TT
2072020-12-11 Tom Tromey <tom@tromey.com>
208
209 * varobj.c (struct varobj_root) <next>: Remove.
210 (struct vlist): Remove.
211 (rootlist): Now a std::list.
212 (install_variable, uninstall_variable, all_root_varobjs): Update.
213
2c1413a9
TT
2142020-12-11 Tom Tromey <tom@tromey.com>
215
216 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
217 (varobj_table): Now htab_t.
218 (varobj_get_handle, install_variable, uninstall_variable):
219 Update.
220 (hash_varobj, eq_varobj_and_string): New functions.
221 (hash_varobj): Update.
222
b6433ede
TT
2232020-12-11 Tom Tromey <tom@tromey.com>
224
225 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
226 * ada-lang.c (check_status_exception): Update.
227 * breakpoint.c (free_bp_location): Remove.
228 (decref_bp_location): Use bp_location_ref_policy.
229 (bpstats::bpstats): Don't call incref_bp_location.
230 (bpstats::~bpstats): Remove.
231 (bpstats::bpstats): Update.
232 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
233 (bp_location::bp_location): Update.
234 (incref_bp_location): Remove.
235 (bkpt_print_it): Update.
236 * breakpoint.h (class bp_location): Derive from
237 refcounted_object.
238 (struct bpstats): Remove destructor.
239 <bp_location_at>: Now a bp_location_ref_ptr.
240 <refc>: Remove.
241 (bp_location_ref_ptr): New typedef.
242 (struct bp_location_ref_policy): New.
243
bfcb9db8
TT
2442020-12-11 Tom Tromey <tom@tromey.com>
245
246 * thread.c (class scoped_inc_dec_ref): Remove.
247 (tp_array_compar_ascending, tp_array_compar_descending): Change
248 parameter types.
249 (thread_apply_all_command): Use thread_info_ref.
250
d634cd0b
TT
2512020-12-11 Tom Tromey <tom@tromey.com>
252
253 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
254 (stop_context::stop_context): Update.
255 (stop_context::~stop_context): Remove.
256
51107df5
TT
2572020-12-11 Tom Tromey <tom@tromey.com>
258
259 * inferior.c (current_inferior_): Change type.
260 (current_inferior, set_current_inferior, initialize_inferiors):
261 Update.
262
15f4dddd
TT
2632020-12-11 Tom Tromey <tom@tromey.com>
264
265 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
266 Change type.
267
a9f14fa5
TT
2682020-12-11 Tom Tromey <tromey@adacore.com>
269
270 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
271 field.
272 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
273 (read_atcb): Use cpu_id_offset.
274
2ccee230
KB
2752020-12-10 Kevin Buettner <kevinb@redhat.com>
276
277 * ada-lang.c (ada_fold_name): Fix off-by-one error.
278
ae1f4d2d
LM
2792020-12-10 Luis Machado <luis.machado@linaro.org>
280
281 * breakpoint.c (should_be_inserted): Don't output newline.
282
6afcd2d4
LM
2832020-12-10 Luis Machado <luis.machado@linaro.org>
284
285 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
286 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
287 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
288 * arch/aarch64.h: ... here.
289 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
290 (aarch64_maybe_swab128): New function.
291 (aarch64_sve_regs_copy_to_reg_buf)
292 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
293 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
294 the data field.
295 (TF_REG_VALUE_BYTES): New enum value.
296 (trad_frame_value_bytes_p): New function.
297 (trad_frame_set_value_bytes): New function.
298 (trad_frame_set_reg_value_bytes): New function.
299 (trad_frame_get_prev_register): Handle register values saved as bytes.
300 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
301 (struct trad_frame_saved_reg) <data>: New field.
302 (trad_frame_set_value_bytes): New prototype.
303 (trad_frame_value_bytes_p): New prototype.
304
15cc148f
MS
3052020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
306
307 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
308 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
309 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
310
12932e2c
TT
3112020-12-09 Tom Tromey <tromey@adacore.com>
312
313 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
314
5cde1d82
TT
3152020-12-09 Tom Tromey <tromey@adacore.com>
316
317 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
318 and "denominator" to gdb_mpz. Handle block forms.
319 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
320 "denominator" to gdb_mpz.
321 (finish_fixed_point_type): Update.
322 (has_zero_over_zero_small_attribute): Update.
323
d9c3a9c0
TT
3242020-12-09 Tom Tromey <tromey@adacore.com>
325
326 * expprint.c (op_name): Update.
327 * expression.h (enum exp_opcode): Update.
328 * std-operator.def: Add more opcodes.
329 * ada-operator.def, fortran-operator.def: Remove, moving contents
330 into std-operator.def.
331
6ad368b8
SM
3322020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
335 Return {} instead of false.
336 (get_discrete_bounds): Compute high bound only if low bound is
337 valid.
338
5b56203a
SM
3392020-12-09 Simon Marchi <simon.marchi@efficios.com>
340
341 PR 26875, PR 26901
342 * gdbtypes.c (get_discrete_low_bound): Make non-static.
343 (get_discrete_high_bound): Make non-static.
344 * gdbtypes.h (get_discrete_low_bound): New declaration.
345 (get_discrete_high_bound): New declaration.
346 * valarith.c (value_subscript): Only fetch high bound if
347 necessary.
348
14c09924
SM
3492020-12-09 Simon Marchi <simon.marchi@efficios.com>
350
351 * gdbtypes.c (get_discrete_bounds): Implement with
352 get_discrete_low_bound and get_discrete_high_bound.
353 (get_discrete_low_bound): New.
354 (get_discrete_high_bound): New.
355
1f8d2881
SM
3562020-12-09 Simon Marchi <simon.marchi@efficios.com>
357
358 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
359 callers.
360 * gdbtypes.c (get_discrete_bounds): Return bool.
361
6244c119
SM
3622020-12-09 Simon Marchi <simon.marchi@efficios.com>
363
364 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
365 (ada_value_slice): Adjust.
366 (pos_atr): Adjust.
367 * gdbtypes.c (get_discrete_bounds): Adjust.
368 (discrete_position): Return optional.
369 * gdbtypes.h (discrete_position): Return optional.
370
a4915e8d
TT
3712020-12-07 Tom Tromey <tromey@adacore.com>
372
373 * maint.c (_initialize_maint_cmds): Use expression command
374 completer for "maint print type".
375
1f58f6c2
TBA
3762020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377
378 * completer.c (complete_explicit_location): Also add keywords
379 that start with '-' to the completion list.
380
5759831a
TBA
3812020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
382
383 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
384 keyword may be followed by any keyword.
385 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
386 'toklen' in the case for "-force-condition".
387
21e051b3
TBA
3882020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
389
390 * main.c (catch_command_errors): Add a flag parameter; invoke
391 `bpstat_do_actions` if the flag is set.
392 (execute_cmdargs): Update a call to `catch_command_errors`.
393
f51f9f1d
TV
3942020-12-07 Tom de Vries <tdevries@suse.de>
395
396 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
397
00158a68
TT
3982020-12-06 Tom Tromey <tom@tromey.com>
399
400 PR ada/26999
401 * ada-lang.c (replace_operator_with_call): Rewrite.
402
296cfb88
GF
4032020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
404
405 PR breakpoints/27009
406 * s390-tdep.h (op_bc): Correct BC opcode value.
407
63c457b9
JB
4082020-12-06 Joel Brobecker <brobecker@adacore.com>
409
410 * gmp-utils.h (gdb_mpz::safe_export): New private method.
411 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
412 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
413 (gdb_mpz::safe_export): New method.
414 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
415 Update function description.
416 (check_as_integer_raises_out_of_range_error): New function.
417 (gdb_mpz_as_integer_out_of_range): New function.
418 (_initialize_gmp_utils_selftests): Register
419 gdb_mpz_as_integer_out_of_range as a selftest.
420
3c7ba803
JB
4212020-12-05 Joel Brobecker <brobecker@adacore.com>
422
423 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
424 TARGET_CHAR_BIT.
425 (gdb_mpz::write): Likewise.
426
372ff58f
SM
4272020-12-04 Simon Marchi <simon.marchi@efficios.com>
428
429 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
430 number of displaced step buffers.
431
480af54c
SM
4322020-12-04 Simon Marchi <simon.marchi@efficios.com>
433
434 * displaced-stepping.h (struct displaced_step_buffer): Rename
435 to...
436 (struct displaced_step_buffers): ... this.
437 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
438 <struct displaced_step_buffer>: New inner class.
439 <m_buffers>: New.
440 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
441 to...
442 (displaced_step_buffers::prepare): ... this, adjust for multiple
443 buffers.
444 (displaced_step_buffer::finish): Rename to...
445 (displaced_step_buffers::finish): ... this, adjust for multiple
446 buffers.
447 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
448 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
449 adjust for multiple buffers.
450 (displaced_step_buffer::restore_in_ptid): Rename to...
451 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
452 multiple buffers.
453 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
454 for num_disp_step_buffers.
455 * linux-tdep.c (struct linux_gdbarch_data)
456 <num_disp_step_buffers>: New field.
457 (struct linux_info) <disp_step_buf>: Rename to...
458 <disp_step_bufs>: ... this, change type to
459 displaced_step_buffers.
460 (linux_displaced_step_prepare): Use
461 linux_gdbarch_data::num_disp_step_buffers to create that number
462 of buffers.
463 (linux_displaced_step_finish): Adjust.
464 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
465 (linux_displaced_step_restore_all_in_ptid): Adjust.
466 (linux_init_abi): Change supports_displaced_step parameter for
467 num_disp_step_buffers, save it in linux_gdbarch_data.
468 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
469 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
470 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
471 supports_displaced_step parameter for num_disp_step_buffers.
472 (amd64_linux_init_abi): Adjust.
473 (amd64_x32_linux_init_abi): Adjust.
474 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
475 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
476 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
477 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
478 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
479 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
480 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
481 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
482 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
483 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
484 * m68k-linux-tdep.c (m68k_linux_init_abi):
485 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
486 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
487 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
488 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
489 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
490 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
491 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
492 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
493 Change type to displaced_step_buffers.
494 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
495 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
496 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
497 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
498 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
499 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
500 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
501
d9655058
SM
5022020-12-04 Simon Marchi <simon.marchi@efficios.com>
503
504 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
505 obkstack.
506 (_initialize_linux_tdep): Register pre-init gdb data instead of
507 post-init.
508
187b041e
SM
5092020-12-04 Simon Marchi <simon.marchi@efficios.com>
510
511 * displaced-stepping.h (struct
512 displaced_step_copy_insn_closure): Adjust comments.
513 (struct displaced_step_inferior_state) <step_thread,
514 step_gdbarch, step_closure, step_original, step_copy,
515 step_saved_copy>: Remove fields.
516 (struct displaced_step_thread_state): New.
517 (struct displaced_step_buffer): New.
518 * displaced-stepping.c (displaced_step_buffer::prepare): New.
519 (write_memory_ptid): Move from infrun.c.
520 (displaced_step_instruction_executed_successfully): New,
521 factored out of displaced_step_finish.
522 (displaced_step_buffer::finish): New.
523 (displaced_step_buffer::copy_insn_closure_by_addr): New.
524 (displaced_step_buffer::restore_in_ptid): New.
525 * gdbarch.sh (displaced_step_location): Remove.
526 (displaced_step_prepare, displaced_step_finish,
527 displaced_step_copy_insn_closure_by_addr,
528 displaced_step_restore_all_in_ptid): New.
529 * gdbarch.c: Re-generate.
530 * gdbarch.h: Re-generate.
531 * gdbthread.h (class thread_info) <displaced_step_state>: New
532 field.
533 (thread_step_over_chain_remove): New declaration.
534 (thread_step_over_chain_next): New declaration.
535 (thread_step_over_chain_length): New declaration.
536 * thread.c (thread_step_over_chain_remove): Make non-static.
537 (thread_step_over_chain_next): New.
538 (global_thread_step_over_chain_next): Use
539 thread_step_over_chain_next.
540 (thread_step_over_chain_length): New.
541 (global_thread_step_over_chain_enqueue): Add debug print.
542 (global_thread_step_over_chain_remove): Add debug print.
543 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
544 Remove.
545 * infrun.c (get_displaced_stepping_state): New.
546 (displaced_step_in_progress_any_inferior): Remove.
547 (displaced_step_in_progress_thread): Adjust.
548 (displaced_step_in_progress): Adjust.
549 (displaced_step_in_progress_any_thread): New.
550 (get_displaced_step_copy_insn_closure_by_addr): Remove.
551 (gdbarch_supports_displaced_stepping): Use
552 gdbarch_displaced_step_prepare_p.
553 (displaced_step_reset): Change parameter from inferior to
554 thread.
555 (displaced_step_prepare_throw): Implement using
556 gdbarch_displaced_step_prepare.
557 (write_memory_ptid): Move to displaced-step.c.
558 (displaced_step_restore): Remove.
559 (displaced_step_finish): Implement using
560 gdbarch_displaced_step_finish.
561 (start_step_over): Allow starting more than one displaced step.
562 (prepare_for_detach): Handle possibly multiple threads doing
563 displaced steps.
564 (handle_inferior_event): Handle possibility that fork event
565 happens while another thread displaced steps.
566 * linux-tdep.h (linux_displaced_step_prepare): New.
567 (linux_displaced_step_finish): New.
568 (linux_displaced_step_copy_insn_closure_by_addr): New.
569 (linux_displaced_step_restore_all_in_ptid): New.
570 (linux_init_abi): Add supports_displaced_step parameter.
571 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
572 (linux_displaced_step_prepare): New.
573 (linux_displaced_step_finish): New.
574 (linux_displaced_step_copy_insn_closure_by_addr): New.
575 (linux_displaced_step_restore_all_in_ptid): New.
576 (linux_init_abi): Add supports_displaced_step parameter,
577 register displaced step methods if true.
578 (_initialize_linux_tdep): Register inferior_execd observer.
579 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
580 supports_displaced_step parameter, adjust call to
581 linux_init_abi. Remove call to
582 set_gdbarch_displaced_step_location.
583 (amd64_linux_init_abi): Adjust call to
584 amd64_linux_init_abi_common.
585 (amd64_x32_linux_init_abi): Likewise.
586 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
587 linux_init_abi. Remove call to
588 set_gdbarch_displaced_step_location.
589 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
590 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
591 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
592 linux_init_abi.
593 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
594 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
595 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
596 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
597 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
598 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
599 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
600 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
601 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
602 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
603 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
604 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
605 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
606 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
607 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
608 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
609 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
610 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
611 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
612 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
613 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
614 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
615 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
616 linux_init_abi. Remove call to
617 set_gdbarch_displaced_step_location.
618 * arm-tdep.c (arm_pc_is_thumb): Call
619 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
620 get_displaced_step_copy_insn_closure_by_addr.
621 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
622 clear gdbarch methods.
623 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
624 (get_ppc_per_inferior): New function.
625 (ppc_displaced_step_prepare): New function.
626 (ppc_displaced_step_finish): New function.
627 (ppc_displaced_step_restore_all_in_ptid): New function.
628 (rs6000_gdbarch_init): Register new gdbarch methods.
629 * s390-tdep.c (s390_gdbarch_init): Don't call
630 set_gdbarch_displaced_step_location, set new gdbarch methods.
631
c7acb87b
SM
6322020-12-04 Simon Marchi <simon.marchi@efficios.com>
633
634 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
635 * aarch64-tdep.h: Include displaced-stepping.h.
636 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
637 Move here.
638 (displaced_step_copy_insn_closure_up): Move here.
639 (struct buf_displaced_step_copy_insn_closure): Move here.
640 (struct displaced_step_inferior_state): Move here.
641 (debug_displaced): Move here.
642 (displaced_debug_printf_1): Move here.
643 (displaced_debug_printf): Move here.
644 * displaced-stepping.c: New file.
645 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
646 * gdbarch.h: Re-generate.
647 * inferior.h: Include displaced-stepping.h.
648 * infrun.h (debug_displaced): Move to displaced-stepping.h.
649 (displaced_debug_printf_1): Likewise.
650 (displaced_debug_printf): Likewise.
651 (struct displaced_step_copy_insn_closure): Likewise.
652 (displaced_step_copy_insn_closure_up): Likewise.
653 (struct buf_displaced_step_copy_insn_closure): Likewise.
654 (struct displaced_step_inferior_state): Likewise.
655 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
656 (displaced_debug_printf_1): Likewise.
657 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
658 Likewise.
659 (_initialize_infrun): Don't register "set/show debug displaced".
660
94b24c74
SM
6612020-12-04 Simon Marchi <simon.marchi@efficios.com>
662
663 * linux-tdep.c (get_linux_inferior_data): Add inferior
664 parameter.
665 (linux_vsyscall_range): Pass current inferior.
666
bab37966
SM
6672020-12-04 Simon Marchi <simon.marchi@efficios.com>
668
669 * infrun.c (displaced_step_prepare_throw): Change return type to
670 displaced_step_prepare_status.
671 (displaced_step_prepare): Likewise.
672 (displaced_step_finish): Change return type to
673 displaced_step_finish_status.
674 (resume_1): Adjust.
675 (stop_all_threads): Adjust.
676 * displaced-stepping.h: New file.
677
7def77a1
SM
6782020-12-04 Simon Marchi <simon.marchi@efficios.com>
679
680 * infrun.c (displaced_step_fixup): Rename to...
681 (displaced_step_finish): ... this, update all callers.
682
1152d984
SM
6832020-12-04 Simon Marchi <simon.marchi@efficios.com>
684
685 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
686 (get_displaced_step_copy_insn_closure_by_addr): ... this.
687 Update all users.
688 (displaced_step_closure): Rename to...
689 (displaced_step_copy_insn_closure): ... this. Update all users.
690 (displaced_step_closure_up): Rename to...
691 (displaced_step_copy_insn_closure_up). ... this. Update all
692 users.
693 (buf_displaced_step_closure): Rename to...
694 (buf_displaced_step_copy_insn_closure): ... this. Update all
695 users.
696 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
697 (get_displaced_step_copy_insn_closure_by_addr): ... this.
698 Update all users.
699 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
700 (aarch64_displaced_step_copy_insn_closure): ... this. Update
701 all users.
702 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
703 (amd64_displaced_step_copy_insn_closure): ... this. Update all
704 users.
705 * arm-tdep.h (arm_displaced_step_closure): Rename to...
706 (arm_displaced_step_copy_insn_closure): ... this. Update all
707 users.
708 * i386-tdep.h (i386_displaced_step_closure): Rename to...
709 (i386_displaced_step_copy_insn_closure): ... this. Update all
710 users.
711 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
712 (ppc_displaced_step_copy_insn_closure): ... this. Update all
713 users.
714 * s390-tdep.c (s390_displaced_step_closure): Rename to...
715 (s390_displaced_step_copy_insn_closure): ... this. Update all
716 users.
717 * gdbarch.h: Re-generate.
718 * gdbarch.c: Re-generate.
719
28d5518b
SM
7202020-12-04 Simon Marchi <simon.marchi@efficios.com>
721
722 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
723 (global_thread_step_over_chain_enqueue): ... this. Update all
724 users.
725 (thread_step_over_chain_remove): Rename to...
726 (global_thread_step_over_chain_remove): ... this. Update all
727 users.
728 (thread_step_over_chain_next): Rename to...
729 (global_thread_step_over_chain_next): ... this. Update all
730 users.
731 * infrun.h (step_over_queue_head): Rename to...
732 (global_thread_step_over_chain_head): ... this. Update all
733 users.
734 * infrun.c (step_over_queue_head): Rename to...
735 (global_thread_step_over_chain_head): ... this. Update all
736 users.
737 * thread.c (step_over_chain_remove): Rename to...
738 (thread_step_over_chain_remove): ... this. Update all users.
739 (thread_step_over_chain_next): Rename to...
740 (global_thread_step_over_chain_next): ... this. Update all
741 users.
742 (thread_step_over_chain_enqueue): Rename to...
743 (global_thread_step_over_chain_enqueue): ... this. Update all
744 users.
745 (thread_step_over_chain_remove): Rename to...
746 (global_thread_step_over_chain_remove): ... this. Update all
747 users.
748
f5f01699
SM
7492020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * infrun.c (get_displaced_stepping_state): Remove, change
752 callers to access the field directly.
753
c0aba012
SM
7542020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * infrun.c (handle_inferior_event): Restore displaced step
757 buffer bytes in child process when handling fork, even if fork
758 happened in another thread than the displaced-stepping one.
759
3b7a962d
SM
7602020-12-04 Simon Marchi <simon.marchi@efficios.com>
761
762 * infrun.c (infrun_inferior_execd): New function.
763 (_initialize_infrun): Attach inferior_execd observer.
764
42a4fec5
SM
7652020-12-04 Simon Marchi <simon.marchi@efficios.com>
766
767 * observable.h (inferior_execd): Declare new observable.
768 * observable.c (inferior_execd): Declare new observable.
769 * infrun.c (follow_exec): Notify inferior_execd observer.
770 * jit.c (jit_inferior_created_hook): Make static.
771 (_initialize_jit): Register inferior_execd observer.
772 * jit.h (jit_inferior_created_hook): Remove declaration.
773 * solib.c (_initialize_solib): Register inferior_execd observer.
774
aafdfb4e
TV
7752020-12-04 Tom de Vries <tdevries@suse.de>
776
777 PR gdb/27003
778 * completer.c (completion_tracker::build_completion_result): Don't
779 access match_list[0][-1].
780
f99b5177
TT
7812020-12-04 Tom Tromey <tromey@adacore.com>
782
783 * linespec.c (struct linespec_token): Rename; remove typedef.
784 * guile/scm-block.c (struct block_smob): Remove typedef.
785 (struct block_syms_progress_smob): Likewise.
786 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
787 * guile/scm-symtab.c (symtab_smob): Remove typedef.
788 (struct sal_smob): Remove typedef.
789 * guile/scm-param.c (struct param_smob): Remove typedef.
790 * guile/scm-progspace.c (struct pspace_smob): Rename.
791 * guile/scm-objfile.c (struct objfile_smob): Rename.
792 * guile/scm-iterator.c (struct iterator_smob): Rename.
793 * guile/scm-frame.c (struct frame_smob): Rename.
794 * guile/scm-arch.c (struct arch_smob): Rename.
795 * guile/scm-type.c (struct field_smob): Remove typedef.
796 (struct type_smob): Rename.
797 * guile/scm-cmd.c (struct command_smob): Remove typedef.
798 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
799 * guile/scm-value.c (struct value_smob): Remove typedef.
800 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
801 * guile/guile-internal.h (struct scheme_variable)
802 (struct scheme_function, struct scheme_integer_constant)
803 (struct gdb_smob, struct chained_gdb_smob)
804 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
805 (objfile_smob, pspace_smob, type_smob): Remove typedef.
806 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
807 (struct pretty_printer_worker_smob): Remove typedef.
808 * guile/scm-exception.c (struct exception_smob): Remove typedef.
809 * python/py-block.c (struct block_object): Remove typedef.
810 (block_syms_iterator_object): Update.
811 (set_block): Update.
812 (block_syms_iterator_object): Remove typedef.
813 * python/py-inferior.c (struct membuf_object): Remove typedef.
814 * python/py-symtab.c (struct symtab_object): Remove typedef.
815 (set_symtab): Update.
816 (sal_object): Remove typedef.
817 (set_sal): Update.
818 * python/py-frame.c (frame_object): Remove typedef.
819 * python/py-record-btrace.c (struct btpy_list_object): Remove
820 typedef.
821 * python/py-arch.c (struct arch_object): Remove typedef.
822 * python/py-linetable.c (struct linetable_entry_object)
823 (linetable_object, struct ltpy_iterator_object): Remove typedef.
824 * python/py-events.h (eventregistry_object): Remove typedef.
825 (struct events_object): Remove typedef.
826 * python/python-internal.h (gdbpy_breakpoint_object): Remove
827 typedef.
828 (thread_object): Remove typedef.
829 * python/py-progspace.c (pspace_object): Remove typedef.
830 * python/py-value.c (struct value_object): Remove typedef.
831 * python/py-record.h (recpy_record_object): Remove typedef.
832 (struct recpy_element_object): Remove typedef.
833 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
834 * python/py-objfile.c (objfile_object): Remove typedef.
835 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
836 * python/py-type.c (type_object): Remove typedef.
837 (typy_iterator_object): Update.
838 (set_type): Update.
839 (field_object): Remove typedef.
840 (typy_iterator_object): Remove typedef.
841 * python/py-registers.c (register_descriptor_iterator_object):
842 Remove typedef.
843 (struct register_descriptor_object)
844 (struct reggroup_iterator_object, struct reggroup_object): Remove
845 typedef.
846 * python/py-record.c (recpy_gap_object): Remove typedef.
847 * python/py-symbol.c (symbol_object): Remove typedef.
848 (set_symbol): Update.
849 * python/py-event.h (event_object): Remove typedef.
850 * python/py-param.c (parmpy_object): Remove typedef.
851 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
852 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
853 (unwind_info_object, struct cached_frame_info): Likewise.
854
91f87213
TT
8552020-12-04 Tom Tromey <tromey@adacore.com>
856
857 * value.c (value_internal_function_name): Make return type const.
858 * value.h (value_internal_function_name): Make return type const.
859
5382f971
LM
8602020-12-04 Luis Machado <luis.machado@linaro.org>
861
862 * aarch64-tdep.c (submask, bit, bits): Remove.
863 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
864 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
865 (aarch64_decode_cb, aarch64_decode_tb)
866 (aarch64_decode_ldr_literal): Use sbits to extract a signed
867 immediate.
868 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
869
b6a6aa07
TV
8702020-12-04 Tom de Vries <tdevries@suse.de>
871
872 PR tdep/27007
873 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
874
0bc2e38d
SM
8752020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
876
877 PR gdb/26876
878 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
879 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
880
25428040
AB
8812020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * arch/riscv.c: Include 'rv32e-xregs.c'.
884 (riscv_create_target_description): Update to handle rv32e.
885 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
886 member variable.
887 <operator==>: Update to account for new field.
888 <hash>: Likewise.
889 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
890 * features/riscv/rv32e-xregs.c: Generated.
891 * features/riscv/rv32e-xregs.xml: New file.
892 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
893 file.
894 (riscv_debug_infcall): Likewise.
895 (riscv_debug_unwinder): Likewise.
896 (riscv_debug_gdbarch): Likewise.
897 (enum riscv_register_required_status): Delete.
898 (struct riscv_register_feature): Add constructor, delete default
899 constructor, copy, and assign constructors.
900 (struct riscv_register_feature::register_info) <required>: Delete.
901 <check>: Update comment and arguments.
902 (struct riscv_register_feature) <name>: Change to member function.
903 <prefer_first_name>: Delete.
904 <tdesc_feature>: New member function.
905 <registers>: Rename to...
906 <m_registers>: ...this.
907 <m_feature_name>: New member variable.
908 (riscv_register_feature::register_info::check): Update arguments.
909 (riscv_xreg_feature): Rewrite as class, create a single static
910 instance of the class.
911 (riscv_freg_feature): Likewise.
912 (riscv_virtual_feature): Likewise.
913 (riscv_csr_feature): Likewise.
914 (riscv_create_csr_aliases): Has become a member function inside
915 riscv_csr_feature class.
916 (riscv_abi_embedded): New function definition.
917 (riscv_register_name): Adjust to use new feature objects.
918 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
919 and adjust available argument registers.
920 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
921 (riscv_check_tdesc_feature): Delete.
922 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
923 (riscv_gdbarch_init): Delete target description checking code, and
924 instead call to the new feature objects to perform the checks.
925 Reorder handling of no abi information case, allows small code
926 simplification.
927 (_initialize_riscv_tdep): Remove call, this is now done in the
928 riscv_csr_feature constructor.
929 * riscv-tdep.h (riscv_abi_embedded): Declare.
930
533b2ae0
AB
9312020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
934 DECLARE_CSR_ALIAS.
935
e4502042
AB
9362020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * riscv-tdep.c (riscv_is_unknown_csr): New function,
939 implementation moved from riscv_register_reggroup_p.
940 (riscv_register_reggroup_p): Update group handling for unknown
941 CSRs.
942
2bf3b79d
SDJ
9432020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
944
945 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
946 (dwarf2_get_dwz_file): Convert 'filename' to a
947 std::string. Use dwz_search_other_debugdirs to search for DWZ
948 files in the debug-file-directories provided by the user as well.
949
77bf7e99
TT
9502020-12-01 Tom Tromey <tom@tromey.com>
951
952 * parse.c (expr_builder::expr_builder): Initialize expout.
953 (expr_builder::release): Use expression::resize.
954 (expression::expression, expression::~expression)
955 (expression::resize): New methods.
956 (write_exp_elt): Use expression::resize.
957 (prefixify_expression): Update.
958 (increase_expout_size): Use expression::resize.
959 * expression.h (struct expression): Add constructor, destructor.
960 <resize>: New method.
961 (expression_up): Change type.
962
539d71e8
RA
9632020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
964 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
965 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
966 set region.
967
7ce05d21
TV
9682020-11-30 Tom de Vries <tdevries@suse.de>
969
970 PR symtab/26905
971 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
972 is_reference parameter.
973 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
974
88b91969
TT
9752020-11-30 Tom Tromey <tom@tromey.com>
976
977 * rust-lang.c (rust_op_name): Remove.
978 (exp_descriptor_rust): Update.
979 * parser-defs.h (op_name_standard): Don't declare.
980 (struct exp_descriptor) <op_name>: Remove.
981 * parse.c (exp_descriptor_standard): Update.
982 * opencl-lang.c (exp_descriptor_opencl): Update.
983 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
984 * f-lang.c (op_name_f): Remove.
985 (f_language::exp_descriptor_tab): Update.
986 * expression.h (op_name): Update.
987 * expprint.c (op_name): Rewrite.
988 (op_name_standard): Remove.
989 (dump_raw_expression, dump_subexp): Update.
990 * c-lang.c (exp_descriptor_c): Update.
991 * ax-gdb.c (gen_expr): Update.
992 * ada-lang.c (ada_op_name): Remove.
993 (ada_exp_descriptor): Update.
994
1cd49c43
TT
9952020-11-30 Tom Tromey <tom@tromey.com>
996
997 * eval.c (init_array_element): Remove.
998 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
999
96fb9086
HD
10002020-11-29 Hannes Domani <ssbssa@yahoo.de>
1001
1002 PR tui/26973
1003 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1004 static locator win info.
1005
b4132322
AR
10062020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1007
1008 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1009 program.
1010
3df8c6af
AB
10112020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1014 is always initialized.
1015
0ae45769
RA
10162020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1017 * MAINTAINERS (Write After Approval): Add myself.
1018
239ca5e4
PW
10192020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1020
1021 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1022 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1023
cbfa382a
TT
10242020-11-25 Tom Tromey <tom@tromey.com>
1025
1026 * eval.c (evaluate_subexp_standard): Remove unnecessary
1027 variables.
1028
af30c400
TT
10292020-11-25 Tom Tromey <tom@tromey.com>
1030
1031 * d-lang.c: Include parser-defs.h.
1032 * rust-lang.c: Include parser-defs.h.
1033 * c-lang.h: Do not include parser-defs.h.
1034
1c64f6cb
SM
10352020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * regcache.h (struct cached_reg): Remove typedef.
1038
2c20a601
JB
10392020-11-24 Joel Brobecker <brobecker@adacore.com>
1040
1041 * README: Fix the URL of the MPFR library.
1042
c609df64
JB
10432020-11-24 Joel Brobecker <brobecker@adacore.com>
1044
1045 * README: Document the --with-libgmp-prefix configure option.
1046
fa123c32
JB
10472020-11-24 Joel Brobecker <brobecker@adacore.com>
1048
1049 * NEWS: Add entry documenting support for DWARF-based fixed
1050 point types.
1051
0fb8bb02
JB
10522020-11-24 Joel Brobecker <brobecker@adacore.com>
1053
1054 * NEWS: Document that building GDB now requires GMP.
1055
4afa9fd9
JB
10562020-11-24 Joel Brobecker <brobecker@adacore.com>
1057
1058 * typeprint.c (print_type_scalar): Add handling of
1059 TYPE_CODE_FIXED_POINT.
1060
af619ce9
JB
10612020-11-24 Joel Brobecker <brobecker@adacore.com>
1062
1063 * valarith.c (fixed_point_binop): Replace the
1064 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1065 users accordingly.
1066
e6fcee3a
JB
10672020-11-24 Joel Brobecker <brobecker@adacore.com>
1068
1069 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1070 replacing fixed_point_scaling_factor. All callers updated
1071 throughout this project.
1072 (fixed_point_scaling_factor): Delete declaration.
1073 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1074 fixed_point_scaling_factor. Adjust implementation accordingly.
1075
d19937a7
JB
10762020-11-24 Joel Brobecker <brobecker@adacore.com>
1077
1078 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1079 replacing the fixed_point_type_base_type function. All callers
1080 updated throughout this project.
1081 (fixed_point_type_base_type): Remove declaration.
1082 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1083 fixed_point_type_base_type. Adjust implementation accordingly.
1084
2a12c336
JB
10852020-11-24 Joel Brobecker <brobecker@adacore.com>
1086
1087 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1088 New methods.
1089 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1090 (TYPE_FIXED_POINT_INFO): Delete macro.
1091 (allocate_fixed_point_type_info): Change return type to void.
1092 * gdbtypes.c (copy_type_recursive): Replace the use of
1093 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1094 (fixed_point_scaling_factor): Likewise.
1095 (allocate_fixed_point_type_info): Change return type to void.
1096 Adjust implementation accordingly.
1097 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1098 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1099
c9f0b43f
JB
11002020-11-24 Joel Brobecker <brobecker@adacore.com>
1101
1102 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1103 into one single gdb::array_view parameter.
1104 (gdb_mpz::write): Likewise.
1105 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1106 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1107 into one single gdb::array_view parameter.
1108 Adjust implementation accordingly.
1109 (gdb_mpz::write): Likewise.
1110 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1111 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1112 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1113
987b6703
JB
11142020-11-24 Joel Brobecker <brobecker@adacore.com>
1115
1116 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1117 Change return type to std::string. Update all callers.
1118 * gmp-utils.c (gmp_string_printf): Likewise.
1119
4fbb7cce
JB
11202020-11-24 Joel Brobecker <brobecker@adacore.com>
1121
1122 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1123 instead of mpq_set_ui to initialize our GMP rational.
1124
d6ab69dd
TV
11252020-11-23 Tom de Vries <tdevries@suse.de>
1126
1127 * debuginfod-support.c (debuginfod_source_query)
1128 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1129
dab72643
TT
11302020-11-21 Tom Tromey <tom@tromey.com>
1131
1132 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1133
c0ad05d5
SM
11342020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1137 Pass 2.0 to pow.
1138 (gdb_mpz_write_all_from_small): Likewise.
1139
a43b29c9
SM
11402020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1141
1142 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1143 of abs.
1144
ae41200b
NA
11452020-11-20 Nick Alcock <nick.alcock@oracle.com>
1146
1147 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1148 ctf_arc_open_by_name.
1149
139633c3
NA
11502020-11-20 Nick Alcock <nick.alcock@oracle.com>
1151
1152 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1153 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1154
cbbcd7a7
PA
11552020-11-20 Pedro Alves <pedro@palves.net>
1156
1157 * language.c (language_arch_info::lookup_primitive_type): Use
1158 gdb::function_view instead of gdb::function.
1159 (template language_lookup_primitive_type): Rename to ...
1160 (language_lookup_primitive_type_1): ... this, and make static.
1161 (language_lookup_primitive_type(const struct language_defn *,
1162 struct gdbarch *, const char *): Make non-template.
1163 (language_lookup_primitive_type(const struct language_defn *,
1164 struct gdbarch *, std::function<bool (struct type *)>): Make
1165 non-template and use gdb::function_view.
1166 * language.h (language_arch_info::lookup_primitive_type): Use
1167 gdb::function_view instead of std::function.
1168 (language_lookup_primitive_type): No longer template.
1169 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1170 lambda instead of a std::function.
1171
d5ef21c3
AA
11722020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1173
1174 PR tdep/26916
1175 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1176 and STOCFH.
1177
a5adb8f3
SM
11782020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1181
70125a45
SM
11822020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1185 in `loop_cb` parameter.
1186 * gdbarch.c: Re-generate.
1187 * gdbarch.h: Re-generate.
1188 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1189 parameter.
1190 * arch-utils.h (default_read_core_file_mappings): Likewise.
1191 * corelow.c (core_target::build_file_mappings): Likewise.
1192 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1193 (linux_core_info_proc_mappings): Likewise.
1194
a5c641b5
AB
11952020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1198 * NEWS: Mention new options.
1199 * f-array-walker.h: New file.
1200 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1201 (repack_array_slices): New static global.
1202 (show_repack_array_slices): New function.
1203 (fortran_array_slicing_debug): New static global.
1204 (show_fortran_array_slicing_debug): New function.
1205 (value_f90_subarray): Delete.
1206 (skip_undetermined_arglist): Delete.
1207 (class fortran_array_repacker_base_impl): New class.
1208 (class fortran_lazy_array_repacker_impl): New class.
1209 (class fortran_array_repacker_impl): New class.
1210 (fortran_value_subarray): Complete rewrite.
1211 (set_fortran_list): New static global.
1212 (show_fortran_list): Likewise.
1213 (_initialize_f_language): Register new commands.
1214 (fortran_adjust_dynamic_array_base_address_hack): New function.
1215 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1216 Declare.
1217 * f-valprint.c: Include 'f-array-walker.h'.
1218 (class fortran_array_printer_impl): New class.
1219 (f77_print_array_1): Delete.
1220 (f77_print_array): Delete.
1221 (fortran_print_array): New.
1222 (f_value_print_inner): Update to call fortran_print_array.
1223 * gdbtypes.c: Include 'f-lang.h'.
1224 (resolve_dynamic_type_internal): Call
1225 fortran_adjust_dynamic_array_base_address_hack.
1226
a15a5258
AB
12272020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * breakpoint.c (struct watch_options): New struct.
1230 (watch_option_defs): New static global.
1231 (make_watch_options_def_group): New function.
1232 (watch_maybe_just_location): Convert option parsing.
1233 (watch_command_completer): New function.
1234 (_initialize_breakpoint): Build help text using options mechanism.
1235
2e362716
AB
12362020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1239 (watch_command_1): Update parameter types. Convert locals to
1240 bool.
1241 (watch_command_wrapper): Change parameter type.
1242 (watch_maybe_just_location): Change locals to bool.
1243 (rwatch_command_wrapper): Update parameter type.
1244 (awatch_command_wrapper): Update parameter type.
1245 * breakpoint.h (watch_command_wrapper): Change parameter type.
1246 (rwatch_command_wrapper): Update parameter type.
1247 (awatch_command_wrapper): Update parameter type.
1248 * eval.c (fetch_subexp_value): Change parameter type.
1249 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1250 'false' not '0'.
1251 * value.h (fetch_subexp_value): Change parameter type in
1252 declaration.
1253
b3ff61f8
AB
12542020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1257 skip_spaces.
1258
5b7d45d3
KS
12592020-11-18 Keith Seitz <keiths@redhat.com>
1260
1261 * linux-tdep.c (dump_note_entry_p): Return true instead of
1262 checking `filename'.
1263
c44191f8
TV
12642020-11-18 Tom de Vries <tdevries@suse.de>
1265
1266 * debuginfod-support.c (debuginfod_source_query)
1267 (debuginfod_debuginfo_query): Also do early exit if
1268 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1269
5d8254e1
TV
12702020-11-18 Tom de Vries <tdevries@suse.de>
1271
1272 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1273 warning.
1274
584903d3
SM
12752020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1278 callers. Move doc here.
1279 * gdbtypes.c (get_array_bounds): Return bool
1280
6f2643db
AB
12812020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1284 assert.
1285 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1286 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1287 case to the default.
1288
037d7135
AB
12892020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * printcmd.c: Include 'safe-ctype.c'.
1292 (skip_over_slash_fmt): New function.
1293 (print_command_completer): Call skip_over_slash_fmt.
1294 (display_and_x_command_completer): New function.
1295 (_initialize_printcmd): Add command completion for 'x' and
1296 'display'.
1297
2b3cb400
PA
12982020-11-16 Pedro Alves <pedro@palves.net>
1299
1300 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1301 (get_prev_frame_always_1): ... to here.
1302 * inline-frame.c (inline_frame_this_id): Mention
1303 get_prev_frame_always_1 in comment.
1304
b74dbc20
JB
13052020-11-15 Joel Brobecker <brobecker@adacore.com>
1306
1307 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1308 handling.
1309 (value_less): Add fixed-point handling.
1310
0a12719e
JB
13112020-11-15 Joel Brobecker <brobecker@adacore.com>
1312
1313 * eval.c (binop_promote): Add fixed-point type handling.
1314 * valarith.c (fixed_point_binop): New function.
1315 (scalar_binop): Add fixed-point type handling.
1316 (value_neg): Add fixed-point type handling.
1317 * valops.c (value_cast_to_fixed_point): New function.
1318 (value_cast): Add fixed-point type handling.
1319
0c9150e4
JB
13202020-11-15 Joel Brobecker <brobecker@adacore.com>
1321
1322 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1323 range types.
1324 * c-typeprint.c (c_type_print_varspec_prefix)
1325 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1326 TYPE_CODE_FIXED_POINT handling.
1327 * p-typeprint.c (pascal_type_print_varspec_prefix)
1328 (pascal_type_print_varspec_suffix): Likewise.
1329 * typeprint.c (print_type_fixed_point): New function.
1330 * typeprint.h (print_type_fixed_point): Add declaration.
1331
b26daff9
JB
13322020-11-15 Joel Brobecker <brobecker@adacore.com>
1333
1334 * printcmd.c (print_scalar_formatted): Add fixed-point type
1335 handling when options->format is set.
1336
09584414
JB
13372020-11-15 Joel Brobecker <brobecker@adacore.com>
1338
1339 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1340 * dwarf2/read.c (get_dwarf2_rational_constant)
1341 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1342 (has_zero_over_zero_small_attribute): New functions.
1343 read_base_type, set_die_type): Add fixed-point type handling.
1344 * gdb-gdb.py.in: Add fixed-point type handling.
1345 * gdbtypes.c: #include "gmp-utils.h".
1346 (create_range_type, set_type_code): Add fixed-point type handling.
1347 (init_fixed_point_type): New function.
1348 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1349 (print_fixed_point_type_info): New function.
1350 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1351 handling.
1352 (fixed_point_type_storage): New typedef.
1353 (fixed_point_objfile_key): New static global.
1354 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1355 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1356 functions.
1357 * gdbtypes.h: #include "gmp-utils.h".
1358 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1359 (union type_specific) <fixed_point_info>: New field.
1360 (struct fixed_point_type_info): New struct.
1361 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1362 (init_fixed_point_type, is_fixed_point_type)
1363 (fixed_point_type_base_type, fixed_point_scaling_factor)
1364 (allocate_fixed_point_type_info): Add declarations.
1365 * valprint.c (generic_val_print_fixed_point): New function.
1366 (generic_value_print): Add fixed-point type handling.
1367 * value.c (value_as_address, unpack_long): Add fixed-point type
1368 handling.
1369
e55c6530
JB
13702020-11-15 Joel Brobecker <brobecker@adacore.com>
1371
1372 * utils.h (uinteger_pow): Add declaration.
1373 * utils.c (uinteger_pow): Moved here (without changes)...
1374 * valarith.c (uinteger_pow): ... from here.
1375
b34c74ab
JB
13762020-11-15 Joel Brobecker <brobecker@adacore.com>
1377
40d9d2fd 1378 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1379 * unittests/gmp-utils-selftests.c: New file.
1380 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1381 unittests/gmp-utils-selftests.c.
1382 (COMMON_SFILES) Add gmp-utils.c.
1383 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1384
1b4ac058
JB
13852020-11-15 Joel Brobecker <brobecker@adacore.com>
1386
1387 * configure.ac: Generate an error if a usable GMP library
1388 could not be found.
1389 * configure: Regenerate.
1390
2c947d9b
JB
13912020-11-15 Joel Brobecker <brobecker@adacore.com>
1392
1393 * configure.ac: Add support for --with-libgmp-prefix.
1394 * Makefile.in (LIBGMP): New variable.
1395 (CLIBS): Include $(LIBGMP).
1396 * configure, config.in: Regenerate
1397
9dd02fc0
AB
13982020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 PR cli/26879
1401 * f-exp.y (COMPLETE): New token.
1402 (exp): Two new rules for tab-completion.
1403 (saw_name_at_eof): New static global.
1404 (last_was_structop): Likewise.
1405 (yylex): Set new variables, and return COMPLETE token at the end
1406 of the input stream in some cases.
1407
758cb810
TT
14082020-11-14 Tom Tromey <tom@tromey.com>
1409
1410 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1411
749065b7
TT
14122020-11-14 Tom Tromey <tom@tromey.com>
1413
1414 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1415
2c5b1849
SM
14162020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1419
e8b2f0d9
TT
14202020-11-13 Tom Tromey <tom@tromey.com>
1421
1422 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1423 (convert_escape, parse_one_string): Constify.
1424
25f4c262
KS
14252020-11-13 Keith Seitz <keiths@redhat.com>
1426
1427 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1428 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1429 outside of ELF segments" warning for debugin
1430
9d3ab915
KS
14312020-11-13 Keith Seitz <keiths@redhat.com>
1432
1433 PR gdb/23034
1434 * elfread.c (elf_symfile_segments): Output a BFD file name
1435 for the "Loadable section ... outside of ELF segments" warning.
1436
9ecab40c
SM
14372020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 PR gdb/26835
1440 * arm-tdep.c (class arm_instruction_reader): New.
1441 (target_arm_instruction_reader): New.
1442 (arm_analyze_prologue): Add instruction reader parameter and use
1443 it. Use arm_expand_immediate.
1444 (class target_arm_instruction_reader): Adjust.
1445 (arm_skip_prologue): Adjust.
1446 (arm_expand_immediate): New.
1447 (arm_scan_prologue): Adjust.
1448 (arm_analyze_prologue_test): New.
1449 (class test_arm_instruction_reader): New.
1450
5a7cf527
AB
14512020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * f-lang.c (fortran_argument_convert): Add declaration. Add
1454 header comment, taken from f-lang.h. Make static.
1455 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1456 (fortran_argument_convert): Delete declaration.
1457
7bea47f0
AB
14582020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * ada-exp.y (find_primitive_type): Make parameter const.
1461 * ada-lang.c (enum ada_primitive_types): Delete.
1462 (ada_language::language_arch_info): Update.
1463 * c-lang.c (enum c_primitive_types): Delete.
1464 (c_language_arch_info): Update.
1465 (enum cplus_primitive_types): Delete.
1466 (cplus_language::language_arch_info): Update.
1467 * d-lang.c (enum d_primitive_types): Delete.
1468 (d_language::language_arch_info): Update.
1469 * f-lang.c (enum f_primitive_types): Delete.
1470 (f_language::language_arch_info): Update.
1471 * go-lang.c (enum go_primitive_types): Delete.
1472 (go_language::language_arch_info): Update.
1473 * language.c (auto_or_unknown_language::language_arch_info):
1474 Update.
1475 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1476 (language_string_char_type): Add header comment, call function in
1477 language_arch_info.
1478 (language_bool_type): Likewise
1479 (language_arch_info::bool_type): Define.
1480 (language_lookup_primitive_type_1): Delete.
1481 (language_lookup_primitive_type): Rewrite as a templated function
1482 to call function in language_arch_info, then instantiate twice.
1483 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1484 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1485 (language_arch_info::lookup_primitive_type): Define twice with
1486 different signatures.
1487 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1488 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1489 member function in language_arch_info.
1490 * language.h (language_arch_info): Complete rewrite.
1491 (language_lookup_primitive_type): Make templated.
1492 * m2-lang.c (enum m2_primitive_types): Delete.
1493 (m2_language::language_arch_info): Update.
1494 * opencl-lang.c (OCL_P_TYPE): Delete.
1495 (enum opencl_primitive_types): Delete.
1496 (opencl_type_data): Delete.
1497 (builtin_opencl_type): Delete.
1498 (lookup_opencl_vector_type): Update.
1499 (opencl_language::language_arch_info): Update, lots of content
1500 moved from...
1501 (build_opencl_types): ...here. This function is now deleted.
1502 (_initialize_opencl_language): Delete.
1503 * p-lang.c (enum pascal_primitive_types): Delete.
1504 (pascal_language::language_arch_info): Update.
1505 * rust-lang.c (enum rust_primitive_types): Delete.
1506 (rust_language::language_arch_info): Update.
1507
bf6e5d01
SM
15082020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1511 dwarf2_queue_guard.
1512
1350c3b4
SM
15132020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1516 comment.
1517
6f738b01
SM
15182020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * dwarf2/read.c (dwarf_read_debug_printf,
1521 dwarf_read_debug_printf_v): New macros, use throughout the file.
1522
10c19fad
SV
15232020-11-12 Shahab Vahedi <shahab@synopsys.com>
1524
10806efd 1525 PR tdep/27015
10c19fad
SV
1526 * arc-linux-tdep.c (collect_register): Populate "eret" by
1527 "pc" value from the regcache when asked for "pc" value.
1528
1f2624a3
TT
15292020-11-12 Tom Tromey <tom@tromey.com>
1530
1531 PR rust/26799:
1532 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1533 exist.
1534
ab33b152
AB
15352020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * features/Makefile (XMLTOC): Add rx.xml.
1538 (FEATURE_XMLFILES): Remove rx.xml.
1539 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1540 * features/rx.c: Regenerate.
1541 * features/rx.xml: Wrap in `target` tags, and reindent.
1542 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1543 structure.
1544 (maint_print_c_tdesc_opt_def): New typedef.
1545 (maint_print_c_tdesc_opt_defs): New static global.
1546 (make_maint_print_c_tdesc_options_def_group): New function.
1547 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1548 print single feature C file for target descriptions containing a
1549 single feature.
1550 (maint_print_c_tdesc_cmd_completer): New function.
1551 (_initialize_target_descriptions): Update call to register command
1552 completer, and include command line flag in help text.
1553
550820e1
AB
15542020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1557 numbers.
1558 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1559 enum values.
1560
baf20f76
TT
15612020-11-10 Tom Tromey <tom@tromey.com>
1562
1563 * value.h (internalvar_name): Update.
1564 * value.c (internalvar_name): Make return type const.
1565
caaece0e
TT
15662020-11-10 Tom Tromey <tom@tromey.com>
1567
1568 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1569 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1570 const.
1571
8e20b4be
TT
15722020-11-10 Tom Tromey <tom@tromey.com>
1573
1574 * objc-lang.h (value_nsstring): Update.
1575 * objc-lang.c (value_nsstring): Make "ptr" const.
1576
86775fab
AB
15772020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * expprint.c (print_subexp_funcall): Increment expression position
1580 after reading argument count.
1581 * f-lang.c (print_subexp_f): Skip over opcode before calling
1582 common function.
1583 (dump_subexp_body_f): Likewise.
1584
3fed4c0b
RG
15852020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1586
1587 PR python/26832
1588 * configure: Regenerate.
1589 * configure.ac: Check for python modules ctypes instead of
1590 itertools.
1591
ac3d4064
PA
15922020-11-06 Pedro Alves <pedro@palves.net>
1593
1594 * macroexp.c (struct macro_buffer): Split in two classes. Add
1595 uses adjusted.
1596 (struct shared_macro_buffer): New, factored out from struct
1597 macro_buffer.
1598 (struct growable_macro_buffer): New, factored out from struct
1599 macro_buffer.
1600 (set_token, get_comment, get_identifier, get_pp_number)
1601 (get_character_constant, get_string_literal, get_punctuator)
1602 (get_next_token_for_substitution): Constify parameters.
1603 (substitute_args): Constify locals.
1604
606decb2
TT
16052020-11-05 Tom Tromey <tom@tromey.com>
1606
1607 * dwarf2/read.c (read_cutu_die_from_dwo)
1608 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1609 (build_type_psymtabs_1): Update.
1610 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1611 parameter.
1612 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1613 Don't read section. Add assert.
1614
9c91c725
TT
16152020-11-04 Tom Tromey <tromey@adacore.com>
1616
1617 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1618
8d9fd3a1
TT
16192020-11-04 Tom Tromey <tromey@adacore.com>
1620
1621 * ada-typeprint.c (ada_print_type): Handle __T types.
1622
d8f62e84
TT
16232020-11-04 Tom Tromey <tromey@adacore.com>
1624
1625 * dwarf2/read.c (add_partial_symbol, process_die):
1626 Handle DW_TAG_array_type.
1627 (is_type_tag_for_partial): Add "lang" parameter.
1628 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1629
7ff5b937
TT
16302020-11-04 Tom Tromey <tromey@adacore.com>
1631
1632 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1633
10f6a3ad
TT
16342020-11-04 Tom Tromey <tromey@adacore.com>
1635
1636 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1637 array.
1638
b72795a8
TT
16392020-11-04 Tom Tromey <tromey@adacore.com>
1640
1641 * gdbtypes.c (update_static_array_size): Handle bit stride.
1642
24aa1b02
TT
16432020-11-04 Tom Tromey <tromey@adacore.com>
1644
1645 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1646
c9a28cbe
TT
16472020-11-04 Tom Tromey <tromey@adacore.com>
1648
1649 * ada-lang.c (ada_is_any_packed_array_type): New function.
1650 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1651
57567375
TT
16522020-11-04 Tom Tromey <tromey@adacore.com>
1653
1654 * dwarf2/read.c (recognize_bound_expression)
1655 (quirk_ada_thick_pointer): New functions.
1656 (read_array_type): Call quirk_ada_thick_pointer.
1657 (set_die_type): Add "skip_data_location" parameter.
1658 (quirk_ada_thick_pointer): New function.
1659 (process_structure_scope): Call quirk_ada_thick_pointer.
1660 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1661 (decode_packed_array_bitsize): Handle thick pointers without
1662 parallel types.
1663 (ada_is_gnat_encoded_packed_array_type): Rename from
1664 ada_is_packed_array_type.
1665 (ada_is_constrained_packed_array_type): Update.
1666 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1667 (ada_value_print_1): Use ada_get_decoded_value.
1668
a7400e44
TT
16692020-11-04 Tom Tromey <tromey@adacore.com>
1670
1671 * ada-lang.c (recursively_update_array_bitsize): New function.
1672 (decode_constrained_packed_array_type): Call it.
1673
75fd6a26
TT
16742020-11-04 Tom Tromey <tromey@adacore.com>
1675
1676 * ada-lang.c (to_fixed_array_type): Error if
1677 decode_constrained_packed_array_type returns NULL.
1678
93f9561e
TT
16792020-11-04 Tom Tromey <tromey@adacore.com>
1680
1681 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1682
257e02d8
TT
16832020-11-02 Tom Tromey <tromey@adacore.com>
1684
1685 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1686 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1687 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1688 * amd64-ravenscar-thread.c: New file.
1689 * amd64-ravenscar-thread.h: New file.
1690 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1691 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1692
74d877e5
AB
16932020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * main.c (execute_cmdargs): New function.
1696 (captured_main_1): Make use of execute_cmdargs.
1697
64aaad63
AB
16982020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * NEWS: Mention changes to config file search path.
1701 * main.c
1702
5b3d3560
TT
17032020-11-02 Tom Tromey <tromey@adacore.com>
1704
1705 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1706 (python_GdbModuleDef): Move earlier. Now static.
1707 (do_start_initialization): Consolidate some IS_PY3K blocks.
1708
dda83cd7
SM
17092020-11-02 Simon Marchi <simon.marchi@efficios.com>
1710
1711 * aarch64-linux-tdep.c: Fix indentation.
1712 * aarch64-ravenscar-thread.c: Fix indentation.
1713 * aarch64-tdep.c: Fix indentation.
1714 * aarch64-tdep.h: Fix indentation.
1715 * ada-lang.c: Fix indentation.
1716 * ada-lang.h: Fix indentation.
1717 * ada-tasks.c: Fix indentation.
1718 * ada-typeprint.c: Fix indentation.
1719 * ada-valprint.c: Fix indentation.
1720 * ada-varobj.c: Fix indentation.
1721 * addrmap.c: Fix indentation.
1722 * addrmap.h: Fix indentation.
1723 * agent.c: Fix indentation.
1724 * aix-thread.c: Fix indentation.
1725 * alpha-bsd-nat.c: Fix indentation.
1726 * alpha-linux-tdep.c: Fix indentation.
1727 * alpha-mdebug-tdep.c: Fix indentation.
1728 * alpha-nbsd-tdep.c: Fix indentation.
1729 * alpha-obsd-tdep.c: Fix indentation.
1730 * alpha-tdep.c: Fix indentation.
1731 * amd64-bsd-nat.c: Fix indentation.
1732 * amd64-darwin-tdep.c: Fix indentation.
1733 * amd64-linux-nat.c: Fix indentation.
1734 * amd64-linux-tdep.c: Fix indentation.
1735 * amd64-nat.c: Fix indentation.
1736 * amd64-obsd-tdep.c: Fix indentation.
1737 * amd64-tdep.c: Fix indentation.
1738 * amd64-windows-tdep.c: Fix indentation.
1739 * annotate.c: Fix indentation.
1740 * arc-tdep.c: Fix indentation.
1741 * arch-utils.c: Fix indentation.
1742 * arch/arm-get-next-pcs.c: Fix indentation.
1743 * arch/arm.c: Fix indentation.
1744 * arm-linux-nat.c: Fix indentation.
1745 * arm-linux-tdep.c: Fix indentation.
1746 * arm-nbsd-tdep.c: Fix indentation.
1747 * arm-pikeos-tdep.c: Fix indentation.
1748 * arm-tdep.c: Fix indentation.
1749 * arm-tdep.h: Fix indentation.
1750 * arm-wince-tdep.c: Fix indentation.
1751 * auto-load.c: Fix indentation.
1752 * auxv.c: Fix indentation.
1753 * avr-tdep.c: Fix indentation.
1754 * ax-gdb.c: Fix indentation.
1755 * ax-general.c: Fix indentation.
1756 * bfin-linux-tdep.c: Fix indentation.
1757 * block.c: Fix indentation.
1758 * block.h: Fix indentation.
1759 * blockframe.c: Fix indentation.
1760 * bpf-tdep.c: Fix indentation.
1761 * break-catch-sig.c: Fix indentation.
1762 * break-catch-syscall.c: Fix indentation.
1763 * break-catch-throw.c: Fix indentation.
1764 * breakpoint.c: Fix indentation.
1765 * breakpoint.h: Fix indentation.
1766 * bsd-uthread.c: Fix indentation.
1767 * btrace.c: Fix indentation.
1768 * build-id.c: Fix indentation.
1769 * buildsym-legacy.h: Fix indentation.
1770 * buildsym.c: Fix indentation.
1771 * c-typeprint.c: Fix indentation.
1772 * c-valprint.c: Fix indentation.
1773 * c-varobj.c: Fix indentation.
1774 * charset.c: Fix indentation.
1775 * cli/cli-cmds.c: Fix indentation.
1776 * cli/cli-decode.c: Fix indentation.
1777 * cli/cli-decode.h: Fix indentation.
1778 * cli/cli-script.c: Fix indentation.
1779 * cli/cli-setshow.c: Fix indentation.
1780 * coff-pe-read.c: Fix indentation.
1781 * coffread.c: Fix indentation.
1782 * compile/compile-cplus-types.c: Fix indentation.
1783 * compile/compile-object-load.c: Fix indentation.
1784 * compile/compile-object-run.c: Fix indentation.
1785 * completer.c: Fix indentation.
1786 * corefile.c: Fix indentation.
1787 * corelow.c: Fix indentation.
1788 * cp-abi.h: Fix indentation.
1789 * cp-namespace.c: Fix indentation.
1790 * cp-support.c: Fix indentation.
1791 * cp-valprint.c: Fix indentation.
1792 * cris-linux-tdep.c: Fix indentation.
1793 * cris-tdep.c: Fix indentation.
1794 * darwin-nat-info.c: Fix indentation.
1795 * darwin-nat.c: Fix indentation.
1796 * darwin-nat.h: Fix indentation.
1797 * dbxread.c: Fix indentation.
1798 * dcache.c: Fix indentation.
1799 * disasm.c: Fix indentation.
1800 * dtrace-probe.c: Fix indentation.
1801 * dwarf2/abbrev.c: Fix indentation.
1802 * dwarf2/attribute.c: Fix indentation.
1803 * dwarf2/expr.c: Fix indentation.
1804 * dwarf2/frame.c: Fix indentation.
1805 * dwarf2/index-cache.c: Fix indentation.
1806 * dwarf2/index-write.c: Fix indentation.
1807 * dwarf2/line-header.c: Fix indentation.
1808 * dwarf2/loc.c: Fix indentation.
1809 * dwarf2/macro.c: Fix indentation.
1810 * dwarf2/read.c: Fix indentation.
1811 * dwarf2/read.h: Fix indentation.
1812 * elfread.c: Fix indentation.
1813 * eval.c: Fix indentation.
1814 * event-top.c: Fix indentation.
1815 * exec.c: Fix indentation.
1816 * exec.h: Fix indentation.
1817 * expprint.c: Fix indentation.
1818 * f-lang.c: Fix indentation.
1819 * f-typeprint.c: Fix indentation.
1820 * f-valprint.c: Fix indentation.
1821 * fbsd-nat.c: Fix indentation.
1822 * fbsd-tdep.c: Fix indentation.
1823 * findvar.c: Fix indentation.
1824 * fork-child.c: Fix indentation.
1825 * frame-unwind.c: Fix indentation.
1826 * frame-unwind.h: Fix indentation.
1827 * frame.c: Fix indentation.
1828 * frv-linux-tdep.c: Fix indentation.
1829 * frv-tdep.c: Fix indentation.
1830 * frv-tdep.h: Fix indentation.
1831 * ft32-tdep.c: Fix indentation.
1832 * gcore.c: Fix indentation.
1833 * gdb_bfd.c: Fix indentation.
1834 * gdbarch.sh: Fix indentation.
1835 * gdbarch.c: Re-generate
1836 * gdbarch.h: Re-generate.
1837 * gdbcore.h: Fix indentation.
1838 * gdbthread.h: Fix indentation.
1839 * gdbtypes.c: Fix indentation.
1840 * gdbtypes.h: Fix indentation.
1841 * glibc-tdep.c: Fix indentation.
1842 * gnu-nat.c: Fix indentation.
1843 * gnu-nat.h: Fix indentation.
1844 * gnu-v2-abi.c: Fix indentation.
1845 * gnu-v3-abi.c: Fix indentation.
1846 * go32-nat.c: Fix indentation.
1847 * guile/guile-internal.h: Fix indentation.
1848 * guile/scm-cmd.c: Fix indentation.
1849 * guile/scm-frame.c: Fix indentation.
1850 * guile/scm-iterator.c: Fix indentation.
1851 * guile/scm-math.c: Fix indentation.
1852 * guile/scm-ports.c: Fix indentation.
1853 * guile/scm-pretty-print.c: Fix indentation.
1854 * guile/scm-value.c: Fix indentation.
1855 * h8300-tdep.c: Fix indentation.
1856 * hppa-linux-nat.c: Fix indentation.
1857 * hppa-linux-tdep.c: Fix indentation.
1858 * hppa-nbsd-nat.c: Fix indentation.
1859 * hppa-nbsd-tdep.c: Fix indentation.
1860 * hppa-obsd-nat.c: Fix indentation.
1861 * hppa-tdep.c: Fix indentation.
1862 * hppa-tdep.h: Fix indentation.
1863 * i386-bsd-nat.c: Fix indentation.
1864 * i386-darwin-nat.c: Fix indentation.
1865 * i386-darwin-tdep.c: Fix indentation.
1866 * i386-dicos-tdep.c: Fix indentation.
1867 * i386-gnu-nat.c: Fix indentation.
1868 * i386-linux-nat.c: Fix indentation.
1869 * i386-linux-tdep.c: Fix indentation.
1870 * i386-nto-tdep.c: Fix indentation.
1871 * i386-obsd-tdep.c: Fix indentation.
1872 * i386-sol2-nat.c: Fix indentation.
1873 * i386-tdep.c: Fix indentation.
1874 * i386-tdep.h: Fix indentation.
1875 * i386-windows-tdep.c: Fix indentation.
1876 * i387-tdep.c: Fix indentation.
1877 * i387-tdep.h: Fix indentation.
1878 * ia64-libunwind-tdep.c: Fix indentation.
1879 * ia64-libunwind-tdep.h: Fix indentation.
1880 * ia64-linux-nat.c: Fix indentation.
1881 * ia64-linux-tdep.c: Fix indentation.
1882 * ia64-tdep.c: Fix indentation.
1883 * ia64-tdep.h: Fix indentation.
1884 * ia64-vms-tdep.c: Fix indentation.
1885 * infcall.c: Fix indentation.
1886 * infcmd.c: Fix indentation.
1887 * inferior.c: Fix indentation.
1888 * infrun.c: Fix indentation.
1889 * iq2000-tdep.c: Fix indentation.
1890 * language.c: Fix indentation.
1891 * linespec.c: Fix indentation.
1892 * linux-fork.c: Fix indentation.
1893 * linux-nat.c: Fix indentation.
1894 * linux-tdep.c: Fix indentation.
1895 * linux-thread-db.c: Fix indentation.
1896 * lm32-tdep.c: Fix indentation.
1897 * m2-lang.c: Fix indentation.
1898 * m2-typeprint.c: Fix indentation.
1899 * m2-valprint.c: Fix indentation.
1900 * m32c-tdep.c: Fix indentation.
1901 * m32r-linux-tdep.c: Fix indentation.
1902 * m32r-tdep.c: Fix indentation.
1903 * m68hc11-tdep.c: Fix indentation.
1904 * m68k-bsd-nat.c: Fix indentation.
1905 * m68k-linux-nat.c: Fix indentation.
1906 * m68k-linux-tdep.c: Fix indentation.
1907 * m68k-tdep.c: Fix indentation.
1908 * machoread.c: Fix indentation.
1909 * macrocmd.c: Fix indentation.
1910 * macroexp.c: Fix indentation.
1911 * macroscope.c: Fix indentation.
1912 * macrotab.c: Fix indentation.
1913 * macrotab.h: Fix indentation.
1914 * main.c: Fix indentation.
1915 * mdebugread.c: Fix indentation.
1916 * mep-tdep.c: Fix indentation.
1917 * mi/mi-cmd-catch.c: Fix indentation.
1918 * mi/mi-cmd-disas.c: Fix indentation.
1919 * mi/mi-cmd-env.c: Fix indentation.
1920 * mi/mi-cmd-stack.c: Fix indentation.
1921 * mi/mi-cmd-var.c: Fix indentation.
1922 * mi/mi-cmds.c: Fix indentation.
1923 * mi/mi-main.c: Fix indentation.
1924 * mi/mi-parse.c: Fix indentation.
1925 * microblaze-tdep.c: Fix indentation.
1926 * minidebug.c: Fix indentation.
1927 * minsyms.c: Fix indentation.
1928 * mips-linux-nat.c: Fix indentation.
1929 * mips-linux-tdep.c: Fix indentation.
1930 * mips-nbsd-tdep.c: Fix indentation.
1931 * mips-tdep.c: Fix indentation.
1932 * mn10300-linux-tdep.c: Fix indentation.
1933 * mn10300-tdep.c: Fix indentation.
1934 * moxie-tdep.c: Fix indentation.
1935 * msp430-tdep.c: Fix indentation.
1936 * namespace.h: Fix indentation.
1937 * nat/fork-inferior.c: Fix indentation.
1938 * nat/gdb_ptrace.h: Fix indentation.
1939 * nat/linux-namespaces.c: Fix indentation.
1940 * nat/linux-osdata.c: Fix indentation.
1941 * nat/netbsd-nat.c: Fix indentation.
1942 * nat/x86-dregs.c: Fix indentation.
1943 * nbsd-nat.c: Fix indentation.
1944 * nbsd-tdep.c: Fix indentation.
1945 * nios2-linux-tdep.c: Fix indentation.
1946 * nios2-tdep.c: Fix indentation.
1947 * nto-procfs.c: Fix indentation.
1948 * nto-tdep.c: Fix indentation.
1949 * objfiles.c: Fix indentation.
1950 * objfiles.h: Fix indentation.
1951 * opencl-lang.c: Fix indentation.
1952 * or1k-tdep.c: Fix indentation.
1953 * osabi.c: Fix indentation.
1954 * osabi.h: Fix indentation.
1955 * osdata.c: Fix indentation.
1956 * p-lang.c: Fix indentation.
1957 * p-typeprint.c: Fix indentation.
1958 * p-valprint.c: Fix indentation.
1959 * parse.c: Fix indentation.
1960 * ppc-linux-nat.c: Fix indentation.
1961 * ppc-linux-tdep.c: Fix indentation.
1962 * ppc-nbsd-nat.c: Fix indentation.
1963 * ppc-nbsd-tdep.c: Fix indentation.
1964 * ppc-obsd-nat.c: Fix indentation.
1965 * ppc-ravenscar-thread.c: Fix indentation.
1966 * ppc-sysv-tdep.c: Fix indentation.
1967 * ppc64-tdep.c: Fix indentation.
1968 * printcmd.c: Fix indentation.
1969 * proc-api.c: Fix indentation.
1970 * producer.c: Fix indentation.
1971 * producer.h: Fix indentation.
1972 * prologue-value.c: Fix indentation.
1973 * prologue-value.h: Fix indentation.
1974 * psymtab.c: Fix indentation.
1975 * python/py-arch.c: Fix indentation.
1976 * python/py-bpevent.c: Fix indentation.
1977 * python/py-event.c: Fix indentation.
1978 * python/py-event.h: Fix indentation.
1979 * python/py-finishbreakpoint.c: Fix indentation.
1980 * python/py-frame.c: Fix indentation.
1981 * python/py-framefilter.c: Fix indentation.
1982 * python/py-inferior.c: Fix indentation.
1983 * python/py-infthread.c: Fix indentation.
1984 * python/py-objfile.c: Fix indentation.
1985 * python/py-prettyprint.c: Fix indentation.
1986 * python/py-registers.c: Fix indentation.
1987 * python/py-signalevent.c: Fix indentation.
1988 * python/py-stopevent.c: Fix indentation.
1989 * python/py-stopevent.h: Fix indentation.
1990 * python/py-threadevent.c: Fix indentation.
1991 * python/py-tui.c: Fix indentation.
1992 * python/py-unwind.c: Fix indentation.
1993 * python/py-value.c: Fix indentation.
1994 * python/py-xmethods.c: Fix indentation.
1995 * python/python-internal.h: Fix indentation.
1996 * python/python.c: Fix indentation.
1997 * ravenscar-thread.c: Fix indentation.
1998 * record-btrace.c: Fix indentation.
1999 * record-full.c: Fix indentation.
2000 * record.c: Fix indentation.
2001 * reggroups.c: Fix indentation.
2002 * regset.h: Fix indentation.
2003 * remote-fileio.c: Fix indentation.
2004 * remote.c: Fix indentation.
2005 * reverse.c: Fix indentation.
2006 * riscv-linux-tdep.c: Fix indentation.
2007 * riscv-ravenscar-thread.c: Fix indentation.
2008 * riscv-tdep.c: Fix indentation.
2009 * rl78-tdep.c: Fix indentation.
2010 * rs6000-aix-tdep.c: Fix indentation.
2011 * rs6000-lynx178-tdep.c: Fix indentation.
2012 * rs6000-nat.c: Fix indentation.
2013 * rs6000-tdep.c: Fix indentation.
2014 * rust-lang.c: Fix indentation.
2015 * rx-tdep.c: Fix indentation.
2016 * s12z-tdep.c: Fix indentation.
2017 * s390-linux-tdep.c: Fix indentation.
2018 * score-tdep.c: Fix indentation.
2019 * ser-base.c: Fix indentation.
2020 * ser-mingw.c: Fix indentation.
2021 * ser-uds.c: Fix indentation.
2022 * ser-unix.c: Fix indentation.
2023 * serial.c: Fix indentation.
2024 * sh-linux-tdep.c: Fix indentation.
2025 * sh-nbsd-tdep.c: Fix indentation.
2026 * sh-tdep.c: Fix indentation.
2027 * skip.c: Fix indentation.
2028 * sol-thread.c: Fix indentation.
2029 * solib-aix.c: Fix indentation.
2030 * solib-darwin.c: Fix indentation.
2031 * solib-frv.c: Fix indentation.
2032 * solib-svr4.c: Fix indentation.
2033 * solib.c: Fix indentation.
2034 * source.c: Fix indentation.
2035 * sparc-linux-tdep.c: Fix indentation.
2036 * sparc-nbsd-tdep.c: Fix indentation.
2037 * sparc-obsd-tdep.c: Fix indentation.
2038 * sparc-ravenscar-thread.c: Fix indentation.
2039 * sparc-tdep.c: Fix indentation.
2040 * sparc64-linux-tdep.c: Fix indentation.
2041 * sparc64-nbsd-tdep.c: Fix indentation.
2042 * sparc64-obsd-tdep.c: Fix indentation.
2043 * sparc64-tdep.c: Fix indentation.
2044 * stabsread.c: Fix indentation.
2045 * stack.c: Fix indentation.
2046 * stap-probe.c: Fix indentation.
2047 * stubs/ia64vms-stub.c: Fix indentation.
2048 * stubs/m32r-stub.c: Fix indentation.
2049 * stubs/m68k-stub.c: Fix indentation.
2050 * stubs/sh-stub.c: Fix indentation.
2051 * stubs/sparc-stub.c: Fix indentation.
2052 * symfile-mem.c: Fix indentation.
2053 * symfile.c: Fix indentation.
2054 * symfile.h: Fix indentation.
2055 * symmisc.c: Fix indentation.
2056 * symtab.c: Fix indentation.
2057 * symtab.h: Fix indentation.
2058 * target-float.c: Fix indentation.
2059 * target.c: Fix indentation.
2060 * target.h: Fix indentation.
2061 * tic6x-tdep.c: Fix indentation.
2062 * tilegx-linux-tdep.c: Fix indentation.
2063 * tilegx-tdep.c: Fix indentation.
2064 * top.c: Fix indentation.
2065 * tracefile-tfile.c: Fix indentation.
2066 * tracepoint.c: Fix indentation.
2067 * tui/tui-disasm.c: Fix indentation.
2068 * tui/tui-io.c: Fix indentation.
2069 * tui/tui-regs.c: Fix indentation.
2070 * tui/tui-stack.c: Fix indentation.
2071 * tui/tui-win.c: Fix indentation.
2072 * tui/tui-winsource.c: Fix indentation.
2073 * tui/tui.c: Fix indentation.
2074 * typeprint.c: Fix indentation.
2075 * ui-out.h: Fix indentation.
2076 * unittests/copy_bitwise-selftests.c: Fix indentation.
2077 * unittests/memory-map-selftests.c: Fix indentation.
2078 * utils.c: Fix indentation.
2079 * v850-tdep.c: Fix indentation.
2080 * valarith.c: Fix indentation.
2081 * valops.c: Fix indentation.
2082 * valprint.c: Fix indentation.
2083 * valprint.h: Fix indentation.
2084 * value.c: Fix indentation.
2085 * value.h: Fix indentation.
2086 * varobj.c: Fix indentation.
2087 * vax-tdep.c: Fix indentation.
2088 * windows-nat.c: Fix indentation.
2089 * windows-tdep.c: Fix indentation.
2090 * xcoffread.c: Fix indentation.
2091 * xml-syscall.c: Fix indentation.
2092 * xml-tdesc.c: Fix indentation.
2093 * xstormy16-tdep.c: Fix indentation.
2094 * xtensa-config.c: Fix indentation.
2095 * xtensa-linux-nat.c: Fix indentation.
2096 * xtensa-linux-tdep.c: Fix indentation.
2097 * xtensa-tdep.c: Fix indentation.
2098
e1f57067
AB
20992020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2100 Craig Blackmore <craig.blackmore@embecosm.com>
2101
2102 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2103 as an unsigned value.
2104
ae7754b2
TT
21052020-11-01 Tom Tromey <tom@tromey.com>
2106
2107 * dbxread.c (dbx_end_psymtab): Update.
2108 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2109 (build_type_psymtabs_reader): Update.
2110 * xcoffread.c (xcoff_end_psymtab): Update.
2111 * ctfread.c (scan_partial_symbols): Update.
2112 * psymtab.c (sort_pst_symbols): Remove.
2113 (partial_symtab::end): Rename from end_psymtab_common. Inline
2114 sort_pst_symbols.
2115 * psympriv.h (struct partial_symtab) <end>: New method.
2116 (end_psymtab_common): Don't declare.
2117
0684bb51
TT
21182020-11-01 Tom Tromey <tom@tromey.com>
2119
2120 * symmisc.c (count_psyms): New function.
2121 (print_objfile_statistics): Use it.
2122 * psymtab.c (append_psymbol_to_list): Remove.
2123 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2124 * objfiles.h (struct objstats) <n_psyms>: Remove.
2125
089002bb
TT
21262020-11-01 Tom Tromey <tom@tromey.com>
2127
2128 * dbxread.c (dbx_end_psymtab): Update.
2129 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2130 (build_type_psymtabs_reader): Update.
2131 * xcoffread.c (xcoff_end_psymtab): Update.
2132 * ctfread.c (scan_partial_symbols): Update.
2133 * psympriv.h (end_psymtab_common): Update.
2134 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2135 (sort_pst_symbols): Likewise.
2136
525454d6
TT
21372020-11-01 Tom Tromey <tom@tromey.com>
2138
2139 * dbxread.c (dbx_symfile_read): Update.
2140 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2141 * xcoffread.c (xcoff_initial_scan): Update.
2142 * psympriv.h (init_psymbol_list): Don't declare.
2143 * psymtab.c (init_psymbol_list): Remove.
2144
60bd1d53
JB
21452020-11-01 Joel Brobecker <brobecker@adacore.com>
2146
2147 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2148 gnat_encoded_fixed_type_info. Update all callers.
2149
db99d0d0
JB
21502020-11-01 Joel Brobecker <brobecker@adacore.com>
2151
2152 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2153 line too long.
2154
75f24e86
JB
21552020-11-01 Joel Brobecker <brobecker@adacore.com>
2156
2157 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2158 cast_from_fixed. Update all callers.
2159 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2160 Update all callers.
2161 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2162 Update all callers.
2163 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2164 ada_scaling_factor.
2165 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2166 to print_gnat_encoded_fixed_point_type.
2167 * ada-valprint.c: Likewise.
2168
4f0469cd
AB
21692020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2172 (debug_prefixed_printf): Add check of debug_displaced flag.
2173 * linux-nat.c (linux_nat_debug_printf): Add check of
2174 debug_linux_nat flag.
2175
17417fb0
SM
21762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * infrun.c (infrun_debug_printf_1): Remove.
2179 (displaced_debug_printf_1): Remove.
2180 (stop_all_threads): Use debug_prefixed_printf.
2181 * infrun.h (infrun_debug_printf_1): Remove.
2182 (infrun_debug_printf): Use debug_prefixed_printf.
2183 (displaced_debug_printf_1): Remove.
2184 (displaced_debug_printf): Use debug_prefixed_printf.
2185 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2186 (linux_nat_debug_printf): Use debug_prefixed_printf.
2187
ad6dba1c
SM
21882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * configure: Re-generate.
2191 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2192 AC_LANG_PROGRAM.
2193
b6fb30ed
SM
21942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * configure: Re-generate.
2197
5164c117
SM
21982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 * configure: Re-generate.
2201
864ca435
SM
22022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * configure: Re-generate.
2205
b9442ec1
SM
22062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2207
2208 * configure: Re-generate.
2209
294f2697
SM
22102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * acinclude.m4: Modernize.
2213 * configure: Re-generate.
2214
5593a99a
SM
22152020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * configure.ac: Modernize.
2218 * configure: Re-generate.
2219
e41fda1d
SM
22202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2221
2222 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2223 * configure: Re-generate.
2224 * configure.ac: Remove AM_PROG_CC_STDC.
2225
91e1a0ed
SM
22262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2229 AC_CANONICAL_SYSTEM.
2230 * configure: Re-generate.
2231
136821d9
SM
22322020-10-30 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * infrun.h (displaced_debug_printf): New macro. Replace
2235 displaced debug prints throughout to use it.
2236 (displaced_debug_printf_1): New declaration.
2237 (displaced_step_dump_bytes): Return string, remove ui_file
2238 parameter, update all callers.
2239 * infrun.c (displaced_debug_printf_1): New function.
2240 (displaced_step_dump_bytes): Return string, remove ui_file
2241 parameter
2242
aa2045e7
SM
22432020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2244
2245 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2246
b1ec2735
TT
22472020-10-30 Tom Tromey <tromey@adacore.com>
2248
2249 * Makefile.in (stamp-init): Depend on config.status.
2250
b78b3a29
TBA
22512020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252
2253 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2254
d70bdd3c
PA
22552020-10-30 Pedro Alves <pedro@palves.net>
2256
2257 * thread.c (lookup_selected_frame): Move ...
2258 * frame.c (lookup_selected_frame): ... here.
2259
79952e69
PA
22602020-10-30 Pedro Alves <pedro@palves.net>
2261
2262 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2263 * frame.c
2264 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2265 Use save_selected_frame. Save language as well.
2266 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2267 Use restore_selected_frame, and restore language as well.
2268 (selected_frame_id, selected_frame_level): New.
2269 (selected_frame): Update comments.
2270 (save_selected_frame, restore_selected_frame): New.
2271 (get_selected_frame): Use lookup_selected_frame.
2272 (get_selected_frame_if_set): Delete.
2273 (select_frame): Record selected_frame_level and selected_frame_id.
2274 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2275 fields.
2276 (get_selected_frame): Make 'message' parameter optional.
2277 (get_selected_frame_if_set): Delete declaration.
2278 (select_frame): Update comments.
2279 (save_selected_frame, restore_selected_frame)
2280 (lookup_selected_frame): Declare.
2281 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2282 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2283 New field.
2284 (save_infcall_control_state): Use save_selected_frame.
2285 (restore_selected_frame): Delete.
2286 (restore_infcall_control_state): Use restore_selected_frame.
2287 * stack.c (select_frame_command_core, frame_command_core): Use
2288 get_selected_frame.
2289 * thread.c (restore_selected_frame): Rename to ...
2290 (lookup_selected_frame): ... this and make extern. Select the
2291 current frame if the frame level is -1.
2292 (scoped_restore_current_thread::restore): Also restore the
2293 language.
2294 (scoped_restore_current_thread::~scoped_restore_current_thread):
2295 Don't try/catch.
2296 (scoped_restore_current_thread::scoped_restore_current_thread):
2297 Save the language as well. Use save_selected_frame.
2298
58103c33
SM
22992020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2302 documentation.
2303 * gdbarch.h: Re-generate.
2304
40a53766
SM
23052020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2308 parameter.
2309 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2310 Likewise.
2311 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2312 Likewise.
2313 * arch-utils.c (default_displaced_step_hw_singlestep):
2314 Likewise.
2315 * arch-utils.h (default_displaced_step_hw_singlestep):
2316 Likewise.
2317 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2318 Likewise.
2319 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2320 Likewise.
2321 * gdbarch.c: Re-generate.
2322 * gdbarch.h: Re-generate.
2323 * infrun.c (resume_1): Adjust.
2324
8407f91b
TT
23252020-10-29 Tom Tromey <tom@tromey.com>
2326
2327 * progspace.c (program_space::~program_space): Don't call
2328 exec_close.
2329
5008b3b2
TT
23302020-10-29 Tom Tromey <tom@tromey.com>
2331
2332 * exec.c (exec_target::close): Don't change current program
2333 space.
2334
d9eebde0
TT
23352020-10-29 Tom Tromey <tom@tromey.com>
2336
2337 * symfile.c (add_symbol_file_command): Update.
2338 * exec.c (program_space::add_target_sections): Rename.
2339 * symfile-mem.c (symbol_file_add_from_memory): Update.
2340 * progspace.h (struct program_space) <add_target_sections>:
2341 Declare new overload.
2342 * exec.h (add_target_sections_of_objfile): Don't declare.
2343
3769e227
TT
23442020-10-29 Tom Tromey <tom@tromey.com>
2345
2346 * solib.c (solib_map_sections): Update.
2347 * exec.c (program_space::add_target_sections): Now a method.
2348 (exec_file_attach): Update.
2349 * exec.h (add_target_sections): Don't declare.
2350 * progspace.h (struct program_space) <add_target_sections>:
2351 Declare.
2352
2a3f84af
TT
23532020-10-29 Tom Tromey <tom@tromey.com>
2354
2355 * progspace.h (struct program_space) <remove_target_sections>:
2356 Declare.
2357 * exec.c (program_space::remove_target_sections): Now a method.
2358 * exec.h (remove_target_sections): Don't declare.
2359
004eecfd
TT
23602020-10-29 Tom Tromey <tom@tromey.com>
2361
2362 * inferior.c (delete_inferior): Update.
2363 * progspace.c (program_space::empty): Rename from
2364 program_space_empty_p. Return bool.
2365 * progspace.h (struct program_space) <empty>: New method.
2366 (program_space_empty_p): Don't declare.
2367
e39fb971
TT
23682020-10-29 Tom Tromey <tom@tromey.com>
2369
2370 * progspace.c (program_space::~program_space): Don't call
2371 clear_program_space_solib_cache.
2372 (program_space::clear_solib_cache): Rename from
2373 clear_solib_cache.
2374 * solib.c (handle_solib_event): Update.
2375 * progspace.h (struct program_space) <clear_solib_cache>: New
2376 method.
2377 (clear_program_space_solib_cache): Don't declare.
2378
a42d7dd8
TT
23792020-10-29 Tom Tromey <tom@tromey.com>
2380
2381 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2382 * target.c (info_target_command): Update.
2383 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2384 (symbol_file_clear, reread_symbols): Update.
2385 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2386 * stabsread.c (scan_file_globals): Update.
2387 * solib.c (update_solib_list): Update.
2388 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2389 (svr4_fetch_objfile_link_map, enable_break)
2390 (svr4_relocate_main_executable)
2391 (svr4_iterate_over_objfiles_in_search_order): Update.
2392 * solib-frv.c (lm_base, enable_break)
2393 (frv_relocate_main_executable): Update.
2394 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2395 (frv_fetch_objfile_link_map): Update.
2396 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2397 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2398 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2399 * remote.c (remote_target::get_offsets): Update.
2400 (remote_target::start_remote)
2401 (extended_remote_target::post_attach): Update.
2402 * objfiles.c (entry_point_address_query): Update.
2403 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2404 * minsyms.c (get_symbol_leading_char): Update.
2405 * frame.c (inside_main_func): Update.
2406 * progspace.h (symfile_objfile): Remove macro.
2407
19f6550e
TT
24082020-10-29 Tom Tromey <tom@tromey.com>
2409
2410 * exec.c (exec_file_attach): Update.
2411 * progspace.c (program_space::exec_close): Update.
2412 * progspace.h (struct program_space) <ebfd>: Now a
2413 gdb_bfd_ref_ptr.
2414 <set_exec_bfd>: Change argument type.
2415 <exec_bfd>: Update.
2416
7e10abd1
TT
24172020-10-29 Tom Tromey <tom@tromey.com>
2418
2419 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2420 * symfile.c (reread_symbols): Update.
2421 * symfile-mem.c (add_symbol_file_from_memory_command)
2422 (add_vsyscall_page): Update.
2423 * source-cache.c (source_cache::get_plain_source_lines): Update.
2424 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2425 (svr4_current_sos_direct, svr4_exec_displacement)
2426 (svr4_relocate_main_executable): Update.
2427 (svr4_iterate_over_objfiles_in_search_order): Update.
2428 * solib-frv.c (enable_break2, enable_break): Update.
2429 * solib-dsbt.c (lm_base, enable_break): Update.
2430 * solib-darwin.c (find_program_interpreter)
2431 (darwin_solib_create_inferior_hook): Update.
2432 * sol-thread.c (rw_common, ps_pdmodel): Update.
2433 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2434 * remote.c (compare_sections_command)
2435 (remote_target::trace_set_readonly_regions): Update.
2436 * remote-sim.c (get_sim_inferior_data)
2437 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2438 (gdbsim_target_open, gdbsim_target::files_info): Update.
2439 * exec.h (exec_bfd): Remove macro.
2440 * progspace.c (initialize_progspace): Update.
2441 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2442 Update.
2443 * nto-procfs.c (nto_procfs_target::post_attach)
2444 (nto_procfs_target::create_inferior): Update.
2445 * maint.c (maintenance_info_sections): Update.
2446 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2447 Update.
2448 * infcmd.c (post_create_inferior): Update.
2449 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2450 (objfile_find_memory_regions): Update.
2451 * exec.c (validate_exec_file, exec_file_attach)
2452 (exec_read_partial_read_only, print_section_info): Update.
2453 * corelow.c (core_target_open): Update.
2454 * corefile.c (reopen_exec_file, validate_files): Update.
2455 * arm-tdep.c (gdb_print_insn_arm): Update.
2456 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2457 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2458 methods.
2459
b55221ab
TT
24602020-10-29 Tom Tromey <tom@tromey.com>
2461
2462 * progspace.h (current_target_sections): Remove macro.
2463 * solib-svr4.c (scan_dyntag): Update.
2464 * solib-dsbt.c (scan_dyntag): Update.
2465 * exec.c (exec_target::close): Update.
2466 (add_target_sections, add_target_sections_of_objfile)
2467 (remove_target_sections, exec_target::get_section_table)
2468 (exec_target::files_info, set_section_command)
2469 (exec_set_section_address, exec_target::has_memory)
2470 (exec_target::has_memory): Update.
2471
5a36e715
TT
24722020-10-29 Tom Tromey <tom@tromey.com>
2473
2474 * source-cache.c (source_cache::get_plain_source_lines): Use
2475 current_program_space.
2476 * corefile.c (reopen_exec_file): Use current_program_space.
2477 * exec.c (exec_file_attach): Use current_program_space.
2478 * exec.h (exec_bfd_mtime): Remove.
2479
784c8592
TT
24802020-10-29 Tom Tromey <tom@tromey.com>
2481
2482 * gcore.c (default_gcore_mach): Remove.
2483 (create_gcore_bfd): Update.
2484
8a4f1402
TT
24852020-10-29 Tom Tromey <tom@tromey.com>
2486
2487 * progspace.c (program_space::exec_close): New method, from
2488 exec_close in exec.c.
2489 * exec.c (exec_close): Move to progspace.c.
2490 (exec_target::close, exec_file_attach): Update.
2491 * progspace.h (struct program_space) <exec_close>: Declare
2492 method.
2493
c20cb686
TT
24942020-10-29 Tom Tromey <tom@tromey.com>
2495
2496 * progspace.h (struct program_space) <exec_filename>: Rename from
2497 pspace_exec_filename. Now a unique_xmalloc_ptr.
2498 * inferior.c (print_selected_inferior): Update.
2499 (print_inferior): Update.
2500 * mi/mi-main.c (print_one_inferior): Update.
2501 * exec.h (exec_filename): Remove macro.
2502 * corefile.c (get_exec_file): Update.
2503 * exec.c (exec_close): Update.
2504 (exec_file_attach): Update.
2505 * progspace.c (clone_program_space): Update.
2506 (print_program_space): Update.
2507
6be2a9ab
TT
25082020-10-29 Tom Tromey <tom@tromey.com>
2509
2510 * target-section.h (struct target_section): Add constructor.
2511 * exec.c (build_section_table, add_target_sections_of_objfile):
2512 Update.
2513 * corelow.c (core_target::build_file_mappings): Update.
2514
cfaa8f76
TBA
25152020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2516
2517 PR gdb/19318
2518 * inferior.c (detach_inferior_command): Restore the current thread.
2519 (kill_inferior_command): Ditto.
2520
1b00ef06
TV
25212020-10-28 Tom de Vries <tdevries@suse.de>
2522
2523 PR symtab/26772
2524 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2525 map, check it in the "best match" loop.
2526
7f40ce1a
SM
25272020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 * m32c-tdep.c: Remove unused includes.
2530
5eb9e3f5
SM
25312020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * xtensa-tdep.c: Remove includes.
2534
b1d4d8d1
TBA
25352020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2536
2537 * breakpoint.c (struct condition_command_opts): New struct.
2538 (condition_command_option_defs): New static global.
2539 (make_condition_command_options_def_group): New function.
2540 (condition_completer): Update to consider the '-force' flag.
2541 (condition_command): Use gdb::option for the '-force' flag.
2542
bd24c5d6
TV
25432020-10-27 Tom de Vries <tdevries@suse.de>
2544
2545 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2546 symbols in section check.
2547
61eb46a4
TV
25482020-10-27 Tom de Vries <tdevries@suse.de>
2549
2550 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2551
733d554a
TBA
25522020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2553
2554 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2555 * breakpoint.c: Update the help text of the 'condition' and 'break'
2556 commands.
2557 (set_breakpoint_condition): Take a new bool parameter
2558 to control whether condition definition should be forced even when
2559 the condition expression is invalid in all of the current locations.
2560 (condition_command): Update the call to 'set_breakpoint_condition'.
2561 (find_condition_and_thread): Take the "-force-condition" flag into
2562 account.
2563 * linespec.c (linespec_keywords): Add "-force-condition" as an
2564 element.
2565 (FORCE_KEYWORD_INDEX): New #define.
2566 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2567 as a keyword.
2568 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2569 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2570 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2571 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2572
b5fa468f
TBA
25732020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2574
2575 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2576 * breakpoint.c (set_breakpoint_location_condition): New function.
2577 (set_breakpoint_condition): Disable a breakpoint location if parsing
2578 the condition string gives an error.
2579 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2580 (build_target_condition_list): Ditto.
2581 (build_target_command_list): Ditto.
2582 (build_bpstat_chain): Ditto.
2583 (print_one_breakpoint_location): Ditto.
2584 (print_one_breakpoint): Ditto.
2585 (breakpoint_1): Ditto.
2586 (bp_location::bp_location): Ditto.
2587 (locations_are_equal): Ditto.
2588 (update_breakpoint_locations): Ditto.
2589 (enable_disable_bp_num_loc): Ditto.
2590 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2591 (find_condition_and_thread_for_sals): New static function.
2592 (create_breakpoint): Call find_condition_and_thread_for_sals.
2593 (location_to_sals): Call find_condition_and_thread_for_sals instead
2594 of find_condition_and_thread.
2595
1c47ec3e
TV
25962020-10-26 Tom de Vries <tdevries@suse.de>
2597
2598 * dwarf2/read.c (process_full_comp_unit): Call
2599 dwarf2_find_base_address.
2600
6390859c
TT
26012020-10-26 Tom Tromey <tromey@adacore.com>
2602
2603 * gdbtypes.c (create_range_type): Revert previous patch. Add
2604 comment.
2605
d744f0f9
PA
26062020-10-26 Pedro Alves <pedro@palves.net>
2607
2608 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2609 (my_waitpid): Use gdb::handle_eintr.
2610
006811bc
SM
26112020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * acinclude.m4: Update ptrace.m4 path.
2614 * ptrace.m4: Moved to gdbsupport.
2615
c75e31a1
SM
26162020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2619 instead of target_gdbarch.
2620
32495661
SM
26212020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2622
2623 * jit.c (jit_reader_load_command): Pass current inferior.
2624 (jit_inferior_init): Change parameter type to inferior, use it.
2625 (jit_inferior_created): Remove.
2626 (jit_inferior_created_hook): Pass inferior parameter down.
2627 (_initialize_jit): Use jit_inferior_created_hook instead of
2628 jit_inferior_created.
2629 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2630 * infrun.c (follow_exec): Pass inferior to
2631 jit_inferior_created_hook.
2632
3f66685e
SM
26332020-10-24 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2636 parameter and use it.
2637 (thread_db_inferior_created): Pass inferior argument.
2638
a0ff652f
SM
26392020-10-24 Simon Marchi <simon.marchi@efficios.com>
2640
2641 * aix-thread.c (aix_thread_inferior_created): Add inferior
2642 parameter.
2643 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2644 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2645 * jit.c (jit_inferior_created): Likewise.
2646 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2647 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2648 * observable.h (inferior_created): Likewise.
2649 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2650 * symfile-mem.c (add_vsyscall_page): Likewise.
2651 * infcmd.c (post_create_inferior): Pass inferior argument.
2652
3c67532c
JB
26532020-10-24 Joel Brobecker <brobecker@adacore.com>
2654
2655 GDB 10.1 released.
2656
8747316e
JB
26572020-10-23 Joel Brobecker <brobecker@adacore.com>
2658
2659 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2660 to ada_check_typedef.
2661
1a0ea399
AB
26622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * f-exp.y (f_parse): Rename to...
2665 (f_language::parser): ...this.
2666 * f-lang.c (f_get_encoding): Rename to...
2667 (f_language::get_encoding): ...this.
2668 (f_op_print_tab): Rename to...
2669 (f_language::op_print_tab): ...this.
2670 (exp_descriptor_f): Rename to...
2671 (f_language::exp_descriptor_tab): ...this.
2672 (class f_language): Moved to f-lang.h.
2673 (f_language::language_arch_info): New function, moved out of class
2674 declaration.
2675 (f_language::search_name_hash): Likewise.
2676 (f_language::lookup_symbol_nonlocal): Likewise.
2677 (f_language::get_symbol_name_matcher_inner): Likewise.
2678 * f-lang.h: Add 'valprint.h' include.
2679 (class f_language): Moved here from f-lang.c.
2680 * f-typeprint.c (f_type_print_args): Delete commented out
2681 declaration.
2682 (f_print_typedef): Rename to...
2683 (f_language::print_typedef): ...this.
2684 (f_print_type): Rename to...
2685 (f_language::print_type): ...this.
2686 (f_type_print_varspec_prefix): Delete declaration and rename to...
2687 (f_language::f_type_print_varspec_prefix): ...this.
2688 (f_type_print_varspec_suffix): Delete declaration and rename to...
2689 (f_language::f_type_print_varspec_suffix): ...this.
2690 (f_type_print_base): Delete declaration and rename to...
2691 (f_language::f_type_print_base): ...this.
2692 * f-valprint.c (f_value_print_inner): Rename to...
2693 (f_language::value_print_inner): ...this.
2694 * parse.c: Delete 'f-lang.h' include.
2695
88cefd9b
AB
26962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * language.h (language_defn::print_type): Add variable names in
2699 declaration, and update header comment.
2700
5399db93
AB
27012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * ada-lang.c (ada_language::demangle): Rename to...
2704 (ada_language::demangle_symbol): ...this.
2705 * c-lang.c (cplus_language::demangle): Rename to...
2706 (cplus_language::demangle_symbol): ...this.
2707 * d-lang.c (d_language::demangle): Rename to...
2708 (d_language::demangle_symbol): ...this.
2709 * f-lang.c (f_language::demangle): Rename to...
2710 (f_language::demangle_symbol): ...this.
2711 * go-lang.c (go_language::demangle): Rename to...
2712 (go_language::demangle_symbol): ...this.
2713 * language.c (language_demangle): Update call to demangle_symbol.
2714 (auto_or_unknown_language::demangle): Rename to...
2715 (auto_or_unknown_language::demangle_symbol): ...this.
2716 * language.h (language_defn::demangle): Rename to...
2717 (language_defn::demangle_symbol): ...this.
2718 * objc-lang.c (objc_language::demangle): Rename to...
2719 (objc_language::demangle_symbol): ...this.
2720 * rust-lang.c (rust_language::demangle): Rename to...
2721 (rust_language::demangle_symbol): ...this.
2722
4b2f86ef
AB
27232020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2726 (iterate_over_file_blocks): Replace use of macro with the macros
2727 definition.
2728
e74b39de
AB
27292020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2732 * valprint.c (maybe_print_array_index): Replace use of macro with
2733 the macros definition.
2734
00c696a6
AB
27352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2736
2737 * ada-lang.c (ada_language::print_array_index): Call value_print
2738 directly.
2739 * language.c (language_defn::print_array_index): Likewise.
2740 * language.h (LA_VALUE_PRINT): Delete.
2741 * valprint.c (value_print): Call value_print on the
2742 current_language directly.
2743
d3b67c56
AB
27442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2745
2746 * language.h (LA_PRINT_TYPEDEF): Delete.
2747 * typeprint.c (typedef_print): Call print_typedef directly on the
2748 current_language object.
2749
790e2a12
AB
27502020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * m2-exp.y (m2_parse): Rename to...
2753 (m2_language::parser): ...this. Update function signature.
2754 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2755 (m2_op_print): Rename to...
2756 (m2_language::op_print_tab): ...this, and make const.
2757 (exp_descriptor_modula2): Rename to...
2758 (m2_language::exp_descriptor_modula2): ...this.
2759 (class m2_language): Move to m2-lang.h.
2760 (m2_language::language_arch_info): New function, moved out of
2761 class declaration.
2762 (m2_language::printchar): New function, body from m2_printchar.
2763 (m2_language::printstr): New function, moved out of class
2764 declaration.
2765 (m2_language::emitchar): Likewise.
2766 * m2-lang.h (m2_parse): Delete declaration.
2767 (m2_print_typedef): Delete declaration.
2768 (m2_value_print_inner): Delete declaration.
2769 (class m2_language): Class declaration moved from m2-lang.c,
2770 larger functions are left in m2-lang.c.
2771 * m2-typeprint.c (m2_print_typedef): Rename to...
2772 (m2_language::print_typedef): ...this, and update function
2773 signature.
2774 * m2-valprint.c (m2_value_print_inner): Rename to...
2775 (m2_language::value_print_inner): ...this, replace use of
2776 LA_PRINT_STRING with a direct call to printstr member function,
2777 and update recursive call.
2778
b01175fc
AB
27792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * language.c (default_is_string_type_p): Delete, implementation
2782 moved into auto_or_unknown_language::is_string_type_p.
2783 (unk_op_print_tab): Moved into
2784 auto_or_unknown_language::opcode_print_table.
2785 (unknown_language_arch_info): Delete, implementation moved into
2786 auto_or_unknown_language::language_arch_info.
2787 (class auto_or_unknown_language): New class, member functions
2788 copied from unknown_language class, with some updates.
2789 (class unknown_language): Most member functions moved into
2790 auto_or_unknown_language class. Inherit from
2791 auto_or_unknown_language class.
2792 (class auto_language): Inherit from auto_or_unknown_language.
2793 Delete most member functions.
2794
1a97fe8c
HD
27952020-10-22 Hannes Domani <ssbssa@yahoo.de>
2796
2797 * stabsread.c (read_member_functions): Remove gdb_assert.
2798
6b9d0dfd
HD
27992020-10-22 Hannes Domani <ssbssa@yahoo.de>
2800
2801 * gdbtypes.c (init_complex_type): Check target type name.
2802
4b4bb603
SM
28032020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2804
2805 * target-debug.h (target_debug_print_struct_target_ops_p):
2806 Remove.
2807 (target_debug_print_async_callback_ftype_p): Remove.
2808 (target_debug_print_struct_trace_state_variable_p): Remove.
2809 (target_debug_print_struct_traceframe_info_p): Remove.
2810 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2811 (target_debug_print_enum_btrace_format): Remove.
2812 (target_debug_print_enum_info_proc_what): Remove.
2813 (target_debug_print_thread_info_pp): Remove.
2814
24f5300a
SM
28152020-10-22 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * target.h (struct target_ops) <make_corefile_notes>:
2818 Change return type to unique pointer.
2819 * target.c (dummy_make_corefile_notes): Likewise.
2820 * exec.c (struct exec_target) <make_corefile_notes>:
2821 Likewise.
2822 (exec_target::make_corefile_notes): Likewise.
2823 * procfs.c (class procfs_target) <make_corefile_notes>:
2824 Likewise.
2825 (procfs_do_thread_registers): Adjust to unique pointer.
2826 (struct procfs_corefile_thread_data): Add constructor.
2827 <note_data>: Change type to unique pointer.
2828 (procfs_corefile_thread_callback): Adjust to unique pointer.
2829 (procfs_target::make_corefile_notes): Change return type to
2830 unique pointer.
2831 * target-delegates.c: Re-generate.
2832 * gcore.c (write_gcore_file_1): Adjust.
2833 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2834 New.
2835
5fb4027f
TV
28362020-10-22 Tom de Vries <tdevries@suse.de>
2837
2838 * block.c (find_block_in_blockvector): Make sure the returned block
2839 contains pc.
2840
4a636814
SM
28412020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 PR gdb/26693
2844 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2845 parameter.
2846 (load_cu): Pass existing CU.
2847 (process_imported_unit_die): Likewise.
2848 (follow_die_offset): Likewise.
2849
1bd57575
LM
28502020-10-22 Luis Machado <luis.machado@linaro.org>
2851
2852 * corelow.c (core_target::xfer_partial): Also check for an empty
2853 m_core_unavailable_mappings vector.
2854
6b4c676c
AB
28552020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2858 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2859 * f-exp.y (arglist): Allow for a series of subranges.
2860 (subrange): Add cases for subranges with strides.
2861 * f-lang.c (value_f90_subarray): Catch use of array strides and
2862 throw an error.
2863 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2864
f2d8e4c5
AB
28652020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * expprint.c (print_subexp_standard): Change enum range_type to
2868 range_flag and rename variables to match.
2869 (dump_subexp_body_standard): Likewise.
2870 * expression.h (enum range_type): Rename to...
2871 (enum range_flag): ...this.
2872 (range_types): Rename to...
2873 (range_flags): ...this.
2874 * f-lang.c (value_f90_subarray): Change enum range_type to
2875 range_flag and rename variables to match.
2876 * parse.c (operator_length_standard): Likewise.
2877 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2878 range_type to range_flag.
2879 * rust-lang.c (rust_evaluate_funcall): Likewise.
2880 (rust_range): Likewise.
2881 (rust_compute_range): Likewise.
2882 (rust_subscript): Likewise.
2883
2f1b18db
AB
28842020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * expprint.c (print_subexp_standard): Update to reflect changes to
2887 enum range_type.
2888 (dump_subexp_body_standard): Likewise.
2889 * expression.h (enum range_type): Convert to a bit field enum, and
2890 make the enum unsigned.
2891 * f-exp.y (subrange): Update to reflect changes to enum
2892 range_type.
2893 * f-lang.c (value_f90_subarray): Likewise.
2894 * parse.c (operator_length_standard): Likewise.
2895 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2896 * rust-lang.c (rust_range): Likewise.
2897 (rust_compute_range): Likewise.
2898 (rust_subscript): Likewise.
2899
a46d1843
SM
29002020-10-21 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2903 (displaced_step_in_progress): Fix comment.
2904
c21f37a8
SM
29052020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2908 * gdbarch.c: Re-generate.
2909 * gdbarch.h: Re-generate.
2910 * gcore.c (write_gcore_file_1): Adjust.
2911 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2912 constructor.
2913 <note_data>: Change type to unique pointer.
2914 <abort_iteration>: Change type to bool.
2915 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2916 (fbsd_collect_thread_registers): Return void, adjust.
2917 (struct fbsd_corefile_thread_data): Add construtor.
2918 <note_data>: Change type to unique pointer.
2919 (fbsd_corefile_thread): Adjust.
2920 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2921 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2922 to unique pointer, adjust.
2923 (struct linux_collect_regset_section_cb_data): Add constructor.
2924 <note_data>: Change type to unique pointer.
2925 <abort_iteration>: Change type to bool.
2926 (linux_collect_thread_registers): Return void, adjust.
2927 (struct linux_corefile_thread_data): Add constructor.
2928 <note_data>: Change type to unique pointer.
2929 (linux_corefile_thread): Adjust.
2930 (linux_make_corefile_notes): Return unique pointer, adjust.
2931
07fbbd01
SM
29322020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2935 * gdbarch.c: Re-generate.
2936 * gdbarch.h: Re-generate.
2937 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2938 bool.
2939 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2940 Likewise.
2941 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2942 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2943 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2944 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2945
39535193
SM
29462020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * gdbarch.sh: Make generated predicates return bool.
2949 * gdbarch.c: Re-generate.
2950 * gdbarch.h: Re-generate.
2951
ad523d01
TT
29522020-10-20 Tom Tromey <tom@tromey.com>
2953
2954 * varobj-iter.h (struct varobj_item): Remove typedef.
2955
c4464ade
SM
29562020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * infrun.c (currently_stepping): Change int to bool
2959 (maybe_software_singlestep): Likewise.
2960 (show_stop_on_solib_events): Likewise.
2961 (stepping_past_nonsteppable_watchpoint): Likewise.
2962 (displaced_step_in_progress_any_inferior): Likewise.
2963 (displaced_step_in_progress_thread): Likewise.
2964 (keep_going_stepped_thread): Likewise.
2965 (thread_still_needs_step_over): Likewise.
2966 (start_step_over): Likewise.
2967 (do_target_resume): Likewise.
2968 (resume_1): Likewise.
2969 (clear_proceed_status): Likewise.
2970 (thread_still_needs_step_over_bp): Likewise.
2971 (proceed): Likewise.
2972 (switch_back_to_stepped_thread): Likewise.
2973 (adjust_pc_after_break): Likewise.
2974 (stepped_in_from): Likewise.
2975 (handle_stop_requested): Likewise.
2976 (handle_syscall_event): Likewise.
2977 (handle_no_resumed): Likewise.
2978 (handle_inferior_event): Likewise.
2979 (finish_step_over): Likewise.
2980 (handle_signal_stop): Likewise.
2981 (process_event_stop_test): Likewise.
2982
2eb20436
SM
29832020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2984
2985 * infrun.c (get_displaced_stepping_state): Fix comment.
2986
e0c45ded
AS
29872020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2988
2989 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2990
22cc388e
TT
29912020-10-19 Tom Tromey <tromey@adacore.com>
2992
2993 PR tui/26719
2994 * tui/tui-winsource.h (struct tui_source_window_base)
2995 <refresh_window>: Rename from refresh_pad.
2996 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2997 Rename from refresh_pad.
2998 (tui_source_window_base::show_source_content)
2999 (tui_source_window_base::do_scroll_horizontal): Update.
3000
3c6eb4d4
TBA
30012020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3002
3003 * thread.c (_initialize_thread): Fine-tune the help text of
3004 'info threads'.
3005
26703721
TBA
30062020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007
3008 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3009
61c26be8
MS
30102020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3011
3012 * breakpoint.c (handle_jit_event): Add an argument, change how
3013 `jit_event_handler` is called.
3014
932539d7
TT
30152020-10-17 Tom Tromey <tom@tromey.com>
3016
3017 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3018 (scan_xcoff_symtab): Update.
3019 * psymtab.h (class psymtab_storage) <global_psymbols,
3020 static_psymbols, current_global_psymbols,
3021 current_static_psymbols>: Remove.
3022 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3023 (match_partial_symbol, lookup_partial_symbol): Update.
3024 (print_partial_symbols): Change parameters.
3025 (dump_psymtab, recursively_search_psymtabs)
3026 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3027 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3028 (concat): Remove.
3029 (end_psymtab_common): Simplify.
3030 (append_psymbol_to_list): Change parameters.
3031 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3032 (init_psymbol_list): Simplify.
3033 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3034 * psympriv.h (struct partial_symtab) <empty>: New method.
3035 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3036 Remove.
3037 <global_psymbols, static_psymbols>: New members.
3038 <add_psymbol>: New methods.
3039 (add_psymbol_to_list): Don't declare.
3040 (psymbol_placement): Move earlier.
3041 * mdebugread.c (parse_partial_symbols): Update.
3042 (handle_psymbol_enumerators): Change parameters.
3043 (mdebug_expand_psymtab): Update.
3044 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3045 (add_partial_symbol): Update.
3046 * dwarf2/index-write.c (write_psymbols): Change parameters.
3047 (write_one_signatured_type): Update.
3048 (recursively_count_psymbols): Update.
3049 (recursively_write_psymbols): Update.
3050 (class debug_names) <recursively_write_psymbols>: Update.
3051 <write_psymbols>: Change parameters.
3052 <write_one_signatured_type>: Update.
3053 * dbxread.c (read_dbx_symtab): Update.
3054 (dbx_end_psymtab): Use partial_symtab::empty.
3055 * ctfread.c (struct ctf_context) <pst>: New member.
3056 (create_partial_symtab): Set it.
3057 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3058 (scan_partial_symbols): Use the psymtab's context. Update.
3059
cfabbd35
TT
30602020-10-17 Tom Tromey <tom@tromey.com>
3061
3062 * valprint.c (generic_value_print): Remove comment.
3063 * m2-valprint.c (m2_value_print_inner): Remove comment.
3064 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3065 type.
3066
520596f2
TV
30672020-10-17 Tom de Vries <tdevries@suse.de>
3068
3069 PR symtab/26317
3070 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3071 symbol main.
3072
76547ab3
TV
30732020-10-14 Tom de Vries <tdevries@suse.de>
3074
3075 PR gdb/26733
3076 * solib.c (solib_contains_address_p): Handle
3077 'solib->sections == nullptr'.
3078
d3a07122
SM
30792020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3080
3081 PR gdb/26642
3082 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3083 target can't do async.
3084 * target.c (target_wait): Assert that we don't pass
3085 TARGET_WNOHANG to a target that can't async.
3086
1b71cfcf
KR
30872020-10-13 Kamil Rytarowski <n54@gmx.com>
3088
3089 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3090 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3091 * alpha-bsd-nat.c: Adjust include.
3092 * alpha-bsd-tdep.h: Adjust comment.
3093 * alpha-nbsd-tdep.c: Rename to ...
3094 * alpha-netbsd-tdep.c: ... this, adjust include.
3095 * amd64-nbsd-nat.c: Rename to ...
3096 * amd64-netbsd-nat.c: ... this, adjust include.
3097 * amd64-nbsd-tdep.c: Rename to ...
3098 * amd64-netbsd-tdep.c: ... this, adjust include.
3099 * amd64-tdep.h: Adjust include.
3100 * arm-nbsd-nat.c: Rename to ...
3101 * arm-netbsd-nat.c: ... this, adjust include.
3102 * arm-nbsd-tdep.c: Rename to ...
3103 * arm-netbsd-tdep.c: ... this, adjust include.
3104 * arm-nbsd-tdep.h: Rename to ...
3105 * arm-netbsd-tdep.h: ... this, adjust include.
3106 * configure.nat: Adjust file lists.
3107 * configure.tgt: Likewise.
3108 * hppa-nbsd-nat.c: Rename to ...
3109 * hppa-netbsd-nat.c: ... this, adjust include.
3110 * hppa-nbsd-tdep.c: Rename to ...
3111 * hppa-netbsd-tdep.c: ... this, adjust include.
3112 * i386-nbsd-nat.c: Rename to ...
3113 * i386-netbsd-nat.c: ... this, adjust include.
3114 * i386-nbsd-tdep.c: Rename to ...
3115 * i386-netbsd-tdep.c: ... this, adjust include.
3116 * m68k-bsd-nat.c: Adjust include.
3117 * mips-nbsd-nat.c: Rename to ...
3118 * mips-netbsd-nat.c: ... this, adjust include.
3119 * mips-nbsd-tdep.c: Rename to ...
3120 * mips-netbsd-tdep.c: ... this, adjust include.
3121 * mips-nbsd-tdep.h: Rename to ...
3122 * mips-netbsd-tdep.h: ... this.
3123 * nbsd-nat.c: Rename to ...
3124 * netbsd-nat.c: ... this, adjust include.
3125 * nbsd-nat.h: Rename to ...
3126 * netbsd-nat.h: ... this, adjust include.
3127 * nbsd-tdep.c: Rename to ...
3128 * netbsd-tdep.c: ... this, adjust include.
3129 * nbsd-tdep.h: Rename to ...
3130 * netbsd-tdep.h: ... this.
3131 * ppc-nbsd-nat.c: Rename to ...
3132 * ppc-netbsd-nat.c: ... this, adjust include.
3133 * ppc-nbsd-tdep.c: Rename to ...
3134 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3135 * ppc-nbsd-tdep.h: Rename to ...
3136 * ppc-netbsd-tdep.h: ... this.
3137 * sh-nbsd-nat.c: Rename to ...
3138 * sh-netbsd-nat.c: ... this, adjust include.
3139 * sh-nbsd-tdep.c: Rename to ...
3140 * sh-netbsd-tdep.c: ... this, adjust include.
3141 * sparc-nbsd-nat.c: Rename to ...
3142 * sparc-netbsd-nat.c: ... this.
3143 * sparc-nbsd-tdep.c: Rename to ...
3144 * sparc-netbsd-tdep.c: ... this, adjust include.
3145 * sparc64-nbsd-nat.c: Rename to ...
3146 * sparc64-netbsd-nat.c: ... this.
3147 * sparc64-nbsd-tdep.c: Rename to ...
3148 * sparc64-netbsd-tdep.c: ... this, adjust include.
3149 * sparc64-tdep.h: Adjust comment.
3150 * vax-bsd-nat.c: Adjust include.
3151 * vax-nbsd-tdep.c: Rename to ...
3152 * vax-netbsd-tdep.c: ... this, adjust include.
3153
d7a78e5c
TT
31542020-10-12 Tom Tromey <tom@tromey.com>
3155
3156 * target.h (struct target_ops) <get_section_table>: Update.
3157 (target_get_section_table): Update.
3158 * target.c (target_get_section_table, target_section_by_addr)
3159 (memory_xfer_partial_1): Update.
3160 * target-section.h (target_section_table): Now an alias.
3161 * target-delegates.c: Rebuild.
3162 * target-debug.h (target_debug_print_target_section_table_p):
3163 Rename from target_debug_print_struct_target_section_table_p.
3164 * symfile.c (build_section_addr_info_from_section_table): Update.
3165 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3166 * solib-svr4.c (scan_dyntag): Update.
3167 * solib-dsbt.c (scan_dyntag): Update.
3168 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3169 Update.
3170 * record-full.c (record_full_core_target::xfer_partial): Update.
3171 * progspace.h (struct program_space) <target_sections>: Update.
3172 * exec.h (print_section_info): Update.
3173 * exec.c (exec_target::close, build_section_table)
3174 (add_target_sections, add_target_sections_of_objfile)
3175 (remove_target_sections, exec_on_vfork)
3176 (section_table_available_memory)
3177 (section_table_xfer_memory_partial)
3178 (exec_target::get_section_table, exec_target::xfer_partial)
3179 (print_section_info, set_section_command)
3180 (exec_set_section_address, exec_target::has_memory): Update.
3181 * corelow.c (core_target::build_file_mappings)
3182 (core_target::xfer_partial, core_target::info_proc_mappings)
3183 (core_target::info_proc_mappings): Update.
3184 * bfd-target.c (class target_bfd): Update
3185
eda214ce
TT
31862020-10-12 Tom Tromey <tom@tromey.com>
3187
3188 * progspace.c (program_space::~program_space): Don't call
3189 clear_section_table.
3190 * exec.h (clear_section_table): Don't declare.
3191 * exec.c (exec_target::close): Update.
3192 (clear_section_table): Remove.
3193
91840ee3
TT
31942020-10-12 Tom Tromey <tom@tromey.com>
3195
3196 * exec.c (add_target_sections_of_objfile): Simplify.
3197
2d128614
TT
31982020-10-12 Tom Tromey <tom@tromey.com>
3199
3200 * solib.c (solib_map_sections): Update.
3201 * record-full.c (record_full_core_open_1): Update.
3202 * exec.h (build_section_table): Return a target_section_table.
3203 * exec.c (exec_file_attach): Update.
3204 (build_section_table): Return a target_section_table.
3205 * corelow.c (core_target::core_target): Update.
3206 * bfd-target.c (target_bfd::target_bfd): Update.
3207
bb2a6777
TT
32082020-10-12 Tom Tromey <tom@tromey.com>
3209
3210 * target.c (target_section_by_addr, memory_xfer_partial_1):
3211 Update.
3212 * target-section.h (struct target_section_table): Use
3213 std::vector.
3214 * symfile.h (build_section_addr_info_from_section_table): Take a
3215 target_section_table.
3216 * symfile.c (build_section_addr_info_from_section_table): Take a
3217 target_section_table.
3218 * solist.h (struct so_list) <sections>: Change type.
3219 <sections_end>: Remove.
3220 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3221 (solib_contains_address_p): Update.
3222 * solib-svr4.c (scan_dyntag): Update.
3223 * solib-dsbt.c (scan_dyntag): Update.
3224 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3225 Update.
3226 * record-full.c (record_full_core_start, record_full_core_end):
3227 Remove.
3228 (record_full_core_sections): New global.
3229 (record_full_core_open_1, record_full_core_target::xfer_partial):
3230 Update.
3231 * exec.h (build_section_table, section_table_xfer_memory_partial)
3232 (add_target_sections): Take a target_section_table.
3233 * exec.c (exec_file_attach, clear_section_table): Update.
3234 (resize_section_table): Remove.
3235 (build_section_table, add_target_sections): Take a
3236 target_section_table.
3237 (add_target_sections_of_objfile, remove_target_sections)
3238 (exec_on_vfork): Update.
3239 (section_table_available_memory): Take a target_section_table.
3240 (section_table_read_available_memory): Update.
3241 (section_table_xfer_memory_partial): Take a target_section_table.
3242 (print_section_info, set_section_command)
3243 (exec_set_section_address, exec_target::has_memory): Update.
3244 * corelow.c (class core_target) <m_core_section_table,
3245 m_core_file_mappings>: Remove braces.
3246 <~core_target>: Remove.
3247 (core_target::core_target): Update.
3248 (core_target::~core_target): Remove.
3249 (core_target::build_file_mappings)
3250 (core_target::xfer_memory_via_mappings)
3251 (core_target::xfer_partial, core_target::info_proc_mappings):
3252 Update.
3253 * bfd-target.c (target_bfd::xfer_partial): Update.
3254 (target_bfd::target_bfd): Update.
3255 (target_bfd::~target_bfd): Remove.
3256
7b466b10
TT
32572020-10-12 Tom Tromey <tom@tromey.com>
3258
3259 * target.h (struct target_section, struct target_section_table):
3260 Move to target-section.h.
3261 * target-section.h: New file.
3262
87a37e5e
PA
32632020-10-12 Pedro Alves <pedro@palves.net>
3264
3265 PR exp/26602
3266 * valops.c (struct struct_field_searcher): New.
3267 (update_search_result): Rename to ...
3268 (struct_field_searcher::update_result): ... this. Simplify
3269 prototype. Record all found fields.
3270 (do_search_struct_field): Rename to ...
3271 (struct_field_searcher::search): ... this. Simplify prototype.
3272 Maintain stack of visited baseclass path. Call update_result for
3273 fields too. Keep searching fields in baseclasses instead of
3274 stopping at the first found field.
3275 (search_struct_field): Use struct_field_searcher. When looking
3276 for fields, report ambiguous access attempts.
3277
9370fd51
AB
32782020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * frame.c (inside_main_func): Check full symbols as well as
3281 minimal symbols.
3282
59c8a30b
JB
32832020-10-09 Joel Brobecker <brobecker@adacore.com>
3284
3285 * ada-lang.c (advance_wild_match): Rewrite the function's
3286 description. Change the type of target0, t0 and t1 to char.
3287
7c184d33
TT
32882020-10-09 Tom Tromey <tromey@adacore.com>
3289
3290 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3291
5c4258f4
TT
32922020-10-09 Tom Tromey <tromey@adacore.com>
3293
3294 * ada-lang.h (ada_encode): Return std::string.
3295 * ada-lang.c (ada_encode_1): Return std::string.
3296 (ada_encode): Likewise.
3297 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3298 Update.
3299 * ada-exp.y (block_lookup, write_var_or_type): Update.
3300
3d87245c
HD
33012020-10-09 Hannes Domani <ssbssa@yahoo.de>
3302
3303 PR exp/26714
3304 * printcmd.c (print_formatted): Handle void results as
3305 unformatted prints.
3306
bbb826f5
AB
33072020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * arch/aarch32.c (aarch32_create_target_description): Release the
3310 target_desc_up as late as possible.
3311 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3312 * arch/amd64.c (amd64_create_target_description): Likewise.
3313 * arch/arc.c (arc_create_target_description): Return a
3314 target_desc_up, don't release it.
3315 * arch/arc.h (arc_create_target_description): Update declaration.
3316 (arc_lookup_target_description): Move target_desc_up into the
3317 cache, and return a borrowed pointer.
3318 * arch/arm.c (arm_create_target_description): Release the
3319 target_desc_up as late as possible.
3320 * arch/i386.c (i386_create_target_description): Likewise.
3321 * arch/riscv.h (riscv_create_target_description): Update
3322 declaration to match definition.
3323 * arch/tic6x.c (tic6x_create_target_description): Release the
3324 target_desc_up as late as possible.
3325
361cb219
AB
33262020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3329 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3330
f5c4b229
JV
33312020-10-09 Jan Vrany <jan.vrany@labware.com>
3332
3333 * source.c (directory_command): Notify observers that "directories"
3334 parameter has changed.
3335
b2701685
TT
33362020-10-08 Tom Tromey <tom@tromey.com>
3337
3338 * cli/cli-cmds.c (print_disassembly): Style function name and
3339 addresses. Add _() wrappers.
3340
ada508b6
SV
33412020-10-08 Shahab Vahedi <shahab@synopsys.com>
3342
3343 * NEWS: Mention ARC support in GDBserver.
3344
51a948fd
AB
33452020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * arch/aarch32.c (aarch32_create_target_description): Release
3348 unique_ptr returned from allocate_target_description.
3349 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3350 * arch/amd64.c (amd64_create_target_description): Likewise.
3351 * arch/arc.c (arc_create_target_description): Likewise.
3352 * arch/arm.c (arm_create_target_description): Likewise.
3353 * arch/i386.c (i386_create_target_description): Likewise.
3354 * arch/riscv.c (riscv_create_target_description): Update return
3355 type. Handle allocate_target_description returning a unique_ptr.
3356 (riscv_lookup_target_description): Update to handle unique_ptr.
3357 * arch/tic6x.c (tic6x_create_target_description): Release
3358 unique_ptr returned from allocate_target_description.
3359 * features/microblaze-with-stack-protect.c: Regenerate.
3360 * features/microblaze.c: Regenerate.
3361 * features/mips-dsp-linux.c: Regenerate.
3362 * features/mips-linux.c: Regenerate.
3363 * features/mips64-dsp-linux.c: Regenerate.
3364 * features/mips64-linux.c: Regenerate.
3365 * features/nds32.c: Regenerate.
3366 * features/nios2.c: Regenerate.
3367 * features/or1k.c: Regenerate.
3368 * features/rs6000/powerpc-32.c: Regenerate.
3369 * features/rs6000/powerpc-32l.c: Regenerate.
3370 * features/rs6000/powerpc-403.c: Regenerate.
3371 * features/rs6000/powerpc-403gc.c: Regenerate.
3372 * features/rs6000/powerpc-405.c: Regenerate.
3373 * features/rs6000/powerpc-505.c: Regenerate.
3374 * features/rs6000/powerpc-601.c: Regenerate.
3375 * features/rs6000/powerpc-602.c: Regenerate.
3376 * features/rs6000/powerpc-603.c: Regenerate.
3377 * features/rs6000/powerpc-604.c: Regenerate.
3378 * features/rs6000/powerpc-64.c: Regenerate.
3379 * features/rs6000/powerpc-64l.c: Regenerate.
3380 * features/rs6000/powerpc-7400.c: Regenerate.
3381 * features/rs6000/powerpc-750.c: Regenerate.
3382 * features/rs6000/powerpc-860.c: Regenerate.
3383 * features/rs6000/powerpc-altivec32.c: Regenerate.
3384 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3385 * features/rs6000/powerpc-altivec64.c: Regenerate.
3386 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3387 * features/rs6000/powerpc-e500.c: Regenerate.
3388 * features/rs6000/powerpc-e500l.c: Regenerate.
3389 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3390 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3391 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3392 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3393 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3394 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3395 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3396 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3397 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3398 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3399 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3400 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3401 * features/rs6000/powerpc-vsx32.c: Regenerate.
3402 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3403 * features/rs6000/powerpc-vsx64.c: Regenerate.
3404 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3405 * features/rs6000/rs6000.c: Regenerate.
3406 * features/rx.c: Regenerate.
3407 * features/s390-gs-linux64.c: Regenerate.
3408 * features/s390-linux32.c: Regenerate.
3409 * features/s390-linux32v1.c: Regenerate.
3410 * features/s390-linux32v2.c: Regenerate.
3411 * features/s390-linux64.c: Regenerate.
3412 * features/s390-linux64v1.c: Regenerate.
3413 * features/s390-linux64v2.c: Regenerate.
3414 * features/s390-te-linux64.c: Regenerate.
3415 * features/s390-tevx-linux64.c: Regenerate.
3416 * features/s390-vx-linux64.c: Regenerate.
3417 * features/s390x-gs-linux64.c: Regenerate.
3418 * features/s390x-linux64.c: Regenerate.
3419 * features/s390x-linux64v1.c: Regenerate.
3420 * features/s390x-linux64v2.c: Regenerate.
3421 * features/s390x-te-linux64.c: Regenerate.
3422 * features/s390x-tevx-linux64.c: Regenerate.
3423 * features/s390x-vx-linux64.c: Regenerate.
3424 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3425 from allocate_target_description.
3426 * target-descriptions.c (allocate_target_description): Update
3427 return type.
3428 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3429 allocate_target_description.
3430
485c47e5
TT
34312020-10-07 Tom Tromey <tromey@adacore.com>
3432
3433 * unittests/search-memory-selftests.c: New file.
3434 * Makefile.in (SELFTESTS_SRCS): Add
3435 unittests/search-memory-selftests.c.
3436
3a135a91
TT
34372020-10-07 Tom Tromey <tromey@adacore.com>
3438
3439 PR gdb/16930:
3440 * findcmd.c (_initialize_mem_search): Mention that the range is
3441 inclusive.
3442
4a72de73
TT
34432020-10-07 Tom Tromey <tromey@adacore.com>
3444
3445 * target.h (simple_search_memory): Don't declare.
3446 * target.c (simple_search_memory): Move to gdbsupport.
3447 (default_search_memory): Update.
3448 * remote.c (remote_target::search_memory): Update.
3449
a038ffd8
SM
34502020-10-07 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * Makefile.in (COMPILE): Add CXXFLAGS.
3453 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3454 (check-headers): Add CXXFLAGS.
3455
cc463201
AK
34562020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3457
3458 * arc-linux-tdep.h: New file.
3459 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3460 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3461 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3462 arc_linux_gregset, arc_linux_v2_regset,
3463 arc_linux_iterate_over_regset_sections,
3464 arc_linux_core_read_description): Implement.
3465 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3466 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3467 (arc_gdbarch_features_create): Add.
3468 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3469
e4bd363f
SV
34702020-10-07 Shahab Vahedi <shahab@synopsys.com>
3471
3472 * arch/arc.h: Rename "arc_gdbarch_features" to
3473 "arc_arch_features".
3474 * arc-tdep.h: Likewise.
3475 * arc-tdep.c: Likewise.
3476
b68bef99
TBA
34772020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478
3479 * infcmd.c (attach_command): Remove the redundant call to
3480 `clear_proceed_status`.
3481
4641551a
KR
34822020-10-07 Kamil Rytarowski <n54@gmx.com>
3483
3484 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3485
91e5e8db
KR
34862020-10-07 Kamil Rytarowski <n54@gmx.com>
3487
3488 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3489 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3490 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3491
64c03bdb
SM
34922020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3495 (_initialize_break_catch_sig): Don't allocate array.
3496
31a8f60f
AB
34972020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * symtab.c (find_pc_line): Return unmapped addresses when the
3500 requested address is also unmapped.
3501
9e6dbd8b
SM
35022020-10-05 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3505 tui/tui-out.h.
3506
a1d217e8
SM
35072020-10-05 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3510 type::is_vector instead of TYPE_VECTOR.
3511
7d144117
SM
35122020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * auto-load.c (auto_load_objfile_script_1): Don't use
3515 debugfile_holder as temporary variable when stripping drive
3516 letter.
3517
cd096ec8
HD
35182020-10-05 Hannes Domani <ssbssa@yahoo.de>
3519
3520 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3521 Add TYPE_CODE_COMPLEX.
3522 (amd64_windows_return_value): Fix types returned via XMM0.
3523
b58e7f72
AH
35242020-10-05 Alan Hayward <alan.hayward@arm.com>
3525
3526 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3527 AArch64/ARM maintainers.
3528
8d378f27
SM
35292020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3530
3531 * NEWS: Mention set/show debug event-loop.
3532
d5519913
TT
35332020-10-02 Tom Tromey <tromey@adacore.com>
3534
3535 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3536 REG_EXTENDED.
3537
18b67edc
SM
35382020-10-02 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3541 * procfs.c (procfs_inferior_created): Remove.
3542 (_initialize_procfs): Don't register procfs_inferior_created.
3543
6b01403b
SM
35442020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3545
3546 * async-event.c (invoke_async_signal_handlers): Add debug
3547 print.
3548 (check_async_event_handlers): Likewise.
3549 * event-top.c (show_debug_event_loop): New function.
3550 (_initialize_event_top): Register "set debug event-loop"
3551 setting.
3552
ba988419
SM
35532020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3554
3555 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3556 * debug.h: Remove.
3557 * infrun.c: Include gdbsupport/common-debug.h.
3558 * linux-nat.c: Likewise.
3559
db20ebdf
SM
35602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * async-event.h (create_async_signal_handler): Add name
3563 parameter.
3564 (create_async_event_handler): Likewise.
3565 * async-event.c (struct async_signal_handler) <name>: New field.
3566 (struct async_event_handler) <name>: New field.
3567 (create_async_signal_handler): Assign name.
3568 (create_async_event_handler): Assign name.
3569 * event-top.c (async_init_signals): Pass name when creating
3570 handler.
3571 * infrun.c (_initialize_infrun): Likewise.
3572 * record-btrace.c (record_btrace_push_target): Likewise.
3573 * record-full.c (record_full_open): Likewise.
3574 * remote-notif.c (remote_notif_state_allocate): Likewise.
3575 * remote.c (remote_target::open_1): Likewise.
3576 * tui/tui-win.c (tui_initialize_win): Likewise.
3577
2554f6f5
SM
35782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * async-event.c (initialize_async_signal_handlers): Pass name to
3581 add_file_handler
3582 * event-top.c (ui_register_input_event_handler): Likewise.
3583 * linux-nat.c (linux_nat_target::async): Likewise.
3584 * run-on-main-thread.c (_initialize_run_on_main_thread):
3585 Likewise
3586 * ser-base.c (reschedule): Likewise.
3587 (ser_base_async): Likewise.
3588 * tui/tui-io.c: Likewise.
3589 * top.h (struct ui) <num>: New field.
3590 * top.c (highest_ui_num): New variable.
3591 (ui::ui): Initialize num.
3592
a7aba266
SM
35932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * observable.h <inferior_created>: Remove parameters. Update all
3596 listeners.
3597 * inferior.h (post_create_inferior): Remove target parameter.
3598 Update all callers.
3599
048fde1e 36002020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3601
3602 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3603 and DW_MACRO_undef_strx.
3604 (dwarf_decode_macros): Likewise
3605 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3606 which is the value of DW_AT_str_offsets_base.
3607 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3608 str_offsets_base.
3609
064280be
KR
36102020-10-01 Kamil Rytarowski <n54@gmx.com>
3611
3612 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3613
6ff33035
KR
36142020-10-01 Kamil Rytarowski <n54@gmx.com>
3615
3616 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3617 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3618
1eb6eb79
KR
36192020-10-01 Kamil Rytarowski <n54@gmx.com>
3620
3621 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3622
95eb9e54
TV
36232020-09-30 Tom de Vries <tdevries@suse.de>
3624
3625 PR symtab/26683
3626 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3627
cae21f8e
TT
36282020-09-30 Tom Tromey <tromey@adacore.com>
3629
3630 * dwarf2/read.c (handle_variant): Use constant_value.
3631
529908cb
TT
36322020-09-29 Tom Tromey <tom@tromey.com>
3633
3634 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3635 (read_file_scope, dwarf2_get_pc_bounds)
3636 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3637 (read_structure_type, handle_struct_member_die)
3638 (read_enumeration_type, read_array_type, read_set_type)
3639 (read_tag_pointer_type, read_tag_reference_type)
3640 (read_subroutine_type, read_base_type, read_subrange_type)
3641 (read_full_die_1, partial_die_info::read)
3642 (partial_die_info::read, by, new_symbol)
3643 (dwarf2_const_value_data, dwarf2_const_value_attr)
3644 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3645 (prepare_one_comp_unit): Update.
3646 * dwarf2/attribute.h (DW_UNSND): Remove.
3647
c45bc3f8
TT
36482020-09-29 Tom Tromey <tom@tromey.com>
3649
3650 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3651 (read_subroutine_type, partial_die_info::read)
3652 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3653 (dwarf2_add_member_fn): Update.
3654 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3655 * dwarf2/attribute.c (attribute::as_boolean): New method.
3656
23dca5c3
TT
36572020-09-29 Tom Tromey <tom@tromey.com>
3658
3659 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3660 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3661 method.
3662 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3663
52c14d11
TT
36642020-09-29 Tom Tromey <tom@tromey.com>
3665
3666 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3667 the attribute's form.
3668
e8e5c158
TT
36692020-09-29 Tom Tromey <tom@tromey.com>
3670
3671 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3672 (dwarf2_add_member_fn): Update.
3673 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3674 * dwarf2/attribute.c (attribute::defaulted): New method, from
3675 is_valid_DW_AT_defaulted.
3676
d4df075e
TT
36772020-09-29 Tom Tromey <tom@tromey.com>
3678
3679 * dwarf2/read.c (dw2_get_file_names_reader)
3680 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3681 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3682 (dwarf2_symbol_mark_computed): Use as_unsigned.
3683 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3684 method.
3685 <form_is_section_offset>: Update comment.
3686
bf23a268
TT
36872020-09-29 Tom Tromey <tom@tromey.com>
3688
3689 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3690 dwarf2_default_access_attribute. Look up attribute.
3691 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3692 Update.
3693
7a5f294d
TT
36942020-09-29 Tom Tromey <tom@tromey.com>
3695
3696 * dwarf2/read.c (skip_one_die): Update.
3697 (read_full_die_1): Change how reprocessing is done.
3698 (partial_die_info::read): Update.
3699 (read_attribute_value): Remove need_reprocess parameter.
3700 (read_attribute): Likewise.
3701 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3702 New method.
3703
36d378cf
TT
37042020-09-29 Tom Tromey <tom@tromey.com>
3705
3706 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3707 (dwarf2_const_value_attr, dump_die_shallow)
3708 (dwarf2_fetch_constant_bytes): Update.
3709 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3710 comment.
3711 <set_address>: New method.
3712 (DW_ADDR): Remove.
3713 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3714 (attribute::as_string, attribute::as_address): Add assert.
3715
fe56917a
TT
37162020-09-29 Tom Tromey <tom@tromey.com>
3717
3718 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3719 (read_attribute_reprocess, read_attribute_value): Update.
3720 (read_attribute): Clear requires_reprocessing.
3721 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3722 form_requires_reprocessing>: New methods.
3723 <string_init>: Clear requires_reprocessing.
3724 <set_unsigned_reprocess>: New method.
3725 <name>: Shrink by one bit.
3726 <requires_reprocessing>: New member.
3727 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3728 method.
3729
414ad644
TT
37302020-09-29 Tom Tromey <tom@tromey.com>
3731
3732 * dwarf2/read.c (read_attribute_value): Update.
3733 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3734 set_unsigned>: New methods.
3735 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3736
1bc397c5
TT
37372020-09-29 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2/read.c (get_alignment, read_array_order)
3740 (read_attribute_value, dwarf2_const_value_attr)
3741 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3742 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3743 New methods.
3744 (DW_SND): Remove.
3745
630ed6b9
TT
37462020-09-29 Tom Tromey <tom@tromey.com>
3747
3748 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3749 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3750 Update.
3751 * dwarf2/attribute.h (struct attribute) <as_signature,
3752 set_signature>: New methods.
3753 (DW_SIGNATURE): Remove.
3754
9d2246fc
TT
37552020-09-29 Tom Tromey <tom@tromey.com>
3756
3757 * dwarf2/read.c (read_call_site_scope)
3758 (handle_data_member_location, dwarf2_add_member_fn)
3759 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3760 (partial_die_info::read, read_attribute_value)
3761 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3762 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3763 (dwarf2_symbol_mark_computed): Update.
3764 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3765 methods.
3766 (DW_BLOCK): Remove.
3767 * dwarf2/attribute.c (attribute::form_is_block): Add
3768 DW_FORM_data16.
3769
c6481205
TT
37702020-09-29 Tom Tromey <tom@tromey.com>
3771
3772 * dwarf2/read.c (read_cutu_die_from_dwo)
3773 (read_attribute_reprocess, read_attribute_value, read_attribute)
3774 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3775 (dwarf2_fetch_constant_bytes): Update.
3776 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3777 <set_string_noncanonical, set_string_canonical>: New methods.
3778 <string_is_canonical>: Update comment.
3779 <canonical_string_p>: Add assert.
3780 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3781 * dwarf2/attribute.c (attribute::form_is_string): New method.
3782 (attribute::string): Use it.
3783
3b64bf15
TT
37842020-09-29 Tom Tromey <tom@tromey.com>
3785
3786 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3787 (dump_die_shallow): Use canonical_string_p.
3788 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3789 method.
3790
2c830f54
TT
37912020-09-29 Tom Tromey <tom@tromey.com>
3792
3793 * dwarf2/read.c (partial_die_info::read)
3794 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3795 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3796 attribute::as_string.
3797
6c412691
TT
37982020-09-29 Tom Tromey <tom@tromey.com>
3799
3800 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3801 DW_ADDR.
3802 (attribute::string): Don't use DW_STRING.
3803 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3804 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3805
95f982e5
TT
38062020-09-29 Tom Tromey <tom@tromey.com>
3807
3808 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3809 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3810 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3811 * dwarf2/attribute.h (struct attribute): Rename methods.
3812 * dwarf2/attribute.c (attribute::as_address): Rename from
3813 value_as_address.
3814 (attribute::as_string): Rename from value_as_string.
3815
f800b00e
TT
38162020-09-29 Tom Tromey <tom@tromey.com>
3817
3818 * dwarf2/read.c (partial_die_info::read) <case
3819 DW_AT_linkage_name>: Use value_as_string.
3820 (dwarf2_string_attr): Use value_as_string.
3821 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3822 method.
3823 * dwarf2/attribute.c (attribute::value_as_string): New method.
3824
de38d64a
PA
38252020-09-29 Pedro Alves <pedro@palves.net>
3826
3827 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3828 defined before using '#pragma GCC diagnostic' instead of checking
3829 __clang__.
3830
9aed480c
TT
38312020-09-28 Tom Tromey <tom@tromey.com>
3832
3833 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3834 (handle_signal_stop): Update.
3835 * procfs.c (procfs_target::insert_watchpoint): Update.
3836 * target.h (target_have_steppable_watchpoint): Now a function.
3837
8a3ecb79
TT
38382020-09-28 Tom Tromey <tom@tromey.com>
3839
3840 * infrun.c (set_schedlock_func): Update.
3841 * target.h (target_can_lock_scheduler): Now a function.
3842
55f6301a
TT
38432020-09-28 Tom Tromey <tom@tromey.com>
3844
3845 * inferior.h (class inferior) <has_execution>: Update.
3846 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3847 * valops.c (find_function_in_inferior)
3848 (value_allocate_space_in_inferior): Update.
3849 * top.c (kill_or_detach): Update.
3850 * target.c (target_preopen, set_target_permissions): Update.
3851 (target_has_execution_current): Remove.
3852 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3853 Update.
3854 * solib.c (update_solib_list, reload_shared_libraries): Update.
3855 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3856 * solib-dsbt.c (enable_break): Update.
3857 * score-tdep.c (score7_fetch_inst): Update.
3858 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3859 Update.
3860 * remote.c (remote_target::start_remote)
3861 (remote_target::remote_check_symbols, remote_target::open_1)
3862 (remote_target::remote_detach_1, remote_target::verify_memory)
3863 (remote_target::xfer_partial, remote_target::read_description)
3864 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3865 * record-full.c (record_full_open_1): Update.
3866 * record-btrace.c (record_btrace_target_open): Update.
3867 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3868 (value_nsstring): Update.
3869 * linux-thread-db.c (add_thread_db_info)
3870 (thread_db_find_new_threads_silently, check_thread_db_callback)
3871 (try_thread_db_load_1, record_thread): Update.
3872 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3873 Update.
3874 * linux-fork.c (checkpoint_command): Update.
3875 * infrun.c (set_non_stop, set_observer_mode)
3876 (check_multi_target_resumption, for_each_just_stopped_thread)
3877 (maybe_remove_breakpoints, normal_stop)
3878 (class infcall_suspend_state): Update.
3879 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3880 (info_program_command, attach_command): Update.
3881 * infcall.c (call_function_by_hand_dummy): Update.
3882 * inf-loop.c (inferior_event_handler): Update.
3883 * gcore.c (gcore_command, derive_heap_segment): Update.
3884 * exec.c (exec_file_command): Update.
3885 * eval.c (evaluate_subexp): Update.
3886 * compile/compile.c (compile_to_object): Update.
3887 * cli/cli-dump.c (restore_command): Update.
3888 * breakpoint.c (update_watchpoint)
3889 (update_inserted_breakpoint_locations)
3890 (insert_breakpoint_locations, get_bpstat_thread): Update.
3891 * target.h (target_has_execution): Remove macro.
3892 (target_has_execution_current): Don't declare.
3893 (target_has_execution): Rename from target_has_execution_1. Add
3894 argument default.
3895
05374cfd
TT
38962020-09-28 Tom Tromey <tom@tromey.com>
3897
3898 * mi/mi-main.c (exec_reverse_continue)
3899 (mi_cmd_list_target_features): Update.
3900 * infrun.c (set_exec_direction_func): Update.
3901 * target.c (default_execution_direction): Update.
3902 * reverse.c (exec_reverse_once): Update.
3903 * target.h (target_can_execute_reverse): Now a function.
3904
9dccd06e
TT
39052020-09-28 Tom Tromey <tom@tromey.com>
3906
3907 * tui/tui-regs.c (tui_get_register)
3908 (tui_data_window::show_registers): Update.
3909 * thread.c (scoped_restore_current_thread::restore)
3910 (scoped_restore_current_thread::scoped_restore_current_thread):
3911 Update.
3912 * regcache-dump.c (regcache_print): Update.
3913 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3914 Update.
3915 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3916 * mep-tdep.c (current_me_module, current_options): Update.
3917 * linux-thread-db.c (thread_db_load): Update.
3918 * infcmd.c (registers_info, info_vector_command)
3919 (info_float_command): Update.
3920 * ia64-tdep.c (ia64_frame_prev_register)
3921 (ia64_sigtramp_frame_prev_register): Update.
3922 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3923 * gcore.c (derive_stack_segment): Update.
3924 * frame.c (get_current_frame, has_stack_frames): Update.
3925 * findvar.c (language_defn::read_var_value): Update.
3926 * arm-tdep.c (arm_pc_is_thumb): Update.
3927 * target.c (target_has_registers): Rename from
3928 target_has_registers_1.
3929 * target.h (target_has_registers): Remove macro.
3930 (target_has_registers): Rename from target_has_registers_1.
3931
841de120
TT
39322020-09-28 Tom Tromey <tom@tromey.com>
3933
3934 * windows-tdep.c (tlb_make_value): Update.
3935 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3936 * thread.c (scoped_restore_current_thread::restore)
3937 (scoped_restore_current_thread::scoped_restore_current_thread)
3938 (thread_command): Update.
3939 * stack.c (backtrace_command_1, frame_apply_level_command)
3940 (frame_apply_all_command, frame_apply_command): Update.
3941 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3942 Update.
3943 * gcore.c (derive_stack_segment): Update.
3944 * frame.c (get_current_frame, has_stack_frames): Update.
3945 * auxv.c (info_auxv_command): Update.
3946 * ada-tasks.c (ada_build_task_list): Update.
3947 * target.c (target_has_stack): Rename from target_has_stack_1.
3948 * target.h (target_has_stack): Remove macro.
3949 (target_has_stack): Rename from target_has_stack_1.
3950
a739972c
TT
39512020-09-28 Tom Tromey <tom@tromey.com>
3952
3953 * target.c (target_has_memory): Rename from target_has_memory_1.
3954 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3955 * thread.c (scoped_restore_current_thread::restore)
3956 (scoped_restore_current_thread::scoped_restore_current_thread):
3957 Update.
3958 * frame.c (get_current_frame, has_stack_frames): Update.
3959 * target.h (target_has_memory): Remove macro.
3960 (target_has_memory): Rename from target_has_memory_1.
3961
5b8a4776
TT
39622020-09-28 Tom Tromey <tom@tromey.com>
3963
3964 * target.c (target_has_all_memory_1): Remove.
3965 * target.h (target_has_all_memory): Remove define.
3966 (target_has_all_memory_1): Don't declare.
3967
bd356ec6
SM
39682020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 * ser-base.c: Adjust comments formatting.
3971
2c72d5e5
TT
39722020-09-27 Tom Tromey <tom@tromey.com>
3973
3974 PR tui/25342:
3975 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3976
35a98237
TT
39772020-09-27 Tom Tromey <tom@tromey.com>
3978
3979 PR tui/25342:
3980 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3981
9e820dec
TT
39822020-09-27 Tom Tromey <tom@tromey.com>
3983
3984 * unittests/tui-selftests.c: Update.
3985 * tui/tui-winsource.h (struct tui_source_window_base)
3986 <extra_margin, show_line_number, refresh_pad>: New methods.
3987 <m_max_length, m_pad>: New members.
3988 (tui_copy_source_line): Update.
3989 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3990 first_col, line_width, ndigits parameters. Add length.
3991 (tui_source_window_base::show_source_line): Write to pad. Line
3992 number now 0-based.
3993 (tui_source_window_base::refresh_pad): New method.
3994 (tui_source_window_base::show_source_content): Write to pad. Call
3995 refresh_pad.
3996 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3997 not refill.
3998 (tui_source_window_base::update_exec_info): Call
3999 show_line_number.
4000 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4001 method.
4002 <m_digits>: New member.
4003 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4004 and m_max_length.
4005 (tui_source_window::show_line_number): New method.
4006 * tui/tui-io.h (tui_puts): Fix comment.
4007 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4008 m_max_length.
4009
c15c15c8
TT
40102020-09-27 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-winsource.c
4013 (tui_source_window_base::set_is_exec_point_at): Don't call
4014 show_source_line.
4015
149830c1
TT
40162020-09-27 Tom Tromey <tom@tromey.com>
4017
4018 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4019 method.
4020 <erase>: Update.
4021 <cursor_x, cursor_y>: Remove.
4022 <m_inner_window>: New member.
4023 (tui_py_window::rerender): Create inner window.
4024 (tui_py_window::output): Write to inner window.
4025
8f9929bb
GR
40262020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4027
4028 PR python/26586
4029 * cli/cli-script.c (execute_control_commands): don't set
4030 instream to nullptr here as this breaks the from_tty argument
4031 to gdb.execute in Python.
4032 (execute_user_command): set instream to nullptr here instead.
4033
956bdb59
SM
40342020-09-25 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * infrun.h (infrun_debug_printf): Fix formatting.
4037 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4038
3b93626b
SJ
40392020-09-25 Saagar Jha <saagar@saagarjha.com>
4040
4041 * compile/compile-object-load.h (struct munmap_list): Add
4042 explicitly-defined move constructor.
4043
b551a89f
TT
40442020-09-24 Tom Tromey <tromey@adacore.com>
4045
4046 PR tui/26638:
4047 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4048 method.
4049 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4050 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4051 (tui_prev_win): Rewrite.
4052
99bb393f
HD
40532020-09-23 Hannes Domani <ssbssa@yahoo.de>
4054
4055 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4056 in WOW64 processes as SIGINT.
4057 * nat/windows-nat.h: Make wow64_process a shared variable.
4058 * windows-nat.c: Remove static wow64_process variable.
4059
20a5fcbd
TT
40602020-09-23 Tom Tromey <tom@tromey.com>
4061
4062 PR symtab/25470:
4063 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4064 offset and bit size.
4065 * printcmd.c (print_scalar_formatted): Handle zero-length
4066 integer.
4067 (print_scalar_formatted): Use bit_size_differs_p.
4068 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4069 constant.
4070 (union type_specific): <int_stuff>: New member.
4071 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4072 methods.
4073 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4074 TYPE_SPECIFIC_FIELD.
4075 (recursive_dump_type, copy_type_recursive): Update.
4076 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4077 DW_AT_data_bit_offset.
4078
bac51ab7
TT
40792020-09-23 Tom Tromey <tom@tromey.com>
4080
4081 * utils.h (class gdb_argv): Add move operators.
4082 <append>: New methods.
4083 * compile/compile.c (build_argc_argv): Remove.
4084 (compile_args_argc): Remove.
4085 (compile_args_argv): Change type.
4086 (set_compile_args): Simplify.
4087 (append_args): Remove.
4088 (filter_args): Remove argcp parameter.
4089 (get_args): Return gdb_argv. Simplify.
4090 (compile_to_object): Update.
4091
92677124
TT
40922020-09-23 Tom Tromey <tom@tromey.com>
4093
4094 * compile/compile-object-run.c (do_module_cleanup)
4095 <~do_module_cleanup> :Remove.
4096 (do_module_cleanup): Update.
4097 * compile/compile-object-load.h (struct munmap_list): Add move
4098 assignment operator.
4099 <source_file>: Now a std::string.
4100 <munmap_list>: Rename. No longer a pointer.
4101 * compile/compile-object-load.c (struct setup_sections_data): Add
4102 constructor.
4103 <setup_one_section>: Declare.
4104 <munmap_list>: Move earlier.
4105 <m_bfd>: New member.
4106 <m_last_size, m_last_section_first, m_last_prot,
4107 m_last_max_alignment>: Rename, add initializers where needed.
4108 (setup_sections_data::setup_one_section): Rename from
4109 setup_sections. Update.
4110 (compile_object_load): Update. Don't use bfd_map_over_sections.
4111
e616f60a
TT
41122020-09-23 Tom Tromey <tom@tromey.com>
4113
4114 * compile/compile-object-run.c (struct do_module_cleanup): Add
4115 parameters to constructor. Update destructor.
4116 <source_file, scope, scope_data, out_value_type, out_value_addr,
4117 munmap_list_head, objfile_name_string>: Remove.
4118 <module>: New member.
4119 (do_module_cleanup): Update.
4120 (compile_object_run): Update.
4121
e947a848
TT
41222020-09-23 Tom Tromey <tom@tromey.com>
4123
4124 * compile/compile.c (eval_compile_command): Update.
4125 * compile/compile-object-run.h (compile_object_run): Take a
4126 compile_module_up.
4127 * compile/compile-object-run.c (compile_object_run): Take a
4128 compile_module_up.
4129 * compile/compile-object-load.h (struct compile_module): Add
4130 constructor, destructor.
4131 (compile_module_up): New typedef.
4132 (compile_object_load): Return compile_object_up.
4133 * compile/compile-object-load.c (compile_object_load): Return
4134 compile_module_up.
4135
0dbf6ee6
TT
41362020-09-23 Tom Tromey <tom@tromey.com>
4137
4138 * compile/compile-object-run.c (struct do_module_cleanup): Add
4139 constructor, destructor.
4140 <objfile_name_string>: Don't use struct hack.
4141 (do_module_cleanup): Use delete.
4142 (compile_object_run): Use new.
4143
ebe824f5
TT
41442020-09-23 Tom Tromey <tom@tromey.com>
4145
4146 * compile/compile-cplus-types.c
4147 (compile_cplus_convert_struct_or_union): Use std::vector.
4148 (compile_cplus_convert_func): Likewise.
4149 * compile/compile-c-types.c (convert_func): Use std::vector.
4150
5dd918d9
TT
41512020-09-21 Tom Tromey <tromey@adacore.com>
4152
4153 * sparc-tdep.c (sparc32_skip_prologue): Use
4154 skip_prologue_using_sal.
4155
5486c517
TT
41562020-09-19 Tom Tromey <tom@tromey.com>
4157
4158 * symfile.c (add_section_size_callback): Remove.
4159 (load_one_section): Rename from load_section_callback. Change
4160 parameters.
4161 (generic_load): Use foreach.
4162
8a6bb1d1
TT
41632020-09-19 Tom Tromey <tom@tromey.com>
4164
4165 * exec.c (add_to_section_table): Remove.
4166 (build_section_table): Use foreach.
4167
08f93a1a
TT
41682020-09-19 Tom Tromey <tom@tromey.com>
4169
4170 * elfread.c (elf_locate_sections): Change parameters.
4171 (elf_symfile_read): Use foreach.
4172
03cd72b8
TT
41732020-09-19 Tom Tromey <tom@tromey.com>
4174
4175 * cli/cli-dump.c (struct callback_data): Remove.
4176 (restore_one_section): Rename from restore_section_callback.
4177 Change parameters.
4178 (restore_binary_file): Change parameters.
4179 (restore_command): Use foreach.
4180
f4f2b85f
TT
41812020-09-19 Tom Tromey <tom@tromey.com>
4182
4183 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4184 (gcore_copy_callback): Likewise.
4185 (gcore_memory_sections): Use foreach.
4186
b35c1d1c
TT
41872020-09-19 Tom Tromey <tom@tromey.com>
4188
4189 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4190 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4191 parameters.
4192 (generic_elf_osabi_sniffer): Use foreach.
4193 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4194 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4195
5bb6e9dd
TT
41962020-09-19 Tom Tromey <tom@tromey.com>
4197
4198 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4199 (dwarf2_get_dwz_file): Use foreach.
4200 (dwarf2_locate_dwo_sections): Change parameters.
4201 (open_and_init_dwo_file): Use foreach.
4202 (dwarf2_locate_common_dwp_sections): Change parameters.
4203 (open_and_init_dwp_file): Use foreach.
4204
ad7277da
TT
42052020-09-19 Tom Tromey <tom@tromey.com>
4206
4207 * symfile.h: (find_lowest_section): Don't declare.
4208 * symfile.c (find_lowest_section): Now static. Change
4209 parameters.
4210 (struct place_section_arg): Remove.
4211 (place_section): Change parameters.
4212 (addr_info_make_relative): Use foreach.
4213 (symfile_dummy_outputs): Remove.
4214 (default_symfile_relocate): Use foreach.
4215
cb814f2e
TT
42162020-09-19 Tom Tromey <tom@tromey.com>
4217
4218 * objfiles.c (add_to_objfile_sections): Rename from
4219 add_to_objfile_sections_full.
4220 (add_to_objfile_sections): Remove.
4221 (build_objfile_section_table): Use foreach.
4222
3cabfd26
TT
42232020-09-19 Tom Tromey <tom@tromey.com>
4224
4225 * stap-probe.c (get_stap_base_address_1): Remove.
4226 (get_stap_base_address): Use foreach.
4227
1ce51eb5
TT
42282020-09-19 Tom Tromey <tom@tromey.com>
4229
4230 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4231 parameters.
4232 (gdb_bfd_close_or_warn): Use foreach.
4233
a190fabb
TT
42342020-09-19 Tom Tromey <tom@tromey.com>
4235
4236 * corelow.c (add_to_thread_list): Change parameters.
4237 (core_target_open): Use foreach.
4238
cafb0d81
TT
42392020-09-19 Tom Tromey <tom@tromey.com>
4240
4241 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4242 existing function.
4243
c8d5abea
AB
42442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4247 for arrays.
4248
6d816919
AB
42492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * eval.c: Remove 'f-lang.h' include.
4252 (value_f90_subarray): Moved to f-lang.c.
4253 (eval_call): Renamed to...
4254 (evaluate_subexp_do_call): ...this, is no longer static, header
4255 comment moved into header file.
4256 (evaluate_funcall): Update call to eval_call.
4257 (skip_undetermined_arglist): Moved to f-lang.c.
4258 (fortran_value_subarray): Likewise.
4259 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4260 moved to evaluate_subexp_f.
4261 (calc_f77_array_dims): Moved to f-lang.c
4262 * expprint.c (print_subexp_funcall): New function.
4263 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4264 moved to print_subexp_f, OP_FUNCALL uses new function.
4265 (dump_subexp_body_funcall): New function.
4266 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4267 moved to dump_subexp_f, OP_FUNCALL uses new function.
4268 * expression.h (evaluate_subexp_do_call): Declare.
4269 * f-lang.c (value_f90_subarray): Moved from eval.c.
4270 (skip_undetermined_arglist): Likewise.
4271 (calc_f77_array_dims): Likewise.
4272 (fortran_value_subarray): Likewise.
4273 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4274 (operator_length_f): Likewise.
4275 (print_subexp_f): Likewise.
4276 (dump_subexp_body_f): Likewise.
4277 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4278 declaration of this operation to here.
4279 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4280 support moved to operator_length_f.
4281 * parser-defs.h (dump_subexp_body_funcall): Declare.
4282 (print_subexp_funcall): Declare.
4283 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4284 fortran-operator.def.
4285
8c37706a
AB
42862020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * eval.c (fortran_value_subarray): New function, content is taken
4289 from...
4290 (evaluate_subexp_standard): ...here, in two places. Now arrays
4291 and strings both call the new function.
4292 (calc_f77_array_dims): Add header comment, handle strings.
4293
14f9473c
VC
42942020-09-18 Victor Collod <vcollod@nvidia.com>
4295
4296 PR gdb/26635
4297 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4298 (i386_analyze_prologue): Call i386_skip_endbr.
4299
b60cea74
TT
43002020-09-18 Tom Tromey <tromey@adacore.com>
4301
4302 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4303 (windows_nat_target::wait): Update.
4304 * target/wait.h (enum target_wait_flag): New. Use
4305 DEF_ENUM_FLAGS_TYPE.
4306 * target/target.h (target_wait): Change type of options.
4307 * target.h (target_options_to_string, default_target_wait):
4308 Update.
4309 (struct target_ops) <wait>: Change type of options.
4310 * target.c (target_wait, default_target_wait, do_option): Change
4311 type of "options".
4312 (target_options_to_string): Likewise.
4313 * target-delegates.c: Rebuild.
4314 * target-debug.h (target_debug_print_target_wait_flags): Rename
4315 from target_debug_print_options.
4316 * sol-thread.c (class sol_thread_target) <wait>: Update.
4317 (sol_thread_target::wait): Update.
4318 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4319 (rs6000_nat_target::wait): Update.
4320 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4321 Update.
4322 (remote_target::wait_ns, remote_target::wait_as): Change type of
4323 "options".
4324 (remote_target::wait): Update.
4325 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4326 (gdbsim_target::wait): Update.
4327 * record-full.c (class record_full_base_target) <wait>: Update.
4328 (record_full_wait_1): Change type of "options".
4329 (record_full_base_target::wait): Update.
4330 * record-btrace.c (class record_btrace_target) <wait>: Update.
4331 (record_btrace_target::wait): Update.
4332 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4333 Update.
4334 (ravenscar_thread_target::wait): Update.
4335 * procfs.c (class procfs_target) <wait>: Update.
4336 (procfs_target::wait): Update.
4337 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4338 * obsd-nat.c (obsd_nat_target::wait): Update.
4339 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4340 (nto_procfs_target::wait): Update.
4341 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4342 * nbsd-nat.c (nbsd_wait): Change type of "options".
4343 (nbsd_nat_target::wait): Update.
4344 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4345 (thread_db_target::wait): Update.
4346 * linux-nat.h (class linux_nat_target) <wait>: Update.
4347 * linux-nat.c (linux_nat_target::wait): Update.
4348 (linux_nat_wait_1): Update.
4349 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4350 "options".
4351 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4352 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4353 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4354 (go32_nat_target::wait): Update.
4355 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4356 * gnu-nat.c (gnu_nat_target::wait): Update.
4357 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4358 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4359 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4360 * darwin-nat.c (darwin_nat_target::wait): Update.
4361 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4362 (bsd_uthread_target::wait): Update.
4363 * aix-thread.c (class aix_thread_target) <wait>: Update.
4364 (aix_thread_target::wait): Update.
4365
0295dde6
AB
43662020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * compile/compile-object-run.c (create_copied_type_recursive): New
4369 function.
4370 (compile_object_run): Use new function.
4371
d3483b43
JT
43722020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4373
4374 * NEWS: Mention x86_64 Cygwin core file support.
4375
e7d612ad
JT
43762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4377
4378 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4379 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4380
aff9d387
JT
43812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4382
62a5151b
JT
4383 * windows-tdep.h: Add prototypes.
4384 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4385 (i386_windows_core_pid_to_str): Move and rename ...
4386 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4387 (windows_core_pid_to_str): ... and here.
4388 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4389
43902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4391 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4392 (amd64_windows_init_abi_common): ... and register.
4393
7d155da3
JT
43942020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4395
4396 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4397 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4398
e8ef12b9
PA
43992020-09-18 Pedro Alves <pedro@palves.net>
4400
4401 PR gdb/26631
4402 * thread.c (thread_find_command): Switch inferior before calling
4403 target methods.
4404
c1e1314d
TT
44052020-09-17 Tom Tromey <tromey@adacore.com>
4406
4407 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4408 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4409 (tdesc_arch_data_up): New typedef.
4410 (tdesc_use_registers, tdesc_data_alloc): Update.
4411 (tdesc_data_cleanup): Don't declare.
4412 * target-descriptions.c (tdesc_data_alloc): Return a
4413 tdesc_arch_data_up.
4414 (tdesc_arch_data_deleter::operator()): Rename from
4415 tdesc_data_cleanup. Change argument type.
4416 (tdesc_use_registers): Change early_data to an rvalue reference.
4417 (tdesc_use_registers): Don't use delete.
4418 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4419 * s390-tdep.c (s390_gdbarch_init): Update.
4420 * rx-tdep.c (rx_gdbarch_init): Update.
4421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4422 * riscv-tdep.c (riscv_gdbarch_init): Update.
4423 * or1k-tdep.c (or1k_gdbarch_init): Update.
4424 * nios2-tdep.c (nios2_gdbarch_init): Update.
4425 * nds32-tdep.c (nds32_gdbarch_init): Update.
4426 * mips-tdep.c (mips_gdbarch_init): Update.
4427 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4428 * m68k-tdep.c (m68k_gdbarch_init): Update.
4429 * i386-tdep.c (i386_gdbarch_init): Update.
4430 * arm-tdep.c (arm_gdbarch_init): Update.
4431 * arc-tdep.c (arc_tdesc_init): Update.
4432 (arc_gdbarch_init): Update.
4433 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4434
0363df3d
HD
44352020-09-17 Hannes Domani <ssbssa@yahoo.de>
4436
4437 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4438 for WOW64 processes.
4439
280a9412
TT
44402020-09-17 Tom Tromey <tom@tromey.com>
4441
4442 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4443
6108fd18
TT
44442020-09-17 Tom Tromey <tom@tromey.com>
4445
4446 * value.c (preserve_values): Update.
4447 * python/py-type.c (save_objfile_types): Update.
4448 * guile/scm-type.c (save_objfile_types): Update.
4449 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4450 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4451 * compile/compile-object-run.c (compile_object_run): Update.
4452
fa9b1164
TT
44532020-09-17 Tom Tromey <tom@tromey.com>
4454
4455 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4456 Remove.
4457 <m_table>: Now htab_up.
4458 * typeprint.c (typedef_hash_table::recursively_update)
4459 (typedef_hash_table::add_template_parameters)
4460 (typedef_hash_table::typedef_hash_table): Update.
4461 (typedef_hash_table::~typedef_hash_table): Remove.
4462 (typedef_hash_table::typedef_hash_table)
4463 (typedef_hash_table::find_global_typedef)
4464 (typedef_hash_table::find_typedef): Update.
4465
eb53f105
TT
44662020-09-17 Tom Tromey <tom@tromey.com>
4467
4468 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4469
7a8a5d47
TT
44702020-09-17 Tom Tromey <tom@tromey.com>
4471
4472 * linespec.c (class decode_compound_collector)
4473 <~decode_compound_collector>: Remove.
4474 <m_unique_syms>: Now htab_up.
4475 (decode_compound_collector::operator ()): Update.
4476 (class symtab_collector) <~symtab_collector>: Remove.
4477 <m_symtab_table>: Now htab_up.
4478 (symtab_collector::operator ()): Update.
4479
99032cfc
TT
44802020-09-17 Tom Tromey <tom@tromey.com>
4481
4482 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4483 (filename_seen_cache::clear): Update.
4484 (~filename_seen_cache): Remove.
4485 (filename_seen_cache::seen): Update.
4486 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4487 htab_up.
4488 <~filename_seen_cache>: Remove.
4489 <traverse>: Update.
4490
32580f6d
TT
44912020-09-17 Tom Tromey <tom@tromey.com>
4492
4493 * completer.c (completion_tracker::discard_completions)
4494 (completion_tracker::~completion_tracker)
4495 (completion_tracker::maybe_add_completion)
4496 (completion_tracker::remove_completion)
4497 (completion_tracker::recompute_lowest_common_denominator)
4498 (completion_tracker::build_completion_result): Update.
4499 * completer.h (class completion_tracker) <have_completions>:
4500 Update.
4501 <m_entries_hash>: Now htab_up.
4502
c1fb9836
TT
45032020-09-17 Tom Tromey <tom@tromey.com>
4504
4505 * breakpoint.c (ambiguous_names_p): Use htab_up.
4506
88f07206
TT
45072020-09-17 Tom Tromey <tom@tromey.com>
4508
4509 * auto-load.c (struct auto_load_pspace_info)
4510 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4511 <loaded_script_files, loaded_script_texts>: Change type to
4512 htab_up.
4513 (~auto_load_pspace_info) Remove.
4514 (init_loaded_scripts_info, maybe_add_script_file)
4515 (maybe_add_script_text, auto_load_info_scripts): Update.
4516
9519b2ee
TT
45172020-09-17 Tom Tromey <tromey@adacore.com>
4518
4519 * c-exp.y (name_obstack): Now static.
4520
d2cd4113
CC
45212020-09-17 Chungyi Chi <demonic@csie.io>
4522
4523 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4524
b650a282
SM
45252020-09-16 Simon Marchi <simon.marchi@efficios.com>
4526
4527 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4528 (add_solib_catchpoint): Likewise.
4529 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4530 to bool.
4531 (add_solib_catchpoint): Change int parameter/variable to bool.
4532 (catch_load_or_unload): Likewise.
4533 (init_catchpoint): Likewise.
4534 (create_fork_vfork_event_catchpoint): Likewise.
4535 (catch_fork_command_1): Likewise.
4536 (catch_exec_command_1): Likewise.
4537
4d0bcfcf
SM
45382020-09-16 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4541 Change instance_flags to m_instance_flags.
4542
fe830662
TT
45432020-09-16 Tom Tromey <tromey@adacore.com>
4544
4545 PR gdb/26598:
4546 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4547
fe5ddfc3
JB
45482020-09-16 John Baldwin <jhb@FreeBSD.org>
4549
4550 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4551 PL_FLAG_EXEC.
4552 (fbsd_nat_target::insert_exec_catchpoint)
4553 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4554 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4555 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4556
e911c666
JB
45572020-09-16 John Baldwin <jhb@FreeBSD.org>
4558
4559 * configure.ac: Remove check for kinfo_getvmmap().
4560 * configure, config.in: Regenerate.
4561 * fbsd-nat.c (fbsd_read_mapping): Remove
4562 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4563 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4564 kinfo_get_vmmap() are always present.
4565
1f17d372
JB
45662020-09-16 John Baldwin <jhb@FreeBSD.org>
4567
4568 * fbsd-nat.c: Always include support for
4569 TARGET_OBJECT_SIGNAL_INFO.
4570
bcb1da7f
JB
45712020-09-16 John Baldwin <jhb@FreeBSD.org>
4572
4573 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4574 sysctl and remove procfs fallback.
4575
5515f729
JB
45762020-09-16 John Baldwin <jhb@FreeBSD.org>
4577
4578 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4579 * fbsd-nat.h: Likewise.
4580
da1df1db
TBA
45812020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4582
4583 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4584 argument.
4585
0e25e767
AB
45862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * ada-lang.c (ada_language_data): Delete.
4589 (ada_language): Remove references to ada_language_data.
4590 * c-lang.c (c_language_data): Delete.
4591 (c_language): Remove references to c_language_data.
4592 (cplus_language_data): Delete.
4593 (cplus_language): Remove references to cplus_language_data.
4594 (asm_language_data): Delete.
4595 (asm_language): Remove references to asm_language_data.
4596 (minimal_language_data): Delete.
4597 (minimal_language): Remove references to minimal_language_data.
4598 * d-lang.c (d_language_data): Delete.
4599 (d_language): Remove references to d_language_data.
4600 * f-lang.c (f_language_data): Delete.
4601 (f_language): Remove references to f_language_data.
4602 * go-lang.c (go_language_data): Delete.
4603 (go_language): Remove references to go_language_data.
4604 * language.c (unknown_language_data): Delete.
4605 (unknown_language): Remove references to unknown_language_data.
4606 (auto_language_data): Delete.
4607 (auto_language): Remove references to auto_language_data.
4608 * language.h (language_data): Delete struct.
4609 (language_defn): No longer inherit from language_data.
4610 * m2-lang.c (m2_language_data): Delete.
4611 (m2_language): Remove references to m2_language_data.
4612 * objc-lang.c (objc_language_data): Delete.
4613 (objc_language): Remove references to objc_language_data.
4614 * opencl-lang.c (opencl_language_data): Delete.
4615 (opencl_language): Remove references to opencl_language_data.
4616 * p-lang.c (pascal_language_data): Delete.
4617 (pascal_language): Remove references to pascal_language_data.
4618 * rust-lang.c (rust_language_data): Delete.
4619 (rust_language): Remove references to rust_language_data.
4620
b7c6e27d
AB
46212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4624 initializer.
4625 (ada_language::opcode_print_table): New member function.
4626 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4627 (c_language::opcode_print_table): New member function.
4628 (cplus_language_data): Remove la_op_print_tab initializer.
4629 (cplus_language::opcode_print_table): New member function.
4630 (asm_language_data): Remove la_op_print_tab initializer.
4631 (asm_language::opcode_print_table): New member function.
4632 (minimal_language_data): Remove la_op_print_tab initializer.
4633 (minimal_language::opcode_print_table): New member function.
4634 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4635 (d_language::opcode_print_table): New member function.
4636 * expprint.c (print_subexp_standard): Update call to
4637 opcode_print_table.
4638 (op_string): Likewise.
4639 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4640 (f_language::opcode_print_table): New member function.
4641 * go-lang.c (go_language_data): Remove la_op_print_tab
4642 initializer.
4643 (go_language::opcode_print_table): New member function.
4644 * language.c (unknown_language_data): Remove la_op_print_tab
4645 initializer.
4646 (unknown_language::opcode_print_table): New member function.
4647 (auto_language_data): Remove la_op_print_tab initializer.
4648 (auto_language::opcode_print_table): New member function.
4649 * language.h (language_data): Remove la_op_print_tab field.
4650 (language_defn::opcode_print_table): Declare new member function.
4651 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4652 initializer.
4653 (m2_language::opcode_print_table): New member function.
4654 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4655 initializer.
4656 (objc_language::opcode_print_table): New member function.
4657 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4658 initializer.
4659 (opencl_language::opcode_print_table): New member function.
4660 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4661 initializer.
4662 (pascal_language::opcode_print_table): New member function.
4663 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4664 initializer.
4665 (rust_language::opcode_print_table): New member function.
4666
5aba6ebe
AB
46672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4670 (ada_language::expression_ops): New member function.
4671 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4672 (c_language::expression_ops): New member function.
4673 (cplus_language_data): Remove la_exp_desc initializer.
4674 (cplus_language::expression_ops): New member function.
4675 (asm_language_data): Remove la_exp_desc initializer.
4676 (asm_language::expression_ops): New member function.
4677 (minimal_language_data): Remove la_exp_desc initializer.
4678 (minimal_language::expression_ops): New member function.
4679 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4680 (d_language::expression_ops): New member function.
4681 * eval.c (evaluate_subexp): Update call to expression_ops.
4682 * expprint.c (print_subexp): Likewise.
4683 (op_name): Likewise.
4684 (dump_subexp_body): Likewise.
4685 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4686 (f_language::expression_ops): New member function.
4687 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4688 (go_language::expression_ops): New member function.
4689 * language.c (language_defn::expression_ops): New function.
4690 (unknown_language_data): Remove la_exp_desc initializer.
4691 (auto_language_data): Likewise.
4692 * language.h (language_data): Remove la_exp_desc field.
4693 (language_defn::expression_ops): Declare new member function.
4694 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4695 (m2_language::expression_ops): New member function.
4696 * objc-lang.c (objc_language_data): Remove la_exp_desc
4697 initializer.
4698 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4699 initializer.
4700 (opencl_language::expression_ops): New member function.
4701 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4702 * parse.c (operator_length): Update call to expression_ops.
4703 (exp_iterate): Likewise.
4704 * rust-lang.c (rust_language_data): Remove la_exp_desc
4705 initializer.
4706 (ruse_language::expression_ops): New member function.
4707
b63a3f3f
AB
47082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4711 initializer.
4712 (ada_language::varobj_ops): New member function.
4713 * c-lang.c (c_language_data): Remove la_varobj_ops
4714 initializer.
4715 (cplus_language_data): Likewise.
4716 (cplus_language::varobj_ops): New member function.
4717 (asm_language_data): Remove la_varobj_ops initializer.
4718 (minimal_language_data): Likewise.
4719 * d-lang.c (d_language_data): Likewise.
4720 * f-lang.c (f_language_data): Likewise.
4721 * go-lang.c (go_language_data): Likewise.
4722 * language.c (language_defn::varobj_ops): New function.
4723 (unknown_language_data): Remove la_varobj_ops
4724 initializer.
4725 (auto_language_data): Likewise.
4726 * language.h (language_data): Remove la_varobj_ops field.
4727 (language_defn::varobj_ops): Declare new member function.
4728 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4729 * objc-lang.c (objc_language_data): Likewise.
4730 * opencl-lang.c (opencl_language_data): Likewise.
4731 * p-lang.c (pascal_language_data): Likewise.
4732 * rust-lang.c (rust_language_data): Likewise.
4733 * varobj.c (varobj_create): Update call to varobj_ops.
4734 * varobj.h (default_varobj_ops): Delete define.
4735
1ac14a04
AB
47362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4737
4738 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4739 initializer.
4740 * c-lang.c (c_language_data): Likewise.
4741 (c_language::macro_expansion): New member function.
4742 (cplus_language_data): Likewise.
4743 (cplus_language::macro_expansion): New member function.
4744 (asm_language_data): Likewise.
4745 (asm_language::macro_expansion): New member function.
4746 (minimal_language_data): Likewise.
4747 (minimal_language::macro_expansion): New member function.
4748 * d-lang.c (d_language_data): Remove la_macro_expansion
4749 initializer.
4750 * f-lang.c (f_language_data): Likewise.
4751 * go-lang.c (go_language_data): Likewise.
4752 * language.c (unknown_language_data): Likewise.
4753 (auto_language_data): Likewise.
4754 * language.h (language_data): Remove la_macro_expansion field.
4755 (language_defn::macro_expansion): New member function.
4756 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4757 initializer.
4758 * objc-lang.c (objc_language_data): Likewise.
4759 (objc_language::macro_expansion): New member function.
4760 * opencl-lang.c (opencl_language_data): Likewise.
4761 (opencl_language::macro_expansion): New member function.
4762 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4763 initializer.
4764 * rust-lang.c (rust_language_data): Likewise.
4765 * symtab.c (default_collect_symbol_completion_matches_break_on):
4766 Update call to macro_expansion.
4767
3a3440fb
AB
47682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4769
4770 * ada-lang.c (ada_language_data): Remove la_array_ordering
4771 initializer.
4772 * c-lang.c (c_language_data): Likewise.
4773 (cplus_language_data): Likewise.
4774 (asm_language_data): Likewise.
4775 (minimal_language_data): Likewise.
4776 * d-lang.c (d_language_data): Likewise.
4777 * dwarf2/read.c (read_array_order): Update for call to
4778 array_ordering.
4779 * f-lang.c (f_language_data): Remove la_array_ordering
4780 initializer.
4781 (f_language::array_ordering): New member function.
4782 * go-lang.c (go_language_data): Remove la_array_ordering
4783 initializer.
4784 * language.c (unknown_language_data): Likewise.
4785 (auto_language_data): Likewise.
4786 * language.h (language_data): Delete la_array_ordering field.
4787 (language_defn::array_ordering): New member function.
4788 * m2-lang.c (m2_language_data): Remove la_array_ordering
4789 initializer.
4790 * objc-lang.c (objc_language_data): Likewise.
4791 * opencl-lang.c (opencl_language_data): Likewise.
4792 * p-lang.c (pascal_language_data): Likewise.
4793 * rust-lang.c (rust_language_data): Likewise.
4794
0d201fa4
AB
47952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4796
4797 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4798 initializer.
4799 * c-lang.c (c_language_data): Likewise.
4800 (cplus_language_data): Likewise.
4801 (asm_language_data): Likewise.
4802 (minimal_language_data): Likewise.
4803 * d-lang.c (d_language_data): Likewise.
4804 * f-lang.c (f_language_data): Likewise.
4805 (f_language::case_sensitivity): New member function.
4806 * go-lang.c (go_language_data): Remove la_case_sensitivity
4807 initializer.
4808 * language.c (enum case_mode): Moved here from language.h.
4809 (case_mode): Make static.
4810 (show_case_command): Update for case_sensitivity being a method.
4811 (set_case_command): Likewise.
4812 (set_range_case): Likewise.
4813 (unknown_language_data): Remove la_case_sensitivity initializer.
4814 (auto_language_data): Likewise.
4815 * language.h (case_mode): Delete, move enum declaration to
4816 language.c.
4817 (language_data): Delete la_case_sensitivity field.
4818 (language_defn::case_sensitivity): New member function.
4819 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4820 initializer.
4821 * objc-lang.c (objc_language_data): Likewise.
4822 * opencl-lang.c (opencl_language_data): Likewise.
4823 * p-lang.c (pascal_language_data): Likewise.
4824 * rust-lang.c (rust_language_data): Likewise.
4825
efdf6a73
AB
48262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4827
4828 * ada-lang.c (ada_language_data): Remove la_range_check
4829 initializer.
4830 * c-lang.c (c_language_data): Likewise.
4831 (cplus_language_data): Likewise.
4832 (asm_language_data): Likewise.
4833 (minimal_language_data): Likewise.
4834 * d-lang.c (d_language_data): Likewise.
4835 * f-lang.c (f_language_data): Likewise.
4836 (f_language::range_checking_on_by_default): New member function.
4837 * go-lang.c (go_language_data): Remove la_range_check initializer.
4838 * language.c (enum range_mode): Moved here from language.h.
4839 (range_mode): Made static.
4840 (show_range_command): Update to use
4841 range_checking_on_by_default.
4842 (set_range_command): Likewise.
4843 (set_range_case): Likewise.
4844 (unknown_language_data): Remove la_range_check initializer.
4845 (auto_language_data): Likewise.
4846 * language.h (range_mode): Delete. Enum definition moved to
4847 language.c.
4848 (language_data): Remove la_range_check field.
4849 (language_defn::range_checking_on_by_default): New member
4850 function.
4851 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4852 (m2_language::range_checking_on_by_default): New member function.
4853 * objc-lang.c (objc_language_data): Remove la_range_check
4854 initializer.
4855 * opencl-lang.c (opencl_language_data): Likewise.
4856 * p-lang.c (pascal_language_data): Likewise.
4857 (pascal_language::range_checking_on_by_default): New member
4858 function.
4859 * rust-lang.c (rust_language_data): Remove la_range_check
4860 initializer.
4861 (rust_language::range_checking_on_by_default): New member
4862 function.
4863
bf92aec5
AB
48642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * dwarf2/read.c (dwarf2_physname): Remove special case for
4867 language_go.
4868 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4869 member function.
4870
d3355e4d
AB
48712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * ada-lang.c (ada_language_data): Remove
4874 la_store_sym_names_in_linkage_form_p initializer.
4875 (ada_language::store_sym_names_in_linkage_form_p): New member
4876 function.
4877 * c-lang.c (c_language_data): Remove
4878 la_store_sym_names_in_linkage_form_p initializer.
4879 (c_language::store_sym_names_in_linkage_form_p): New member
4880 function.
4881 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4882 initializer.
4883 (asm_language_data): Likewise.
4884 (asm_language::store_sym_names_in_linkage_form_p): New member
4885 function.
4886 (minimal_language_data): Remove
4887 la_store_sym_names_in_linkage_form_p initializer.
4888 (minimal_language::store_sym_names_in_linkage_form_p): New member
4889 function.
4890 * d-lang.c (d_language_data): Remove
4891 la_store_sym_names_in_linkage_form_p initializer.
4892 * dwarf2/read.c (dwarf2_physname): Update call to
4893 store_sym_names_in_linkage_form_p.
4894 * f-lang.c (f_language_data): Remove
4895 la_store_sym_names_in_linkage_form_p initializer.
4896 * go-lang.c (go_language_data): Remove
4897 la_store_sym_names_in_linkage_form_p initializer.
4898 * language.c (unknown_language_data): Remove
4899 la_store_sym_names_in_linkage_form_p initializer.
4900 (unknown_language::store_sym_names_in_linkage_form_p): New member
4901 function.
4902 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4903 initializer.
4904 (auto_language::store_sym_names_in_linkage_form_p): New member
4905 function.
4906 * language.h (language_data): Remove
4907 la_store_sym_names_in_linkage_form_p member variable.
4908 (language_defn::store_sym_names_in_linkage_form_p): New member
4909 function.
4910 * m2-lang.c (m2_language_data): Remove
4911 la_store_sym_names_in_linkage_form_p initializer.
4912 * objc-lang.c (objc_language_data): Likewise.
4913 * opencl-lang.c (opencl_language_data): Likewise.
4914 * p-lang.c (pascal_language_data): Likewise.
4915 * rust-lang.c (rust_language_data): Likewise.
4916
22c12a6c
AB
49172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * ada-lang.c (ada_language_data): Remove string_lower_bound
4920 initializer.
4921 * c-lang.c (c_language_data): Likewise.
4922 (cplus_language_data): Likewise.
4923 (asm_language_data): Likewise.
4924 (minimal_language_data): Likewise.
4925 * d-lang.c (d_language_data): Likewise.
4926 * f-lang.c (f_language_data): Likewise.
4927 * go-lang.c (go_language_data): Likewise.
4928 * language.c (unknown_language_data): Likewise.
4929 (auto_language_data): Likewise.
4930 * language.h (language_data): Remove string_lower_bound field.
4931 (language_defn::string_lower_bound): New member function.
4932 * m2-lang.c (m2_language_data): Remove string_lower_bound
4933 initializer.
4934 (m2_language::string_lower_bound): New member function.
4935 * objc-lang.c (objc_language_data): Remove string_lower_bound
4936 initializer.
4937 * opencl-lang.c (opencl_language_data): Likewise.
4938 * p-lang.c (pascal_language_data): Likewise.
4939 * rust-lang.c (rust_language_data): Likewise.
4940 * valops.c (value_cstring): Update call to string_lower_bound.
4941 (value_string): Likewise.
4942 * value.c (allocate_repeated_value): Likewise.
4943
1c236ddd
AB
49442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * valops.c (value_repeat): Fix incorrect argument name in comment.
4947
67bd3fd5
AB
49482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4949
4950 * ada-lang.c (ada_language_data): Remove c_style_arrays
4951 initializer.
4952 (ada_language::c_style_arrays_p): New member fuction.
4953 * c-lang.c (c_language_data): Remove c_style_arrays
4954 initializer.
4955 (cplus_language_data): Likewise.
4956 (asm_language_data): Likewise.
4957 (minimal_language_data): Likewise.
4958 * d-lang.c (d_language_data): Likewise.
4959 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4960 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4961 (f_language::c_style_arrays_p): New member function.
4962 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4963 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4964 * language.c (unknown_language_data): Remove c_style_arrays
4965 initializer.
4966 (auto_language_data): Likewise.
4967 * language.h (language_data): Remove c_style_arrays field.
4968 (language_defn::c_style_arrays_p): New member function.
4969 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4970 (m2_language::c_style_arrays_p): New member function.
4971 * objc-lang.c (objc_language_data): Remove c_style_arrays
4972 initializer.
4973 * opencl-lang.c (opencl_language_data): Likewise.
4974 * p-lang.c (pascal_language_data): Likewise.
4975 * rust-lang.c (rust_language_data): Likewise.
4976 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4977 and update local variable to a bool.
4978 * valops.c (value_cast): Update call to c_style_arrays_p.
4979 (value_array): Likewise.
4980 * value.c (coerce_array): Likewise.
4981
85967615
AB
49822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4983
4984 * ada-lang.c (ada_language_data): Remove la_language initializer.
4985 * c-lang.c (c_language_data): Likewise.
4986 (cplus_language_data): Likewise.
4987 (asm_language_data): Likewise.
4988 (minimal_language_data): Likewise.
4989 * d-lang.c (d_language_data): Likewise.
4990 * f-lang.c (f_language_data): Likewise.
4991 * go-lang.c (go_language_data): Likewise.
4992 * language.c (unknown_language_data): Likewise.
4993 (auto_language_data): Likewise.
4994 * language.h (language_data): Remove la_language field.
4995 (language_defn::language_defn): Initialise la_language field.
4996 (language_defn::la_language): New member variable.
4997 * m2-lang.c (m2_language_data): Remove la_language field.
4998 * objc-lang.c (objc_language_data): Likewise.
4999 * opencl-lang.c (opencl_language_data): Likewise.
5000 * p-lang.c (pascal_language_data): Likewise.
5001 * rust-lang.c (rust_language_data): Likewise.
5002
e171d6f1
AB
50032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * ada-lang.c (ada_extensions): Delete, moved into
5006 ada_language::filename_extensions.
5007 (ada_language_data): Remove la_filename_extensions initializer.
5008 (ada_language::filename_extensions): New member function.
5009 * c-lang.c (c_extensions): Delete, moved into
5010 c_language::filename_extensions.
5011 (c_language_data): Remove la_filename_extensions initializer.
5012 (c_language::filename_extensions): New member function.
5013 (cplus_extensions): Delete, moved into
5014 cplus_language::filename_extensions.
5015 (cplus_language_data): Remove la_filename_extensions initializer.
5016 (cplus_language::filename_extensions): New member function.
5017 (asm_extensions): Delete, moved into
5018 asm_language::filename_extensions.
5019 (asm_language_data): Remove la_filename_extensions initializer.
5020 (asm_language::filename_extensions): New member function.
5021 (minimal_language_data): Remove la_filename_extensions
5022 initializer.
5023 * d-lang.c (d_extensions): Delete, moved into
5024 d_language::filename_extensions.
5025 (d_language_data): Remove la_filename_extensions initializer.
5026 (d_language::filename_extensions): New member function.
5027 * f-lang.c (f_extensions): Delete, moved into
5028 f_language::filename_extensions.
5029 (f_language_data): Remove la_filename_extensions initializer.
5030 (f_language::filename_extensions): New member function.
5031 * go-lang.c (go_language_data): Remove la_filename_extensions
5032 initializer.
5033 * language.c (add_set_language_command): Update now that
5034 filename_extensions returns a vector.
5035 (unknown_language_data): Remove la_filename_extensions
5036 initializer.
5037 (auto_language_data): Likewise.
5038 * language.h (language_data): Remove la_filename_extensions field.
5039 (language_defn::filename_extensions): New member function.
5040 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5041 initializer.
5042 * objc-lang.c (objc_extensions): Delete, moved into
5043 objc_language::filename_extensions.
5044 (objc_language_data): Remove la_filename_extensions initializer.
5045 (objc_language::filename_extensions): New member function.
5046 * opencl-lang.c (opencl_language_data): Remove
5047 la_filename_extensions initializer.
5048 * p-lang.c (pascal_extensions): Delete, moved into
5049 pascal_language::filename_extensions.
5050 (pascal_language_data): Remove la_filename_extensions initializer.
5051 (pascal_language::filename_extensions): New member function.
5052 * rust-lang.c (rust_extensions): Delete, moved into
5053 rust_language::filename_extensions.
5054 (rust_language_data): Remove la_filename_extensions initializer.
5055 (rust_language::filename_extensions): New member function.
5056 * symfile.c (add_filename_language): Add new assert.
5057
6f7664a9
AB
50582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * ada-lang.c (ada_language_data): Remove la_name and
5061 la_natural_name initializers.
5062 (ada_language::name): New member function.
5063 (ada_language::natural_name): New member function.
5064 * c-lang.c (c_language_data): Remove la_name and
5065 la_natural_name initializers.
5066 (c_language::name): New member function.
5067 (c_language::natural_name): New member function.
5068 (cplus_language_data): Remove la_name and
5069 la_natural_name initializers.
5070 (cplus_language::name): New member function.
5071 (cplus_language::natural_name): New member function.
5072 (asm_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (asm_language::name): New member function.
5075 (asm_language::natural_name): New member function.
5076 (minimal_language_data): Remove la_name and
5077 la_natural_name initializers.
5078 (minimal_language::name): New member function.
5079 (minimal_language::natural_name): New member function.
5080 * compile/compile.c (compile_to_object): Update call to
5081 lanugage_defn::name.
5082 * d-lang.c (d_language_data): Remove la_name and
5083 la_natural_name initializers.
5084 (d_language::name): New member function.
5085 (d_language::natural_name): New member function.
5086 * expprint.c (print_subexp_standard): Update call to
5087 language_defn::name.
5088 (dump_raw_expression): Likewise
5089 (dump_prefix_expression): Likewise.
5090 * f-lang.c (f_language_data): Remove la_name and
5091 la_natural_name initializers.
5092 (f_language::name): New member function.
5093 (f_language::natural_name): New member function.
5094 * go-lang.c (go_language_data): Remove la_name and
5095 la_natural_name initializers.
5096 (go_language::name): New member function.
5097 (go_language::natural_name): New member function.
5098 * language.c (show_language_command): Update call to
5099 language_defn::name.
5100 (set_language_command): Likewise.
5101 (language_enum): Likewise.
5102 (language_str): Likewise.
5103 (add_set_language_command): Likewise, use
5104 language_defn::natural_name in the doc string.
5105 (unknown_language_data): Remove la_name and
5106 la_natural_name initializers.
5107 (unknown_language::name): New member function.
5108 (unknown_language::natural_name): New member function.
5109 (auto_language_data): Remove la_name and
5110 la_natural_name initializers.
5111 (auto_language::name): New member function.
5112 (auto_language::natural_name): New member function.
5113 (language_lookup_primitive_type_as_symbol): Update call to
5114 language_defn::name.
5115 * language.h (language_data): Remove la_name and la_natural_name
5116 member variables.
5117 (language_defn::name): New member function.
5118 (language_defn::natural_name): New member function.
5119 * m2-lang.c (m2_language_data): Remove la_name and
5120 la_natural_name initializers.
5121 (m2_language::name): New member function.
5122 (m2_language::natural_name): New member function.
5123 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5124 language_defn::natural_name.
5125 * objc-lang.c (objc_language_data): Remove la_name and
5126 la_natural_name initializers.
5127 (objc_language::name): New member function.
5128 (objc_language::natural_name): New member function.
5129 * opencl-lang.c (opencl_language_data): Remove la_name and
5130 la_natural_name initializers.
5131 (opencl_language::name): New member function.
5132 (opencl_language::natural_name): New member function.
5133 * p-lang.c (pascal_language_data): Remove la_name and
5134 la_natural_name initializers.
5135 (pascal_language::name): New member function.
5136 (pascal_language::natural_name): New member function.
5137 * rust-lang.c (rust_language_data): Remove la_name and
5138 la_natural_name initializers.
5139 (rust_language::name): New member function.
5140 (rust_language::natural_name): New member function.
5141 * symtab.c (lookup_language_this): Update call to
5142 language_defn::name.
5143
5bae7c4e
AB
51442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * ada-lang.c (ada_language_data): Remove la_name_of_this
5147 initializer.
5148 * ax-gdb.c (gen_expr): Update call to name_of_this.
5149 * c-exp.y (classify_name): Likewise.
5150 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5151 (cplus_language_data): Likewise.
5152 (cplus_language::name_of_this): New member function.
5153 (asm_language_data): Remove la_name_of_this initializer.
5154 (minimal_language_data): Likewise.
5155 * d-lang.c (d_language_data): Likewise.
5156 (d_language::name_of_this): New member function.
5157 * expprint.c (print_subexp_standard): Update call to name_of_this.
5158 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5159 * go-lang.c (go_language_data): Likewise.
5160 * language.c (unknown_language_data): Likewise.
5161 (unknown_language::name_of_this): New member function.
5162 (auto_language_data): Remove la_name_of_this initializer.
5163 (auto_language::name_of_this): New member function.
5164 * language.h (language_data): Delete la_name_of_this member
5165 variable.
5166 (language_defn::name_of_this): New member function.
5167 * m2-lang.c (m2_language_data): Remove la_name_of_this
5168 initializer.
5169 * objc-lang.c (objc_language_data): Likewise.
5170 (objc_language::name_of_this): New member function.
5171 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5172 initializer.
5173 * p-lang.c (pascal_language_data): Likewise.
5174 (pascal_language::name_of_this): New member function.
5175 * rust-lang.c (rust_language_data): Remove la_name_of_this
5176 initializer.
5177 * symtab.c (lookup_language_this): Update call to name_of_this.
5178 (lookup_symbol_aux): Likewise.
5179 * valops.c (value_of_this): Likewise.
5180
22e3f3ed
AB
51812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * ada-lang.c (ada_language_data): Remove
5184 la_struct_too_deep_ellipsis initializer.
5185 (ada_language::struct_too_deep_ellipsis): New member function.
5186 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5187 initializer.
5188 (cplus_language_data): Likewise.
5189 (asm_language_data): Likewise.
5190 (minimal_language_data): Likewise.
5191 * cp-valprint.c (cp_print_value): Update call to
5192 struct_too_deep_ellipsis.
5193 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5194 initializer.
5195 * f-lang.c (f_language_data): Likewise.
5196 (f_language::struct_too_deep_ellipsis): New member function.
5197 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5198 initializer.
5199 * language.c (unknown_language_data): Likewise.
5200 (auto_language_data): Likewise.
5201 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5202 member variable.
5203 (language_defn::struct_too_deep_ellipsis): New member function.
5204 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5205 initializer.Q
5206 * objc-lang.c (objc_language_data): Likewise.
5207 * opencl-lang.c (opencl_language_data): Likewise.
5208 * p-lang.c (pascal_language_data): Likewise.
5209 * rust-lang.c (rust_language_data): Likewise.
5210 * valprint.c (val_print_check_max_depth): Update call to
5211 struct_too_deep_ellipsis.
5212
ed29e1c7
FW
52132020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5214
5215 * MAINTAINERS (Write After Approval): Add myself.
5216
12d8f940
TT
52172020-09-15 Tom Tromey <tom@tromey.com>
5218
5219 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5220 Remove.
5221
6b5a7bc7
TT
52222020-09-15 Tom Tromey <tom@tromey.com>
5223
5224 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5225 and TYPE_CODE_METHODPTR cases.
5226 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5227 (c_value_print_inner): Update.
5228 * valprint.c (generic_value_print_memberptr): New function, from
5229 c_value_print_memberptr.
5230 (generic_value_print): Use it. Call cplus_print_method_ptr.
5231
47f0e2ff
TT
52322020-09-15 Tom Tromey <tromey@adacore.com>
5233
5234 * python/python-internal.h (PyInt_FromLong): Remove define.
5235 * python/py-value.c (convert_value_from_python): Use
5236 gdb_py_object_from_longest.
5237 * python/py-type.c (typy_get_code): Use
5238 gdb_py_object_from_longest.
5239 * python/py-symtab.c (salpy_get_line): Use
5240 gdb_py_object_from_longest.
5241 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5242 gdb_py_object_from_longest.
5243 * python/py-record.c (recpy_gap_reason_code): Use
5244 gdb_py_object_from_longest.
5245 * python/py-record-btrace.c (recpy_bt_insn_size)
5246 (recpy_bt_func_level, btpy_list_count): Use
5247 gdb_py_object_from_longest.
5248 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5249 gdb_py_object_from_longest. Fix error handling.
5250 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5251 gdb_py_object_from_longest.
5252 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5253 gdb_py_object_from_longest.
5254 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5255 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5256 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5257
512116ce
TT
52582020-09-15 Tom Tromey <tromey@adacore.com>
5259
5260 * python/python.c (gdbpy_parameter_value): Use
5261 gdb_py_object_from_ulongest.
5262
4ab1029c
TT
52632020-09-15 Tom Tromey <tromey@adacore.com>
5264
5265 * python/py-infevents.c (create_register_changed_event_object):
5266 Use gdb_py_object_from_longest.
5267 * python/py-exitedevent.c (create_exited_event_object): Use
5268 gdb_py_object_from_longest.
5269
062534d4
TT
52702020-09-15 Tom Tromey <tromey@adacore.com>
5271
5272 * python/python.c (gdbpy_parameter_value): Use
5273 gdb_py_object_from_longest.
5274 * python/py-type.c (convert_field, typy_range): Use
5275 gdb_py_object_from_longest.
5276 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5277 gdb_py_object_from_longest.
5278 * python/py-lazy-string.c (stpy_get_length): Use
5279 gdb_py_object_from_longest.
5280 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5281 gdb_py_object_from_longest.
5282 * python/py-infevents.c (create_memory_changed_event_object): Use
5283 gdb_py_object_from_longest.
5284 * python/py-inferior.c (infpy_get_num): Use
5285 gdb_py_object_from_longest.
5286 (infpy_get_pid): Likewise.
5287
d1cab987
TT
52882020-09-15 Tom Tromey <tromey@adacore.com>
5289
5290 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5291 defines.
5292 * python/py-value.c (valpy_long): Use
5293 gdb_py_object_from_ulongest.
5294 * python/py-symtab.c (salpy_get_pc): Use
5295 gdb_py_object_from_ulongest.
5296 (salpy_get_last): Likewise.
5297 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5298 gdb_py_object_from_ulongest.
5299 * python/py-lazy-string.c (stpy_get_address): Use
5300 gdb_py_object_from_ulongest.
5301 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5302 * python/py-arch.c (archpy_disassemble): Use
5303 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5304 error handling.
5305
4bde49dc
TT
53062020-09-15 Tom Tromey <tromey@adacore.com>
5307
5308 * python/python-internal.h (gdb_py_long_from_longest): Remove
5309 defines.
5310 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5311 * python/py-type.c (convert_field, typy_get_sizeof): Use
5312 gdb_py_object_from_longest.
5313 * python/py-record-btrace.c (btpy_list_index): Use
5314 gdb_py_object_from_longest.
5315
37431074
TT
53162020-09-15 Tom Tromey <tromey@adacore.com>
5317
5318 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5319 * python/py-record.c (recpy_element_number): Use
5320 gdb_py_object_from_longest.
5321 (recpy_gap_number): Likewise.
5322
cbe25684
TT
53232020-09-15 Tom Tromey <tromey@adacore.com>
5324
5325 * top.c (ui::ui): Update.
5326 (highest_ui_num): Remove.
5327 * top.h (struct ui) <num>: Remove.
5328
db92ac45
TT
53292020-09-15 Tom Tromey <tromey@adacore.com>
5330
5331 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5332 * ui-style.c (ansi_regex_text): Now array.
5333 * rust-exp.y (number_regex_text): Now array.
5334 * linespec.c (linespec_quote_characters): Now array.
5335 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5336 Now arrays.
5337
d2b31b67
SM
53382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * debuginfod-support.c (debuginfod_client_deleter): New.
5341 (debuginfod_client_up): New.
5342 (debuginfod_init): Return debuginfod_client_up.
5343 (debuginfod_source_query): Adjust.
5344 (debuginfod_debuginfo_query): Adjust.
5345
3246bd8e
SM
53462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5347
5348 * debuginfod-support.c (debuginfod_source_query): Use
5349 make_unique_xstrdup.
5350
10242f36
SM
53512020-09-14 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5354 with `type::instance_flags`.
5355
e1044e6a
MM
53562020-09-14 Michael Mullin <masmullin@gmail.com>
5357
5358 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5359 Remove baton parameter.
5360
04902b09
PA
53612020-09-14 Pedro Alves <pedro@palves.net>
5362
5363 * Makefile.in (SELFTESTS_SRCS): Add
5364 unittests/enum-flags-selftests.c.
5365 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5366 btrace_function_flags instead of enum btrace_function_flag.
5367 * compile/compile-c-types.c (convert_qualified): Use
5368 enum_flags::raw.
5369 * compile/compile-cplus-symbols.c (convert_one_symbol)
5370 (convert_symbol_bmsym):
5371 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5372 (compile_cplus_convert_struct_or_union_methods)
5373 (compile_cplus_instance::convert_qualified_base):
5374 * go-exp.y (parse_string_or_char): Add cast to int.
5375 * unittests/enum-flags-selftests.c: New file.
5376 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5377 type to btrace_thread_flags from btrace_thread_flag.
5378 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5379 local's type to btrace_thread_flags from btrace_thread_flag. Add
5380 cast in DEBUG call.
5381
69896a2c
PA
53822020-09-14 Pedro Alves <pedro@palves.net>
5383
5384 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5385 * gdbtypes.c (address_space_name_to_int): Rename to ...
5386 (address_space_name_to_type_instance_flags): ... this.
5387 (address_space_int_to_name): Rename to ...
5388 (address_space_type_instance_flags_to_name): ... this.
5389 * gdbtypes.h (address_space_name_to_int): Rename to ...
5390 (address_space_name_to_type_instance_flags): ... this.
5391 (address_space_int_to_name): Rename to ...
5392 (address_space_type_instance_flags_to_name): ... this.
5393 * type-stack.c (type_stack::insert): Adjust to rename.
5394 * type-stack.h (type_stack::insert): Likewise.
5395
314ad88d
PA
53962020-09-14 Pedro Alves <pedro@palves.net>
5397 Andrew Burgess <andrew.burgess@embecosm.com>
5398
5399 * avr-tdep.c (avr_address_class_type_flags): Return
5400 type_instance_flags.
5401 (avr_address_class_type_flags_to_name): Take a
5402 type_instance_flags.
5403 (avr_address_class_name_to_type_flags): Return bool and take a
5404 type_instance_flags.
5405 * d-lang.c (build_d_types): Use type::set_instance_flags.
5406 * ft32-tdep.c (ft32_address_class_type_flags): Return
5407 type_instance_flags.
5408 (ft32_address_class_type_flags_to_name): Take a
5409 type_instance_flags.
5410 (ft32_address_class_name_to_type_flags): Return bool and take a
5411 type_instance_flags.
5412 (ft32_gdbarch_init): Use type::set_instance_flags.
5413 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5414 * gdbarch.h, gdbarch.c: Regenerate.
5415 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5416 (address_class_name_to_type_flags): Use type_instance_flags and
5417 bool.
5418 * gdbtypes.c (address_space_name_to_int)
5419 (address_space_int_to_name, make_qualified_type): Use
5420 type_instance_flags.
5421 (make_qualified_type): Use type_instance_flags and
5422 type::set_instance_flags.
5423 (make_type_with_address_space, make_cv_type, make_vector_type)
5424 (check_typedef): Use type_instance_flags.
5425 (recursive_dump_type): Cast type_instance_flags to unsigned for
5426 printing.
5427 (copy_type_recursive): Use type::set_instance_flags.
5428 (gdbtypes_post_init): Use type::set_instance_flags.
5429 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5430 <m_instance_flags>: ... this.
5431 <instance_flags, set_instance_flags>: New methods.
5432 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5433 (SET_TYPE_INSTANCE_FLAGS): New.
5434 (address_space_name_to_int, address_space_int_to_name)
5435 (make_type_with_address_space): Pass flags using
5436 type_instance_flags instead of int.
5437 * stabsread.c (cleanup_undefined_types_noname): Use
5438 type::set_instance_flags.
5439 * s390-tdep.c (s390_address_class_type_flags): Return
5440 type_instance_flags.
5441 (s390_address_class_type_flags_to_name): Take a
5442 type_instance_flags.
5443 (s390_address_class_name_to_type_flags): Return bool and take a
5444 type_instance_flags.
5445 * type-stack.c (type_stack::follow_types): Use
5446 type_instance_flags.
5447 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5448
27087b7f
TT
54492020-09-14 Tom Tromey <tromey@adacore.com>
5450
5451 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5452 * x86-tdep.c (x86_is_thunk_register_name)
5453 (x86_in_indirect_branch_thunk): Update.
5454 * sparc64-tdep.c (sparc64_fpu_register_names)
5455 (sparc64_cp0_register_names, sparc64_register_names)
5456 (sparc64_pseudo_register_names): Now const.
5457 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5458 cp0_registers_num>: Now const.
5459 * sparc-tdep.c (sparc_core_register_names)
5460 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5461 (sparc32_pseudo_register_names): Now const.
5462 (validate_tdesc_registers): Update.
5463 * rust-lang.c (rust_extensions): Now const.
5464 * p-lang.c (p_extensions): Now const.
5465 * objc-lang.c (objc_extensions): Now const.
5466 * nto-tdep.c (nto_thread_state_str): Now const.
5467 * moxie-tdep.c (moxie_register_names): Now const.
5468 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5469 Now const.
5470 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5471 (mips_linux_reg_names): Now const.
5472 (mips_gdbarch_init): Update.
5473 * microblaze-tdep.c (microblaze_register_names): Now const.
5474 * m68k-tdep.c (m68k_register_names): Now const.
5475 * m32r-tdep.c (m32r_register_names): Now const.
5476 * ia64-tdep.c (ia64_register_names): Now const.
5477 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5478 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5479 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5480 ymm_avx512_register_names, pkeys_register_names>: Now const.
5481 * i386-tdep.c (i386_register_names, i386_zmm_names)
5482 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5483 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5484 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5485 * f-lang.c (f_extensions): Now const.
5486 * d-lang.c (d_extensions): Now const.
5487 * csky-tdep.c (csky_register_names): Now const.
5488 * charset.c (default_charset_names, charset_enum): Now const.
5489 (_initialize_charset): Update.
5490 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5491 const.
5492 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5493 (bsd_uthread_solib_loaded): Update.
5494 (bsd_uthread_state): Now const.
5495 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5496 (amd64_ymm_avx512_names, amd64_ymmh_names)
5497 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5498 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5499 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5500 (amd64_dword_names): Now const.
5501 * agent.c (can_use_agent_enum): Now const.
5502 * ada-tasks.c (task_states, long_task_states): Now const.
5503 * ada-lang.c (known_runtime_file_name_patterns)
5504 (known_auxiliary_function_name_patterns, attribute_names)
5505 (standard_exc, ada_extensions): Now const.
5506
89806626
SM
55072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * bcache.h (struct bcache) <bcache>: Remove constructor.
5510 <m_hash_function, m_compare_function>: Remove.
5511 <~bcache>: Make virtual.
5512 <compare>: Remove static method, introduce virtual method.
5513 <default_hash>: Remove.
5514 <hash>: New virtual method.
5515 * bcache.c (bcache::expand_hash_table): Update.
5516 (bcache::insert): Update.
5517 (bcache::hash): New.
5518 (bcache::compare): Update comment and parameter names.
5519 * gdbtypes.c (types_deeply_equal): Update.
5520 * psymtab.h (struct psymbol_bcache): New struct.
5521 (class psymtab_storage) <psymtab_storage>: Make default.
5522 <psymbol_cache>: Change type to psymbol_bcache.
5523 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5524 (psymbol_hash): Change to...
5525 (psymbol_bcache::hash): ... this.
5526 (psymbol_compare): Change to...
5527 (psymbol_bcache::compare): ... this.
5528
677c92fe
SM
55292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5530
5531 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5532 checking for initial lwp.
5533
3eba3a01
TT
55342020-09-14 Tom Tromey <tromey@adacore.com>
5535
5536 * m68k-tdep.c (m68k_extract_return_value): Use
5537 pointer_result_regnum.
5538 (m68k_store_return_value): Likewise.
5539 (m68k_reg_struct_return_p): Handle vectors and arrays.
5540 (m68k_return_value): Handle arrays.
5541 (m68k_svr4_return_value): Fix single-element aggregate handling.
5542 Handle long double. Adjust for embedded ABI.
5543 (m68k_svr4_init_abi): Set pointer_result_regnum.
5544 (m68k_embedded_init_abi): New function.
5545 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5546 (m68k_osabi_sniffer): New function.
5547 (_initialize_m68k_tdep): Register osabi sniffer.
5548 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5549 member.
5550
33f4dd48
SM
55512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5554 with gdb::unique_xmalloc_ptr<char>.
5555
8400a90d
SM
55562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5557
5558 * xml-support.h (xml_fetch_another): Change type to be a
5559 function_view.
5560 (xml_process_xincludes): Remove baton parameter.
5561 (xml_fetch_content_from_file): Change baton parameter to
5562 dirname.
5563 * xml-support.c (struct xinclude_parsing_data)
5564 <xinclude_parsing_data>: Remove baton parameter.
5565 <fetcher_baton>: Remove.
5566 (xinclude_start_include): Adjust.
5567 (xml_process_xincludes): Adjust.
5568 (xml_fetch_content_from_file): Replace baton parameter with
5569 dirname.
5570 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5571 (xml_init_syscalls_info): Use a lambda.
5572 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5573 (file_read_description_xml): Use a lambda.
5574 (fetch_available_features_from_target): Change baton parameter
5575 to target_ops.
5576 (target_read_description_xml): Use a lambda.
5577 (target_fetch_description_xml): Use a lambda.
5578 (string_read_description_xml): Update.
5579
04f5bab2
SM
55802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5583 uses with type::endianity_is_not_default.
5584
db558e34
SM
55852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * gdbtypes.h (struct type) <endianity_is_not_default,
5588 set_endianity_is_not_default>: New methods.
5589 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5590 type::endianity_is_not_default, change all write call sites to
5591 use type::set_endianity_is_not_default.
5592
22c4c60c
SM
55932020-09-14 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5596 uses with type::is_fixed_instance.
5597
9cdd0d12
SM
55982020-09-14 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * gdbtypes.h (struct type) <is_fixed_instance,
5601 set_is_fixed_instance>: New methods.
5602 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5603 write call sites to use type::set_is_fixed_instance.
5604
0becda7a
SM
56052020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5608 uses with type::is_gnu_ifunc.
5609
03cc7249
SM
56102020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5613 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5614 use type::set_is_gnu_ifunc.
5615
3f46044c
SM
56162020-09-14 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5619 uses with type::stub_is_supported.
5620
9baccff6
SM
56212020-09-14 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5624 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5625 use type::set_stub_is_supported.
5626
bd63c870
SM
56272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5630 uses with type::is_vector.
5631
2062087b
SM
56322020-09-14 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5635 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5636 use type::set_is_vector.
5637
a409645d
SM
56382020-09-14 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5641 uses with type::has_varargs.
5642
1d6286ed
SM
56432020-09-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5646 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5647 use type::set_has_varargs.
5648
7f9f399b
SM
56492020-09-14 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5652 uses with type::is_prototyped.
5653
27e69b7a
SM
56542020-09-14 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5657 New methods.
5658 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5659 call sites to use type::set_is_prototyped.
5660
d2183968
SM
56612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5662
5663 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5664 uses with type::target_is_stub.
5665
8f53807e
SM
56662020-09-14 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5669 New methods.
5670 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5671 sites to use type::set_target_is_stub.
5672
e46d3488
SM
56732020-09-14 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (TYPE_STUB): Remove, replace all
5676 uses with type::is_stub.
5677
b4b73759
SM
56782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5681 (TYPE_STUB): Use type::is_stub, change all write call sites to
5682 use type::set_is_stub.
5683
20ce4123
SM
56842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5687 type::has_no_signedness.
5688
15152a54
SM
56892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5690
5691 * gdbtypes.h (struct type) <has_no_signedness,
5692 set_has_no_signedness>: New methods.
5693 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5694 call sites to use type::set_has_no_signedness.
5695
c6d940a9
SM
56962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5699 type::is_unsigned.
5700
653223d3
SM
57012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5704 methods.
5705 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5706 sites to use type::set_is_unsigned.
5707
55ea94da 57082020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5709 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5710
e851246a
SM
5711 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5712 pointer and stack frame offset when unwinding.
55ea94da 5713
6791b117
PA
57142020-09-13 Pedro Alves <pedro@palves.net>
5715
5716 * NEWS: Document "-break-insert --qualified".
5717 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5718
77f2120b
PA
57192020-09-13 Pedro Alves <pedro@palves.net>
5720
5721 * linespec.c (classify_mtype, compare_msyms): Delete.
5722 (search_minsyms_for_name): Remove classification logic. Instead
5723 filter out trampoline symbols if we also found an external
5724 function of the same name.
5725
ed6a896c
JB
57262020-09-13 Joel Brobecker <brobecker@adacore.com>
5727
5728 * NEWS: Create a new section for the next release branch.
5729 Rename the section of the current branch, now that it has
5730 been cut.
5731
32aea73e
JB
57322020-09-13 Joel Brobecker <brobecker@adacore.com>
5733
5734 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5735 * version.in: Bump version to 11.0.50.DATE-git.
5736
8087c3fa
JB
57372020-09-12 Joel Brobecker <brobecker@adacore.com>
5738
5739 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5740
2a67f09d
FW
57412020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5742 Felix Willgerodt <Felix.Willgerodt@intel.com>
5743
5744 * gdbarch.sh: Added bfloat16 type.
5745 * gdbarch.c: Regenerated.
5746 * gdbarch.h: Regenerated.
5747 * gdbtypes.c (floatformats_bfloat16): New struct.
5748 (gdbtypes_post_init): Add builtin_bfloat16.
5749 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5750 (floatformats_bfloat16): New struct.
5751 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5752 (i386_ymm_type): Add field "v16_bfloat16"
5753 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5754 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5755 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5756 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5757 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5758 * features/i386/64bit-avx512.c: Regenerated.
5759 * features/i386/64bit-sse.xml: Add bfloat16 type.
5760 * features/i386/64bit-sse.c: Regenerated.
5761
1347d111
FW
57622020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5763
5764 * i386-tdep.c (i386_zmm_type): Fix field names.
5765 (i386_ymm_type): Fix field names.
5766
7a4e8e7d
TBA
57672020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5768
5769 * breakpoint.c: Fix typo in the help message of the
5770 "set breakpoint condition-evaluation" command.
5771
cf4ac4be
KR
57722020-09-10 Kamil Rytarowski <n54@gmx.com>
5773
5774 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5775 * (nbsd_nat_target::pid_to_exec_file)
5776 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5777 (nbsd_nat_target::post_startup_inferior)
5778 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5779 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5780 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5781 * (nbsd_thread_lister): Remove.
5782
f404573e
KR
57832020-09-10 Kamil Rytarowski <n54@gmx.com>
5784
5785 * fork-inferior.c (startup_inferior): Avoid double free.
5786
1ccb2c17
KR
57872020-09-10 Kamil Rytarowski <n54@gmx.com>
5788
5789 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5790 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5791
feedfcc7
KR
57922020-09-10 Kamil Rytarowski <n54@gmx.com>
5793
5794 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5795 * netbsd-nat.c: Include <sys/ptrace.h>.
5796 * (netbsd_nat::enable_proc_events): Add.
5797
c489f8c6
KR
57982020-09-10 Kamil Rytarowski <n54@gmx.com>
5799
5800 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5801 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5802 (netbsd_nat::for_each_thread): Add.
5803 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5804 "gdbsupport/common-debug.h".
5805 * (netbsd_nat::netbsd_thread_lister)
5806 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5807 (netbsd_nat::for_each_thread): Add.
5808
330662f6
KR
58092020-09-10 Kamil Rytarowski <n54@gmx.com>
5810
5811 * netbsd-nat.h: Include <unistd.h>.
5812 * (netbsd_nat::pid_to_exec_file): Add.
5813 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5814 * (netbsd_nat::pid_to_exec_file) Add.
5815
70b67307
KR
58162020-09-10 Kamil Rytarowski <n54@gmx.com>
5817
5818 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5819
99cf6da6
KR
58202020-09-10 Kamil Rytarowski <n54@gmx.com>
5821
5822 * netbsd-nat.h: New file.
5823 * netbsd-nat.c: Likewise.
5824
1b788fb6
TT
58252020-09-09 Tom Tromey <tromey@adacore.com>
5826
5827 * ada-lang.c (remove_extra_symbols): Do not increment when
5828 removing an element
5829
03b0a45f
TT
58302020-09-08 Tom Tromey <tromey@adacore.com>
5831
5832 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5833
3cae4447
TT
58342020-09-08 Tom Tromey <tromey@adacore.com>
5835
5836 PR win32/25302:
5837 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5838 (gdb_bfd_init_data): New function.
5839 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5840
7f08fd51
TBA
58412020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5842
5843 * infrun.c (fetch_inferior_event): Use
5844 `switch_to_target_no_thread` to switch the target.
5845
3e6ff933
TT
58462020-09-06 Tom Tromey <tom@tromey.com>
5847
5848 * symfile.h (dwarf2_free_objfile): Don't declare.
5849
e56798df
AKS
58502020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5851
5852 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5853 to match 16 byte real/complex type generated by Flang compiler.
5854
8f5c6526
TV
58552020-09-03 Tom de Vries <tdevries@suse.de>
5856
5857 PR breakpoint/26546
5858 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5859 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5860
c5065df0
SM
58612020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 * maint.c (index_digits): New function.
5864 (struct maint_print_section_data): Remove.
5865 (print_bfd_section_info): Remove print_data parameter, add arg
5866 and index_digits.
5867 (print_objfile_section_info): Likewise.
5868 (print_bfd_section_info_maybe_relocated): Likewise (plus
5869 objfile).
5870 (maintenance_info_sections): Adjust calls.
5871
02c6f3f1
TT
58722020-09-02 Tom Tromey <tromey@adacore.com>
5873
5874 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5875 for null pointers.
5876 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5877
ef5e5b0b
SM
58782020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * bcache.h (struct bcache) <insert>: Change type of `added` to
5881 pointer to bool.
5882 * bcache.c (bcache::insert): Likewise.
5883 * gdbtypes.c (check_types_worklist): Adjust.
5884 * psymtab.c (add_psymbol_to_bcache): Adjust.
5885
973695d6
KB
58862020-08-31 Kevin Buettner <kevinb@redhat.com>
5887
5888 * corelow.c (unordered_set): Include.
5889 (class core_target): Add field 'm_core_unavailable_mappings'.
5890 (core_target::build_file_mappings): Print only one warning
5891 per inaccessible file. Add unavailable/broken mappings
5892 to m_core_unavailable_mappings.
5893 (core_target::xfer_partial): Call...
5894 (core_target::xfer_memory_via_mappings): New method.
5895
264fc0e2
SM
58962020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5899 type to bool.
5900
2de01bdb
SM
59012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 * dwarf2/read.c (struct field_info): Fix indentation.
5904
f3bd50f1
SM
59052020-08-31 Simon Marchi <simon.marchi@efficios.com>
5906
5907 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5908 ordering in comment.
5909 * frame.c (frame_id_eq): Fix indentation.
5910
22b9b4b0
SL
59112020-08-31 Scott Linder <scott@scottlinder.com>
5912 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5915 inline frame ids in outer frame.
5916
84154d16
SM
59172020-08-31 Simon Marchi <simon.marchi@efficios.com>
5918
5919 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5920 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5921 (outer_frame_id): Use FID_STACK_OUTER instead of
5922 FID_STACK_INVALID.
5923 (frame_id_p): Don't check for outer_frame_id.
5924
8efaf6b3
SM
59252020-08-31 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5928 regnum/frame in value. Call allocate_value_lazy.
5929 * frame.c (frame_unwind_register_value): Use
5930 val_print_not_saved.
5931
fe1fe7ea
SM
59322020-08-31 Simon Marchi <simon.marchi@efficios.com>
5933
5934 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5935
f7c7700d
PA
59362020-08-29 Pedro Alves <pedro@palves.net>
5937
5938 * progspace.c (print_program_space): Use all_inferiors. Switch to
5939 the inferior before calling target_pid_to_str.
5940
e0814aae
TT
59412020-08-28 Tom Tromey <tom@tromey.com>
5942
5943 * xcoffread.c (xcoff_end_psymtab): Update comment.
5944 * dbxread.c (dbx_end_psymtab): Update comment.
5945
626d2320
TV
59462020-08-28 Tom de Vries <tdevries@suse.de>
5947
5948 PR breakpoint/26544
5949 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5950 event_location.
5951 (create_breakpoint): Same.
5952 (base_breakpoint_decode_location): Same.
5953 (bkpt_create_sals_from_location): Same.
5954 (bkpt_decode_location): Same.
5955 (bkpt_probe_create_sals_from_location): Same.
5956 (bkpt_probe_decode_location): Same.
5957 (tracepoint_create_sals_from_location): Same.
5958 (tracepoint_decode_location): Same.
5959 (tracepoint_probe_decode_location): Same.
5960 (strace_marker_create_sals_from_location): Same.
5961 (strace_marker_decode_location): Same.
5962 (create_sals_from_location_default): Same.
5963 (decode_location_default): Same.
5964 * breakpoint.h (struct breakpoint_ops): Same.
5965 (create_breakpoint): Same.
5966 * linespec.h (decode_line_full): Same.
5967 * linespec.c (decode_line_full): Same. Throw error if
5968 result.size () == 0.
5969
df631783
PA
59702020-08-27 Pedro Alves <pedro@palves.net>
5971
5972 PR gdb/26524
5973 * breakpoint.c (until_break_fsm) <location_breakpoint,
5974 caller_breakpoint>: Delete fields.
5975 <breakpoints>: New field.
5976 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5977 two individual breakpoints.
5978 (until_break_fsm::should_stop): Loop over breakpoints in the
5979 breakpoint vector.
5980 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5981 vector.
5982 (until_break_command): Handle location expanding into multiple
5983 sals.
5984
b2b38aa4
PA
59852020-08-27 Pedro Alves <pedro@palves.net>
5986
5987 PR gdb/26523
5988 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5989 bp_until breakpoints user-specified locations. Update intro
5990 comment.
5991
b886559f
SM
59922020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5993
5994 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5995 gdb_bfd_sections): New.
5996 * maint.c (print_bfd_section_info): Change param type to
5997 maint_print_section_data.
5998 (print_objfile_section_info): Likewise.
5999 (print_bfd_section_info_maybe_relocated): Likewise.
6000 (maintenance_info_sections): Use gdb_bfd_sections.
6001
4c6e63bf
SV
60022020-08-25 Shahab Vahedi <shahab@synopsys.com>
6003
6004 * MAINTAINERS: Add ARC target and maintainer.
6005
8d7f0635
AK
60062020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6007
6008 * configure.tgt: ARC support for GNU/Linux.
6009 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6010 * arc-linux-tdep.c: New file.
6011 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6012 * arc-tdep.c (arc_write_pc): Use it.
6013
fdd8731b
SV
60142020-08-25 Shahab Vahedi <shahab@synopsys.com>
6015
6016 * arc-tdep.c (arc_check_for_hardware_loop): New.
6017 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6018
22459524
SV
60192020-08-25 Shahab Vahedi <shahab@synopsys.com>
6020
6021 * arc-tdep.h: Include "gdbarch.h".
6022
995d3a19
SV
60232020-08-25 Shahab Vahedi <shahab@synopsys.com>
6024
6025 * arch/arc.h
6026 (arc_gdbarch_features): New class to stir the selection of target XML.
6027 (arc_create_target_description): Use FEATURES to choose XML target.
6028 (arc_lookup_target_description): Use arc_create_target_description
6029 to create _new_ target descriptions or return the already created
6030 ones if the FEATURES is the same.
6031 * arch/arc.c: Implementation of prototypes described above.
6032 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6033 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6034 * arc-tdep.c (*_feature_name): Make feature names consistent.
6035 (arc_register_feature): A new struct to hold information about
6036 registers of a particular target/feature.
6037 (arc_check_tdesc_feature): Check if XML provides registers in
6038 compliance with ARC_REGISTER_FEATURE structs.
6039 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6040 (determine_*_reg_feature_set): Which feature name to look for.
6041 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6042 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6043 to expected ISA enums to be used in arc_gdbarch_features structs.
6044 * features/Makefile (FEATURE_XMLFILES): Add new files.
6045 * gdb/features/arc/v1-aux.c: New file.
6046 * gdb/features/arc/v1-aux.xml: Likewise.
6047 * gdb/features/arc/v1-core.c: Likewise.
6048 * gdb/features/arc/v1-core.xml: Likewise.
6049 * gdb/features/arc/v2-aux.c: Likewise.
6050 * gdb/features/arc/v2-aux.xml: Likewise.
6051 * gdb/features/arc/v2-core.c: Likewise.
6052 * gdb/features/arc/v2-core.xml: Likewise.
6053 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6054
3945d2d7
GM
60552020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6056 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 PR m2/26372
fc5d6901 6059 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6060 an assert. Remove single element array indexing pattern as the
6061 MULTI_SUBSCRIPT support will handle this case too.
6062
2677f2d3
SM
60632020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * value.h (valprint_check_validity): Move declaration from
6066 here...
6067 * valprint.h (valprint_check_validity): ... to here.
6068
c426fddb
SM
60692020-08-24 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * debug.h: New file.
6072 * debug.c (debug_prefixed_vprintf): New function.
6073 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6074 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6075
1eb8556f
SM
60762020-08-24 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * infrun.h (infrun_debug_printf_1): New function declaration.
6079 (infrun_debug_printf): New macro.
6080 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6081 throughout.
6082 (infrun_debug_printf): New function.
6083 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6084 (handle_jit_event): Likewise.
6085
b8fff44e
MW
60862020-08-21 Mark Wielaard <mark@klomp.org>
6087
6088 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6089
d19c3068
SM
60902020-08-22 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * frame.c (enum class frame_id_status): New.
6093 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6094 (fprintf_frame): Update.
6095 (compute_frame_id): Set frame id status to "computing" on entry.
6096 Set it back to "not_computed" on failure and to "computed" on
6097 success.
6098 (get_frame_id): Assert the frame id is not being computed.
6099 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6100 (create_new_frame): Likewise.
6101 (frame_cleanup_after_sniffer): Update assert.
6102
b70e516e
SM
61032020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * regcache.c (pid_ptid_regcache_map): New type.
6106 (target_ptid_regcache_map): Remove.
6107 (target_pid_ptid_regcache_map): New type.
6108 (regcaches): Change type to target_pid_ptid_regcache_map.
6109 (get_thread_arch_aspace_regcache): Update.
6110 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6111 case.
6112 (regcaches_size): Update.
6113 (regcache_count): Update.
6114 (registers_changed_ptid_target_pid_test): New.
6115 (_initialize_regcache): Register new test.
6116
cdd9148a
SM
61172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * regcache.c (regcache_count): New.
6120 (struct regcache_test_data): New.
6121 (regcache_test_data_up): New.
6122 (populate_regcaches_for_test): New.
6123 (regcaches_test): Remove.
6124 (get_thread_arch_aspace_regcache_test): New.
6125 (registers_changed_ptid_all_test): New.
6126 (registers_changed_ptid_target_test): New.
6127 (registers_changed_ptid_target_ptid_test): New.
6128 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6129 (_initialize_regcache): Register new tests.
6130
dd125343
SM
61312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6134 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6135 gdbarch and aspace parameter. Use current inferior's aspace.
6136 Validate regcache's arch value.
6137 (regcaches_test): Update.
6138
3ee93972
SM
61392020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6140
6141 * regcache.c (regcaches_test): Call registers_changed.
6142
33bf4c5c
TBA
61432020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6144
6145 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6146
c2fd7fae
AKS
61472020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6148
6149 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6150 to find the end of prologue for flang compiled binaries.
6151 * arm-tdep.c (arm_skip_prologue): Likewise.
6152 * i386-tdep.c (i386_skip_prologue): Likewise.
6153 * producer.c (producer_is_llvm): New function.
6154 (producer_parsing_tests): Added new tests for clang/flang.
6155 * producer.h (producer_is_llvm): New declaration.
6156
9327494e
SM
61572020-08-18 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * linux-nat.c (linux_nat_debug_printf): New function.
6160 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6161
d138725a
AM
61622020-08-18 Aaron Merey <amerey@redhat.com>
6163
6164 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6165 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6166 (CLIBS): Add DEBUGINFOD_LIBS.
6167
f9b11e6b
ST
61682020-08-17 Sergei Trofimovich <siarheit@google.com>
6169
6170 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6171 'gdbarch_num_regs'.
6172
3ae7ab99
TT
61732020-08-17 Tom Tromey <tromey@adacore.com>
6174
6175 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6176 ada_get_decoded_value returns NULL.
6177
b017825f
TT
61782020-08-17 Tom Tromey <tromey@adacore.com>
6179
6180 * python/py-inferior.c (infpy_search_memory): Use
6181 gdb_py_object_from_ulongest.
6182 * python/py-infevents.c (create_inferior_call_event_object)
6183 (create_memory_changed_event_object): Use
6184 gdb_py_object_from_ulongest.
6185 * python/py-linetable.c (ltpy_entry_get_pc): Use
6186 gdb_py_object_from_ulongest.
6187
7635cf79
SM
61882020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * loc.c (class symbol_needs_eval_context): Fix indentation.
6191
f54be24b
SM
61922020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6195 bool.
6196
53d5a2a5
TV
61972020-08-17 Tom de Vries <tdevries@suse.de>
6198
6199 PR gdb/26393
6200 * gdbtypes.c (dump_dynamic_prop): New function.
6201 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6202
547ce8f0
TV
62032020-08-15 Tom de Vries <tdevries@suse.de>
6204
6205 PR backtrace/26390
6206 * stack.c (print_frame_args): Temporarily set the selected
6207 frame to FRAME while printing the frame's arguments.
6208
6ea815e7
PFC
62092020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6210
6211 PR breakpoints/26385
6212 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6213 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6214
6e562fa3
PFC
62152020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6216
6217 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6218 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6219 and >= to check return value instead of == -1 and != -1.
6220
d369b608
SM
62212020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * utils.h (class gdb_argv) <as_array_view>: New method.
6224 * utils.c (gdb_argv_as_array_view_test): New.
6225 (_initialize_utils): Register selftest.
6226 * maint.c (maintenance_selftest): Use the new method.
6227
b31488a3
KR
62282020-08-13 Kamil Rytarowski <n54@gmx.com>
6229
6230 * target.h (supports_dumpcore, dumpcore): New
6231 function declarations.
6232 * target.c (supports_dumpcore, dumpcore): New
6233 functions.
6234 * target-delegates.c: Rebuild.
6235 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6236 and target_dumpcore ().
6237
002a3166
AM
62382020-08-13 Aaron Merey <amerey@redhat.com>
6239
6240 * debuginfod-support.c: Replace global variables with user_data.
6241
ece5bc8a
SM
62422020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * maint.c (maintenance_selftest): Split args and pass array_view
6245 to run_tests.
6246
6d8a0a5e
LM
62472020-08-12 Luis Machado <luis.machado@linaro.org>
6248
6249 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6250 type's length.
6251 Use %s and pulongest to print the length.
6252
7cf663a9
PA
62532020-08-12 Pedro Alves <palves@redhat.com>
6254
6255 * NEWS: Move "Multi-target debugging support" item to the
6256 "Changes since GDB 9" section.
6257
27c7b875
PA
62582020-08-12 Pedro Alves <palves@redhat.com>
6259
6260 PR gdb/26336
6261 * progspace.c (program_space::remove_objfile): Invalidate the
6262 frame cache.
6263
1796a2a1
TV
62642020-08-11 Tom de Vries <tdevries@suse.de>
6265
6266 * MAINTAINERS: Mark ms1 as deleted.
6267
f8e3fe0d
LM
62682020-08-10 Luis Machado <luis.machado@linaro.org>
6269
6270 PR gdb/26310
6271
6272 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6273 act accordingly.
6274 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6275 movz/str/stur/stp skipping behavior.
6276
cc308722
LM
62772020-08-10 Luis Machado <luis.machado@linaro.org>
6278
6279 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6280 struct user_sve_header instead of struct sve_context.
6281
041d9819
SM
62822020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * read.h (dwarf2_fetch_die_loc_sect_off,
6285 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6286 `void *` parameter with function_view.
6287 * read.c (dwarf2_fetch_die_loc_sect_off,
6288 dwarf2_fetch_die_loc_cu_off): Likewise.
6289 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6290 (per_cu_dwarf_call): Adjust.
6291 (get_frame_address_in_block_wrapper): Remove.
6292 (indirect_synthetic_pointer): Adjust.
6293 (get_ax_pc): Remove.
6294 (dwarf2_compile_expr_to_ax): Adjust.
6295
38f8aa06
TV
62962020-08-08 Tom de Vries <tdevries@suse.de>
6297
6298 PR build/26344
6299 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6300 constructor.
6301 * regcache.c (get_thread_arch_aspace_regcache): Same.
6302
a52b3ae2
TT
63032020-08-07 Tom Tromey <tromey@adacore.com>
6304
6305 * ravenscar-thread.c
6306 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6307 New method.
6308 (ravenscar_thread_target::wait): Check
6309 runtime_initialized.
6310 (ravenscar_thread_target::prepare_to_store)
6311 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6312 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6313 (ravenscar_thread_target::stopped_by_watchpoint)
6314 (ravenscar_thread_target::stopped_data_address)
6315 (ravenscar_thread_target::core_of_thread): Use
6316 scoped_restore_current_thread and
6317 set_base_thread_from_ravenscar_task.
6318
0e29517d
TT
63192020-08-07 Tom Tromey <tromey@adacore.com>
6320
6321 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6322
592f9bd7
TT
63232020-08-07 Tom Tromey <tromey@adacore.com>
6324
6325 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6326 update_inferior_ptid before update_thread_list.
6327 (temporarily_change_regcache_ptid): New class.
6328 (ravenscar_thread_target::fetch_registers)
6329 (ravenscar_thread_target::store_registers)
6330 (ravenscar_thread_target::prepare_to_store): Use base thread when
6331 forwarding operation.
6332
39e2018a
TT
63332020-08-07 Tom Tromey <tromey@adacore.com>
6334
6335 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6336 "is_pid" case.
6337
2080266b
TT
63382020-08-07 Tom Tromey <tromey@adacore.com>
6339
6340 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6341 New methods.
6342 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6343 first.
6344 (ravenscar_thread_target::add_thread): Rename from
6345 ravenscar_add_thread.
6346 (ravenscar_thread_target::update_thread_list): Use a lambda.
6347 (ravenscar_thread_target::xfer_partial): New method.
6348
78c02f21
TT
63492020-08-07 Tom Tromey <tromey@adacore.com>
6350
6351 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6352 gdb::function_view.
6353 (iterate_over_live_ada_tasks): Change type of argument.
6354 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6355 of argument.
6356
d5d833af
TT
63572020-08-07 Tom Tromey <tromey@adacore.com>
6358
6359 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6360 Remove.
6361 (ravenscar_thread_target::extra_thread_info): Remove.
6362 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6363 defer to target beneath for non-Ravenscar threads.
6364
a8ac85bb
TT
63652020-08-07 Tom Tromey <tromey@adacore.com>
6366
6367 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6368 get_base_thread_from_ravenscar_task>: Now methods.
6369 <m_cpu_map>: New member.
6370 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6371 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6372 (ravenscar_thread_target::task_is_currently_active): Update.
6373 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6374 Now a method.
6375 (ravenscar_thread_target::add_active_thread): Put initial thread
6376 into the m_cpu_map.
6377
550ab58d
TT
63782020-08-07 Tom Tromey <tromey@adacore.com>
6379
6380 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6381 event_ptid.
6382
e9546579
TT
63832020-08-07 Tom Tromey <tromey@adacore.com>
6384
6385 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6386 runtime_initialized.
6387
3d4470e5
TT
63882020-08-07 Tom Tromey <tromey@adacore.com>
6389
6390 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6391 add_active_thread.
6392 (ravenscar_thread_target::add_active_thread): Now public.
6393 (ravenscar_inferior_created): Call add_active_thread after pushing
6394 the target.
6395
888bdb2b
SM
63962020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * regcache.c (ptid_regcache_map): New type.
6399 (target_ptid_regcache_map): New type.
6400 (regcaches): Change type to target_ptid_regcache_map.
6401 (get_thread_arch_aspace_regcache): Update to regcaches' new
6402 type.
6403 (regcache_thread_ptid_changed): Likewise.
6404 (registers_changed_ptid): Likewise.
6405 (regcaches_size): Likewise.
6406 (regcaches_test): Update.
6407 (regcache_thread_ptid_changed): Update.
6408 * regcache.h (regcache_up): New type.
6409 * gdbsupport/ptid.h (hash_ptid): New struct.
6410
b161a60d
SM
64112020-08-07 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * observable.h (thread_ptid_changed): Add parameter
6414 `process_stratum_target *`.
6415 * infrun.c (infrun_thread_ptid_changed): Add parameter
6416 `process_stratum_target *` and use it.
6417 (selftests): New namespace.
6418 (infrun_thread_ptid_changed): New function.
6419 (_initialize_infrun): Register selftest.
6420 * regcache.c (regcache_thread_ptid_changed): Add parameter
6421 `process_stratum_target *` and use it.
6422 (regcache_thread_ptid_changed): New function.
6423 (_initialize_regcache): Register selftest.
6424 * thread.c (thread_change_ptid): Pass target to
6425 thread_ptid_changed observable.
6426
d2854d8d
CT
64272020-08-06 Caroline Tice <cmtice@google.com>
6428
fe4c3d43
SM
6429 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6430 (struct dwp_sections): Update field comments. Add loclists and
6431 rnglists fields.
6432 (struct virtual_v2_dwo_sections): Rename struct to
6433 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6434 size & offset fields for loclists and rnglists.
6435 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6436 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6437 skipping dummy type units.
6438 (create_dwp_hash_table): Update the large comment above the function to
6439 discuss Version 5 DWP files as well, with references. Update all the
6440 version checks in the function to check for version 5 as well. Add new
6441 section at the end to create dwp hash table for version 5.
6442 (create_dwp_v2_section): Rename function to
6443 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6444 Add V5 to error message text.
6445 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6446 into calls to create_dwp_v2_or_v5_section.
6447 (create_dwo_unit_in_dwp_v5): New function.
6448 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6449 check for version2; add else clause to handle version 5.
6450 (open_and_init_dwo_file): Add code to check dwarf version & only call
6451 create_debug_types_hash_table (with sections.types) if version is not 5;
6452 else call create_debug_type_hash_table, with sections.info.
6453 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6454 version 5.
6455 (dwarf2_locate_v5_dwp_sections): New function.
6456 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6457 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6458
159ed7d9
SM
64592020-08-06 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * regcache.h (class regcache): Remove friend
6462 registers_changed_ptid.
6463 <regcache_thread_ptid_changed>: Remove.
6464 <regcaches>: Remove.
6465 * regcache.c (regcache::regcaches): Rename to...
6466 (regcaches): ... this. Make static.
6467 (get_thread_arch_aspace_regcache): Update.
6468 (regcache::regcache_thread_ptid_changed): Rename to...
6469 (regcache_thread_ptid_changed): ... this. Update.
6470 (class regcache_access): Remove.
6471 (regcaches_test): Update.
6472 (_initialize_regcache): Update.
6473 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6474 <forward_list>.
6475
174981ae
SM
64762020-08-06 Simon Marchi <simon.marchi@efficios.com>
6477
6478 * regcache.h (class regcache) <current_regcache>: Rename to...
6479 <regcaches>: ... this. Move doc here.
6480 * regcache.c (regcache::current_regcache) Rename to...
6481 (regcache::regcaches): ... this. Move doc to header.
6482 (get_thread_arch_aspace_regcache): Update.
6483 (regcache::regcache_thread_ptid_changed): Update.
6484 (registers_changed_ptid): Update.
6485 (class regcache_access) <current_regcache_size>: Rename to...
6486 <regcaches_size>: ... this.
6487 (current_regcache_test): Rename to...
6488 (regcaches_test): ... this.
6489 (_initialize_regcache): Update.
6490
ed908db6
VC
64912020-08-06 Victor Collod <vcollod@nvidia.com>
6492
6493 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6494
b5582ab7
KB
64952020-08-05 Kevin Buettner <kevinb@redhat.com>
6496
6497 * corelow.c (core_target::build_file_mappings): Don't output
6498 null pathname in warning.
6499
ea946b86
SM
65002020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6503 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6504 gdb.dwarf2/dw2-single-line-discriminators.exp,
6505 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6506
57d02173
TT
65072020-08-05 Tom Tromey <tromey@adacore.com>
6508
6509 PR rust/26197:
6510 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6511 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6512 Fix off-by-one and type size errors in ordinary case.
6513
5555c86d
TV
65142020-08-05 Tom de Vries <tdevries@suse.de>
6515
6516 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6517 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6518
97916bfe
SM
65192020-08-04 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * frame.h (frame_id_p): Return bool.
6522 (frame_id_artificial_p): Return bool.
6523 (frame_id_eq): Return bool.
6524 (has_stack_frames): Return bool.
6525 (get_selected_frame): Fix typo in comment.
6526 (get_frame_pc_if_available): Return bool.
6527 (get_frame_address_in_block_if_available): Return bool.
6528 (get_frame_func_if_available): Return bool.
6529 (read_frame_register_unsigned): Return bool.
6530 (get_frame_register_bytes): Return bool.
6531 (safe_frame_unwind_memory): Return bool.
6532 (deprecated_frame_register_read): Return bool.
6533 (frame_unwinder_is): Return bool.
6534 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6535 bool.
6536 <this_id::p>: Likewise.
6537 <prev_p>: Likewise.
6538 (frame_stash_add): Return bool.
6539 (get_frame_id): Use bool.
6540 (frame_id_build_special) Use bool.
6541 (frame_id_build_unavailable_stack): Use bool.
6542 (frame_id_build): Use bool.
6543 (frame_id_p): Return bool, use true/false instead of 1/0.
6544 (frame_id_artificial_p): Likewise.
6545 (frame_id_eq): Likewise.
6546 (frame_id_inner): Likewise.
6547 (get_frame_func_if_available): Likewise.
6548 (read_frame_register_unsigned): Likewise.
6549 (deprecated_frame_register_read): Likewise.
6550 (get_frame_register_bytes): Likewise.
6551 (has_stack_frames): Likewise.
6552 (inside_main_func): Likewise.
6553 (inside_entry_func): Likewise.
6554 (get_frame_pc_if_available): Likewise.
6555 (get_frame_address_in_block_if_available): Likewise.
6556 (frame_unwinder_is): Likewise.
6557 (safe_frame_unwind_memory): Likewise.
6558 (frame_unwind_arch): Likewise.
6559
fedfee88
SM
65602020-08-04 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6563 type to cached_copy_status.
6564 (fprintf_frame): Adjust.
6565 (get_frame_func_if_available): Adjust.
6566 (frame_cleanup_after_sniffer): Adjust.
6567
6cfa9b59
MW
65682020-08-04 Mark Wielaard <mark@klomp.org>
6569
6570 * MAINTAINERS (Write After Approval): Update email address.
6571
66d6346b
SM
65722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6575 dynamic_prop::const_val.
6576
8a6d5e35
SM
65772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6580 dynamic_prop::kind.
6581
51d6067d
SM
65822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6583
6584 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6585
b26e2ae7
JM
65862020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6587
6588 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6589
39791af2
JM
65902020-08-04 Weimin Pan <weimin.pan@oracle.com>
6591 Jose E. Marchesi <jose.marchesi@oracle.com>
6592
6593 * configure.tgt: Add entry for bpf-*-*.
6594 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6595 (ALLDEPFILES): Add bpf-tdep.c.
6596 * bpf-tdep.c: New file.
6597 * MAINTAINERS: Add bpf target and maintainer.
6598 * NEWS: Mention the support for the new target.
6599
521894aa
TV
66002020-08-04 Tom de Vries <tdevries@suse.de>
6601
6602 PR symtab/23270
6603 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6604 Error.
6605
5d6356e9
JB
66062020-08-03 John Baldwin <jhb@FreeBSD.org>
6607
6608 * syscalls/freebsd.xml: Regenerate.
6609
0cf82b81
JB
66102020-08-03 John Baldwin <jhb@FreeBSD.org>
6611
6612 * syscalls/update-freebsd.sh: Fix usage and year range.
6613
8f34b746
TV
66142020-08-03 Tom de Vries <tdevries@suse.de>
6615
6616 PR symtab/26333
6617 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6618 DW_LNE_lo_user/DW_LNE_hi_user range.
6619
5e500d33
SM
66202020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 PR ada/26318
6623 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6624 kind.
6625
78319c15
TBA
66262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6629
4c55e970
TBA
66302020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6631
6632 * breakpoint.c (set_breakpoint_condition): Update the condition
6633 expressions after checking that the input condition string parses
6634 successfully and does not contain junk at the end.
6635
1e620590
TBA
66362020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6637
6638 * breakpoint.c (set_breakpoint_condition): Update the
6639 condition string after parsing the new condition successfully.
6640
c8693053
RO
66412020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6642
6643 * proc-api.c (_STRUCTURED_PROC): Don't define.
6644 * proc-events.c: Likewise.
6645 * proc-flags.c: Likewise.
6646 * proc-why.c: Likewise.
6647 * procfs.c: Likewise.
6648
6649 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6650 * configure, config.in: Regenerate.
6651
5a99adb8
TV
66522020-07-30 Tom de Vries <tdevries@suse.de>
6653
6654 PR build/26320
6655 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6656 m_red/m_green/m_blue in a union.
6657
8ba83e91
TV
66582020-07-29 Tom de Vries <tdevries@suse.de>
6659
6660 PR tdep/26280
6661 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6662
f75a0693
AB
66632020-07-28 Tom Tromey <tromey@adacore.com>
6664
6665 PR symtab/26270:
6666 * symtab.h (find_pc_partial_function_sym): Declare.
6667 * cli/cli-cmds.c (disassemble_command): Use
6668 find_pc_partial_function_sym. Check asm_demangle.
6669 * blockframe.c (cache_pc_function_sym): New global.
6670 (cache_pc_function_name): Remove.
6671 (clear_pc_function_cache): Update.
6672 (find_pc_partial_function_sym): New function, from
6673 find_pc_partial_function.
6674 (find_pc_partial_function): Rewrite using
6675 find_pc_partial_function_sym.
6676
16f3242c
TT
66772020-07-28 Tom Tromey <tromey@adacore.com>
6678
6679 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6680 help. Add usage.
6681
4888741a
TT
66822020-07-28 Tom Tromey <tromey@adacore.com>
6683
6684 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6685 <DW_OP_GNU_variable_value>: Cast to address type.
6686
4d46f402
KR
66872020-07-28 Kamil Rytarowski <n54@gmx.com>
6688
6689 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6690 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6691 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6692 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6693 (nbsd_get_siginfo_type): New.
6694 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6695 (_initialize_nbsd_tdep): New.
6696
d70f978b
L
66972020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6698
6699 PR binutils/26301
6700 * configure: Regenerated.
6701
377170fa
L
67022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6703
6704 PR binutils/26301
6705 * configure: Regenerated.
6706
43d5901d
AB
67072020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * python/py-frame.c: Remove 'user-regs.h' include.
6710 (frapy_read_register): Rewrite to make use of
6711 gdbpy_parse_register_id.
6712 * python/py-registers.c (gdbpy_parse_register_id): New function,
6713 moved here from python/py-unwind.c. Updated the return type, and
6714 also accepts register descriptor objects.
6715 * python/py-unwind.c: Remove 'user-regs.h' include.
6716 (pyuw_parse_register_id): Moved to python/py-registers.c.
6717 (unwind_infopy_add_saved_register): Update to use
6718 gdbpy_parse_register_id.
6719 (pending_framepy_read_register): Likewise.
6720 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6721
14fa8fb3
AB
67222020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * python/py-registers.c: Add 'user-regs.h' include.
6725 (register_descriptor_iter_find): New function.
6726 (register_descriptor_iterator_object_methods): New static global
6727 methods array.
6728 (register_descriptor_iterator_object_type): Add pointer to methods
6729 array.
6730
ddce1758
JB
67312020-07-27 John Baldwin <jhb@FreeBSD.org>
6732
6733 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6734 for all architectures on FreeBSD 11.3 and later.
6735
a4089f52
TT
67362020-07-27 Tom Tromey <tromey@adacore.com>
6737
6738 * gcore.h (load_corefile): Don't declare.
6739
95420d30
TV
67402020-07-27 Tom de Vries <tdevries@suse.de>
6741
6742 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6743 * config.in: Regenerate.
6744 * configure: Regenerate.
6745
05a6b8c2
EZ
67462020-07-26 Eli Zaretskii <eliz@gnu.org>
6747
6748 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6749 ws2tcpip.h. When checking whether socklen_t type is defined, use
6750 ws2tcpip.h if it is available and sys/socket.h isn't.
6751 * configure: Regenerate.
6752 * config.in: Regenerate.
6753
e79eb02f
AB
67542020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 PR fortran/23051
6757 PR fortran/26139
6758 * valops.c (value_ind): Pass address to
6759 readjust_indirect_value_type.
6760 * value.c (readjust_indirect_value_type): Make parameter
6761 non-const, and add extra address parameter. Resolve original type
6762 before using it.
6763 * value.h (readjust_indirect_value_type): Update function
6764 signature and comment.
6765
876518dd
TV
67662020-07-25 Tom de Vries <tdevries@suse.de>
6767
6768 PR symtab/26243
6769 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6770 entries.
6771
f6720b1c
AM
67722020-07-24 Aaron Merey <amerey@redhat.com>
6773
6774 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6775 * configure: Rebuild.
6776
513487e1
KB
67772020-07-23 Kevin Buettner <kevinb@redhat.com>
6778
6779 PR corefiles/26294
6780 * corelow.c (_initialize_corelow): Add period to help text
6781 for "maintenance print core-file-backed-mappings".
6782
e7bc9db8
PA
67832020-07-23 Pedro Alves <pedro@palves.net>
6784
6785 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6786 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6787 meanwhile.
6788 * frame.c (frame_cache_generation, get_frame_cache_generation):
6789 New.
6790 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6791 (get_prev_frame_if_no_cycle): On exception, don't touch
6792 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6793 * frame.h (get_frame_cache_generation): Declare.
6794
90fcc466
TV
67952020-07-23 Tom de Vries <tdevries@suse.de>
6796
6797 PR tui/26282
6798 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6799 New default constructor.
6800
78344df7
AB
68012020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6804 exclude non-statement entries.
6805
b089853a
KB
68062020-07-22 Kevin Buettner <kevinb@redhat.com>
6807
6808 * NEWS (New commands): Mention new command
6809 "maintenance print core-file-backed-mappings".
6810
09c2f5d4
KB
68112020-07-22 Kevin Buettner <kevinb@redhat.com>
6812
6813 * corelow.c (gdbcmd.h): Include.
6814 (core_target::info_proc_mappings): New method.
6815 (get_current_core_target): New function.
6816 (maintenance_print_core_file_backed_mappings): New function.
6817 (_initialize_corelow): Add core-file-backed-mappings to
6818 "maint print" commands.
6819
9c5ec5c2 68202020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6821
9c5ec5c2
KB
6822 * linux-tdep.c (dump_note_entry_p): New function.
6823 (linux_dump_mapping_p_ftype): New typedef.
6824 (linux_find_memory_regions_full): Add new parameter,
6825 should_dump_mapping_p.
6826 (linux_find_memory_regions): Adjust call to
6827 linux_find_memory_regions_full.
6828 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6829 call to linux_find_memory_regions_full.
6830
db082f59
KB
68312020-07-22 Kevin Buettner <kevinb@redhat.com>
6832
6833 * corelow.c (solist.h, unordered_map): Include.
6834 (class core_target): Add field m_core_file_mappings and
6835 method build_file_mappings.
6836 (core_target::core_target): Call build_file_mappings.
6837 (core_target::~core_target): Free memory associated with
6838 m_core_file_mappings.
6839 (core_target::build_file_mappings): New method.
6840 (core_target::xfer_partial): Use m_core_file_mappings
6841 for memory transfers.
6842 * linux-tdep.c (linux_read_core_file_mappings): New
6843 function.
6844 (linux_core_info_proc_mappings): Rewrite to use
6845 linux_read_core_file_mappings.
6846 (linux_init_abi): Register linux_read_core_file_mappings.
6847
7e183d27
KB
68482020-07-22 Kevin Buettner <kevinb@redhat.com>
6849
6850 * arch-utils.c (default_read_core_file_mappings): New function.
6851 * arch-utils.c (default_read_core_file_mappings): Declare.
6852 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6853 * gdbarch.h, gdbarch.c: Regenerate.
6854
2735d421
KB
68552020-07-22 Kevin Buettner <kevinb@redhat.com>
6856
6857 PR corefiles/25631
6858 * corelow.c (core_target:xfer_partial): Revise
6859 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6860 case after first checking the stratum beneath the core
6861 target.
6862 (has_all_memory): Return true.
6863 * target.c (raw_memory_xfer_partial): Revise comment
6864 regarding use of has_all_memory.
6865
e56cb451
KB
68662020-07-22 Kevin Buettner <kevinb@redhat.com>
6867
6868 * exec.h (section_table_xfer_memory): Revise declaration,
6869 replacing section name parameter with an optional callback
6870 predicate.
6871 * exec.c (section_table_xfer_memory): Likewise.
6872 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6873 of section_table_xfer_memory.
6874
32fa152e
TT
68752020-07-22 Tom Tromey <tromey@adacore.com>
6876
6877 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6878 lookup_symbol_search_name.
6879
a67a1c41
AB
68802020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6883 redundant local variable.
6884 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6885 reference, not pointer, update code accordingly.
6886
a7b4ff4f
SM
68872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6888 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6889
6890 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6891 * jit.c (jit_breakpoint_re_set_internal): Use the
6892 `skip_jit_symbol_lookup` field.
6893
2340e834
SM
68942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6895 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6896
6897 * jit.c (jit_read_descriptor): Define the descriptor address once,
6898 use twice.
6899 (jit_breakpoint_deleted): Move the declaration of the loop variable
6900 `iter` into the loop header.
6901 (jit_breakpoint_re_set_internal): Move the declaration of the local
6902 variable `objf_data` to the first point of definition.
6903 (jit_event_handler): Move the declaration of local variables
6904 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6905 Rename `objf` to `jited`.
6906
c1072906
SM
69072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6910 Remove.
6911 * jit.c (get_jiter_objfile_data): Update.
6912
c8474dc3
TBA
69132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6914 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * jit.c (struct jit_program_space_data): Remove.
6917 (jit_program_space_key): Remove.
6918 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6919 stuff.
6920 (get_jit_program_space_data): Remove.
6921 (jit_breakpoint_deleted): Iterate on all of the program space's
6922 objfiles.
6923 (jit_inferior_init): Likewise.
6924 (jit_breakpoint_re_set_internal): Likewise. Also change return
6925 type to void.
6926 (jit_breakpoint_re_set): Pass current_program_space to
6927 jit_breakpoint_re_set_internal.
6928
77208eb7
SM
69292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6930
6931 * jit.h (struct jiter_objfile_data) <cached_code_address,
6932 jit_breakpoint>: Move to here from ...
6933 * jit.c (jit_program_space_data): ... here.
6934 (jiter_objfile_data::~jiter_objfile_data): Update.
6935 (jit_breakpoint_deleted): Update.
6936 (jit_breakpoint_re_set_internal): Update.
6937
8c1c720f
SM
69382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6939
6940 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6941 checks.
6942 (jit_read_descriptor): Remove NULL check.
6943 (jit_event_handler): Add an assertion.
6944
0e74a041
SM
69452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * jit.h (struct jit_objfile_data): Split into...
6948 (struct jiter_objfile_data): ... this ...
6949 (struct jited_objfile_data): ... and this.
6950 * objfiles.h (struct objfile) <jit_data>: Remove.
6951 <jiter_data, jited_data>: New fields.
6952 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6953 (jiter_objfile_data::~jiter_objfile_data): ... this.
6954 (get_jit_objfile_data): Rename to ...
6955 (get_jiter_objfile_data): ... this.
6956 (add_objfile_entry): Update.
6957 (jit_read_descriptor): Use get_jiter_objfile_data.
6958 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6959 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6960 (jit_inferior_exit_hook): Use objfile's jited_data field.
6961
238b5c9f
SM
69622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6963
6964 * jit.h: Forward-declare `struct minimal_symbol`.
6965 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6966 constructor, destructor, and an objfile* field.
6967 * jit.c (jit_objfile_data): Remove.
6968 (struct jit_objfile_data): Migrate from here to jit.h.
6969 (jit_objfile_data::~jit_objfile_data): New destructor
6970 implementation with code moved from free_objfile_data.
6971 (free_objfile_data): Delete.
6972 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6973 (jit_find_objf_with_entry_addr): Ditto.
6974 (jit_inferior_exit_hook): Ditto.
6975 (_initialize_jit): Remove the call to
6976 register_objfile_data_with_cleanup.
6977 * objfiles.h (struct objfile) <jit_data>: New field.
6978
fe053b9e
TBA
69792020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6980
6981 * jit.h: Forward-declare `struct objfile`.
6982 (jit_event_handler): Add a second parameter, the JITer objfile.
6983 * jit.c (jit_read_descriptor): Change the signature to take the
6984 JITer objfile as an argument instead of the jit_program_space_data.
6985 (jit_inferior_init): Update the call to jit_read_descriptor.
6986 (jit_event_handler): Use the new JITer objfile argument when calling
6987 jit_read_descriptor.
6988 * breakpoint.c (handle_jit_event): Update the call to
6989 jit_event_handler to pass the JITer objfile.
6990
4cec0c66
JB
69912020-07-21 John Baldwin <jhb@FreeBSD.org>
6992
6993 * gdbarch.c: Regenerate.
6994 * gdbarch.h: Regenerate.
6995 * gdbarch.sh (handle_segmentation_fault): Remove method.
6996 * infrun.c (handle_segmentation_fault): Remove.
6997 (print_signal_received_reason): Remove call to
6998 handle_segmentation_fault.
6999
0e42f66a
JB
70002020-07-21 John Baldwin <jhb@FreeBSD.org>
7001
7002 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7003 Rename to sparc64_linux_report_signal_info and add siggnal
7004 argument.
7005 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7006 instead of sparc64_linux_handle_segmentation_fault.
7007
77bdfeb2
JB
70082020-07-21 John Baldwin <jhb@FreeBSD.org>
7009
7010 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7011 i386_linux_report_signal_info instead of
7012 i386_linux_handle_segmentation_fault.
7013 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7014 to i386_linux_report_signal_info and add siggnal argument.
7015 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7016 of i386_linux_handle_segmentation_fault.
7017 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7018 to i386_linux_report_signal_info and add siggnal argument.
7019
ad97bfc5
JB
70202020-07-21 John Baldwin <jhb@FreeBSD.org>
7021
7022 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7023 hook if present.
7024
272bb05c
JB
70252020-07-21 John Baldwin <jhb@FreeBSD.org>
7026
7027 * gdbarch.c: Regenerate.
7028 * gdbarch.h: Regenerate.
7029 * gdbarch.sh (report_signal_info): New method.
7030 * infrun.c (print_signal_received_reason): Invoke gdbarch
7031 report_signal_info hook if present.
7032
baf8791e
AB
70332020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * python/py-registers.c : Add 'unordered_map' include.
7036 (gdbpy_new_reggroup): Renamed to...
7037 (gdbpy_get_reggroup): ...this. Update to only create register
7038 group descriptors when needed.
7039 (gdbpy_reggroup_iter_next): Update.
7040
f7306dac
AB
70412020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * python/py-registers.c (gdbpy_register_object_data): New static
7044 global.
7045 (gdbpy_register_object_data_init): New function.
7046 (gdbpy_new_register_descriptor): Renamed to...
7047 (gdbpy_get_register_descriptor): ...this, and update to reuse
7048 existing register descriptors where possible.
7049 (gdbpy_register_descriptor_iter_next): Update.
7050 (gdbpy_initialize_registers): Register new gdbarch data.
7051
05c309a8
SM
70522020-07-21 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * linux-nat.c (stopped_pids): Make static.
7055
d1fd641e
SM
70562020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7057
7058 PR ada/26235
7059 * gdbtypes.c (ada_discrete_type_low_bound,
7060 ada_discrete_type_high_bound): Handle undefined bounds.
7061
1de14d77
KR
70622020-07-21 Kamil Rytarowski <n54@gmx.com>
7063
7064 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7065 declaration.
7066 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7067 function.
7068
ed810cc7
JB
70692020-07-20 John Baldwin <jhb@FreeBSD.org>
7070
7071 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7072 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7073 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7074 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7075 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7076 method.
7077
ae5369e7
LC
70782020-07-20 Ludovic Courtès <ludo@gnu.org>
7079
7080 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7081 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7082 which are deprecated in Guile 3.0.
7083 * configure.ac (try_guile_versions): Add "guile-3.0".
7084 * configure (try_guile_versions): Regenerate.
7085 * NEWS: Update entry.
7086
68cf161c
LC
70872020-07-20 Ludovic Courtès <ludo@gnu.org>
7088 Doug Evans <dje@google.com>
7089
7090 PR gdb/21104
7091 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7092 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7093 USING_GUILE_BEFORE_2_2.
7094 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7095 Change type to 'scm_t_port_type *'.
7096 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7097 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7098 parameter and honor it. Update callers.
7099 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7100 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7101 functions.
7102 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7103 USING_GUILE_BEFORE_2_2.
7104 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7105 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7106 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7107 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7108 and 'SCM_PORT_TYPE'.
7109 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7110 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7111 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7112 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7113 [!USING_GUILE_BEFORE_2_2]: New functions.
7114 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7115 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7116 'gdbscm_memory_port_read'.
7117 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7118 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7119 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7120 function.
7121 (ioscm_init_memory_port): Remove.
7122 (ioscm_init_memory_port_stream): New function
7123 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7124 function.
7125 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7126 Return scm_from_uint (0).
7127 (gdbscm_set_memory_port_read_buffer_size_x)
7128 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7129 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7130 Return scm_from_uint (0).
7131 (gdbscm_set_memory_port_write_buffer_size_x)
7132 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7133 * configure.ac (try_guile_versions): Add "guile-2.2".
7134 * configure: Regenerate.
7135 * NEWS: Add entry.
7136
aee91db3
TT
71372020-07-18 Tom Tromey <tom@tromey.com>
7138
7139 * linux-nat.c (linux_multi_process): Remove.
7140 (linux_nat_target::supports_multi_process): Return true.
7141
0e267416
AB
71422020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7145 (riscv_lookup_target_description): Return pointer out of
7146 unique_ptr.
7147 * target-descriptions.c (allocate_target_description): Add
7148 comment.
7149 (target_desc_deleter::operator()): Likewise.
7150 * target-descriptions.h (struct target_desc_deleter): Moved to
7151 gdbsupport/tdesc.h.
7152 (target_desc_up): Likewise.
7153
f80c8ec4
TT
71542020-07-17 Tom Tromey <tromey@adacore.com>
7155
7156 * linux-nat.c (linux_nat_target::supports_non_stop)
7157 (linux_nat_target::always_non_stop_p): Use "true".
7158 (linux_nat_target::supports_disable_randomization): Use "true" and
7159 "false".
7160
d0ce17d8
CT
71612020-07-16 Caroline Tice <cmtice@google.com>
7162
7163 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7164 (RNGLIST_HEADER_SIZE64): New constant definition.
7165 (struct dwop_section_names): Add rnglists_dwo.
7166 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7167 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7168 (struct dwo_sections): Add rnglists field.
7169 (read_attribut_reprocess): Add tag parameter.
7170 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7171 (cu_debug_rnglists_section): New function (decl & definition).
7172 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7173 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7174 die whose range is being checked; get rnglist section from
7175 cu_debug_rnglists_section, to get from either objfile or dwo file as
7176 appropriate. Add cases for DW_RLE_base_addressx,
7177 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7178 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7179 test inside if-condition and updating complaint message.
7180 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7181 dwarf2_rnglists_process.
7182 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7183 dwarf2_ranges_process.
7184 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7185 need_ranges_base and update comment appropriately. Also pass die tag
7186 to dwarf2_ranges_read.
7187 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7188 need_ranges_base and update comment appropriately. Also pass die tag
7189 to dwarf2_ranges_process.
7190 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7191 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7192 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7193 need_ranges_base and update comment appropriately. Also pass die tag
7194 to read_attribute_reprocess and dwarf2_ranges_read.
7195 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7196 and update function comment appropriately.
7197 (read_loclist_index): Call read_loclists_rnglists_header instead of
7198 read_loclist_header.
7199 (read_rnglist_index): New function.
7200 (read_attribute_reprocess): Add tag parameter. Add code for
7201 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7202 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7203
3dcc261c
AB
72042020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7205
7206 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7207 being resolved.
7208
ccb9eba6
AB
72092020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7210
7211 * arch-utils.c (show_architecture): Update formatting of messages.
7212
cf88be68
SM
72132020-07-12 Simon Marchi <simon.marchi@efficios.com>
7214
7215 * gdbtypes.h (struct type) <bounds>: Handle array and string
7216 types.
7217 * ada-lang.c (assign_aggregate): Use type::bounds on
7218 array/string type.
7219 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7220 * c-varobj.c (c_number_of_children): Likewise.
7221 (c_describe_child): Likewise.
7222 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7223 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7224 (f_type_print_base): Likewise.
7225 * f-valprint.c (f77_array_offset_tbl): Likewise.
7226 (f77_get_upperbound): Likewise.
7227 (f77_print_array_1): Likewise.
7228 * guile/scm-type.c (gdbscm_type_range): Likewise.
7229 * m2-typeprint.c (m2_array): Likewise.
7230 (m2_is_long_set_of_type): Likewise.
7231 * m2-valprint.c (get_long_set_bounds): Likewise.
7232 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7233 * python/py-type.c (typy_range): Likewise.
7234 * rust-lang.c (rust_internal_print_type): Likewise.
7235 * type-stack.c (type_stack::follow_types): Likewise.
7236 * valarith.c (value_subscripted_rvalue): Likewise.
7237 * valops.c (value_cast): Likewise.
7238
509971ae
SM
72392020-07-12 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7242 callers to use the equivalent accessor methods.
7243
107406b7
SM
72442020-07-12 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7247 (struct type) <bit_stride>: New method.
7248 (TYPE_BIT_STRIDE): Remove.
7249 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7250
bb789949
SM
72512020-07-12 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7254 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7255 callers to use the equivalent accessor methods instead.
7256
39498edb
SM
72572020-07-12 Simon Marchi <simon.marchi@efficios.com>
7258
7259 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7260 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7261 callers to use the equivalent accessor methods instead.
7262
3b606f38
SM
72632020-07-12 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7266 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7267 to use dynamic_prop::kind.
7268
064d9cb9
SM
72692020-07-12 Simon Marchi <simon.marchi@efficios.com>
7270
7271 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7272 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7273 to get the bound property's kind and check against
7274 PROP_UNDEFINED.
7275
5537ddd0
SM
72762020-07-12 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7279 all callers to use type::range_bounds followed by
7280 dynamic_prop::{low,high}.
7281
8c2e4e06
SM
72822020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7283
7284 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7285 const_val, set_const_val, baton, set_locexpr, set_loclist,
7286 set_addr_offset, variant_parts, set_variant_parts,
7287 original_type, set_original_type>: New methods.
7288 <kind>: Rename to...
7289 <m_kind>: ... this. Update all users to use the new methods
7290 instead.
7291 <data>: Rename to...
7292 <m_data>: ... this. Update all users to use the new methods
7293 instead.
7294
7c6f2712
SM
72952020-07-12 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * gdbtypes.c (get_discrete_bounds): Return failure if
7298 the range type's bounds are not both defined and constant
7299 values.
7300 (get_array_bounds): Update comment. Remove undefined bound check.
7301
599088e3
SM
73022020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7305 the type::bounds method directly.
7306
c4dfcb36
SM
73072020-07-12 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7310 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7311 are used to set the range type's bounds to use set_bounds.
7312
0a278aa7
PW
73132020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7314
7315 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7316
cce20f10
PA
73172020-07-10 Pedro Alves <pedro@palves.net>
7318
7319 * gdbthread.h (inferior_ref): Define.
7320 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7321 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7322 * thread.c
7323 (scoped_restore_current_thread::restore):
7324 Adjust to gdb::ref_ptr.
7325 (scoped_restore_current_thread::~scoped_restore_current_thread):
7326 Remove manual decref handling.
7327 (scoped_restore_current_thread::scoped_restore_current_thread):
7328 Adjust to use
7329 inferior_ref::new_reference/thread_info_ref::new_reference.
7330 Incref the thread before calling get_frame_id instead of after.
7331 Let TARGET_CLOSE_ERROR propagate.
7332
6d7aa592
PA
73332020-07-10 Pedro Alves <pedro@palves.net>
7334
7335 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7336 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7337 NOT_AVAILABLE_ERROR.
7338 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7339 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7340
b3e3a4c1
SM
73412020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7342 Pedro Alves <pedro@palves.net>
7343
7344 PR gdb/26199
7345 * infrun.c (threads_are_resumed_pending_p): Delete.
7346 (do_target_wait): Remove threads_are_executing and
7347 threads_are_resumed_pending_p checks from the inferior_matches
7348 lambda. Update comments.
7349
d6cc5d98
PA
73502020-07-10 Pedro Alves <pedro@palves.net>
7351
7352 PR gdb/26199
7353 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7354 executing threads.
7355
7d3badc6
PA
73562020-07-10 Pedro Alves <pedro@palves.net>
7357
7358 PR gdb/26199
7359 * infrun.c (handle_no_resumed): Handle multiple targets.
7360
42bd97a6
PA
73612020-07-10 Pedro Alves <pedro@palves.net>
7362
7363 PR gdb/26199
7364 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7365 target_is_async_p.
7366
43667cc6
PA
73672020-07-10 Pedro Alves <pedro@palves.net>
7368
7369 PR gdb/26199
7370 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7371 threads, not all threads.
7372
96118d11
PA
73732020-07-10 Pedro Alves <pedro@palves.net>
7374
7375 PR gdb/26199
7376 * remote.c (remote_target::open_1): Pass remote target pointer as
7377 data to create_async_event_handler.
7378 (remote_async_inferior_event_handler): Mark async event handler
7379 before returning if the remote target still has either pending
7380 events or unacknowledged notifications.
7381
54904d81
JB
73822020-07-10 John Baldwin <jhb@FreeBSD.org>
7383
7384 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7385 declaration.
7386 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7387 function.
7388
f37e5866
JB
73892020-07-09 John Baldwin <jhb@FreeBSD.org>
7390
7391 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7392 inferior_ptid.
7393
fc238d4a
JB
73942020-07-09 John Baldwin <jhb@FreeBSD.org>
7395
7396 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7397 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7398 AT_FREEBSD_PS_STRINGS.
7399
6e2469ff
HD
74002020-07-08 Hannes Domani <ssbssa@yahoo.de>
7401
7402 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7403 of debugfile path on Windows.
7404
d1076c41
JB
74052020-07-08 John Baldwin <jhb@FreeBSD.org>
7406
7407 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7408 argument to 'data'.
7409
15f3b077
TT
74102020-07-08 Tom Tromey <tromey@adacore.com>
7411
7412 * ada-lang.c (ada_exception_message_1): Use read_memory.
7413
9fc501fd
AB
74142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 PR python/22748
7417 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7418 special handling for inline frames.
7419 * findvar.c (value_of_register_lazy): Skip inline frames when
7420 creating lazy register values.
7421 * frame.c (frame_id_computed_p): Delete definition.
7422 * frame.h (frame_id_computed_p): Delete declaration.
7423
64cb3757
AB
74242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7425
7426 * NEWS: Mention additions to Python API.
7427 * python/py-arch.c (archpy_register_groups): New function.
7428 (arch_object_methods): Add 'register_groups' method.
7429 * python/py-registers.c (reggroup_iterator_object): New struct.
7430 (reggroup_object): New struct.
7431 (gdbpy_new_reggroup): New function.
7432 (gdbpy_reggroup_to_string): New function.
7433 (gdbpy_reggroup_name): New function.
7434 (gdbpy_reggroup_iter): New function.
7435 (gdbpy_reggroup_iter_next): New function.
7436 (gdbpy_new_reggroup_iterator): New function
7437 (gdbpy_initialize_registers): Register new types.
7438 (reggroup_iterator_object_type): Define new Python type.
7439 (gdbpy_reggroup_getset): New static global.
7440 (reggroup_object_type): Define new Python type.
7441 * python/python-internal.h
7442
0f767f94
AB
74432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7444
7445 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7446 * python/py-arch.c (archpy_registers): New function.
7447 (arch_object_methods): Add 'registers' method.
7448 * python/py-registers.c: New file.
7449 * python/python-internal.h
7450 (gdbpy_new_register_descriptor_iterator): Declare.
7451 (gdbpy_initialize_registers): Declare.
7452 * python/python.c (do_start_initialization): Call
7453 gdbpy_initialize_registers.
7454 * NEWS: Mention additions to the Python API.
7455
87dbc774
AB
74562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7457
7458 * NEWS: Mention new Python API method.
7459 * python/py-unwind.c (pending_framepy_architecture): New function.
7460 (pending_frame_object_methods): Add architecture method.
7461
3bc98c0c
AB
74622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7463
7464 * gdbarch.c: Regenerate.
7465 * gdbarch.h: Regenerate.
7466 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7467 (gdbarch_data): Use internal_error for the case where
7468 deprecated_set_gdbarch_data was originally needed.
7469 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7470 and use passed in obstack.
7471 (libunwind_frame_set_descr): Should no longer get back NULL from
7472 gdbarch_data.
7473 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7474 type.
7475 * user-regs.c (user_regs_init): Update parameters, and use passed
7476 in obstack.
7477 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7478 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7479
d8cc8af6
TV
74802020-07-06 Tom de Vries <tdevries@suse.de>
7481
7482 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7483 End-Of-Sequence in lte_is_less_than.
7484 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7485 "gdb: Don't reorder line table entries too much when sorting".
7486
947f7597
TV
74872020-07-06 Tom de Vries <tdevries@suse.de>
7488
7489 PR tui/26205
7490 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7491
1e7c1b22
TV
74922020-07-05 Tom de Vries <tdevries@suse.de>
7493
7494 PR build/26187
7495 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7496 std::uncaught_exceptions instead of deprecated
7497 std::uncaught_exception.
7498
a36158ec
SM
74992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7500
7501 * macroexp.h (macro_stringify): Return
7502 gdb::unique_xmalloc_ptr<char>.
7503 * macroexp.c (macro_stringify): Likewise.
7504 * macrotab.c (fixup_definition): Update.
7505
14d960c8
SM
75062020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7507
7508 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7509 (lex_one_token): Update.
7510 * macroexp.c (struct macro_buffer) <release>: Return
7511 gdb::unique_xmalloc_ptr<char>.
7512 (macro_stringify): Update.
7513 (macro_expand): Update.
7514 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7515 * macroexp.h (macro_expand_next): Likewise.
7516
211d5b1c
SM
75172020-07-02 Simon Marchi <simon.marchi@efficios.com>
7518
7519 * macroexp.h (macro_lookup_ftype): Remove.
7520 (macro_expand, macro_expand_once, macro_expand_next): Remove
7521 lookup function parameters, add scope parameter.
7522 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7523 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7524 * macroscope.h (standard_macro_lookup): Change parameter type
7525 to macro_scope.
7526 * macroscope.c (standard_macro_lookup): Likewise.
7527 * c-exp.y (lex_one_token): Update.
7528 * macrocmd.c (macro_expand_command): Likewise.
7529 (macro_expand_once_command): Likewise.
7530
b1a35af2
SM
75312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7532
7533 * inf-loop.c (inferior_event_handler): Remove client_data param.
7534 * inf-loop.h (inferior_event_handler): Likewise.
7535 * infcmd.c (step_1): Adjust.
7536 * infrun.c (proceed): Adjust.
7537 (fetch_inferior_event): Remove client_data param.
7538 (infrun_async_inferior_event_handler): Adjust.
7539 * infrun.h (fetch_inferior_event): Remove `void *` param.
7540 * linux-nat.c (handle_target_event): Adjust.
7541 * record-btrace.c (record_btrace_handle_async_inferior_event):
7542 Adjust.
7543 * record-full.c (record_full_async_inferior_event_handler):
7544 Adjust.
7545 * remote.c (remote_async_inferior_event_handler): Adjust.
7546
1cdf9e33
TT
75472020-07-01 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7550 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7551
32c1e210
TT
75522020-07-01 Tom Tromey <tom@tromey.com>
7553
7554 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7555 tui_gen_win_info.
7556 (tui_win_info::make_window): Merge with
7557 tui_gen_win_info::make_window.
7558 (tui_win_info::make_visible): Move from tui_gen_win_info.
7559 * tui/tui-win.c (tui_win_info::max_width): Move from
7560 tui_gen_win_info.
7561 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7562 type.
7563 <window_factory>: Likewise.
7564 * tui/tui-layout.c (tui_win_info::resize): Move from
7565 tui_gen_win_info.
7566 (make_standard_window): Change return type.
7567 (get_locator_window, tui_get_window_by_name): Likewise.
7568 (tui_layout_window::apply): Remove a cast.
7569 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7570 (struct tui_win_info): Merge with tui_gen_win_info.
7571 (struct tui_gen_win_info): Remove.
7572
a30cb6da
TT
75732020-07-01 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-stack.h (struct tui_locator_window): Derive from
7576 tui_win_info.
7577 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7578 <can_box>: New method.
7579
1eb2161f
TT
75802020-07-01 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7583
7134f2eb
TT
75842020-07-01 Tom Tromey <tom@tromey.com>
7585
7586 * tui/tui-regs.c (tui_data_window::display_registers_from)
7587 (tui_data_window::display_registers_from)
7588 (tui_data_window::first_data_item_displayed)
7589 (tui_data_window::delete_data_content_windows): Update.
7590 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7591 Remove.
7592 (tui_data_window::check_register_values): Update.
7593 (tui_data_item_window::rerender): Add parameters. Update.
7594 (tui_data_item_window::refresh_window): Remove.
7595 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7596 virtual.
7597 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7598 tui_gen_win_info.
7599 <refresh_window, max_height, min_height>: Remove.
7600 <rerender>: Add parameters.
7601 <x, y, visible>: New members.
7602 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7603 <m_item_width>: New member.
7604
22b7b041
TT
76052020-07-01 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-regs.c (tui_data_window::show_register_group)
7608 (tui_data_window::check_register_values): Update.
7609 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7610 from item_no.
7611
c9753adb
TT
76122020-07-01 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7615 useless "if".
7616
9ab26b4a
TT
76172020-07-01 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7620 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7621
e555083f
TT
76222020-07-01 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7625 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7626 (struct tui_line_or_address): Move from tui-data.h.
7627 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7628 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7629 (tui_cmd_window, tui_source_window_base, tui_source_window)
7630 (tui_disasm_window): Don't declare.
7631 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7632 to tui-winsource.h.
7633 (SINGLE_KEY): Move to tui-stack.c.
7634
7a02bab7
TT
76352020-07-01 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7638 std::string.
7639 * tui/tui-regs.c (class tab_expansion_file): New.
7640 (tab_expansion_file::write): New method.
7641 (tui_register_format): Change return type. Use
7642 tab_expansion_file.
7643 (tui_get_register, tui_data_window::display_registers_from)
7644 (tui_data_item_window::rerender): Update.
7645 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7646 * tui/tui-io.c (tui_expand_tabs): Remove.
7647
ea68593b
TT
76482020-07-01 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7651
a8caed5d
FS
76522020-07-01 Fangrui Song <maskray@google.com>
7653
7654 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7655
9cdf9820
AKS
76562020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7657
7658 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7659 forms for DW_AT_associated and DW_AT_allocated attributes,
7660 which is already checked in function attr_to_dynamic_prop.
7661
a1520ad8
TT
76622020-06-30 Tom Tromey <tromey@adacore.com>
7663
7664 * dwarf2/read.c (quirk_rust_enum): Correctly call
7665 alloc_rust_variant for default-less enum.
7666
5ac58899
TT
76672020-06-30 Tom Tromey <tromey@adacore.com>
7668
7669 PR build/26183:
7670 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7671 gdb::to_string.
7672
19b187a9
SM
76732020-06-29 Simon Marchi <simon.marchi@efficios.com>
7674
7675 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7676 * gdbarch.h: Re-generate.
7677
cd4c4c07
TT
76782020-06-28 Tom Tromey <tom@tromey.com>
7679
7680 * command.h (cmd_types): Remove.
7681 (cmd_type): Don't declare.
7682 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7683 typedef.
7684 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7685 * cli/cli-decode.c (cmd_type): Remove.
7686
05779d57
PA
76872020-06-27 Pedro Alves <palves@redhat.com>
7688
7689 * fork-child.c (prefork_hook): Adjust.
7690 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7691 Delete.
7692 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7693 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7694 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7695 Remove declarations.
7696 (struct inferior) <set_tty, tty>: New methods.
7697 (struct inferior) <terminal>: Rename to ...
7698 (struct inferior) <m_terminal>: ... this and make private.
7699 * main.c (captured_main_1): Adjust.
7700 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7701 (mi_cmd_inferior_tty_show): Adjust.
7702 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7703 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7704
1776e3e5
NA
77052020-06-26 Nick Alcock <nick.alcock@oracle.com>
7706
7707 * configure.ac: Add --enable-libctf: handle --disable-static
7708 properly.
7709 * acinclude.m4: sinclude ../config/enable.m4.
7710 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7711 (LIBCTF): Substitute in.
7712 (CTF_DEPS): New, likewise.
7713 (CLIBS): libctf needs symbols from libbfd: move earlier.
7714 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7715 flags.
7716 * ctfread.c: Surround in ENABLE_LIBCTF.
7717 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7718 * configure: Regenerate.
7719 * config.in: Likewise.
7720
58373b80
SM
77212020-06-25 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7724
277474ee
SM
77252020-06-25 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * inferior.h (struct inferior) <terminal>: Change type to
7728 gdb::unique_xmalloc_ptr<char>.
7729 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7730 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7731 field, adjust to unique pointer.
7732 (get_inferior_io_terminal): Adjust to unique pointer.
7733
6d74da72
AB
77342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7737 registers, not just the known core set of registers.
7738
2e52d038
AB
77392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7740
7741 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7742 fflags, frm, and fcsr registers.
7743 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7744 restore groups.
7745 (riscv_tdesc_unknown_reg): New function.
7746 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7747 tdesc_use_registers.
7748 * riscv-tdep.h (struct gdbarch_tdep): Add
7749 unknown_csrs_first_regnum, unknown_csrs_count,
7750 duplicate_fflags_regnum, duplicate_frm_regnum, and
7751 duplicate_fcsr_regnum fields.
7752
be64fd07
AB
77532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7756 callback, use the callback (when not null) to help number unknown
7757 registers.
7758 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7759 (tdesc_use_registers): Add extra parameter to declaration.
7760
3b9fce96
AB
77612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7762
7763 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7764 in the file.
7765 (class riscv_pending_register_alias): Likewise.
7766 (riscv_register_feature::register_info): Change 'required_p' field
7767 to 'required', and change its type. Add 'check' member function.
7768 (riscv_register_feature::register_info::check): Define new member
7769 function.
7770 (riscv_xreg_feature): Change initialisation of 'required' field.
7771 (riscv_freg_feature): Likewise.
7772 (riscv_virtual_feature): Likewise.
7773 (riscv_csr_feature): Likewise.
7774 (riscv_check_tdesc_feature): Take extra parameter, the csr
7775 tdesc_feature, rewrite the function to use the new
7776 riscv_register_feature::register_info::check function.
7777 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7778
865bad26
AB
77792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * features/Makefile: Remove all references to the deleted files
7782 below.
7783 * features/riscv/32bit-csr.c: Deleted.
7784 * features/riscv/32bit-csr.xml: Deleted.
7785 * features/riscv/64bit-csr.c: Deleted.
7786 * features/riscv/64bit-csr.xml: Deleted.
7787 * features/riscv/rebuild-csr-xml.sh: Deleted.
7788
ed69cbc8
AB
77892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7792 whitespace error for declaration of names member variable.
7793 (struct riscv_register_feature): Add new prefer_first_name member
7794 variable, and fix whitespace error in declaration of registers.
7795 (riscv_xreg_feature): Initialize prefer_first_name field.
7796 (riscv_freg_feature): Likewise.
7797 (riscv_virtual_feature): Likewise.
7798 (riscv_csr_feature): Likewise.
7799 (riscv_register_name): Expand on comments. Remove register name
7800 modifications for CSR and virtual registers.
7801
4445e8f5
AB
78022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7805 errors.
7806
767a879e
AB
78072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7808
7809 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7810 riscv-opc.h.
7811 (class riscv_pending_register_alias): New class.
7812 (riscv_check_tdesc_feature): Take vector of pending aliases and
7813 populate it as appropriate.
7814 (riscv_setup_register_aliases): Delete.
7815 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7816 to riscv_check_tdesc_feature in all cases. Use the vector to
7817 create the register aliases.
7818
bb6e55f3
RO
78192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7820
7821 * sol2-tdep.c (sol2_static_transform_name): Remove.
7822 (sol2_init_abi): Don't register it.
7823 * gdbarch.sh (static_transform_name): Remove.
7824 * gdbarch.c, gdbarch.h: Regenerate.
7825
7826 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7827 gdbarch_static_transform_name.
7828 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7829 * stabsread.c (define_symbol) <'X'>: Remove.
7830 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7831 handling.
7832 <'V'>: Likewise.
7833 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7834 <'S'>: Remove call to gdbarch_static_transform_name.
7835
c6d36836
RO
78362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7837
7838 * procfs.c (procfs_pre_trace): New function.
7839 (procfs_target::create_inferior): Pass it to fork_inferior.
7840
a7e6196b
RO
78412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7842
7843 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7844 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7845 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7846 sol2-tdep.o, sparc-sol2-tdep.o.
7847 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7848 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7849 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7850 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7851
d412e696
RO
78522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7853
7854 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7855 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7856 Call sol2_init_abi.
7857 Remove calls to set_gdbarch_skip_solib_resolver,
7858 set_gdbarch_core_pid_to_str.
7859 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7860 (i386_sol2_static_transform_name): Remove.
7861 (i386_sol2_init_abi): Call sol2_init_abi.
7862 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7863 set_gdbarch_static_transform_name,
7864 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7865 Use sol2_sigtramp_p.
7866 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7867 (sol2_sigtramp_p): New function.
7868 (sol2_static_transform_name): New function.
7869 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7870 (sol2_init_abi): New function.
7871 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7872 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7873 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7874 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7875 (sparc_sol2_static_transform_name): Remove.
7876 (sparc32_sol2_init_abi): Call sol2_init_abi.
7877 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7878 set_gdbarch_static_transform_name,
7879 set_gdbarch_skip_solib_resolver,
7880 set_gdbarch_core_pid_to_str.
7881 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7882 (sparc_sol2_static_transform_name): Remove
7883 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7884 call sol2_sigtramp_p.
7885 (sparc64_sol2_init_abi): Call sol2_init_abi.
7886 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7887 set_gdbarch_static_transform_name,
7888 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7889
a8654e7d
PW
78902020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7891
7892 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7893 * exec.c (validate_exec_file): If from_tty, set both
7894 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7895 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7896 and from_tty, unconditionally ask a confirmation.
7897
caa7fd04
AB
78982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * target-descriptions.c (tdesc_architecture_name): Protect against
7901 NULL pointer dereference.
7902 (maint_print_xml_tdesc_cmd): New function.
7903 (_initialize_target_descriptions): Register new 'maint print
7904 xml-tdesc' command and give it the filename completer.
7905 * NEWS: Mention new 'maint print xml-tdesc' command.
7906
fbf42f4e
AB
79072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * target-descriptions.c (class tdesc_compatible_info): New class.
7910 (struct target_desc): Change type of compatible vector.
7911 (tdesc_compatible_p): Update for change in type of
7912 target_desc::compatible.
7913 (tdesc_compatible_info_list): New function.
7914 (tdesc_compatible_info_arch_name): New function.
7915 (tdesc_add_compatible): Update for change in type of
7916 target_desc::compatible.
7917 (print_c_tdesc::visit_pre): Likewise.
7918
20821f4e
AB
79192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7920
7921 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7922 whitespace to underscore.
7923 (maint_print_c_tdesc_cmd): Use fake filename for target
7924 descriptions that came from the target.
7925 (_initialize_target_descriptions): Add filename command completion
7926 for 'maint print c-tdesc'.
7927
1fb5ee62
SM
79282020-06-23 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7931 lines.
7932
fc3ecb3e
SM
79332020-06-23 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7936 lines.
7937 (dwarf2_find_location_expression): Likewise.
7938 (call_site_parameter_matches): Likewise.
7939 (dwarf2_compile_expr_to_ax): Likewise.
7940 (disassemble_dwarf_expression): Likewise.
7941 (loclist_describe_location): Likewise.
7942
236ef034
PA
79432020-06-23 Pedro Alves <palves@redhat.com>
7944
7945 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7946 progspace-and-thread.h. Include scoped-mock-context.h instead.
7947 (register_to_value_test): Use scoped_mock_context.
7948 * regcache.c: Include "scoped-mock-context.h".
7949 (cooked_read_test): Don't error out if a target is already pushed.
7950 Use scoped_mock_context. Adjust.
7951 * scoped-mock-context.h: New file.
7952
39e7ecca
AB
79532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7956 initializer.
7957 (ada_language::is_string_type_p): New member function.
7958 * c-lang.c (c_language_data): Delete la_is_string_type_p
7959 initializer.
7960 (cplus_language_data): Likewise.
7961 (asm_language_data): Likewise.
7962 (minimal_language_data): Likewise.
7963 * d-lang.c (d_language_data): Likewise.
7964 * f-lang.c (f_is_string_type_p): Delete function, implementation
7965 moved to f_language::is_string_type_p.
7966 (f_language_data): Delete la_is_string_type_p initializer.
7967 (f_language::is_string_type_p): New member function,
7968 implementation from f_is_string_type_p.
7969 * go-lang.c (go_is_string_type_p): Delete function, implementation
7970 moved to go_language::is_string_type_p.
7971 (go_language_data): Delete la_is_string_type_p initializer.
7972 (go_language::is_string_type_p): New member function,
7973 implementation from go_is_string_type_p.
7974 * language.c (language_defn::is_string_type_p): Define new member
7975 function.
7976 (default_is_string_type_p): Make static, add comment copied from
7977 header file.
7978 (unknown_language_data): Delete la_is_string_type_p initializer.
7979 (unknown_language::is_string_type_p): New member function.
7980 (auto_language_data): Delete la_is_string_type_p initializer.
7981 (auto_language::is_string_type_p): New member function.
7982 * language.h (language_data): Delete la_is_string_type_p field.
7983 (language_defn::is_string_type_p): Declare new function.
7984 (default_is_string_type_p): Delete desclaration, move comment to
7985 definition.
7986 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7987 moved to m2_language::is_string_type_p.
7988 (m2_language_data): Delete la_is_string_type_p initializer.
7989 (m2_language::is_string_type_p): New member function,
7990 implementation from m2_is_string_type_p.
7991 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7992 initializer.
7993 * opencl-lang.c (opencl_language_data): Likewise.
7994 * p-lang.c (pascal_is_string_type_p): Delete function,
7995 implementation moved to pascal_language::is_string_type_p.
7996 (pascal_language_data): Delete la_is_string_type_p initializer.
7997 (pascal_language::is_string_type_p): New member function,
7998 implementation from pascal_is_string_type_p.
7999 * rust-lang.c (rust_is_string_type_p): Delete function,
8000 implementation moved to rust_language::is_string_type_p.
8001 (rust_language_data): Delete la_is_string_type_p initializer.
8002 (rust_language::is_string_type_p): New member function,
8003 implementation from rust_is_string_type_p.
8004 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8005 is_string_type_p.
8006
4ffc13fb
AB
80072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * ada-lang.c (ada_language_data): Delete la_print_typedef
8010 initializer.
8011 (ada_language::print_typedef): New member function.
8012 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8013 (cplus_language_data): Likewise.
8014 (asm_language_data): Likewise.
8015 (minimal_language_data): Likewise.
8016 * d-lang.c (d_language_data): Likewise.
8017 * f-lang.c (f_language_data): Likewise.
8018 (f_language::print_typedef): New member function.
8019 * go-lang.c (go_language_data): Delete la_print_typedef
8020 initializer.
8021 * language.c (language_defn::print_typedef): Define member
8022 function.
8023 (unknown_language_data): Delete la_print_typedef initializer.
8024 (unknown_language::print_typedef): New member function.
8025 (auto_language_data): Delete la_print_typedef initializer.
8026 (auto_language::print_typedef): New member function.
8027 * language.h (language_data): Delete la_print_typedef field.
8028 (language_defn::print_typedef): Declare new member function.
8029 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8030 (default_print_typedef): Delete declaration.
8031 * m2-lang.c (m2_language_data): Delete la_print_typedef
8032 initializer.
8033 (m2_language::print_typedef): New member function.
8034 * objc-lang.c (objc_language_data): Delete la_print_typedef
8035 initializer.
8036 * opencl-lang.c (opencl_language_data): Likewise.
8037 * p-lang.c (pascal_language_data): Likewise.
8038 (pascal_language::print_typedef): New member function.
8039 * rust-lang.c (rust_print_typedef): Delete function,
8040 implementation moved to rust_language::print_typedef.
8041 (rust_language): Delete la_print_typedef initializer.
8042 (rust_language::print_typedef): New member function,
8043 implementation from rust_print_typedef.
8044 * typeprint.c (default_print_typedef): Delete.
8045
d711ee67
AB
80462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8049 (ada_language::printstr): New member function.
8050 * c-lang.c (c_language_data): Delete la_printstr initializer.
8051 (cplus_language_data): Likewise.
8052 (asm_language_data): Likewise.
8053 (minimal_language_data): Likewise.
8054 * d-lang.c (d_language_data): Likewise.
8055 * f-lang.c (f_printstr): Rename to f_language::printstr.
8056 (f_language_data): Delete la_printstr initializer.
8057 (f_language::printstr): New member function, implementation from
8058 f_printstr.
8059 * go-lang.c (go_language_data): Delete la_printstr initializer.
8060 * language.c (language_defn::printstr): Define new member
8061 function.
8062 (unk_lang_printstr): Delete.
8063 (unknown_language_data): Delete la_printstr initializer.
8064 (unknown_language::printstr): New member function.
8065 (auto_language_data): Delete la_printstr initializer.
8066 (auto_language::printstr): New member function.
8067 * language.h (language_data): Delete la_printstr field.
8068 (language_defn::printstr): Declare new member function.
8069 (LA_PRINT_STRING): Update call to printstr.
8070 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8071 (m2_language_data): Delete la_printstr initializer.
8072 (m2_language::printstr): New member function, implementation from
8073 m2_printstr.
8074 * objc-lang.c (objc_language_data): Delete la_printstr
8075 initializer.
8076 * opencl-lang.c (opencl_language_data): Likewise.
8077 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8078 (pascal_language_data): Delete la_printstr initializer.
8079 (pascal_language::printstr): New member function, implementation
8080 from pascal_printstr.
8081 * p-lang.h (pascal_printstr): Delete declaration.
8082 * rust-lang.c (rust_printstr): Update header comment.
8083 (rust_language_data): Delete la_printstr initializer.
8084 (rust_language::printstr): New member function.
8085
52b50f2c
AB
80862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8087
8088 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8089 (ada_language::printchar): New member function.
8090 * c-lang.c (c_language_data): Delete la_printchar initializer.
8091 (cplus_language_data): Likewise.
8092 (asm_language_data): Likewise.
8093 (minimal_language_data): Likewise.
8094 * d-lang.c (d_language_data): Likewise.
8095 * f-lang.c (f_printchar): Rename to f_language::printchar.
8096 (f_language_data): Delete la_printchar initializer.
8097 (f_language::printchar): New member function, implementation from
8098 f_printchar.
8099 * go-lang.c (go_language_data): Delete la_printchar initializer.
8100 * language.c (unk_lang_printchar): Delete.
8101 (language_defn::printchar): Define new member function.
8102 (unknown_language_data): Delete la_printchar initializer.
8103 (unknown_language::printchar): New member function.
8104 (auto_language_data): Delete la_printchar initializer.
8105 (auto_language::printchar): New member function.
8106 * language.h (language_data): Delete la_printchar field.
8107 (language_defn::printchar): Declare new member function.
8108 (LA_PRINT_CHAR): Update call to printchar.
8109 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8110 (m2_language::printchar): New member function.
8111 * objc-lang.c (objc_language_data): Delete la_printchar
8112 initializer.
8113 * opencl-lang.c (opencl_language_data): Likewise.
8114 * p-lang.c (pascal_language_data): Delete la_printchar
8115 initializer.
8116 (pascal_language::printchar): New member function.
8117 * rust-lang.c (rust_printchar): Rename to
8118 rust_language::printchar.
8119 (rust_language_data): Delete la_printchar initializer.
8120 (rust_language::printchar): New member function, implementation
8121 from rust_printchar.
8122
ec8cec5b
AB
81232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8124
8125 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8126 (ada_language_data): Delete la_emitchar initializer.
8127 (ada_language::emitchar): New member function, implementation from
8128 emit_char.
8129 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8130 (cplus_language_data): Likewise.
8131 (asm_language_data): Likewise.
8132 (minimal_language_data): Likewise.
8133 * d-lang.c (d_language_data): Likewise.
8134 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8135 (f_language_data): Delete la_emitchar initializer.
8136 (f_language::emitchar): New member function, implementation from
8137 f_emit_char.
8138 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8139 * language.c (unk_lang_emit_char): Delete.
8140 (language_defn::emitchar): New member function definition.
8141 (unknown_language_data): Delete la_emitchar initializer.
8142 (unknown_language::emitchar): New member function.
8143 (auto_language_data): Delete la_emitchar initializer.
8144 (auto_language::emitchar): New member function.
8145 * language.h (language_data): Delete la_emitchar field.
8146 (language_defn::emitchar): New member field declaration.
8147 (LA_EMIT_CHAR): Update call to emitchar.
8148 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8149 (m2_language_data): Delete la_emitchar initializer.
8150 (m2_language::emitchar): New member function, implementation from
8151 m2_emit_char.
8152 * objc-lang.c (objc_language_data): Delete la_emitchar
8153 initializer.
8154 * opencl-lang.c (opencl_language_data): Likewise.
8155 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8156 (pascal_language_data): Delete la_emitchar initializer.
8157 (pascal_language::emitchar): New member function, implementation
8158 from pascal_emit_char.
8159 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8160 (rust_language_data): Delete la_emitchar initializer.
8161 (rust_language::emitchar): New member function, implementation
8162 from rust_emitchar.
8163
1bf9c363
AB
81642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8165
8166 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8167 (ada_language_data): Delete la_post_parser initializer.
8168 (ada_language::post_parser): New member function.
8169 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8170 (cplus_language_data): Likewise.
8171 (asm_language_data): Likewise.
8172 (minimal_language_data): Likewise.
8173 * d-lang.c (d_language_data): Likewise.
8174 * f-lang.c (f_language_data): Likewise.
8175 * go-lang.c (go_language_data): Likewise.
8176 * language.c (unknown_language_data): Likewise.
8177 (auto_language_data): Likewise.
8178 * language.h (language_data): Delete la_post_parser field.
8179 (language_defn::post_parser): New member function.
8180 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8181 * objc-lang.c (objc_language_data): Likewise.
8182 * opencl-lang.c (opencl_language_data): Likewise.
8183 * p-lang.c (pascal_language_data): Likewise.
8184 * parse.c (parse_exp_in_context): Update call to post_parser.
8185 (null_post_parser): Delete definition.
8186 * parser-defs.h (null_post_parser): Delete declaration.
8187 * rust-lang.c (rust_language_data): Delete la_post_parser
8188 initializer.
8189
87afa652
AB
81902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8191
8192 * ada-lang.c (parse): Rename to ada_language::parser.
8193 (ada_language_data): Delete la_parser initializer.
8194 (ada_language::parser): New member function, implementation from
8195 parse.
8196 * c-lang.c (c_language_data): Delete la_parser initializer.
8197 (cplus_language_data): Likewise.
8198 (asm_language_data): Likewise.
8199 (minimal_language_data): Likewise.
8200 * d-lang.c (d_language_data): Likewise.
8201 (d_language::parser): New member function.
8202 * f-lang.c (f_language_data): Delete la_parser initializer.
8203 (f_language::parser): New member function.
8204 * go-lang.c (go_language_data): Delete la_parser initializer.
8205 (go_language::parser): New member function.
8206 * language.c (unk_lang_parser): Delete.
8207 (language_defn::parser): Define new member function.
8208 (unknown_language_data): Delete la_parser initializer.
8209 (unknown_language::parser): New member function.
8210 (auto_language_data): Delete la_parser initializer.
8211 (auto_language::parser): New member function.
8212 * language.h (language_data): Delete la_parser field.
8213 (language_defn::parser): Declare new member function.
8214 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8215 (m2_language::parser): New member function.
8216 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8217 * opencl-lang.c (opencl_language_data): Likewise.
8218 * p-lang.c (pascal_language_data): Likewise.
8219 (pascal_language::parser): New member function.
8220 * parse.c (parse_exp_in_context): Update call to parser.
8221 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8222 (rust_language::parser): New member function.
8223
37825800
AB
82242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * top.c (print_gdb_configuration): Print --with-python-libdir
8227 configuration value.
8228
5b860c93
PW
82292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8230
8231 * NEWS: Mention change to the alias command.
8232
cf00cd6f
PW
82332020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8234
8235 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8236 (alias_command_completer)
8237 (make_alias_options_def_group): New functions.
8238 (alias_opts, alias_option_defs): New struct and array.
8239 (alias_usage_error): Update usage.
8240 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8241 Use option framework.
8242 (_initialize_cli_cmds): Update alias command help.
8243 Update aliases command help.
8244 (show_user):
8245 Add NULL for new default_args lookup_cmd argument.
8246 (valid_command_p): Rename to validate_aliased_command.
8247 Add NULL for new default_args lookup_cmd argument. Verify that the
8248 aliased_command has no default args.
8249 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8250 (lookup_cmd_1, lookup_cmd): New argument default_args.
8251 (add_alias_cmd):
8252 Add NULL for new default_args lookup_cmd argument.
8253 (print_help_for_command): Show default args under the layout
8254 alias some_alias = some_aliased_cmd some_alias_default_arg.
8255 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8256 xfree default_args in destructor.
8257 * cli/cli-script.c (process_next_line, do_define_command):
8258 Add NULL for new default_args lookup_cmd argument.
8259 * command.h: Declare new default_args argument in lookup_cmd
8260 and lookup_cmd_1.
8261 * completer.c (complete_line_internal_1):
8262 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8263 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8264 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8265 Likewise.
8266 * infcmd.c (_initialize_infcmd): Likewise.
8267 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8268 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8269 * python/py-param.c (add_setshow_generic): Likewise.
8270 * remote.c (_initialize_remote): Likewise.
8271 * top.c (execute_command): Prepend default_args if command has some.
8272 (set_verbose):
8273 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8274 * tracepoint.c (validate_actionline, encode_actions_1):
8275 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8276
bd920864
TBA
82772020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8278
8279 * jit.c (jit_read_descriptor): Use bool as the return type.
8280 (jit_breakpoint_re_set_internal): Use bool as the return type.
8281 Invert the return value logic; return true if the jit breakpoint
8282 has been successfully initialized.
8283 (jit_inferior_init): Update the call to
8284 jit_breakpoint_re_set_internal.
8285
f8098322
PA
82862020-06-22 Pedro Alves <palves@redhat.com>
8287
8288 PR gdb/25939
8289 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8290 Use the current inferior instead. Don't return
8291 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8292 wait again.
8293 * sol-thread.c (sol_thread_target::wait): Don't reference
8294 inferior_ptid.
8295 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8296 (sol_update_thread_list_callback): Use the current inferior's pid
8297 instead of inferior_ptid.
8298
196535a6
RO
82992020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8300
8301 * procfs.c: Cleanup many comments.
8302
8303 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8304 (AFTER_WATCHFLAG): Replace by value.
8305
8306 (MAIN_PROC_NAME_FORMAT): Inline ...
8307 (create_procinfo): ... here.
8308
8309 (procfs_debug_inferior): Remove SYS_exec handling.
8310 (syscall_is_exec): Likewise.
8311 (procfs_set_exec_trap): Likewise.
8312
8313 (syscall_is_lwp_exit): Inline in callers.
8314 (syscall_is_exit): Likewise.
8315 (syscall_is_exec): Likewise.
8316 (syscall_is_lwp_create): Likewise.
8317
8318 (invalidate_cache): Remove #if 0 code.
8319
8320 (make_signal_thread_runnable): Remove.
8321 (procfs_target::resume): Remove #if 0 code.
8322
cf6f3e86
RO
83232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8324
8325 PR gdb/25939
8326 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8327 call ...
8328 (procfs_target::create_inferior): ... here.
8329
48e9cc84
PW
83302020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8331
8332 * exec.c (validate_exec_file): Ensure the build-id is up to
8333 date by calling reopen_exec_file (that checks file timestamp
8334 to decide to re-read the file).
8335
3922b302
PA
83362020-06-18 Pedro Alves <palves@redhat.com>
8337
8338 PR gdb/25412
8339 * gdbthread.h (delete_thread, delete_thread_silent)
8340 (find_thread_ptid): Update comments.
8341 * thread.c (current_thread_): New global.
8342 (is_current_thread): Move higher, and reimplement.
8343 (inferior_thread): Reimplement.
8344 (set_thread_exited): Use bool. Add assertions.
8345 (add_thread_silent): Simplify thread-reuse handling by always
8346 calling delete_thread.
8347 (delete_thread): Remove intro comment.
8348 (find_thread_ptid): Skip exited threads.
8349 (switch_to_thread_no_regs): Write to current_thread_.
8350 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8351 INFERIOR_PTID. Clear current_thread_.
8352
6dbdab44
PA
83532020-06-18 Pedro Alves <palves@redhat.com>
8354
8355 * aix-thread.c (pd_update): Use switch_to_thread.
8356
2da4b788
PA
83572020-06-18 Pedro Alves <palves@redhat.com>
8358
8359 * ravenscar-thread.c (ravenscar_thread_target): Update.
8360 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8361 (ravenscar_thread_target::add_active_thread): ... this. Don't
8362 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8363 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8364
50838d1b
PA
83652020-06-18 Pedro Alves <palves@redhat.com>
8366
8367 * nat/windows-nat.c (current_windows_thread): Remove.
8368 * nat/windows-nat.h (current_windows_thread): Remove.
8369 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8370 Adjust.
8371 (display_selectors): Adjust to fetch the current
8372 windows_thread_info based on inferior_ptid.
8373 (fake_create_process): No longer write to current_windows_thread.
8374 (windows_nat_target::get_windows_debug_event):
8375 Don't set inferior_ptid or current_windows_thread.
8376 (windows_nat_target::wait): Adjust to not rely on
8377 current_windows_thread.
8378 (do_initial_windows_stuff): Now a method of windows_nat_target.
8379 Switch to the last_ptid thread.
8380 (windows_nat_target::attach): Adjust.
8381 (windows_nat_target::detach): Use switch_to_no_thread instead of
8382 writing to inferior_ptid directly.
8383 (windows_nat_target::create_inferior): Adjust.
8384
31ce04e9
PA
83852020-06-18 Pedro Alves <palves@redhat.com>
8386
8387 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8388
1ee1a363
PA
83892020-06-18 Pedro Alves <palves@redhat.com>
8390
8391 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8392 after creating it, instead of writing to inferior_ptid. Don't
8393 write to inferior_ptid.
8394
6d350754
PA
83952020-06-18 Pedro Alves <palves@redhat.com>
8396
8397 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8398
5d971d48
PA
83992020-06-18 Pedro Alves <palves@redhat.com>
8400
8401 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8402 it, instead of writing to inferior_ptid.
8403
86e57d1b
PA
84042020-06-18 Pedro Alves <palves@redhat.com>
8405
8406 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8407 to inferior_ptid.
8408
f2e1c129
PA
84092020-06-18 Pedro Alves <palves@redhat.com>
8410
8411 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8412 instead of writing to inferior_ptid directly.
8413
60db1b85
PA
84142020-06-18 Pedro Alves <palves@redhat.com>
8415
8416 * corelow.c (core_target::close): Use switch_to_no_thread instead
8417 of writing to inferior_ptid directly.
8418 (add_to_thread_list, core_target_open): Use switch_to_thread
8419 instead of writing to inferior_ptid directly.
8420
fe7d6a8d
PA
84212020-06-18 Pedro Alves <palves@redhat.com>
8422
8423 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8424 inferior_ptid.
8425 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8426 inferior_ptid.
8427 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8428 inferior_ptid directly.
8429 (darwin_nat_target::init_thread_list): Switch to thread, instead
8430 of writing to inferior_ptid.
8431 (darwin_nat_target::attach): Don't write to inferior_ptid.
8432 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8433
975f8708
PA
84342020-06-18 Pedro Alves <palves@redhat.com>
8435
8436 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8437 thread.
8438 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8439 Instead use switch_to_thread.
8440 (gnu_nat_target::detach): Use switch_to_no_thread
8441 instead of writing to inferior_ptid directly. Used passed-in
8442 inferior instead of looking up the inferior by pid.
8443
1a204730
PA
84442020-06-18 Pedro Alves <palves@redhat.com>
8445
8446 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8447 inferior_ptid.
8448
ebe84f23
PA
84492020-06-18 Pedro Alves <palves@redhat.com>
8450
8451 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8452 inferior_ptid.
8453 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8454 thread.
8455 (nto_procfs_target::detach): Avoid referencing
8456 inferior_ptid. Use switch_to_no_thread instead of writing to
8457 inferior_ptid directly.
8458 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8459 instead of writing to inferior_ptid directly.
8460 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8461 to thread.
8462
191f02e5
PA
84632020-06-18 Pedro Alves <palves@redhat.com>
8464
8465 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8466 after creating it, instead of writing to inferior_ptid.
8467 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8468 to inferior_ptid directly.
8469 (gdbsim_target::wait): Don't write to inferior_ptid.
8470
0ac55310
PA
84712020-06-18 Pedro Alves <palves@redhat.com>
8472
8473 * remote.c (remote_target::remote_notice_new_inferior): Use
8474 switch_to_thread instead of writing to inferior_ptid directly.
8475 (remote_target::add_current_inferior_and_thread): Use
8476 switch_to_no_thread instead of writing to inferior_ptid directly.
8477 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8478 and switch_to_thread instead of using set_current_inferior or
8479 writing to inferior_ptid directly.
8480
5233f39b
PA
84812020-06-18 Pedro Alves <palves@redhat.com>
8482
8483 * tracectf.c (ctf_target_open): Switch to added thread instead of
8484 writing to inferior_ptid directly.
8485 (ctf_target::close): Use switch_to_no_thread instead of writing to
8486 inferior_ptid directly.
8487
087e161b
PA
84882020-06-18 Pedro Alves <palves@redhat.com>
8489
8490 * tracefile-tfile.c (tfile_target_open): Don't write to
8491 inferior_ptid directly, instead switch to added thread.
8492 (tfile_target::close): Use switch_to_no_thread instead of writing
8493 to inferior_ptid directly.
8494
7fb43e53
PA
84952020-06-18 Pedro Alves <palves@redhat.com>
8496
8497 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8498 (procfs_target::detach): Use switch_to_no_thread
8499 instead of writing to inferior_ptid directly.
8500 (do_attach): Change return type to void. Switch to the added
8501 thread.
8502 (procfs_target::create_inferior): Switch to the added thread.
8503 (procfs_do_thread_registers): Don't write to inferior_ptid.
8504
18493a00
PA
85052020-06-18 Pedro Alves <palves@redhat.com>
8506
8507 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8508 of writing to inferior_ptid.
8509 (scoped_restore_exited_inferior): Delete.
8510 (handle_vfork_child_exec_or_exit): Simplify using
8511 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8512 instead of writing to inferior_ptid.
8513 (THREAD_STOPPED_BY): Delete.
8514 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8515 (thread_stopped_by_hw_breakpoint): Delete.
8516 (save_waitstatus): Use
8517 scoped_restore_current_thread+switch_to_thread, and call
8518 target_stopped_by_watchpoint instead of
8519 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8520 instead of thread_stopped_by_sw_breakpoint, and
8521 target_stopped_by_hw_breakpoint instead of
8522 thread_stopped_by_hw_breakpoint.
8523 (handle_inferior_event)
8524 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8525 inferior_ptid directly, nor
8526 set_current_inferior/set_current_program_space. Use
8527 switch_to_thread / switch_to_inferior_no_thread instead.
8528
a0776b13
PA
85292020-06-18 Pedro Alves <palves@redhat.com>
8530
8531 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8532 instead of writing to inferior_ptid.
8533
6155c136
PA
85342020-06-18 Pedro Alves <palves@redhat.com>
8535
8536 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8537 added thread.
8538 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8539 to the added thread.
8540 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8541 instead of writing to inferior_ptid.
8542
c5316fc6
PA
85432020-06-18 Pedro Alves <palves@redhat.com>
8544
8545 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8546 (register_to_value_test): Mock a program_space too. Heap-allocate
8547 the address space. Don't write to inferior_ptid. Use
8548 switch_to_thread instead.
8549
8df01799
PA
85502020-06-18 Pedro Alves <palves@redhat.com>
8551
8552 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8553 Delete.
8554 (find_signalled_thread()): New, factored out from
8555 linux_make_corefile_notes and adjusted to handle exited threads.
8556 (linux_make_corefile_notes): Adjust to use the new
8557 find_signalled_thread.
8558
41792d68
PA
85592020-06-18 Pedro Alves <palves@redhat.com>
8560
8561 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8562 of saving/restoring inferior_ptid.
8563
612f258a
TT
85642020-06-17 Tom Tromey <tom@tromey.com>
8565
8566 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8567 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8568 declare.
8569 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8570
efb763a5
SM
85712020-06-15 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8574 of partial symtabs.
8575
2951f6c0
SM
85762020-06-17 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * regformats/reg-arm.dat: Remove.
8579 * regformats/reg-bfin.dat: Remove.
8580 * regformats/reg-cris.dat: Remove.
8581 * regformats/reg-crisv32.dat: Remove.
8582 * regformats/reg-m32r.dat: Remove.
8583 * regformats/reg-tilegx.dat: Remove.
8584 * regformats/reg-tilegx32.dat: Remove.
8585
7d458ea5
SM
85862020-06-17 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * features/Makefile (WHICH): Remove arm files.
8589 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8590 * regformats/arm/arm-with-neon.dat: Remove.
8591 * regformats/arm/arm-with-vfpv2.dat: Remove.
8592 * regformats/arm/arm-with-vfpv3.dat: Remove.
8593
3af96c0d
SM
85942020-06-17 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * features/Makefile (XMLTOC): Remove rx.xml.
8597
b25e22fd
PA
85982020-06-17 Pedro Alves <palves@redhat.com>
8599
8600 * gdbthread.h (thread_control_state) <trap_expected> Update
8601 comments.
8602
a78a19b1
AB
86032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8606 ada_language::lookup_symbol_nonlocal.
8607 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8608 (ada_language::lookup_symbol_nonlocal): New member function,
8609 implementation from ada_lookup_symbol_nonlocal.
8610 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8611 initializer.
8612 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8613 initializer.
8614 (cplus_language::lookup_symbol_nonlocal): New member function.
8615 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8616 (minimal_language_data) Likewise.
8617 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8618 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8619 initializer.
8620 (d_language::lookup_symbol_nonlocal): New member function.
8621 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8622 initializer.
8623 (f_language::lookup_symbol_nonlocal): New member function.
8624 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8625 initializer.
8626 * language.c (unknown_language_data): Likewise.
8627 (auto_language_data): Likewise.
8628 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8629 field.
8630 (language_defn::lookup_symbol_nonlocal): New member function.
8631 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8632 initializer.
8633 * objc-lang.c (objc_language_data): Likewise.
8634 * opencl-lang.c (opencl_language_data): Likewise.
8635 * p-lang.c (pascal_language_data): Likewise.
8636 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8637 rust_language::lookup_symbol_nonlocal.
8638 (rust_language_data): Delete la_lookup_symbol_nonlocal
8639 initializer.
8640 (rust_language::lookup_symbol_nonlocal): New member function,
8641 implementation from rust_lookup_symbol_nonlocal.
8642 * symtab.c (lookup_symbol_aux): Update call to
8643 lookup_symbol_nonlocal.
8644 (basic_lookup_symbol_nonlocal): Rename to...
8645 (language_defn::lookup_symbol_nonlocal): ...this, and update
8646 header comment. Remove language_defn parameter, and replace with
8647 uses of `this'.
8648 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8649
ebe2334e
AB
86502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8651
8652 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8653 initializer.
8654 (ada_language::value_print_inner): New member function.
8655 * c-lang.c (c_language_data): Delete la_value_print_inner
8656 initializer.
8657 (cplus_language_data): Likewise.
8658 (asm_language_data): Likewise.
8659 (minimal_language_data): Likewise.
8660 * d-lang.c (d_language_data): Likewise.
8661 (d_language::value_print_inner): New member function.
8662 * f-lang.c (f_language_data): Delete la_value_print_inner
8663 initializer.
8664 (f_language::value_print_inner): New member function.
8665 * f-lang.h (f_value_print_innner): Rename to...
8666 (f_value_print_inner): ...this (note spelling of 'inner').
8667 * f-valprint.c (f_value_print_innner): Rename to...
8668 (f_value_print_inner): ...this (note spelling of 'inner').
8669 * go-lang.c (go_language_data): Delete la_value_print_inner
8670 initializer.
8671 (go_language::value_print_inner): New member function.
8672 * language.c (language_defn::value_print_inner): Define new member
8673 function.
8674 (unk_lang_value_print_inner): Delete.
8675 (unknown_language_data): Delete la_value_print_inner initializer.
8676 (unknown_language::value_print_inner): New member function.
8677 (auto_language_data): Delete la_value_print_inner initializer.
8678 (auto_language::value_print_inner): New member function.
8679 * language.h (language_data): Delete la_value_print_inner field.
8680 (language_defn::value_print_inner): Delcare new member function.
8681 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8682 initializer.
8683 (m2_language::value_print_inner): New member function.
8684 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8685 initializer.
8686 * opencl-lang.c (opencl_language_data): Likewise.
8687 * p-lang.c (pascal_language_data): Likewise.
8688 (pascal_language::value_print_inner): New member function.
8689 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8690 initializer.
8691 (rust_language::value_print_inner): New member function.
8692 * valprint.c (do_val_print): Update call to value_print_inner.
8693
a1d1fa3e
AB
86942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8695
8696 * ada-lang.c (ada_language_data): Delete la_value_print
8697 initializer.
8698 (ada_language::value_print): New member function.
8699 * c-lang.c (c_language_data): Delete la_value_print initializer.
8700 (cplus_language_data): Likewise.
8701 (asm_language_data): Likewise.
8702 (minimal_language_data): Likewise.
8703 * d-lang.c (d_language_data): Likewise.
8704 * f-lang.c (f_language_data): Likewise.
8705 * go-lang.c (go_language_data): Likewise.
8706 * language.c (unk_lang_value_print): Delete.
8707 (language_defn::value_print): Define new member function.
8708 (unknown_language_data): Delete la_value_print initializer.
8709 (unknown_language::value_print): New member function.
8710 (auto_language_data): Delete la_value_print initializer.
8711 (auto_language::value_print): New member function.
8712 * language.h (language_data): Delete la_value_print field.
8713 (language_defn::value_print): Declare new member function.
8714 (LA_VALUE_PRINT): Update call to value_print.
8715 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8716 * objc-lang.c (objc_language_data): Likewise.
8717 * opencl-lang.c (opencl_language_data): Likewise.
8718 * p-lang.c (pascal_language_data): Likewise.
8719 (pascal_language::value_print): New member function.
8720 * rust-lang.c (rust_language_data): Delete la_value_print
8721 initializer.
8722
f16a9f57
AB
87232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * ada-lang.c (ada_watch_location_expression): Rename to
8726 ada_language::watch_location_expression.
8727 (ada_language_data): Delete la_watch_location_expression
8728 initializer.
8729 (ada_language::watch_location_expression): New member function,
8730 implementation from ada_watch_location_expression.
8731 * breakpoint.c (watch_command_1): Update call to
8732 watch_location_expression.
8733 * c-lang.c (c_watch_location_expression): Rename to
8734 language_defn::watch_location_expression.
8735 (c_language_data): Delete la_watch_location_expression
8736 initializer.
8737 (cplus_language_data): Likewise.
8738 (asm_language_data): Likewise.
8739 (minimal_language_data): Likewise.
8740 * c-lang.h (c_watch_location_expression): Delete declaration.
8741 * d-lang.c (d_language_data): Delete la_watch_location_expression
8742 initializer.
8743 * f-lang.c (f_language_data): Likewise.
8744 * go-lang.c (go_language_data): Likewise.
8745 * language.c (language_defn::watch_location_expression): Member
8746 function implementation from c_watch_location_expression.
8747 (unknown_language_data): Delete la_watch_location_expression
8748 initializer.
8749 (auto_language_data): Likewise.
8750 * language.h (language_data): Delete la_watch_location_expression
8751 field.
8752 (language_defn::watch_location_expression): Declare new member
8753 function.
8754 * m2-lang.c (m2_language_data): Delete
8755 la_watch_location_expression initializer.
8756 * objc-lang.c (objc_language_data): Likewise.
8757 * opencl-lang.c (opencl_language_data): Likewise.
8758 * p-lang.c (pascal_language_data): Likewise.
8759 * rust-lang.c (rust_watch_location_expression): Rename to
8760 rust_language::watch_location_expression.
8761 (rust_language_data): Delete la_watch_location_expression
8762 initializer.
8763 (rust_language::watch_location_expression): New member function,
8764 implementation from rust_watch_location_expression.
8765
7e56227d
AB
87662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8769 ada_language::collect_symbol_completion_matches.
8770 (ada_language_data): Delete la_collect_symbol_completion_matches
8771 initializer.
8772 (ada_language::collect_symbol_completion_matches): New member
8773 function, implementation from
8774 ada_collect_symbol_completion_matches.
8775 * c-lang.c (c_language_data): Delete
8776 la_collect_symbol_completion_matches initializer.
8777 (cplus_language_data): Likewise.
8778 (asm_language_data): Likewise.
8779 (minimal_language_data): Likewise.
8780 * d-lang.c (d_language_data): Likewise.
8781 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8782 f_language::collect_symbol_completion_matches.
8783 (f_language_data): Delete la_collect_symbol_completion_matches
8784 initializer.
8785 (f_language::collect_symbol_completion_matches) New member
8786 function, implementation from f_collect_symbol_completion_matches.
8787 * go-lang.c (go_language_data): Delete
8788 la_collect_symbol_completion_matches initializer.
8789 * language.c (unknown_language_data): Likewise.
8790 (auto_language_data): Likewise.
8791 * language.h (language_data): Delete
8792 la_collect_symbol_completion_matches field.
8793 (language_defn::collect_symbol_completion_matches): New member
8794 function.
8795 * m2-lang.c (m2_language_data): Delete
8796 la_collect_symbol_completion_matches initializer.
8797 * objc-lang.c (objc_language_data): Likewise.
8798 * opencl-lang.c (opencl_language_data): Likewise.
8799 * p-lang.c (pascal_language_data): Likewise.
8800 * rust-lang.c (rust_language_data): Likewise.
8801 * symtab.c (default_collect_symbol_completion_matches): Delete.
8802 (collect_symbol_completion_matches): Update call to
8803 collect_symbol_completion_matches.
8804 (collect_symbol_completion_matches_type): Likewise.
8805 * symtab.h (default_collect_symbol_completion_matches): Delete
8806 declaration.
8807
53fc67f8
AB
88082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8811 (ada_language_data): Delete la_word_break_characters initializer.
8812 (ada_language::word_break_characters): New member function.
8813 * c-lang.c (c_language_data): Delete la_word_break_characters
8814 initializer.
8815 (cplus_language_data): Likewise.
8816 (asm_language_data): Likewise.
8817 (minimal_language_data): Likewise.
8818 * completer.c: Update global comment.
8819 (advance_to_expression_complete_word_point): Update call to
8820 word_break_characters.
8821 (complete_files_symbols): Likewise.
8822 (complete_line_internal_1): Likewise.
8823 (default_completer_handle_brkchars): Likewise.
8824 (skip_quoted_chars): Likewise.
8825 * d-lang.c (d_language_data): Delete la_word_break_characters
8826 initializer.
8827 * f-lang.c (f_word_break_characters): Delete.
8828 (f_language_data): Delete la_word_break_characters initializer.
8829 (f_language::word_break_characters): New member function.
8830 * go-lang.c (go_language_data): Delete la_word_break_characters
8831 initializer.
8832 * language.c (unknown_language_data): Likewise.
8833 (auto_language_data): Likewise.
8834 * language.h (default_word_break_characters): Move declaration to
8835 earlier in the file.
8836 (language_data): Delete la_word_break_characters field.
8837 (language_defn::word_break_characters): New member function.
8838 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8839 initializer.
8840 * objc-lang.c (objc_language_data): Likewise.
8841 * opencl-lang.c (opencl_language_data): Likewise.
8842 * p-lang.c (pascal_language_data): Likewise.
8843 * rust-lang.c (rust_language_data): Likewise.
8844
c9debfb9
AB
88452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8848 (ada_language_data): Delete la_get_symbol_name_matcher
8849 initializer.
8850 (language_defn::get_symbol_name_matcher_inner): New member
8851 function.
8852 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8853 initializer.
8854 (cplus_language_data): Likewise.
8855 (cplus_language::get_symbol_name_matcher_inner): New member
8856 function.
8857 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8858 (minimal_language_data): Likewise.
8859 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8860 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8861 initializer.
8862 * dictionary.c (iter_match_first_hashed): Update call to
8863 get_symbol_name_matcher.
8864 (iter_match_next_hashed): Likewise.
8865 (iter_match_next_linear): Likewise.
8866 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8867 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8868 initializer.
8869 (f_language::get_symbol_name_matcher_inner): New member function.
8870 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8871 initializer.
8872 * language.c (default_symbol_name_matcher): Update header comment,
8873 make static.
8874 (language_defn::get_symbol_name_matcher): New definition.
8875 (language_defn::get_symbol_name_matcher_inner): Likewise.
8876 (get_symbol_name_matcher): Delete.
8877 (unknown_language_data): Delete la_get_symbol_name_matcher
8878 initializer.
8879 (auto_language_data): Likewise.
8880 * language.h (language_data): Delete la_get_symbol_name_matcher
8881 field.
8882 (language_defn::get_symbol_name_matcher): New member function.
8883 (language_defn::get_symbol_name_matcher_inner): Likewise.
8884 (default_symbol_name_matcher): Delete declaration.
8885 * linespec.c (find_methods): Update call to
8886 get_symbol_name_matcher.
8887 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8888 initializer.
8889 * minsyms.c (lookup_minimal_symbol): Update call to
8890 get_symbol_name_matcher.
8891 (iterate_over_minimal_symbols): Likewise.
8892 * objc-lang.c (objc_language_data): Delete
8893 la_get_symbol_name_matcher initializer.
8894 * opencl-lang.c (opencl_language_data): Likewise.
8895 * p-lang.c (pascal_language_data): Likewise.
8896 * psymtab.c (psymbol_name_matches): Update call to
8897 get_symbol_name_matcher.
8898 * rust-lang.c (rust_language_data): Delete
8899 la_get_symbol_name_matcher initializer.
8900 * symtab.c (symbol_matches_search_name): Update call to
8901 get_symbol_name_matcher.
8902 (compare_symbol_name): Likewise.
8903
9a49ad8c
AB
89042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8905
8906 * ada-lang.c (ada_language_data): Delete la_compute_program
8907 initializer.
8908 * c-lang.c (c_language_data): Likewise.
8909 (c_language::compute_program): New member function.
8910 (cplus_language_data): Delete la_compute_program initializer.
8911 (cplus_language::compute_program): New member function.
8912 (asm_language_data): Delete la_compute_program initializer.
8913 (minimal_language_data): Likewise.
8914 * c-lang.h (c_compute_program): Update comment.
8915 (cplus_compute_program): Likewise.
8916 * compile/compile-c-support.c (c_compute_program): Likewise.
8917 (cplus_compute_program): Likewise.
8918 * compile/compile.c (compile_to_object): Update call to
8919 la_compute_program.
8920 * d-lang.c (d_language_data): Delete la_compute_program
8921 initializer.
8922 * f-lang.c (f_language_data): Likewise.
8923 * go-lang.c (go_language_data): Likewise.
8924 * language.c (unknown_language_data): Likewise.
8925 (auto_language_data): Likewise.
8926 * language.h (language_data): Delete la_compute_program field.
8927 (language_defn::compute_program): New member function.
8928 * m2-lang.c (m2_language_data): Delete la_compute_program
8929 initializer.
8930 * objc-lang.c (objc_language_data): Likewise.
8931 * opencl-lang.c (opencl_language_data): Likewise.
8932 * p-lang.c (pascal_language_data): Likewise.
8933 * rust-lang.c (rust_language_data): Likewise.
8934
eff93b4d
AB
89352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 * ada-lang.c (ada_language_data) Delete
8938 la_class_name_from_physname initializer.
8939 * c-lang.c (c_language_data): Likewise.
8940 (cplus_language_data): Likewise.
8941 (cplus_language::class_name_from_physname): New member function.
8942 (asm_language_data): Delete la_class_name_from_physname
8943 initializer.
8944 (minimal_language_data): Likewise.
8945 * d-lang.c (d_language_data): Likewise.
8946 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8947 method on language_defn class.
8948 (guess_full_die_structure_name): Likewise.
8949 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8950 initializer.
8951 * go-lang.c (go_language_data): Likewise.
8952 * language.c (language_class_name_from_physname): Delete.
8953 (unk_lang_class_name): Delete.
8954 (unknown_language_data): Delete la_class_name_from_physname
8955 initializer.
8956 (auto_language_data): Likewise.
8957 * language.h (language_data): Delete la_class_name_from_physname
8958 field.
8959 (language_defn::class_name_from_physname): New function.
8960 (language_class_name_from_physname): Delete declaration.
8961 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8962 initializer.
8963 * objc-lang.c (objc_language_data): Likewise.
8964 * opencl-lang.c (opencl_language_data): Likewise.
8965 * p-lang.c (pascal_language_data): Likewise.
8966 * rust-lang.c (rust_language_data): Likewise.
8967
de543742
TT
89682020-06-16 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui-data.h (STATUS_NAME): New macro.
8971 * tui/tui-layout.c (tui_remove_some_windows)
8972 (initialize_known_windows, tui_register_window)
8973 (tui_layout_split::remove_windows, initialize_layouts)
8974 (tui_new_layout_command): Don't use hard-coded window names.
8975
a350efd4
TT
89762020-06-16 Tom Tromey <tom@tromey.com>
8977
8978 PR tui/25348:
8979 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8980 tui_initialize_readline. Only run once. Call rl_initialize.
8981 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8982 tui_initialize_readline.
8983 * tui/tui-io.c (tui_setup_io): Call
8984 tui_ensure_readline_initialized.
8985 * tui/tui-interp.c (tui_interp::init): Update.
8986
39ec0490
TT
89872020-06-16 Tom Tromey <tom@tromey.com>
8988
8989 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8990 Also preserve the status window.
8991
d2d1ea20
TT
89922020-06-16 Tom Tromey <tom@tromey.com>
8993
8994 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8995 where m_window==nullptr.
8996
66920317
TT
89972020-06-15 Tom Tromey <tromey@adacore.com>
8998
8999 * windows-nat.c (windows_nat::handle_output_debug_string):
9000 Update.
9001 (windows_nat::handle_ms_vc_exception): Update.
9002 * target.h (target_read_string): Change API.
9003 * target.c (target_read_string): Change API.
9004 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9005 Update.
9006 * solib-frv.c (frv_current_sos): Update.
9007 * solib-dsbt.c (dsbt_current_sos): Update.
9008 * solib-darwin.c (darwin_current_sos): Update.
9009 * linux-thread-db.c (inferior_has_bug): Update.
9010 * expprint.c (print_subexp_standard): Update.
9011 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9012 (ada_exception_message_1): Update.
9013
a5d871dd
TT
90142020-06-15 Tom Tromey <tromey@adacore.com>
9015
9016 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9017
670e35fa
TT
90182020-06-15 Tom Tromey <tromey@adacore.com>
9019
9020 * valprint.c (read_string): Update comment.
9021 * target.c (MIN): Remove.
9022 (target_read_string): Rewrite.
9023
f5272a3b
TT
90242020-06-15 Tom Tromey <tromey@adacore.com>
9025
9026 * corefile.c (read_memory_string): Remove.
9027 * ada-valprint.c (ada_value_print_ptr): Update.
9028 * ada-lang.h (ada_tag_name): Change return type.
9029 * ada-lang.c (type_from_tag): Update.
9030 (ada_tag_name_from_tsd): Change return type. Use
9031 target_read_string.
9032 (ada_tag_name): Likewise.
9033 * gdbcore.h (read_memory_string): Don't declare.
9034
2c074f49
HD
90352020-06-14 Hannes Domani <ssbssa@yahoo.de>
9036
9037 * symtab.c (rbreak_command): Ignore Windows drive colon.
9038
6a17d503
SM
90392020-06-12 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * NEWS: Mention removed GDBserver host support.
9042
453c733f
NC
90432020-06-12 Nelson Chu <nelson.chu@sifive.com>
9044
9045 * features/riscv/rebuild-csr-xml.sh: Updated.
9046
2b4e6a3f
TT
90472020-06-11 Tom Tromey <tom@tromey.com>
9048
9049 PR gdb/18318:
9050 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9051
4412332f
JG
90522020-06-09 Jonny Grant <jg@jguk.org>
90532020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9054
9055 * main.c (captured_main_1): Don't print new line after help.
9056 (print_gdb_help): add mailing list and IRC channel information
9057 to --help. Add new lines between items in the footer. Remove
9058 quotes around bug url.
9059
2f33032a
KS
90602020-06-11 Keith Seitz <keiths@redhat.com>
9061
9062 PR gdb/21356
9063 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9064 Resolve typedefs for type length calculations.
9065
7ab96794
TV
90662020-06-10 Tom de Vries <tdevries@suse.de>
9067
9068 PR ada/24713
9069 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9070 (write_psymbols): Enable .gdb_index for ada.
9071 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9072 ada.
9073
e5f3ece2
TV
90742020-06-10 Tom de Vries <tdevries@suse.de>
9075
9076 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9077 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9078 namei" instead of "const char *name" argument.
9079 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9080 dw2_symtab_iter_init.
9081
940da03e
SM
90822020-06-08 Simon Marchi <simon.marchi@efficios.com>
9083
9084 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9085 to use type::field and field::type instead.
9086
b6cdac4b
SM
90872020-06-08 Simon Marchi <simon.marchi@efficios.com>
9088
9089 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9090 to use field::type instead.
9091
5d14b6e5
SM
90922020-06-08 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * gdbtypes.h (struct field) <type, set_type>: New methods.
9095 Rename `type` field to...
9096 <m_type>: ... this. Change references throughout to use type or
9097 set_type methods.
9098 (FIELD_TYPE): Use field::type. Change call sites that modify
9099 the field's type to use field::set_type instead.
9100
3d967001
SM
91012020-06-08 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9104 to use type::index_type instead.
9105
262abc0d
SM
91062020-06-08 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9109 methods.
9110 (TYPE_INDEX_TYPE): Use type::index_type.
9111 * gdbtypes.c (create_array_type_with_stride): Likewise.
9112
82836c92
TT
91132020-06-07 Tom Tromey <tom@tromey.com>
9114
9115 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9116 parameter.
9117 (generic_value_print): Update.
9118
940dace9
AB
91192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 Revert commit 982a38f60b0.
9122 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9123
982a38f6
AB
91242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9125
9126 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9127 avoid use after free.
9128
82f06518
TV
91292020-06-05 Tom de Vries <tdevries@suse.de>
9130
9131 * NEWS: Fix typos.
9132
f8c41851
SM
91332020-06-04 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9136 the per_bfd object.
9137 (dwarf2_read_debug_names): Likewise.
9138 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9139 object when re-using a per_bfd object with an index.
9140
f9b5d5ea
TV
91412020-06-03 Tom de Vries <tdevries@suse.de>
9142
9143 PR symtab/26046
9144 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9145 children for C++.
9146 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9147 DW_TAG_subprogram.
9148
f6eee2d0
AB
91492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * ada-lang.c (ada_language_data): Delete skip_trampoline
9152 initializer.
9153 * c-lang.c (c_language_data): Likewise.
9154 (cplus_language_data): Likewise.
9155 (cplus_language::skip_trampoline): New member function.
9156 (asm_language_data): Delete skip_trampoline initializer.
9157 (minimal_language_data): Likewise.
9158 * d-lang.c (d_language_data): Likewise.
9159 * f-lang.c (f_language_data): Likewise.
9160 * go-lang.c (go_language_data): Likewise.
9161 * language.c (unk_lang_trampoline): Delete function.
9162 (skip_language_trampoline): Update.
9163 (unknown_language_data): Delete skip_trampoline initializer.
9164 (auto_language_data): Likewise.
9165 * language.h (language_data): Delete skip_trampoline field.
9166 (language_defn::skip_trampoline): New function.
9167 * m2-lang.c (m2_language_data): Delete skip_trampoline
9168 initializer.
9169 * objc-lang.c (objc_skip_trampoline): Delete function, move
9170 implementation to objc_language::skip_trampoline.
9171 (objc_language_data): Delete skip_trampoline initializer.
9172 (objc_language::skip_trampoline): New member function with
9173 implementation from objc_skip_trampoline.
9174 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9175 initializer.
9176 * p-lang.c (pascal_language_data): Likewise.
9177 * rust-lang.c (rust_language_data): Likewise.
9178
0a50df5d
AB
91792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9182 (ada_language::demangle): New member function.
9183 * c-lang.c (c_language_data): Delete la_demangle initializer.
9184 (cplus_language_data): Delete la_demangle initializer.
9185 (cplus_language::demangle): New member function.
9186 (asm_language_data): Delete la_demangle initializer.
9187 (minimal_language_data): Delete la_demangle initializer.
9188 * d-lang.c (d_language_data): Delete la_demangle initializer.
9189 (d_language::demangle): New member function.
9190 * f-lang.c (f_language_data): Delete la_demangle initializer.
9191 (f_language::demangle): New member function.
9192 * go-lang.c (go_language_data): Delete la_demangle initializer.
9193 (go_language::demangle): New member function.
9194 * language.c (language_demangle): Update.
9195 (unk_lang_demangle): Delete.
9196 (unknown_language_data): Delete la_demangle initializer.
9197 (unknown_language::demangle): New member function.
9198 (auto_language_data): Delete la_demangle initializer.
9199 (auto_language::demangle): New member function.
9200 * language.h (language_data): Delete la_demangle field.
9201 (language_defn::demangle): New function.
9202 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9203 * objc-lang.c (objc_language_data): Delete la_demangle
9204 initializer.
9205 (objc_language::demangle): New member function.
9206 * opencl-lang.c (opencl_language_data): Delete la_demangle
9207 initializer.
9208 * p-lang.c (pascal_language_data): Likewise.
9209 * rust-lang.c (rust_language_data): Likewise.
9210 (rust_language::demangle): New member function.
9211
fbfb0a46
AB
92122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * ada-lang.c (ada_language_data): Delete la_print_type
9215 initializer.
9216 (ada_language::print_type): New member function.
9217 * c-lang.c (c_language_data): Delete la_print_type initializer.
9218 (c_language::print_type): New member function.
9219 (cplus_language_data): Delete la_print_type initializer.
9220 (cplus_language::print_type): New member function.
9221 (asm_language_data): Delete la_print_type initializer.
9222 (asm_language::print_type): New member function.
9223 (minimal_language_data): Delete la_print_type initializer.
9224 (minimal_language::print_type): New member function.
9225 * d-lang.c (d_language_data): Delete la_print_type initializer.
9226 (d_language::print_type): New member function.
9227 * f-lang.c (f_language_data): Delete la_print_type initializer.
9228 (f_language::print_type): New member function.
9229 * go-lang.c (go_language_data): Delete la_print_type initializer.
9230 (go_language::print_type): New member function.
9231 * language.c (unk_lang_print_type): Delete.
9232 (unknown_language_data): Delete la_print_type initializer.
9233 (unknown_language::print_type): New member function.
9234 (auto_language_data): Delete la_print_type initializer.
9235 (auto_language::print_type): New member function.
9236 * language.h (language_data): Delete la_print_type field.
9237 (language_defn::print_type): New function.
9238 (LA_PRINT_TYPE): Update.
9239 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9240 (m2_language::print_type): New member function.
9241 * objc-lang.c (objc_language_data): Delete la_print_type
9242 initializer.
9243 (objc_language::print_type): New member function.
9244 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9245 to opencl_language::print_type.
9246 (opencl_language_data): Delete la_print_type initializer.
9247 (opencl_language::print_type): New member function, implementation
9248 from opencl_print_type.
9249 * p-lang.c (pascal_language_data): Delete la_print_type
9250 initializer.
9251 (pascal_language::print_type): New member function.
9252 * rust-lang.c (rust_print_type): Delete, implementation moved to
9253 rust_language::print_type.
9254 (rust_language_data): Delete la_print_type initializer.
9255 (rust_language::print_type): New member function, implementation
9256 from rust_print_type.
9257
6f827019
AB
92582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9261 implementation moves to...
9262 (ada_language::sniff_from_mangled_name): ...here. Update return
9263 type.
9264 (ada_language_data): Delete la_sniff_from_mangled_name
9265 initializer.
9266 * c-lang.c (c_language_data): Likewise.
9267 (cplus_language_data): Likewise.
9268 (cplus_language::sniff_from_mangled_name): New member function,
9269 implementation taken from gdb_sniff_from_mangled_name.
9270 (asm_language_data): Delete la_sniff_from_mangled_name
9271 initializer.
9272 (minimal_language_data): Likewise.
9273 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9274 implementation moves to cplus_language::sniff_from_mangled_name.
9275 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9276 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9277 moves to...
9278 (d_language::sniff_from_mangled_name): ...here.
9279 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9280 * f-lang.c (f_language_data): Likewise.
9281 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9282 moves to...
9283 (go_language::sniff_from_mangled_name): ...here.
9284 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9285 * language.c (language_sniff_from_mangled_name): Delete.
9286 (unknown_language_data): Delete la_sniff_from_mangled_name
9287 initializer.
9288 (auto_language_data): Likewise.
9289 * language.h (language_data): Delete la_sniff_from_mangled_name
9290 field.
9291 (language_defn::sniff_from_mangled_name): New function.
9292 (language_sniff_from_mangled_name): Delete declaration.
9293 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9294 field.
9295 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9296 implementation moves to...
9297 (objc_language::sniff_from_mangled_name): ...here.
9298 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9299 * opencl-lang.c (opencl_language_data): Likewise.
9300 * p-lang.c (pascal_language_data): Likewise.
9301 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9302 implementation moves to...
9303 (rust_language::sniff_from_mangled_name): ...here.
9304 (rust_language_data): Delete la_sniff_from_mangled_name
9305 initializer.
9306 * symtab.c (symbol_find_demangled_name): Call
9307 sniff_from_mangled_name member function.
9308
fb8006fd
AB
93092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9310
9311 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9312 initializer.
9313 * c-lang.c (c_language_data): Likewise.
9314 (cplus_language_data): Likewise.
9315 (cplus_language::search_name_hash): New member function.
9316 (asm_language_data): Delete la_search_name_hash initializer.
9317 (minimal_language_data): Likewise.
9318 * d-lang.c (d_language_data): Likewise.
9319 * dictionary.c (default_search_name_hash): Rename to...
9320 (language_defn::search_name_hash): ...this.
9321 * f-lang.c (f_language_data): Likewise.
9322 (f_language::search_name_hash): New member function.
9323 * go-lang.c (go_language_data): Delete la_search_name_hash
9324 initializer.
9325 * language.c (unknown_language_data): Likewise.
9326 (auto_language_data): Likewise.
9327 * language.h (struct language_data): Delete la_search_name_hash
9328 field.
9329 (language_defn::search_name_hash): Declare new member function.
9330 (default_search_name_hash): Delete declaration.
9331 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9332 initializer.
9333 * objc-lang.c (objc_language_data): Likewise.
9334 * opencl-lang.c (opencl_language_data): Likewise.
9335 * p-lang.c (pascal_language_data): Likewise.
9336 * rust-lang.c (rust_language_data): Likewise.
9337 * symtab.c (search_name_hash): Update call.
9338
8e25bafe
AB
93392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9340
9341 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9342 initializer.
9343 * c-lang.c (class compile_instance): Declare.
9344 (c_language_data): Delete la_get_compile_instance initializer.
9345 (c_language::get_compile_instance): New member function.
9346 (cplus_language_data): Delete la_get_compile_instance initializer.
9347 (cplus_language::get_compile_instance): New member function.
9348 (asm_language_data): Delete la_get_compile_instance initializer.
9349 (minimal_language_data): Likewise.
9350 * c-lang.h (c_get_compile_context): Update comment.
9351 (cplus_get_compile_context): Update comment.
9352 * compile/compile.c (compile_to_object): Update calls, don't rely
9353 on function pointer being NULL.
9354 * d-lang.c (d_language_data): Delete la_get_compile_instance
9355 initializer.
9356 * f-lang.c (f_language_data): Likewise.
9357 * go-lang.c (go_language_data): Likewise.
9358 * language.c (unknown_language_data): Likewise.
9359 (auto_language_data): Likewise.
9360 * language.h (language_data): Delete la_get_compile_instance field.
9361 (language_defn::get_compile_instance): New member function.
9362 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9363 initializer.
9364 * objc-lang.c (objc_language_data): Likewise.
9365 * opencl-lang.c (opencl_language_data): Likewise.
9366 * p-lang.c (pascal_language_data): Likewise.
9367 * rust-lang.c (rust_language_data): Likewise.
9368
4009ee92
AB
93692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * ada-lang.c (ada_add_all_symbols): Update comment.
9372 (ada_iterate_over_symbols): Delete, move implementation to...
9373 (ada_language::iterate_over_symbols): ...here, a new member
9374 function, rewrite to use range based for loop.
9375 (ada_language_data): Delete la_iterate_over_symbols initializer.
9376 * c-lang.c (c_language_data): Likewise.
9377 (cplus_language_data): Likewise.
9378 (asm_language_data): Likewise.
9379 (minimal_language_data): Likewise.
9380 * d-lang.c (d_language_data): Likewise.
9381 * f-lang.c (f_language_data): Likewise.
9382 * go-lang.c (go_language_data): Likewise.
9383 * language.c (unknown_language_data): Likewise.
9384 (auto_language_data): Likewise.
9385 * language.h (language_data): Delete la_iterate_over_symbols field.
9386 (language_defn::iterate_over_symbols): New member function.
9387 (LA_ITERATE_OVER_SYMBOLS): Update.
9388 * linespec.c (iterate_over_all_matching_symtabs): Update.
9389 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9390 initializer.
9391 * objc-lang.c (objc_language_data): Likewise.
9392 * opencl-lang.c (opencl_language_data): Likewise.
9393 * p-lang.c (pascal_language_data): Likewise.
9394 * rust-lang.c (rust_language_data): Likewise.
9395
54f4ca46
AB
93962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * ada-lang.c (ada_language_data): Delete
9399 la_lookup_transparent_type initializer.
9400 * c-lang.c (c_language_data): Likewise.
9401 (cplus_language_data): Likewise.
9402 (cplus_language::lookup_transparent_type): New member function.
9403 (asm_language_data): Delete la_lookup_transparent_type
9404 initializer.
9405 (minimal_language_data): Likewise.
9406 * d-lang.c (d_language_data): Likewise.
9407 * f-lang.c (f_language_data): Likewise.
9408 * go-lang.c (go_language_data): Likewise.
9409 * language.c (unknown_language_data): Likewise.
9410 (auto_language_data): Likewise.
9411 * language.h (struct language_data): Delete
9412 la_lookup_transparent_type field.
9413 (language_defn::lookup_transparent_type): New member function.
9414 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9415 initializer.
9416 * objc-lang.c (objc_language_data): Likewise.
9417 * opencl-lang.c (opencl_language_data): Likewise.
9418 * p-lang.c (pascal_language_data): Likewise.
9419 * rust-lang.c (rust_language_data): Likewise.
9420 * symtab.c (symbol_matches_domain): Update call.
9421
1fb314aa
AB
94222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9423
9424 * ada-lang.c (ada_language_arch_info): Delete function, move
9425 implementation to...
9426 (ada_language::language_arch_info): ...here, a new member
9427 function.
9428 (ada_language_data): Delete la_language_arch_info.
9429 * c-lang.c (c_language_data): Likewise.
9430 (c_language::language_arch_info): New member function.
9431 (cplus_language_arch_info): Delete function, move
9432 implementation to...
9433 (cplus_language::language_arch_info): ...here, a new member
9434 function.
9435 (cplus_language_data): Delete la_language_arch_info.
9436 (asm_language_data): Likewise.
9437 (asm_language::language_arch_info): New member function.
9438 (minimal_language_data): Delete la_language_arch_info.
9439 (minimal_language::language_arch_info): New member function.
9440 * d-lang.c (d_language_arch_info): Delete function, move
9441 implementation to...
9442 (d_language::language_arch_info): ...here, a new member
9443 function.
9444 (d_language_data): Delete la_language_arch_info.
9445 * f-lang.c (f_language_arch_info): Delete function, move
9446 implementation to...
9447 (f_language::language_arch_info): ...here, a new member
9448 function.
9449 (f_language_data): Delete la_language_arch_info.
9450 * go-lang.c (go_language_arch_info): Delete function, move
9451 implementation to...
9452 (go_language::language_arch_info): ...here, a new member
9453 function.
9454 (go_language_data): Delete la_language_arch_info.
9455 * language.c (unknown_language_data): Likewise.
9456 (unknown_language::language_arch_info): New member function.
9457 (auto_language_data): Delete la_language_arch_info.
9458 (auto_language::language_arch_info): New member function.
9459 (language_gdbarch_post_init): Update call to
9460 la_language_arch_info.
9461 * language.h (language_data): Delete la_language_arch_info
9462 function pointer.
9463 (language_defn::language_arch_info): New function.
9464 * m2-lang.c (m2_language_arch_info): Delete function, move
9465 implementation to...
9466 (m2_language::language_arch_info): ...here, a new member
9467 function.
9468 (m2_language_data): Delete la_language_arch_info.
9469 * objc-lang.c (objc_language_arch_info): Delete function, move
9470 implementation to...
9471 (objc_language::language_arch_info): ...here, a new member
9472 function.
9473 (objc_language_data): Delete la_language_arch_info.
9474 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9475 implementation to...
9476 (opencl_language::language_arch_info): ...here, a new member
9477 function.
9478 (opencl_language_data): Delete la_language_arch_info.
9479 * p-lang.c (pascal_language_arch_info): Delete function, move
9480 implementation to...
9481 (pascal_language::language_arch_info): ...here, a new member
9482 function.
9483 (pascal_language_data): Delete la_language_arch_info.
9484 * rust-lang.c (rust_language_arch_info): Delete function, move
9485 implementation to...
9486 (rust_language::language_arch_info): ...here, a new member
9487 function.
9488 (rust_language_data): Delete la_language_arch_info.
9489
48448202
AB
94902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9491
9492 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9493 initializer.
9494 * c-lang.c (c_language_data): Likewise.
9495 (cplus_language_data): Likewise.
9496 (cplus_language::pass_by_reference_info): New method.
9497 (asm_language_data): Delete la_pass_by_reference initializer.
9498 (minimal_language_data): Likewise.
9499 * cp-abi.c (cp_pass_by_reference): Remove use of
9500 default_pass_by_reference.
9501 * d-lang.c (d_language_data): Likewise.
9502 * f-lang.c (f_language_data): Likewise.
9503 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9504 default_pass_by_reference.
9505 * go-lang.c (go_language_data): Likewise.
9506 * language.c (language_pass_by_reference): Update.
9507 (default_pass_by_reference): Delete.
9508 (unknown_language_data): Delete la_pass_by_reference
9509 initializer.
9510 (auto_language_data): Likewise.
9511 * language.h (struct language_data): Delete la_pass_by_reference
9512 field.
9513 (language_defn::pass_by_reference_info): New member function.
9514 (default_pass_by_reference): Delete declaration.
9515 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9516 initializer.
9517 * objc-lang.c (objc_language_data): Likewise.
9518 * opencl-lang.c (opencl_language_data): Likewise.
9519 * p-lang.c (pascal_language_data): Likewise.
9520 * rust-lang.c (rust_language_data): Likewise.
9521
15e5fd35
AB
95222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9523
9524 * ada-lang.c (ada_read_var_value): Delete function, move
9525 implementation to...
9526 (ada_language::read_var_value): ...here.
9527 (ada_language_data): Delete la_read_var_value initializer.
9528 * c-lang.c (c_language_data): Likewise.
9529 (cplus_language_data): Likewise.
9530 (minimal_language_data): Likewise.
9531 * d-lang.c (d_language_data): Likewise.
9532 * f-lang.c (f_language_data): Likewise.
9533 * findvar.c (default_read_var_value): Rename to...
9534 (language_defn::read_var_value): ...this.
9535 * findvar.c (read_var_value): Update header comment, and change to
9536 call member function instead of function pointer.
9537 * go-lang.c (go_language_data): Likewise.
9538 * language.c (unknown_language_data): Delete la_read_var_value
9539 initializer.
9540 (auto_language_data): Likewise.
9541 * language.h (struct language_data): Delete la_read_var_value
9542 field.
9543 (language_defn::read_var_value): New member function.
9544 (default_read_var_value): Delete declaration.
9545 * m2-lang.c (m2_language_data): Delete la_read_var_value
9546 initializer.
9547 * objc-lang.c (objc_language_data): Likewise.
9548 * opencl-lang.c (opencl_language_data): Likewise.
9549 * p-lang.c (pascal_language_data): Likewise.
9550 * rust-lang.c (rust_language_data): Likewise.
9551 * value.h (default_read_var_value): Delete declaration.
9552
5bd40f2a
AB
95532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 * ada-lang.c (ada_print_array_index): Delete function, move
9556 implementation to...
9557 (ada_language::print_array_index): ...here.
9558 (ada_language_data): Delete la_print_array_index initializer.
9559 * c-lang.c (c_language_data): Likewise.
9560 (cplus_language_data): Likewise.
9561 (minimal_language_data): Likewise.
9562 * d-lang.c (d_language_data): Likewise.
9563 * f-lang.c (f_language_data): Likewise.
9564 * go-lang.c (go_language_data): Likewise.
9565 * language.c (default_print_array_index): Delete function, move
9566 implementation to...
9567 (language_defn::print_array_index): ...here.
9568 (unknown_language_data): Delete la_print_array_index initializer.
9569 (auto_language_data): Likewise.
9570 * language.h (struct language_data): Delete la_print_array_index
9571 field.
9572 (language_defn::print_array_index): New member function.
9573 (LA_PRINT_ARRAY_INDEX): Update.
9574 (default_print_array_index): Delete declaration.
9575 * m2-lang.c (m2_language_data): Delete la_print_array_index
9576 initializer.
9577 * objc-lang.c (objc_language_data): Likewise.
9578 * opencl-lang.c (opencl_language_data): Likewise.
9579 * p-lang.c (pascal_language_data): Likewise.
9580 * rust-lang.c (rust_language_data): Likewise.
9581
0874fd07
AB
95822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9583
9584 * gdb/ada-lang.c (ada_language_defn): Convert to...
9585 (ada_language_data): ...this.
9586 (class ada_language): New class.
9587 (ada_language_defn): New static global.
9588 * gdb/c-lang.c (c_language_defn): Convert to...
9589 (c_language_data): ...this.
9590 (class c_language): New class.
9591 (c_language_defn): New static global.
9592 (cplus_language_defn): Convert to...
9593 (cplus_language_data): ...this.
9594 (class cplus_language): New class.
9595 (cplus_language_defn): New static global.
9596 (asm_language_defn): Convert to...
9597 (asm_language_data): ...this.
9598 (class asm_language): New class.
9599 (asm_language_defn): New static global.
9600 (minimal_language_defn): Convert to...
9601 (minimal_language_data): ...this.
9602 (class minimal_language): New class.
9603 (minimal_language_defn): New static global.
9604 * gdb/d-lang.c (d_language_defn): Convert to...
9605 (d_language_data): ...this.
9606 (class d_language): New class.
9607 (d_language_defn): New static global.
9608 * gdb/f-lang.c (f_language_defn): Convert to...
9609 (f_language_data): ...this.
9610 (class f_language): New class.
9611 (f_language_defn): New static global.
9612 * gdb/go-lang.c (go_language_defn): Convert to...
9613 (go_language_data): ...this.
9614 (class go_language): New class.
9615 (go_language_defn): New static global.
9616 * gdb/language.c (unknown_language_defn): Remove declaration.
9617 (current_language): Initialize to nullptr, real initialization is
9618 moved to _initialize_language.
9619 (languages): Delete global.
9620 (language_defn::languages): Define.
9621 (set_language_command): Use language_defn::languages.
9622 (set_language): Likewise.
9623 (range_error): Likewise.
9624 (language_enum): Likewise.
9625 (language_def): Likewise.
9626 (add_set_language_command): Use language_def::languages for the
9627 language list, and language_def to lookup language pointers.
9628 (skip_language_trampoline): Use language_defn::languages.
9629 (unknown_language_defn): Convert to...
9630 (unknown_language_data): ...this.
9631 (class unknown_language): New class.
9632 (unknown_language_defn): New static global.
9633 (auto_language_defn): Convert to...
9634 (auto_language_data): ...this.
9635 (class auto_language): New class.
9636 (auto_language_defn): New static global.
9637 (language_gdbarch_post_init): Use language_defn::languages.
9638 (_initialize_language): Initialize current_language.
9639 * gdb/language.h (struct language_defn): Rename to...
9640 (struct language_data): ...this.
9641 (struct language_defn): New.
9642 (auto_language_defn): Delete.
9643 (unknown_language_defn): Delete.
9644 (minimal_language_defn): Delete.
9645 (ada_language_defn): Delete.
9646 (asm_language_defn): Delete.
9647 (c_language_defn): Delete.
9648 (cplus_language_defn): Delete.
9649 (d_language_defn): Delete.
9650 (f_language_defn): Delete.
9651 (go_language_defn): Delete.
9652 (m2_language_defn): Delete.
9653 (objc_language_defn): Delete.
9654 (opencl_language_defn): Delete.
9655 (pascal_language_defn): Delete.
9656 (rust_language_defn): Delete.
9657 * gdb/m2-lang.c (m2_language_defn): Convert to...
9658 (m2_language_data): ...this.
9659 (class m2_language): New class.
9660 (m2_language_defn): New static global.
9661 * gdb/objc-lang.c (objc_language_defn): Convert to...
9662 (objc_language_data): ...this.
9663 (class objc_language): New class.
9664 (objc_language_defn): New static global.
9665 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9666 (opencl_language_data): ...this.
9667 (class opencl_language): New class.
9668 (opencl_language_defn): New static global.
9669 * gdb/p-lang.c (pascal_language_defn): Convert to...
9670 (pascal_language_data): ...this.
9671 (class pascal_language): New class.
9672 (pascal_language_defn): New static global.
9673 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9674 language pointer, update comment format.
9675 * gdb/rust-lang.c (rust_language_defn): Convert to...
9676 (rust_language_data): ...this.
9677 (class rust_language): New class.
9678 (rust_language_defn): New static global.
9679
1313c56e
AB
96802020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9681
9682 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9683 member variable.
9684 <m_stmt_at_address>: New member variable.
9685 (lnp_state_machine::record_line): Don't record some lines, update
9686 tracking of is_stmt at the same address.
9687 (lnp_state_machine::lnp_state_machine): Initialise new member
9688 variables.
9689
b7ed9f3d
ST
96902020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9691
9692 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9693 "-include gnu-nat-mig.h".
9694 * gnu-nat-mig.h: New file.
9695 * gnu-nat.c: Include "gnu-nat-mig.h".
9696 (exc_server, msg_reply_server, notify_server,
9697 process_reply_server): Remove declarations.
9698
14a8ad62
ST
96992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9700
9701 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9702 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9703 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9704 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9705 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9706 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9707 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9708 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9709 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9710 to gnu_nat_target class.
9711 * gnu-nat.c: Likewise.
9712 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9713 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9714 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9715 object.
9716 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9717 instead of `gnu_target'.
9718
0af5e106
ST
97192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9720
9721 * i386-gnu-tdep.c: Include "gdbcore.h"
9722 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9723 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9724 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9725 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9726 i386_gnu_sigcontext_addr): New functions
9727 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9728 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9729 tdep.
9730
078f2fc9
ST
97312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9732
9733 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9734 before fork_inferior call. Avoid calling it if target_is_pushed returns
9735 true.
9736
53dff92c
ST
97372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9738
9739 * gnu-nat.h (gnu_target): New variable declaration.
9740 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9741 gnu_target.
9742 * gnu-nat.c (gnu_target): New variable.
9743 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9744 add_thread_silent, and add_thread calls.
9745 (gnu_nat_target::create_inferior): Pass gnu_target to
9746 add_thread_silent, thread_change_ptid call.
9747 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9748 call.
9749
5a8b8627
ST
97502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9751
9752 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9753 (gnu_nat_target::find_memory_regions): Remove unused
9754 `old_address' variable.
9755
366f550a
ST
97562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9757
9758 * gnu-nat.c: Include "gdbarch.h".
9759
f14871bf
ST
97602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9761
9762 * reply_mig_hack.awk (Error return): Cast function through
9763 void *, to bypass compiler function call check.
9764
c6887cfb
ST
97652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9766
9767 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9768 $(srcdir)/reply_mig_hack.awk.
9769
6930bffe
ST
97702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9771
9772 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9773
112c22ed
JG
97742020-05-30 Jonny Grant <jg@jguk.org>
9775
9776 * configure.ac (ACX_BUGURL): change bug URL to https.
9777
f68f85b5
PA
97782020-05-30 Pedro Alves <palves@redhat.com>
9779
9780 * cp-support.c (replace_typedefs_template): New.
9781 (replace_typedefs_qualified_name): Handle
9782 DEMANGLE_COMPONENT_TEMPLATE.
9783
976ca316
SM
97842020-05-29 Simon Marchi <simon.marchi@efficios.com>
9785
9786 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9787 dwarf2/index-cache.h, dwarf2/index-write.c,
9788 dwarf2/index-write.h, dwarf2/line-header.c,
9789 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9790 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9791 variables and fields from `dwarf2_per_objfile` to just
9792 `per_objfile` throughout.
9793
989ade05
SM
97942020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9795
9796 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9797 <push_dwarf_reg_entry_value>: Add comment.
9798
c47bae85
KB
97992020-05-28 Kevin Buettner <kevinb@redhat.com>
9800 Keith Seitz <keiths@redhat.com>
9801
9802 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9803 instead of PyEval_ReleaseLock.
9804 (class gdbpy_gil): Move to earlier in file.
9805 (finalize_python): Set gdb_python_initialized.
9806 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9807 when not initialized.
9808
44486dcf
SM
98092020-05-28 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9812 <push_dwarf_reg_entry_value>: Remove assert. Override
9813 per_objfile with caller_per_objfile.
9814
f030440d
TV
98152020-05-28 Tom de Vries <tdevries@suse.de>
9816
9817 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9818 PR gold/15646 workaround to symbol kind "type".
9819
f0fbb768
TT
98202020-05-27 Tom Tromey <tromey@adacore.com>
9821
9822 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9823
af0b2a3e
TT
98242020-05-27 Tom Tromey <tromey@adacore.com>
9825
9826 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9827 Use htab_find_with_hash.
9828 <add_abbrev>: Remove "abbrev_number" parameter.
9829 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9830 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9831 (hash_abbrev): Add comment.
9832 (abbrev_table::lookup_abbrev): Move to header file.
9833 (abbrev_table::read): Update.
9834
7d00ffec
TT
98352020-05-27 Tom Tromey <tromey@adacore.com>
9836
9837 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9838 method.
9839 <canonical_name>: New member.
9840 <raw_name>: Rename from "name".
9841 (partial_die_info): Initialize canonical_name.
9842 (scan_partial_symbols): Check raw_name.
9843 (partial_die_parent_scope, partial_die_full_name)
9844 (add_partial_symbol, add_partial_subprogram)
9845 (add_partial_enumeration, load_partial_dies): Use "name" method.
9846 (partial_die_info::name): New method.
9847 (partial_die_info::read, guess_partial_die_structure_name)
9848 (partial_die_info::fixup): Update.
9849
697bba18
TT
98502020-05-27 Tom Tromey <tromey@adacore.com>
9851
9852 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9853 <get_ref_die_offset>: Inline.
9854 <get_ref_die_offset_complaint>: New method.
9855 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9856 (attribute::get_ref_die_offset_complaint): Rename from
9857 get_ref_die_offset. Just issue complaint.
9858
c17ace43
HD
98592020-05-27 Hannes Domani <ssbssa@yahoo.de>
9860
9861 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9862
96445f0b
HD
98632020-05-27 Hannes Domani <ssbssa@yahoo.de>
9864
9865 * exec.c (exec_file_attach): Use errno value of first openp failure.
9866
ac637ec3
HD
98672020-05-27 Hannes Domani <ssbssa@yahoo.de>
9868
9869 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9870 Don't close thread handle.
9871
17ee85fc
TT
98722020-05-27 Tom Tromey <tom@tromey.com>
9873 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9876 shared_ptr.
9877 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9878 member.
9879 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9880 dwarf2_per_bfd_objfile_data_key>: New globals.
9881 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9882 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9883 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9884 shared.
9885 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9886 short-circuit when sharing.
9887 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9888 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9889
39b16f87
SM
98902020-05-27 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9893 to...
9894 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9895 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9896
fcf23d5b
SM
98972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9900 build_name_components, find_name_components_bounds>:
9901 Add per_objfile parameter.
9902 (struct mapped_index) <symbol_name_at>: Likewise.
9903 (struct mapped_debug_names): Remove constructor.
9904 <dwarf2_per_objfile>: Remove field.
9905 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9906 (mapped_index_base::find_name_components_bounds,
9907 mapped_index_base::build_name_components,
9908 dw2_expand_symtabs_matching_symbol): Likewise.
9909 (class mock_mapped_index) <symbol_name_at>: Likewise.
9910 (check_match): Likewise.
9911 (check_find_bounds_finds): Likewise.
9912 (test_mapped_index_find_name_component_bounds): Update.
9913 (CHECK_MATCH): Update.
9914 (dw2_expand_symtabs_matching): Update.
9915 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9916 per_objfile parameter.
9917 <find_vec_in_debug_names>: Likewise.
9918 <m_per_objfile>: New field.
9919 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9920 parameter.
9921 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9922 (dw2_debug_names_iterator::next): Update.
9923 (dw2_debug_names_lookup_symbol): Update.
9924 (dw2_debug_names_expand_symtabs_for_function): Update.
9925 (dw2_debug_names_map_matching_symbols): Update.
9926 (dw2_debug_names_expand_symtabs_matching): Update.
9927 (dwarf2_read_debug_names): Update.
9928
7188ed02
SM
99292020-05-27 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9932 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9933 move to dwarf2_per_objfile.
9934 <read_in_chain>: Remove.
9935 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9936 remove_all_cus, age_comp_units>: New methods.
9937 <m_dwarf2_cus>: New member.
9938 (struct dwarf2_per_cu_data) <cu>: Remove.
9939 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9940 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9941 moved to methods of dwarf2_per_objfile.
9942 (dwarf2_clear_marks): Remove.
9943 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9944 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9945 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9946 (dwarf2_per_objfile::remove_all_cus): New.
9947 (class free_cached_comp_units) <~free_cached_comp_units>:
9948 Update.
9949 (load_cu): Update.
9950 (dw2_do_instantiate_symtab): Adjust.
9951 (fill_in_sig_entry_from_dwo_entry): Adjust.
9952 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9953 (cutu_reader::cutu_reader): Likewise.
9954 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9955 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9956 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9957 and dwarf2_per_objfile::age_comp_units.
9958 (load_partial_comp_unit): Update.
9959 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9960 (process_queue): Likewise.
9961 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9962 backlink.
9963 (dwarf2_read_addr_index): Likewise.
9964 (follow_die_offset): Likewise.
9965 (dwarf2_fetch_die_loc_sect_off): Likewise.
9966 (dwarf2_fetch_constant_bytes): Likewise.
9967 (dwarf2_fetch_die_type_sect_off): Likewise.
9968 (follow_die_sig_1): Likewise.
9969 (load_full_type_unit): Likewise.
9970 (read_signatured_type): Likewise.
9971 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9972 (dwarf2_cu::~dwarf2_cu): Remove.
9973 (dwarf2_per_objfile::get_cu): New.
9974 (dwarf2_per_objfile::set_cu): New.
9975 (age_cached_comp_units): Rename to...
9976 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9977 to std::unordered_map.
9978 (free_one_cached_comp_unit): Rename to...
9979 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9980 to std::unordered_map.
9981 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9982 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9983 a dwarf2_per_objfile in data.
9984 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9985 (dwarf2_clear_marks): Remove.
9986
2e671100
SM
99872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9988
9989 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9990 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9991 (init_tu_and_read_dwo_dies): Likewise.
9992 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9993 (cutu_reader::cutu_reader): Likewise.
9994 (load_partial_comp_unit): Likewise.
9995 (process_psymtab_comp_unit): Update.
9996 (build_type_psymtabs_1): Update.
9997 (process_skeletonless_type_unit): Update.
9998 (load_full_comp_unit): Update.
9999 (find_partial_die): Update.
10000 (dwarf2_read_addr_index): Update.
10001 (read_signatured_type): Update.
10002
2e6a9f79
SM
100032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10006 m_header_read_in>: New fields.
10007 <get_header>: New method.
10008 * dwarf2/read.c (per_cu_header_read_in): Remove.
10009 (dwarf2_per_cu_data::get_header): New.
10010 (dwarf2_per_cu_data::addr_size): Update.
10011 (dwarf2_per_cu_data::offset_size): Update.
10012 (dwarf2_per_cu_data::ref_addr_size): Update.
10013
1b555f17
SM
100142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10017 (dw2_do_instantiate_symtab): Update.
10018 (queue_and_load_all_dwo_tus): Change parameter from
10019 dwarf2_per_cu_data to dwarf2_cu.
10020 (dwarf2_fetch_die_loc_sect_off): Update.
10021 (dwarf2_fetch_constant_bytes): Update.
10022 (dwarf2_fetch_die_type_sect_off): Update.
10023
8fc0b21d
SM
100242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10025
10026 * dwarf2/read.c (process_full_comp_unit,
10027 process_full_type_unit): Remove per_cu, per_objfile paramters.
10028 Add dwarf2_cu parameter.
10029 (process_queue): Update.
10030
168c9250
SM
100312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10032
10033 * dwarf2/read.c (create_cu_from_index_list): Replace
10034 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10035 (create_cus_from_index_list): Likewise.
10036 (create_cus_from_index): Likewise.
10037 (create_signatured_type_table_from_index): Likewise.
10038 (create_cus_from_debug_names_list): Likewise.
10039 (create_cus_from_debug_names): Likewise.
10040 (dwarf2_read_gdb_index): Update.
10041 (dwarf2_read_debug_names): Update.
10042
e286671b
TT
100432020-05-27 Tom Tromey <tom@tromey.com>
10044 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * dwarf2/read.h (struct dwarf2_per_objfile)
10047 <get_type_for_signatured_type, set_type_for_signatured_type>:
10048 New methods.
10049 <m_type_map>: New member.
10050 (struct signatured_type) <type>: Remove.
10051 * dwarf2/read.c
10052 (dwarf2_per_objfile::get_type_for_signatured_type,
10053 dwarf2_per_objfile::set_type_for_signatured_type): New.
10054 (get_signatured_type): Use new methods.
10055
8adb8487
TT
100562020-05-27 Tom Tromey <tom@tromey.com>
10057 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10060 (struct dwarf2_per_objfile) <type_units>: New member.
10061 <get_type_unit_group_unshareable>: New method.
10062 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10063 num_symtabs, symtabs>: Remove; move to
10064 type_unit_group_unshareable.
10065 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10066 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10067 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10068
127bbf4b
SM
100692020-05-27 Simon Marchi <simon.marchi@efficios.com>
10070
10071 * dwarf2/read.h (struct dwarf2_per_cu_data):
10072 <dwarf2_per_objfile>: Remove.
10073 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10074 dwarf2_per_objfile.
10075 (create_signatured_type_table_from_index): Likewise.
10076 (create_signatured_type_table_from_debug_names): Likewise.
10077 (create_debug_type_hash_table): Likewise.
10078 (fill_in_sig_entry_from_dwo_entry): Likewise.
10079 (create_type_unit_group): Likewise.
10080 (read_comp_units_from_section): Likewise.
10081 (create_cus_hash_table): Likewise.
10082
f6e649dd
SM
100832020-05-27 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10086 dwarf2_per_cu_data::dwarf2_per_objfile.
10087 (compute_compunit_symtab_includes): Likewise.
10088 (dwarf2_cu::start_symtab): Likewise.
10089
aa66c379
SM
100902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10091
10092 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10093 parameter.
10094 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10095 (read_namespace_alias): Update.
10096 (lookup_die_type): Update.
10097 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10098 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10099 Update.
10100 (disassemble_dwarf_expression): Update.
10101
120ce1b5
SM
101022020-05-27 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * dwarf2/read.h (struct dwarf2_queue_item): Add
10105 dwarf2_per_objfile parameter, assign new parameter.
10106 <per_objfile>: New field.
10107 * dwarf2/read.c (free_one_cached_comp_unit): Add
10108 dwarf2_per_objfile parameter.
10109 (queue_comp_unit): Likewise.
10110 (dw2_do_instantiate_symtab): Update.
10111 (process_psymtab_comp_unit): Update.
10112 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10113 (process_imported_unit_die): Update.
10114 (queue_and_load_dwo_tu): Update.
10115 (follow_die_offset): Update.
10116 (follow_die_sig_1): Update.
10117
9f47c707
SM
101182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10119
10120 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10121 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10122 (read_call_site_scope): Assign per_objfile.
10123 (dwarf2_per_cu_data::objfile): Remove.
10124 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10125 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10126 dwarf2_per_objfile parameter.
10127 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10128 dwarf2_per_objfile parameter.
10129 (dwarf_expr_reg_to_entry_parameter): Add output
10130 dwarf2_per_objfile parameter.
10131 (locexpr_get_frame_base): Update.
10132 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10133 <push_dwarf_reg_entry_value>: Update.
10134 <call_site_to_target_addr>: Update.
10135 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10136 parameter.
10137 (value_of_dwarf_reg_entry): Update.
10138 (rw_pieced_value): Update.
10139 (indirect_synthetic_pointer): Update.
10140 (dwarf2_evaluate_property): Update.
10141 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10142 parameter.
10143 (locexpr_read_variable): Update.
10144 (locexpr_get_symbol_read_needs): Update.
10145 (loclist_read_variable): Update.
10146
14095eb3
SM
101472020-05-27 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10150 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10151 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10152 parameter.
10153 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10154 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10155 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10156 parameter.
10157 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10158 sect_variable_value): Add dwarf2_per_objfile parameter.
10159 (class dwarf_evaluate_loc_desc) <dwarf_call,
10160 dwarf_variable_value>: Update.
10161 (fetch_const_value_from_synthetic_pointer): Add
10162 dwarf2_per_objfile parameter.
10163 (fetch_const_value_from_synthetic_pointer): Update.
10164 (coerced_pieced_ref): Update.
10165 (class symbol_needs_eval_context) <dwarf_call,
10166 dwarf_variable_value>: Update.
10167 (dwarf2_compile_expr_to_ax): Update.
10168
3c3cd3d4
SM
101692020-05-27 Simon Marchi <simon.marchi@efficios.com>
10170
10171 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10172 parameter.
10173 (dwarf2_evaluate_loc_desc_full): Update.
10174
82ca3f51
SM
101752020-05-27 Simon Marchi <simon.marchi@efficios.com>
10176
10177 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10178 parameter.
10179 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10180 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10181 dwarf2_per_objfile parameter.
10182 (decode_debug_loc_dwo_addresses): Likewise.
10183 (dwarf2_find_location_expression): Update.
10184 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10185 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10186 parameter.
10187 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10188 parameter.
10189 (locexpr_describe_location_1): Likewise.
10190 (locexpr_describe_location): Update.
10191
4b167ea1
SM
101922020-05-27 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10195 Remove.
10196 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10197 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10198 (dwarf2_compile_property_to_c): Update.
10199 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10200 use text offset from objfile.
10201 (locexpr_tracepoint_var_ref): Update.
10202 (locexpr_generate_c_location): Update.
10203 (loclist_describe_location): Update.
10204 (loclist_tracepoint_var_ref): Update.
10205 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10206 dwarf2_per_objfile parameter.
10207 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10208 use text offset from objfile.
10209 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10210
89b07335
SM
102112020-05-27 Simon Marchi <simon.marchi@efficios.com>
10212
10213 * dwarf2/expr.h (struct dwarf_expr_context)
10214 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10215 <offset>: Remove.
10216 <per_objfile>: New member.
10217 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10218 dwarf2_per_objfile parameter. Don't set offset, set
10219 per_objfile.
10220 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10221 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10222 a dwarf2_per_objfile object instead of an offset.
10223 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10224 constructor.
10225 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10226 to dwarf2_expr_executor constructor. Don't set offset.
10227 (dwarf2_fetch_cfa_info): Update.
10228 (struct dwarf2_frame_cache) <text_offset>: Remove.
10229 <per_objfile>: New field.
10230 (dwarf2_frame_cache): Update.
10231 (dwarf2_frame_prev_register): Update.
10232 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10233 <dwarf_evaluate_loc_desc>: Add constructor.
10234 (dwarf2_evaluate_loc_desc_full): Update.
10235 (dwarf2_locexpr_baton_eval): Update.
10236 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10237 Add constructor.
10238 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10239
293e7e51
SM
102402020-05-27 Simon Marchi <simon.marchi@efficios.com>
10241
10242 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10243 addr_sized_int_type>: Move to dwarf2_cu.
10244 <int_type>: Move to dwarf2_per_objfile.
10245 (struct dwarf2_per_objfile) <int_type>: Move here.
10246 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10247 addr_sized_int_type>: Move here.
10248 (read_func_scope): Update.
10249 (read_array_type): Update.
10250 (read_tag_string_type): Update.
10251 (attr_to_dynamic_prop): Update.
10252 (dwarf2_per_cu_data::int_type): Rename to...
10253 (dwarf2_per_objfile::int_type): ... this.
10254 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10255 (dwarf2_cu::addr_sized_int_type): ... this.
10256 (read_subrange_type): Update.
10257 (dwarf2_per_cu_data::addr_type): Rename to...
10258 (dwarf2_cu::addr_type): ... this.
10259 (set_die_type): Update.
10260
64874a40
SM
102612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10264 data through per_cu->cu.
10265
4ab09049
SM
102662020-05-27 Simon Marchi <simon.marchi@efficios.com>
10267
10268 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10269 dwarf2_per_cu_data parameter fo dwarf2_cu.
10270 (lookup_dwo_type_unit): Likewise.
10271 (read_cutu_die_from_dwo): Likewise.
10272 (lookup_dwo_unit): Likewise.
10273 (open_and_init_dwo_file): Likewise.
10274 (lookup_dwo_cutu): Likewise.
10275 (lookup_dwo_comp_unit): Likewise.
10276 (lookup_dwo_type_unit): Likewise.
10277 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10278 (cutu_reader::cutu_reader): Update.
10279
47b14e86
SM
102802020-05-27 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10283 parameter.
10284 (process_full_type_unit): Likewise.
10285 (process_queue): Update.
10286
43182c09
SM
102872020-05-27 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * dwarf2/read.c (recursively_compute_inclusions): Add
10290 dwarf2_per_objfile parameter.
10291 (compute_compunit_symtab_includes): Likewise.
10292 (process_cu_includes): Update.
10293
7aa104c4
SM
102942020-05-27 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10297 parameter.
10298 (create_type_unit_group): Update.
10299 (process_psymtab_comp_unit_reader): Update.
10300 (build_type_psymtabs_reader): Update.
10301
e3beb21d
SM
103022020-05-27 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10305 object through m_this_cu->cu.
10306
d460f660
SM
103072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10308
10309 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10310 the info parameter.
10311 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10312
ab432490
SM
103132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10314
10315 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10316 per_objfile parameter.
10317 (load_full_type_unit): Add per_objfile parameter.
10318 (read_signatured_type): Likewise.
10319 (load_full_comp_unit): Likewise.
10320 (load_cu): Likewise.
10321 (dw2_do_instantiate_symtab): Likewise.
10322 (dw2_get_file_names): Likewise.
10323 (dw2_map_symtabs_matching_filename): Update.
10324 (dw_expand_symtabs_matching_file_matcher): Update.
10325 (dw2_map_symbol_filenames): Update.
10326 (process_psymtab_comp_unit): Add per_objfile parameter.
10327 (build_type_psymtabs_1): Update.
10328 (process_skeletonless_type_unit): Update.
10329 (dwarf2_build_psymtabs_hard): Update.
10330 (load_partial_comp_unit): Add per_objfile parameter.
10331 (scan_partial_symbols): Update.
10332 (load_full_comp_unit): Add per_objfile parameter.
10333 (process_imported_unit_die): Update.
10334 (create_cus_hash_table): Update.
10335 (find_partial_die): Update.
10336 (dwarf2_read_addr_index): Update.
10337 (follow_die_offset): Update.
10338 (dwarf2_fetch_die_loc_sect_off): Update.
10339 (dwarf2_fetch_constant_bytes): Update.
10340 (dwarf2_fetch_die_type_sect_off): Update.
10341 (follow_die_sig_1): Update.
10342 (load_full_type_unit): Add per_objfile parameter.
10343 (read_signatured_type): Likewise.
10344
313bad1b
SM
103452020-05-27 Simon Marchi <simon.marchi@efficios.com>
10346
10347 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10348 of objfile_name.
10349
c3699833
SM
103502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10351
10352 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10353 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10354 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10355 field.
10356 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10357 (create_cus_from_index): Update.
10358 (dwarf2_read_gdb_index): Update.
10359 (create_cus_from_debug_names): Update.
10360 (dwarf2_read_debug_names): Update.
10361 (get_abbrev_section_for_cu): Update.
10362 (create_all_comp_units): Update.
10363 (read_attribute_value): Update.
10364 (get_debug_line_section): Update.
10365 * dwarf2/index-cache.c (index_cache::store): Update.
10366 * dwarf2/index-write.c (save_gdb_index_command): Update.
10367 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10368
1859c670
SM
103692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10372 member.
10373 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10374 dwarf2_per_cu_data::per_bfd.
10375 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10376 (create_type_unit_group): Likewise.
10377 (queue_comp_unit): Remove reference to
10378 per_cu->dwarf2_per_objfile.
10379 (maybe_queue_comp_unit): Likewise.
10380 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10381 (create_cus_hash_table): Assign new field.
10382
5e22e966
SM
103832020-05-27 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * dwarf2/read.c: Replace
10386 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10387 dwarf2_cu->per_objfile throughout.
10388
97a1449a
SM
103892020-05-27 Simon Marchi <simon.marchi@efficios.com>
10390
10391 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10392 parameter, don't use per_cu->dwarf2_per_objfile.
10393 (dw2_instantiate_symtab): Likewise.
10394 (dw2_find_last_source_symtab): Update.
10395 (dw2_map_expand_apply): Update.
10396 (dw2_lookup_symbol): Update.
10397 (dw2_expand_symtabs_for_function): Update.
10398 (dw2_expand_all_symtabs): Update.
10399 (dw2_expand_symtabs_with_fullname): Update.
10400 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10401 don't use per_cu->dwarf2_per_objfile.
10402 (dw2_expand_marked_cus): Update.
10403 (dw2_find_pc_sect_compunit_symtab): Update.
10404 (dw2_debug_names_lookup_symbol): Update.
10405 (dw2_debug_names_expand_symtabs_for_function): Update.
10406 (dw2_debug_names_map_matching_symbols): Update.
10407 (dwarf2_psymtab::expand_psymtab): Update.
10408
9e021579
SM
104092020-05-27 Simon Marchi <simon.marchi@efficios.com>
10410
10411 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10412 <per_objfile>: New member.
10413 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10414 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10415 call to dwarf2_cu.
10416 (cutu_reader::cutu_reader): Update.
10417 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10418
ae090bdb
SM
104192020-05-27 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10422 struct dwarf2_per_objfile.
10423 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10424 dwarf2_per_bfd.
10425 * dwarf2/read.c (set_die_type): Update.
10426 (get_die_type_at_offset): Update.
10427
af758d11
SM
104282020-05-27 Tom Tromey <tom@tromey.com>
10429 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10432 method.
10433 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10434 get_symtab, set_symtab>: New methods.
10435 <m_symtabs>: New field.
10436 (struct dwarf2_psymtab): Derive from partial_symtab.
10437 <readin_p, get_compunit_symtab>: Declare methods.
10438 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10439 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10440 New methods.
10441 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10442 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10443 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10444 (dw2_symtab_iter_next, dw2_print_stats)
10445 (dw2_expand_symtabs_with_fullname)
10446 (dw2_expand_symtabs_matching_one)
10447 (dw_expand_symtabs_matching_file_matcher)
10448 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10449 (dw2_debug_names_iterator::next)
10450 (dw2_debug_names_map_matching_symbols)
10451 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10452 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10453 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10454 New methods.
10455 (get_compunit_symtab, process_full_comp_unit)
10456 (process_full_type_unit): Update.
10457 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10458
5989a64e
SM
104592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10462 then introduce a new dwarf2_per_objfile type.
10463 <read_line_string>: Move to the new dwarf2_per_objfile type.
10464 <objfile>: Likewise.
10465 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10466 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10467 dwarf2_per_objfile->per_bfd.
10468 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10469 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10470 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10471 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10472 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10473 (dwarf2_per_objfile::locate_sections): Rename to...
10474 (dwarf2_per_bfd::locate_sections): ... this.
10475 (dwarf2_per_objfile::get_cutu): Rename to...
10476 (dwarf2_per_bfd::get_cutu): ... this.
10477 (dwarf2_per_objfile::get_cu): Rename to...
10478 (dwarf2_per_bfd::get_cu): ... this.
10479 (dwarf2_per_objfile::get_tu): Rename to...
10480 (dwarf2_per_bfd::get_tu): ... this.
10481 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10482 (dwarf2_per_bfd::allocate_per_cu): ... this.
10483 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10484 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10485 (get_gdb_index_contents_ftype): Change parameter from
10486 dwarf2_per_objfile to dwarf2_per_bfd.
10487 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10488 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10489
a50264ba
TT
104902020-05-27 Tom Tromey <tom@tromey.com>
10491 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10494 (allocate_piece_closure): Set "per_objfile" member.
10495 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10496 (locexpr_describe_location, loclist_describe_location): Use new
10497 member.
10498 * dwarf2/read.c (read_call_site_scope)
10499 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10500 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10501 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10502 handle_data_member_location): Set per_objfile member.
10503 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10504 member.
10505 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10506
d3473f0c
TT
105072020-05-27 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10510 allocate_signatured_type>: Declare new methods.
10511 <m_num_psymtabs>: New member.
10512 (struct dwarf2_per_cu_data) <index>: New member.
10513 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10514 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10515 (create_cu_from_index_list): Use allocate_per_cu.
10516 (create_signatured_type_table_from_index)
10517 (create_signatured_type_table_from_debug_names)
10518 (create_debug_type_hash_table, add_type_unit)
10519 (read_comp_units_from_section): Use allocate_signatured_type.
10520
5717c425
TT
105212020-05-27 Tom Tromey <tom@tromey.com>
10522
10523 * psymtab.c (partial_map_expand_apply)
10524 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10525 (psym_lookup_global_symbol_language)
10526 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10527 (psym_print_stats, psym_expand_symtabs_for_function)
10528 (psym_map_symbol_filenames, psym_map_matching_symbols)
10529 (psym_expand_symtabs_matching)
10530 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10531 (maintenance_check_psymtabs): Update.
10532 * psympriv.h (struct partial_symtab) <readin_p,
10533 get_compunit_symtab>: Add objfile parameter.
10534 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10535 Likewise.
10536 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10537 get_compunit_symtab>: Likewise.
10538 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10539
45940949
TT
105402020-05-27 Tom Tromey <tom@tromey.com>
10541
10542 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10543 member.
10544 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10545 (create_cu_from_index_list)
10546 (create_signatured_type_table_from_index)
10547 (create_signatured_type_table_from_debug_names)
10548 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10549 (dwarf2_create_include_psymtab)
10550 (create_debug_type_hash_table, add_type_unit)
10551 (create_type_unit_group, read_comp_units_from_section)
10552 (dwarf2_compute_name, create_cus_hash_table)
10553 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10554 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10555 obstack.
10556 (dw2_get_real_path): Likewise. Change argument to
10557 dwarf2_per_objfile.
10558
f8c6d152
LM
105592020-05-27 Luis Machado <luis.machado@linaro.org>
10560
10561 PR tdep/26000
10562 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10563 for ldrd (immediate).
10564
e98d2e6d
PW
105652020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10566
10567 * command.h: Add comment giving the name of class_tui.
10568 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10569 create the fake command for the help for class_tui.
10570
53a47a3e
TT
105712020-05-26 Tom Tromey <tromey@adacore.com>
10572
10573 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10574 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10575 (val_atr): New function.
10576 (value_val_atr): Use it.
10577 * ada-valprint.c (print_optional_low_bound): Change low bound
10578 handling for enums.
10579 (val_print_packed_array_elements): Don't call discrete_position.
10580 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10581 discrete_position for enum types.
10582 * language.c (default_print_array_index): Change type.
10583 * language.h (struct language_defn) <la_print_array_index>: Add
10584 index_type parameter, change type of index_value.
10585 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10586 (default_print_array_index): Update.
10587 * valprint.c (maybe_print_array_index): Don't call
10588 value_from_longest. Update.
10589 (value_print_array_elements): Don't call discrete_position.
10590
0bc2354b
TT
105912020-05-26 Tom Tromey <tromey@adacore.com>
10592
10593 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10594 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10595
1218a4bf
CDA
105962020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10597
10598 PR gdb/13519
10599 * avr-tdep.c (avr_integer_to_address): Return data or code
10600 address accordingly to the second 'type' argument of the
10601 function.
10602
92651b1d
MW
106032020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10604
10605 * infcmd.c, inferior.h: (construct_inferior_arguments):
10606 Moved function from here to gdbsupport/common-inferior.{h,cc}
10607
0a4f5f8c
TT
106082020-05-23 Tom Tromey <tom@tromey.com>
10609
10610 Revert commit eca1f90c:
10611 * NEWS: Remove entry for completion styling.
10612 * completer.c (_rl_completion_prefix_display_length): Move
10613 declaration later.
10614 (gdb_fnprint): Revert.
10615 (gdb_display_match_list_1): Likewise.
10616 * cli/cli-style.c (completion_prefix_style)
10617 (completion_difference_style, completion_suffix_style): Remove.
10618 (_initialize_cli_style): Revert.
10619 * cli/cli-style.h (completion_prefix_style)
10620 (completion_difference_style, completion_suffix_style): Don't
10621 declare.
10622
e08bd6c5
PA
106232020-05-24 Pedro Alves <palves@redhat.com>
10624
10625 * symtab.c (completion_list_add_name): Return boolean indication
10626 of whether the symbol matched.
10627 (completion_list_add_symbol): Don't try to remove C++ aliases if
10628 the symbol didn't match in the first place.
10629 * symtab.h (completion_list_add_name): Return bool.
10630
ceacbf6e
SM
106312020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10632
10633 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10634 type::field.
10635
26f16254
JB
106362020-05-23 Joel Brobecker <brobecker@adacore.com>
10637
10638 GDB 9.2 released.
10639
eca1f90c
TT
106402020-05-23 Tom Tromey <tom@tromey.com>
10641
10642 * NEWS: Add entry for completion styling.
10643 * completer.c (_rl_completion_prefix_display_length): Move
10644 declaration earlier.
10645 (gdb_fnprint): Use completion_style.
10646 (gdb_display_match_list_1): Likewise.
10647 * cli/cli-style.c (completion_prefix_style)
10648 (completion_difference_style, completion_suffix_style): New
10649 globals.
10650 (_initialize_cli_style): Register new globals.
10651 * cli/cli-style.h (completion_prefix_style)
10652 (completion_difference_style, completion_suffix_style): Declare.
10653
51e2cfa2
PA
106542020-05-23 Pedro Alves <palves@redhat.com>
10655
10656 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10657 (parse_escape): Use ISDIGIT instead of isdigit.
10658 (puts_debug): Use gdb_isprint instead of isprint.
10659 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10660 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10661 ISSPACE instead of isspace.
10662 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10663 instead of isspace.
10664 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10665 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10666 instead of isxdigit and ISDIGIT instead of isdigit.
10667
80fc5e77
SM
106682020-05-22 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbtypes.h (struct type) <field>: New method.
10671 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10672 or type::field.
10673
3cabb6b0
SM
106742020-05-22 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10677 (TYPE_FIELDS): Use type::fields. Change all call sites that
10678 modify the propery to use type::set_fields instead.
10679
1f704f76
SM
106802020-05-22 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10683 type::num_fields instead.
10684
5e33d5f4
SM
106852020-05-22 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10688 methods.
10689 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10690 that modify the number of fields to use type::set_num_fields
10691 instead.
10692
9392ebb3
TT
106932020-05-22 Tom Tromey <tromey@adacore.com>
10694
10695 * compile/compile-object-load.h (munmap_list_free): Don't
10696 declare.
10697
7c13f4e8
AB
106982020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10699
10700 * annotate.c (annotate_source_line): Update return type, add call
10701 to update current symtab and line.
10702 * annotate.h (annotate_source_line): Update return type, and
10703 extend header comment.
10704 * source.c (info_line_command): Check annotation_level before
10705 calling annotate_source_line.
10706 * stack.c (print_frame_info): If calling annotate_source_line
10707 returns true, then don't print any other source line information.
10708
aa370940
SM
107092020-05-21 Simon Marchi <simon.marchi@efficios.com>
10710
10711 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10712
84d53fa9
SM
107132020-05-21 Simon Marchi <simon.marchi@efficios.com>
10714
10715 * coffread.c (patch_type): Remove NULL check before xfree.
10716 * corefile.c (set_gnutarget): Likewise.
10717 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10718 * exec.c (build_section_table): Likewise.
10719 * remote.c (remote_target::pass_signals): Likewise.
10720 * utils.c (n_spaces): Likewise.
10721 * cli/cli-script.c (document_command): Likewise.
10722 * i386-windows-tdep.c (core_process_module_section): Likewise.
10723 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10724
9d428aae
SM
107252020-05-20 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * symfile.c (reread_symbols): Clear objfile's section_offsets
10728 vector and section indices, re-compute them by calling
10729 sym_offsets.
10730
250106a7
TT
107312020-05-20 Tom Tromey <tromey@adacore.com>
10732
10733 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10734 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10735
9a0bacfb
TV
107362020-05-20 Tom de Vries <tdevries@suse.de>
10737
10738 PR symtab/25833
10739 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10740
7b958a48
AM
107412020-05-20 Alan Modra <amodra@gmail.com>
10742
10743 PR 25993
10744 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10745 bfd_set_filename.
10746 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10747 passed to bfd_set_filename.
10748 * symfile-mem.c (add_vsyscall_page): Likewise for string
10749 passed to symbol_file_add_from_memory.
10750 (symbol_file_add_from_memory): Make name param a const char* and
10751 don't strdup.
10752
c7e97679
AM
107532020-05-20 Alan Modra <amodra@gmail.com>
10754
10755 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10756 rather than accessing bfd->filename directly.
10757 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10758 and use bfd_section_name.
10759 * dwarf2/frame.c (decode_frame_entry): Likewise.
10760 * exec.c (exec_set_section_address): Likewise.
10761 * solib-aix.c (solib_aix_bfd_open): Likewise.
10762 * stap-probe.c (get_stap_base_address): Likewise.
10763 * symfile.c (reread_symbols): Likewise.
10764
563c591b
TT
107652020-05-19 Tom Tromey <tromey@adacore.com>
10766
10767 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10768
f408d82c
SM
107692020-05-19 Simon Marchi <simon.marchi@efficios.com>
10770
10771 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10772
98c59b52
PA
107732020-05-19 Pedro Alves <palves@redhat.com>
10774
10775 * NEWS (set exec-file-mismatch): Adjust entry.
10776 * exec.c: Include "build-id.h".
10777 (validate_exec_file): Try to match build IDs instead of filenames.
10778 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10779 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10780 and pass down 'warn_if_slow'.
10781 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10782 gdb_bfd_open_closure to pass it down.
10783 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10784
4111f652
PA
107852020-05-19 Pedro Alves <palves@redhat.com>
10786
10787 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10788 * target.c (target_fileio_open_1): Rename to target_fileio_open
10789 and make extern. Use bool.
10790 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10791 (target_fileio_read_alloc_1): Adjust.
10792 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10793 (target_fileio_open_warn_if_slow): Delete declaration.
10794
ad80db5b
PA
107952020-05-19 Pedro Alves <palves@redhat.com>
10796
10797 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10798 Adjust all callers.
10799
1d6ce4d3
YS
108002020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10801
10802 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10803 whether disp is negative.
10804
9005fbbb
SM
108052020-05-19 Simon Marchi <simon.marchi@efficios.com>
10806
10807 * symfile.h (struct symfile_segment_data)
10808 <~symfile_segment_data>: Remove.
10809 <segment_info>: Change to std::vector.
10810 * symfile.c (default_symfile_segments): Update.
10811 * elfread.c (elf_symfile_segments): Update.
10812
68b888ff
SM
108132020-05-19 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10816 <segments>: New.
10817 <segment_bases, segment_sizes>: Remove.
10818 * symfile.c (default_symfile_segments): Update.
10819 * elfread.c (elf_symfile_segments): Update.
10820 * remote.c (remote_target::get_offsets): Update.
10821 * solib-target.c (solib_target_relocate_section_addresses):
10822 Update.
10823
62982abd
SM
108242020-05-19 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * symfile.h (struct symfile_segment_data): Initialize fields.
10827 <~symfile_segment_data>: Add.
10828 (symfile_segment_data_up): New.
10829 (struct sym_fns) <sym_segments>: Return a
10830 symfile_segment_data_up.
10831 (default_symfile_segments): Return a symfile_segment_data_up.
10832 (free_symfile_segment_data): Remove.
10833 (get_symfile_segment_data): Return a symfile_segment_data_up.
10834 * symfile.c (default_symfile_segments): Likewise.
10835 (get_symfile_segment_data): Likewise.
10836 (free_symfile_segment_data): Remove.
10837 (symfile_find_segment_sections): Update.
10838 * elfread.c (elf_symfile_segments): Return a
10839 symfile_segment_data_up.
10840 * remote.c (remote_target::get_offsets): Update.
10841 * solib-target.c (solib_target_relocate_section_addresses):
10842 Update.
10843 * symfile-debug.c (debug_sym_segments): Return a
10844 symfile_segment_data_up.
10845
7f204339
RO
108462020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10847
e52a0f1b
RO
10848 PR build/25981
10849 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10850 Hardcode register numbers.
10851
7f204339
RO
10852 PR build/25981
10853 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10854 procfs_find_LDT_entry): Remove.
10855 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10856 procfs_find_LDT_entry): Remove.
10857 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10858 Remove.
10859
7f32a4d5
PA
108602020-05-17 Pedro Alves <palves@redhat.com>
10861 Andrew Burgess <andrew.burgess@embecosm.com>
10862 Keno Fischer <keno@juliacomputing.com>
10863
10864 PR gdb/25741
10865 * breakpoint.c (build_target_condition_list): Update comments.
10866 (build_target_command_list): Update comments and skip matching
10867 locations.
10868 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10869 a separate function. Simplify "set breakpoint auto-hw off"
10870 handling.
10871 (insert_breakpoints): Update comment.
10872 (tracepoint_locations_match): New parameter. For breakpoints,
10873 compare location types too, if the caller wants to.
10874 (handle_automatic_hardware_breakpoints): New functions.
10875 (bp_location_is_less_than): Also sort by location type and
10876 hardware breakpoint length.
10877 (update_global_location_list): Handle "set breakpoint auto-hw on"
10878 here.
10879 (update_breakpoint_locations): Ask breakpoint_locations_match to
10880 ignore location types.
10881
7d93a1e0
SM
108822020-05-16 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10885 type::name instead.
10886
d0e39ea2
SM
108872020-05-16 Simon Marchi <simon.marchi@efficios.com>
10888
10889 * gdbtypes.h (struct type) <name, set_name>: New methods.
10890 (TYPE_CODE): Use type::name. Change all call sites used to set
10891 the name to use type::set_name instead.
10892
2dab0c7b
TT
108932020-05-16 Tom Tromey <tom@tromey.com>
10894
10895 * top.c (quit_force): Update.
10896 * infrun.c (handle_no_resumed): Update.
10897 * top.h (all_uis): New function.
10898 (ALL_UIS): Remove.
10899
59f7bd8d
SM
109002020-05-16 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10903
9bf058f0
PA
109042020-05-16 Pedro Alves <palves@redhat.com>
10905
10906 * ia64-linux-nat.c
10907 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10908 Declare method.
10909 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10910
8f86ae1a
SM
109112020-05-15 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10914 (sparc64_adi_info): Likewise.
10915
d6bc0792
TT
109162020-05-15 Tom Tromey <tom@tromey.com>
10917
10918 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10919 block_objfile.
10920 (lookup_objfile_from_block): Remove.
10921 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10922 (lookup_global_symbol): Use block_objfile.
10923 * symtab.h (lookup_objfile_from_block): Don't declare.
10924 * printcmd.c (clear_dangling_display_expressions): Use
10925 block_objfile.
10926 * parse.c (operator_check_standard): Use block_objfile.
10927
8c14c3a3
TT
109282020-05-15 Tom Tromey <tom@tromey.com>
10929
10930 * language.c (language_alloc_type_symbol): Set
10931 SYMBOL_SECTION.
10932 * symtab.c (initialize_objfile_symbol): Remove.
10933 (allocate_symbol): Remove.
10934 (allocate_template_symbol): Remove.
10935 * dwarf2/read.c (fixup_go_packaging): Use "new".
10936 (new_symbol): Use "new".
10937 (read_variable): Don't call initialize_objfile_symbol. Use
10938 "new".
10939 (read_func_scope): Use "new".
10940 * xcoffread.c (process_xcoff_symbol): Don't call
10941 initialize_objfile_symbol.
10942 (SYMBOL_DUP): Remove.
10943 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10944 "new".
10945 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10946 (allocate_template_symbol): Don't declare.
10947 (struct symbol): Add copy constructor. Change defaults.
10948 * jit.c (finalize_symtab): Use "new".
10949 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10950 Use "new".
10951 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10952 (common_block_end): Use "new".
10953 * mdebugread.c (parse_symbol): Use "new".
10954 (new_symbol): Likewise.
10955
5b4a1a8d
PW
109562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957
10958 * NEWS: Mention changes to help and apropos.
10959
57b4f16e
PW
109602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10961
10962 * command.h (enum command_class): Improve comments, document
10963 that class_alias is for user-defined aliases, give the class
10964 name for each class, remove unused class_xdb.
10965 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10966 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10967 by a precise class.
10968 * infcmd.c (_initialize_infcmd): Likewise.
10969 * reverse.c (_initialize_reverse): Likewise.
10970 * stack.c (_initialize_stack): Likewise.
10971 * symfile.c (_initialize_symfile): Likewise.
10972 * tracepoint.c (_initialize_tracepoint): Likewise.
10973
7c05caf7
PW
109742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10975
10976 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10977 when their aliased command is traversed.
10978 (help_cmd): Add fput_command_names_styled call to
10979 output command name and aliases when command has an alias.
10980
3b3aaacb
PW
109812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10982
10983 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10984 * cli/cli-decode.c (help_cmd_list): Declare as static,
10985 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10986 a command together with the command.
10987 (fput_command_name_styled, fput_command_names_styled): New functions.
10988 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10989 fput_command_name_styled.
10990 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10991 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10992
7aa1b46f
PW
109932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10994
10995 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10996 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10997 * command.h (cmd_show_list): Likewise.
10998 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10999 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11000
89bcba74
PW
110012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11002
11003 * unittests/command-def-selftests.c (traverse_command_structure):
11004 Verify all commands of a list have the same prefix command and
11005 that only the top cmdlist commands have a null prefix.
11006
3f4d92eb
PW
110072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11008
11009 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11010 as prefix, not one of its aliases.
11011 (set_cmd_prefix): Remove.
11012 (do_add_cmd): Centralize the setting of the prefix of a command, when
11013 command is defined after its full chain of prefix commands.
11014 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11015 (add_setshow_cmd_full): Likewise.
11016 (update_prefix_field_of_prefixed_commands): New function.
11017 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11018 update_prefix_field_of_prefixed_commands.
11019 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11020 addresses of remote_set_cmdlist and remote_show_cmdlist given
11021 as argument, not the address of an argument.
11022 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11023 * gdb/remote.c (_initialize_remote): Likewise.
11024
0605465f
PW
110252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11026
11027 * cli/cli-cmds.c (alias_command): Check for an existing alias
11028 using lookup_cmd_composition, as valid_command_p is too strict
11029 and forbids aliases that are the prefix of an existing alias
11030 or command.
11031 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11032 command is properly recognised as a valid command.
11033
58e6ac70
PW
110342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11035
11036 * unittests/help-doc-selftests.c: Rename to
11037 unittests/command-def-selftests.c
11038 * unittests/command-def-selftests.c (help_doc_tests): Update some
11039 comments.
11040 (command_structure_tests, traverse_command_structure): New namespace
11041 and function.
11042 (command_structure_invariants_tests): New function.
11043 (_initialize_command_def_selftests) Renamed from
11044 _initialize_help_doc_selftests, register command_structure_invariants
11045 selftest.
11046
a7b9ceb8
PW
110472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11048
11049 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11050 an alias of 'show'.
11051
b2188a06
JB
110522020-05-15 Joel Brobecker <brobecker@adacore.com>
11053
11054 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11055 ada_is_fixed_point_type. Update all callers.
11056 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11057 all callers.
11058 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11059 Update all callers.
11060 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11061 print_fixed_point_type. Update all callers.
11062 * ada-valprint.c (ada_value_print_num): Replace call to
11063 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11064
a51951c2
KB
110652020-05-14 Kevin Buettner <kevinb@redhat.com>
11066
11067 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11068 processors.
11069 (cpu_supports_bts): Add CV_AMD case.
11070
29d6859f
LM
110712020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11072 Simon Marchi <simon.marchi@efficios.com>
11073
11074 * infrun.c (stop_all_threads): Collect multiple wait events at
11075 each pass.
11076
78134374
SM
110772020-05-14 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11080 type::code instead.
11081
67607e24
SM
110822020-05-14 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbtypes.h (struct type) <code, set_code>: New methods.
11085 (TYPE_CODE): Use type::code. Change all call sites used to set
11086 the code to use type::set_code instead.
11087
a05575d3
TBA
110882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11089 Tom de Vries <tdevries@suse.de>
11090 Pedro Alves <palves@redhat.com>
11091
11092 PR threads/25478
11093 * infrun.c (stop_all_threads): Do NOT ignore
11094 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11095 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11096 received.
11097 (handle_no_resumed): Remove code handling a live inferior with no
11098 threads.
11099 * remote.c (has_single_non_exited_thread): New.
11100 (remote_target::update_thread_list): Do not delete a thread if is
11101 the last thread of the process.
11102 * thread.c (thread_select): Call delete_exited_threads instead of
11103 prune_threads.
11104
6ad82919
TBA
111052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11106
11107 * infrun.c (stop_all_threads): Enable/disable thread events of all
11108 targets. Move a debug message denoting the end of the function
11109 into the SCOPED_EXIT block.
11110
d890404b
TBA
111112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11112
11113 * process-stratum-target.h: Include <set>.
11114 (all_non_exited_process_targets, switch_to_target_no_thread): New
11115 function declarations.
11116 * process-stratum-target.c (all_non_exited_process_targets)
11117 (switch_to_target_no_thread): New function implementations.
11118
293b3ebc
TBA
111192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11120
11121 * infrun.c (handle_inferior_event): Extract out a piece of code
11122 into...
11123 (mark_non_executing_threads): ...this new function.
11124
7ca9b62a
TBA
111252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11126
11127 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11128 use.
11129
fc75c28b
TBA
111302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11131
11132 * regcache.c (regcache_read_pc_protected): New function
11133 implementation that returns 0 if the PC cannot read via
11134 'regcache_read_pc'.
11135 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11136 instead of 'regcache_read_pc'.
11137 (keep_going_pass_signal): Ditto.
11138
a89febbd
TT
111392020-05-13 Tom Tromey <tromey@adacore.com>
11140
11141 * ada-lang.c (align_value): Remove.
11142 (ada_template_to_fixed_record_type_1): Use align_up.
11143
f7e23710
TBA
111442020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11145
11146 * async-event.c: Update the copyright year.
11147 * async-event.h: Update the copyright year.
11148
02ff80c2
SM
111492020-05-12 Simon Marchi <simon.marchi@efficios.com>
11150
11151 * objfiles.h (is_addr_in_objfile,
11152 shared_objfile_contains_address_p): Return bool.
11153 * objfile.c (is_addr_in_objfile,
11154 shared_objfile_contains_address_p): Return bool.
11155
4fd6c7e8
TT
111562020-05-11 Tom Tromey <tromey@adacore.com>
11157
11158 * cli/cli-cmds.c (info_command): Restore.
11159 (_initialize_cli_cmds): Use add_prefix_command for "info".
11160 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11161
5eb68a39
TT
111622020-05-11 Tom Tromey <tromey@adacore.com>
11163
11164 * ada-lang.c (ada_value_primitive_field): Now public.
11165 * ada-lang.h (ada_value_primitive_field): Declare.
11166 * ada-valprint.c (print_field_values): Use
11167 ada_value_primitive_field for wrapper fields.
11168
7666722f
TV
111692020-05-11 Tom de Vries <tdevries@suse.de>
11170
11171 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11172 MODULE_DOMAIN.
11173
3ee6bb11
TV
111742020-05-11 Tom de Vries <tdevries@suse.de>
11175
11176 PR symtab/25941
11177 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11178 with length 0, if not gdb-produced.
11179 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11180
43434996
TV
111812020-05-09 Tom de Vries <tdevries@suse.de>
11182
11183 PR gdb/25955
11184 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11185 calculation.
11186
2f78cffc
TT
111872020-05-09 Tom Tromey <tom@tromey.com>
11188
11189 * top.c (server_command): Now bool.
11190 * top.h (server_command): Now bool.
11191
4f7bc5ed
TT
111922020-05-08 Tom Tromey <tromey@adacore.com>
11193
11194 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11195 already being processed.
11196
8be4b118
TT
111972020-05-08 Tom Tromey <tom@tromey.com>
11198
11199 * printcmd.c (struct display) <next>: Remove.
11200 <display>: New constructor.
11201 <exp_string>: Now a std::string.
11202 <enabled_p>: Now a bool.
11203 (display_number): Move definition earlier.
11204 (displays): Rename from display_chain. Now a std::vector.
11205 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11206 (display_command): Update.
11207 (do_one_display, disable_display)
11208 (enable_disable_display_command, do_enable_disable_display):
11209 Update.
11210 (free_display): Remove.
11211 (clear_displays): Rewrite.
11212 (delete_display): Update.
11213 (map_display_numbers): Use function_view. Remove "data"
11214 parameter. Update.
11215 (do_delete_display): Remove.
11216 (undisplay_command): Update.
11217 (do_one_display, do_displays, disable_display)
11218 (info_display_command): Update.
11219 (do_enable_disable_display): Remove.
11220 (enable_disable_display_command)
11221 (clear_dangling_display_expressions): Update.
11222
94c93c35
TT
112232020-05-08 Tom Tromey <tom@tromey.com>
11224
11225 * symtab.c (set_symbol_cache_size)
11226 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11227 (maintenance_print_symbol_cache_statistics): Update.
11228 * symmisc.c (print_symbol_bcache_statistics)
11229 (print_objfile_statistics, maintenance_print_objfiles)
11230 (maintenance_info_symtabs, maintenance_check_symtabs)
11231 (maintenance_expand_symtabs, maintenance_info_line_tables):
11232 Update.
11233 * symfile-debug.c (set_debug_symfile): Update.
11234 * source.c (forget_cached_source_info): Update.
11235 * python/python.c (gdbpy_progspaces): Update.
11236 * psymtab.c (maintenance_info_psymtabs): Update.
11237 * probe.c (parse_probes): Update.
11238 * linespec.c (iterate_over_all_matching_symtabs)
11239 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11240 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11241 * exec.c (exec_target::close): Update.
11242 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11243 * breakpoint.c (print_one_breakpoint_location)
11244 (create_longjmp_master_breakpoint)
11245 (create_std_terminate_master_breakpoint): Update.
11246 * progspace.c (program_spaces): Now a std::vector.
11247 (maybe_new_address_space): Update.
11248 (add_program_space): Remove.
11249 (program_space::program_space): Update.
11250 (remove_program_space): Update.
11251 (number_of_program_spaces): Remove.
11252 (print_program_space, update_address_spaces): Update.
11253 * progspace.h (program_spaces): Change type.
11254 (ALL_PSPACES): Remove.
11255 (number_of_program_spaces): Don't declare.
11256 (struct program_space) <next>: Remove.
11257
a1fd1ac9
TT
112582020-05-08 Tom Tromey <tom@tromey.com>
11259
11260 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11261 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11262 (enable_break): Update.
11263 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11264 (frv_fdpic_find_canonical_descriptor): Update.
11265 (frv_fetch_objfile_link_map): Update.
11266 * progspace.c (program_space::free_all_objfiles): Update.
11267 (program_space::solibs): New method.
11268 * progspace.h (struct program_space) <solibs>: New method.
11269 * solist.h (master_so_list): Don't declare.
11270 (ALL_SO_LIBS): Remove.
11271 * solib.h (so_list_head): Remove.
11272 (update_solib_list): Update comment.
11273 * solib.c (master_so_list): Remove.
11274 (solib_used, update_solib_list, solib_add)
11275 (info_sharedlibrary_command, clear_solib)
11276 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11277
38eae084
TT
112782020-05-08 Tom Tromey <tom@tromey.com>
11279
11280 * extension.c (extension_languages): Now a std::array.
11281 (ALL_EXTENSION_LANGUAGES): Remove.
11282 (get_ext_lang_defn, get_ext_lang_of_file)
11283 (eval_ext_lang_from_control_command): Update.
11284 (finish_ext_lang_initialization)
11285 (auto_load_ext_lang_scripts_for_objfile)
11286 (ext_lang_type_printers::ext_lang_type_printers)
11287 (apply_ext_lang_type_printers)
11288 (ext_lang_type_printers::~ext_lang_type_printers)
11289 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11290 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11291 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11292 (get_matching_xmethod_workers, ext_lang_colorize)
11293 (ext_lang_before_prompt): Update.
11294 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11295
596dc4ad
TT
112962020-05-08 Tom Tromey <tom@tromey.com>
11297
11298 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11299 overload.
11300 <swap_string, m_string>: Remove.
11301 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11302 Update.
11303 * stabsread.c (define_symbol, read_type): Update.
11304 * linespec.c (find_linespec_symbols): Update.
11305 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11306 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11307 * dbxread.c (read_dbx_symtab): Update.
11308 * cp-support.h (cp_canonicalize_string_full)
11309 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11310 Return unique_xmalloc_ptr.
11311 * cp-support.c (inspect_type): Update.
11312 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11313 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11314 Likewise.
11315 * c-typeprint.c (print_name_maybe_canonical): Update.
11316 * break-catch-throw.c (check_status_exception_catchpoint):
11317 Update.
11318
bf4cb9be
TV
113192020-05-08 Tom de Vries <tdevries@suse.de>
11320
11321 * infrun.c (follow_fork): Copy current_line and current_symtab to
11322 child thread.
11323
a1b68f28
SM
113242020-05-07 Simon Marchi <simon.marchi@efficios.com>
11325
11326 * async-event.c (struct async_signal_handler, struct
11327 async_event_handler): Reformat, remove typedef.
11328
98d48915
SM
113292020-05-07 Simon Marchi <simon.marchi@efficios.com>
11330
11331 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11332 access thistype->main_type->dyn_prop_list directly.
11333
7aa91313
SM
113342020-05-07 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11337 (remove_dyn_prop): Remove. Update all users to use
11338 type::remove_dyn_prop.
11339 * gdbtypes.c (remove_dyn_prop): Rename to...
11340 (type::remove_dyn_prop): ... this.
11341
5c54719c
SM
113422020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11343
11344 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11345 (add_dyn_prop): Remove. Update all users to use
11346 type::add_dyn_prop.
11347 * gdbtypes.c (add_dyn_prop): Rename to...
11348 (type::add_dyn_prop): ... this.
11349
24e99c6c
SM
113502020-05-07 Simon Marchi <simon.marchi@efficios.com>
11351
11352 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11353 (get_dyn_prop): Remove. Update all users to use
11354 type::dyn_prop.
11355 * gdbtypes.c (get_dyn_prop): Rename to...
11356 (type::dyn_prop): ... this.
11357
0d4bf016
SM
113582020-05-06 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11361
ac4a4f1c
SM
113622020-05-06 Simon Marchi <simon.marchi@efficios.com>
11363
11364 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11365 instruction, skip it if it's there.
11366
a3bbacc1
SM
113672020-05-05 Simon Marchi <simon.marchi@efficios.com>
11368
11369 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11370
c3236f84
SM
113712020-05-04 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11374 * gdbtypes.c (recursive_dump_type): Remove use of
11375 TYPE_INCOMPLETE.
11376
3b6acaee
TT
113772020-05-03 Tom Tromey <tom@tromey.com>
11378
11379 * breakpoint.c (catch_command, tcatch_command): Remove.
11380 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11381 add_show_prefix_cmd.
11382 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11383 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11384 Remove.
11385 (add_internal_problem_command): Use add_basic_prefix_cmd,
11386 add_show_prefix_cmd.
11387 * mips-tdep.c (set_mipsfpu_command): Remove.
11388 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11389 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11390 (_initialize_index_cache): Use add_basic_prefix_cmd.
11391 * memattr.c (dummy_cmd): Remove.
11392 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11393 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11394 (_initialize_tui_win): Use add_basic_prefix_cmd,
11395 add_show_prefix_cmd.
11396 * cli/cli-logging.c (set_logging_command): Remove.
11397 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 (show_logging_command): Remove.
11400 * target.c (target_command): Remove.
11401 (add_target): Use add_basic_prefix_cmd.
11402
a51119cd
HD
114032020-05-02 Hannes Domani <ssbssa@yahoo.de>
11404
11405 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11406
652fc23a 114072020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11408
652fc23a
PW
11409 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11410 info_command.
11411
117539e6
KR
114122020-04-30 Kamil Rytarowski <n54@gmx.com>
11413
11414 * nbsd-nat.c (nbsd_enable_proc_events)
11415 (nbsd_nat_target::post_startup_inferior): Add.
11416 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11417 (nbsd_nat_target::update_thread_list): Rewrite.
11418 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11419 "PTRACE_LWP_CREATE".
11420 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11421
102e38eb 114222020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11423
102e38eb
PW
11424 * stack.c (_initialize_stack): Remove duplicated creation
11425 of "frame" command and "f" alias.
11426
ee9d1e5f
HD
114272020-04-30 Hannes Domani <ssbssa@yahoo.de>
11428
11429 PR gdb/18706
11430 * gdbtypes.c (check_typedef): Calculate size of array of
11431 stubbed type.
11432
627c7fb8
HD
114332020-04-30 Hannes Domani <ssbssa@yahoo.de>
11434
11435 PR gdb/15559
11436 * i386-tdep.c (i386_push_dummy_call): Call
11437 i386_thiscall_push_dummy_call.
11438 (i386_thiscall_push_dummy_call): New function.
11439 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11440 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11441 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11442
ffc2844e
SM
114432020-04-29 Simon Marchi <simon.marchi@efficios.com>
11444
11445 * gdbarch.sh (do_read): Add shellcheck disable directive for
11446 warning SC2162.
11447
1207375d
SM
114482020-04-29 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11451 "referenced but not assigned" warning.
11452
9fdb2916
SM
114532020-04-29 Simon Marchi <simon.marchi@efficios.com>
11454
11455 * gdbarch.sh: Remove code that sets fallbackdefault.
11456
759cea5e
SM
114572020-04-29 Simon Marchi <simon.marchi@efficios.com>
11458
11459 * gdbarch.sh: Use shell operators && and || instead of
11460 -a and -o.
11461
cb02ab24
SM
114622020-04-29 Simon Marchi <simon.marchi@efficios.com>
11463
11464 * gdbarch.sh: Use $(...) instead of `...`.
11465
a6fc5ffc
SM
114662020-04-29 Simon Marchi <simon.marchi@efficios.com>
11467
11468 * gdbarch.sh: Use double quotes around variables.
11469
8d113d13
SM
114702020-04-29 Simon Marchi <simon.marchi@efficios.com>
11471
11472 * gdbarch.sh: Use %s with printf, instead of variables in the
11473 format string.
11474
ed6acedd
TT
114752020-04-29 Tom Tromey <tromey@adacore.com>
11476
11477 PR ada/25875:
11478 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11479 type fields here.
11480 (read_enumeration_type): Call
11481 update_enumeration_type_from_children later. Update comments.
11482 (process_enumeration_scope): Don't create type fields.
11483
b68b1b58
KR
114842020-04-29 Kamil Rytarowski <n54@gmx.com>
11485
11486 * nbsd-tdep.c: Include "xml-syscall.h".
11487 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11488
f94b2e03
KR
114892020-04-29 Kamil Rytarowski <n54@gmx.com>
11490
11491 * nbsd-nat.c: Include "sys/wait.h".
11492 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11493 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11494 (nbsd_nat_target::remove_exec_catchpoint)
11495 (nbsd_nat_target::set_syscall_catchpoint): Add.
11496 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11497 (nbsd_nat_target::insert_exec_catchpoint)
11498 (nbsd_nat_target::remove_exec_catchpoint)
11499 (nbsd_nat_target::set_syscall_catchpoint): Add.
11500 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11501 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11502 `nbsd_get_syscall_number'.
11503
fc49bc72
TT
115042020-04-29 Tom Tromey <tom@tromey.com>
11505
11506 * stack.c (print_block_frame_labels): Remove.
11507
d642b692
HD
115082020-04-29 Hannes Domani <ssbssa@yahoo.de>
11509
11510 PR gdb/17320
11511 * ada-valprint.c (val_print_packed_array_elements): Move array
11512 end bracket to new line.
11513 (ada_val_print_string): Remove extra spaces before first array
11514 element.
11515 * c-valprint.c (c_value_print_array): Likewise.
11516 * m2-valprint.c (m2_print_array_contents): Likewise.
11517 (m2_value_print_inner): Likewise.
11518 * p-valprint.c (pascal_value_print_inner): Likewise.
11519 * valprint.c (generic_val_print_array): Likewise.
11520 (value_print_array_elements): Move first array element and array
11521 end bracket to new line.
11522
ea90f227
TV
115232020-04-29 Tom de Vries <tdevries@suse.de>
11524
11525 PR symtab/25889
11526 * linespec.c (find_method): Fix ix calculation.
11527
4498ef4f
KR
115282020-04-28 Kamil Rytarowski <n54@gmx.com>
11529
11530 * syscalls/update-netbsd.sh: New file.
11531 * syscalls/netbsd.xml: Regenerate.
11532 * data-directory/Makefile.in: Register `netbsd.xml' in
11533 `SYSCALLS_FILES'.
11534
a55e30b5
SM
115352020-04-28 Simon Marchi <simon.marchi@efficios.com>
11536
11537 * syscalls/update-freebsd.sh: Add double quotes.
11538
2b2fbab8
TT
115392020-04-28 Tom Tromey <tom@tromey.com>
11540
11541 * NEWS: Update.
11542 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11543 (cmdpy_init): Allow class_tui.
11544
a65189c9
TV
115452020-04-28 Mark Williams <mark@myosotissp.com>
11546
11547 PR gdb/24480
11548 * dwarf2read.c: Add missing assingments to list_in_scope when
11549 start_symtab was already called.
11550
1b95cdb7
SM
115512020-04-28 Simon Marchi <simon.marchi@efficios.com>
11552
11553 PR gdb/25881
11554 * dwarf2/read.c (offset_map_type): Use
11555 gdb:hash_enum<sect_offset> as hash function.
11556
15cd93d0
TV
115572020-04-28 Tom de Vries <tdevries@suse.de>
11558
11559 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11560 with DW_AT_signature.
11561
1eb39914
SM
115622020-04-27 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * configure.ac: Remove check for fs_base/gs_base in
11565 user_regs_struct.
11566 * configure: Re-generate.
11567 * config.in: Re-generate.
11568 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11569 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11570 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11571
991a3e2e
LM
115722020-04-27 Luis Machado <luis.machado@linaro.org>
11573
11574 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11575 problematic inline frame unwinding situation.
11576 * frame.c (frame_id_computed_p): New function.
11577 * frame.h (frame_id_computed_p): New prototype.
11578
361ba0e8
TT
115792020-04-26 Tom Tromey <tom@tromey.com>
11580
11581 * command.h (enum command_class) <class_pseudo>: Remove.
11582
bc3609fd
PW
115832020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11584
11585 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11586 and whitespace.
11587
b9771db7
KR
115882020-04-25 Kamil Rytarowski <n54@gmx.com>
11589
ec16513e
SM
11590 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11591 `PT_GET_PROCESS_STATE' block.
b9771db7 11592
7151c1af
TT
115932020-04-24 Tom Tromey <tom@tromey.com>
11594
11595 * symtab.h (symbol_get_demangled_name): Don't declare.
11596 * symtab.c (symbol_get_demangled_name): Remove.
11597 (general_symbol_info::natural_name)
11598 (general_symbol_info::demangled_name): Update.
11599
906bb4c5
TT
116002020-04-24 Tom Tromey <tom@tromey.com>
11601
11602 PR rust/25025:
11603 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11604
bcfe6157
TT
116052020-04-24 Tom Tromey <tom@tromey.com>
11606
11607 PR symtab/12707:
11608 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11609 exists.
11610 (new_symbol): Likewise.
11611 * compile/compile-object-load.c (get_out_value_type): Use
11612 symbol_matches_search_name.
11613
f049a313
TT
116142020-04-24 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2/read.c (add_partial_symbol): Do not call
11617 compute_and_set_names.
11618
76e288d1
TT
116192020-04-24 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11622 overload.
11623
2467f4f6
TT
116242020-04-24 Tom Tromey <tom@tromey.com>
11625
11626 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11627 (add_psymbol_to_list): New overload. Make old overload call new
11628 one.
11629 * psympriv.h (add_psymbol_to_list): New overload.
11630
e61108c9
TT
116312020-04-24 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/read.c (partial_die_info::read) <case
11634 DW_AT_linkage_name>: Use value_as_string.
11635 (dwarf2_string_attr): Use value_as_string.
11636 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11637 method.
11638 * dwarf2/attribute.c (attribute::value_as_string): New method.
11639
8c87a452
TT
116402020-04-24 Tom Tromey <tom@tromey.com>
11641
11642 * symtab.c (general_symbol_info::natural_name)
11643 (general_symbol_info::demangled_name): Check for language_rust.
11644
787de330
TT
116452020-04-24 Tom Tromey <tom@tromey.com>
11646
11647 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11648 (dwarf2_physname): ... from here.
11649 (partial_die_info::read): Add Rust "{" hack.
11650
ff985671
TT
116512020-04-24 Tom Tromey <tom@tromey.com>
11652
11653 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11654 method.
11655 (symbol_set_demangled_name): Don't declare.
11656 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11657 symbol_set_demangled_name.
11658 (general_symbol_info::set_language)
11659 (general_symbol_info::compute_and_set_names): Update.
11660 * minsyms.c (minimal_symbol_reader::install): Update.
11661 * dwarf2/read.c (new_symbol): Update.
11662
1acda803
TT
116632020-04-24 Tom Tromey <tromey@adacore.com>
11664
11665 PR python/23662:
11666 * python/py-type.c (convert_field): Handle
11667 FIELD_LOC_KIND_DWARF_BLOCK.
11668 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11669 (typy_get_dynamic): Nw function.
11670 (type_object_getset): Add "dynamic".
11671 * NEWS: Add entry.
11672
d656f129
TT
116732020-04-24 Tom Tromey <tromey@adacore.com>
11674
11675 * ada-typeprint.c (print_choices, print_variant_part)
11676 (print_record_field_types_dynamic): New functions.
11677 (print_record_field_types): Use print_record_field_types_dynamic.
11678
7d79de9a
TT
116792020-04-24 Tom Tromey <tromey@adacore.com>
11680
11681 * dwarf2/read.c (handle_data_member_location): New overload.
11682 (dwarf2_add_field): Use it.
11683 (decode_locdesc): Add "computed" parameter. Update comment.
11684 * gdbtypes.c (is_dynamic_type_internal): Also look for
11685 FIELD_LOC_KIND_DWARF_BLOCK.
11686 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11687 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11688 virtual base classes.
11689 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11690 FIELD_LOC_KIND_DWARF_BLOCK.
11691
f8e89861
TT
116922020-04-24 Tom Tromey <tromey@adacore.com>
11693
11694 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11695 * gdbtypes.c (is_dynamic_type_internal): Check
11696 TYPE_HAS_DYNAMIC_LENGTH.
11697 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11698 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11699 New macros.
11700 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11701 constant.
11702
9c6a1327
TT
117032020-04-24 Tom Tromey <tromey@adacore.com>
11704
11705 * dwarf2/read.c (struct variant_field): Rewrite.
11706 (struct variant_part_builder): New.
11707 (struct nextfield): Remove "variant" field. Add "offset".
11708 (struct field_info): Add "current_variant_part" and
11709 "variant_parts".
11710 (alloc_discriminant_info): Remove.
11711 (alloc_rust_variant): New function.
11712 (quirk_rust_enum): Update.
11713 (dwarf2_add_field): Set "offset" member. Don't handle
11714 DW_TAG_variant_part.
11715 (offset_map_type): New typedef.
11716 (convert_variant_range, create_one_variant)
11717 (create_one_variant_part, create_variant_parts)
11718 (add_variant_property): New functions.
11719 (dwarf2_attach_fields_to_type): Call add_variant_property.
11720 (read_structure_type): Don't handle DW_TAG_variant_part.
11721 (handle_variant_part, handle_variant): New functions.
11722 (handle_struct_member_die): Use them.
11723 (process_structure_scope): Don't handle variant parts.
11724 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11725 (struct discriminant_info): Remove.
11726 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11727 (struct main_type) <flag_discriminated_union>: Remove.
11728 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11729 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11730 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11731 Update.
11732 * valops.c (value_union_variant): Remove.
11733 * value.h (value_union_variant): Don't declare.
11734
b249d2c2
TT
117352020-04-24 Tom Tromey <tromey@adacore.com>
11736
11737 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11738 (ada_value_primitive_packed_val): Update.
11739 * ada-valprint.c (ada_value_print_1): Update.
11740 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11741 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11742 just an address. Use evaluate_for_locexpr_baton.
11743 (dwarf2_evaluate_property): Update.
11744 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11745 array_view.
11746 * findvar.c (default_read_var_value): Update.
11747 * gdbtypes.c (compute_variant_fields_inner)
11748 (resolve_dynamic_type_internal): Update.
11749 (resolve_dynamic_type): Change type of valaddr parameter.
11750 * gdbtypes.h (resolve_dynamic_type): Update.
11751 * valarith.c (value_subscripted_rvalue): Update.
11752 * value.c (value_from_contents_and_address): Update.
11753
61122aa9
TT
117542020-04-24 Tom Tromey <tromey@adacore.com>
11755
11756 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11757 "push_initial_value" parameter.
11758 (dwarf2_evaluate_property): Likewise.
11759 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11760
ef83a141
TT
117612020-04-24 Tom Tromey <tromey@adacore.com>
11762
11763 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11764 (variant::matches, compute_variant_fields_recurse)
11765 (compute_variant_fields_inner, compute_variant_fields): New
11766 functions.
11767 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11768 Use resolved_type after type is made.
11769 (operator==): Add new cases.
11770 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11771 (struct discriminant_range, struct variant, struct variant_part):
11772 New.
11773 (union dynamic_prop_data) <variant_parts, original_type>: New
11774 members.
11775 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11776 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11777 constants.
11778 * value.c (unpack_bits_as_long): Now public.
11779 * value.h (unpack_bits_as_long): Declare.
11780
675127ec
TT
117812020-04-24 Tom Tromey <tromey@adacore.com>
11782
11783 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11784 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11785
9852ceef
HD
117862020-04-24 Hannes Domani <ssbssa@yahoo.de>
11787
11788 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11789
7632c6ce
KR
117902020-04-24 Kamil Rytarowski <n54@gmx.com>
11791
11792 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11793 (remove_fork_catchpoint, post_startup_inferior)
11794 (post_attach): Move...
11795 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11796 (remove_fork_catchpoint, post_startup_inferior)
11797 (post_attach): ...here.
11798 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11799 (remove_fork_catchpoint, post_startup_inferior)
11800 (post_attach): Move...
11801 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11802 (remove_fork_catchpoint, post_startup_inferior)
11803 (post_attach): ...here.
11804
7be2bb4f
TT
118052020-04-24 Tom Tromey <tromey@adacore.com>
11806
11807 * nat/windows-nat.h (struct windows_thread_info)
11808 <pc_adjusted>: New member.
11809 * windows-nat.c (windows_fetch_one_register): Check
11810 pc_adjusted.
11811 (windows_nat_target::get_windows_debug_event)
11812 (windows_nat_target::wait): Set pc_adjusted.
11813
f80cb3b4
TV
118142020-04-24 Tom de Vries <tdevries@suse.de>
11815
11816 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11817 Run gdb-add-index inside temp dir.
11818
29514b87
TT
118192020-04-23 Tom Tromey <tromey@adacore.com>
11820
11821 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11822 in loop.
11823
5939967b
LM
118242020-04-23 Luis Machado <luis.machado@linaro.org>
11825
11826 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11827 get_frame_register instead of gdbarch_unwind_pc.
11828
70bc38f5
TV
118292020-04-23 Tom de Vries <tdevries@suse.de>
11830
11831 * symtab.c (lookup_global_symbol): Prefer def over decl.
11832
de82891c
TV
118332020-04-23 Tom de Vries <tdevries@suse.de>
11834
11835 PR symtab/25807
11836 * block.c (best_symbol, better_symbol): Promote to external.
11837 * block.h (best_symbol, better_symbol): Declare.
11838 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11839 decl.
11840
ecc6c606
TT
118412020-04-23 Tom Tromey <tromey@adacore.com>
11842
11843 PR ada/25837:
11844 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11845 "const char *", not a "const std::string &".
11846 <name_and_matcher::operator==>: Update.
11847 * unittests/lookup_name_info-selftests.c: Change type of
11848 "result".
11849
740480b8
TT
118502020-04-23 Tom Tromey <tom@tromey.com>
11851
11852 * inferior.h (iterate_over_inferiors): Don't declare.
11853 * inferior.c (iterate_over_inferiors): Remove.
11854 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11855 Remove.
11856 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11857 use iterate_over_inferiors.
11858 (darwin_resume_inferior_it)
11859 (struct resume_inferior_threads_param)
11860 (darwin_resume_inferior_threads_it): Remove.
11861 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11862
ae3ab1f0
TV
118632020-04-23 Tom de Vries <tdevries@suse.de>
11864
11865 * blockframe.c (find_pc_partial_function): Use
11866 find_pc_sect_compunit_symtab rather than
11867 objfile->sf->qf->find_pc_sect_compunit_symtab.
11868
317d2668
TV
118692020-04-22 Tom de Vries <tdevries@suse.de>
11870
11871 PR symtab/25764
11872 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11873 in psymtabs.
11874
eea9e357
TV
118752020-04-22 Tom de Vries <tdevries@suse.de>
11876
11877 PR symtab/25801
11878 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11879 symtabs.
11880
3d5afab3
TV
118812020-04-22 Tom de Vries <tdevries@suse.de>
11882
11883 PR symtab/25700
11884 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11885 CU if already created.
11886
d43b7a2d
TBA
118872020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11888
11889 * infrun.c (displaced_step_fixup): Switch to the event_thread
11890 before calling displaced_step_restore, not after.
11891
d89edf9b
MM
118922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11893
11894 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11895 its inferior is not recorded by us.
11896 (record_btrace_target_open): Replace call to
11897 all_non_exited_threads () with call to current_inferior
11898 ()->non_exited_threads ().
11899 (record_btrace_target::stop_recording): Likewise.
11900 (record_btrace_target::close): Likewise.
11901 (record_btrace_target::wait): Likewise.
11902 (record_btrace_target::record_stop_replaying): Likewise.
11903
5897fd49
MM
119042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11905
11906 * btrace.c (btrace_enable): Throw an error on double enables and
11907 when enabling recording fails.
11908 (btrace_disable): Throw an error if the thread is not recorded.
11909
1a476b6d
MM
119102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11911
11912 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11913 request if we do not have a thread_info.
11914
4778a5f8
TV
119152020-04-21 Tom de Vries <tdevries@suse.de>
11916
11917 PR gdb/25471
11918 * thread.c
11919 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11920 exception in get_frame_id.
11921
0fa7617d
TT
119222020-04-20 Tom Tromey <tromey@adacore.com>
11923
11924 * python/python.c (struct gdbpy_event): Mark move constructor as
11925 noexcept.
11926 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11927 constructor as noexcept.
11928 * completer.h (struct completion_result): Mark move constructor as
11929 noexcept.
11930 * completer.c (completion_result::completion_result): Use
11931 initialization style. Don't call reset_match_list.
11932
ad23bda0
MS
119332020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11934
11935 * MAINTAINERS (Write After Approval): Add myself.
11936
45e1f031
TT
119372020-04-18 Tom Tromey <tom@tromey.com>
11938
11939 * windows-tdep.c (init_w32_command_list)
11940 (w32_prefix_command_valid): Restore.
11941 (_initialize_windows_tdep): Call init_w32_command_list.
11942
08feed99
TT
119432020-04-18 Tom Tromey <tom@tromey.com>
11944
11945 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11946 * value.c (value_fn_field): Update.
11947 * valops.c (find_function_in_inferior)
11948 (value_allocate_space_in_inferior): Update.
11949 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11950 Update.
11951 * tui/tui-source.c (tui_source_window::set_contents): Update.
11952 * symtab.c (lookup_global_or_static_symbol)
11953 (find_function_start_sal_1, skip_prologue_sal)
11954 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11955 * symmisc.c (dump_msymbols, dump_symtab_1)
11956 (maintenance_print_one_line_table): Update.
11957 * symfile.c (init_entry_point_info, section_is_mapped)
11958 (list_overlays_command, simple_read_overlay_table)
11959 (simple_overlay_update_1): Update.
11960 * stap-probe.c (handle_stap_probe): Update.
11961 * stabsread.c (dbx_init_float_type, define_symbol)
11962 (read_one_struct_field, read_enum_type, read_range_type): Update.
11963 * source.c (info_line_command): Update.
11964 * python/python.c (gdbpy_source_objfile_script)
11965 (gdbpy_execute_objfile_script): Update.
11966 * python/py-type.c (save_objfile_types): Update.
11967 * python/py-objfile.c (py_free_objfile): Update.
11968 * python/py-inferior.c (python_new_objfile): Update.
11969 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11970 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11971 (maintenance_check_psymtabs): Update.
11972 * printcmd.c (info_address_command): Update.
11973 * objfiles.h (struct objfile) <arch>: New method, from
11974 get_objfile_arch.
11975 (get_objfile_arch): Don't declare.
11976 * objfiles.c (get_objfile_arch): Remove.
11977 (filter_overlapping_sections): Update.
11978 * minsyms.c (msymbol_is_function): Update.
11979 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11980 (output_nondebug_symbol): Update.
11981 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11982 (mdebug_expand_psymtab): Update.
11983 * machoread.c (macho_add_oso_symfile): Update.
11984 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11985 Update.
11986 * linux-fork.c (checkpoint_command): Update.
11987 * linespec.c (convert_linespec_to_sals): Update.
11988 * jit.c (finalize_symtab): Update.
11989 * infrun.c (insert_exception_resume_from_probe): Update.
11990 * ia64-tdep.c (ia64_find_unwind_table): Update.
11991 * hppa-tdep.c (internalize_unwinds): Update.
11992 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11993 Update.
11994 * gcore.c (call_target_sbrk): Update.
11995 * elfread.c (record_minimal_symbol, elf_symtab_read)
11996 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11997 (elf_gnu_ifunc_resolve_by_got): Update.
11998 * dwarf2/read.c (create_addrmap_from_index)
11999 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12000 (read_debug_names_from_section)
12001 (process_psymtab_comp_unit_reader, add_partial_symbol)
12002 (add_partial_subprogram, process_full_comp_unit)
12003 (read_file_scope, read_func_scope, read_lexical_block_scope)
12004 (read_call_site_scope, dwarf2_ranges_read)
12005 (dwarf2_record_block_ranges, dwarf2_add_field)
12006 (mark_common_block_symbol_computed, read_tag_pointer_type)
12007 (read_tag_string_type, dwarf2_init_float_type)
12008 (dwarf2_init_complex_target_type, read_base_type)
12009 (partial_die_info::read, partial_die_info::read)
12010 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12011 (dwarf2_fetch_die_loc_sect_off): Update.
12012 * dwarf2/loc.c (dwarf2_find_location_expression)
12013 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12014 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12015 (dwarf2_loc_desc_get_symbol_read_needs)
12016 (locexpr_describe_location_piece, locexpr_describe_location_1)
12017 (loclist_describe_location): Update.
12018 * dwarf2/index-write.c (write_debug_names): Update.
12019 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12020 * dtrace-probe.c (dtrace_process_dof): Update.
12021 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12022 (process_one_symbol): Update.
12023 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12024 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12025 (coff_read_enum_type): Update.
12026 * cli/cli-cmds.c (edit_command, list_command): Update.
12027 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12028 * breakpoint.c (create_overlay_event_breakpoint)
12029 (create_longjmp_master_breakpoint)
12030 (create_std_terminate_master_breakpoint)
12031 (create_exception_master_breakpoint, get_sal_arch): Update.
12032 * block.c (block_gdbarch): Update.
12033 * annotate.c (annotate_source_line): Update.
12034
0743fc83
TT
120352020-04-17 Tom Tromey <tromey@adacore.com>
12036
12037 * auto-load.c (show_auto_load_cmd): Remove.
12038 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12039 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12040 (maintenance_print_arc_command): Remove.
12041 * tui/tui-win.c (tui_command): Remove.
12042 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12043 * tui/tui-layout.c (tui_layout_command): Remove.
12044 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12045 * python/python.c (user_set_python, user_show_python): Remove.
12046 (_initialize_python): Use add_basic_prefix_cmd,
12047 add_show_prefix_cmd.
12048 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12049 (install_gdb_commands): Use add_basic_prefix_cmd,
12050 add_show_prefix_cmd.
12051 (info_guile_command): Remove.
12052 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12053 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12054 add_show_prefix_cmd.
12055 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12056 Remove do_set and do_show parameters.
12057 * cli/cli-style.c (set_style, show_style): Remove.
12058 (_initialize_cli_style): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 (cli_style_option::add_setshow_commands): Remove do_set and
12061 do_show parameters.
12062 (cli_style_option::add_setshow_commands): Use
12063 add_basic_prefix_cmd, add_show_prefix_cmd.
12064 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12065 (set_style_name): Remove.
12066 * cli/cli-dump.c (dump_command, append_command): Remove.
12067 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12068 (tekhex_dump_command, binary_dump_command)
12069 (binary_append_command): Remove.
12070 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12071 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12072 (init_w32_command_list): Remove; move into ...
12073 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12074 * valprint.c (set_print, show_print, set_print_raw)
12075 (show_print_raw): Remove.
12076 (_initialize_valprint): Use add_basic_prefix_cmd,
12077 add_show_prefix_cmd.
12078 * typeprint.c (set_print_type, show_print_type): Remove.
12079 (_initialize_typeprint): Use add_basic_prefix_cmd,
12080 add_show_prefix_cmd.
12081 * record.c (set_record_command, show_record_command): Remove.
12082 (_initialize_record): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12085 add_show_prefix_cmd.
12086 (info_command, show_command, set_debug, show_debug): Remove.
12087 * top.h (set_history, show_history): Don't declare.
12088 * top.c (set_history, show_history): Remove.
12089 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12090 (unset_tdesc_cmd): Remove.
12091 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12092 add_show_prefix_cmd.
12093 * symtab.c (info_module_command): Remove.
12094 (_initialize_symtab): Use add_basic_prefix_cmd.
12095 * symfile.c (overlay_command): Remove.
12096 (_initialize_symfile): Use add_basic_prefix_cmd.
12097 * sparc64-tdep.c (info_adi_command): Remove.
12098 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12099 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12100 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12101 add_show_prefix_cmd.
12102 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12103 (_initialize_serial): Use add_basic_prefix_cmd,
12104 add_show_prefix_cmd.
12105 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12106 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12107 add_show_prefix_cmd.
12108 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12109 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12110 add_show_prefix_cmd.
12111 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12112 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12113 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12114 add_show_prefix_cmd.
12115 * remote.c (remote_command, set_remote_cmd): Remove.
12116 (_initialize_remote): Use add_basic_prefix_cmd.
12117 * record-full.c (set_record_full_command)
12118 (show_record_full_command): Remove.
12119 (_initialize_record_full): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 * record-btrace.c (cmd_set_record_btrace)
12122 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12123 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12124 (cmd_show_record_btrace_pt): Remove.
12125 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12126 add_show_prefix_cmd.
12127 * ravenscar-thread.c (set_ravenscar_command)
12128 (show_ravenscar_command): Remove.
12129 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12130 add_show_prefix_cmd.
12131 * mips-tdep.c (show_mips_command, set_mips_command)
12132 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 * maint.c (maintenance_command, maintenance_info_command)
12135 (maintenance_check_command, maintenance_print_command)
12136 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12137 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12138 add_show_prefix_cmd.
12139 (show_per_command_cmd): Remove.
12140 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12141 Remove.
12142 (maintenance_show_test_settings_cmd): Remove.
12143 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12144 add_show_prefix_cmd.
12145 * maint-test-options.c (maintenance_test_options_command):
12146 Remove.
12147 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12148 * macrocmd.c (macro_command): Remove
12149 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12150 * language.c (set_check, show_check): Remove.
12151 (_initialize_language): Use add_basic_prefix_cmd,
12152 add_show_prefix_cmd.
12153 * infcmd.c (unset_command): Remove.
12154 (_initialize_infcmd): Use add_basic_prefix_cmd.
12155 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12156 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12157 add_show_prefix_cmd.
12158 * go32-nat.c (go32_info_dos_command): Remove.
12159 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12160 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12161 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12162 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12163 (_initialize_frame): Use add_basic_prefix_cmd,
12164 add_show_prefix_cmd.
12165 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12166 (_initialize_dcache): Use add_basic_prefix_cmd,
12167 add_show_prefix_cmd.
12168 * cp-support.c (maint_cplus_command): Remove.
12169 (_initialize_cp_support): Use add_basic_prefix_cmd.
12170 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12171 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12172 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12173 add_basic_prefix_cmd, add_show_prefix_cmd.
12174 * breakpoint.c (save_command): Remove.
12175 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12176 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12177 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12178 add_show_prefix_cmd.
12179 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12180 (set_ada_command, show_ada_command): Remove.
12181 (_initialize_ada_language): Use add_basic_prefix_cmd,
12182 add_show_prefix_cmd.
12183 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12184
3557f442
KR
121852020-04-16 Kamil Rytarowski <n54@gmx.com>
12186
12187 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12188 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12189
16197208
SM
121902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12191
12192 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12193 warning messages.
12194
00ac85d3
SM
121952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12196
12197 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12198 import table is not at beginning of .idata section.
12199
381ce63f
PA
122002020-04-16 Pedro Alves <palves@redhat.com>
12201
12202 * inferior.c (delete_inferior): Use delete operator directly
12203 instead of delete_program_space.
12204 * progspace.c (add_program_space): New, factored out from
12205 program_space::program_space.
12206 (remove_program_space): New, factored out from
12207 delete_program_space.
12208 (program_space::program_space): Remove intro comment. Rewrite.
12209 (program_space::~program_space): Remove intro comment. Call
12210 remove_program_space.
12211 (delete_program_space): Delete.
12212 * progspace.h (program_space::program_space): Make explicit. Move
12213 intro comment here, adjusted.
12214 (program_space::~program_space): Move intro comment here,
12215 adjusted.
12216 (delete_program_space): Remove.
12217
a010605f
TT
122182020-04-16 Tom Tromey <tromey@adacore.com>
12219
12220 * windows-nat.c (windows_nat::handle_access_violation): New
12221 function.
12222 * nat/windows-nat.h (handle_access_violation): Declare.
12223 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12224 windows-nat.c. Call handle_access_violation.
12225
efba5c23
TV
122262020-04-16 Tom de Vries <tdevries@suse.de>
12227
12228 PR symtab/25791
12229 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12230 CUs without psymtab.
12231
97ed802d
KB
122322020-04-16 Kevin Buettner <kevinb@redhat.com>
12233
12234 * python/python.c (do_start_initialization): Don't call
12235 PyEval_InitThreads for Python 3.9 and beyond.
12236
c7d64809
KR
122372020-04-15 Kamil Rytarowski <n54@gmx.com>
12238
12239 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12240 thread functions.
12241 (obsd_nat_target::wait): Likewise.
12242
ce127a96
TT
122432020-04-15 Tom Tromey <tromey@adacore.com>
12244
12245 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12246 (DEBUG_EXCEPT): Use debug_printf.
12247
99f1bc6a
AB
122482020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12249
12250 * completer.c (class completion_tracker::completion_hash_entry)
12251 <hash_name>: New member function.
12252 (completion_tracker::discard_completions): New callback to hash a
12253 completion_hash_entry, pass this to htab_create_alloc.
12254
a0e9b532
JT
122552016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12256
12257 * windows-nat.c (windows_make_so): Warn rather than stopping with
12258 an error if realpath() fails.
12259
06ca5dd4
KR
122602020-04-14 Kamil Rytarowski <n54@gmx.com>
12261
12262 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12263 (nbsd_nat_target::info_proc): Add do_status.
12264
194d088f
TV
122652020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12266 Tom de Vries <tdevries@suse.de>
12267
12268 PR symtab/25718
12269 * psympriv.h (struct partial_symtab::read_symtab)
12270 (struct partial_symtab::expand_psymtab)
12271 (struct partial_symtab::read_dependencies): Update comments.
12272 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12273 read_symtab for includer.
12274 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12275 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12276 (struct dwarf2_include_psymtab::m_readin): Remove.
12277 (struct dwarf2_include_psymtab::includer): New member function.
12278 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12279
c1a66c06
TV
122802020-04-14 Tom de Vries <tdevries@suse.de>
12281
12282 PR symtab/25720
12283 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12284 with NULL symbol_matcher and lookup_name.
12285 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12286 and lookup_name.
12287 * dwarf2/read.c (dw2_expand_symtabs_matching)
12288 (dw2_debug_names_expand_symtabs_matching): Same.
12289 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12290 Make lookup_name a pointer. Update comment.
12291 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12292 lookup_name being a pointer.
12293 * symfile.c (expand_symtabs_matching): Same.
12294 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12295 * linespec.c (iterate_over_all_matching_symtabs): Same.
12296
400b5eca
TT
122972020-04-13 Tom Tromey <tom@tromey.com>
12298
12299 * run-on-main-thread.c: Update include.
12300 * unittests/main-thread-selftests.c: Update include.
12301 * tui/tui-win.c: Update include.
12302 * tui/tui-io.c: Update include.
12303 * tui/tui-interp.c: Update include.
12304 * tui/tui-hooks.c: Update include.
12305 * top.h: Update include.
12306 * top.c: Update include.
12307 * ser-base.c: Update include.
12308 * remote.c: Update include.
12309 * remote-notif.c: Update include.
12310 * remote-fileio.c: Update include.
12311 * record-full.c: Update include.
12312 * record-btrace.c: Update include.
12313 * python/python.c: Update include.
12314 * posix-hdep.c: Update include.
12315 * mingw-hdep.c: Update include.
12316 * mi/mi-main.c: Update include.
12317 * mi/mi-interp.c: Update include.
12318 * main.c: Update include.
12319 * linux-nat.c: Update include.
12320 * interps.c: Update include.
12321 * infrun.c: Update include.
12322 * inf-loop.c: Update include.
12323 * event-top.c: Update include.
12324 * event-loop.c: Move to ../gdbsupport/.
12325 * event-loop.h: Move to ../gdbsupport/.
12326 * async-event.h: Update include.
12327 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12328
93b54c8e
TT
123292020-04-13 Tom Tromey <tom@tromey.com>
12330
12331 * tui/tui-win.c: Include async-event.h.
12332 * remote.c: Include async-event.h.
12333 * remote-notif.c: Include async-event.h.
12334 * record-full.c: Include async-event.h.
12335 * record-btrace.c: Include async-event.h.
12336 * infrun.c: Include async-event.h.
12337 * event-top.c: Include async-event.h.
12338 * event-loop.h: Move some declarations to async-event.h.
12339 * event-loop.c: Don't include ser-event.h or top.h. Move some
12340 code to async-event.c.
12341 * async-event.h: New file.
12342 * async-event.c: New file.
12343 * Makefile.in (COMMON_SFILES): Add async-event.c.
12344 (HFILES_NO_SRCDIR): Add async-event.h.
12345
c1cd3163
TT
123462020-04-13 Tom Tromey <tom@tromey.com>
12347
12348 * utils.c (flush_streams): New function.
12349 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12350
29f2bf4f
TT
123512020-04-13 Tom Tromey <tom@tromey.com>
12352
12353 * event-loop.c (handle_file_event): Use warning, not
12354 printf_unfiltered.
12355
98029d02
TT
123562020-04-13 Tom Tromey <tom@tromey.com>
12357
12358 * event-loop.c: Include <chrono>.
12359
06cc9596
TT
123602020-04-13 Tom Tromey <tom@tromey.com>
12361
12362 * gdb_select.h: Move to ../gdbsupport/.
12363 * event-loop.c: Update include path.
12364 * top.c: Update include path.
12365 * ser-base.c: Update include path.
12366 * ui-file.c: Update include path.
12367 * ser-tcp.c: Update include path.
12368 * guile/scm-ports.c: Update include path.
12369 * posix-hdep.c: Update include path.
12370 * ser-unix.c: Update include path.
12371 * gdb_usleep.c: Update include path.
12372 * mingw-hdep.c: Update include path.
12373 * inflow.c: Update include path.
12374 * infrun.c: Update include path.
12375 * event-top.c: Update include path.
12376
8ae8e197
TT
123772020-04-13 Tom Tromey <tom@tromey.com>
12378
12379 * configure: Rebuild.
12380 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12381
58cf28e8
TT
123822020-04-13 Tom Tromey <tom@tromey.com>
12383
12384 * event-loop.h (start_event_loop): Don't declare.
12385 * event-loop.c (start_event_loop): Move...
12386 * main.c (start_event_loop): ...here. Now static.
12387
b7f999ae
SDJ
123882020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12389
12390 * MAINTAINERS: Update my email address.
12391
1085dfd4
KR
123922020-04-12 Kamil Rytarowski <n54@gmx.com>
12393
12394 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12395 IP_ALL.
12396
49d1d1f5
KR
123972020-04-12 Kamil Rytarowski <n54@gmx.com>
12398
12399 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12400 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12401
b4848d2a
KR
124022020-04-12 Kamil Rytarowski <n54@gmx.com>
12403
12404 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12405 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12406
51c133d5
KR
124072020-04-12 Kamil Rytarowski <n54@gmx.com>
12408
12409 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12410
54b8cbd0
KR
124112020-04-11 Kamil Rytarowski <n54@gmx.com>
12412
12413 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12414 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12415 (nbsd_nat_target::info_proc): New functions.
12416 * nbsd-nat.c (kinfo_get_vmmap): New function.
12417 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12418 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12419 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12420 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12421 functions.
12422 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12423 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12424 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12425 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12426 (KINFO_VME_FLAG_GROWS_DOWN): New.
12427
cf83625d
AS
124282020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12429
12430 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12431 bit shift.
12432
0c4311ab
TT
124332020-04-10 Tom Tromey <tromey@adacore.com>
12434
12435 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12436
3e65b3e9
TT
124372020-04-10 Tom Tromey <tromey@adacore.com>
12438
12439 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12440 separate debug files.
12441
13302e95
HD
124422020-04-10 Hannes Domani <ssbssa@yahoo.de>
12443
12444 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12445 Move to...
12446 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12447 ... here.
12448 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12449 Check for STATUS_WX86_BREAKPOINT.
12450 (windows_nat_target::wait): Same.
12451
bdfc1e8a
TV
124522020-04-10 Tom de Vries <tdevries@suse.de>
12453
12454 PR cli/25808
12455 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12456
f4460aec
SM
124572020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12458
12459 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12460 (Write After Approval): Remove Tom de Vries.
12461
a25198bb
BE
124622020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12463
12464 revert partially:
12465 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12466
aac66a4c
SM
12467 * buildsym.c (record_line): Fix undefined behavior and preserve
12468 lines at eof.
a25198bb 12469
206c98a6
KR
124702020-04-09 Kamil Rytarowski <n54@gmx.com>
12471
12472 * auxv.h (svr4_auxv_parse): New.
12473 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12474 and generic_auxv_parse.
12475 (svr4_auxv_parse): Add.
12476 * obsd-tdep.c: Include "auxv.h".
12477 (obsd_auxv_parse): Remove.
12478 (obsd_init_abi): Remove comment.
12479 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12480 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12481 * nbsd-tdep.c: Include "auxv.h".
12482 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12483
71fbdbaf
TT
124842020-04-08 Tom Tromey <tromey@adacore.com>
12485
12486 * nat/windows-nat.h (last_wait_event): Don't declare.
12487 (wait_for_debug_event): Update comment.
12488 * nat/windows-nat.c (last_wait_event): Now static.
12489
2c1d95e8
TT
124902020-04-08 Tom Tromey <tromey@adacore.com>
12491
12492 * windows-nat.c (wait_for_debug_event): Move to
12493 nat/windows-nat.c.
12494 * nat/windows-nat.h (wait_for_debug_event): Declare.
12495 * nat/windows-nat.c (wait_for_debug_event): Move from
12496 windows-nat.c. No longer static.
12497
d2977bc4
TT
124982020-04-08 Tom Tromey <tromey@adacore.com>
12499
12500 * windows-nat.c (get_windows_debug_event): Use
12501 fetch_pending_stop.
12502 * nat/windows-nat.h (fetch_pending_stop): Declare.
12503 * nat/windows-nat.c (fetch_pending_stop): New function.
12504
e758e19c
TT
125052020-04-08 Tom Tromey <tromey@adacore.com>
12506
12507 * windows-nat.c (windows_continue): Use matching_pending_stop and
12508 continue_last_debug_event.
12509 * nat/windows-nat.h (matching_pending_stop)
12510 (continue_last_debug_event): Declare.
12511 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12512 (matching_pending_stop, continue_last_debug_event): New
12513 functions.
12514
8d30e395
TT
125152020-04-08 Tom Tromey <tromey@adacore.com>
12516
12517 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12518 (handle_exception_result): Move to nat/windows-nat.h.
12519 (DEBUG_EXCEPTION_SIMPLE): Remove.
12520 (windows_nat::handle_ms_vc_exception): New function.
12521 (handle_exception): Move to nat/windows-nat.c.
12522 (get_windows_debug_event): Update.
12523 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12524 nat/windows-nat.c.
12525 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12526 (handle_exception_result): Move from windows-nat.c.
12527 (handle_exception): Declare.
12528 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12529 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12530 windows-nat.c.
12531
29de418d
TT
125322020-04-08 Tom Tromey <tromey@adacore.com>
12533
12534 * windows-nat.c (exception_count, event_count): Remove.
12535 (handle_exception, get_windows_debug_event)
12536 (do_initial_windows_stuff): Update.
12537
a816ba18
TT
125382020-04-08 Tom Tromey <tromey@adacore.com>
12539
12540 * windows-nat.c (windows_nat::handle_load_dll)
12541 (windows_nat::handle_unload_dll): Rename. No longer static.
12542 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12543 Declare.
12544
a00caa12
TT
125452020-04-08 Tom Tromey <tromey@adacore.com>
12546
12547 * complaints.h (stop_whining): Declare at top-level.
12548 (complaint): Don't declare stop_whining.
12549
d41b524f
TT
125502020-04-08 Tom Tromey <tromey@adacore.com>
12551
12552 * windows-nat.c (windows_nat::handle_output_debug_string):
12553 Rename. No longer static.
12554 * nat/windows-nat.h (handle_output_debug_string): Declare.
12555
3c76026d
TT
125562020-04-08 Tom Tromey <tromey@adacore.com>
12557
12558 * windows-nat.c (current_process_handle, current_process_id)
12559 (main_thread_id, last_sig, current_event, last_wait_event)
12560 (current_windows_thread, desired_stop_thread_id, pending_stops)
12561 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12562 (display_selectors, fake_create_process)
12563 (get_windows_debug_event): Update.
12564 * nat/windows-nat.h (current_process_handle, current_process_id)
12565 (main_thread_id, last_sig, current_event, last_wait_event)
12566 (current_windows_thread, desired_stop_thread_id, pending_stops)
12567 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12568 * nat/windows-nat.c (current_process_handle, current_process_id)
12569 (main_thread_id, last_sig, current_event, last_wait_event)
12570 (current_windows_thread, desired_stop_thread_id, pending_stops)
12571 (siginfo_er): New globals. Move from windows-nat.c.
12572
9d8679cc
TT
125732020-04-08 Tom Tromey <tromey@adacore.com>
12574
12575 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12576 (handle_load_dll): Update.
12577 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12578
28688adf
TT
125792020-04-08 Tom Tromey <tromey@adacore.com>
12580
12581 * windows-nat.c (enum thread_disposition_type): Move to
12582 nat/windows-nat.h.
12583 (windows_nat::thread_rec): Rename from thread_rec. No longer
12584 static.
12585 (windows_add_thread, windows_nat_target::fetch_registers)
12586 (windows_nat_target::store_registers, handle_exception)
12587 (windows_nat_target::resume, get_windows_debug_event)
12588 (windows_nat_target::get_tib_address)
12589 (windows_nat_target::thread_name)
12590 (windows_nat_target::thread_alive): Update.
12591 * nat/windows-nat.h (enum thread_disposition_type): Move from
12592 windows-nat.c.
12593 (thread_rec): Declare.
12594
4834dad0
TT
125952020-04-08 Tom Tromey <tromey@adacore.com>
12596
12597 * windows-nat.c: Add "using namespace".
12598 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12599 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12600
65bafd5b
TT
126012020-04-08 Tom Tromey <tromey@adacore.com>
12602
12603 * nat/windows-nat.h (struct windows_thread_info): Declare
12604 destructor.
12605 * nat/windows-nat.c (~windows_thread_info): New.
12606
0a4afda3
TT
126072020-04-08 Tom Tromey <tromey@adacore.com>
12608
12609 PR gdb/22992
12610 * windows-nat.c (current_event): Update comment.
12611 (last_wait_event, desired_stop_thread_id): New globals.
12612 (struct pending_stop): New.
12613 (pending_stops): New global.
12614 (windows_nat_target) <stopped_by_sw_breakpoint>
12615 <supports_stopped_by_sw_breakpoint>: New methods.
12616 (windows_fetch_one_register): Add assertions. Adjust PC.
12617 (windows_continue): Handle pending stops. Suspend other threads
12618 when stepping. Use last_wait_event
12619 (wait_for_debug_event): New function.
12620 (get_windows_debug_event): Use wait_for_debug_event. Handle
12621 pending stops. Queue spurious stops.
12622 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12623 (windows_nat_target::kill): Use wait_for_debug_event.
12624 * nat/windows-nat.h (struct windows_thread_info)
12625 <stopped_at_software_breakpoint>: New field.
12626 * nat/windows-nat.c (windows_thread_info::resume): Clear
12627 stopped_at_software_breakpoint.
12628
8e61ebec
TT
126292020-04-08 Tom Tromey <tromey@adacore.com>
12630
12631 * windows-nat.c (enum thread_disposition_type): New.
12632 (thread_rec): Replace "get_context" parameter with "disposition";
12633 change type.
12634 (windows_add_thread, windows_nat_target::fetch_registers)
12635 (windows_nat_target::store_registers, handle_exception)
12636 (windows_nat_target::resume, get_windows_debug_event)
12637 (windows_nat_target::get_tib_address)
12638 (windows_nat_target::thread_name)
12639 (windows_nat_target::thread_alive): Update.
12640
98a03287
TT
126412020-04-08 Tom Tromey <tromey@adacore.com>
12642
12643 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12644 (windows_continue): Use windows_continue::resume.
12645 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12646 resume>: Declare new methods.
12647 * nat/windows-nat.c: New file.
12648 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12649
7c7411bc
TT
126502020-04-08 Tom Tromey <tromey@adacore.com>
12651
12652 * windows-nat.c (windows_add_thread, windows_delete_thread)
12653 (windows_nat_target::fetch_registers)
12654 (windows_nat_target::store_registers, fake_create_process)
12655 (windows_nat_target::resume, windows_nat_target::resume)
12656 (get_windows_debug_event, windows_nat_target::wait)
12657 (windows_nat_target::pid_to_str)
12658 (windows_nat_target::get_tib_address)
12659 (windows_nat_target::get_ada_task_ptid)
12660 (windows_nat_target::thread_name)
12661 (windows_nat_target::thread_alive): Use lwp, not tid.
12662
2950fdf7
TT
126632020-04-08 Tom Tromey <tromey@adacore.com>
12664
12665 * windows-nat.c (handle_exception)
12666 (windows_nat_target::thread_name): Update.
12667 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12668 <name>: Now unique_xmalloc_ptr.
12669
62fe396b
TT
126702020-04-08 Tom Tromey <tromey@adacore.com>
12671
12672 * windows-nat.c (thread_rec)
12673 (windows_nat_target::fetch_registers): Update.
12674 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12675 Update comment.
12676 <debug_registers_changed, reload_context>: Now bool.
12677
e9534bd2
TT
126782020-04-08 Tom Tromey <tromey@adacore.com>
12679
12680 * windows-nat.c (windows_add_thread): Use new.
12681 (windows_init_thread_list, windows_delete_thread): Use delete.
12682 (get_windows_debug_event): Update.
12683 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12684 destructor, and initializers.
12685
ae1f8880
TT
126862020-04-08 Tom Tromey <tromey@adacore.com>
12687
12688 * windows-nat.c (struct windows_thread_info): Remove.
12689 * nat/windows-nat.h: New file.
12690
55a1e039
TT
126912020-04-08 Tom Tromey <tromey@adacore.com>
12692
12693 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12694 (thread_rec, windows_add_thread, windows_delete_thread)
12695 (windows_continue): Update.
12696
93366324
TT
126972020-04-08 Tom Tromey <tromey@adacore.com>
12698
12699 * windows-nat.c (struct windows_thread_info): Remove typedef.
12700 (thread_head): Remove.
12701 (thread_list): New global.
12702 (thread_rec, windows_add_thread, windows_init_thread_list)
12703 (windows_delete_thread, windows_continue): Update.
12704
0f2265e2
SM
127052020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12706
12707 * windows-tdep.h (windows_init_abi): Add comment.
12708 (cygwin_init_abi): New declaration.
12709 * windows-tdep.c: Split signal enumeration in two, one for
12710 Windows and one for Cygwin.
12711 (windows_gdb_signal_to_target): Only deal with signal of the
12712 Windows OS ABI.
12713 (cygwin_gdb_signal_to_target): New function.
12714 (windows_init_abi): Rename to windows_init_abi_common, don't set
12715 gdb_signal_to_target gdbarch method. Add new new function with
12716 this name.
12717 (cygwin_init_abi): New function.
12718 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12719 comment. Don't call windows_init_abi.
12720 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12721 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12722 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12723 i386_windows_init_abi_common, don't call windows_init_abi. Add
12724 a new function of this name.
12725 (i386_cygwin_init_abi): New function.
12726 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12727 OS ABI Cygwin.
12728
3810f182
SM
127292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12730
12731 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12732 parameter.c.
12733 (dwarf2_read_gdb_index): Update.
12734
063f8e80
KR
127352020-04-07 Kamil Rytarowski <n54@gmx.com>
12736
12737 * nbsd-tdep.c: Include "objfiles.h".
12738 (nbsd_skip_solib_resolver): New.
12739 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12740
85a9510c 127412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12742
12743 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12744 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12745 with DW_LLE_base_addressx are being emitted in DWARFv5.
12746 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12747 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12748 unsigned integer.
12749
9fc3eaae 127502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12751
12752 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12753 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12754 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12755 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12756 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12757 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12758 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12759
12760
41144253 127612020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12762
12763 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12764 (read_loclist_index): New function definition.
12765 (lookup_loclist_base): New function definition.
12766 (read_loclist_header): New function definition.
12767 (dwarf2_cu): Add loclist_base and loclist_header field.
12768 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12769 (read_full_die_1): Read the value of DW_AT_loclists_base.
12770 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12771 (read_attribute_value): Handle DW_FORM_loclistx.
12772 (skip_one_die): Handle DW_FORM_loclistx.
12773 (loclist_header): New structure declaration.
12774 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12775
9f4e76a4
SM
127762020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12777
12778 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12779 constructor. Remove `addr` parameter from other constructor and
12780 add `per_cu` parameter.
12781 * dwarf2/read.c (create_partial_symtab): Update.
12782
25c11aca
TV
127832020-04-07 Tom de Vries <tdevries@suse.de>
12784
12785 PR symtab/25796
12786 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12787 (partial_die_info::fixup): Inherit has_const_value.
12788
5707e24b
TV
127892020-04-07 Tom de Vries <tdevries@suse.de>
12790
12791 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12792 symbols without address.
12793
05f00e22
KR
127942020-04-06 Kamil Rytarowski <n54@gmx.com>
12795
12796 * nbsd-nat.h (struct thread_info): Add forward declaration.
12797 (nbsd_nat_target::thread_alive): Add.
12798 (nbsd_nat_target::thread_name): Likewise.
12799 (nbsd_nat_target::update_thread_list): Likewise.
12800 (update_thread_list::post_attach): Likewise.
12801 (post_attach::pid_to_str): Likewise.
12802 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12803 (nbsd_thread_lister): Add.
12804 (nbsd_nat_target::thread_alive): Likewise.
12805 (nbsd_nat_target::thread_name): Likewise.
12806 (nbsd_add_threads): Likewise.
12807 (update_thread_list::post_attach): Likewise.
12808 (nbsd_nat_target::update_thread_list): Likewise.
12809 (post_attach::pid_to_str): Likewise.
12810
6ee448cc
TT
128112020-04-06 Tom Tromey <tromey@adacore.com>
12812
12813 * ada-valprint.c (print_variant_part): Extract the variant field.
12814 (print_field_values): Use the field as the outer value when
12815 recursing.
12816
dea34e8c
TT
128172020-04-06 Tom Tromey <tromey@adacore.com>
12818
12819 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12820 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12821 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12822 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12823 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12824
93689ce9
TT
128252020-04-06 Tom Tromey <tromey@adacore.com>
12826
12827 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12828 TYPE_CODE_ERROR.
12829
79743962
KR
128302020-04-06 Kamil Rytarowski <n54@gmx.com>
12831
12832 * nbsd-tdep.c: Include "gdbarch.h".
12833 Define enum with NetBSD signal numbers.
12834 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12835 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12836 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12837 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12838 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12839 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12840 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12841 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12842 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12843 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12844 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12845 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12846
9e7c9a03
HD
128472020-04-03 Hannes Domani <ssbssa@yahoo.de>
12848
12849 PR gdb/25325
12850 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12851
d9e49b61
TT
128522020-04-03 Tom Tromey <tromey@adacore.com>
12853
12854 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12855 Read constant block.
12856
e0fc5c3f
SM
128572020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12858
12859 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12860 (gdb_bfd_get_full_section_contents): New declaration.
12861 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12862 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12863 gdb_bfd_get_full_section_contents.
12864
e2ff18a0
SM
128652020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12866
12867 * exec.c (build_section_table): Replace internal_error with
12868 gdb_assert.
12869 (section_table_xfer_memory_partial): Likewise.
12870 * mdebugread.c (parse_partial_symbols): Likewise.
12871 * psymtab.c (lookup_partial_symbol): Likewise.
12872 * utils.c (wrap_here): Likewise.
12873
0830d301
TT
128742020-04-02 Tom Tromey <tromey@adacore.com>
12875
12876 * f-lang.c (build_fortran_types): Use arch_type to initialize
12877 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12878
e7da7f8f
TT
128792020-04-02 Tom Tromey <tromey@adacore.com>
12880
12881 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12882 of attributes.
12883
c90d28ac
AB
128842020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12885 Bernd Edlinger <bernd.edlinger@hotmail.de>
12886 Tom Tromey <tromey@adacore.com>
12887
12888 * buildsym.c (buildsym_compunit::record_line): Remove
12889 deduplication code.
12890
1aa98955
TV
128912020-04-02 Tom de Vries <tdevries@suse.de>
12892
12893 PR ada/24671
12894 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12895
d3214198
TV
128962020-04-02 Tom de Vries <tdevries@suse.de>
12897
12898 * dwarf2/read.c (dwarf2_gdb_index_functions,
12899 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12900 NULL.
12901 * psymtab.c (psym_lookup_global_symbol_language): New function.
12902 (psym_functions): Init psym_lookup_global_symbol_language with
12903 psym_lookup_global_symbol_language.
12904 * symfile-debug.c (debug_sym_quick_functions): Init
12905 lookup_global_symbol_language with NULL.
12906 * symfile.c (set_initial_language): Remove fixme comment.
12907 * symfile.h (struct quick_symbol_functions): Add
12908 lookup_global_symbol_language.
12909 * symtab.c (find_quick_global_symbol_language): New function.
12910 (find_main_name): Use find_quick_global_symbol_language.
12911
2836752f
SM
129122020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12913
12914 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12915
64dc2d4b
BE
129162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12917
12918 * buildsym.c (record_line): Fix undefined behavior and preserve
12919 lines at eof.
12920
bbe3dc41
BE
129212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12922
12923 * buildsym.c (record_line): Fix the resizing condition.
12924
6b4a335b
TT
129252020-04-01 Tom Tromey <tom@tromey.com>
12926
12927 * value.h (value_literal_complex): Add comment.
12928 * valops.c (value_literal_complex): Refer to value.h.
12929
3638a098
TT
129302020-04-01 Tom Tromey <tom@tromey.com>
12931
12932 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12933 (scalar_type): New rule, from typebase.
12934 (typebase): Use scalar_type. Recognize complex types.
12935 (field_name): Handle FLOAT_KEYWORD.
12936 (ident_tokens): Add _Complex and __complex__.
12937
c34e8714
TT
129382020-04-01 Tom Tromey <tom@tromey.com>
12939
12940 PR exp/25299:
12941 * valarith.c (promotion_type, complex_binop): New functions.
12942 (scalar_binop): Handle complex numbers. Use promotion_type.
12943 (value_pos, value_neg, value_complement): Handle complex numbers.
12944
fa649bb7
TT
129452020-04-01 Tom Tromey <tom@tromey.com>
12946
12947 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12948 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12949 (parse_number): Handle complex numbers.
12950
981c08ce
TT
129512020-04-01 Tom Tromey <tom@tromey.com>
12952
12953 * c-valprint.c (c_decorations): Change complex suffix to "i".
12954
4c99290d
TT
129552020-04-01 Tom Tromey <tom@tromey.com>
12956
12957 * valprint.c (generic_value_print_complex): Use accessors.
12958 * value.h (value_real_part, value_imaginary_part): Declare.
12959 * valops.c (value_real_part, value_imaginary_part): New
12960 functions.
12961 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12962
5b930b45
TT
129632020-04-01 Tom Tromey <tom@tromey.com>
12964
12965 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12966 (read_range_type): Update.
12967 * mdebugread.c (basic_type): Update.
12968 * go-lang.c (build_go_types): Use init_complex_type.
12969 * gdbtypes.h (struct main_type) <complex_type>: New member.
12970 (init_complex_type): Update.
12971 (arch_complex_type): Don't declare.
12972 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12973 Make name if none given. Use alloc_type_copy. Look for cached
12974 complex type.
12975 (arch_complex_type): Remove.
12976 (gdbtypes_post_init): Use init_complex_type.
12977 * f-lang.c (build_fortran_types): Use init_complex_type.
12978 * dwarf2/read.c (read_base_type): Update.
12979 * d-lang.c (build_d_types): Use init_complex_type.
12980 * ctfread.c (read_base_type): Update.
12981
53cccef1
TBA
129822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12983
12984 * infrun.c (stop_all_threads): Update assertion, plus when
12985 stopping threads, take into account that we might be trying
12986 to stop an all-stop target.
12987 (stop_waiting): Call 'stop_all_threads' if there exists a
12988 non-stop target.
12989
a0714d30
TBA
129902020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12991
12992 * target.h (exists_non_stop_target): New function declaration.
12993 * target.c (exists_non_stop_target): New function.
12994
60e22c1e
HD
129952020-04-01 Hannes Domani <ssbssa@yahoo.de>
12996
12997 PR gdb/24789
12998 * eval.c (is_integral_or_integral_reference): New function.
12999 (evaluate_subexp_standard): Allow integer references in
13000 pointer arithmetic.
13001
e139a727
TBA
130022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13003
13004 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13005 check for no ptid in the stop reply when the target is non-stop.
13006
e0802d59
TT
130072020-04-01 Tom Tromey <tromey@adacore.com>
13008
13009 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13010 "name" parameter to rvalue reference. Initialize m_name_holder.
13011 <lookup_name_info>: New overloads.
13012 <name>: Return gdb::string_view.
13013 <c_str>: New method.
13014 <make_ignore_params>: Update.
13015 <search_name_hash>: Update.
13016 <language_lookup_name>: Return const char *.
13017 <m_name>: Change type.
13018 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13019 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13020 (lookup_name_info::match_any): Update.
13021 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13022 Update.
13023 * minsyms.c (linkage_name_str): Update.
13024 * language.c (default_symbol_name_matcher): Update.
13025 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13026 Update.
13027 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13028 (ada_lookup_name_info::ada_lookup_name_info): Update.
13029 (literal_symbol_name_matcher): Update.
13030
8c072cb6
TT
130312020-04-01 Tom Tromey <tromey@adacore.com>
13032
13033 * psymtab.c (psymtab_search_name): Remove function.
13034 (psym_lookup_symbol): Create search name and lookup name here.
13035 (lookup_partial_symbol): Remove "name" parameter; add
13036 lookup_name.
13037 (psym_expand_symtabs_for_function): Update.
13038
6f29a534
TT
130392020-03-31 Joel Jones <joelkevinjones@gmail.com>
13040
13041 PR tui/25597:
13042 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13043
af62665e
TT
130442020-03-31 Tom Tromey <tromey@adacore.com>
13045
13046 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13047 memcpy.
13048
d1a89da5
NC
130492020-03-30 Nelson Chu <nelson.chu@sifive.com>
13050
13051 * features/riscv/32bit-csr.xml: Regenerated.
13052 * features/riscv/64bit-csr.xml: Regenerated.
13053
d8af9068
TT
130542020-03-30 Tom Tromey <tromey@adacore.com>
13055
13056 * ada-valprint.c (print_variant_part): Update.
13057 * ada-lang.h (ada_which_variant_applies): Update.
13058 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13059 outer_valaddr parameters; replace with "outer" value parameter.
13060 (to_fixed_variant_branch_type): Update.
13061
227c0bf4
PFC
130622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13063
13064 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13065 <list>. Remove inclusion of observable.h.
13066 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13067 (struct arch_lwp_info): New struct.
13068 (class ppc_linux_dreg_interface): New class.
13069 (struct ppc_linux_process_info): New struct.
13070 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13071 <low_new_clone, low_forget_process, low_prepare_to_resume>
13072 <copy_thread_dreg_state, mark_thread_stale>
13073 <mark_debug_registers_changed, register_hw_breakpoint>
13074 <clear_hw_breakpoint, register_wp, clear_wp>
13075 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13076 <num_memory_accesses, get_trigger_type>
13077 <create_watchpoint_request, hwdebug_point_cmp>
13078 <init_arch_lwp_info, get_arch_lwp_info>
13079 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13080 methods.
13081 <struct ptid_hash>: New inner struct.
13082 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13083 members.
13084 (saved_dabr_value, hwdebug_info, max_slots_number)
13085 (struct hw_break_tuple, struct thread_points, ppc_threads)
13086 (have_ptrace_hwdebug_interface)
13087 (hwdebug_find_thread_points_by_tid)
13088 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13089 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13090 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13091 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13092 use m_dreg_interface.
13093 (hwdebug_point_cmp): Change to...
13094 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13095 reference arguments instead of pointers.
13096 (ppc_linux_nat_target::ranged_break_num_registers): Use
13097 m_dreg_interface.
13098 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13099 m_dreg_interface. Call register_hw_breakpoint.
13100 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13101 m_dreg_interface. Call clear_hw_breakpoint.
13102 (get_trigger_type): Change to...
13103 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13104 comment.
13105 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13106 use m_dreg_interface. Call register_hw_breakpoint.
13107 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13108 use m_dreg_interface. Call clear_hw_breakpoint.
13109 (can_use_watchpoint_cond_accel): Change to...
13110 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13111 method. Update comment, use m_dreg_interface and
13112 m_process_info.
13113 (calculate_dvc): Change to...
13114 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13115 m_dreg_interface.
13116 (num_memory_accesses): Change to...
13117 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13118 (check_condition): Change to...
13119 (ppc_linux_nat_target::check_condition): ...this method.
13120 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13121 comment, use m_dreg_interface.
13122 (create_watchpoint_request): Change to...
13123 (ppc_linux_nat_target::create_watchpoint_request): ...this
13124 method. Use m_dreg_interface.
13125 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13126 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13127 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13128 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13129 (ppc_linux_nat_target::low_forget_process)
13130 (ppc_linux_nat_target::low_new_fork)
13131 (ppc_linux_nat_target::low_new_clone)
13132 (ppc_linux_nat_target::low_delete_thread)
13133 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13134 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13135 only call mark_thread_stale.
13136 (ppc_linux_thread_exit): Remove.
13137 (ppc_linux_nat_target::stopped_data_address): Change to...
13138 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13139 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13140 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13141 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13142 comment. Call low_stopped_data_address.
13143 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13144 m_dreg_interface.
13145 (ppc_linux_nat_target::masked_watch_num_registers): Use
13146 m_dreg_interface.
13147 (ppc_linux_nat_target::copy_thread_dreg_state)
13148 (ppc_linux_nat_target::mark_thread_stale)
13149 (ppc_linux_nat_target::mark_debug_registers_changed)
13150 (ppc_linux_nat_target::register_hw_breakpoint)
13151 (ppc_linux_nat_target::clear_hw_breakpoint)
13152 (ppc_linux_nat_target::register_wp)
13153 (ppc_linux_nat_target::clear_wp)
13154 (ppc_linux_nat_target::init_arch_lwp_info)
13155 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13156 (_initialize_ppc_linux_nat): Remove observer callback.
13157
4db10d8f
PFC
131582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13159
13160 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13161 (ppc_linux_nat_target::auxv_parse)
13162 (ppc_linux_nat_target::read_description)
13163 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13164 Move up.
13165
1310c1b0
PFC
131662020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13167
13168 * linux-nat.h (low_new_clone): New method.
13169 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13170
69b037c3
SM
131712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13172
13173 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13174 (dbx_expand_psymtab): ... this.
13175 (start_psymtab): Update.
13176 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13177 (mdebug_expand_psymtab): ... this.
13178 (parse_partial_symbols): Update.
13179 (new_psymtab): Update.
13180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13181 (xcoff_expand_psymtab): ... this.
13182 (xcoff_start_psymtab): Update.
13183
48993951
SM
131842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13185
13186 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13187 <expand_dependencies>: ... this.
13188 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13189 (partial_symtab::expand_dependencies): ... this.
13190 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13191 Update.
13192 (dwarf2_psymtab::expand_psymtab): Update.
13193 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13194 * mdebugread.c (psymtab_to_symtab_1): Update.
13195 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13196
3ad83046
SM
131972020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13198
13199 * psympriv.h (discard_psymtab): Remove.
13200 * dbxread.c (dbx_end_psymtab): Update.
13201 * xcoffread.c (xcoff_end_psymtab): Update.
13202
4d1b9ab6
TT
132032020-03-28 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13206 comment.
13207
f1749218
TT
132082020-03-28 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13211
ebea7626
HD
132122020-03-27 Hannes Domani <ssbssa@yahoo.de>
13213
13214 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13215
a879b4d5
JB
132162020-03-26 John Baldwin <jhb@FreeBSD.org>
13217
13218 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13219
0826b30a
TT
132202020-03-26 Tom Tromey <tom@tromey.com>
13221
13222 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13223 (mark_common_block_symbol_computed, read_tag_string_type)
13224 (attr_to_dynamic_prop, read_subrange_type): Update.
13225 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13226 to be methods on struct attribute.
13227 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13228 (read_call_site_scope, partial_die_info::read)
13229 (partial_die_info::read, lookup_die_type, follow_die_ref):
13230 Update.
13231 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13232 from dwarf2_get_ref_die_offset.
13233 (attribute::constant_value): New method, from
13234 dwarf2_get_attr_constant_value.
13235 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13236 Declare method.
13237 <constant_value>: New method.
13238
2b2558bf
TT
132392020-03-26 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13242 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13243 (dwarf_type_encoding_name): Move to stringify.c.
13244 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13245 * dwarf2/stringify.c: New file.
13246 * dwarf2/stringify.h: New file.
13247
eeb64781
TT
132482020-03-26 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13251 Rewrite.
13252
a39fdb41
TT
132532020-03-26 Tom Tromey <tom@tromey.com>
13254
13255 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13256 methods.
13257 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13258 (lookup_ranges_base): Likewise.
13259 (read_cutu_die_from_dwo, read_full_die_1): Update.
13260
436c571c
TT
132612020-03-26 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/read.c (read_import_statement, read_file_scope)
13264 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13265 (read_lexical_block_scope, read_call_site_scope)
13266 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13267 (handle_struct_member_die, process_structure_scope)
13268 (update_enumeration_type_from_children)
13269 (process_enumeration_scope, read_array_type, read_common_block)
13270 (read_namespace, read_module, read_subroutine_type): Update.
13271 (sibling_die): Remove.
13272
052c8bb8
TT
132732020-03-26 Tom Tromey <tom@tromey.com>
13274
13275 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13276 (build_type_psymtabs_reader, read_structure_type)
13277 (read_enumeration_type, read_full_die_1): Update.
13278 (dwarf2_attr_no_follow): Move to die.h.
13279 * dwarf2/die.h (struct die_info) <attr>: New method.
13280
2b24b6e4
TT
132812020-03-26 Tom Tromey <tom@tromey.com>
13282
13283 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13284 <base_address>: Now an optional.
13285 (dwarf2_find_base_address, dwarf2_rnglists_process)
13286 (dwarf2_ranges_process, fill_in_loclist_baton)
13287 (dwarf2_symbol_mark_computed): Update.
13288
c2d50fd0
TT
132892020-03-26 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/read.c (struct die_info): Move to die.h.
13292 * dwarf2/die.h: New file.
13293
0df7ad3a
TT
132942020-03-26 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13297 * dwarf2/read.c
13298 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13299 Move to line-header.c.
13300 (read_checked_initial_length_and_offset, read_formatted_entries):
13301 Likewise.
13302 (dwarf_decode_line_header): Split into two.
13303 * dwarf2/line-header.c
13304 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13305 Move from read.c.
13306 (read_checked_initial_length_and_offset, read_formatted_entries):
13307 Likewise.
13308 (dwarf_decode_line_header): New function, split from read.c.
13309
86c0bb4c
TT
133102020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13313 Declare method.
13314 * dwarf2/read.c (read_attribute_value): Update.
13315 (dwarf2_per_objfile::read_line_string): Rename from
13316 read_indirect_line_string.
13317 (read_formatted_entries): Update.
13318
2ef46c2f
TT
133192020-03-26 Tom Tromey <tom@tromey.com>
13320
13321 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13322 variable.
13323
4f9c1eda
TT
133242020-03-26 Tom Tromey <tom@tromey.com>
13325
13326 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13327 const.
13328 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13329 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13330 parameter const.
13331
5a0e026f
TT
133322020-03-26 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13335 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13336 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13337 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13338
8844c11b
TT
133392020-03-26 Tom Tromey <tom@tromey.com>
13340
13341 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13342 file_names_size, file_full_name, file_file_name>: Use const.
13343 <file_name_at, file_names>: Add const overload.
13344 * dwarf2/line-header.c (line_header::file_file_name)
13345 (line_header::file_full_name): Update.
13346
c90ec28a
TT
133472020-03-26 Tom Tromey <tom@tromey.com>
13348
13349 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13350 (macro_start_file, consume_improper_spaces)
13351 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13352 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13353 (dwarf_decode_macros): Move to macro.c.
13354 * dwarf2/macro.c: New file.
13355 * dwarf2/macro.h: New file.
13356 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13357
4f44ae6c
TT
133582020-03-26 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13361 method.
13362 * dwarf2/section.c: New method. From
13363 read_indirect_string_at_offset_from.
13364 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13365 (read_indirect_string_at_offset_from): Move to section.c.
13366 (read_indirect_string_at_offset): Rewrite.
13367 (read_indirect_line_string_at_offset): Remove.
13368 (read_indirect_string, read_indirect_line_string)
13369 (dwarf_decode_macro_bytes): Update.
13370
a0194fa8
TT
133712020-03-26 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2/section.h (struct dwarf2_section_info)
13374 <overload_complaint>: Declare.
13375 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13376 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13377 Rename from dwarf2_section_buffer_overflow_complaint.
13378 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13379 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13380
3d27bbdb
TT
133812020-03-26 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13384 Declare.
13385 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13386 Move from read.c.
13387 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13388 to section.c.
13389
9eac9650
TT
133902020-03-26 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13393
bf80d710
TT
133942020-03-26 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13397 "builder".
13398 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13399 parameter.
13400 (dwarf_decode_macros): Update.
13401
0314b390
TT
134022020-03-26 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2/read.c (read_attribute_value): Update.
13405 (read_indirect_string_from_dwz): Move to dwz.c; change into
13406 method.
13407 (dwarf_decode_macro_bytes): Update.
13408 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13409 * dwarf2/dwz.c: New file.
13410 * Makefile.in (COMMON_SFILES): Add dwz.c.
13411
9fda78b6
TT
134122020-03-26 Tom Tromey <tom@tromey.com>
13413
13414 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13415 * dwarf2/read.c: Add include.
13416 * dwarf2/index-write.c: Add include.
13417 * dwarf2/index-cache.c: Add include.
13418 * dwarf2/dwz.h: New file.
13419
33aa3c10
TT
134202020-03-25 Tom Tromey <tom@tromey.com>
13421
13422 * compile/compile-object-load.c (get_out_value_type): Mention
13423 correct symbol name in error message.
13424
d503b685
HD
134252020-03-25 Hannes Domani <ssbssa@yahoo.de>
13426
13427 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13428
7b1eff95
TV
134292020-03-25 Tom de Vries <tdevries@suse.de>
13430
13431 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13432 * symmisc.c (dump_symtab_1): Print user and includes fields.
13433 (maintenance_info_symtabs): Same.
13434
dd895392
AB
134352020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13436
13437 PR gdb/25534
13438 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13439 (riscv_regcache_cooked_write): New function.
13440 (riscv_push_dummy_call): Use new function.
13441 (riscv_return_value): Likewise.
13442
5ab2fbf1
SM
134432020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13444
13445 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13446 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13447 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13448 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13449 * infrun.c (follow_fork): Likewise.
13450 (follow_fork_inferior): Likewise.
13451 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13452 * linux-nat.h (class linux_nat_target): Likewise.
13453 * remote.c (class remote_target) <follow_fork>: Likewise.
13454 (remote_target::follow_fork): Likewise.
13455 * target-delegates.c: Re-generate.
13456 * target.c (default_follow_fork): Likewise.
13457 (target_follow_fork): Likewise.
13458 * target.h (struct target_ops) <follow_fork>: Likewise.
13459 (target_follow_fork): Likewise.
13460
a64fafb5
TV
134612020-03-24 Tom de Vries <tdevries@suse.de>
13462
13463 * psymtab.c (maintenance_info_psymtabs): Print user field.
13464
fe26d3a3
TT
134652020-03-20 Tom Tromey <tromey@adacore.com>
13466
13467 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13468 const.
13469 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13470 const.
13471
c884cc46
SM
134722020-03-20 Simon Marchi <simon.marchi@efficios.com>
13473
13474 * ptrace.m4: Don't check for ptrace declaration.
13475 * config.in: Re-generate.
13476 * configure: Re-generate.
13477 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13478 not defined.
13479
1ff700c2
KR
134802020-03-20 Kamil Rytarowski <n54@gmx.com>
13481
13482 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13483 `PTRACE_TYPE_RET'.
13484 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13485 * sparc-nat.c (gdb_ptrace): Likewise.
13486 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13487
f7d4f0b1
TT
134882020-03-20 Tom Tromey <tromey@adacore.com>
13489
13490 * c-exp.y (lex_one_token): Fix assert.
13491
f67210ff
TT
134922020-03-20 Tom Tromey <tromey@adacore.com>
13493
13494 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13495 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13496 strncpy call.
13497
1773be9e
TT
134982020-03-20 Tom Tromey <tromey@adacore.com>
13499
13500 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13501
70304be9
TT
135022020-03-20 Tom Tromey <tromey@adacore.com>
13503
13504 * ada-valprint.c (print_variant_part): Remove parameters; switch
13505 to value-based API.
13506 (print_field_values): Likewise.
13507 (ada_val_print_struct_union): Likewise.
13508 (ada_value_print_1): Update.
13509
9faa006d
KR
135102020-03-20 Kamil Rytarowski <n54@gmx.com>
13511
13512 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13513 nbsd_nat_target instead of inf_ptrace_target.
13514 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13515 nbsd_nat_target.
13516
4a90f062
KR
135172020-03-20 Kamil Rytarowski <n54@gmx.com>
13518
13519 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13520 it to the ptrace call.
13521 * (store_registers): Likewise.
13522
135232020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13524
13525 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13526 it to the ptrace call.
13527 * (store_registers): Likewise.
13528
2d07da27
LM
135292020-03-19 Luis Machado <luis.machado@linaro.org>
13530
13531 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13532 valid, fetch vg value from ptrace.
13533
f09db380
KR
135342020-03-19 Kamil Rytarowski <n54@gmx.com>
13535 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13536 * inf-ptrace.c: Likewise.
13537 * (gdb_ptrace): Add.
13538 * (inf_ptrace_target::resume): Update.
13539 * (inf_ptrace_target::xfer_partial): Likewise.
13540 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13541 * (inf_ptrace_peek_poke): Update.
13542
fcc7376e
KR
135432020-03-19 Kamil Rytarowski <n54@gmx.com>
13544
13545 * x86-bsd-nat.c (gdb_ptrace): New.
13546 * (x86bsd_dr_set): Add new argument `ptid'.
13547 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13548 x86bsd_dr_set_addr): Update.
13549
cada5fc9
AB
135502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13551
13552 * remote.c (remote_target::process_stop_reply): Handle events for
13553 all threads differently.
13554
19a2740f
AB
135552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13556
13557 * completer.c (completion_tracker::remove_completion): Define new
13558 function.
13559 * completer.h (completion_tracker::remove_completion): Declare new
13560 function.
13561 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13562 when adding a C++ function symbol.
13563
724fd9ba
AB
135642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13565
13566 * completer.c (completion_tracker::completion_hash_entry): Define
13567 new class.
13568 (advance_to_filename_complete_word_point): Call
13569 recompute_lowest_common_denominator.
13570 (completion_tracker::completion_tracker): Call discard_completions
13571 to setup the hash table.
13572 (completion_tracker::discard_completions): Allow for being called
13573 from the constructor, pass new equal function, and element deleter
13574 when constructing the hash table. Initialise new class member
13575 variables.
13576 (completion_tracker::maybe_add_completion): Remove use of
13577 m_entries_vec, and store more information into m_entries_hash.
13578 (completion_tracker::recompute_lcd_visitor): New function, most
13579 content taken from...
13580 (completion_tracker::recompute_lowest_common_denominator):
13581 ...here, this now just visits each item in the hash calling the
13582 above visitor.
13583 (completion_tracker::build_completion_result): Remove use of
13584 m_entries_vec, call recompute_lowest_common_denominator.
13585 * completer.h (completion_tracker::have_completions): Remove use
13586 of m_entries_vec.
13587 (completion_tracker::completion_hash_entry): Declare new class.
13588 (completion_tracker::recompute_lowest_common_denominator): Change
13589 function signature.
13590 (completion_tracker::recompute_lcd_visitor): Declare new function.
13591 (completion_tracker::m_entries_vec): Delete.
13592 (completion_tracker::m_entries_hash): Initialize to NULL.
13593 (completion_tracker::m_lowest_common_denominator_valid): New
13594 member variable.
13595 (completion_tracker::m_lowest_common_denominator_max_length): New
13596 member variable.
13597
5a82b8a1
KR
135982020-03-17 Kamil Rytarowski <n54@gmx.com>
13599
13600 * regformats/regdef.h: Put reg in gdb namespace.
13601
fb516a69
KR
136022020-03-17 Kamil Rytarowski <n54@gmx.com>
13603
13604 * i386-bsd-nat.c (gdb_ptrace): New.
13605 * (i386bsd_fetch_inferior_registers,
13606 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13607 * (i386bsd_fetch_inferior_registers,
13608 i386bsd_store_inferior_registers) Use gdb_ptrace.
13609
1c0aa1fb
KR
136102020-03-17 Kamil Rytarowski <n54@gmx.com>
13611
13612 * amd64-bsd-nat.c (gdb_ptrace): New.
13613 * (amd64bsd_fetch_inferior_registers,
13614 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13615 * (amd64bsd_fetch_inferior_registers,
13616 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13617
5ccd2fb7
KR
136182020-03-17 Kamil Rytarowski <n54@gmx.com>
13619
13620 * user-regs.c (user_reg::read): Rename to...
13621 (user_reg::xread): ...this.
13622 * (append_user_reg): Rename argument `read' to `xread'.
13623 * (user_reg_add_builtin): Likewise.
13624 * (user_reg_add): Likewise.
13625 * (value_of_user_reg): Likewise.
13626
2108a63a
KR
136272020-03-17 Kamil Rytarowski <n54@gmx.com>
13628
13629 * sparc-nat.c (gdb_ptrace): New.
13630 * sparc-nat.c (sparc_fetch_inferior_registers)
13631 (sparc_store_inferior_registers) Remove obsolete comment.
13632 * sparc-nat.c (sparc_fetch_inferior_registers)
13633 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13634 * sparc-nat.c (sparc_fetch_inferior_registers)
13635 (sparc_store_inferior_registers) Use gdb_ptrace.
13636
a225c9a8
KR
136372020-03-17 Kamil Rytarowski <n54@gmx.com>
13638
13639 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13640 it to the ptrace call.
13641 * sh-nbsd-nat.c (store_registers): Likewise.
13642
98097623
KR
136432020-03-17 Kamil Rytarowski <n54@gmx.com>
13644
13645 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13646 nbsd_nat_target instead of inf_ptrace_target.
13647 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13648 nbsd_nat_target.
13649
9e38d619
KR
136502020-03-17 Kamil Rytarowski <n54@gmx.com>
13651
13652 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13653
a2ecbe9f
KR
136542020-03-17 Kamil Rytarowski <n54@gmx.com>
13655
13656 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13657 <sys/sysctl.h>.
13658 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13659
58990295
TV
136602020-03-17 Tom de Vries <tdevries@suse.de>
13661
13662 PR gdb/23710
13663 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13664 fields.
13665 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13666 fields.
13667 (process_imported_unit_die): Skip import of c++ CUs.
13668
771dd3a8
TT
136692020-03-16 Tom Tromey <tom@tromey.com>
13670
13671 * p-valprint.c (pascal_object_print_value): Initialize
13672 base_value.
13673
817a7585
AK
136742020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13675 Shahab Vahedi <shahab@synopsys.com>
13676
13677 * Makefile.in: Add arch/arc.o
13678 * configure.tgt: Likewise.
13679 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13680 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13681 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13682 * arc-tdep.h (arc_read_description): Add proto type.
13683 * arch/arc.c: New file.
13684 * arch/arc.h: Likewise.
13685 * features/Makefile: Replace old target descriptions with new.
13686 * features/arc-arcompact.c: Remove.
13687 * features/arc-arcompact.xml: Likewise.
13688 * features/arc-v2.c: Likewise
13689 * features/arc-v2.xml: Likewise
13690 * features/arc/aux-arcompact.xml: New file.
13691 * features/arc/aux-v2.xml: Likewise.
13692 * features/arc/core-arcompact.xml: Likewise.
13693 * features/arc/core-v2.xml: Likewise.
13694 * features/arc/aux-arcompact.c: Generate.
13695 * features/arc/aux-v2.c: Likewise.
13696 * features/arc/core-arcompact.c: Likewise.
13697 * features/arc/core-v2.c: Likewise.
13698 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13699
67430cd0
TT
137002020-03-16 Tom Tromey <tromey@adacore.com>
13701
13702 PR gdb/25663:
13703 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13704 putting value into bcache.
13705
30efb6c7
SM
137062020-03-16 Simon Marchi <simon.marchi@efficios.com>
13707
13708 PR gdb/21500
13709 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13710 to...
13711 (amd64_windows_init_abi_common): ... this. Don't set size of
13712 long type.
13713 (amd64_windows_init_abi): New function.
13714 (amd64_cygwin_init_abi): New function.
13715 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13716 the Cygwin OS ABI.
13717 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13718 comment.
13719
8db52437
SM
137202020-03-16 Simon Marchi <simon.marchi@efficios.com>
13721
13722 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13723 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13724 (pe_import_directory_entry): New struct type.
13725 (is_linked_with_cygwin_dll): New function.
13726 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13727 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13728 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13729
5982a56a
SM
137302020-03-16 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13733 i386_cygwin_core_osabi_sniffer.
13734
7a1998df
SM
137352020-03-16 Simon Marchi <simon.marchi@efficios.com>
13736
13737 * i386-cygwin-tdep.c: Rename to...
13738 * i386-windows-tdep.c: ... this.
13739 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13740 i386-windows-tdep.c.
13741 * configure.tgt: Likewise.
13742
053205cc
SM
137432020-03-16 Simon Marchi <simon.marchi@efficios.com>
13744
13745 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13746 * osabi.c (gdb_osabi_names): Add "Windows".
13747 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13748 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13749 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13750 i386_cygwin_osabi_sniffer.
13751 (_initialize_i386_cygwin_tdep): Register OS ABI
13752 GDB_OSABI_WINDOWS for i386.
13753 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13754 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13755 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13756 for x86-64.
13757 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13758 when the target matches '*-*-mingw*'.
13759
fe4b2ee6
SM
137602020-03-16 Simon Marchi <simon.marchi@efficios.com>
13761
13762 * defs.h (enum gdb_osabi): Move to...
13763 * osabi.h (enum gdb_osabi): ... here.
13764 * gdbarch.sh: Include osabi.h in gdbarch.h.
13765 * gdbarch.h: Re-generate.
13766
cb9b645d
SM
137672020-03-16 Simon Marchi <simon.marchi@efficios.com>
13768
13769 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13770 function.
13771 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13772
3293bbaf
TT
137732020-03-14 Tom Tromey <tom@tromey.com>
13774
13775 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13776 for C++.
13777 (c_type_print_modifier): Likewise. Add "language" parameter.
13778 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13779 (c_type_print_base_1): Update.
13780 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13781 constants.
13782 * type-stack.c (type_stack::insert): Handle tp_atomic and
13783 tp_restrict.
13784 (type_stack::follow_type_instance_flags): Likewise.
13785 (type_stack::follow_types): Likewise. Merge type-following code.
13786 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13787 (space_identifier, cv_with_space_id)
13788 (const_or_volatile_or_space_identifier_noopt)
13789 (const_or_volatile_or_space_identifier): Remove.
13790 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13791 rules.
13792 (ptr_operator, typebase): Update.
13793 (enum token_flag) <FLAG_C>: New constant.
13794 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13795 "_Atomic".
13796 (lex_one_token): Handle FLAG_C.
13797
154151a6
KR
137982020-03-14 Kamil Rytarowski <n54@gmx.com>
13799
13800 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13801 it to the ptrace call.
13802 * m68k-bsd-nat.c (store_registers): Likewise.
13803
bc107784
KR
138042020-03-14 Kamil Rytarowski <n54@gmx.com>
13805
13806 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13807 gdb_byte *.
13808 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13809 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13810 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13811
01a80117
KR
138122020-03-14 Kamil Rytarowski <n54@gmx.com>
13813
13814 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13815 nbsd_nat_target instead of inf_ptrace_target.
13816 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13817 nbsd_nat_target.
13818
f90280ca
KR
138192020-03-14 Kamil Rytarowski <n54@gmx.com>
13820
13821 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13822 register_t.
13823
6def66f1
KR
138242020-03-14 Kamil Rytarowski <n54@gmx.com>
13825
13826 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13827 it to the ptrace call.
13828 * alpha-bsd-nat.c (store_registers): Likewise.
13829
66eaca97
KR
138302020-03-14 Kamil Rytarowski <n54@gmx.com>
13831
13832 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13833 includes.
13834 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13835 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13836 fill_fpregset): Likewise.
13837
4fed520b
KR
138382020-03-14 Kamil Rytarowski <n54@gmx.com>
13839
13840 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13841 nbsd_nat_target instead of inf_ptrace_target.
13842 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13843 nbsd_nat_target.
13844
2190cf06
KR
138452020-03-14 Kamil Rytarowski <n54@gmx.com>
13846
13847 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13848 register_t.
13849
75c56d3d
KR
138502020-03-14 Kamil Rytarowski <n54@gmx.com>
13851
13852 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13853 it to the ptrace call.
13854 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13855 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13856 * arm-nbsd-nat.c (store_register): Likewise.
13857 * arm-nbsd-nat.c (store_regs): Likewise.
13858 * arm-nbsd-nat.c (store_fp_register): Likewise.
13859 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13860
6018d381
KR
138612020-03-14 Kamil Rytarowski <n54@gmx.com>
13862
13863 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13864 nbsd_nat_target instead of inf_ptrace_target.
13865 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13866 nbsd_nat_target.
13867
013f99f0
KR
138682020-03-14 Kamil Rytarowski <n54@gmx.com>
13869
13870 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13871 it to the ptrace call.
13872 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13873
12753073
KR
138742020-03-14 Kamil Rytarowski <n54@gmx.com>
13875
6227b330
KR
13876 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13877 it to the ptrace call.
13878 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13879
138802020-03-14 Kamil Rytarowski <n54@gmx.com>
13881
13882 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13883 gdb_byte *.
12753073
KR
13884 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13885
d5be5fa4
KR
138862020-03-14 Kamil Rytarowski <n54@gmx.com>
13887
13888 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13889 instead of inf_ptrace_target.
13890 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13891 nbsd_nat_target.
13892
8110f842
KR
138932020-03-14 Kamil Rytarowski <n54@gmx.com>
13894
13895 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13896 register_t.
13897
52feded7
KR
138982020-03-14 Kamil Rytarowski <n54@gmx.com>
13899
13900 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13901 register_t.
13902
25567eee
KR
139032020-03-14 Kamil Rytarowski <n54@gmx.com>
13904
13905 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13906 register_t.
13907
426a9c18
TT
139082020-03-13 Tom Tromey <tom@tromey.com>
13909
13910 * value.h (val_print): Don't declare.
13911 * valprint.h (val_print_array_elements)
13912 (val_print_scalar_formatted, generic_val_print): Don't declare.
13913 * valprint.c (generic_val_print_array): Take a struct value.
13914 (generic_val_print_ptr, generic_val_print_memberptr)
13915 (generic_val_print_bool, generic_val_print_int)
13916 (generic_val_print_char, generic_val_print_complex)
13917 (generic_val_print): Remove.
13918 (generic_value_print): Update.
13919 (do_val_print): Remove unused parameters. Don't call
13920 la_val_print.
13921 (val_print): Remove.
13922 (common_val_print): Update. Don't call value_check_printable.
13923 (val_print_scalar_formatted, val_print_array_elements): Remove.
13924 * rust-lang.c (rust_val_print): Remove.
13925 (rust_language_defn): Update.
13926 * p-valprint.c (pascal_val_print): Remove.
13927 (pascal_value_print_inner): Update.
13928 (pascal_object_print_val_fields, pascal_object_print_val):
13929 Remove.
13930 (pascal_object_print_static_field): Update.
13931 * p-lang.h (pascal_val_print): Don't declare.
13932 * p-lang.c (pascal_language_defn): Update.
13933 * opencl-lang.c (opencl_language_defn): Update.
13934 * objc-lang.c (objc_language_defn): Update.
13935 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13936 * m2-lang.h (m2_val_print): Don't declare.
13937 * m2-lang.c (m2_language_defn): Update.
13938 * language.h (struct language_defn) <la_val_print>: Remove.
13939 * language.c (unk_lang_value_print_inner): Rename. Change
13940 argument types.
13941 (unknown_language_defn, auto_language_defn): Update.
13942 * go-valprint.c (go_val_print): Remove.
13943 * go-lang.h (go_val_print): Don't declare.
13944 * go-lang.c (go_language_defn): Update.
13945 * f-valprint.c (f_val_print): Remove.
13946 * f-lang.h (f_value_print): Don't declare.
13947 * f-lang.c (f_language_defn): Update.
13948 * d-valprint.c (d_val_print): Remove.
13949 * d-lang.h (d_value_print): Don't declare.
13950 * d-lang.c (d_language_defn): Update.
13951 * cp-valprint.c (cp_print_value_fields)
13952 (cp_print_value_fields_rtti, cp_print_value): Remove.
13953 (cp_print_static_field): Update.
13954 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13955 (c_val_print_struct, c_val_print_union, c_val_print_int)
13956 (c_val_print_memberptr, c_val_print): Remove.
13957 * c-lang.h (c_val_print_array, cp_print_value_fields)
13958 (cp_print_value_fields_rtti): Don't declare.
13959 * c-lang.c (c_language_defn, cplus_language_defn)
13960 (asm_language_defn, minimal_language_defn): Update.
13961 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13962 (ada_val_print_enum): Take a struct value.
13963 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13964 (ada_val_print): Remove.
13965 (ada_value_print_1): Update.
13966 (printable_val_type): Remove.
13967 * ada-lang.h (ada_val_print): Don't declare.
13968 * ada-lang.c (ada_language_defn): Update.
13969
42331a1e
TT
139702020-03-13 Tom Tromey <tom@tromey.com>
13971
13972 * valprint.c (do_val_print): Update.
13973 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13974 a struct value.
13975 (value_to_value_object_no_release): Declare.
13976 * python/py-value.c (value_to_value_object_no_release): New
13977 function.
13978 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13979 struct value.
13980 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13981 function.
13982 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13983 a struct value.
13984 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13985 Declare.
13986 (gdbscm_apply_val_pretty_printer): Take a struct value.
13987 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13988 value.
13989 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13990 value.
13991 * extension-priv.h (struct extension_language_ops)
13992 <apply_val_pretty_printer>: Take a struct value.
13993 * cp-valprint.c (cp_print_value): Create a struct value.
13994 (cp_print_value): Update.
13995
3a916a97
TT
139962020-03-13 Tom Tromey <tom@tromey.com>
13997
13998 * ada-valprint.c (print_field_values): Call common_val_print.
13999
b59eac37
TT
140002020-03-13 Tom Tromey <tom@tromey.com>
14001
14002 * ada-valprint.c (val_print_packed_array_elements): Remove
14003 bitoffset and val parameters. Call common_val_print.
14004 (ada_val_print_string): Remove offset, address, and original_value
14005 parameters.
14006 (ada_val_print_array): Update.
14007 (ada_value_print_array): New function.
14008 (ada_value_print_1): Call it.
14009
03371129
TT
140102020-03-13 Tom Tromey <tom@tromey.com>
14011
14012 * ada-valprint.c (ada_value_print): Use common_val_print.
14013
2e088f8b
TT
140142020-03-13 Tom Tromey <tom@tromey.com>
14015
14016 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14017
39ef85a8
TT
140182020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * ada-valprint.c (ada_value_print_num): New function.
14021 (ada_value_print_1): Use it.
14022
b9fa6e07
TT
140232020-03-13 Tom Tromey <tom@tromey.com>
14024
14025 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14026
416595d6
TT
140272020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * ada-valprint.c (ada_value_print_ptr): New function.
14030 (ada_value_print_1): Use it.
14031
5b5e15ec
TT
140322020-03-13 Tom Tromey <tom@tromey.com>
14033
14034 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14035 call common_val_print.
14036 (ada_val_print_1): Update.
14037 (ada_value_print_1): New function.
14038 (ada_value_print_inner): Rewrite.
14039
fbf54e75
TT
140402020-03-13 Tom Tromey <tom@tromey.com>
14041
14042 * cp-valprint.c (cp_print_value_fields): Update.
14043 (cp_print_value): New function.
14044
64b653ca
TT
140452020-03-13 Tom Tromey <tom@tromey.com>
14046
14047 * m2-valprint.c (m2_value_print_inner): Use
14048 cp_print_value_fields.
14049 * cp-valprint.c (cp_print_value_fields): New function.
14050 * c-valprint.c (c_value_print_struct): New function.
14051 (c_value_print_inner): Use c_value_print_struct.
14052 * c-lang.h (cp_print_value_fields): Declare.
14053
6999f067
TT
140542020-03-13 Tom Tromey <tom@tromey.com>
14055
14056 * c-valprint.c (c_value_print_array): New function.
14057 (c_value_print_inner): Use it.
14058
ce80b8bd
TT
140592020-03-13 Tom Tromey <tom@tromey.com>
14060
14061 * c-valprint.c (c_value_print_memberptr): New function.
14062 (c_value_print_inner): Use it.
14063
2faac269
TT
140642020-03-13 Tom Tromey <tom@tromey.com>
14065
14066 * c-valprint.c (c_value_print_int): New function.
14067 (c_value_print_inner): Use it.
14068
da3e2c29
TT
140692020-03-13 Tom Tromey <tom@tromey.com>
14070
14071 * c-valprint.c (c_value_print_ptr): New function.
14072 (c_value_print_inner): Use it.
14073
50836231
TT
140742020-03-13 Tom Tromey <tom@tromey.com>
14075
14076 * c-valprint.c (c_value_print_inner): Rewrite.
14077
4f412b6e
TT
140782020-03-13 Tom Tromey <tom@tromey.com>
14079
14080 * valprint.c (generic_value_print_complex): New function.
14081 (generic_value_print): Use it.
14082
f5354008
TT
140832020-03-13 Tom Tromey <tom@tromey.com>
14084
14085 * valprint.c (generic_val_print_float): Don't call
14086 val_print_scalar_formatted.
14087 (generic_val_print, generic_value_print): Update.
14088
3eec3b05
TT
140892020-03-13 Tom Tromey <tom@tromey.com>
14090
14091 * valprint.c (generic_value_print_char): New function
14092 (generic_value_print): Use it.
14093
fdddfccb
TT
140942020-03-13 Tom Tromey <tom@tromey.com>
14095
14096 * valprint.c (generic_value_print_int): New function.
14097 (generic_value_print): Use it.
14098
6dde7521
TT
140992020-03-13 Tom Tromey <tom@tromey.com>
14100
14101 * valprint.c (generic_value_print_bool): New function.
14102 (generic_value_print): Use it.
14103
4112d2e6
TT
141042020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (generic_val_print_func): Simplify.
14107 (generic_val_print, generic_value_print): Update.
14108
65786af6
TT
141092020-03-13 Tom Tromey <tom@tromey.com>
14110
14111 * valprint.c (generic_val_print_flags): Remove.
14112 (generic_val_print, generic_value_print): Update.
14113 (val_print_type_code_flags): Add original_value parameter.
14114
40f3ce18
TT
141152020-03-13 Tom Tromey <tom@tromey.com>
14116
14117 * valprint.c (generic_val_print): Update.
14118 (generic_value_print): Update.
14119 * valprint.c (generic_val_print_enum): Don't call
14120 val_print_scalar_formatted.
14121
2a5b130b
TT
141222020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14125 * valprint.c (generic_value_print_ptr): New function.
14126
abc66ce9
TT
141272020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * valprint.c (generic_value_print): Rewrite.
14130
07a32858
TT
141312020-03-13 Tom Tromey <tom@tromey.com>
14132
14133 * p-valprint.c (pascal_object_print_value_fields)
14134 (pascal_object_print_value): New functions.
14135
64d64d3a
TT
141362020-03-13 Tom Tromey <tom@tromey.com>
14137
14138 * p-valprint.c (pascal_value_print_inner): Rewrite.
14139
6a95a1f5
TT
141402020-03-13 Tom Tromey <tom@tromey.com>
14141
14142 * f-valprint.c (f_value_print_innner): Rewrite.
14143
59fcdac6
TT
141442020-03-13 Tom Tromey <tom@tromey.com>
14145
14146 * m2-valprint.c (m2_print_unbounded_array): New overload.
14147 (m2_print_unbounded_array): Update.
14148 (m2_print_array_contents): Take a struct value.
14149 (m2_value_print_inner): Rewrite.
14150
d133c3e1
TT
141512020-03-13 Tom Tromey <tom@tromey.com>
14152
14153 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14154 (d_value_print_inner): New function.
14155 * d-lang.h (d_value_print_inner): Declare.
14156 * d-lang.c (d_language_defn): Use d_value_print_inner.
14157
23b0f06b
TT
141582020-03-13 Tom Tromey <tom@tromey.com>
14159
14160 * go-valprint.c (go_value_print_inner): New function.
14161 * go-lang.h (go_value_print_inner): Declare.
14162 * go-lang.c (go_language_defn): Use go_value_print_inner.
14163
5f56f7cb
TT
141642020-03-13 Tom Tromey <tom@tromey.com>
14165
14166 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14167 API.
14168 (rust_val_print): Rewrite.
14169 (rust_value_print_inner): New function, from rust_val_print.
14170 (rust_language_defn): Use rust_value_print_inner.
14171
26792ee0
TT
141722020-03-13 Tom Tromey <tom@tromey.com>
14173
14174 * ada-valprint.c (ada_value_print_inner): New function.
14175 * ada-lang.h (ada_value_print_inner): Declare.
14176 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14177
24051bbe
TT
141782020-03-13 Tom Tromey <tom@tromey.com>
14179
14180 * f-valprint.c (f_value_print_innner): New function.
14181 * f-lang.h (f_value_print_innner): Declare.
14182 * f-lang.c (f_language_defn): Use f_value_print_innner.
14183
c0941be6
TT
141842020-03-13 Tom Tromey <tom@tromey.com>
14185
14186 * p-valprint.c (pascal_value_print_inner): New function.
14187 * p-lang.h (pascal_value_print_inner): Declare.
14188 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14189
62c4663d
TT
141902020-03-13 Tom Tromey <tom@tromey.com>
14191
14192 * m2-valprint.c (m2_value_print_inner): New function.
14193 * m2-lang.h (m2_value_print_inner): Declare.
14194 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14195
62182190
TT
141962020-03-13 Tom Tromey <tom@tromey.com>
14197
14198 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14199 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14200 * c-valprint.c (c_value_print_inner): New function.
14201 * c-lang.h (c_value_print_inner): Declare.
14202 * c-lang.c (c_language_defn, cplus_language_defn)
14203 (asm_language_defn, minimal_language_defn): Use
14204 c_value_print_inner.
14205
1e592a8a
TT
142062020-03-13 Tom Tromey <tom@tromey.com>
14207
14208 * p-valprint.c (pascal_object_print_value_fields): Now static.
14209 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14210
7fe471e9
TT
142112020-03-13 Tom Tromey <tom@tromey.com>
14212
14213 * c-valprint.c (c_val_print_array): Simplify.
14214
d121c6ce
TT
142152020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * valprint.c (value_print_array_elements): New function.
14218 * valprint.h (value_print_array_elements): Declare.
14219
4dba70ee
TT
142202020-03-13 Tom Tromey <tom@tromey.com>
14221
14222 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14223 * mips-tdep.c (mips_print_register): Use
14224 value_print_scalar_formatted.
14225
4f9ae810
TT
142262020-03-13 Tom Tromey <tom@tromey.com>
14227
14228 * valprint.h (value_print_scalar_formatted): Declare.
14229 * valprint.c (value_print_scalar_formatted): New function.
14230
156bfec9
TT
142312020-03-13 Tom Tromey <tom@tromey.com>
14232
14233 * valprint.h (generic_value_print): Declare.
14234 * valprint.c (generic_value_print): New function.
14235
2b4e573d
TT
142362020-03-13 Tom Tromey <tom@tromey.com>
14237
14238 * valprint.c (do_val_print): Call la_value_print_inner, if
14239 available.
14240 * rust-lang.c (rust_language_defn): Update.
14241 * p-lang.c (pascal_language_defn): Update.
14242 * opencl-lang.c (opencl_language_defn): Update.
14243 * objc-lang.c (objc_language_defn): Update.
14244 * m2-lang.c (m2_language_defn): Update.
14245 * language.h (struct language_defn) <la_value_print_inner>: New
14246 member.
14247 * language.c (unknown_language_defn, auto_language_defn): Update.
14248 * go-lang.c (go_language_defn): Update.
14249 * f-lang.c (f_language_defn): Update.
14250 * d-lang.c (d_language_defn): Update.
14251 * c-lang.c (c_language_defn, cplus_language_defn)
14252 (asm_language_defn, minimal_language_defn): Update.
14253 * ada-lang.c (ada_language_defn): Update.
14254
a1f6a07c
TT
142552020-03-13 Tom Tromey <tom@tromey.com>
14256
14257 * c-valprint.c (c_value_print): Use common_val_print.
14258
410cf315
TT
142592020-03-13 Tom Tromey <tom@tromey.com>
14260
14261 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14262
72a45c93
TT
142632020-03-13 Tom Tromey <tom@tromey.com>
14264
14265 * f-valprint.c (f77_print_array_1, f_val_print): Use
14266 common_val_print.
14267
040f66bd
TT
142682020-03-13 Tom Tromey <tom@tromey.com>
14269
14270 * riscv-tdep.c (riscv_print_one_register_info): Use
14271 common_val_print.
14272
a6e05a6c
TT
142732020-03-13 Tom Tromey <tom@tromey.com>
14274
14275 * mi/mi-main.c (output_register): Use common_val_print.
14276
3444c526
TT
142772020-03-13 Tom Tromey <tom@tromey.com>
14278
14279 * infcmd.c (default_print_one_register_info): Use
14280 common_val_print.
14281
c2a44efe
TT
142822020-03-13 Tom Tromey <tom@tromey.com>
14283
14284 * valprint.h (common_val_print_checked): Declare.
14285 * valprint.c (common_val_print_checked): New function.
14286 * stack.c (print_frame_arg): Use common_val_print_checked.
14287
b0c26e99
TT
142882020-03-13 Tom Tromey <tom@tromey.com>
14289
14290 * valprint.c (do_val_print): New function, from val_print.
14291 (val_print): Use do_val_print.
14292 (common_val_print): Use do_val_print.
14293
ce3acbe9
TT
142942020-03-13 Tom Tromey <tom@tromey.com>
14295
14296 * valprint.c (value_print): Use scoped_value_mark.
14297
96c7f873
TV
142982020-03-13 Tom de Vries <tdevries@suse.de>
14299
14300 PR symtab/25646
14301 * psymtab.c (partial_symtab::partial_symtab): Don't set
14302 globals_offset and statics_offset. Push element onto
14303 current_global_psymbols and current_static_psymbols stacks.
14304 (concat): New function.
14305 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14306 element from current_global_psymbols and current_static_psymbols
14307 stacks. Concat popped elements to global_psymbols and
14308 static_symbols.
14309 (add_psymbol_to_list): Use current_global_psymbols and
14310 current_static_psymbols stacks.
14311 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14312 current_static_psymbols fields.
14313
6ba0a321
CB
143142020-03-12 Christian Biesinger <cbiesinger@google.com>
14315
14316 * corelow.c (sniff_core_bfd): Remove.
14317 (class core_target) <m_core_vec>: Remove.
14318 (core_target::core_target): Update.
14319 (core_file_fns): Remove.
14320 (deprecated_add_core_fns): Remove.
14321 (default_core_sniffer): Remove.
14322 (sniff_core_bfd): Remove.
14323 (default_check_format): Remove.
14324 (gdb_check_format): Remove.
14325 (core_target_open): Update.
14326 (core_target::get_core_register_section): Update.
14327 (get_core_registers_cb): Update.
14328 (core_target::fetch_registers): Update.
14329 * gdbcore.h (struct core_fns): Remove.
14330 (deprecated_add_core_fns): Remove.
14331 (default_core_sniffer): Remove.
14332 (default_check_format): Remove.
14333
227031b2
TT
143342020-03-12 Tom Tromey <tom@tromey.com>
14335
14336 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14337 CORE_ADDR.
14338 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14339
53807e9f
TT
143402020-03-12 Tom Tromey <tom@tromey.com>
14341
14342 * remote.c (remote_target::download_tracepoint)
14343 (remote_target::enable_tracepoint)
14344 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14345 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14346 sprintf_vma.
14347
64f25102
TT
143482020-03-12 Tom Tromey <tom@tromey.com>
14349
14350 * symfile-mem.c: Update CORE_ADDR size assert.
14351
272cd5a3
SM
143522020-03-12 Simon Marchi <simon.marchi@efficios.com>
14353
14354 * selftest.m4: Move to gdbsupport/.
14355 * acinclude.m4: Update path to selftest.m4.
14356
74cd3f9d
SM
143572020-03-12 Simon Marchi <simon.marchi@efficios.com>
14358
14359 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14360 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14361 gdbarch-selfselftests.c and selftest-arch.c.
14362 (SUBDIR_UNITTESTS_OBS): Rename to...
14363 (SELFTESTS_OBS): ... this.
14364 (COMMON_SFILES): Remove disasm-selftests.c and
14365 gdbarch-selftests.c.
14366 * configure.ac: Don't add selftest-arch.{c,o} to
14367 CONFIG_{SRCS,OBS}.
14368 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14369 preprocessor conditions.
14370
db6878ac
SM
143712020-03-12 Simon Marchi <simon.marchi@efficios.com>
14372
14373 * configure.ac: Don't source bfd/development.sh.
14374 * selftest.m4: Modify comment.
14375 * configure: Re-generate.
14376
4d696a5c
SM
143772020-03-12 Simon Marchi <simon.marchi@efficios.com>
14378
14379 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14380 not "true" or "false".
14381 * configure: Re-generate.
14382
8dd8e1c7
CB
143832020-03-12 Christian Biesinger <cbiesinger@google.com>
14384
14385 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14386 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14387 renamed to arm_nbsd_supply_gregset.
14388 (fetch_register): Update to call arm_nbsd_supply_gregset.
14389 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14390 (arm_netbsd_nat_target::fetch_registers): Update.
14391 (fetch_elfcore_registers): Removed.
14392 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14393 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14394 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14395 not require NetBSD system headers.
14396 (arm_nbsd_regset): New struct.
14397 (arm_nbsd_iterate_over_regset_sections): New function.
14398 (arm_netbsd_init_abi_common): Updated to call
14399 set_gdbarch_iterate_over_regset_sections.
14400 * arm-nbsd-tdep.h: New file.
14401
dd69bf7a
KB
144022020-03-11 Kevin Buettner <kevinb@redhat.com>
14403
14404 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14405 recursion.
14406
a0761e34
SM
144072020-03-11 Simon Marchi <simon.marchi@efficios.com>
14408
14409 * configure: Re-generate.
14410
e7a82140
TT
144112020-03-11 Tom Tromey <tromey@adacore.com>
14412
14413 * ada-typeprint.c (print_choices): Fix comment.
14414
dcc050c8
AB
144152020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14416
14417 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14418 previous item in the list, when the list has no items.
14419
1c33af77
TV
144202020-03-11 Tom de Vries <tdevries@suse.de>
14421
14422 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14423 PROP_LOCLIST handling code.
14424
8c95582d
AB
144252020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14426
14427 * buildsym-legacy.c (record_line): Pass extra parameter to
14428 record_line.
14429 * buildsym.c (buildsym_compunit::record_line): Take an extra
14430 parameter, reduce duplication in the line table, and record the
14431 is_stmt flag in the line table.
14432 * buildsym.h (buildsym_compunit::record_line): Add extra
14433 parameter.
14434 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14435 non-statement lines.
14436 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14437 this to the symtab builder.
14438 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14439 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14440 through to dwarf_record_line_1.
14441 * infrun.c (process_event_stop_test): When stepping, don't stop at
14442 a non-statement instruction, and only refresh the step info when
14443 we land in the middle of a line's range. Also add an extra
14444 comment.
14445 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14446 field.
14447 * record-btrace.c (btrace_find_line_range): Only record lines
14448 marked as is-statement.
14449 * stack.c (frame_show_address): Show the frame address if we are
14450 in a non-statement sal.
14451 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14452 (maintenance_print_one_line_table): Print a header for the is_stmt
14453 column, and include is_stmt information in the output.
14454 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14455 preference to non-statements.
14456 (find_pcs_for_symtab_line): Prefer is-statement entries.
14457 (find_line_common): Likewise.
14458 * symtab.h (struct linetable_entry): Add is_stmt field.
14459 (struct symtab_and_line): Likewise.
14460 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14461 arranging the line table.
14462
e4003a34
TV
144632020-03-07 Tom de Vries <tdevries@suse.de>
14464
14465 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14466 DIE.
14467
e8932576
TT
144682020-03-07 Tom Tromey <tom@tromey.com>
14469
14470 * valops.c (value_literal_complex): Remove obsolete comment.
14471 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14472 comment.
14473
29734269
SM
144742020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14475
14476 * infrun.h: Forward-declare thread_info.
14477 (set_step_info): Add thread_info parameter, add doc.
14478 * infrun.c (set_step_info): Add thread_info parameter, move doc
14479 to header.
14480 * infrun.c (process_event_stop_test): Pass thread to
14481 set_step_info call.
14482 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14483 set_step_info.
14484 (prepare_one_step): Add thread_info parameter, pass it to
14485 set_step_frame and prepare_one_step (recursive) call.
14486 (step_1): Pass thread to prepare_one_step call.
14487 (step_command_fsm::should_stop): Pass thread to
14488 prepare_one_step.
14489 (until_next_fsm): Pass thread to set_step_frame call.
14490 (finish_command): Pass thread to set_step_info call.
14491
b7d64b29
HD
144922020-03-06 Hannes Domani <ssbssa@yahoo.de>
14493
14494 * windows-tdep.c (windows_solib_create_inferior_hook):
14495 Check if inferior is running.
14496
09f2921c
TV
144972020-03-06 Tom de Vries <tdevries@suse.de>
14498
14499 * NEWS: Fix "the the".
14500 * ctfread.c: Same.
14501
fd760e79
TV
145022020-03-06 Tom de Vries <tdevries@suse.de>
14503
14504 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14505
20ea4a60
AB
145062020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14507
14508 * .dir-locals.el: Add a comment referencing the other copies of
14509 this file.
14510
0afbabf0
JB
145112020-03-05 John Baldwin <jhb@FreeBSD.org>
14512
14513 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14514 psargs.
14515
842806cb
TBA
145162020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14517
14518 * .gitattributes: New file.
14519
be1e3d3e
TT
145202020-03-04 Tom Tromey <tom@tromey.com>
14521
14522 * symmisc.c (print_symbol_bcache_statistics)
14523 (print_objfile_statistics): Update.
14524 * symfile.c (allocate_symtab): Use intern.
14525 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14526 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14527 macro_cache>: Remove.
14528 <string_cache>: New member.
14529 (struct objfile) <intern>: New methods.
14530 * elfread.c (elf_symtab_read): Use intern.
14531 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14532 (dwarf2_compute_name, dwarf2_physname)
14533 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14534 names.
14535 (guess_partial_die_structure_name): Update.
14536 (partial_die_info::fixup): Intern name.
14537 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14538 name.
14539 (dwarf2_name): Intern name. Update.
14540 * buildsym.c (buildsym_compunit::get_macro_table): Use
14541 string_cache.
14542
4e7625fd
TT
145432020-03-04 Tom Tromey <tom@tromey.com>
14544
14545 * jit.c (bfd_open_from_target_memory): Make "target" const.
14546 * corefile.c (gnutarget): Now const.
14547 * gdbcore.h (gnutarget): Now const.
14548
46f9f931
HD
145492020-03-04 Hannes Domani <ssbssa@yahoo.de>
14550
14551 * NEWS: Mention support for WOW64 processes.
14552 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14553 (amd64_windows_segment_register_p): Remove static.
14554 (_initialize_amd64_windows_nat): Update.
14555 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14556 * i386-windows-nat.c (context_offset): Update.
14557 (i386_mappings): Rename and remove static.
14558 (i386_windows_segment_register_p): Remove static.
14559 (_initialize_i386_windows_nat): Update.
14560 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14561 (STATUS_WX86_SINGLE_STEP): New macro.
14562 (EnumProcessModulesEx): New macro.
14563 (Wow64SuspendThread): New macro.
14564 (Wow64GetThreadContext): New macro.
14565 (Wow64SetThreadContext): New macro.
14566 (Wow64GetThreadSelectorEntry): New macro.
14567 (windows_set_context_register_offsets): Add static.
14568 (windows_set_segment_register_p): Likewise.
14569 (windows_add_thread): Adapt for WOW64 processes.
14570 (windows_fetch_one_register): Likewise.
14571 (windows_nat_target::fetch_registers): Likewise.
14572 (windows_store_one_register): Likewise.
14573 (display_selector): Likewise.
14574 (display_selectors): Likewise.
14575 (handle_exception): Likewise.
14576 (windows_continue): Likewise.
14577 (windows_nat_target::resume): Likewise.
14578 (windows_add_all_dlls): Likewise.
14579 (do_initial_windows_stuff): Likewise.
14580 (windows_nat_target::attach): Likewise.
14581 (windows_get_exec_module_filename): Likewise.
14582 (windows_nat_target::create_inferior): Likewise.
14583 (windows_xfer_siginfo): Likewise.
14584 (_initialize_loadable): Initialize Wow64SuspendThread,
14585 Wow64GetThreadContext, Wow64SetThreadContext,
14586 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14587 * windows-nat.h (windows_set_context_register_offsets):
14588 Remove declaration.
14589 (windows_set_segment_register_p): Likewise.
14590 (i386_windows_segment_register_p): Add declaration.
14591 (amd64_windows_segment_register_p): Likewise.
14592
440cf44e
LM
145932020-03-04 Luis Machado <luis.machado@linaro.org>
14594
14595 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14596 in "info registers" for AArch64/ARM.
14597
14598 The change caused "info registers" to not print GPR's.
14599
14600 gdb/ChangeLog:
14601
14602 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14603
14604 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14605 when reg->group is empty and reggroup is not.
14606
1009d92f
TT
146072020-03-03 Tom Tromey <tromey@adacore.com>
14608
14609 * dwarf2/frame.c (struct dwarf2_frame_cache)
14610 <checked_tailcall_bottom, entry_cfa_sp_offset,
14611 entry_cfa_sp_offset_p>: Remove members.
14612 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14613 (dwarf2_frame_prev_register): Don't call
14614 dwarf2_tailcall_sniffer_first.
14615 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14616 * frame-unwind.c (add_unwinder): New fuction.
14617 (frame_unwind_init): Use it. Add tailcall unwinder.
14618
5e5d66b6
AB
146192020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14620 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14621
14622 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14623 value should be printed as true.
14624
584cf46d
HD
146252020-03-03 Hannes Domani <ssbssa@yahoo.de>
14626
14627 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14628 (windows_init_abi): Set and use windows_so_ops.
14629
7b973adc
SDJ
146302020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14631
14632 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14633 when verifying if dealing with a convenience variable.
14634
bb7b70ab
LM
146352020-03-03 Luis Machado <luis.machado@linaro.org>
14636
14637 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14638
9822cb57
SM
146392020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14640
14641 * infrun.c (gdbarch_supports_displaced_stepping): New.
14642 (use_displaced_stepping): Break up conditions in smaller pieces.
14643 Use gdbarch_supports_displaced_stepping.
14644 (displaced_step_prepare_throw): Use
14645 gdbarch_supports_displaced_stepping.
14646
63e163f2
AB
146472020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14648
14649 * NEWS: Mention new behaviour of the history filename.
14650 * top.c (write_history_p): Add comment.
14651 (show_write_history_p): Add header comment, give a different
14652 message when history writing is on, but the history filename is
14653 empty.
14654 (history_filename): Add comment.
14655 (history_filename_empty): New function.
14656 (show_history_filename): Add header comment, give a different
14657 message when the filename is empty.
14658 (init_history): Compare history_filename against nullptr, and only
14659 read history if the filename is not empty.
14660 (set_history_filename): Add header comment, and only make
14661 non-empty filenames absolute.
14662 (init_main): Make the filename argument to 'set history filename'
14663 optional.
14664
81b86b97
CB
146652020-03-02 Christian Biesinger <cbiesinger@google.com>
14666
14667 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14668 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14669 (fetch_fp_register): Update.
14670 (fetch_fp_regs): Update.
14671 (store_fp_register): Update.
14672 (store_fp_regs): Update.
14673 (arm_netbsd_nat_target::read_description): New function.
14674 (fetch_elfcore_registers): Update.
14675
24ed6739
AB
146762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14677
14678 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14679 general_thread if the stop reply is missing a thread-id.
14680 (remote_target::process_stop_reply): Use the first non-exited
14681 thread if the target didn't pass a thread-id.
14682 * infrun.c (do_target_wait): Move call to
14683 switch_to_inferior_no_thread to ....
14684 (do_target_wait_1): ... here.
14685
a84bb2a0
JT
146862020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14687
14688 * debuginfod-support.c: Include defs.h first.
14689
658dadf0
TV
146902020-02-28 Tom de Vries <tdevries@suse.de>
14691
14692 * symfile.c (set_initial_language): Use default language for lookup.
14693
4ebe4877
SM
146942020-02-28 Simon Marchi <simon.marchi@efficios.com>
14695
14696 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14697 reader variable, pass `this` to read_cutu_die_from_dwo.
14698
e5da1139
AM
146992020-02-27 Aaron Merey <amerey@redhat.com>
14700
14701 * source.c (open_source_file): Check for nullptr when computing
14702 srcpath.
14703
317f7127
TT
147042020-02-27 Tom Tromey <tromey@adacore.com>
14705
14706 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14707 member.
14708 (dwarf2_add_field): Don't update nfields.
14709 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14710
3104d9ee
AB
147112020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14712
14713 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14714 abs.
14715
b83470bf
TT
147162020-02-26 Tom Tromey <tom@tromey.com>
14717
14718 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14719 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14720 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14721 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14722 per_cu_data.
14723
edfe0a0c
TT
147242020-02-26 Tom Tromey <tom@tromey.com>
14725
14726 * dwarf2/index-write.c (psym_index_map): Change type.
14727 (add_address_entry_worker, write_one_signatured_type)
14728 (recursively_count_psymbols, recursively_write_psymbols)
14729 (class debug_names, psyms_seen_size, write_gdbindex)
14730 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14731
0d79cdc4
AM
147322020-02-26 Aaron Merey <amerey@redhat.com>
14733
14734 * Makefile.in: Handle optional debuginfod support.
14735 * NEWS: Update.
14736 * README: Add --with-debuginfod summary.
14737 * config.in: Regenerate.
14738 * configure: Regenerate.
14739 * configure.ac: Handle optional debuginfod support.
14740 * debuginfod-support.c: debuginfod helper functions.
14741 * debuginfod-support.h: Ditto.
14742 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14743 summary.
14744 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14745 when a dwz file cannot be found.
14746 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14747 debuginfo file cannot be found.
14748 * source.c (open_source_file): Query debuginfod servers when a
14749 source file cannot be found.
14750 * top.c (print_gdb_configuration): Include
14751 --{with,without}-debuginfod in the output.
14752
b65ce565
JG
147532020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14754
14755 * thread.c (thr_try_catch_cmd): Print thread name.
14756
d4c9a4f8
SM
147572020-02-26 Simon Marchi <simon.marchi@efficios.com>
14758
14759 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14760 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14761 dwarf2_fetch_die_type_sect_off): Move to...
14762 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14763 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14764 dwarf2_fetch_die_type_sect_off): ... here.
14765 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14766 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14767 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14768
0dce4280
TV
147692020-02-26 Tom de Vries <tdevries@suse.de>
14770
14771 PR gdb/25603
14772 * symfile.c (set_initial_language): Exit-early if
14773 language_mode == language_mode_manual.
14774
450a1bfc
SM
147752020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14776
14777 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14778 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14779 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14780
9e80cfa1
AB
147812020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14782
14783 * gdbtypes.c (create_array_type_with_stride): Handle negative
14784 array strides.
14785 * valarith.c (value_subscripted_rvalue): Likewise.
14786
09624f1f
LM
147872020-02-25 Luis Machado <luis.machado@linaro.org>
14788
14789 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14790
8cb5117c
SM
147912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14792
14793 * loc.h (dwarf2_get_die_type): Move to...
14794 * read.h (dwarf2_get_die_type): ... here.
14795 * read.c (dwarf2_get_die_type): Move doc to header.
14796
c325c44e
JB
147972020-02-25 Joel Brobecker <brobecker@adacore.com>
14798
14799 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14800 'gnulib/Makefile.in' to the list.
14801
4ac93832
TT
148022020-02-24 Tom Tromey <tom@tromey.com>
14803
14804 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14805 Remove.
14806 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14807 XOBNEWVEC.
14808
197400e8
TT
148092020-02-24 Tom Tromey <tom@tromey.com>
14810
14811 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14812 New method.
14813 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14814 (dw2_do_instantiate_symtab, dw2_get_file_names)
14815 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14816
76935768
TT
148172020-02-24 Tom Tromey <tom@tromey.com>
14818
14819 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14820 make_scoped_restore.
14821 (dwarf2_psymtab::read_symtab): Don't clear
14822 reading_partial_symbols.
14823
a88ef40d
TV
148242020-02-24 Tom de Vries <tdevries@suse.de>
14825
14826 PR gdb/25592
14827 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14828
c9af6521
TV
148292020-02-24 Tom de Vries <tdevries@suse.de>
14830
14831 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14832 commands layout next/prev/regs.
14833
5707a07a
TT
148342020-02-22 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14837 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14838
3b0fb49e
TT
148392020-02-22 Tom Tromey <tom@tromey.com>
14840
14841 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14842
283be8bf
TT
148432020-02-22 Tom Tromey <tom@tromey.com>
14844
14845 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14846 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14847 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14848 * tui/tui.c (_initialize_tui): Add usage text.
14849
ca793b96
TT
148502020-02-22 Tom Tromey <tom@tromey.com>
14851
14852 * tui/tui-win.c (tui_set_focus_command)
14853 (tui_set_win_height_command): Use error_no_arg.
14854 (_initialize_tui_win): Update help text.
14855 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14856
432b5c40
TT
148572020-02-22 Tom Tromey <tom@tromey.com>
14858
14859 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14860 * tui/tui-disasm.h (struct tui_disasm_window)
14861 <display_start_addr>: Declare.
14862 * tui/tui-source.h (struct tui_source_window)
14863 <display_start_addr>: Declare.
14864 * tui/tui-winsource.h (struct tui_source_window_base)
14865 <show_source_line, display_start_addr>: New methods.
14866 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14867 Rename and move to protected section.
14868 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14869 (tui_source_window_base::do_erase_source_content): Update.
14870 (tui_source_window_base::show_source_line): Now a method.
14871 (tui_source_window_base::show_source_content)
14872 (tui_source_window_base::tui_source_window_base)
14873 (tui_source_window_base::rerender)
14874 (tui_source_window_base::refill)
14875 (tui_source_window_base::do_scroll_horizontal)
14876 (tui_source_window_base::set_is_exec_point_at)
14877 (tui_source_window_base::update_breakpoint_info)
14878 (tui_source_window_base::update_exec_info): Update.
14879 * tui/tui-source.c (tui_source_window::set_contents)
14880 (tui_source_window::showing_source_p)
14881 (tui_source_window::do_scroll_vertical)
14882 (tui_source_window::location_matches_p)
14883 (tui_source_window::line_is_displayed): Update.
14884 (tui_source_window::display_start_addr): New method.
14885 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14886 (tui_disasm_window::do_scroll_vertical)
14887 (tui_disasm_window::location_matches_p): Update.
14888 (tui_disasm_window::display_start_addr): New method.
14889
01b1af32
TT
148902020-02-22 Tom Tromey <tom@tromey.com>
14891
14892 * NEWS: Add entry for gdb.register_window_type.
14893 * tui/tui-layout.h (window_factory): New typedef.
14894 (tui_register_window): Declare.
14895 * tui/tui-layout.c (saved_tui_windows): New global.
14896 (tui_apply_current_layout): Use it.
14897 (tui_register_window): New function.
14898 * python/python.c (do_start_initialization): Call
14899 gdbpy_initialize_tui.
14900 (python_GdbMethods): Add "register_window_type" function.
14901 * python/python-internal.h (gdbpy_register_tui_window)
14902 (gdbpy_initialize_tui): Declare.
14903 * python/py-tui.c: New file.
14904 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14905
fc96d20b
TT
149062020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14909
935c78c0
TT
149102020-02-22 Tom Tromey <tom@tromey.com>
14911
14912 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14913 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14914 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14915 (tui_set_win_focus_to): Move from tui-win.c.
14916
0240c8f1
TT
149172020-02-22 Tom Tromey <tom@tromey.com>
14918
14919 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14920 functions.
14921 (known_window_types): New global.
14922 (tui_get_window_by_name): Reimplement.
14923 (initialize_known_windows): New function.
14924 (validate_window_name): Rewrite.
14925 (_initialize_tui_layout): Call initialize_known_windows.
14926
fdb01f0c
TT
149272020-02-22 Tom Tromey <tom@tromey.com>
14928
14929 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14930 Remove constants.
14931 * tui/tui-winsource.h (struct tui_source_window_base)
14932 <tui_source_window_base>: Remove parameter.
14933 * tui/tui-winsource.c
14934 (tui_source_window_base::tui_source_window_base): Remove
14935 parameter.
14936 (tui_source_window_base::refill): Update.
14937 * tui/tui-stack.h (struct tui_locator_window)
14938 <tui_locator_window>: Update.
14939 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14940 Default the constructor.
14941 * tui/tui-regs.h (struct tui_data_item_window)
14942 <tui_data_item_window>: Default the constructor.
14943 (struct tui_data_window) <tui_data_window>: Likewise.
14944 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14945 Default the constructor.
14946 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14947 Default the constructor.
14948 <type>: Remove.
14949 (struct tui_win_info) <tui_win_info>: Default the constructor.
14950 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14951 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14952 Default the constructor.
14953
865a5aec
TT
149542020-02-22 Tom Tromey <tom@tromey.com>
14955
14956 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14957 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14958 * tui/tui-win.c (tui_resize_all): Don't call
14959 tui_delete_invisible_windows.
14960 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14961 done.
14962 (tui_set_layout): Update.
14963 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14964 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14965 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14966
e098d18c
TT
149672020-02-22 Tom Tromey <tom@tromey.com>
14968
14969 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14970 correctly.
14971
eb9c8874
TT
149722020-02-22 Tom Tromey <tom@tromey.com>
14973
14974 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14975
7eed1a8e
TT
149762020-02-22 Tom Tromey <tom@tromey.com>
14977
14978 * tui/tui-winsource.h (struct tui_source_window_iterator)
14979 <inner_iterator>: New etytypedef.
14980 <tui_source_window_iterator>: Take "end" parameter.
14981 <tui_source_window_iterator>: Take iterator.
14982 <operator*, advance>: Update.
14983 <m_iter>: Change type.
14984 <m_end>: New field.
14985 (struct tui_source_windows) <begin, end>: Update.
14986 * tui/tui-layout.c (tui_windows): New global.
14987 (tui_apply_current_layout): Clear tui_windows.
14988 (tui_layout_window::apply): Update tui_windows.
14989 * tui/tui-data.h (tui_windows): Declare.
14990 (all_tui_windows): Now inline function.
14991 (class tui_window_iterator, struct all_tui_windows): Remove.
14992
7c043ba6
TT
149932020-02-22 Tom Tromey <tom@tromey.com>
14994
14995 PR tui/17850:
14996 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14997 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14998 "height" argument.
14999 (class tui_layout_window) <get_sizes>: Likewise.
15000 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15001 argument.
15002 <get_sizes>: Add "height" argument.
15003 <m_vertical>: New field.
15004 * tui/tui-layout.c (tui_layout_split::clone): Update.
15005 (tui_layout_split::get_sizes): Add "height" argument.
15006 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15007 (tui_new_layout_command): Parse "-horizontal".
15008 (_initialize_tui_layout): Update help string.
15009 (tui_layout_split::specification): Add "-horizontal" when needed.
15010 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15011 argument.
15012 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15013 New methods.
15014
6bc56648
TT
150152020-02-22 Tom Tromey <tom@tromey.com>
15016
15017 * tui/tui-layout.h (enum tui_adjust_result): New.
15018 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15019 (class tui_layout_window) <adjust_size>: Return
15020 tui_adjust_result. Rewrite.
15021 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15022 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15023
c22fef7e
TT
150242020-02-22 Tom Tromey <tom@tromey.com>
15025
15026 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15027 parameter and return types.
15028 (class tui_layout_base) <specification>: Add "depth".
15029 (class tui_layout_window) <specification>: Add "depth".
15030 (class tui_layout_split) <specification>: Add "depth".
15031 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15032 and return types.
15033 (tui_new_layout_command): Parse sub-layouts.
15034 (_initialize_tui_layout): Update help string.
15035 (tui_layout_window::specification): Add "depth".
15036 (add_layout_command): Update.
15037
ee325b61
TT
150382020-02-22 Tom Tromey <tom@tromey.com>
15039
15040 * NEWS: Add "tui new-layout" item.
15041 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15042 Add new-layout command to help text.
15043 (validate_window_name): New function.
15044 (tui_new_layout_command): New function.
15045 (_initialize_tui_layout): Register "new-layout".
15046 (tui_layout_window::specification): New method.
15047 (tui_layout_window::specification): New method.
15048 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15049 method.
15050 (class tui_layout_window) <specification>: New method.
15051 (class tui_layout_split) <specification>: New method.
15052
416eb92d
TT
150532020-02-22 Tom Tromey <tom@tromey.com>
15054
15055 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15056 * tui/tui-win.c (window_name_completer): Update comment.
15057 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15058 Declare method.
15059 (class tui_layout_window) <replace_window>: Likewise.
15060 (class tui_layout_split) <replace_window>: Likewise.
15061 (tui_set_layout): Don't declare.
15062 (tui_set_initial_layout): Declare function.
15063 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15064 (asm_regs_layout): New globals.
15065 (tui_current_layout, show_layout): Remove.
15066 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15067 (find_layout, tui_apply_layout): New function.
15068 (layout_completer): Remove.
15069 (tui_next_layout): Reimplement.
15070 (tui_next_layout_command): New function.
15071 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15072 (tui_regs_layout): Reimplement.
15073 (tui_regs_layout_command): New function.
15074 (extract_display_start_addr): Rewrite.
15075 (next_layout, prev_layout): Remove.
15076 (tui_layout_window::replace_window): New method.
15077 (tui_layout_split::replace_window): New method.
15078 (destroy_layout): New function.
15079 (layout_list): New global.
15080 (add_layout_command): New function.
15081 (initialize_layouts): Update.
15082 (tui_layout_command): New function.
15083 (_initialize_tui_layout): Install "layout" commands.
15084 * tui/tui-data.h (enum tui_layout_type): Remove.
15085 (tui_current_layout): Don't declare.
15086
0dbc2fc7
TT
150872020-02-22 Tom Tromey <tom@tromey.com>
15088
15089 * tui/tui-regs.c (tui_reg_layout): Remove.
15090 (tui_reg_command): Use tui_regs_layout.
15091 * tui/tui-layout.h (tui_reg_command): Declare.
15092 * tui/tui-layout.c (tui_reg_command): New function.
15093
5afe342e
TT
150942020-02-22 Tom Tromey <tom@tromey.com>
15095
15096 * tui/tui.c (tui_rl_delete_other_windows): Call
15097 tui_remove_some_windows.
15098 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15099 Declare method.
15100 (class tui_layout_window) <remove_windows>: New method.
15101 (class tui_layout_split) <remove_windows>: Declare.
15102 (tui_remove_some_windows): Declare.
15103 * tui/tui-layout.c (tui_remove_some_windows): New function.
15104 (tui_layout_split::remove_windows): New method.
15105
427326a8
TT
151062020-02-22 Tom Tromey <tom@tromey.com>
15107
15108 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15109 * tui/tui-layout.h (tui_next_layout): Declare.
15110 * tui/tui-layout.c (tui_next_layout): New function.
15111
3fe12b6d
TT
151122020-02-22 Tom Tromey <tom@tromey.com>
15113
15114 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15115 correct coordinates.
15116
59b8b5d2
TT
151172020-02-22 Tom Tromey <tom@tromey.com>
15118
15119 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15120 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15121 DATA_WIN case.
15122
2a3d458b
TT
151232020-02-22 Tom Tromey <tom@tromey.com>
15124
15125 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15126 TUI_DISASM_WIN, not tui_win_list.
15127
3f0cbb04
TT
151282020-02-22 Tom Tromey <tom@tromey.com>
15129
15130 * valprint.c (generic_val_print_enum_1)
15131 (val_print_type_code_flags): Style member names.
15132 * rust-lang.c (val_print_struct, rust_print_enum)
15133 (rust_print_struct_def, rust_internal_print_type): Style member
15134 names.
15135 * p-valprint.c (pascal_object_print_value_fields): Style member
15136 names. Only call fprintf_symbol_filtered for static members.
15137 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15138 * f-valprint.c (f_val_print): Style member names.
15139 * f-typeprint.c (f_type_print_base): Style member names.
15140 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15141 call fprintf_symbol_filtered for static members.
15142 (cp_print_class_member): Style member names.
15143 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15144 member names.
15145 * ada-valprint.c (ada_print_scalar): Style enum names.
15146 (ada_val_print_enum): Likewise.
15147 * ada-typeprint.c (print_enum_type): Style enum names.
15148
d4d947ae
TT
151492020-02-21 Tom Tromey <tom@tromey.com>
15150
15151 * psympriv.h (struct partial_symtab): Update comment.
15152
e94e944b
TT
151532020-02-21 Tom Tromey <tromey@adacore.com>
15154
15155 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15156 type is CORE_ADDR.
15157
1eb73179
TV
151582020-02-21 Tom de Vries <tdevries@suse.de>
15159
15160 PR gdb/25534
15161 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15162 if dependencies[i]->user != NULL.
15163
4f180d53
AT
151642020-02-21 Ali Tamur <tamur@google.com>
15165
15166 * dwarf2/read.c (dwarf2_name): Add null check.
15167
22b6cd70
TT
151682020-02-20 Tom Tromey <tom@tromey.com>
15169
15170 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15171 ">=", in binary search.
15172 (dwarf2_find_containing_comp_unit): New overload.
15173 (run_test): New self-test.
15174 (_initialize_dwarf2_read): Register new test.
15175
bd0cf5a6
NC
151762020-02-20 Nelson Chu <nelson.chu@sifive.com>
15177
15178 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15179 * riscv-tdep.h: Likewise.
15180 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15181 rv32-only CSR.
15182 * features/riscv/64bit-csr.xml: Regenerated.
15183
3f702acd
SDJ
151842020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15185 Tom Tromey <tom@tromey.com>
15186
15187 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15188 of 'fputc_unfiltered'.
15189 (putchar_unfiltered): Call 'fputc_unfiltered'.
15190 (fputc_unfiltered): Call 'fputs_unfiltered'.
15191
d13c7322
AB
151922020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15193
15194 * config.in: Regenerate.
15195 * configure: Regenerate.
15196 * configure.ac: Add --with-python-libdir option.
15197 * main.c: Use WITH_PYTHON_LIBDIR.
15198
869d8950
TT
151992020-02-19 Tom Tromey <tom@tromey.com>
15200
15201 * symtab.c (general_symbol_info::compute_and_set_names): Use
15202 obstack_strndup. Simplify call to symbol_set_demangled_name.
15203
298e9637
SM
152042020-02-19 Simon Marchi <simon.marchi@efficios.com>
15205
15206 * dwarf2/read.c (allocate_signatured_type_table,
15207 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15208 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15209 Remove objfile parameter, update all callers.
15210
08410482
DE
152112020-02-19 Doug Evans <dje@google.com>
15212
15213 PR rust/25535
15214 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15215 rust_enum_variant calculation.
15216
dfdeeca1
TT
152172020-02-19 Tom Tromey <tromey@adacore.com>
15218
15219 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15220
2ef5453b
TT
152212020-02-19 Tom Tromey <tromey@adacore.com>
15222
15223 * ada-lang.c (cache_symbol): Use obstack_strdup.
15224
9f1528a1
AB
152252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15226
15227 * configure: Regenerate.
15228
d3c22fa8
TT
152292020-02-19 Tom Tromey <tromey@adacore.com>
15230
15231 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15232 NULL check.
15233
bf84f706
MR
152342020-02-19 Maciej W. Rozycki <macro@wdc.com>
15235
15236 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15237
d1c9b20f
AB
152382020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15239
15240 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15241 if GDBSERVER is not defined.
15242 (riscv_tdesc_cache): Likewise, also store const target_desc.
15243 (STATIC_IN_GDB): Define.
15244 (riscv_create_target_description): Update declaration with
15245 STATIC_IN_GDB.
15246 (riscv_lookup_target_description): New function, only define if
15247 GDBSERVER is not defined.
15248 * arch/riscv.h (riscv_create_target_description): Declare only
15249 when GDBSERVER is defined.
15250 (riscv_lookup_target_description): New declaration when GDBSERVER
15251 is not defined.
15252 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15253 (riscv_linux_read_features): ...this, and return
15254 riscv_gdbarch_features instead of target_desc.
15255 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15256 (riscv_linux_read_description): Rename to...
15257 (riscv_linux_read_features): ...this.
15258 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15259 Update to use riscv_gdbarch_features and
15260 riscv_lookup_target_description.
15261 * riscv-tdep.c (riscv_find_default_target_description): Use
15262 riscv_lookup_target_description instead of
15263 riscv_create_target_description.
15264
373d7ac0
SM
152652020-02-18 Simon Marchi <simon.marchi@efficios.com>
15266
15267 * valprint.c (generic_val_print_enum_1): When printing a flag
15268 enum with value 0 and there is no enumerator with value 0, print
15269 just "0" instead of "(unknown: 0x0)".
15270
b29a2df0
SM
152712020-02-18 Simon Marchi <simon.marchi@efficios.com>
15272
15273 * valprint.c (generic_val_print_enum_1): Print unknown part of
15274 flag enum in hex.
15275
6740f0cc
SM
152762020-02-18 Simon Marchi <simon.marchi@efficios.com>
15277
15278 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15279 flag enums to contain duplicate enumerators.
15280 * valprint.c (generic_val_print_enum_1): Update comment.
15281
edd45eb0
SM
152822020-02-18 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * dwarf2/read.c: Include "count-one-bits.h".
15285 (update_enumeration_type_from_children): If an enumerator has
15286 multiple bits set, don't treat the enumeration as a "flag enum".
15287 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15288 of flag enums have 0 or 1 bit set.
15289
6d0cf446
BE
152902020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15291
15292 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15293 conversion.
15294 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15295 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15296 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15297 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15298 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15299
7001c1b7
SM
153002020-02-18 Simon Marchi <simon.marchi@efficios.com>
15301
15302 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15303
fdb61c6c
SM
153042020-02-14 Simon Marchi <simon.marchi@efficios.com>
15305
15306 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15307 displaced_step_closure_up.
15308 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15309 (struct displaced_step_closure_up):
15310 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15311 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15312 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15313 Likewise.
15314 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15315 * gdbarch.c, gdbarch.h: Re-generate.
15316 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15317 displaced_step_closure_up.
15318 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15319 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15320 * infrun.h (displaced_step_closure_up): New type alias.
15321 (struct displaced_step_inferior_state) <step_closure>: Change
15322 type to displaced_step_closure_up.
15323 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15324 displaced_step_closure_up.
15325 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15326
a4a38eb4
TT
153272020-02-14 Tom Tromey <tom@tromey.com>
15328
15329 * minidebug.c (gnu_debug_key): New global.
15330 (find_separate_debug_file_in_section): Use it.
15331
e8217e61
SM
153322020-02-14 Simon Marchi <simon.marchi@efficios.com>
15333
15334 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15335 std::unique_ptr.
15336 * gdbarch.c: Re-generate.
15337 * gdbarch.h: Re-generate.
15338 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15339 change.
15340 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15341 type to std::unique_ptr.
15342 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15343 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15344 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15345 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15346 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15347 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15348 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15349 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15350 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15351
d8d83535
SM
153522020-02-14 Simon Marchi <simon.marchi@efficios.com>
15353
15354 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15355 std::unique_ptr.
15356 (displaced_step_clear): Rename to...
15357 (displaced_step_reset): ... this. Just call displaced->reset ().
15358 (displaced_step_clear_cleanup): Rename to...
15359 (displaced_step_reset_cleanup): ... this.
15360 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15361 (displaced_step_fixup): Likewise.
15362 (resume_1): Likewise.
15363 (handle_inferior_event): Restore child's memory before calling
15364 displaced_step_fixup on the parent.
15365 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15366 to std::unique_ptr.
15367 <step_closure>: Change type to std::unique_ptr.
15368
5f661e03
SM
153692020-02-14 Simon Marchi <simon.marchi@efficios.com>
15370
15371 * arm-tdep.c: Include count-one-bits.h.
15372 (cleanup_block_store_pc): Use count_one_bits.
15373 (cleanup_block_load_pc): Use count_one_bits.
15374 (arm_copy_block_xfer): Use count_one_bits.
15375 (thumb2_copy_block_xfer): Use count_one_bits.
15376 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15377 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15378 (thumb_get_next_pcs_raw): Use count_one_bits.
15379 (arm_get_next_pcs_raw): Use count_one_bits_l.
15380 * arch/arm.c (bitcount): Remove.
15381 * arch/arm.h (bitcount): Remove.
15382
8084e579
TT
153832020-02-14 Tom Tromey <tromey@adacore.com>
15384
15385 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15386 Update.
15387 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15388 * dwarf2/loc.c (call_site_find_chain_1): Return
15389 unique_xmalloc_ptr.
15390 (call_site_find_chain): Likewise.
15391
258bf0ee
RB
153922020-02-14 Richard Biener <rguenther@suse.de>
15393
15394 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15395 on expression with division operators.
15396
f98a8458
AKS
153972020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15398
15399 * MAINTAINERS (Write After Approval): Adding myself.
15400
d1437c0e
TT
154012020-02-12 Tom Tromey <tom@tromey.com>
15402
15403 * event-loop.c (event_data, gdb_event, event_handler_func):
15404 Remove.
15405
3d4560f7
TT
154062020-02-12 Tom Tromey <tom@tromey.com>
15407
15408 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15409 (dwarf2_frame_objfile_data): Add comment.
15410 (find_comp_unit, set_comp_unit): New functions.
15411 (dwarf2_frame_find_fde): Use find_comp_unit.
15412 (dwarf2_build_frame_info): Use set_comp_unit.
15413
21982304
TT
154142020-02-12 Tom Tromey <tom@tromey.com>
15415
15416 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15417 (comp_unit): Don't initialize objfile.
15418 (execute_cfa_program): Add text_offset parameter.
15419 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15420 (dwarf2_frame_cache): Update.
15421 (dwarf2_build_frame_info): Don't set "objfile" member.
15422
4debb237
TT
154232020-02-12 Tom Tromey <tom@tromey.com>
15424
15425 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15426 (decode_frame_entry): Likewise.
15427 (dwarf2_build_frame_info): Update.
15428
0d404d44
TT
154292020-02-12 Tom Tromey <tom@tromey.com>
15430
15431 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15432 (decode_frame_entry_1): Use the comp_unit obstack.
15433
a7a3ae5c
TT
154342020-02-12 Tom Tromey <tom@tromey.com>
15435
15436 * dwarf2/frame.c (struct comp_unit): Add initializers and
15437 constructor.
15438 (dwarf2_frame_objfile_data): Store a comp_unit.
15439 (dwarf2_frame_find_fde): Update.
15440 (dwarf2_build_frame_info): Use "new".
15441
a9d65418
TT
154422020-02-12 Tom Tromey <tom@tromey.com>
15443
15444 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15445 (dwarf2_fde_table): Typedef for std::vector.
15446 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15447 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15448 (decode_frame_entry): Update.
15449 (dwarf2_build_frame_info): Use "new".
15450
7559c217
CB
154512020-02-12 Christian Biesinger <cbiesinger@google.com>
15452
15453 * arm-tdep.c (arm_gdbarch_init): Update.
15454 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15455 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15456 have_neon, is_m>: Change to bool.
15457
aeefc73c
CB
154582020-02-12 Christian Biesinger <cbiesinger@google.com>
15459
15460 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15461
d27b8e5f
TT
154622020-02-12 Tom Tromey <tom@tromey.com>
15463
15464 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15465
cd5900f3
HD
154662020-02-12 Hannes Domani <ssbssa@yahoo.de>
15467
15468 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15469 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15470
f056b22b
TT
154712020-02-11 Tom Tromey <tom@tromey.com>
15472
15473 * psymtab.h: Update comment.
15474
f92ff6b5
TT
154752020-02-11 Tom Tromey <tom@tromey.com>
15476
15477 * gdb_obstack.h (struct auto_obstack): Use
15478 DISABLE_COPY_AND_ASSIGN.
15479
3fd6912b
TT
154802020-02-11 Tom Tromey <tom@tromey.com>
15481
15482 * dwarf2/frame.h (struct objfile): Don't forward declare.
15483
69ed9b74
CB
154842020-02-11 Christian Biesinger <cbiesinger@google.com>
15485
15486 * cris-tdep.c (cris_supply_gregset): Change signature to match
15487 what struct regset expects.
15488 (cris_regset): New struct.
15489 (fetch_core_registers): Remove.
15490 (cris_iterate_over_regset_sections): New function.
15491 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15492 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15493
bda874f6
CB
154942020-02-11 Christian Biesinger <cbiesinger@google.com>
15495
15496 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15497 registers.
15498
754e1564
CB
154992020-02-11 Christian Biesinger <cbiesinger@google.com>
15500
15501 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15502
8ddd8e0e
SM
155032020-02-11 Simon Marchi <simon.marchi@efficios.com>
15504
15505 * configure: Re-generate.
15506
898e7f60
SM
155072020-02-11 Simon Marchi <simon.marchi@efficios.com>
15508
15509 * configure: Re-generate.
15510
58df732b
SM
155112020-02-11 Simon Marchi <simon.marchi@efficios.com>
15512
15513 * acinclude: Update warning.m4 path.
15514 * warning.m4: Move to gdbsupport.
15515
da5bd37e
TT
155162020-02-11 Tom Tromey <tromey@adacore.com>
15517
15518 * remote.c (remote_console_output): Update.
15519 * printcmd.c (printf_command): Update.
15520 * event-loop.c (gdb_wait_for_event): Update.
15521 * linux-nat.c (sigchld_handler): Update.
15522 * remote-sim.c (gdb_os_write_stdout): Update.
15523 (gdb_os_flush_stdout): Update.
15524 (gdb_os_flush_stderr): Update.
15525 (gdb_os_write_stderr): Update.
15526 * exceptions.c (print_exception): Update.
15527 * remote-fileio.c (remote_fileio_func_read): Update.
15528 (remote_fileio_func_write): Update.
15529 * tui/tui.c (tui_enable): Update.
15530 * tui/tui-interp.c (tui_interp::init): Update.
15531 * utils.c (init_page_info): Update.
15532 (putchar_unfiltered, fputc_unfiltered): Update.
15533 (gdb_flush): Update.
15534 (emit_style_escape): Update.
15535 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15536 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15537 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15538 (stderr_file::write): Update.
15539 (stderr_file::puts): Update.
15540 * ui-file.h (ui_file_isatty, ui_file_write)
15541 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15542 (ui_file_puts): Don't declare.
15543
85f0dd3c
TV
155442020-02-10 Tom de Vries <tdevries@suse.de>
15545
15546 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15547 sentinel to char *.
15548
2e927613
TV
155492020-02-09 Tom de Vries <tdevries@suse.de>
15550
15551 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15552 filename if it matches "<artificial>".
15553
6bafc845
HD
155542020-02-09 Hannes Domani <ssbssa@yahoo.de>
15555
15556 * windows-tdep.c (struct enum_value_name): New struct.
15557 (create_enum): New function.
15558 (windows_get_siginfo_type): Create and use enum types.
15559
7928d571
HD
155602020-02-09 Hannes Domani <ssbssa@yahoo.de>
15561
15562 * NEWS: Mention $_siginfo support for Windows.
15563 * windows-nat.c (handle_exception): Set siginfo_er.
15564 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15565 (windows_xfer_siginfo): New function.
15566 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15567 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15568 (init_windows_gdbarch_data): New function.
15569 (get_windows_gdbarch_data): New function.
15570 (windows_get_siginfo_type): New function.
15571 (windows_init_abi): Register windows_get_siginfo_type.
15572 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15573
6751ebae
TT
155742020-02-08 Tom Tromey <tom@tromey.com>
15575
15576 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15577 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15578 <keep>: Declare method.
15579 <m_keep>: Remove member.
15580 <~cutu_reader>: Remove.
15581 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15582 (cutu_reader::cutu_reader): Update.
15583 (cutu_reader::keep): Rename from ~cutu_reader.
15584 (process_psymtab_comp_unit, build_type_psymtabs_1)
15585 (process_skeletonless_type_unit, load_partial_comp_unit)
15586 (load_full_comp_unit, dwarf2_read_addr_index)
15587 (read_signatured_type): Update.
15588
135f5437
TT
155892020-02-08 Tom Tromey <tom@tromey.com>
15590
15591 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15592 "want_partial_unit" parameter.
15593 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15594 Inline check for DW_TAG_partial_unit.
15595 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15596
9f66ff1c
TT
155972020-02-08 Tom Tromey <tom@tromey.com>
15598
15599 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15600 read.c.
15601 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15602 read.c.
15603
c8a7a66f
TT
156042020-02-08 Tom Tromey <tom@tromey.com>
15605
15606 * dwarf2/read.c (read_address): Move to comp-unit.c.
15607 (dwarf2_rnglists_process, dwarf2_ranges_process)
15608 (read_attribute_value, dwarf_decode_lines_1)
15609 (var_decode_location, decode_locdesc): Update.
15610 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15611 read.c. Remove "cu" parameter.
15612 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15613 method.
15614
8266302d
TT
156152020-02-08 Tom Tromey <tom@tromey.com>
15616
15617 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15618 (read_indirect_line_string): Update.
15619 * dwarf2/comp-unit.c (read_offset): Remove.
15620 (read_comp_unit_head): Update.
15621 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15622 method.
15623 (read_offset): Don't declare.
15624
4057dfde
TT
156252020-02-08 Tom Tromey <tom@tromey.com>
15626
15627 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15628 * dwarf2/read.c (struct comp_unit_head): Move to
15629 dwarf2/comp-unit.h.
15630 (enum class rcuh_kind): Move to comp-unit.h.
15631 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15632 (read_comp_unit_head, error_check_comp_unit_head)
15633 (read_and_check_comp_unit_head): Move to comp-unit.c.
15634 (read_offset, dwarf_unit_type_name): Likewise.
15635 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15636 (cutu_reader::cutu_reader, read_call_site_scope)
15637 (find_partial_die, follow_die_offset): Update.
15638 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15639
24aa364d
TT
156402020-02-08 Tom Tromey <tom@tromey.com>
15641
15642 * dwarf2/read.c (read_offset_1): Move to leb.c.
15643 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15644 (dwarf_decode_macro_bytes): Update.
15645 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15646 * dwarf2/leb.h (read_offset): Declare.
15647
2c7d5afc
TT
156482020-02-08 Tom Tromey <tom@tromey.com>
15649
15650 * dwarf2/read.c (dwarf2_section_size): Remove.
15651 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15652 Update.
15653 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15654
4075cb26
TT
156552020-02-08 Tom Tromey <tom@tromey.com>
15656
15657 * dwarf2/read.c (read_initial_length): Move to leb.c.
15658 * dwarf2/leb.h (read_initial_length): Declare.
15659 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15660 handle_nonstd parameter.
15661 * dwarf2/frame.c (read_initial_length): Remove.
15662 (decode_frame_entry_1): Update.
15663
09ba997f
TT
156642020-02-08 Tom Tromey <tom@tromey.com>
15665
15666 * dwarf2/loc.c (dwarf2_find_location_expression)
15667 (dwarf_evaluate_loc_desc::get_tls_address)
15668 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15669 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15670 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15671 (dwarf2_compile_property_to_c)
15672 (dwarf2_loc_desc_get_symbol_read_needs)
15673 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15674 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15675 (loclist_describe_location, loclist_tracepoint_var_ref)
15676 (loclist_generate_c_location): Update.
15677 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15678 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15679 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15680 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15681 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15682 (dwarf2_per_cu_data::addr_size)
15683 (dwarf2_per_cu_data::ref_addr_size)
15684 (dwarf2_per_cu_data::text_offset)
15685 (dwarf2_per_cu_data::addr_type): Now methods.
15686 (per_cu_header_read_in): Make per_cu "const".
15687 (dwarf2_version): Remove.
15688 (dwarf2_per_cu_data::int_type): Now a method.
15689 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15690 (set_die_type, read_array_type, read_subrange_index_type)
15691 (read_tag_string_type, read_subrange_type): Update.
15692 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15693 offset_size, ref_addr_size, text_offset, addr_type, version,
15694 objfile, int_type, addr_sized_int_type>: Declare methods.
15695
96c738c0
TT
156962020-02-08 Tom Tromey <tom@tromey.com>
15697
15698 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15699 Move earlier.
15700
8fdd972c
TT
157012020-02-08 Tom Tromey <tom@tromey.com>
15702
15703 * dwarf2/read.h (dwarf_line_debug): Declare.
15704 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15705 * dwarf2/read.c: Move line_header code to new files.
15706 (dwarf_line_debug): No longer static.
15707 * dwarf2/line-header.c: New file.
15708 * dwarf2/line-header.h: New file.
15709
03075812
TT
157102020-02-08 Tom Tromey <tom@tromey.com>
15711
15712 * dwarf2/read.c (struct line_header) <file_full_name,
15713 file_file_name>: Return unique_xmalloc_ptr.
15714 (line_header::file_file_name): Update.
15715 (line_header::file_full_name): Update.
15716 (dw2_get_file_names_reader): Update.
15717 (macro_start_file): Update.
15718
bb822404
TT
157192020-02-08 Tom Tromey <tom@tromey.com>
15720
15721 * dwarf2/read.c (struct line_header) <file_full_name,
15722 file_file_name>: Declare methods.
15723 (dw2_get_file_names_reader): Update.
15724 (file_file_name): Now a method.
15725 (file_full_name): Likewise.
15726 (macro_start_file): Update.
15727
009b64fc
TT
157282020-02-08 Tom Tromey <tom@tromey.com>
15729
15730 * dwarf2/read.c (dwarf_always_disassemble)
15731 (show_dwarf_always_disassemble): Move to loc.c.
15732 (_initialize_dwarf2_read): Move "always-disassemble" registration
15733 to loc.c.
15734 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15735 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15736 static.
15737 (show_dwarf_always_disassemble): Move from read.c.
15738 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15739
5895093f
TT
157402020-02-08 Tom Tromey <tom@tromey.com>
15741
15742 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15743 (create_quick_file_names_table): Return htab_up.
15744 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15745 Update.
15746 * dwarf2/read.h (struct dwarf2_per_objfile)
15747 <quick_file_names_table>: Now htab_up.
15748
b3b32279
TT
157492020-02-08 Tom Tromey <tom@tromey.com>
15750
15751 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15752
1d33d811
TT
157532020-02-08 Tom Tromey <tom@tromey.com>
15754
15755 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15756 Rewrite.
15757 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15758 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15759 (abbrev_table::abbrev_table): No longer inline.
15760 (ABBREV_HASH_SIZE): Remove.
15761 (abbrev_table::m_abbrevs): Now an htab_up.
15762
86de1d91
TT
157632020-02-08 Tom Tromey <tom@tromey.com>
15764
15765 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15766 (cutu_reader): Update.
15767 (build_type_psymtabs_1): Update.
15768 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15769 (abbrev_table::alloc_abbrev): Update.
15770 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15771 (abbrev_table::read): New static method, renamed from
15772 abbrev_table_read_table.
15773 (abbrev_table::alloc_abbrev)
15774 (abbrev_table::add_abbrev): Now private.
15775 (abbrev_table::abbrev_table): Now private.
15776 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15777
0335378b
TT
157782020-02-08 Tom Tromey <tom@tromey.com>
15779
15780 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15781 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15782 htab_up.
15783
48b490f2
TT
157842020-02-08 Tom Tromey <tom@tromey.com>
15785
15786 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15787 htab_up.
15788 (lookup_dwo_unit_in_dwp): Update.
15789 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15790 on obstack.
15791
bc68fb19
TT
157922020-02-08 Tom Tromey <tom@tromey.com>
15793
15794 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15795 obstack.
15796
d15acc42
TT
157972020-02-08 Tom Tromey <tom@tromey.com>
15798
15799 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15800 line_header_hash.
15801 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15802 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15803 Change type to htab_up.
15804
eaa5fa8b
TT
158052020-02-08 Tom Tromey <tom@tromey.com>
15806
15807 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15808 htab_up. Don't allocate on obstack.
15809 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15810 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15811 Change type to htab_up.
15812
b0b6a987
TT
158132020-02-08 Tom Tromey <tom@tromey.com>
15814
15815 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15816 Change type to htab_up.
15817 * dwarf2/read.c (create_signatured_type_table_from_index)
15818 (create_signatured_type_table_from_debug_names)
15819 (create_all_type_units, add_type_unit)
15820 (lookup_dwo_signatured_type, lookup_signatured_type)
15821 (process_skeletonless_type_unit): Update.
15822 (create_debug_type_hash_table, create_debug_types_hash_table):
15823 Change type of types_htab.
15824 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15825 htab_up. Don't allocate on obstack.
15826 (create_cus_hash_table): Change type of cus_htab parameter.
15827 (struct dwo_file) <cus, tus>: Now htab_up.
15828 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15829 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15830 (queue_and_load_all_dwo_tus): Update.
15831 * dwarf2/index-write.c (write_gdbindex): Update.
15832 (write_debug_names): Update.
15833
39856def
TT
158342020-02-08 Tom Tromey <tom@tromey.com>
15835
15836 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15837 dwarf2/read.c. Remove "next" member. Add constructor ntad
15838 destructor.
15839 (struct dwarf2_per_objfile) <queue>: New member.
15840 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15841 dwarf2/read.h.
15842 (dwarf2_queue, dwarf2_queue_tail): Remove.
15843 (class dwarf2_queue_guard): Add parameter to constructor. Use
15844 DISABLE_COPY_AND_ASSIGN.
15845 <m_per_objfile>: New member.
15846 <~dwarf2_queue_guard>: Rewrite.
15847 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15848 Update.
15849 (~dwarf2_queue_item): New.
15850
3e225074
TT
158512020-02-08 Tom Tromey <tom@tromey.com>
15852
15853 * dwarf2/read.c (struct die_info) <has_children>: New member.
15854 (dw2_get_file_names_reader): Remove has_children.
15855 (dw2_get_file_names): Update.
15856 (read_cutu_die_from_dwo): Remove has_children.
15857 (cutu_reader::init_tu_and_read_dwo_dies)
15858 (cutu_reader::cutu_reader): Update.
15859 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15860 Remove has_children.
15861 (build_type_psymtabs_1, process_skeletonless_type_unit)
15862 (load_partial_comp_unit, load_full_comp_unit): Update.
15863 (create_dwo_cu_reader): Remove has_children.
15864 (create_cus_hash_table, read_die_and_children): Update.
15865 (read_full_die_1,read_full_die): Remove has_children.
15866 (read_signatured_type): Update.
15867 (class cutu_reader) <has_children>: Remove.
15868
82ca8957
TT
158692020-02-08 Tom Tromey <tom@tromey.com>
15870
15871 * dwarf2/expr.c: Rename from dwarf2expr.c.
15872 * dwarf2/expr.h: Rename from dwarf2expr.h.
15873 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15874 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15875 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15876 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15877 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15878 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15879 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15880 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15881 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15882 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15883 * dwarf2/loc.c: Rename from dwarf2loc.c.
15884 * dwarf2/loc.h: Rename from dwarf2loc.h.
15885 * dwarf2/read.c: Rename from dwarf2read.c.
15886 * dwarf2/read.h: Rename from dwarf2read.h.
15887 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15888 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15889 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15890 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15891 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15892 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15893 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15894 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15895 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15896 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15897 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15898 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15899 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15900 Update.
15901 * Makefile.in (COMMON_SFILES): Update.
15902 (HFILES_NO_SRCDIR): Update.
15903
9e35d499
TT
159042020-02-08 Tom Tromey <tom@tromey.com>
15905
15906 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15907 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15908
1eba2311
TT
159092020-02-08 Tom Tromey <tom@tromey.com>
15910
15911 * dwarf2read.h (struct die_info): Don't declare.
15912
e41c2da2
TT
159132020-02-08 Tom Tromey <tom@tromey.com>
15914
15915 * dwarf2read.h (die_info_ptr): Remove typedef.
15916
4fc6c0d5
TT
159172020-02-08 Tom Tromey <tom@tromey.com>
15918
15919 * dwarf2read.c (read_call_site_scope)
15920 (handle_data_member_location, dwarf2_add_member_fn)
15921 (mark_common_block_symbol_computed, read_common_block)
15922 (attr_to_dynamic_prop, partial_die_info::read)
15923 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15924 (dwarf2_symbol_mark_computed, set_die_type): Update.
15925 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15926 method.
15927 (attr_form_is_block): Don't declare.
15928 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15929
cd6c91b4
TT
159302020-02-08 Tom Tromey <tom@tromey.com>
15931
15932 * dwarf2read.c (dwarf2_find_base_address, )
15933 (read_call_site_scope, rust_containing_type)
15934 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15935 (handle_data_member_location, dwarf2_add_member_fn)
15936 (get_alignment, read_structure_type, process_structure_scope)
15937 (mark_common_block_symbol_computed, read_common_block)
15938 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15939 (partial_die_info::read, read_attribute_value, new_symbol)
15940 (lookup_die_type, dwarf2_get_ref_die_offset)
15941 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15942 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15943 (dwarf2_symbol_mark_computed): Update.
15944 * dwarf2/attribute.h (struct attribute) <value_as_address,
15945 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15946 methods.
15947 (value_as_address, attr_form_is_section_offset)
15948 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15949 * dwarf2/attribute.c (attribute::value_as_address)
15950 (attribute::form_is_section_offset, attribute::form_is_constant)
15951 (attribute::form_is_ref): Now methods.
15952
162dce55
TT
159532020-02-08 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2read.c (struct attribute, DW_STRING)
15956 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15957 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15958 (attr_form_is_block, attr_form_is_section_offset)
15959 (attr_form_is_constant, attr_form_is_ref): Move.
15960 * dwarf2/attribute.h: New file.
15961 * dwarf2/attribute.c: New file, from dwarf2read.c.
15962 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15963
3054dd54
TT
159642020-02-08 Tom Tromey <tom@tromey.com>
15965
15966 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15967 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15968 Move.
15969 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15970 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15971 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15972 abbrev.c.
15973 * dwarf2/abbrev.h: New file.
15974 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15975 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15976
96b79293
TT
159772020-02-08 Tom Tromey <tom@tromey.com>
15978
15979 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15980 (dwarf2_section_size, dwarf2_get_section_info)
15981 (create_signatured_type_table_from_debug_names)
15982 (create_addrmap_from_aranges, read_debug_names_from_section)
15983 (get_gdb_index_contents_from_section, read_comp_unit_head)
15984 (error_check_comp_unit_head, read_abbrev_offset)
15985 (create_debug_type_hash_table, init_cu_die_reader)
15986 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15987 (read_comp_units_from_section, create_cus_hash_table)
15988 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15989 (create_dwp_v2_section, dwarf2_rnglists_process)
15990 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15991 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15992 (read_indirect_string_from_dwz, read_addr_index_1)
15993 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15994 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15995 (fill_in_loclist_baton): Update.
15996 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15997 get_containing_section, get_bfd_owner, get_bfd_section,
15998 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15999 (dwarf2_read_section, get_section_name, get_section_file_name)
16000 (get_containing_section, get_section_bfd_owner)
16001 (get_section_bfd_section, get_section_name, get_section_file_name)
16002 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16003 declare.
16004 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16005 (dwarf2_section_info::get_bfd_owner)
16006 (dwarf2_section_info::get_bfd_section)
16007 (dwarf2_section_info::get_name)
16008 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16009 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16010 (dwarf2_section_info::read): Now methods.
16011 * dwarf-index-write.c (class debug_names): Update.
16012
2c86cff9
TT
160132020-02-08 Tom Tromey <tom@tromey.com>
16014
16015 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16016 Move to dwarf2/section.h.
16017 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16018 (get_section_bfd_section, get_section_name)
16019 (get_section_file_name, get_section_id, get_section_flags)
16020 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16021 dwarf2/section.c.
16022 * dwarf2/section.h: New file.
16023 * dwarf2/section.c: New file, from dwarf2read.c.
16024 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16025
f4382c45
TT
160262020-02-08 Tom Tromey <tom@tromey.com>
16027
16028 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16029 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16030 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16031 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16032 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16033 * dwarf2/leb.h: New file, from dwarf2read.c.
16034 * dwarf2/leb.c: New file, from dwarf2read.c.
16035 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16036 Remove.
16037 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16038 (COMMON_SFILES): Add dwarf2/leb.c.
16039
01840b7a
JB
160402020-02-08 Joel Brobecker <brobecker@adacore.com>
16041
16042 GDB 9.1 released.
16043
dfcb27e4
IB
160442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16045
16046 PR gdb/25190:
aac66a4c
SM
16047 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16048 * gdb/remote.c (remote_console_output): Update.
16049 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16050 (ui_file_puts): ...this.
16051 * gdb/ui-file.h (ui_file_puts): Add declaration.
16052 * gdb/utils.c (emit_style_escape): Update.
16053 (flush_wrap_buffer): Update.
16054 (fputs_maybe_filtered): Update.
16055 (fputs_unfiltered): Add function.
dfcb27e4 16056
faa17681
IB
160572020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16058
aac66a4c
SM
16059 * gdb/event-loop.c (gdb_wait_for_event): Update.
16060 * gdb/printcmd.c (printf_command): Update.
16061 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16062 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16063 (gdb_os_flush_stderr): Update.
16064 * gdb/remote.c (remote_console_output): Update.
16065 * gdb/ui-file.c (gdb_flush): Rename to...
16066 (ui_file_flush): ...this.
16067 (stderr_file::write): Update.
16068 (stderr_file::puts): Update.
16069 * gdb/ui-file.h (gdb_flush): Rename to...
16070 (ui_file_flush): ...this.
16071 * gdb/utils.c (gdb_flush): Add function.
16072 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16073
5abbbe1d
TT
160742020-02-07 Tom Tromey <tromey@adacore.com>
16075
16076 PR breakpoints/24915:
16077 * source.c (find_and_open_source): Do not check basenames_may_differ.
16078
919adfe8
TT
160792020-02-07 Tom Tromey <tom@tromey.com>
16080
16081 * README: Update gdbserver documentation.
16082 * gdbserver: Move to top level.
16083 * configure.tgt (build_gdbserver): Remove.
16084 * configure.ac: Remove --enable-gdbserver.
16085 * configure: Rebuild.
16086 * Makefile.in (distclean): Don't mention gdbserver.
16087
1d5d29e7
SV
160882020-02-06 Shahab Vahedi <shahab@synopsys.com>
16089
16090 * source-cache.c (source_cache::ensure): Surround
16091 get_plain_source_lines with a try/catch.
16092 (source_cache::get_line_charpos): Get rid of try/catch
16093 and only check for the return value of "ensure".
16094 * tui/tui-source.c (tui_source_window::set_contents):
16095 Simplify "nlines" calculation.
16096
6eb1129c
SV
160972020-02-06 Shahab Vahedi <shahab@synopsys.com>
16098
16099 * MAINTAINERS (Write After Approval): Add myself.
16100
c6a42d11
CB
161012020-02-05 Christian Biesinger <cbiesinger@google.com>
16102
16103 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16104 function call.
16105
c8ecdda6
CB
161062020-02-05 Christian Biesinger <cbiesinger@google.com>
16107
16108 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16109
f6480e70
MR
161102020-02-05 Maciej W. Rozycki <macro@wdc.com>
16111
16112 * nat/riscv-linux-tdesc.h: New file.
16113 * nat/riscv-linux-tdesc.c: New file, taking code from...
16114 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16115 ... here.
16116 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16117 NATDEPFILES.
16118
dcc9fbc6
AB
161192020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16120
16121 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16122 we don't set the fake simulator ptid to the null_ptid.
16123
719546c4
SM
161242020-02-03 Simon Marchi <simon.marchi@efficios.com>
16125
16126 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16127 * gdbthread.h (class thread_info) <resumed>: Likewise.
16128 * infrun.c (resume_1): Likewise.
16129 (proceed): Likewise.
16130 (infrun_thread_stop_requested): Likewise.
16131 (stop_all_threads): Likewise.
16132 (handle_inferior_event): Likewise.
16133 (restart_threads): Likewise.
16134 (finish_step_over): Likewise.
16135 (keep_going_stepped_thread): Likewise.
16136 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16137 (linux_handle_extended_wait): Likewise.
16138 * record-btrace.c (get_thread_current_frame_id): Likewise.
16139 * record-full.c (record_full_wait_1): Likewise.
16140 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16141 * target.c (target_resume): Likewise.
16142 * thread.c (set_running_thread): Likewise.
16143
e409c542
AKS
161442020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16145
16146 * f-valprint.c (f77_print_array_1): Changed datatype of index
16147 variable to LONGEST from int to enable it to contain bound
16148 values correctly.
16149
ee98c0da
MR
161502020-02-03 Maciej W. Rozycki <macro@wdc.com>
16151
16152 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16153 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16154 offsets according to FLEN determined.
16155 (riscv_linux_nat_target::read_description): Determine FLEN
16156 dynamically.
16157 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16158 according to FLEN determined.
16159 (riscv_linux_nat_target::store_registers): Likewise.
16160
aa66aac4
SV
161612020-02-01 Shahab Vahedi <shahab@synopsys.com>
16162
16163 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16164 when reg->group is empty and reggroup is not.
16165
fd9faca8
TT
161662020-01-31 Tom Tromey <tromey@adacore.com>
16167
16168 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16169 Call beneath target's mourn_inferior after unpushing.
16170
42330a68
AB
161712020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16172
16173 PR tui/9765
16174 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16175 have enough lines to fill the screen, still return the lowest
16176 address we found.
16177
7a27a45b
AB
161782020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16179
16180 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16181 '-', '<', and '>' commands.
16182
c47f70e2
PA
161832020-01-29 Pedro Alves <palves@redhat.com>
16184 Sergio Durigan Junior <sergiodj@redhat.com>
16185
16186 * infcmd.c (construct_inferior_arguments): Assert that
16187 'argc' is greater than 0.
16188
5133a315
LM
161892020-01-29 Luis Machado <luis.machado@linaro.org>
16190
16191 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16192 (BRK_INSN_MASK): Define to 0xd4200000.
16193 (aarch64_program_breakpoint_here_p): New function.
16194 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16195 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16196 breakpoint.c.
16197 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16198 breakpoint.h
16199 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16200 call gdbarch_program_breakpoint_here_p.
16201 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16202 default_program_breakpoint_here_p, changed return type to bool and
16203 simplified.
16204 * breakpoint.h (program_breakpoint_here): Moved prototype to
16205 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16206 return type to bool.
16207 * gdbarch.c: Regenerate.
16208 * gdbarch.h: Regenerate.
16209 * gdbarch.sh (program_breakpoint_here_p): New method.
16210 * infrun.c (handle_signal_stop): Call
16211 gdbarch_program_breakpoint_here_p.
16212
168f8c6b
TT
162132020-01-26 Tom Tromey <tom@tromey.com>
16214
16215 * ctfread.c (struct ctf_fp_info): Reindent.
16216 (_initialize_ctfread): Remove.
16217
128a391f
TT
162182020-01-26 Tom Tromey <tom@tromey.com>
16219
16220 * psymtab.c (partial_map_expand_apply)
16221 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16222 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16223 (psym_print_stats, psym_expand_symtabs_for_function)
16224 (psym_map_symbol_filenames, psym_map_matching_symbols)
16225 (psym_expand_symtabs_matching)
16226 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16227 (maintenance_check_psymtabs): Use new methods.
16228 * psympriv.h (struct partial_symtab) <readin_p,
16229 get_compunit_symtab>: New methods.
16230 <readin, compunit_symtab>: Remove members.
16231 (struct standard_psymtab): New.
16232 (struct legacy_psymtab): Derive from standard_psymtab.
16233 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16234 standard_psymtab.
16235 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16236
0494dbec
TT
162372020-01-26 Tom Tromey <tom@tromey.com>
16238
16239 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16240 read_dependencies. Add assert.
16241 * psymtab.c (partial_symtab::read_dependencies): New method.
16242 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16243 method.
16244 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16245 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16246 read_dependencies.
16247 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16248 Add assert.
16249
8566b89b
TT
162502020-01-26 Tom Tromey <tom@tromey.com>
16251
16252 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16253 Call expand_psymtab.
16254 (xcoff_read_symtab): Call expand_psymtab.
16255 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16256 legacy_expand_psymtab.
16257 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16258 method.
16259 (struct legacy_psymtab) <expand_psymtab>: Implement.
16260 <legacy_expand_psymtab>: New member.
16261 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16262 (parse_partial_symbols): Set legacy_expand_psymtab.
16263 (psymtab_to_symtab_1): Change argument order. Call
16264 expand_psymtab.
16265 (new_psymtab): Set legacy_expand_psymtab.
16266 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16267 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16268 expand_psymtab.
16269 (dwarf2_psymtab::expand_psymtab): Rename from
16270 psymtab_to_symtab_1. Call expand_psymtab.
16271 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16272 (dbx_end_psymtab): Likewise.
16273 (dbx_psymtab_to_symtab_1): Change argument order. Call
16274 expand_psymtab.
16275 (dbx_read_symtab): Call expand_psymtab.
16276 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16277 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16278 (ctf_psymtab::read_symtab): Call expand_psymtab.
16279
077cbab2
TT
162802020-01-26 Tom Tromey <tom@tromey.com>
16281
16282 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16283 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16284 messages.
16285 * mdebugread.c (mdebug_read_symtab): Remove prints.
16286 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16287 assert.
16288 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16289
891813be
TT
162902020-01-26 Tom Tromey <tom@tromey.com>
16291
16292 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16293 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16294 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16295 legacy_symtab.
16296 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16297 * psymtab.c (psymtab_to_symtab): Call method.
16298 (dump_psymtab): Update.
16299 * psympriv.h (struct partial_symtab): Add virtual destructor.
16300 <read_symtab>: New method.
16301 (struct legacy_symtab): New.
16302 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16303 (struct pst_map) <pst>: Now a legacy_psymtab.
16304 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16305 (new_psymtab): Use legacy_psymtab.
16306 * dwarf2read.h (struct dwarf2_psymtab): New.
16307 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16308 * dwarf2read.c (dwarf2_create_include_psymtab)
16309 (dwarf2_build_include_psymtabs, create_type_unit_group)
16310 (create_partial_symtab, process_psymtab_comp_unit_reader)
16311 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16312 (set_partial_user): Use dwarf2_psymtab.
16313 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16314 (psymtab_to_symtab_1, process_full_comp_unit)
16315 (process_full_type_unit, dwarf2_ranges_read)
16316 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16317 (dwarf_decode_lines): Use dwarf2_psymtab.
16318 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16319 (add_address_entry_worker, write_one_signatured_type)
16320 (recursively_count_psymbols, recursively_write_psymbols)
16321 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16322 (write_debug_names): Likewise.
16323 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16324 <pst>: Now a legacy_psymtab.
16325 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16326 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16327 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16328 * ctfread.c (struct ctf_psymtab): New.
16329 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16330 ctf_psymtab.
16331 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16332 (create_partial_symtab): Return a ctf_psymtab.
16333 (scan_partial_symbols): Update.
16334
c3693a1d
TT
163352020-01-26 Tom Tromey <tom@tromey.com>
16336
16337 * xcoffread.c (xcoff_start_psymtab): Use new.
16338 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16339 renamed from start_psymtab_common.
16340 * psympriv.h (struct partial_symtab): Add new constructor.
16341 (start_psymtab_common): Don't declare.
16342 * mdebugread.c (parse_partial_symbols): Use new.
16343 * dwarf2read.c (create_partial_symtab): Use new.
16344 * dbxread.c (start_psymtab): Use new.
16345 * ctfread.c (create_partial_symtab): Use new.
16346
32caafd0
TT
163472020-01-26 Tom Tromey <tom@tromey.com>
16348
16349 * xcoffread.c (xcoff_end_psymtab): Use new.
16350 * psymtab.c (start_psymtab_common): Use new.
16351 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16352 Update.
16353 * psympriv.h (struct partial_symtab): Add parameters to
16354 constructor. Don't inline.
16355 (allocate_psymtab): Don't declare.
16356 * mdebugread.c (new_psymtab): Use new.
16357 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16358 * dbxread.c (dbx_end_psymtab): Use new.
16359
abaa2f23
TT
163602020-01-26 Tom Tromey <tom@tromey.com>
16361
16362 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16363 allocate_psymtab. Update documentation.
16364 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16365 allocate_psymtab. Do not use new.
16366 (allocate_psymtab): Use new. Update.
16367
6d94535f
TT
163682020-01-26 Tom Tromey <tom@tromey.com>
16369
16370 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16371 * psymtab.c (psym_print_stats): Update.
16372 * psympriv.h (struct partial_symtab) <readin,
16373 psymtabs_addrmap_supported, anonymous>: Now bool.
16374 * mdebugread.c (psymtab_to_symtab_1): Update.
16375 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16376 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16377 (process_full_comp_unit, process_full_type_unit): Update.
16378 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16379 * ctfread.c (psymtab_to_symtab): Update.
16380
6f17252b
TT
163812020-01-26 Tom Tromey <tom@tromey.com>
16382
16383 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16384 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16385 * psymtab.c (psymtab_storage): Delete psymtabs.
16386 (psymtab_storage::allocate_psymtab): Use new.
16387 (psymtab_storage::discard_psymtab): Use delete.
16388 * psympriv.h (struct partial_symtab): Add constructor and
16389 initializers.
16390
f6f1cebc
TT
163912020-01-26 Tom Tromey <tom@tromey.com>
16392
16393 * machoread.c: Do not include psympriv.h.
16394
e47e48f6
PW
163952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16396
16397 * NEWS: Mention the new option and the set/show commands.
16398
a2fedca9
PW
163992020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16400
16401 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16402 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16403 (validate_exec_file): New variables, enums, functions.
16404 (exec_file_locate_attach, print_section_info): Style the filenames.
16405 (_initialize_exec): Install show_exec_file_mismatch_command and
16406 set_exec_file_mismatch_command.
16407 * gdbcore.h (validate_exec_file): Declare.
16408 * infcmd.c (attach_command): Call validate_exec_file.
16409 * remote.c ( remote_target::remote_add_inferior): Likewise.
16410
7ffa82e1
AB
164112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16412
16413 * frame.c (find_frame_sal): Move call to get_next_frame into more
16414 inner scope.
16415 * inline-frame.c (inilne_state) <inline_state>: Update argument
16416 types.
16417 (inilne_state) <skipped_symbol>: Rename to...
16418 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16419 (skip_inline_frames): Build vector of skipped symbols and use this
16420 to reate the inline_state.
16421 (inline_skipped_symbol): Add a comment and some assertions, fetch
16422 skipped symbol from the list.
16423
3d92a3e3
AB
164242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16425
16426 * buildsym.c (lte_is_less_than): Delete.
16427 (buildsym_compunit::end_symtab_with_blockvector): Create local
16428 lambda function to sort line table entries, and use
16429 std::stable_sort instead of std::sort.
16430 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16431 markers when looking for a previous line.
16432
94a72be7
AB
164332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16434
16435 * dwarf2read.c (lnp_state_machine::record_line): Include
16436 end_sequence parameter in debug print out. Record the line if we
16437 are at an end_sequence marker even if it's not the start of a
16438 statement.
16439 * symmisc.c (maintenance_print_one_line_table): Print end of
16440 sequence markers with 'END' not '0'.
16441
53af73bf
PA
164422020-01-24 Pedro Alves <palves@redhat.com>
16443
16444 PR gdb/25410
16445 * thread.c (scoped_restore_current_thread::restore): Use
16446 switch_to_inferior_no_thread.
16447 * exec.c: Include "progspace-and-thread.h".
16448 (add_target_sections, remove_target_sections):
16449 scoped_restore_current_pspace_and_thread instead of
16450 scoped_restore_current_thread.
16451 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16452 and aspace to the inferior before calling clone_program_space.
16453 Remove stale comment.
16454
3050c6f4
CB
164552020-01-24 Christian Biesinger <cbiesinger@google.com>
16456
16457 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16458 (arm_netbsd_nat_target::fetch_registers): ...this.
16459 (arm_nbsd_nat_target::store_registers): Rename to...
16460 (arm_netbsd_nat_target::store_registers): ...this.
16461
73685c7e
CB
164622020-01-24 Christian Biesinger <cbiesinger@google.com>
16463
16464 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16465 register_t.
16466
89203d40
CB
164672020-01-24 Christian Biesinger <cbiesinger@google.com>
16468
16469 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16470 Update comment.
16471 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16472 Likewise.
16473 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16474 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16475 the correct replacement (iterate_over_regset_sections).
16476 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16477 Update comment.
16478
1ba1ac88
AB
164792020-01-24 Graham Markall <graham.markall@embecosm.com>
16480
16481 PR gdb/23718
16482 * gdb/python/python.c (execute_gdb_command): Call
16483 async_enable_stdin in catch block.
16484
f3364a6d
AB
164852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16486
16487 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16488 SWITCH_THRU_ALL_UIS.
16489
733d0a67
AB
164902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16491
16492 PR tui/9765
16493 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16494 comment, add extra parameter, and update to store previous symbol
16495 when appropriate.
16496 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16497 add extra parameter.
16498 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16499 remove unneeded parameter, add try/catch around gdb_print_insn,
16500 rewrite to add items to asm_lines vector.
16501 (tui_find_backward_disassembly_start_address): New function.
16502 (tui_find_disassembly_address): Updated throughout.
16503 (tui_disasm_window::set_contents): Update for changes to
16504 tui_disassemble.
16505 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16506 number of lines to scroll.
16507
b3b3bada
SM
165082020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16509
16510 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16511 (SECT_OFF_DATA): Likewise.
16512 (SECT_OFF_RODATA): Likewise.
16513 (SECT_OFF_TEXT): Likewise.
16514 (SECT_OFF_BSS): Likewise.
16515 (struct objfile) <text_section_offset, data_section_offset>: New
16516 methods.
16517 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16518 objfile::text_section_offset.
16519 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16520 * coffread.c (coff_symtab_read): Likewise.
16521 (enter_linenos): Likewise.
16522 (process_coff_symbol): Likewise.
16523 * ctfread.c (get_objfile_text_range): Likewise.
16524 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16525 Use objfile::data_section_offset.
16526 * dwarf2-frame.c (execute_cfa_program): Use
16527 objfile::text_section_offset.
16528 (dwarf2_frame_find_fde): Likewise.
16529 * dwarf2read.c (create_addrmap_from_index): Likewise.
16530 (create_addrmap_from_aranges): Likewise.
16531 (dw2_find_pc_sect_compunit_symtab): Likewise.
16532 (process_psymtab_comp_unit_reader): Likewise.
16533 (add_partial_symbol): Likewise.
16534 (add_partial_subprogram): Likewise.
16535 (process_full_comp_unit): Likewise.
16536 (read_file_scope): Likewise.
16537 (read_func_scope): Likewise.
16538 (read_lexical_block_scope): Likewise.
16539 (read_call_site_scope): Likewise.
16540 (dwarf2_rnglists_process): Likewise.
16541 (dwarf2_ranges_process): Likewise.
16542 (dwarf2_ranges_read): Likewise.
16543 (dwarf_decode_lines_1): Likewise.
16544 (new_symbol): Likewise.
16545 (dwarf2_fetch_die_loc_sect_off): Likewise.
16546 (dwarf2_per_cu_text_offset): Likewise.
16547 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16548 * hppa-tdep.c (read_unwind_info): Likewise.
16549 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16550 * psympriv.h (struct partial_symtab): Likewise.
16551 * psymtab.c (find_pc_sect_psymtab): Likewise.
16552 * solib-svr4.c (enable_break): Likewise.
16553 * stap-probe.c (relocate_address): Use
16554 objfile::data_section_offset.
16555 * xcoffread.c (enter_line_range): Use
16556 objfile::text_section_offset.
16557 (read_xcoff_symtab): Likewise.
16558
ab53f382
SM
165592020-01-23 Simon Marchi <simon.marchi@efficios.com>
16560
16561 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16562 declaration to narrower scopes.
16563
e7eee665
SM
165642020-01-23 Simon Marchi <simon.marchi@efficios.com>
16565
16566 * darwin-nat.h (struct darwin_exception_msg, enum
16567 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16568 Move up.
16569 (class darwin_nat_target) <wait_1, check_new_threads,
16570 decode_exception_message, decode_message, stop_inferior,
16571 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16572 * darwin-nat.c (darwin_check_new_threads): Rename to...
16573 (darwin_nat_target::check_new_threads): ... this.
16574 (darwin_suspend_inferior_it): Remove.
16575 (darwin_decode_exception_message): Rename to...
16576 (darwin_nat_target::decode_exception_message): ... this.
16577 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16578 (darwin_decode_message): Rename to...
16579 (darwin_nat_target::decode_message): ... this.
16580 (cancel_breakpoint): Rename to...
16581 (darwin_nat_target::cancel_breakpoint): ... this.
16582 (darwin_wait): Rename to...
16583 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16584 instead of iterate_over_inferiors.
16585 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16586 (darwin_stop_inferior): Rename to...
16587 (darwin_nat_target::stop_inferior): ... this.
16588 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16589 (darwin_init_thread_list): Rename to...
16590 (darwin_nat_target::init_thread_list): ... this.
16591 (darwin_ptrace_him): Rename to...
16592 (darwin_nat_target::ptrace_him): ... this.
16593 (darwin_nat_target::create_inferior): Pass lambda function to
16594 fork_inferior.
16595 (darwin_nat_target::detach): Call stop_inferior instead of
16596 darwin_stop_inferior.
16597 * fork-inferior.h (fork_inferior): Change init_trace_fun
16598 parameter to gdb::function_view.
16599 * fork-inferior.c (fork_inferior): Likewise.
16600
c162ed3e
HD
166012020-01-23 Hannes Domani <ssbssa@yahoo.de>
16602
16603 * i386-cygwin-tdep.c (core_process_module_section): Update.
16604 * windows-nat.c (struct lm_info_windows): Add text_offset.
16605 (windows_xfer_shared_libraries): Update.
16606 * windows-tdep.c (windows_xfer_shared_library):
16607 Add text_offset_cached argument.
16608 * windows-tdep.h (windows_xfer_shared_library): Update.
16609
a1237872
SM
166102020-01-21 Simon Marchi <simon.marchi@efficios.com>
16611
16612 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16613
b3ee6dd9
SM
166142020-01-21 Simon Marchi <simon.marchi@efficios.com>
16615
16616 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16617 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16618 replace with range-based for.
16619 (gdbsim_interrupt_inferior): Remove.
16620 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16621 with a range-based for. Inline code from
16622 gdbsim_interrupt_inferior.
16623
f9fac3c8
SM
166242020-01-21 Simon Marchi <simon.marchi@efficios.com>
16625
16626 * infrun.c (proceed): Fix indentation.
16627
f6474de9
TT
166282020-01-21 Tom Tromey <tromey@adacore.com>
16629
16630 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16631 * python/python.c (python_extension_ops): Update.
16632 (gdbpy_colorize): New function.
16633 * python/lib/gdb/__init__.py (colorize): New function.
16634 * extension.h (ext_lang_colorize): Declare.
16635 * extension.c (ext_lang_colorize): New function.
16636 * extension-priv.h (struct extension_language_ops) <colorize>: New
16637 member.
16638 * cli/cli-style.c (_initialize_cli_style): Update help text.
16639
f0c702d4
LM
166402020-01-21 Luis Machado <luis.machado@linaro.org>
16641
16642 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16643 <cond>: Change type to bool.
16644 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16645 (aarch64_displaced_step_cb): Likewise.
16646 (aarch64_displaced_step_tb): Likewise.
16647
1ab139e5
LM
166482020-01-21 Luis Machado <luis.machado@linaro.org>
16649
16650 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16651 output.
16652
0c271889
LM
166532020-01-21 Luis Machado <luis.machado@linaro.org>
16654
16655 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16656 <pc_adjust>: Adjust the documentation.
16657 (aarch64_displaced_step_fixup): Check if PC really moved before
16658 adjusting it.
16659
4d89c1c7
TT
166602020-01-19 Tom Tromey <tom@tromey.com>
16661
16662 * disasm.c (~gdb_disassembler): New destructor.
16663 (gdb_buffered_insn_length): Call disassemble_free_target.
16664 * disasm.h (class gdb_disassembler): Declare destructor. Use
16665 DISABLE_COPY_AND_ASSIGN.
16666
c0ab21c2
TT
166672020-01-19 Tom Tromey <tom@tromey.com>
16668
16669 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16670 (die_reader_func_ftype): Remove.
16671 (cutu_reader): New class.
16672 (dw2_get_file_names_reader): Remove "data" parameter.
16673 (dw2_get_file_names): Use cutu_reader.
16674 (create_debug_type_hash_table): Update.
16675 (read_cutu_die_from_dwo): Update comment.
16676 (lookup_dwo_unit): Add dwo_name parameter.
16677 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16678 die_reader_func_ftype and data parameters.
16679 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16680 Remove die_reader_func_ftype and data parameters.
16681 (~cutu_reader): New; from init_cutu_and_read_dies.
16682 (cutu_reader::cutu_reader): Rename from
16683 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16684 and data parameters.
16685 (init_cutu_and_read_dies_simple): Remove.
16686 (struct process_psymtab_comp_unit_data): Remove.
16687 (process_psymtab_comp_unit_reader): Remove data parameter; add
16688 want_partial_unit and pretend_language parameters.
16689 (process_psymtab_comp_unit): Use cutu_reader.
16690 (build_type_psymtabs_reader): Remove data parameter.
16691 (build_type_psymtabs_1): Use cutu_reader.
16692 (process_skeletonless_type_unit): Likewise.
16693 (load_partial_comp_unit_reader): Remove.
16694 (load_partial_comp_unit): Use cutu_reader.
16695 (load_full_comp_unit_reader): Remove.
16696 (load_full_comp_unit): Use cutu_reader.
16697 (struct create_dwo_cu_data): Remove.
16698 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16699 dwo_unit parameters.
16700 (create_cus_hash_table): Use cutu_reader.
16701 (struct dwarf2_read_addr_index_data): Remove.
16702 (dwarf2_read_addr_index_reader): Remove.
16703 (dwarf2_read_addr_index): Use cutu_reader.
16704 (read_signatured_type_reader): Remove.
16705 (read_signatured_type): Use cutu_reader.
16706
45bbae5c
TT
167072020-01-19 Tom Tromey <tom@tromey.com>
16708
16709 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16710 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16711 (tui_wrefresh): Declare.
16712 * tui/tui-wingeneral.c (suppress_output): New global.
16713 (tui_suppress_output, ~tui_suppress_output): New constructor and
16714 destructor.
16715 (tui_wrefresh): New function.
16716 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16717 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16718 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16719 method.
16720 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16721 tui_wrefresh.
16722 (tui_data_window::no_refresh): New method.
16723 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16724 (tui_reg_command): Use tui_suppress_output
16725 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16726 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16727 method.
16728 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16729
4f13c1c0
TT
167302020-01-19 Tom Tromey <tom@tromey.com>
16731
16732 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16733 Handle case where symtab is null.
16734
fa47e446
SM
167352020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16736
16737 * linux-fork.c (one_fork_p): Simplify.
16738
26f42329
SM
167392020-01-17 Simon Marchi <simon.marchi@efficios.com>
16740
16741 * top.c (struct qt_args): Remove.
16742 (kill_or_detach): Change return type to void, replace `void *`
16743 parameter with a proper one.
16744 (print_inferior_quit_action): Likewise.
16745 (quit_confirm): Use range-based for loop to iterate over inferiors.
16746 (quit_force): Likewise.
16747
a9ac81b1
SM
167482020-01-17 Simon Marchi <simon.marchi@efficios.com>
16749
16750 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16751 `void *` parameter with proper parameters.
16752 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16753 (print_one_inferior): Change return type to void, replace `void *`
16754 parameter with proper parameters.
16755 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16756 inferiors.
16757 (get_other_inferior): Remove.
16758 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16759 inferiors.
16760
788eca49
SM
167612020-01-17 Simon Marchi <simon.marchi@efficios.com>
16762
16763 * mi/mi-interp.c (report_initial_inferior): Remove.
16764 (mi_interp::init): Use range-based for to iterate over inferiors.
16765
d9bc85b6
SM
167662020-01-17 Simon Marchi <simon.marchi@efficios.com>
16767
16768 * python/py-inferior.c (build_inferior_list): Remove.
16769 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16770
40c94099
CB
167712020-01-16 Christian Biesinger <cbiesinger@google.com>
16772
16773 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16774 (btrace_stitch_trace): Likewise.
16775 * charset.c (intermediate_encoding): Likewise (vaild).
16776 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16777 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16778 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16779
e0cdfe3c
HD
167802020-01-16 Hannes Domani <ssbssa@yahoo.de>
16781
16782 * windows-tdep.c (windows_get_tlb_type):
16783 Add rtl_user_process_parameters type.
16784
790f1718 167852020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16786 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16787
16788 PR build/24805
16789 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16790 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16791 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16792 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16793 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16794 (ps_plog): Redeclare exported functions with default visibility.
16795
3112ed97
NA
167962020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16797
16798 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16799 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16800
8dc3273e
SM
168012020-01-15 Simon Marchi <simon.marchi@efficios.com>
16802
16803 * infcmd.c (post_create_inferior): Use get_thread_regcache
16804 instead of get_current_regcache.
16805
ff47f4f0
TT
168062020-01-14 Tom Tromey <tom@tromey.com>
16807
16808 PR symtab/12535:
16809 * python/python.c (gdbpy_decode_line): Treat empty string the same
16810 as no argument.
16811
975f45b7
TT
168122020-01-14 Tom Tromey <tom@tromey.com>
16813
16814 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16815
25e57356
TT
168162020-01-14 Tom Tromey <tom@tromey.com>
16817
16818 * nat/linux-btrace.c: Don't include <config.h>.
16819 * nat/linux-ptrace.c: Don't include <config.h>.
16820 * nat/x86-linux-dregs.c: Don't include <config.h>.
16821
05ea2a05
TT
168222020-01-14 Tom Tromey <tom@tromey.com>
16823
16824 * configure: Rebuild.
16825 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16826
01027315
TT
168272020-01-14 Tom Tromey <tom@tromey.com>
16828
16829 * nat/x86-linux-dregs.c: Include configh.h.
16830 * nat/linux-ptrace.c: Include configh.h.
16831 * nat/linux-btrace.c: Include configh.h.
16832 * defs.h: Include config.h, bfd.h.
16833 * configure.ac: Don't source common.host.
16834 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16835 * configure: Rebuild.
16836 * acinclude.m4: Update path.
16837 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16838 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16839 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16840 (CLIBS): Add LIBSUPPORT.
16841 (CDEPS): Likewise.
16842 (COMMON_SFILES): Remove gdbsupport files.
16843 (HFILES_NO_SRCDIR): Likewise.
16844 (stamp-version): Update path to create-version.sh.
16845 (ALLDEPFILES): Remove gdbsupport files.
16846
b2ceabe8
TT
168472020-01-14 Tom Tromey <tom@tromey.com>
16848
16849 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16850 USE_WIN32API when needed.
16851 * configure.ac (USE_WIN32API): Don't define.
16852 (WIN32LIBS): Use WIN32APILIBS.
16853 * configure: Rebuild.
16854
25c51f71
TT
168552020-01-14 Tom Tromey <tom@tromey.com>
16856
16857 * configure: Rebuild.
16858 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16859
717c684d
BE
168602020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16861
16862 * skip.c (skip_function_command): Make skip w/o arguments use the
16863 name of the inlined function if pc is inside any inlined function.
16864
7da6a5b9
LM
168652020-01-14 Luis Machado <luis.machado@linaro.org>
16866
16867 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16868 * infrun.c (resume_1): Likewise.
16869 (handle_inferior_event): Remove stale comment.
16870 * linux-nat.c (linux_nat_target::resume): Update comments.
16871 (save_stop_reason): Likewise.
16872 (linux_nat_filter_event): Likewise.
16873 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16874
44e4c775
AB
168752020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16876
16877 * elfread.c (record_minimal_symbol): Set section index to 0 for
16878 non-allocatable sections.
16879
18a8505e
AT
16880
168812020-01-13 Ali Tamur <tamur@google.com>
16882
16883 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16884 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16885 to gdb::optional. Update comments.
16886 (dwo_file): Update comments.
16887 (read_attribute): Update API to take an additional out parameter,
16888 need_reprocess. This is used to mark attributes that need other
16889 attributes (e.g. str_offsets_base) for correct computation which may not
16890 have been read yet.
16891 (read_attribute_reprocess): New function declaration.
16892 (read_addr_index): Likewise.
16893 (read_dwo_str_index): Likewise.
16894 (read_stub_str_index): Likewise.
16895 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16896 (lookup_addr_base): New function definition.
16897 (lookup_ranges_base): Likewise.
16898 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16899 lookup_ranges_base.
16900 (init_cutu_and_read_dies): Update comments.
16901 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16902 unit. This is used to inherit parent's str_offsets_base and addr_base.
16903 Update comments.
16904 (init_cutu_and_read_dies_simple): Reflect API changes.
16905 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16906 (create_cus_hash_table): Change API to take parent compile unit.
16907 Reflect API changes.
16908 (open_and_init_dwo_file): Reflect API changes.
16909 (dwarf2_get_pc_bounds): Update comments.
16910 (dwarf2_record_block_ranges): Likewise.
16911 (read_full_die_1): Change implementation to reprocess attributes that
16912 need str_offsets_base and addr_base.
16913 (partial_die_info::read): Likewise.
16914 (read_attribute_reprocess): New function definition.
16915 (read_attribute_value): Change API to take an additional out parameter,
16916 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16917 when a non-dwo compile unit has index based attributes.
16918 (read_attribute): Reflect API changes.
16919 (read_addr_index_1): Reflect API changes. Update comments.
16920 (dwarf2_read_addr_index_data): Reflect API changes.
16921 (dwarf2_read_addr_index): Likewise.
16922 (read_str_index): Change API and implementation. This becomes a helper
16923 to be used by the new string index related methods. Update error
16924 message and comments.
16925 (read_dwo_str_index): New function definition.
16926 (read_stub_str_index): Likewise.
16927 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16928 * symfile.h (dwarf2_debug_sections): Likewise.
16929 * xcoffread.c (dwarf2_debug_sections): Likewise.
16930
0cac9354
SM
169312020-01-13 Simon Marchi <simon.marchi@efficios.com>
16932
16933 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16934 core_reg_sect type to gdb_byte *.
16935 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16936 * cris-tdep.c (fetch_core_registers): Likewise.
16937 * corelow.c (core_target::get_core_register_section): Change
16938 type of `contents` to gdb::byte_vector.
16939
9a6d629c
AB
169402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16941
16942 * tui/tui-wingeneral.c (box_win): Position the title in the center
16943 of the border.
16944
d8b2f9e3
SM
169452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16946
16947 * corelow.c (core_target::get_core_register_section): Use
16948 std::vector instead of alloca.
16949
bb564c58
SM
169502020-01-13 Simon Marchi <simon.marchi@efficios.com>
16951
16952 * warning.m4: Add -Wmissing-declarations to build_warnings.
16953 * configure: Re-generate.
16954
6b366111
SM
169552020-01-13 Simon Marchi <simon.marchi@efficios.com>
16956
16957 * python/python.c (init__gdb_module): Add declaration.
16958
6c265988
SM
169592020-01-13 Simon Marchi <simon.marchi@efficios.com>
16960
16961 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16962 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16963 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16964 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16965 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16966 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16967 * ada-exp.y (_initialize_ada_exp): Add declaration.
16968 * ada-lang.c (_initialize_ada_language): Add declaration.
16969 * ada-tasks.c (_initialize_tasks): Add declaration.
16970 * agent.c (_initialize_agent): Add declaration.
16971 * aix-thread.c (_initialize_aix_thread): Add declaration.
16972 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16973 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16974 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16975 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16976 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16977 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16978 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16979 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16980 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16981 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16982 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16983 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16984 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16985 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16986 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16987 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16988 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16989 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16990 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16991 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16992 * annotate.c (_initialize_annotate): Add declaration.
16993 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16994 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16995 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16996 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16997 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16998 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16999 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17000 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17001 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17002 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17003 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17004 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17005 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17006 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17007 * auto-load.c (_initialize_auto_load): Add declaration.
17008 * auxv.c (_initialize_auxv): Add declaration.
17009 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17010 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17011 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17012 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17013 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17014 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17015 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17016 * breakpoint.c (_initialize_breakpoint): Add declaration.
17017 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17018 * btrace.c (_initialize_btrace): Add declaration.
17019 * charset.c (_initialize_charset): Add declaration.
17020 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17021 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17022 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17023 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17024 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17025 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17026 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17027 * coffread.c (_initialize_coffread): Add declaration.
17028 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17029 * compile/compile.c (_initialize_compile): Add declaration.
17030 * complaints.c (_initialize_complaints): Add declaration.
17031 * completer.c (_initialize_completer): Add declaration.
17032 * copying.c (_initialize_copying): Add declaration.
17033 * corefile.c (_initialize_core): Add declaration.
17034 * corelow.c (_initialize_corelow): Add declaration.
17035 * cp-abi.c (_initialize_cp_abi): Add declaration.
17036 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17037 * cp-support.c (_initialize_cp_support): Add declaration.
17038 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17039 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17040 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17041 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17042 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17043 * ctfread.c (_initialize_ctfread): Add declaration.
17044 * d-lang.c (_initialize_d_language): Add declaration.
17045 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17046 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17047 * dbxread.c (_initialize_dbxread): Add declaration.
17048 * dcache.c (_initialize_dcache): Add declaration.
17049 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17050 * disasm.c (_initialize_disasm): Add declaration.
17051 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17052 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17053 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17054 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17055 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17056 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17057 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17058 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17059 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17060 * elfread.c (_initialize_elfread): Add declaration.
17061 * exec.c (_initialize_exec): Add declaration.
17062 * extension.c (_initialize_extension): Add declaration.
17063 * f-lang.c (_initialize_f_language): Add declaration.
17064 * f-valprint.c (_initialize_f_valprint): Add declaration.
17065 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17066 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17067 * filesystem.c (_initialize_filesystem): Add declaration.
17068 * findcmd.c (_initialize_mem_search): Add declaration.
17069 * findvar.c (_initialize_findvar): Add declaration.
17070 * fork-child.c (_initialize_fork_child): Add declaration.
17071 * frame-base.c (_initialize_frame_base): Add declaration.
17072 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17073 * frame.c (_initialize_frame): Add declaration.
17074 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17075 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17076 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17077 * gcore.c (_initialize_gcore): Add declaration.
17078 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17079 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17080 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17081 * gdbarch.c (_initialize_gdbarch): Add declaration.
17082 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17083 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17084 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17085 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17086 * go-lang.c (_initialize_go_language): Add declaration.
17087 * go32-nat.c (_initialize_go32_nat): Add declaration.
17088 * guile/guile.c (_initialize_guile): Add declaration.
17089 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17090 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17091 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17092 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17093 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17094 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17095 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17096 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17097 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17098 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17099 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17100 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17101 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17102 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17103 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17104 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17105 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17106 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17107 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17108 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17109 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17110 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17111 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17112 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17113 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17114 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17115 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17116 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17117 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17118 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17119 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17120 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17121 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17122 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17123 * infcall.c (_initialize_infcall): Add declaration.
17124 * infcmd.c (_initialize_infcmd): Add declaration.
17125 * inflow.c (_initialize_inflow): Add declaration.
17126 * infrun.c (_initialize_infrun): Add declaration.
17127 * interps.c (_initialize_interpreter): Add declaration.
17128 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17129 * jit.c (_initialize_jit): Add declaration.
17130 * language.c (_initialize_language): Add declaration.
17131 * linux-fork.c (_initialize_linux_fork): Add declaration.
17132 * linux-nat.c (_initialize_linux_nat): Add declaration.
17133 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17134 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17135 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17136 * m2-lang.c (_initialize_m2_language): Add declaration.
17137 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17138 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17139 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17140 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17141 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17142 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17143 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17144 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17145 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17146 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17147 * machoread.c (_initialize_machoread): Add declaration.
17148 * macrocmd.c (_initialize_macrocmd): Add declaration.
17149 * macroscope.c (_initialize_macroscope): Add declaration.
17150 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17151 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17152 * maint.c (_initialize_maint_cmds): Add declaration.
17153 * mdebugread.c (_initialize_mdebugread): Add declaration.
17154 * memattr.c (_initialize_mem): Add declaration.
17155 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17156 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17157 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17158 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17159 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17160 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17161 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17162 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17163 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17164 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17165 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17166 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17167 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17168 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17169 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17170 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17171 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17172 * mipsread.c (_initialize_mipsread): Add declaration.
17173 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17174 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17175 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17176 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17177 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17178 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17179 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17180 * nto-procfs.c (_initialize_procfs): Add declaration.
17181 * objc-lang.c (_initialize_objc_language): Add declaration.
17182 * observable.c (_initialize_observer): Add declaration.
17183 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17184 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17185 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17186 * osabi.c (_initialize_gdb_osabi): Add declaration.
17187 * osdata.c (_initialize_osdata): Add declaration.
17188 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17189 * parse.c (_initialize_parse): Add declaration.
17190 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17191 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17192 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17193 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17194 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17195 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17196 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17197 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17198 * printcmd.c (_initialize_printcmd): Add declaration.
17199 * probe.c (_initialize_probe): Add declaration.
17200 * proc-api.c (_initialize_proc_api): Add declaration.
17201 * proc-events.c (_initialize_proc_events): Add declaration.
17202 * proc-service.c (_initialize_proc_service): Add declaration.
17203 * procfs.c (_initialize_procfs): Add declaration.
17204 * producer.c (_initialize_producer): Add declaration.
17205 * psymtab.c (_initialize_psymtab): Add declaration.
17206 * python/python.c (_initialize_python): Add declaration.
17207 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17208 * record-btrace.c (_initialize_record_btrace): Add declaration.
17209 * record-full.c (_initialize_record_full): Add declaration.
17210 * record.c (_initialize_record): Add declaration.
17211 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17212 * regcache.c (_initialize_regcache): Add declaration.
17213 * reggroups.c (_initialize_reggroup): Add declaration.
17214 * remote-notif.c (_initialize_notif): Add declaration.
17215 * remote-sim.c (_initialize_remote_sim): Add declaration.
17216 * remote.c (_initialize_remote): Add declaration.
17217 * reverse.c (_initialize_reverse): Add declaration.
17218 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17219 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17220 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17221 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17222 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17223 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17224 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17225 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17226 Add declaration.
17227 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17228 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17229 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17230 * rust-exp.y (_initialize_rust_exp): Add declaration.
17231 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17232 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17233 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17234 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17235 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17236 * score-tdep.c (_initialize_score_tdep): Add declaration.
17237 * ser-go32.c (_initialize_ser_dos): Add declaration.
17238 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17239 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17240 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17241 * ser-uds.c (_initialize_ser_socket): Add declaration.
17242 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17243 * serial.c (_initialize_serial): Add declaration.
17244 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17245 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17246 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17247 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17248 * skip.c (_initialize_step_skip): Add declaration.
17249 * sol-thread.c (_initialize_sol_thread): Add declaration.
17250 * solib-aix.c (_initialize_solib_aix): Add declaration.
17251 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17252 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17253 * solib-frv.c (_initialize_frv_solib): Add declaration.
17254 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17255 * solib-target.c (_initialize_solib_target): Add declaration.
17256 * solib.c (_initialize_solib): Add declaration.
17257 * source-cache.c (_initialize_source_cache): Add declaration.
17258 * source.c (_initialize_source): Add declaration.
17259 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17260 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17261 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17262 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17263 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17264 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17265 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17266 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17267 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17268 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17269 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17270 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17271 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17272 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17273 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17274 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17275 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17276 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17277 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17278 * stabsread.c (_initialize_stabsread): Add declaration.
17279 * stack.c (_initialize_stack): Add declaration.
17280 * stap-probe.c (_initialize_stap_probe): Add declaration.
17281 * std-regs.c (_initialize_frame_reg): Add declaration.
17282 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17283 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17284 * symfile.c (_initialize_symfile): Add declaration.
17285 * symmisc.c (_initialize_symmisc): Add declaration.
17286 * symtab.c (_initialize_symtab): Add declaration.
17287 * target.c (_initialize_target): Add declaration.
17288 * target-connection.c (_initialize_target_connection): Add
17289 declaration.
17290 * target-dcache.c (_initialize_target_dcache): Add declaration.
17291 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17292 * thread.c (_initialize_thread): Add declaration.
17293 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17294 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17295 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17296 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17297 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17298 * tracectf.c (_initialize_ctf): Add declaration.
17299 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17300 * tracefile.c (_initialize_tracefile): Add declaration.
17301 * tracepoint.c (_initialize_tracepoint): Add declaration.
17302 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17303 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17304 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17305 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17306 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17307 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17308 * tui/tui.c (_initialize_tui): Add declaration.
17309 * typeprint.c (_initialize_typeprint): Add declaration.
17310 * ui-style.c (_initialize_ui_style): Add declaration.
17311 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17312 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17313 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17314 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17315 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17316 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17317 * unittests/filtered_iterator-selftests.c
17318 (_initialize_filtered_iterator_selftests): Add declaration.
17319 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17320 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17321 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17322 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17323 * unittests/main-thread-selftests.c
17324 (_initialize_main_thread_selftests): Add declaration.
17325 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17326 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17327 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17328 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17329 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17330 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17331 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17332 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17333 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17334 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17335 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17336 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17337 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17338 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17339 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17340 declaration.
17341 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17342 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17343 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17344 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17345 * user-regs.c (_initialize_user_regs): Add declaration.
17346 * utils.c (_initialize_utils): Add declaration.
17347 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17348 * valops.c (_initialize_valops): Add declaration.
17349 * valprint.c (_initialize_valprint): Add declaration.
17350 * value.c (_initialize_values): Add declaration.
17351 * varobj.c (_initialize_varobj): Add declaration.
17352 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17353 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17354 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17355 * windows-nat.c (_initialize_windows_nat): Add declaration.
17356 (_initialize_check_for_gdb_ini): Add declaration.
17357 (_initialize_loadable): Add declaration.
17358 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17359 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17360 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17361 * xcoffread.c (_initialize_xcoffread): Add declaration.
17362 * xml-support.c (_initialize_xml_support): Add declaration.
17363 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17364 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17365 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17366 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17367
e2de1eec
SM
173682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17369
17370 * regformats/regdat.sh: Generate declaration for init function.
17371
e0037b4c
SM
173722020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17373
17374 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17375 up.
17376 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17377 close_one_inferior>: New methods.
17378 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17379 pass down target to find_inferior_pid.
17380 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17381 Pass down target to find_inferior_ptid.
17382 (gdbsim_target::create_inferior): Pass down target to
17383 add_thread_silent.
17384 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17385 target down to find_inferior_ptid and switch_to_thread.
17386 (gdbsim_target::close): Update to call close_one_inferior.
17387 (struct resume_data): Remove.
17388 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17389 directly, rather than through a void pointer.
17390 (gdbsim_target::resume): Update to call resume_one_inferior.
17391
58920b5b
SM
173922020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17393
17394 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17395
4ec89149
PA
173962020-01-12 Pedro Alves <palves@redhat.com>
17397
17398 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17399 directly for the current inferior instead of
17400 discard_all_inferiors.
17401 (discard_all_inferiors): Delete.
17402
7c392d1d
TT
174032020-01-11 Tom Tromey <tom@tromey.com>
17404
17405 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17406 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17407 deprecated_safe_get_selected_frame.
17408
d9ebdab7
TBA
174092020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17410
17411 * inferior.c (print_inferior): Switch inferior before printing it.
17412
f3c469b9
PA
174132020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17414 Pedro Alves <palves@redhat.com>
17415
17416 * progspace-and-thread.c (switch_to_program_space_and_thread):
17417 Assert there's an inferior for PSPACE. Use
17418 switch_to_inferior_no_thread to switch the inferior too.
17419 * progspace.c (program_space::~program_space): Call
17420 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17421 (program_space::free_all_objfiles): Don't call clear_symtab_users
17422 here.
17423 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17424
65c574f6
PA
174252020-01-10 Pedro Alves <palves@redhat.com>
17426
17427 * NEWS: Mention multi-target debugging, "info connections", and
17428 "add-inferior -no-connection".
17429
2f4fcf00
PA
174302020-01-10 Pedro Alves <palves@redhat.com>
17431
17432 * infrun.c: Include "target-connection.h".
17433 (check_multi_target_resumption): New.
17434 (proceed): Call it.
17435 * target-connection.c (make_target_connection_string): Make
17436 extern.
17437 * target-connection.h (make_target_connection_string): Declare.
17438
121b3efd
PA
174392020-01-10 Pedro Alves <palves@redhat.com>
17440
17441 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17442 * inferior.c (uiout_field_connection): New function.
17443 (print_inferior): Add new "connection-id" column.
17444 (add_inferior_command): Show connection number/string of added
17445 inferior.
17446 * process-stratum-target.h
17447 (process_stratum_target::connection_string): New virtual method.
17448 (process_stratum_target::connection_number): New field.
17449 * remote.c (remote_target::connection_string): New override.
17450 * target-connection.c: New file.
17451 * target-connection.h: New file.
17452 * target.c (decref_target): Remove process_stratum targets from
17453 the connection list.
17454 (target_stack::push): Add process_stratum targets to the
17455 connection list.
17456
4f837581
PA
174572020-01-10 Pedro Alves <palves@redhat.com>
17458
17459 Revert:
17460 2016-04-12 Pedro Alves <palves@redhat.com>
17461 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17462 Remove references to name.
17463 * serial.h (struct serial) <name>: Delete.
17464
f4ec508e
PA
174652020-01-10 Pedro Alves <palves@redhat.com>
17466
17467 * gdbarch-selftests.c (register_to_value_test): Remove "target
17468 already pushed" check.
17469
5b6d1e4f
PA
174702020-01-10 Pedro Alves <palves@redhat.com>
17471 John Baldwin <jhb@FreeBSD.org>
17472
17473 * aarch64-linux-nat.c
17474 (aarch64_linux_nat_target::thread_architecture): Adjust.
17475 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17476 (task_command_1): Likewise.
17477 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17478 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17479 (aix_thread_target::store_registers)
17480 (aix_thread_target::thread_alive): Adjust.
17481 * amd64-fbsd-tdep.c: Include "inferior.h".
17482 (amd64fbsd_get_thread_local_address): Pass down target.
17483 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17484 thread's gdbarch instead of target_gdbarch.
17485 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17486 get_last_target_status.
17487 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17488 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17489 inferiors.
17490 (update_inserted_breakpoint_locations): Skip if inferiors with no
17491 execution.
17492 (update_global_location_list): When handling moribund locations,
17493 find representative inferior for location's pspace, and use thread
17494 count of its process_stratum target.
17495 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17496 * bsd-uthread.c (bsd_uthread_target::wait): Use
17497 as_process_stratum_target and adjust thread_change_ptid and
17498 add_thread calls.
17499 (bsd_uthread_target::update_thread_list): Use
17500 as_process_stratum_target and adjust find_thread_ptid,
17501 thread_change_ptid and add_thread calls.
17502 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17503 find_thread_ptid call.
17504 * corelow.c (add_to_thread_list): Adjust add_thread call.
17505 (core_target_open): Adjust add_thread_silent and thread_count
17506 calls.
17507 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17508 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17509 * event-top.c (async_disconnect): Pop targets from all inferiors.
17510 * exec.c (add_target_sections): Push exec target on all inferiors
17511 sharing the program space.
17512 (remove_target_sections): Remove the exec target from all
17513 inferiors sharing the program space.
17514 (exec_on_vfork): New.
17515 * exec.h (exec_on_vfork): Declare.
17516 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17517 Pass it down.
17518 (fbsd_nat_target::update_thread_list): Adjust.
17519 (fbsd_nat_target::resume): Adjust.
17520 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17521 down.
17522 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17523 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17524 get_thread_arch_regcache call.
17525 * fork-child.c (gdb_startup_inferior): Pass target down to
17526 startup_inferior and set_executing.
17527 * gdbthread.h (struct process_stratum_target): Forward declare.
17528 (add_thread, add_thread_silent, add_thread_with_info)
17529 (in_thread_list): Add process_stratum_target parameter.
17530 (find_thread_ptid(inferior*, ptid_t)): New overload.
17531 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17532 parameter.
17533 (all_threads()): Delete overload.
17534 (all_threads, all_non_exited_threads): Add process_stratum_target
17535 parameter.
17536 (all_threads_safe): Use brace initialization.
17537 (thread_count): Add process_stratum_target parameter.
17538 (set_resumed, set_running, set_stop_requested, set_executing)
17539 (threads_are_executing, finish_thread_state): Add
17540 process_stratum_target parameter.
17541 (switch_to_thread): Use is_current_thread.
17542 * i386-fbsd-tdep.c: Include "inferior.h".
17543 (i386fbsd_get_thread_local_address): Pass down target.
17544 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17545 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17546 have_inferiors check.
17547 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17548 (inf_ptrace_target::attach): Adjust.
17549 * infcall.c (run_inferior_call): Adjust.
17550 * infcmd.c (run_command_1): Pass target to
17551 scoped_finish_thread_state.
17552 (proceed_thread_callback): Skip inferiors with no execution.
17553 (continue_command): Rename 'all_threads' local to avoid hiding
17554 'all_threads' function. Adjust get_last_target_status call.
17555 (prepare_one_step): Adjust set_running call.
17556 (signal_command): Use user_visible_resume_target. Compare thread
17557 pointers instead of inferior_ptid.
17558 (info_program_command): Adjust to pass down target.
17559 (attach_command): Mark target's 'thread_executing' flag.
17560 (stop_current_target_threads_ns): New, factored out from ...
17561 (interrupt_target_1): ... this. Switch inferior before making
17562 target calls.
17563 * inferior-iter.h
17564 (struct all_inferiors_iterator, struct all_inferiors_range)
17565 (struct all_inferiors_safe_range)
17566 (struct all_non_exited_inferiors_range): Filter on
17567 process_stratum_target too. Remove explicit.
17568 * inferior.c (inferior::inferior): Push dummy target on target
17569 stack.
17570 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17571 Add process_stratum_target parameter, and pass it down.
17572 (have_live_inferiors): Adjust.
17573 (switch_to_inferior_and_push_target): New.
17574 (add_inferior_command, clone_inferior_command): Handle
17575 "-no-connection" parameter. Use
17576 switch_to_inferior_and_push_target.
17577 (_initialize_inferior): Mention "-no-connection" option in
17578 the help of "add-inferior" and "clone-inferior" commands.
17579 * inferior.h: Include "process-stratum-target.h".
17580 (interrupt_target_1): Use bool.
17581 (struct inferior) <push_target, unpush_target, target_is_pushed,
17582 find_target_beneath, top_target, process_target, target_at,
17583 m_stack>: New.
17584 (discard_all_inferiors): Delete.
17585 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17586 (all_inferiors, all_non_exited_inferiors): Add
17587 process_stratum_target parameter.
17588 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17589 (target_last_proc_target): New global.
17590 (follow_fork_inferior): Push target on new inferior. Pass target
17591 to add_thread_silent. Call exec_on_vfork. Handle target's
17592 reference count.
17593 (follow_fork): Adjust get_last_target_status call. Also consider
17594 target.
17595 (follow_exec): Push target on new inferior.
17596 (struct execution_control_state) <target>: New field.
17597 (user_visible_resume_target): New.
17598 (do_target_resume): Call target_async.
17599 (resume_1): Set target's threads_executing flag. Consider resume
17600 target.
17601 (commit_resume_all_targets): New.
17602 (proceed): Also consider resume target. Skip threads of inferiors
17603 with no execution. Commit resumtion in all targets.
17604 (start_remote): Pass current inferior to wait_for_inferior.
17605 (infrun_thread_stop_requested): Consider target as well. Pass
17606 thread_info pointer to clear_inline_frame_state instead of ptid.
17607 (infrun_thread_thread_exit): Consider target as well.
17608 (random_pending_event_thread): New inferior parameter. Use it.
17609 (do_target_wait): Rename to ...
17610 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17611 down.
17612 (threads_are_resumed_pending_p, do_target_wait): New.
17613 (prepare_for_detach): Adjust calls.
17614 (wait_for_inferior): New inferior parameter. Handle it. Use
17615 do_target_wait_1 instead of do_target_wait.
17616 (fetch_inferior_event): Adjust. Switch to representative
17617 inferior. Pass target down.
17618 (set_last_target_status): Add process_stratum_target parameter.
17619 Save target in global.
17620 (get_last_target_status): Add process_stratum_target parameter and
17621 handle it.
17622 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17623 (context_switch): Check inferior_ptid == null_ptid before calling
17624 inferior_thread().
17625 (get_inferior_stop_soon): Pass down target.
17626 (wait_one): Rename to ...
17627 (poll_one_curr_target): ... this.
17628 (struct wait_one_event): New.
17629 (wait_one): New.
17630 (stop_all_threads): Adjust.
17631 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17632 event's target.
17633 (switch_back_to_stepped_thread): Also consider target.
17634 (print_stop_event): Update.
17635 (normal_stop): Update. Also consider the resume target.
17636 * infrun.h (wait_for_inferior): Remove declaration.
17637 (user_visible_resume_target): New declaration.
17638 (get_last_target_status, set_last_target_status): New
17639 process_stratum_target parameter.
17640 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17641 process_stratum_target parameter, and use it.
17642 (clear_inline_frame_state (thread_info*)): New.
17643 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17644 process_stratum_target parameter.
17645 (clear_inline_frame_state (thread_info*)): Declare.
17646 * linux-fork.c (delete_checkpoint_command): Pass target down to
17647 find_thread_ptid.
17648 (checkpoint_command): Adjust.
17649 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17650 instead of just tweaking inferior_ptid.
17651 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17652 (exit_lwp): Pass target down to find_thread_ptid.
17653 (attach_proc_task_lwp_callback): Pass target down to
17654 add_thread/set_running/set_executing.
17655 (linux_nat_target::attach): Pass target down to
17656 thread_change_ptid.
17657 (get_detach_signal): Pass target down to find_thread_ptid.
17658 Consider last target status's target.
17659 (linux_resume_one_lwp_throw, resume_lwp)
17660 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17661 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17662 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17663 (linux_nat_target::async_wait_fd): New.
17664 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17665 target down.
17666 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17667 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17668 * linux-thread-db.c (struct thread_db_info::process_target): New
17669 field.
17670 (add_thread_db_info): Save target.
17671 (get_thread_db_info): New process_stratum_target parameter. Also
17672 match target.
17673 (delete_thread_db_info): New process_stratum_target parameter.
17674 Also match target.
17675 (thread_from_lwp): Adjust to pass down target.
17676 (thread_db_notice_clone): Pass down target.
17677 (check_thread_db_callback): Pass down target.
17678 (try_thread_db_load_1): Always push the thread_db target.
17679 (try_thread_db_load, record_thread): Pass target down.
17680 (thread_db_target::detach): Pass target down. Always unpush the
17681 thread_db target.
17682 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17683 target down. Always unpush the thread_db target.
17684 (find_new_threads_callback, thread_db_find_new_threads_2)
17685 (thread_db_target::update_thread_list): Pass target down.
17686 (thread_db_target::pid_to_str): Pass current inferior down.
17687 (thread_db_target::get_thread_local_address): Pass target down.
17688 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17689 target down.
17690 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17691 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17692 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17693 (procfs_init_inferior): Rename to ...
17694 (procfs_target::procfs_init_inferior): ... this and adjust.
17695 (procfs_target::create_inferior, procfs_notice_thread)
17696 (procfs_do_thread_registers): Adjust.
17697 * ppc-fbsd-tdep.c: Include "inferior.h".
17698 (ppcfbsd_get_thread_local_address): Pass down target.
17699 * proc-service.c (ps_xfer_memory): Switch current inferior and
17700 program space as well.
17701 (get_ps_regcache): Pass target down.
17702 * process-stratum-target.c
17703 (process_stratum_target::thread_address_space)
17704 (process_stratum_target::thread_architecture): Pass target down.
17705 * process-stratum-target.h
17706 (process_stratum_target::threads_executing): New field.
17707 (as_process_stratum_target): New.
17708 * ravenscar-thread.c
17709 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17710 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17711 down.
17712 * record-btrace.c (record_btrace_target::info_record): Adjust.
17713 (record_btrace_target::record_method)
17714 (record_btrace_target::record_is_replaying)
17715 (record_btrace_target::fetch_registers)
17716 (get_thread_current_frame_id, record_btrace_target::resume)
17717 (record_btrace_target::wait, record_btrace_target::stop): Pass
17718 target down.
17719 * record-full.c (record_full_wait_1): Switch to event thread.
17720 Pass target down.
17721 * regcache.c (regcache::regcache)
17722 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17723 process_stratum_target parameter and handle it.
17724 (current_thread_target): New global.
17725 (get_thread_regcache): Add process_stratum_target parameter and
17726 handle it. Switch inferior before calling target method.
17727 (get_thread_regcache): Pass target down.
17728 (get_thread_regcache_for_ptid): Pass target down.
17729 (registers_changed_ptid): Add process_stratum_target parameter and
17730 handle it.
17731 (registers_changed_thread, registers_changed): Pass target down.
17732 (test_get_thread_arch_aspace_regcache): New.
17733 (current_regcache_test): Define a couple local test_target_ops
17734 instances and use them for testing.
17735 (readwrite_regcache): Pass process_stratum_target parameter.
17736 (cooked_read_test, cooked_write_test): Pass mock_target down.
17737 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17738 (get_thread_arch_aspace_regcache): Add process_stratum_target
17739 parameter.
17740 (regcache::target): New method.
17741 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17742 (regcache::registers_changed_ptid): Add process_stratum_target
17743 parameter.
17744 (regcache::m_target): New field.
17745 (registers_changed_ptid): Add process_stratum_target parameter.
17746 * remote.c (remote_state::supports_vCont_probed): New field.
17747 (remote_target::async_wait_fd): New method.
17748 (remote_unpush_and_throw): Add remote_target parameter.
17749 (get_current_remote_target): Adjust.
17750 (remote_target::remote_add_inferior): Push target.
17751 (remote_target::remote_add_thread)
17752 (remote_target::remote_notice_new_inferior)
17753 (get_remote_thread_info): Pass target down.
17754 (remote_target::update_thread_list): Skip threads of inferiors
17755 bound to other targets. (remote_target::close): Don't discard
17756 inferiors. (remote_target::add_current_inferior_and_thread)
17757 (remote_target::process_initial_stop_replies)
17758 (remote_target::start_remote)
17759 (remote_target::remote_serial_quit_handler): Pass down target.
17760 (remote_target::remote_unpush_target): New remote_target
17761 parameter. Unpush the target from all inferiors.
17762 (remote_target::remote_unpush_and_throw): New remote_target
17763 parameter. Pass it down.
17764 (remote_target::open_1): Check whether the current inferior has
17765 execution instead of checking whether any inferior is live. Pass
17766 target down.
17767 (remote_target::remote_detach_1): Pass down target. Use
17768 remote_unpush_target.
17769 (extended_remote_target::attach): Pass down target.
17770 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17771 (remote_target::append_resumption): Pass down target.
17772 (remote_target::append_pending_thread_resumptions)
17773 (remote_target::remote_resume_with_hc, remote_target::resume)
17774 (remote_target::commit_resume): Pass down target.
17775 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17776 (remote_target::interrupt_query)
17777 (remote_target::remove_new_fork_children)
17778 (remote_target::check_pending_events_prevent_wildcard_vcont)
17779 (remote_target::remote_parse_stop_reply)
17780 (remote_target::process_stop_reply): Pass down target.
17781 (first_remote_resumed_thread): New remote_target parameter. Pass
17782 it down.
17783 (remote_target::wait_as): Pass down target.
17784 (unpush_and_perror): New remote_target parameter. Pass it down.
17785 (remote_target::readchar, remote_target::remote_serial_write)
17786 (remote_target::getpkt_or_notif_sane_1)
17787 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17788 down target.
17789 (remote_target::mourn_inferior): Pass down target. Use
17790 remote_unpush_target.
17791 (remote_target::core_of_thread)
17792 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17793 (remote_target::pid_to_exec_file)
17794 (remote_target::thread_handle_to_thread_info): Pass down target.
17795 (remote_target::async_wait_fd): New.
17796 * riscv-fbsd-tdep.c: Include "inferior.h".
17797 (riscv_fbsd_get_thread_local_address): Pass down target.
17798 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17799 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17800 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17801 Adjust.
17802 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17803 * solib-svr4.c (enable_break): Pass down target.
17804 * spu-multiarch.c (parse_spufs_run): Pass down target.
17805 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17806 * target-delegates.c: Regenerate.
17807 * target.c (g_target_stack): Delete.
17808 (current_top_target): Return the current inferior's top target.
17809 (target_has_execution_1): Refer to the passed-in inferior's top
17810 target.
17811 (target_supports_terminal_ours): Check whether the initial
17812 inferior was already created.
17813 (decref_target): New.
17814 (target_stack::push): Incref/decref the target.
17815 (push_target, push_target, unpush_target): Adjust.
17816 (target_stack::unpush): Defref target.
17817 (target_is_pushed): Return bool. Adjust to refer to the current
17818 inferior's target stack.
17819 (dispose_inferior): Delete, and inline parts ...
17820 (target_preopen): ... here. Only dispose of the current inferior.
17821 (target_detach): Hold strong target reference while detaching.
17822 Pass target down.
17823 (target_thread_name): Add assertion.
17824 (target_resume): Pass down target.
17825 (target_ops::beneath, find_target_at): Adjust to refer to the
17826 current inferior's target stack.
17827 (get_dummy_target): New.
17828 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17829 has a thread running.
17830 (initialize_targets): Rename to ...
17831 (_initialize_target): ... this.
17832 * target.h: Include "gdbsupport/refcounted-object.h".
17833 (struct target_ops): Inherit refcounted_object.
17834 (target_ops::shortname, target_ops::longname): Make const.
17835 (target_ops::async_wait_fd): New method.
17836 (decref_target): Declare.
17837 (struct target_ops_ref_policy): New.
17838 (target_ops_ref): New typedef.
17839 (get_dummy_target): Declare function.
17840 (target_is_pushed): Return bool.
17841 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17842 (all_matching_threads_iterator::all_matching_threads_iterator):
17843 Handle filter target.
17844 * thread-iter.h (struct all_matching_threads_iterator, struct
17845 all_matching_threads_range, class all_non_exited_threads_range):
17846 Filter by target too. Remove explicit.
17847 * thread.c (threads_executing): Delete.
17848 (inferior_thread): Pass down current inferior.
17849 (clear_thread_inferior_resources): Pass down thread pointer
17850 instead of ptid_t.
17851 (add_thread_silent, add_thread_with_info, add_thread): Add
17852 process_stratum_target parameter. Use it for thread and inferior
17853 searches.
17854 (is_current_thread): New.
17855 (thread_info::deletable): Use it.
17856 (find_thread_ptid, thread_count, in_thread_list)
17857 (thread_change_ptid, set_resumed, set_running): New
17858 process_stratum_target parameter. Pass it down.
17859 (set_executing): New process_stratum_target parameter. Pass it
17860 down. Adjust reference to 'threads_executing'.
17861 (threads_are_executing): New process_stratum_target parameter.
17862 Adjust reference to 'threads_executing'.
17863 (set_stop_requested, finish_thread_state): New
17864 process_stratum_target parameter. Pass it down.
17865 (switch_to_thread): Also match inferior.
17866 (switch_to_thread): New process_stratum_target parameter. Pass it
17867 down.
17868 (update_threads_executing): Reimplement.
17869 * top.c (quit_force): Pop targets from all inferior.
17870 (gdb_init): Don't call initialize_targets.
17871 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17872 Declare.
17873 (windows_add_thread, windows_delete_thread): Adjust.
17874 (get_windows_debug_event): Rename to ...
17875 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17876 * tracefile-tfile.c (tfile_target_open): Pass down target.
17877 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17878 Forward declare.
17879 (switch_to_thread): Add process_stratum_target parameter.
17880 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17881 parameter. Use it.
17882 (mi_on_resume): Pass target down.
17883 * nat/fork-inferior.c (startup_inferior): Add
17884 process_stratum_target parameter. Pass it down.
17885 * nat/fork-inferior.h (startup_inferior): Add
17886 process_stratum_target parameter.
17887 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17888
75c6c844
PA
178892020-01-10 Pedro Alves <palves@redhat.com>
17890
17891 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17892 directly. Instead find the first thread in the thread list and
17893 use switch_to_thread.
17894
78f2c40a
PA
178952020-01-10 Pedro Alves <palves@redhat.com>
17896
17897 * remote.c (remote_target::remote_add_inferior): Don't bind a
17898 process to the current inferior if the current inferior is already
17899 bound to a process.
17900
e7af6c70
TBA
179012020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17902 Pedro Alves <palves@redhat.com>
17903
17904 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17905 If no process is specified, return null_ptid instead of
17906 inferior_ptid.
17907 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17908 TARGET_WAITKIND_SIGNALLED with no pid.
17909
31ba933e
PA
179102020-01-10 Pedro Alves <palves@redhat.com>
17911
17912 * remote.c (first_remote_resumed_thread): New.
17913 (remote_target::wait_as): Use it as default event_ptid instead of
17914 inferior_ptid.
17915
735fc2ca
PA
179162020-01-10 Pedro Alves <palves@redhat.com>
17917
17918 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17919
c17e02e1
PA
179202020-01-10 Pedro Alves <palves@redhat.com>
17921
17922 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17923 not -1.
17924
ab1ddbcf
PA
179252020-01-10 Pedro Alves <palves@redhat.com>
17926
17927 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17928 ptid to get_last_target_status.
17929 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17930 ptid to get_last_target_status.
17931 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17932 get_last_target_status.
17933 (info_program_command): Don't pass a target_waitstatus to
17934 get_last_target_status.
17935 * infrun.c (init_wait_for_inferior): Use
17936 nullify_last_target_wait_ptid.
17937 (get_last_target_status): Handle nullptr arguments.
17938 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17939 (print_stop_event): Don't pass a ptid to get_last_target_status.
17940 (normal_stop): Don't pass a ptid to get_last_target_status.
17941 * infrun.h (get_last_target_status, set_last_target_status): Move
17942 comments here and update.
17943 (nullify_last_target_wait_ptid): Declare.
17944 * linux-fork.c (fork_load_infrun_state): Remove local extern
17945 declaration of nullify_last_target_wait_ptid.
17946 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17947 to get_last_target_status.
17948
f3f8ece4
PA
179492020-01-10 Pedro Alves <palves@redhat.com>
17950
17951 * gdbthread.h (scoped_restore_current_thread)
17952 <dont_restore, restore, m_dont_restore>: Declare.
17953 * thread.c (thread_alive): Add assertion. Return bool.
17954 (switch_to_thread_if_alive): New.
17955 (prune_threads): Switch inferior/thread.
17956 (print_thread_info_1): Switch thread before calling target methods.
17957 (scoped_restore_current_thread::restore): New, factored out from
17958 ...
17959 (scoped_restore_current_thread::~scoped_restore_current_thread):
17960 ... this.
17961 (scoped_restore_current_thread::scoped_restore_current_thread):
17962 Add assertion.
17963 (thread_apply_all_command, thread_select): Use
17964 switch_to_thread_if_alive.
17965 * infrun.c (proceed, restart_threads, handle_signal_stop)
17966 (switch_back_to_stepped_thread): Switch current thread before
17967 calling target methods.
17968
db2d40f7
PA
179692020-01-10 Pedro Alves <palves@redhat.com>
17970
17971 * inferior.c (switch_to_inferior_no_thread): New function,
17972 factored out from ...
17973 (inferior_command): ... here.
17974 * inferior.h (switch_to_inferior_no_thread): Declare.
17975 * mi/mi-main.c (run_one_inferior): Use
17976 switch_to_inferior_no_thread.
17977
bd420a2d
PA
179782020-01-10 Pedro Alves <palves@redhat.com>
17979
17980 * infcmd.c (kill_command): Remove dead code.
17981
ddf5db90
PA
179822020-01-10 Pedro Alves <palves@redhat.com>
17983
17984 * remote.c (remote_target::mourn_inferior): No longer check
17985 whether the target is running.
17986
5018ce90
PA
179872020-01-10 Pedro Alves <palves@redhat.com>
17988
17989 * corelow.c (core_target::has_execution): Change parameter type to
17990 inferior pointer.
17991 * inferior.c (number_of_live_inferiors): Use
17992 inferior::has_execution instead of target_has_execution_1.
17993 * inferior.h (inferior::has_execution): New.
17994 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17995 inferior::has_execution instead of target_has_execution_1.
17996 * process-stratum-target.c
17997 (process_stratum_target::has_execution): Change parameter type to
17998 inferior pointer. Check the inferior's PID instead of
17999 inferior_ptid.
18000 * process-stratum-target.h
18001 (process_stratum_target::has_execution): Change parameter type to
18002 inferior pointer.
18003 * record-full.c (record_full_core_target::has_execution): Change
18004 parameter type to inferior pointer.
18005 * target.c (target_has_execution_1): Change parameter type to
18006 inferior pointer.
18007 (target_has_execution_current): Adjust.
18008 * target.h (target_ops::has_execution): Change parameter type to
18009 inferior pointer.
18010 (target_has_execution_1): Change parameter type to inferior
18011 pointer. Change return type to bool.
18012 * tracefile.h (tracefile_target::has_execution): Change parameter
18013 type to inferior pointer.
18014
74375d18
PA
180152020-01-10 Pedro Alves <palves@redhat.com>
18016
18017 * exceptions.c (print_flush): Remove current_top_target() check.
18018
acdf84a6
PA
180192020-01-10 Pedro Alves <palves@redhat.com>
18020
18021 * remote.c (show_remote_exec_file): Show the current inferior's
18022 exec-file instead of the command variable's value.
18023
ec506636
PA
180242020-01-10 Pedro Alves <palves@redhat.com>
18025
18026 * record-full.c (record_full_resume_ptid): New global.
18027 (record_full_target::resume): Set it.
18028 (record_full_wait_1): Use record_full_resume_ptid instead of
18029 inferior_ptid.
18030
873657b9
PA
180312020-01-10 Pedro Alves <palves@redhat.com>
18032
18033 * gdbthread.h (scoped_restore_current_thread)
18034 <dont_restore, restore, m_dont_restore>: Declare.
18035 * thread.c (thread_alive): Add assertion. Return bool.
18036 (switch_to_thread_if_alive): New.
18037 (prune_threads): Switch inferior/thread.
18038 (print_thread_info_1): Switch thread before calling target methods.
18039 (scoped_restore_current_thread::restore): New, factored out from
18040 ...
18041 (scoped_restore_current_thread::~scoped_restore_current_thread):
18042 ... this.
18043 (scoped_restore_current_thread::scoped_restore_current_thread):
18044 Add assertion.
18045 (thread_apply_all_command, thread_select): Use
18046 switch_to_thread_if_alive.
18047
7f0ae84c
GB
180482020-01-10 George Barrett <bob@bob131.so>
18049
18050 * stap-probe.c (stap_modify_semaphore): Don't check for null
18051 semaphores.
18052 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18053 for null semaphores.
18054
f5a7c406
AB
180552020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18056
18057 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18058 all source windows, and maintain horizontal scroll status while
18059 doing so.
18060
9ae6bf64
TT
180612020-01-09 Tom Tromey <tom@tromey.com>
18062
18063 PR tui/18932:
18064 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18065 update_source_window, not print_source_lines.
18066
b2efe70c
AB
180672020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18068
18069 * tui/tui.c (tui_enable): Register tui hooks after calling
18070 tui_display_main.
18071
5f23a082
CB
180722020-01-09 Christian Biesinger <cbiesinger@google.com>
18073
18074 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18075
3061113b
SM
180762020-01-08 Simon Marchi <simon.marchi@efficios.com>
18077
18078 * thread.c (print_thread_info_1): Fix indentation.
18079
57d75002
CB
180802020-01-09 Christian Biesinger <cbiesinger@google.com>
18081
18082 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18083 unique_xmalloc_ptr outside the if to always free the demangled name.
18084
6a053cb1
TT
180852020-01-08 Tom Tromey <tromey@adacore.com>
18086
18087 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18088 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18089 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18090 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18091 Remove.
18092 (section_offsets): New typedef.
18093 * symtab.c (fixup_section, get_msymbol_address): Update.
18094 * symmisc.c (dump_msymbols): Update.
18095 * symfile.h (relative_addr_info_to_section_offsets)
18096 (symfile_map_offsets_to_segments): Update.
18097 * symfile.c (build_section_addr_info_from_objfile)
18098 (init_objfile_sect_indices): Update.
18099 (struct place_section_arg): Change type of "offsets".
18100 (place_section): Update.
18101 (relative_addr_info_to_section_offsets): Change type of
18102 "section_offsets". Remove "num_sections" parameter.
18103 (default_symfile_offsets, syms_from_objfile_1)
18104 (set_objfile_default_section_offset): Update.
18105 (reread_symbols): No need to preserve section offsets by hand.
18106 (symfile_map_offsets_to_segments): Change type of "offsets".
18107 * stap-probe.c (relocate_address): Update.
18108 * stabsread.h (process_one_symbol): Update.
18109 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18110 (solib_target_relocate_section_addresses): Update.
18111 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18112 Update.
18113 * solib-frv.c (frv_relocate_main_executable): Update.
18114 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18115 * solib-aix.c (solib_aix_get_section_offsets): Change return
18116 type.
18117 (solib_aix_solib_create_inferior_hook): Update.
18118 * remote.c (remote_target::get_offsets): Update.
18119 * psymtab.c (find_pc_sect_psymtab): Update.
18120 * psympriv.h (struct partial_symbol) <address, text_low,
18121 text_high>: Update.
18122 * objfiles.h (obj_section_offset): Update.
18123 (struct objfile) <section_offsets>: Change type.
18124 <num_sections>: Remove.
18125 (objfile_relocate): Update.
18126 * objfiles.c (entry_point_address_query): Update
18127 (relocate_one_symbol): Change type of "section_offsets".
18128 (objfile_relocate1, objfile_relocate1): Change type of
18129 "new_offsets".
18130 (objfile_rebase1): Update.
18131 * mipsread.c (mipscoff_symfile_read): Update.
18132 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18133 parameter.
18134 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18135 (parse_external, psymtab_to_symtab_1): Update.
18136 * machoread.c (macho_symfile_offsets): Update.
18137 * ia64-tdep.c (ia64_find_unwind_table): Update.
18138 * hppa-tdep.c (read_unwind_info): Update.
18139 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18140 * dwarf2read.c (create_addrmap_from_index)
18141 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18142 (process_psymtab_comp_unit_reader, add_partial_symbol)
18143 (add_partial_subprogram, process_full_comp_unit)
18144 (read_file_scope, read_func_scope, read_lexical_block_scope)
18145 (read_call_site_scope, dwarf2_rnglists_process)
18146 (dwarf2_ranges_process, dwarf2_ranges_read)
18147 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18148 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18149 Update.
18150 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18151 Update.
18152 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18153 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18154 (process_one_symbol): Change type of "section_offsets".
18155 * ctfread.c (get_objfile_text_range): Update.
18156 * coffread.c (coff_symtab_read, enter_linenos)
18157 (process_coff_symbol): Update.
18158 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18159 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18160
456e800a
TT
181612020-01-08 Tom Tromey <tromey@adacore.com>
18162
18163 * dwarf2read.c (parse_macro_definition): Use std::string.
18164 (parse_macro_definition): Likewise.
18165
6dfa2fc2
TT
181662020-01-08 Tom Tromey <tromey@adacore.com>
18167
18168 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18169 (ATTR_ALLOC_CHUNK): Remove.
18170
421d1616
TT
181712020-01-08 Tom Tromey <tromey@adacore.com>
18172
18173 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18174
43816ebc
TT
181752020-01-08 Tom Tromey <tromey@adacore.com>
18176
18177 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18178 (dwarf2_compute_name, open_dwo_file): Likewise.
18179 (process_enumeration_scope): Use std::vector.
18180 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18181 (partial_die_info::fixup, dwarf2_start_subfile)
18182 (guess_full_die_structure_name, dwarf2_name): Likewise.
18183 (determine_prefix): Update.
18184 (guess_full_die_structure_name): Make return type const.
18185 (partial_die_full_name): Return unique_xmalloc_ptr.
18186 (DW_FIELD_ALLOC_CHUNK): Remove.
18187
4212d509
TT
181882020-01-07 Tom Tromey <tromey@adacore.com>
18189
18190 PR build/24937:
18191 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18192
06a6207a
JT
181932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18194
18195 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18196
153d79c4
AB
181972020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18198
18199 * stack.c (print_frame_info): Move disassemble_next_line code
18200 inside source_print block.
18201
66182876
EZ
182022020-01-06 Eli Zaretskii <eliz@gnu.org>
18203
18204 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18205 gdb/signals.h, as we are now using native signal symbols.
18206
cbfa8581
SV
182072020-01-06 Shahab Vahedi <shahab@synopsys.com>
18208
18209 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18210 overflow by an early check of content vs threshold.
aac66a4c 18211 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18212 Likewise.
18213
3f602821
EZ
182142020-01-06 Eli Zaretskii <eliz@gnu.org>
18215
18216 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18217
a08c904d
JT
182182020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18219
18220 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18221 export table if no section contains it's RVA.
18222
89a65580
EZ
182232020-01-06 Eli Zaretskii <eliz@gnu.org>
18224
18225 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18226
8b7fcda2
HD
182272020-01-06 Hannes Domani <ssbssa@yahoo.de>
18228
18229 * source.c (print_source_lines_base): Set last_line_listed.
18230
a61b4f69
SV
182312020-01-06 Shahab Vahedi <shahab@synopsys.com>
18232
18233 * tui/tui-disasm.c: Remove trailing spaces.
18234
559e7e50
EZ
182352020-01-06 Eli Zaretskii <eliz@gnu.org>
18236 Pedro Alves <palves@redhat.com>
18237
18238 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18239 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18240 (windows_gdb_signal_to_target): New function, uses the above
18241 enumeration to convert GDB internal signal codes to equivalent
18242 Windows codes.
18243 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18244 * windows-nat.c: Include "gdb_wait.h".
18245 (get_windows_debug_event): Extract the fatal exception from the
18246 exit status and convert to the equivalent Posix signal number.
18247 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18248 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18249 * gdbsupport/gdb_wait.c: New file, implements
18250 windows_status_to_termsig.
18251 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18252 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18253
f2302a34
AB
182542020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18255
18256 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18257 show_layout.
18258
6a5206eb
LM
182592020-01-05 Luis Machado <luis.machado@linaro.org>
18260
18261 * aarch64-linux-nat.c
18262 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18263 and bfd_mach_aarch64.
18264
6ec1d75e
PW
182652020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18266
18267 * ui-file.c (stdio_file::can_emit_style_escape)
18268 (tee_file::can_emit_style_escape): Ensure style is used also on
18269 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18270 to gdb_stdout.
18271 * main.c (set_gdb_data_directory): Use file style to output the
18272 warning that the given pathname is not a directory.
18273 * top.c (show_history_filename, gdb_safe_append_history)
18274 (show_gdb_datadir): Use file style.
18275
44f81a76
HD
182762020-01-03 Hannes Domani <ssbssa@yahoo.de>
18277
18278 * solib-target.c (struct lm_info_target):
18279 Change offsets to be a unique_xmalloc_ptr.
18280 (solib_target_relocate_section_addresses): Update.
18281
25057eb0
HD
182822020-01-03 Hannes Domani <ssbssa@yahoo.de>
18283
18284 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18285
6e2118f5
BE
182862020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18287
18288 * MAINTAINERS (Write After Approval): Add myself.
18289
8133c7dc
LM
182902020-01-02 Luis Machado <luis.machado@linaro.org>
18291
18292 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18293 Cell BE architecture.
18294 * target.h (struct target_ops) <thread_architecture>: Likewise.
18295
48189bec
HD
182962020-01-01 Hannes Domani <ssbssa@yahoo.de>
18297
18298 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18299
ead1063b
HD
183002020-01-01 Hannes Domani <ssbssa@yahoo.de>
18301
18302 * MAINTAINERS (Write After Approval): Add myself.
18303
e5d78223
JB
183042020-01-01 Joel Brobecker <brobecker@adacore.com>
18305
18306 * gdbarch.sh: Update copyright year range of generated files.
18307
b811d2c2
JB
183082020-01-01 Joel Brobecker <brobecker@adacore.com>
18309
18310 Update copyright year range in all GDB files.
18311
5f4def5c
JB
183122020-01-01 Joel Brobecker <brobecker@adacore.com>
18313
18314 * copyright.py: Convert to Python 3.
18315
51fd4002
JB
183162020-01-01 Joel Brobecker <brobecker@adacore.com>
18317
18318 * copyright.py: Adapt after move of gnulib directory from gdb
18319 directory to toplevel directory.
18320
5fb651f2
JB
183212020-01-01 Joel Brobecker <brobecker@adacore.com>
18322
18323 * copyright.py (main): Exit if run from the wrong directory.
18324
5dd8bf88
JB
183252020-01-01 Joel Brobecker <brobecker@adacore.com>
18326
18327 * top.c (print_gdb_version): Change copyright year to 2020.
18328
9f71dacb 183292020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18330
9f71dacb 18331 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18332
9f71dacb 18333For older changes see ChangeLog-2019.
c906108c
SS
18334\f
18335Local Variables:
18336mode: change-log
18337left-margin: 8
18338fill-column: 74
18339version-control: never
57da7796 18340coding: utf-8
c906108c 18341End: