Constify parse_and_eval_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-13 Tom Tromey <tom@tromey.com>
2
3 * gdbtypes.c (safe_parse_type): Make argument const.
4 * value.h (parse_and_eval_type): Make argument const.
5 * eval.c (parse_and_eval_type): Make argument const.
6
7 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * NEWS: Mention new commands.
10 * target-dcache.c: Add 'cli/cli-cmds.h' include.
11 (maint_flush_dcache_command): New function.
12 (_initialize_target_dcache): Create new 'maint flush dcache'
13 command.
14
15 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * NEWS: Mention new commands, and that the old commands are now
18 deprecated.
19 * cli/cli-cmds.c (maintenanceflushlist): Define.
20 * cli/cli-cmds.h (maintenanceflushlist): Declare.
21 * maint.c (_initialize_maint_cmds): Initialise
22 maintenanceflushlist.
23 * regcache.c: Add 'cli/cli-cmds.h' include.
24 (reg_flush_command): Add header comment.
25 (_initialize_regcache): Create new 'maint flush register-cache'
26 command, make 'flushregs' an alias.
27 * symtab.c: Add 'cli/cli-cmds.h' include.
28 (_initialize_symtab): Create new 'maint flush symbol-cache'
29 command, make old command an alias.
30
31 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
34 result from lookup_cmd_composition_1, use the prefixes from both
35 the command and the alias instead.
36 (lookup_cmd_composition_1): Initial prefix command is the based on
37 the search list being passed in. Simplify the logic for tracking
38 the prefix command. Replace a use of alloca with a local
39 std::string.
40
41 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
44 of NULL. Don't print message piece by piece, but sentence at a
45 time to allow internationalisation. Some whitespace cleanup.
46
47 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 PR cli/15104
50 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
51 deprecated_cmd_warning.
52 (deprecated_cmd_warning): Take extra parameter, call
53 lookup_cmd_composition_1 and pass new parameter through.
54 (lookup_cmd_composition_1): New function, takes implementation of
55 lookup_cmd_composition but with extra parameter.
56 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
57 passing in cmdlist.
58 * command.h (deprecated_cmd_warning): Add extra parameter to
59 declaration.
60 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
61
62 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
65 command.h, add extra parameter, and use this to guard giving a
66 warning.
67 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
68 include argument names in declaration, add new argument.
69 * completer.c (complete_line_internal_1): Remove unneeded
70 brackets, pass extra argument to lookup_cmd_1.
71
72 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * infrun.h (debug_infrun): Make a bool.
75 * infrun.c (debug_infrun): Make a bool.
76 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
77 debug infrun".
78
79 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * displaced-stepping.h (displaced_debug_printf): Use
82 debug_prefixed_printf_cond.
83 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
84 (dwarf_read_debug_printf_v): Likewise.
85 * infrun.h (infrun_debug_printf): Likewise.
86 * linux-nat.c (linux_nat_debug_printf): Likewise.
87
88 2020-12-11 Tom Tromey <tom@tromey.com>
89
90 * p-exp.y (intvar): Remove global.
91 (DOLLAR_VARIABLE): Change type.
92 (start): Update.
93 (exp): Call write_dollar_variable here...
94 (yylex): ... not here.
95 * m2-exp.y (DOLLAR_VARIABLE): Change type.
96 (variable): Call write_dollar_variable here...
97 (yylex): ... not here.
98 * f-exp.y (DOLLAR_VARIABLE): Change type.
99 (exp): Call write_dollar_variable here...
100 (yylex): ... not here.
101
102 2020-12-11 Tom Tromey <tom@tromey.com>
103
104 * varobj.c (varobj_create): Update.
105 (install_variable): Return void.
106
107 2020-12-11 Tom Tromey <tom@tromey.com>
108
109 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
110
111 2020-12-11 Tom Tromey <tom@tromey.com>
112
113 * varobj.c (varobj_clear_saved_item): Remove.
114 (update_dynamic_varobj_children): Update.
115 (varobj::~varobj): Don't call varobj_clear_saved_item.
116
117 2020-12-11 Tom Tromey <tom@tromey.com>
118
119 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
120 (update_dynamic_varobj_children, create_child)
121 (create_child_with_value): Update.
122 * varobj-iter.h (struct varobj_item) <value>: Now a
123 value_ref_ptr.
124 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
125
126 2020-12-11 Tom Tromey <tom@tromey.com>
127
128 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
129 (varobj_get_iterator): Return unique_ptr.
130 (update_dynamic_varobj_children, install_visualizer)
131 (varobj::~varobj): Update.
132 * python/python-internal.h (py_varobj_get_iterator): Return
133 unique_ptr.
134 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
135
136 2020-12-11 Tom Tromey <tom@tromey.com>
137
138 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
139 (varobj_clear_saved_item, update_dynamic_varobj_children):
140 Update.
141
142 2020-12-11 Tom Tromey <tom@tromey.com>
143
144 * varobj.c (update_dynamic_varobj_children): Update.
145 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
146 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
147 type.
148 (py_varobj_iter::next): Likewise.
149
150 2020-12-11 Tom Tromey <tom@tromey.com>
151
152 * varobj.c (update_dynamic_varobj_children, install_visualizer)
153 (varobj::~varobj): Update.
154 * varobj-iter.h (struct varobj_iter): Change to interface class.
155 (struct varobj_iter_ops): Remove.
156 (varobj_iter_next, varobj_iter_delete): Remove.
157 * python/py-varobj.c (struct py_varobj_iter): Derive from
158 varobj_iter. Add constructor, destructor. Rename members.
159 (py_varobj_iter::~py_varobj_iter): Rename from
160 py_varobj_iter_dtor.
161 (py_varobj_iter::next): Rename from py_varobj_iter_next.
162 (py_varobj_iter_ops): Remove.
163 (py_varobj_iter): Rename from py_varobj_iter_ctor.
164 (py_varobj_iter_new): Remove.
165 (py_varobj_get_iterator): Update.
166
167 2020-12-11 Tom Tromey <tom@tromey.com>
168
169 * varobj.h (all_root_varobjs): Take a function_view.
170 * varobj.c (all_root_varobjs): Take a function_view.
171 (varobj_invalidate_iter): Remove unused parameter.
172 (varobj_invalidate): Update.
173 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
174 (mi_cmd_var_update_iter): Change parameters.
175
176 2020-12-11 Tom Tromey <tom@tromey.com>
177
178 * varobj.c (struct varobj_root) <next>: Remove.
179 (struct vlist): Remove.
180 (rootlist): Now a std::list.
181 (install_variable, uninstall_variable, all_root_varobjs): Update.
182
183 2020-12-11 Tom Tromey <tom@tromey.com>
184
185 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
186 (varobj_table): Now htab_t.
187 (varobj_get_handle, install_variable, uninstall_variable):
188 Update.
189 (hash_varobj, eq_varobj_and_string): New functions.
190 (hash_varobj): Update.
191
192 2020-12-11 Tom Tromey <tom@tromey.com>
193
194 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
195 * ada-lang.c (check_status_exception): Update.
196 * breakpoint.c (free_bp_location): Remove.
197 (decref_bp_location): Use bp_location_ref_policy.
198 (bpstats::bpstats): Don't call incref_bp_location.
199 (bpstats::~bpstats): Remove.
200 (bpstats::bpstats): Update.
201 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
202 (bp_location::bp_location): Update.
203 (incref_bp_location): Remove.
204 (bkpt_print_it): Update.
205 * breakpoint.h (class bp_location): Derive from
206 refcounted_object.
207 (struct bpstats): Remove destructor.
208 <bp_location_at>: Now a bp_location_ref_ptr.
209 <refc>: Remove.
210 (bp_location_ref_ptr): New typedef.
211 (struct bp_location_ref_policy): New.
212
213 2020-12-11 Tom Tromey <tom@tromey.com>
214
215 * thread.c (class scoped_inc_dec_ref): Remove.
216 (tp_array_compar_ascending, tp_array_compar_descending): Change
217 parameter types.
218 (thread_apply_all_command): Use thread_info_ref.
219
220 2020-12-11 Tom Tromey <tom@tromey.com>
221
222 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
223 (stop_context::stop_context): Update.
224 (stop_context::~stop_context): Remove.
225
226 2020-12-11 Tom Tromey <tom@tromey.com>
227
228 * inferior.c (current_inferior_): Change type.
229 (current_inferior, set_current_inferior, initialize_inferiors):
230 Update.
231
232 2020-12-11 Tom Tromey <tom@tromey.com>
233
234 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
235 Change type.
236
237 2020-12-11 Tom Tromey <tromey@adacore.com>
238
239 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
240 field.
241 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
242 (read_atcb): Use cpu_id_offset.
243
244 2020-12-10 Kevin Buettner <kevinb@redhat.com>
245
246 * ada-lang.c (ada_fold_name): Fix off-by-one error.
247
248 2020-12-10 Luis Machado <luis.machado@linaro.org>
249
250 * breakpoint.c (should_be_inserted): Don't output newline.
251
252 2020-12-10 Luis Machado <luis.machado@linaro.org>
253
254 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
255 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
256 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
257 * arch/aarch64.h: ... here.
258 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
259 (aarch64_maybe_swab128): New function.
260 (aarch64_sve_regs_copy_to_reg_buf)
261 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
262 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
263 the data field.
264 (TF_REG_VALUE_BYTES): New enum value.
265 (trad_frame_value_bytes_p): New function.
266 (trad_frame_set_value_bytes): New function.
267 (trad_frame_set_reg_value_bytes): New function.
268 (trad_frame_get_prev_register): Handle register values saved as bytes.
269 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
270 (struct trad_frame_saved_reg) <data>: New field.
271 (trad_frame_set_value_bytes): New prototype.
272 (trad_frame_value_bytes_p): New prototype.
273
274 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
275
276 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
277 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
278 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
279
280 2020-12-09 Tom Tromey <tromey@adacore.com>
281
282 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
283
284 2020-12-09 Tom Tromey <tromey@adacore.com>
285
286 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
287 and "denominator" to gdb_mpz. Handle block forms.
288 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
289 "denominator" to gdb_mpz.
290 (finish_fixed_point_type): Update.
291 (has_zero_over_zero_small_attribute): Update.
292
293 2020-12-09 Tom Tromey <tromey@adacore.com>
294
295 * expprint.c (op_name): Update.
296 * expression.h (enum exp_opcode): Update.
297 * std-operator.def: Add more opcodes.
298 * ada-operator.def, fortran-operator.def: Remove, moving contents
299 into std-operator.def.
300
301 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
304 Return {} instead of false.
305 (get_discrete_bounds): Compute high bound only if low bound is
306 valid.
307
308 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
309
310 PR 26875, PR 26901
311 * gdbtypes.c (get_discrete_low_bound): Make non-static.
312 (get_discrete_high_bound): Make non-static.
313 * gdbtypes.h (get_discrete_low_bound): New declaration.
314 (get_discrete_high_bound): New declaration.
315 * valarith.c (value_subscript): Only fetch high bound if
316 necessary.
317
318 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
319
320 * gdbtypes.c (get_discrete_bounds): Implement with
321 get_discrete_low_bound and get_discrete_high_bound.
322 (get_discrete_low_bound): New.
323 (get_discrete_high_bound): New.
324
325 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
326
327 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
328 callers.
329 * gdbtypes.c (get_discrete_bounds): Return bool.
330
331 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
332
333 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
334 (ada_value_slice): Adjust.
335 (pos_atr): Adjust.
336 * gdbtypes.c (get_discrete_bounds): Adjust.
337 (discrete_position): Return optional.
338 * gdbtypes.h (discrete_position): Return optional.
339
340 2020-12-07 Tom Tromey <tromey@adacore.com>
341
342 * maint.c (_initialize_maint_cmds): Use expression command
343 completer for "maint print type".
344
345 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 * completer.c (complete_explicit_location): Also add keywords
348 that start with '-' to the completion list.
349
350 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
351
352 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
353 keyword may be followed by any keyword.
354 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
355 'toklen' in the case for "-force-condition".
356
357 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358
359 * main.c (catch_command_errors): Add a flag parameter; invoke
360 `bpstat_do_actions` if the flag is set.
361 (execute_cmdargs): Update a call to `catch_command_errors`.
362
363 2020-12-07 Tom de Vries <tdevries@suse.de>
364
365 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
366
367 2020-12-06 Tom Tromey <tom@tromey.com>
368
369 PR ada/26999
370 * ada-lang.c (replace_operator_with_call): Rewrite.
371
372 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
373
374 PR breakpoints/27009
375 * s390-tdep.h (op_bc): Correct BC opcode value.
376
377 2020-12-06 Joel Brobecker <brobecker@adacore.com>
378
379 * gmp-utils.h (gdb_mpz::safe_export): New private method.
380 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
381 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
382 (gdb_mpz::safe_export): New method.
383 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
384 Update function description.
385 (check_as_integer_raises_out_of_range_error): New function.
386 (gdb_mpz_as_integer_out_of_range): New function.
387 (_initialize_gmp_utils_selftests): Register
388 gdb_mpz_as_integer_out_of_range as a selftest.
389
390 2020-12-05 Joel Brobecker <brobecker@adacore.com>
391
392 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
393 TARGET_CHAR_BIT.
394 (gdb_mpz::write): Likewise.
395
396 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
397
398 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
399 number of displaced step buffers.
400
401 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
402
403 * displaced-stepping.h (struct displaced_step_buffer): Rename
404 to...
405 (struct displaced_step_buffers): ... this.
406 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
407 <struct displaced_step_buffer>: New inner class.
408 <m_buffers>: New.
409 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
410 to...
411 (displaced_step_buffers::prepare): ... this, adjust for multiple
412 buffers.
413 (displaced_step_buffer::finish): Rename to...
414 (displaced_step_buffers::finish): ... this, adjust for multiple
415 buffers.
416 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
417 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
418 adjust for multiple buffers.
419 (displaced_step_buffer::restore_in_ptid): Rename to...
420 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
421 multiple buffers.
422 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
423 for num_disp_step_buffers.
424 * linux-tdep.c (struct linux_gdbarch_data)
425 <num_disp_step_buffers>: New field.
426 (struct linux_info) <disp_step_buf>: Rename to...
427 <disp_step_bufs>: ... this, change type to
428 displaced_step_buffers.
429 (linux_displaced_step_prepare): Use
430 linux_gdbarch_data::num_disp_step_buffers to create that number
431 of buffers.
432 (linux_displaced_step_finish): Adjust.
433 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
434 (linux_displaced_step_restore_all_in_ptid): Adjust.
435 (linux_init_abi): Change supports_displaced_step parameter for
436 num_disp_step_buffers, save it in linux_gdbarch_data.
437 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
438 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
439 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
440 supports_displaced_step parameter for num_disp_step_buffers.
441 (amd64_linux_init_abi): Adjust.
442 (amd64_x32_linux_init_abi): Adjust.
443 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
444 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
445 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
446 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
447 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
448 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
449 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
450 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
451 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
452 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
453 * m68k-linux-tdep.c (m68k_linux_init_abi):
454 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
455 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
456 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
457 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
458 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
459 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
460 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
461 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
462 Change type to displaced_step_buffers.
463 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
464 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
465 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
466 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
467 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
468 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
469 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
470
471 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
472
473 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
474 obkstack.
475 (_initialize_linux_tdep): Register pre-init gdb data instead of
476 post-init.
477
478 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
479
480 * displaced-stepping.h (struct
481 displaced_step_copy_insn_closure): Adjust comments.
482 (struct displaced_step_inferior_state) <step_thread,
483 step_gdbarch, step_closure, step_original, step_copy,
484 step_saved_copy>: Remove fields.
485 (struct displaced_step_thread_state): New.
486 (struct displaced_step_buffer): New.
487 * displaced-stepping.c (displaced_step_buffer::prepare): New.
488 (write_memory_ptid): Move from infrun.c.
489 (displaced_step_instruction_executed_successfully): New,
490 factored out of displaced_step_finish.
491 (displaced_step_buffer::finish): New.
492 (displaced_step_buffer::copy_insn_closure_by_addr): New.
493 (displaced_step_buffer::restore_in_ptid): New.
494 * gdbarch.sh (displaced_step_location): Remove.
495 (displaced_step_prepare, displaced_step_finish,
496 displaced_step_copy_insn_closure_by_addr,
497 displaced_step_restore_all_in_ptid): New.
498 * gdbarch.c: Re-generate.
499 * gdbarch.h: Re-generate.
500 * gdbthread.h (class thread_info) <displaced_step_state>: New
501 field.
502 (thread_step_over_chain_remove): New declaration.
503 (thread_step_over_chain_next): New declaration.
504 (thread_step_over_chain_length): New declaration.
505 * thread.c (thread_step_over_chain_remove): Make non-static.
506 (thread_step_over_chain_next): New.
507 (global_thread_step_over_chain_next): Use
508 thread_step_over_chain_next.
509 (thread_step_over_chain_length): New.
510 (global_thread_step_over_chain_enqueue): Add debug print.
511 (global_thread_step_over_chain_remove): Add debug print.
512 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
513 Remove.
514 * infrun.c (get_displaced_stepping_state): New.
515 (displaced_step_in_progress_any_inferior): Remove.
516 (displaced_step_in_progress_thread): Adjust.
517 (displaced_step_in_progress): Adjust.
518 (displaced_step_in_progress_any_thread): New.
519 (get_displaced_step_copy_insn_closure_by_addr): Remove.
520 (gdbarch_supports_displaced_stepping): Use
521 gdbarch_displaced_step_prepare_p.
522 (displaced_step_reset): Change parameter from inferior to
523 thread.
524 (displaced_step_prepare_throw): Implement using
525 gdbarch_displaced_step_prepare.
526 (write_memory_ptid): Move to displaced-step.c.
527 (displaced_step_restore): Remove.
528 (displaced_step_finish): Implement using
529 gdbarch_displaced_step_finish.
530 (start_step_over): Allow starting more than one displaced step.
531 (prepare_for_detach): Handle possibly multiple threads doing
532 displaced steps.
533 (handle_inferior_event): Handle possibility that fork event
534 happens while another thread displaced steps.
535 * linux-tdep.h (linux_displaced_step_prepare): New.
536 (linux_displaced_step_finish): New.
537 (linux_displaced_step_copy_insn_closure_by_addr): New.
538 (linux_displaced_step_restore_all_in_ptid): New.
539 (linux_init_abi): Add supports_displaced_step parameter.
540 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
541 (linux_displaced_step_prepare): New.
542 (linux_displaced_step_finish): New.
543 (linux_displaced_step_copy_insn_closure_by_addr): New.
544 (linux_displaced_step_restore_all_in_ptid): New.
545 (linux_init_abi): Add supports_displaced_step parameter,
546 register displaced step methods if true.
547 (_initialize_linux_tdep): Register inferior_execd observer.
548 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
549 supports_displaced_step parameter, adjust call to
550 linux_init_abi. Remove call to
551 set_gdbarch_displaced_step_location.
552 (amd64_linux_init_abi): Adjust call to
553 amd64_linux_init_abi_common.
554 (amd64_x32_linux_init_abi): Likewise.
555 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
556 linux_init_abi. Remove call to
557 set_gdbarch_displaced_step_location.
558 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
559 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
560 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
561 linux_init_abi.
562 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
563 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
564 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
565 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
566 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
567 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
568 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
569 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
570 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
571 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
572 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
573 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
574 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
575 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
576 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
577 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
578 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
579 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
580 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
581 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
582 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
583 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
584 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
585 linux_init_abi. Remove call to
586 set_gdbarch_displaced_step_location.
587 * arm-tdep.c (arm_pc_is_thumb): Call
588 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
589 get_displaced_step_copy_insn_closure_by_addr.
590 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
591 clear gdbarch methods.
592 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
593 (get_ppc_per_inferior): New function.
594 (ppc_displaced_step_prepare): New function.
595 (ppc_displaced_step_finish): New function.
596 (ppc_displaced_step_restore_all_in_ptid): New function.
597 (rs6000_gdbarch_init): Register new gdbarch methods.
598 * s390-tdep.c (s390_gdbarch_init): Don't call
599 set_gdbarch_displaced_step_location, set new gdbarch methods.
600
601 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
602
603 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
604 * aarch64-tdep.h: Include displaced-stepping.h.
605 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
606 Move here.
607 (displaced_step_copy_insn_closure_up): Move here.
608 (struct buf_displaced_step_copy_insn_closure): Move here.
609 (struct displaced_step_inferior_state): Move here.
610 (debug_displaced): Move here.
611 (displaced_debug_printf_1): Move here.
612 (displaced_debug_printf): Move here.
613 * displaced-stepping.c: New file.
614 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
615 * gdbarch.h: Re-generate.
616 * inferior.h: Include displaced-stepping.h.
617 * infrun.h (debug_displaced): Move to displaced-stepping.h.
618 (displaced_debug_printf_1): Likewise.
619 (displaced_debug_printf): Likewise.
620 (struct displaced_step_copy_insn_closure): Likewise.
621 (displaced_step_copy_insn_closure_up): Likewise.
622 (struct buf_displaced_step_copy_insn_closure): Likewise.
623 (struct displaced_step_inferior_state): Likewise.
624 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
625 (displaced_debug_printf_1): Likewise.
626 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
627 Likewise.
628 (_initialize_infrun): Don't register "set/show debug displaced".
629
630 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
631
632 * linux-tdep.c (get_linux_inferior_data): Add inferior
633 parameter.
634 (linux_vsyscall_range): Pass current inferior.
635
636 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
637
638 * infrun.c (displaced_step_prepare_throw): Change return type to
639 displaced_step_prepare_status.
640 (displaced_step_prepare): Likewise.
641 (displaced_step_finish): Change return type to
642 displaced_step_finish_status.
643 (resume_1): Adjust.
644 (stop_all_threads): Adjust.
645 * displaced-stepping.h: New file.
646
647 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
648
649 * infrun.c (displaced_step_fixup): Rename to...
650 (displaced_step_finish): ... this, update all callers.
651
652 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
653
654 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
655 (get_displaced_step_copy_insn_closure_by_addr): ... this.
656 Update all users.
657 (displaced_step_closure): Rename to...
658 (displaced_step_copy_insn_closure): ... this. Update all users.
659 (displaced_step_closure_up): Rename to...
660 (displaced_step_copy_insn_closure_up). ... this. Update all
661 users.
662 (buf_displaced_step_closure): Rename to...
663 (buf_displaced_step_copy_insn_closure): ... this. Update all
664 users.
665 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
666 (get_displaced_step_copy_insn_closure_by_addr): ... this.
667 Update all users.
668 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
669 (aarch64_displaced_step_copy_insn_closure): ... this. Update
670 all users.
671 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
672 (amd64_displaced_step_copy_insn_closure): ... this. Update all
673 users.
674 * arm-tdep.h (arm_displaced_step_closure): Rename to...
675 (arm_displaced_step_copy_insn_closure): ... this. Update all
676 users.
677 * i386-tdep.h (i386_displaced_step_closure): Rename to...
678 (i386_displaced_step_copy_insn_closure): ... this. Update all
679 users.
680 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
681 (ppc_displaced_step_copy_insn_closure): ... this. Update all
682 users.
683 * s390-tdep.c (s390_displaced_step_closure): Rename to...
684 (s390_displaced_step_copy_insn_closure): ... this. Update all
685 users.
686 * gdbarch.h: Re-generate.
687 * gdbarch.c: Re-generate.
688
689 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
690
691 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
692 (global_thread_step_over_chain_enqueue): ... this. Update all
693 users.
694 (thread_step_over_chain_remove): Rename to...
695 (global_thread_step_over_chain_remove): ... this. Update all
696 users.
697 (thread_step_over_chain_next): Rename to...
698 (global_thread_step_over_chain_next): ... this. Update all
699 users.
700 * infrun.h (step_over_queue_head): Rename to...
701 (global_thread_step_over_chain_head): ... this. Update all
702 users.
703 * infrun.c (step_over_queue_head): Rename to...
704 (global_thread_step_over_chain_head): ... this. Update all
705 users.
706 * thread.c (step_over_chain_remove): Rename to...
707 (thread_step_over_chain_remove): ... this. Update all users.
708 (thread_step_over_chain_next): Rename to...
709 (global_thread_step_over_chain_next): ... this. Update all
710 users.
711 (thread_step_over_chain_enqueue): Rename to...
712 (global_thread_step_over_chain_enqueue): ... this. Update all
713 users.
714 (thread_step_over_chain_remove): Rename to...
715 (global_thread_step_over_chain_remove): ... this. Update all
716 users.
717
718 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * infrun.c (get_displaced_stepping_state): Remove, change
721 callers to access the field directly.
722
723 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * infrun.c (handle_inferior_event): Restore displaced step
726 buffer bytes in child process when handling fork, even if fork
727 happened in another thread than the displaced-stepping one.
728
729 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
730
731 * infrun.c (infrun_inferior_execd): New function.
732 (_initialize_infrun): Attach inferior_execd observer.
733
734 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
735
736 * observable.h (inferior_execd): Declare new observable.
737 * observable.c (inferior_execd): Declare new observable.
738 * infrun.c (follow_exec): Notify inferior_execd observer.
739 * jit.c (jit_inferior_created_hook): Make static.
740 (_initialize_jit): Register inferior_execd observer.
741 * jit.h (jit_inferior_created_hook): Remove declaration.
742 * solib.c (_initialize_solib): Register inferior_execd observer.
743
744 2020-12-04 Tom de Vries <tdevries@suse.de>
745
746 PR gdb/27003
747 * completer.c (completion_tracker::build_completion_result): Don't
748 access match_list[0][-1].
749
750 2020-12-04 Tom Tromey <tromey@adacore.com>
751
752 * linespec.c (struct linespec_token): Rename; remove typedef.
753 * guile/scm-block.c (struct block_smob): Remove typedef.
754 (struct block_syms_progress_smob): Likewise.
755 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
756 * guile/scm-symtab.c (symtab_smob): Remove typedef.
757 (struct sal_smob): Remove typedef.
758 * guile/scm-param.c (struct param_smob): Remove typedef.
759 * guile/scm-progspace.c (struct pspace_smob): Rename.
760 * guile/scm-objfile.c (struct objfile_smob): Rename.
761 * guile/scm-iterator.c (struct iterator_smob): Rename.
762 * guile/scm-frame.c (struct frame_smob): Rename.
763 * guile/scm-arch.c (struct arch_smob): Rename.
764 * guile/scm-type.c (struct field_smob): Remove typedef.
765 (struct type_smob): Rename.
766 * guile/scm-cmd.c (struct command_smob): Remove typedef.
767 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
768 * guile/scm-value.c (struct value_smob): Remove typedef.
769 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
770 * guile/guile-internal.h (struct scheme_variable)
771 (struct scheme_function, struct scheme_integer_constant)
772 (struct gdb_smob, struct chained_gdb_smob)
773 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
774 (objfile_smob, pspace_smob, type_smob): Remove typedef.
775 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
776 (struct pretty_printer_worker_smob): Remove typedef.
777 * guile/scm-exception.c (struct exception_smob): Remove typedef.
778 * python/py-block.c (struct block_object): Remove typedef.
779 (block_syms_iterator_object): Update.
780 (set_block): Update.
781 (block_syms_iterator_object): Remove typedef.
782 * python/py-inferior.c (struct membuf_object): Remove typedef.
783 * python/py-symtab.c (struct symtab_object): Remove typedef.
784 (set_symtab): Update.
785 (sal_object): Remove typedef.
786 (set_sal): Update.
787 * python/py-frame.c (frame_object): Remove typedef.
788 * python/py-record-btrace.c (struct btpy_list_object): Remove
789 typedef.
790 * python/py-arch.c (struct arch_object): Remove typedef.
791 * python/py-linetable.c (struct linetable_entry_object)
792 (linetable_object, struct ltpy_iterator_object): Remove typedef.
793 * python/py-events.h (eventregistry_object): Remove typedef.
794 (struct events_object): Remove typedef.
795 * python/python-internal.h (gdbpy_breakpoint_object): Remove
796 typedef.
797 (thread_object): Remove typedef.
798 * python/py-progspace.c (pspace_object): Remove typedef.
799 * python/py-value.c (struct value_object): Remove typedef.
800 * python/py-record.h (recpy_record_object): Remove typedef.
801 (struct recpy_element_object): Remove typedef.
802 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
803 * python/py-objfile.c (objfile_object): Remove typedef.
804 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
805 * python/py-type.c (type_object): Remove typedef.
806 (typy_iterator_object): Update.
807 (set_type): Update.
808 (field_object): Remove typedef.
809 (typy_iterator_object): Remove typedef.
810 * python/py-registers.c (register_descriptor_iterator_object):
811 Remove typedef.
812 (struct register_descriptor_object)
813 (struct reggroup_iterator_object, struct reggroup_object): Remove
814 typedef.
815 * python/py-record.c (recpy_gap_object): Remove typedef.
816 * python/py-symbol.c (symbol_object): Remove typedef.
817 (set_symbol): Update.
818 * python/py-event.h (event_object): Remove typedef.
819 * python/py-param.c (parmpy_object): Remove typedef.
820 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
821 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
822 (unwind_info_object, struct cached_frame_info): Likewise.
823
824 2020-12-04 Tom Tromey <tromey@adacore.com>
825
826 * value.c (value_internal_function_name): Make return type const.
827 * value.h (value_internal_function_name): Make return type const.
828
829 2020-12-04 Luis Machado <luis.machado@linaro.org>
830
831 * aarch64-tdep.c (submask, bit, bits): Remove.
832 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
833 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
834 (aarch64_decode_cb, aarch64_decode_tb)
835 (aarch64_decode_ldr_literal): Use sbits to extract a signed
836 immediate.
837 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
838
839 2020-12-04 Tom de Vries <tdevries@suse.de>
840
841 PR tdep/27007
842 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
843
844 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
845
846 PR gdb/26876
847 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
848 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
849
850 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * arch/riscv.c: Include 'rv32e-xregs.c'.
853 (riscv_create_target_description): Update to handle rv32e.
854 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
855 member variable.
856 <operator==>: Update to account for new field.
857 <hash>: Likewise.
858 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
859 * features/riscv/rv32e-xregs.c: Generated.
860 * features/riscv/rv32e-xregs.xml: New file.
861 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
862 file.
863 (riscv_debug_infcall): Likewise.
864 (riscv_debug_unwinder): Likewise.
865 (riscv_debug_gdbarch): Likewise.
866 (enum riscv_register_required_status): Delete.
867 (struct riscv_register_feature): Add constructor, delete default
868 constructor, copy, and assign constructors.
869 (struct riscv_register_feature::register_info) <required>: Delete.
870 <check>: Update comment and arguments.
871 (struct riscv_register_feature) <name>: Change to member function.
872 <prefer_first_name>: Delete.
873 <tdesc_feature>: New member function.
874 <registers>: Rename to...
875 <m_registers>: ...this.
876 <m_feature_name>: New member variable.
877 (riscv_register_feature::register_info::check): Update arguments.
878 (riscv_xreg_feature): Rewrite as class, create a single static
879 instance of the class.
880 (riscv_freg_feature): Likewise.
881 (riscv_virtual_feature): Likewise.
882 (riscv_csr_feature): Likewise.
883 (riscv_create_csr_aliases): Has become a member function inside
884 riscv_csr_feature class.
885 (riscv_abi_embedded): New function definition.
886 (riscv_register_name): Adjust to use new feature objects.
887 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
888 and adjust available argument registers.
889 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
890 (riscv_check_tdesc_feature): Delete.
891 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
892 (riscv_gdbarch_init): Delete target description checking code, and
893 instead call to the new feature objects to perform the checks.
894 Reorder handling of no abi information case, allows small code
895 simplification.
896 (_initialize_riscv_tdep): Remove call, this is now done in the
897 riscv_csr_feature constructor.
898 * riscv-tdep.h (riscv_abi_embedded): Declare.
899
900 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
903 DECLARE_CSR_ALIAS.
904
905 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * riscv-tdep.c (riscv_is_unknown_csr): New function,
908 implementation moved from riscv_register_reggroup_p.
909 (riscv_register_reggroup_p): Update group handling for unknown
910 CSRs.
911
912 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
913
914 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
915 (dwarf2_get_dwz_file): Convert 'filename' to a
916 std::string. Use dwz_search_other_debugdirs to search for DWZ
917 files in the debug-file-directories provided by the user as well.
918
919 2020-12-01 Tom Tromey <tom@tromey.com>
920
921 * parse.c (expr_builder::expr_builder): Initialize expout.
922 (expr_builder::release): Use expression::resize.
923 (expression::expression, expression::~expression)
924 (expression::resize): New methods.
925 (write_exp_elt): Use expression::resize.
926 (prefixify_expression): Update.
927 (increase_expout_size): Use expression::resize.
928 * expression.h (struct expression): Add constructor, destructor.
929 <resize>: New method.
930 (expression_up): Change type.
931
932 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
933 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
934 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
935 set region.
936
937 2020-11-30 Tom de Vries <tdevries@suse.de>
938
939 PR symtab/26905
940 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
941 is_reference parameter.
942 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
943
944 2020-11-30 Tom Tromey <tom@tromey.com>
945
946 * rust-lang.c (rust_op_name): Remove.
947 (exp_descriptor_rust): Update.
948 * parser-defs.h (op_name_standard): Don't declare.
949 (struct exp_descriptor) <op_name>: Remove.
950 * parse.c (exp_descriptor_standard): Update.
951 * opencl-lang.c (exp_descriptor_opencl): Update.
952 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
953 * f-lang.c (op_name_f): Remove.
954 (f_language::exp_descriptor_tab): Update.
955 * expression.h (op_name): Update.
956 * expprint.c (op_name): Rewrite.
957 (op_name_standard): Remove.
958 (dump_raw_expression, dump_subexp): Update.
959 * c-lang.c (exp_descriptor_c): Update.
960 * ax-gdb.c (gen_expr): Update.
961 * ada-lang.c (ada_op_name): Remove.
962 (ada_exp_descriptor): Update.
963
964 2020-11-30 Tom Tromey <tom@tromey.com>
965
966 * eval.c (init_array_element): Remove.
967 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
968
969 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
970
971 PR tui/26973
972 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
973 static locator win info.
974
975 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
976
977 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
978 program.
979
980 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
983 is always initialized.
984
985 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
986 * MAINTAINERS (Write After Approval): Add myself.
987
988 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
989
990 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
991 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
992
993 2020-11-25 Tom Tromey <tom@tromey.com>
994
995 * eval.c (evaluate_subexp_standard): Remove unnecessary
996 variables.
997
998 2020-11-25 Tom Tromey <tom@tromey.com>
999
1000 * d-lang.c: Include parser-defs.h.
1001 * rust-lang.c: Include parser-defs.h.
1002 * c-lang.h: Do not include parser-defs.h.
1003
1004 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * regcache.h (struct cached_reg): Remove typedef.
1007
1008 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1009
1010 * README: Fix the URL of the MPFR library.
1011
1012 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1013
1014 * README: Document the --with-libgmp-prefix configure option.
1015
1016 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1017
1018 * NEWS: Add entry documenting support for DWARF-based fixed
1019 point types.
1020
1021 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1022
1023 * NEWS: Document that building GDB now requires GMP.
1024
1025 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1026
1027 * typeprint.c (print_type_scalar): Add handling of
1028 TYPE_CODE_FIXED_POINT.
1029
1030 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1031
1032 * valarith.c (fixed_point_binop): Replace the
1033 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1034 users accordingly.
1035
1036 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1037
1038 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1039 replacing fixed_point_scaling_factor. All callers updated
1040 throughout this project.
1041 (fixed_point_scaling_factor): Delete declaration.
1042 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1043 fixed_point_scaling_factor. Adjust implementation accordingly.
1044
1045 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1046
1047 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1048 replacing the fixed_point_type_base_type function. All callers
1049 updated throughout this project.
1050 (fixed_point_type_base_type): Remove declaration.
1051 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1052 fixed_point_type_base_type. Adjust implementation accordingly.
1053
1054 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1055
1056 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1057 New methods.
1058 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1059 (TYPE_FIXED_POINT_INFO): Delete macro.
1060 (allocate_fixed_point_type_info): Change return type to void.
1061 * gdbtypes.c (copy_type_recursive): Replace the use of
1062 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1063 (fixed_point_scaling_factor): Likewise.
1064 (allocate_fixed_point_type_info): Change return type to void.
1065 Adjust implementation accordingly.
1066 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1067 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1068
1069 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1070
1071 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1072 into one single gdb::array_view parameter.
1073 (gdb_mpz::write): Likewise.
1074 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1075 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1076 into one single gdb::array_view parameter.
1077 Adjust implementation accordingly.
1078 (gdb_mpz::write): Likewise.
1079 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1080 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1081 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1082
1083 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1084
1085 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1086 Change return type to std::string. Update all callers.
1087 * gmp-utils.c (gmp_string_printf): Likewise.
1088
1089 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1090
1091 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1092 instead of mpq_set_ui to initialize our GMP rational.
1093
1094 2020-11-23 Tom de Vries <tdevries@suse.de>
1095
1096 * debuginfod-support.c (debuginfod_source_query)
1097 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1098
1099 2020-11-21 Tom Tromey <tom@tromey.com>
1100
1101 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1102
1103 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1106 Pass 2.0 to pow.
1107 (gdb_mpz_write_all_from_small): Likewise.
1108
1109 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1112 of abs.
1113
1114 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1115
1116 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1117 ctf_arc_open_by_name.
1118
1119 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1120
1121 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1122 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1123
1124 2020-11-20 Pedro Alves <pedro@palves.net>
1125
1126 * language.c (language_arch_info::lookup_primitive_type): Use
1127 gdb::function_view instead of gdb::function.
1128 (template language_lookup_primitive_type): Rename to ...
1129 (language_lookup_primitive_type_1): ... this, and make static.
1130 (language_lookup_primitive_type(const struct language_defn *,
1131 struct gdbarch *, const char *): Make non-template.
1132 (language_lookup_primitive_type(const struct language_defn *,
1133 struct gdbarch *, std::function<bool (struct type *)>): Make
1134 non-template and use gdb::function_view.
1135 * language.h (language_arch_info::lookup_primitive_type): Use
1136 gdb::function_view instead of std::function.
1137 (language_lookup_primitive_type): No longer template.
1138 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1139 lambda instead of a std::function.
1140
1141 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1142
1143 PR tdep/26916
1144 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1145 and STOCFH.
1146
1147 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1150
1151 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1154 in `loop_cb` parameter.
1155 * gdbarch.c: Re-generate.
1156 * gdbarch.h: Re-generate.
1157 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1158 parameter.
1159 * arch-utils.h (default_read_core_file_mappings): Likewise.
1160 * corelow.c (core_target::build_file_mappings): Likewise.
1161 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1162 (linux_core_info_proc_mappings): Likewise.
1163
1164 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1167 * NEWS: Mention new options.
1168 * f-array-walker.h: New file.
1169 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1170 (repack_array_slices): New static global.
1171 (show_repack_array_slices): New function.
1172 (fortran_array_slicing_debug): New static global.
1173 (show_fortran_array_slicing_debug): New function.
1174 (value_f90_subarray): Delete.
1175 (skip_undetermined_arglist): Delete.
1176 (class fortran_array_repacker_base_impl): New class.
1177 (class fortran_lazy_array_repacker_impl): New class.
1178 (class fortran_array_repacker_impl): New class.
1179 (fortran_value_subarray): Complete rewrite.
1180 (set_fortran_list): New static global.
1181 (show_fortran_list): Likewise.
1182 (_initialize_f_language): Register new commands.
1183 (fortran_adjust_dynamic_array_base_address_hack): New function.
1184 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1185 Declare.
1186 * f-valprint.c: Include 'f-array-walker.h'.
1187 (class fortran_array_printer_impl): New class.
1188 (f77_print_array_1): Delete.
1189 (f77_print_array): Delete.
1190 (fortran_print_array): New.
1191 (f_value_print_inner): Update to call fortran_print_array.
1192 * gdbtypes.c: Include 'f-lang.h'.
1193 (resolve_dynamic_type_internal): Call
1194 fortran_adjust_dynamic_array_base_address_hack.
1195
1196 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * breakpoint.c (struct watch_options): New struct.
1199 (watch_option_defs): New static global.
1200 (make_watch_options_def_group): New function.
1201 (watch_maybe_just_location): Convert option parsing.
1202 (watch_command_completer): New function.
1203 (_initialize_breakpoint): Build help text using options mechanism.
1204
1205 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1208 (watch_command_1): Update parameter types. Convert locals to
1209 bool.
1210 (watch_command_wrapper): Change parameter type.
1211 (watch_maybe_just_location): Change locals to bool.
1212 (rwatch_command_wrapper): Update parameter type.
1213 (awatch_command_wrapper): Update parameter type.
1214 * breakpoint.h (watch_command_wrapper): Change parameter type.
1215 (rwatch_command_wrapper): Update parameter type.
1216 (awatch_command_wrapper): Update parameter type.
1217 * eval.c (fetch_subexp_value): Change parameter type.
1218 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1219 'false' not '0'.
1220 * value.h (fetch_subexp_value): Change parameter type in
1221 declaration.
1222
1223 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1226 skip_spaces.
1227
1228 2020-11-18 Keith Seitz <keiths@redhat.com>
1229
1230 * linux-tdep.c (dump_note_entry_p): Return true instead of
1231 checking `filename'.
1232
1233 2020-11-18 Tom de Vries <tdevries@suse.de>
1234
1235 * debuginfod-support.c (debuginfod_source_query)
1236 (debuginfod_debuginfo_query): Also do early exit if
1237 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1238
1239 2020-11-18 Tom de Vries <tdevries@suse.de>
1240
1241 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1242 warning.
1243
1244 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1247 callers. Move doc here.
1248 * gdbtypes.c (get_array_bounds): Return bool
1249
1250 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1253 assert.
1254 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1255 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1256 case to the default.
1257
1258 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * printcmd.c: Include 'safe-ctype.c'.
1261 (skip_over_slash_fmt): New function.
1262 (print_command_completer): Call skip_over_slash_fmt.
1263 (display_and_x_command_completer): New function.
1264 (_initialize_printcmd): Add command completion for 'x' and
1265 'display'.
1266
1267 2020-11-16 Pedro Alves <pedro@palves.net>
1268
1269 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1270 (get_prev_frame_always_1): ... to here.
1271 * inline-frame.c (inline_frame_this_id): Mention
1272 get_prev_frame_always_1 in comment.
1273
1274 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1275
1276 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1277 handling.
1278 (value_less): Add fixed-point handling.
1279
1280 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1281
1282 * eval.c (binop_promote): Add fixed-point type handling.
1283 * valarith.c (fixed_point_binop): New function.
1284 (scalar_binop): Add fixed-point type handling.
1285 (value_neg): Add fixed-point type handling.
1286 * valops.c (value_cast_to_fixed_point): New function.
1287 (value_cast): Add fixed-point type handling.
1288
1289 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1290
1291 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1292 range types.
1293 * c-typeprint.c (c_type_print_varspec_prefix)
1294 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1295 TYPE_CODE_FIXED_POINT handling.
1296 * p-typeprint.c (pascal_type_print_varspec_prefix)
1297 (pascal_type_print_varspec_suffix): Likewise.
1298 * typeprint.c (print_type_fixed_point): New function.
1299 * typeprint.h (print_type_fixed_point): Add declaration.
1300
1301 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1302
1303 * printcmd.c (print_scalar_formatted): Add fixed-point type
1304 handling when options->format is set.
1305
1306 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1307
1308 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1309 * dwarf2/read.c (get_dwarf2_rational_constant)
1310 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1311 (has_zero_over_zero_small_attribute): New functions.
1312 read_base_type, set_die_type): Add fixed-point type handling.
1313 * gdb-gdb.py.in: Add fixed-point type handling.
1314 * gdbtypes.c: #include "gmp-utils.h".
1315 (create_range_type, set_type_code): Add fixed-point type handling.
1316 (init_fixed_point_type): New function.
1317 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1318 (print_fixed_point_type_info): New function.
1319 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1320 handling.
1321 (fixed_point_type_storage): New typedef.
1322 (fixed_point_objfile_key): New static global.
1323 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1324 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1325 functions.
1326 * gdbtypes.h: #include "gmp-utils.h".
1327 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1328 (union type_specific) <fixed_point_info>: New field.
1329 (struct fixed_point_type_info): New struct.
1330 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1331 (init_fixed_point_type, is_fixed_point_type)
1332 (fixed_point_type_base_type, fixed_point_scaling_factor)
1333 (allocate_fixed_point_type_info): Add declarations.
1334 * valprint.c (generic_val_print_fixed_point): New function.
1335 (generic_value_print): Add fixed-point type handling.
1336 * value.c (value_as_address, unpack_long): Add fixed-point type
1337 handling.
1338
1339 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1340
1341 * utils.h (uinteger_pow): Add declaration.
1342 * utils.c (uinteger_pow): Moved here (without changes)...
1343 * valarith.c (uinteger_pow): ... from here.
1344
1345 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1346
1347 * gmp-utils.h, gmp-utils.c: New file.
1348 * unittests/gmp-utils-selftests.c: New file.
1349 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1350 unittests/gmp-utils-selftests.c.
1351 (COMMON_SFILES) Add gmp-utils.c.
1352 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1353
1354 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1355
1356 * configure.ac: Generate an error if a usable GMP library
1357 could not be found.
1358 * configure: Regenerate.
1359
1360 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1361
1362 * configure.ac: Add support for --with-libgmp-prefix.
1363 * Makefile.in (LIBGMP): New variable.
1364 (CLIBS): Include $(LIBGMP).
1365 * configure, config.in: Regenerate
1366
1367 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 PR cli/26879
1370 * f-exp.y (COMPLETE): New token.
1371 (exp): Two new rules for tab-completion.
1372 (saw_name_at_eof): New static global.
1373 (last_was_structop): Likewise.
1374 (yylex): Set new variables, and return COMPLETE token at the end
1375 of the input stream in some cases.
1376
1377 2020-11-14 Tom Tromey <tom@tromey.com>
1378
1379 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1380
1381 2020-11-14 Tom Tromey <tom@tromey.com>
1382
1383 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1384
1385 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1388
1389 2020-11-13 Tom Tromey <tom@tromey.com>
1390
1391 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1392 (convert_escape, parse_one_string): Constify.
1393
1394 2020-11-13 Keith Seitz <keiths@redhat.com>
1395
1396 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1397 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1398 outside of ELF segments" warning for debugin
1399
1400 2020-11-13 Keith Seitz <keiths@redhat.com>
1401
1402 PR gdb/23034
1403 * elfread.c (elf_symfile_segments): Output a BFD file name
1404 for the "Loadable section ... outside of ELF segments" warning.
1405
1406 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 PR gdb/26835
1409 * arm-tdep.c (class arm_instruction_reader): New.
1410 (target_arm_instruction_reader): New.
1411 (arm_analyze_prologue): Add instruction reader parameter and use
1412 it. Use arm_expand_immediate.
1413 (class target_arm_instruction_reader): Adjust.
1414 (arm_skip_prologue): Adjust.
1415 (arm_expand_immediate): New.
1416 (arm_scan_prologue): Adjust.
1417 (arm_analyze_prologue_test): New.
1418 (class test_arm_instruction_reader): New.
1419
1420 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * f-lang.c (fortran_argument_convert): Add declaration. Add
1423 header comment, taken from f-lang.h. Make static.
1424 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1425 (fortran_argument_convert): Delete declaration.
1426
1427 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * ada-exp.y (find_primitive_type): Make parameter const.
1430 * ada-lang.c (enum ada_primitive_types): Delete.
1431 (ada_language::language_arch_info): Update.
1432 * c-lang.c (enum c_primitive_types): Delete.
1433 (c_language_arch_info): Update.
1434 (enum cplus_primitive_types): Delete.
1435 (cplus_language::language_arch_info): Update.
1436 * d-lang.c (enum d_primitive_types): Delete.
1437 (d_language::language_arch_info): Update.
1438 * f-lang.c (enum f_primitive_types): Delete.
1439 (f_language::language_arch_info): Update.
1440 * go-lang.c (enum go_primitive_types): Delete.
1441 (go_language::language_arch_info): Update.
1442 * language.c (auto_or_unknown_language::language_arch_info):
1443 Update.
1444 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1445 (language_string_char_type): Add header comment, call function in
1446 language_arch_info.
1447 (language_bool_type): Likewise
1448 (language_arch_info::bool_type): Define.
1449 (language_lookup_primitive_type_1): Delete.
1450 (language_lookup_primitive_type): Rewrite as a templated function
1451 to call function in language_arch_info, then instantiate twice.
1452 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1453 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1454 (language_arch_info::lookup_primitive_type): Define twice with
1455 different signatures.
1456 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1457 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1458 member function in language_arch_info.
1459 * language.h (language_arch_info): Complete rewrite.
1460 (language_lookup_primitive_type): Make templated.
1461 * m2-lang.c (enum m2_primitive_types): Delete.
1462 (m2_language::language_arch_info): Update.
1463 * opencl-lang.c (OCL_P_TYPE): Delete.
1464 (enum opencl_primitive_types): Delete.
1465 (opencl_type_data): Delete.
1466 (builtin_opencl_type): Delete.
1467 (lookup_opencl_vector_type): Update.
1468 (opencl_language::language_arch_info): Update, lots of content
1469 moved from...
1470 (build_opencl_types): ...here. This function is now deleted.
1471 (_initialize_opencl_language): Delete.
1472 * p-lang.c (enum pascal_primitive_types): Delete.
1473 (pascal_language::language_arch_info): Update.
1474 * rust-lang.c (enum rust_primitive_types): Delete.
1475 (rust_language::language_arch_info): Update.
1476
1477 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1480 dwarf2_queue_guard.
1481
1482 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1485 comment.
1486
1487 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * dwarf2/read.c (dwarf_read_debug_printf,
1490 dwarf_read_debug_printf_v): New macros, use throughout the file.
1491
1492 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1493
1494 PR tdep/27015
1495 * arc-linux-tdep.c (collect_register): Populate "eret" by
1496 "pc" value from the regcache when asked for "pc" value.
1497
1498 2020-11-12 Tom Tromey <tom@tromey.com>
1499
1500 PR rust/26799:
1501 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1502 exist.
1503
1504 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * features/Makefile (XMLTOC): Add rx.xml.
1507 (FEATURE_XMLFILES): Remove rx.xml.
1508 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1509 * features/rx.c: Regenerate.
1510 * features/rx.xml: Wrap in `target` tags, and reindent.
1511 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1512 structure.
1513 (maint_print_c_tdesc_opt_def): New typedef.
1514 (maint_print_c_tdesc_opt_defs): New static global.
1515 (make_maint_print_c_tdesc_options_def_group): New function.
1516 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1517 print single feature C file for target descriptions containing a
1518 single feature.
1519 (maint_print_c_tdesc_cmd_completer): New function.
1520 (_initialize_target_descriptions): Update call to register command
1521 completer, and include command line flag in help text.
1522
1523 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1526 numbers.
1527 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1528 enum values.
1529
1530 2020-11-10 Tom Tromey <tom@tromey.com>
1531
1532 * value.h (internalvar_name): Update.
1533 * value.c (internalvar_name): Make return type const.
1534
1535 2020-11-10 Tom Tromey <tom@tromey.com>
1536
1537 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1538 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1539 const.
1540
1541 2020-11-10 Tom Tromey <tom@tromey.com>
1542
1543 * objc-lang.h (value_nsstring): Update.
1544 * objc-lang.c (value_nsstring): Make "ptr" const.
1545
1546 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1547
1548 * expprint.c (print_subexp_funcall): Increment expression position
1549 after reading argument count.
1550 * f-lang.c (print_subexp_f): Skip over opcode before calling
1551 common function.
1552 (dump_subexp_body_f): Likewise.
1553
1554 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1555
1556 PR python/26832
1557 * configure: Regenerate.
1558 * configure.ac: Check for python modules ctypes instead of
1559 itertools.
1560
1561 2020-11-06 Pedro Alves <pedro@palves.net>
1562
1563 * macroexp.c (struct macro_buffer): Split in two classes. Add
1564 uses adjusted.
1565 (struct shared_macro_buffer): New, factored out from struct
1566 macro_buffer.
1567 (struct growable_macro_buffer): New, factored out from struct
1568 macro_buffer.
1569 (set_token, get_comment, get_identifier, get_pp_number)
1570 (get_character_constant, get_string_literal, get_punctuator)
1571 (get_next_token_for_substitution): Constify parameters.
1572 (substitute_args): Constify locals.
1573
1574 2020-11-05 Tom Tromey <tom@tromey.com>
1575
1576 * dwarf2/read.c (read_cutu_die_from_dwo)
1577 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1578 (build_type_psymtabs_1): Update.
1579 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1580 parameter.
1581 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1582 Don't read section. Add assert.
1583
1584 2020-11-04 Tom Tromey <tromey@adacore.com>
1585
1586 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1587
1588 2020-11-04 Tom Tromey <tromey@adacore.com>
1589
1590 * ada-typeprint.c (ada_print_type): Handle __T types.
1591
1592 2020-11-04 Tom Tromey <tromey@adacore.com>
1593
1594 * dwarf2/read.c (add_partial_symbol, process_die):
1595 Handle DW_TAG_array_type.
1596 (is_type_tag_for_partial): Add "lang" parameter.
1597 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1598
1599 2020-11-04 Tom Tromey <tromey@adacore.com>
1600
1601 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1602
1603 2020-11-04 Tom Tromey <tromey@adacore.com>
1604
1605 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1606 array.
1607
1608 2020-11-04 Tom Tromey <tromey@adacore.com>
1609
1610 * gdbtypes.c (update_static_array_size): Handle bit stride.
1611
1612 2020-11-04 Tom Tromey <tromey@adacore.com>
1613
1614 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1615
1616 2020-11-04 Tom Tromey <tromey@adacore.com>
1617
1618 * ada-lang.c (ada_is_any_packed_array_type): New function.
1619 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1620
1621 2020-11-04 Tom Tromey <tromey@adacore.com>
1622
1623 * dwarf2/read.c (recognize_bound_expression)
1624 (quirk_ada_thick_pointer): New functions.
1625 (read_array_type): Call quirk_ada_thick_pointer.
1626 (set_die_type): Add "skip_data_location" parameter.
1627 (quirk_ada_thick_pointer): New function.
1628 (process_structure_scope): Call quirk_ada_thick_pointer.
1629 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1630 (decode_packed_array_bitsize): Handle thick pointers without
1631 parallel types.
1632 (ada_is_gnat_encoded_packed_array_type): Rename from
1633 ada_is_packed_array_type.
1634 (ada_is_constrained_packed_array_type): Update.
1635 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1636 (ada_value_print_1): Use ada_get_decoded_value.
1637
1638 2020-11-04 Tom Tromey <tromey@adacore.com>
1639
1640 * ada-lang.c (recursively_update_array_bitsize): New function.
1641 (decode_constrained_packed_array_type): Call it.
1642
1643 2020-11-04 Tom Tromey <tromey@adacore.com>
1644
1645 * ada-lang.c (to_fixed_array_type): Error if
1646 decode_constrained_packed_array_type returns NULL.
1647
1648 2020-11-04 Tom Tromey <tromey@adacore.com>
1649
1650 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1651
1652 2020-11-02 Tom Tromey <tromey@adacore.com>
1653
1654 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1655 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1656 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1657 * amd64-ravenscar-thread.c: New file.
1658 * amd64-ravenscar-thread.h: New file.
1659 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1660 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1661
1662 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * main.c (execute_cmdargs): New function.
1665 (captured_main_1): Make use of execute_cmdargs.
1666
1667 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * NEWS: Mention changes to config file search path.
1670 * main.c
1671
1672 2020-11-02 Tom Tromey <tromey@adacore.com>
1673
1674 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1675 (python_GdbModuleDef): Move earlier. Now static.
1676 (do_start_initialization): Consolidate some IS_PY3K blocks.
1677
1678 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * aarch64-linux-tdep.c: Fix indentation.
1681 * aarch64-ravenscar-thread.c: Fix indentation.
1682 * aarch64-tdep.c: Fix indentation.
1683 * aarch64-tdep.h: Fix indentation.
1684 * ada-lang.c: Fix indentation.
1685 * ada-lang.h: Fix indentation.
1686 * ada-tasks.c: Fix indentation.
1687 * ada-typeprint.c: Fix indentation.
1688 * ada-valprint.c: Fix indentation.
1689 * ada-varobj.c: Fix indentation.
1690 * addrmap.c: Fix indentation.
1691 * addrmap.h: Fix indentation.
1692 * agent.c: Fix indentation.
1693 * aix-thread.c: Fix indentation.
1694 * alpha-bsd-nat.c: Fix indentation.
1695 * alpha-linux-tdep.c: Fix indentation.
1696 * alpha-mdebug-tdep.c: Fix indentation.
1697 * alpha-nbsd-tdep.c: Fix indentation.
1698 * alpha-obsd-tdep.c: Fix indentation.
1699 * alpha-tdep.c: Fix indentation.
1700 * amd64-bsd-nat.c: Fix indentation.
1701 * amd64-darwin-tdep.c: Fix indentation.
1702 * amd64-linux-nat.c: Fix indentation.
1703 * amd64-linux-tdep.c: Fix indentation.
1704 * amd64-nat.c: Fix indentation.
1705 * amd64-obsd-tdep.c: Fix indentation.
1706 * amd64-tdep.c: Fix indentation.
1707 * amd64-windows-tdep.c: Fix indentation.
1708 * annotate.c: Fix indentation.
1709 * arc-tdep.c: Fix indentation.
1710 * arch-utils.c: Fix indentation.
1711 * arch/arm-get-next-pcs.c: Fix indentation.
1712 * arch/arm.c: Fix indentation.
1713 * arm-linux-nat.c: Fix indentation.
1714 * arm-linux-tdep.c: Fix indentation.
1715 * arm-nbsd-tdep.c: Fix indentation.
1716 * arm-pikeos-tdep.c: Fix indentation.
1717 * arm-tdep.c: Fix indentation.
1718 * arm-tdep.h: Fix indentation.
1719 * arm-wince-tdep.c: Fix indentation.
1720 * auto-load.c: Fix indentation.
1721 * auxv.c: Fix indentation.
1722 * avr-tdep.c: Fix indentation.
1723 * ax-gdb.c: Fix indentation.
1724 * ax-general.c: Fix indentation.
1725 * bfin-linux-tdep.c: Fix indentation.
1726 * block.c: Fix indentation.
1727 * block.h: Fix indentation.
1728 * blockframe.c: Fix indentation.
1729 * bpf-tdep.c: Fix indentation.
1730 * break-catch-sig.c: Fix indentation.
1731 * break-catch-syscall.c: Fix indentation.
1732 * break-catch-throw.c: Fix indentation.
1733 * breakpoint.c: Fix indentation.
1734 * breakpoint.h: Fix indentation.
1735 * bsd-uthread.c: Fix indentation.
1736 * btrace.c: Fix indentation.
1737 * build-id.c: Fix indentation.
1738 * buildsym-legacy.h: Fix indentation.
1739 * buildsym.c: Fix indentation.
1740 * c-typeprint.c: Fix indentation.
1741 * c-valprint.c: Fix indentation.
1742 * c-varobj.c: Fix indentation.
1743 * charset.c: Fix indentation.
1744 * cli/cli-cmds.c: Fix indentation.
1745 * cli/cli-decode.c: Fix indentation.
1746 * cli/cli-decode.h: Fix indentation.
1747 * cli/cli-script.c: Fix indentation.
1748 * cli/cli-setshow.c: Fix indentation.
1749 * coff-pe-read.c: Fix indentation.
1750 * coffread.c: Fix indentation.
1751 * compile/compile-cplus-types.c: Fix indentation.
1752 * compile/compile-object-load.c: Fix indentation.
1753 * compile/compile-object-run.c: Fix indentation.
1754 * completer.c: Fix indentation.
1755 * corefile.c: Fix indentation.
1756 * corelow.c: Fix indentation.
1757 * cp-abi.h: Fix indentation.
1758 * cp-namespace.c: Fix indentation.
1759 * cp-support.c: Fix indentation.
1760 * cp-valprint.c: Fix indentation.
1761 * cris-linux-tdep.c: Fix indentation.
1762 * cris-tdep.c: Fix indentation.
1763 * darwin-nat-info.c: Fix indentation.
1764 * darwin-nat.c: Fix indentation.
1765 * darwin-nat.h: Fix indentation.
1766 * dbxread.c: Fix indentation.
1767 * dcache.c: Fix indentation.
1768 * disasm.c: Fix indentation.
1769 * dtrace-probe.c: Fix indentation.
1770 * dwarf2/abbrev.c: Fix indentation.
1771 * dwarf2/attribute.c: Fix indentation.
1772 * dwarf2/expr.c: Fix indentation.
1773 * dwarf2/frame.c: Fix indentation.
1774 * dwarf2/index-cache.c: Fix indentation.
1775 * dwarf2/index-write.c: Fix indentation.
1776 * dwarf2/line-header.c: Fix indentation.
1777 * dwarf2/loc.c: Fix indentation.
1778 * dwarf2/macro.c: Fix indentation.
1779 * dwarf2/read.c: Fix indentation.
1780 * dwarf2/read.h: Fix indentation.
1781 * elfread.c: Fix indentation.
1782 * eval.c: Fix indentation.
1783 * event-top.c: Fix indentation.
1784 * exec.c: Fix indentation.
1785 * exec.h: Fix indentation.
1786 * expprint.c: Fix indentation.
1787 * f-lang.c: Fix indentation.
1788 * f-typeprint.c: Fix indentation.
1789 * f-valprint.c: Fix indentation.
1790 * fbsd-nat.c: Fix indentation.
1791 * fbsd-tdep.c: Fix indentation.
1792 * findvar.c: Fix indentation.
1793 * fork-child.c: Fix indentation.
1794 * frame-unwind.c: Fix indentation.
1795 * frame-unwind.h: Fix indentation.
1796 * frame.c: Fix indentation.
1797 * frv-linux-tdep.c: Fix indentation.
1798 * frv-tdep.c: Fix indentation.
1799 * frv-tdep.h: Fix indentation.
1800 * ft32-tdep.c: Fix indentation.
1801 * gcore.c: Fix indentation.
1802 * gdb_bfd.c: Fix indentation.
1803 * gdbarch.sh: Fix indentation.
1804 * gdbarch.c: Re-generate
1805 * gdbarch.h: Re-generate.
1806 * gdbcore.h: Fix indentation.
1807 * gdbthread.h: Fix indentation.
1808 * gdbtypes.c: Fix indentation.
1809 * gdbtypes.h: Fix indentation.
1810 * glibc-tdep.c: Fix indentation.
1811 * gnu-nat.c: Fix indentation.
1812 * gnu-nat.h: Fix indentation.
1813 * gnu-v2-abi.c: Fix indentation.
1814 * gnu-v3-abi.c: Fix indentation.
1815 * go32-nat.c: Fix indentation.
1816 * guile/guile-internal.h: Fix indentation.
1817 * guile/scm-cmd.c: Fix indentation.
1818 * guile/scm-frame.c: Fix indentation.
1819 * guile/scm-iterator.c: Fix indentation.
1820 * guile/scm-math.c: Fix indentation.
1821 * guile/scm-ports.c: Fix indentation.
1822 * guile/scm-pretty-print.c: Fix indentation.
1823 * guile/scm-value.c: Fix indentation.
1824 * h8300-tdep.c: Fix indentation.
1825 * hppa-linux-nat.c: Fix indentation.
1826 * hppa-linux-tdep.c: Fix indentation.
1827 * hppa-nbsd-nat.c: Fix indentation.
1828 * hppa-nbsd-tdep.c: Fix indentation.
1829 * hppa-obsd-nat.c: Fix indentation.
1830 * hppa-tdep.c: Fix indentation.
1831 * hppa-tdep.h: Fix indentation.
1832 * i386-bsd-nat.c: Fix indentation.
1833 * i386-darwin-nat.c: Fix indentation.
1834 * i386-darwin-tdep.c: Fix indentation.
1835 * i386-dicos-tdep.c: Fix indentation.
1836 * i386-gnu-nat.c: Fix indentation.
1837 * i386-linux-nat.c: Fix indentation.
1838 * i386-linux-tdep.c: Fix indentation.
1839 * i386-nto-tdep.c: Fix indentation.
1840 * i386-obsd-tdep.c: Fix indentation.
1841 * i386-sol2-nat.c: Fix indentation.
1842 * i386-tdep.c: Fix indentation.
1843 * i386-tdep.h: Fix indentation.
1844 * i386-windows-tdep.c: Fix indentation.
1845 * i387-tdep.c: Fix indentation.
1846 * i387-tdep.h: Fix indentation.
1847 * ia64-libunwind-tdep.c: Fix indentation.
1848 * ia64-libunwind-tdep.h: Fix indentation.
1849 * ia64-linux-nat.c: Fix indentation.
1850 * ia64-linux-tdep.c: Fix indentation.
1851 * ia64-tdep.c: Fix indentation.
1852 * ia64-tdep.h: Fix indentation.
1853 * ia64-vms-tdep.c: Fix indentation.
1854 * infcall.c: Fix indentation.
1855 * infcmd.c: Fix indentation.
1856 * inferior.c: Fix indentation.
1857 * infrun.c: Fix indentation.
1858 * iq2000-tdep.c: Fix indentation.
1859 * language.c: Fix indentation.
1860 * linespec.c: Fix indentation.
1861 * linux-fork.c: Fix indentation.
1862 * linux-nat.c: Fix indentation.
1863 * linux-tdep.c: Fix indentation.
1864 * linux-thread-db.c: Fix indentation.
1865 * lm32-tdep.c: Fix indentation.
1866 * m2-lang.c: Fix indentation.
1867 * m2-typeprint.c: Fix indentation.
1868 * m2-valprint.c: Fix indentation.
1869 * m32c-tdep.c: Fix indentation.
1870 * m32r-linux-tdep.c: Fix indentation.
1871 * m32r-tdep.c: Fix indentation.
1872 * m68hc11-tdep.c: Fix indentation.
1873 * m68k-bsd-nat.c: Fix indentation.
1874 * m68k-linux-nat.c: Fix indentation.
1875 * m68k-linux-tdep.c: Fix indentation.
1876 * m68k-tdep.c: Fix indentation.
1877 * machoread.c: Fix indentation.
1878 * macrocmd.c: Fix indentation.
1879 * macroexp.c: Fix indentation.
1880 * macroscope.c: Fix indentation.
1881 * macrotab.c: Fix indentation.
1882 * macrotab.h: Fix indentation.
1883 * main.c: Fix indentation.
1884 * mdebugread.c: Fix indentation.
1885 * mep-tdep.c: Fix indentation.
1886 * mi/mi-cmd-catch.c: Fix indentation.
1887 * mi/mi-cmd-disas.c: Fix indentation.
1888 * mi/mi-cmd-env.c: Fix indentation.
1889 * mi/mi-cmd-stack.c: Fix indentation.
1890 * mi/mi-cmd-var.c: Fix indentation.
1891 * mi/mi-cmds.c: Fix indentation.
1892 * mi/mi-main.c: Fix indentation.
1893 * mi/mi-parse.c: Fix indentation.
1894 * microblaze-tdep.c: Fix indentation.
1895 * minidebug.c: Fix indentation.
1896 * minsyms.c: Fix indentation.
1897 * mips-linux-nat.c: Fix indentation.
1898 * mips-linux-tdep.c: Fix indentation.
1899 * mips-nbsd-tdep.c: Fix indentation.
1900 * mips-tdep.c: Fix indentation.
1901 * mn10300-linux-tdep.c: Fix indentation.
1902 * mn10300-tdep.c: Fix indentation.
1903 * moxie-tdep.c: Fix indentation.
1904 * msp430-tdep.c: Fix indentation.
1905 * namespace.h: Fix indentation.
1906 * nat/fork-inferior.c: Fix indentation.
1907 * nat/gdb_ptrace.h: Fix indentation.
1908 * nat/linux-namespaces.c: Fix indentation.
1909 * nat/linux-osdata.c: Fix indentation.
1910 * nat/netbsd-nat.c: Fix indentation.
1911 * nat/x86-dregs.c: Fix indentation.
1912 * nbsd-nat.c: Fix indentation.
1913 * nbsd-tdep.c: Fix indentation.
1914 * nios2-linux-tdep.c: Fix indentation.
1915 * nios2-tdep.c: Fix indentation.
1916 * nto-procfs.c: Fix indentation.
1917 * nto-tdep.c: Fix indentation.
1918 * objfiles.c: Fix indentation.
1919 * objfiles.h: Fix indentation.
1920 * opencl-lang.c: Fix indentation.
1921 * or1k-tdep.c: Fix indentation.
1922 * osabi.c: Fix indentation.
1923 * osabi.h: Fix indentation.
1924 * osdata.c: Fix indentation.
1925 * p-lang.c: Fix indentation.
1926 * p-typeprint.c: Fix indentation.
1927 * p-valprint.c: Fix indentation.
1928 * parse.c: Fix indentation.
1929 * ppc-linux-nat.c: Fix indentation.
1930 * ppc-linux-tdep.c: Fix indentation.
1931 * ppc-nbsd-nat.c: Fix indentation.
1932 * ppc-nbsd-tdep.c: Fix indentation.
1933 * ppc-obsd-nat.c: Fix indentation.
1934 * ppc-ravenscar-thread.c: Fix indentation.
1935 * ppc-sysv-tdep.c: Fix indentation.
1936 * ppc64-tdep.c: Fix indentation.
1937 * printcmd.c: Fix indentation.
1938 * proc-api.c: Fix indentation.
1939 * producer.c: Fix indentation.
1940 * producer.h: Fix indentation.
1941 * prologue-value.c: Fix indentation.
1942 * prologue-value.h: Fix indentation.
1943 * psymtab.c: Fix indentation.
1944 * python/py-arch.c: Fix indentation.
1945 * python/py-bpevent.c: Fix indentation.
1946 * python/py-event.c: Fix indentation.
1947 * python/py-event.h: Fix indentation.
1948 * python/py-finishbreakpoint.c: Fix indentation.
1949 * python/py-frame.c: Fix indentation.
1950 * python/py-framefilter.c: Fix indentation.
1951 * python/py-inferior.c: Fix indentation.
1952 * python/py-infthread.c: Fix indentation.
1953 * python/py-objfile.c: Fix indentation.
1954 * python/py-prettyprint.c: Fix indentation.
1955 * python/py-registers.c: Fix indentation.
1956 * python/py-signalevent.c: Fix indentation.
1957 * python/py-stopevent.c: Fix indentation.
1958 * python/py-stopevent.h: Fix indentation.
1959 * python/py-threadevent.c: Fix indentation.
1960 * python/py-tui.c: Fix indentation.
1961 * python/py-unwind.c: Fix indentation.
1962 * python/py-value.c: Fix indentation.
1963 * python/py-xmethods.c: Fix indentation.
1964 * python/python-internal.h: Fix indentation.
1965 * python/python.c: Fix indentation.
1966 * ravenscar-thread.c: Fix indentation.
1967 * record-btrace.c: Fix indentation.
1968 * record-full.c: Fix indentation.
1969 * record.c: Fix indentation.
1970 * reggroups.c: Fix indentation.
1971 * regset.h: Fix indentation.
1972 * remote-fileio.c: Fix indentation.
1973 * remote.c: Fix indentation.
1974 * reverse.c: Fix indentation.
1975 * riscv-linux-tdep.c: Fix indentation.
1976 * riscv-ravenscar-thread.c: Fix indentation.
1977 * riscv-tdep.c: Fix indentation.
1978 * rl78-tdep.c: Fix indentation.
1979 * rs6000-aix-tdep.c: Fix indentation.
1980 * rs6000-lynx178-tdep.c: Fix indentation.
1981 * rs6000-nat.c: Fix indentation.
1982 * rs6000-tdep.c: Fix indentation.
1983 * rust-lang.c: Fix indentation.
1984 * rx-tdep.c: Fix indentation.
1985 * s12z-tdep.c: Fix indentation.
1986 * s390-linux-tdep.c: Fix indentation.
1987 * score-tdep.c: Fix indentation.
1988 * ser-base.c: Fix indentation.
1989 * ser-mingw.c: Fix indentation.
1990 * ser-uds.c: Fix indentation.
1991 * ser-unix.c: Fix indentation.
1992 * serial.c: Fix indentation.
1993 * sh-linux-tdep.c: Fix indentation.
1994 * sh-nbsd-tdep.c: Fix indentation.
1995 * sh-tdep.c: Fix indentation.
1996 * skip.c: Fix indentation.
1997 * sol-thread.c: Fix indentation.
1998 * solib-aix.c: Fix indentation.
1999 * solib-darwin.c: Fix indentation.
2000 * solib-frv.c: Fix indentation.
2001 * solib-svr4.c: Fix indentation.
2002 * solib.c: Fix indentation.
2003 * source.c: Fix indentation.
2004 * sparc-linux-tdep.c: Fix indentation.
2005 * sparc-nbsd-tdep.c: Fix indentation.
2006 * sparc-obsd-tdep.c: Fix indentation.
2007 * sparc-ravenscar-thread.c: Fix indentation.
2008 * sparc-tdep.c: Fix indentation.
2009 * sparc64-linux-tdep.c: Fix indentation.
2010 * sparc64-nbsd-tdep.c: Fix indentation.
2011 * sparc64-obsd-tdep.c: Fix indentation.
2012 * sparc64-tdep.c: Fix indentation.
2013 * stabsread.c: Fix indentation.
2014 * stack.c: Fix indentation.
2015 * stap-probe.c: Fix indentation.
2016 * stubs/ia64vms-stub.c: Fix indentation.
2017 * stubs/m32r-stub.c: Fix indentation.
2018 * stubs/m68k-stub.c: Fix indentation.
2019 * stubs/sh-stub.c: Fix indentation.
2020 * stubs/sparc-stub.c: Fix indentation.
2021 * symfile-mem.c: Fix indentation.
2022 * symfile.c: Fix indentation.
2023 * symfile.h: Fix indentation.
2024 * symmisc.c: Fix indentation.
2025 * symtab.c: Fix indentation.
2026 * symtab.h: Fix indentation.
2027 * target-float.c: Fix indentation.
2028 * target.c: Fix indentation.
2029 * target.h: Fix indentation.
2030 * tic6x-tdep.c: Fix indentation.
2031 * tilegx-linux-tdep.c: Fix indentation.
2032 * tilegx-tdep.c: Fix indentation.
2033 * top.c: Fix indentation.
2034 * tracefile-tfile.c: Fix indentation.
2035 * tracepoint.c: Fix indentation.
2036 * tui/tui-disasm.c: Fix indentation.
2037 * tui/tui-io.c: Fix indentation.
2038 * tui/tui-regs.c: Fix indentation.
2039 * tui/tui-stack.c: Fix indentation.
2040 * tui/tui-win.c: Fix indentation.
2041 * tui/tui-winsource.c: Fix indentation.
2042 * tui/tui.c: Fix indentation.
2043 * typeprint.c: Fix indentation.
2044 * ui-out.h: Fix indentation.
2045 * unittests/copy_bitwise-selftests.c: Fix indentation.
2046 * unittests/memory-map-selftests.c: Fix indentation.
2047 * utils.c: Fix indentation.
2048 * v850-tdep.c: Fix indentation.
2049 * valarith.c: Fix indentation.
2050 * valops.c: Fix indentation.
2051 * valprint.c: Fix indentation.
2052 * valprint.h: Fix indentation.
2053 * value.c: Fix indentation.
2054 * value.h: Fix indentation.
2055 * varobj.c: Fix indentation.
2056 * vax-tdep.c: Fix indentation.
2057 * windows-nat.c: Fix indentation.
2058 * windows-tdep.c: Fix indentation.
2059 * xcoffread.c: Fix indentation.
2060 * xml-syscall.c: Fix indentation.
2061 * xml-tdesc.c: Fix indentation.
2062 * xstormy16-tdep.c: Fix indentation.
2063 * xtensa-config.c: Fix indentation.
2064 * xtensa-linux-nat.c: Fix indentation.
2065 * xtensa-linux-tdep.c: Fix indentation.
2066 * xtensa-tdep.c: Fix indentation.
2067
2068 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2069 Craig Blackmore <craig.blackmore@embecosm.com>
2070
2071 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2072 as an unsigned value.
2073
2074 2020-11-01 Tom Tromey <tom@tromey.com>
2075
2076 * dbxread.c (dbx_end_psymtab): Update.
2077 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2078 (build_type_psymtabs_reader): Update.
2079 * xcoffread.c (xcoff_end_psymtab): Update.
2080 * ctfread.c (scan_partial_symbols): Update.
2081 * psymtab.c (sort_pst_symbols): Remove.
2082 (partial_symtab::end): Rename from end_psymtab_common. Inline
2083 sort_pst_symbols.
2084 * psympriv.h (struct partial_symtab) <end>: New method.
2085 (end_psymtab_common): Don't declare.
2086
2087 2020-11-01 Tom Tromey <tom@tromey.com>
2088
2089 * symmisc.c (count_psyms): New function.
2090 (print_objfile_statistics): Use it.
2091 * psymtab.c (append_psymbol_to_list): Remove.
2092 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2093 * objfiles.h (struct objstats) <n_psyms>: Remove.
2094
2095 2020-11-01 Tom Tromey <tom@tromey.com>
2096
2097 * dbxread.c (dbx_end_psymtab): Update.
2098 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2099 (build_type_psymtabs_reader): Update.
2100 * xcoffread.c (xcoff_end_psymtab): Update.
2101 * ctfread.c (scan_partial_symbols): Update.
2102 * psympriv.h (end_psymtab_common): Update.
2103 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2104 (sort_pst_symbols): Likewise.
2105
2106 2020-11-01 Tom Tromey <tom@tromey.com>
2107
2108 * dbxread.c (dbx_symfile_read): Update.
2109 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2110 * xcoffread.c (xcoff_initial_scan): Update.
2111 * psympriv.h (init_psymbol_list): Don't declare.
2112 * psymtab.c (init_psymbol_list): Remove.
2113
2114 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2115
2116 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2117 gnat_encoded_fixed_type_info. Update all callers.
2118
2119 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2120
2121 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2122 line too long.
2123
2124 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2125
2126 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2127 cast_from_fixed. Update all callers.
2128 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2129 Update all callers.
2130 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2131 Update all callers.
2132 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2133 ada_scaling_factor.
2134 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2135 to print_gnat_encoded_fixed_point_type.
2136 * ada-valprint.c: Likewise.
2137
2138 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2141 (debug_prefixed_printf): Add check of debug_displaced flag.
2142 * linux-nat.c (linux_nat_debug_printf): Add check of
2143 debug_linux_nat flag.
2144
2145 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * infrun.c (infrun_debug_printf_1): Remove.
2148 (displaced_debug_printf_1): Remove.
2149 (stop_all_threads): Use debug_prefixed_printf.
2150 * infrun.h (infrun_debug_printf_1): Remove.
2151 (infrun_debug_printf): Use debug_prefixed_printf.
2152 (displaced_debug_printf_1): Remove.
2153 (displaced_debug_printf): Use debug_prefixed_printf.
2154 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2155 (linux_nat_debug_printf): Use debug_prefixed_printf.
2156
2157 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * configure: Re-generate.
2160 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2161 AC_LANG_PROGRAM.
2162
2163 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2164
2165 * configure: Re-generate.
2166
2167 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 * configure: Re-generate.
2170
2171 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2172
2173 * configure: Re-generate.
2174
2175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * configure: Re-generate.
2178
2179 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * acinclude.m4: Modernize.
2182 * configure: Re-generate.
2183
2184 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * configure.ac: Modernize.
2187 * configure: Re-generate.
2188
2189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2192 * configure: Re-generate.
2193 * configure.ac: Remove AM_PROG_CC_STDC.
2194
2195 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2198 AC_CANONICAL_SYSTEM.
2199 * configure: Re-generate.
2200
2201 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2202
2203 * infrun.h (displaced_debug_printf): New macro. Replace
2204 displaced debug prints throughout to use it.
2205 (displaced_debug_printf_1): New declaration.
2206 (displaced_step_dump_bytes): Return string, remove ui_file
2207 parameter, update all callers.
2208 * infrun.c (displaced_debug_printf_1): New function.
2209 (displaced_step_dump_bytes): Return string, remove ui_file
2210 parameter
2211
2212 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2215
2216 2020-10-30 Tom Tromey <tromey@adacore.com>
2217
2218 * Makefile.in (stamp-init): Depend on config.status.
2219
2220 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2221
2222 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2223
2224 2020-10-30 Pedro Alves <pedro@palves.net>
2225
2226 * thread.c (lookup_selected_frame): Move ...
2227 * frame.c (lookup_selected_frame): ... here.
2228
2229 2020-10-30 Pedro Alves <pedro@palves.net>
2230
2231 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2232 * frame.c
2233 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2234 Use save_selected_frame. Save language as well.
2235 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2236 Use restore_selected_frame, and restore language as well.
2237 (selected_frame_id, selected_frame_level): New.
2238 (selected_frame): Update comments.
2239 (save_selected_frame, restore_selected_frame): New.
2240 (get_selected_frame): Use lookup_selected_frame.
2241 (get_selected_frame_if_set): Delete.
2242 (select_frame): Record selected_frame_level and selected_frame_id.
2243 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2244 fields.
2245 (get_selected_frame): Make 'message' parameter optional.
2246 (get_selected_frame_if_set): Delete declaration.
2247 (select_frame): Update comments.
2248 (save_selected_frame, restore_selected_frame)
2249 (lookup_selected_frame): Declare.
2250 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2251 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2252 New field.
2253 (save_infcall_control_state): Use save_selected_frame.
2254 (restore_selected_frame): Delete.
2255 (restore_infcall_control_state): Use restore_selected_frame.
2256 * stack.c (select_frame_command_core, frame_command_core): Use
2257 get_selected_frame.
2258 * thread.c (restore_selected_frame): Rename to ...
2259 (lookup_selected_frame): ... this and make extern. Select the
2260 current frame if the frame level is -1.
2261 (scoped_restore_current_thread::restore): Also restore the
2262 language.
2263 (scoped_restore_current_thread::~scoped_restore_current_thread):
2264 Don't try/catch.
2265 (scoped_restore_current_thread::scoped_restore_current_thread):
2266 Save the language as well. Use save_selected_frame.
2267
2268 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2271 documentation.
2272 * gdbarch.h: Re-generate.
2273
2274 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2277 parameter.
2278 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2279 Likewise.
2280 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2281 Likewise.
2282 * arch-utils.c (default_displaced_step_hw_singlestep):
2283 Likewise.
2284 * arch-utils.h (default_displaced_step_hw_singlestep):
2285 Likewise.
2286 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2287 Likewise.
2288 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2289 Likewise.
2290 * gdbarch.c: Re-generate.
2291 * gdbarch.h: Re-generate.
2292 * infrun.c (resume_1): Adjust.
2293
2294 2020-10-29 Tom Tromey <tom@tromey.com>
2295
2296 * progspace.c (program_space::~program_space): Don't call
2297 exec_close.
2298
2299 2020-10-29 Tom Tromey <tom@tromey.com>
2300
2301 * exec.c (exec_target::close): Don't change current program
2302 space.
2303
2304 2020-10-29 Tom Tromey <tom@tromey.com>
2305
2306 * symfile.c (add_symbol_file_command): Update.
2307 * exec.c (program_space::add_target_sections): Rename.
2308 * symfile-mem.c (symbol_file_add_from_memory): Update.
2309 * progspace.h (struct program_space) <add_target_sections>:
2310 Declare new overload.
2311 * exec.h (add_target_sections_of_objfile): Don't declare.
2312
2313 2020-10-29 Tom Tromey <tom@tromey.com>
2314
2315 * solib.c (solib_map_sections): Update.
2316 * exec.c (program_space::add_target_sections): Now a method.
2317 (exec_file_attach): Update.
2318 * exec.h (add_target_sections): Don't declare.
2319 * progspace.h (struct program_space) <add_target_sections>:
2320 Declare.
2321
2322 2020-10-29 Tom Tromey <tom@tromey.com>
2323
2324 * progspace.h (struct program_space) <remove_target_sections>:
2325 Declare.
2326 * exec.c (program_space::remove_target_sections): Now a method.
2327 * exec.h (remove_target_sections): Don't declare.
2328
2329 2020-10-29 Tom Tromey <tom@tromey.com>
2330
2331 * inferior.c (delete_inferior): Update.
2332 * progspace.c (program_space::empty): Rename from
2333 program_space_empty_p. Return bool.
2334 * progspace.h (struct program_space) <empty>: New method.
2335 (program_space_empty_p): Don't declare.
2336
2337 2020-10-29 Tom Tromey <tom@tromey.com>
2338
2339 * progspace.c (program_space::~program_space): Don't call
2340 clear_program_space_solib_cache.
2341 (program_space::clear_solib_cache): Rename from
2342 clear_solib_cache.
2343 * solib.c (handle_solib_event): Update.
2344 * progspace.h (struct program_space) <clear_solib_cache>: New
2345 method.
2346 (clear_program_space_solib_cache): Don't declare.
2347
2348 2020-10-29 Tom Tromey <tom@tromey.com>
2349
2350 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2351 * target.c (info_target_command): Update.
2352 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2353 (symbol_file_clear, reread_symbols): Update.
2354 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2355 * stabsread.c (scan_file_globals): Update.
2356 * solib.c (update_solib_list): Update.
2357 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2358 (svr4_fetch_objfile_link_map, enable_break)
2359 (svr4_relocate_main_executable)
2360 (svr4_iterate_over_objfiles_in_search_order): Update.
2361 * solib-frv.c (lm_base, enable_break)
2362 (frv_relocate_main_executable): Update.
2363 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2364 (frv_fetch_objfile_link_map): Update.
2365 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2366 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2367 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2368 * remote.c (remote_target::get_offsets): Update.
2369 (remote_target::start_remote)
2370 (extended_remote_target::post_attach): Update.
2371 * objfiles.c (entry_point_address_query): Update.
2372 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2373 * minsyms.c (get_symbol_leading_char): Update.
2374 * frame.c (inside_main_func): Update.
2375 * progspace.h (symfile_objfile): Remove macro.
2376
2377 2020-10-29 Tom Tromey <tom@tromey.com>
2378
2379 * exec.c (exec_file_attach): Update.
2380 * progspace.c (program_space::exec_close): Update.
2381 * progspace.h (struct program_space) <ebfd>: Now a
2382 gdb_bfd_ref_ptr.
2383 <set_exec_bfd>: Change argument type.
2384 <exec_bfd>: Update.
2385
2386 2020-10-29 Tom Tromey <tom@tromey.com>
2387
2388 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2389 * symfile.c (reread_symbols): Update.
2390 * symfile-mem.c (add_symbol_file_from_memory_command)
2391 (add_vsyscall_page): Update.
2392 * source-cache.c (source_cache::get_plain_source_lines): Update.
2393 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2394 (svr4_current_sos_direct, svr4_exec_displacement)
2395 (svr4_relocate_main_executable): Update.
2396 (svr4_iterate_over_objfiles_in_search_order): Update.
2397 * solib-frv.c (enable_break2, enable_break): Update.
2398 * solib-dsbt.c (lm_base, enable_break): Update.
2399 * solib-darwin.c (find_program_interpreter)
2400 (darwin_solib_create_inferior_hook): Update.
2401 * sol-thread.c (rw_common, ps_pdmodel): Update.
2402 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2403 * remote.c (compare_sections_command)
2404 (remote_target::trace_set_readonly_regions): Update.
2405 * remote-sim.c (get_sim_inferior_data)
2406 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2407 (gdbsim_target_open, gdbsim_target::files_info): Update.
2408 * exec.h (exec_bfd): Remove macro.
2409 * progspace.c (initialize_progspace): Update.
2410 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2411 Update.
2412 * nto-procfs.c (nto_procfs_target::post_attach)
2413 (nto_procfs_target::create_inferior): Update.
2414 * maint.c (maintenance_info_sections): Update.
2415 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2416 Update.
2417 * infcmd.c (post_create_inferior): Update.
2418 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2419 (objfile_find_memory_regions): Update.
2420 * exec.c (validate_exec_file, exec_file_attach)
2421 (exec_read_partial_read_only, print_section_info): Update.
2422 * corelow.c (core_target_open): Update.
2423 * corefile.c (reopen_exec_file, validate_files): Update.
2424 * arm-tdep.c (gdb_print_insn_arm): Update.
2425 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2426 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2427 methods.
2428
2429 2020-10-29 Tom Tromey <tom@tromey.com>
2430
2431 * progspace.h (current_target_sections): Remove macro.
2432 * solib-svr4.c (scan_dyntag): Update.
2433 * solib-dsbt.c (scan_dyntag): Update.
2434 * exec.c (exec_target::close): Update.
2435 (add_target_sections, add_target_sections_of_objfile)
2436 (remove_target_sections, exec_target::get_section_table)
2437 (exec_target::files_info, set_section_command)
2438 (exec_set_section_address, exec_target::has_memory)
2439 (exec_target::has_memory): Update.
2440
2441 2020-10-29 Tom Tromey <tom@tromey.com>
2442
2443 * source-cache.c (source_cache::get_plain_source_lines): Use
2444 current_program_space.
2445 * corefile.c (reopen_exec_file): Use current_program_space.
2446 * exec.c (exec_file_attach): Use current_program_space.
2447 * exec.h (exec_bfd_mtime): Remove.
2448
2449 2020-10-29 Tom Tromey <tom@tromey.com>
2450
2451 * gcore.c (default_gcore_mach): Remove.
2452 (create_gcore_bfd): Update.
2453
2454 2020-10-29 Tom Tromey <tom@tromey.com>
2455
2456 * progspace.c (program_space::exec_close): New method, from
2457 exec_close in exec.c.
2458 * exec.c (exec_close): Move to progspace.c.
2459 (exec_target::close, exec_file_attach): Update.
2460 * progspace.h (struct program_space) <exec_close>: Declare
2461 method.
2462
2463 2020-10-29 Tom Tromey <tom@tromey.com>
2464
2465 * progspace.h (struct program_space) <exec_filename>: Rename from
2466 pspace_exec_filename. Now a unique_xmalloc_ptr.
2467 * inferior.c (print_selected_inferior): Update.
2468 (print_inferior): Update.
2469 * mi/mi-main.c (print_one_inferior): Update.
2470 * exec.h (exec_filename): Remove macro.
2471 * corefile.c (get_exec_file): Update.
2472 * exec.c (exec_close): Update.
2473 (exec_file_attach): Update.
2474 * progspace.c (clone_program_space): Update.
2475 (print_program_space): Update.
2476
2477 2020-10-29 Tom Tromey <tom@tromey.com>
2478
2479 * target-section.h (struct target_section): Add constructor.
2480 * exec.c (build_section_table, add_target_sections_of_objfile):
2481 Update.
2482 * corelow.c (core_target::build_file_mappings): Update.
2483
2484 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2485
2486 PR gdb/19318
2487 * inferior.c (detach_inferior_command): Restore the current thread.
2488 (kill_inferior_command): Ditto.
2489
2490 2020-10-28 Tom de Vries <tdevries@suse.de>
2491
2492 PR symtab/26772
2493 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2494 map, check it in the "best match" loop.
2495
2496 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2497
2498 * m32c-tdep.c: Remove unused includes.
2499
2500 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * xtensa-tdep.c: Remove includes.
2503
2504 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2505
2506 * breakpoint.c (struct condition_command_opts): New struct.
2507 (condition_command_option_defs): New static global.
2508 (make_condition_command_options_def_group): New function.
2509 (condition_completer): Update to consider the '-force' flag.
2510 (condition_command): Use gdb::option for the '-force' flag.
2511
2512 2020-10-27 Tom de Vries <tdevries@suse.de>
2513
2514 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2515 symbols in section check.
2516
2517 2020-10-27 Tom de Vries <tdevries@suse.de>
2518
2519 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2520
2521 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2522
2523 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2524 * breakpoint.c: Update the help text of the 'condition' and 'break'
2525 commands.
2526 (set_breakpoint_condition): Take a new bool parameter
2527 to control whether condition definition should be forced even when
2528 the condition expression is invalid in all of the current locations.
2529 (condition_command): Update the call to 'set_breakpoint_condition'.
2530 (find_condition_and_thread): Take the "-force-condition" flag into
2531 account.
2532 * linespec.c (linespec_keywords): Add "-force-condition" as an
2533 element.
2534 (FORCE_KEYWORD_INDEX): New #define.
2535 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2536 as a keyword.
2537 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2538 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2539 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2540 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2541
2542 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2543
2544 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2545 * breakpoint.c (set_breakpoint_location_condition): New function.
2546 (set_breakpoint_condition): Disable a breakpoint location if parsing
2547 the condition string gives an error.
2548 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2549 (build_target_condition_list): Ditto.
2550 (build_target_command_list): Ditto.
2551 (build_bpstat_chain): Ditto.
2552 (print_one_breakpoint_location): Ditto.
2553 (print_one_breakpoint): Ditto.
2554 (breakpoint_1): Ditto.
2555 (bp_location::bp_location): Ditto.
2556 (locations_are_equal): Ditto.
2557 (update_breakpoint_locations): Ditto.
2558 (enable_disable_bp_num_loc): Ditto.
2559 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2560 (find_condition_and_thread_for_sals): New static function.
2561 (create_breakpoint): Call find_condition_and_thread_for_sals.
2562 (location_to_sals): Call find_condition_and_thread_for_sals instead
2563 of find_condition_and_thread.
2564
2565 2020-10-26 Tom de Vries <tdevries@suse.de>
2566
2567 * dwarf2/read.c (process_full_comp_unit): Call
2568 dwarf2_find_base_address.
2569
2570 2020-10-26 Tom Tromey <tromey@adacore.com>
2571
2572 * gdbtypes.c (create_range_type): Revert previous patch. Add
2573 comment.
2574
2575 2020-10-26 Pedro Alves <pedro@palves.net>
2576
2577 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2578 (my_waitpid): Use gdb::handle_eintr.
2579
2580 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * acinclude.m4: Update ptrace.m4 path.
2583 * ptrace.m4: Moved to gdbsupport.
2584
2585 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2588 instead of target_gdbarch.
2589
2590 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * jit.c (jit_reader_load_command): Pass current inferior.
2593 (jit_inferior_init): Change parameter type to inferior, use it.
2594 (jit_inferior_created): Remove.
2595 (jit_inferior_created_hook): Pass inferior parameter down.
2596 (_initialize_jit): Use jit_inferior_created_hook instead of
2597 jit_inferior_created.
2598 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2599 * infrun.c (follow_exec): Pass inferior to
2600 jit_inferior_created_hook.
2601
2602 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2605 parameter and use it.
2606 (thread_db_inferior_created): Pass inferior argument.
2607
2608 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2609
2610 * aix-thread.c (aix_thread_inferior_created): Add inferior
2611 parameter.
2612 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2613 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2614 * jit.c (jit_inferior_created): Likewise.
2615 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2616 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2617 * observable.h (inferior_created): Likewise.
2618 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2619 * symfile-mem.c (add_vsyscall_page): Likewise.
2620 * infcmd.c (post_create_inferior): Pass inferior argument.
2621
2622 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2623
2624 GDB 10.1 released.
2625
2626 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2627
2628 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2629 to ada_check_typedef.
2630
2631 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * f-exp.y (f_parse): Rename to...
2634 (f_language::parser): ...this.
2635 * f-lang.c (f_get_encoding): Rename to...
2636 (f_language::get_encoding): ...this.
2637 (f_op_print_tab): Rename to...
2638 (f_language::op_print_tab): ...this.
2639 (exp_descriptor_f): Rename to...
2640 (f_language::exp_descriptor_tab): ...this.
2641 (class f_language): Moved to f-lang.h.
2642 (f_language::language_arch_info): New function, moved out of class
2643 declaration.
2644 (f_language::search_name_hash): Likewise.
2645 (f_language::lookup_symbol_nonlocal): Likewise.
2646 (f_language::get_symbol_name_matcher_inner): Likewise.
2647 * f-lang.h: Add 'valprint.h' include.
2648 (class f_language): Moved here from f-lang.c.
2649 * f-typeprint.c (f_type_print_args): Delete commented out
2650 declaration.
2651 (f_print_typedef): Rename to...
2652 (f_language::print_typedef): ...this.
2653 (f_print_type): Rename to...
2654 (f_language::print_type): ...this.
2655 (f_type_print_varspec_prefix): Delete declaration and rename to...
2656 (f_language::f_type_print_varspec_prefix): ...this.
2657 (f_type_print_varspec_suffix): Delete declaration and rename to...
2658 (f_language::f_type_print_varspec_suffix): ...this.
2659 (f_type_print_base): Delete declaration and rename to...
2660 (f_language::f_type_print_base): ...this.
2661 * f-valprint.c (f_value_print_inner): Rename to...
2662 (f_language::value_print_inner): ...this.
2663 * parse.c: Delete 'f-lang.h' include.
2664
2665 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * language.h (language_defn::print_type): Add variable names in
2668 declaration, and update header comment.
2669
2670 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * ada-lang.c (ada_language::demangle): Rename to...
2673 (ada_language::demangle_symbol): ...this.
2674 * c-lang.c (cplus_language::demangle): Rename to...
2675 (cplus_language::demangle_symbol): ...this.
2676 * d-lang.c (d_language::demangle): Rename to...
2677 (d_language::demangle_symbol): ...this.
2678 * f-lang.c (f_language::demangle): Rename to...
2679 (f_language::demangle_symbol): ...this.
2680 * go-lang.c (go_language::demangle): Rename to...
2681 (go_language::demangle_symbol): ...this.
2682 * language.c (language_demangle): Update call to demangle_symbol.
2683 (auto_or_unknown_language::demangle): Rename to...
2684 (auto_or_unknown_language::demangle_symbol): ...this.
2685 * language.h (language_defn::demangle): Rename to...
2686 (language_defn::demangle_symbol): ...this.
2687 * objc-lang.c (objc_language::demangle): Rename to...
2688 (objc_language::demangle_symbol): ...this.
2689 * rust-lang.c (rust_language::demangle): Rename to...
2690 (rust_language::demangle_symbol): ...this.
2691
2692 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2695 (iterate_over_file_blocks): Replace use of macro with the macros
2696 definition.
2697
2698 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2701 * valprint.c (maybe_print_array_index): Replace use of macro with
2702 the macros definition.
2703
2704 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * ada-lang.c (ada_language::print_array_index): Call value_print
2707 directly.
2708 * language.c (language_defn::print_array_index): Likewise.
2709 * language.h (LA_VALUE_PRINT): Delete.
2710 * valprint.c (value_print): Call value_print on the
2711 current_language directly.
2712
2713 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2714
2715 * language.h (LA_PRINT_TYPEDEF): Delete.
2716 * typeprint.c (typedef_print): Call print_typedef directly on the
2717 current_language object.
2718
2719 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * m2-exp.y (m2_parse): Rename to...
2722 (m2_language::parser): ...this. Update function signature.
2723 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2724 (m2_op_print): Rename to...
2725 (m2_language::op_print_tab): ...this, and make const.
2726 (exp_descriptor_modula2): Rename to...
2727 (m2_language::exp_descriptor_modula2): ...this.
2728 (class m2_language): Move to m2-lang.h.
2729 (m2_language::language_arch_info): New function, moved out of
2730 class declaration.
2731 (m2_language::printchar): New function, body from m2_printchar.
2732 (m2_language::printstr): New function, moved out of class
2733 declaration.
2734 (m2_language::emitchar): Likewise.
2735 * m2-lang.h (m2_parse): Delete declaration.
2736 (m2_print_typedef): Delete declaration.
2737 (m2_value_print_inner): Delete declaration.
2738 (class m2_language): Class declaration moved from m2-lang.c,
2739 larger functions are left in m2-lang.c.
2740 * m2-typeprint.c (m2_print_typedef): Rename to...
2741 (m2_language::print_typedef): ...this, and update function
2742 signature.
2743 * m2-valprint.c (m2_value_print_inner): Rename to...
2744 (m2_language::value_print_inner): ...this, replace use of
2745 LA_PRINT_STRING with a direct call to printstr member function,
2746 and update recursive call.
2747
2748 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 * language.c (default_is_string_type_p): Delete, implementation
2751 moved into auto_or_unknown_language::is_string_type_p.
2752 (unk_op_print_tab): Moved into
2753 auto_or_unknown_language::opcode_print_table.
2754 (unknown_language_arch_info): Delete, implementation moved into
2755 auto_or_unknown_language::language_arch_info.
2756 (class auto_or_unknown_language): New class, member functions
2757 copied from unknown_language class, with some updates.
2758 (class unknown_language): Most member functions moved into
2759 auto_or_unknown_language class. Inherit from
2760 auto_or_unknown_language class.
2761 (class auto_language): Inherit from auto_or_unknown_language.
2762 Delete most member functions.
2763
2764 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2765
2766 * stabsread.c (read_member_functions): Remove gdb_assert.
2767
2768 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2769
2770 * gdbtypes.c (init_complex_type): Check target type name.
2771
2772 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2773
2774 * target-debug.h (target_debug_print_struct_target_ops_p):
2775 Remove.
2776 (target_debug_print_async_callback_ftype_p): Remove.
2777 (target_debug_print_struct_trace_state_variable_p): Remove.
2778 (target_debug_print_struct_traceframe_info_p): Remove.
2779 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2780 (target_debug_print_enum_btrace_format): Remove.
2781 (target_debug_print_enum_info_proc_what): Remove.
2782 (target_debug_print_thread_info_pp): Remove.
2783
2784 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * target.h (struct target_ops) <make_corefile_notes>:
2787 Change return type to unique pointer.
2788 * target.c (dummy_make_corefile_notes): Likewise.
2789 * exec.c (struct exec_target) <make_corefile_notes>:
2790 Likewise.
2791 (exec_target::make_corefile_notes): Likewise.
2792 * procfs.c (class procfs_target) <make_corefile_notes>:
2793 Likewise.
2794 (procfs_do_thread_registers): Adjust to unique pointer.
2795 (struct procfs_corefile_thread_data): Add constructor.
2796 <note_data>: Change type to unique pointer.
2797 (procfs_corefile_thread_callback): Adjust to unique pointer.
2798 (procfs_target::make_corefile_notes): Change return type to
2799 unique pointer.
2800 * target-delegates.c: Re-generate.
2801 * gcore.c (write_gcore_file_1): Adjust.
2802 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2803 New.
2804
2805 2020-10-22 Tom de Vries <tdevries@suse.de>
2806
2807 * block.c (find_block_in_blockvector): Make sure the returned block
2808 contains pc.
2809
2810 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 PR gdb/26693
2813 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2814 parameter.
2815 (load_cu): Pass existing CU.
2816 (process_imported_unit_die): Likewise.
2817 (follow_die_offset): Likewise.
2818
2819 2020-10-22 Luis Machado <luis.machado@linaro.org>
2820
2821 * corelow.c (core_target::xfer_partial): Also check for an empty
2822 m_core_unavailable_mappings vector.
2823
2824 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2827 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2828 * f-exp.y (arglist): Allow for a series of subranges.
2829 (subrange): Add cases for subranges with strides.
2830 * f-lang.c (value_f90_subarray): Catch use of array strides and
2831 throw an error.
2832 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2833
2834 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * expprint.c (print_subexp_standard): Change enum range_type to
2837 range_flag and rename variables to match.
2838 (dump_subexp_body_standard): Likewise.
2839 * expression.h (enum range_type): Rename to...
2840 (enum range_flag): ...this.
2841 (range_types): Rename to...
2842 (range_flags): ...this.
2843 * f-lang.c (value_f90_subarray): Change enum range_type to
2844 range_flag and rename variables to match.
2845 * parse.c (operator_length_standard): Likewise.
2846 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2847 range_type to range_flag.
2848 * rust-lang.c (rust_evaluate_funcall): Likewise.
2849 (rust_range): Likewise.
2850 (rust_compute_range): Likewise.
2851 (rust_subscript): Likewise.
2852
2853 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * expprint.c (print_subexp_standard): Update to reflect changes to
2856 enum range_type.
2857 (dump_subexp_body_standard): Likewise.
2858 * expression.h (enum range_type): Convert to a bit field enum, and
2859 make the enum unsigned.
2860 * f-exp.y (subrange): Update to reflect changes to enum
2861 range_type.
2862 * f-lang.c (value_f90_subarray): Likewise.
2863 * parse.c (operator_length_standard): Likewise.
2864 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2865 * rust-lang.c (rust_range): Likewise.
2866 (rust_compute_range): Likewise.
2867 (rust_subscript): Likewise.
2868
2869 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2872 (displaced_step_in_progress): Fix comment.
2873
2874 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2875
2876 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2877 * gdbarch.c: Re-generate.
2878 * gdbarch.h: Re-generate.
2879 * gcore.c (write_gcore_file_1): Adjust.
2880 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2881 constructor.
2882 <note_data>: Change type to unique pointer.
2883 <abort_iteration>: Change type to bool.
2884 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2885 (fbsd_collect_thread_registers): Return void, adjust.
2886 (struct fbsd_corefile_thread_data): Add construtor.
2887 <note_data>: Change type to unique pointer.
2888 (fbsd_corefile_thread): Adjust.
2889 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2890 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2891 to unique pointer, adjust.
2892 (struct linux_collect_regset_section_cb_data): Add constructor.
2893 <note_data>: Change type to unique pointer.
2894 <abort_iteration>: Change type to bool.
2895 (linux_collect_thread_registers): Return void, adjust.
2896 (struct linux_corefile_thread_data): Add constructor.
2897 <note_data>: Change type to unique pointer.
2898 (linux_corefile_thread): Adjust.
2899 (linux_make_corefile_notes): Return unique pointer, adjust.
2900
2901 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2904 * gdbarch.c: Re-generate.
2905 * gdbarch.h: Re-generate.
2906 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2907 bool.
2908 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2909 Likewise.
2910 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2911 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2912 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2913 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2914
2915 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * gdbarch.sh: Make generated predicates return bool.
2918 * gdbarch.c: Re-generate.
2919 * gdbarch.h: Re-generate.
2920
2921 2020-10-20 Tom Tromey <tom@tromey.com>
2922
2923 * varobj-iter.h (struct varobj_item): Remove typedef.
2924
2925 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2926
2927 * infrun.c (currently_stepping): Change int to bool
2928 (maybe_software_singlestep): Likewise.
2929 (show_stop_on_solib_events): Likewise.
2930 (stepping_past_nonsteppable_watchpoint): Likewise.
2931 (displaced_step_in_progress_any_inferior): Likewise.
2932 (displaced_step_in_progress_thread): Likewise.
2933 (keep_going_stepped_thread): Likewise.
2934 (thread_still_needs_step_over): Likewise.
2935 (start_step_over): Likewise.
2936 (do_target_resume): Likewise.
2937 (resume_1): Likewise.
2938 (clear_proceed_status): Likewise.
2939 (thread_still_needs_step_over_bp): Likewise.
2940 (proceed): Likewise.
2941 (switch_back_to_stepped_thread): Likewise.
2942 (adjust_pc_after_break): Likewise.
2943 (stepped_in_from): Likewise.
2944 (handle_stop_requested): Likewise.
2945 (handle_syscall_event): Likewise.
2946 (handle_no_resumed): Likewise.
2947 (handle_inferior_event): Likewise.
2948 (finish_step_over): Likewise.
2949 (handle_signal_stop): Likewise.
2950 (process_event_stop_test): Likewise.
2951
2952 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * infrun.c (get_displaced_stepping_state): Fix comment.
2955
2956 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2957
2958 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2959
2960 2020-10-19 Tom Tromey <tromey@adacore.com>
2961
2962 PR tui/26719
2963 * tui/tui-winsource.h (struct tui_source_window_base)
2964 <refresh_window>: Rename from refresh_pad.
2965 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2966 Rename from refresh_pad.
2967 (tui_source_window_base::show_source_content)
2968 (tui_source_window_base::do_scroll_horizontal): Update.
2969
2970 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2971
2972 * thread.c (_initialize_thread): Fine-tune the help text of
2973 'info threads'.
2974
2975 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976
2977 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2978
2979 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2980
2981 * breakpoint.c (handle_jit_event): Add an argument, change how
2982 `jit_event_handler` is called.
2983
2984 2020-10-17 Tom Tromey <tom@tromey.com>
2985
2986 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2987 (scan_xcoff_symtab): Update.
2988 * psymtab.h (class psymtab_storage) <global_psymbols,
2989 static_psymbols, current_global_psymbols,
2990 current_static_psymbols>: Remove.
2991 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2992 (match_partial_symbol, lookup_partial_symbol): Update.
2993 (print_partial_symbols): Change parameters.
2994 (dump_psymtab, recursively_search_psymtabs)
2995 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2996 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2997 (concat): Remove.
2998 (end_psymtab_common): Simplify.
2999 (append_psymbol_to_list): Change parameters.
3000 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3001 (init_psymbol_list): Simplify.
3002 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3003 * psympriv.h (struct partial_symtab) <empty>: New method.
3004 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3005 Remove.
3006 <global_psymbols, static_psymbols>: New members.
3007 <add_psymbol>: New methods.
3008 (add_psymbol_to_list): Don't declare.
3009 (psymbol_placement): Move earlier.
3010 * mdebugread.c (parse_partial_symbols): Update.
3011 (handle_psymbol_enumerators): Change parameters.
3012 (mdebug_expand_psymtab): Update.
3013 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3014 (add_partial_symbol): Update.
3015 * dwarf2/index-write.c (write_psymbols): Change parameters.
3016 (write_one_signatured_type): Update.
3017 (recursively_count_psymbols): Update.
3018 (recursively_write_psymbols): Update.
3019 (class debug_names) <recursively_write_psymbols>: Update.
3020 <write_psymbols>: Change parameters.
3021 <write_one_signatured_type>: Update.
3022 * dbxread.c (read_dbx_symtab): Update.
3023 (dbx_end_psymtab): Use partial_symtab::empty.
3024 * ctfread.c (struct ctf_context) <pst>: New member.
3025 (create_partial_symtab): Set it.
3026 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3027 (scan_partial_symbols): Use the psymtab's context. Update.
3028
3029 2020-10-17 Tom Tromey <tom@tromey.com>
3030
3031 * valprint.c (generic_value_print): Remove comment.
3032 * m2-valprint.c (m2_value_print_inner): Remove comment.
3033 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3034 type.
3035
3036 2020-10-17 Tom de Vries <tdevries@suse.de>
3037
3038 PR symtab/26317
3039 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3040 symbol main.
3041
3042 2020-10-14 Tom de Vries <tdevries@suse.de>
3043
3044 PR gdb/26733
3045 * solib.c (solib_contains_address_p): Handle
3046 'solib->sections == nullptr'.
3047
3048 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 PR gdb/26642
3051 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3052 target can't do async.
3053 * target.c (target_wait): Assert that we don't pass
3054 TARGET_WNOHANG to a target that can't async.
3055
3056 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3057
3058 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3059 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3060 * alpha-bsd-nat.c: Adjust include.
3061 * alpha-bsd-tdep.h: Adjust comment.
3062 * alpha-nbsd-tdep.c: Rename to ...
3063 * alpha-netbsd-tdep.c: ... this, adjust include.
3064 * amd64-nbsd-nat.c: Rename to ...
3065 * amd64-netbsd-nat.c: ... this, adjust include.
3066 * amd64-nbsd-tdep.c: Rename to ...
3067 * amd64-netbsd-tdep.c: ... this, adjust include.
3068 * amd64-tdep.h: Adjust include.
3069 * arm-nbsd-nat.c: Rename to ...
3070 * arm-netbsd-nat.c: ... this, adjust include.
3071 * arm-nbsd-tdep.c: Rename to ...
3072 * arm-netbsd-tdep.c: ... this, adjust include.
3073 * arm-nbsd-tdep.h: Rename to ...
3074 * arm-netbsd-tdep.h: ... this, adjust include.
3075 * configure.nat: Adjust file lists.
3076 * configure.tgt: Likewise.
3077 * hppa-nbsd-nat.c: Rename to ...
3078 * hppa-netbsd-nat.c: ... this, adjust include.
3079 * hppa-nbsd-tdep.c: Rename to ...
3080 * hppa-netbsd-tdep.c: ... this, adjust include.
3081 * i386-nbsd-nat.c: Rename to ...
3082 * i386-netbsd-nat.c: ... this, adjust include.
3083 * i386-nbsd-tdep.c: Rename to ...
3084 * i386-netbsd-tdep.c: ... this, adjust include.
3085 * m68k-bsd-nat.c: Adjust include.
3086 * mips-nbsd-nat.c: Rename to ...
3087 * mips-netbsd-nat.c: ... this, adjust include.
3088 * mips-nbsd-tdep.c: Rename to ...
3089 * mips-netbsd-tdep.c: ... this, adjust include.
3090 * mips-nbsd-tdep.h: Rename to ...
3091 * mips-netbsd-tdep.h: ... this.
3092 * nbsd-nat.c: Rename to ...
3093 * netbsd-nat.c: ... this, adjust include.
3094 * nbsd-nat.h: Rename to ...
3095 * netbsd-nat.h: ... this, adjust include.
3096 * nbsd-tdep.c: Rename to ...
3097 * netbsd-tdep.c: ... this, adjust include.
3098 * nbsd-tdep.h: Rename to ...
3099 * netbsd-tdep.h: ... this.
3100 * ppc-nbsd-nat.c: Rename to ...
3101 * ppc-netbsd-nat.c: ... this, adjust include.
3102 * ppc-nbsd-tdep.c: Rename to ...
3103 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3104 * ppc-nbsd-tdep.h: Rename to ...
3105 * ppc-netbsd-tdep.h: ... this.
3106 * sh-nbsd-nat.c: Rename to ...
3107 * sh-netbsd-nat.c: ... this, adjust include.
3108 * sh-nbsd-tdep.c: Rename to ...
3109 * sh-netbsd-tdep.c: ... this, adjust include.
3110 * sparc-nbsd-nat.c: Rename to ...
3111 * sparc-netbsd-nat.c: ... this.
3112 * sparc-nbsd-tdep.c: Rename to ...
3113 * sparc-netbsd-tdep.c: ... this, adjust include.
3114 * sparc64-nbsd-nat.c: Rename to ...
3115 * sparc64-netbsd-nat.c: ... this.
3116 * sparc64-nbsd-tdep.c: Rename to ...
3117 * sparc64-netbsd-tdep.c: ... this, adjust include.
3118 * sparc64-tdep.h: Adjust comment.
3119 * vax-bsd-nat.c: Adjust include.
3120 * vax-nbsd-tdep.c: Rename to ...
3121 * vax-netbsd-tdep.c: ... this, adjust include.
3122
3123 2020-10-12 Tom Tromey <tom@tromey.com>
3124
3125 * target.h (struct target_ops) <get_section_table>: Update.
3126 (target_get_section_table): Update.
3127 * target.c (target_get_section_table, target_section_by_addr)
3128 (memory_xfer_partial_1): Update.
3129 * target-section.h (target_section_table): Now an alias.
3130 * target-delegates.c: Rebuild.
3131 * target-debug.h (target_debug_print_target_section_table_p):
3132 Rename from target_debug_print_struct_target_section_table_p.
3133 * symfile.c (build_section_addr_info_from_section_table): Update.
3134 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3135 * solib-svr4.c (scan_dyntag): Update.
3136 * solib-dsbt.c (scan_dyntag): Update.
3137 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3138 Update.
3139 * record-full.c (record_full_core_target::xfer_partial): Update.
3140 * progspace.h (struct program_space) <target_sections>: Update.
3141 * exec.h (print_section_info): Update.
3142 * exec.c (exec_target::close, build_section_table)
3143 (add_target_sections, add_target_sections_of_objfile)
3144 (remove_target_sections, exec_on_vfork)
3145 (section_table_available_memory)
3146 (section_table_xfer_memory_partial)
3147 (exec_target::get_section_table, exec_target::xfer_partial)
3148 (print_section_info, set_section_command)
3149 (exec_set_section_address, exec_target::has_memory): Update.
3150 * corelow.c (core_target::build_file_mappings)
3151 (core_target::xfer_partial, core_target::info_proc_mappings)
3152 (core_target::info_proc_mappings): Update.
3153 * bfd-target.c (class target_bfd): Update
3154
3155 2020-10-12 Tom Tromey <tom@tromey.com>
3156
3157 * progspace.c (program_space::~program_space): Don't call
3158 clear_section_table.
3159 * exec.h (clear_section_table): Don't declare.
3160 * exec.c (exec_target::close): Update.
3161 (clear_section_table): Remove.
3162
3163 2020-10-12 Tom Tromey <tom@tromey.com>
3164
3165 * exec.c (add_target_sections_of_objfile): Simplify.
3166
3167 2020-10-12 Tom Tromey <tom@tromey.com>
3168
3169 * solib.c (solib_map_sections): Update.
3170 * record-full.c (record_full_core_open_1): Update.
3171 * exec.h (build_section_table): Return a target_section_table.
3172 * exec.c (exec_file_attach): Update.
3173 (build_section_table): Return a target_section_table.
3174 * corelow.c (core_target::core_target): Update.
3175 * bfd-target.c (target_bfd::target_bfd): Update.
3176
3177 2020-10-12 Tom Tromey <tom@tromey.com>
3178
3179 * target.c (target_section_by_addr, memory_xfer_partial_1):
3180 Update.
3181 * target-section.h (struct target_section_table): Use
3182 std::vector.
3183 * symfile.h (build_section_addr_info_from_section_table): Take a
3184 target_section_table.
3185 * symfile.c (build_section_addr_info_from_section_table): Take a
3186 target_section_table.
3187 * solist.h (struct so_list) <sections>: Change type.
3188 <sections_end>: Remove.
3189 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3190 (solib_contains_address_p): Update.
3191 * solib-svr4.c (scan_dyntag): Update.
3192 * solib-dsbt.c (scan_dyntag): Update.
3193 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3194 Update.
3195 * record-full.c (record_full_core_start, record_full_core_end):
3196 Remove.
3197 (record_full_core_sections): New global.
3198 (record_full_core_open_1, record_full_core_target::xfer_partial):
3199 Update.
3200 * exec.h (build_section_table, section_table_xfer_memory_partial)
3201 (add_target_sections): Take a target_section_table.
3202 * exec.c (exec_file_attach, clear_section_table): Update.
3203 (resize_section_table): Remove.
3204 (build_section_table, add_target_sections): Take a
3205 target_section_table.
3206 (add_target_sections_of_objfile, remove_target_sections)
3207 (exec_on_vfork): Update.
3208 (section_table_available_memory): Take a target_section_table.
3209 (section_table_read_available_memory): Update.
3210 (section_table_xfer_memory_partial): Take a target_section_table.
3211 (print_section_info, set_section_command)
3212 (exec_set_section_address, exec_target::has_memory): Update.
3213 * corelow.c (class core_target) <m_core_section_table,
3214 m_core_file_mappings>: Remove braces.
3215 <~core_target>: Remove.
3216 (core_target::core_target): Update.
3217 (core_target::~core_target): Remove.
3218 (core_target::build_file_mappings)
3219 (core_target::xfer_memory_via_mappings)
3220 (core_target::xfer_partial, core_target::info_proc_mappings):
3221 Update.
3222 * bfd-target.c (target_bfd::xfer_partial): Update.
3223 (target_bfd::target_bfd): Update.
3224 (target_bfd::~target_bfd): Remove.
3225
3226 2020-10-12 Tom Tromey <tom@tromey.com>
3227
3228 * target.h (struct target_section, struct target_section_table):
3229 Move to target-section.h.
3230 * target-section.h: New file.
3231
3232 2020-10-12 Pedro Alves <pedro@palves.net>
3233
3234 PR exp/26602
3235 * valops.c (struct struct_field_searcher): New.
3236 (update_search_result): Rename to ...
3237 (struct_field_searcher::update_result): ... this. Simplify
3238 prototype. Record all found fields.
3239 (do_search_struct_field): Rename to ...
3240 (struct_field_searcher::search): ... this. Simplify prototype.
3241 Maintain stack of visited baseclass path. Call update_result for
3242 fields too. Keep searching fields in baseclasses instead of
3243 stopping at the first found field.
3244 (search_struct_field): Use struct_field_searcher. When looking
3245 for fields, report ambiguous access attempts.
3246
3247 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * frame.c (inside_main_func): Check full symbols as well as
3250 minimal symbols.
3251
3252 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3253
3254 * ada-lang.c (advance_wild_match): Rewrite the function's
3255 description. Change the type of target0, t0 and t1 to char.
3256
3257 2020-10-09 Tom Tromey <tromey@adacore.com>
3258
3259 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3260
3261 2020-10-09 Tom Tromey <tromey@adacore.com>
3262
3263 * ada-lang.h (ada_encode): Return std::string.
3264 * ada-lang.c (ada_encode_1): Return std::string.
3265 (ada_encode): Likewise.
3266 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3267 Update.
3268 * ada-exp.y (block_lookup, write_var_or_type): Update.
3269
3270 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3271
3272 PR exp/26714
3273 * printcmd.c (print_formatted): Handle void results as
3274 unformatted prints.
3275
3276 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * arch/aarch32.c (aarch32_create_target_description): Release the
3279 target_desc_up as late as possible.
3280 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3281 * arch/amd64.c (amd64_create_target_description): Likewise.
3282 * arch/arc.c (arc_create_target_description): Return a
3283 target_desc_up, don't release it.
3284 * arch/arc.h (arc_create_target_description): Update declaration.
3285 (arc_lookup_target_description): Move target_desc_up into the
3286 cache, and return a borrowed pointer.
3287 * arch/arm.c (arm_create_target_description): Release the
3288 target_desc_up as late as possible.
3289 * arch/i386.c (i386_create_target_description): Likewise.
3290 * arch/riscv.h (riscv_create_target_description): Update
3291 declaration to match definition.
3292 * arch/tic6x.c (tic6x_create_target_description): Release the
3293 target_desc_up as late as possible.
3294
3295 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3298 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3299
3300 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3301
3302 * source.c (directory_command): Notify observers that "directories"
3303 parameter has changed.
3304
3305 2020-10-08 Tom Tromey <tom@tromey.com>
3306
3307 * cli/cli-cmds.c (print_disassembly): Style function name and
3308 addresses. Add _() wrappers.
3309
3310 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3311
3312 * NEWS: Mention ARC support in GDBserver.
3313
3314 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * arch/aarch32.c (aarch32_create_target_description): Release
3317 unique_ptr returned from allocate_target_description.
3318 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3319 * arch/amd64.c (amd64_create_target_description): Likewise.
3320 * arch/arc.c (arc_create_target_description): Likewise.
3321 * arch/arm.c (arm_create_target_description): Likewise.
3322 * arch/i386.c (i386_create_target_description): Likewise.
3323 * arch/riscv.c (riscv_create_target_description): Update return
3324 type. Handle allocate_target_description returning a unique_ptr.
3325 (riscv_lookup_target_description): Update to handle unique_ptr.
3326 * arch/tic6x.c (tic6x_create_target_description): Release
3327 unique_ptr returned from allocate_target_description.
3328 * features/microblaze-with-stack-protect.c: Regenerate.
3329 * features/microblaze.c: Regenerate.
3330 * features/mips-dsp-linux.c: Regenerate.
3331 * features/mips-linux.c: Regenerate.
3332 * features/mips64-dsp-linux.c: Regenerate.
3333 * features/mips64-linux.c: Regenerate.
3334 * features/nds32.c: Regenerate.
3335 * features/nios2.c: Regenerate.
3336 * features/or1k.c: Regenerate.
3337 * features/rs6000/powerpc-32.c: Regenerate.
3338 * features/rs6000/powerpc-32l.c: Regenerate.
3339 * features/rs6000/powerpc-403.c: Regenerate.
3340 * features/rs6000/powerpc-403gc.c: Regenerate.
3341 * features/rs6000/powerpc-405.c: Regenerate.
3342 * features/rs6000/powerpc-505.c: Regenerate.
3343 * features/rs6000/powerpc-601.c: Regenerate.
3344 * features/rs6000/powerpc-602.c: Regenerate.
3345 * features/rs6000/powerpc-603.c: Regenerate.
3346 * features/rs6000/powerpc-604.c: Regenerate.
3347 * features/rs6000/powerpc-64.c: Regenerate.
3348 * features/rs6000/powerpc-64l.c: Regenerate.
3349 * features/rs6000/powerpc-7400.c: Regenerate.
3350 * features/rs6000/powerpc-750.c: Regenerate.
3351 * features/rs6000/powerpc-860.c: Regenerate.
3352 * features/rs6000/powerpc-altivec32.c: Regenerate.
3353 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3354 * features/rs6000/powerpc-altivec64.c: Regenerate.
3355 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3356 * features/rs6000/powerpc-e500.c: Regenerate.
3357 * features/rs6000/powerpc-e500l.c: Regenerate.
3358 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3359 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3360 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3361 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3362 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3363 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3364 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3365 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3366 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3367 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3368 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3369 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3370 * features/rs6000/powerpc-vsx32.c: Regenerate.
3371 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3372 * features/rs6000/powerpc-vsx64.c: Regenerate.
3373 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3374 * features/rs6000/rs6000.c: Regenerate.
3375 * features/rx.c: Regenerate.
3376 * features/s390-gs-linux64.c: Regenerate.
3377 * features/s390-linux32.c: Regenerate.
3378 * features/s390-linux32v1.c: Regenerate.
3379 * features/s390-linux32v2.c: Regenerate.
3380 * features/s390-linux64.c: Regenerate.
3381 * features/s390-linux64v1.c: Regenerate.
3382 * features/s390-linux64v2.c: Regenerate.
3383 * features/s390-te-linux64.c: Regenerate.
3384 * features/s390-tevx-linux64.c: Regenerate.
3385 * features/s390-vx-linux64.c: Regenerate.
3386 * features/s390x-gs-linux64.c: Regenerate.
3387 * features/s390x-linux64.c: Regenerate.
3388 * features/s390x-linux64v1.c: Regenerate.
3389 * features/s390x-linux64v2.c: Regenerate.
3390 * features/s390x-te-linux64.c: Regenerate.
3391 * features/s390x-tevx-linux64.c: Regenerate.
3392 * features/s390x-vx-linux64.c: Regenerate.
3393 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3394 from allocate_target_description.
3395 * target-descriptions.c (allocate_target_description): Update
3396 return type.
3397 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3398 allocate_target_description.
3399
3400 2020-10-07 Tom Tromey <tromey@adacore.com>
3401
3402 * unittests/search-memory-selftests.c: New file.
3403 * Makefile.in (SELFTESTS_SRCS): Add
3404 unittests/search-memory-selftests.c.
3405
3406 2020-10-07 Tom Tromey <tromey@adacore.com>
3407
3408 PR gdb/16930:
3409 * findcmd.c (_initialize_mem_search): Mention that the range is
3410 inclusive.
3411
3412 2020-10-07 Tom Tromey <tromey@adacore.com>
3413
3414 * target.h (simple_search_memory): Don't declare.
3415 * target.c (simple_search_memory): Move to gdbsupport.
3416 (default_search_memory): Update.
3417 * remote.c (remote_target::search_memory): Update.
3418
3419 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * Makefile.in (COMPILE): Add CXXFLAGS.
3422 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3423 (check-headers): Add CXXFLAGS.
3424
3425 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3426
3427 * arc-linux-tdep.h: New file.
3428 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3429 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3430 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3431 arc_linux_gregset, arc_linux_v2_regset,
3432 arc_linux_iterate_over_regset_sections,
3433 arc_linux_core_read_description): Implement.
3434 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3435 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3436 (arc_gdbarch_features_create): Add.
3437 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3438
3439 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3440
3441 * arch/arc.h: Rename "arc_gdbarch_features" to
3442 "arc_arch_features".
3443 * arc-tdep.h: Likewise.
3444 * arc-tdep.c: Likewise.
3445
3446 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447
3448 * infcmd.c (attach_command): Remove the redundant call to
3449 `clear_proceed_status`.
3450
3451 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3452
3453 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3454
3455 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3456
3457 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3458 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3459 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3460
3461 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3464 (_initialize_break_catch_sig): Don't allocate array.
3465
3466 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * symtab.c (find_pc_line): Return unmapped addresses when the
3469 requested address is also unmapped.
3470
3471 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3474 tui/tui-out.h.
3475
3476 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3479 type::is_vector instead of TYPE_VECTOR.
3480
3481 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * auto-load.c (auto_load_objfile_script_1): Don't use
3484 debugfile_holder as temporary variable when stripping drive
3485 letter.
3486
3487 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3488
3489 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3490 Add TYPE_CODE_COMPLEX.
3491 (amd64_windows_return_value): Fix types returned via XMM0.
3492
3493 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3494
3495 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3496 AArch64/ARM maintainers.
3497
3498 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * NEWS: Mention set/show debug event-loop.
3501
3502 2020-10-02 Tom Tromey <tromey@adacore.com>
3503
3504 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3505 REG_EXTENDED.
3506
3507 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3510 * procfs.c (procfs_inferior_created): Remove.
3511 (_initialize_procfs): Don't register procfs_inferior_created.
3512
3513 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * async-event.c (invoke_async_signal_handlers): Add debug
3516 print.
3517 (check_async_event_handlers): Likewise.
3518 * event-top.c (show_debug_event_loop): New function.
3519 (_initialize_event_top): Register "set debug event-loop"
3520 setting.
3521
3522 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3525 * debug.h: Remove.
3526 * infrun.c: Include gdbsupport/common-debug.h.
3527 * linux-nat.c: Likewise.
3528
3529 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3530
3531 * async-event.h (create_async_signal_handler): Add name
3532 parameter.
3533 (create_async_event_handler): Likewise.
3534 * async-event.c (struct async_signal_handler) <name>: New field.
3535 (struct async_event_handler) <name>: New field.
3536 (create_async_signal_handler): Assign name.
3537 (create_async_event_handler): Assign name.
3538 * event-top.c (async_init_signals): Pass name when creating
3539 handler.
3540 * infrun.c (_initialize_infrun): Likewise.
3541 * record-btrace.c (record_btrace_push_target): Likewise.
3542 * record-full.c (record_full_open): Likewise.
3543 * remote-notif.c (remote_notif_state_allocate): Likewise.
3544 * remote.c (remote_target::open_1): Likewise.
3545 * tui/tui-win.c (tui_initialize_win): Likewise.
3546
3547 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * async-event.c (initialize_async_signal_handlers): Pass name to
3550 add_file_handler
3551 * event-top.c (ui_register_input_event_handler): Likewise.
3552 * linux-nat.c (linux_nat_target::async): Likewise.
3553 * run-on-main-thread.c (_initialize_run_on_main_thread):
3554 Likewise
3555 * ser-base.c (reschedule): Likewise.
3556 (ser_base_async): Likewise.
3557 * tui/tui-io.c: Likewise.
3558 * top.h (struct ui) <num>: New field.
3559 * top.c (highest_ui_num): New variable.
3560 (ui::ui): Initialize num.
3561
3562 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3563
3564 * observable.h <inferior_created>: Remove parameters. Update all
3565 listeners.
3566 * inferior.h (post_create_inferior): Remove target parameter.
3567 Update all callers.
3568
3569 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3570
3571 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3572 and DW_MACRO_undef_strx.
3573 (dwarf_decode_macros): Likewise
3574 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3575 which is the value of DW_AT_str_offsets_base.
3576 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3577 str_offsets_base.
3578
3579 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3580
3581 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3582
3583 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3584
3585 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3586 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3587
3588 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3589
3590 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3591
3592 2020-09-30 Tom de Vries <tdevries@suse.de>
3593
3594 PR symtab/26683
3595 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3596
3597 2020-09-30 Tom Tromey <tromey@adacore.com>
3598
3599 * dwarf2/read.c (handle_variant): Use constant_value.
3600
3601 2020-09-29 Tom Tromey <tom@tromey.com>
3602
3603 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3604 (read_file_scope, dwarf2_get_pc_bounds)
3605 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3606 (read_structure_type, handle_struct_member_die)
3607 (read_enumeration_type, read_array_type, read_set_type)
3608 (read_tag_pointer_type, read_tag_reference_type)
3609 (read_subroutine_type, read_base_type, read_subrange_type)
3610 (read_full_die_1, partial_die_info::read)
3611 (partial_die_info::read, by, new_symbol)
3612 (dwarf2_const_value_data, dwarf2_const_value_attr)
3613 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3614 (prepare_one_comp_unit): Update.
3615 * dwarf2/attribute.h (DW_UNSND): Remove.
3616
3617 2020-09-29 Tom Tromey <tom@tromey.com>
3618
3619 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3620 (read_subroutine_type, partial_die_info::read)
3621 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3622 (dwarf2_add_member_fn): Update.
3623 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3624 * dwarf2/attribute.c (attribute::as_boolean): New method.
3625
3626 2020-09-29 Tom Tromey <tom@tromey.com>
3627
3628 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3629 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3630 method.
3631 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3632
3633 2020-09-29 Tom Tromey <tom@tromey.com>
3634
3635 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3636 the attribute's form.
3637
3638 2020-09-29 Tom Tromey <tom@tromey.com>
3639
3640 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3641 (dwarf2_add_member_fn): Update.
3642 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3643 * dwarf2/attribute.c (attribute::defaulted): New method, from
3644 is_valid_DW_AT_defaulted.
3645
3646 2020-09-29 Tom Tromey <tom@tromey.com>
3647
3648 * dwarf2/read.c (dw2_get_file_names_reader)
3649 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3650 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3651 (dwarf2_symbol_mark_computed): Use as_unsigned.
3652 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3653 method.
3654 <form_is_section_offset>: Update comment.
3655
3656 2020-09-29 Tom Tromey <tom@tromey.com>
3657
3658 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3659 dwarf2_default_access_attribute. Look up attribute.
3660 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3661 Update.
3662
3663 2020-09-29 Tom Tromey <tom@tromey.com>
3664
3665 * dwarf2/read.c (skip_one_die): Update.
3666 (read_full_die_1): Change how reprocessing is done.
3667 (partial_die_info::read): Update.
3668 (read_attribute_value): Remove need_reprocess parameter.
3669 (read_attribute): Likewise.
3670 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3671 New method.
3672
3673 2020-09-29 Tom Tromey <tom@tromey.com>
3674
3675 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3676 (dwarf2_const_value_attr, dump_die_shallow)
3677 (dwarf2_fetch_constant_bytes): Update.
3678 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3679 comment.
3680 <set_address>: New method.
3681 (DW_ADDR): Remove.
3682 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3683 (attribute::as_string, attribute::as_address): Add assert.
3684
3685 2020-09-29 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3688 (read_attribute_reprocess, read_attribute_value): Update.
3689 (read_attribute): Clear requires_reprocessing.
3690 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3691 form_requires_reprocessing>: New methods.
3692 <string_init>: Clear requires_reprocessing.
3693 <set_unsigned_reprocess>: New method.
3694 <name>: Shrink by one bit.
3695 <requires_reprocessing>: New member.
3696 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3697 method.
3698
3699 2020-09-29 Tom Tromey <tom@tromey.com>
3700
3701 * dwarf2/read.c (read_attribute_value): Update.
3702 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3703 set_unsigned>: New methods.
3704 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3705
3706 2020-09-29 Tom Tromey <tom@tromey.com>
3707
3708 * dwarf2/read.c (get_alignment, read_array_order)
3709 (read_attribute_value, dwarf2_const_value_attr)
3710 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3711 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3712 New methods.
3713 (DW_SND): Remove.
3714
3715 2020-09-29 Tom Tromey <tom@tromey.com>
3716
3717 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3718 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3719 Update.
3720 * dwarf2/attribute.h (struct attribute) <as_signature,
3721 set_signature>: New methods.
3722 (DW_SIGNATURE): Remove.
3723
3724 2020-09-29 Tom Tromey <tom@tromey.com>
3725
3726 * dwarf2/read.c (read_call_site_scope)
3727 (handle_data_member_location, dwarf2_add_member_fn)
3728 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3729 (partial_die_info::read, read_attribute_value)
3730 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3731 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3732 (dwarf2_symbol_mark_computed): Update.
3733 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3734 methods.
3735 (DW_BLOCK): Remove.
3736 * dwarf2/attribute.c (attribute::form_is_block): Add
3737 DW_FORM_data16.
3738
3739 2020-09-29 Tom Tromey <tom@tromey.com>
3740
3741 * dwarf2/read.c (read_cutu_die_from_dwo)
3742 (read_attribute_reprocess, read_attribute_value, read_attribute)
3743 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3744 (dwarf2_fetch_constant_bytes): Update.
3745 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3746 <set_string_noncanonical, set_string_canonical>: New methods.
3747 <string_is_canonical>: Update comment.
3748 <canonical_string_p>: Add assert.
3749 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3750 * dwarf2/attribute.c (attribute::form_is_string): New method.
3751 (attribute::string): Use it.
3752
3753 2020-09-29 Tom Tromey <tom@tromey.com>
3754
3755 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3756 (dump_die_shallow): Use canonical_string_p.
3757 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3758 method.
3759
3760 2020-09-29 Tom Tromey <tom@tromey.com>
3761
3762 * dwarf2/read.c (partial_die_info::read)
3763 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3764 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3765 attribute::as_string.
3766
3767 2020-09-29 Tom Tromey <tom@tromey.com>
3768
3769 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3770 DW_ADDR.
3771 (attribute::string): Don't use DW_STRING.
3772 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3773 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3774
3775 2020-09-29 Tom Tromey <tom@tromey.com>
3776
3777 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3778 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3779 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3780 * dwarf2/attribute.h (struct attribute): Rename methods.
3781 * dwarf2/attribute.c (attribute::as_address): Rename from
3782 value_as_address.
3783 (attribute::as_string): Rename from value_as_string.
3784
3785 2020-09-29 Tom Tromey <tom@tromey.com>
3786
3787 * dwarf2/read.c (partial_die_info::read) <case
3788 DW_AT_linkage_name>: Use value_as_string.
3789 (dwarf2_string_attr): Use value_as_string.
3790 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3791 method.
3792 * dwarf2/attribute.c (attribute::value_as_string): New method.
3793
3794 2020-09-29 Pedro Alves <pedro@palves.net>
3795
3796 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3797 defined before using '#pragma GCC diagnostic' instead of checking
3798 __clang__.
3799
3800 2020-09-28 Tom Tromey <tom@tromey.com>
3801
3802 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3803 (handle_signal_stop): Update.
3804 * procfs.c (procfs_target::insert_watchpoint): Update.
3805 * target.h (target_have_steppable_watchpoint): Now a function.
3806
3807 2020-09-28 Tom Tromey <tom@tromey.com>
3808
3809 * infrun.c (set_schedlock_func): Update.
3810 * target.h (target_can_lock_scheduler): Now a function.
3811
3812 2020-09-28 Tom Tromey <tom@tromey.com>
3813
3814 * inferior.h (class inferior) <has_execution>: Update.
3815 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3816 * valops.c (find_function_in_inferior)
3817 (value_allocate_space_in_inferior): Update.
3818 * top.c (kill_or_detach): Update.
3819 * target.c (target_preopen, set_target_permissions): Update.
3820 (target_has_execution_current): Remove.
3821 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3822 Update.
3823 * solib.c (update_solib_list, reload_shared_libraries): Update.
3824 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3825 * solib-dsbt.c (enable_break): Update.
3826 * score-tdep.c (score7_fetch_inst): Update.
3827 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3828 Update.
3829 * remote.c (remote_target::start_remote)
3830 (remote_target::remote_check_symbols, remote_target::open_1)
3831 (remote_target::remote_detach_1, remote_target::verify_memory)
3832 (remote_target::xfer_partial, remote_target::read_description)
3833 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3834 * record-full.c (record_full_open_1): Update.
3835 * record-btrace.c (record_btrace_target_open): Update.
3836 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3837 (value_nsstring): Update.
3838 * linux-thread-db.c (add_thread_db_info)
3839 (thread_db_find_new_threads_silently, check_thread_db_callback)
3840 (try_thread_db_load_1, record_thread): Update.
3841 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3842 Update.
3843 * linux-fork.c (checkpoint_command): Update.
3844 * infrun.c (set_non_stop, set_observer_mode)
3845 (check_multi_target_resumption, for_each_just_stopped_thread)
3846 (maybe_remove_breakpoints, normal_stop)
3847 (class infcall_suspend_state): Update.
3848 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3849 (info_program_command, attach_command): Update.
3850 * infcall.c (call_function_by_hand_dummy): Update.
3851 * inf-loop.c (inferior_event_handler): Update.
3852 * gcore.c (gcore_command, derive_heap_segment): Update.
3853 * exec.c (exec_file_command): Update.
3854 * eval.c (evaluate_subexp): Update.
3855 * compile/compile.c (compile_to_object): Update.
3856 * cli/cli-dump.c (restore_command): Update.
3857 * breakpoint.c (update_watchpoint)
3858 (update_inserted_breakpoint_locations)
3859 (insert_breakpoint_locations, get_bpstat_thread): Update.
3860 * target.h (target_has_execution): Remove macro.
3861 (target_has_execution_current): Don't declare.
3862 (target_has_execution): Rename from target_has_execution_1. Add
3863 argument default.
3864
3865 2020-09-28 Tom Tromey <tom@tromey.com>
3866
3867 * mi/mi-main.c (exec_reverse_continue)
3868 (mi_cmd_list_target_features): Update.
3869 * infrun.c (set_exec_direction_func): Update.
3870 * target.c (default_execution_direction): Update.
3871 * reverse.c (exec_reverse_once): Update.
3872 * target.h (target_can_execute_reverse): Now a function.
3873
3874 2020-09-28 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-regs.c (tui_get_register)
3877 (tui_data_window::show_registers): Update.
3878 * thread.c (scoped_restore_current_thread::restore)
3879 (scoped_restore_current_thread::scoped_restore_current_thread):
3880 Update.
3881 * regcache-dump.c (regcache_print): Update.
3882 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3883 Update.
3884 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3885 * mep-tdep.c (current_me_module, current_options): Update.
3886 * linux-thread-db.c (thread_db_load): Update.
3887 * infcmd.c (registers_info, info_vector_command)
3888 (info_float_command): Update.
3889 * ia64-tdep.c (ia64_frame_prev_register)
3890 (ia64_sigtramp_frame_prev_register): Update.
3891 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3892 * gcore.c (derive_stack_segment): Update.
3893 * frame.c (get_current_frame, has_stack_frames): Update.
3894 * findvar.c (language_defn::read_var_value): Update.
3895 * arm-tdep.c (arm_pc_is_thumb): Update.
3896 * target.c (target_has_registers): Rename from
3897 target_has_registers_1.
3898 * target.h (target_has_registers): Remove macro.
3899 (target_has_registers): Rename from target_has_registers_1.
3900
3901 2020-09-28 Tom Tromey <tom@tromey.com>
3902
3903 * windows-tdep.c (tlb_make_value): Update.
3904 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3905 * thread.c (scoped_restore_current_thread::restore)
3906 (scoped_restore_current_thread::scoped_restore_current_thread)
3907 (thread_command): Update.
3908 * stack.c (backtrace_command_1, frame_apply_level_command)
3909 (frame_apply_all_command, frame_apply_command): Update.
3910 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3911 Update.
3912 * gcore.c (derive_stack_segment): Update.
3913 * frame.c (get_current_frame, has_stack_frames): Update.
3914 * auxv.c (info_auxv_command): Update.
3915 * ada-tasks.c (ada_build_task_list): Update.
3916 * target.c (target_has_stack): Rename from target_has_stack_1.
3917 * target.h (target_has_stack): Remove macro.
3918 (target_has_stack): Rename from target_has_stack_1.
3919
3920 2020-09-28 Tom Tromey <tom@tromey.com>
3921
3922 * target.c (target_has_memory): Rename from target_has_memory_1.
3923 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3924 * thread.c (scoped_restore_current_thread::restore)
3925 (scoped_restore_current_thread::scoped_restore_current_thread):
3926 Update.
3927 * frame.c (get_current_frame, has_stack_frames): Update.
3928 * target.h (target_has_memory): Remove macro.
3929 (target_has_memory): Rename from target_has_memory_1.
3930
3931 2020-09-28 Tom Tromey <tom@tromey.com>
3932
3933 * target.c (target_has_all_memory_1): Remove.
3934 * target.h (target_has_all_memory): Remove define.
3935 (target_has_all_memory_1): Don't declare.
3936
3937 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3938
3939 * ser-base.c: Adjust comments formatting.
3940
3941 2020-09-27 Tom Tromey <tom@tromey.com>
3942
3943 PR tui/25342:
3944 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3945
3946 2020-09-27 Tom Tromey <tom@tromey.com>
3947
3948 PR tui/25342:
3949 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3950
3951 2020-09-27 Tom Tromey <tom@tromey.com>
3952
3953 * unittests/tui-selftests.c: Update.
3954 * tui/tui-winsource.h (struct tui_source_window_base)
3955 <extra_margin, show_line_number, refresh_pad>: New methods.
3956 <m_max_length, m_pad>: New members.
3957 (tui_copy_source_line): Update.
3958 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3959 first_col, line_width, ndigits parameters. Add length.
3960 (tui_source_window_base::show_source_line): Write to pad. Line
3961 number now 0-based.
3962 (tui_source_window_base::refresh_pad): New method.
3963 (tui_source_window_base::show_source_content): Write to pad. Call
3964 refresh_pad.
3965 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3966 not refill.
3967 (tui_source_window_base::update_exec_info): Call
3968 show_line_number.
3969 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3970 method.
3971 <m_digits>: New member.
3972 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3973 and m_max_length.
3974 (tui_source_window::show_line_number): New method.
3975 * tui/tui-io.h (tui_puts): Fix comment.
3976 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3977 m_max_length.
3978
3979 2020-09-27 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-winsource.c
3982 (tui_source_window_base::set_is_exec_point_at): Don't call
3983 show_source_line.
3984
3985 2020-09-27 Tom Tromey <tom@tromey.com>
3986
3987 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3988 method.
3989 <erase>: Update.
3990 <cursor_x, cursor_y>: Remove.
3991 <m_inner_window>: New member.
3992 (tui_py_window::rerender): Create inner window.
3993 (tui_py_window::output): Write to inner window.
3994
3995 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3996
3997 PR python/26586
3998 * cli/cli-script.c (execute_control_commands): don't set
3999 instream to nullptr here as this breaks the from_tty argument
4000 to gdb.execute in Python.
4001 (execute_user_command): set instream to nullptr here instead.
4002
4003 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * infrun.h (infrun_debug_printf): Fix formatting.
4006 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4007
4008 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4009
4010 * compile/compile-object-load.h (struct munmap_list): Add
4011 explicitly-defined move constructor.
4012
4013 2020-09-24 Tom Tromey <tromey@adacore.com>
4014
4015 PR tui/26638:
4016 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4017 method.
4018 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4019 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4020 (tui_prev_win): Rewrite.
4021
4022 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4023
4024 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4025 in WOW64 processes as SIGINT.
4026 * nat/windows-nat.h: Make wow64_process a shared variable.
4027 * windows-nat.c: Remove static wow64_process variable.
4028
4029 2020-09-23 Tom Tromey <tom@tromey.com>
4030
4031 PR symtab/25470:
4032 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4033 offset and bit size.
4034 * printcmd.c (print_scalar_formatted): Handle zero-length
4035 integer.
4036 (print_scalar_formatted): Use bit_size_differs_p.
4037 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4038 constant.
4039 (union type_specific): <int_stuff>: New member.
4040 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4041 methods.
4042 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4043 TYPE_SPECIFIC_FIELD.
4044 (recursive_dump_type, copy_type_recursive): Update.
4045 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4046 DW_AT_data_bit_offset.
4047
4048 2020-09-23 Tom Tromey <tom@tromey.com>
4049
4050 * utils.h (class gdb_argv): Add move operators.
4051 <append>: New methods.
4052 * compile/compile.c (build_argc_argv): Remove.
4053 (compile_args_argc): Remove.
4054 (compile_args_argv): Change type.
4055 (set_compile_args): Simplify.
4056 (append_args): Remove.
4057 (filter_args): Remove argcp parameter.
4058 (get_args): Return gdb_argv. Simplify.
4059 (compile_to_object): Update.
4060
4061 2020-09-23 Tom Tromey <tom@tromey.com>
4062
4063 * compile/compile-object-run.c (do_module_cleanup)
4064 <~do_module_cleanup> :Remove.
4065 (do_module_cleanup): Update.
4066 * compile/compile-object-load.h (struct munmap_list): Add move
4067 assignment operator.
4068 <source_file>: Now a std::string.
4069 <munmap_list>: Rename. No longer a pointer.
4070 * compile/compile-object-load.c (struct setup_sections_data): Add
4071 constructor.
4072 <setup_one_section>: Declare.
4073 <munmap_list>: Move earlier.
4074 <m_bfd>: New member.
4075 <m_last_size, m_last_section_first, m_last_prot,
4076 m_last_max_alignment>: Rename, add initializers where needed.
4077 (setup_sections_data::setup_one_section): Rename from
4078 setup_sections. Update.
4079 (compile_object_load): Update. Don't use bfd_map_over_sections.
4080
4081 2020-09-23 Tom Tromey <tom@tromey.com>
4082
4083 * compile/compile-object-run.c (struct do_module_cleanup): Add
4084 parameters to constructor. Update destructor.
4085 <source_file, scope, scope_data, out_value_type, out_value_addr,
4086 munmap_list_head, objfile_name_string>: Remove.
4087 <module>: New member.
4088 (do_module_cleanup): Update.
4089 (compile_object_run): Update.
4090
4091 2020-09-23 Tom Tromey <tom@tromey.com>
4092
4093 * compile/compile.c (eval_compile_command): Update.
4094 * compile/compile-object-run.h (compile_object_run): Take a
4095 compile_module_up.
4096 * compile/compile-object-run.c (compile_object_run): Take a
4097 compile_module_up.
4098 * compile/compile-object-load.h (struct compile_module): Add
4099 constructor, destructor.
4100 (compile_module_up): New typedef.
4101 (compile_object_load): Return compile_object_up.
4102 * compile/compile-object-load.c (compile_object_load): Return
4103 compile_module_up.
4104
4105 2020-09-23 Tom Tromey <tom@tromey.com>
4106
4107 * compile/compile-object-run.c (struct do_module_cleanup): Add
4108 constructor, destructor.
4109 <objfile_name_string>: Don't use struct hack.
4110 (do_module_cleanup): Use delete.
4111 (compile_object_run): Use new.
4112
4113 2020-09-23 Tom Tromey <tom@tromey.com>
4114
4115 * compile/compile-cplus-types.c
4116 (compile_cplus_convert_struct_or_union): Use std::vector.
4117 (compile_cplus_convert_func): Likewise.
4118 * compile/compile-c-types.c (convert_func): Use std::vector.
4119
4120 2020-09-21 Tom Tromey <tromey@adacore.com>
4121
4122 * sparc-tdep.c (sparc32_skip_prologue): Use
4123 skip_prologue_using_sal.
4124
4125 2020-09-19 Tom Tromey <tom@tromey.com>
4126
4127 * symfile.c (add_section_size_callback): Remove.
4128 (load_one_section): Rename from load_section_callback. Change
4129 parameters.
4130 (generic_load): Use foreach.
4131
4132 2020-09-19 Tom Tromey <tom@tromey.com>
4133
4134 * exec.c (add_to_section_table): Remove.
4135 (build_section_table): Use foreach.
4136
4137 2020-09-19 Tom Tromey <tom@tromey.com>
4138
4139 * elfread.c (elf_locate_sections): Change parameters.
4140 (elf_symfile_read): Use foreach.
4141
4142 2020-09-19 Tom Tromey <tom@tromey.com>
4143
4144 * cli/cli-dump.c (struct callback_data): Remove.
4145 (restore_one_section): Rename from restore_section_callback.
4146 Change parameters.
4147 (restore_binary_file): Change parameters.
4148 (restore_command): Use foreach.
4149
4150 2020-09-19 Tom Tromey <tom@tromey.com>
4151
4152 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4153 (gcore_copy_callback): Likewise.
4154 (gcore_memory_sections): Use foreach.
4155
4156 2020-09-19 Tom Tromey <tom@tromey.com>
4157
4158 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4159 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4160 parameters.
4161 (generic_elf_osabi_sniffer): Use foreach.
4162 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4163 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4164
4165 2020-09-19 Tom Tromey <tom@tromey.com>
4166
4167 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4168 (dwarf2_get_dwz_file): Use foreach.
4169 (dwarf2_locate_dwo_sections): Change parameters.
4170 (open_and_init_dwo_file): Use foreach.
4171 (dwarf2_locate_common_dwp_sections): Change parameters.
4172 (open_and_init_dwp_file): Use foreach.
4173
4174 2020-09-19 Tom Tromey <tom@tromey.com>
4175
4176 * symfile.h: (find_lowest_section): Don't declare.
4177 * symfile.c (find_lowest_section): Now static. Change
4178 parameters.
4179 (struct place_section_arg): Remove.
4180 (place_section): Change parameters.
4181 (addr_info_make_relative): Use foreach.
4182 (symfile_dummy_outputs): Remove.
4183 (default_symfile_relocate): Use foreach.
4184
4185 2020-09-19 Tom Tromey <tom@tromey.com>
4186
4187 * objfiles.c (add_to_objfile_sections): Rename from
4188 add_to_objfile_sections_full.
4189 (add_to_objfile_sections): Remove.
4190 (build_objfile_section_table): Use foreach.
4191
4192 2020-09-19 Tom Tromey <tom@tromey.com>
4193
4194 * stap-probe.c (get_stap_base_address_1): Remove.
4195 (get_stap_base_address): Use foreach.
4196
4197 2020-09-19 Tom Tromey <tom@tromey.com>
4198
4199 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4200 parameters.
4201 (gdb_bfd_close_or_warn): Use foreach.
4202
4203 2020-09-19 Tom Tromey <tom@tromey.com>
4204
4205 * corelow.c (add_to_thread_list): Change parameters.
4206 (core_target_open): Use foreach.
4207
4208 2020-09-19 Tom Tromey <tom@tromey.com>
4209
4210 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4211 existing function.
4212
4213 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4214
4215 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4216 for arrays.
4217
4218 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4219
4220 * eval.c: Remove 'f-lang.h' include.
4221 (value_f90_subarray): Moved to f-lang.c.
4222 (eval_call): Renamed to...
4223 (evaluate_subexp_do_call): ...this, is no longer static, header
4224 comment moved into header file.
4225 (evaluate_funcall): Update call to eval_call.
4226 (skip_undetermined_arglist): Moved to f-lang.c.
4227 (fortran_value_subarray): Likewise.
4228 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4229 moved to evaluate_subexp_f.
4230 (calc_f77_array_dims): Moved to f-lang.c
4231 * expprint.c (print_subexp_funcall): New function.
4232 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4233 moved to print_subexp_f, OP_FUNCALL uses new function.
4234 (dump_subexp_body_funcall): New function.
4235 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4236 moved to dump_subexp_f, OP_FUNCALL uses new function.
4237 * expression.h (evaluate_subexp_do_call): Declare.
4238 * f-lang.c (value_f90_subarray): Moved from eval.c.
4239 (skip_undetermined_arglist): Likewise.
4240 (calc_f77_array_dims): Likewise.
4241 (fortran_value_subarray): Likewise.
4242 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4243 (operator_length_f): Likewise.
4244 (print_subexp_f): Likewise.
4245 (dump_subexp_body_f): Likewise.
4246 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4247 declaration of this operation to here.
4248 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4249 support moved to operator_length_f.
4250 * parser-defs.h (dump_subexp_body_funcall): Declare.
4251 (print_subexp_funcall): Declare.
4252 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4253 fortran-operator.def.
4254
4255 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * eval.c (fortran_value_subarray): New function, content is taken
4258 from...
4259 (evaluate_subexp_standard): ...here, in two places. Now arrays
4260 and strings both call the new function.
4261 (calc_f77_array_dims): Add header comment, handle strings.
4262
4263 2020-09-18 Victor Collod <vcollod@nvidia.com>
4264
4265 PR gdb/26635
4266 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4267 (i386_analyze_prologue): Call i386_skip_endbr.
4268
4269 2020-09-18 Tom Tromey <tromey@adacore.com>
4270
4271 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4272 (windows_nat_target::wait): Update.
4273 * target/wait.h (enum target_wait_flag): New. Use
4274 DEF_ENUM_FLAGS_TYPE.
4275 * target/target.h (target_wait): Change type of options.
4276 * target.h (target_options_to_string, default_target_wait):
4277 Update.
4278 (struct target_ops) <wait>: Change type of options.
4279 * target.c (target_wait, default_target_wait, do_option): Change
4280 type of "options".
4281 (target_options_to_string): Likewise.
4282 * target-delegates.c: Rebuild.
4283 * target-debug.h (target_debug_print_target_wait_flags): Rename
4284 from target_debug_print_options.
4285 * sol-thread.c (class sol_thread_target) <wait>: Update.
4286 (sol_thread_target::wait): Update.
4287 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4288 (rs6000_nat_target::wait): Update.
4289 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4290 Update.
4291 (remote_target::wait_ns, remote_target::wait_as): Change type of
4292 "options".
4293 (remote_target::wait): Update.
4294 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4295 (gdbsim_target::wait): Update.
4296 * record-full.c (class record_full_base_target) <wait>: Update.
4297 (record_full_wait_1): Change type of "options".
4298 (record_full_base_target::wait): Update.
4299 * record-btrace.c (class record_btrace_target) <wait>: Update.
4300 (record_btrace_target::wait): Update.
4301 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4302 Update.
4303 (ravenscar_thread_target::wait): Update.
4304 * procfs.c (class procfs_target) <wait>: Update.
4305 (procfs_target::wait): Update.
4306 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4307 * obsd-nat.c (obsd_nat_target::wait): Update.
4308 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4309 (nto_procfs_target::wait): Update.
4310 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4311 * nbsd-nat.c (nbsd_wait): Change type of "options".
4312 (nbsd_nat_target::wait): Update.
4313 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4314 (thread_db_target::wait): Update.
4315 * linux-nat.h (class linux_nat_target) <wait>: Update.
4316 * linux-nat.c (linux_nat_target::wait): Update.
4317 (linux_nat_wait_1): Update.
4318 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4319 "options".
4320 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4321 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4322 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4323 (go32_nat_target::wait): Update.
4324 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4325 * gnu-nat.c (gnu_nat_target::wait): Update.
4326 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4327 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4328 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4329 * darwin-nat.c (darwin_nat_target::wait): Update.
4330 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4331 (bsd_uthread_target::wait): Update.
4332 * aix-thread.c (class aix_thread_target) <wait>: Update.
4333 (aix_thread_target::wait): Update.
4334
4335 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4336
4337 * compile/compile-object-run.c (create_copied_type_recursive): New
4338 function.
4339 (compile_object_run): Use new function.
4340
4341 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4342
4343 * NEWS: Mention x86_64 Cygwin core file support.
4344
4345 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4346
4347 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4348 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4349
4350 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4351
4352 * windows-tdep.h: Add prototypes.
4353 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4354 (i386_windows_core_pid_to_str): Move and rename ...
4355 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4356 (windows_core_pid_to_str): ... and here.
4357 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4358
4359 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4360 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4361 (amd64_windows_init_abi_common): ... and register.
4362
4363 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4364
4365 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4366 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4367
4368 2020-09-18 Pedro Alves <pedro@palves.net>
4369
4370 PR gdb/26631
4371 * thread.c (thread_find_command): Switch inferior before calling
4372 target methods.
4373
4374 2020-09-17 Tom Tromey <tromey@adacore.com>
4375
4376 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4377 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4378 (tdesc_arch_data_up): New typedef.
4379 (tdesc_use_registers, tdesc_data_alloc): Update.
4380 (tdesc_data_cleanup): Don't declare.
4381 * target-descriptions.c (tdesc_data_alloc): Return a
4382 tdesc_arch_data_up.
4383 (tdesc_arch_data_deleter::operator()): Rename from
4384 tdesc_data_cleanup. Change argument type.
4385 (tdesc_use_registers): Change early_data to an rvalue reference.
4386 (tdesc_use_registers): Don't use delete.
4387 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4388 * s390-tdep.c (s390_gdbarch_init): Update.
4389 * rx-tdep.c (rx_gdbarch_init): Update.
4390 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4391 * riscv-tdep.c (riscv_gdbarch_init): Update.
4392 * or1k-tdep.c (or1k_gdbarch_init): Update.
4393 * nios2-tdep.c (nios2_gdbarch_init): Update.
4394 * nds32-tdep.c (nds32_gdbarch_init): Update.
4395 * mips-tdep.c (mips_gdbarch_init): Update.
4396 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4397 * m68k-tdep.c (m68k_gdbarch_init): Update.
4398 * i386-tdep.c (i386_gdbarch_init): Update.
4399 * arm-tdep.c (arm_gdbarch_init): Update.
4400 * arc-tdep.c (arc_tdesc_init): Update.
4401 (arc_gdbarch_init): Update.
4402 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4403
4404 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4405
4406 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4407 for WOW64 processes.
4408
4409 2020-09-17 Tom Tromey <tom@tromey.com>
4410
4411 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4412
4413 2020-09-17 Tom Tromey <tom@tromey.com>
4414
4415 * value.c (preserve_values): Update.
4416 * python/py-type.c (save_objfile_types): Update.
4417 * guile/scm-type.c (save_objfile_types): Update.
4418 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4419 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4420 * compile/compile-object-run.c (compile_object_run): Update.
4421
4422 2020-09-17 Tom Tromey <tom@tromey.com>
4423
4424 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4425 Remove.
4426 <m_table>: Now htab_up.
4427 * typeprint.c (typedef_hash_table::recursively_update)
4428 (typedef_hash_table::add_template_parameters)
4429 (typedef_hash_table::typedef_hash_table): Update.
4430 (typedef_hash_table::~typedef_hash_table): Remove.
4431 (typedef_hash_table::typedef_hash_table)
4432 (typedef_hash_table::find_global_typedef)
4433 (typedef_hash_table::find_typedef): Update.
4434
4435 2020-09-17 Tom Tromey <tom@tromey.com>
4436
4437 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4438
4439 2020-09-17 Tom Tromey <tom@tromey.com>
4440
4441 * linespec.c (class decode_compound_collector)
4442 <~decode_compound_collector>: Remove.
4443 <m_unique_syms>: Now htab_up.
4444 (decode_compound_collector::operator ()): Update.
4445 (class symtab_collector) <~symtab_collector>: Remove.
4446 <m_symtab_table>: Now htab_up.
4447 (symtab_collector::operator ()): Update.
4448
4449 2020-09-17 Tom Tromey <tom@tromey.com>
4450
4451 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4452 (filename_seen_cache::clear): Update.
4453 (~filename_seen_cache): Remove.
4454 (filename_seen_cache::seen): Update.
4455 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4456 htab_up.
4457 <~filename_seen_cache>: Remove.
4458 <traverse>: Update.
4459
4460 2020-09-17 Tom Tromey <tom@tromey.com>
4461
4462 * completer.c (completion_tracker::discard_completions)
4463 (completion_tracker::~completion_tracker)
4464 (completion_tracker::maybe_add_completion)
4465 (completion_tracker::remove_completion)
4466 (completion_tracker::recompute_lowest_common_denominator)
4467 (completion_tracker::build_completion_result): Update.
4468 * completer.h (class completion_tracker) <have_completions>:
4469 Update.
4470 <m_entries_hash>: Now htab_up.
4471
4472 2020-09-17 Tom Tromey <tom@tromey.com>
4473
4474 * breakpoint.c (ambiguous_names_p): Use htab_up.
4475
4476 2020-09-17 Tom Tromey <tom@tromey.com>
4477
4478 * auto-load.c (struct auto_load_pspace_info)
4479 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4480 <loaded_script_files, loaded_script_texts>: Change type to
4481 htab_up.
4482 (~auto_load_pspace_info) Remove.
4483 (init_loaded_scripts_info, maybe_add_script_file)
4484 (maybe_add_script_text, auto_load_info_scripts): Update.
4485
4486 2020-09-17 Tom Tromey <tromey@adacore.com>
4487
4488 * c-exp.y (name_obstack): Now static.
4489
4490 2020-09-17 Chungyi Chi <demonic@csie.io>
4491
4492 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4493
4494 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4497 (add_solib_catchpoint): Likewise.
4498 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4499 to bool.
4500 (add_solib_catchpoint): Change int parameter/variable to bool.
4501 (catch_load_or_unload): Likewise.
4502 (init_catchpoint): Likewise.
4503 (create_fork_vfork_event_catchpoint): Likewise.
4504 (catch_fork_command_1): Likewise.
4505 (catch_exec_command_1): Likewise.
4506
4507 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4510 Change instance_flags to m_instance_flags.
4511
4512 2020-09-16 Tom Tromey <tromey@adacore.com>
4513
4514 PR gdb/26598:
4515 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4516
4517 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4518
4519 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4520 PL_FLAG_EXEC.
4521 (fbsd_nat_target::insert_exec_catchpoint)
4522 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4523 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4524 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4525
4526 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4527
4528 * configure.ac: Remove check for kinfo_getvmmap().
4529 * configure, config.in: Regenerate.
4530 * fbsd-nat.c (fbsd_read_mapping): Remove
4531 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4532 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4533 kinfo_get_vmmap() are always present.
4534
4535 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4536
4537 * fbsd-nat.c: Always include support for
4538 TARGET_OBJECT_SIGNAL_INFO.
4539
4540 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4541
4542 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4543 sysctl and remove procfs fallback.
4544
4545 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4546
4547 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4548 * fbsd-nat.h: Likewise.
4549
4550 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4551
4552 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4553 argument.
4554
4555 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * ada-lang.c (ada_language_data): Delete.
4558 (ada_language): Remove references to ada_language_data.
4559 * c-lang.c (c_language_data): Delete.
4560 (c_language): Remove references to c_language_data.
4561 (cplus_language_data): Delete.
4562 (cplus_language): Remove references to cplus_language_data.
4563 (asm_language_data): Delete.
4564 (asm_language): Remove references to asm_language_data.
4565 (minimal_language_data): Delete.
4566 (minimal_language): Remove references to minimal_language_data.
4567 * d-lang.c (d_language_data): Delete.
4568 (d_language): Remove references to d_language_data.
4569 * f-lang.c (f_language_data): Delete.
4570 (f_language): Remove references to f_language_data.
4571 * go-lang.c (go_language_data): Delete.
4572 (go_language): Remove references to go_language_data.
4573 * language.c (unknown_language_data): Delete.
4574 (unknown_language): Remove references to unknown_language_data.
4575 (auto_language_data): Delete.
4576 (auto_language): Remove references to auto_language_data.
4577 * language.h (language_data): Delete struct.
4578 (language_defn): No longer inherit from language_data.
4579 * m2-lang.c (m2_language_data): Delete.
4580 (m2_language): Remove references to m2_language_data.
4581 * objc-lang.c (objc_language_data): Delete.
4582 (objc_language): Remove references to objc_language_data.
4583 * opencl-lang.c (opencl_language_data): Delete.
4584 (opencl_language): Remove references to opencl_language_data.
4585 * p-lang.c (pascal_language_data): Delete.
4586 (pascal_language): Remove references to pascal_language_data.
4587 * rust-lang.c (rust_language_data): Delete.
4588 (rust_language): Remove references to rust_language_data.
4589
4590 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4591
4592 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4593 initializer.
4594 (ada_language::opcode_print_table): New member function.
4595 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4596 (c_language::opcode_print_table): New member function.
4597 (cplus_language_data): Remove la_op_print_tab initializer.
4598 (cplus_language::opcode_print_table): New member function.
4599 (asm_language_data): Remove la_op_print_tab initializer.
4600 (asm_language::opcode_print_table): New member function.
4601 (minimal_language_data): Remove la_op_print_tab initializer.
4602 (minimal_language::opcode_print_table): New member function.
4603 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4604 (d_language::opcode_print_table): New member function.
4605 * expprint.c (print_subexp_standard): Update call to
4606 opcode_print_table.
4607 (op_string): Likewise.
4608 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4609 (f_language::opcode_print_table): New member function.
4610 * go-lang.c (go_language_data): Remove la_op_print_tab
4611 initializer.
4612 (go_language::opcode_print_table): New member function.
4613 * language.c (unknown_language_data): Remove la_op_print_tab
4614 initializer.
4615 (unknown_language::opcode_print_table): New member function.
4616 (auto_language_data): Remove la_op_print_tab initializer.
4617 (auto_language::opcode_print_table): New member function.
4618 * language.h (language_data): Remove la_op_print_tab field.
4619 (language_defn::opcode_print_table): Declare new member function.
4620 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4621 initializer.
4622 (m2_language::opcode_print_table): New member function.
4623 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4624 initializer.
4625 (objc_language::opcode_print_table): New member function.
4626 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4627 initializer.
4628 (opencl_language::opcode_print_table): New member function.
4629 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4630 initializer.
4631 (pascal_language::opcode_print_table): New member function.
4632 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4633 initializer.
4634 (rust_language::opcode_print_table): New member function.
4635
4636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4639 (ada_language::expression_ops): New member function.
4640 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4641 (c_language::expression_ops): New member function.
4642 (cplus_language_data): Remove la_exp_desc initializer.
4643 (cplus_language::expression_ops): New member function.
4644 (asm_language_data): Remove la_exp_desc initializer.
4645 (asm_language::expression_ops): New member function.
4646 (minimal_language_data): Remove la_exp_desc initializer.
4647 (minimal_language::expression_ops): New member function.
4648 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4649 (d_language::expression_ops): New member function.
4650 * eval.c (evaluate_subexp): Update call to expression_ops.
4651 * expprint.c (print_subexp): Likewise.
4652 (op_name): Likewise.
4653 (dump_subexp_body): Likewise.
4654 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4655 (f_language::expression_ops): New member function.
4656 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4657 (go_language::expression_ops): New member function.
4658 * language.c (language_defn::expression_ops): New function.
4659 (unknown_language_data): Remove la_exp_desc initializer.
4660 (auto_language_data): Likewise.
4661 * language.h (language_data): Remove la_exp_desc field.
4662 (language_defn::expression_ops): Declare new member function.
4663 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4664 (m2_language::expression_ops): New member function.
4665 * objc-lang.c (objc_language_data): Remove la_exp_desc
4666 initializer.
4667 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4668 initializer.
4669 (opencl_language::expression_ops): New member function.
4670 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4671 * parse.c (operator_length): Update call to expression_ops.
4672 (exp_iterate): Likewise.
4673 * rust-lang.c (rust_language_data): Remove la_exp_desc
4674 initializer.
4675 (ruse_language::expression_ops): New member function.
4676
4677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4680 initializer.
4681 (ada_language::varobj_ops): New member function.
4682 * c-lang.c (c_language_data): Remove la_varobj_ops
4683 initializer.
4684 (cplus_language_data): Likewise.
4685 (cplus_language::varobj_ops): New member function.
4686 (asm_language_data): Remove la_varobj_ops initializer.
4687 (minimal_language_data): Likewise.
4688 * d-lang.c (d_language_data): Likewise.
4689 * f-lang.c (f_language_data): Likewise.
4690 * go-lang.c (go_language_data): Likewise.
4691 * language.c (language_defn::varobj_ops): New function.
4692 (unknown_language_data): Remove la_varobj_ops
4693 initializer.
4694 (auto_language_data): Likewise.
4695 * language.h (language_data): Remove la_varobj_ops field.
4696 (language_defn::varobj_ops): Declare new member function.
4697 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4698 * objc-lang.c (objc_language_data): Likewise.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 * rust-lang.c (rust_language_data): Likewise.
4702 * varobj.c (varobj_create): Update call to varobj_ops.
4703 * varobj.h (default_varobj_ops): Delete define.
4704
4705 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4706
4707 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4708 initializer.
4709 * c-lang.c (c_language_data): Likewise.
4710 (c_language::macro_expansion): New member function.
4711 (cplus_language_data): Likewise.
4712 (cplus_language::macro_expansion): New member function.
4713 (asm_language_data): Likewise.
4714 (asm_language::macro_expansion): New member function.
4715 (minimal_language_data): Likewise.
4716 (minimal_language::macro_expansion): New member function.
4717 * d-lang.c (d_language_data): Remove la_macro_expansion
4718 initializer.
4719 * f-lang.c (f_language_data): Likewise.
4720 * go-lang.c (go_language_data): Likewise.
4721 * language.c (unknown_language_data): Likewise.
4722 (auto_language_data): Likewise.
4723 * language.h (language_data): Remove la_macro_expansion field.
4724 (language_defn::macro_expansion): New member function.
4725 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4726 initializer.
4727 * objc-lang.c (objc_language_data): Likewise.
4728 (objc_language::macro_expansion): New member function.
4729 * opencl-lang.c (opencl_language_data): Likewise.
4730 (opencl_language::macro_expansion): New member function.
4731 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4732 initializer.
4733 * rust-lang.c (rust_language_data): Likewise.
4734 * symtab.c (default_collect_symbol_completion_matches_break_on):
4735 Update call to macro_expansion.
4736
4737 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 * ada-lang.c (ada_language_data): Remove la_array_ordering
4740 initializer.
4741 * c-lang.c (c_language_data): Likewise.
4742 (cplus_language_data): Likewise.
4743 (asm_language_data): Likewise.
4744 (minimal_language_data): Likewise.
4745 * d-lang.c (d_language_data): Likewise.
4746 * dwarf2/read.c (read_array_order): Update for call to
4747 array_ordering.
4748 * f-lang.c (f_language_data): Remove la_array_ordering
4749 initializer.
4750 (f_language::array_ordering): New member function.
4751 * go-lang.c (go_language_data): Remove la_array_ordering
4752 initializer.
4753 * language.c (unknown_language_data): Likewise.
4754 (auto_language_data): Likewise.
4755 * language.h (language_data): Delete la_array_ordering field.
4756 (language_defn::array_ordering): New member function.
4757 * m2-lang.c (m2_language_data): Remove la_array_ordering
4758 initializer.
4759 * objc-lang.c (objc_language_data): Likewise.
4760 * opencl-lang.c (opencl_language_data): Likewise.
4761 * p-lang.c (pascal_language_data): Likewise.
4762 * rust-lang.c (rust_language_data): Likewise.
4763
4764 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4767 initializer.
4768 * c-lang.c (c_language_data): Likewise.
4769 (cplus_language_data): Likewise.
4770 (asm_language_data): Likewise.
4771 (minimal_language_data): Likewise.
4772 * d-lang.c (d_language_data): Likewise.
4773 * f-lang.c (f_language_data): Likewise.
4774 (f_language::case_sensitivity): New member function.
4775 * go-lang.c (go_language_data): Remove la_case_sensitivity
4776 initializer.
4777 * language.c (enum case_mode): Moved here from language.h.
4778 (case_mode): Make static.
4779 (show_case_command): Update for case_sensitivity being a method.
4780 (set_case_command): Likewise.
4781 (set_range_case): Likewise.
4782 (unknown_language_data): Remove la_case_sensitivity initializer.
4783 (auto_language_data): Likewise.
4784 * language.h (case_mode): Delete, move enum declaration to
4785 language.c.
4786 (language_data): Delete la_case_sensitivity field.
4787 (language_defn::case_sensitivity): New member function.
4788 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
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
4795 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4796
4797 * ada-lang.c (ada_language_data): Remove la_range_check
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::range_checking_on_by_default): New member function.
4806 * go-lang.c (go_language_data): Remove la_range_check initializer.
4807 * language.c (enum range_mode): Moved here from language.h.
4808 (range_mode): Made static.
4809 (show_range_command): Update to use
4810 range_checking_on_by_default.
4811 (set_range_command): Likewise.
4812 (set_range_case): Likewise.
4813 (unknown_language_data): Remove la_range_check initializer.
4814 (auto_language_data): Likewise.
4815 * language.h (range_mode): Delete. Enum definition moved to
4816 language.c.
4817 (language_data): Remove la_range_check field.
4818 (language_defn::range_checking_on_by_default): New member
4819 function.
4820 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4821 (m2_language::range_checking_on_by_default): New member function.
4822 * objc-lang.c (objc_language_data): Remove la_range_check
4823 initializer.
4824 * opencl-lang.c (opencl_language_data): Likewise.
4825 * p-lang.c (pascal_language_data): Likewise.
4826 (pascal_language::range_checking_on_by_default): New member
4827 function.
4828 * rust-lang.c (rust_language_data): Remove la_range_check
4829 initializer.
4830 (rust_language::range_checking_on_by_default): New member
4831 function.
4832
4833 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * dwarf2/read.c (dwarf2_physname): Remove special case for
4836 language_go.
4837 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4838 member function.
4839
4840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * ada-lang.c (ada_language_data): Remove
4843 la_store_sym_names_in_linkage_form_p initializer.
4844 (ada_language::store_sym_names_in_linkage_form_p): New member
4845 function.
4846 * c-lang.c (c_language_data): Remove
4847 la_store_sym_names_in_linkage_form_p initializer.
4848 (c_language::store_sym_names_in_linkage_form_p): New member
4849 function.
4850 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4851 initializer.
4852 (asm_language_data): Likewise.
4853 (asm_language::store_sym_names_in_linkage_form_p): New member
4854 function.
4855 (minimal_language_data): Remove
4856 la_store_sym_names_in_linkage_form_p initializer.
4857 (minimal_language::store_sym_names_in_linkage_form_p): New member
4858 function.
4859 * d-lang.c (d_language_data): Remove
4860 la_store_sym_names_in_linkage_form_p initializer.
4861 * dwarf2/read.c (dwarf2_physname): Update call to
4862 store_sym_names_in_linkage_form_p.
4863 * f-lang.c (f_language_data): Remove
4864 la_store_sym_names_in_linkage_form_p initializer.
4865 * go-lang.c (go_language_data): Remove
4866 la_store_sym_names_in_linkage_form_p initializer.
4867 * language.c (unknown_language_data): Remove
4868 la_store_sym_names_in_linkage_form_p initializer.
4869 (unknown_language::store_sym_names_in_linkage_form_p): New member
4870 function.
4871 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4872 initializer.
4873 (auto_language::store_sym_names_in_linkage_form_p): New member
4874 function.
4875 * language.h (language_data): Remove
4876 la_store_sym_names_in_linkage_form_p member variable.
4877 (language_defn::store_sym_names_in_linkage_form_p): New member
4878 function.
4879 * m2-lang.c (m2_language_data): Remove
4880 la_store_sym_names_in_linkage_form_p initializer.
4881 * objc-lang.c (objc_language_data): Likewise.
4882 * opencl-lang.c (opencl_language_data): Likewise.
4883 * p-lang.c (pascal_language_data): Likewise.
4884 * rust-lang.c (rust_language_data): Likewise.
4885
4886 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4887
4888 * ada-lang.c (ada_language_data): Remove string_lower_bound
4889 initializer.
4890 * c-lang.c (c_language_data): Likewise.
4891 (cplus_language_data): Likewise.
4892 (asm_language_data): Likewise.
4893 (minimal_language_data): Likewise.
4894 * d-lang.c (d_language_data): Likewise.
4895 * f-lang.c (f_language_data): Likewise.
4896 * go-lang.c (go_language_data): Likewise.
4897 * language.c (unknown_language_data): Likewise.
4898 (auto_language_data): Likewise.
4899 * language.h (language_data): Remove string_lower_bound field.
4900 (language_defn::string_lower_bound): New member function.
4901 * m2-lang.c (m2_language_data): Remove string_lower_bound
4902 initializer.
4903 (m2_language::string_lower_bound): New member function.
4904 * objc-lang.c (objc_language_data): Remove string_lower_bound
4905 initializer.
4906 * opencl-lang.c (opencl_language_data): Likewise.
4907 * p-lang.c (pascal_language_data): Likewise.
4908 * rust-lang.c (rust_language_data): Likewise.
4909 * valops.c (value_cstring): Update call to string_lower_bound.
4910 (value_string): Likewise.
4911 * value.c (allocate_repeated_value): Likewise.
4912
4913 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * valops.c (value_repeat): Fix incorrect argument name in comment.
4916
4917 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * ada-lang.c (ada_language_data): Remove c_style_arrays
4920 initializer.
4921 (ada_language::c_style_arrays_p): New member fuction.
4922 * c-lang.c (c_language_data): Remove c_style_arrays
4923 initializer.
4924 (cplus_language_data): Likewise.
4925 (asm_language_data): Likewise.
4926 (minimal_language_data): Likewise.
4927 * d-lang.c (d_language_data): Likewise.
4928 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4929 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4930 (f_language::c_style_arrays_p): New member function.
4931 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4932 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4933 * language.c (unknown_language_data): Remove c_style_arrays
4934 initializer.
4935 (auto_language_data): Likewise.
4936 * language.h (language_data): Remove c_style_arrays field.
4937 (language_defn::c_style_arrays_p): New member function.
4938 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4939 (m2_language::c_style_arrays_p): New member function.
4940 * objc-lang.c (objc_language_data): Remove c_style_arrays
4941 initializer.
4942 * opencl-lang.c (opencl_language_data): Likewise.
4943 * p-lang.c (pascal_language_data): Likewise.
4944 * rust-lang.c (rust_language_data): Likewise.
4945 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4946 and update local variable to a bool.
4947 * valops.c (value_cast): Update call to c_style_arrays_p.
4948 (value_array): Likewise.
4949 * value.c (coerce_array): Likewise.
4950
4951 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * ada-lang.c (ada_language_data): Remove la_language initializer.
4954 * c-lang.c (c_language_data): Likewise.
4955 (cplus_language_data): Likewise.
4956 (asm_language_data): Likewise.
4957 (minimal_language_data): Likewise.
4958 * d-lang.c (d_language_data): Likewise.
4959 * f-lang.c (f_language_data): Likewise.
4960 * go-lang.c (go_language_data): Likewise.
4961 * language.c (unknown_language_data): Likewise.
4962 (auto_language_data): Likewise.
4963 * language.h (language_data): Remove la_language field.
4964 (language_defn::language_defn): Initialise la_language field.
4965 (language_defn::la_language): New member variable.
4966 * m2-lang.c (m2_language_data): Remove la_language field.
4967 * objc-lang.c (objc_language_data): Likewise.
4968 * opencl-lang.c (opencl_language_data): Likewise.
4969 * p-lang.c (pascal_language_data): Likewise.
4970 * rust-lang.c (rust_language_data): Likewise.
4971
4972 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * ada-lang.c (ada_extensions): Delete, moved into
4975 ada_language::filename_extensions.
4976 (ada_language_data): Remove la_filename_extensions initializer.
4977 (ada_language::filename_extensions): New member function.
4978 * c-lang.c (c_extensions): Delete, moved into
4979 c_language::filename_extensions.
4980 (c_language_data): Remove la_filename_extensions initializer.
4981 (c_language::filename_extensions): New member function.
4982 (cplus_extensions): Delete, moved into
4983 cplus_language::filename_extensions.
4984 (cplus_language_data): Remove la_filename_extensions initializer.
4985 (cplus_language::filename_extensions): New member function.
4986 (asm_extensions): Delete, moved into
4987 asm_language::filename_extensions.
4988 (asm_language_data): Remove la_filename_extensions initializer.
4989 (asm_language::filename_extensions): New member function.
4990 (minimal_language_data): Remove la_filename_extensions
4991 initializer.
4992 * d-lang.c (d_extensions): Delete, moved into
4993 d_language::filename_extensions.
4994 (d_language_data): Remove la_filename_extensions initializer.
4995 (d_language::filename_extensions): New member function.
4996 * f-lang.c (f_extensions): Delete, moved into
4997 f_language::filename_extensions.
4998 (f_language_data): Remove la_filename_extensions initializer.
4999 (f_language::filename_extensions): New member function.
5000 * go-lang.c (go_language_data): Remove la_filename_extensions
5001 initializer.
5002 * language.c (add_set_language_command): Update now that
5003 filename_extensions returns a vector.
5004 (unknown_language_data): Remove la_filename_extensions
5005 initializer.
5006 (auto_language_data): Likewise.
5007 * language.h (language_data): Remove la_filename_extensions field.
5008 (language_defn::filename_extensions): New member function.
5009 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5010 initializer.
5011 * objc-lang.c (objc_extensions): Delete, moved into
5012 objc_language::filename_extensions.
5013 (objc_language_data): Remove la_filename_extensions initializer.
5014 (objc_language::filename_extensions): New member function.
5015 * opencl-lang.c (opencl_language_data): Remove
5016 la_filename_extensions initializer.
5017 * p-lang.c (pascal_extensions): Delete, moved into
5018 pascal_language::filename_extensions.
5019 (pascal_language_data): Remove la_filename_extensions initializer.
5020 (pascal_language::filename_extensions): New member function.
5021 * rust-lang.c (rust_extensions): Delete, moved into
5022 rust_language::filename_extensions.
5023 (rust_language_data): Remove la_filename_extensions initializer.
5024 (rust_language::filename_extensions): New member function.
5025 * symfile.c (add_filename_language): Add new assert.
5026
5027 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * ada-lang.c (ada_language_data): Remove la_name and
5030 la_natural_name initializers.
5031 (ada_language::name): New member function.
5032 (ada_language::natural_name): New member function.
5033 * c-lang.c (c_language_data): Remove la_name and
5034 la_natural_name initializers.
5035 (c_language::name): New member function.
5036 (c_language::natural_name): New member function.
5037 (cplus_language_data): Remove la_name and
5038 la_natural_name initializers.
5039 (cplus_language::name): New member function.
5040 (cplus_language::natural_name): New member function.
5041 (asm_language_data): Remove la_name and
5042 la_natural_name initializers.
5043 (asm_language::name): New member function.
5044 (asm_language::natural_name): New member function.
5045 (minimal_language_data): Remove la_name and
5046 la_natural_name initializers.
5047 (minimal_language::name): New member function.
5048 (minimal_language::natural_name): New member function.
5049 * compile/compile.c (compile_to_object): Update call to
5050 lanugage_defn::name.
5051 * d-lang.c (d_language_data): Remove la_name and
5052 la_natural_name initializers.
5053 (d_language::name): New member function.
5054 (d_language::natural_name): New member function.
5055 * expprint.c (print_subexp_standard): Update call to
5056 language_defn::name.
5057 (dump_raw_expression): Likewise
5058 (dump_prefix_expression): Likewise.
5059 * f-lang.c (f_language_data): Remove la_name and
5060 la_natural_name initializers.
5061 (f_language::name): New member function.
5062 (f_language::natural_name): New member function.
5063 * go-lang.c (go_language_data): Remove la_name and
5064 la_natural_name initializers.
5065 (go_language::name): New member function.
5066 (go_language::natural_name): New member function.
5067 * language.c (show_language_command): Update call to
5068 language_defn::name.
5069 (set_language_command): Likewise.
5070 (language_enum): Likewise.
5071 (language_str): Likewise.
5072 (add_set_language_command): Likewise, use
5073 language_defn::natural_name in the doc string.
5074 (unknown_language_data): Remove la_name and
5075 la_natural_name initializers.
5076 (unknown_language::name): New member function.
5077 (unknown_language::natural_name): New member function.
5078 (auto_language_data): Remove la_name and
5079 la_natural_name initializers.
5080 (auto_language::name): New member function.
5081 (auto_language::natural_name): New member function.
5082 (language_lookup_primitive_type_as_symbol): Update call to
5083 language_defn::name.
5084 * language.h (language_data): Remove la_name and la_natural_name
5085 member variables.
5086 (language_defn::name): New member function.
5087 (language_defn::natural_name): New member function.
5088 * m2-lang.c (m2_language_data): Remove la_name and
5089 la_natural_name initializers.
5090 (m2_language::name): New member function.
5091 (m2_language::natural_name): New member function.
5092 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5093 language_defn::natural_name.
5094 * objc-lang.c (objc_language_data): Remove la_name and
5095 la_natural_name initializers.
5096 (objc_language::name): New member function.
5097 (objc_language::natural_name): New member function.
5098 * opencl-lang.c (opencl_language_data): Remove la_name and
5099 la_natural_name initializers.
5100 (opencl_language::name): New member function.
5101 (opencl_language::natural_name): New member function.
5102 * p-lang.c (pascal_language_data): Remove la_name and
5103 la_natural_name initializers.
5104 (pascal_language::name): New member function.
5105 (pascal_language::natural_name): New member function.
5106 * rust-lang.c (rust_language_data): Remove la_name and
5107 la_natural_name initializers.
5108 (rust_language::name): New member function.
5109 (rust_language::natural_name): New member function.
5110 * symtab.c (lookup_language_this): Update call to
5111 language_defn::name.
5112
5113 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_data): Remove la_name_of_this
5116 initializer.
5117 * ax-gdb.c (gen_expr): Update call to name_of_this.
5118 * c-exp.y (classify_name): Likewise.
5119 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5120 (cplus_language_data): Likewise.
5121 (cplus_language::name_of_this): New member function.
5122 (asm_language_data): Remove la_name_of_this initializer.
5123 (minimal_language_data): Likewise.
5124 * d-lang.c (d_language_data): Likewise.
5125 (d_language::name_of_this): New member function.
5126 * expprint.c (print_subexp_standard): Update call to name_of_this.
5127 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5128 * go-lang.c (go_language_data): Likewise.
5129 * language.c (unknown_language_data): Likewise.
5130 (unknown_language::name_of_this): New member function.
5131 (auto_language_data): Remove la_name_of_this initializer.
5132 (auto_language::name_of_this): New member function.
5133 * language.h (language_data): Delete la_name_of_this member
5134 variable.
5135 (language_defn::name_of_this): New member function.
5136 * m2-lang.c (m2_language_data): Remove la_name_of_this
5137 initializer.
5138 * objc-lang.c (objc_language_data): Likewise.
5139 (objc_language::name_of_this): New member function.
5140 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5141 initializer.
5142 * p-lang.c (pascal_language_data): Likewise.
5143 (pascal_language::name_of_this): New member function.
5144 * rust-lang.c (rust_language_data): Remove la_name_of_this
5145 initializer.
5146 * symtab.c (lookup_language_this): Update call to name_of_this.
5147 (lookup_symbol_aux): Likewise.
5148 * valops.c (value_of_this): Likewise.
5149
5150 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * ada-lang.c (ada_language_data): Remove
5153 la_struct_too_deep_ellipsis initializer.
5154 (ada_language::struct_too_deep_ellipsis): New member function.
5155 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5156 initializer.
5157 (cplus_language_data): Likewise.
5158 (asm_language_data): Likewise.
5159 (minimal_language_data): Likewise.
5160 * cp-valprint.c (cp_print_value): Update call to
5161 struct_too_deep_ellipsis.
5162 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5163 initializer.
5164 * f-lang.c (f_language_data): Likewise.
5165 (f_language::struct_too_deep_ellipsis): New member function.
5166 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5167 initializer.
5168 * language.c (unknown_language_data): Likewise.
5169 (auto_language_data): Likewise.
5170 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5171 member variable.
5172 (language_defn::struct_too_deep_ellipsis): New member function.
5173 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5174 initializer.Q
5175 * objc-lang.c (objc_language_data): Likewise.
5176 * opencl-lang.c (opencl_language_data): Likewise.
5177 * p-lang.c (pascal_language_data): Likewise.
5178 * rust-lang.c (rust_language_data): Likewise.
5179 * valprint.c (val_print_check_max_depth): Update call to
5180 struct_too_deep_ellipsis.
5181
5182 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5183
5184 * MAINTAINERS (Write After Approval): Add myself.
5185
5186 2020-09-15 Tom Tromey <tom@tromey.com>
5187
5188 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5189 Remove.
5190
5191 2020-09-15 Tom Tromey <tom@tromey.com>
5192
5193 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5194 and TYPE_CODE_METHODPTR cases.
5195 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5196 (c_value_print_inner): Update.
5197 * valprint.c (generic_value_print_memberptr): New function, from
5198 c_value_print_memberptr.
5199 (generic_value_print): Use it. Call cplus_print_method_ptr.
5200
5201 2020-09-15 Tom Tromey <tromey@adacore.com>
5202
5203 * python/python-internal.h (PyInt_FromLong): Remove define.
5204 * python/py-value.c (convert_value_from_python): Use
5205 gdb_py_object_from_longest.
5206 * python/py-type.c (typy_get_code): Use
5207 gdb_py_object_from_longest.
5208 * python/py-symtab.c (salpy_get_line): Use
5209 gdb_py_object_from_longest.
5210 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5211 gdb_py_object_from_longest.
5212 * python/py-record.c (recpy_gap_reason_code): Use
5213 gdb_py_object_from_longest.
5214 * python/py-record-btrace.c (recpy_bt_insn_size)
5215 (recpy_bt_func_level, btpy_list_count): Use
5216 gdb_py_object_from_longest.
5217 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5218 gdb_py_object_from_longest. Fix error handling.
5219 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5220 gdb_py_object_from_longest.
5221 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5222 gdb_py_object_from_longest.
5223 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5224 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5225 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5226
5227 2020-09-15 Tom Tromey <tromey@adacore.com>
5228
5229 * python/python.c (gdbpy_parameter_value): Use
5230 gdb_py_object_from_ulongest.
5231
5232 2020-09-15 Tom Tromey <tromey@adacore.com>
5233
5234 * python/py-infevents.c (create_register_changed_event_object):
5235 Use gdb_py_object_from_longest.
5236 * python/py-exitedevent.c (create_exited_event_object): Use
5237 gdb_py_object_from_longest.
5238
5239 2020-09-15 Tom Tromey <tromey@adacore.com>
5240
5241 * python/python.c (gdbpy_parameter_value): Use
5242 gdb_py_object_from_longest.
5243 * python/py-type.c (convert_field, typy_range): Use
5244 gdb_py_object_from_longest.
5245 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5246 gdb_py_object_from_longest.
5247 * python/py-lazy-string.c (stpy_get_length): Use
5248 gdb_py_object_from_longest.
5249 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5250 gdb_py_object_from_longest.
5251 * python/py-infevents.c (create_memory_changed_event_object): Use
5252 gdb_py_object_from_longest.
5253 * python/py-inferior.c (infpy_get_num): Use
5254 gdb_py_object_from_longest.
5255 (infpy_get_pid): Likewise.
5256
5257 2020-09-15 Tom Tromey <tromey@adacore.com>
5258
5259 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5260 defines.
5261 * python/py-value.c (valpy_long): Use
5262 gdb_py_object_from_ulongest.
5263 * python/py-symtab.c (salpy_get_pc): Use
5264 gdb_py_object_from_ulongest.
5265 (salpy_get_last): Likewise.
5266 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5267 gdb_py_object_from_ulongest.
5268 * python/py-lazy-string.c (stpy_get_address): Use
5269 gdb_py_object_from_ulongest.
5270 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5271 * python/py-arch.c (archpy_disassemble): Use
5272 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5273 error handling.
5274
5275 2020-09-15 Tom Tromey <tromey@adacore.com>
5276
5277 * python/python-internal.h (gdb_py_long_from_longest): Remove
5278 defines.
5279 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5280 * python/py-type.c (convert_field, typy_get_sizeof): Use
5281 gdb_py_object_from_longest.
5282 * python/py-record-btrace.c (btpy_list_index): Use
5283 gdb_py_object_from_longest.
5284
5285 2020-09-15 Tom Tromey <tromey@adacore.com>
5286
5287 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5288 * python/py-record.c (recpy_element_number): Use
5289 gdb_py_object_from_longest.
5290 (recpy_gap_number): Likewise.
5291
5292 2020-09-15 Tom Tromey <tromey@adacore.com>
5293
5294 * top.c (ui::ui): Update.
5295 (highest_ui_num): Remove.
5296 * top.h (struct ui) <num>: Remove.
5297
5298 2020-09-15 Tom Tromey <tromey@adacore.com>
5299
5300 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5301 * ui-style.c (ansi_regex_text): Now array.
5302 * rust-exp.y (number_regex_text): Now array.
5303 * linespec.c (linespec_quote_characters): Now array.
5304 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5305 Now arrays.
5306
5307 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5308
5309 * debuginfod-support.c (debuginfod_client_deleter): New.
5310 (debuginfod_client_up): New.
5311 (debuginfod_init): Return debuginfod_client_up.
5312 (debuginfod_source_query): Adjust.
5313 (debuginfod_debuginfo_query): Adjust.
5314
5315 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * debuginfod-support.c (debuginfod_source_query): Use
5318 make_unique_xstrdup.
5319
5320 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5323 with `type::instance_flags`.
5324
5325 2020-09-14 Michael Mullin <masmullin@gmail.com>
5326
5327 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5328 Remove baton parameter.
5329
5330 2020-09-14 Pedro Alves <pedro@palves.net>
5331
5332 * Makefile.in (SELFTESTS_SRCS): Add
5333 unittests/enum-flags-selftests.c.
5334 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5335 btrace_function_flags instead of enum btrace_function_flag.
5336 * compile/compile-c-types.c (convert_qualified): Use
5337 enum_flags::raw.
5338 * compile/compile-cplus-symbols.c (convert_one_symbol)
5339 (convert_symbol_bmsym):
5340 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5341 (compile_cplus_convert_struct_or_union_methods)
5342 (compile_cplus_instance::convert_qualified_base):
5343 * go-exp.y (parse_string_or_char): Add cast to int.
5344 * unittests/enum-flags-selftests.c: New file.
5345 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5346 type to btrace_thread_flags from btrace_thread_flag.
5347 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5348 local's type to btrace_thread_flags from btrace_thread_flag. Add
5349 cast in DEBUG call.
5350
5351 2020-09-14 Pedro Alves <pedro@palves.net>
5352
5353 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5354 * gdbtypes.c (address_space_name_to_int): Rename to ...
5355 (address_space_name_to_type_instance_flags): ... this.
5356 (address_space_int_to_name): Rename to ...
5357 (address_space_type_instance_flags_to_name): ... this.
5358 * gdbtypes.h (address_space_name_to_int): Rename to ...
5359 (address_space_name_to_type_instance_flags): ... this.
5360 (address_space_int_to_name): Rename to ...
5361 (address_space_type_instance_flags_to_name): ... this.
5362 * type-stack.c (type_stack::insert): Adjust to rename.
5363 * type-stack.h (type_stack::insert): Likewise.
5364
5365 2020-09-14 Pedro Alves <pedro@palves.net>
5366 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * avr-tdep.c (avr_address_class_type_flags): Return
5369 type_instance_flags.
5370 (avr_address_class_type_flags_to_name): Take a
5371 type_instance_flags.
5372 (avr_address_class_name_to_type_flags): Return bool and take a
5373 type_instance_flags.
5374 * d-lang.c (build_d_types): Use type::set_instance_flags.
5375 * ft32-tdep.c (ft32_address_class_type_flags): Return
5376 type_instance_flags.
5377 (ft32_address_class_type_flags_to_name): Take a
5378 type_instance_flags.
5379 (ft32_address_class_name_to_type_flags): Return bool and take a
5380 type_instance_flags.
5381 (ft32_gdbarch_init): Use type::set_instance_flags.
5382 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5383 * gdbarch.h, gdbarch.c: Regenerate.
5384 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5385 (address_class_name_to_type_flags): Use type_instance_flags and
5386 bool.
5387 * gdbtypes.c (address_space_name_to_int)
5388 (address_space_int_to_name, make_qualified_type): Use
5389 type_instance_flags.
5390 (make_qualified_type): Use type_instance_flags and
5391 type::set_instance_flags.
5392 (make_type_with_address_space, make_cv_type, make_vector_type)
5393 (check_typedef): Use type_instance_flags.
5394 (recursive_dump_type): Cast type_instance_flags to unsigned for
5395 printing.
5396 (copy_type_recursive): Use type::set_instance_flags.
5397 (gdbtypes_post_init): Use type::set_instance_flags.
5398 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5399 <m_instance_flags>: ... this.
5400 <instance_flags, set_instance_flags>: New methods.
5401 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5402 (SET_TYPE_INSTANCE_FLAGS): New.
5403 (address_space_name_to_int, address_space_int_to_name)
5404 (make_type_with_address_space): Pass flags using
5405 type_instance_flags instead of int.
5406 * stabsread.c (cleanup_undefined_types_noname): Use
5407 type::set_instance_flags.
5408 * s390-tdep.c (s390_address_class_type_flags): Return
5409 type_instance_flags.
5410 (s390_address_class_type_flags_to_name): Take a
5411 type_instance_flags.
5412 (s390_address_class_name_to_type_flags): Return bool and take a
5413 type_instance_flags.
5414 * type-stack.c (type_stack::follow_types): Use
5415 type_instance_flags.
5416 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5417
5418 2020-09-14 Tom Tromey <tromey@adacore.com>
5419
5420 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5421 * x86-tdep.c (x86_is_thunk_register_name)
5422 (x86_in_indirect_branch_thunk): Update.
5423 * sparc64-tdep.c (sparc64_fpu_register_names)
5424 (sparc64_cp0_register_names, sparc64_register_names)
5425 (sparc64_pseudo_register_names): Now const.
5426 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5427 cp0_registers_num>: Now const.
5428 * sparc-tdep.c (sparc_core_register_names)
5429 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5430 (sparc32_pseudo_register_names): Now const.
5431 (validate_tdesc_registers): Update.
5432 * rust-lang.c (rust_extensions): Now const.
5433 * p-lang.c (p_extensions): Now const.
5434 * objc-lang.c (objc_extensions): Now const.
5435 * nto-tdep.c (nto_thread_state_str): Now const.
5436 * moxie-tdep.c (moxie_register_names): Now const.
5437 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5438 Now const.
5439 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5440 (mips_linux_reg_names): Now const.
5441 (mips_gdbarch_init): Update.
5442 * microblaze-tdep.c (microblaze_register_names): Now const.
5443 * m68k-tdep.c (m68k_register_names): Now const.
5444 * m32r-tdep.c (m32r_register_names): Now const.
5445 * ia64-tdep.c (ia64_register_names): Now const.
5446 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5447 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5448 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5449 ymm_avx512_register_names, pkeys_register_names>: Now const.
5450 * i386-tdep.c (i386_register_names, i386_zmm_names)
5451 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5452 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5453 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5454 * f-lang.c (f_extensions): Now const.
5455 * d-lang.c (d_extensions): Now const.
5456 * csky-tdep.c (csky_register_names): Now const.
5457 * charset.c (default_charset_names, charset_enum): Now const.
5458 (_initialize_charset): Update.
5459 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5460 const.
5461 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5462 (bsd_uthread_solib_loaded): Update.
5463 (bsd_uthread_state): Now const.
5464 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5465 (amd64_ymm_avx512_names, amd64_ymmh_names)
5466 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5467 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5468 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5469 (amd64_dword_names): Now const.
5470 * agent.c (can_use_agent_enum): Now const.
5471 * ada-tasks.c (task_states, long_task_states): Now const.
5472 * ada-lang.c (known_runtime_file_name_patterns)
5473 (known_auxiliary_function_name_patterns, attribute_names)
5474 (standard_exc, ada_extensions): Now const.
5475
5476 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5477
5478 * bcache.h (struct bcache) <bcache>: Remove constructor.
5479 <m_hash_function, m_compare_function>: Remove.
5480 <~bcache>: Make virtual.
5481 <compare>: Remove static method, introduce virtual method.
5482 <default_hash>: Remove.
5483 <hash>: New virtual method.
5484 * bcache.c (bcache::expand_hash_table): Update.
5485 (bcache::insert): Update.
5486 (bcache::hash): New.
5487 (bcache::compare): Update comment and parameter names.
5488 * gdbtypes.c (types_deeply_equal): Update.
5489 * psymtab.h (struct psymbol_bcache): New struct.
5490 (class psymtab_storage) <psymtab_storage>: Make default.
5491 <psymbol_cache>: Change type to psymbol_bcache.
5492 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5493 (psymbol_hash): Change to...
5494 (psymbol_bcache::hash): ... this.
5495 (psymbol_compare): Change to...
5496 (psymbol_bcache::compare): ... this.
5497
5498 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5499
5500 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5501 checking for initial lwp.
5502
5503 2020-09-14 Tom Tromey <tromey@adacore.com>
5504
5505 * m68k-tdep.c (m68k_extract_return_value): Use
5506 pointer_result_regnum.
5507 (m68k_store_return_value): Likewise.
5508 (m68k_reg_struct_return_p): Handle vectors and arrays.
5509 (m68k_return_value): Handle arrays.
5510 (m68k_svr4_return_value): Fix single-element aggregate handling.
5511 Handle long double. Adjust for embedded ABI.
5512 (m68k_svr4_init_abi): Set pointer_result_regnum.
5513 (m68k_embedded_init_abi): New function.
5514 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5515 (m68k_osabi_sniffer): New function.
5516 (_initialize_m68k_tdep): Register osabi sniffer.
5517 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5518 member.
5519
5520 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5523 with gdb::unique_xmalloc_ptr<char>.
5524
5525 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * xml-support.h (xml_fetch_another): Change type to be a
5528 function_view.
5529 (xml_process_xincludes): Remove baton parameter.
5530 (xml_fetch_content_from_file): Change baton parameter to
5531 dirname.
5532 * xml-support.c (struct xinclude_parsing_data)
5533 <xinclude_parsing_data>: Remove baton parameter.
5534 <fetcher_baton>: Remove.
5535 (xinclude_start_include): Adjust.
5536 (xml_process_xincludes): Adjust.
5537 (xml_fetch_content_from_file): Replace baton parameter with
5538 dirname.
5539 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5540 (xml_init_syscalls_info): Use a lambda.
5541 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5542 (file_read_description_xml): Use a lambda.
5543 (fetch_available_features_from_target): Change baton parameter
5544 to target_ops.
5545 (target_read_description_xml): Use a lambda.
5546 (target_fetch_description_xml): Use a lambda.
5547 (string_read_description_xml): Update.
5548
5549 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5552 uses with type::endianity_is_not_default.
5553
5554 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * gdbtypes.h (struct type) <endianity_is_not_default,
5557 set_endianity_is_not_default>: New methods.
5558 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5559 type::endianity_is_not_default, change all write call sites to
5560 use type::set_endianity_is_not_default.
5561
5562 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5565 uses with type::is_fixed_instance.
5566
5567 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (struct type) <is_fixed_instance,
5570 set_is_fixed_instance>: New methods.
5571 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5572 write call sites to use type::set_is_fixed_instance.
5573
5574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5577 uses with type::is_gnu_ifunc.
5578
5579 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5580
5581 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5582 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5583 use type::set_is_gnu_ifunc.
5584
5585 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5588 uses with type::stub_is_supported.
5589
5590 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5593 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5594 use type::set_stub_is_supported.
5595
5596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5599 uses with type::is_vector.
5600
5601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5604 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5605 use type::set_is_vector.
5606
5607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5608
5609 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5610 uses with type::has_varargs.
5611
5612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5615 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5616 use type::set_has_varargs.
5617
5618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5621 uses with type::is_prototyped.
5622
5623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5626 New methods.
5627 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5628 call sites to use type::set_is_prototyped.
5629
5630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5633 uses with type::target_is_stub.
5634
5635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5638 New methods.
5639 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5640 sites to use type::set_target_is_stub.
5641
5642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * gdbtypes.h (TYPE_STUB): Remove, replace all
5645 uses with type::is_stub.
5646
5647 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5650 (TYPE_STUB): Use type::is_stub, change all write call sites to
5651 use type::set_is_stub.
5652
5653 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5654
5655 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5656 type::has_no_signedness.
5657
5658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5659
5660 * gdbtypes.h (struct type) <has_no_signedness,
5661 set_has_no_signedness>: New methods.
5662 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5663 call sites to use type::set_has_no_signedness.
5664
5665 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5668 type::is_unsigned.
5669
5670 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5673 methods.
5674 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5675 sites to use type::set_is_unsigned.
5676
5677 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5678 Adam Renquinha <arenquinha@cimeq.qc.ca>
5679
5680 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5681 pointer and stack frame offset when unwinding.
5682
5683 2020-09-13 Pedro Alves <pedro@palves.net>
5684
5685 * NEWS: Document "-break-insert --qualified".
5686 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5687
5688 2020-09-13 Pedro Alves <pedro@palves.net>
5689
5690 * linespec.c (classify_mtype, compare_msyms): Delete.
5691 (search_minsyms_for_name): Remove classification logic. Instead
5692 filter out trampoline symbols if we also found an external
5693 function of the same name.
5694
5695 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5696
5697 * NEWS: Create a new section for the next release branch.
5698 Rename the section of the current branch, now that it has
5699 been cut.
5700
5701 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5702
5703 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5704 * version.in: Bump version to 11.0.50.DATE-git.
5705
5706 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5707
5708 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5709
5710 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5711 Felix Willgerodt <Felix.Willgerodt@intel.com>
5712
5713 * gdbarch.sh: Added bfloat16 type.
5714 * gdbarch.c: Regenerated.
5715 * gdbarch.h: Regenerated.
5716 * gdbtypes.c (floatformats_bfloat16): New struct.
5717 (gdbtypes_post_init): Add builtin_bfloat16.
5718 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5719 (floatformats_bfloat16): New struct.
5720 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5721 (i386_ymm_type): Add field "v16_bfloat16"
5722 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5723 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5724 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5725 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5726 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5727 * features/i386/64bit-avx512.c: Regenerated.
5728 * features/i386/64bit-sse.xml: Add bfloat16 type.
5729 * features/i386/64bit-sse.c: Regenerated.
5730
5731 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5732
5733 * i386-tdep.c (i386_zmm_type): Fix field names.
5734 (i386_ymm_type): Fix field names.
5735
5736 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5737
5738 * breakpoint.c: Fix typo in the help message of the
5739 "set breakpoint condition-evaluation" command.
5740
5741 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5742
5743 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5744 * (nbsd_nat_target::pid_to_exec_file)
5745 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5746 (nbsd_nat_target::post_startup_inferior)
5747 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5748 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5749 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5750 * (nbsd_thread_lister): Remove.
5751
5752 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5753
5754 * fork-inferior.c (startup_inferior): Avoid double free.
5755
5756 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5757
5758 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5759 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5760
5761 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5762
5763 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5764 * netbsd-nat.c: Include <sys/ptrace.h>.
5765 * (netbsd_nat::enable_proc_events): Add.
5766
5767 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5768
5769 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5770 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5771 (netbsd_nat::for_each_thread): Add.
5772 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5773 "gdbsupport/common-debug.h".
5774 * (netbsd_nat::netbsd_thread_lister)
5775 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5776 (netbsd_nat::for_each_thread): Add.
5777
5778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5779
5780 * netbsd-nat.h: Include <unistd.h>.
5781 * (netbsd_nat::pid_to_exec_file): Add.
5782 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5783 * (netbsd_nat::pid_to_exec_file) Add.
5784
5785 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5786
5787 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5788
5789 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5790
5791 * netbsd-nat.h: New file.
5792 * netbsd-nat.c: Likewise.
5793
5794 2020-09-09 Tom Tromey <tromey@adacore.com>
5795
5796 * ada-lang.c (remove_extra_symbols): Do not increment when
5797 removing an element
5798
5799 2020-09-08 Tom Tromey <tromey@adacore.com>
5800
5801 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5802
5803 2020-09-08 Tom Tromey <tromey@adacore.com>
5804
5805 PR win32/25302:
5806 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5807 (gdb_bfd_init_data): New function.
5808 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5809
5810 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5811
5812 * infrun.c (fetch_inferior_event): Use
5813 `switch_to_target_no_thread` to switch the target.
5814
5815 2020-09-06 Tom Tromey <tom@tromey.com>
5816
5817 * symfile.h (dwarf2_free_objfile): Don't declare.
5818
5819 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5820
5821 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5822 to match 16 byte real/complex type generated by Flang compiler.
5823
5824 2020-09-03 Tom de Vries <tdevries@suse.de>
5825
5826 PR breakpoint/26546
5827 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5828 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5829
5830 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * maint.c (index_digits): New function.
5833 (struct maint_print_section_data): Remove.
5834 (print_bfd_section_info): Remove print_data parameter, add arg
5835 and index_digits.
5836 (print_objfile_section_info): Likewise.
5837 (print_bfd_section_info_maybe_relocated): Likewise (plus
5838 objfile).
5839 (maintenance_info_sections): Adjust calls.
5840
5841 2020-09-02 Tom Tromey <tromey@adacore.com>
5842
5843 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5844 for null pointers.
5845 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5846
5847 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5848
5849 * bcache.h (struct bcache) <insert>: Change type of `added` to
5850 pointer to bool.
5851 * bcache.c (bcache::insert): Likewise.
5852 * gdbtypes.c (check_types_worklist): Adjust.
5853 * psymtab.c (add_psymbol_to_bcache): Adjust.
5854
5855 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5856
5857 * corelow.c (unordered_set): Include.
5858 (class core_target): Add field 'm_core_unavailable_mappings'.
5859 (core_target::build_file_mappings): Print only one warning
5860 per inaccessible file. Add unavailable/broken mappings
5861 to m_core_unavailable_mappings.
5862 (core_target::xfer_partial): Call...
5863 (core_target::xfer_memory_via_mappings): New method.
5864
5865 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5868 type to bool.
5869
5870 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * dwarf2/read.c (struct field_info): Fix indentation.
5873
5874 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5877 ordering in comment.
5878 * frame.c (frame_id_eq): Fix indentation.
5879
5880 2020-08-31 Scott Linder <scott@scottlinder.com>
5881 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5884 inline frame ids in outer frame.
5885
5886 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5889 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5890 (outer_frame_id): Use FID_STACK_OUTER instead of
5891 FID_STACK_INVALID.
5892 (frame_id_p): Don't check for outer_frame_id.
5893
5894 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5897 regnum/frame in value. Call allocate_value_lazy.
5898 * frame.c (frame_unwind_register_value): Use
5899 val_print_not_saved.
5900
5901 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5902
5903 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5904
5905 2020-08-29 Pedro Alves <pedro@palves.net>
5906
5907 * progspace.c (print_program_space): Use all_inferiors. Switch to
5908 the inferior before calling target_pid_to_str.
5909
5910 2020-08-28 Tom Tromey <tom@tromey.com>
5911
5912 * xcoffread.c (xcoff_end_psymtab): Update comment.
5913 * dbxread.c (dbx_end_psymtab): Update comment.
5914
5915 2020-08-28 Tom de Vries <tdevries@suse.de>
5916
5917 PR breakpoint/26544
5918 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5919 event_location.
5920 (create_breakpoint): Same.
5921 (base_breakpoint_decode_location): Same.
5922 (bkpt_create_sals_from_location): Same.
5923 (bkpt_decode_location): Same.
5924 (bkpt_probe_create_sals_from_location): Same.
5925 (bkpt_probe_decode_location): Same.
5926 (tracepoint_create_sals_from_location): Same.
5927 (tracepoint_decode_location): Same.
5928 (tracepoint_probe_decode_location): Same.
5929 (strace_marker_create_sals_from_location): Same.
5930 (strace_marker_decode_location): Same.
5931 (create_sals_from_location_default): Same.
5932 (decode_location_default): Same.
5933 * breakpoint.h (struct breakpoint_ops): Same.
5934 (create_breakpoint): Same.
5935 * linespec.h (decode_line_full): Same.
5936 * linespec.c (decode_line_full): Same. Throw error if
5937 result.size () == 0.
5938
5939 2020-08-27 Pedro Alves <pedro@palves.net>
5940
5941 PR gdb/26524
5942 * breakpoint.c (until_break_fsm) <location_breakpoint,
5943 caller_breakpoint>: Delete fields.
5944 <breakpoints>: New field.
5945 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5946 two individual breakpoints.
5947 (until_break_fsm::should_stop): Loop over breakpoints in the
5948 breakpoint vector.
5949 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5950 vector.
5951 (until_break_command): Handle location expanding into multiple
5952 sals.
5953
5954 2020-08-27 Pedro Alves <pedro@palves.net>
5955
5956 PR gdb/26523
5957 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5958 bp_until breakpoints user-specified locations. Update intro
5959 comment.
5960
5961 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5964 gdb_bfd_sections): New.
5965 * maint.c (print_bfd_section_info): Change param type to
5966 maint_print_section_data.
5967 (print_objfile_section_info): Likewise.
5968 (print_bfd_section_info_maybe_relocated): Likewise.
5969 (maintenance_info_sections): Use gdb_bfd_sections.
5970
5971 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5972
5973 * MAINTAINERS: Add ARC target and maintainer.
5974
5975 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5976
5977 * configure.tgt: ARC support for GNU/Linux.
5978 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5979 * arc-linux-tdep.c: New file.
5980 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5981 * arc-tdep.c (arc_write_pc): Use it.
5982
5983 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5984
5985 * arc-tdep.c (arc_check_for_hardware_loop): New.
5986 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5987
5988 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5989
5990 * arc-tdep.h: Include "gdbarch.h".
5991
5992 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5993
5994 * arch/arc.h
5995 (arc_gdbarch_features): New class to stir the selection of target XML.
5996 (arc_create_target_description): Use FEATURES to choose XML target.
5997 (arc_lookup_target_description): Use arc_create_target_description
5998 to create _new_ target descriptions or return the already created
5999 ones if the FEATURES is the same.
6000 * arch/arc.c: Implementation of prototypes described above.
6001 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6002 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6003 * arc-tdep.c (*_feature_name): Make feature names consistent.
6004 (arc_register_feature): A new struct to hold information about
6005 registers of a particular target/feature.
6006 (arc_check_tdesc_feature): Check if XML provides registers in
6007 compliance with ARC_REGISTER_FEATURE structs.
6008 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6009 (determine_*_reg_feature_set): Which feature name to look for.
6010 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6011 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6012 to expected ISA enums to be used in arc_gdbarch_features structs.
6013 * features/Makefile (FEATURE_XMLFILES): Add new files.
6014 * gdb/features/arc/v1-aux.c: New file.
6015 * gdb/features/arc/v1-aux.xml: Likewise.
6016 * gdb/features/arc/v1-core.c: Likewise.
6017 * gdb/features/arc/v1-core.xml: Likewise.
6018 * gdb/features/arc/v2-aux.c: Likewise.
6019 * gdb/features/arc/v2-aux.xml: Likewise.
6020 * gdb/features/arc/v2-core.c: Likewise.
6021 * gdb/features/arc/v2-core.xml: Likewise.
6022 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6023
6024 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6025 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 PR m2/26372
6028 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6029 an assert. Remove single element array indexing pattern as the
6030 MULTI_SUBSCRIPT support will handle this case too.
6031
6032 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * value.h (valprint_check_validity): Move declaration from
6035 here...
6036 * valprint.h (valprint_check_validity): ... to here.
6037
6038 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6039
6040 * debug.h: New file.
6041 * debug.c (debug_prefixed_vprintf): New function.
6042 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6043 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6044
6045 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * infrun.h (infrun_debug_printf_1): New function declaration.
6048 (infrun_debug_printf): New macro.
6049 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6050 throughout.
6051 (infrun_debug_printf): New function.
6052 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6053 (handle_jit_event): Likewise.
6054
6055 2020-08-21 Mark Wielaard <mark@klomp.org>
6056
6057 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6058
6059 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * frame.c (enum class frame_id_status): New.
6062 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6063 (fprintf_frame): Update.
6064 (compute_frame_id): Set frame id status to "computing" on entry.
6065 Set it back to "not_computed" on failure and to "computed" on
6066 success.
6067 (get_frame_id): Assert the frame id is not being computed.
6068 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6069 (create_new_frame): Likewise.
6070 (frame_cleanup_after_sniffer): Update assert.
6071
6072 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * regcache.c (pid_ptid_regcache_map): New type.
6075 (target_ptid_regcache_map): Remove.
6076 (target_pid_ptid_regcache_map): New type.
6077 (regcaches): Change type to target_pid_ptid_regcache_map.
6078 (get_thread_arch_aspace_regcache): Update.
6079 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6080 case.
6081 (regcaches_size): Update.
6082 (regcache_count): Update.
6083 (registers_changed_ptid_target_pid_test): New.
6084 (_initialize_regcache): Register new test.
6085
6086 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * regcache.c (regcache_count): New.
6089 (struct regcache_test_data): New.
6090 (regcache_test_data_up): New.
6091 (populate_regcaches_for_test): New.
6092 (regcaches_test): Remove.
6093 (get_thread_arch_aspace_regcache_test): New.
6094 (registers_changed_ptid_all_test): New.
6095 (registers_changed_ptid_target_test): New.
6096 (registers_changed_ptid_target_ptid_test): New.
6097 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6098 (_initialize_regcache): Register new tests.
6099
6100 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6103 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6104 gdbarch and aspace parameter. Use current inferior's aspace.
6105 Validate regcache's arch value.
6106 (regcaches_test): Update.
6107
6108 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * regcache.c (regcaches_test): Call registers_changed.
6111
6112 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6113
6114 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6115
6116 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6117
6118 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6119 to find the end of prologue for flang compiled binaries.
6120 * arm-tdep.c (arm_skip_prologue): Likewise.
6121 * i386-tdep.c (i386_skip_prologue): Likewise.
6122 * producer.c (producer_is_llvm): New function.
6123 (producer_parsing_tests): Added new tests for clang/flang.
6124 * producer.h (producer_is_llvm): New declaration.
6125
6126 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * linux-nat.c (linux_nat_debug_printf): New function.
6129 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6130
6131 2020-08-18 Aaron Merey <amerey@redhat.com>
6132
6133 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6134 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6135 (CLIBS): Add DEBUGINFOD_LIBS.
6136
6137 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6138
6139 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6140 'gdbarch_num_regs'.
6141
6142 2020-08-17 Tom Tromey <tromey@adacore.com>
6143
6144 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6145 ada_get_decoded_value returns NULL.
6146
6147 2020-08-17 Tom Tromey <tromey@adacore.com>
6148
6149 * python/py-inferior.c (infpy_search_memory): Use
6150 gdb_py_object_from_ulongest.
6151 * python/py-infevents.c (create_inferior_call_event_object)
6152 (create_memory_changed_event_object): Use
6153 gdb_py_object_from_ulongest.
6154 * python/py-linetable.c (ltpy_entry_get_pc): Use
6155 gdb_py_object_from_ulongest.
6156
6157 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * loc.c (class symbol_needs_eval_context): Fix indentation.
6160
6161 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6164 bool.
6165
6166 2020-08-17 Tom de Vries <tdevries@suse.de>
6167
6168 PR gdb/26393
6169 * gdbtypes.c (dump_dynamic_prop): New function.
6170 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6171
6172 2020-08-15 Tom de Vries <tdevries@suse.de>
6173
6174 PR backtrace/26390
6175 * stack.c (print_frame_args): Temporarily set the selected
6176 frame to FRAME while printing the frame's arguments.
6177
6178 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6179
6180 PR breakpoints/26385
6181 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6182 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6183
6184 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6185
6186 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6187 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6188 and >= to check return value instead of == -1 and != -1.
6189
6190 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * utils.h (class gdb_argv) <as_array_view>: New method.
6193 * utils.c (gdb_argv_as_array_view_test): New.
6194 (_initialize_utils): Register selftest.
6195 * maint.c (maintenance_selftest): Use the new method.
6196
6197 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6198
6199 * target.h (supports_dumpcore, dumpcore): New
6200 function declarations.
6201 * target.c (supports_dumpcore, dumpcore): New
6202 functions.
6203 * target-delegates.c: Rebuild.
6204 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6205 and target_dumpcore ().
6206
6207 2020-08-13 Aaron Merey <amerey@redhat.com>
6208
6209 * debuginfod-support.c: Replace global variables with user_data.
6210
6211 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * maint.c (maintenance_selftest): Split args and pass array_view
6214 to run_tests.
6215
6216 2020-08-12 Luis Machado <luis.machado@linaro.org>
6217
6218 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6219 type's length.
6220 Use %s and pulongest to print the length.
6221
6222 2020-08-12 Pedro Alves <palves@redhat.com>
6223
6224 * NEWS: Move "Multi-target debugging support" item to the
6225 "Changes since GDB 9" section.
6226
6227 2020-08-12 Pedro Alves <palves@redhat.com>
6228
6229 PR gdb/26336
6230 * progspace.c (program_space::remove_objfile): Invalidate the
6231 frame cache.
6232
6233 2020-08-11 Tom de Vries <tdevries@suse.de>
6234
6235 * MAINTAINERS: Mark ms1 as deleted.
6236
6237 2020-08-10 Luis Machado <luis.machado@linaro.org>
6238
6239 PR gdb/26310
6240
6241 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6242 act accordingly.
6243 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6244 movz/str/stur/stp skipping behavior.
6245
6246 2020-08-10 Luis Machado <luis.machado@linaro.org>
6247
6248 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6249 struct user_sve_header instead of struct sve_context.
6250
6251 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * read.h (dwarf2_fetch_die_loc_sect_off,
6254 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6255 `void *` parameter with function_view.
6256 * read.c (dwarf2_fetch_die_loc_sect_off,
6257 dwarf2_fetch_die_loc_cu_off): Likewise.
6258 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6259 (per_cu_dwarf_call): Adjust.
6260 (get_frame_address_in_block_wrapper): Remove.
6261 (indirect_synthetic_pointer): Adjust.
6262 (get_ax_pc): Remove.
6263 (dwarf2_compile_expr_to_ax): Adjust.
6264
6265 2020-08-08 Tom de Vries <tdevries@suse.de>
6266
6267 PR build/26344
6268 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6269 constructor.
6270 * regcache.c (get_thread_arch_aspace_regcache): Same.
6271
6272 2020-08-07 Tom Tromey <tromey@adacore.com>
6273
6274 * ravenscar-thread.c
6275 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6276 New method.
6277 (ravenscar_thread_target::wait): Check
6278 runtime_initialized.
6279 (ravenscar_thread_target::prepare_to_store)
6280 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6281 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6282 (ravenscar_thread_target::stopped_by_watchpoint)
6283 (ravenscar_thread_target::stopped_data_address)
6284 (ravenscar_thread_target::core_of_thread): Use
6285 scoped_restore_current_thread and
6286 set_base_thread_from_ravenscar_task.
6287
6288 2020-08-07 Tom Tromey <tromey@adacore.com>
6289
6290 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6291
6292 2020-08-07 Tom Tromey <tromey@adacore.com>
6293
6294 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6295 update_inferior_ptid before update_thread_list.
6296 (temporarily_change_regcache_ptid): New class.
6297 (ravenscar_thread_target::fetch_registers)
6298 (ravenscar_thread_target::store_registers)
6299 (ravenscar_thread_target::prepare_to_store): Use base thread when
6300 forwarding operation.
6301
6302 2020-08-07 Tom Tromey <tromey@adacore.com>
6303
6304 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6305 "is_pid" case.
6306
6307 2020-08-07 Tom Tromey <tromey@adacore.com>
6308
6309 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6310 New methods.
6311 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6312 first.
6313 (ravenscar_thread_target::add_thread): Rename from
6314 ravenscar_add_thread.
6315 (ravenscar_thread_target::update_thread_list): Use a lambda.
6316 (ravenscar_thread_target::xfer_partial): New method.
6317
6318 2020-08-07 Tom Tromey <tromey@adacore.com>
6319
6320 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6321 gdb::function_view.
6322 (iterate_over_live_ada_tasks): Change type of argument.
6323 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6324 of argument.
6325
6326 2020-08-07 Tom Tromey <tromey@adacore.com>
6327
6328 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6329 Remove.
6330 (ravenscar_thread_target::extra_thread_info): Remove.
6331 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6332 defer to target beneath for non-Ravenscar threads.
6333
6334 2020-08-07 Tom Tromey <tromey@adacore.com>
6335
6336 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6337 get_base_thread_from_ravenscar_task>: Now methods.
6338 <m_cpu_map>: New member.
6339 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6340 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6341 (ravenscar_thread_target::task_is_currently_active): Update.
6342 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6343 Now a method.
6344 (ravenscar_thread_target::add_active_thread): Put initial thread
6345 into the m_cpu_map.
6346
6347 2020-08-07 Tom Tromey <tromey@adacore.com>
6348
6349 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6350 event_ptid.
6351
6352 2020-08-07 Tom Tromey <tromey@adacore.com>
6353
6354 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6355 runtime_initialized.
6356
6357 2020-08-07 Tom Tromey <tromey@adacore.com>
6358
6359 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6360 add_active_thread.
6361 (ravenscar_thread_target::add_active_thread): Now public.
6362 (ravenscar_inferior_created): Call add_active_thread after pushing
6363 the target.
6364
6365 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * regcache.c (ptid_regcache_map): New type.
6368 (target_ptid_regcache_map): New type.
6369 (regcaches): Change type to target_ptid_regcache_map.
6370 (get_thread_arch_aspace_regcache): Update to regcaches' new
6371 type.
6372 (regcache_thread_ptid_changed): Likewise.
6373 (registers_changed_ptid): Likewise.
6374 (regcaches_size): Likewise.
6375 (regcaches_test): Update.
6376 (regcache_thread_ptid_changed): Update.
6377 * regcache.h (regcache_up): New type.
6378 * gdbsupport/ptid.h (hash_ptid): New struct.
6379
6380 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * observable.h (thread_ptid_changed): Add parameter
6383 `process_stratum_target *`.
6384 * infrun.c (infrun_thread_ptid_changed): Add parameter
6385 `process_stratum_target *` and use it.
6386 (selftests): New namespace.
6387 (infrun_thread_ptid_changed): New function.
6388 (_initialize_infrun): Register selftest.
6389 * regcache.c (regcache_thread_ptid_changed): Add parameter
6390 `process_stratum_target *` and use it.
6391 (regcache_thread_ptid_changed): New function.
6392 (_initialize_regcache): Register selftest.
6393 * thread.c (thread_change_ptid): Pass target to
6394 thread_ptid_changed observable.
6395
6396 2020-08-06 Caroline Tice <cmtice@google.com>
6397
6398 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6399 (struct dwp_sections): Update field comments. Add loclists and
6400 rnglists fields.
6401 (struct virtual_v2_dwo_sections): Rename struct to
6402 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6403 size & offset fields for loclists and rnglists.
6404 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6405 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6406 skipping dummy type units.
6407 (create_dwp_hash_table): Update the large comment above the function to
6408 discuss Version 5 DWP files as well, with references. Update all the
6409 version checks in the function to check for version 5 as well. Add new
6410 section at the end to create dwp hash table for version 5.
6411 (create_dwp_v2_section): Rename function to
6412 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6413 Add V5 to error message text.
6414 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6415 into calls to create_dwp_v2_or_v5_section.
6416 (create_dwo_unit_in_dwp_v5): New function.
6417 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6418 check for version2; add else clause to handle version 5.
6419 (open_and_init_dwo_file): Add code to check dwarf version & only call
6420 create_debug_types_hash_table (with sections.types) if version is not 5;
6421 else call create_debug_type_hash_table, with sections.info.
6422 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6423 version 5.
6424 (dwarf2_locate_v5_dwp_sections): New function.
6425 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6426 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6427
6428 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * regcache.h (class regcache): Remove friend
6431 registers_changed_ptid.
6432 <regcache_thread_ptid_changed>: Remove.
6433 <regcaches>: Remove.
6434 * regcache.c (regcache::regcaches): Rename to...
6435 (regcaches): ... this. Make static.
6436 (get_thread_arch_aspace_regcache): Update.
6437 (regcache::regcache_thread_ptid_changed): Rename to...
6438 (regcache_thread_ptid_changed): ... this. Update.
6439 (class regcache_access): Remove.
6440 (regcaches_test): Update.
6441 (_initialize_regcache): Update.
6442 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6443 <forward_list>.
6444
6445 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6446
6447 * regcache.h (class regcache) <current_regcache>: Rename to...
6448 <regcaches>: ... this. Move doc here.
6449 * regcache.c (regcache::current_regcache) Rename to...
6450 (regcache::regcaches): ... this. Move doc to header.
6451 (get_thread_arch_aspace_regcache): Update.
6452 (regcache::regcache_thread_ptid_changed): Update.
6453 (registers_changed_ptid): Update.
6454 (class regcache_access) <current_regcache_size>: Rename to...
6455 <regcaches_size>: ... this.
6456 (current_regcache_test): Rename to...
6457 (regcaches_test): ... this.
6458 (_initialize_regcache): Update.
6459
6460 2020-08-06 Victor Collod <vcollod@nvidia.com>
6461
6462 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6463
6464 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6465
6466 * corelow.c (core_target::build_file_mappings): Don't output
6467 null pathname in warning.
6468
6469 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6470
6471 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6472 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6473 gdb.dwarf2/dw2-single-line-discriminators.exp,
6474 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6475
6476 2020-08-05 Tom Tromey <tromey@adacore.com>
6477
6478 PR rust/26197:
6479 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6480 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6481 Fix off-by-one and type size errors in ordinary case.
6482
6483 2020-08-05 Tom de Vries <tdevries@suse.de>
6484
6485 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6486 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6487
6488 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * frame.h (frame_id_p): Return bool.
6491 (frame_id_artificial_p): Return bool.
6492 (frame_id_eq): Return bool.
6493 (has_stack_frames): Return bool.
6494 (get_selected_frame): Fix typo in comment.
6495 (get_frame_pc_if_available): Return bool.
6496 (get_frame_address_in_block_if_available): Return bool.
6497 (get_frame_func_if_available): Return bool.
6498 (read_frame_register_unsigned): Return bool.
6499 (get_frame_register_bytes): Return bool.
6500 (safe_frame_unwind_memory): Return bool.
6501 (deprecated_frame_register_read): Return bool.
6502 (frame_unwinder_is): Return bool.
6503 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6504 bool.
6505 <this_id::p>: Likewise.
6506 <prev_p>: Likewise.
6507 (frame_stash_add): Return bool.
6508 (get_frame_id): Use bool.
6509 (frame_id_build_special) Use bool.
6510 (frame_id_build_unavailable_stack): Use bool.
6511 (frame_id_build): Use bool.
6512 (frame_id_p): Return bool, use true/false instead of 1/0.
6513 (frame_id_artificial_p): Likewise.
6514 (frame_id_eq): Likewise.
6515 (frame_id_inner): Likewise.
6516 (get_frame_func_if_available): Likewise.
6517 (read_frame_register_unsigned): Likewise.
6518 (deprecated_frame_register_read): Likewise.
6519 (get_frame_register_bytes): Likewise.
6520 (has_stack_frames): Likewise.
6521 (inside_main_func): Likewise.
6522 (inside_entry_func): Likewise.
6523 (get_frame_pc_if_available): Likewise.
6524 (get_frame_address_in_block_if_available): Likewise.
6525 (frame_unwinder_is): Likewise.
6526 (safe_frame_unwind_memory): Likewise.
6527 (frame_unwind_arch): Likewise.
6528
6529 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6532 type to cached_copy_status.
6533 (fprintf_frame): Adjust.
6534 (get_frame_func_if_available): Adjust.
6535 (frame_cleanup_after_sniffer): Adjust.
6536
6537 2020-08-04 Mark Wielaard <mark@klomp.org>
6538
6539 * MAINTAINERS (Write After Approval): Update email address.
6540
6541 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6544 dynamic_prop::const_val.
6545
6546 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6549 dynamic_prop::kind.
6550
6551 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6552
6553 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6554
6555 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6556
6557 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6558
6559 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6560 Jose E. Marchesi <jose.marchesi@oracle.com>
6561
6562 * configure.tgt: Add entry for bpf-*-*.
6563 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6564 (ALLDEPFILES): Add bpf-tdep.c.
6565 * bpf-tdep.c: New file.
6566 * MAINTAINERS: Add bpf target and maintainer.
6567 * NEWS: Mention the support for the new target.
6568
6569 2020-08-04 Tom de Vries <tdevries@suse.de>
6570
6571 PR symtab/23270
6572 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6573 Error.
6574
6575 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6576
6577 * syscalls/freebsd.xml: Regenerate.
6578
6579 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6580
6581 * syscalls/update-freebsd.sh: Fix usage and year range.
6582
6583 2020-08-03 Tom de Vries <tdevries@suse.de>
6584
6585 PR symtab/26333
6586 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6587 DW_LNE_lo_user/DW_LNE_hi_user range.
6588
6589 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6590
6591 PR ada/26318
6592 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6593 kind.
6594
6595 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6596
6597 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6598
6599 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600
6601 * breakpoint.c (set_breakpoint_condition): Update the condition
6602 expressions after checking that the input condition string parses
6603 successfully and does not contain junk at the end.
6604
6605 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6606
6607 * breakpoint.c (set_breakpoint_condition): Update the
6608 condition string after parsing the new condition successfully.
6609
6610 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6611
6612 * proc-api.c (_STRUCTURED_PROC): Don't define.
6613 * proc-events.c: Likewise.
6614 * proc-flags.c: Likewise.
6615 * proc-why.c: Likewise.
6616 * procfs.c: Likewise.
6617
6618 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6619 * configure, config.in: Regenerate.
6620
6621 2020-07-30 Tom de Vries <tdevries@suse.de>
6622
6623 PR build/26320
6624 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6625 m_red/m_green/m_blue in a union.
6626
6627 2020-07-29 Tom de Vries <tdevries@suse.de>
6628
6629 PR tdep/26280
6630 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6631
6632 2020-07-28 Tom Tromey <tromey@adacore.com>
6633
6634 PR symtab/26270:
6635 * symtab.h (find_pc_partial_function_sym): Declare.
6636 * cli/cli-cmds.c (disassemble_command): Use
6637 find_pc_partial_function_sym. Check asm_demangle.
6638 * blockframe.c (cache_pc_function_sym): New global.
6639 (cache_pc_function_name): Remove.
6640 (clear_pc_function_cache): Update.
6641 (find_pc_partial_function_sym): New function, from
6642 find_pc_partial_function.
6643 (find_pc_partial_function): Rewrite using
6644 find_pc_partial_function_sym.
6645
6646 2020-07-28 Tom Tromey <tromey@adacore.com>
6647
6648 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6649 help. Add usage.
6650
6651 2020-07-28 Tom Tromey <tromey@adacore.com>
6652
6653 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6654 <DW_OP_GNU_variable_value>: Cast to address type.
6655
6656 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6657
6658 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6659 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6660 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6661 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6662 (nbsd_get_siginfo_type): New.
6663 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6664 (_initialize_nbsd_tdep): New.
6665
6666 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6667
6668 PR binutils/26301
6669 * configure: Regenerated.
6670
6671 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6672
6673 PR binutils/26301
6674 * configure: Regenerated.
6675
6676 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * python/py-frame.c: Remove 'user-regs.h' include.
6679 (frapy_read_register): Rewrite to make use of
6680 gdbpy_parse_register_id.
6681 * python/py-registers.c (gdbpy_parse_register_id): New function,
6682 moved here from python/py-unwind.c. Updated the return type, and
6683 also accepts register descriptor objects.
6684 * python/py-unwind.c: Remove 'user-regs.h' include.
6685 (pyuw_parse_register_id): Moved to python/py-registers.c.
6686 (unwind_infopy_add_saved_register): Update to use
6687 gdbpy_parse_register_id.
6688 (pending_framepy_read_register): Likewise.
6689 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6690
6691 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6692
6693 * python/py-registers.c: Add 'user-regs.h' include.
6694 (register_descriptor_iter_find): New function.
6695 (register_descriptor_iterator_object_methods): New static global
6696 methods array.
6697 (register_descriptor_iterator_object_type): Add pointer to methods
6698 array.
6699
6700 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6701
6702 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6703 for all architectures on FreeBSD 11.3 and later.
6704
6705 2020-07-27 Tom Tromey <tromey@adacore.com>
6706
6707 * gcore.h (load_corefile): Don't declare.
6708
6709 2020-07-27 Tom de Vries <tdevries@suse.de>
6710
6711 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6712 * config.in: Regenerate.
6713 * configure: Regenerate.
6714
6715 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6716
6717 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6718 ws2tcpip.h. When checking whether socklen_t type is defined, use
6719 ws2tcpip.h if it is available and sys/socket.h isn't.
6720 * configure: Regenerate.
6721 * config.in: Regenerate.
6722
6723 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 PR fortran/23051
6726 PR fortran/26139
6727 * valops.c (value_ind): Pass address to
6728 readjust_indirect_value_type.
6729 * value.c (readjust_indirect_value_type): Make parameter
6730 non-const, and add extra address parameter. Resolve original type
6731 before using it.
6732 * value.h (readjust_indirect_value_type): Update function
6733 signature and comment.
6734
6735 2020-07-25 Tom de Vries <tdevries@suse.de>
6736
6737 PR symtab/26243
6738 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6739 entries.
6740
6741 2020-07-24 Aaron Merey <amerey@redhat.com>
6742
6743 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6744 * configure: Rebuild.
6745
6746 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6747
6748 PR corefiles/26294
6749 * corelow.c (_initialize_corelow): Add period to help text
6750 for "maintenance print core-file-backed-mappings".
6751
6752 2020-07-23 Pedro Alves <pedro@palves.net>
6753
6754 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6755 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6756 meanwhile.
6757 * frame.c (frame_cache_generation, get_frame_cache_generation):
6758 New.
6759 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6760 (get_prev_frame_if_no_cycle): On exception, don't touch
6761 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6762 * frame.h (get_frame_cache_generation): Declare.
6763
6764 2020-07-23 Tom de Vries <tdevries@suse.de>
6765
6766 PR tui/26282
6767 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6768 New default constructor.
6769
6770 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6773 exclude non-statement entries.
6774
6775 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6776
6777 * NEWS (New commands): Mention new command
6778 "maintenance print core-file-backed-mappings".
6779
6780 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6781
6782 * corelow.c (gdbcmd.h): Include.
6783 (core_target::info_proc_mappings): New method.
6784 (get_current_core_target): New function.
6785 (maintenance_print_core_file_backed_mappings): New function.
6786 (_initialize_corelow): Add core-file-backed-mappings to
6787 "maint print" commands.
6788
6789 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6790
6791 * linux-tdep.c (dump_note_entry_p): New function.
6792 (linux_dump_mapping_p_ftype): New typedef.
6793 (linux_find_memory_regions_full): Add new parameter,
6794 should_dump_mapping_p.
6795 (linux_find_memory_regions): Adjust call to
6796 linux_find_memory_regions_full.
6797 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6798 call to linux_find_memory_regions_full.
6799
6800 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6801
6802 * corelow.c (solist.h, unordered_map): Include.
6803 (class core_target): Add field m_core_file_mappings and
6804 method build_file_mappings.
6805 (core_target::core_target): Call build_file_mappings.
6806 (core_target::~core_target): Free memory associated with
6807 m_core_file_mappings.
6808 (core_target::build_file_mappings): New method.
6809 (core_target::xfer_partial): Use m_core_file_mappings
6810 for memory transfers.
6811 * linux-tdep.c (linux_read_core_file_mappings): New
6812 function.
6813 (linux_core_info_proc_mappings): Rewrite to use
6814 linux_read_core_file_mappings.
6815 (linux_init_abi): Register linux_read_core_file_mappings.
6816
6817 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6818
6819 * arch-utils.c (default_read_core_file_mappings): New function.
6820 * arch-utils.c (default_read_core_file_mappings): Declare.
6821 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6822 * gdbarch.h, gdbarch.c: Regenerate.
6823
6824 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6825
6826 PR corefiles/25631
6827 * corelow.c (core_target:xfer_partial): Revise
6828 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6829 case after first checking the stratum beneath the core
6830 target.
6831 (has_all_memory): Return true.
6832 * target.c (raw_memory_xfer_partial): Revise comment
6833 regarding use of has_all_memory.
6834
6835 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6836
6837 * exec.h (section_table_xfer_memory): Revise declaration,
6838 replacing section name parameter with an optional callback
6839 predicate.
6840 * exec.c (section_table_xfer_memory): Likewise.
6841 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6842 of section_table_xfer_memory.
6843
6844 2020-07-22 Tom Tromey <tromey@adacore.com>
6845
6846 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6847 lookup_symbol_search_name.
6848
6849 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6850
6851 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6852 redundant local variable.
6853 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6854 reference, not pointer, update code accordingly.
6855
6856 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6857 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6858
6859 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6860 * jit.c (jit_breakpoint_re_set_internal): Use the
6861 `skip_jit_symbol_lookup` field.
6862
6863 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6864 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6865
6866 * jit.c (jit_read_descriptor): Define the descriptor address once,
6867 use twice.
6868 (jit_breakpoint_deleted): Move the declaration of the loop variable
6869 `iter` into the loop header.
6870 (jit_breakpoint_re_set_internal): Move the declaration of the local
6871 variable `objf_data` to the first point of definition.
6872 (jit_event_handler): Move the declaration of local variables
6873 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6874 Rename `objf` to `jited`.
6875
6876 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6879 Remove.
6880 * jit.c (get_jiter_objfile_data): Update.
6881
6882 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6883 Simon Marchi <simon.marchi@polymtl.ca>
6884
6885 * jit.c (struct jit_program_space_data): Remove.
6886 (jit_program_space_key): Remove.
6887 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6888 stuff.
6889 (get_jit_program_space_data): Remove.
6890 (jit_breakpoint_deleted): Iterate on all of the program space's
6891 objfiles.
6892 (jit_inferior_init): Likewise.
6893 (jit_breakpoint_re_set_internal): Likewise. Also change return
6894 type to void.
6895 (jit_breakpoint_re_set): Pass current_program_space to
6896 jit_breakpoint_re_set_internal.
6897
6898 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6899
6900 * jit.h (struct jiter_objfile_data) <cached_code_address,
6901 jit_breakpoint>: Move to here from ...
6902 * jit.c (jit_program_space_data): ... here.
6903 (jiter_objfile_data::~jiter_objfile_data): Update.
6904 (jit_breakpoint_deleted): Update.
6905 (jit_breakpoint_re_set_internal): Update.
6906
6907 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6910 checks.
6911 (jit_read_descriptor): Remove NULL check.
6912 (jit_event_handler): Add an assertion.
6913
6914 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * jit.h (struct jit_objfile_data): Split into...
6917 (struct jiter_objfile_data): ... this ...
6918 (struct jited_objfile_data): ... and this.
6919 * objfiles.h (struct objfile) <jit_data>: Remove.
6920 <jiter_data, jited_data>: New fields.
6921 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6922 (jiter_objfile_data::~jiter_objfile_data): ... this.
6923 (get_jit_objfile_data): Rename to ...
6924 (get_jiter_objfile_data): ... this.
6925 (add_objfile_entry): Update.
6926 (jit_read_descriptor): Use get_jiter_objfile_data.
6927 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6928 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6929 (jit_inferior_exit_hook): Use objfile's jited_data field.
6930
6931 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6932
6933 * jit.h: Forward-declare `struct minimal_symbol`.
6934 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6935 constructor, destructor, and an objfile* field.
6936 * jit.c (jit_objfile_data): Remove.
6937 (struct jit_objfile_data): Migrate from here to jit.h.
6938 (jit_objfile_data::~jit_objfile_data): New destructor
6939 implementation with code moved from free_objfile_data.
6940 (free_objfile_data): Delete.
6941 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6942 (jit_find_objf_with_entry_addr): Ditto.
6943 (jit_inferior_exit_hook): Ditto.
6944 (_initialize_jit): Remove the call to
6945 register_objfile_data_with_cleanup.
6946 * objfiles.h (struct objfile) <jit_data>: New field.
6947
6948 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6949
6950 * jit.h: Forward-declare `struct objfile`.
6951 (jit_event_handler): Add a second parameter, the JITer objfile.
6952 * jit.c (jit_read_descriptor): Change the signature to take the
6953 JITer objfile as an argument instead of the jit_program_space_data.
6954 (jit_inferior_init): Update the call to jit_read_descriptor.
6955 (jit_event_handler): Use the new JITer objfile argument when calling
6956 jit_read_descriptor.
6957 * breakpoint.c (handle_jit_event): Update the call to
6958 jit_event_handler to pass the JITer objfile.
6959
6960 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6961
6962 * gdbarch.c: Regenerate.
6963 * gdbarch.h: Regenerate.
6964 * gdbarch.sh (handle_segmentation_fault): Remove method.
6965 * infrun.c (handle_segmentation_fault): Remove.
6966 (print_signal_received_reason): Remove call to
6967 handle_segmentation_fault.
6968
6969 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6970
6971 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6972 Rename to sparc64_linux_report_signal_info and add siggnal
6973 argument.
6974 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6975 instead of sparc64_linux_handle_segmentation_fault.
6976
6977 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6978
6979 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6980 i386_linux_report_signal_info instead of
6981 i386_linux_handle_segmentation_fault.
6982 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6983 to i386_linux_report_signal_info and add siggnal argument.
6984 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6985 of i386_linux_handle_segmentation_fault.
6986 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6987 to i386_linux_report_signal_info and add siggnal argument.
6988
6989 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6990
6991 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6992 hook if present.
6993
6994 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6995
6996 * gdbarch.c: Regenerate.
6997 * gdbarch.h: Regenerate.
6998 * gdbarch.sh (report_signal_info): New method.
6999 * infrun.c (print_signal_received_reason): Invoke gdbarch
7000 report_signal_info hook if present.
7001
7002 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * python/py-registers.c : Add 'unordered_map' include.
7005 (gdbpy_new_reggroup): Renamed to...
7006 (gdbpy_get_reggroup): ...this. Update to only create register
7007 group descriptors when needed.
7008 (gdbpy_reggroup_iter_next): Update.
7009
7010 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * python/py-registers.c (gdbpy_register_object_data): New static
7013 global.
7014 (gdbpy_register_object_data_init): New function.
7015 (gdbpy_new_register_descriptor): Renamed to...
7016 (gdbpy_get_register_descriptor): ...this, and update to reuse
7017 existing register descriptors where possible.
7018 (gdbpy_register_descriptor_iter_next): Update.
7019 (gdbpy_initialize_registers): Register new gdbarch data.
7020
7021 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7022
7023 * linux-nat.c (stopped_pids): Make static.
7024
7025 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 PR ada/26235
7028 * gdbtypes.c (ada_discrete_type_low_bound,
7029 ada_discrete_type_high_bound): Handle undefined bounds.
7030
7031 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7032
7033 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7034 declaration.
7035 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7036 function.
7037
7038 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7039
7040 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7041 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7042 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7043 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7044 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7045 method.
7046
7047 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7048
7049 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7050 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7051 which are deprecated in Guile 3.0.
7052 * configure.ac (try_guile_versions): Add "guile-3.0".
7053 * configure (try_guile_versions): Regenerate.
7054 * NEWS: Update entry.
7055
7056 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7057 Doug Evans <dje@google.com>
7058
7059 PR gdb/21104
7060 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7061 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7062 USING_GUILE_BEFORE_2_2.
7063 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7064 Change type to 'scm_t_port_type *'.
7065 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7066 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7067 parameter and honor it. Update callers.
7068 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7069 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7070 functions.
7071 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7072 USING_GUILE_BEFORE_2_2.
7073 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7074 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7075 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7076 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7077 and 'SCM_PORT_TYPE'.
7078 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7079 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7080 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7081 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7082 [!USING_GUILE_BEFORE_2_2]: New functions.
7083 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7084 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7085 'gdbscm_memory_port_read'.
7086 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7087 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7088 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7089 function.
7090 (ioscm_init_memory_port): Remove.
7091 (ioscm_init_memory_port_stream): New function
7092 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7093 function.
7094 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7095 Return scm_from_uint (0).
7096 (gdbscm_set_memory_port_read_buffer_size_x)
7097 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7098 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7099 Return scm_from_uint (0).
7100 (gdbscm_set_memory_port_write_buffer_size_x)
7101 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7102 * configure.ac (try_guile_versions): Add "guile-2.2".
7103 * configure: Regenerate.
7104 * NEWS: Add entry.
7105
7106 2020-07-18 Tom Tromey <tom@tromey.com>
7107
7108 * linux-nat.c (linux_multi_process): Remove.
7109 (linux_nat_target::supports_multi_process): Return true.
7110
7111 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7112
7113 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7114 (riscv_lookup_target_description): Return pointer out of
7115 unique_ptr.
7116 * target-descriptions.c (allocate_target_description): Add
7117 comment.
7118 (target_desc_deleter::operator()): Likewise.
7119 * target-descriptions.h (struct target_desc_deleter): Moved to
7120 gdbsupport/tdesc.h.
7121 (target_desc_up): Likewise.
7122
7123 2020-07-17 Tom Tromey <tromey@adacore.com>
7124
7125 * linux-nat.c (linux_nat_target::supports_non_stop)
7126 (linux_nat_target::always_non_stop_p): Use "true".
7127 (linux_nat_target::supports_disable_randomization): Use "true" and
7128 "false".
7129
7130 2020-07-16 Caroline Tice <cmtice@google.com>
7131
7132 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7133 (RNGLIST_HEADER_SIZE64): New constant definition.
7134 (struct dwop_section_names): Add rnglists_dwo.
7135 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7136 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7137 (struct dwo_sections): Add rnglists field.
7138 (read_attribut_reprocess): Add tag parameter.
7139 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7140 (cu_debug_rnglists_section): New function (decl & definition).
7141 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7142 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7143 die whose range is being checked; get rnglist section from
7144 cu_debug_rnglists_section, to get from either objfile or dwo file as
7145 appropriate. Add cases for DW_RLE_base_addressx,
7146 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7147 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7148 test inside if-condition and updating complaint message.
7149 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7150 dwarf2_rnglists_process.
7151 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7152 dwarf2_ranges_process.
7153 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7154 need_ranges_base and update comment appropriately. Also pass die tag
7155 to dwarf2_ranges_read.
7156 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7157 need_ranges_base and update comment appropriately. Also pass die tag
7158 to dwarf2_ranges_process.
7159 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7160 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7161 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7162 need_ranges_base and update comment appropriately. Also pass die tag
7163 to read_attribute_reprocess and dwarf2_ranges_read.
7164 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7165 and update function comment appropriately.
7166 (read_loclist_index): Call read_loclists_rnglists_header instead of
7167 read_loclist_header.
7168 (read_rnglist_index): New function.
7169 (read_attribute_reprocess): Add tag parameter. Add code for
7170 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7171 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7172
7173 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7174
7175 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7176 being resolved.
7177
7178 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 * arch-utils.c (show_architecture): Update formatting of messages.
7181
7182 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * gdbtypes.h (struct type) <bounds>: Handle array and string
7185 types.
7186 * ada-lang.c (assign_aggregate): Use type::bounds on
7187 array/string type.
7188 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7189 * c-varobj.c (c_number_of_children): Likewise.
7190 (c_describe_child): Likewise.
7191 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7192 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7193 (f_type_print_base): Likewise.
7194 * f-valprint.c (f77_array_offset_tbl): Likewise.
7195 (f77_get_upperbound): Likewise.
7196 (f77_print_array_1): Likewise.
7197 * guile/scm-type.c (gdbscm_type_range): Likewise.
7198 * m2-typeprint.c (m2_array): Likewise.
7199 (m2_is_long_set_of_type): Likewise.
7200 * m2-valprint.c (get_long_set_bounds): Likewise.
7201 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7202 * python/py-type.c (typy_range): Likewise.
7203 * rust-lang.c (rust_internal_print_type): Likewise.
7204 * type-stack.c (type_stack::follow_types): Likewise.
7205 * valarith.c (value_subscripted_rvalue): Likewise.
7206 * valops.c (value_cast): Likewise.
7207
7208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7211 callers to use the equivalent accessor methods.
7212
7213 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7214
7215 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7216 (struct type) <bit_stride>: New method.
7217 (TYPE_BIT_STRIDE): Remove.
7218 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7219
7220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7223 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7224 callers to use the equivalent accessor methods instead.
7225
7226 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7229 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7230 callers to use the equivalent accessor methods instead.
7231
7232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7235 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7236 to use dynamic_prop::kind.
7237
7238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7241 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7242 to get the bound property's kind and check against
7243 PROP_UNDEFINED.
7244
7245 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7248 all callers to use type::range_bounds followed by
7249 dynamic_prop::{low,high}.
7250
7251 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7252
7253 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7254 const_val, set_const_val, baton, set_locexpr, set_loclist,
7255 set_addr_offset, variant_parts, set_variant_parts,
7256 original_type, set_original_type>: New methods.
7257 <kind>: Rename to...
7258 <m_kind>: ... this. Update all users to use the new methods
7259 instead.
7260 <data>: Rename to...
7261 <m_data>: ... this. Update all users to use the new methods
7262 instead.
7263
7264 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * gdbtypes.c (get_discrete_bounds): Return failure if
7267 the range type's bounds are not both defined and constant
7268 values.
7269 (get_array_bounds): Update comment. Remove undefined bound check.
7270
7271 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7274 the type::bounds method directly.
7275
7276 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7279 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7280 are used to set the range type's bounds to use set_bounds.
7281
7282 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7283
7284 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7285
7286 2020-07-10 Pedro Alves <pedro@palves.net>
7287
7288 * gdbthread.h (inferior_ref): Define.
7289 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7290 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7291 * thread.c
7292 (scoped_restore_current_thread::restore):
7293 Adjust to gdb::ref_ptr.
7294 (scoped_restore_current_thread::~scoped_restore_current_thread):
7295 Remove manual decref handling.
7296 (scoped_restore_current_thread::scoped_restore_current_thread):
7297 Adjust to use
7298 inferior_ref::new_reference/thread_info_ref::new_reference.
7299 Incref the thread before calling get_frame_id instead of after.
7300 Let TARGET_CLOSE_ERROR propagate.
7301
7302 2020-07-10 Pedro Alves <pedro@palves.net>
7303
7304 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7305 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7306 NOT_AVAILABLE_ERROR.
7307 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7308 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7309
7310 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7311 Pedro Alves <pedro@palves.net>
7312
7313 PR gdb/26199
7314 * infrun.c (threads_are_resumed_pending_p): Delete.
7315 (do_target_wait): Remove threads_are_executing and
7316 threads_are_resumed_pending_p checks from the inferior_matches
7317 lambda. Update comments.
7318
7319 2020-07-10 Pedro Alves <pedro@palves.net>
7320
7321 PR gdb/26199
7322 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7323 executing threads.
7324
7325 2020-07-10 Pedro Alves <pedro@palves.net>
7326
7327 PR gdb/26199
7328 * infrun.c (handle_no_resumed): Handle multiple targets.
7329
7330 2020-07-10 Pedro Alves <pedro@palves.net>
7331
7332 PR gdb/26199
7333 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7334 target_is_async_p.
7335
7336 2020-07-10 Pedro Alves <pedro@palves.net>
7337
7338 PR gdb/26199
7339 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7340 threads, not all threads.
7341
7342 2020-07-10 Pedro Alves <pedro@palves.net>
7343
7344 PR gdb/26199
7345 * remote.c (remote_target::open_1): Pass remote target pointer as
7346 data to create_async_event_handler.
7347 (remote_async_inferior_event_handler): Mark async event handler
7348 before returning if the remote target still has either pending
7349 events or unacknowledged notifications.
7350
7351 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7352
7353 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7354 declaration.
7355 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7356 function.
7357
7358 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7359
7360 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7361 inferior_ptid.
7362
7363 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7364
7365 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7366 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7367 AT_FREEBSD_PS_STRINGS.
7368
7369 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7370
7371 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7372 of debugfile path on Windows.
7373
7374 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7375
7376 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7377 argument to 'data'.
7378
7379 2020-07-08 Tom Tromey <tromey@adacore.com>
7380
7381 * ada-lang.c (ada_exception_message_1): Use read_memory.
7382
7383 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 PR python/22748
7386 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7387 special handling for inline frames.
7388 * findvar.c (value_of_register_lazy): Skip inline frames when
7389 creating lazy register values.
7390 * frame.c (frame_id_computed_p): Delete definition.
7391 * frame.h (frame_id_computed_p): Delete declaration.
7392
7393 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7394
7395 * NEWS: Mention additions to Python API.
7396 * python/py-arch.c (archpy_register_groups): New function.
7397 (arch_object_methods): Add 'register_groups' method.
7398 * python/py-registers.c (reggroup_iterator_object): New struct.
7399 (reggroup_object): New struct.
7400 (gdbpy_new_reggroup): New function.
7401 (gdbpy_reggroup_to_string): New function.
7402 (gdbpy_reggroup_name): New function.
7403 (gdbpy_reggroup_iter): New function.
7404 (gdbpy_reggroup_iter_next): New function.
7405 (gdbpy_new_reggroup_iterator): New function
7406 (gdbpy_initialize_registers): Register new types.
7407 (reggroup_iterator_object_type): Define new Python type.
7408 (gdbpy_reggroup_getset): New static global.
7409 (reggroup_object_type): Define new Python type.
7410 * python/python-internal.h
7411
7412 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7413
7414 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7415 * python/py-arch.c (archpy_registers): New function.
7416 (arch_object_methods): Add 'registers' method.
7417 * python/py-registers.c: New file.
7418 * python/python-internal.h
7419 (gdbpy_new_register_descriptor_iterator): Declare.
7420 (gdbpy_initialize_registers): Declare.
7421 * python/python.c (do_start_initialization): Call
7422 gdbpy_initialize_registers.
7423 * NEWS: Mention additions to the Python API.
7424
7425 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * NEWS: Mention new Python API method.
7428 * python/py-unwind.c (pending_framepy_architecture): New function.
7429 (pending_frame_object_methods): Add architecture method.
7430
7431 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7432
7433 * gdbarch.c: Regenerate.
7434 * gdbarch.h: Regenerate.
7435 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7436 (gdbarch_data): Use internal_error for the case where
7437 deprecated_set_gdbarch_data was originally needed.
7438 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7439 and use passed in obstack.
7440 (libunwind_frame_set_descr): Should no longer get back NULL from
7441 gdbarch_data.
7442 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7443 type.
7444 * user-regs.c (user_regs_init): Update parameters, and use passed
7445 in obstack.
7446 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7447 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7448
7449 2020-07-06 Tom de Vries <tdevries@suse.de>
7450
7451 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7452 End-Of-Sequence in lte_is_less_than.
7453 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7454 "gdb: Don't reorder line table entries too much when sorting".
7455
7456 2020-07-06 Tom de Vries <tdevries@suse.de>
7457
7458 PR tui/26205
7459 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7460
7461 2020-07-05 Tom de Vries <tdevries@suse.de>
7462
7463 PR build/26187
7464 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7465 std::uncaught_exceptions instead of deprecated
7466 std::uncaught_exception.
7467
7468 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7469
7470 * macroexp.h (macro_stringify): Return
7471 gdb::unique_xmalloc_ptr<char>.
7472 * macroexp.c (macro_stringify): Likewise.
7473 * macrotab.c (fixup_definition): Update.
7474
7475 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7476
7477 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7478 (lex_one_token): Update.
7479 * macroexp.c (struct macro_buffer) <release>: Return
7480 gdb::unique_xmalloc_ptr<char>.
7481 (macro_stringify): Update.
7482 (macro_expand): Update.
7483 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7484 * macroexp.h (macro_expand_next): Likewise.
7485
7486 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * macroexp.h (macro_lookup_ftype): Remove.
7489 (macro_expand, macro_expand_once, macro_expand_next): Remove
7490 lookup function parameters, add scope parameter.
7491 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7492 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7493 * macroscope.h (standard_macro_lookup): Change parameter type
7494 to macro_scope.
7495 * macroscope.c (standard_macro_lookup): Likewise.
7496 * c-exp.y (lex_one_token): Update.
7497 * macrocmd.c (macro_expand_command): Likewise.
7498 (macro_expand_once_command): Likewise.
7499
7500 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * inf-loop.c (inferior_event_handler): Remove client_data param.
7503 * inf-loop.h (inferior_event_handler): Likewise.
7504 * infcmd.c (step_1): Adjust.
7505 * infrun.c (proceed): Adjust.
7506 (fetch_inferior_event): Remove client_data param.
7507 (infrun_async_inferior_event_handler): Adjust.
7508 * infrun.h (fetch_inferior_event): Remove `void *` param.
7509 * linux-nat.c (handle_target_event): Adjust.
7510 * record-btrace.c (record_btrace_handle_async_inferior_event):
7511 Adjust.
7512 * record-full.c (record_full_async_inferior_event_handler):
7513 Adjust.
7514 * remote.c (remote_async_inferior_event_handler): Adjust.
7515
7516 2020-07-01 Tom Tromey <tom@tromey.com>
7517
7518 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7519 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7520
7521 2020-07-01 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7524 tui_gen_win_info.
7525 (tui_win_info::make_window): Merge with
7526 tui_gen_win_info::make_window.
7527 (tui_win_info::make_visible): Move from tui_gen_win_info.
7528 * tui/tui-win.c (tui_win_info::max_width): Move from
7529 tui_gen_win_info.
7530 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7531 type.
7532 <window_factory>: Likewise.
7533 * tui/tui-layout.c (tui_win_info::resize): Move from
7534 tui_gen_win_info.
7535 (make_standard_window): Change return type.
7536 (get_locator_window, tui_get_window_by_name): Likewise.
7537 (tui_layout_window::apply): Remove a cast.
7538 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7539 (struct tui_win_info): Merge with tui_gen_win_info.
7540 (struct tui_gen_win_info): Remove.
7541
7542 2020-07-01 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-stack.h (struct tui_locator_window): Derive from
7545 tui_win_info.
7546 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7547 <can_box>: New method.
7548
7549 2020-07-01 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7552
7553 2020-07-01 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-regs.c (tui_data_window::display_registers_from)
7556 (tui_data_window::display_registers_from)
7557 (tui_data_window::first_data_item_displayed)
7558 (tui_data_window::delete_data_content_windows): Update.
7559 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7560 Remove.
7561 (tui_data_window::check_register_values): Update.
7562 (tui_data_item_window::rerender): Add parameters. Update.
7563 (tui_data_item_window::refresh_window): Remove.
7564 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7565 virtual.
7566 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7567 tui_gen_win_info.
7568 <refresh_window, max_height, min_height>: Remove.
7569 <rerender>: Add parameters.
7570 <x, y, visible>: New members.
7571 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7572 <m_item_width>: New member.
7573
7574 2020-07-01 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-regs.c (tui_data_window::show_register_group)
7577 (tui_data_window::check_register_values): Update.
7578 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7579 from item_no.
7580
7581 2020-07-01 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7584 useless "if".
7585
7586 2020-07-01 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7589 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7590
7591 2020-07-01 Tom Tromey <tom@tromey.com>
7592
7593 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7594 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7595 (struct tui_line_or_address): Move from tui-data.h.
7596 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7597 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7598 (tui_cmd_window, tui_source_window_base, tui_source_window)
7599 (tui_disasm_window): Don't declare.
7600 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7601 to tui-winsource.h.
7602 (SINGLE_KEY): Move to tui-stack.c.
7603
7604 2020-07-01 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7607 std::string.
7608 * tui/tui-regs.c (class tab_expansion_file): New.
7609 (tab_expansion_file::write): New method.
7610 (tui_register_format): Change return type. Use
7611 tab_expansion_file.
7612 (tui_get_register, tui_data_window::display_registers_from)
7613 (tui_data_item_window::rerender): Update.
7614 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7615 * tui/tui-io.c (tui_expand_tabs): Remove.
7616
7617 2020-07-01 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7620
7621 2020-07-01 Fangrui Song <maskray@google.com>
7622
7623 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7624
7625 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7626
7627 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7628 forms for DW_AT_associated and DW_AT_allocated attributes,
7629 which is already checked in function attr_to_dynamic_prop.
7630
7631 2020-06-30 Tom Tromey <tromey@adacore.com>
7632
7633 * dwarf2/read.c (quirk_rust_enum): Correctly call
7634 alloc_rust_variant for default-less enum.
7635
7636 2020-06-30 Tom Tromey <tromey@adacore.com>
7637
7638 PR build/26183:
7639 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7640 gdb::to_string.
7641
7642 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7645 * gdbarch.h: Re-generate.
7646
7647 2020-06-28 Tom Tromey <tom@tromey.com>
7648
7649 * command.h (cmd_types): Remove.
7650 (cmd_type): Don't declare.
7651 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7652 typedef.
7653 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7654 * cli/cli-decode.c (cmd_type): Remove.
7655
7656 2020-06-27 Pedro Alves <palves@redhat.com>
7657
7658 * fork-child.c (prefork_hook): Adjust.
7659 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7660 Delete.
7661 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7662 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7663 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7664 Remove declarations.
7665 (struct inferior) <set_tty, tty>: New methods.
7666 (struct inferior) <terminal>: Rename to ...
7667 (struct inferior) <m_terminal>: ... this and make private.
7668 * main.c (captured_main_1): Adjust.
7669 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7670 (mi_cmd_inferior_tty_show): Adjust.
7671 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7672 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7673
7674 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7675
7676 * configure.ac: Add --enable-libctf: handle --disable-static
7677 properly.
7678 * acinclude.m4: sinclude ../config/enable.m4.
7679 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7680 (LIBCTF): Substitute in.
7681 (CTF_DEPS): New, likewise.
7682 (CLIBS): libctf needs symbols from libbfd: move earlier.
7683 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7684 flags.
7685 * ctfread.c: Surround in ENABLE_LIBCTF.
7686 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7687 * configure: Regenerate.
7688 * config.in: Likewise.
7689
7690 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7693
7694 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * inferior.h (struct inferior) <terminal>: Change type to
7697 gdb::unique_xmalloc_ptr<char>.
7698 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7699 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7700 field, adjust to unique pointer.
7701 (get_inferior_io_terminal): Adjust to unique pointer.
7702
7703 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7706 registers, not just the known core set of registers.
7707
7708 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7711 fflags, frm, and fcsr registers.
7712 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7713 restore groups.
7714 (riscv_tdesc_unknown_reg): New function.
7715 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7716 tdesc_use_registers.
7717 * riscv-tdep.h (struct gdbarch_tdep): Add
7718 unknown_csrs_first_regnum, unknown_csrs_count,
7719 duplicate_fflags_regnum, duplicate_frm_regnum, and
7720 duplicate_fcsr_regnum fields.
7721
7722 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7725 callback, use the callback (when not null) to help number unknown
7726 registers.
7727 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7728 (tdesc_use_registers): Add extra parameter to declaration.
7729
7730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7733 in the file.
7734 (class riscv_pending_register_alias): Likewise.
7735 (riscv_register_feature::register_info): Change 'required_p' field
7736 to 'required', and change its type. Add 'check' member function.
7737 (riscv_register_feature::register_info::check): Define new member
7738 function.
7739 (riscv_xreg_feature): Change initialisation of 'required' field.
7740 (riscv_freg_feature): Likewise.
7741 (riscv_virtual_feature): Likewise.
7742 (riscv_csr_feature): Likewise.
7743 (riscv_check_tdesc_feature): Take extra parameter, the csr
7744 tdesc_feature, rewrite the function to use the new
7745 riscv_register_feature::register_info::check function.
7746 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7747
7748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * features/Makefile: Remove all references to the deleted files
7751 below.
7752 * features/riscv/32bit-csr.c: Deleted.
7753 * features/riscv/32bit-csr.xml: Deleted.
7754 * features/riscv/64bit-csr.c: Deleted.
7755 * features/riscv/64bit-csr.xml: Deleted.
7756 * features/riscv/rebuild-csr-xml.sh: Deleted.
7757
7758 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7761 whitespace error for declaration of names member variable.
7762 (struct riscv_register_feature): Add new prefer_first_name member
7763 variable, and fix whitespace error in declaration of registers.
7764 (riscv_xreg_feature): Initialize prefer_first_name field.
7765 (riscv_freg_feature): Likewise.
7766 (riscv_virtual_feature): Likewise.
7767 (riscv_csr_feature): Likewise.
7768 (riscv_register_name): Expand on comments. Remove register name
7769 modifications for CSR and virtual registers.
7770
7771 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7774 errors.
7775
7776 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7777
7778 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7779 riscv-opc.h.
7780 (class riscv_pending_register_alias): New class.
7781 (riscv_check_tdesc_feature): Take vector of pending aliases and
7782 populate it as appropriate.
7783 (riscv_setup_register_aliases): Delete.
7784 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7785 to riscv_check_tdesc_feature in all cases. Use the vector to
7786 create the register aliases.
7787
7788 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7789
7790 * sol2-tdep.c (sol2_static_transform_name): Remove.
7791 (sol2_init_abi): Don't register it.
7792 * gdbarch.sh (static_transform_name): Remove.
7793 * gdbarch.c, gdbarch.h: Regenerate.
7794
7795 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7796 gdbarch_static_transform_name.
7797 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7798 * stabsread.c (define_symbol) <'X'>: Remove.
7799 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7800 handling.
7801 <'V'>: Likewise.
7802 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7803 <'S'>: Remove call to gdbarch_static_transform_name.
7804
7805 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7806
7807 * procfs.c (procfs_pre_trace): New function.
7808 (procfs_target::create_inferior): Pass it to fork_inferior.
7809
7810 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7811
7812 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7813 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7814 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7815 sol2-tdep.o, sparc-sol2-tdep.o.
7816 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7817 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7818 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7819 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7820
7821 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7822
7823 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7824 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7825 Call sol2_init_abi.
7826 Remove calls to set_gdbarch_skip_solib_resolver,
7827 set_gdbarch_core_pid_to_str.
7828 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7829 (i386_sol2_static_transform_name): Remove.
7830 (i386_sol2_init_abi): Call sol2_init_abi.
7831 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7832 set_gdbarch_static_transform_name,
7833 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7834 Use sol2_sigtramp_p.
7835 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7836 (sol2_sigtramp_p): New function.
7837 (sol2_static_transform_name): New function.
7838 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7839 (sol2_init_abi): New function.
7840 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7841 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7842 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7843 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7844 (sparc_sol2_static_transform_name): Remove.
7845 (sparc32_sol2_init_abi): Call sol2_init_abi.
7846 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7847 set_gdbarch_static_transform_name,
7848 set_gdbarch_skip_solib_resolver,
7849 set_gdbarch_core_pid_to_str.
7850 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7851 (sparc_sol2_static_transform_name): Remove
7852 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7853 call sol2_sigtramp_p.
7854 (sparc64_sol2_init_abi): Call sol2_init_abi.
7855 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7856 set_gdbarch_static_transform_name,
7857 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7858
7859 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7860
7861 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7862 * exec.c (validate_exec_file): If from_tty, set both
7863 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7864 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7865 and from_tty, unconditionally ask a confirmation.
7866
7867 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7868
7869 * target-descriptions.c (tdesc_architecture_name): Protect against
7870 NULL pointer dereference.
7871 (maint_print_xml_tdesc_cmd): New function.
7872 (_initialize_target_descriptions): Register new 'maint print
7873 xml-tdesc' command and give it the filename completer.
7874 * NEWS: Mention new 'maint print xml-tdesc' command.
7875
7876 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * target-descriptions.c (class tdesc_compatible_info): New class.
7879 (struct target_desc): Change type of compatible vector.
7880 (tdesc_compatible_p): Update for change in type of
7881 target_desc::compatible.
7882 (tdesc_compatible_info_list): New function.
7883 (tdesc_compatible_info_arch_name): New function.
7884 (tdesc_add_compatible): Update for change in type of
7885 target_desc::compatible.
7886 (print_c_tdesc::visit_pre): Likewise.
7887
7888 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7891 whitespace to underscore.
7892 (maint_print_c_tdesc_cmd): Use fake filename for target
7893 descriptions that came from the target.
7894 (_initialize_target_descriptions): Add filename command completion
7895 for 'maint print c-tdesc'.
7896
7897 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7898
7899 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7900 lines.
7901
7902 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7903
7904 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7905 lines.
7906 (dwarf2_find_location_expression): Likewise.
7907 (call_site_parameter_matches): Likewise.
7908 (dwarf2_compile_expr_to_ax): Likewise.
7909 (disassemble_dwarf_expression): Likewise.
7910 (loclist_describe_location): Likewise.
7911
7912 2020-06-23 Pedro Alves <palves@redhat.com>
7913
7914 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7915 progspace-and-thread.h. Include scoped-mock-context.h instead.
7916 (register_to_value_test): Use scoped_mock_context.
7917 * regcache.c: Include "scoped-mock-context.h".
7918 (cooked_read_test): Don't error out if a target is already pushed.
7919 Use scoped_mock_context. Adjust.
7920 * scoped-mock-context.h: New file.
7921
7922 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7925 initializer.
7926 (ada_language::is_string_type_p): New member function.
7927 * c-lang.c (c_language_data): Delete la_is_string_type_p
7928 initializer.
7929 (cplus_language_data): Likewise.
7930 (asm_language_data): Likewise.
7931 (minimal_language_data): Likewise.
7932 * d-lang.c (d_language_data): Likewise.
7933 * f-lang.c (f_is_string_type_p): Delete function, implementation
7934 moved to f_language::is_string_type_p.
7935 (f_language_data): Delete la_is_string_type_p initializer.
7936 (f_language::is_string_type_p): New member function,
7937 implementation from f_is_string_type_p.
7938 * go-lang.c (go_is_string_type_p): Delete function, implementation
7939 moved to go_language::is_string_type_p.
7940 (go_language_data): Delete la_is_string_type_p initializer.
7941 (go_language::is_string_type_p): New member function,
7942 implementation from go_is_string_type_p.
7943 * language.c (language_defn::is_string_type_p): Define new member
7944 function.
7945 (default_is_string_type_p): Make static, add comment copied from
7946 header file.
7947 (unknown_language_data): Delete la_is_string_type_p initializer.
7948 (unknown_language::is_string_type_p): New member function.
7949 (auto_language_data): Delete la_is_string_type_p initializer.
7950 (auto_language::is_string_type_p): New member function.
7951 * language.h (language_data): Delete la_is_string_type_p field.
7952 (language_defn::is_string_type_p): Declare new function.
7953 (default_is_string_type_p): Delete desclaration, move comment to
7954 definition.
7955 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7956 moved to m2_language::is_string_type_p.
7957 (m2_language_data): Delete la_is_string_type_p initializer.
7958 (m2_language::is_string_type_p): New member function,
7959 implementation from m2_is_string_type_p.
7960 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7961 initializer.
7962 * opencl-lang.c (opencl_language_data): Likewise.
7963 * p-lang.c (pascal_is_string_type_p): Delete function,
7964 implementation moved to pascal_language::is_string_type_p.
7965 (pascal_language_data): Delete la_is_string_type_p initializer.
7966 (pascal_language::is_string_type_p): New member function,
7967 implementation from pascal_is_string_type_p.
7968 * rust-lang.c (rust_is_string_type_p): Delete function,
7969 implementation moved to rust_language::is_string_type_p.
7970 (rust_language_data): Delete la_is_string_type_p initializer.
7971 (rust_language::is_string_type_p): New member function,
7972 implementation from rust_is_string_type_p.
7973 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7974 is_string_type_p.
7975
7976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * ada-lang.c (ada_language_data): Delete la_print_typedef
7979 initializer.
7980 (ada_language::print_typedef): New member function.
7981 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7982 (cplus_language_data): Likewise.
7983 (asm_language_data): Likewise.
7984 (minimal_language_data): Likewise.
7985 * d-lang.c (d_language_data): Likewise.
7986 * f-lang.c (f_language_data): Likewise.
7987 (f_language::print_typedef): New member function.
7988 * go-lang.c (go_language_data): Delete la_print_typedef
7989 initializer.
7990 * language.c (language_defn::print_typedef): Define member
7991 function.
7992 (unknown_language_data): Delete la_print_typedef initializer.
7993 (unknown_language::print_typedef): New member function.
7994 (auto_language_data): Delete la_print_typedef initializer.
7995 (auto_language::print_typedef): New member function.
7996 * language.h (language_data): Delete la_print_typedef field.
7997 (language_defn::print_typedef): Declare new member function.
7998 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7999 (default_print_typedef): Delete declaration.
8000 * m2-lang.c (m2_language_data): Delete la_print_typedef
8001 initializer.
8002 (m2_language::print_typedef): New member function.
8003 * objc-lang.c (objc_language_data): Delete la_print_typedef
8004 initializer.
8005 * opencl-lang.c (opencl_language_data): Likewise.
8006 * p-lang.c (pascal_language_data): Likewise.
8007 (pascal_language::print_typedef): New member function.
8008 * rust-lang.c (rust_print_typedef): Delete function,
8009 implementation moved to rust_language::print_typedef.
8010 (rust_language): Delete la_print_typedef initializer.
8011 (rust_language::print_typedef): New member function,
8012 implementation from rust_print_typedef.
8013 * typeprint.c (default_print_typedef): Delete.
8014
8015 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8018 (ada_language::printstr): New member function.
8019 * c-lang.c (c_language_data): Delete la_printstr initializer.
8020 (cplus_language_data): Likewise.
8021 (asm_language_data): Likewise.
8022 (minimal_language_data): Likewise.
8023 * d-lang.c (d_language_data): Likewise.
8024 * f-lang.c (f_printstr): Rename to f_language::printstr.
8025 (f_language_data): Delete la_printstr initializer.
8026 (f_language::printstr): New member function, implementation from
8027 f_printstr.
8028 * go-lang.c (go_language_data): Delete la_printstr initializer.
8029 * language.c (language_defn::printstr): Define new member
8030 function.
8031 (unk_lang_printstr): Delete.
8032 (unknown_language_data): Delete la_printstr initializer.
8033 (unknown_language::printstr): New member function.
8034 (auto_language_data): Delete la_printstr initializer.
8035 (auto_language::printstr): New member function.
8036 * language.h (language_data): Delete la_printstr field.
8037 (language_defn::printstr): Declare new member function.
8038 (LA_PRINT_STRING): Update call to printstr.
8039 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8040 (m2_language_data): Delete la_printstr initializer.
8041 (m2_language::printstr): New member function, implementation from
8042 m2_printstr.
8043 * objc-lang.c (objc_language_data): Delete la_printstr
8044 initializer.
8045 * opencl-lang.c (opencl_language_data): Likewise.
8046 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8047 (pascal_language_data): Delete la_printstr initializer.
8048 (pascal_language::printstr): New member function, implementation
8049 from pascal_printstr.
8050 * p-lang.h (pascal_printstr): Delete declaration.
8051 * rust-lang.c (rust_printstr): Update header comment.
8052 (rust_language_data): Delete la_printstr initializer.
8053 (rust_language::printstr): New member function.
8054
8055 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8056
8057 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8058 (ada_language::printchar): New member function.
8059 * c-lang.c (c_language_data): Delete la_printchar initializer.
8060 (cplus_language_data): Likewise.
8061 (asm_language_data): Likewise.
8062 (minimal_language_data): Likewise.
8063 * d-lang.c (d_language_data): Likewise.
8064 * f-lang.c (f_printchar): Rename to f_language::printchar.
8065 (f_language_data): Delete la_printchar initializer.
8066 (f_language::printchar): New member function, implementation from
8067 f_printchar.
8068 * go-lang.c (go_language_data): Delete la_printchar initializer.
8069 * language.c (unk_lang_printchar): Delete.
8070 (language_defn::printchar): Define new member function.
8071 (unknown_language_data): Delete la_printchar initializer.
8072 (unknown_language::printchar): New member function.
8073 (auto_language_data): Delete la_printchar initializer.
8074 (auto_language::printchar): New member function.
8075 * language.h (language_data): Delete la_printchar field.
8076 (language_defn::printchar): Declare new member function.
8077 (LA_PRINT_CHAR): Update call to printchar.
8078 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8079 (m2_language::printchar): New member function.
8080 * objc-lang.c (objc_language_data): Delete la_printchar
8081 initializer.
8082 * opencl-lang.c (opencl_language_data): Likewise.
8083 * p-lang.c (pascal_language_data): Delete la_printchar
8084 initializer.
8085 (pascal_language::printchar): New member function.
8086 * rust-lang.c (rust_printchar): Rename to
8087 rust_language::printchar.
8088 (rust_language_data): Delete la_printchar initializer.
8089 (rust_language::printchar): New member function, implementation
8090 from rust_printchar.
8091
8092 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8095 (ada_language_data): Delete la_emitchar initializer.
8096 (ada_language::emitchar): New member function, implementation from
8097 emit_char.
8098 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8099 (cplus_language_data): Likewise.
8100 (asm_language_data): Likewise.
8101 (minimal_language_data): Likewise.
8102 * d-lang.c (d_language_data): Likewise.
8103 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8104 (f_language_data): Delete la_emitchar initializer.
8105 (f_language::emitchar): New member function, implementation from
8106 f_emit_char.
8107 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8108 * language.c (unk_lang_emit_char): Delete.
8109 (language_defn::emitchar): New member function definition.
8110 (unknown_language_data): Delete la_emitchar initializer.
8111 (unknown_language::emitchar): New member function.
8112 (auto_language_data): Delete la_emitchar initializer.
8113 (auto_language::emitchar): New member function.
8114 * language.h (language_data): Delete la_emitchar field.
8115 (language_defn::emitchar): New member field declaration.
8116 (LA_EMIT_CHAR): Update call to emitchar.
8117 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8118 (m2_language_data): Delete la_emitchar initializer.
8119 (m2_language::emitchar): New member function, implementation from
8120 m2_emit_char.
8121 * objc-lang.c (objc_language_data): Delete la_emitchar
8122 initializer.
8123 * opencl-lang.c (opencl_language_data): Likewise.
8124 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8125 (pascal_language_data): Delete la_emitchar initializer.
8126 (pascal_language::emitchar): New member function, implementation
8127 from pascal_emit_char.
8128 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8129 (rust_language_data): Delete la_emitchar initializer.
8130 (rust_language::emitchar): New member function, implementation
8131 from rust_emitchar.
8132
8133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8136 (ada_language_data): Delete la_post_parser initializer.
8137 (ada_language::post_parser): New member function.
8138 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8139 (cplus_language_data): Likewise.
8140 (asm_language_data): Likewise.
8141 (minimal_language_data): Likewise.
8142 * d-lang.c (d_language_data): Likewise.
8143 * f-lang.c (f_language_data): Likewise.
8144 * go-lang.c (go_language_data): Likewise.
8145 * language.c (unknown_language_data): Likewise.
8146 (auto_language_data): Likewise.
8147 * language.h (language_data): Delete la_post_parser field.
8148 (language_defn::post_parser): New member function.
8149 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8150 * objc-lang.c (objc_language_data): Likewise.
8151 * opencl-lang.c (opencl_language_data): Likewise.
8152 * p-lang.c (pascal_language_data): Likewise.
8153 * parse.c (parse_exp_in_context): Update call to post_parser.
8154 (null_post_parser): Delete definition.
8155 * parser-defs.h (null_post_parser): Delete declaration.
8156 * rust-lang.c (rust_language_data): Delete la_post_parser
8157 initializer.
8158
8159 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8160
8161 * ada-lang.c (parse): Rename to ada_language::parser.
8162 (ada_language_data): Delete la_parser initializer.
8163 (ada_language::parser): New member function, implementation from
8164 parse.
8165 * c-lang.c (c_language_data): Delete la_parser initializer.
8166 (cplus_language_data): Likewise.
8167 (asm_language_data): Likewise.
8168 (minimal_language_data): Likewise.
8169 * d-lang.c (d_language_data): Likewise.
8170 (d_language::parser): New member function.
8171 * f-lang.c (f_language_data): Delete la_parser initializer.
8172 (f_language::parser): New member function.
8173 * go-lang.c (go_language_data): Delete la_parser initializer.
8174 (go_language::parser): New member function.
8175 * language.c (unk_lang_parser): Delete.
8176 (language_defn::parser): Define new member function.
8177 (unknown_language_data): Delete la_parser initializer.
8178 (unknown_language::parser): New member function.
8179 (auto_language_data): Delete la_parser initializer.
8180 (auto_language::parser): New member function.
8181 * language.h (language_data): Delete la_parser field.
8182 (language_defn::parser): Declare new member function.
8183 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8184 (m2_language::parser): New member function.
8185 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8186 * opencl-lang.c (opencl_language_data): Likewise.
8187 * p-lang.c (pascal_language_data): Likewise.
8188 (pascal_language::parser): New member function.
8189 * parse.c (parse_exp_in_context): Update call to parser.
8190 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8191 (rust_language::parser): New member function.
8192
8193 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * top.c (print_gdb_configuration): Print --with-python-libdir
8196 configuration value.
8197
8198 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8199
8200 * NEWS: Mention change to the alias command.
8201
8202 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8203
8204 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8205 (alias_command_completer)
8206 (make_alias_options_def_group): New functions.
8207 (alias_opts, alias_option_defs): New struct and array.
8208 (alias_usage_error): Update usage.
8209 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8210 Use option framework.
8211 (_initialize_cli_cmds): Update alias command help.
8212 Update aliases command help.
8213 (show_user):
8214 Add NULL for new default_args lookup_cmd argument.
8215 (valid_command_p): Rename to validate_aliased_command.
8216 Add NULL for new default_args lookup_cmd argument. Verify that the
8217 aliased_command has no default args.
8218 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8219 (lookup_cmd_1, lookup_cmd): New argument default_args.
8220 (add_alias_cmd):
8221 Add NULL for new default_args lookup_cmd argument.
8222 (print_help_for_command): Show default args under the layout
8223 alias some_alias = some_aliased_cmd some_alias_default_arg.
8224 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8225 xfree default_args in destructor.
8226 * cli/cli-script.c (process_next_line, do_define_command):
8227 Add NULL for new default_args lookup_cmd argument.
8228 * command.h: Declare new default_args argument in lookup_cmd
8229 and lookup_cmd_1.
8230 * completer.c (complete_line_internal_1):
8231 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8232 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8233 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8234 Likewise.
8235 * infcmd.c (_initialize_infcmd): Likewise.
8236 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8237 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8238 * python/py-param.c (add_setshow_generic): Likewise.
8239 * remote.c (_initialize_remote): Likewise.
8240 * top.c (execute_command): Prepend default_args if command has some.
8241 (set_verbose):
8242 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8243 * tracepoint.c (validate_actionline, encode_actions_1):
8244 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8245
8246 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8247
8248 * jit.c (jit_read_descriptor): Use bool as the return type.
8249 (jit_breakpoint_re_set_internal): Use bool as the return type.
8250 Invert the return value logic; return true if the jit breakpoint
8251 has been successfully initialized.
8252 (jit_inferior_init): Update the call to
8253 jit_breakpoint_re_set_internal.
8254
8255 2020-06-22 Pedro Alves <palves@redhat.com>
8256
8257 PR gdb/25939
8258 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8259 Use the current inferior instead. Don't return
8260 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8261 wait again.
8262 * sol-thread.c (sol_thread_target::wait): Don't reference
8263 inferior_ptid.
8264 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8265 (sol_update_thread_list_callback): Use the current inferior's pid
8266 instead of inferior_ptid.
8267
8268 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8269
8270 * procfs.c: Cleanup many comments.
8271
8272 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8273 (AFTER_WATCHFLAG): Replace by value.
8274
8275 (MAIN_PROC_NAME_FORMAT): Inline ...
8276 (create_procinfo): ... here.
8277
8278 (procfs_debug_inferior): Remove SYS_exec handling.
8279 (syscall_is_exec): Likewise.
8280 (procfs_set_exec_trap): Likewise.
8281
8282 (syscall_is_lwp_exit): Inline in callers.
8283 (syscall_is_exit): Likewise.
8284 (syscall_is_exec): Likewise.
8285 (syscall_is_lwp_create): Likewise.
8286
8287 (invalidate_cache): Remove #if 0 code.
8288
8289 (make_signal_thread_runnable): Remove.
8290 (procfs_target::resume): Remove #if 0 code.
8291
8292 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8293
8294 PR gdb/25939
8295 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8296 call ...
8297 (procfs_target::create_inferior): ... here.
8298
8299 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8300
8301 * exec.c (validate_exec_file): Ensure the build-id is up to
8302 date by calling reopen_exec_file (that checks file timestamp
8303 to decide to re-read the file).
8304
8305 2020-06-18 Pedro Alves <palves@redhat.com>
8306
8307 PR gdb/25412
8308 * gdbthread.h (delete_thread, delete_thread_silent)
8309 (find_thread_ptid): Update comments.
8310 * thread.c (current_thread_): New global.
8311 (is_current_thread): Move higher, and reimplement.
8312 (inferior_thread): Reimplement.
8313 (set_thread_exited): Use bool. Add assertions.
8314 (add_thread_silent): Simplify thread-reuse handling by always
8315 calling delete_thread.
8316 (delete_thread): Remove intro comment.
8317 (find_thread_ptid): Skip exited threads.
8318 (switch_to_thread_no_regs): Write to current_thread_.
8319 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8320 INFERIOR_PTID. Clear current_thread_.
8321
8322 2020-06-18 Pedro Alves <palves@redhat.com>
8323
8324 * aix-thread.c (pd_update): Use switch_to_thread.
8325
8326 2020-06-18 Pedro Alves <palves@redhat.com>
8327
8328 * ravenscar-thread.c (ravenscar_thread_target): Update.
8329 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8330 (ravenscar_thread_target::add_active_thread): ... this. Don't
8331 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8332 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8333
8334 2020-06-18 Pedro Alves <palves@redhat.com>
8335
8336 * nat/windows-nat.c (current_windows_thread): Remove.
8337 * nat/windows-nat.h (current_windows_thread): Remove.
8338 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8339 Adjust.
8340 (display_selectors): Adjust to fetch the current
8341 windows_thread_info based on inferior_ptid.
8342 (fake_create_process): No longer write to current_windows_thread.
8343 (windows_nat_target::get_windows_debug_event):
8344 Don't set inferior_ptid or current_windows_thread.
8345 (windows_nat_target::wait): Adjust to not rely on
8346 current_windows_thread.
8347 (do_initial_windows_stuff): Now a method of windows_nat_target.
8348 Switch to the last_ptid thread.
8349 (windows_nat_target::attach): Adjust.
8350 (windows_nat_target::detach): Use switch_to_no_thread instead of
8351 writing to inferior_ptid directly.
8352 (windows_nat_target::create_inferior): Adjust.
8353
8354 2020-06-18 Pedro Alves <palves@redhat.com>
8355
8356 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8357
8358 2020-06-18 Pedro Alves <palves@redhat.com>
8359
8360 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8361 after creating it, instead of writing to inferior_ptid. Don't
8362 write to inferior_ptid.
8363
8364 2020-06-18 Pedro Alves <palves@redhat.com>
8365
8366 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8367
8368 2020-06-18 Pedro Alves <palves@redhat.com>
8369
8370 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8371 it, instead of writing to inferior_ptid.
8372
8373 2020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8376 to inferior_ptid.
8377
8378 2020-06-18 Pedro Alves <palves@redhat.com>
8379
8380 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8381 instead of writing to inferior_ptid directly.
8382
8383 2020-06-18 Pedro Alves <palves@redhat.com>
8384
8385 * corelow.c (core_target::close): Use switch_to_no_thread instead
8386 of writing to inferior_ptid directly.
8387 (add_to_thread_list, core_target_open): Use switch_to_thread
8388 instead of writing to inferior_ptid directly.
8389
8390 2020-06-18 Pedro Alves <palves@redhat.com>
8391
8392 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8393 inferior_ptid.
8394 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8395 inferior_ptid.
8396 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8397 inferior_ptid directly.
8398 (darwin_nat_target::init_thread_list): Switch to thread, instead
8399 of writing to inferior_ptid.
8400 (darwin_nat_target::attach): Don't write to inferior_ptid.
8401 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8402
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8404
8405 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8406 thread.
8407 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8408 Instead use switch_to_thread.
8409 (gnu_nat_target::detach): Use switch_to_no_thread
8410 instead of writing to inferior_ptid directly. Used passed-in
8411 inferior instead of looking up the inferior by pid.
8412
8413 2020-06-18 Pedro Alves <palves@redhat.com>
8414
8415 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8416 inferior_ptid.
8417
8418 2020-06-18 Pedro Alves <palves@redhat.com>
8419
8420 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8421 inferior_ptid.
8422 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8423 thread.
8424 (nto_procfs_target::detach): Avoid referencing
8425 inferior_ptid. Use switch_to_no_thread instead of writing to
8426 inferior_ptid directly.
8427 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8428 instead of writing to inferior_ptid directly.
8429 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8430 to thread.
8431
8432 2020-06-18 Pedro Alves <palves@redhat.com>
8433
8434 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8435 after creating it, instead of writing to inferior_ptid.
8436 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8437 to inferior_ptid directly.
8438 (gdbsim_target::wait): Don't write to inferior_ptid.
8439
8440 2020-06-18 Pedro Alves <palves@redhat.com>
8441
8442 * remote.c (remote_target::remote_notice_new_inferior): Use
8443 switch_to_thread instead of writing to inferior_ptid directly.
8444 (remote_target::add_current_inferior_and_thread): Use
8445 switch_to_no_thread instead of writing to inferior_ptid directly.
8446 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8447 and switch_to_thread instead of using set_current_inferior or
8448 writing to inferior_ptid directly.
8449
8450 2020-06-18 Pedro Alves <palves@redhat.com>
8451
8452 * tracectf.c (ctf_target_open): Switch to added thread instead of
8453 writing to inferior_ptid directly.
8454 (ctf_target::close): Use switch_to_no_thread instead of writing to
8455 inferior_ptid directly.
8456
8457 2020-06-18 Pedro Alves <palves@redhat.com>
8458
8459 * tracefile-tfile.c (tfile_target_open): Don't write to
8460 inferior_ptid directly, instead switch to added thread.
8461 (tfile_target::close): Use switch_to_no_thread instead of writing
8462 to inferior_ptid directly.
8463
8464 2020-06-18 Pedro Alves <palves@redhat.com>
8465
8466 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8467 (procfs_target::detach): Use switch_to_no_thread
8468 instead of writing to inferior_ptid directly.
8469 (do_attach): Change return type to void. Switch to the added
8470 thread.
8471 (procfs_target::create_inferior): Switch to the added thread.
8472 (procfs_do_thread_registers): Don't write to inferior_ptid.
8473
8474 2020-06-18 Pedro Alves <palves@redhat.com>
8475
8476 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8477 of writing to inferior_ptid.
8478 (scoped_restore_exited_inferior): Delete.
8479 (handle_vfork_child_exec_or_exit): Simplify using
8480 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8481 instead of writing to inferior_ptid.
8482 (THREAD_STOPPED_BY): Delete.
8483 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8484 (thread_stopped_by_hw_breakpoint): Delete.
8485 (save_waitstatus): Use
8486 scoped_restore_current_thread+switch_to_thread, and call
8487 target_stopped_by_watchpoint instead of
8488 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8489 instead of thread_stopped_by_sw_breakpoint, and
8490 target_stopped_by_hw_breakpoint instead of
8491 thread_stopped_by_hw_breakpoint.
8492 (handle_inferior_event)
8493 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8494 inferior_ptid directly, nor
8495 set_current_inferior/set_current_program_space. Use
8496 switch_to_thread / switch_to_inferior_no_thread instead.
8497
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8499
8500 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8501 instead of writing to inferior_ptid.
8502
8503 2020-06-18 Pedro Alves <palves@redhat.com>
8504
8505 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8506 added thread.
8507 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8508 to the added thread.
8509 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8510 instead of writing to inferior_ptid.
8511
8512 2020-06-18 Pedro Alves <palves@redhat.com>
8513
8514 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8515 (register_to_value_test): Mock a program_space too. Heap-allocate
8516 the address space. Don't write to inferior_ptid. Use
8517 switch_to_thread instead.
8518
8519 2020-06-18 Pedro Alves <palves@redhat.com>
8520
8521 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8522 Delete.
8523 (find_signalled_thread()): New, factored out from
8524 linux_make_corefile_notes and adjusted to handle exited threads.
8525 (linux_make_corefile_notes): Adjust to use the new
8526 find_signalled_thread.
8527
8528 2020-06-18 Pedro Alves <palves@redhat.com>
8529
8530 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8531 of saving/restoring inferior_ptid.
8532
8533 2020-06-17 Tom Tromey <tom@tromey.com>
8534
8535 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8536 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8537 declare.
8538 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8539
8540 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8541
8542 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8543 of partial symtabs.
8544
8545 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8546
8547 * regformats/reg-arm.dat: Remove.
8548 * regformats/reg-bfin.dat: Remove.
8549 * regformats/reg-cris.dat: Remove.
8550 * regformats/reg-crisv32.dat: Remove.
8551 * regformats/reg-m32r.dat: Remove.
8552 * regformats/reg-tilegx.dat: Remove.
8553 * regformats/reg-tilegx32.dat: Remove.
8554
8555 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * features/Makefile (WHICH): Remove arm files.
8558 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8559 * regformats/arm/arm-with-neon.dat: Remove.
8560 * regformats/arm/arm-with-vfpv2.dat: Remove.
8561 * regformats/arm/arm-with-vfpv3.dat: Remove.
8562
8563 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8564
8565 * features/Makefile (XMLTOC): Remove rx.xml.
8566
8567 2020-06-17 Pedro Alves <palves@redhat.com>
8568
8569 * gdbthread.h (thread_control_state) <trap_expected> Update
8570 comments.
8571
8572 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8575 ada_language::lookup_symbol_nonlocal.
8576 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8577 (ada_language::lookup_symbol_nonlocal): New member function,
8578 implementation from ada_lookup_symbol_nonlocal.
8579 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8580 initializer.
8581 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8582 initializer.
8583 (cplus_language::lookup_symbol_nonlocal): New member function.
8584 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8585 (minimal_language_data) Likewise.
8586 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8587 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8588 initializer.
8589 (d_language::lookup_symbol_nonlocal): New member function.
8590 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8591 initializer.
8592 (f_language::lookup_symbol_nonlocal): New member function.
8593 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8594 initializer.
8595 * language.c (unknown_language_data): Likewise.
8596 (auto_language_data): Likewise.
8597 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8598 field.
8599 (language_defn::lookup_symbol_nonlocal): New member function.
8600 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8601 initializer.
8602 * objc-lang.c (objc_language_data): Likewise.
8603 * opencl-lang.c (opencl_language_data): Likewise.
8604 * p-lang.c (pascal_language_data): Likewise.
8605 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8606 rust_language::lookup_symbol_nonlocal.
8607 (rust_language_data): Delete la_lookup_symbol_nonlocal
8608 initializer.
8609 (rust_language::lookup_symbol_nonlocal): New member function,
8610 implementation from rust_lookup_symbol_nonlocal.
8611 * symtab.c (lookup_symbol_aux): Update call to
8612 lookup_symbol_nonlocal.
8613 (basic_lookup_symbol_nonlocal): Rename to...
8614 (language_defn::lookup_symbol_nonlocal): ...this, and update
8615 header comment. Remove language_defn parameter, and replace with
8616 uses of `this'.
8617 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8618
8619 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8622 initializer.
8623 (ada_language::value_print_inner): New member function.
8624 * c-lang.c (c_language_data): Delete la_value_print_inner
8625 initializer.
8626 (cplus_language_data): Likewise.
8627 (asm_language_data): Likewise.
8628 (minimal_language_data): Likewise.
8629 * d-lang.c (d_language_data): Likewise.
8630 (d_language::value_print_inner): New member function.
8631 * f-lang.c (f_language_data): Delete la_value_print_inner
8632 initializer.
8633 (f_language::value_print_inner): New member function.
8634 * f-lang.h (f_value_print_innner): Rename to...
8635 (f_value_print_inner): ...this (note spelling of 'inner').
8636 * f-valprint.c (f_value_print_innner): Rename to...
8637 (f_value_print_inner): ...this (note spelling of 'inner').
8638 * go-lang.c (go_language_data): Delete la_value_print_inner
8639 initializer.
8640 (go_language::value_print_inner): New member function.
8641 * language.c (language_defn::value_print_inner): Define new member
8642 function.
8643 (unk_lang_value_print_inner): Delete.
8644 (unknown_language_data): Delete la_value_print_inner initializer.
8645 (unknown_language::value_print_inner): New member function.
8646 (auto_language_data): Delete la_value_print_inner initializer.
8647 (auto_language::value_print_inner): New member function.
8648 * language.h (language_data): Delete la_value_print_inner field.
8649 (language_defn::value_print_inner): Delcare new member function.
8650 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8651 initializer.
8652 (m2_language::value_print_inner): New member function.
8653 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8654 initializer.
8655 * opencl-lang.c (opencl_language_data): Likewise.
8656 * p-lang.c (pascal_language_data): Likewise.
8657 (pascal_language::value_print_inner): New member function.
8658 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8659 initializer.
8660 (rust_language::value_print_inner): New member function.
8661 * valprint.c (do_val_print): Update call to value_print_inner.
8662
8663 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * ada-lang.c (ada_language_data): Delete la_value_print
8666 initializer.
8667 (ada_language::value_print): New member function.
8668 * c-lang.c (c_language_data): Delete la_value_print initializer.
8669 (cplus_language_data): Likewise.
8670 (asm_language_data): Likewise.
8671 (minimal_language_data): Likewise.
8672 * d-lang.c (d_language_data): Likewise.
8673 * f-lang.c (f_language_data): Likewise.
8674 * go-lang.c (go_language_data): Likewise.
8675 * language.c (unk_lang_value_print): Delete.
8676 (language_defn::value_print): Define new member function.
8677 (unknown_language_data): Delete la_value_print initializer.
8678 (unknown_language::value_print): New member function.
8679 (auto_language_data): Delete la_value_print initializer.
8680 (auto_language::value_print): New member function.
8681 * language.h (language_data): Delete la_value_print field.
8682 (language_defn::value_print): Declare new member function.
8683 (LA_VALUE_PRINT): Update call to value_print.
8684 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8685 * objc-lang.c (objc_language_data): Likewise.
8686 * opencl-lang.c (opencl_language_data): Likewise.
8687 * p-lang.c (pascal_language_data): Likewise.
8688 (pascal_language::value_print): New member function.
8689 * rust-lang.c (rust_language_data): Delete la_value_print
8690 initializer.
8691
8692 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * ada-lang.c (ada_watch_location_expression): Rename to
8695 ada_language::watch_location_expression.
8696 (ada_language_data): Delete la_watch_location_expression
8697 initializer.
8698 (ada_language::watch_location_expression): New member function,
8699 implementation from ada_watch_location_expression.
8700 * breakpoint.c (watch_command_1): Update call to
8701 watch_location_expression.
8702 * c-lang.c (c_watch_location_expression): Rename to
8703 language_defn::watch_location_expression.
8704 (c_language_data): Delete la_watch_location_expression
8705 initializer.
8706 (cplus_language_data): Likewise.
8707 (asm_language_data): Likewise.
8708 (minimal_language_data): Likewise.
8709 * c-lang.h (c_watch_location_expression): Delete declaration.
8710 * d-lang.c (d_language_data): Delete la_watch_location_expression
8711 initializer.
8712 * f-lang.c (f_language_data): Likewise.
8713 * go-lang.c (go_language_data): Likewise.
8714 * language.c (language_defn::watch_location_expression): Member
8715 function implementation from c_watch_location_expression.
8716 (unknown_language_data): Delete la_watch_location_expression
8717 initializer.
8718 (auto_language_data): Likewise.
8719 * language.h (language_data): Delete la_watch_location_expression
8720 field.
8721 (language_defn::watch_location_expression): Declare new member
8722 function.
8723 * m2-lang.c (m2_language_data): Delete
8724 la_watch_location_expression initializer.
8725 * objc-lang.c (objc_language_data): Likewise.
8726 * opencl-lang.c (opencl_language_data): Likewise.
8727 * p-lang.c (pascal_language_data): Likewise.
8728 * rust-lang.c (rust_watch_location_expression): Rename to
8729 rust_language::watch_location_expression.
8730 (rust_language_data): Delete la_watch_location_expression
8731 initializer.
8732 (rust_language::watch_location_expression): New member function,
8733 implementation from rust_watch_location_expression.
8734
8735 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8738 ada_language::collect_symbol_completion_matches.
8739 (ada_language_data): Delete la_collect_symbol_completion_matches
8740 initializer.
8741 (ada_language::collect_symbol_completion_matches): New member
8742 function, implementation from
8743 ada_collect_symbol_completion_matches.
8744 * c-lang.c (c_language_data): Delete
8745 la_collect_symbol_completion_matches initializer.
8746 (cplus_language_data): Likewise.
8747 (asm_language_data): Likewise.
8748 (minimal_language_data): Likewise.
8749 * d-lang.c (d_language_data): Likewise.
8750 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8751 f_language::collect_symbol_completion_matches.
8752 (f_language_data): Delete la_collect_symbol_completion_matches
8753 initializer.
8754 (f_language::collect_symbol_completion_matches) New member
8755 function, implementation from f_collect_symbol_completion_matches.
8756 * go-lang.c (go_language_data): Delete
8757 la_collect_symbol_completion_matches initializer.
8758 * language.c (unknown_language_data): Likewise.
8759 (auto_language_data): Likewise.
8760 * language.h (language_data): Delete
8761 la_collect_symbol_completion_matches field.
8762 (language_defn::collect_symbol_completion_matches): New member
8763 function.
8764 * m2-lang.c (m2_language_data): Delete
8765 la_collect_symbol_completion_matches initializer.
8766 * objc-lang.c (objc_language_data): Likewise.
8767 * opencl-lang.c (opencl_language_data): Likewise.
8768 * p-lang.c (pascal_language_data): Likewise.
8769 * rust-lang.c (rust_language_data): Likewise.
8770 * symtab.c (default_collect_symbol_completion_matches): Delete.
8771 (collect_symbol_completion_matches): Update call to
8772 collect_symbol_completion_matches.
8773 (collect_symbol_completion_matches_type): Likewise.
8774 * symtab.h (default_collect_symbol_completion_matches): Delete
8775 declaration.
8776
8777 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8780 (ada_language_data): Delete la_word_break_characters initializer.
8781 (ada_language::word_break_characters): New member function.
8782 * c-lang.c (c_language_data): Delete la_word_break_characters
8783 initializer.
8784 (cplus_language_data): Likewise.
8785 (asm_language_data): Likewise.
8786 (minimal_language_data): Likewise.
8787 * completer.c: Update global comment.
8788 (advance_to_expression_complete_word_point): Update call to
8789 word_break_characters.
8790 (complete_files_symbols): Likewise.
8791 (complete_line_internal_1): Likewise.
8792 (default_completer_handle_brkchars): Likewise.
8793 (skip_quoted_chars): Likewise.
8794 * d-lang.c (d_language_data): Delete la_word_break_characters
8795 initializer.
8796 * f-lang.c (f_word_break_characters): Delete.
8797 (f_language_data): Delete la_word_break_characters initializer.
8798 (f_language::word_break_characters): New member function.
8799 * go-lang.c (go_language_data): Delete la_word_break_characters
8800 initializer.
8801 * language.c (unknown_language_data): Likewise.
8802 (auto_language_data): Likewise.
8803 * language.h (default_word_break_characters): Move declaration to
8804 earlier in the file.
8805 (language_data): Delete la_word_break_characters field.
8806 (language_defn::word_break_characters): New member function.
8807 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8808 initializer.
8809 * objc-lang.c (objc_language_data): Likewise.
8810 * opencl-lang.c (opencl_language_data): Likewise.
8811 * p-lang.c (pascal_language_data): Likewise.
8812 * rust-lang.c (rust_language_data): Likewise.
8813
8814 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8817 (ada_language_data): Delete la_get_symbol_name_matcher
8818 initializer.
8819 (language_defn::get_symbol_name_matcher_inner): New member
8820 function.
8821 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8822 initializer.
8823 (cplus_language_data): Likewise.
8824 (cplus_language::get_symbol_name_matcher_inner): New member
8825 function.
8826 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8827 (minimal_language_data): Likewise.
8828 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8829 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8830 initializer.
8831 * dictionary.c (iter_match_first_hashed): Update call to
8832 get_symbol_name_matcher.
8833 (iter_match_next_hashed): Likewise.
8834 (iter_match_next_linear): Likewise.
8835 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8836 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8837 initializer.
8838 (f_language::get_symbol_name_matcher_inner): New member function.
8839 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8840 initializer.
8841 * language.c (default_symbol_name_matcher): Update header comment,
8842 make static.
8843 (language_defn::get_symbol_name_matcher): New definition.
8844 (language_defn::get_symbol_name_matcher_inner): Likewise.
8845 (get_symbol_name_matcher): Delete.
8846 (unknown_language_data): Delete la_get_symbol_name_matcher
8847 initializer.
8848 (auto_language_data): Likewise.
8849 * language.h (language_data): Delete la_get_symbol_name_matcher
8850 field.
8851 (language_defn::get_symbol_name_matcher): New member function.
8852 (language_defn::get_symbol_name_matcher_inner): Likewise.
8853 (default_symbol_name_matcher): Delete declaration.
8854 * linespec.c (find_methods): Update call to
8855 get_symbol_name_matcher.
8856 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8857 initializer.
8858 * minsyms.c (lookup_minimal_symbol): Update call to
8859 get_symbol_name_matcher.
8860 (iterate_over_minimal_symbols): Likewise.
8861 * objc-lang.c (objc_language_data): Delete
8862 la_get_symbol_name_matcher initializer.
8863 * opencl-lang.c (opencl_language_data): Likewise.
8864 * p-lang.c (pascal_language_data): Likewise.
8865 * psymtab.c (psymbol_name_matches): Update call to
8866 get_symbol_name_matcher.
8867 * rust-lang.c (rust_language_data): Delete
8868 la_get_symbol_name_matcher initializer.
8869 * symtab.c (symbol_matches_search_name): Update call to
8870 get_symbol_name_matcher.
8871 (compare_symbol_name): Likewise.
8872
8873 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8874
8875 * ada-lang.c (ada_language_data): Delete la_compute_program
8876 initializer.
8877 * c-lang.c (c_language_data): Likewise.
8878 (c_language::compute_program): New member function.
8879 (cplus_language_data): Delete la_compute_program initializer.
8880 (cplus_language::compute_program): New member function.
8881 (asm_language_data): Delete la_compute_program initializer.
8882 (minimal_language_data): Likewise.
8883 * c-lang.h (c_compute_program): Update comment.
8884 (cplus_compute_program): Likewise.
8885 * compile/compile-c-support.c (c_compute_program): Likewise.
8886 (cplus_compute_program): Likewise.
8887 * compile/compile.c (compile_to_object): Update call to
8888 la_compute_program.
8889 * d-lang.c (d_language_data): Delete la_compute_program
8890 initializer.
8891 * f-lang.c (f_language_data): Likewise.
8892 * go-lang.c (go_language_data): Likewise.
8893 * language.c (unknown_language_data): Likewise.
8894 (auto_language_data): Likewise.
8895 * language.h (language_data): Delete la_compute_program field.
8896 (language_defn::compute_program): New member function.
8897 * m2-lang.c (m2_language_data): Delete la_compute_program
8898 initializer.
8899 * objc-lang.c (objc_language_data): Likewise.
8900 * opencl-lang.c (opencl_language_data): Likewise.
8901 * p-lang.c (pascal_language_data): Likewise.
8902 * rust-lang.c (rust_language_data): Likewise.
8903
8904 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8905
8906 * ada-lang.c (ada_language_data) Delete
8907 la_class_name_from_physname initializer.
8908 * c-lang.c (c_language_data): Likewise.
8909 (cplus_language_data): Likewise.
8910 (cplus_language::class_name_from_physname): New member function.
8911 (asm_language_data): Delete la_class_name_from_physname
8912 initializer.
8913 (minimal_language_data): Likewise.
8914 * d-lang.c (d_language_data): Likewise.
8915 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8916 method on language_defn class.
8917 (guess_full_die_structure_name): Likewise.
8918 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8919 initializer.
8920 * go-lang.c (go_language_data): Likewise.
8921 * language.c (language_class_name_from_physname): Delete.
8922 (unk_lang_class_name): Delete.
8923 (unknown_language_data): Delete la_class_name_from_physname
8924 initializer.
8925 (auto_language_data): Likewise.
8926 * language.h (language_data): Delete la_class_name_from_physname
8927 field.
8928 (language_defn::class_name_from_physname): New function.
8929 (language_class_name_from_physname): Delete declaration.
8930 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8931 initializer.
8932 * objc-lang.c (objc_language_data): Likewise.
8933 * opencl-lang.c (opencl_language_data): Likewise.
8934 * p-lang.c (pascal_language_data): Likewise.
8935 * rust-lang.c (rust_language_data): Likewise.
8936
8937 2020-06-16 Tom Tromey <tom@tromey.com>
8938
8939 * tui/tui-data.h (STATUS_NAME): New macro.
8940 * tui/tui-layout.c (tui_remove_some_windows)
8941 (initialize_known_windows, tui_register_window)
8942 (tui_layout_split::remove_windows, initialize_layouts)
8943 (tui_new_layout_command): Don't use hard-coded window names.
8944
8945 2020-06-16 Tom Tromey <tom@tromey.com>
8946
8947 PR tui/25348:
8948 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8949 tui_initialize_readline. Only run once. Call rl_initialize.
8950 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8951 tui_initialize_readline.
8952 * tui/tui-io.c (tui_setup_io): Call
8953 tui_ensure_readline_initialized.
8954 * tui/tui-interp.c (tui_interp::init): Update.
8955
8956 2020-06-16 Tom Tromey <tom@tromey.com>
8957
8958 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8959 Also preserve the status window.
8960
8961 2020-06-16 Tom Tromey <tom@tromey.com>
8962
8963 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8964 where m_window==nullptr.
8965
8966 2020-06-15 Tom Tromey <tromey@adacore.com>
8967
8968 * windows-nat.c (windows_nat::handle_output_debug_string):
8969 Update.
8970 (windows_nat::handle_ms_vc_exception): Update.
8971 * target.h (target_read_string): Change API.
8972 * target.c (target_read_string): Change API.
8973 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8974 Update.
8975 * solib-frv.c (frv_current_sos): Update.
8976 * solib-dsbt.c (dsbt_current_sos): Update.
8977 * solib-darwin.c (darwin_current_sos): Update.
8978 * linux-thread-db.c (inferior_has_bug): Update.
8979 * expprint.c (print_subexp_standard): Update.
8980 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8981 (ada_exception_message_1): Update.
8982
8983 2020-06-15 Tom Tromey <tromey@adacore.com>
8984
8985 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8986
8987 2020-06-15 Tom Tromey <tromey@adacore.com>
8988
8989 * valprint.c (read_string): Update comment.
8990 * target.c (MIN): Remove.
8991 (target_read_string): Rewrite.
8992
8993 2020-06-15 Tom Tromey <tromey@adacore.com>
8994
8995 * corefile.c (read_memory_string): Remove.
8996 * ada-valprint.c (ada_value_print_ptr): Update.
8997 * ada-lang.h (ada_tag_name): Change return type.
8998 * ada-lang.c (type_from_tag): Update.
8999 (ada_tag_name_from_tsd): Change return type. Use
9000 target_read_string.
9001 (ada_tag_name): Likewise.
9002 * gdbcore.h (read_memory_string): Don't declare.
9003
9004 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9005
9006 * symtab.c (rbreak_command): Ignore Windows drive colon.
9007
9008 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * NEWS: Mention removed GDBserver host support.
9011
9012 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9013
9014 * features/riscv/rebuild-csr-xml.sh: Updated.
9015
9016 2020-06-11 Tom Tromey <tom@tromey.com>
9017
9018 PR gdb/18318:
9019 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9020
9021 2020-06-09 Jonny Grant <jg@jguk.org>
9022 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9023
9024 * main.c (captured_main_1): Don't print new line after help.
9025 (print_gdb_help): add mailing list and IRC channel information
9026 to --help. Add new lines between items in the footer. Remove
9027 quotes around bug url.
9028
9029 2020-06-11 Keith Seitz <keiths@redhat.com>
9030
9031 PR gdb/21356
9032 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9033 Resolve typedefs for type length calculations.
9034
9035 2020-06-10 Tom de Vries <tdevries@suse.de>
9036
9037 PR ada/24713
9038 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9039 (write_psymbols): Enable .gdb_index for ada.
9040 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9041 ada.
9042
9043 2020-06-10 Tom de Vries <tdevries@suse.de>
9044
9045 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9046 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9047 namei" instead of "const char *name" argument.
9048 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9049 dw2_symtab_iter_init.
9050
9051 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9054 to use type::field and field::type instead.
9055
9056 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9059 to use field::type instead.
9060
9061 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9062
9063 * gdbtypes.h (struct field) <type, set_type>: New methods.
9064 Rename `type` field to...
9065 <m_type>: ... this. Change references throughout to use type or
9066 set_type methods.
9067 (FIELD_TYPE): Use field::type. Change call sites that modify
9068 the field's type to use field::set_type instead.
9069
9070 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9073 to use type::index_type instead.
9074
9075 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9078 methods.
9079 (TYPE_INDEX_TYPE): Use type::index_type.
9080 * gdbtypes.c (create_array_type_with_stride): Likewise.
9081
9082 2020-06-07 Tom Tromey <tom@tromey.com>
9083
9084 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9085 parameter.
9086 (generic_value_print): Update.
9087
9088 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9089
9090 Revert commit 982a38f60b0.
9091 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9092
9093 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9094
9095 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9096 avoid use after free.
9097
9098 2020-06-05 Tom de Vries <tdevries@suse.de>
9099
9100 * NEWS: Fix typos.
9101
9102 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9105 the per_bfd object.
9106 (dwarf2_read_debug_names): Likewise.
9107 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9108 object when re-using a per_bfd object with an index.
9109
9110 2020-06-03 Tom de Vries <tdevries@suse.de>
9111
9112 PR symtab/26046
9113 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9114 children for C++.
9115 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9116 DW_TAG_subprogram.
9117
9118 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * ada-lang.c (ada_language_data): Delete skip_trampoline
9121 initializer.
9122 * c-lang.c (c_language_data): Likewise.
9123 (cplus_language_data): Likewise.
9124 (cplus_language::skip_trampoline): New member function.
9125 (asm_language_data): Delete skip_trampoline initializer.
9126 (minimal_language_data): Likewise.
9127 * d-lang.c (d_language_data): Likewise.
9128 * f-lang.c (f_language_data): Likewise.
9129 * go-lang.c (go_language_data): Likewise.
9130 * language.c (unk_lang_trampoline): Delete function.
9131 (skip_language_trampoline): Update.
9132 (unknown_language_data): Delete skip_trampoline initializer.
9133 (auto_language_data): Likewise.
9134 * language.h (language_data): Delete skip_trampoline field.
9135 (language_defn::skip_trampoline): New function.
9136 * m2-lang.c (m2_language_data): Delete skip_trampoline
9137 initializer.
9138 * objc-lang.c (objc_skip_trampoline): Delete function, move
9139 implementation to objc_language::skip_trampoline.
9140 (objc_language_data): Delete skip_trampoline initializer.
9141 (objc_language::skip_trampoline): New member function with
9142 implementation from objc_skip_trampoline.
9143 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9144 initializer.
9145 * p-lang.c (pascal_language_data): Likewise.
9146 * rust-lang.c (rust_language_data): Likewise.
9147
9148 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9151 (ada_language::demangle): New member function.
9152 * c-lang.c (c_language_data): Delete la_demangle initializer.
9153 (cplus_language_data): Delete la_demangle initializer.
9154 (cplus_language::demangle): New member function.
9155 (asm_language_data): Delete la_demangle initializer.
9156 (minimal_language_data): Delete la_demangle initializer.
9157 * d-lang.c (d_language_data): Delete la_demangle initializer.
9158 (d_language::demangle): New member function.
9159 * f-lang.c (f_language_data): Delete la_demangle initializer.
9160 (f_language::demangle): New member function.
9161 * go-lang.c (go_language_data): Delete la_demangle initializer.
9162 (go_language::demangle): New member function.
9163 * language.c (language_demangle): Update.
9164 (unk_lang_demangle): Delete.
9165 (unknown_language_data): Delete la_demangle initializer.
9166 (unknown_language::demangle): New member function.
9167 (auto_language_data): Delete la_demangle initializer.
9168 (auto_language::demangle): New member function.
9169 * language.h (language_data): Delete la_demangle field.
9170 (language_defn::demangle): New function.
9171 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9172 * objc-lang.c (objc_language_data): Delete la_demangle
9173 initializer.
9174 (objc_language::demangle): New member function.
9175 * opencl-lang.c (opencl_language_data): Delete la_demangle
9176 initializer.
9177 * p-lang.c (pascal_language_data): Likewise.
9178 * rust-lang.c (rust_language_data): Likewise.
9179 (rust_language::demangle): New member function.
9180
9181 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9182
9183 * ada-lang.c (ada_language_data): Delete la_print_type
9184 initializer.
9185 (ada_language::print_type): New member function.
9186 * c-lang.c (c_language_data): Delete la_print_type initializer.
9187 (c_language::print_type): New member function.
9188 (cplus_language_data): Delete la_print_type initializer.
9189 (cplus_language::print_type): New member function.
9190 (asm_language_data): Delete la_print_type initializer.
9191 (asm_language::print_type): New member function.
9192 (minimal_language_data): Delete la_print_type initializer.
9193 (minimal_language::print_type): New member function.
9194 * d-lang.c (d_language_data): Delete la_print_type initializer.
9195 (d_language::print_type): New member function.
9196 * f-lang.c (f_language_data): Delete la_print_type initializer.
9197 (f_language::print_type): New member function.
9198 * go-lang.c (go_language_data): Delete la_print_type initializer.
9199 (go_language::print_type): New member function.
9200 * language.c (unk_lang_print_type): Delete.
9201 (unknown_language_data): Delete la_print_type initializer.
9202 (unknown_language::print_type): New member function.
9203 (auto_language_data): Delete la_print_type initializer.
9204 (auto_language::print_type): New member function.
9205 * language.h (language_data): Delete la_print_type field.
9206 (language_defn::print_type): New function.
9207 (LA_PRINT_TYPE): Update.
9208 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9209 (m2_language::print_type): New member function.
9210 * objc-lang.c (objc_language_data): Delete la_print_type
9211 initializer.
9212 (objc_language::print_type): New member function.
9213 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9214 to opencl_language::print_type.
9215 (opencl_language_data): Delete la_print_type initializer.
9216 (opencl_language::print_type): New member function, implementation
9217 from opencl_print_type.
9218 * p-lang.c (pascal_language_data): Delete la_print_type
9219 initializer.
9220 (pascal_language::print_type): New member function.
9221 * rust-lang.c (rust_print_type): Delete, implementation moved to
9222 rust_language::print_type.
9223 (rust_language_data): Delete la_print_type initializer.
9224 (rust_language::print_type): New member function, implementation
9225 from rust_print_type.
9226
9227 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9228
9229 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9230 implementation moves to...
9231 (ada_language::sniff_from_mangled_name): ...here. Update return
9232 type.
9233 (ada_language_data): Delete la_sniff_from_mangled_name
9234 initializer.
9235 * c-lang.c (c_language_data): Likewise.
9236 (cplus_language_data): Likewise.
9237 (cplus_language::sniff_from_mangled_name): New member function,
9238 implementation taken from gdb_sniff_from_mangled_name.
9239 (asm_language_data): Delete la_sniff_from_mangled_name
9240 initializer.
9241 (minimal_language_data): Likewise.
9242 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9243 implementation moves to cplus_language::sniff_from_mangled_name.
9244 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9245 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9246 moves to...
9247 (d_language::sniff_from_mangled_name): ...here.
9248 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9249 * f-lang.c (f_language_data): Likewise.
9250 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9251 moves to...
9252 (go_language::sniff_from_mangled_name): ...here.
9253 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9254 * language.c (language_sniff_from_mangled_name): Delete.
9255 (unknown_language_data): Delete la_sniff_from_mangled_name
9256 initializer.
9257 (auto_language_data): Likewise.
9258 * language.h (language_data): Delete la_sniff_from_mangled_name
9259 field.
9260 (language_defn::sniff_from_mangled_name): New function.
9261 (language_sniff_from_mangled_name): Delete declaration.
9262 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9263 field.
9264 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9265 implementation moves to...
9266 (objc_language::sniff_from_mangled_name): ...here.
9267 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9268 * opencl-lang.c (opencl_language_data): Likewise.
9269 * p-lang.c (pascal_language_data): Likewise.
9270 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9271 implementation moves to...
9272 (rust_language::sniff_from_mangled_name): ...here.
9273 (rust_language_data): Delete la_sniff_from_mangled_name
9274 initializer.
9275 * symtab.c (symbol_find_demangled_name): Call
9276 sniff_from_mangled_name member function.
9277
9278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9281 initializer.
9282 * c-lang.c (c_language_data): Likewise.
9283 (cplus_language_data): Likewise.
9284 (cplus_language::search_name_hash): New member function.
9285 (asm_language_data): Delete la_search_name_hash initializer.
9286 (minimal_language_data): Likewise.
9287 * d-lang.c (d_language_data): Likewise.
9288 * dictionary.c (default_search_name_hash): Rename to...
9289 (language_defn::search_name_hash): ...this.
9290 * f-lang.c (f_language_data): Likewise.
9291 (f_language::search_name_hash): New member function.
9292 * go-lang.c (go_language_data): Delete la_search_name_hash
9293 initializer.
9294 * language.c (unknown_language_data): Likewise.
9295 (auto_language_data): Likewise.
9296 * language.h (struct language_data): Delete la_search_name_hash
9297 field.
9298 (language_defn::search_name_hash): Declare new member function.
9299 (default_search_name_hash): Delete declaration.
9300 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9301 initializer.
9302 * objc-lang.c (objc_language_data): Likewise.
9303 * opencl-lang.c (opencl_language_data): Likewise.
9304 * p-lang.c (pascal_language_data): Likewise.
9305 * rust-lang.c (rust_language_data): Likewise.
9306 * symtab.c (search_name_hash): Update call.
9307
9308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9311 initializer.
9312 * c-lang.c (class compile_instance): Declare.
9313 (c_language_data): Delete la_get_compile_instance initializer.
9314 (c_language::get_compile_instance): New member function.
9315 (cplus_language_data): Delete la_get_compile_instance initializer.
9316 (cplus_language::get_compile_instance): New member function.
9317 (asm_language_data): Delete la_get_compile_instance initializer.
9318 (minimal_language_data): Likewise.
9319 * c-lang.h (c_get_compile_context): Update comment.
9320 (cplus_get_compile_context): Update comment.
9321 * compile/compile.c (compile_to_object): Update calls, don't rely
9322 on function pointer being NULL.
9323 * d-lang.c (d_language_data): Delete la_get_compile_instance
9324 initializer.
9325 * f-lang.c (f_language_data): Likewise.
9326 * go-lang.c (go_language_data): Likewise.
9327 * language.c (unknown_language_data): Likewise.
9328 (auto_language_data): Likewise.
9329 * language.h (language_data): Delete la_get_compile_instance field.
9330 (language_defn::get_compile_instance): New member function.
9331 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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
9338 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * ada-lang.c (ada_add_all_symbols): Update comment.
9341 (ada_iterate_over_symbols): Delete, move implementation to...
9342 (ada_language::iterate_over_symbols): ...here, a new member
9343 function, rewrite to use range based for loop.
9344 (ada_language_data): Delete la_iterate_over_symbols initializer.
9345 * c-lang.c (c_language_data): Likewise.
9346 (cplus_language_data): Likewise.
9347 (asm_language_data): Likewise.
9348 (minimal_language_data): Likewise.
9349 * d-lang.c (d_language_data): Likewise.
9350 * f-lang.c (f_language_data): Likewise.
9351 * go-lang.c (go_language_data): Likewise.
9352 * language.c (unknown_language_data): Likewise.
9353 (auto_language_data): Likewise.
9354 * language.h (language_data): Delete la_iterate_over_symbols field.
9355 (language_defn::iterate_over_symbols): New member function.
9356 (LA_ITERATE_OVER_SYMBOLS): Update.
9357 * linespec.c (iterate_over_all_matching_symtabs): Update.
9358 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9359 initializer.
9360 * objc-lang.c (objc_language_data): Likewise.
9361 * opencl-lang.c (opencl_language_data): Likewise.
9362 * p-lang.c (pascal_language_data): Likewise.
9363 * rust-lang.c (rust_language_data): Likewise.
9364
9365 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9366
9367 * ada-lang.c (ada_language_data): Delete
9368 la_lookup_transparent_type initializer.
9369 * c-lang.c (c_language_data): Likewise.
9370 (cplus_language_data): Likewise.
9371 (cplus_language::lookup_transparent_type): New member function.
9372 (asm_language_data): Delete la_lookup_transparent_type
9373 initializer.
9374 (minimal_language_data): Likewise.
9375 * d-lang.c (d_language_data): Likewise.
9376 * f-lang.c (f_language_data): Likewise.
9377 * go-lang.c (go_language_data): Likewise.
9378 * language.c (unknown_language_data): Likewise.
9379 (auto_language_data): Likewise.
9380 * language.h (struct language_data): Delete
9381 la_lookup_transparent_type field.
9382 (language_defn::lookup_transparent_type): New member function.
9383 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9384 initializer.
9385 * objc-lang.c (objc_language_data): Likewise.
9386 * opencl-lang.c (opencl_language_data): Likewise.
9387 * p-lang.c (pascal_language_data): Likewise.
9388 * rust-lang.c (rust_language_data): Likewise.
9389 * symtab.c (symbol_matches_domain): Update call.
9390
9391 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9392
9393 * ada-lang.c (ada_language_arch_info): Delete function, move
9394 implementation to...
9395 (ada_language::language_arch_info): ...here, a new member
9396 function.
9397 (ada_language_data): Delete la_language_arch_info.
9398 * c-lang.c (c_language_data): Likewise.
9399 (c_language::language_arch_info): New member function.
9400 (cplus_language_arch_info): Delete function, move
9401 implementation to...
9402 (cplus_language::language_arch_info): ...here, a new member
9403 function.
9404 (cplus_language_data): Delete la_language_arch_info.
9405 (asm_language_data): Likewise.
9406 (asm_language::language_arch_info): New member function.
9407 (minimal_language_data): Delete la_language_arch_info.
9408 (minimal_language::language_arch_info): New member function.
9409 * d-lang.c (d_language_arch_info): Delete function, move
9410 implementation to...
9411 (d_language::language_arch_info): ...here, a new member
9412 function.
9413 (d_language_data): Delete la_language_arch_info.
9414 * f-lang.c (f_language_arch_info): Delete function, move
9415 implementation to...
9416 (f_language::language_arch_info): ...here, a new member
9417 function.
9418 (f_language_data): Delete la_language_arch_info.
9419 * go-lang.c (go_language_arch_info): Delete function, move
9420 implementation to...
9421 (go_language::language_arch_info): ...here, a new member
9422 function.
9423 (go_language_data): Delete la_language_arch_info.
9424 * language.c (unknown_language_data): Likewise.
9425 (unknown_language::language_arch_info): New member function.
9426 (auto_language_data): Delete la_language_arch_info.
9427 (auto_language::language_arch_info): New member function.
9428 (language_gdbarch_post_init): Update call to
9429 la_language_arch_info.
9430 * language.h (language_data): Delete la_language_arch_info
9431 function pointer.
9432 (language_defn::language_arch_info): New function.
9433 * m2-lang.c (m2_language_arch_info): Delete function, move
9434 implementation to...
9435 (m2_language::language_arch_info): ...here, a new member
9436 function.
9437 (m2_language_data): Delete la_language_arch_info.
9438 * objc-lang.c (objc_language_arch_info): Delete function, move
9439 implementation to...
9440 (objc_language::language_arch_info): ...here, a new member
9441 function.
9442 (objc_language_data): Delete la_language_arch_info.
9443 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9444 implementation to...
9445 (opencl_language::language_arch_info): ...here, a new member
9446 function.
9447 (opencl_language_data): Delete la_language_arch_info.
9448 * p-lang.c (pascal_language_arch_info): Delete function, move
9449 implementation to...
9450 (pascal_language::language_arch_info): ...here, a new member
9451 function.
9452 (pascal_language_data): Delete la_language_arch_info.
9453 * rust-lang.c (rust_language_arch_info): Delete function, move
9454 implementation to...
9455 (rust_language::language_arch_info): ...here, a new member
9456 function.
9457 (rust_language_data): Delete la_language_arch_info.
9458
9459 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9462 initializer.
9463 * c-lang.c (c_language_data): Likewise.
9464 (cplus_language_data): Likewise.
9465 (cplus_language::pass_by_reference_info): New method.
9466 (asm_language_data): Delete la_pass_by_reference initializer.
9467 (minimal_language_data): Likewise.
9468 * cp-abi.c (cp_pass_by_reference): Remove use of
9469 default_pass_by_reference.
9470 * d-lang.c (d_language_data): Likewise.
9471 * f-lang.c (f_language_data): Likewise.
9472 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9473 default_pass_by_reference.
9474 * go-lang.c (go_language_data): Likewise.
9475 * language.c (language_pass_by_reference): Update.
9476 (default_pass_by_reference): Delete.
9477 (unknown_language_data): Delete la_pass_by_reference
9478 initializer.
9479 (auto_language_data): Likewise.
9480 * language.h (struct language_data): Delete la_pass_by_reference
9481 field.
9482 (language_defn::pass_by_reference_info): New member function.
9483 (default_pass_by_reference): Delete declaration.
9484 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9485 initializer.
9486 * objc-lang.c (objc_language_data): Likewise.
9487 * opencl-lang.c (opencl_language_data): Likewise.
9488 * p-lang.c (pascal_language_data): Likewise.
9489 * rust-lang.c (rust_language_data): Likewise.
9490
9491 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9492
9493 * ada-lang.c (ada_read_var_value): Delete function, move
9494 implementation to...
9495 (ada_language::read_var_value): ...here.
9496 (ada_language_data): Delete la_read_var_value initializer.
9497 * c-lang.c (c_language_data): Likewise.
9498 (cplus_language_data): Likewise.
9499 (minimal_language_data): Likewise.
9500 * d-lang.c (d_language_data): Likewise.
9501 * f-lang.c (f_language_data): Likewise.
9502 * findvar.c (default_read_var_value): Rename to...
9503 (language_defn::read_var_value): ...this.
9504 * findvar.c (read_var_value): Update header comment, and change to
9505 call member function instead of function pointer.
9506 * go-lang.c (go_language_data): Likewise.
9507 * language.c (unknown_language_data): Delete la_read_var_value
9508 initializer.
9509 (auto_language_data): Likewise.
9510 * language.h (struct language_data): Delete la_read_var_value
9511 field.
9512 (language_defn::read_var_value): New member function.
9513 (default_read_var_value): Delete declaration.
9514 * m2-lang.c (m2_language_data): Delete la_read_var_value
9515 initializer.
9516 * objc-lang.c (objc_language_data): Likewise.
9517 * opencl-lang.c (opencl_language_data): Likewise.
9518 * p-lang.c (pascal_language_data): Likewise.
9519 * rust-lang.c (rust_language_data): Likewise.
9520 * value.h (default_read_var_value): Delete declaration.
9521
9522 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9523
9524 * ada-lang.c (ada_print_array_index): Delete function, move
9525 implementation to...
9526 (ada_language::print_array_index): ...here.
9527 (ada_language_data): Delete la_print_array_index 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 * go-lang.c (go_language_data): Likewise.
9534 * language.c (default_print_array_index): Delete function, move
9535 implementation to...
9536 (language_defn::print_array_index): ...here.
9537 (unknown_language_data): Delete la_print_array_index initializer.
9538 (auto_language_data): Likewise.
9539 * language.h (struct language_data): Delete la_print_array_index
9540 field.
9541 (language_defn::print_array_index): New member function.
9542 (LA_PRINT_ARRAY_INDEX): Update.
9543 (default_print_array_index): Delete declaration.
9544 * m2-lang.c (m2_language_data): Delete la_print_array_index
9545 initializer.
9546 * objc-lang.c (objc_language_data): Likewise.
9547 * opencl-lang.c (opencl_language_data): Likewise.
9548 * p-lang.c (pascal_language_data): Likewise.
9549 * rust-lang.c (rust_language_data): Likewise.
9550
9551 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9552
9553 * gdb/ada-lang.c (ada_language_defn): Convert to...
9554 (ada_language_data): ...this.
9555 (class ada_language): New class.
9556 (ada_language_defn): New static global.
9557 * gdb/c-lang.c (c_language_defn): Convert to...
9558 (c_language_data): ...this.
9559 (class c_language): New class.
9560 (c_language_defn): New static global.
9561 (cplus_language_defn): Convert to...
9562 (cplus_language_data): ...this.
9563 (class cplus_language): New class.
9564 (cplus_language_defn): New static global.
9565 (asm_language_defn): Convert to...
9566 (asm_language_data): ...this.
9567 (class asm_language): New class.
9568 (asm_language_defn): New static global.
9569 (minimal_language_defn): Convert to...
9570 (minimal_language_data): ...this.
9571 (class minimal_language): New class.
9572 (minimal_language_defn): New static global.
9573 * gdb/d-lang.c (d_language_defn): Convert to...
9574 (d_language_data): ...this.
9575 (class d_language): New class.
9576 (d_language_defn): New static global.
9577 * gdb/f-lang.c (f_language_defn): Convert to...
9578 (f_language_data): ...this.
9579 (class f_language): New class.
9580 (f_language_defn): New static global.
9581 * gdb/go-lang.c (go_language_defn): Convert to...
9582 (go_language_data): ...this.
9583 (class go_language): New class.
9584 (go_language_defn): New static global.
9585 * gdb/language.c (unknown_language_defn): Remove declaration.
9586 (current_language): Initialize to nullptr, real initialization is
9587 moved to _initialize_language.
9588 (languages): Delete global.
9589 (language_defn::languages): Define.
9590 (set_language_command): Use language_defn::languages.
9591 (set_language): Likewise.
9592 (range_error): Likewise.
9593 (language_enum): Likewise.
9594 (language_def): Likewise.
9595 (add_set_language_command): Use language_def::languages for the
9596 language list, and language_def to lookup language pointers.
9597 (skip_language_trampoline): Use language_defn::languages.
9598 (unknown_language_defn): Convert to...
9599 (unknown_language_data): ...this.
9600 (class unknown_language): New class.
9601 (unknown_language_defn): New static global.
9602 (auto_language_defn): Convert to...
9603 (auto_language_data): ...this.
9604 (class auto_language): New class.
9605 (auto_language_defn): New static global.
9606 (language_gdbarch_post_init): Use language_defn::languages.
9607 (_initialize_language): Initialize current_language.
9608 * gdb/language.h (struct language_defn): Rename to...
9609 (struct language_data): ...this.
9610 (struct language_defn): New.
9611 (auto_language_defn): Delete.
9612 (unknown_language_defn): Delete.
9613 (minimal_language_defn): Delete.
9614 (ada_language_defn): Delete.
9615 (asm_language_defn): Delete.
9616 (c_language_defn): Delete.
9617 (cplus_language_defn): Delete.
9618 (d_language_defn): Delete.
9619 (f_language_defn): Delete.
9620 (go_language_defn): Delete.
9621 (m2_language_defn): Delete.
9622 (objc_language_defn): Delete.
9623 (opencl_language_defn): Delete.
9624 (pascal_language_defn): Delete.
9625 (rust_language_defn): Delete.
9626 * gdb/m2-lang.c (m2_language_defn): Convert to...
9627 (m2_language_data): ...this.
9628 (class m2_language): New class.
9629 (m2_language_defn): New static global.
9630 * gdb/objc-lang.c (objc_language_defn): Convert to...
9631 (objc_language_data): ...this.
9632 (class objc_language): New class.
9633 (objc_language_defn): New static global.
9634 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9635 (opencl_language_data): ...this.
9636 (class opencl_language): New class.
9637 (opencl_language_defn): New static global.
9638 * gdb/p-lang.c (pascal_language_defn): Convert to...
9639 (pascal_language_data): ...this.
9640 (class pascal_language): New class.
9641 (pascal_language_defn): New static global.
9642 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9643 language pointer, update comment format.
9644 * gdb/rust-lang.c (rust_language_defn): Convert to...
9645 (rust_language_data): ...this.
9646 (class rust_language): New class.
9647 (rust_language_defn): New static global.
9648
9649 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9650
9651 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9652 member variable.
9653 <m_stmt_at_address>: New member variable.
9654 (lnp_state_machine::record_line): Don't record some lines, update
9655 tracking of is_stmt at the same address.
9656 (lnp_state_machine::lnp_state_machine): Initialise new member
9657 variables.
9658
9659 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9660
9661 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9662 "-include gnu-nat-mig.h".
9663 * gnu-nat-mig.h: New file.
9664 * gnu-nat.c: Include "gnu-nat-mig.h".
9665 (exc_server, msg_reply_server, notify_server,
9666 process_reply_server): Remove declarations.
9667
9668 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9669
9670 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9671 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9672 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9673 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9674 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9675 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9676 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9677 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9678 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9679 to gnu_nat_target class.
9680 * gnu-nat.c: Likewise.
9681 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9682 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9683 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9684 object.
9685 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9686 instead of `gnu_target'.
9687
9688 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9689
9690 * i386-gnu-tdep.c: Include "gdbcore.h"
9691 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9692 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9693 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9694 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9695 i386_gnu_sigcontext_addr): New functions
9696 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9697 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9698 tdep.
9699
9700 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9701
9702 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9703 before fork_inferior call. Avoid calling it if target_is_pushed returns
9704 true.
9705
9706 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9707
9708 * gnu-nat.h (gnu_target): New variable declaration.
9709 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9710 gnu_target.
9711 * gnu-nat.c (gnu_target): New variable.
9712 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9713 add_thread_silent, and add_thread calls.
9714 (gnu_nat_target::create_inferior): Pass gnu_target to
9715 add_thread_silent, thread_change_ptid call.
9716 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9717 call.
9718
9719 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9720
9721 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9722 (gnu_nat_target::find_memory_regions): Remove unused
9723 `old_address' variable.
9724
9725 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9726
9727 * gnu-nat.c: Include "gdbarch.h".
9728
9729 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9730
9731 * reply_mig_hack.awk (Error return): Cast function through
9732 void *, to bypass compiler function call check.
9733
9734 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9735
9736 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9737 $(srcdir)/reply_mig_hack.awk.
9738
9739 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9740
9741 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9742
9743 2020-05-30 Jonny Grant <jg@jguk.org>
9744
9745 * configure.ac (ACX_BUGURL): change bug URL to https.
9746
9747 2020-05-30 Pedro Alves <palves@redhat.com>
9748
9749 * cp-support.c (replace_typedefs_template): New.
9750 (replace_typedefs_qualified_name): Handle
9751 DEMANGLE_COMPONENT_TEMPLATE.
9752
9753 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9756 dwarf2/index-cache.h, dwarf2/index-write.c,
9757 dwarf2/index-write.h, dwarf2/line-header.c,
9758 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9759 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9760 variables and fields from `dwarf2_per_objfile` to just
9761 `per_objfile` throughout.
9762
9763 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9766 <push_dwarf_reg_entry_value>: Add comment.
9767
9768 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9769 Keith Seitz <keiths@redhat.com>
9770
9771 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9772 instead of PyEval_ReleaseLock.
9773 (class gdbpy_gil): Move to earlier in file.
9774 (finalize_python): Set gdb_python_initialized.
9775 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9776 when not initialized.
9777
9778 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9781 <push_dwarf_reg_entry_value>: Remove assert. Override
9782 per_objfile with caller_per_objfile.
9783
9784 2020-05-28 Tom de Vries <tdevries@suse.de>
9785
9786 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9787 PR gold/15646 workaround to symbol kind "type".
9788
9789 2020-05-27 Tom Tromey <tromey@adacore.com>
9790
9791 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9792
9793 2020-05-27 Tom Tromey <tromey@adacore.com>
9794
9795 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9796 Use htab_find_with_hash.
9797 <add_abbrev>: Remove "abbrev_number" parameter.
9798 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9799 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9800 (hash_abbrev): Add comment.
9801 (abbrev_table::lookup_abbrev): Move to header file.
9802 (abbrev_table::read): Update.
9803
9804 2020-05-27 Tom Tromey <tromey@adacore.com>
9805
9806 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9807 method.
9808 <canonical_name>: New member.
9809 <raw_name>: Rename from "name".
9810 (partial_die_info): Initialize canonical_name.
9811 (scan_partial_symbols): Check raw_name.
9812 (partial_die_parent_scope, partial_die_full_name)
9813 (add_partial_symbol, add_partial_subprogram)
9814 (add_partial_enumeration, load_partial_dies): Use "name" method.
9815 (partial_die_info::name): New method.
9816 (partial_die_info::read, guess_partial_die_structure_name)
9817 (partial_die_info::fixup): Update.
9818
9819 2020-05-27 Tom Tromey <tromey@adacore.com>
9820
9821 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9822 <get_ref_die_offset>: Inline.
9823 <get_ref_die_offset_complaint>: New method.
9824 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9825 (attribute::get_ref_die_offset_complaint): Rename from
9826 get_ref_die_offset. Just issue complaint.
9827
9828 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9829
9830 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9831
9832 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9833
9834 * exec.c (exec_file_attach): Use errno value of first openp failure.
9835
9836 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9837
9838 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9839 Don't close thread handle.
9840
9841 2020-05-27 Tom Tromey <tom@tromey.com>
9842 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9845 shared_ptr.
9846 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9847 member.
9848 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9849 dwarf2_per_bfd_objfile_data_key>: New globals.
9850 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9851 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9852 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9853 shared.
9854 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9855 short-circuit when sharing.
9856 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9857 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9858
9859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9862 to...
9863 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9864 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9865
9866 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9867
9868 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9869 build_name_components, find_name_components_bounds>:
9870 Add per_objfile parameter.
9871 (struct mapped_index) <symbol_name_at>: Likewise.
9872 (struct mapped_debug_names): Remove constructor.
9873 <dwarf2_per_objfile>: Remove field.
9874 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9875 (mapped_index_base::find_name_components_bounds,
9876 mapped_index_base::build_name_components,
9877 dw2_expand_symtabs_matching_symbol): Likewise.
9878 (class mock_mapped_index) <symbol_name_at>: Likewise.
9879 (check_match): Likewise.
9880 (check_find_bounds_finds): Likewise.
9881 (test_mapped_index_find_name_component_bounds): Update.
9882 (CHECK_MATCH): Update.
9883 (dw2_expand_symtabs_matching): Update.
9884 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9885 per_objfile parameter.
9886 <find_vec_in_debug_names>: Likewise.
9887 <m_per_objfile>: New field.
9888 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9889 parameter.
9890 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9891 (dw2_debug_names_iterator::next): Update.
9892 (dw2_debug_names_lookup_symbol): Update.
9893 (dw2_debug_names_expand_symtabs_for_function): Update.
9894 (dw2_debug_names_map_matching_symbols): Update.
9895 (dw2_debug_names_expand_symtabs_matching): Update.
9896 (dwarf2_read_debug_names): Update.
9897
9898 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9899
9900 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9901 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9902 move to dwarf2_per_objfile.
9903 <read_in_chain>: Remove.
9904 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9905 remove_all_cus, age_comp_units>: New methods.
9906 <m_dwarf2_cus>: New member.
9907 (struct dwarf2_per_cu_data) <cu>: Remove.
9908 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9909 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9910 moved to methods of dwarf2_per_objfile.
9911 (dwarf2_clear_marks): Remove.
9912 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9913 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9914 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9915 (dwarf2_per_objfile::remove_all_cus): New.
9916 (class free_cached_comp_units) <~free_cached_comp_units>:
9917 Update.
9918 (load_cu): Update.
9919 (dw2_do_instantiate_symtab): Adjust.
9920 (fill_in_sig_entry_from_dwo_entry): Adjust.
9921 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9922 (cutu_reader::cutu_reader): Likewise.
9923 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9924 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9925 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9926 and dwarf2_per_objfile::age_comp_units.
9927 (load_partial_comp_unit): Update.
9928 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9929 (process_queue): Likewise.
9930 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9931 backlink.
9932 (dwarf2_read_addr_index): Likewise.
9933 (follow_die_offset): Likewise.
9934 (dwarf2_fetch_die_loc_sect_off): Likewise.
9935 (dwarf2_fetch_constant_bytes): Likewise.
9936 (dwarf2_fetch_die_type_sect_off): Likewise.
9937 (follow_die_sig_1): Likewise.
9938 (load_full_type_unit): Likewise.
9939 (read_signatured_type): Likewise.
9940 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9941 (dwarf2_cu::~dwarf2_cu): Remove.
9942 (dwarf2_per_objfile::get_cu): New.
9943 (dwarf2_per_objfile::set_cu): New.
9944 (age_cached_comp_units): Rename to...
9945 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9946 to std::unordered_map.
9947 (free_one_cached_comp_unit): Rename to...
9948 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9949 to std::unordered_map.
9950 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9951 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9952 a dwarf2_per_objfile in data.
9953 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9954 (dwarf2_clear_marks): Remove.
9955
9956 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9959 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9960 (init_tu_and_read_dwo_dies): Likewise.
9961 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9962 (cutu_reader::cutu_reader): Likewise.
9963 (load_partial_comp_unit): Likewise.
9964 (process_psymtab_comp_unit): Update.
9965 (build_type_psymtabs_1): Update.
9966 (process_skeletonless_type_unit): Update.
9967 (load_full_comp_unit): Update.
9968 (find_partial_die): Update.
9969 (dwarf2_read_addr_index): Update.
9970 (read_signatured_type): Update.
9971
9972 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9973
9974 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9975 m_header_read_in>: New fields.
9976 <get_header>: New method.
9977 * dwarf2/read.c (per_cu_header_read_in): Remove.
9978 (dwarf2_per_cu_data::get_header): New.
9979 (dwarf2_per_cu_data::addr_size): Update.
9980 (dwarf2_per_cu_data::offset_size): Update.
9981 (dwarf2_per_cu_data::ref_addr_size): Update.
9982
9983 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9984
9985 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9986 (dw2_do_instantiate_symtab): Update.
9987 (queue_and_load_all_dwo_tus): Change parameter from
9988 dwarf2_per_cu_data to dwarf2_cu.
9989 (dwarf2_fetch_die_loc_sect_off): Update.
9990 (dwarf2_fetch_constant_bytes): Update.
9991 (dwarf2_fetch_die_type_sect_off): Update.
9992
9993 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9994
9995 * dwarf2/read.c (process_full_comp_unit,
9996 process_full_type_unit): Remove per_cu, per_objfile paramters.
9997 Add dwarf2_cu parameter.
9998 (process_queue): Update.
9999
10000 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10001
10002 * dwarf2/read.c (create_cu_from_index_list): Replace
10003 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10004 (create_cus_from_index_list): Likewise.
10005 (create_cus_from_index): Likewise.
10006 (create_signatured_type_table_from_index): Likewise.
10007 (create_cus_from_debug_names_list): Likewise.
10008 (create_cus_from_debug_names): Likewise.
10009 (dwarf2_read_gdb_index): Update.
10010 (dwarf2_read_debug_names): Update.
10011
10012 2020-05-27 Tom Tromey <tom@tromey.com>
10013 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/read.h (struct dwarf2_per_objfile)
10016 <get_type_for_signatured_type, set_type_for_signatured_type>:
10017 New methods.
10018 <m_type_map>: New member.
10019 (struct signatured_type) <type>: Remove.
10020 * dwarf2/read.c
10021 (dwarf2_per_objfile::get_type_for_signatured_type,
10022 dwarf2_per_objfile::set_type_for_signatured_type): New.
10023 (get_signatured_type): Use new methods.
10024
10025 2020-05-27 Tom Tromey <tom@tromey.com>
10026 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10029 (struct dwarf2_per_objfile) <type_units>: New member.
10030 <get_type_unit_group_unshareable>: New method.
10031 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10032 num_symtabs, symtabs>: Remove; move to
10033 type_unit_group_unshareable.
10034 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10035 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10036 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10037
10038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * dwarf2/read.h (struct dwarf2_per_cu_data):
10041 <dwarf2_per_objfile>: Remove.
10042 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10043 dwarf2_per_objfile.
10044 (create_signatured_type_table_from_index): Likewise.
10045 (create_signatured_type_table_from_debug_names): Likewise.
10046 (create_debug_type_hash_table): Likewise.
10047 (fill_in_sig_entry_from_dwo_entry): Likewise.
10048 (create_type_unit_group): Likewise.
10049 (read_comp_units_from_section): Likewise.
10050 (create_cus_hash_table): Likewise.
10051
10052 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10055 dwarf2_per_cu_data::dwarf2_per_objfile.
10056 (compute_compunit_symtab_includes): Likewise.
10057 (dwarf2_cu::start_symtab): Likewise.
10058
10059 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10062 parameter.
10063 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10064 (read_namespace_alias): Update.
10065 (lookup_die_type): Update.
10066 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10067 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10068 Update.
10069 (disassemble_dwarf_expression): Update.
10070
10071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * dwarf2/read.h (struct dwarf2_queue_item): Add
10074 dwarf2_per_objfile parameter, assign new parameter.
10075 <per_objfile>: New field.
10076 * dwarf2/read.c (free_one_cached_comp_unit): Add
10077 dwarf2_per_objfile parameter.
10078 (queue_comp_unit): Likewise.
10079 (dw2_do_instantiate_symtab): Update.
10080 (process_psymtab_comp_unit): Update.
10081 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10082 (process_imported_unit_die): Update.
10083 (queue_and_load_dwo_tu): Update.
10084 (follow_die_offset): Update.
10085 (follow_die_sig_1): Update.
10086
10087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10088
10089 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10090 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10091 (read_call_site_scope): Assign per_objfile.
10092 (dwarf2_per_cu_data::objfile): Remove.
10093 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10094 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10095 dwarf2_per_objfile parameter.
10096 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10097 dwarf2_per_objfile parameter.
10098 (dwarf_expr_reg_to_entry_parameter): Add output
10099 dwarf2_per_objfile parameter.
10100 (locexpr_get_frame_base): Update.
10101 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10102 <push_dwarf_reg_entry_value>: Update.
10103 <call_site_to_target_addr>: Update.
10104 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10105 parameter.
10106 (value_of_dwarf_reg_entry): Update.
10107 (rw_pieced_value): Update.
10108 (indirect_synthetic_pointer): Update.
10109 (dwarf2_evaluate_property): Update.
10110 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10111 parameter.
10112 (locexpr_read_variable): Update.
10113 (locexpr_get_symbol_read_needs): Update.
10114 (loclist_read_variable): Update.
10115
10116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10119 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10120 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10121 parameter.
10122 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10123 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10124 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10125 parameter.
10126 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10127 sect_variable_value): Add dwarf2_per_objfile parameter.
10128 (class dwarf_evaluate_loc_desc) <dwarf_call,
10129 dwarf_variable_value>: Update.
10130 (fetch_const_value_from_synthetic_pointer): Add
10131 dwarf2_per_objfile parameter.
10132 (fetch_const_value_from_synthetic_pointer): Update.
10133 (coerced_pieced_ref): Update.
10134 (class symbol_needs_eval_context) <dwarf_call,
10135 dwarf_variable_value>: Update.
10136 (dwarf2_compile_expr_to_ax): Update.
10137
10138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10139
10140 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10141 parameter.
10142 (dwarf2_evaluate_loc_desc_full): Update.
10143
10144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10145
10146 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10147 parameter.
10148 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10149 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10150 dwarf2_per_objfile parameter.
10151 (decode_debug_loc_dwo_addresses): Likewise.
10152 (dwarf2_find_location_expression): Update.
10153 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10154 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10155 parameter.
10156 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10157 parameter.
10158 (locexpr_describe_location_1): Likewise.
10159 (locexpr_describe_location): Update.
10160
10161 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10164 Remove.
10165 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10166 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10167 (dwarf2_compile_property_to_c): Update.
10168 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10169 use text offset from objfile.
10170 (locexpr_tracepoint_var_ref): Update.
10171 (locexpr_generate_c_location): Update.
10172 (loclist_describe_location): Update.
10173 (loclist_tracepoint_var_ref): Update.
10174 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10175 dwarf2_per_objfile parameter.
10176 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10177 use text offset from objfile.
10178 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10179
10180 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * dwarf2/expr.h (struct dwarf_expr_context)
10183 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10184 <offset>: Remove.
10185 <per_objfile>: New member.
10186 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10187 dwarf2_per_objfile parameter. Don't set offset, set
10188 per_objfile.
10189 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10190 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10191 a dwarf2_per_objfile object instead of an offset.
10192 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10193 constructor.
10194 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10195 to dwarf2_expr_executor constructor. Don't set offset.
10196 (dwarf2_fetch_cfa_info): Update.
10197 (struct dwarf2_frame_cache) <text_offset>: Remove.
10198 <per_objfile>: New field.
10199 (dwarf2_frame_cache): Update.
10200 (dwarf2_frame_prev_register): Update.
10201 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10202 <dwarf_evaluate_loc_desc>: Add constructor.
10203 (dwarf2_evaluate_loc_desc_full): Update.
10204 (dwarf2_locexpr_baton_eval): Update.
10205 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10206 Add constructor.
10207 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10208
10209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10212 addr_sized_int_type>: Move to dwarf2_cu.
10213 <int_type>: Move to dwarf2_per_objfile.
10214 (struct dwarf2_per_objfile) <int_type>: Move here.
10215 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10216 addr_sized_int_type>: Move here.
10217 (read_func_scope): Update.
10218 (read_array_type): Update.
10219 (read_tag_string_type): Update.
10220 (attr_to_dynamic_prop): Update.
10221 (dwarf2_per_cu_data::int_type): Rename to...
10222 (dwarf2_per_objfile::int_type): ... this.
10223 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10224 (dwarf2_cu::addr_sized_int_type): ... this.
10225 (read_subrange_type): Update.
10226 (dwarf2_per_cu_data::addr_type): Rename to...
10227 (dwarf2_cu::addr_type): ... this.
10228 (set_die_type): Update.
10229
10230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10233 data through per_cu->cu.
10234
10235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10238 dwarf2_per_cu_data parameter fo dwarf2_cu.
10239 (lookup_dwo_type_unit): Likewise.
10240 (read_cutu_die_from_dwo): Likewise.
10241 (lookup_dwo_unit): Likewise.
10242 (open_and_init_dwo_file): Likewise.
10243 (lookup_dwo_cutu): Likewise.
10244 (lookup_dwo_comp_unit): Likewise.
10245 (lookup_dwo_type_unit): Likewise.
10246 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10247 (cutu_reader::cutu_reader): Update.
10248
10249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10252 parameter.
10253 (process_full_type_unit): Likewise.
10254 (process_queue): Update.
10255
10256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10257
10258 * dwarf2/read.c (recursively_compute_inclusions): Add
10259 dwarf2_per_objfile parameter.
10260 (compute_compunit_symtab_includes): Likewise.
10261 (process_cu_includes): Update.
10262
10263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10264
10265 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10266 parameter.
10267 (create_type_unit_group): Update.
10268 (process_psymtab_comp_unit_reader): Update.
10269 (build_type_psymtabs_reader): Update.
10270
10271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10274 object through m_this_cu->cu.
10275
10276 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10277
10278 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10279 the info parameter.
10280 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10281
10282 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10283
10284 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10285 per_objfile parameter.
10286 (load_full_type_unit): Add per_objfile parameter.
10287 (read_signatured_type): Likewise.
10288 (load_full_comp_unit): Likewise.
10289 (load_cu): Likewise.
10290 (dw2_do_instantiate_symtab): Likewise.
10291 (dw2_get_file_names): Likewise.
10292 (dw2_map_symtabs_matching_filename): Update.
10293 (dw_expand_symtabs_matching_file_matcher): Update.
10294 (dw2_map_symbol_filenames): Update.
10295 (process_psymtab_comp_unit): Add per_objfile parameter.
10296 (build_type_psymtabs_1): Update.
10297 (process_skeletonless_type_unit): Update.
10298 (dwarf2_build_psymtabs_hard): Update.
10299 (load_partial_comp_unit): Add per_objfile parameter.
10300 (scan_partial_symbols): Update.
10301 (load_full_comp_unit): Add per_objfile parameter.
10302 (process_imported_unit_die): Update.
10303 (create_cus_hash_table): Update.
10304 (find_partial_die): Update.
10305 (dwarf2_read_addr_index): Update.
10306 (follow_die_offset): Update.
10307 (dwarf2_fetch_die_loc_sect_off): Update.
10308 (dwarf2_fetch_constant_bytes): Update.
10309 (dwarf2_fetch_die_type_sect_off): Update.
10310 (follow_die_sig_1): Update.
10311 (load_full_type_unit): Add per_objfile parameter.
10312 (read_signatured_type): Likewise.
10313
10314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10315
10316 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10317 of objfile_name.
10318
10319 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10320
10321 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10322 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10323 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10324 field.
10325 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10326 (create_cus_from_index): Update.
10327 (dwarf2_read_gdb_index): Update.
10328 (create_cus_from_debug_names): Update.
10329 (dwarf2_read_debug_names): Update.
10330 (get_abbrev_section_for_cu): Update.
10331 (create_all_comp_units): Update.
10332 (read_attribute_value): Update.
10333 (get_debug_line_section): Update.
10334 * dwarf2/index-cache.c (index_cache::store): Update.
10335 * dwarf2/index-write.c (save_gdb_index_command): Update.
10336 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10337
10338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10339
10340 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10341 member.
10342 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10343 dwarf2_per_cu_data::per_bfd.
10344 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10345 (create_type_unit_group): Likewise.
10346 (queue_comp_unit): Remove reference to
10347 per_cu->dwarf2_per_objfile.
10348 (maybe_queue_comp_unit): Likewise.
10349 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10350 (create_cus_hash_table): Assign new field.
10351
10352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * dwarf2/read.c: Replace
10355 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10356 dwarf2_cu->per_objfile throughout.
10357
10358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10361 parameter, don't use per_cu->dwarf2_per_objfile.
10362 (dw2_instantiate_symtab): Likewise.
10363 (dw2_find_last_source_symtab): Update.
10364 (dw2_map_expand_apply): Update.
10365 (dw2_lookup_symbol): Update.
10366 (dw2_expand_symtabs_for_function): Update.
10367 (dw2_expand_all_symtabs): Update.
10368 (dw2_expand_symtabs_with_fullname): Update.
10369 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10370 don't use per_cu->dwarf2_per_objfile.
10371 (dw2_expand_marked_cus): Update.
10372 (dw2_find_pc_sect_compunit_symtab): Update.
10373 (dw2_debug_names_lookup_symbol): Update.
10374 (dw2_debug_names_expand_symtabs_for_function): Update.
10375 (dw2_debug_names_map_matching_symbols): Update.
10376 (dwarf2_psymtab::expand_psymtab): Update.
10377
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10381 <per_objfile>: New member.
10382 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10383 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10384 call to dwarf2_cu.
10385 (cutu_reader::cutu_reader): Update.
10386 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10387
10388 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10391 struct dwarf2_per_objfile.
10392 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10393 dwarf2_per_bfd.
10394 * dwarf2/read.c (set_die_type): Update.
10395 (get_die_type_at_offset): Update.
10396
10397 2020-05-27 Tom Tromey <tom@tromey.com>
10398 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10401 method.
10402 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10403 get_symtab, set_symtab>: New methods.
10404 <m_symtabs>: New field.
10405 (struct dwarf2_psymtab): Derive from partial_symtab.
10406 <readin_p, get_compunit_symtab>: Declare methods.
10407 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10408 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10409 New methods.
10410 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10411 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10412 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10413 (dw2_symtab_iter_next, dw2_print_stats)
10414 (dw2_expand_symtabs_with_fullname)
10415 (dw2_expand_symtabs_matching_one)
10416 (dw_expand_symtabs_matching_file_matcher)
10417 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10418 (dw2_debug_names_iterator::next)
10419 (dw2_debug_names_map_matching_symbols)
10420 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10421 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10422 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10423 New methods.
10424 (get_compunit_symtab, process_full_comp_unit)
10425 (process_full_type_unit): Update.
10426 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10427
10428 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10431 then introduce a new dwarf2_per_objfile type.
10432 <read_line_string>: Move to the new dwarf2_per_objfile type.
10433 <objfile>: Likewise.
10434 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10435 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10436 dwarf2_per_objfile->per_bfd.
10437 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10438 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10439 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10440 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10441 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10442 (dwarf2_per_objfile::locate_sections): Rename to...
10443 (dwarf2_per_bfd::locate_sections): ... this.
10444 (dwarf2_per_objfile::get_cutu): Rename to...
10445 (dwarf2_per_bfd::get_cutu): ... this.
10446 (dwarf2_per_objfile::get_cu): Rename to...
10447 (dwarf2_per_bfd::get_cu): ... this.
10448 (dwarf2_per_objfile::get_tu): Rename to...
10449 (dwarf2_per_bfd::get_tu): ... this.
10450 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10451 (dwarf2_per_bfd::allocate_per_cu): ... this.
10452 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10453 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10454 (get_gdb_index_contents_ftype): Change parameter from
10455 dwarf2_per_objfile to dwarf2_per_bfd.
10456 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10457 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10458
10459 2020-05-27 Tom Tromey <tom@tromey.com>
10460 Simon Marchi <simon.marchi@efficios.com>
10461
10462 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10463 (allocate_piece_closure): Set "per_objfile" member.
10464 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10465 (locexpr_describe_location, loclist_describe_location): Use new
10466 member.
10467 * dwarf2/read.c (read_call_site_scope)
10468 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10469 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10470 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10471 handle_data_member_location): Set per_objfile member.
10472 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10473 member.
10474 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10475
10476 2020-05-27 Tom Tromey <tom@tromey.com>
10477
10478 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10479 allocate_signatured_type>: Declare new methods.
10480 <m_num_psymtabs>: New member.
10481 (struct dwarf2_per_cu_data) <index>: New member.
10482 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10483 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10484 (create_cu_from_index_list): Use allocate_per_cu.
10485 (create_signatured_type_table_from_index)
10486 (create_signatured_type_table_from_debug_names)
10487 (create_debug_type_hash_table, add_type_unit)
10488 (read_comp_units_from_section): Use allocate_signatured_type.
10489
10490 2020-05-27 Tom Tromey <tom@tromey.com>
10491
10492 * psymtab.c (partial_map_expand_apply)
10493 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10494 (psym_lookup_global_symbol_language)
10495 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10496 (psym_print_stats, psym_expand_symtabs_for_function)
10497 (psym_map_symbol_filenames, psym_map_matching_symbols)
10498 (psym_expand_symtabs_matching)
10499 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10500 (maintenance_check_psymtabs): Update.
10501 * psympriv.h (struct partial_symtab) <readin_p,
10502 get_compunit_symtab>: Add objfile parameter.
10503 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10504 Likewise.
10505 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10506 get_compunit_symtab>: Likewise.
10507 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10508
10509 2020-05-27 Tom Tromey <tom@tromey.com>
10510
10511 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10512 member.
10513 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10514 (create_cu_from_index_list)
10515 (create_signatured_type_table_from_index)
10516 (create_signatured_type_table_from_debug_names)
10517 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10518 (dwarf2_create_include_psymtab)
10519 (create_debug_type_hash_table, add_type_unit)
10520 (create_type_unit_group, read_comp_units_from_section)
10521 (dwarf2_compute_name, create_cus_hash_table)
10522 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10523 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10524 obstack.
10525 (dw2_get_real_path): Likewise. Change argument to
10526 dwarf2_per_objfile.
10527
10528 2020-05-27 Luis Machado <luis.machado@linaro.org>
10529
10530 PR tdep/26000
10531 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10532 for ldrd (immediate).
10533
10534 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10535
10536 * command.h: Add comment giving the name of class_tui.
10537 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10538 create the fake command for the help for class_tui.
10539
10540 2020-05-26 Tom Tromey <tromey@adacore.com>
10541
10542 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10543 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10544 (val_atr): New function.
10545 (value_val_atr): Use it.
10546 * ada-valprint.c (print_optional_low_bound): Change low bound
10547 handling for enums.
10548 (val_print_packed_array_elements): Don't call discrete_position.
10549 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10550 discrete_position for enum types.
10551 * language.c (default_print_array_index): Change type.
10552 * language.h (struct language_defn) <la_print_array_index>: Add
10553 index_type parameter, change type of index_value.
10554 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10555 (default_print_array_index): Update.
10556 * valprint.c (maybe_print_array_index): Don't call
10557 value_from_longest. Update.
10558 (value_print_array_elements): Don't call discrete_position.
10559
10560 2020-05-26 Tom Tromey <tromey@adacore.com>
10561
10562 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10563 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10564
10565 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10566
10567 PR gdb/13519
10568 * avr-tdep.c (avr_integer_to_address): Return data or code
10569 address accordingly to the second 'type' argument of the
10570 function.
10571
10572 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10573
10574 * infcmd.c, inferior.h: (construct_inferior_arguments):
10575 Moved function from here to gdbsupport/common-inferior.{h,cc}
10576
10577 2020-05-23 Tom Tromey <tom@tromey.com>
10578
10579 Revert commit eca1f90c:
10580 * NEWS: Remove entry for completion styling.
10581 * completer.c (_rl_completion_prefix_display_length): Move
10582 declaration later.
10583 (gdb_fnprint): Revert.
10584 (gdb_display_match_list_1): Likewise.
10585 * cli/cli-style.c (completion_prefix_style)
10586 (completion_difference_style, completion_suffix_style): Remove.
10587 (_initialize_cli_style): Revert.
10588 * cli/cli-style.h (completion_prefix_style)
10589 (completion_difference_style, completion_suffix_style): Don't
10590 declare.
10591
10592 2020-05-24 Pedro Alves <palves@redhat.com>
10593
10594 * symtab.c (completion_list_add_name): Return boolean indication
10595 of whether the symbol matched.
10596 (completion_list_add_symbol): Don't try to remove C++ aliases if
10597 the symbol didn't match in the first place.
10598 * symtab.h (completion_list_add_name): Return bool.
10599
10600 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10601
10602 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10603 type::field.
10604
10605 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10606
10607 GDB 9.2 released.
10608
10609 2020-05-23 Tom Tromey <tom@tromey.com>
10610
10611 * NEWS: Add entry for completion styling.
10612 * completer.c (_rl_completion_prefix_display_length): Move
10613 declaration earlier.
10614 (gdb_fnprint): Use completion_style.
10615 (gdb_display_match_list_1): Likewise.
10616 * cli/cli-style.c (completion_prefix_style)
10617 (completion_difference_style, completion_suffix_style): New
10618 globals.
10619 (_initialize_cli_style): Register new globals.
10620 * cli/cli-style.h (completion_prefix_style)
10621 (completion_difference_style, completion_suffix_style): Declare.
10622
10623 2020-05-23 Pedro Alves <palves@redhat.com>
10624
10625 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10626 (parse_escape): Use ISDIGIT instead of isdigit.
10627 (puts_debug): Use gdb_isprint instead of isprint.
10628 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10629 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10630 ISSPACE instead of isspace.
10631 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10632 instead of isspace.
10633 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10634 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10635 instead of isxdigit and ISDIGIT instead of isdigit.
10636
10637 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * gdbtypes.h (struct type) <field>: New method.
10640 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10641 or type::field.
10642
10643 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10644
10645 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10646 (TYPE_FIELDS): Use type::fields. Change all call sites that
10647 modify the propery to use type::set_fields instead.
10648
10649 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10650
10651 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10652 type::num_fields instead.
10653
10654 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10655
10656 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10657 methods.
10658 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10659 that modify the number of fields to use type::set_num_fields
10660 instead.
10661
10662 2020-05-22 Tom Tromey <tromey@adacore.com>
10663
10664 * compile/compile-object-load.h (munmap_list_free): Don't
10665 declare.
10666
10667 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * annotate.c (annotate_source_line): Update return type, add call
10670 to update current symtab and line.
10671 * annotate.h (annotate_source_line): Update return type, and
10672 extend header comment.
10673 * source.c (info_line_command): Check annotation_level before
10674 calling annotate_source_line.
10675 * stack.c (print_frame_info): If calling annotate_source_line
10676 returns true, then don't print any other source line information.
10677
10678 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10681
10682 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10683
10684 * coffread.c (patch_type): Remove NULL check before xfree.
10685 * corefile.c (set_gnutarget): Likewise.
10686 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10687 * exec.c (build_section_table): Likewise.
10688 * remote.c (remote_target::pass_signals): Likewise.
10689 * utils.c (n_spaces): Likewise.
10690 * cli/cli-script.c (document_command): Likewise.
10691 * i386-windows-tdep.c (core_process_module_section): Likewise.
10692 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10693
10694 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * symfile.c (reread_symbols): Clear objfile's section_offsets
10697 vector and section indices, re-compute them by calling
10698 sym_offsets.
10699
10700 2020-05-20 Tom Tromey <tromey@adacore.com>
10701
10702 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10703 (desc_one_bound, desc_index_type): Compute field name.
10704
10705 2020-05-20 Tom de Vries <tdevries@suse.de>
10706
10707 PR symtab/25833
10708 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10709
10710 2020-05-20 Alan Modra <amodra@gmail.com>
10711
10712 PR 25993
10713 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10714 bfd_set_filename.
10715 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10716 passed to bfd_set_filename.
10717 * symfile-mem.c (add_vsyscall_page): Likewise for string
10718 passed to symbol_file_add_from_memory.
10719 (symbol_file_add_from_memory): Make name param a const char* and
10720 don't strdup.
10721
10722 2020-05-20 Alan Modra <amodra@gmail.com>
10723
10724 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10725 rather than accessing bfd->filename directly.
10726 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10727 and use bfd_section_name.
10728 * dwarf2/frame.c (decode_frame_entry): Likewise.
10729 * exec.c (exec_set_section_address): Likewise.
10730 * solib-aix.c (solib_aix_bfd_open): Likewise.
10731 * stap-probe.c (get_stap_base_address): Likewise.
10732 * symfile.c (reread_symbols): Likewise.
10733
10734 2020-05-19 Tom Tromey <tromey@adacore.com>
10735
10736 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10737
10738 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10739
10740 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10741
10742 2020-05-19 Pedro Alves <palves@redhat.com>
10743
10744 * NEWS (set exec-file-mismatch): Adjust entry.
10745 * exec.c: Include "build-id.h".
10746 (validate_exec_file): Try to match build IDs instead of filenames.
10747 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10748 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10749 and pass down 'warn_if_slow'.
10750 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10751 gdb_bfd_open_closure to pass it down.
10752 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10753
10754 2020-05-19 Pedro Alves <palves@redhat.com>
10755
10756 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10757 * target.c (target_fileio_open_1): Rename to target_fileio_open
10758 and make extern. Use bool.
10759 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10760 (target_fileio_read_alloc_1): Adjust.
10761 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10762 (target_fileio_open_warn_if_slow): Delete declaration.
10763
10764 2020-05-19 Pedro Alves <palves@redhat.com>
10765
10766 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10767 Adjust all callers.
10768
10769 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10770
10771 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10772 whether disp is negative.
10773
10774 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10775
10776 * symfile.h (struct symfile_segment_data)
10777 <~symfile_segment_data>: Remove.
10778 <segment_info>: Change to std::vector.
10779 * symfile.c (default_symfile_segments): Update.
10780 * elfread.c (elf_symfile_segments): Update.
10781
10782 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10785 <segments>: New.
10786 <segment_bases, segment_sizes>: Remove.
10787 * symfile.c (default_symfile_segments): Update.
10788 * elfread.c (elf_symfile_segments): Update.
10789 * remote.c (remote_target::get_offsets): Update.
10790 * solib-target.c (solib_target_relocate_section_addresses):
10791 Update.
10792
10793 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10794
10795 * symfile.h (struct symfile_segment_data): Initialize fields.
10796 <~symfile_segment_data>: Add.
10797 (symfile_segment_data_up): New.
10798 (struct sym_fns) <sym_segments>: Return a
10799 symfile_segment_data_up.
10800 (default_symfile_segments): Return a symfile_segment_data_up.
10801 (free_symfile_segment_data): Remove.
10802 (get_symfile_segment_data): Return a symfile_segment_data_up.
10803 * symfile.c (default_symfile_segments): Likewise.
10804 (get_symfile_segment_data): Likewise.
10805 (free_symfile_segment_data): Remove.
10806 (symfile_find_segment_sections): Update.
10807 * elfread.c (elf_symfile_segments): Return a
10808 symfile_segment_data_up.
10809 * remote.c (remote_target::get_offsets): Update.
10810 * solib-target.c (solib_target_relocate_section_addresses):
10811 Update.
10812 * symfile-debug.c (debug_sym_segments): Return a
10813 symfile_segment_data_up.
10814
10815 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10816
10817 PR build/25981
10818 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10819 Hardcode register numbers.
10820
10821 PR build/25981
10822 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10823 procfs_find_LDT_entry): Remove.
10824 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10825 procfs_find_LDT_entry): Remove.
10826 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10827 Remove.
10828
10829 2020-05-17 Pedro Alves <palves@redhat.com>
10830 Andrew Burgess <andrew.burgess@embecosm.com>
10831 Keno Fischer <keno@juliacomputing.com>
10832
10833 PR gdb/25741
10834 * breakpoint.c (build_target_condition_list): Update comments.
10835 (build_target_command_list): Update comments and skip matching
10836 locations.
10837 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10838 a separate function. Simplify "set breakpoint auto-hw off"
10839 handling.
10840 (insert_breakpoints): Update comment.
10841 (tracepoint_locations_match): New parameter. For breakpoints,
10842 compare location types too, if the caller wants to.
10843 (handle_automatic_hardware_breakpoints): New functions.
10844 (bp_location_is_less_than): Also sort by location type and
10845 hardware breakpoint length.
10846 (update_global_location_list): Handle "set breakpoint auto-hw on"
10847 here.
10848 (update_breakpoint_locations): Ask breakpoint_locations_match to
10849 ignore location types.
10850
10851 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10852
10853 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10854 type::name instead.
10855
10856 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10857
10858 * gdbtypes.h (struct type) <name, set_name>: New methods.
10859 (TYPE_CODE): Use type::name. Change all call sites used to set
10860 the name to use type::set_name instead.
10861
10862 2020-05-16 Tom Tromey <tom@tromey.com>
10863
10864 * top.c (quit_force): Update.
10865 * infrun.c (handle_no_resumed): Update.
10866 * top.h (all_uis): New function.
10867 (ALL_UIS): Remove.
10868
10869 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10870
10871 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10872
10873 2020-05-16 Pedro Alves <palves@redhat.com>
10874
10875 * ia64-linux-nat.c
10876 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10877 Declare method.
10878 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10879
10880 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10883 (sparc64_adi_info): Likewise.
10884
10885 2020-05-15 Tom Tromey <tom@tromey.com>
10886
10887 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10888 block_objfile.
10889 (lookup_objfile_from_block): Remove.
10890 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10891 (lookup_global_symbol): Use block_objfile.
10892 * symtab.h (lookup_objfile_from_block): Don't declare.
10893 * printcmd.c (clear_dangling_display_expressions): Use
10894 block_objfile.
10895 * parse.c (operator_check_standard): Use block_objfile.
10896
10897 2020-05-15 Tom Tromey <tom@tromey.com>
10898
10899 * language.c (language_alloc_type_symbol): Set
10900 SYMBOL_SECTION.
10901 * symtab.c (initialize_objfile_symbol): Remove.
10902 (allocate_symbol): Remove.
10903 (allocate_template_symbol): Remove.
10904 * dwarf2/read.c (fixup_go_packaging): Use "new".
10905 (new_symbol): Use "new".
10906 (read_variable): Don't call initialize_objfile_symbol. Use
10907 "new".
10908 (read_func_scope): Use "new".
10909 * xcoffread.c (process_xcoff_symbol): Don't call
10910 initialize_objfile_symbol.
10911 (SYMBOL_DUP): Remove.
10912 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10913 "new".
10914 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10915 (allocate_template_symbol): Don't declare.
10916 (struct symbol): Add copy constructor. Change defaults.
10917 * jit.c (finalize_symtab): Use "new".
10918 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10919 Use "new".
10920 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10921 (common_block_end): Use "new".
10922 * mdebugread.c (parse_symbol): Use "new".
10923 (new_symbol): Likewise.
10924
10925 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10926
10927 * NEWS: Mention changes to help and apropos.
10928
10929 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10930
10931 * command.h (enum command_class): Improve comments, document
10932 that class_alias is for user-defined aliases, give the class
10933 name for each class, remove unused class_xdb.
10934 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10935 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10936 by a precise class.
10937 * infcmd.c (_initialize_infcmd): Likewise.
10938 * reverse.c (_initialize_reverse): Likewise.
10939 * stack.c (_initialize_stack): Likewise.
10940 * symfile.c (_initialize_symfile): Likewise.
10941 * tracepoint.c (_initialize_tracepoint): Likewise.
10942
10943 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10944
10945 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10946 when their aliased command is traversed.
10947 (help_cmd): Add fput_command_names_styled call to
10948 output command name and aliases when command has an alias.
10949
10950 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10951
10952 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10953 * cli/cli-decode.c (help_cmd_list): Declare as static,
10954 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10955 a command together with the command.
10956 (fput_command_name_styled, fput_command_names_styled): New functions.
10957 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10958 fput_command_name_styled.
10959 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10960 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10961
10962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10963
10964 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10965 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10966 * command.h (cmd_show_list): Likewise.
10967 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10968 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10969
10970 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10971
10972 * unittests/command-def-selftests.c (traverse_command_structure):
10973 Verify all commands of a list have the same prefix command and
10974 that only the top cmdlist commands have a null prefix.
10975
10976 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10977
10978 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10979 as prefix, not one of its aliases.
10980 (set_cmd_prefix): Remove.
10981 (do_add_cmd): Centralize the setting of the prefix of a command, when
10982 command is defined after its full chain of prefix commands.
10983 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10984 (add_setshow_cmd_full): Likewise.
10985 (update_prefix_field_of_prefixed_commands): New function.
10986 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10987 update_prefix_field_of_prefixed_commands.
10988 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10989 addresses of remote_set_cmdlist and remote_show_cmdlist given
10990 as argument, not the address of an argument.
10991 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10992 * gdb/remote.c (_initialize_remote): Likewise.
10993
10994 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10995
10996 * cli/cli-cmds.c (alias_command): Check for an existing alias
10997 using lookup_cmd_composition, as valid_command_p is too strict
10998 and forbids aliases that are the prefix of an existing alias
10999 or command.
11000 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11001 command is properly recognised as a valid command.
11002
11003 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004
11005 * unittests/help-doc-selftests.c: Rename to
11006 unittests/command-def-selftests.c
11007 * unittests/command-def-selftests.c (help_doc_tests): Update some
11008 comments.
11009 (command_structure_tests, traverse_command_structure): New namespace
11010 and function.
11011 (command_structure_invariants_tests): New function.
11012 (_initialize_command_def_selftests) Renamed from
11013 _initialize_help_doc_selftests, register command_structure_invariants
11014 selftest.
11015
11016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11017
11018 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11019 an alias of 'show'.
11020
11021 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11022
11023 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11024 ada_is_fixed_point_type. Update all callers.
11025 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11026 all callers.
11027 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11028 Update all callers.
11029 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11030 print_fixed_point_type. Update all callers.
11031 * ada-valprint.c (ada_value_print_num): Replace call to
11032 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11033
11034 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11035
11036 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11037 processors.
11038 (cpu_supports_bts): Add CV_AMD case.
11039
11040 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11041 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * infrun.c (stop_all_threads): Collect multiple wait events at
11044 each pass.
11045
11046 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11047
11048 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11049 type::code instead.
11050
11051 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11052
11053 * gdbtypes.h (struct type) <code, set_code>: New methods.
11054 (TYPE_CODE): Use type::code. Change all call sites used to set
11055 the code to use type::set_code instead.
11056
11057 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11058 Tom de Vries <tdevries@suse.de>
11059 Pedro Alves <palves@redhat.com>
11060
11061 PR threads/25478
11062 * infrun.c (stop_all_threads): Do NOT ignore
11063 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11064 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11065 received.
11066 (handle_no_resumed): Remove code handling a live inferior with no
11067 threads.
11068 * remote.c (has_single_non_exited_thread): New.
11069 (remote_target::update_thread_list): Do not delete a thread if is
11070 the last thread of the process.
11071 * thread.c (thread_select): Call delete_exited_threads instead of
11072 prune_threads.
11073
11074 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11075
11076 * infrun.c (stop_all_threads): Enable/disable thread events of all
11077 targets. Move a debug message denoting the end of the function
11078 into the SCOPED_EXIT block.
11079
11080 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11081
11082 * process-stratum-target.h: Include <set>.
11083 (all_non_exited_process_targets, switch_to_target_no_thread): New
11084 function declarations.
11085 * process-stratum-target.c (all_non_exited_process_targets)
11086 (switch_to_target_no_thread): New function implementations.
11087
11088 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11089
11090 * infrun.c (handle_inferior_event): Extract out a piece of code
11091 into...
11092 (mark_non_executing_threads): ...this new function.
11093
11094 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11095
11096 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11097 use.
11098
11099 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11100
11101 * regcache.c (regcache_read_pc_protected): New function
11102 implementation that returns 0 if the PC cannot read via
11103 'regcache_read_pc'.
11104 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11105 instead of 'regcache_read_pc'.
11106 (keep_going_pass_signal): Ditto.
11107
11108 2020-05-13 Tom Tromey <tromey@adacore.com>
11109
11110 * ada-lang.c (align_value): Remove.
11111 (ada_template_to_fixed_record_type_1): Use align_up.
11112
11113 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11114
11115 * async-event.c: Update the copyright year.
11116 * async-event.h: Update the copyright year.
11117
11118 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * objfiles.h (is_addr_in_objfile,
11121 shared_objfile_contains_address_p): Return bool.
11122 * objfile.c (is_addr_in_objfile,
11123 shared_objfile_contains_address_p): Return bool.
11124
11125 2020-05-11 Tom Tromey <tromey@adacore.com>
11126
11127 * cli/cli-cmds.c (info_command): Restore.
11128 (_initialize_cli_cmds): Use add_prefix_command for "info".
11129 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11130
11131 2020-05-11 Tom Tromey <tromey@adacore.com>
11132
11133 * ada-lang.c (ada_value_primitive_field): Now public.
11134 * ada-lang.h (ada_value_primitive_field): Declare.
11135 * ada-valprint.c (print_field_values): Use
11136 ada_value_primitive_field for wrapper fields.
11137
11138 2020-05-11 Tom de Vries <tdevries@suse.de>
11139
11140 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11141 MODULE_DOMAIN.
11142
11143 2020-05-11 Tom de Vries <tdevries@suse.de>
11144
11145 PR symtab/25941
11146 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11147 with length 0, if not gdb-produced.
11148 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11149
11150 2020-05-09 Tom de Vries <tdevries@suse.de>
11151
11152 PR gdb/25955
11153 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11154 calculation.
11155
11156 2020-05-09 Tom Tromey <tom@tromey.com>
11157
11158 * top.c (server_command): Now bool.
11159 * top.h (server_command): Now bool.
11160
11161 2020-05-08 Tom Tromey <tromey@adacore.com>
11162
11163 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11164 already being processed.
11165
11166 2020-05-08 Tom Tromey <tom@tromey.com>
11167
11168 * printcmd.c (struct display) <next>: Remove.
11169 <display>: New constructor.
11170 <exp_string>: Now a std::string.
11171 <enabled_p>: Now a bool.
11172 (display_number): Move definition earlier.
11173 (displays): Rename from display_chain. Now a std::vector.
11174 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11175 (display_command): Update.
11176 (do_one_display, disable_display)
11177 (enable_disable_display_command, do_enable_disable_display):
11178 Update.
11179 (free_display): Remove.
11180 (clear_displays): Rewrite.
11181 (delete_display): Update.
11182 (map_display_numbers): Use function_view. Remove "data"
11183 parameter. Update.
11184 (do_delete_display): Remove.
11185 (undisplay_command): Update.
11186 (do_one_display, do_displays, disable_display)
11187 (info_display_command): Update.
11188 (do_enable_disable_display): Remove.
11189 (enable_disable_display_command)
11190 (clear_dangling_display_expressions): Update.
11191
11192 2020-05-08 Tom Tromey <tom@tromey.com>
11193
11194 * symtab.c (set_symbol_cache_size)
11195 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11196 (maintenance_print_symbol_cache_statistics): Update.
11197 * symmisc.c (print_symbol_bcache_statistics)
11198 (print_objfile_statistics, maintenance_print_objfiles)
11199 (maintenance_info_symtabs, maintenance_check_symtabs)
11200 (maintenance_expand_symtabs, maintenance_info_line_tables):
11201 Update.
11202 * symfile-debug.c (set_debug_symfile): Update.
11203 * source.c (forget_cached_source_info): Update.
11204 * python/python.c (gdbpy_progspaces): Update.
11205 * psymtab.c (maintenance_info_psymtabs): Update.
11206 * probe.c (parse_probes): Update.
11207 * linespec.c (iterate_over_all_matching_symtabs)
11208 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11209 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11210 * exec.c (exec_target::close): Update.
11211 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11212 * breakpoint.c (print_one_breakpoint_location)
11213 (create_longjmp_master_breakpoint)
11214 (create_std_terminate_master_breakpoint): Update.
11215 * progspace.c (program_spaces): Now a std::vector.
11216 (maybe_new_address_space): Update.
11217 (add_program_space): Remove.
11218 (program_space::program_space): Update.
11219 (remove_program_space): Update.
11220 (number_of_program_spaces): Remove.
11221 (print_program_space, update_address_spaces): Update.
11222 * progspace.h (program_spaces): Change type.
11223 (ALL_PSPACES): Remove.
11224 (number_of_program_spaces): Don't declare.
11225 (struct program_space) <next>: Remove.
11226
11227 2020-05-08 Tom Tromey <tom@tromey.com>
11228
11229 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11230 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11231 (enable_break): Update.
11232 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11233 (frv_fdpic_find_canonical_descriptor): Update.
11234 (frv_fetch_objfile_link_map): Update.
11235 * progspace.c (program_space::free_all_objfiles): Update.
11236 (program_space::solibs): New method.
11237 * progspace.h (struct program_space) <solibs>: New method.
11238 * solist.h (master_so_list): Don't declare.
11239 (ALL_SO_LIBS): Remove.
11240 * solib.h (so_list_head): Remove.
11241 (update_solib_list): Update comment.
11242 * solib.c (master_so_list): Remove.
11243 (solib_used, update_solib_list, solib_add)
11244 (info_sharedlibrary_command, clear_solib)
11245 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11246
11247 2020-05-08 Tom Tromey <tom@tromey.com>
11248
11249 * extension.c (extension_languages): Now a std::array.
11250 (ALL_EXTENSION_LANGUAGES): Remove.
11251 (get_ext_lang_defn, get_ext_lang_of_file)
11252 (eval_ext_lang_from_control_command): Update.
11253 (finish_ext_lang_initialization)
11254 (auto_load_ext_lang_scripts_for_objfile)
11255 (ext_lang_type_printers::ext_lang_type_printers)
11256 (apply_ext_lang_type_printers)
11257 (ext_lang_type_printers::~ext_lang_type_printers)
11258 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11259 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11260 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11261 (get_matching_xmethod_workers, ext_lang_colorize)
11262 (ext_lang_before_prompt): Update.
11263 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11264
11265 2020-05-08 Tom Tromey <tom@tromey.com>
11266
11267 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11268 overload.
11269 <swap_string, m_string>: Remove.
11270 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11271 Update.
11272 * stabsread.c (define_symbol, read_type): Update.
11273 * linespec.c (find_linespec_symbols): Update.
11274 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11275 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11276 * dbxread.c (read_dbx_symtab): Update.
11277 * cp-support.h (cp_canonicalize_string_full)
11278 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11279 Return unique_xmalloc_ptr.
11280 * cp-support.c (inspect_type): Update.
11281 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11282 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11283 Likewise.
11284 * c-typeprint.c (print_name_maybe_canonical): Update.
11285 * break-catch-throw.c (check_status_exception_catchpoint):
11286 Update.
11287
11288 2020-05-08 Tom de Vries <tdevries@suse.de>
11289
11290 * infrun.c (follow_fork): Copy current_line and current_symtab to
11291 child thread.
11292
11293 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11294
11295 * async-event.c (struct async_signal_handler, struct
11296 async_event_handler): Reformat, remove typedef.
11297
11298 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11299
11300 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11301 access thistype->main_type->dyn_prop_list directly.
11302
11303 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11304
11305 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11306 (remove_dyn_prop): Remove. Update all users to use
11307 type::remove_dyn_prop.
11308 * gdbtypes.c (remove_dyn_prop): Rename to...
11309 (type::remove_dyn_prop): ... this.
11310
11311 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11312
11313 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11314 (add_dyn_prop): Remove. Update all users to use
11315 type::add_dyn_prop.
11316 * gdbtypes.c (add_dyn_prop): Rename to...
11317 (type::add_dyn_prop): ... this.
11318
11319 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11320
11321 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11322 (get_dyn_prop): Remove. Update all users to use
11323 type::dyn_prop.
11324 * gdbtypes.c (get_dyn_prop): Rename to...
11325 (type::dyn_prop): ... this.
11326
11327 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11330
11331 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11332
11333 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11334 instruction, skip it if it's there.
11335
11336 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11337
11338 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11339
11340 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11343 * gdbtypes.c (recursive_dump_type): Remove use of
11344 TYPE_INCOMPLETE.
11345
11346 2020-05-03 Tom Tromey <tom@tromey.com>
11347
11348 * breakpoint.c (catch_command, tcatch_command): Remove.
11349 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11350 add_show_prefix_cmd.
11351 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11352 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11353 Remove.
11354 (add_internal_problem_command): Use add_basic_prefix_cmd,
11355 add_show_prefix_cmd.
11356 * mips-tdep.c (set_mipsfpu_command): Remove.
11357 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11358 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11359 (_initialize_index_cache): Use add_basic_prefix_cmd.
11360 * memattr.c (dummy_cmd): Remove.
11361 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11362 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11363 (_initialize_tui_win): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 * cli/cli-logging.c (set_logging_command): Remove.
11366 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11367 add_show_prefix_cmd.
11368 (show_logging_command): Remove.
11369 * target.c (target_command): Remove.
11370 (add_target): Use add_basic_prefix_cmd.
11371
11372 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11373
11374 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11375
11376 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11377
11378 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11379 info_command.
11380
11381 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11382
11383 * nbsd-nat.c (nbsd_enable_proc_events)
11384 (nbsd_nat_target::post_startup_inferior): Add.
11385 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11386 (nbsd_nat_target::update_thread_list): Rewrite.
11387 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11388 "PTRACE_LWP_CREATE".
11389 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11390
11391 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11392
11393 * stack.c (_initialize_stack): Remove duplicated creation
11394 of "frame" command and "f" alias.
11395
11396 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11397
11398 PR gdb/18706
11399 * gdbtypes.c (check_typedef): Calculate size of array of
11400 stubbed type.
11401
11402 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11403
11404 PR gdb/15559
11405 * i386-tdep.c (i386_push_dummy_call): Call
11406 i386_thiscall_push_dummy_call.
11407 (i386_thiscall_push_dummy_call): New function.
11408 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11409 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11410 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11411
11412 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11413
11414 * gdbarch.sh (do_read): Add shellcheck disable directive for
11415 warning SC2162.
11416
11417 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11418
11419 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11420 "referenced but not assigned" warning.
11421
11422 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * gdbarch.sh: Remove code that sets fallbackdefault.
11425
11426 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * gdbarch.sh: Use shell operators && and || instead of
11429 -a and -o.
11430
11431 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11432
11433 * gdbarch.sh: Use $(...) instead of `...`.
11434
11435 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11436
11437 * gdbarch.sh: Use double quotes around variables.
11438
11439 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11440
11441 * gdbarch.sh: Use %s with printf, instead of variables in the
11442 format string.
11443
11444 2020-04-29 Tom Tromey <tromey@adacore.com>
11445
11446 PR ada/25875:
11447 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11448 type fields here.
11449 (read_enumeration_type): Call
11450 update_enumeration_type_from_children later. Update comments.
11451 (process_enumeration_scope): Don't create type fields.
11452
11453 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11454
11455 * nbsd-tdep.c: Include "xml-syscall.h".
11456 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11457
11458 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11459
11460 * nbsd-nat.c: Include "sys/wait.h".
11461 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11462 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11463 (nbsd_nat_target::remove_exec_catchpoint)
11464 (nbsd_nat_target::set_syscall_catchpoint): Add.
11465 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11466 (nbsd_nat_target::insert_exec_catchpoint)
11467 (nbsd_nat_target::remove_exec_catchpoint)
11468 (nbsd_nat_target::set_syscall_catchpoint): Add.
11469 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11470 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11471 `nbsd_get_syscall_number'.
11472
11473 2020-04-29 Tom Tromey <tom@tromey.com>
11474
11475 * stack.c (print_block_frame_labels): Remove.
11476
11477 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11478
11479 PR gdb/17320
11480 * ada-valprint.c (val_print_packed_array_elements): Move array
11481 end bracket to new line.
11482 (ada_val_print_string): Remove extra spaces before first array
11483 element.
11484 * c-valprint.c (c_value_print_array): Likewise.
11485 * m2-valprint.c (m2_print_array_contents): Likewise.
11486 (m2_value_print_inner): Likewise.
11487 * p-valprint.c (pascal_value_print_inner): Likewise.
11488 * valprint.c (generic_val_print_array): Likewise.
11489 (value_print_array_elements): Move first array element and array
11490 end bracket to new line.
11491
11492 2020-04-29 Tom de Vries <tdevries@suse.de>
11493
11494 PR symtab/25889
11495 * linespec.c (find_method): Fix ix calculation.
11496
11497 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11498
11499 * syscalls/update-netbsd.sh: New file.
11500 * syscalls/netbsd.xml: Regenerate.
11501 * data-directory/Makefile.in: Register `netbsd.xml' in
11502 `SYSCALLS_FILES'.
11503
11504 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11505
11506 * syscalls/update-freebsd.sh: Add double quotes.
11507
11508 2020-04-28 Tom Tromey <tom@tromey.com>
11509
11510 * NEWS: Update.
11511 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11512 (cmdpy_init): Allow class_tui.
11513
11514 2020-04-28 Mark Williams <mark@myosotissp.com>
11515
11516 PR gdb/24480
11517 * dwarf2read.c: Add missing assingments to list_in_scope when
11518 start_symtab was already called.
11519
11520 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11521
11522 PR gdb/25881
11523 * dwarf2/read.c (offset_map_type): Use
11524 gdb:hash_enum<sect_offset> as hash function.
11525
11526 2020-04-28 Tom de Vries <tdevries@suse.de>
11527
11528 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11529 with DW_AT_signature.
11530
11531 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11532
11533 * configure.ac: Remove check for fs_base/gs_base in
11534 user_regs_struct.
11535 * configure: Re-generate.
11536 * config.in: Re-generate.
11537 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11538 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11539 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11540
11541 2020-04-27 Luis Machado <luis.machado@linaro.org>
11542
11543 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11544 problematic inline frame unwinding situation.
11545 * frame.c (frame_id_computed_p): New function.
11546 * frame.h (frame_id_computed_p): New prototype.
11547
11548 2020-04-26 Tom Tromey <tom@tromey.com>
11549
11550 * command.h (enum command_class) <class_pseudo>: Remove.
11551
11552 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11553
11554 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11555 and whitespace.
11556
11557 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11558
11559 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11560 `PT_GET_PROCESS_STATE' block.
11561
11562 2020-04-24 Tom Tromey <tom@tromey.com>
11563
11564 * symtab.h (symbol_get_demangled_name): Don't declare.
11565 * symtab.c (symbol_get_demangled_name): Remove.
11566 (general_symbol_info::natural_name)
11567 (general_symbol_info::demangled_name): Update.
11568
11569 2020-04-24 Tom Tromey <tom@tromey.com>
11570
11571 PR rust/25025:
11572 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11573
11574 2020-04-24 Tom Tromey <tom@tromey.com>
11575
11576 PR symtab/12707:
11577 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11578 exists.
11579 (new_symbol): Likewise.
11580 * compile/compile-object-load.c (get_out_value_type): Use
11581 symbol_matches_search_name.
11582
11583 2020-04-24 Tom Tromey <tom@tromey.com>
11584
11585 * dwarf2/read.c (add_partial_symbol): Do not call
11586 compute_and_set_names.
11587
11588 2020-04-24 Tom Tromey <tom@tromey.com>
11589
11590 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11591 overload.
11592
11593 2020-04-24 Tom Tromey <tom@tromey.com>
11594
11595 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11596 (add_psymbol_to_list): New overload. Make old overload call new
11597 one.
11598 * psympriv.h (add_psymbol_to_list): New overload.
11599
11600 2020-04-24 Tom Tromey <tom@tromey.com>
11601
11602 * dwarf2/read.c (partial_die_info::read) <case
11603 DW_AT_linkage_name>: Use value_as_string.
11604 (dwarf2_string_attr): Use value_as_string.
11605 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11606 method.
11607 * dwarf2/attribute.c (attribute::value_as_string): New method.
11608
11609 2020-04-24 Tom Tromey <tom@tromey.com>
11610
11611 * symtab.c (general_symbol_info::natural_name)
11612 (general_symbol_info::demangled_name): Check for language_rust.
11613
11614 2020-04-24 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11617 (dwarf2_physname): ... from here.
11618 (partial_die_info::read): Add Rust "{" hack.
11619
11620 2020-04-24 Tom Tromey <tom@tromey.com>
11621
11622 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11623 method.
11624 (symbol_set_demangled_name): Don't declare.
11625 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11626 symbol_set_demangled_name.
11627 (general_symbol_info::set_language)
11628 (general_symbol_info::compute_and_set_names): Update.
11629 * minsyms.c (minimal_symbol_reader::install): Update.
11630 * dwarf2/read.c (new_symbol): Update.
11631
11632 2020-04-24 Tom Tromey <tromey@adacore.com>
11633
11634 PR python/23662:
11635 * python/py-type.c (convert_field): Handle
11636 FIELD_LOC_KIND_DWARF_BLOCK.
11637 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11638 (typy_get_dynamic): Nw function.
11639 (type_object_getset): Add "dynamic".
11640 * NEWS: Add entry.
11641
11642 2020-04-24 Tom Tromey <tromey@adacore.com>
11643
11644 * ada-typeprint.c (print_choices, print_variant_part)
11645 (print_record_field_types_dynamic): New functions.
11646 (print_record_field_types): Use print_record_field_types_dynamic.
11647
11648 2020-04-24 Tom Tromey <tromey@adacore.com>
11649
11650 * dwarf2/read.c (handle_data_member_location): New overload.
11651 (dwarf2_add_field): Use it.
11652 (decode_locdesc): Add "computed" parameter. Update comment.
11653 * gdbtypes.c (is_dynamic_type_internal): Also look for
11654 FIELD_LOC_KIND_DWARF_BLOCK.
11655 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11656 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11657 virtual base classes.
11658 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11659 FIELD_LOC_KIND_DWARF_BLOCK.
11660
11661 2020-04-24 Tom Tromey <tromey@adacore.com>
11662
11663 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11664 * gdbtypes.c (is_dynamic_type_internal): Check
11665 TYPE_HAS_DYNAMIC_LENGTH.
11666 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11667 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11668 New macros.
11669 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11670 constant.
11671
11672 2020-04-24 Tom Tromey <tromey@adacore.com>
11673
11674 * dwarf2/read.c (struct variant_field): Rewrite.
11675 (struct variant_part_builder): New.
11676 (struct nextfield): Remove "variant" field. Add "offset".
11677 (struct field_info): Add "current_variant_part" and
11678 "variant_parts".
11679 (alloc_discriminant_info): Remove.
11680 (alloc_rust_variant): New function.
11681 (quirk_rust_enum): Update.
11682 (dwarf2_add_field): Set "offset" member. Don't handle
11683 DW_TAG_variant_part.
11684 (offset_map_type): New typedef.
11685 (convert_variant_range, create_one_variant)
11686 (create_one_variant_part, create_variant_parts)
11687 (add_variant_property): New functions.
11688 (dwarf2_attach_fields_to_type): Call add_variant_property.
11689 (read_structure_type): Don't handle DW_TAG_variant_part.
11690 (handle_variant_part, handle_variant): New functions.
11691 (handle_struct_member_die): Use them.
11692 (process_structure_scope): Don't handle variant parts.
11693 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11694 (struct discriminant_info): Remove.
11695 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11696 (struct main_type) <flag_discriminated_union>: Remove.
11697 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11698 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11699 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11700 Update.
11701 * valops.c (value_union_variant): Remove.
11702 * value.h (value_union_variant): Don't declare.
11703
11704 2020-04-24 Tom Tromey <tromey@adacore.com>
11705
11706 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11707 (ada_value_primitive_packed_val): Update.
11708 * ada-valprint.c (ada_value_print_1): Update.
11709 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11710 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11711 just an address. Use evaluate_for_locexpr_baton.
11712 (dwarf2_evaluate_property): Update.
11713 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11714 array_view.
11715 * findvar.c (default_read_var_value): Update.
11716 * gdbtypes.c (compute_variant_fields_inner)
11717 (resolve_dynamic_type_internal): Update.
11718 (resolve_dynamic_type): Change type of valaddr parameter.
11719 * gdbtypes.h (resolve_dynamic_type): Update.
11720 * valarith.c (value_subscripted_rvalue): Update.
11721 * value.c (value_from_contents_and_address): Update.
11722
11723 2020-04-24 Tom Tromey <tromey@adacore.com>
11724
11725 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11726 "push_initial_value" parameter.
11727 (dwarf2_evaluate_property): Likewise.
11728 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11729
11730 2020-04-24 Tom Tromey <tromey@adacore.com>
11731
11732 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11733 (variant::matches, compute_variant_fields_recurse)
11734 (compute_variant_fields_inner, compute_variant_fields): New
11735 functions.
11736 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11737 Use resolved_type after type is made.
11738 (operator==): Add new cases.
11739 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11740 (struct discriminant_range, struct variant, struct variant_part):
11741 New.
11742 (union dynamic_prop_data) <variant_parts, original_type>: New
11743 members.
11744 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11745 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11746 constants.
11747 * value.c (unpack_bits_as_long): Now public.
11748 * value.h (unpack_bits_as_long): Declare.
11749
11750 2020-04-24 Tom Tromey <tromey@adacore.com>
11751
11752 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11753 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11754
11755 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11756
11757 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11758
11759 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11760
11761 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11762 (remove_fork_catchpoint, post_startup_inferior)
11763 (post_attach): Move...
11764 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11765 (remove_fork_catchpoint, post_startup_inferior)
11766 (post_attach): ...here.
11767 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11768 (remove_fork_catchpoint, post_startup_inferior)
11769 (post_attach): Move...
11770 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11771 (remove_fork_catchpoint, post_startup_inferior)
11772 (post_attach): ...here.
11773
11774 2020-04-24 Tom Tromey <tromey@adacore.com>
11775
11776 * nat/windows-nat.h (struct windows_thread_info)
11777 <pc_adjusted>: New member.
11778 * windows-nat.c (windows_fetch_one_register): Check
11779 pc_adjusted.
11780 (windows_nat_target::get_windows_debug_event)
11781 (windows_nat_target::wait): Set pc_adjusted.
11782
11783 2020-04-24 Tom de Vries <tdevries@suse.de>
11784
11785 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11786 Run gdb-add-index inside temp dir.
11787
11788 2020-04-23 Tom Tromey <tromey@adacore.com>
11789
11790 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11791 in loop.
11792
11793 2020-04-23 Luis Machado <luis.machado@linaro.org>
11794
11795 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11796 get_frame_register instead of gdbarch_unwind_pc.
11797
11798 2020-04-23 Tom de Vries <tdevries@suse.de>
11799
11800 * symtab.c (lookup_global_symbol): Prefer def over decl.
11801
11802 2020-04-23 Tom de Vries <tdevries@suse.de>
11803
11804 PR symtab/25807
11805 * block.c (best_symbol, better_symbol): Promote to external.
11806 * block.h (best_symbol, better_symbol): Declare.
11807 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11808 decl.
11809
11810 2020-04-23 Tom Tromey <tromey@adacore.com>
11811
11812 PR ada/25837:
11813 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11814 "const char *", not a "const std::string &".
11815 <name_and_matcher::operator==>: Update.
11816 * unittests/lookup_name_info-selftests.c: Change type of
11817 "result".
11818
11819 2020-04-23 Tom Tromey <tom@tromey.com>
11820
11821 * inferior.h (iterate_over_inferiors): Don't declare.
11822 * inferior.c (iterate_over_inferiors): Remove.
11823 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11824 Remove.
11825 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11826 use iterate_over_inferiors.
11827 (darwin_resume_inferior_it)
11828 (struct resume_inferior_threads_param)
11829 (darwin_resume_inferior_threads_it): Remove.
11830 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11831
11832 2020-04-23 Tom de Vries <tdevries@suse.de>
11833
11834 * blockframe.c (find_pc_partial_function): Use
11835 find_pc_sect_compunit_symtab rather than
11836 objfile->sf->qf->find_pc_sect_compunit_symtab.
11837
11838 2020-04-22 Tom de Vries <tdevries@suse.de>
11839
11840 PR symtab/25764
11841 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11842 in psymtabs.
11843
11844 2020-04-22 Tom de Vries <tdevries@suse.de>
11845
11846 PR symtab/25801
11847 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11848 symtabs.
11849
11850 2020-04-22 Tom de Vries <tdevries@suse.de>
11851
11852 PR symtab/25700
11853 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11854 CU if already created.
11855
11856 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11857
11858 * infrun.c (displaced_step_fixup): Switch to the event_thread
11859 before calling displaced_step_restore, not after.
11860
11861 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11862
11863 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11864 its inferior is not recorded by us.
11865 (record_btrace_target_open): Replace call to
11866 all_non_exited_threads () with call to current_inferior
11867 ()->non_exited_threads ().
11868 (record_btrace_target::stop_recording): Likewise.
11869 (record_btrace_target::close): Likewise.
11870 (record_btrace_target::wait): Likewise.
11871 (record_btrace_target::record_stop_replaying): Likewise.
11872
11873 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11874
11875 * btrace.c (btrace_enable): Throw an error on double enables and
11876 when enabling recording fails.
11877 (btrace_disable): Throw an error if the thread is not recorded.
11878
11879 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11880
11881 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11882 request if we do not have a thread_info.
11883
11884 2020-04-21 Tom de Vries <tdevries@suse.de>
11885
11886 PR gdb/25471
11887 * thread.c
11888 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11889 exception in get_frame_id.
11890
11891 2020-04-20 Tom Tromey <tromey@adacore.com>
11892
11893 * python/python.c (struct gdbpy_event): Mark move constructor as
11894 noexcept.
11895 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11896 constructor as noexcept.
11897 * completer.h (struct completion_result): Mark move constructor as
11898 noexcept.
11899 * completer.c (completion_result::completion_result): Use
11900 initialization style. Don't call reset_match_list.
11901
11902 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11903
11904 * MAINTAINERS (Write After Approval): Add myself.
11905
11906 2020-04-18 Tom Tromey <tom@tromey.com>
11907
11908 * windows-tdep.c (init_w32_command_list)
11909 (w32_prefix_command_valid): Restore.
11910 (_initialize_windows_tdep): Call init_w32_command_list.
11911
11912 2020-04-18 Tom Tromey <tom@tromey.com>
11913
11914 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11915 * value.c (value_fn_field): Update.
11916 * valops.c (find_function_in_inferior)
11917 (value_allocate_space_in_inferior): Update.
11918 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11919 Update.
11920 * tui/tui-source.c (tui_source_window::set_contents): Update.
11921 * symtab.c (lookup_global_or_static_symbol)
11922 (find_function_start_sal_1, skip_prologue_sal)
11923 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11924 * symmisc.c (dump_msymbols, dump_symtab_1)
11925 (maintenance_print_one_line_table): Update.
11926 * symfile.c (init_entry_point_info, section_is_mapped)
11927 (list_overlays_command, simple_read_overlay_table)
11928 (simple_overlay_update_1): Update.
11929 * stap-probe.c (handle_stap_probe): Update.
11930 * stabsread.c (dbx_init_float_type, define_symbol)
11931 (read_one_struct_field, read_enum_type, read_range_type): Update.
11932 * source.c (info_line_command): Update.
11933 * python/python.c (gdbpy_source_objfile_script)
11934 (gdbpy_execute_objfile_script): Update.
11935 * python/py-type.c (save_objfile_types): Update.
11936 * python/py-objfile.c (py_free_objfile): Update.
11937 * python/py-inferior.c (python_new_objfile): Update.
11938 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11939 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11940 (maintenance_check_psymtabs): Update.
11941 * printcmd.c (info_address_command): Update.
11942 * objfiles.h (struct objfile) <arch>: New method, from
11943 get_objfile_arch.
11944 (get_objfile_arch): Don't declare.
11945 * objfiles.c (get_objfile_arch): Remove.
11946 (filter_overlapping_sections): Update.
11947 * minsyms.c (msymbol_is_function): Update.
11948 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11949 (output_nondebug_symbol): Update.
11950 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11951 (mdebug_expand_psymtab): Update.
11952 * machoread.c (macho_add_oso_symfile): Update.
11953 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11954 Update.
11955 * linux-fork.c (checkpoint_command): Update.
11956 * linespec.c (convert_linespec_to_sals): Update.
11957 * jit.c (finalize_symtab): Update.
11958 * infrun.c (insert_exception_resume_from_probe): Update.
11959 * ia64-tdep.c (ia64_find_unwind_table): Update.
11960 * hppa-tdep.c (internalize_unwinds): Update.
11961 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11962 Update.
11963 * gcore.c (call_target_sbrk): Update.
11964 * elfread.c (record_minimal_symbol, elf_symtab_read)
11965 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11966 (elf_gnu_ifunc_resolve_by_got): Update.
11967 * dwarf2/read.c (create_addrmap_from_index)
11968 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11969 (read_debug_names_from_section)
11970 (process_psymtab_comp_unit_reader, add_partial_symbol)
11971 (add_partial_subprogram, process_full_comp_unit)
11972 (read_file_scope, read_func_scope, read_lexical_block_scope)
11973 (read_call_site_scope, dwarf2_ranges_read)
11974 (dwarf2_record_block_ranges, dwarf2_add_field)
11975 (mark_common_block_symbol_computed, read_tag_pointer_type)
11976 (read_tag_string_type, dwarf2_init_float_type)
11977 (dwarf2_init_complex_target_type, read_base_type)
11978 (partial_die_info::read, partial_die_info::read)
11979 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11980 (dwarf2_fetch_die_loc_sect_off): Update.
11981 * dwarf2/loc.c (dwarf2_find_location_expression)
11982 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11983 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11984 (dwarf2_loc_desc_get_symbol_read_needs)
11985 (locexpr_describe_location_piece, locexpr_describe_location_1)
11986 (loclist_describe_location): Update.
11987 * dwarf2/index-write.c (write_debug_names): Update.
11988 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11989 * dtrace-probe.c (dtrace_process_dof): Update.
11990 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11991 (process_one_symbol): Update.
11992 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11993 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11994 (coff_read_enum_type): Update.
11995 * cli/cli-cmds.c (edit_command, list_command): Update.
11996 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11997 * breakpoint.c (create_overlay_event_breakpoint)
11998 (create_longjmp_master_breakpoint)
11999 (create_std_terminate_master_breakpoint)
12000 (create_exception_master_breakpoint, get_sal_arch): Update.
12001 * block.c (block_gdbarch): Update.
12002 * annotate.c (annotate_source_line): Update.
12003
12004 2020-04-17 Tom Tromey <tromey@adacore.com>
12005
12006 * auto-load.c (show_auto_load_cmd): Remove.
12007 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12008 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12009 (maintenance_print_arc_command): Remove.
12010 * tui/tui-win.c (tui_command): Remove.
12011 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12012 * tui/tui-layout.c (tui_layout_command): Remove.
12013 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12014 * python/python.c (user_set_python, user_show_python): Remove.
12015 (_initialize_python): Use add_basic_prefix_cmd,
12016 add_show_prefix_cmd.
12017 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12018 (install_gdb_commands): Use add_basic_prefix_cmd,
12019 add_show_prefix_cmd.
12020 (info_guile_command): Remove.
12021 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12022 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12023 add_show_prefix_cmd.
12024 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12025 Remove do_set and do_show parameters.
12026 * cli/cli-style.c (set_style, show_style): Remove.
12027 (_initialize_cli_style): Use add_basic_prefix_cmd,
12028 add_show_prefix_cmd.
12029 (cli_style_option::add_setshow_commands): Remove do_set and
12030 do_show parameters.
12031 (cli_style_option::add_setshow_commands): Use
12032 add_basic_prefix_cmd, add_show_prefix_cmd.
12033 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12034 (set_style_name): Remove.
12035 * cli/cli-dump.c (dump_command, append_command): Remove.
12036 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12037 (tekhex_dump_command, binary_dump_command)
12038 (binary_append_command): Remove.
12039 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12040 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12041 (init_w32_command_list): Remove; move into ...
12042 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12043 * valprint.c (set_print, show_print, set_print_raw)
12044 (show_print_raw): Remove.
12045 (_initialize_valprint): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 * typeprint.c (set_print_type, show_print_type): Remove.
12048 (_initialize_typeprint): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * record.c (set_record_command, show_record_command): Remove.
12051 (_initialize_record): Use add_basic_prefix_cmd,
12052 add_show_prefix_cmd.
12053 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12054 add_show_prefix_cmd.
12055 (info_command, show_command, set_debug, show_debug): Remove.
12056 * top.h (set_history, show_history): Don't declare.
12057 * top.c (set_history, show_history): Remove.
12058 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12059 (unset_tdesc_cmd): Remove.
12060 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12061 add_show_prefix_cmd.
12062 * symtab.c (info_module_command): Remove.
12063 (_initialize_symtab): Use add_basic_prefix_cmd.
12064 * symfile.c (overlay_command): Remove.
12065 (_initialize_symfile): Use add_basic_prefix_cmd.
12066 * sparc64-tdep.c (info_adi_command): Remove.
12067 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12068 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12069 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12070 add_show_prefix_cmd.
12071 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12072 (_initialize_serial): Use add_basic_prefix_cmd,
12073 add_show_prefix_cmd.
12074 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12075 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12076 add_show_prefix_cmd.
12077 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12078 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12079 add_show_prefix_cmd.
12080 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12081 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12082 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * remote.c (remote_command, set_remote_cmd): Remove.
12085 (_initialize_remote): Use add_basic_prefix_cmd.
12086 * record-full.c (set_record_full_command)
12087 (show_record_full_command): Remove.
12088 (_initialize_record_full): Use add_basic_prefix_cmd,
12089 add_show_prefix_cmd.
12090 * record-btrace.c (cmd_set_record_btrace)
12091 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12092 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12093 (cmd_show_record_btrace_pt): Remove.
12094 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12095 add_show_prefix_cmd.
12096 * ravenscar-thread.c (set_ravenscar_command)
12097 (show_ravenscar_command): Remove.
12098 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * mips-tdep.c (show_mips_command, set_mips_command)
12101 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12102 add_show_prefix_cmd.
12103 * maint.c (maintenance_command, maintenance_info_command)
12104 (maintenance_check_command, maintenance_print_command)
12105 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12106 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12107 add_show_prefix_cmd.
12108 (show_per_command_cmd): Remove.
12109 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12110 Remove.
12111 (maintenance_show_test_settings_cmd): Remove.
12112 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12113 add_show_prefix_cmd.
12114 * maint-test-options.c (maintenance_test_options_command):
12115 Remove.
12116 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12117 * macrocmd.c (macro_command): Remove
12118 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12119 * language.c (set_check, show_check): Remove.
12120 (_initialize_language): Use add_basic_prefix_cmd,
12121 add_show_prefix_cmd.
12122 * infcmd.c (unset_command): Remove.
12123 (_initialize_infcmd): Use add_basic_prefix_cmd.
12124 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12125 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12126 add_show_prefix_cmd.
12127 * go32-nat.c (go32_info_dos_command): Remove.
12128 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12129 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12130 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12131 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12132 (_initialize_frame): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12135 (_initialize_dcache): Use add_basic_prefix_cmd,
12136 add_show_prefix_cmd.
12137 * cp-support.c (maint_cplus_command): Remove.
12138 (_initialize_cp_support): Use add_basic_prefix_cmd.
12139 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12140 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12141 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12142 add_basic_prefix_cmd, add_show_prefix_cmd.
12143 * breakpoint.c (save_command): Remove.
12144 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12145 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12146 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12147 add_show_prefix_cmd.
12148 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12149 (set_ada_command, show_ada_command): Remove.
12150 (_initialize_ada_language): Use add_basic_prefix_cmd,
12151 add_show_prefix_cmd.
12152 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12153
12154 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12155
12156 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12157 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12158
12159 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12160
12161 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12162 warning messages.
12163
12164 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12165
12166 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12167 import table is not at beginning of .idata section.
12168
12169 2020-04-16 Pedro Alves <palves@redhat.com>
12170
12171 * inferior.c (delete_inferior): Use delete operator directly
12172 instead of delete_program_space.
12173 * progspace.c (add_program_space): New, factored out from
12174 program_space::program_space.
12175 (remove_program_space): New, factored out from
12176 delete_program_space.
12177 (program_space::program_space): Remove intro comment. Rewrite.
12178 (program_space::~program_space): Remove intro comment. Call
12179 remove_program_space.
12180 (delete_program_space): Delete.
12181 * progspace.h (program_space::program_space): Make explicit. Move
12182 intro comment here, adjusted.
12183 (program_space::~program_space): Move intro comment here,
12184 adjusted.
12185 (delete_program_space): Remove.
12186
12187 2020-04-16 Tom Tromey <tromey@adacore.com>
12188
12189 * windows-nat.c (windows_nat::handle_access_violation): New
12190 function.
12191 * nat/windows-nat.h (handle_access_violation): Declare.
12192 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12193 windows-nat.c. Call handle_access_violation.
12194
12195 2020-04-16 Tom de Vries <tdevries@suse.de>
12196
12197 PR symtab/25791
12198 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12199 CUs without psymtab.
12200
12201 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12202
12203 * python/python.c (do_start_initialization): Don't call
12204 PyEval_InitThreads for Python 3.9 and beyond.
12205
12206 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12207
12208 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12209 thread functions.
12210 (obsd_nat_target::wait): Likewise.
12211
12212 2020-04-15 Tom Tromey <tromey@adacore.com>
12213
12214 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12215 (DEBUG_EXCEPT): Use debug_printf.
12216
12217 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12218
12219 * completer.c (class completion_tracker::completion_hash_entry)
12220 <hash_name>: New member function.
12221 (completion_tracker::discard_completions): New callback to hash a
12222 completion_hash_entry, pass this to htab_create_alloc.
12223
12224 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12225
12226 * windows-nat.c (windows_make_so): Warn rather than stopping with
12227 an error if realpath() fails.
12228
12229 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12230
12231 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12232 (nbsd_nat_target::info_proc): Add do_status.
12233
12234 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12235 Tom de Vries <tdevries@suse.de>
12236
12237 PR symtab/25718
12238 * psympriv.h (struct partial_symtab::read_symtab)
12239 (struct partial_symtab::expand_psymtab)
12240 (struct partial_symtab::read_dependencies): Update comments.
12241 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12242 read_symtab for includer.
12243 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12244 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12245 (struct dwarf2_include_psymtab::m_readin): Remove.
12246 (struct dwarf2_include_psymtab::includer): New member function.
12247 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12248
12249 2020-04-14 Tom de Vries <tdevries@suse.de>
12250
12251 PR symtab/25720
12252 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12253 with NULL symbol_matcher and lookup_name.
12254 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12255 and lookup_name.
12256 * dwarf2/read.c (dw2_expand_symtabs_matching)
12257 (dw2_debug_names_expand_symtabs_matching): Same.
12258 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12259 Make lookup_name a pointer. Update comment.
12260 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12261 lookup_name being a pointer.
12262 * symfile.c (expand_symtabs_matching): Same.
12263 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12264 * linespec.c (iterate_over_all_matching_symtabs): Same.
12265
12266 2020-04-13 Tom Tromey <tom@tromey.com>
12267
12268 * run-on-main-thread.c: Update include.
12269 * unittests/main-thread-selftests.c: Update include.
12270 * tui/tui-win.c: Update include.
12271 * tui/tui-io.c: Update include.
12272 * tui/tui-interp.c: Update include.
12273 * tui/tui-hooks.c: Update include.
12274 * top.h: Update include.
12275 * top.c: Update include.
12276 * ser-base.c: Update include.
12277 * remote.c: Update include.
12278 * remote-notif.c: Update include.
12279 * remote-fileio.c: Update include.
12280 * record-full.c: Update include.
12281 * record-btrace.c: Update include.
12282 * python/python.c: Update include.
12283 * posix-hdep.c: Update include.
12284 * mingw-hdep.c: Update include.
12285 * mi/mi-main.c: Update include.
12286 * mi/mi-interp.c: Update include.
12287 * main.c: Update include.
12288 * linux-nat.c: Update include.
12289 * interps.c: Update include.
12290 * infrun.c: Update include.
12291 * inf-loop.c: Update include.
12292 * event-top.c: Update include.
12293 * event-loop.c: Move to ../gdbsupport/.
12294 * event-loop.h: Move to ../gdbsupport/.
12295 * async-event.h: Update include.
12296 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12297
12298 2020-04-13 Tom Tromey <tom@tromey.com>
12299
12300 * tui/tui-win.c: Include async-event.h.
12301 * remote.c: Include async-event.h.
12302 * remote-notif.c: Include async-event.h.
12303 * record-full.c: Include async-event.h.
12304 * record-btrace.c: Include async-event.h.
12305 * infrun.c: Include async-event.h.
12306 * event-top.c: Include async-event.h.
12307 * event-loop.h: Move some declarations to async-event.h.
12308 * event-loop.c: Don't include ser-event.h or top.h. Move some
12309 code to async-event.c.
12310 * async-event.h: New file.
12311 * async-event.c: New file.
12312 * Makefile.in (COMMON_SFILES): Add async-event.c.
12313 (HFILES_NO_SRCDIR): Add async-event.h.
12314
12315 2020-04-13 Tom Tromey <tom@tromey.com>
12316
12317 * utils.c (flush_streams): New function.
12318 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12319
12320 2020-04-13 Tom Tromey <tom@tromey.com>
12321
12322 * event-loop.c (handle_file_event): Use warning, not
12323 printf_unfiltered.
12324
12325 2020-04-13 Tom Tromey <tom@tromey.com>
12326
12327 * event-loop.c: Include <chrono>.
12328
12329 2020-04-13 Tom Tromey <tom@tromey.com>
12330
12331 * gdb_select.h: Move to ../gdbsupport/.
12332 * event-loop.c: Update include path.
12333 * top.c: Update include path.
12334 * ser-base.c: Update include path.
12335 * ui-file.c: Update include path.
12336 * ser-tcp.c: Update include path.
12337 * guile/scm-ports.c: Update include path.
12338 * posix-hdep.c: Update include path.
12339 * ser-unix.c: Update include path.
12340 * gdb_usleep.c: Update include path.
12341 * mingw-hdep.c: Update include path.
12342 * inflow.c: Update include path.
12343 * infrun.c: Update include path.
12344 * event-top.c: Update include path.
12345
12346 2020-04-13 Tom Tromey <tom@tromey.com>
12347
12348 * configure: Rebuild.
12349 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12350
12351 2020-04-13 Tom Tromey <tom@tromey.com>
12352
12353 * event-loop.h (start_event_loop): Don't declare.
12354 * event-loop.c (start_event_loop): Move...
12355 * main.c (start_event_loop): ...here. Now static.
12356
12357 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12358
12359 * MAINTAINERS: Update my email address.
12360
12361 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12362
12363 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12364 IP_ALL.
12365
12366 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12367
12368 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12369 (nbsd_nat_target::info_proc): Add do_cmdline.
12370
12371 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12372
12373 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12374 (nbsd_nat_target::info_proc): Add do_cwd.
12375
12376 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12377
12378 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12379
12380 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12381
12382 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12383 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12384 (nbsd_nat_target::info_proc): New functions.
12385 * nbsd-nat.c (kinfo_get_vmmap): New function.
12386 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12387 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12388 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12389 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12390 functions.
12391 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12392 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12393 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12394 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12395 (KINFO_VME_FLAG_GROWS_DOWN): New.
12396
12397 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12398
12399 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12400 bit shift.
12401
12402 2020-04-10 Tom Tromey <tromey@adacore.com>
12403
12404 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12405
12406 2020-04-10 Tom Tromey <tromey@adacore.com>
12407
12408 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12409 separate debug files.
12410
12411 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12412
12413 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12414 Move to...
12415 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12416 ... here.
12417 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12418 Check for STATUS_WX86_BREAKPOINT.
12419 (windows_nat_target::wait): Same.
12420
12421 2020-04-10 Tom de Vries <tdevries@suse.de>
12422
12423 PR cli/25808
12424 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12425
12426 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12427
12428 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12429 (Write After Approval): Remove Tom de Vries.
12430
12431 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12432
12433 revert partially:
12434 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12435
12436 * buildsym.c (record_line): Fix undefined behavior and preserve
12437 lines at eof.
12438
12439 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12440
12441 * auxv.h (svr4_auxv_parse): New.
12442 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12443 and generic_auxv_parse.
12444 (svr4_auxv_parse): Add.
12445 * obsd-tdep.c: Include "auxv.h".
12446 (obsd_auxv_parse): Remove.
12447 (obsd_init_abi): Remove comment.
12448 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12449 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12450 * nbsd-tdep.c: Include "auxv.h".
12451 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12452
12453 2020-04-08 Tom Tromey <tromey@adacore.com>
12454
12455 * nat/windows-nat.h (last_wait_event): Don't declare.
12456 (wait_for_debug_event): Update comment.
12457 * nat/windows-nat.c (last_wait_event): Now static.
12458
12459 2020-04-08 Tom Tromey <tromey@adacore.com>
12460
12461 * windows-nat.c (wait_for_debug_event): Move to
12462 nat/windows-nat.c.
12463 * nat/windows-nat.h (wait_for_debug_event): Declare.
12464 * nat/windows-nat.c (wait_for_debug_event): Move from
12465 windows-nat.c. No longer static.
12466
12467 2020-04-08 Tom Tromey <tromey@adacore.com>
12468
12469 * windows-nat.c (get_windows_debug_event): Use
12470 fetch_pending_stop.
12471 * nat/windows-nat.h (fetch_pending_stop): Declare.
12472 * nat/windows-nat.c (fetch_pending_stop): New function.
12473
12474 2020-04-08 Tom Tromey <tromey@adacore.com>
12475
12476 * windows-nat.c (windows_continue): Use matching_pending_stop and
12477 continue_last_debug_event.
12478 * nat/windows-nat.h (matching_pending_stop)
12479 (continue_last_debug_event): Declare.
12480 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12481 (matching_pending_stop, continue_last_debug_event): New
12482 functions.
12483
12484 2020-04-08 Tom Tromey <tromey@adacore.com>
12485
12486 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12487 (handle_exception_result): Move to nat/windows-nat.h.
12488 (DEBUG_EXCEPTION_SIMPLE): Remove.
12489 (windows_nat::handle_ms_vc_exception): New function.
12490 (handle_exception): Move to nat/windows-nat.c.
12491 (get_windows_debug_event): Update.
12492 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12493 nat/windows-nat.c.
12494 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12495 (handle_exception_result): Move from windows-nat.c.
12496 (handle_exception): Declare.
12497 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12498 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12499 windows-nat.c.
12500
12501 2020-04-08 Tom Tromey <tromey@adacore.com>
12502
12503 * windows-nat.c (exception_count, event_count): Remove.
12504 (handle_exception, get_windows_debug_event)
12505 (do_initial_windows_stuff): Update.
12506
12507 2020-04-08 Tom Tromey <tromey@adacore.com>
12508
12509 * windows-nat.c (windows_nat::handle_load_dll)
12510 (windows_nat::handle_unload_dll): Rename. No longer static.
12511 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12512 Declare.
12513
12514 2020-04-08 Tom Tromey <tromey@adacore.com>
12515
12516 * complaints.h (stop_whining): Declare at top-level.
12517 (complaint): Don't declare stop_whining.
12518
12519 2020-04-08 Tom Tromey <tromey@adacore.com>
12520
12521 * windows-nat.c (windows_nat::handle_output_debug_string):
12522 Rename. No longer static.
12523 * nat/windows-nat.h (handle_output_debug_string): Declare.
12524
12525 2020-04-08 Tom Tromey <tromey@adacore.com>
12526
12527 * windows-nat.c (current_process_handle, current_process_id)
12528 (main_thread_id, last_sig, current_event, last_wait_event)
12529 (current_windows_thread, desired_stop_thread_id, pending_stops)
12530 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12531 (display_selectors, fake_create_process)
12532 (get_windows_debug_event): Update.
12533 * nat/windows-nat.h (current_process_handle, current_process_id)
12534 (main_thread_id, last_sig, current_event, last_wait_event)
12535 (current_windows_thread, desired_stop_thread_id, pending_stops)
12536 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12537 * nat/windows-nat.c (current_process_handle, current_process_id)
12538 (main_thread_id, last_sig, current_event, last_wait_event)
12539 (current_windows_thread, desired_stop_thread_id, pending_stops)
12540 (siginfo_er): New globals. Move from windows-nat.c.
12541
12542 2020-04-08 Tom Tromey <tromey@adacore.com>
12543
12544 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12545 (handle_load_dll): Update.
12546 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12547
12548 2020-04-08 Tom Tromey <tromey@adacore.com>
12549
12550 * windows-nat.c (enum thread_disposition_type): Move to
12551 nat/windows-nat.h.
12552 (windows_nat::thread_rec): Rename from thread_rec. No longer
12553 static.
12554 (windows_add_thread, windows_nat_target::fetch_registers)
12555 (windows_nat_target::store_registers, handle_exception)
12556 (windows_nat_target::resume, get_windows_debug_event)
12557 (windows_nat_target::get_tib_address)
12558 (windows_nat_target::thread_name)
12559 (windows_nat_target::thread_alive): Update.
12560 * nat/windows-nat.h (enum thread_disposition_type): Move from
12561 windows-nat.c.
12562 (thread_rec): Declare.
12563
12564 2020-04-08 Tom Tromey <tromey@adacore.com>
12565
12566 * windows-nat.c: Add "using namespace".
12567 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12568 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12569
12570 2020-04-08 Tom Tromey <tromey@adacore.com>
12571
12572 * nat/windows-nat.h (struct windows_thread_info): Declare
12573 destructor.
12574 * nat/windows-nat.c (~windows_thread_info): New.
12575
12576 2020-04-08 Tom Tromey <tromey@adacore.com>
12577
12578 PR gdb/22992
12579 * windows-nat.c (current_event): Update comment.
12580 (last_wait_event, desired_stop_thread_id): New globals.
12581 (struct pending_stop): New.
12582 (pending_stops): New global.
12583 (windows_nat_target) <stopped_by_sw_breakpoint>
12584 <supports_stopped_by_sw_breakpoint>: New methods.
12585 (windows_fetch_one_register): Add assertions. Adjust PC.
12586 (windows_continue): Handle pending stops. Suspend other threads
12587 when stepping. Use last_wait_event
12588 (wait_for_debug_event): New function.
12589 (get_windows_debug_event): Use wait_for_debug_event. Handle
12590 pending stops. Queue spurious stops.
12591 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12592 (windows_nat_target::kill): Use wait_for_debug_event.
12593 * nat/windows-nat.h (struct windows_thread_info)
12594 <stopped_at_software_breakpoint>: New field.
12595 * nat/windows-nat.c (windows_thread_info::resume): Clear
12596 stopped_at_software_breakpoint.
12597
12598 2020-04-08 Tom Tromey <tromey@adacore.com>
12599
12600 * windows-nat.c (enum thread_disposition_type): New.
12601 (thread_rec): Replace "get_context" parameter with "disposition";
12602 change type.
12603 (windows_add_thread, windows_nat_target::fetch_registers)
12604 (windows_nat_target::store_registers, handle_exception)
12605 (windows_nat_target::resume, get_windows_debug_event)
12606 (windows_nat_target::get_tib_address)
12607 (windows_nat_target::thread_name)
12608 (windows_nat_target::thread_alive): Update.
12609
12610 2020-04-08 Tom Tromey <tromey@adacore.com>
12611
12612 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12613 (windows_continue): Use windows_continue::resume.
12614 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12615 resume>: Declare new methods.
12616 * nat/windows-nat.c: New file.
12617 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12618
12619 2020-04-08 Tom Tromey <tromey@adacore.com>
12620
12621 * windows-nat.c (windows_add_thread, windows_delete_thread)
12622 (windows_nat_target::fetch_registers)
12623 (windows_nat_target::store_registers, fake_create_process)
12624 (windows_nat_target::resume, windows_nat_target::resume)
12625 (get_windows_debug_event, windows_nat_target::wait)
12626 (windows_nat_target::pid_to_str)
12627 (windows_nat_target::get_tib_address)
12628 (windows_nat_target::get_ada_task_ptid)
12629 (windows_nat_target::thread_name)
12630 (windows_nat_target::thread_alive): Use lwp, not tid.
12631
12632 2020-04-08 Tom Tromey <tromey@adacore.com>
12633
12634 * windows-nat.c (handle_exception)
12635 (windows_nat_target::thread_name): Update.
12636 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12637 <name>: Now unique_xmalloc_ptr.
12638
12639 2020-04-08 Tom Tromey <tromey@adacore.com>
12640
12641 * windows-nat.c (thread_rec)
12642 (windows_nat_target::fetch_registers): Update.
12643 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12644 Update comment.
12645 <debug_registers_changed, reload_context>: Now bool.
12646
12647 2020-04-08 Tom Tromey <tromey@adacore.com>
12648
12649 * windows-nat.c (windows_add_thread): Use new.
12650 (windows_init_thread_list, windows_delete_thread): Use delete.
12651 (get_windows_debug_event): Update.
12652 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12653 destructor, and initializers.
12654
12655 2020-04-08 Tom Tromey <tromey@adacore.com>
12656
12657 * windows-nat.c (struct windows_thread_info): Remove.
12658 * nat/windows-nat.h: New file.
12659
12660 2020-04-08 Tom Tromey <tromey@adacore.com>
12661
12662 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12663 (thread_rec, windows_add_thread, windows_delete_thread)
12664 (windows_continue): Update.
12665
12666 2020-04-08 Tom Tromey <tromey@adacore.com>
12667
12668 * windows-nat.c (struct windows_thread_info): Remove typedef.
12669 (thread_head): Remove.
12670 (thread_list): New global.
12671 (thread_rec, windows_add_thread, windows_init_thread_list)
12672 (windows_delete_thread, windows_continue): Update.
12673
12674 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12675
12676 * windows-tdep.h (windows_init_abi): Add comment.
12677 (cygwin_init_abi): New declaration.
12678 * windows-tdep.c: Split signal enumeration in two, one for
12679 Windows and one for Cygwin.
12680 (windows_gdb_signal_to_target): Only deal with signal of the
12681 Windows OS ABI.
12682 (cygwin_gdb_signal_to_target): New function.
12683 (windows_init_abi): Rename to windows_init_abi_common, don't set
12684 gdb_signal_to_target gdbarch method. Add new new function with
12685 this name.
12686 (cygwin_init_abi): New function.
12687 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12688 comment. Don't call windows_init_abi.
12689 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12690 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12691 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12692 i386_windows_init_abi_common, don't call windows_init_abi. Add
12693 a new function of this name.
12694 (i386_cygwin_init_abi): New function.
12695 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12696 OS ABI Cygwin.
12697
12698 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12699
12700 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12701 parameter.c.
12702 (dwarf2_read_gdb_index): Update.
12703
12704 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12705
12706 * nbsd-tdep.c: Include "objfiles.h".
12707 (nbsd_skip_solib_resolver): New.
12708 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12709
12710 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12711
12712 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12713 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12714 with DW_LLE_base_addressx are being emitted in DWARFv5.
12715 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12716 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12717 unsigned integer.
12718
12719 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12720
12721 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12722 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12723 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12724 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12725 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12726 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12727 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12728
12729
12730 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12731
12732 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12733 (read_loclist_index): New function definition.
12734 (lookup_loclist_base): New function definition.
12735 (read_loclist_header): New function definition.
12736 (dwarf2_cu): Add loclist_base and loclist_header field.
12737 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12738 (read_full_die_1): Read the value of DW_AT_loclists_base.
12739 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12740 (read_attribute_value): Handle DW_FORM_loclistx.
12741 (skip_one_die): Handle DW_FORM_loclistx.
12742 (loclist_header): New structure declaration.
12743 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12744
12745 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12746
12747 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12748 constructor. Remove `addr` parameter from other constructor and
12749 add `per_cu` parameter.
12750 * dwarf2/read.c (create_partial_symtab): Update.
12751
12752 2020-04-07 Tom de Vries <tdevries@suse.de>
12753
12754 PR symtab/25796
12755 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12756 (partial_die_info::fixup): Inherit has_const_value.
12757
12758 2020-04-07 Tom de Vries <tdevries@suse.de>
12759
12760 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12761 symbols without address.
12762
12763 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12764
12765 * nbsd-nat.h (struct thread_info): Add forward declaration.
12766 (nbsd_nat_target::thread_alive): Add.
12767 (nbsd_nat_target::thread_name): Likewise.
12768 (nbsd_nat_target::update_thread_list): Likewise.
12769 (update_thread_list::post_attach): Likewise.
12770 (post_attach::pid_to_str): Likewise.
12771 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12772 (nbsd_thread_lister): Add.
12773 (nbsd_nat_target::thread_alive): Likewise.
12774 (nbsd_nat_target::thread_name): Likewise.
12775 (nbsd_add_threads): Likewise.
12776 (update_thread_list::post_attach): Likewise.
12777 (nbsd_nat_target::update_thread_list): Likewise.
12778 (post_attach::pid_to_str): Likewise.
12779
12780 2020-04-06 Tom Tromey <tromey@adacore.com>
12781
12782 * ada-valprint.c (print_variant_part): Extract the variant field.
12783 (print_field_values): Use the field as the outer value when
12784 recursing.
12785
12786 2020-04-06 Tom Tromey <tromey@adacore.com>
12787
12788 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12789 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12790 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12791 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12792 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12793
12794 2020-04-06 Tom Tromey <tromey@adacore.com>
12795
12796 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12797 TYPE_CODE_ERROR.
12798
12799 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12800
12801 * nbsd-tdep.c: Include "gdbarch.h".
12802 Define enum with NetBSD signal numbers.
12803 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12804 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12805 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12806 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12807 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12808 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12809 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12810 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12811 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12812 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12813 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12814 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12815
12816 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12817
12818 PR gdb/25325
12819 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12820
12821 2020-04-03 Tom Tromey <tromey@adacore.com>
12822
12823 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12824 Read constant block.
12825
12826 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12827
12828 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12829 (gdb_bfd_get_full_section_contents): New declaration.
12830 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12831 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12832 gdb_bfd_get_full_section_contents.
12833
12834 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12835
12836 * exec.c (build_section_table): Replace internal_error with
12837 gdb_assert.
12838 (section_table_xfer_memory_partial): Likewise.
12839 * mdebugread.c (parse_partial_symbols): Likewise.
12840 * psymtab.c (lookup_partial_symbol): Likewise.
12841 * utils.c (wrap_here): Likewise.
12842
12843 2020-04-02 Tom Tromey <tromey@adacore.com>
12844
12845 * f-lang.c (build_fortran_types): Use arch_type to initialize
12846 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12847
12848 2020-04-02 Tom Tromey <tromey@adacore.com>
12849
12850 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12851 of attributes.
12852
12853 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12854 Bernd Edlinger <bernd.edlinger@hotmail.de>
12855 Tom Tromey <tromey@adacore.com>
12856
12857 * buildsym.c (buildsym_compunit::record_line): Remove
12858 deduplication code.
12859
12860 2020-04-02 Tom de Vries <tdevries@suse.de>
12861
12862 PR ada/24671
12863 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12864
12865 2020-04-02 Tom de Vries <tdevries@suse.de>
12866
12867 * dwarf2/read.c (dwarf2_gdb_index_functions,
12868 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12869 NULL.
12870 * psymtab.c (psym_lookup_global_symbol_language): New function.
12871 (psym_functions): Init psym_lookup_global_symbol_language with
12872 psym_lookup_global_symbol_language.
12873 * symfile-debug.c (debug_sym_quick_functions): Init
12874 lookup_global_symbol_language with NULL.
12875 * symfile.c (set_initial_language): Remove fixme comment.
12876 * symfile.h (struct quick_symbol_functions): Add
12877 lookup_global_symbol_language.
12878 * symtab.c (find_quick_global_symbol_language): New function.
12879 (find_main_name): Use find_quick_global_symbol_language.
12880
12881 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12882
12883 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12884
12885 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12886
12887 * buildsym.c (record_line): Fix undefined behavior and preserve
12888 lines at eof.
12889
12890 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12891
12892 * buildsym.c (record_line): Fix the resizing condition.
12893
12894 2020-04-01 Tom Tromey <tom@tromey.com>
12895
12896 * value.h (value_literal_complex): Add comment.
12897 * valops.c (value_literal_complex): Refer to value.h.
12898
12899 2020-04-01 Tom Tromey <tom@tromey.com>
12900
12901 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12902 (scalar_type): New rule, from typebase.
12903 (typebase): Use scalar_type. Recognize complex types.
12904 (field_name): Handle FLOAT_KEYWORD.
12905 (ident_tokens): Add _Complex and __complex__.
12906
12907 2020-04-01 Tom Tromey <tom@tromey.com>
12908
12909 PR exp/25299:
12910 * valarith.c (promotion_type, complex_binop): New functions.
12911 (scalar_binop): Handle complex numbers. Use promotion_type.
12912 (value_pos, value_neg, value_complement): Handle complex numbers.
12913
12914 2020-04-01 Tom Tromey <tom@tromey.com>
12915
12916 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12917 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12918 (parse_number): Handle complex numbers.
12919
12920 2020-04-01 Tom Tromey <tom@tromey.com>
12921
12922 * c-valprint.c (c_decorations): Change complex suffix to "i".
12923
12924 2020-04-01 Tom Tromey <tom@tromey.com>
12925
12926 * valprint.c (generic_value_print_complex): Use accessors.
12927 * value.h (value_real_part, value_imaginary_part): Declare.
12928 * valops.c (value_real_part, value_imaginary_part): New
12929 functions.
12930 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12931
12932 2020-04-01 Tom Tromey <tom@tromey.com>
12933
12934 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12935 (read_range_type): Update.
12936 * mdebugread.c (basic_type): Update.
12937 * go-lang.c (build_go_types): Use init_complex_type.
12938 * gdbtypes.h (struct main_type) <complex_type>: New member.
12939 (init_complex_type): Update.
12940 (arch_complex_type): Don't declare.
12941 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12942 Make name if none given. Use alloc_type_copy. Look for cached
12943 complex type.
12944 (arch_complex_type): Remove.
12945 (gdbtypes_post_init): Use init_complex_type.
12946 * f-lang.c (build_fortran_types): Use init_complex_type.
12947 * dwarf2/read.c (read_base_type): Update.
12948 * d-lang.c (build_d_types): Use init_complex_type.
12949 * ctfread.c (read_base_type): Update.
12950
12951 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12952
12953 * infrun.c (stop_all_threads): Update assertion, plus when
12954 stopping threads, take into account that we might be trying
12955 to stop an all-stop target.
12956 (stop_waiting): Call 'stop_all_threads' if there exists a
12957 non-stop target.
12958
12959 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12960
12961 * target.h (exists_non_stop_target): New function declaration.
12962 * target.c (exists_non_stop_target): New function.
12963
12964 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12965
12966 PR gdb/24789
12967 * eval.c (is_integral_or_integral_reference): New function.
12968 (evaluate_subexp_standard): Allow integer references in
12969 pointer arithmetic.
12970
12971 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12972
12973 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12974 check for no ptid in the stop reply when the target is non-stop.
12975
12976 2020-04-01 Tom Tromey <tromey@adacore.com>
12977
12978 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12979 "name" parameter to rvalue reference. Initialize m_name_holder.
12980 <lookup_name_info>: New overloads.
12981 <name>: Return gdb::string_view.
12982 <c_str>: New method.
12983 <make_ignore_params>: Update.
12984 <search_name_hash>: Update.
12985 <language_lookup_name>: Return const char *.
12986 <m_name>: Change type.
12987 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12988 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12989 (lookup_name_info::match_any): Update.
12990 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12991 Update.
12992 * minsyms.c (linkage_name_str): Update.
12993 * language.c (default_symbol_name_matcher): Update.
12994 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12995 Update.
12996 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12997 (ada_lookup_name_info::ada_lookup_name_info): Update.
12998 (literal_symbol_name_matcher): Update.
12999
13000 2020-04-01 Tom Tromey <tromey@adacore.com>
13001
13002 * psymtab.c (psymtab_search_name): Remove function.
13003 (psym_lookup_symbol): Create search name and lookup name here.
13004 (lookup_partial_symbol): Remove "name" parameter; add
13005 lookup_name.
13006 (psym_expand_symtabs_for_function): Update.
13007
13008 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13009
13010 PR tui/25597:
13011 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13012
13013 2020-03-31 Tom Tromey <tromey@adacore.com>
13014
13015 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13016 memcpy.
13017
13018 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13019
13020 * features/riscv/32bit-csr.xml: Regenerated.
13021 * features/riscv/64bit-csr.xml: Regenerated.
13022
13023 2020-03-30 Tom Tromey <tromey@adacore.com>
13024
13025 * ada-valprint.c (print_variant_part): Update.
13026 * ada-lang.h (ada_which_variant_applies): Update.
13027 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13028 outer_valaddr parameters; replace with "outer" value parameter.
13029 (to_fixed_variant_branch_type): Update.
13030
13031 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13032
13033 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13034 <list>. Remove inclusion of observable.h.
13035 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13036 (struct arch_lwp_info): New struct.
13037 (class ppc_linux_dreg_interface): New class.
13038 (struct ppc_linux_process_info): New struct.
13039 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13040 <low_new_clone, low_forget_process, low_prepare_to_resume>
13041 <copy_thread_dreg_state, mark_thread_stale>
13042 <mark_debug_registers_changed, register_hw_breakpoint>
13043 <clear_hw_breakpoint, register_wp, clear_wp>
13044 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13045 <num_memory_accesses, get_trigger_type>
13046 <create_watchpoint_request, hwdebug_point_cmp>
13047 <init_arch_lwp_info, get_arch_lwp_info>
13048 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13049 methods.
13050 <struct ptid_hash>: New inner struct.
13051 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13052 members.
13053 (saved_dabr_value, hwdebug_info, max_slots_number)
13054 (struct hw_break_tuple, struct thread_points, ppc_threads)
13055 (have_ptrace_hwdebug_interface)
13056 (hwdebug_find_thread_points_by_tid)
13057 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13058 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13059 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13060 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13061 use m_dreg_interface.
13062 (hwdebug_point_cmp): Change to...
13063 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13064 reference arguments instead of pointers.
13065 (ppc_linux_nat_target::ranged_break_num_registers): Use
13066 m_dreg_interface.
13067 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13068 m_dreg_interface. Call register_hw_breakpoint.
13069 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13070 m_dreg_interface. Call clear_hw_breakpoint.
13071 (get_trigger_type): Change to...
13072 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13073 comment.
13074 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13075 use m_dreg_interface. Call register_hw_breakpoint.
13076 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13077 use m_dreg_interface. Call clear_hw_breakpoint.
13078 (can_use_watchpoint_cond_accel): Change to...
13079 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13080 method. Update comment, use m_dreg_interface and
13081 m_process_info.
13082 (calculate_dvc): Change to...
13083 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13084 m_dreg_interface.
13085 (num_memory_accesses): Change to...
13086 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13087 (check_condition): Change to...
13088 (ppc_linux_nat_target::check_condition): ...this method.
13089 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13090 comment, use m_dreg_interface.
13091 (create_watchpoint_request): Change to...
13092 (ppc_linux_nat_target::create_watchpoint_request): ...this
13093 method. Use m_dreg_interface.
13094 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13095 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13096 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13097 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13098 (ppc_linux_nat_target::low_forget_process)
13099 (ppc_linux_nat_target::low_new_fork)
13100 (ppc_linux_nat_target::low_new_clone)
13101 (ppc_linux_nat_target::low_delete_thread)
13102 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13103 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13104 only call mark_thread_stale.
13105 (ppc_linux_thread_exit): Remove.
13106 (ppc_linux_nat_target::stopped_data_address): Change to...
13107 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13108 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13109 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13110 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13111 comment. Call low_stopped_data_address.
13112 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13113 m_dreg_interface.
13114 (ppc_linux_nat_target::masked_watch_num_registers): Use
13115 m_dreg_interface.
13116 (ppc_linux_nat_target::copy_thread_dreg_state)
13117 (ppc_linux_nat_target::mark_thread_stale)
13118 (ppc_linux_nat_target::mark_debug_registers_changed)
13119 (ppc_linux_nat_target::register_hw_breakpoint)
13120 (ppc_linux_nat_target::clear_hw_breakpoint)
13121 (ppc_linux_nat_target::register_wp)
13122 (ppc_linux_nat_target::clear_wp)
13123 (ppc_linux_nat_target::init_arch_lwp_info)
13124 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13125 (_initialize_ppc_linux_nat): Remove observer callback.
13126
13127 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13128
13129 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13130 (ppc_linux_nat_target::auxv_parse)
13131 (ppc_linux_nat_target::read_description)
13132 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13133 Move up.
13134
13135 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13136
13137 * linux-nat.h (low_new_clone): New method.
13138 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13139
13140 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13141
13142 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13143 (dbx_expand_psymtab): ... this.
13144 (start_psymtab): Update.
13145 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13146 (mdebug_expand_psymtab): ... this.
13147 (parse_partial_symbols): Update.
13148 (new_psymtab): Update.
13149 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13150 (xcoff_expand_psymtab): ... this.
13151 (xcoff_start_psymtab): Update.
13152
13153 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13154
13155 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13156 <expand_dependencies>: ... this.
13157 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13158 (partial_symtab::expand_dependencies): ... this.
13159 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13160 Update.
13161 (dwarf2_psymtab::expand_psymtab): Update.
13162 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13163 * mdebugread.c (psymtab_to_symtab_1): Update.
13164 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13165
13166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13167
13168 * psympriv.h (discard_psymtab): Remove.
13169 * dbxread.c (dbx_end_psymtab): Update.
13170 * xcoffread.c (xcoff_end_psymtab): Update.
13171
13172 2020-03-28 Tom Tromey <tom@tromey.com>
13173
13174 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13175 comment.
13176
13177 2020-03-28 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13180
13181 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13182
13183 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13184
13185 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13186
13187 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13188
13189 2020-03-26 Tom Tromey <tom@tromey.com>
13190
13191 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13192 (mark_common_block_symbol_computed, read_tag_string_type)
13193 (attr_to_dynamic_prop, read_subrange_type): Update.
13194 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13195 to be methods on struct attribute.
13196 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13197 (read_call_site_scope, partial_die_info::read)
13198 (partial_die_info::read, lookup_die_type, follow_die_ref):
13199 Update.
13200 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13201 from dwarf2_get_ref_die_offset.
13202 (attribute::constant_value): New method, from
13203 dwarf2_get_attr_constant_value.
13204 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13205 Declare method.
13206 <constant_value>: New method.
13207
13208 2020-03-26 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13211 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13212 (dwarf_type_encoding_name): Move to stringify.c.
13213 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13214 * dwarf2/stringify.c: New file.
13215 * dwarf2/stringify.h: New file.
13216
13217 2020-03-26 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13220 Rewrite.
13221
13222 2020-03-26 Tom Tromey <tom@tromey.com>
13223
13224 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13225 methods.
13226 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13227 (lookup_ranges_base): Likewise.
13228 (read_cutu_die_from_dwo, read_full_die_1): Update.
13229
13230 2020-03-26 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/read.c (read_import_statement, read_file_scope)
13233 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13234 (read_lexical_block_scope, read_call_site_scope)
13235 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13236 (handle_struct_member_die, process_structure_scope)
13237 (update_enumeration_type_from_children)
13238 (process_enumeration_scope, read_array_type, read_common_block)
13239 (read_namespace, read_module, read_subroutine_type): Update.
13240 (sibling_die): Remove.
13241
13242 2020-03-26 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13245 (build_type_psymtabs_reader, read_structure_type)
13246 (read_enumeration_type, read_full_die_1): Update.
13247 (dwarf2_attr_no_follow): Move to die.h.
13248 * dwarf2/die.h (struct die_info) <attr>: New method.
13249
13250 2020-03-26 Tom Tromey <tom@tromey.com>
13251
13252 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13253 <base_address>: Now an optional.
13254 (dwarf2_find_base_address, dwarf2_rnglists_process)
13255 (dwarf2_ranges_process, fill_in_loclist_baton)
13256 (dwarf2_symbol_mark_computed): Update.
13257
13258 2020-03-26 Tom Tromey <tom@tromey.com>
13259
13260 * dwarf2/read.c (struct die_info): Move to die.h.
13261 * dwarf2/die.h: New file.
13262
13263 2020-03-26 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13266 * dwarf2/read.c
13267 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13268 Move to line-header.c.
13269 (read_checked_initial_length_and_offset, read_formatted_entries):
13270 Likewise.
13271 (dwarf_decode_line_header): Split into two.
13272 * dwarf2/line-header.c
13273 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13274 Move from read.c.
13275 (read_checked_initial_length_and_offset, read_formatted_entries):
13276 Likewise.
13277 (dwarf_decode_line_header): New function, split from read.c.
13278
13279 2020-03-26 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13282 Declare method.
13283 * dwarf2/read.c (read_attribute_value): Update.
13284 (dwarf2_per_objfile::read_line_string): Rename from
13285 read_indirect_line_string.
13286 (read_formatted_entries): Update.
13287
13288 2020-03-26 Tom Tromey <tom@tromey.com>
13289
13290 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13291 variable.
13292
13293 2020-03-26 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13296 const.
13297 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13298 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13299 parameter const.
13300
13301 2020-03-26 Tom Tromey <tom@tromey.com>
13302
13303 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13304 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13305 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13306 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13307
13308 2020-03-26 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13311 file_names_size, file_full_name, file_file_name>: Use const.
13312 <file_name_at, file_names>: Add const overload.
13313 * dwarf2/line-header.c (line_header::file_file_name)
13314 (line_header::file_full_name): Update.
13315
13316 2020-03-26 Tom Tromey <tom@tromey.com>
13317
13318 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13319 (macro_start_file, consume_improper_spaces)
13320 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13321 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13322 (dwarf_decode_macros): Move to macro.c.
13323 * dwarf2/macro.c: New file.
13324 * dwarf2/macro.h: New file.
13325 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13326
13327 2020-03-26 Tom Tromey <tom@tromey.com>
13328
13329 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13330 method.
13331 * dwarf2/section.c: New method. From
13332 read_indirect_string_at_offset_from.
13333 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13334 (read_indirect_string_at_offset_from): Move to section.c.
13335 (read_indirect_string_at_offset): Rewrite.
13336 (read_indirect_line_string_at_offset): Remove.
13337 (read_indirect_string, read_indirect_line_string)
13338 (dwarf_decode_macro_bytes): Update.
13339
13340 2020-03-26 Tom Tromey <tom@tromey.com>
13341
13342 * dwarf2/section.h (struct dwarf2_section_info)
13343 <overload_complaint>: Declare.
13344 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13345 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13346 Rename from dwarf2_section_buffer_overflow_complaint.
13347 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13348 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13349
13350 2020-03-26 Tom Tromey <tom@tromey.com>
13351
13352 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13353 Declare.
13354 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13355 Move from read.c.
13356 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13357 to section.c.
13358
13359 2020-03-26 Tom Tromey <tom@tromey.com>
13360
13361 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13362
13363 2020-03-26 Tom Tromey <tom@tromey.com>
13364
13365 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13366 "builder".
13367 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13368 parameter.
13369 (dwarf_decode_macros): Update.
13370
13371 2020-03-26 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2/read.c (read_attribute_value): Update.
13374 (read_indirect_string_from_dwz): Move to dwz.c; change into
13375 method.
13376 (dwarf_decode_macro_bytes): Update.
13377 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13378 * dwarf2/dwz.c: New file.
13379 * Makefile.in (COMMON_SFILES): Add dwz.c.
13380
13381 2020-03-26 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13384 * dwarf2/read.c: Add include.
13385 * dwarf2/index-write.c: Add include.
13386 * dwarf2/index-cache.c: Add include.
13387 * dwarf2/dwz.h: New file.
13388
13389 2020-03-25 Tom Tromey <tom@tromey.com>
13390
13391 * compile/compile-object-load.c (get_out_value_type): Mention
13392 correct symbol name in error message.
13393
13394 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13395
13396 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13397
13398 2020-03-25 Tom de Vries <tdevries@suse.de>
13399
13400 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13401 * symmisc.c (dump_symtab_1): Print user and includes fields.
13402 (maintenance_info_symtabs): Same.
13403
13404 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13405
13406 PR gdb/25534
13407 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13408 (riscv_regcache_cooked_write): New function.
13409 (riscv_push_dummy_call): Use new function.
13410 (riscv_return_value): Likewise.
13411
13412 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13413
13414 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13415 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13416 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13417 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13418 * infrun.c (follow_fork): Likewise.
13419 (follow_fork_inferior): Likewise.
13420 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13421 * linux-nat.h (class linux_nat_target): Likewise.
13422 * remote.c (class remote_target) <follow_fork>: Likewise.
13423 (remote_target::follow_fork): Likewise.
13424 * target-delegates.c: Re-generate.
13425 * target.c (default_follow_fork): Likewise.
13426 (target_follow_fork): Likewise.
13427 * target.h (struct target_ops) <follow_fork>: Likewise.
13428 (target_follow_fork): Likewise.
13429
13430 2020-03-24 Tom de Vries <tdevries@suse.de>
13431
13432 * psymtab.c (maintenance_info_psymtabs): Print user field.
13433
13434 2020-03-20 Tom Tromey <tromey@adacore.com>
13435
13436 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13437 const.
13438 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13439 const.
13440
13441 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13442
13443 * ptrace.m4: Don't check for ptrace declaration.
13444 * config.in: Re-generate.
13445 * configure: Re-generate.
13446 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13447 not defined.
13448
13449 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13450
13451 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13452 `PTRACE_TYPE_RET'.
13453 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13454 * sparc-nat.c (gdb_ptrace): Likewise.
13455 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13456
13457 2020-03-20 Tom Tromey <tromey@adacore.com>
13458
13459 * c-exp.y (lex_one_token): Fix assert.
13460
13461 2020-03-20 Tom Tromey <tromey@adacore.com>
13462
13463 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13464 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13465 strncpy call.
13466
13467 2020-03-20 Tom Tromey <tromey@adacore.com>
13468
13469 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13470
13471 2020-03-20 Tom Tromey <tromey@adacore.com>
13472
13473 * ada-valprint.c (print_variant_part): Remove parameters; switch
13474 to value-based API.
13475 (print_field_values): Likewise.
13476 (ada_val_print_struct_union): Likewise.
13477 (ada_value_print_1): Update.
13478
13479 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13480
13481 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13482 nbsd_nat_target instead of inf_ptrace_target.
13483 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13484 nbsd_nat_target.
13485
13486 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13487
13488 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13489 it to the ptrace call.
13490 * (store_registers): Likewise.
13491
13492 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13493
13494 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13495 it to the ptrace call.
13496 * (store_registers): Likewise.
13497
13498 2020-03-19 Luis Machado <luis.machado@linaro.org>
13499
13500 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13501 valid, fetch vg value from ptrace.
13502
13503 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13504 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13505 * inf-ptrace.c: Likewise.
13506 * (gdb_ptrace): Add.
13507 * (inf_ptrace_target::resume): Update.
13508 * (inf_ptrace_target::xfer_partial): Likewise.
13509 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13510 * (inf_ptrace_peek_poke): Update.
13511
13512 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13513
13514 * x86-bsd-nat.c (gdb_ptrace): New.
13515 * (x86bsd_dr_set): Add new argument `ptid'.
13516 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13517 x86bsd_dr_set_addr): Update.
13518
13519 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 * remote.c (remote_target::process_stop_reply): Handle events for
13522 all threads differently.
13523
13524 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * completer.c (completion_tracker::remove_completion): Define new
13527 function.
13528 * completer.h (completion_tracker::remove_completion): Declare new
13529 function.
13530 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13531 when adding a C++ function symbol.
13532
13533 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * completer.c (completion_tracker::completion_hash_entry): Define
13536 new class.
13537 (advance_to_filename_complete_word_point): Call
13538 recompute_lowest_common_denominator.
13539 (completion_tracker::completion_tracker): Call discard_completions
13540 to setup the hash table.
13541 (completion_tracker::discard_completions): Allow for being called
13542 from the constructor, pass new equal function, and element deleter
13543 when constructing the hash table. Initialise new class member
13544 variables.
13545 (completion_tracker::maybe_add_completion): Remove use of
13546 m_entries_vec, and store more information into m_entries_hash.
13547 (completion_tracker::recompute_lcd_visitor): New function, most
13548 content taken from...
13549 (completion_tracker::recompute_lowest_common_denominator):
13550 ...here, this now just visits each item in the hash calling the
13551 above visitor.
13552 (completion_tracker::build_completion_result): Remove use of
13553 m_entries_vec, call recompute_lowest_common_denominator.
13554 * completer.h (completion_tracker::have_completions): Remove use
13555 of m_entries_vec.
13556 (completion_tracker::completion_hash_entry): Declare new class.
13557 (completion_tracker::recompute_lowest_common_denominator): Change
13558 function signature.
13559 (completion_tracker::recompute_lcd_visitor): Declare new function.
13560 (completion_tracker::m_entries_vec): Delete.
13561 (completion_tracker::m_entries_hash): Initialize to NULL.
13562 (completion_tracker::m_lowest_common_denominator_valid): New
13563 member variable.
13564 (completion_tracker::m_lowest_common_denominator_max_length): New
13565 member variable.
13566
13567 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13568
13569 * regformats/regdef.h: Put reg in gdb namespace.
13570
13571 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13572
13573 * i386-bsd-nat.c (gdb_ptrace): New.
13574 * (i386bsd_fetch_inferior_registers,
13575 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13576 * (i386bsd_fetch_inferior_registers,
13577 i386bsd_store_inferior_registers) Use gdb_ptrace.
13578
13579 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13580
13581 * amd64-bsd-nat.c (gdb_ptrace): New.
13582 * (amd64bsd_fetch_inferior_registers,
13583 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13584 * (amd64bsd_fetch_inferior_registers,
13585 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13586
13587 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13588
13589 * user-regs.c (user_reg::read): Rename to...
13590 (user_reg::xread): ...this.
13591 * (append_user_reg): Rename argument `read' to `xread'.
13592 * (user_reg_add_builtin): Likewise.
13593 * (user_reg_add): Likewise.
13594 * (value_of_user_reg): Likewise.
13595
13596 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13597
13598 * sparc-nat.c (gdb_ptrace): New.
13599 * sparc-nat.c (sparc_fetch_inferior_registers)
13600 (sparc_store_inferior_registers) Remove obsolete comment.
13601 * sparc-nat.c (sparc_fetch_inferior_registers)
13602 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13603 * sparc-nat.c (sparc_fetch_inferior_registers)
13604 (sparc_store_inferior_registers) Use gdb_ptrace.
13605
13606 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13607
13608 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13609 it to the ptrace call.
13610 * sh-nbsd-nat.c (store_registers): Likewise.
13611
13612 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13613
13614 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13615 nbsd_nat_target instead of inf_ptrace_target.
13616 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13617 nbsd_nat_target.
13618
13619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13620
13621 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13622
13623 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13624
13625 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13626 <sys/sysctl.h>.
13627 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13628
13629 2020-03-17 Tom de Vries <tdevries@suse.de>
13630
13631 PR gdb/23710
13632 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13633 fields.
13634 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13635 fields.
13636 (process_imported_unit_die): Skip import of c++ CUs.
13637
13638 2020-03-16 Tom Tromey <tom@tromey.com>
13639
13640 * p-valprint.c (pascal_object_print_value): Initialize
13641 base_value.
13642
13643 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13644 Shahab Vahedi <shahab@synopsys.com>
13645
13646 * Makefile.in: Add arch/arc.o
13647 * configure.tgt: Likewise.
13648 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13649 (_initialize_arc_tdep): Don't initialize old target descriptions.
13650 (arc_read_description): New function to cache target descriptions.
13651 * arc-tdep.h (arc_read_description): Add proto type.
13652 * arch/arc.c: New file.
13653 * arch/arc.h: Likewise.
13654 * features/Makefile: Replace old target descriptions with new.
13655 * features/arc-arcompact.c: Remove.
13656 * features/arc-arcompact.xml: Likewise.
13657 * features/arc-v2.c: Likewise
13658 * features/arc-v2.xml: Likewise
13659 * features/arc/aux-arcompact.xml: New file.
13660 * features/arc/aux-v2.xml: Likewise.
13661 * features/arc/core-arcompact.xml: Likewise.
13662 * features/arc/core-v2.xml: Likewise.
13663 * features/arc/aux-arcompact.c: Generate.
13664 * features/arc/aux-v2.c: Likewise.
13665 * features/arc/core-arcompact.c: Likewise.
13666 * features/arc/core-v2.c: Likewise.
13667 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13668
13669 2020-03-16 Tom Tromey <tromey@adacore.com>
13670
13671 PR gdb/25663:
13672 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13673 putting value into bcache.
13674
13675 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13676
13677 PR gdb/21500
13678 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13679 to...
13680 (amd64_windows_init_abi_common): ... this. Don't set size of
13681 long type.
13682 (amd64_windows_init_abi): New function.
13683 (amd64_cygwin_init_abi): New function.
13684 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13685 the Cygwin OS ABI.
13686 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13687 comment.
13688
13689 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13692 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13693 (pe_import_directory_entry): New struct type.
13694 (is_linked_with_cygwin_dll): New function.
13695 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13696 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13697 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13698
13699 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13700
13701 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13702 i386_cygwin_core_osabi_sniffer.
13703
13704 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13705
13706 * i386-cygwin-tdep.c: Rename to...
13707 * i386-windows-tdep.c: ... this.
13708 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13709 i386-windows-tdep.c.
13710 * configure.tgt: Likewise.
13711
13712 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13713
13714 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13715 * osabi.c (gdb_osabi_names): Add "Windows".
13716 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13717 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13718 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13719 i386_cygwin_osabi_sniffer.
13720 (_initialize_i386_cygwin_tdep): Register OS ABI
13721 GDB_OSABI_WINDOWS for i386.
13722 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13723 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13724 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13725 for x86-64.
13726 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13727 when the target matches '*-*-mingw*'.
13728
13729 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13730
13731 * defs.h (enum gdb_osabi): Move to...
13732 * osabi.h (enum gdb_osabi): ... here.
13733 * gdbarch.sh: Include osabi.h in gdbarch.h.
13734 * gdbarch.h: Re-generate.
13735
13736 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13737
13738 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13739 function.
13740 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13741
13742 2020-03-14 Tom Tromey <tom@tromey.com>
13743
13744 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13745 for C++.
13746 (c_type_print_modifier): Likewise. Add "language" parameter.
13747 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13748 (c_type_print_base_1): Update.
13749 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13750 constants.
13751 * type-stack.c (type_stack::insert): Handle tp_atomic and
13752 tp_restrict.
13753 (type_stack::follow_type_instance_flags): Likewise.
13754 (type_stack::follow_types): Likewise. Merge type-following code.
13755 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13756 (space_identifier, cv_with_space_id)
13757 (const_or_volatile_or_space_identifier_noopt)
13758 (const_or_volatile_or_space_identifier): Remove.
13759 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13760 rules.
13761 (ptr_operator, typebase): Update.
13762 (enum token_flag) <FLAG_C>: New constant.
13763 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13764 "_Atomic".
13765 (lex_one_token): Handle FLAG_C.
13766
13767 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13768
13769 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13770 it to the ptrace call.
13771 * m68k-bsd-nat.c (store_registers): Likewise.
13772
13773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13774
13775 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13776 gdb_byte *.
13777 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13778 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13779 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13780
13781 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13782
13783 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13784 nbsd_nat_target instead of inf_ptrace_target.
13785 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13786 nbsd_nat_target.
13787
13788 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13789
13790 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13791 register_t.
13792
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13794
13795 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13796 it to the ptrace call.
13797 * alpha-bsd-nat.c (store_registers): Likewise.
13798
13799 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13800
13801 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13802 includes.
13803 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13804 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13805 fill_fpregset): Likewise.
13806
13807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13808
13809 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13810 nbsd_nat_target instead of inf_ptrace_target.
13811 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13812 nbsd_nat_target.
13813
13814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13815
13816 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13817 register_t.
13818
13819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13820
13821 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13822 it to the ptrace call.
13823 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13824 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13825 * arm-nbsd-nat.c (store_register): Likewise.
13826 * arm-nbsd-nat.c (store_regs): Likewise.
13827 * arm-nbsd-nat.c (store_fp_register): Likewise.
13828 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13829
13830 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13831
13832 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13833 nbsd_nat_target instead of inf_ptrace_target.
13834 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13835 nbsd_nat_target.
13836
13837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13838
13839 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13840 it to the ptrace call.
13841 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13842
13843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13844
13845 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13846 it to the ptrace call.
13847 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13848
13849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13850
13851 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13852 gdb_byte *.
13853 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13854
13855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13856
13857 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13858 instead of inf_ptrace_target.
13859 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13860 nbsd_nat_target.
13861
13862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13863
13864 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13865 register_t.
13866
13867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13868
13869 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13870 register_t.
13871
13872 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13873
13874 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13875 register_t.
13876
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * value.h (val_print): Don't declare.
13880 * valprint.h (val_print_array_elements)
13881 (val_print_scalar_formatted, generic_val_print): Don't declare.
13882 * valprint.c (generic_val_print_array): Take a struct value.
13883 (generic_val_print_ptr, generic_val_print_memberptr)
13884 (generic_val_print_bool, generic_val_print_int)
13885 (generic_val_print_char, generic_val_print_complex)
13886 (generic_val_print): Remove.
13887 (generic_value_print): Update.
13888 (do_val_print): Remove unused parameters. Don't call
13889 la_val_print.
13890 (val_print): Remove.
13891 (common_val_print): Update. Don't call value_check_printable.
13892 (val_print_scalar_formatted, val_print_array_elements): Remove.
13893 * rust-lang.c (rust_val_print): Remove.
13894 (rust_language_defn): Update.
13895 * p-valprint.c (pascal_val_print): Remove.
13896 (pascal_value_print_inner): Update.
13897 (pascal_object_print_val_fields, pascal_object_print_val):
13898 Remove.
13899 (pascal_object_print_static_field): Update.
13900 * p-lang.h (pascal_val_print): Don't declare.
13901 * p-lang.c (pascal_language_defn): Update.
13902 * opencl-lang.c (opencl_language_defn): Update.
13903 * objc-lang.c (objc_language_defn): Update.
13904 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13905 * m2-lang.h (m2_val_print): Don't declare.
13906 * m2-lang.c (m2_language_defn): Update.
13907 * language.h (struct language_defn) <la_val_print>: Remove.
13908 * language.c (unk_lang_value_print_inner): Rename. Change
13909 argument types.
13910 (unknown_language_defn, auto_language_defn): Update.
13911 * go-valprint.c (go_val_print): Remove.
13912 * go-lang.h (go_val_print): Don't declare.
13913 * go-lang.c (go_language_defn): Update.
13914 * f-valprint.c (f_val_print): Remove.
13915 * f-lang.h (f_value_print): Don't declare.
13916 * f-lang.c (f_language_defn): Update.
13917 * d-valprint.c (d_val_print): Remove.
13918 * d-lang.h (d_value_print): Don't declare.
13919 * d-lang.c (d_language_defn): Update.
13920 * cp-valprint.c (cp_print_value_fields)
13921 (cp_print_value_fields_rtti, cp_print_value): Remove.
13922 (cp_print_static_field): Update.
13923 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13924 (c_val_print_struct, c_val_print_union, c_val_print_int)
13925 (c_val_print_memberptr, c_val_print): Remove.
13926 * c-lang.h (c_val_print_array, cp_print_value_fields)
13927 (cp_print_value_fields_rtti): Don't declare.
13928 * c-lang.c (c_language_defn, cplus_language_defn)
13929 (asm_language_defn, minimal_language_defn): Update.
13930 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13931 (ada_val_print_enum): Take a struct value.
13932 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13933 (ada_val_print): Remove.
13934 (ada_value_print_1): Update.
13935 (printable_val_type): Remove.
13936 * ada-lang.h (ada_val_print): Don't declare.
13937 * ada-lang.c (ada_language_defn): Update.
13938
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13940
13941 * valprint.c (do_val_print): Update.
13942 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13943 a struct value.
13944 (value_to_value_object_no_release): Declare.
13945 * python/py-value.c (value_to_value_object_no_release): New
13946 function.
13947 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13948 struct value.
13949 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13950 function.
13951 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13952 a struct value.
13953 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13954 Declare.
13955 (gdbscm_apply_val_pretty_printer): Take a struct value.
13956 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13957 value.
13958 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13959 value.
13960 * extension-priv.h (struct extension_language_ops)
13961 <apply_val_pretty_printer>: Take a struct value.
13962 * cp-valprint.c (cp_print_value): Create a struct value.
13963 (cp_print_value): Update.
13964
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13966
13967 * ada-valprint.c (print_field_values): Call common_val_print.
13968
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * ada-valprint.c (val_print_packed_array_elements): Remove
13972 bitoffset and val parameters. Call common_val_print.
13973 (ada_val_print_string): Remove offset, address, and original_value
13974 parameters.
13975 (ada_val_print_array): Update.
13976 (ada_value_print_array): New function.
13977 (ada_value_print_1): Call it.
13978
13979 2020-03-13 Tom Tromey <tom@tromey.com>
13980
13981 * ada-valprint.c (ada_value_print): Use common_val_print.
13982
13983 2020-03-13 Tom Tromey <tom@tromey.com>
13984
13985 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13986
13987 2020-03-13 Tom Tromey <tom@tromey.com>
13988
13989 * ada-valprint.c (ada_value_print_num): New function.
13990 (ada_value_print_1): Use it.
13991
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13993
13994 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13995
13996 2020-03-13 Tom Tromey <tom@tromey.com>
13997
13998 * ada-valprint.c (ada_value_print_ptr): New function.
13999 (ada_value_print_1): Use it.
14000
14001 2020-03-13 Tom Tromey <tom@tromey.com>
14002
14003 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14004 call common_val_print.
14005 (ada_val_print_1): Update.
14006 (ada_value_print_1): New function.
14007 (ada_value_print_inner): Rewrite.
14008
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14010
14011 * cp-valprint.c (cp_print_value_fields): Update.
14012 (cp_print_value): New function.
14013
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14015
14016 * m2-valprint.c (m2_value_print_inner): Use
14017 cp_print_value_fields.
14018 * cp-valprint.c (cp_print_value_fields): New function.
14019 * c-valprint.c (c_value_print_struct): New function.
14020 (c_value_print_inner): Use c_value_print_struct.
14021 * c-lang.h (cp_print_value_fields): Declare.
14022
14023 2020-03-13 Tom Tromey <tom@tromey.com>
14024
14025 * c-valprint.c (c_value_print_array): New function.
14026 (c_value_print_inner): Use it.
14027
14028 2020-03-13 Tom Tromey <tom@tromey.com>
14029
14030 * c-valprint.c (c_value_print_memberptr): New function.
14031 (c_value_print_inner): Use it.
14032
14033 2020-03-13 Tom Tromey <tom@tromey.com>
14034
14035 * c-valprint.c (c_value_print_int): New function.
14036 (c_value_print_inner): Use it.
14037
14038 2020-03-13 Tom Tromey <tom@tromey.com>
14039
14040 * c-valprint.c (c_value_print_ptr): New function.
14041 (c_value_print_inner): Use it.
14042
14043 2020-03-13 Tom Tromey <tom@tromey.com>
14044
14045 * c-valprint.c (c_value_print_inner): Rewrite.
14046
14047 2020-03-13 Tom Tromey <tom@tromey.com>
14048
14049 * valprint.c (generic_value_print_complex): New function.
14050 (generic_value_print): Use it.
14051
14052 2020-03-13 Tom Tromey <tom@tromey.com>
14053
14054 * valprint.c (generic_val_print_float): Don't call
14055 val_print_scalar_formatted.
14056 (generic_val_print, generic_value_print): Update.
14057
14058 2020-03-13 Tom Tromey <tom@tromey.com>
14059
14060 * valprint.c (generic_value_print_char): New function
14061 (generic_value_print): Use it.
14062
14063 2020-03-13 Tom Tromey <tom@tromey.com>
14064
14065 * valprint.c (generic_value_print_int): New function.
14066 (generic_value_print): Use it.
14067
14068 2020-03-13 Tom Tromey <tom@tromey.com>
14069
14070 * valprint.c (generic_value_print_bool): New function.
14071 (generic_value_print): Use it.
14072
14073 2020-03-13 Tom Tromey <tom@tromey.com>
14074
14075 * valprint.c (generic_val_print_func): Simplify.
14076 (generic_val_print, generic_value_print): Update.
14077
14078 2020-03-13 Tom Tromey <tom@tromey.com>
14079
14080 * valprint.c (generic_val_print_flags): Remove.
14081 (generic_val_print, generic_value_print): Update.
14082 (val_print_type_code_flags): Add original_value parameter.
14083
14084 2020-03-13 Tom Tromey <tom@tromey.com>
14085
14086 * valprint.c (generic_val_print): Update.
14087 (generic_value_print): Update.
14088 * valprint.c (generic_val_print_enum): Don't call
14089 val_print_scalar_formatted.
14090
14091 2020-03-13 Tom Tromey <tom@tromey.com>
14092
14093 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14094 * valprint.c (generic_value_print_ptr): New function.
14095
14096 2020-03-13 Tom Tromey <tom@tromey.com>
14097
14098 * valprint.c (generic_value_print): Rewrite.
14099
14100 2020-03-13 Tom Tromey <tom@tromey.com>
14101
14102 * p-valprint.c (pascal_object_print_value_fields)
14103 (pascal_object_print_value): New functions.
14104
14105 2020-03-13 Tom Tromey <tom@tromey.com>
14106
14107 * p-valprint.c (pascal_value_print_inner): Rewrite.
14108
14109 2020-03-13 Tom Tromey <tom@tromey.com>
14110
14111 * f-valprint.c (f_value_print_innner): Rewrite.
14112
14113 2020-03-13 Tom Tromey <tom@tromey.com>
14114
14115 * m2-valprint.c (m2_print_unbounded_array): New overload.
14116 (m2_print_unbounded_array): Update.
14117 (m2_print_array_contents): Take a struct value.
14118 (m2_value_print_inner): Rewrite.
14119
14120 2020-03-13 Tom Tromey <tom@tromey.com>
14121
14122 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14123 (d_value_print_inner): New function.
14124 * d-lang.h (d_value_print_inner): Declare.
14125 * d-lang.c (d_language_defn): Use d_value_print_inner.
14126
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * go-valprint.c (go_value_print_inner): New function.
14130 * go-lang.h (go_value_print_inner): Declare.
14131 * go-lang.c (go_language_defn): Use go_value_print_inner.
14132
14133 2020-03-13 Tom Tromey <tom@tromey.com>
14134
14135 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14136 API.
14137 (rust_val_print): Rewrite.
14138 (rust_value_print_inner): New function, from rust_val_print.
14139 (rust_language_defn): Use rust_value_print_inner.
14140
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14142
14143 * ada-valprint.c (ada_value_print_inner): New function.
14144 * ada-lang.h (ada_value_print_inner): Declare.
14145 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14146
14147 2020-03-13 Tom Tromey <tom@tromey.com>
14148
14149 * f-valprint.c (f_value_print_innner): New function.
14150 * f-lang.h (f_value_print_innner): Declare.
14151 * f-lang.c (f_language_defn): Use f_value_print_innner.
14152
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14154
14155 * p-valprint.c (pascal_value_print_inner): New function.
14156 * p-lang.h (pascal_value_print_inner): Declare.
14157 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * m2-valprint.c (m2_value_print_inner): New function.
14162 * m2-lang.h (m2_value_print_inner): Declare.
14163 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14164
14165 2020-03-13 Tom Tromey <tom@tromey.com>
14166
14167 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14168 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14169 * c-valprint.c (c_value_print_inner): New function.
14170 * c-lang.h (c_value_print_inner): Declare.
14171 * c-lang.c (c_language_defn, cplus_language_defn)
14172 (asm_language_defn, minimal_language_defn): Use
14173 c_value_print_inner.
14174
14175 2020-03-13 Tom Tromey <tom@tromey.com>
14176
14177 * p-valprint.c (pascal_object_print_value_fields): Now static.
14178 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14179
14180 2020-03-13 Tom Tromey <tom@tromey.com>
14181
14182 * c-valprint.c (c_val_print_array): Simplify.
14183
14184 2020-03-13 Tom Tromey <tom@tromey.com>
14185
14186 * valprint.c (value_print_array_elements): New function.
14187 * valprint.h (value_print_array_elements): Declare.
14188
14189 2020-03-13 Tom Tromey <tom@tromey.com>
14190
14191 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14192 * mips-tdep.c (mips_print_register): Use
14193 value_print_scalar_formatted.
14194
14195 2020-03-13 Tom Tromey <tom@tromey.com>
14196
14197 * valprint.h (value_print_scalar_formatted): Declare.
14198 * valprint.c (value_print_scalar_formatted): New function.
14199
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * valprint.h (generic_value_print): Declare.
14203 * valprint.c (generic_value_print): New function.
14204
14205 2020-03-13 Tom Tromey <tom@tromey.com>
14206
14207 * valprint.c (do_val_print): Call la_value_print_inner, if
14208 available.
14209 * rust-lang.c (rust_language_defn): Update.
14210 * p-lang.c (pascal_language_defn): Update.
14211 * opencl-lang.c (opencl_language_defn): Update.
14212 * objc-lang.c (objc_language_defn): Update.
14213 * m2-lang.c (m2_language_defn): Update.
14214 * language.h (struct language_defn) <la_value_print_inner>: New
14215 member.
14216 * language.c (unknown_language_defn, auto_language_defn): Update.
14217 * go-lang.c (go_language_defn): Update.
14218 * f-lang.c (f_language_defn): Update.
14219 * d-lang.c (d_language_defn): Update.
14220 * c-lang.c (c_language_defn, cplus_language_defn)
14221 (asm_language_defn, minimal_language_defn): Update.
14222 * ada-lang.c (ada_language_defn): Update.
14223
14224 2020-03-13 Tom Tromey <tom@tromey.com>
14225
14226 * c-valprint.c (c_value_print): Use common_val_print.
14227
14228 2020-03-13 Tom Tromey <tom@tromey.com>
14229
14230 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14231
14232 2020-03-13 Tom Tromey <tom@tromey.com>
14233
14234 * f-valprint.c (f77_print_array_1, f_val_print): Use
14235 common_val_print.
14236
14237 2020-03-13 Tom Tromey <tom@tromey.com>
14238
14239 * riscv-tdep.c (riscv_print_one_register_info): Use
14240 common_val_print.
14241
14242 2020-03-13 Tom Tromey <tom@tromey.com>
14243
14244 * mi/mi-main.c (output_register): Use common_val_print.
14245
14246 2020-03-13 Tom Tromey <tom@tromey.com>
14247
14248 * infcmd.c (default_print_one_register_info): Use
14249 common_val_print.
14250
14251 2020-03-13 Tom Tromey <tom@tromey.com>
14252
14253 * valprint.h (common_val_print_checked): Declare.
14254 * valprint.c (common_val_print_checked): New function.
14255 * stack.c (print_frame_arg): Use common_val_print_checked.
14256
14257 2020-03-13 Tom Tromey <tom@tromey.com>
14258
14259 * valprint.c (do_val_print): New function, from val_print.
14260 (val_print): Use do_val_print.
14261 (common_val_print): Use do_val_print.
14262
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14264
14265 * valprint.c (value_print): Use scoped_value_mark.
14266
14267 2020-03-13 Tom de Vries <tdevries@suse.de>
14268
14269 PR symtab/25646
14270 * psymtab.c (partial_symtab::partial_symtab): Don't set
14271 globals_offset and statics_offset. Push element onto
14272 current_global_psymbols and current_static_psymbols stacks.
14273 (concat): New function.
14274 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14275 element from current_global_psymbols and current_static_psymbols
14276 stacks. Concat popped elements to global_psymbols and
14277 static_symbols.
14278 (add_psymbol_to_list): Use current_global_psymbols and
14279 current_static_psymbols stacks.
14280 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14281 current_static_psymbols fields.
14282
14283 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14284
14285 * corelow.c (sniff_core_bfd): Remove.
14286 (class core_target) <m_core_vec>: Remove.
14287 (core_target::core_target): Update.
14288 (core_file_fns): Remove.
14289 (deprecated_add_core_fns): Remove.
14290 (default_core_sniffer): Remove.
14291 (sniff_core_bfd): Remove.
14292 (default_check_format): Remove.
14293 (gdb_check_format): Remove.
14294 (core_target_open): Update.
14295 (core_target::get_core_register_section): Update.
14296 (get_core_registers_cb): Update.
14297 (core_target::fetch_registers): Update.
14298 * gdbcore.h (struct core_fns): Remove.
14299 (deprecated_add_core_fns): Remove.
14300 (default_core_sniffer): Remove.
14301 (default_check_format): Remove.
14302
14303 2020-03-12 Tom Tromey <tom@tromey.com>
14304
14305 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14306 CORE_ADDR.
14307 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14308
14309 2020-03-12 Tom Tromey <tom@tromey.com>
14310
14311 * remote.c (remote_target::download_tracepoint)
14312 (remote_target::enable_tracepoint)
14313 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14314 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14315 sprintf_vma.
14316
14317 2020-03-12 Tom Tromey <tom@tromey.com>
14318
14319 * symfile-mem.c: Update CORE_ADDR size assert.
14320
14321 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14322
14323 * selftest.m4: Move to gdbsupport/.
14324 * acinclude.m4: Update path to selftest.m4.
14325
14326 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14329 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14330 gdbarch-selfselftests.c and selftest-arch.c.
14331 (SUBDIR_UNITTESTS_OBS): Rename to...
14332 (SELFTESTS_OBS): ... this.
14333 (COMMON_SFILES): Remove disasm-selftests.c and
14334 gdbarch-selftests.c.
14335 * configure.ac: Don't add selftest-arch.{c,o} to
14336 CONFIG_{SRCS,OBS}.
14337 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14338 preprocessor conditions.
14339
14340 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * configure.ac: Don't source bfd/development.sh.
14343 * selftest.m4: Modify comment.
14344 * configure: Re-generate.
14345
14346 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14347
14348 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14349 not "true" or "false".
14350 * configure: Re-generate.
14351
14352 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14353
14354 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14355 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14356 renamed to arm_nbsd_supply_gregset.
14357 (fetch_register): Update to call arm_nbsd_supply_gregset.
14358 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14359 (arm_netbsd_nat_target::fetch_registers): Update.
14360 (fetch_elfcore_registers): Removed.
14361 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14362 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14363 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14364 not require NetBSD system headers.
14365 (arm_nbsd_regset): New struct.
14366 (arm_nbsd_iterate_over_regset_sections): New function.
14367 (arm_netbsd_init_abi_common): Updated to call
14368 set_gdbarch_iterate_over_regset_sections.
14369 * arm-nbsd-tdep.h: New file.
14370
14371 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14372
14373 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14374 recursion.
14375
14376 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14377
14378 * configure: Re-generate.
14379
14380 2020-03-11 Tom Tromey <tromey@adacore.com>
14381
14382 * ada-typeprint.c (print_choices): Fix comment.
14383
14384 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14385
14386 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14387 previous item in the list, when the list has no items.
14388
14389 2020-03-11 Tom de Vries <tdevries@suse.de>
14390
14391 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14392 PROP_LOCLIST handling code.
14393
14394 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14395
14396 * buildsym-legacy.c (record_line): Pass extra parameter to
14397 record_line.
14398 * buildsym.c (buildsym_compunit::record_line): Take an extra
14399 parameter, reduce duplication in the line table, and record the
14400 is_stmt flag in the line table.
14401 * buildsym.h (buildsym_compunit::record_line): Add extra
14402 parameter.
14403 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14404 non-statement lines.
14405 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14406 this to the symtab builder.
14407 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14408 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14409 through to dwarf_record_line_1.
14410 * infrun.c (process_event_stop_test): When stepping, don't stop at
14411 a non-statement instruction, and only refresh the step info when
14412 we land in the middle of a line's range. Also add an extra
14413 comment.
14414 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14415 field.
14416 * record-btrace.c (btrace_find_line_range): Only record lines
14417 marked as is-statement.
14418 * stack.c (frame_show_address): Show the frame address if we are
14419 in a non-statement sal.
14420 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14421 (maintenance_print_one_line_table): Print a header for the is_stmt
14422 column, and include is_stmt information in the output.
14423 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14424 preference to non-statements.
14425 (find_pcs_for_symtab_line): Prefer is-statement entries.
14426 (find_line_common): Likewise.
14427 * symtab.h (struct linetable_entry): Add is_stmt field.
14428 (struct symtab_and_line): Likewise.
14429 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14430 arranging the line table.
14431
14432 2020-03-07 Tom de Vries <tdevries@suse.de>
14433
14434 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14435 DIE.
14436
14437 2020-03-07 Tom Tromey <tom@tromey.com>
14438
14439 * valops.c (value_literal_complex): Remove obsolete comment.
14440 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14441 comment.
14442
14443 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14444
14445 * infrun.h: Forward-declare thread_info.
14446 (set_step_info): Add thread_info parameter, add doc.
14447 * infrun.c (set_step_info): Add thread_info parameter, move doc
14448 to header.
14449 * infrun.c (process_event_stop_test): Pass thread to
14450 set_step_info call.
14451 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14452 set_step_info.
14453 (prepare_one_step): Add thread_info parameter, pass it to
14454 set_step_frame and prepare_one_step (recursive) call.
14455 (step_1): Pass thread to prepare_one_step call.
14456 (step_command_fsm::should_stop): Pass thread to
14457 prepare_one_step.
14458 (until_next_fsm): Pass thread to set_step_frame call.
14459 (finish_command): Pass thread to set_step_info call.
14460
14461 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14462
14463 * windows-tdep.c (windows_solib_create_inferior_hook):
14464 Check if inferior is running.
14465
14466 2020-03-06 Tom de Vries <tdevries@suse.de>
14467
14468 * NEWS: Fix "the the".
14469 * ctfread.c: Same.
14470
14471 2020-03-06 Tom de Vries <tdevries@suse.de>
14472
14473 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14474
14475 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14476
14477 * .dir-locals.el: Add a comment referencing the other copies of
14478 this file.
14479
14480 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14481
14482 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14483 psargs.
14484
14485 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14486
14487 * .gitattributes: New file.
14488
14489 2020-03-04 Tom Tromey <tom@tromey.com>
14490
14491 * symmisc.c (print_symbol_bcache_statistics)
14492 (print_objfile_statistics): Update.
14493 * symfile.c (allocate_symtab): Use intern.
14494 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14495 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14496 macro_cache>: Remove.
14497 <string_cache>: New member.
14498 (struct objfile) <intern>: New methods.
14499 * elfread.c (elf_symtab_read): Use intern.
14500 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14501 (dwarf2_compute_name, dwarf2_physname)
14502 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14503 names.
14504 (guess_partial_die_structure_name): Update.
14505 (partial_die_info::fixup): Intern name.
14506 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14507 name.
14508 (dwarf2_name): Intern name. Update.
14509 * buildsym.c (buildsym_compunit::get_macro_table): Use
14510 string_cache.
14511
14512 2020-03-04 Tom Tromey <tom@tromey.com>
14513
14514 * jit.c (bfd_open_from_target_memory): Make "target" const.
14515 * corefile.c (gnutarget): Now const.
14516 * gdbcore.h (gnutarget): Now const.
14517
14518 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14519
14520 * NEWS: Mention support for WOW64 processes.
14521 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14522 (amd64_windows_segment_register_p): Remove static.
14523 (_initialize_amd64_windows_nat): Update.
14524 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14525 * i386-windows-nat.c (context_offset): Update.
14526 (i386_mappings): Rename and remove static.
14527 (i386_windows_segment_register_p): Remove static.
14528 (_initialize_i386_windows_nat): Update.
14529 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14530 (STATUS_WX86_SINGLE_STEP): New macro.
14531 (EnumProcessModulesEx): New macro.
14532 (Wow64SuspendThread): New macro.
14533 (Wow64GetThreadContext): New macro.
14534 (Wow64SetThreadContext): New macro.
14535 (Wow64GetThreadSelectorEntry): New macro.
14536 (windows_set_context_register_offsets): Add static.
14537 (windows_set_segment_register_p): Likewise.
14538 (windows_add_thread): Adapt for WOW64 processes.
14539 (windows_fetch_one_register): Likewise.
14540 (windows_nat_target::fetch_registers): Likewise.
14541 (windows_store_one_register): Likewise.
14542 (display_selector): Likewise.
14543 (display_selectors): Likewise.
14544 (handle_exception): Likewise.
14545 (windows_continue): Likewise.
14546 (windows_nat_target::resume): Likewise.
14547 (windows_add_all_dlls): Likewise.
14548 (do_initial_windows_stuff): Likewise.
14549 (windows_nat_target::attach): Likewise.
14550 (windows_get_exec_module_filename): Likewise.
14551 (windows_nat_target::create_inferior): Likewise.
14552 (windows_xfer_siginfo): Likewise.
14553 (_initialize_loadable): Initialize Wow64SuspendThread,
14554 Wow64GetThreadContext, Wow64SetThreadContext,
14555 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14556 * windows-nat.h (windows_set_context_register_offsets):
14557 Remove declaration.
14558 (windows_set_segment_register_p): Likewise.
14559 (i386_windows_segment_register_p): Add declaration.
14560 (amd64_windows_segment_register_p): Likewise.
14561
14562 2020-03-04 Luis Machado <luis.machado@linaro.org>
14563
14564 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14565 in "info registers" for AArch64/ARM.
14566
14567 The change caused "info registers" to not print GPR's.
14568
14569 gdb/ChangeLog:
14570
14571 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14572
14573 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14574 when reg->group is empty and reggroup is not.
14575
14576 2020-03-03 Tom Tromey <tromey@adacore.com>
14577
14578 * dwarf2/frame.c (struct dwarf2_frame_cache)
14579 <checked_tailcall_bottom, entry_cfa_sp_offset,
14580 entry_cfa_sp_offset_p>: Remove members.
14581 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14582 (dwarf2_frame_prev_register): Don't call
14583 dwarf2_tailcall_sniffer_first.
14584 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14585 * frame-unwind.c (add_unwinder): New fuction.
14586 (frame_unwind_init): Use it. Add tailcall unwinder.
14587
14588 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14589 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14590
14591 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14592 value should be printed as true.
14593
14594 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14595
14596 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14597 (windows_init_abi): Set and use windows_so_ops.
14598
14599 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14600
14601 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14602 when verifying if dealing with a convenience variable.
14603
14604 2020-03-03 Luis Machado <luis.machado@linaro.org>
14605
14606 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14607
14608 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14609
14610 * infrun.c (gdbarch_supports_displaced_stepping): New.
14611 (use_displaced_stepping): Break up conditions in smaller pieces.
14612 Use gdbarch_supports_displaced_stepping.
14613 (displaced_step_prepare_throw): Use
14614 gdbarch_supports_displaced_stepping.
14615
14616 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14617
14618 * NEWS: Mention new behaviour of the history filename.
14619 * top.c (write_history_p): Add comment.
14620 (show_write_history_p): Add header comment, give a different
14621 message when history writing is on, but the history filename is
14622 empty.
14623 (history_filename): Add comment.
14624 (history_filename_empty): New function.
14625 (show_history_filename): Add header comment, give a different
14626 message when the filename is empty.
14627 (init_history): Compare history_filename against nullptr, and only
14628 read history if the filename is not empty.
14629 (set_history_filename): Add header comment, and only make
14630 non-empty filenames absolute.
14631 (init_main): Make the filename argument to 'set history filename'
14632 optional.
14633
14634 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14635
14636 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14637 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14638 (fetch_fp_register): Update.
14639 (fetch_fp_regs): Update.
14640 (store_fp_register): Update.
14641 (store_fp_regs): Update.
14642 (arm_netbsd_nat_target::read_description): New function.
14643 (fetch_elfcore_registers): Update.
14644
14645 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14646
14647 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14648 general_thread if the stop reply is missing a thread-id.
14649 (remote_target::process_stop_reply): Use the first non-exited
14650 thread if the target didn't pass a thread-id.
14651 * infrun.c (do_target_wait): Move call to
14652 switch_to_inferior_no_thread to ....
14653 (do_target_wait_1): ... here.
14654
14655 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14656
14657 * debuginfod-support.c: Include defs.h first.
14658
14659 2020-02-28 Tom de Vries <tdevries@suse.de>
14660
14661 * symfile.c (set_initial_language): Use default language for lookup.
14662
14663 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14664
14665 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14666 reader variable, pass `this` to read_cutu_die_from_dwo.
14667
14668 2020-02-27 Aaron Merey <amerey@redhat.com>
14669
14670 * source.c (open_source_file): Check for nullptr when computing
14671 srcpath.
14672
14673 2020-02-27 Tom Tromey <tromey@adacore.com>
14674
14675 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14676 member.
14677 (dwarf2_add_field): Don't update nfields.
14678 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14679
14680 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14681
14682 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14683 abs.
14684
14685 2020-02-26 Tom Tromey <tom@tromey.com>
14686
14687 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14688 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14689 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14690 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14691 per_cu_data.
14692
14693 2020-02-26 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/index-write.c (psym_index_map): Change type.
14696 (add_address_entry_worker, write_one_signatured_type)
14697 (recursively_count_psymbols, recursively_write_psymbols)
14698 (class debug_names, psyms_seen_size, write_gdbindex)
14699 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14700
14701 2020-02-26 Aaron Merey <amerey@redhat.com>
14702
14703 * Makefile.in: Handle optional debuginfod support.
14704 * NEWS: Update.
14705 * README: Add --with-debuginfod summary.
14706 * config.in: Regenerate.
14707 * configure: Regenerate.
14708 * configure.ac: Handle optional debuginfod support.
14709 * debuginfod-support.c: debuginfod helper functions.
14710 * debuginfod-support.h: Ditto.
14711 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14712 summary.
14713 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14714 when a dwz file cannot be found.
14715 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14716 debuginfo file cannot be found.
14717 * source.c (open_source_file): Query debuginfod servers when a
14718 source file cannot be found.
14719 * top.c (print_gdb_configuration): Include
14720 --{with,without}-debuginfod in the output.
14721
14722 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14723
14724 * thread.c (thr_try_catch_cmd): Print thread name.
14725
14726 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14727
14728 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14729 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14730 dwarf2_fetch_die_type_sect_off): Move to...
14731 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14732 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14733 dwarf2_fetch_die_type_sect_off): ... here.
14734 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14735 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14736 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14737
14738 2020-02-26 Tom de Vries <tdevries@suse.de>
14739
14740 PR gdb/25603
14741 * symfile.c (set_initial_language): Exit-early if
14742 language_mode == language_mode_manual.
14743
14744 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14745
14746 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14747 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14748 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14749
14750 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14751
14752 * gdbtypes.c (create_array_type_with_stride): Handle negative
14753 array strides.
14754 * valarith.c (value_subscripted_rvalue): Likewise.
14755
14756 2020-02-25 Luis Machado <luis.machado@linaro.org>
14757
14758 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14759
14760 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14761
14762 * loc.h (dwarf2_get_die_type): Move to...
14763 * read.h (dwarf2_get_die_type): ... here.
14764 * read.c (dwarf2_get_die_type): Move doc to header.
14765
14766 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14767
14768 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14769 'gnulib/Makefile.in' to the list.
14770
14771 2020-02-24 Tom Tromey <tom@tromey.com>
14772
14773 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14774 Remove.
14775 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14776 XOBNEWVEC.
14777
14778 2020-02-24 Tom Tromey <tom@tromey.com>
14779
14780 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14781 New method.
14782 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14783 (dw2_do_instantiate_symtab, dw2_get_file_names)
14784 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14785
14786 2020-02-24 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14789 make_scoped_restore.
14790 (dwarf2_psymtab::read_symtab): Don't clear
14791 reading_partial_symbols.
14792
14793 2020-02-24 Tom de Vries <tdevries@suse.de>
14794
14795 PR gdb/25592
14796 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14797
14798 2020-02-24 Tom de Vries <tdevries@suse.de>
14799
14800 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14801 commands layout next/prev/regs.
14802
14803 2020-02-22 Tom Tromey <tom@tromey.com>
14804
14805 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14806 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14807
14808 2020-02-22 Tom Tromey <tom@tromey.com>
14809
14810 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14811
14812 2020-02-22 Tom Tromey <tom@tromey.com>
14813
14814 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14815 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14816 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14817 * tui/tui.c (_initialize_tui): Add usage text.
14818
14819 2020-02-22 Tom Tromey <tom@tromey.com>
14820
14821 * tui/tui-win.c (tui_set_focus_command)
14822 (tui_set_win_height_command): Use error_no_arg.
14823 (_initialize_tui_win): Update help text.
14824 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14825
14826 2020-02-22 Tom Tromey <tom@tromey.com>
14827
14828 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14829 * tui/tui-disasm.h (struct tui_disasm_window)
14830 <display_start_addr>: Declare.
14831 * tui/tui-source.h (struct tui_source_window)
14832 <display_start_addr>: Declare.
14833 * tui/tui-winsource.h (struct tui_source_window_base)
14834 <show_source_line, display_start_addr>: New methods.
14835 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14836 Rename and move to protected section.
14837 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14838 (tui_source_window_base::do_erase_source_content): Update.
14839 (tui_source_window_base::show_source_line): Now a method.
14840 (tui_source_window_base::show_source_content)
14841 (tui_source_window_base::tui_source_window_base)
14842 (tui_source_window_base::rerender)
14843 (tui_source_window_base::refill)
14844 (tui_source_window_base::do_scroll_horizontal)
14845 (tui_source_window_base::set_is_exec_point_at)
14846 (tui_source_window_base::update_breakpoint_info)
14847 (tui_source_window_base::update_exec_info): Update.
14848 * tui/tui-source.c (tui_source_window::set_contents)
14849 (tui_source_window::showing_source_p)
14850 (tui_source_window::do_scroll_vertical)
14851 (tui_source_window::location_matches_p)
14852 (tui_source_window::line_is_displayed): Update.
14853 (tui_source_window::display_start_addr): New method.
14854 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14855 (tui_disasm_window::do_scroll_vertical)
14856 (tui_disasm_window::location_matches_p): Update.
14857 (tui_disasm_window::display_start_addr): New method.
14858
14859 2020-02-22 Tom Tromey <tom@tromey.com>
14860
14861 * NEWS: Add entry for gdb.register_window_type.
14862 * tui/tui-layout.h (window_factory): New typedef.
14863 (tui_register_window): Declare.
14864 * tui/tui-layout.c (saved_tui_windows): New global.
14865 (tui_apply_current_layout): Use it.
14866 (tui_register_window): New function.
14867 * python/python.c (do_start_initialization): Call
14868 gdbpy_initialize_tui.
14869 (python_GdbMethods): Add "register_window_type" function.
14870 * python/python-internal.h (gdbpy_register_tui_window)
14871 (gdbpy_initialize_tui): Declare.
14872 * python/py-tui.c: New file.
14873 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14874
14875 2020-02-22 Tom Tromey <tom@tromey.com>
14876
14877 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14878
14879 2020-02-22 Tom Tromey <tom@tromey.com>
14880
14881 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14882 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14883 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14884 (tui_set_win_focus_to): Move from tui-win.c.
14885
14886 2020-02-22 Tom Tromey <tom@tromey.com>
14887
14888 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14889 functions.
14890 (known_window_types): New global.
14891 (tui_get_window_by_name): Reimplement.
14892 (initialize_known_windows): New function.
14893 (validate_window_name): Rewrite.
14894 (_initialize_tui_layout): Call initialize_known_windows.
14895
14896 2020-02-22 Tom Tromey <tom@tromey.com>
14897
14898 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14899 Remove constants.
14900 * tui/tui-winsource.h (struct tui_source_window_base)
14901 <tui_source_window_base>: Remove parameter.
14902 * tui/tui-winsource.c
14903 (tui_source_window_base::tui_source_window_base): Remove
14904 parameter.
14905 (tui_source_window_base::refill): Update.
14906 * tui/tui-stack.h (struct tui_locator_window)
14907 <tui_locator_window>: Update.
14908 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14909 Default the constructor.
14910 * tui/tui-regs.h (struct tui_data_item_window)
14911 <tui_data_item_window>: Default the constructor.
14912 (struct tui_data_window) <tui_data_window>: Likewise.
14913 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14914 Default the constructor.
14915 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14916 Default the constructor.
14917 <type>: Remove.
14918 (struct tui_win_info) <tui_win_info>: Default the constructor.
14919 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14920 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14921 Default the constructor.
14922
14923 2020-02-22 Tom Tromey <tom@tromey.com>
14924
14925 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14926 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14927 * tui/tui-win.c (tui_resize_all): Don't call
14928 tui_delete_invisible_windows.
14929 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14930 done.
14931 (tui_set_layout): Update.
14932 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14933 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14934 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14935
14936 2020-02-22 Tom Tromey <tom@tromey.com>
14937
14938 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14939 correctly.
14940
14941 2020-02-22 Tom Tromey <tom@tromey.com>
14942
14943 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14944
14945 2020-02-22 Tom Tromey <tom@tromey.com>
14946
14947 * tui/tui-winsource.h (struct tui_source_window_iterator)
14948 <inner_iterator>: New etytypedef.
14949 <tui_source_window_iterator>: Take "end" parameter.
14950 <tui_source_window_iterator>: Take iterator.
14951 <operator*, advance>: Update.
14952 <m_iter>: Change type.
14953 <m_end>: New field.
14954 (struct tui_source_windows) <begin, end>: Update.
14955 * tui/tui-layout.c (tui_windows): New global.
14956 (tui_apply_current_layout): Clear tui_windows.
14957 (tui_layout_window::apply): Update tui_windows.
14958 * tui/tui-data.h (tui_windows): Declare.
14959 (all_tui_windows): Now inline function.
14960 (class tui_window_iterator, struct all_tui_windows): Remove.
14961
14962 2020-02-22 Tom Tromey <tom@tromey.com>
14963
14964 PR tui/17850:
14965 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14966 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14967 "height" argument.
14968 (class tui_layout_window) <get_sizes>: Likewise.
14969 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14970 argument.
14971 <get_sizes>: Add "height" argument.
14972 <m_vertical>: New field.
14973 * tui/tui-layout.c (tui_layout_split::clone): Update.
14974 (tui_layout_split::get_sizes): Add "height" argument.
14975 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14976 (tui_new_layout_command): Parse "-horizontal".
14977 (_initialize_tui_layout): Update help string.
14978 (tui_layout_split::specification): Add "-horizontal" when needed.
14979 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14980 argument.
14981 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14982 New methods.
14983
14984 2020-02-22 Tom Tromey <tom@tromey.com>
14985
14986 * tui/tui-layout.h (enum tui_adjust_result): New.
14987 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14988 (class tui_layout_window) <adjust_size>: Return
14989 tui_adjust_result. Rewrite.
14990 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14991 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14992
14993 2020-02-22 Tom Tromey <tom@tromey.com>
14994
14995 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14996 parameter and return types.
14997 (class tui_layout_base) <specification>: Add "depth".
14998 (class tui_layout_window) <specification>: Add "depth".
14999 (class tui_layout_split) <specification>: Add "depth".
15000 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15001 and return types.
15002 (tui_new_layout_command): Parse sub-layouts.
15003 (_initialize_tui_layout): Update help string.
15004 (tui_layout_window::specification): Add "depth".
15005 (add_layout_command): Update.
15006
15007 2020-02-22 Tom Tromey <tom@tromey.com>
15008
15009 * NEWS: Add "tui new-layout" item.
15010 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15011 Add new-layout command to help text.
15012 (validate_window_name): New function.
15013 (tui_new_layout_command): New function.
15014 (_initialize_tui_layout): Register "new-layout".
15015 (tui_layout_window::specification): New method.
15016 (tui_layout_window::specification): New method.
15017 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15018 method.
15019 (class tui_layout_window) <specification>: New method.
15020 (class tui_layout_split) <specification>: New method.
15021
15022 2020-02-22 Tom Tromey <tom@tromey.com>
15023
15024 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15025 * tui/tui-win.c (window_name_completer): Update comment.
15026 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15027 Declare method.
15028 (class tui_layout_window) <replace_window>: Likewise.
15029 (class tui_layout_split) <replace_window>: Likewise.
15030 (tui_set_layout): Don't declare.
15031 (tui_set_initial_layout): Declare function.
15032 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15033 (asm_regs_layout): New globals.
15034 (tui_current_layout, show_layout): Remove.
15035 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15036 (find_layout, tui_apply_layout): New function.
15037 (layout_completer): Remove.
15038 (tui_next_layout): Reimplement.
15039 (tui_next_layout_command): New function.
15040 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15041 (tui_regs_layout): Reimplement.
15042 (tui_regs_layout_command): New function.
15043 (extract_display_start_addr): Rewrite.
15044 (next_layout, prev_layout): Remove.
15045 (tui_layout_window::replace_window): New method.
15046 (tui_layout_split::replace_window): New method.
15047 (destroy_layout): New function.
15048 (layout_list): New global.
15049 (add_layout_command): New function.
15050 (initialize_layouts): Update.
15051 (tui_layout_command): New function.
15052 (_initialize_tui_layout): Install "layout" commands.
15053 * tui/tui-data.h (enum tui_layout_type): Remove.
15054 (tui_current_layout): Don't declare.
15055
15056 2020-02-22 Tom Tromey <tom@tromey.com>
15057
15058 * tui/tui-regs.c (tui_reg_layout): Remove.
15059 (tui_reg_command): Use tui_regs_layout.
15060 * tui/tui-layout.h (tui_reg_command): Declare.
15061 * tui/tui-layout.c (tui_reg_command): New function.
15062
15063 2020-02-22 Tom Tromey <tom@tromey.com>
15064
15065 * tui/tui.c (tui_rl_delete_other_windows): Call
15066 tui_remove_some_windows.
15067 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15068 Declare method.
15069 (class tui_layout_window) <remove_windows>: New method.
15070 (class tui_layout_split) <remove_windows>: Declare.
15071 (tui_remove_some_windows): Declare.
15072 * tui/tui-layout.c (tui_remove_some_windows): New function.
15073 (tui_layout_split::remove_windows): New method.
15074
15075 2020-02-22 Tom Tromey <tom@tromey.com>
15076
15077 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15078 * tui/tui-layout.h (tui_next_layout): Declare.
15079 * tui/tui-layout.c (tui_next_layout): New function.
15080
15081 2020-02-22 Tom Tromey <tom@tromey.com>
15082
15083 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15084 correct coordinates.
15085
15086 2020-02-22 Tom Tromey <tom@tromey.com>
15087
15088 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15089 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15090 DATA_WIN case.
15091
15092 2020-02-22 Tom Tromey <tom@tromey.com>
15093
15094 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15095 TUI_DISASM_WIN, not tui_win_list.
15096
15097 2020-02-22 Tom Tromey <tom@tromey.com>
15098
15099 * valprint.c (generic_val_print_enum_1)
15100 (val_print_type_code_flags): Style member names.
15101 * rust-lang.c (val_print_struct, rust_print_enum)
15102 (rust_print_struct_def, rust_internal_print_type): Style member
15103 names.
15104 * p-valprint.c (pascal_object_print_value_fields): Style member
15105 names. Only call fprintf_symbol_filtered for static members.
15106 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15107 * f-valprint.c (f_val_print): Style member names.
15108 * f-typeprint.c (f_type_print_base): Style member names.
15109 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15110 call fprintf_symbol_filtered for static members.
15111 (cp_print_class_member): Style member names.
15112 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15113 member names.
15114 * ada-valprint.c (ada_print_scalar): Style enum names.
15115 (ada_val_print_enum): Likewise.
15116 * ada-typeprint.c (print_enum_type): Style enum names.
15117
15118 2020-02-21 Tom Tromey <tom@tromey.com>
15119
15120 * psympriv.h (struct partial_symtab): Update comment.
15121
15122 2020-02-21 Tom Tromey <tromey@adacore.com>
15123
15124 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15125 type is CORE_ADDR.
15126
15127 2020-02-21 Tom de Vries <tdevries@suse.de>
15128
15129 PR gdb/25534
15130 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15131 if dependencies[i]->user != NULL.
15132
15133 2020-02-21 Ali Tamur <tamur@google.com>
15134
15135 * dwarf2/read.c (dwarf2_name): Add null check.
15136
15137 2020-02-20 Tom Tromey <tom@tromey.com>
15138
15139 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15140 ">=", in binary search.
15141 (dwarf2_find_containing_comp_unit): New overload.
15142 (run_test): New self-test.
15143 (_initialize_dwarf2_read): Register new test.
15144
15145 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15146
15147 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15148 * riscv-tdep.h: Likewise.
15149 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15150 rv32-only CSR.
15151 * features/riscv/64bit-csr.xml: Regenerated.
15152
15153 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15154 Tom Tromey <tom@tromey.com>
15155
15156 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15157 of 'fputc_unfiltered'.
15158 (putchar_unfiltered): Call 'fputc_unfiltered'.
15159 (fputc_unfiltered): Call 'fputs_unfiltered'.
15160
15161 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15162
15163 * config.in: Regenerate.
15164 * configure: Regenerate.
15165 * configure.ac: Add --with-python-libdir option.
15166 * main.c: Use WITH_PYTHON_LIBDIR.
15167
15168 2020-02-19 Tom Tromey <tom@tromey.com>
15169
15170 * symtab.c (general_symbol_info::compute_and_set_names): Use
15171 obstack_strndup. Simplify call to symbol_set_demangled_name.
15172
15173 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15174
15175 * dwarf2/read.c (allocate_signatured_type_table,
15176 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15177 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15178 Remove objfile parameter, update all callers.
15179
15180 2020-02-19 Doug Evans <dje@google.com>
15181
15182 PR rust/25535
15183 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15184 rust_enum_variant calculation.
15185
15186 2020-02-19 Tom Tromey <tromey@adacore.com>
15187
15188 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15189
15190 2020-02-19 Tom Tromey <tromey@adacore.com>
15191
15192 * ada-lang.c (cache_symbol): Use obstack_strdup.
15193
15194 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15195
15196 * configure: Regenerate.
15197
15198 2020-02-19 Tom Tromey <tromey@adacore.com>
15199
15200 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15201 NULL check.
15202
15203 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15204
15205 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15206
15207 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15208
15209 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15210 if GDBSERVER is not defined.
15211 (riscv_tdesc_cache): Likewise, also store const target_desc.
15212 (STATIC_IN_GDB): Define.
15213 (riscv_create_target_description): Update declaration with
15214 STATIC_IN_GDB.
15215 (riscv_lookup_target_description): New function, only define if
15216 GDBSERVER is not defined.
15217 * arch/riscv.h (riscv_create_target_description): Declare only
15218 when GDBSERVER is defined.
15219 (riscv_lookup_target_description): New declaration when GDBSERVER
15220 is not defined.
15221 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15222 (riscv_linux_read_features): ...this, and return
15223 riscv_gdbarch_features instead of target_desc.
15224 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15225 (riscv_linux_read_description): Rename to...
15226 (riscv_linux_read_features): ...this.
15227 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15228 Update to use riscv_gdbarch_features and
15229 riscv_lookup_target_description.
15230 * riscv-tdep.c (riscv_find_default_target_description): Use
15231 riscv_lookup_target_description instead of
15232 riscv_create_target_description.
15233
15234 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15235
15236 * valprint.c (generic_val_print_enum_1): When printing a flag
15237 enum with value 0 and there is no enumerator with value 0, print
15238 just "0" instead of "(unknown: 0x0)".
15239
15240 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15241
15242 * valprint.c (generic_val_print_enum_1): Print unknown part of
15243 flag enum in hex.
15244
15245 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15246
15247 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15248 flag enums to contain duplicate enumerators.
15249 * valprint.c (generic_val_print_enum_1): Update comment.
15250
15251 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15252
15253 * dwarf2/read.c: Include "count-one-bits.h".
15254 (update_enumeration_type_from_children): If an enumerator has
15255 multiple bits set, don't treat the enumeration as a "flag enum".
15256 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15257 of flag enums have 0 or 1 bit set.
15258
15259 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15260
15261 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15262 conversion.
15263 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15264 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15265 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15266 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15267 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15268
15269 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15270
15271 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15272
15273 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15274
15275 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15276 displaced_step_closure_up.
15277 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15278 (struct displaced_step_closure_up):
15279 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15280 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15281 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15282 Likewise.
15283 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15284 * gdbarch.c, gdbarch.h: Re-generate.
15285 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15286 displaced_step_closure_up.
15287 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15288 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15289 * infrun.h (displaced_step_closure_up): New type alias.
15290 (struct displaced_step_inferior_state) <step_closure>: Change
15291 type to displaced_step_closure_up.
15292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15293 displaced_step_closure_up.
15294 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15295
15296 2020-02-14 Tom Tromey <tom@tromey.com>
15297
15298 * minidebug.c (gnu_debug_key): New global.
15299 (find_separate_debug_file_in_section): Use it.
15300
15301 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15302
15303 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15304 std::unique_ptr.
15305 * gdbarch.c: Re-generate.
15306 * gdbarch.h: Re-generate.
15307 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15308 change.
15309 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15310 type to std::unique_ptr.
15311 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15312 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15313 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15314 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15315 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15316 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15317 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15318 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15319 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15320
15321 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15322
15323 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15324 std::unique_ptr.
15325 (displaced_step_clear): Rename to...
15326 (displaced_step_reset): ... this. Just call displaced->reset ().
15327 (displaced_step_clear_cleanup): Rename to...
15328 (displaced_step_reset_cleanup): ... this.
15329 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15330 (displaced_step_fixup): Likewise.
15331 (resume_1): Likewise.
15332 (handle_inferior_event): Restore child's memory before calling
15333 displaced_step_fixup on the parent.
15334 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15335 to std::unique_ptr.
15336 <step_closure>: Change type to std::unique_ptr.
15337
15338 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15339
15340 * arm-tdep.c: Include count-one-bits.h.
15341 (cleanup_block_store_pc): Use count_one_bits.
15342 (cleanup_block_load_pc): Use count_one_bits.
15343 (arm_copy_block_xfer): Use count_one_bits.
15344 (thumb2_copy_block_xfer): Use count_one_bits.
15345 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15346 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15347 (thumb_get_next_pcs_raw): Use count_one_bits.
15348 (arm_get_next_pcs_raw): Use count_one_bits_l.
15349 * arch/arm.c (bitcount): Remove.
15350 * arch/arm.h (bitcount): Remove.
15351
15352 2020-02-14 Tom Tromey <tromey@adacore.com>
15353
15354 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15355 Update.
15356 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15357 * dwarf2/loc.c (call_site_find_chain_1): Return
15358 unique_xmalloc_ptr.
15359 (call_site_find_chain): Likewise.
15360
15361 2020-02-14 Richard Biener <rguenther@suse.de>
15362
15363 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15364 on expression with division operators.
15365
15366 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15367
15368 * MAINTAINERS (Write After Approval): Adding myself.
15369
15370 2020-02-12 Tom Tromey <tom@tromey.com>
15371
15372 * event-loop.c (event_data, gdb_event, event_handler_func):
15373 Remove.
15374
15375 2020-02-12 Tom Tromey <tom@tromey.com>
15376
15377 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15378 (dwarf2_frame_objfile_data): Add comment.
15379 (find_comp_unit, set_comp_unit): New functions.
15380 (dwarf2_frame_find_fde): Use find_comp_unit.
15381 (dwarf2_build_frame_info): Use set_comp_unit.
15382
15383 2020-02-12 Tom Tromey <tom@tromey.com>
15384
15385 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15386 (comp_unit): Don't initialize objfile.
15387 (execute_cfa_program): Add text_offset parameter.
15388 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15389 (dwarf2_frame_cache): Update.
15390 (dwarf2_build_frame_info): Don't set "objfile" member.
15391
15392 2020-02-12 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15395 (decode_frame_entry): Likewise.
15396 (dwarf2_build_frame_info): Update.
15397
15398 2020-02-12 Tom Tromey <tom@tromey.com>
15399
15400 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15401 (decode_frame_entry_1): Use the comp_unit obstack.
15402
15403 2020-02-12 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2/frame.c (struct comp_unit): Add initializers and
15406 constructor.
15407 (dwarf2_frame_objfile_data): Store a comp_unit.
15408 (dwarf2_frame_find_fde): Update.
15409 (dwarf2_build_frame_info): Use "new".
15410
15411 2020-02-12 Tom Tromey <tom@tromey.com>
15412
15413 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15414 (dwarf2_fde_table): Typedef for std::vector.
15415 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15416 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15417 (decode_frame_entry): Update.
15418 (dwarf2_build_frame_info): Use "new".
15419
15420 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15421
15422 * arm-tdep.c (arm_gdbarch_init): Update.
15423 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15424 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15425 have_neon, is_m>: Change to bool.
15426
15427 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15428
15429 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15430
15431 2020-02-12 Tom Tromey <tom@tromey.com>
15432
15433 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15434
15435 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15436
15437 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15438 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15439
15440 2020-02-11 Tom Tromey <tom@tromey.com>
15441
15442 * psymtab.h: Update comment.
15443
15444 2020-02-11 Tom Tromey <tom@tromey.com>
15445
15446 * gdb_obstack.h (struct auto_obstack): Use
15447 DISABLE_COPY_AND_ASSIGN.
15448
15449 2020-02-11 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/frame.h (struct objfile): Don't forward declare.
15452
15453 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15454
15455 * cris-tdep.c (cris_supply_gregset): Change signature to match
15456 what struct regset expects.
15457 (cris_regset): New struct.
15458 (fetch_core_registers): Remove.
15459 (cris_iterate_over_regset_sections): New function.
15460 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15461 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15462
15463 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15464
15465 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15466 registers.
15467
15468 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15469
15470 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15471
15472 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15473
15474 * configure: Re-generate.
15475
15476 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15477
15478 * configure: Re-generate.
15479
15480 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15481
15482 * acinclude: Update warning.m4 path.
15483 * warning.m4: Move to gdbsupport.
15484
15485 2020-02-11 Tom Tromey <tromey@adacore.com>
15486
15487 * remote.c (remote_console_output): Update.
15488 * printcmd.c (printf_command): Update.
15489 * event-loop.c (gdb_wait_for_event): Update.
15490 * linux-nat.c (sigchld_handler): Update.
15491 * remote-sim.c (gdb_os_write_stdout): Update.
15492 (gdb_os_flush_stdout): Update.
15493 (gdb_os_flush_stderr): Update.
15494 (gdb_os_write_stderr): Update.
15495 * exceptions.c (print_exception): Update.
15496 * remote-fileio.c (remote_fileio_func_read): Update.
15497 (remote_fileio_func_write): Update.
15498 * tui/tui.c (tui_enable): Update.
15499 * tui/tui-interp.c (tui_interp::init): Update.
15500 * utils.c (init_page_info): Update.
15501 (putchar_unfiltered, fputc_unfiltered): Update.
15502 (gdb_flush): Update.
15503 (emit_style_escape): Update.
15504 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15505 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15506 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15507 (stderr_file::write): Update.
15508 (stderr_file::puts): Update.
15509 * ui-file.h (ui_file_isatty, ui_file_write)
15510 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15511 (ui_file_puts): Don't declare.
15512
15513 2020-02-10 Tom de Vries <tdevries@suse.de>
15514
15515 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15516 sentinel to char *.
15517
15518 2020-02-09 Tom de Vries <tdevries@suse.de>
15519
15520 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15521 filename if it matches "<artificial>".
15522
15523 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15524
15525 * windows-tdep.c (struct enum_value_name): New struct.
15526 (create_enum): New function.
15527 (windows_get_siginfo_type): Create and use enum types.
15528
15529 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15530
15531 * NEWS: Mention $_siginfo support for Windows.
15532 * windows-nat.c (handle_exception): Set siginfo_er.
15533 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15534 (windows_xfer_siginfo): New function.
15535 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15536 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15537 (init_windows_gdbarch_data): New function.
15538 (get_windows_gdbarch_data): New function.
15539 (windows_get_siginfo_type): New function.
15540 (windows_init_abi): Register windows_get_siginfo_type.
15541 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15542
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15544
15545 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15546 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15547 <keep>: Declare method.
15548 <m_keep>: Remove member.
15549 <~cutu_reader>: Remove.
15550 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15551 (cutu_reader::cutu_reader): Update.
15552 (cutu_reader::keep): Rename from ~cutu_reader.
15553 (process_psymtab_comp_unit, build_type_psymtabs_1)
15554 (process_skeletonless_type_unit, load_partial_comp_unit)
15555 (load_full_comp_unit, dwarf2_read_addr_index)
15556 (read_signatured_type): Update.
15557
15558 2020-02-08 Tom Tromey <tom@tromey.com>
15559
15560 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15561 "want_partial_unit" parameter.
15562 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15563 Inline check for DW_TAG_partial_unit.
15564 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15565
15566 2020-02-08 Tom Tromey <tom@tromey.com>
15567
15568 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15569 read.c.
15570 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15571 read.c.
15572
15573 2020-02-08 Tom Tromey <tom@tromey.com>
15574
15575 * dwarf2/read.c (read_address): Move to comp-unit.c.
15576 (dwarf2_rnglists_process, dwarf2_ranges_process)
15577 (read_attribute_value, dwarf_decode_lines_1)
15578 (var_decode_location, decode_locdesc): Update.
15579 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15580 read.c. Remove "cu" parameter.
15581 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15582 method.
15583
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15587 (read_indirect_line_string): Update.
15588 * dwarf2/comp-unit.c (read_offset): Remove.
15589 (read_comp_unit_head): Update.
15590 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15591 method.
15592 (read_offset): Don't declare.
15593
15594 2020-02-08 Tom Tromey <tom@tromey.com>
15595
15596 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15597 * dwarf2/read.c (struct comp_unit_head): Move to
15598 dwarf2/comp-unit.h.
15599 (enum class rcuh_kind): Move to comp-unit.h.
15600 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15601 (read_comp_unit_head, error_check_comp_unit_head)
15602 (read_and_check_comp_unit_head): Move to comp-unit.c.
15603 (read_offset, dwarf_unit_type_name): Likewise.
15604 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15605 (cutu_reader::cutu_reader, read_call_site_scope)
15606 (find_partial_die, follow_die_offset): Update.
15607 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15608
15609 2020-02-08 Tom Tromey <tom@tromey.com>
15610
15611 * dwarf2/read.c (read_offset_1): Move to leb.c.
15612 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15613 (dwarf_decode_macro_bytes): Update.
15614 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15615 * dwarf2/leb.h (read_offset): Declare.
15616
15617 2020-02-08 Tom Tromey <tom@tromey.com>
15618
15619 * dwarf2/read.c (dwarf2_section_size): Remove.
15620 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15621 Update.
15622 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15623
15624 2020-02-08 Tom Tromey <tom@tromey.com>
15625
15626 * dwarf2/read.c (read_initial_length): Move to leb.c.
15627 * dwarf2/leb.h (read_initial_length): Declare.
15628 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15629 handle_nonstd parameter.
15630 * dwarf2/frame.c (read_initial_length): Remove.
15631 (decode_frame_entry_1): Update.
15632
15633 2020-02-08 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2/loc.c (dwarf2_find_location_expression)
15636 (dwarf_evaluate_loc_desc::get_tls_address)
15637 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15638 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15639 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15640 (dwarf2_compile_property_to_c)
15641 (dwarf2_loc_desc_get_symbol_read_needs)
15642 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15643 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15644 (loclist_describe_location, loclist_tracepoint_var_ref)
15645 (loclist_generate_c_location): Update.
15646 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15647 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15648 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15649 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15650 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15651 (dwarf2_per_cu_data::addr_size)
15652 (dwarf2_per_cu_data::ref_addr_size)
15653 (dwarf2_per_cu_data::text_offset)
15654 (dwarf2_per_cu_data::addr_type): Now methods.
15655 (per_cu_header_read_in): Make per_cu "const".
15656 (dwarf2_version): Remove.
15657 (dwarf2_per_cu_data::int_type): Now a method.
15658 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15659 (set_die_type, read_array_type, read_subrange_index_type)
15660 (read_tag_string_type, read_subrange_type): Update.
15661 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15662 offset_size, ref_addr_size, text_offset, addr_type, version,
15663 objfile, int_type, addr_sized_int_type>: Declare methods.
15664
15665 2020-02-08 Tom Tromey <tom@tromey.com>
15666
15667 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15668 Move earlier.
15669
15670 2020-02-08 Tom Tromey <tom@tromey.com>
15671
15672 * dwarf2/read.h (dwarf_line_debug): Declare.
15673 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15674 * dwarf2/read.c: Move line_header code to new files.
15675 (dwarf_line_debug): No longer static.
15676 * dwarf2/line-header.c: New file.
15677 * dwarf2/line-header.h: New file.
15678
15679 2020-02-08 Tom Tromey <tom@tromey.com>
15680
15681 * dwarf2/read.c (struct line_header) <file_full_name,
15682 file_file_name>: Return unique_xmalloc_ptr.
15683 (line_header::file_file_name): Update.
15684 (line_header::file_full_name): Update.
15685 (dw2_get_file_names_reader): Update.
15686 (macro_start_file): Update.
15687
15688 2020-02-08 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2/read.c (struct line_header) <file_full_name,
15691 file_file_name>: Declare methods.
15692 (dw2_get_file_names_reader): Update.
15693 (file_file_name): Now a method.
15694 (file_full_name): Likewise.
15695 (macro_start_file): Update.
15696
15697 2020-02-08 Tom Tromey <tom@tromey.com>
15698
15699 * dwarf2/read.c (dwarf_always_disassemble)
15700 (show_dwarf_always_disassemble): Move to loc.c.
15701 (_initialize_dwarf2_read): Move "always-disassemble" registration
15702 to loc.c.
15703 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15704 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15705 static.
15706 (show_dwarf_always_disassemble): Move from read.c.
15707 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15708
15709 2020-02-08 Tom Tromey <tom@tromey.com>
15710
15711 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15712 (create_quick_file_names_table): Return htab_up.
15713 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15714 Update.
15715 * dwarf2/read.h (struct dwarf2_per_objfile)
15716 <quick_file_names_table>: Now htab_up.
15717
15718 2020-02-08 Tom Tromey <tom@tromey.com>
15719
15720 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15721
15722 2020-02-08 Tom Tromey <tom@tromey.com>
15723
15724 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15725 Rewrite.
15726 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15727 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15728 (abbrev_table::abbrev_table): No longer inline.
15729 (ABBREV_HASH_SIZE): Remove.
15730 (abbrev_table::m_abbrevs): Now an htab_up.
15731
15732 2020-02-08 Tom Tromey <tom@tromey.com>
15733
15734 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15735 (cutu_reader): Update.
15736 (build_type_psymtabs_1): Update.
15737 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15738 (abbrev_table::alloc_abbrev): Update.
15739 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15740 (abbrev_table::read): New static method, renamed from
15741 abbrev_table_read_table.
15742 (abbrev_table::alloc_abbrev)
15743 (abbrev_table::add_abbrev): Now private.
15744 (abbrev_table::abbrev_table): Now private.
15745 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15746
15747 2020-02-08 Tom Tromey <tom@tromey.com>
15748
15749 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15750 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15751 htab_up.
15752
15753 2020-02-08 Tom Tromey <tom@tromey.com>
15754
15755 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15756 htab_up.
15757 (lookup_dwo_unit_in_dwp): Update.
15758 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15759 on obstack.
15760
15761 2020-02-08 Tom Tromey <tom@tromey.com>
15762
15763 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15764 obstack.
15765
15766 2020-02-08 Tom Tromey <tom@tromey.com>
15767
15768 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15769 line_header_hash.
15770 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15771 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15772 Change type to htab_up.
15773
15774 2020-02-08 Tom Tromey <tom@tromey.com>
15775
15776 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15777 htab_up. Don't allocate on obstack.
15778 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15779 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15780 Change type to htab_up.
15781
15782 2020-02-08 Tom Tromey <tom@tromey.com>
15783
15784 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15785 Change type to htab_up.
15786 * dwarf2/read.c (create_signatured_type_table_from_index)
15787 (create_signatured_type_table_from_debug_names)
15788 (create_all_type_units, add_type_unit)
15789 (lookup_dwo_signatured_type, lookup_signatured_type)
15790 (process_skeletonless_type_unit): Update.
15791 (create_debug_type_hash_table, create_debug_types_hash_table):
15792 Change type of types_htab.
15793 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15794 htab_up. Don't allocate on obstack.
15795 (create_cus_hash_table): Change type of cus_htab parameter.
15796 (struct dwo_file) <cus, tus>: Now htab_up.
15797 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15798 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15799 (queue_and_load_all_dwo_tus): Update.
15800 * dwarf2/index-write.c (write_gdbindex): Update.
15801 (write_debug_names): Update.
15802
15803 2020-02-08 Tom Tromey <tom@tromey.com>
15804
15805 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15806 dwarf2/read.c. Remove "next" member. Add constructor ntad
15807 destructor.
15808 (struct dwarf2_per_objfile) <queue>: New member.
15809 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15810 dwarf2/read.h.
15811 (dwarf2_queue, dwarf2_queue_tail): Remove.
15812 (class dwarf2_queue_guard): Add parameter to constructor. Use
15813 DISABLE_COPY_AND_ASSIGN.
15814 <m_per_objfile>: New member.
15815 <~dwarf2_queue_guard>: Rewrite.
15816 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15817 Update.
15818 (~dwarf2_queue_item): New.
15819
15820 2020-02-08 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2/read.c (struct die_info) <has_children>: New member.
15823 (dw2_get_file_names_reader): Remove has_children.
15824 (dw2_get_file_names): Update.
15825 (read_cutu_die_from_dwo): Remove has_children.
15826 (cutu_reader::init_tu_and_read_dwo_dies)
15827 (cutu_reader::cutu_reader): Update.
15828 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15829 Remove has_children.
15830 (build_type_psymtabs_1, process_skeletonless_type_unit)
15831 (load_partial_comp_unit, load_full_comp_unit): Update.
15832 (create_dwo_cu_reader): Remove has_children.
15833 (create_cus_hash_table, read_die_and_children): Update.
15834 (read_full_die_1,read_full_die): Remove has_children.
15835 (read_signatured_type): Update.
15836 (class cutu_reader) <has_children>: Remove.
15837
15838 2020-02-08 Tom Tromey <tom@tromey.com>
15839
15840 * dwarf2/expr.c: Rename from dwarf2expr.c.
15841 * dwarf2/expr.h: Rename from dwarf2expr.h.
15842 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15843 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15844 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15845 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15846 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15847 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15848 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15849 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15850 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15851 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15852 * dwarf2/loc.c: Rename from dwarf2loc.c.
15853 * dwarf2/loc.h: Rename from dwarf2loc.h.
15854 * dwarf2/read.c: Rename from dwarf2read.c.
15855 * dwarf2/read.h: Rename from dwarf2read.h.
15856 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15857 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15858 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15859 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15860 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15861 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15862 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15863 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15864 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15865 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15866 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15867 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15868 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15869 Update.
15870 * Makefile.in (COMMON_SFILES): Update.
15871 (HFILES_NO_SRCDIR): Update.
15872
15873 2020-02-08 Tom Tromey <tom@tromey.com>
15874
15875 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15876 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15877
15878 2020-02-08 Tom Tromey <tom@tromey.com>
15879
15880 * dwarf2read.h (struct die_info): Don't declare.
15881
15882 2020-02-08 Tom Tromey <tom@tromey.com>
15883
15884 * dwarf2read.h (die_info_ptr): Remove typedef.
15885
15886 2020-02-08 Tom Tromey <tom@tromey.com>
15887
15888 * dwarf2read.c (read_call_site_scope)
15889 (handle_data_member_location, dwarf2_add_member_fn)
15890 (mark_common_block_symbol_computed, read_common_block)
15891 (attr_to_dynamic_prop, partial_die_info::read)
15892 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15893 (dwarf2_symbol_mark_computed, set_die_type): Update.
15894 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15895 method.
15896 (attr_form_is_block): Don't declare.
15897 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15898
15899 2020-02-08 Tom Tromey <tom@tromey.com>
15900
15901 * dwarf2read.c (dwarf2_find_base_address, )
15902 (read_call_site_scope, rust_containing_type)
15903 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15904 (handle_data_member_location, dwarf2_add_member_fn)
15905 (get_alignment, read_structure_type, process_structure_scope)
15906 (mark_common_block_symbol_computed, read_common_block)
15907 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15908 (partial_die_info::read, read_attribute_value, new_symbol)
15909 (lookup_die_type, dwarf2_get_ref_die_offset)
15910 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15911 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15912 (dwarf2_symbol_mark_computed): Update.
15913 * dwarf2/attribute.h (struct attribute) <value_as_address,
15914 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15915 methods.
15916 (value_as_address, attr_form_is_section_offset)
15917 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15918 * dwarf2/attribute.c (attribute::value_as_address)
15919 (attribute::form_is_section_offset, attribute::form_is_constant)
15920 (attribute::form_is_ref): Now methods.
15921
15922 2020-02-08 Tom Tromey <tom@tromey.com>
15923
15924 * dwarf2read.c (struct attribute, DW_STRING)
15925 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15926 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15927 (attr_form_is_block, attr_form_is_section_offset)
15928 (attr_form_is_constant, attr_form_is_ref): Move.
15929 * dwarf2/attribute.h: New file.
15930 * dwarf2/attribute.c: New file, from dwarf2read.c.
15931 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15932
15933 2020-02-08 Tom Tromey <tom@tromey.com>
15934
15935 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15936 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15937 Move.
15938 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15939 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15940 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15941 abbrev.c.
15942 * dwarf2/abbrev.h: New file.
15943 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15944 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15945
15946 2020-02-08 Tom Tromey <tom@tromey.com>
15947
15948 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15949 (dwarf2_section_size, dwarf2_get_section_info)
15950 (create_signatured_type_table_from_debug_names)
15951 (create_addrmap_from_aranges, read_debug_names_from_section)
15952 (get_gdb_index_contents_from_section, read_comp_unit_head)
15953 (error_check_comp_unit_head, read_abbrev_offset)
15954 (create_debug_type_hash_table, init_cu_die_reader)
15955 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15956 (read_comp_units_from_section, create_cus_hash_table)
15957 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15958 (create_dwp_v2_section, dwarf2_rnglists_process)
15959 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15960 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15961 (read_indirect_string_from_dwz, read_addr_index_1)
15962 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15963 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15964 (fill_in_loclist_baton): Update.
15965 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15966 get_containing_section, get_bfd_owner, get_bfd_section,
15967 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15968 (dwarf2_read_section, get_section_name, get_section_file_name)
15969 (get_containing_section, get_section_bfd_owner)
15970 (get_section_bfd_section, get_section_name, get_section_file_name)
15971 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15972 declare.
15973 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15974 (dwarf2_section_info::get_bfd_owner)
15975 (dwarf2_section_info::get_bfd_section)
15976 (dwarf2_section_info::get_name)
15977 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15978 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15979 (dwarf2_section_info::read): Now methods.
15980 * dwarf-index-write.c (class debug_names): Update.
15981
15982 2020-02-08 Tom Tromey <tom@tromey.com>
15983
15984 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15985 Move to dwarf2/section.h.
15986 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15987 (get_section_bfd_section, get_section_name)
15988 (get_section_file_name, get_section_id, get_section_flags)
15989 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15990 dwarf2/section.c.
15991 * dwarf2/section.h: New file.
15992 * dwarf2/section.c: New file, from dwarf2read.c.
15993 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15994
15995 2020-02-08 Tom Tromey <tom@tromey.com>
15996
15997 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15998 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15999 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16000 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16001 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16002 * dwarf2/leb.h: New file, from dwarf2read.c.
16003 * dwarf2/leb.c: New file, from dwarf2read.c.
16004 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16005 Remove.
16006 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16007 (COMMON_SFILES): Add dwarf2/leb.c.
16008
16009 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16010
16011 GDB 9.1 released.
16012
16013 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16014
16015 PR gdb/25190:
16016 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16017 * gdb/remote.c (remote_console_output): Update.
16018 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16019 (ui_file_puts): ...this.
16020 * gdb/ui-file.h (ui_file_puts): Add declaration.
16021 * gdb/utils.c (emit_style_escape): Update.
16022 (flush_wrap_buffer): Update.
16023 (fputs_maybe_filtered): Update.
16024 (fputs_unfiltered): Add function.
16025
16026 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16027
16028 * gdb/event-loop.c (gdb_wait_for_event): Update.
16029 * gdb/printcmd.c (printf_command): Update.
16030 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16031 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16032 (gdb_os_flush_stderr): Update.
16033 * gdb/remote.c (remote_console_output): Update.
16034 * gdb/ui-file.c (gdb_flush): Rename to...
16035 (ui_file_flush): ...this.
16036 (stderr_file::write): Update.
16037 (stderr_file::puts): Update.
16038 * gdb/ui-file.h (gdb_flush): Rename to...
16039 (ui_file_flush): ...this.
16040 * gdb/utils.c (gdb_flush): Add function.
16041 * gdb/utils.h (gdb_flush): Add declaration.
16042
16043 2020-02-07 Tom Tromey <tromey@adacore.com>
16044
16045 PR breakpoints/24915:
16046 * source.c (find_and_open_source): Do not check basenames_may_differ.
16047
16048 2020-02-07 Tom Tromey <tom@tromey.com>
16049
16050 * README: Update gdbserver documentation.
16051 * gdbserver: Move to top level.
16052 * configure.tgt (build_gdbserver): Remove.
16053 * configure.ac: Remove --enable-gdbserver.
16054 * configure: Rebuild.
16055 * Makefile.in (distclean): Don't mention gdbserver.
16056
16057 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16058
16059 * source-cache.c (source_cache::ensure): Surround
16060 get_plain_source_lines with a try/catch.
16061 (source_cache::get_line_charpos): Get rid of try/catch
16062 and only check for the return value of "ensure".
16063 * tui/tui-source.c (tui_source_window::set_contents):
16064 Simplify "nlines" calculation.
16065
16066 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16067
16068 * MAINTAINERS (Write After Approval): Add myself.
16069
16070 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16071
16072 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16073 function call.
16074
16075 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16076
16077 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16078
16079 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16080
16081 * nat/riscv-linux-tdesc.h: New file.
16082 * nat/riscv-linux-tdesc.c: New file, taking code from...
16083 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16084 ... here.
16085 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16086 NATDEPFILES.
16087
16088 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16089
16090 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16091 we don't set the fake simulator ptid to the null_ptid.
16092
16093 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16094
16095 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16096 * gdbthread.h (class thread_info) <resumed>: Likewise.
16097 * infrun.c (resume_1): Likewise.
16098 (proceed): Likewise.
16099 (infrun_thread_stop_requested): Likewise.
16100 (stop_all_threads): Likewise.
16101 (handle_inferior_event): Likewise.
16102 (restart_threads): Likewise.
16103 (finish_step_over): Likewise.
16104 (keep_going_stepped_thread): Likewise.
16105 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16106 (linux_handle_extended_wait): Likewise.
16107 * record-btrace.c (get_thread_current_frame_id): Likewise.
16108 * record-full.c (record_full_wait_1): Likewise.
16109 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16110 * target.c (target_resume): Likewise.
16111 * thread.c (set_running_thread): Likewise.
16112
16113 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16114
16115 * f-valprint.c (f77_print_array_1): Changed datatype of index
16116 variable to LONGEST from int to enable it to contain bound
16117 values correctly.
16118
16119 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16120
16121 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16122 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16123 offsets according to FLEN determined.
16124 (riscv_linux_nat_target::read_description): Determine FLEN
16125 dynamically.
16126 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16127 according to FLEN determined.
16128 (riscv_linux_nat_target::store_registers): Likewise.
16129
16130 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16131
16132 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16133 when reg->group is empty and reggroup is not.
16134
16135 2020-01-31 Tom Tromey <tromey@adacore.com>
16136
16137 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16138 Call beneath target's mourn_inferior after unpushing.
16139
16140 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16141
16142 PR tui/9765
16143 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16144 have enough lines to fill the screen, still return the lowest
16145 address we found.
16146
16147 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16148
16149 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16150 '-', '<', and '>' commands.
16151
16152 2020-01-29 Pedro Alves <palves@redhat.com>
16153 Sergio Durigan Junior <sergiodj@redhat.com>
16154
16155 * infcmd.c (construct_inferior_arguments): Assert that
16156 'argc' is greater than 0.
16157
16158 2020-01-29 Luis Machado <luis.machado@linaro.org>
16159
16160 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16161 (BRK_INSN_MASK): Define to 0xd4200000.
16162 (aarch64_program_breakpoint_here_p): New function.
16163 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16164 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16165 breakpoint.c.
16166 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16167 breakpoint.h
16168 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16169 call gdbarch_program_breakpoint_here_p.
16170 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16171 default_program_breakpoint_here_p, changed return type to bool and
16172 simplified.
16173 * breakpoint.h (program_breakpoint_here): Moved prototype to
16174 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16175 return type to bool.
16176 * gdbarch.c: Regenerate.
16177 * gdbarch.h: Regenerate.
16178 * gdbarch.sh (program_breakpoint_here_p): New method.
16179 * infrun.c (handle_signal_stop): Call
16180 gdbarch_program_breakpoint_here_p.
16181
16182 2020-01-26 Tom Tromey <tom@tromey.com>
16183
16184 * ctfread.c (struct ctf_fp_info): Reindent.
16185 (_initialize_ctfread): Remove.
16186
16187 2020-01-26 Tom Tromey <tom@tromey.com>
16188
16189 * psymtab.c (partial_map_expand_apply)
16190 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16191 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16192 (psym_print_stats, psym_expand_symtabs_for_function)
16193 (psym_map_symbol_filenames, psym_map_matching_symbols)
16194 (psym_expand_symtabs_matching)
16195 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16196 (maintenance_check_psymtabs): Use new methods.
16197 * psympriv.h (struct partial_symtab) <readin_p,
16198 get_compunit_symtab>: New methods.
16199 <readin, compunit_symtab>: Remove members.
16200 (struct standard_psymtab): New.
16201 (struct legacy_psymtab): Derive from standard_psymtab.
16202 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16203 standard_psymtab.
16204 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16205
16206 2020-01-26 Tom Tromey <tom@tromey.com>
16207
16208 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16209 read_dependencies. Add assert.
16210 * psymtab.c (partial_symtab::read_dependencies): New method.
16211 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16212 method.
16213 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16214 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16215 read_dependencies.
16216 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16217 Add assert.
16218
16219 2020-01-26 Tom Tromey <tom@tromey.com>
16220
16221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16222 Call expand_psymtab.
16223 (xcoff_read_symtab): Call expand_psymtab.
16224 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16225 legacy_expand_psymtab.
16226 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16227 method.
16228 (struct legacy_psymtab) <expand_psymtab>: Implement.
16229 <legacy_expand_psymtab>: New member.
16230 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16231 (parse_partial_symbols): Set legacy_expand_psymtab.
16232 (psymtab_to_symtab_1): Change argument order. Call
16233 expand_psymtab.
16234 (new_psymtab): Set legacy_expand_psymtab.
16235 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16236 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16237 expand_psymtab.
16238 (dwarf2_psymtab::expand_psymtab): Rename from
16239 psymtab_to_symtab_1. Call expand_psymtab.
16240 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16241 (dbx_end_psymtab): Likewise.
16242 (dbx_psymtab_to_symtab_1): Change argument order. Call
16243 expand_psymtab.
16244 (dbx_read_symtab): Call expand_psymtab.
16245 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16246 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16247 (ctf_psymtab::read_symtab): Call expand_psymtab.
16248
16249 2020-01-26 Tom Tromey <tom@tromey.com>
16250
16251 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16252 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16253 messages.
16254 * mdebugread.c (mdebug_read_symtab): Remove prints.
16255 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16256 assert.
16257 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16258
16259 2020-01-26 Tom Tromey <tom@tromey.com>
16260
16261 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16262 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16263 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16264 legacy_symtab.
16265 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16266 * psymtab.c (psymtab_to_symtab): Call method.
16267 (dump_psymtab): Update.
16268 * psympriv.h (struct partial_symtab): Add virtual destructor.
16269 <read_symtab>: New method.
16270 (struct legacy_symtab): New.
16271 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16272 (struct pst_map) <pst>: Now a legacy_psymtab.
16273 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16274 (new_psymtab): Use legacy_psymtab.
16275 * dwarf2read.h (struct dwarf2_psymtab): New.
16276 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16277 * dwarf2read.c (dwarf2_create_include_psymtab)
16278 (dwarf2_build_include_psymtabs, create_type_unit_group)
16279 (create_partial_symtab, process_psymtab_comp_unit_reader)
16280 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16281 (set_partial_user): Use dwarf2_psymtab.
16282 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16283 (psymtab_to_symtab_1, process_full_comp_unit)
16284 (process_full_type_unit, dwarf2_ranges_read)
16285 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16286 (dwarf_decode_lines): Use dwarf2_psymtab.
16287 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16288 (add_address_entry_worker, write_one_signatured_type)
16289 (recursively_count_psymbols, recursively_write_psymbols)
16290 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16291 (write_debug_names): Likewise.
16292 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16293 <pst>: Now a legacy_psymtab.
16294 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16295 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16296 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16297 * ctfread.c (struct ctf_psymtab): New.
16298 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16299 ctf_psymtab.
16300 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16301 (create_partial_symtab): Return a ctf_psymtab.
16302 (scan_partial_symbols): Update.
16303
16304 2020-01-26 Tom Tromey <tom@tromey.com>
16305
16306 * xcoffread.c (xcoff_start_psymtab): Use new.
16307 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16308 renamed from start_psymtab_common.
16309 * psympriv.h (struct partial_symtab): Add new constructor.
16310 (start_psymtab_common): Don't declare.
16311 * mdebugread.c (parse_partial_symbols): Use new.
16312 * dwarf2read.c (create_partial_symtab): Use new.
16313 * dbxread.c (start_psymtab): Use new.
16314 * ctfread.c (create_partial_symtab): Use new.
16315
16316 2020-01-26 Tom Tromey <tom@tromey.com>
16317
16318 * xcoffread.c (xcoff_end_psymtab): Use new.
16319 * psymtab.c (start_psymtab_common): Use new.
16320 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16321 Update.
16322 * psympriv.h (struct partial_symtab): Add parameters to
16323 constructor. Don't inline.
16324 (allocate_psymtab): Don't declare.
16325 * mdebugread.c (new_psymtab): Use new.
16326 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16327 * dbxread.c (dbx_end_psymtab): Use new.
16328
16329 2020-01-26 Tom Tromey <tom@tromey.com>
16330
16331 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16332 allocate_psymtab. Update documentation.
16333 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16334 allocate_psymtab. Do not use new.
16335 (allocate_psymtab): Use new. Update.
16336
16337 2020-01-26 Tom Tromey <tom@tromey.com>
16338
16339 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16340 * psymtab.c (psym_print_stats): Update.
16341 * psympriv.h (struct partial_symtab) <readin,
16342 psymtabs_addrmap_supported, anonymous>: Now bool.
16343 * mdebugread.c (psymtab_to_symtab_1): Update.
16344 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16345 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16346 (process_full_comp_unit, process_full_type_unit): Update.
16347 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16348 * ctfread.c (psymtab_to_symtab): Update.
16349
16350 2020-01-26 Tom Tromey <tom@tromey.com>
16351
16352 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16353 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16354 * psymtab.c (psymtab_storage): Delete psymtabs.
16355 (psymtab_storage::allocate_psymtab): Use new.
16356 (psymtab_storage::discard_psymtab): Use delete.
16357 * psympriv.h (struct partial_symtab): Add constructor and
16358 initializers.
16359
16360 2020-01-26 Tom Tromey <tom@tromey.com>
16361
16362 * machoread.c: Do not include psympriv.h.
16363
16364 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16365
16366 * NEWS: Mention the new option and the set/show commands.
16367
16368 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16369
16370 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16371 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16372 (validate_exec_file): New variables, enums, functions.
16373 (exec_file_locate_attach, print_section_info): Style the filenames.
16374 (_initialize_exec): Install show_exec_file_mismatch_command and
16375 set_exec_file_mismatch_command.
16376 * gdbcore.h (validate_exec_file): Declare.
16377 * infcmd.c (attach_command): Call validate_exec_file.
16378 * remote.c ( remote_target::remote_add_inferior): Likewise.
16379
16380 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16381
16382 * frame.c (find_frame_sal): Move call to get_next_frame into more
16383 inner scope.
16384 * inline-frame.c (inilne_state) <inline_state>: Update argument
16385 types.
16386 (inilne_state) <skipped_symbol>: Rename to...
16387 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16388 (skip_inline_frames): Build vector of skipped symbols and use this
16389 to reate the inline_state.
16390 (inline_skipped_symbol): Add a comment and some assertions, fetch
16391 skipped symbol from the list.
16392
16393 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16394
16395 * buildsym.c (lte_is_less_than): Delete.
16396 (buildsym_compunit::end_symtab_with_blockvector): Create local
16397 lambda function to sort line table entries, and use
16398 std::stable_sort instead of std::sort.
16399 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16400 markers when looking for a previous line.
16401
16402 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16403
16404 * dwarf2read.c (lnp_state_machine::record_line): Include
16405 end_sequence parameter in debug print out. Record the line if we
16406 are at an end_sequence marker even if it's not the start of a
16407 statement.
16408 * symmisc.c (maintenance_print_one_line_table): Print end of
16409 sequence markers with 'END' not '0'.
16410
16411 2020-01-24 Pedro Alves <palves@redhat.com>
16412
16413 PR gdb/25410
16414 * thread.c (scoped_restore_current_thread::restore): Use
16415 switch_to_inferior_no_thread.
16416 * exec.c: Include "progspace-and-thread.h".
16417 (add_target_sections, remove_target_sections):
16418 scoped_restore_current_pspace_and_thread instead of
16419 scoped_restore_current_thread.
16420 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16421 and aspace to the inferior before calling clone_program_space.
16422 Remove stale comment.
16423
16424 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16425
16426 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16427 (arm_netbsd_nat_target::fetch_registers): ...this.
16428 (arm_nbsd_nat_target::store_registers): Rename to...
16429 (arm_netbsd_nat_target::store_registers): ...this.
16430
16431 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16432
16433 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16434 register_t.
16435
16436 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16437
16438 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16439 Update comment.
16440 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16441 Likewise.
16442 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16443 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16444 the correct replacement (iterate_over_regset_sections).
16445 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16446 Update comment.
16447
16448 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16449
16450 PR gdb/23718
16451 * gdb/python/python.c (execute_gdb_command): Call
16452 async_enable_stdin in catch block.
16453
16454 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16455
16456 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16457 SWITCH_THRU_ALL_UIS.
16458
16459 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16460
16461 PR tui/9765
16462 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16463 comment, add extra parameter, and update to store previous symbol
16464 when appropriate.
16465 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16466 add extra parameter.
16467 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16468 remove unneeded parameter, add try/catch around gdb_print_insn,
16469 rewrite to add items to asm_lines vector.
16470 (tui_find_backward_disassembly_start_address): New function.
16471 (tui_find_disassembly_address): Updated throughout.
16472 (tui_disasm_window::set_contents): Update for changes to
16473 tui_disassemble.
16474 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16475 number of lines to scroll.
16476
16477 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16478
16479 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16480 (SECT_OFF_DATA): Likewise.
16481 (SECT_OFF_RODATA): Likewise.
16482 (SECT_OFF_TEXT): Likewise.
16483 (SECT_OFF_BSS): Likewise.
16484 (struct objfile) <text_section_offset, data_section_offset>: New
16485 methods.
16486 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16487 objfile::text_section_offset.
16488 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16489 * coffread.c (coff_symtab_read): Likewise.
16490 (enter_linenos): Likewise.
16491 (process_coff_symbol): Likewise.
16492 * ctfread.c (get_objfile_text_range): Likewise.
16493 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16494 Use objfile::data_section_offset.
16495 * dwarf2-frame.c (execute_cfa_program): Use
16496 objfile::text_section_offset.
16497 (dwarf2_frame_find_fde): Likewise.
16498 * dwarf2read.c (create_addrmap_from_index): Likewise.
16499 (create_addrmap_from_aranges): Likewise.
16500 (dw2_find_pc_sect_compunit_symtab): Likewise.
16501 (process_psymtab_comp_unit_reader): Likewise.
16502 (add_partial_symbol): Likewise.
16503 (add_partial_subprogram): Likewise.
16504 (process_full_comp_unit): Likewise.
16505 (read_file_scope): Likewise.
16506 (read_func_scope): Likewise.
16507 (read_lexical_block_scope): Likewise.
16508 (read_call_site_scope): Likewise.
16509 (dwarf2_rnglists_process): Likewise.
16510 (dwarf2_ranges_process): Likewise.
16511 (dwarf2_ranges_read): Likewise.
16512 (dwarf_decode_lines_1): Likewise.
16513 (new_symbol): Likewise.
16514 (dwarf2_fetch_die_loc_sect_off): Likewise.
16515 (dwarf2_per_cu_text_offset): Likewise.
16516 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16517 * hppa-tdep.c (read_unwind_info): Likewise.
16518 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16519 * psympriv.h (struct partial_symtab): Likewise.
16520 * psymtab.c (find_pc_sect_psymtab): Likewise.
16521 * solib-svr4.c (enable_break): Likewise.
16522 * stap-probe.c (relocate_address): Use
16523 objfile::data_section_offset.
16524 * xcoffread.c (enter_line_range): Use
16525 objfile::text_section_offset.
16526 (read_xcoff_symtab): Likewise.
16527
16528 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16529
16530 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16531 declaration to narrower scopes.
16532
16533 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16534
16535 * darwin-nat.h (struct darwin_exception_msg, enum
16536 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16537 Move up.
16538 (class darwin_nat_target) <wait_1, check_new_threads,
16539 decode_exception_message, decode_message, stop_inferior,
16540 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16541 * darwin-nat.c (darwin_check_new_threads): Rename to...
16542 (darwin_nat_target::check_new_threads): ... this.
16543 (darwin_suspend_inferior_it): Remove.
16544 (darwin_decode_exception_message): Rename to...
16545 (darwin_nat_target::decode_exception_message): ... this.
16546 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16547 (darwin_decode_message): Rename to...
16548 (darwin_nat_target::decode_message): ... this.
16549 (cancel_breakpoint): Rename to...
16550 (darwin_nat_target::cancel_breakpoint): ... this.
16551 (darwin_wait): Rename to...
16552 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16553 instead of iterate_over_inferiors.
16554 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16555 (darwin_stop_inferior): Rename to...
16556 (darwin_nat_target::stop_inferior): ... this.
16557 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16558 (darwin_init_thread_list): Rename to...
16559 (darwin_nat_target::init_thread_list): ... this.
16560 (darwin_ptrace_him): Rename to...
16561 (darwin_nat_target::ptrace_him): ... this.
16562 (darwin_nat_target::create_inferior): Pass lambda function to
16563 fork_inferior.
16564 (darwin_nat_target::detach): Call stop_inferior instead of
16565 darwin_stop_inferior.
16566 * fork-inferior.h (fork_inferior): Change init_trace_fun
16567 parameter to gdb::function_view.
16568 * fork-inferior.c (fork_inferior): Likewise.
16569
16570 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16571
16572 * i386-cygwin-tdep.c (core_process_module_section): Update.
16573 * windows-nat.c (struct lm_info_windows): Add text_offset.
16574 (windows_xfer_shared_libraries): Update.
16575 * windows-tdep.c (windows_xfer_shared_library):
16576 Add text_offset_cached argument.
16577 * windows-tdep.h (windows_xfer_shared_library): Update.
16578
16579 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16580
16581 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16582
16583 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16584
16585 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16586 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16587 replace with range-based for.
16588 (gdbsim_interrupt_inferior): Remove.
16589 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16590 with a range-based for. Inline code from
16591 gdbsim_interrupt_inferior.
16592
16593 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16594
16595 * infrun.c (proceed): Fix indentation.
16596
16597 2020-01-21 Tom Tromey <tromey@adacore.com>
16598
16599 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16600 * python/python.c (python_extension_ops): Update.
16601 (gdbpy_colorize): New function.
16602 * python/lib/gdb/__init__.py (colorize): New function.
16603 * extension.h (ext_lang_colorize): Declare.
16604 * extension.c (ext_lang_colorize): New function.
16605 * extension-priv.h (struct extension_language_ops) <colorize>: New
16606 member.
16607 * cli/cli-style.c (_initialize_cli_style): Update help text.
16608
16609 2020-01-21 Luis Machado <luis.machado@linaro.org>
16610
16611 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16612 <cond>: Change type to bool.
16613 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16614 (aarch64_displaced_step_cb): Likewise.
16615 (aarch64_displaced_step_tb): Likewise.
16616
16617 2020-01-21 Luis Machado <luis.machado@linaro.org>
16618
16619 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16620 output.
16621
16622 2020-01-21 Luis Machado <luis.machado@linaro.org>
16623
16624 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16625 <pc_adjust>: Adjust the documentation.
16626 (aarch64_displaced_step_fixup): Check if PC really moved before
16627 adjusting it.
16628
16629 2020-01-19 Tom Tromey <tom@tromey.com>
16630
16631 * disasm.c (~gdb_disassembler): New destructor.
16632 (gdb_buffered_insn_length): Call disassemble_free_target.
16633 * disasm.h (class gdb_disassembler): Declare destructor. Use
16634 DISABLE_COPY_AND_ASSIGN.
16635
16636 2020-01-19 Tom Tromey <tom@tromey.com>
16637
16638 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16639 (die_reader_func_ftype): Remove.
16640 (cutu_reader): New class.
16641 (dw2_get_file_names_reader): Remove "data" parameter.
16642 (dw2_get_file_names): Use cutu_reader.
16643 (create_debug_type_hash_table): Update.
16644 (read_cutu_die_from_dwo): Update comment.
16645 (lookup_dwo_unit): Add dwo_name parameter.
16646 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16647 die_reader_func_ftype and data parameters.
16648 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16649 Remove die_reader_func_ftype and data parameters.
16650 (~cutu_reader): New; from init_cutu_and_read_dies.
16651 (cutu_reader::cutu_reader): Rename from
16652 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16653 and data parameters.
16654 (init_cutu_and_read_dies_simple): Remove.
16655 (struct process_psymtab_comp_unit_data): Remove.
16656 (process_psymtab_comp_unit_reader): Remove data parameter; add
16657 want_partial_unit and pretend_language parameters.
16658 (process_psymtab_comp_unit): Use cutu_reader.
16659 (build_type_psymtabs_reader): Remove data parameter.
16660 (build_type_psymtabs_1): Use cutu_reader.
16661 (process_skeletonless_type_unit): Likewise.
16662 (load_partial_comp_unit_reader): Remove.
16663 (load_partial_comp_unit): Use cutu_reader.
16664 (load_full_comp_unit_reader): Remove.
16665 (load_full_comp_unit): Use cutu_reader.
16666 (struct create_dwo_cu_data): Remove.
16667 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16668 dwo_unit parameters.
16669 (create_cus_hash_table): Use cutu_reader.
16670 (struct dwarf2_read_addr_index_data): Remove.
16671 (dwarf2_read_addr_index_reader): Remove.
16672 (dwarf2_read_addr_index): Use cutu_reader.
16673 (read_signatured_type_reader): Remove.
16674 (read_signatured_type): Use cutu_reader.
16675
16676 2020-01-19 Tom Tromey <tom@tromey.com>
16677
16678 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16679 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16680 (tui_wrefresh): Declare.
16681 * tui/tui-wingeneral.c (suppress_output): New global.
16682 (tui_suppress_output, ~tui_suppress_output): New constructor and
16683 destructor.
16684 (tui_wrefresh): New function.
16685 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16686 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16687 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16688 method.
16689 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16690 tui_wrefresh.
16691 (tui_data_window::no_refresh): New method.
16692 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16693 (tui_reg_command): Use tui_suppress_output
16694 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16695 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16696 method.
16697 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16698
16699 2020-01-19 Tom Tromey <tom@tromey.com>
16700
16701 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16702 Handle case where symtab is null.
16703
16704 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16705
16706 * linux-fork.c (one_fork_p): Simplify.
16707
16708 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16709
16710 * top.c (struct qt_args): Remove.
16711 (kill_or_detach): Change return type to void, replace `void *`
16712 parameter with a proper one.
16713 (print_inferior_quit_action): Likewise.
16714 (quit_confirm): Use range-based for loop to iterate over inferiors.
16715 (quit_force): Likewise.
16716
16717 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16718
16719 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16720 `void *` parameter with proper parameters.
16721 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16722 (print_one_inferior): Change return type to void, replace `void *`
16723 parameter with proper parameters.
16724 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16725 inferiors.
16726 (get_other_inferior): Remove.
16727 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16728 inferiors.
16729
16730 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16731
16732 * mi/mi-interp.c (report_initial_inferior): Remove.
16733 (mi_interp::init): Use range-based for to iterate over inferiors.
16734
16735 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16736
16737 * python/py-inferior.c (build_inferior_list): Remove.
16738 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16739
16740 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16741
16742 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16743 (btrace_stitch_trace): Likewise.
16744 * charset.c (intermediate_encoding): Likewise (vaild).
16745 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16746 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16747 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16748
16749 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16750
16751 * windows-tdep.c (windows_get_tlb_type):
16752 Add rtl_user_process_parameters type.
16753
16754 2020-01-16 Pedro Alves <palves@redhat.com>
16755 Norbert Lange <nolange79@gmail.com>
16756
16757 PR build/24805
16758 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16759 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16760 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16761 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16762 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16763 (ps_plog): Redeclare exported functions with default visibility.
16764
16765 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16766
16767 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16768 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16769
16770 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16771
16772 * infcmd.c (post_create_inferior): Use get_thread_regcache
16773 instead of get_current_regcache.
16774
16775 2020-01-14 Tom Tromey <tom@tromey.com>
16776
16777 PR symtab/12535:
16778 * python/python.c (gdbpy_decode_line): Treat empty string the same
16779 as no argument.
16780
16781 2020-01-14 Tom Tromey <tom@tromey.com>
16782
16783 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16784
16785 2020-01-14 Tom Tromey <tom@tromey.com>
16786
16787 * nat/linux-btrace.c: Don't include <config.h>.
16788 * nat/linux-ptrace.c: Don't include <config.h>.
16789 * nat/x86-linux-dregs.c: Don't include <config.h>.
16790
16791 2020-01-14 Tom Tromey <tom@tromey.com>
16792
16793 * configure: Rebuild.
16794 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16795
16796 2020-01-14 Tom Tromey <tom@tromey.com>
16797
16798 * nat/x86-linux-dregs.c: Include configh.h.
16799 * nat/linux-ptrace.c: Include configh.h.
16800 * nat/linux-btrace.c: Include configh.h.
16801 * defs.h: Include config.h, bfd.h.
16802 * configure.ac: Don't source common.host.
16803 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16804 * configure: Rebuild.
16805 * acinclude.m4: Update path.
16806 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16807 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16808 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16809 (CLIBS): Add LIBSUPPORT.
16810 (CDEPS): Likewise.
16811 (COMMON_SFILES): Remove gdbsupport files.
16812 (HFILES_NO_SRCDIR): Likewise.
16813 (stamp-version): Update path to create-version.sh.
16814 (ALLDEPFILES): Remove gdbsupport files.
16815
16816 2020-01-14 Tom Tromey <tom@tromey.com>
16817
16818 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16819 USE_WIN32API when needed.
16820 * configure.ac (USE_WIN32API): Don't define.
16821 (WIN32LIBS): Use WIN32APILIBS.
16822 * configure: Rebuild.
16823
16824 2020-01-14 Tom Tromey <tom@tromey.com>
16825
16826 * configure: Rebuild.
16827 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16828
16829 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16830
16831 * skip.c (skip_function_command): Make skip w/o arguments use the
16832 name of the inlined function if pc is inside any inlined function.
16833
16834 2020-01-14 Luis Machado <luis.machado@linaro.org>
16835
16836 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16837 * infrun.c (resume_1): Likewise.
16838 (handle_inferior_event): Remove stale comment.
16839 * linux-nat.c (linux_nat_target::resume): Update comments.
16840 (save_stop_reason): Likewise.
16841 (linux_nat_filter_event): Likewise.
16842 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16843
16844 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16845
16846 * elfread.c (record_minimal_symbol): Set section index to 0 for
16847 non-allocatable sections.
16848
16849
16850 2020-01-13 Ali Tamur <tamur@google.com>
16851
16852 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16853 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16854 to gdb::optional. Update comments.
16855 (dwo_file): Update comments.
16856 (read_attribute): Update API to take an additional out parameter,
16857 need_reprocess. This is used to mark attributes that need other
16858 attributes (e.g. str_offsets_base) for correct computation which may not
16859 have been read yet.
16860 (read_attribute_reprocess): New function declaration.
16861 (read_addr_index): Likewise.
16862 (read_dwo_str_index): Likewise.
16863 (read_stub_str_index): Likewise.
16864 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16865 (lookup_addr_base): New function definition.
16866 (lookup_ranges_base): Likewise.
16867 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16868 lookup_ranges_base.
16869 (init_cutu_and_read_dies): Update comments.
16870 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16871 unit. This is used to inherit parent's str_offsets_base and addr_base.
16872 Update comments.
16873 (init_cutu_and_read_dies_simple): Reflect API changes.
16874 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16875 (create_cus_hash_table): Change API to take parent compile unit.
16876 Reflect API changes.
16877 (open_and_init_dwo_file): Reflect API changes.
16878 (dwarf2_get_pc_bounds): Update comments.
16879 (dwarf2_record_block_ranges): Likewise.
16880 (read_full_die_1): Change implementation to reprocess attributes that
16881 need str_offsets_base and addr_base.
16882 (partial_die_info::read): Likewise.
16883 (read_attribute_reprocess): New function definition.
16884 (read_attribute_value): Change API to take an additional out parameter,
16885 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16886 when a non-dwo compile unit has index based attributes.
16887 (read_attribute): Reflect API changes.
16888 (read_addr_index_1): Reflect API changes. Update comments.
16889 (dwarf2_read_addr_index_data): Reflect API changes.
16890 (dwarf2_read_addr_index): Likewise.
16891 (read_str_index): Change API and implementation. This becomes a helper
16892 to be used by the new string index related methods. Update error
16893 message and comments.
16894 (read_dwo_str_index): New function definition.
16895 (read_stub_str_index): Likewise.
16896 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16897 * symfile.h (dwarf2_debug_sections): Likewise.
16898 * xcoffread.c (dwarf2_debug_sections): Likewise.
16899
16900 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16901
16902 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16903 core_reg_sect type to gdb_byte *.
16904 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16905 * cris-tdep.c (fetch_core_registers): Likewise.
16906 * corelow.c (core_target::get_core_register_section): Change
16907 type of `contents` to gdb::byte_vector.
16908
16909 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16910
16911 * tui/tui-wingeneral.c (box_win): Position the title in the center
16912 of the border.
16913
16914 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16915
16916 * corelow.c (core_target::get_core_register_section): Use
16917 std::vector instead of alloca.
16918
16919 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16920
16921 * warning.m4: Add -Wmissing-declarations to build_warnings.
16922 * configure: Re-generate.
16923
16924 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16925
16926 * python/python.c (init__gdb_module): Add declaration.
16927
16928 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16929
16930 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16931 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16932 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16933 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16934 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16935 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16936 * ada-exp.y (_initialize_ada_exp): Add declaration.
16937 * ada-lang.c (_initialize_ada_language): Add declaration.
16938 * ada-tasks.c (_initialize_tasks): Add declaration.
16939 * agent.c (_initialize_agent): Add declaration.
16940 * aix-thread.c (_initialize_aix_thread): Add declaration.
16941 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16942 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16943 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16944 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16945 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16946 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16947 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16948 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16949 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16950 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16951 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16952 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16953 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16954 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16955 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16956 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16957 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16958 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16959 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16960 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16961 * annotate.c (_initialize_annotate): Add declaration.
16962 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16963 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16964 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16965 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16966 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16967 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16968 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16969 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16970 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16971 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16972 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16973 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16974 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16975 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16976 * auto-load.c (_initialize_auto_load): Add declaration.
16977 * auxv.c (_initialize_auxv): Add declaration.
16978 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16979 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16980 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16981 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16982 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16983 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16984 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16985 * breakpoint.c (_initialize_breakpoint): Add declaration.
16986 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16987 * btrace.c (_initialize_btrace): Add declaration.
16988 * charset.c (_initialize_charset): Add declaration.
16989 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16990 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16991 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16992 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16993 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16994 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16995 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16996 * coffread.c (_initialize_coffread): Add declaration.
16997 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16998 * compile/compile.c (_initialize_compile): Add declaration.
16999 * complaints.c (_initialize_complaints): Add declaration.
17000 * completer.c (_initialize_completer): Add declaration.
17001 * copying.c (_initialize_copying): Add declaration.
17002 * corefile.c (_initialize_core): Add declaration.
17003 * corelow.c (_initialize_corelow): Add declaration.
17004 * cp-abi.c (_initialize_cp_abi): Add declaration.
17005 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17006 * cp-support.c (_initialize_cp_support): Add declaration.
17007 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17008 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17009 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17010 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17011 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17012 * ctfread.c (_initialize_ctfread): Add declaration.
17013 * d-lang.c (_initialize_d_language): Add declaration.
17014 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17015 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17016 * dbxread.c (_initialize_dbxread): Add declaration.
17017 * dcache.c (_initialize_dcache): Add declaration.
17018 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17019 * disasm.c (_initialize_disasm): Add declaration.
17020 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17021 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17022 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17023 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17024 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17025 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17026 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17027 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17028 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17029 * elfread.c (_initialize_elfread): Add declaration.
17030 * exec.c (_initialize_exec): Add declaration.
17031 * extension.c (_initialize_extension): Add declaration.
17032 * f-lang.c (_initialize_f_language): Add declaration.
17033 * f-valprint.c (_initialize_f_valprint): Add declaration.
17034 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17035 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17036 * filesystem.c (_initialize_filesystem): Add declaration.
17037 * findcmd.c (_initialize_mem_search): Add declaration.
17038 * findvar.c (_initialize_findvar): Add declaration.
17039 * fork-child.c (_initialize_fork_child): Add declaration.
17040 * frame-base.c (_initialize_frame_base): Add declaration.
17041 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17042 * frame.c (_initialize_frame): Add declaration.
17043 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17044 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17045 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17046 * gcore.c (_initialize_gcore): Add declaration.
17047 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17048 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17049 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17050 * gdbarch.c (_initialize_gdbarch): Add declaration.
17051 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17052 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17053 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17054 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17055 * go-lang.c (_initialize_go_language): Add declaration.
17056 * go32-nat.c (_initialize_go32_nat): Add declaration.
17057 * guile/guile.c (_initialize_guile): Add declaration.
17058 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17059 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17060 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17061 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17062 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17063 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17064 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17065 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17066 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17067 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17068 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17069 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17070 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17071 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17072 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17073 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17074 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17075 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17076 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17077 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17078 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17079 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17080 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17081 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17082 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17083 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17084 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17085 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17086 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17087 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17088 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17089 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17090 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17091 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17092 * infcall.c (_initialize_infcall): Add declaration.
17093 * infcmd.c (_initialize_infcmd): Add declaration.
17094 * inflow.c (_initialize_inflow): Add declaration.
17095 * infrun.c (_initialize_infrun): Add declaration.
17096 * interps.c (_initialize_interpreter): Add declaration.
17097 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17098 * jit.c (_initialize_jit): Add declaration.
17099 * language.c (_initialize_language): Add declaration.
17100 * linux-fork.c (_initialize_linux_fork): Add declaration.
17101 * linux-nat.c (_initialize_linux_nat): Add declaration.
17102 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17103 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17104 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17105 * m2-lang.c (_initialize_m2_language): Add declaration.
17106 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17107 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17108 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17109 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17110 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17111 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17112 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17113 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17114 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17115 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17116 * machoread.c (_initialize_machoread): Add declaration.
17117 * macrocmd.c (_initialize_macrocmd): Add declaration.
17118 * macroscope.c (_initialize_macroscope): Add declaration.
17119 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17120 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17121 * maint.c (_initialize_maint_cmds): Add declaration.
17122 * mdebugread.c (_initialize_mdebugread): Add declaration.
17123 * memattr.c (_initialize_mem): Add declaration.
17124 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17125 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17126 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17127 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17128 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17129 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17130 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17131 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17132 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17133 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17134 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17135 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17136 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17137 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17138 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17139 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17140 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17141 * mipsread.c (_initialize_mipsread): Add declaration.
17142 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17143 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17144 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17145 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17146 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17147 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17148 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17149 * nto-procfs.c (_initialize_procfs): Add declaration.
17150 * objc-lang.c (_initialize_objc_language): Add declaration.
17151 * observable.c (_initialize_observer): Add declaration.
17152 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17153 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17154 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17155 * osabi.c (_initialize_gdb_osabi): Add declaration.
17156 * osdata.c (_initialize_osdata): Add declaration.
17157 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17158 * parse.c (_initialize_parse): Add declaration.
17159 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17160 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17161 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17162 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17163 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17164 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17165 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17166 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17167 * printcmd.c (_initialize_printcmd): Add declaration.
17168 * probe.c (_initialize_probe): Add declaration.
17169 * proc-api.c (_initialize_proc_api): Add declaration.
17170 * proc-events.c (_initialize_proc_events): Add declaration.
17171 * proc-service.c (_initialize_proc_service): Add declaration.
17172 * procfs.c (_initialize_procfs): Add declaration.
17173 * producer.c (_initialize_producer): Add declaration.
17174 * psymtab.c (_initialize_psymtab): Add declaration.
17175 * python/python.c (_initialize_python): Add declaration.
17176 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17177 * record-btrace.c (_initialize_record_btrace): Add declaration.
17178 * record-full.c (_initialize_record_full): Add declaration.
17179 * record.c (_initialize_record): Add declaration.
17180 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17181 * regcache.c (_initialize_regcache): Add declaration.
17182 * reggroups.c (_initialize_reggroup): Add declaration.
17183 * remote-notif.c (_initialize_notif): Add declaration.
17184 * remote-sim.c (_initialize_remote_sim): Add declaration.
17185 * remote.c (_initialize_remote): Add declaration.
17186 * reverse.c (_initialize_reverse): Add declaration.
17187 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17188 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17189 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17190 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17191 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17192 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17193 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17194 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17195 Add declaration.
17196 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17197 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17198 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17199 * rust-exp.y (_initialize_rust_exp): Add declaration.
17200 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17201 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17202 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17203 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17204 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17205 * score-tdep.c (_initialize_score_tdep): Add declaration.
17206 * ser-go32.c (_initialize_ser_dos): Add declaration.
17207 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17208 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17209 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17210 * ser-uds.c (_initialize_ser_socket): Add declaration.
17211 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17212 * serial.c (_initialize_serial): Add declaration.
17213 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17214 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17215 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17216 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17217 * skip.c (_initialize_step_skip): Add declaration.
17218 * sol-thread.c (_initialize_sol_thread): Add declaration.
17219 * solib-aix.c (_initialize_solib_aix): Add declaration.
17220 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17221 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17222 * solib-frv.c (_initialize_frv_solib): Add declaration.
17223 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17224 * solib-target.c (_initialize_solib_target): Add declaration.
17225 * solib.c (_initialize_solib): Add declaration.
17226 * source-cache.c (_initialize_source_cache): Add declaration.
17227 * source.c (_initialize_source): Add declaration.
17228 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17229 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17230 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17231 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17232 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17233 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17234 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17235 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17236 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17237 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17238 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17239 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17240 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17241 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17242 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17243 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17244 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17245 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17246 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17247 * stabsread.c (_initialize_stabsread): Add declaration.
17248 * stack.c (_initialize_stack): Add declaration.
17249 * stap-probe.c (_initialize_stap_probe): Add declaration.
17250 * std-regs.c (_initialize_frame_reg): Add declaration.
17251 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17252 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17253 * symfile.c (_initialize_symfile): Add declaration.
17254 * symmisc.c (_initialize_symmisc): Add declaration.
17255 * symtab.c (_initialize_symtab): Add declaration.
17256 * target.c (_initialize_target): Add declaration.
17257 * target-connection.c (_initialize_target_connection): Add
17258 declaration.
17259 * target-dcache.c (_initialize_target_dcache): Add declaration.
17260 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17261 * thread.c (_initialize_thread): Add declaration.
17262 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17263 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17264 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17265 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17266 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17267 * tracectf.c (_initialize_ctf): Add declaration.
17268 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17269 * tracefile.c (_initialize_tracefile): Add declaration.
17270 * tracepoint.c (_initialize_tracepoint): Add declaration.
17271 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17272 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17273 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17274 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17275 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17276 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17277 * tui/tui.c (_initialize_tui): Add declaration.
17278 * typeprint.c (_initialize_typeprint): Add declaration.
17279 * ui-style.c (_initialize_ui_style): Add declaration.
17280 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17281 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17282 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17283 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17284 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17285 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17286 * unittests/filtered_iterator-selftests.c
17287 (_initialize_filtered_iterator_selftests): Add declaration.
17288 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17289 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17290 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17291 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17292 * unittests/main-thread-selftests.c
17293 (_initialize_main_thread_selftests): Add declaration.
17294 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17295 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17296 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17297 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17298 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17299 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17300 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17301 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17302 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17303 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17304 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17305 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17306 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17307 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17308 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17309 declaration.
17310 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17311 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17312 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17313 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17314 * user-regs.c (_initialize_user_regs): Add declaration.
17315 * utils.c (_initialize_utils): Add declaration.
17316 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17317 * valops.c (_initialize_valops): Add declaration.
17318 * valprint.c (_initialize_valprint): Add declaration.
17319 * value.c (_initialize_values): Add declaration.
17320 * varobj.c (_initialize_varobj): Add declaration.
17321 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17322 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17323 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17324 * windows-nat.c (_initialize_windows_nat): Add declaration.
17325 (_initialize_check_for_gdb_ini): Add declaration.
17326 (_initialize_loadable): Add declaration.
17327 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17328 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17329 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17330 * xcoffread.c (_initialize_xcoffread): Add declaration.
17331 * xml-support.c (_initialize_xml_support): Add declaration.
17332 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17333 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17334 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17335 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17336
17337 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17338
17339 * regformats/regdat.sh: Generate declaration for init function.
17340
17341 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17342
17343 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17344 up.
17345 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17346 close_one_inferior>: New methods.
17347 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17348 pass down target to find_inferior_pid.
17349 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17350 Pass down target to find_inferior_ptid.
17351 (gdbsim_target::create_inferior): Pass down target to
17352 add_thread_silent.
17353 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17354 target down to find_inferior_ptid and switch_to_thread.
17355 (gdbsim_target::close): Update to call close_one_inferior.
17356 (struct resume_data): Remove.
17357 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17358 directly, rather than through a void pointer.
17359 (gdbsim_target::resume): Update to call resume_one_inferior.
17360
17361 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17362
17363 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17364
17365 2020-01-12 Pedro Alves <palves@redhat.com>
17366
17367 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17368 directly for the current inferior instead of
17369 discard_all_inferiors.
17370 (discard_all_inferiors): Delete.
17371
17372 2020-01-11 Tom Tromey <tom@tromey.com>
17373
17374 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17375 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17376 deprecated_safe_get_selected_frame.
17377
17378 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17379
17380 * inferior.c (print_inferior): Switch inferior before printing it.
17381
17382 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17383 Pedro Alves <palves@redhat.com>
17384
17385 * progspace-and-thread.c (switch_to_program_space_and_thread):
17386 Assert there's an inferior for PSPACE. Use
17387 switch_to_inferior_no_thread to switch the inferior too.
17388 * progspace.c (program_space::~program_space): Call
17389 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17390 (program_space::free_all_objfiles): Don't call clear_symtab_users
17391 here.
17392 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17393
17394 2020-01-10 Pedro Alves <palves@redhat.com>
17395
17396 * NEWS: Mention multi-target debugging, "info connections", and
17397 "add-inferior -no-connection".
17398
17399 2020-01-10 Pedro Alves <palves@redhat.com>
17400
17401 * infrun.c: Include "target-connection.h".
17402 (check_multi_target_resumption): New.
17403 (proceed): Call it.
17404 * target-connection.c (make_target_connection_string): Make
17405 extern.
17406 * target-connection.h (make_target_connection_string): Declare.
17407
17408 2020-01-10 Pedro Alves <palves@redhat.com>
17409
17410 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17411 * inferior.c (uiout_field_connection): New function.
17412 (print_inferior): Add new "connection-id" column.
17413 (add_inferior_command): Show connection number/string of added
17414 inferior.
17415 * process-stratum-target.h
17416 (process_stratum_target::connection_string): New virtual method.
17417 (process_stratum_target::connection_number): New field.
17418 * remote.c (remote_target::connection_string): New override.
17419 * target-connection.c: New file.
17420 * target-connection.h: New file.
17421 * target.c (decref_target): Remove process_stratum targets from
17422 the connection list.
17423 (target_stack::push): Add process_stratum targets to the
17424 connection list.
17425
17426 2020-01-10 Pedro Alves <palves@redhat.com>
17427
17428 Revert:
17429 2016-04-12 Pedro Alves <palves@redhat.com>
17430 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17431 Remove references to name.
17432 * serial.h (struct serial) <name>: Delete.
17433
17434 2020-01-10 Pedro Alves <palves@redhat.com>
17435
17436 * gdbarch-selftests.c (register_to_value_test): Remove "target
17437 already pushed" check.
17438
17439 2020-01-10 Pedro Alves <palves@redhat.com>
17440 John Baldwin <jhb@FreeBSD.org>
17441
17442 * aarch64-linux-nat.c
17443 (aarch64_linux_nat_target::thread_architecture): Adjust.
17444 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17445 (task_command_1): Likewise.
17446 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17447 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17448 (aix_thread_target::store_registers)
17449 (aix_thread_target::thread_alive): Adjust.
17450 * amd64-fbsd-tdep.c: Include "inferior.h".
17451 (amd64fbsd_get_thread_local_address): Pass down target.
17452 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17453 thread's gdbarch instead of target_gdbarch.
17454 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17455 get_last_target_status.
17456 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17457 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17458 inferiors.
17459 (update_inserted_breakpoint_locations): Skip if inferiors with no
17460 execution.
17461 (update_global_location_list): When handling moribund locations,
17462 find representative inferior for location's pspace, and use thread
17463 count of its process_stratum target.
17464 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17465 * bsd-uthread.c (bsd_uthread_target::wait): Use
17466 as_process_stratum_target and adjust thread_change_ptid and
17467 add_thread calls.
17468 (bsd_uthread_target::update_thread_list): Use
17469 as_process_stratum_target and adjust find_thread_ptid,
17470 thread_change_ptid and add_thread calls.
17471 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17472 find_thread_ptid call.
17473 * corelow.c (add_to_thread_list): Adjust add_thread call.
17474 (core_target_open): Adjust add_thread_silent and thread_count
17475 calls.
17476 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17477 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17478 * event-top.c (async_disconnect): Pop targets from all inferiors.
17479 * exec.c (add_target_sections): Push exec target on all inferiors
17480 sharing the program space.
17481 (remove_target_sections): Remove the exec target from all
17482 inferiors sharing the program space.
17483 (exec_on_vfork): New.
17484 * exec.h (exec_on_vfork): Declare.
17485 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17486 Pass it down.
17487 (fbsd_nat_target::update_thread_list): Adjust.
17488 (fbsd_nat_target::resume): Adjust.
17489 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17490 down.
17491 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17492 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17493 get_thread_arch_regcache call.
17494 * fork-child.c (gdb_startup_inferior): Pass target down to
17495 startup_inferior and set_executing.
17496 * gdbthread.h (struct process_stratum_target): Forward declare.
17497 (add_thread, add_thread_silent, add_thread_with_info)
17498 (in_thread_list): Add process_stratum_target parameter.
17499 (find_thread_ptid(inferior*, ptid_t)): New overload.
17500 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17501 parameter.
17502 (all_threads()): Delete overload.
17503 (all_threads, all_non_exited_threads): Add process_stratum_target
17504 parameter.
17505 (all_threads_safe): Use brace initialization.
17506 (thread_count): Add process_stratum_target parameter.
17507 (set_resumed, set_running, set_stop_requested, set_executing)
17508 (threads_are_executing, finish_thread_state): Add
17509 process_stratum_target parameter.
17510 (switch_to_thread): Use is_current_thread.
17511 * i386-fbsd-tdep.c: Include "inferior.h".
17512 (i386fbsd_get_thread_local_address): Pass down target.
17513 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17514 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17515 have_inferiors check.
17516 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17517 (inf_ptrace_target::attach): Adjust.
17518 * infcall.c (run_inferior_call): Adjust.
17519 * infcmd.c (run_command_1): Pass target to
17520 scoped_finish_thread_state.
17521 (proceed_thread_callback): Skip inferiors with no execution.
17522 (continue_command): Rename 'all_threads' local to avoid hiding
17523 'all_threads' function. Adjust get_last_target_status call.
17524 (prepare_one_step): Adjust set_running call.
17525 (signal_command): Use user_visible_resume_target. Compare thread
17526 pointers instead of inferior_ptid.
17527 (info_program_command): Adjust to pass down target.
17528 (attach_command): Mark target's 'thread_executing' flag.
17529 (stop_current_target_threads_ns): New, factored out from ...
17530 (interrupt_target_1): ... this. Switch inferior before making
17531 target calls.
17532 * inferior-iter.h
17533 (struct all_inferiors_iterator, struct all_inferiors_range)
17534 (struct all_inferiors_safe_range)
17535 (struct all_non_exited_inferiors_range): Filter on
17536 process_stratum_target too. Remove explicit.
17537 * inferior.c (inferior::inferior): Push dummy target on target
17538 stack.
17539 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17540 Add process_stratum_target parameter, and pass it down.
17541 (have_live_inferiors): Adjust.
17542 (switch_to_inferior_and_push_target): New.
17543 (add_inferior_command, clone_inferior_command): Handle
17544 "-no-connection" parameter. Use
17545 switch_to_inferior_and_push_target.
17546 (_initialize_inferior): Mention "-no-connection" option in
17547 the help of "add-inferior" and "clone-inferior" commands.
17548 * inferior.h: Include "process-stratum-target.h".
17549 (interrupt_target_1): Use bool.
17550 (struct inferior) <push_target, unpush_target, target_is_pushed,
17551 find_target_beneath, top_target, process_target, target_at,
17552 m_stack>: New.
17553 (discard_all_inferiors): Delete.
17554 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17555 (all_inferiors, all_non_exited_inferiors): Add
17556 process_stratum_target parameter.
17557 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17558 (target_last_proc_target): New global.
17559 (follow_fork_inferior): Push target on new inferior. Pass target
17560 to add_thread_silent. Call exec_on_vfork. Handle target's
17561 reference count.
17562 (follow_fork): Adjust get_last_target_status call. Also consider
17563 target.
17564 (follow_exec): Push target on new inferior.
17565 (struct execution_control_state) <target>: New field.
17566 (user_visible_resume_target): New.
17567 (do_target_resume): Call target_async.
17568 (resume_1): Set target's threads_executing flag. Consider resume
17569 target.
17570 (commit_resume_all_targets): New.
17571 (proceed): Also consider resume target. Skip threads of inferiors
17572 with no execution. Commit resumtion in all targets.
17573 (start_remote): Pass current inferior to wait_for_inferior.
17574 (infrun_thread_stop_requested): Consider target as well. Pass
17575 thread_info pointer to clear_inline_frame_state instead of ptid.
17576 (infrun_thread_thread_exit): Consider target as well.
17577 (random_pending_event_thread): New inferior parameter. Use it.
17578 (do_target_wait): Rename to ...
17579 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17580 down.
17581 (threads_are_resumed_pending_p, do_target_wait): New.
17582 (prepare_for_detach): Adjust calls.
17583 (wait_for_inferior): New inferior parameter. Handle it. Use
17584 do_target_wait_1 instead of do_target_wait.
17585 (fetch_inferior_event): Adjust. Switch to representative
17586 inferior. Pass target down.
17587 (set_last_target_status): Add process_stratum_target parameter.
17588 Save target in global.
17589 (get_last_target_status): Add process_stratum_target parameter and
17590 handle it.
17591 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17592 (context_switch): Check inferior_ptid == null_ptid before calling
17593 inferior_thread().
17594 (get_inferior_stop_soon): Pass down target.
17595 (wait_one): Rename to ...
17596 (poll_one_curr_target): ... this.
17597 (struct wait_one_event): New.
17598 (wait_one): New.
17599 (stop_all_threads): Adjust.
17600 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17601 event's target.
17602 (switch_back_to_stepped_thread): Also consider target.
17603 (print_stop_event): Update.
17604 (normal_stop): Update. Also consider the resume target.
17605 * infrun.h (wait_for_inferior): Remove declaration.
17606 (user_visible_resume_target): New declaration.
17607 (get_last_target_status, set_last_target_status): New
17608 process_stratum_target parameter.
17609 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17610 process_stratum_target parameter, and use it.
17611 (clear_inline_frame_state (thread_info*)): New.
17612 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17613 process_stratum_target parameter.
17614 (clear_inline_frame_state (thread_info*)): Declare.
17615 * linux-fork.c (delete_checkpoint_command): Pass target down to
17616 find_thread_ptid.
17617 (checkpoint_command): Adjust.
17618 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17619 instead of just tweaking inferior_ptid.
17620 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17621 (exit_lwp): Pass target down to find_thread_ptid.
17622 (attach_proc_task_lwp_callback): Pass target down to
17623 add_thread/set_running/set_executing.
17624 (linux_nat_target::attach): Pass target down to
17625 thread_change_ptid.
17626 (get_detach_signal): Pass target down to find_thread_ptid.
17627 Consider last target status's target.
17628 (linux_resume_one_lwp_throw, resume_lwp)
17629 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17630 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17631 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17632 (linux_nat_target::async_wait_fd): New.
17633 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17634 target down.
17635 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17636 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17637 * linux-thread-db.c (struct thread_db_info::process_target): New
17638 field.
17639 (add_thread_db_info): Save target.
17640 (get_thread_db_info): New process_stratum_target parameter. Also
17641 match target.
17642 (delete_thread_db_info): New process_stratum_target parameter.
17643 Also match target.
17644 (thread_from_lwp): Adjust to pass down target.
17645 (thread_db_notice_clone): Pass down target.
17646 (check_thread_db_callback): Pass down target.
17647 (try_thread_db_load_1): Always push the thread_db target.
17648 (try_thread_db_load, record_thread): Pass target down.
17649 (thread_db_target::detach): Pass target down. Always unpush the
17650 thread_db target.
17651 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17652 target down. Always unpush the thread_db target.
17653 (find_new_threads_callback, thread_db_find_new_threads_2)
17654 (thread_db_target::update_thread_list): Pass target down.
17655 (thread_db_target::pid_to_str): Pass current inferior down.
17656 (thread_db_target::get_thread_local_address): Pass target down.
17657 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17658 target down.
17659 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17660 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17661 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17662 (procfs_init_inferior): Rename to ...
17663 (procfs_target::procfs_init_inferior): ... this and adjust.
17664 (procfs_target::create_inferior, procfs_notice_thread)
17665 (procfs_do_thread_registers): Adjust.
17666 * ppc-fbsd-tdep.c: Include "inferior.h".
17667 (ppcfbsd_get_thread_local_address): Pass down target.
17668 * proc-service.c (ps_xfer_memory): Switch current inferior and
17669 program space as well.
17670 (get_ps_regcache): Pass target down.
17671 * process-stratum-target.c
17672 (process_stratum_target::thread_address_space)
17673 (process_stratum_target::thread_architecture): Pass target down.
17674 * process-stratum-target.h
17675 (process_stratum_target::threads_executing): New field.
17676 (as_process_stratum_target): New.
17677 * ravenscar-thread.c
17678 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17679 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17680 down.
17681 * record-btrace.c (record_btrace_target::info_record): Adjust.
17682 (record_btrace_target::record_method)
17683 (record_btrace_target::record_is_replaying)
17684 (record_btrace_target::fetch_registers)
17685 (get_thread_current_frame_id, record_btrace_target::resume)
17686 (record_btrace_target::wait, record_btrace_target::stop): Pass
17687 target down.
17688 * record-full.c (record_full_wait_1): Switch to event thread.
17689 Pass target down.
17690 * regcache.c (regcache::regcache)
17691 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17692 process_stratum_target parameter and handle it.
17693 (current_thread_target): New global.
17694 (get_thread_regcache): Add process_stratum_target parameter and
17695 handle it. Switch inferior before calling target method.
17696 (get_thread_regcache): Pass target down.
17697 (get_thread_regcache_for_ptid): Pass target down.
17698 (registers_changed_ptid): Add process_stratum_target parameter and
17699 handle it.
17700 (registers_changed_thread, registers_changed): Pass target down.
17701 (test_get_thread_arch_aspace_regcache): New.
17702 (current_regcache_test): Define a couple local test_target_ops
17703 instances and use them for testing.
17704 (readwrite_regcache): Pass process_stratum_target parameter.
17705 (cooked_read_test, cooked_write_test): Pass mock_target down.
17706 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17707 (get_thread_arch_aspace_regcache): Add process_stratum_target
17708 parameter.
17709 (regcache::target): New method.
17710 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17711 (regcache::registers_changed_ptid): Add process_stratum_target
17712 parameter.
17713 (regcache::m_target): New field.
17714 (registers_changed_ptid): Add process_stratum_target parameter.
17715 * remote.c (remote_state::supports_vCont_probed): New field.
17716 (remote_target::async_wait_fd): New method.
17717 (remote_unpush_and_throw): Add remote_target parameter.
17718 (get_current_remote_target): Adjust.
17719 (remote_target::remote_add_inferior): Push target.
17720 (remote_target::remote_add_thread)
17721 (remote_target::remote_notice_new_inferior)
17722 (get_remote_thread_info): Pass target down.
17723 (remote_target::update_thread_list): Skip threads of inferiors
17724 bound to other targets. (remote_target::close): Don't discard
17725 inferiors. (remote_target::add_current_inferior_and_thread)
17726 (remote_target::process_initial_stop_replies)
17727 (remote_target::start_remote)
17728 (remote_target::remote_serial_quit_handler): Pass down target.
17729 (remote_target::remote_unpush_target): New remote_target
17730 parameter. Unpush the target from all inferiors.
17731 (remote_target::remote_unpush_and_throw): New remote_target
17732 parameter. Pass it down.
17733 (remote_target::open_1): Check whether the current inferior has
17734 execution instead of checking whether any inferior is live. Pass
17735 target down.
17736 (remote_target::remote_detach_1): Pass down target. Use
17737 remote_unpush_target.
17738 (extended_remote_target::attach): Pass down target.
17739 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17740 (remote_target::append_resumption): Pass down target.
17741 (remote_target::append_pending_thread_resumptions)
17742 (remote_target::remote_resume_with_hc, remote_target::resume)
17743 (remote_target::commit_resume): Pass down target.
17744 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17745 (remote_target::interrupt_query)
17746 (remote_target::remove_new_fork_children)
17747 (remote_target::check_pending_events_prevent_wildcard_vcont)
17748 (remote_target::remote_parse_stop_reply)
17749 (remote_target::process_stop_reply): Pass down target.
17750 (first_remote_resumed_thread): New remote_target parameter. Pass
17751 it down.
17752 (remote_target::wait_as): Pass down target.
17753 (unpush_and_perror): New remote_target parameter. Pass it down.
17754 (remote_target::readchar, remote_target::remote_serial_write)
17755 (remote_target::getpkt_or_notif_sane_1)
17756 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17757 down target.
17758 (remote_target::mourn_inferior): Pass down target. Use
17759 remote_unpush_target.
17760 (remote_target::core_of_thread)
17761 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17762 (remote_target::pid_to_exec_file)
17763 (remote_target::thread_handle_to_thread_info): Pass down target.
17764 (remote_target::async_wait_fd): New.
17765 * riscv-fbsd-tdep.c: Include "inferior.h".
17766 (riscv_fbsd_get_thread_local_address): Pass down target.
17767 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17768 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17769 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17770 Adjust.
17771 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17772 * solib-svr4.c (enable_break): Pass down target.
17773 * spu-multiarch.c (parse_spufs_run): Pass down target.
17774 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17775 * target-delegates.c: Regenerate.
17776 * target.c (g_target_stack): Delete.
17777 (current_top_target): Return the current inferior's top target.
17778 (target_has_execution_1): Refer to the passed-in inferior's top
17779 target.
17780 (target_supports_terminal_ours): Check whether the initial
17781 inferior was already created.
17782 (decref_target): New.
17783 (target_stack::push): Incref/decref the target.
17784 (push_target, push_target, unpush_target): Adjust.
17785 (target_stack::unpush): Defref target.
17786 (target_is_pushed): Return bool. Adjust to refer to the current
17787 inferior's target stack.
17788 (dispose_inferior): Delete, and inline parts ...
17789 (target_preopen): ... here. Only dispose of the current inferior.
17790 (target_detach): Hold strong target reference while detaching.
17791 Pass target down.
17792 (target_thread_name): Add assertion.
17793 (target_resume): Pass down target.
17794 (target_ops::beneath, find_target_at): Adjust to refer to the
17795 current inferior's target stack.
17796 (get_dummy_target): New.
17797 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17798 has a thread running.
17799 (initialize_targets): Rename to ...
17800 (_initialize_target): ... this.
17801 * target.h: Include "gdbsupport/refcounted-object.h".
17802 (struct target_ops): Inherit refcounted_object.
17803 (target_ops::shortname, target_ops::longname): Make const.
17804 (target_ops::async_wait_fd): New method.
17805 (decref_target): Declare.
17806 (struct target_ops_ref_policy): New.
17807 (target_ops_ref): New typedef.
17808 (get_dummy_target): Declare function.
17809 (target_is_pushed): Return bool.
17810 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17811 (all_matching_threads_iterator::all_matching_threads_iterator):
17812 Handle filter target.
17813 * thread-iter.h (struct all_matching_threads_iterator, struct
17814 all_matching_threads_range, class all_non_exited_threads_range):
17815 Filter by target too. Remove explicit.
17816 * thread.c (threads_executing): Delete.
17817 (inferior_thread): Pass down current inferior.
17818 (clear_thread_inferior_resources): Pass down thread pointer
17819 instead of ptid_t.
17820 (add_thread_silent, add_thread_with_info, add_thread): Add
17821 process_stratum_target parameter. Use it for thread and inferior
17822 searches.
17823 (is_current_thread): New.
17824 (thread_info::deletable): Use it.
17825 (find_thread_ptid, thread_count, in_thread_list)
17826 (thread_change_ptid, set_resumed, set_running): New
17827 process_stratum_target parameter. Pass it down.
17828 (set_executing): New process_stratum_target parameter. Pass it
17829 down. Adjust reference to 'threads_executing'.
17830 (threads_are_executing): New process_stratum_target parameter.
17831 Adjust reference to 'threads_executing'.
17832 (set_stop_requested, finish_thread_state): New
17833 process_stratum_target parameter. Pass it down.
17834 (switch_to_thread): Also match inferior.
17835 (switch_to_thread): New process_stratum_target parameter. Pass it
17836 down.
17837 (update_threads_executing): Reimplement.
17838 * top.c (quit_force): Pop targets from all inferior.
17839 (gdb_init): Don't call initialize_targets.
17840 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17841 Declare.
17842 (windows_add_thread, windows_delete_thread): Adjust.
17843 (get_windows_debug_event): Rename to ...
17844 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17845 * tracefile-tfile.c (tfile_target_open): Pass down target.
17846 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17847 Forward declare.
17848 (switch_to_thread): Add process_stratum_target parameter.
17849 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17850 parameter. Use it.
17851 (mi_on_resume): Pass target down.
17852 * nat/fork-inferior.c (startup_inferior): Add
17853 process_stratum_target parameter. Pass it down.
17854 * nat/fork-inferior.h (startup_inferior): Add
17855 process_stratum_target parameter.
17856 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17857
17858 2020-01-10 Pedro Alves <palves@redhat.com>
17859
17860 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17861 directly. Instead find the first thread in the thread list and
17862 use switch_to_thread.
17863
17864 2020-01-10 Pedro Alves <palves@redhat.com>
17865
17866 * remote.c (remote_target::remote_add_inferior): Don't bind a
17867 process to the current inferior if the current inferior is already
17868 bound to a process.
17869
17870 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17871 Pedro Alves <palves@redhat.com>
17872
17873 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17874 If no process is specified, return null_ptid instead of
17875 inferior_ptid.
17876 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17877 TARGET_WAITKIND_SIGNALLED with no pid.
17878
17879 2020-01-10 Pedro Alves <palves@redhat.com>
17880
17881 * remote.c (first_remote_resumed_thread): New.
17882 (remote_target::wait_as): Use it as default event_ptid instead of
17883 inferior_ptid.
17884
17885 2020-01-10 Pedro Alves <palves@redhat.com>
17886
17887 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17888
17889 2020-01-10 Pedro Alves <palves@redhat.com>
17890
17891 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17892 not -1.
17893
17894 2020-01-10 Pedro Alves <palves@redhat.com>
17895
17896 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17897 ptid to get_last_target_status.
17898 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17899 ptid to get_last_target_status.
17900 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17901 get_last_target_status.
17902 (info_program_command): Don't pass a target_waitstatus to
17903 get_last_target_status.
17904 * infrun.c (init_wait_for_inferior): Use
17905 nullify_last_target_wait_ptid.
17906 (get_last_target_status): Handle nullptr arguments.
17907 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17908 (print_stop_event): Don't pass a ptid to get_last_target_status.
17909 (normal_stop): Don't pass a ptid to get_last_target_status.
17910 * infrun.h (get_last_target_status, set_last_target_status): Move
17911 comments here and update.
17912 (nullify_last_target_wait_ptid): Declare.
17913 * linux-fork.c (fork_load_infrun_state): Remove local extern
17914 declaration of nullify_last_target_wait_ptid.
17915 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17916 to get_last_target_status.
17917
17918 2020-01-10 Pedro Alves <palves@redhat.com>
17919
17920 * gdbthread.h (scoped_restore_current_thread)
17921 <dont_restore, restore, m_dont_restore>: Declare.
17922 * thread.c (thread_alive): Add assertion. Return bool.
17923 (switch_to_thread_if_alive): New.
17924 (prune_threads): Switch inferior/thread.
17925 (print_thread_info_1): Switch thread before calling target methods.
17926 (scoped_restore_current_thread::restore): New, factored out from
17927 ...
17928 (scoped_restore_current_thread::~scoped_restore_current_thread):
17929 ... this.
17930 (scoped_restore_current_thread::scoped_restore_current_thread):
17931 Add assertion.
17932 (thread_apply_all_command, thread_select): Use
17933 switch_to_thread_if_alive.
17934 * infrun.c (proceed, restart_threads, handle_signal_stop)
17935 (switch_back_to_stepped_thread): Switch current thread before
17936 calling target methods.
17937
17938 2020-01-10 Pedro Alves <palves@redhat.com>
17939
17940 * inferior.c (switch_to_inferior_no_thread): New function,
17941 factored out from ...
17942 (inferior_command): ... here.
17943 * inferior.h (switch_to_inferior_no_thread): Declare.
17944 * mi/mi-main.c (run_one_inferior): Use
17945 switch_to_inferior_no_thread.
17946
17947 2020-01-10 Pedro Alves <palves@redhat.com>
17948
17949 * infcmd.c (kill_command): Remove dead code.
17950
17951 2020-01-10 Pedro Alves <palves@redhat.com>
17952
17953 * remote.c (remote_target::mourn_inferior): No longer check
17954 whether the target is running.
17955
17956 2020-01-10 Pedro Alves <palves@redhat.com>
17957
17958 * corelow.c (core_target::has_execution): Change parameter type to
17959 inferior pointer.
17960 * inferior.c (number_of_live_inferiors): Use
17961 inferior::has_execution instead of target_has_execution_1.
17962 * inferior.h (inferior::has_execution): New.
17963 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17964 inferior::has_execution instead of target_has_execution_1.
17965 * process-stratum-target.c
17966 (process_stratum_target::has_execution): Change parameter type to
17967 inferior pointer. Check the inferior's PID instead of
17968 inferior_ptid.
17969 * process-stratum-target.h
17970 (process_stratum_target::has_execution): Change parameter type to
17971 inferior pointer.
17972 * record-full.c (record_full_core_target::has_execution): Change
17973 parameter type to inferior pointer.
17974 * target.c (target_has_execution_1): Change parameter type to
17975 inferior pointer.
17976 (target_has_execution_current): Adjust.
17977 * target.h (target_ops::has_execution): Change parameter type to
17978 inferior pointer.
17979 (target_has_execution_1): Change parameter type to inferior
17980 pointer. Change return type to bool.
17981 * tracefile.h (tracefile_target::has_execution): Change parameter
17982 type to inferior pointer.
17983
17984 2020-01-10 Pedro Alves <palves@redhat.com>
17985
17986 * exceptions.c (print_flush): Remove current_top_target() check.
17987
17988 2020-01-10 Pedro Alves <palves@redhat.com>
17989
17990 * remote.c (show_remote_exec_file): Show the current inferior's
17991 exec-file instead of the command variable's value.
17992
17993 2020-01-10 Pedro Alves <palves@redhat.com>
17994
17995 * record-full.c (record_full_resume_ptid): New global.
17996 (record_full_target::resume): Set it.
17997 (record_full_wait_1): Use record_full_resume_ptid instead of
17998 inferior_ptid.
17999
18000 2020-01-10 Pedro Alves <palves@redhat.com>
18001
18002 * gdbthread.h (scoped_restore_current_thread)
18003 <dont_restore, restore, m_dont_restore>: Declare.
18004 * thread.c (thread_alive): Add assertion. Return bool.
18005 (switch_to_thread_if_alive): New.
18006 (prune_threads): Switch inferior/thread.
18007 (print_thread_info_1): Switch thread before calling target methods.
18008 (scoped_restore_current_thread::restore): New, factored out from
18009 ...
18010 (scoped_restore_current_thread::~scoped_restore_current_thread):
18011 ... this.
18012 (scoped_restore_current_thread::scoped_restore_current_thread):
18013 Add assertion.
18014 (thread_apply_all_command, thread_select): Use
18015 switch_to_thread_if_alive.
18016
18017 2020-01-10 George Barrett <bob@bob131.so>
18018
18019 * stap-probe.c (stap_modify_semaphore): Don't check for null
18020 semaphores.
18021 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18022 for null semaphores.
18023
18024 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18025
18026 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18027 all source windows, and maintain horizontal scroll status while
18028 doing so.
18029
18030 2020-01-09 Tom Tromey <tom@tromey.com>
18031
18032 PR tui/18932:
18033 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18034 update_source_window, not print_source_lines.
18035
18036 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18037
18038 * tui/tui.c (tui_enable): Register tui hooks after calling
18039 tui_display_main.
18040
18041 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18042
18043 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18044
18045 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18046
18047 * thread.c (print_thread_info_1): Fix indentation.
18048
18049 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18050
18051 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18052 unique_xmalloc_ptr outside the if to always free the demangled name.
18053
18054 2020-01-08 Tom Tromey <tromey@adacore.com>
18055
18056 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18057 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18058 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18059 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18060 Remove.
18061 (section_offsets): New typedef.
18062 * symtab.c (fixup_section, get_msymbol_address): Update.
18063 * symmisc.c (dump_msymbols): Update.
18064 * symfile.h (relative_addr_info_to_section_offsets)
18065 (symfile_map_offsets_to_segments): Update.
18066 * symfile.c (build_section_addr_info_from_objfile)
18067 (init_objfile_sect_indices): Update.
18068 (struct place_section_arg): Change type of "offsets".
18069 (place_section): Update.
18070 (relative_addr_info_to_section_offsets): Change type of
18071 "section_offsets". Remove "num_sections" parameter.
18072 (default_symfile_offsets, syms_from_objfile_1)
18073 (set_objfile_default_section_offset): Update.
18074 (reread_symbols): No need to preserve section offsets by hand.
18075 (symfile_map_offsets_to_segments): Change type of "offsets".
18076 * stap-probe.c (relocate_address): Update.
18077 * stabsread.h (process_one_symbol): Update.
18078 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18079 (solib_target_relocate_section_addresses): Update.
18080 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18081 Update.
18082 * solib-frv.c (frv_relocate_main_executable): Update.
18083 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18084 * solib-aix.c (solib_aix_get_section_offsets): Change return
18085 type.
18086 (solib_aix_solib_create_inferior_hook): Update.
18087 * remote.c (remote_target::get_offsets): Update.
18088 * psymtab.c (find_pc_sect_psymtab): Update.
18089 * psympriv.h (struct partial_symbol) <address, text_low,
18090 text_high>: Update.
18091 * objfiles.h (obj_section_offset): Update.
18092 (struct objfile) <section_offsets>: Change type.
18093 <num_sections>: Remove.
18094 (objfile_relocate): Update.
18095 * objfiles.c (entry_point_address_query): Update
18096 (relocate_one_symbol): Change type of "section_offsets".
18097 (objfile_relocate1, objfile_relocate1): Change type of
18098 "new_offsets".
18099 (objfile_rebase1): Update.
18100 * mipsread.c (mipscoff_symfile_read): Update.
18101 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18102 parameter.
18103 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18104 (parse_external, psymtab_to_symtab_1): Update.
18105 * machoread.c (macho_symfile_offsets): Update.
18106 * ia64-tdep.c (ia64_find_unwind_table): Update.
18107 * hppa-tdep.c (read_unwind_info): Update.
18108 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18109 * dwarf2read.c (create_addrmap_from_index)
18110 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18111 (process_psymtab_comp_unit_reader, add_partial_symbol)
18112 (add_partial_subprogram, process_full_comp_unit)
18113 (read_file_scope, read_func_scope, read_lexical_block_scope)
18114 (read_call_site_scope, dwarf2_rnglists_process)
18115 (dwarf2_ranges_process, dwarf2_ranges_read)
18116 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18117 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18118 Update.
18119 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18120 Update.
18121 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18122 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18123 (process_one_symbol): Change type of "section_offsets".
18124 * ctfread.c (get_objfile_text_range): Update.
18125 * coffread.c (coff_symtab_read, enter_linenos)
18126 (process_coff_symbol): Update.
18127 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18128 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18129
18130 2020-01-08 Tom Tromey <tromey@adacore.com>
18131
18132 * dwarf2read.c (parse_macro_definition): Use std::string.
18133 (parse_macro_definition): Likewise.
18134
18135 2020-01-08 Tom Tromey <tromey@adacore.com>
18136
18137 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18138 (ATTR_ALLOC_CHUNK): Remove.
18139
18140 2020-01-08 Tom Tromey <tromey@adacore.com>
18141
18142 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18143
18144 2020-01-08 Tom Tromey <tromey@adacore.com>
18145
18146 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18147 (dwarf2_compute_name, open_dwo_file): Likewise.
18148 (process_enumeration_scope): Use std::vector.
18149 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18150 (partial_die_info::fixup, dwarf2_start_subfile)
18151 (guess_full_die_structure_name, dwarf2_name): Likewise.
18152 (determine_prefix): Update.
18153 (guess_full_die_structure_name): Make return type const.
18154 (partial_die_full_name): Return unique_xmalloc_ptr.
18155 (DW_FIELD_ALLOC_CHUNK): Remove.
18156
18157 2020-01-07 Tom Tromey <tromey@adacore.com>
18158
18159 PR build/24937:
18160 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18161
18162 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18163
18164 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18165
18166 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18167
18168 * stack.c (print_frame_info): Move disassemble_next_line code
18169 inside source_print block.
18170
18171 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18172
18173 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18174 gdb/signals.h, as we are now using native signal symbols.
18175
18176 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18177
18178 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18179 overflow by an early check of content vs threshold.
18180 * tui/tui-source.c (tui_source_window::line_is_displayed):
18181 Likewise.
18182
18183 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18184
18185 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18186
18187 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18188
18189 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18190 export table if no section contains it's RVA.
18191
18192 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18193
18194 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18195
18196 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18197
18198 * source.c (print_source_lines_base): Set last_line_listed.
18199
18200 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18201
18202 * tui/tui-disasm.c: Remove trailing spaces.
18203
18204 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18205 Pedro Alves <palves@redhat.com>
18206
18207 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18208 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18209 (windows_gdb_signal_to_target): New function, uses the above
18210 enumeration to convert GDB internal signal codes to equivalent
18211 Windows codes.
18212 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18213 * windows-nat.c: Include "gdb_wait.h".
18214 (get_windows_debug_event): Extract the fatal exception from the
18215 exit status and convert to the equivalent Posix signal number.
18216 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18217 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18218 * gdbsupport/gdb_wait.c: New file, implements
18219 windows_status_to_termsig.
18220 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18221 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18222
18223 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18224
18225 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18226 show_layout.
18227
18228 2020-01-05 Luis Machado <luis.machado@linaro.org>
18229
18230 * aarch64-linux-nat.c
18231 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18232 and bfd_mach_aarch64.
18233
18234 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18235
18236 * ui-file.c (stdio_file::can_emit_style_escape)
18237 (tee_file::can_emit_style_escape): Ensure style is used also on
18238 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18239 to gdb_stdout.
18240 * main.c (set_gdb_data_directory): Use file style to output the
18241 warning that the given pathname is not a directory.
18242 * top.c (show_history_filename, gdb_safe_append_history)
18243 (show_gdb_datadir): Use file style.
18244
18245 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18246
18247 * solib-target.c (struct lm_info_target):
18248 Change offsets to be a unique_xmalloc_ptr.
18249 (solib_target_relocate_section_addresses): Update.
18250
18251 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18252
18253 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18254
18255 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18256
18257 * MAINTAINERS (Write After Approval): Add myself.
18258
18259 2020-01-02 Luis Machado <luis.machado@linaro.org>
18260
18261 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18262 Cell BE architecture.
18263 * target.h (struct target_ops) <thread_architecture>: Likewise.
18264
18265 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18266
18267 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18268
18269 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18270
18271 * MAINTAINERS (Write After Approval): Add myself.
18272
18273 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18274
18275 * gdbarch.sh: Update copyright year range of generated files.
18276
18277 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18278
18279 Update copyright year range in all GDB files.
18280
18281 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18282
18283 * copyright.py: Convert to Python 3.
18284
18285 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18286
18287 * copyright.py: Adapt after move of gnulib directory from gdb
18288 directory to toplevel directory.
18289
18290 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18291
18292 * copyright.py (main): Exit if run from the wrong directory.
18293
18294 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18295
18296 * top.c (print_gdb_version): Change copyright year to 2020.
18297
18298 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18299
18300 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18301
18302 For older changes see ChangeLog-2019.
18303 \f
18304 Local Variables:
18305 mode: change-log
18306 left-margin: 8
18307 fill-column: 74
18308 version-control: never
18309 coding: utf-8
18310 End:
This page took 0.38553 seconds and 5 git commands to generate.