gdb: new command 'maint flush dcache'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * NEWS: Mention new commands.
4 * target-dcache.c: Add 'cli/cli-cmds.h' include.
5 (maint_flush_dcache_command): New function.
6 (_initialize_target_dcache): Create new 'maint flush dcache'
7 command.
8
9 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
10
11 * NEWS: Mention new commands, and that the old commands are now
12 deprecated.
13 * cli/cli-cmds.c (maintenanceflushlist): Define.
14 * cli/cli-cmds.h (maintenanceflushlist): Declare.
15 * maint.c (_initialize_maint_cmds): Initialise
16 maintenanceflushlist.
17 * regcache.c: Add 'cli/cli-cmds.h' include.
18 (reg_flush_command): Add header comment.
19 (_initialize_regcache): Create new 'maint flush register-cache'
20 command, make 'flushregs' an alias.
21 * symtab.c: Add 'cli/cli-cmds.h' include.
22 (_initialize_symtab): Create new 'maint flush symbol-cache'
23 command, make old command an alias.
24
25 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
28 result from lookup_cmd_composition_1, use the prefixes from both
29 the command and the alias instead.
30 (lookup_cmd_composition_1): Initial prefix command is the based on
31 the search list being passed in. Simplify the logic for tracking
32 the prefix command. Replace a use of alloca with a local
33 std::string.
34
35 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
38 of NULL. Don't print message piece by piece, but sentence at a
39 time to allow internationalisation. Some whitespace cleanup.
40
41 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 PR cli/15104
44 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
45 deprecated_cmd_warning.
46 (deprecated_cmd_warning): Take extra parameter, call
47 lookup_cmd_composition_1 and pass new parameter through.
48 (lookup_cmd_composition_1): New function, takes implementation of
49 lookup_cmd_composition but with extra parameter.
50 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
51 passing in cmdlist.
52 * command.h (deprecated_cmd_warning): Add extra parameter to
53 declaration.
54 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
55
56 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
59 command.h, add extra parameter, and use this to guard giving a
60 warning.
61 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
62 include argument names in declaration, add new argument.
63 * completer.c (complete_line_internal_1): Remove unneeded
64 brackets, pass extra argument to lookup_cmd_1.
65
66 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
67
68 * infrun.h (debug_infrun): Make a bool.
69 * infrun.c (debug_infrun): Make a bool.
70 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
71 debug infrun".
72
73 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * displaced-stepping.h (displaced_debug_printf): Use
76 debug_prefixed_printf_cond.
77 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
78 (dwarf_read_debug_printf_v): Likewise.
79 * infrun.h (infrun_debug_printf): Likewise.
80 * linux-nat.c (linux_nat_debug_printf): Likewise.
81
82 2020-12-11 Tom Tromey <tom@tromey.com>
83
84 * p-exp.y (intvar): Remove global.
85 (DOLLAR_VARIABLE): Change type.
86 (start): Update.
87 (exp): Call write_dollar_variable here...
88 (yylex): ... not here.
89 * m2-exp.y (DOLLAR_VARIABLE): Change type.
90 (variable): Call write_dollar_variable here...
91 (yylex): ... not here.
92 * f-exp.y (DOLLAR_VARIABLE): Change type.
93 (exp): Call write_dollar_variable here...
94 (yylex): ... not here.
95
96 2020-12-11 Tom Tromey <tom@tromey.com>
97
98 * varobj.c (varobj_create): Update.
99 (install_variable): Return void.
100
101 2020-12-11 Tom Tromey <tom@tromey.com>
102
103 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
104
105 2020-12-11 Tom Tromey <tom@tromey.com>
106
107 * varobj.c (varobj_clear_saved_item): Remove.
108 (update_dynamic_varobj_children): Update.
109 (varobj::~varobj): Don't call varobj_clear_saved_item.
110
111 2020-12-11 Tom Tromey <tom@tromey.com>
112
113 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
114 (update_dynamic_varobj_children, create_child)
115 (create_child_with_value): Update.
116 * varobj-iter.h (struct varobj_item) <value>: Now a
117 value_ref_ptr.
118 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
119
120 2020-12-11 Tom Tromey <tom@tromey.com>
121
122 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
123 (varobj_get_iterator): Return unique_ptr.
124 (update_dynamic_varobj_children, install_visualizer)
125 (varobj::~varobj): Update.
126 * python/python-internal.h (py_varobj_get_iterator): Return
127 unique_ptr.
128 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
129
130 2020-12-11 Tom Tromey <tom@tromey.com>
131
132 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
133 (varobj_clear_saved_item, update_dynamic_varobj_children):
134 Update.
135
136 2020-12-11 Tom Tromey <tom@tromey.com>
137
138 * varobj.c (update_dynamic_varobj_children): Update.
139 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
140 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
141 type.
142 (py_varobj_iter::next): Likewise.
143
144 2020-12-11 Tom Tromey <tom@tromey.com>
145
146 * varobj.c (update_dynamic_varobj_children, install_visualizer)
147 (varobj::~varobj): Update.
148 * varobj-iter.h (struct varobj_iter): Change to interface class.
149 (struct varobj_iter_ops): Remove.
150 (varobj_iter_next, varobj_iter_delete): Remove.
151 * python/py-varobj.c (struct py_varobj_iter): Derive from
152 varobj_iter. Add constructor, destructor. Rename members.
153 (py_varobj_iter::~py_varobj_iter): Rename from
154 py_varobj_iter_dtor.
155 (py_varobj_iter::next): Rename from py_varobj_iter_next.
156 (py_varobj_iter_ops): Remove.
157 (py_varobj_iter): Rename from py_varobj_iter_ctor.
158 (py_varobj_iter_new): Remove.
159 (py_varobj_get_iterator): Update.
160
161 2020-12-11 Tom Tromey <tom@tromey.com>
162
163 * varobj.h (all_root_varobjs): Take a function_view.
164 * varobj.c (all_root_varobjs): Take a function_view.
165 (varobj_invalidate_iter): Remove unused parameter.
166 (varobj_invalidate): Update.
167 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
168 (mi_cmd_var_update_iter): Change parameters.
169
170 2020-12-11 Tom Tromey <tom@tromey.com>
171
172 * varobj.c (struct varobj_root) <next>: Remove.
173 (struct vlist): Remove.
174 (rootlist): Now a std::list.
175 (install_variable, uninstall_variable, all_root_varobjs): Update.
176
177 2020-12-11 Tom Tromey <tom@tromey.com>
178
179 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
180 (varobj_table): Now htab_t.
181 (varobj_get_handle, install_variable, uninstall_variable):
182 Update.
183 (hash_varobj, eq_varobj_and_string): New functions.
184 (hash_varobj): Update.
185
186 2020-12-11 Tom Tromey <tom@tromey.com>
187
188 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
189 * ada-lang.c (check_status_exception): Update.
190 * breakpoint.c (free_bp_location): Remove.
191 (decref_bp_location): Use bp_location_ref_policy.
192 (bpstats::bpstats): Don't call incref_bp_location.
193 (bpstats::~bpstats): Remove.
194 (bpstats::bpstats): Update.
195 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
196 (bp_location::bp_location): Update.
197 (incref_bp_location): Remove.
198 (bkpt_print_it): Update.
199 * breakpoint.h (class bp_location): Derive from
200 refcounted_object.
201 (struct bpstats): Remove destructor.
202 <bp_location_at>: Now a bp_location_ref_ptr.
203 <refc>: Remove.
204 (bp_location_ref_ptr): New typedef.
205 (struct bp_location_ref_policy): New.
206
207 2020-12-11 Tom Tromey <tom@tromey.com>
208
209 * thread.c (class scoped_inc_dec_ref): Remove.
210 (tp_array_compar_ascending, tp_array_compar_descending): Change
211 parameter types.
212 (thread_apply_all_command): Use thread_info_ref.
213
214 2020-12-11 Tom Tromey <tom@tromey.com>
215
216 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
217 (stop_context::stop_context): Update.
218 (stop_context::~stop_context): Remove.
219
220 2020-12-11 Tom Tromey <tom@tromey.com>
221
222 * inferior.c (current_inferior_): Change type.
223 (current_inferior, set_current_inferior, initialize_inferiors):
224 Update.
225
226 2020-12-11 Tom Tromey <tom@tromey.com>
227
228 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
229 Change type.
230
231 2020-12-11 Tom Tromey <tromey@adacore.com>
232
233 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
234 field.
235 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
236 (read_atcb): Use cpu_id_offset.
237
238 2020-12-10 Kevin Buettner <kevinb@redhat.com>
239
240 * ada-lang.c (ada_fold_name): Fix off-by-one error.
241
242 2020-12-10 Luis Machado <luis.machado@linaro.org>
243
244 * breakpoint.c (should_be_inserted): Don't output newline.
245
246 2020-12-10 Luis Machado <luis.machado@linaro.org>
247
248 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
249 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
250 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
251 * arch/aarch64.h: ... here.
252 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
253 (aarch64_maybe_swab128): New function.
254 (aarch64_sve_regs_copy_to_reg_buf)
255 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
256 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
257 the data field.
258 (TF_REG_VALUE_BYTES): New enum value.
259 (trad_frame_value_bytes_p): New function.
260 (trad_frame_set_value_bytes): New function.
261 (trad_frame_set_reg_value_bytes): New function.
262 (trad_frame_get_prev_register): Handle register values saved as bytes.
263 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
264 (struct trad_frame_saved_reg) <data>: New field.
265 (trad_frame_set_value_bytes): New prototype.
266 (trad_frame_value_bytes_p): New prototype.
267
268 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
269
270 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
271 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
272 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
273
274 2020-12-09 Tom Tromey <tromey@adacore.com>
275
276 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
277
278 2020-12-09 Tom Tromey <tromey@adacore.com>
279
280 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
281 and "denominator" to gdb_mpz. Handle block forms.
282 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
283 "denominator" to gdb_mpz.
284 (finish_fixed_point_type): Update.
285 (has_zero_over_zero_small_attribute): Update.
286
287 2020-12-09 Tom Tromey <tromey@adacore.com>
288
289 * expprint.c (op_name): Update.
290 * expression.h (enum exp_opcode): Update.
291 * std-operator.def: Add more opcodes.
292 * ada-operator.def, fortran-operator.def: Remove, moving contents
293 into std-operator.def.
294
295 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
298 Return {} instead of false.
299 (get_discrete_bounds): Compute high bound only if low bound is
300 valid.
301
302 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
303
304 PR 26875, PR 26901
305 * gdbtypes.c (get_discrete_low_bound): Make non-static.
306 (get_discrete_high_bound): Make non-static.
307 * gdbtypes.h (get_discrete_low_bound): New declaration.
308 (get_discrete_high_bound): New declaration.
309 * valarith.c (value_subscript): Only fetch high bound if
310 necessary.
311
312 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
313
314 * gdbtypes.c (get_discrete_bounds): Implement with
315 get_discrete_low_bound and get_discrete_high_bound.
316 (get_discrete_low_bound): New.
317 (get_discrete_high_bound): New.
318
319 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
320
321 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
322 callers.
323 * gdbtypes.c (get_discrete_bounds): Return bool.
324
325 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
326
327 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
328 (ada_value_slice): Adjust.
329 (pos_atr): Adjust.
330 * gdbtypes.c (get_discrete_bounds): Adjust.
331 (discrete_position): Return optional.
332 * gdbtypes.h (discrete_position): Return optional.
333
334 2020-12-07 Tom Tromey <tromey@adacore.com>
335
336 * maint.c (_initialize_maint_cmds): Use expression command
337 completer for "maint print type".
338
339 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
340
341 * completer.c (complete_explicit_location): Also add keywords
342 that start with '-' to the completion list.
343
344 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345
346 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
347 keyword may be followed by any keyword.
348 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
349 'toklen' in the case for "-force-condition".
350
351 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352
353 * main.c (catch_command_errors): Add a flag parameter; invoke
354 `bpstat_do_actions` if the flag is set.
355 (execute_cmdargs): Update a call to `catch_command_errors`.
356
357 2020-12-07 Tom de Vries <tdevries@suse.de>
358
359 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
360
361 2020-12-06 Tom Tromey <tom@tromey.com>
362
363 PR ada/26999
364 * ada-lang.c (replace_operator_with_call): Rewrite.
365
366 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
367
368 PR breakpoints/27009
369 * s390-tdep.h (op_bc): Correct BC opcode value.
370
371 2020-12-06 Joel Brobecker <brobecker@adacore.com>
372
373 * gmp-utils.h (gdb_mpz::safe_export): New private method.
374 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
375 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
376 (gdb_mpz::safe_export): New method.
377 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
378 Update function description.
379 (check_as_integer_raises_out_of_range_error): New function.
380 (gdb_mpz_as_integer_out_of_range): New function.
381 (_initialize_gmp_utils_selftests): Register
382 gdb_mpz_as_integer_out_of_range as a selftest.
383
384 2020-12-05 Joel Brobecker <brobecker@adacore.com>
385
386 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
387 TARGET_CHAR_BIT.
388 (gdb_mpz::write): Likewise.
389
390 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
391
392 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
393 number of displaced step buffers.
394
395 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
396
397 * displaced-stepping.h (struct displaced_step_buffer): Rename
398 to...
399 (struct displaced_step_buffers): ... this.
400 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
401 <struct displaced_step_buffer>: New inner class.
402 <m_buffers>: New.
403 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
404 to...
405 (displaced_step_buffers::prepare): ... this, adjust for multiple
406 buffers.
407 (displaced_step_buffer::finish): Rename to...
408 (displaced_step_buffers::finish): ... this, adjust for multiple
409 buffers.
410 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
411 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
412 adjust for multiple buffers.
413 (displaced_step_buffer::restore_in_ptid): Rename to...
414 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
415 multiple buffers.
416 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
417 for num_disp_step_buffers.
418 * linux-tdep.c (struct linux_gdbarch_data)
419 <num_disp_step_buffers>: New field.
420 (struct linux_info) <disp_step_buf>: Rename to...
421 <disp_step_bufs>: ... this, change type to
422 displaced_step_buffers.
423 (linux_displaced_step_prepare): Use
424 linux_gdbarch_data::num_disp_step_buffers to create that number
425 of buffers.
426 (linux_displaced_step_finish): Adjust.
427 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
428 (linux_displaced_step_restore_all_in_ptid): Adjust.
429 (linux_init_abi): Change supports_displaced_step parameter for
430 num_disp_step_buffers, save it in linux_gdbarch_data.
431 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
432 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
433 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
434 supports_displaced_step parameter for num_disp_step_buffers.
435 (amd64_linux_init_abi): Adjust.
436 (amd64_x32_linux_init_abi): Adjust.
437 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
438 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
439 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
440 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
441 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
442 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
443 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
444 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
445 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
446 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
447 * m68k-linux-tdep.c (m68k_linux_init_abi):
448 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
449 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
450 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
451 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
452 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
453 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
454 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
455 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
456 Change type to displaced_step_buffers.
457 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
458 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
459 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
460 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
461 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
462 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
463 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
464
465 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
466
467 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
468 obkstack.
469 (_initialize_linux_tdep): Register pre-init gdb data instead of
470 post-init.
471
472 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
473
474 * displaced-stepping.h (struct
475 displaced_step_copy_insn_closure): Adjust comments.
476 (struct displaced_step_inferior_state) <step_thread,
477 step_gdbarch, step_closure, step_original, step_copy,
478 step_saved_copy>: Remove fields.
479 (struct displaced_step_thread_state): New.
480 (struct displaced_step_buffer): New.
481 * displaced-stepping.c (displaced_step_buffer::prepare): New.
482 (write_memory_ptid): Move from infrun.c.
483 (displaced_step_instruction_executed_successfully): New,
484 factored out of displaced_step_finish.
485 (displaced_step_buffer::finish): New.
486 (displaced_step_buffer::copy_insn_closure_by_addr): New.
487 (displaced_step_buffer::restore_in_ptid): New.
488 * gdbarch.sh (displaced_step_location): Remove.
489 (displaced_step_prepare, displaced_step_finish,
490 displaced_step_copy_insn_closure_by_addr,
491 displaced_step_restore_all_in_ptid): New.
492 * gdbarch.c: Re-generate.
493 * gdbarch.h: Re-generate.
494 * gdbthread.h (class thread_info) <displaced_step_state>: New
495 field.
496 (thread_step_over_chain_remove): New declaration.
497 (thread_step_over_chain_next): New declaration.
498 (thread_step_over_chain_length): New declaration.
499 * thread.c (thread_step_over_chain_remove): Make non-static.
500 (thread_step_over_chain_next): New.
501 (global_thread_step_over_chain_next): Use
502 thread_step_over_chain_next.
503 (thread_step_over_chain_length): New.
504 (global_thread_step_over_chain_enqueue): Add debug print.
505 (global_thread_step_over_chain_remove): Add debug print.
506 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
507 Remove.
508 * infrun.c (get_displaced_stepping_state): New.
509 (displaced_step_in_progress_any_inferior): Remove.
510 (displaced_step_in_progress_thread): Adjust.
511 (displaced_step_in_progress): Adjust.
512 (displaced_step_in_progress_any_thread): New.
513 (get_displaced_step_copy_insn_closure_by_addr): Remove.
514 (gdbarch_supports_displaced_stepping): Use
515 gdbarch_displaced_step_prepare_p.
516 (displaced_step_reset): Change parameter from inferior to
517 thread.
518 (displaced_step_prepare_throw): Implement using
519 gdbarch_displaced_step_prepare.
520 (write_memory_ptid): Move to displaced-step.c.
521 (displaced_step_restore): Remove.
522 (displaced_step_finish): Implement using
523 gdbarch_displaced_step_finish.
524 (start_step_over): Allow starting more than one displaced step.
525 (prepare_for_detach): Handle possibly multiple threads doing
526 displaced steps.
527 (handle_inferior_event): Handle possibility that fork event
528 happens while another thread displaced steps.
529 * linux-tdep.h (linux_displaced_step_prepare): New.
530 (linux_displaced_step_finish): New.
531 (linux_displaced_step_copy_insn_closure_by_addr): New.
532 (linux_displaced_step_restore_all_in_ptid): New.
533 (linux_init_abi): Add supports_displaced_step parameter.
534 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
535 (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 register displaced step methods if true.
541 (_initialize_linux_tdep): Register inferior_execd observer.
542 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
543 supports_displaced_step parameter, adjust call to
544 linux_init_abi. Remove call to
545 set_gdbarch_displaced_step_location.
546 (amd64_linux_init_abi): Adjust call to
547 amd64_linux_init_abi_common.
548 (amd64_x32_linux_init_abi): Likewise.
549 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
550 linux_init_abi. Remove call to
551 set_gdbarch_displaced_step_location.
552 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
553 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
554 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
555 linux_init_abi.
556 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
557 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
558 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
559 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
560 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
561 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
562 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
563 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
564 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
565 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
566 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
567 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
568 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
569 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
570 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
571 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
572 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
573 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
574 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
575 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
576 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
577 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
578 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
579 linux_init_abi. Remove call to
580 set_gdbarch_displaced_step_location.
581 * arm-tdep.c (arm_pc_is_thumb): Call
582 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
583 get_displaced_step_copy_insn_closure_by_addr.
584 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
585 clear gdbarch methods.
586 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
587 (get_ppc_per_inferior): New function.
588 (ppc_displaced_step_prepare): New function.
589 (ppc_displaced_step_finish): New function.
590 (ppc_displaced_step_restore_all_in_ptid): New function.
591 (rs6000_gdbarch_init): Register new gdbarch methods.
592 * s390-tdep.c (s390_gdbarch_init): Don't call
593 set_gdbarch_displaced_step_location, set new gdbarch methods.
594
595 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
596
597 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
598 * aarch64-tdep.h: Include displaced-stepping.h.
599 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
600 Move here.
601 (displaced_step_copy_insn_closure_up): Move here.
602 (struct buf_displaced_step_copy_insn_closure): Move here.
603 (struct displaced_step_inferior_state): Move here.
604 (debug_displaced): Move here.
605 (displaced_debug_printf_1): Move here.
606 (displaced_debug_printf): Move here.
607 * displaced-stepping.c: New file.
608 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
609 * gdbarch.h: Re-generate.
610 * inferior.h: Include displaced-stepping.h.
611 * infrun.h (debug_displaced): Move to displaced-stepping.h.
612 (displaced_debug_printf_1): Likewise.
613 (displaced_debug_printf): Likewise.
614 (struct displaced_step_copy_insn_closure): Likewise.
615 (displaced_step_copy_insn_closure_up): Likewise.
616 (struct buf_displaced_step_copy_insn_closure): Likewise.
617 (struct displaced_step_inferior_state): Likewise.
618 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
619 (displaced_debug_printf_1): Likewise.
620 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
621 Likewise.
622 (_initialize_infrun): Don't register "set/show debug displaced".
623
624 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
625
626 * linux-tdep.c (get_linux_inferior_data): Add inferior
627 parameter.
628 (linux_vsyscall_range): Pass current inferior.
629
630 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
631
632 * infrun.c (displaced_step_prepare_throw): Change return type to
633 displaced_step_prepare_status.
634 (displaced_step_prepare): Likewise.
635 (displaced_step_finish): Change return type to
636 displaced_step_finish_status.
637 (resume_1): Adjust.
638 (stop_all_threads): Adjust.
639 * displaced-stepping.h: New file.
640
641 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
642
643 * infrun.c (displaced_step_fixup): Rename to...
644 (displaced_step_finish): ... this, update all callers.
645
646 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
647
648 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
649 (get_displaced_step_copy_insn_closure_by_addr): ... this.
650 Update all users.
651 (displaced_step_closure): Rename to...
652 (displaced_step_copy_insn_closure): ... this. Update all users.
653 (displaced_step_closure_up): Rename to...
654 (displaced_step_copy_insn_closure_up). ... this. Update all
655 users.
656 (buf_displaced_step_closure): Rename to...
657 (buf_displaced_step_copy_insn_closure): ... this. Update all
658 users.
659 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
660 (get_displaced_step_copy_insn_closure_by_addr): ... this.
661 Update all users.
662 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
663 (aarch64_displaced_step_copy_insn_closure): ... this. Update
664 all users.
665 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
666 (amd64_displaced_step_copy_insn_closure): ... this. Update all
667 users.
668 * arm-tdep.h (arm_displaced_step_closure): Rename to...
669 (arm_displaced_step_copy_insn_closure): ... this. Update all
670 users.
671 * i386-tdep.h (i386_displaced_step_closure): Rename to...
672 (i386_displaced_step_copy_insn_closure): ... this. Update all
673 users.
674 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
675 (ppc_displaced_step_copy_insn_closure): ... this. Update all
676 users.
677 * s390-tdep.c (s390_displaced_step_closure): Rename to...
678 (s390_displaced_step_copy_insn_closure): ... this. Update all
679 users.
680 * gdbarch.h: Re-generate.
681 * gdbarch.c: Re-generate.
682
683 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
684
685 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
686 (global_thread_step_over_chain_enqueue): ... this. Update all
687 users.
688 (thread_step_over_chain_remove): Rename to...
689 (global_thread_step_over_chain_remove): ... this. Update all
690 users.
691 (thread_step_over_chain_next): Rename to...
692 (global_thread_step_over_chain_next): ... this. Update all
693 users.
694 * infrun.h (step_over_queue_head): Rename to...
695 (global_thread_step_over_chain_head): ... this. Update all
696 users.
697 * infrun.c (step_over_queue_head): Rename to...
698 (global_thread_step_over_chain_head): ... this. Update all
699 users.
700 * thread.c (step_over_chain_remove): Rename to...
701 (thread_step_over_chain_remove): ... this. Update all users.
702 (thread_step_over_chain_next): Rename to...
703 (global_thread_step_over_chain_next): ... this. Update all
704 users.
705 (thread_step_over_chain_enqueue): Rename to...
706 (global_thread_step_over_chain_enqueue): ... this. Update all
707 users.
708 (thread_step_over_chain_remove): Rename to...
709 (global_thread_step_over_chain_remove): ... this. Update all
710 users.
711
712 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * infrun.c (get_displaced_stepping_state): Remove, change
715 callers to access the field directly.
716
717 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
718
719 * infrun.c (handle_inferior_event): Restore displaced step
720 buffer bytes in child process when handling fork, even if fork
721 happened in another thread than the displaced-stepping one.
722
723 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
724
725 * infrun.c (infrun_inferior_execd): New function.
726 (_initialize_infrun): Attach inferior_execd observer.
727
728 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
729
730 * observable.h (inferior_execd): Declare new observable.
731 * observable.c (inferior_execd): Declare new observable.
732 * infrun.c (follow_exec): Notify inferior_execd observer.
733 * jit.c (jit_inferior_created_hook): Make static.
734 (_initialize_jit): Register inferior_execd observer.
735 * jit.h (jit_inferior_created_hook): Remove declaration.
736 * solib.c (_initialize_solib): Register inferior_execd observer.
737
738 2020-12-04 Tom de Vries <tdevries@suse.de>
739
740 PR gdb/27003
741 * completer.c (completion_tracker::build_completion_result): Don't
742 access match_list[0][-1].
743
744 2020-12-04 Tom Tromey <tromey@adacore.com>
745
746 * linespec.c (struct linespec_token): Rename; remove typedef.
747 * guile/scm-block.c (struct block_smob): Remove typedef.
748 (struct block_syms_progress_smob): Likewise.
749 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
750 * guile/scm-symtab.c (symtab_smob): Remove typedef.
751 (struct sal_smob): Remove typedef.
752 * guile/scm-param.c (struct param_smob): Remove typedef.
753 * guile/scm-progspace.c (struct pspace_smob): Rename.
754 * guile/scm-objfile.c (struct objfile_smob): Rename.
755 * guile/scm-iterator.c (struct iterator_smob): Rename.
756 * guile/scm-frame.c (struct frame_smob): Rename.
757 * guile/scm-arch.c (struct arch_smob): Rename.
758 * guile/scm-type.c (struct field_smob): Remove typedef.
759 (struct type_smob): Rename.
760 * guile/scm-cmd.c (struct command_smob): Remove typedef.
761 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
762 * guile/scm-value.c (struct value_smob): Remove typedef.
763 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
764 * guile/guile-internal.h (struct scheme_variable)
765 (struct scheme_function, struct scheme_integer_constant)
766 (struct gdb_smob, struct chained_gdb_smob)
767 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
768 (objfile_smob, pspace_smob, type_smob): Remove typedef.
769 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
770 (struct pretty_printer_worker_smob): Remove typedef.
771 * guile/scm-exception.c (struct exception_smob): Remove typedef.
772 * python/py-block.c (struct block_object): Remove typedef.
773 (block_syms_iterator_object): Update.
774 (set_block): Update.
775 (block_syms_iterator_object): Remove typedef.
776 * python/py-inferior.c (struct membuf_object): Remove typedef.
777 * python/py-symtab.c (struct symtab_object): Remove typedef.
778 (set_symtab): Update.
779 (sal_object): Remove typedef.
780 (set_sal): Update.
781 * python/py-frame.c (frame_object): Remove typedef.
782 * python/py-record-btrace.c (struct btpy_list_object): Remove
783 typedef.
784 * python/py-arch.c (struct arch_object): Remove typedef.
785 * python/py-linetable.c (struct linetable_entry_object)
786 (linetable_object, struct ltpy_iterator_object): Remove typedef.
787 * python/py-events.h (eventregistry_object): Remove typedef.
788 (struct events_object): Remove typedef.
789 * python/python-internal.h (gdbpy_breakpoint_object): Remove
790 typedef.
791 (thread_object): Remove typedef.
792 * python/py-progspace.c (pspace_object): Remove typedef.
793 * python/py-value.c (struct value_object): Remove typedef.
794 * python/py-record.h (recpy_record_object): Remove typedef.
795 (struct recpy_element_object): Remove typedef.
796 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
797 * python/py-objfile.c (objfile_object): Remove typedef.
798 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
799 * python/py-type.c (type_object): Remove typedef.
800 (typy_iterator_object): Update.
801 (set_type): Update.
802 (field_object): Remove typedef.
803 (typy_iterator_object): Remove typedef.
804 * python/py-registers.c (register_descriptor_iterator_object):
805 Remove typedef.
806 (struct register_descriptor_object)
807 (struct reggroup_iterator_object, struct reggroup_object): Remove
808 typedef.
809 * python/py-record.c (recpy_gap_object): Remove typedef.
810 * python/py-symbol.c (symbol_object): Remove typedef.
811 (set_symbol): Update.
812 * python/py-event.h (event_object): Remove typedef.
813 * python/py-param.c (parmpy_object): Remove typedef.
814 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
815 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
816 (unwind_info_object, struct cached_frame_info): Likewise.
817
818 2020-12-04 Tom Tromey <tromey@adacore.com>
819
820 * value.c (value_internal_function_name): Make return type const.
821 * value.h (value_internal_function_name): Make return type const.
822
823 2020-12-04 Luis Machado <luis.machado@linaro.org>
824
825 * aarch64-tdep.c (submask, bit, bits): Remove.
826 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
827 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
828 (aarch64_decode_cb, aarch64_decode_tb)
829 (aarch64_decode_ldr_literal): Use sbits to extract a signed
830 immediate.
831 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
832
833 2020-12-04 Tom de Vries <tdevries@suse.de>
834
835 PR tdep/27007
836 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
837
838 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
839
840 PR gdb/26876
841 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
842 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
843
844 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
845
846 * arch/riscv.c: Include 'rv32e-xregs.c'.
847 (riscv_create_target_description): Update to handle rv32e.
848 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
849 member variable.
850 <operator==>: Update to account for new field.
851 <hash>: Likewise.
852 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
853 * features/riscv/rv32e-xregs.c: Generated.
854 * features/riscv/rv32e-xregs.xml: New file.
855 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
856 file.
857 (riscv_debug_infcall): Likewise.
858 (riscv_debug_unwinder): Likewise.
859 (riscv_debug_gdbarch): Likewise.
860 (enum riscv_register_required_status): Delete.
861 (struct riscv_register_feature): Add constructor, delete default
862 constructor, copy, and assign constructors.
863 (struct riscv_register_feature::register_info) <required>: Delete.
864 <check>: Update comment and arguments.
865 (struct riscv_register_feature) <name>: Change to member function.
866 <prefer_first_name>: Delete.
867 <tdesc_feature>: New member function.
868 <registers>: Rename to...
869 <m_registers>: ...this.
870 <m_feature_name>: New member variable.
871 (riscv_register_feature::register_info::check): Update arguments.
872 (riscv_xreg_feature): Rewrite as class, create a single static
873 instance of the class.
874 (riscv_freg_feature): Likewise.
875 (riscv_virtual_feature): Likewise.
876 (riscv_csr_feature): Likewise.
877 (riscv_create_csr_aliases): Has become a member function inside
878 riscv_csr_feature class.
879 (riscv_abi_embedded): New function definition.
880 (riscv_register_name): Adjust to use new feature objects.
881 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
882 and adjust available argument registers.
883 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
884 (riscv_check_tdesc_feature): Delete.
885 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
886 (riscv_gdbarch_init): Delete target description checking code, and
887 instead call to the new feature objects to perform the checks.
888 Reorder handling of no abi information case, allows small code
889 simplification.
890 (_initialize_riscv_tdep): Remove call, this is now done in the
891 riscv_csr_feature constructor.
892 * riscv-tdep.h (riscv_abi_embedded): Declare.
893
894 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
897 DECLARE_CSR_ALIAS.
898
899 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * riscv-tdep.c (riscv_is_unknown_csr): New function,
902 implementation moved from riscv_register_reggroup_p.
903 (riscv_register_reggroup_p): Update group handling for unknown
904 CSRs.
905
906 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
907
908 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
909 (dwarf2_get_dwz_file): Convert 'filename' to a
910 std::string. Use dwz_search_other_debugdirs to search for DWZ
911 files in the debug-file-directories provided by the user as well.
912
913 2020-12-01 Tom Tromey <tom@tromey.com>
914
915 * parse.c (expr_builder::expr_builder): Initialize expout.
916 (expr_builder::release): Use expression::resize.
917 (expression::expression, expression::~expression)
918 (expression::resize): New methods.
919 (write_exp_elt): Use expression::resize.
920 (prefixify_expression): Update.
921 (increase_expout_size): Use expression::resize.
922 * expression.h (struct expression): Add constructor, destructor.
923 <resize>: New method.
924 (expression_up): Change type.
925
926 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
927 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
928 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
929 set region.
930
931 2020-11-30 Tom de Vries <tdevries@suse.de>
932
933 PR symtab/26905
934 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
935 is_reference parameter.
936 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
937
938 2020-11-30 Tom Tromey <tom@tromey.com>
939
940 * rust-lang.c (rust_op_name): Remove.
941 (exp_descriptor_rust): Update.
942 * parser-defs.h (op_name_standard): Don't declare.
943 (struct exp_descriptor) <op_name>: Remove.
944 * parse.c (exp_descriptor_standard): Update.
945 * opencl-lang.c (exp_descriptor_opencl): Update.
946 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
947 * f-lang.c (op_name_f): Remove.
948 (f_language::exp_descriptor_tab): Update.
949 * expression.h (op_name): Update.
950 * expprint.c (op_name): Rewrite.
951 (op_name_standard): Remove.
952 (dump_raw_expression, dump_subexp): Update.
953 * c-lang.c (exp_descriptor_c): Update.
954 * ax-gdb.c (gen_expr): Update.
955 * ada-lang.c (ada_op_name): Remove.
956 (ada_exp_descriptor): Update.
957
958 2020-11-30 Tom Tromey <tom@tromey.com>
959
960 * eval.c (init_array_element): Remove.
961 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
962
963 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
964
965 PR tui/26973
966 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
967 static locator win info.
968
969 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
970
971 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
972 program.
973
974 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
977 is always initialized.
978
979 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
980 * MAINTAINERS (Write After Approval): Add myself.
981
982 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
983
984 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
985 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
986
987 2020-11-25 Tom Tromey <tom@tromey.com>
988
989 * eval.c (evaluate_subexp_standard): Remove unnecessary
990 variables.
991
992 2020-11-25 Tom Tromey <tom@tromey.com>
993
994 * d-lang.c: Include parser-defs.h.
995 * rust-lang.c: Include parser-defs.h.
996 * c-lang.h: Do not include parser-defs.h.
997
998 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * regcache.h (struct cached_reg): Remove typedef.
1001
1002 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1003
1004 * README: Fix the URL of the MPFR library.
1005
1006 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1007
1008 * README: Document the --with-libgmp-prefix configure option.
1009
1010 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1011
1012 * NEWS: Add entry documenting support for DWARF-based fixed
1013 point types.
1014
1015 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1016
1017 * NEWS: Document that building GDB now requires GMP.
1018
1019 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1020
1021 * typeprint.c (print_type_scalar): Add handling of
1022 TYPE_CODE_FIXED_POINT.
1023
1024 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1025
1026 * valarith.c (fixed_point_binop): Replace the
1027 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1028 users accordingly.
1029
1030 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1031
1032 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1033 replacing fixed_point_scaling_factor. All callers updated
1034 throughout this project.
1035 (fixed_point_scaling_factor): Delete declaration.
1036 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1037 fixed_point_scaling_factor. Adjust implementation accordingly.
1038
1039 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1040
1041 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1042 replacing the fixed_point_type_base_type function. All callers
1043 updated throughout this project.
1044 (fixed_point_type_base_type): Remove declaration.
1045 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1046 fixed_point_type_base_type. Adjust implementation accordingly.
1047
1048 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1049
1050 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1051 New methods.
1052 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1053 (TYPE_FIXED_POINT_INFO): Delete macro.
1054 (allocate_fixed_point_type_info): Change return type to void.
1055 * gdbtypes.c (copy_type_recursive): Replace the use of
1056 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1057 (fixed_point_scaling_factor): Likewise.
1058 (allocate_fixed_point_type_info): Change return type to void.
1059 Adjust implementation accordingly.
1060 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1061 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1062
1063 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1064
1065 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1066 into one single gdb::array_view parameter.
1067 (gdb_mpz::write): Likewise.
1068 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1069 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1070 into one single gdb::array_view parameter.
1071 Adjust implementation accordingly.
1072 (gdb_mpz::write): Likewise.
1073 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1074 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1075 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1076
1077 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1078
1079 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1080 Change return type to std::string. Update all callers.
1081 * gmp-utils.c (gmp_string_printf): Likewise.
1082
1083 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1084
1085 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1086 instead of mpq_set_ui to initialize our GMP rational.
1087
1088 2020-11-23 Tom de Vries <tdevries@suse.de>
1089
1090 * debuginfod-support.c (debuginfod_source_query)
1091 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1092
1093 2020-11-21 Tom Tromey <tom@tromey.com>
1094
1095 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1096
1097 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1098
1099 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1100 Pass 2.0 to pow.
1101 (gdb_mpz_write_all_from_small): Likewise.
1102
1103 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1106 of abs.
1107
1108 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1109
1110 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1111 ctf_arc_open_by_name.
1112
1113 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1114
1115 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1116 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1117
1118 2020-11-20 Pedro Alves <pedro@palves.net>
1119
1120 * language.c (language_arch_info::lookup_primitive_type): Use
1121 gdb::function_view instead of gdb::function.
1122 (template language_lookup_primitive_type): Rename to ...
1123 (language_lookup_primitive_type_1): ... this, and make static.
1124 (language_lookup_primitive_type(const struct language_defn *,
1125 struct gdbarch *, const char *): Make non-template.
1126 (language_lookup_primitive_type(const struct language_defn *,
1127 struct gdbarch *, std::function<bool (struct type *)>): Make
1128 non-template and use gdb::function_view.
1129 * language.h (language_arch_info::lookup_primitive_type): Use
1130 gdb::function_view instead of std::function.
1131 (language_lookup_primitive_type): No longer template.
1132 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1133 lambda instead of a std::function.
1134
1135 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1136
1137 PR tdep/26916
1138 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1139 and STOCFH.
1140
1141 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1144
1145 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1148 in `loop_cb` parameter.
1149 * gdbarch.c: Re-generate.
1150 * gdbarch.h: Re-generate.
1151 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1152 parameter.
1153 * arch-utils.h (default_read_core_file_mappings): Likewise.
1154 * corelow.c (core_target::build_file_mappings): Likewise.
1155 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1156 (linux_core_info_proc_mappings): Likewise.
1157
1158 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1161 * NEWS: Mention new options.
1162 * f-array-walker.h: New file.
1163 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1164 (repack_array_slices): New static global.
1165 (show_repack_array_slices): New function.
1166 (fortran_array_slicing_debug): New static global.
1167 (show_fortran_array_slicing_debug): New function.
1168 (value_f90_subarray): Delete.
1169 (skip_undetermined_arglist): Delete.
1170 (class fortran_array_repacker_base_impl): New class.
1171 (class fortran_lazy_array_repacker_impl): New class.
1172 (class fortran_array_repacker_impl): New class.
1173 (fortran_value_subarray): Complete rewrite.
1174 (set_fortran_list): New static global.
1175 (show_fortran_list): Likewise.
1176 (_initialize_f_language): Register new commands.
1177 (fortran_adjust_dynamic_array_base_address_hack): New function.
1178 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1179 Declare.
1180 * f-valprint.c: Include 'f-array-walker.h'.
1181 (class fortran_array_printer_impl): New class.
1182 (f77_print_array_1): Delete.
1183 (f77_print_array): Delete.
1184 (fortran_print_array): New.
1185 (f_value_print_inner): Update to call fortran_print_array.
1186 * gdbtypes.c: Include 'f-lang.h'.
1187 (resolve_dynamic_type_internal): Call
1188 fortran_adjust_dynamic_array_base_address_hack.
1189
1190 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * breakpoint.c (struct watch_options): New struct.
1193 (watch_option_defs): New static global.
1194 (make_watch_options_def_group): New function.
1195 (watch_maybe_just_location): Convert option parsing.
1196 (watch_command_completer): New function.
1197 (_initialize_breakpoint): Build help text using options mechanism.
1198
1199 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1202 (watch_command_1): Update parameter types. Convert locals to
1203 bool.
1204 (watch_command_wrapper): Change parameter type.
1205 (watch_maybe_just_location): Change locals to bool.
1206 (rwatch_command_wrapper): Update parameter type.
1207 (awatch_command_wrapper): Update parameter type.
1208 * breakpoint.h (watch_command_wrapper): Change parameter type.
1209 (rwatch_command_wrapper): Update parameter type.
1210 (awatch_command_wrapper): Update parameter type.
1211 * eval.c (fetch_subexp_value): Change parameter type.
1212 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1213 'false' not '0'.
1214 * value.h (fetch_subexp_value): Change parameter type in
1215 declaration.
1216
1217 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1220 skip_spaces.
1221
1222 2020-11-18 Keith Seitz <keiths@redhat.com>
1223
1224 * linux-tdep.c (dump_note_entry_p): Return true instead of
1225 checking `filename'.
1226
1227 2020-11-18 Tom de Vries <tdevries@suse.de>
1228
1229 * debuginfod-support.c (debuginfod_source_query)
1230 (debuginfod_debuginfo_query): Also do early exit if
1231 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1232
1233 2020-11-18 Tom de Vries <tdevries@suse.de>
1234
1235 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1236 warning.
1237
1238 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1241 callers. Move doc here.
1242 * gdbtypes.c (get_array_bounds): Return bool
1243
1244 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1247 assert.
1248 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1249 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1250 case to the default.
1251
1252 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * printcmd.c: Include 'safe-ctype.c'.
1255 (skip_over_slash_fmt): New function.
1256 (print_command_completer): Call skip_over_slash_fmt.
1257 (display_and_x_command_completer): New function.
1258 (_initialize_printcmd): Add command completion for 'x' and
1259 'display'.
1260
1261 2020-11-16 Pedro Alves <pedro@palves.net>
1262
1263 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1264 (get_prev_frame_always_1): ... to here.
1265 * inline-frame.c (inline_frame_this_id): Mention
1266 get_prev_frame_always_1 in comment.
1267
1268 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1269
1270 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1271 handling.
1272 (value_less): Add fixed-point handling.
1273
1274 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1275
1276 * eval.c (binop_promote): Add fixed-point type handling.
1277 * valarith.c (fixed_point_binop): New function.
1278 (scalar_binop): Add fixed-point type handling.
1279 (value_neg): Add fixed-point type handling.
1280 * valops.c (value_cast_to_fixed_point): New function.
1281 (value_cast): Add fixed-point type handling.
1282
1283 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1284
1285 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1286 range types.
1287 * c-typeprint.c (c_type_print_varspec_prefix)
1288 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1289 TYPE_CODE_FIXED_POINT handling.
1290 * p-typeprint.c (pascal_type_print_varspec_prefix)
1291 (pascal_type_print_varspec_suffix): Likewise.
1292 * typeprint.c (print_type_fixed_point): New function.
1293 * typeprint.h (print_type_fixed_point): Add declaration.
1294
1295 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1296
1297 * printcmd.c (print_scalar_formatted): Add fixed-point type
1298 handling when options->format is set.
1299
1300 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1301
1302 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1303 * dwarf2/read.c (get_dwarf2_rational_constant)
1304 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1305 (has_zero_over_zero_small_attribute): New functions.
1306 read_base_type, set_die_type): Add fixed-point type handling.
1307 * gdb-gdb.py.in: Add fixed-point type handling.
1308 * gdbtypes.c: #include "gmp-utils.h".
1309 (create_range_type, set_type_code): Add fixed-point type handling.
1310 (init_fixed_point_type): New function.
1311 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1312 (print_fixed_point_type_info): New function.
1313 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1314 handling.
1315 (fixed_point_type_storage): New typedef.
1316 (fixed_point_objfile_key): New static global.
1317 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1318 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1319 functions.
1320 * gdbtypes.h: #include "gmp-utils.h".
1321 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1322 (union type_specific) <fixed_point_info>: New field.
1323 (struct fixed_point_type_info): New struct.
1324 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1325 (init_fixed_point_type, is_fixed_point_type)
1326 (fixed_point_type_base_type, fixed_point_scaling_factor)
1327 (allocate_fixed_point_type_info): Add declarations.
1328 * valprint.c (generic_val_print_fixed_point): New function.
1329 (generic_value_print): Add fixed-point type handling.
1330 * value.c (value_as_address, unpack_long): Add fixed-point type
1331 handling.
1332
1333 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1334
1335 * utils.h (uinteger_pow): Add declaration.
1336 * utils.c (uinteger_pow): Moved here (without changes)...
1337 * valarith.c (uinteger_pow): ... from here.
1338
1339 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1340
1341 * gmp-utils.h, gmp-utils.c: New file.
1342 * unittests/gmp-utils-selftests.c: New file.
1343 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1344 unittests/gmp-utils-selftests.c.
1345 (COMMON_SFILES) Add gmp-utils.c.
1346 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1347
1348 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1349
1350 * configure.ac: Generate an error if a usable GMP library
1351 could not be found.
1352 * configure: Regenerate.
1353
1354 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1355
1356 * configure.ac: Add support for --with-libgmp-prefix.
1357 * Makefile.in (LIBGMP): New variable.
1358 (CLIBS): Include $(LIBGMP).
1359 * configure, config.in: Regenerate
1360
1361 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 PR cli/26879
1364 * f-exp.y (COMPLETE): New token.
1365 (exp): Two new rules for tab-completion.
1366 (saw_name_at_eof): New static global.
1367 (last_was_structop): Likewise.
1368 (yylex): Set new variables, and return COMPLETE token at the end
1369 of the input stream in some cases.
1370
1371 2020-11-14 Tom Tromey <tom@tromey.com>
1372
1373 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1374
1375 2020-11-14 Tom Tromey <tom@tromey.com>
1376
1377 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1378
1379 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1382
1383 2020-11-13 Tom Tromey <tom@tromey.com>
1384
1385 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1386 (convert_escape, parse_one_string): Constify.
1387
1388 2020-11-13 Keith Seitz <keiths@redhat.com>
1389
1390 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1391 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1392 outside of ELF segments" warning for debugin
1393
1394 2020-11-13 Keith Seitz <keiths@redhat.com>
1395
1396 PR gdb/23034
1397 * elfread.c (elf_symfile_segments): Output a BFD file name
1398 for the "Loadable section ... outside of ELF segments" warning.
1399
1400 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1401
1402 PR gdb/26835
1403 * arm-tdep.c (class arm_instruction_reader): New.
1404 (target_arm_instruction_reader): New.
1405 (arm_analyze_prologue): Add instruction reader parameter and use
1406 it. Use arm_expand_immediate.
1407 (class target_arm_instruction_reader): Adjust.
1408 (arm_skip_prologue): Adjust.
1409 (arm_expand_immediate): New.
1410 (arm_scan_prologue): Adjust.
1411 (arm_analyze_prologue_test): New.
1412 (class test_arm_instruction_reader): New.
1413
1414 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * f-lang.c (fortran_argument_convert): Add declaration. Add
1417 header comment, taken from f-lang.h. Make static.
1418 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1419 (fortran_argument_convert): Delete declaration.
1420
1421 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * ada-exp.y (find_primitive_type): Make parameter const.
1424 * ada-lang.c (enum ada_primitive_types): Delete.
1425 (ada_language::language_arch_info): Update.
1426 * c-lang.c (enum c_primitive_types): Delete.
1427 (c_language_arch_info): Update.
1428 (enum cplus_primitive_types): Delete.
1429 (cplus_language::language_arch_info): Update.
1430 * d-lang.c (enum d_primitive_types): Delete.
1431 (d_language::language_arch_info): Update.
1432 * f-lang.c (enum f_primitive_types): Delete.
1433 (f_language::language_arch_info): Update.
1434 * go-lang.c (enum go_primitive_types): Delete.
1435 (go_language::language_arch_info): Update.
1436 * language.c (auto_or_unknown_language::language_arch_info):
1437 Update.
1438 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1439 (language_string_char_type): Add header comment, call function in
1440 language_arch_info.
1441 (language_bool_type): Likewise
1442 (language_arch_info::bool_type): Define.
1443 (language_lookup_primitive_type_1): Delete.
1444 (language_lookup_primitive_type): Rewrite as a templated function
1445 to call function in language_arch_info, then instantiate twice.
1446 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1447 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1448 (language_arch_info::lookup_primitive_type): Define twice with
1449 different signatures.
1450 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1451 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1452 member function in language_arch_info.
1453 * language.h (language_arch_info): Complete rewrite.
1454 (language_lookup_primitive_type): Make templated.
1455 * m2-lang.c (enum m2_primitive_types): Delete.
1456 (m2_language::language_arch_info): Update.
1457 * opencl-lang.c (OCL_P_TYPE): Delete.
1458 (enum opencl_primitive_types): Delete.
1459 (opencl_type_data): Delete.
1460 (builtin_opencl_type): Delete.
1461 (lookup_opencl_vector_type): Update.
1462 (opencl_language::language_arch_info): Update, lots of content
1463 moved from...
1464 (build_opencl_types): ...here. This function is now deleted.
1465 (_initialize_opencl_language): Delete.
1466 * p-lang.c (enum pascal_primitive_types): Delete.
1467 (pascal_language::language_arch_info): Update.
1468 * rust-lang.c (enum rust_primitive_types): Delete.
1469 (rust_language::language_arch_info): Update.
1470
1471 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1474 dwarf2_queue_guard.
1475
1476 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1479 comment.
1480
1481 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * dwarf2/read.c (dwarf_read_debug_printf,
1484 dwarf_read_debug_printf_v): New macros, use throughout the file.
1485
1486 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1487
1488 PR tdep/27015
1489 * arc-linux-tdep.c (collect_register): Populate "eret" by
1490 "pc" value from the regcache when asked for "pc" value.
1491
1492 2020-11-12 Tom Tromey <tom@tromey.com>
1493
1494 PR rust/26799:
1495 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1496 exist.
1497
1498 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * features/Makefile (XMLTOC): Add rx.xml.
1501 (FEATURE_XMLFILES): Remove rx.xml.
1502 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1503 * features/rx.c: Regenerate.
1504 * features/rx.xml: Wrap in `target` tags, and reindent.
1505 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1506 structure.
1507 (maint_print_c_tdesc_opt_def): New typedef.
1508 (maint_print_c_tdesc_opt_defs): New static global.
1509 (make_maint_print_c_tdesc_options_def_group): New function.
1510 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1511 print single feature C file for target descriptions containing a
1512 single feature.
1513 (maint_print_c_tdesc_cmd_completer): New function.
1514 (_initialize_target_descriptions): Update call to register command
1515 completer, and include command line flag in help text.
1516
1517 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1520 numbers.
1521 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1522 enum values.
1523
1524 2020-11-10 Tom Tromey <tom@tromey.com>
1525
1526 * value.h (internalvar_name): Update.
1527 * value.c (internalvar_name): Make return type const.
1528
1529 2020-11-10 Tom Tromey <tom@tromey.com>
1530
1531 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1532 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1533 const.
1534
1535 2020-11-10 Tom Tromey <tom@tromey.com>
1536
1537 * objc-lang.h (value_nsstring): Update.
1538 * objc-lang.c (value_nsstring): Make "ptr" const.
1539
1540 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 * expprint.c (print_subexp_funcall): Increment expression position
1543 after reading argument count.
1544 * f-lang.c (print_subexp_f): Skip over opcode before calling
1545 common function.
1546 (dump_subexp_body_f): Likewise.
1547
1548 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1549
1550 PR python/26832
1551 * configure: Regenerate.
1552 * configure.ac: Check for python modules ctypes instead of
1553 itertools.
1554
1555 2020-11-06 Pedro Alves <pedro@palves.net>
1556
1557 * macroexp.c (struct macro_buffer): Split in two classes. Add
1558 uses adjusted.
1559 (struct shared_macro_buffer): New, factored out from struct
1560 macro_buffer.
1561 (struct growable_macro_buffer): New, factored out from struct
1562 macro_buffer.
1563 (set_token, get_comment, get_identifier, get_pp_number)
1564 (get_character_constant, get_string_literal, get_punctuator)
1565 (get_next_token_for_substitution): Constify parameters.
1566 (substitute_args): Constify locals.
1567
1568 2020-11-05 Tom Tromey <tom@tromey.com>
1569
1570 * dwarf2/read.c (read_cutu_die_from_dwo)
1571 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1572 (build_type_psymtabs_1): Update.
1573 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1574 parameter.
1575 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1576 Don't read section. Add assert.
1577
1578 2020-11-04 Tom Tromey <tromey@adacore.com>
1579
1580 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1581
1582 2020-11-04 Tom Tromey <tromey@adacore.com>
1583
1584 * ada-typeprint.c (ada_print_type): Handle __T types.
1585
1586 2020-11-04 Tom Tromey <tromey@adacore.com>
1587
1588 * dwarf2/read.c (add_partial_symbol, process_die):
1589 Handle DW_TAG_array_type.
1590 (is_type_tag_for_partial): Add "lang" parameter.
1591 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1592
1593 2020-11-04 Tom Tromey <tromey@adacore.com>
1594
1595 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1596
1597 2020-11-04 Tom Tromey <tromey@adacore.com>
1598
1599 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1600 array.
1601
1602 2020-11-04 Tom Tromey <tromey@adacore.com>
1603
1604 * gdbtypes.c (update_static_array_size): Handle bit stride.
1605
1606 2020-11-04 Tom Tromey <tromey@adacore.com>
1607
1608 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1609
1610 2020-11-04 Tom Tromey <tromey@adacore.com>
1611
1612 * ada-lang.c (ada_is_any_packed_array_type): New function.
1613 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1614
1615 2020-11-04 Tom Tromey <tromey@adacore.com>
1616
1617 * dwarf2/read.c (recognize_bound_expression)
1618 (quirk_ada_thick_pointer): New functions.
1619 (read_array_type): Call quirk_ada_thick_pointer.
1620 (set_die_type): Add "skip_data_location" parameter.
1621 (quirk_ada_thick_pointer): New function.
1622 (process_structure_scope): Call quirk_ada_thick_pointer.
1623 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1624 (decode_packed_array_bitsize): Handle thick pointers without
1625 parallel types.
1626 (ada_is_gnat_encoded_packed_array_type): Rename from
1627 ada_is_packed_array_type.
1628 (ada_is_constrained_packed_array_type): Update.
1629 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1630 (ada_value_print_1): Use ada_get_decoded_value.
1631
1632 2020-11-04 Tom Tromey <tromey@adacore.com>
1633
1634 * ada-lang.c (recursively_update_array_bitsize): New function.
1635 (decode_constrained_packed_array_type): Call it.
1636
1637 2020-11-04 Tom Tromey <tromey@adacore.com>
1638
1639 * ada-lang.c (to_fixed_array_type): Error if
1640 decode_constrained_packed_array_type returns NULL.
1641
1642 2020-11-04 Tom Tromey <tromey@adacore.com>
1643
1644 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1645
1646 2020-11-02 Tom Tromey <tromey@adacore.com>
1647
1648 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1649 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1650 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1651 * amd64-ravenscar-thread.c: New file.
1652 * amd64-ravenscar-thread.h: New file.
1653 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1654 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1655
1656 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * main.c (execute_cmdargs): New function.
1659 (captured_main_1): Make use of execute_cmdargs.
1660
1661 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * NEWS: Mention changes to config file search path.
1664 * main.c
1665
1666 2020-11-02 Tom Tromey <tromey@adacore.com>
1667
1668 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1669 (python_GdbModuleDef): Move earlier. Now static.
1670 (do_start_initialization): Consolidate some IS_PY3K blocks.
1671
1672 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * aarch64-linux-tdep.c: Fix indentation.
1675 * aarch64-ravenscar-thread.c: Fix indentation.
1676 * aarch64-tdep.c: Fix indentation.
1677 * aarch64-tdep.h: Fix indentation.
1678 * ada-lang.c: Fix indentation.
1679 * ada-lang.h: Fix indentation.
1680 * ada-tasks.c: Fix indentation.
1681 * ada-typeprint.c: Fix indentation.
1682 * ada-valprint.c: Fix indentation.
1683 * ada-varobj.c: Fix indentation.
1684 * addrmap.c: Fix indentation.
1685 * addrmap.h: Fix indentation.
1686 * agent.c: Fix indentation.
1687 * aix-thread.c: Fix indentation.
1688 * alpha-bsd-nat.c: Fix indentation.
1689 * alpha-linux-tdep.c: Fix indentation.
1690 * alpha-mdebug-tdep.c: Fix indentation.
1691 * alpha-nbsd-tdep.c: Fix indentation.
1692 * alpha-obsd-tdep.c: Fix indentation.
1693 * alpha-tdep.c: Fix indentation.
1694 * amd64-bsd-nat.c: Fix indentation.
1695 * amd64-darwin-tdep.c: Fix indentation.
1696 * amd64-linux-nat.c: Fix indentation.
1697 * amd64-linux-tdep.c: Fix indentation.
1698 * amd64-nat.c: Fix indentation.
1699 * amd64-obsd-tdep.c: Fix indentation.
1700 * amd64-tdep.c: Fix indentation.
1701 * amd64-windows-tdep.c: Fix indentation.
1702 * annotate.c: Fix indentation.
1703 * arc-tdep.c: Fix indentation.
1704 * arch-utils.c: Fix indentation.
1705 * arch/arm-get-next-pcs.c: Fix indentation.
1706 * arch/arm.c: Fix indentation.
1707 * arm-linux-nat.c: Fix indentation.
1708 * arm-linux-tdep.c: Fix indentation.
1709 * arm-nbsd-tdep.c: Fix indentation.
1710 * arm-pikeos-tdep.c: Fix indentation.
1711 * arm-tdep.c: Fix indentation.
1712 * arm-tdep.h: Fix indentation.
1713 * arm-wince-tdep.c: Fix indentation.
1714 * auto-load.c: Fix indentation.
1715 * auxv.c: Fix indentation.
1716 * avr-tdep.c: Fix indentation.
1717 * ax-gdb.c: Fix indentation.
1718 * ax-general.c: Fix indentation.
1719 * bfin-linux-tdep.c: Fix indentation.
1720 * block.c: Fix indentation.
1721 * block.h: Fix indentation.
1722 * blockframe.c: Fix indentation.
1723 * bpf-tdep.c: Fix indentation.
1724 * break-catch-sig.c: Fix indentation.
1725 * break-catch-syscall.c: Fix indentation.
1726 * break-catch-throw.c: Fix indentation.
1727 * breakpoint.c: Fix indentation.
1728 * breakpoint.h: Fix indentation.
1729 * bsd-uthread.c: Fix indentation.
1730 * btrace.c: Fix indentation.
1731 * build-id.c: Fix indentation.
1732 * buildsym-legacy.h: Fix indentation.
1733 * buildsym.c: Fix indentation.
1734 * c-typeprint.c: Fix indentation.
1735 * c-valprint.c: Fix indentation.
1736 * c-varobj.c: Fix indentation.
1737 * charset.c: Fix indentation.
1738 * cli/cli-cmds.c: Fix indentation.
1739 * cli/cli-decode.c: Fix indentation.
1740 * cli/cli-decode.h: Fix indentation.
1741 * cli/cli-script.c: Fix indentation.
1742 * cli/cli-setshow.c: Fix indentation.
1743 * coff-pe-read.c: Fix indentation.
1744 * coffread.c: Fix indentation.
1745 * compile/compile-cplus-types.c: Fix indentation.
1746 * compile/compile-object-load.c: Fix indentation.
1747 * compile/compile-object-run.c: Fix indentation.
1748 * completer.c: Fix indentation.
1749 * corefile.c: Fix indentation.
1750 * corelow.c: Fix indentation.
1751 * cp-abi.h: Fix indentation.
1752 * cp-namespace.c: Fix indentation.
1753 * cp-support.c: Fix indentation.
1754 * cp-valprint.c: Fix indentation.
1755 * cris-linux-tdep.c: Fix indentation.
1756 * cris-tdep.c: Fix indentation.
1757 * darwin-nat-info.c: Fix indentation.
1758 * darwin-nat.c: Fix indentation.
1759 * darwin-nat.h: Fix indentation.
1760 * dbxread.c: Fix indentation.
1761 * dcache.c: Fix indentation.
1762 * disasm.c: Fix indentation.
1763 * dtrace-probe.c: Fix indentation.
1764 * dwarf2/abbrev.c: Fix indentation.
1765 * dwarf2/attribute.c: Fix indentation.
1766 * dwarf2/expr.c: Fix indentation.
1767 * dwarf2/frame.c: Fix indentation.
1768 * dwarf2/index-cache.c: Fix indentation.
1769 * dwarf2/index-write.c: Fix indentation.
1770 * dwarf2/line-header.c: Fix indentation.
1771 * dwarf2/loc.c: Fix indentation.
1772 * dwarf2/macro.c: Fix indentation.
1773 * dwarf2/read.c: Fix indentation.
1774 * dwarf2/read.h: Fix indentation.
1775 * elfread.c: Fix indentation.
1776 * eval.c: Fix indentation.
1777 * event-top.c: Fix indentation.
1778 * exec.c: Fix indentation.
1779 * exec.h: Fix indentation.
1780 * expprint.c: Fix indentation.
1781 * f-lang.c: Fix indentation.
1782 * f-typeprint.c: Fix indentation.
1783 * f-valprint.c: Fix indentation.
1784 * fbsd-nat.c: Fix indentation.
1785 * fbsd-tdep.c: Fix indentation.
1786 * findvar.c: Fix indentation.
1787 * fork-child.c: Fix indentation.
1788 * frame-unwind.c: Fix indentation.
1789 * frame-unwind.h: Fix indentation.
1790 * frame.c: Fix indentation.
1791 * frv-linux-tdep.c: Fix indentation.
1792 * frv-tdep.c: Fix indentation.
1793 * frv-tdep.h: Fix indentation.
1794 * ft32-tdep.c: Fix indentation.
1795 * gcore.c: Fix indentation.
1796 * gdb_bfd.c: Fix indentation.
1797 * gdbarch.sh: Fix indentation.
1798 * gdbarch.c: Re-generate
1799 * gdbarch.h: Re-generate.
1800 * gdbcore.h: Fix indentation.
1801 * gdbthread.h: Fix indentation.
1802 * gdbtypes.c: Fix indentation.
1803 * gdbtypes.h: Fix indentation.
1804 * glibc-tdep.c: Fix indentation.
1805 * gnu-nat.c: Fix indentation.
1806 * gnu-nat.h: Fix indentation.
1807 * gnu-v2-abi.c: Fix indentation.
1808 * gnu-v3-abi.c: Fix indentation.
1809 * go32-nat.c: Fix indentation.
1810 * guile/guile-internal.h: Fix indentation.
1811 * guile/scm-cmd.c: Fix indentation.
1812 * guile/scm-frame.c: Fix indentation.
1813 * guile/scm-iterator.c: Fix indentation.
1814 * guile/scm-math.c: Fix indentation.
1815 * guile/scm-ports.c: Fix indentation.
1816 * guile/scm-pretty-print.c: Fix indentation.
1817 * guile/scm-value.c: Fix indentation.
1818 * h8300-tdep.c: Fix indentation.
1819 * hppa-linux-nat.c: Fix indentation.
1820 * hppa-linux-tdep.c: Fix indentation.
1821 * hppa-nbsd-nat.c: Fix indentation.
1822 * hppa-nbsd-tdep.c: Fix indentation.
1823 * hppa-obsd-nat.c: Fix indentation.
1824 * hppa-tdep.c: Fix indentation.
1825 * hppa-tdep.h: Fix indentation.
1826 * i386-bsd-nat.c: Fix indentation.
1827 * i386-darwin-nat.c: Fix indentation.
1828 * i386-darwin-tdep.c: Fix indentation.
1829 * i386-dicos-tdep.c: Fix indentation.
1830 * i386-gnu-nat.c: Fix indentation.
1831 * i386-linux-nat.c: Fix indentation.
1832 * i386-linux-tdep.c: Fix indentation.
1833 * i386-nto-tdep.c: Fix indentation.
1834 * i386-obsd-tdep.c: Fix indentation.
1835 * i386-sol2-nat.c: Fix indentation.
1836 * i386-tdep.c: Fix indentation.
1837 * i386-tdep.h: Fix indentation.
1838 * i386-windows-tdep.c: Fix indentation.
1839 * i387-tdep.c: Fix indentation.
1840 * i387-tdep.h: Fix indentation.
1841 * ia64-libunwind-tdep.c: Fix indentation.
1842 * ia64-libunwind-tdep.h: Fix indentation.
1843 * ia64-linux-nat.c: Fix indentation.
1844 * ia64-linux-tdep.c: Fix indentation.
1845 * ia64-tdep.c: Fix indentation.
1846 * ia64-tdep.h: Fix indentation.
1847 * ia64-vms-tdep.c: Fix indentation.
1848 * infcall.c: Fix indentation.
1849 * infcmd.c: Fix indentation.
1850 * inferior.c: Fix indentation.
1851 * infrun.c: Fix indentation.
1852 * iq2000-tdep.c: Fix indentation.
1853 * language.c: Fix indentation.
1854 * linespec.c: Fix indentation.
1855 * linux-fork.c: Fix indentation.
1856 * linux-nat.c: Fix indentation.
1857 * linux-tdep.c: Fix indentation.
1858 * linux-thread-db.c: Fix indentation.
1859 * lm32-tdep.c: Fix indentation.
1860 * m2-lang.c: Fix indentation.
1861 * m2-typeprint.c: Fix indentation.
1862 * m2-valprint.c: Fix indentation.
1863 * m32c-tdep.c: Fix indentation.
1864 * m32r-linux-tdep.c: Fix indentation.
1865 * m32r-tdep.c: Fix indentation.
1866 * m68hc11-tdep.c: Fix indentation.
1867 * m68k-bsd-nat.c: Fix indentation.
1868 * m68k-linux-nat.c: Fix indentation.
1869 * m68k-linux-tdep.c: Fix indentation.
1870 * m68k-tdep.c: Fix indentation.
1871 * machoread.c: Fix indentation.
1872 * macrocmd.c: Fix indentation.
1873 * macroexp.c: Fix indentation.
1874 * macroscope.c: Fix indentation.
1875 * macrotab.c: Fix indentation.
1876 * macrotab.h: Fix indentation.
1877 * main.c: Fix indentation.
1878 * mdebugread.c: Fix indentation.
1879 * mep-tdep.c: Fix indentation.
1880 * mi/mi-cmd-catch.c: Fix indentation.
1881 * mi/mi-cmd-disas.c: Fix indentation.
1882 * mi/mi-cmd-env.c: Fix indentation.
1883 * mi/mi-cmd-stack.c: Fix indentation.
1884 * mi/mi-cmd-var.c: Fix indentation.
1885 * mi/mi-cmds.c: Fix indentation.
1886 * mi/mi-main.c: Fix indentation.
1887 * mi/mi-parse.c: Fix indentation.
1888 * microblaze-tdep.c: Fix indentation.
1889 * minidebug.c: Fix indentation.
1890 * minsyms.c: Fix indentation.
1891 * mips-linux-nat.c: Fix indentation.
1892 * mips-linux-tdep.c: Fix indentation.
1893 * mips-nbsd-tdep.c: Fix indentation.
1894 * mips-tdep.c: Fix indentation.
1895 * mn10300-linux-tdep.c: Fix indentation.
1896 * mn10300-tdep.c: Fix indentation.
1897 * moxie-tdep.c: Fix indentation.
1898 * msp430-tdep.c: Fix indentation.
1899 * namespace.h: Fix indentation.
1900 * nat/fork-inferior.c: Fix indentation.
1901 * nat/gdb_ptrace.h: Fix indentation.
1902 * nat/linux-namespaces.c: Fix indentation.
1903 * nat/linux-osdata.c: Fix indentation.
1904 * nat/netbsd-nat.c: Fix indentation.
1905 * nat/x86-dregs.c: Fix indentation.
1906 * nbsd-nat.c: Fix indentation.
1907 * nbsd-tdep.c: Fix indentation.
1908 * nios2-linux-tdep.c: Fix indentation.
1909 * nios2-tdep.c: Fix indentation.
1910 * nto-procfs.c: Fix indentation.
1911 * nto-tdep.c: Fix indentation.
1912 * objfiles.c: Fix indentation.
1913 * objfiles.h: Fix indentation.
1914 * opencl-lang.c: Fix indentation.
1915 * or1k-tdep.c: Fix indentation.
1916 * osabi.c: Fix indentation.
1917 * osabi.h: Fix indentation.
1918 * osdata.c: Fix indentation.
1919 * p-lang.c: Fix indentation.
1920 * p-typeprint.c: Fix indentation.
1921 * p-valprint.c: Fix indentation.
1922 * parse.c: Fix indentation.
1923 * ppc-linux-nat.c: Fix indentation.
1924 * ppc-linux-tdep.c: Fix indentation.
1925 * ppc-nbsd-nat.c: Fix indentation.
1926 * ppc-nbsd-tdep.c: Fix indentation.
1927 * ppc-obsd-nat.c: Fix indentation.
1928 * ppc-ravenscar-thread.c: Fix indentation.
1929 * ppc-sysv-tdep.c: Fix indentation.
1930 * ppc64-tdep.c: Fix indentation.
1931 * printcmd.c: Fix indentation.
1932 * proc-api.c: Fix indentation.
1933 * producer.c: Fix indentation.
1934 * producer.h: Fix indentation.
1935 * prologue-value.c: Fix indentation.
1936 * prologue-value.h: Fix indentation.
1937 * psymtab.c: Fix indentation.
1938 * python/py-arch.c: Fix indentation.
1939 * python/py-bpevent.c: Fix indentation.
1940 * python/py-event.c: Fix indentation.
1941 * python/py-event.h: Fix indentation.
1942 * python/py-finishbreakpoint.c: Fix indentation.
1943 * python/py-frame.c: Fix indentation.
1944 * python/py-framefilter.c: Fix indentation.
1945 * python/py-inferior.c: Fix indentation.
1946 * python/py-infthread.c: Fix indentation.
1947 * python/py-objfile.c: Fix indentation.
1948 * python/py-prettyprint.c: Fix indentation.
1949 * python/py-registers.c: Fix indentation.
1950 * python/py-signalevent.c: Fix indentation.
1951 * python/py-stopevent.c: Fix indentation.
1952 * python/py-stopevent.h: Fix indentation.
1953 * python/py-threadevent.c: Fix indentation.
1954 * python/py-tui.c: Fix indentation.
1955 * python/py-unwind.c: Fix indentation.
1956 * python/py-value.c: Fix indentation.
1957 * python/py-xmethods.c: Fix indentation.
1958 * python/python-internal.h: Fix indentation.
1959 * python/python.c: Fix indentation.
1960 * ravenscar-thread.c: Fix indentation.
1961 * record-btrace.c: Fix indentation.
1962 * record-full.c: Fix indentation.
1963 * record.c: Fix indentation.
1964 * reggroups.c: Fix indentation.
1965 * regset.h: Fix indentation.
1966 * remote-fileio.c: Fix indentation.
1967 * remote.c: Fix indentation.
1968 * reverse.c: Fix indentation.
1969 * riscv-linux-tdep.c: Fix indentation.
1970 * riscv-ravenscar-thread.c: Fix indentation.
1971 * riscv-tdep.c: Fix indentation.
1972 * rl78-tdep.c: Fix indentation.
1973 * rs6000-aix-tdep.c: Fix indentation.
1974 * rs6000-lynx178-tdep.c: Fix indentation.
1975 * rs6000-nat.c: Fix indentation.
1976 * rs6000-tdep.c: Fix indentation.
1977 * rust-lang.c: Fix indentation.
1978 * rx-tdep.c: Fix indentation.
1979 * s12z-tdep.c: Fix indentation.
1980 * s390-linux-tdep.c: Fix indentation.
1981 * score-tdep.c: Fix indentation.
1982 * ser-base.c: Fix indentation.
1983 * ser-mingw.c: Fix indentation.
1984 * ser-uds.c: Fix indentation.
1985 * ser-unix.c: Fix indentation.
1986 * serial.c: Fix indentation.
1987 * sh-linux-tdep.c: Fix indentation.
1988 * sh-nbsd-tdep.c: Fix indentation.
1989 * sh-tdep.c: Fix indentation.
1990 * skip.c: Fix indentation.
1991 * sol-thread.c: Fix indentation.
1992 * solib-aix.c: Fix indentation.
1993 * solib-darwin.c: Fix indentation.
1994 * solib-frv.c: Fix indentation.
1995 * solib-svr4.c: Fix indentation.
1996 * solib.c: Fix indentation.
1997 * source.c: Fix indentation.
1998 * sparc-linux-tdep.c: Fix indentation.
1999 * sparc-nbsd-tdep.c: Fix indentation.
2000 * sparc-obsd-tdep.c: Fix indentation.
2001 * sparc-ravenscar-thread.c: Fix indentation.
2002 * sparc-tdep.c: Fix indentation.
2003 * sparc64-linux-tdep.c: Fix indentation.
2004 * sparc64-nbsd-tdep.c: Fix indentation.
2005 * sparc64-obsd-tdep.c: Fix indentation.
2006 * sparc64-tdep.c: Fix indentation.
2007 * stabsread.c: Fix indentation.
2008 * stack.c: Fix indentation.
2009 * stap-probe.c: Fix indentation.
2010 * stubs/ia64vms-stub.c: Fix indentation.
2011 * stubs/m32r-stub.c: Fix indentation.
2012 * stubs/m68k-stub.c: Fix indentation.
2013 * stubs/sh-stub.c: Fix indentation.
2014 * stubs/sparc-stub.c: Fix indentation.
2015 * symfile-mem.c: Fix indentation.
2016 * symfile.c: Fix indentation.
2017 * symfile.h: Fix indentation.
2018 * symmisc.c: Fix indentation.
2019 * symtab.c: Fix indentation.
2020 * symtab.h: Fix indentation.
2021 * target-float.c: Fix indentation.
2022 * target.c: Fix indentation.
2023 * target.h: Fix indentation.
2024 * tic6x-tdep.c: Fix indentation.
2025 * tilegx-linux-tdep.c: Fix indentation.
2026 * tilegx-tdep.c: Fix indentation.
2027 * top.c: Fix indentation.
2028 * tracefile-tfile.c: Fix indentation.
2029 * tracepoint.c: Fix indentation.
2030 * tui/tui-disasm.c: Fix indentation.
2031 * tui/tui-io.c: Fix indentation.
2032 * tui/tui-regs.c: Fix indentation.
2033 * tui/tui-stack.c: Fix indentation.
2034 * tui/tui-win.c: Fix indentation.
2035 * tui/tui-winsource.c: Fix indentation.
2036 * tui/tui.c: Fix indentation.
2037 * typeprint.c: Fix indentation.
2038 * ui-out.h: Fix indentation.
2039 * unittests/copy_bitwise-selftests.c: Fix indentation.
2040 * unittests/memory-map-selftests.c: Fix indentation.
2041 * utils.c: Fix indentation.
2042 * v850-tdep.c: Fix indentation.
2043 * valarith.c: Fix indentation.
2044 * valops.c: Fix indentation.
2045 * valprint.c: Fix indentation.
2046 * valprint.h: Fix indentation.
2047 * value.c: Fix indentation.
2048 * value.h: Fix indentation.
2049 * varobj.c: Fix indentation.
2050 * vax-tdep.c: Fix indentation.
2051 * windows-nat.c: Fix indentation.
2052 * windows-tdep.c: Fix indentation.
2053 * xcoffread.c: Fix indentation.
2054 * xml-syscall.c: Fix indentation.
2055 * xml-tdesc.c: Fix indentation.
2056 * xstormy16-tdep.c: Fix indentation.
2057 * xtensa-config.c: Fix indentation.
2058 * xtensa-linux-nat.c: Fix indentation.
2059 * xtensa-linux-tdep.c: Fix indentation.
2060 * xtensa-tdep.c: Fix indentation.
2061
2062 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2063 Craig Blackmore <craig.blackmore@embecosm.com>
2064
2065 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2066 as an unsigned value.
2067
2068 2020-11-01 Tom Tromey <tom@tromey.com>
2069
2070 * dbxread.c (dbx_end_psymtab): Update.
2071 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2072 (build_type_psymtabs_reader): Update.
2073 * xcoffread.c (xcoff_end_psymtab): Update.
2074 * ctfread.c (scan_partial_symbols): Update.
2075 * psymtab.c (sort_pst_symbols): Remove.
2076 (partial_symtab::end): Rename from end_psymtab_common. Inline
2077 sort_pst_symbols.
2078 * psympriv.h (struct partial_symtab) <end>: New method.
2079 (end_psymtab_common): Don't declare.
2080
2081 2020-11-01 Tom Tromey <tom@tromey.com>
2082
2083 * symmisc.c (count_psyms): New function.
2084 (print_objfile_statistics): Use it.
2085 * psymtab.c (append_psymbol_to_list): Remove.
2086 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2087 * objfiles.h (struct objstats) <n_psyms>: Remove.
2088
2089 2020-11-01 Tom Tromey <tom@tromey.com>
2090
2091 * dbxread.c (dbx_end_psymtab): Update.
2092 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2093 (build_type_psymtabs_reader): Update.
2094 * xcoffread.c (xcoff_end_psymtab): Update.
2095 * ctfread.c (scan_partial_symbols): Update.
2096 * psympriv.h (end_psymtab_common): Update.
2097 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2098 (sort_pst_symbols): Likewise.
2099
2100 2020-11-01 Tom Tromey <tom@tromey.com>
2101
2102 * dbxread.c (dbx_symfile_read): Update.
2103 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2104 * xcoffread.c (xcoff_initial_scan): Update.
2105 * psympriv.h (init_psymbol_list): Don't declare.
2106 * psymtab.c (init_psymbol_list): Remove.
2107
2108 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2109
2110 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2111 gnat_encoded_fixed_type_info. Update all callers.
2112
2113 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2114
2115 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2116 line too long.
2117
2118 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2119
2120 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2121 cast_from_fixed. Update all callers.
2122 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2123 Update all callers.
2124 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2125 Update all callers.
2126 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2127 ada_scaling_factor.
2128 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2129 to print_gnat_encoded_fixed_point_type.
2130 * ada-valprint.c: Likewise.
2131
2132 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2135 (debug_prefixed_printf): Add check of debug_displaced flag.
2136 * linux-nat.c (linux_nat_debug_printf): Add check of
2137 debug_linux_nat flag.
2138
2139 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * infrun.c (infrun_debug_printf_1): Remove.
2142 (displaced_debug_printf_1): Remove.
2143 (stop_all_threads): Use debug_prefixed_printf.
2144 * infrun.h (infrun_debug_printf_1): Remove.
2145 (infrun_debug_printf): Use debug_prefixed_printf.
2146 (displaced_debug_printf_1): Remove.
2147 (displaced_debug_printf): Use debug_prefixed_printf.
2148 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2149 (linux_nat_debug_printf): Use debug_prefixed_printf.
2150
2151 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * configure: Re-generate.
2154 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2155 AC_LANG_PROGRAM.
2156
2157 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * configure: Re-generate.
2160
2161 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2162
2163 * configure: Re-generate.
2164
2165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * configure: Re-generate.
2168
2169 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2170
2171 * configure: Re-generate.
2172
2173 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * acinclude.m4: Modernize.
2176 * configure: Re-generate.
2177
2178 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * configure.ac: Modernize.
2181 * configure: Re-generate.
2182
2183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2186 * configure: Re-generate.
2187 * configure.ac: Remove AM_PROG_CC_STDC.
2188
2189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2192 AC_CANONICAL_SYSTEM.
2193 * configure: Re-generate.
2194
2195 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2196
2197 * infrun.h (displaced_debug_printf): New macro. Replace
2198 displaced debug prints throughout to use it.
2199 (displaced_debug_printf_1): New declaration.
2200 (displaced_step_dump_bytes): Return string, remove ui_file
2201 parameter, update all callers.
2202 * infrun.c (displaced_debug_printf_1): New function.
2203 (displaced_step_dump_bytes): Return string, remove ui_file
2204 parameter
2205
2206 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2207
2208 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2209
2210 2020-10-30 Tom Tromey <tromey@adacore.com>
2211
2212 * Makefile.in (stamp-init): Depend on config.status.
2213
2214 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2215
2216 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2217
2218 2020-10-30 Pedro Alves <pedro@palves.net>
2219
2220 * thread.c (lookup_selected_frame): Move ...
2221 * frame.c (lookup_selected_frame): ... here.
2222
2223 2020-10-30 Pedro Alves <pedro@palves.net>
2224
2225 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2226 * frame.c
2227 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2228 Use save_selected_frame. Save language as well.
2229 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2230 Use restore_selected_frame, and restore language as well.
2231 (selected_frame_id, selected_frame_level): New.
2232 (selected_frame): Update comments.
2233 (save_selected_frame, restore_selected_frame): New.
2234 (get_selected_frame): Use lookup_selected_frame.
2235 (get_selected_frame_if_set): Delete.
2236 (select_frame): Record selected_frame_level and selected_frame_id.
2237 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2238 fields.
2239 (get_selected_frame): Make 'message' parameter optional.
2240 (get_selected_frame_if_set): Delete declaration.
2241 (select_frame): Update comments.
2242 (save_selected_frame, restore_selected_frame)
2243 (lookup_selected_frame): Declare.
2244 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2245 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2246 New field.
2247 (save_infcall_control_state): Use save_selected_frame.
2248 (restore_selected_frame): Delete.
2249 (restore_infcall_control_state): Use restore_selected_frame.
2250 * stack.c (select_frame_command_core, frame_command_core): Use
2251 get_selected_frame.
2252 * thread.c (restore_selected_frame): Rename to ...
2253 (lookup_selected_frame): ... this and make extern. Select the
2254 current frame if the frame level is -1.
2255 (scoped_restore_current_thread::restore): Also restore the
2256 language.
2257 (scoped_restore_current_thread::~scoped_restore_current_thread):
2258 Don't try/catch.
2259 (scoped_restore_current_thread::scoped_restore_current_thread):
2260 Save the language as well. Use save_selected_frame.
2261
2262 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2265 documentation.
2266 * gdbarch.h: Re-generate.
2267
2268 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2271 parameter.
2272 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2273 Likewise.
2274 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2275 Likewise.
2276 * arch-utils.c (default_displaced_step_hw_singlestep):
2277 Likewise.
2278 * arch-utils.h (default_displaced_step_hw_singlestep):
2279 Likewise.
2280 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2281 Likewise.
2282 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2283 Likewise.
2284 * gdbarch.c: Re-generate.
2285 * gdbarch.h: Re-generate.
2286 * infrun.c (resume_1): Adjust.
2287
2288 2020-10-29 Tom Tromey <tom@tromey.com>
2289
2290 * progspace.c (program_space::~program_space): Don't call
2291 exec_close.
2292
2293 2020-10-29 Tom Tromey <tom@tromey.com>
2294
2295 * exec.c (exec_target::close): Don't change current program
2296 space.
2297
2298 2020-10-29 Tom Tromey <tom@tromey.com>
2299
2300 * symfile.c (add_symbol_file_command): Update.
2301 * exec.c (program_space::add_target_sections): Rename.
2302 * symfile-mem.c (symbol_file_add_from_memory): Update.
2303 * progspace.h (struct program_space) <add_target_sections>:
2304 Declare new overload.
2305 * exec.h (add_target_sections_of_objfile): Don't declare.
2306
2307 2020-10-29 Tom Tromey <tom@tromey.com>
2308
2309 * solib.c (solib_map_sections): Update.
2310 * exec.c (program_space::add_target_sections): Now a method.
2311 (exec_file_attach): Update.
2312 * exec.h (add_target_sections): Don't declare.
2313 * progspace.h (struct program_space) <add_target_sections>:
2314 Declare.
2315
2316 2020-10-29 Tom Tromey <tom@tromey.com>
2317
2318 * progspace.h (struct program_space) <remove_target_sections>:
2319 Declare.
2320 * exec.c (program_space::remove_target_sections): Now a method.
2321 * exec.h (remove_target_sections): Don't declare.
2322
2323 2020-10-29 Tom Tromey <tom@tromey.com>
2324
2325 * inferior.c (delete_inferior): Update.
2326 * progspace.c (program_space::empty): Rename from
2327 program_space_empty_p. Return bool.
2328 * progspace.h (struct program_space) <empty>: New method.
2329 (program_space_empty_p): Don't declare.
2330
2331 2020-10-29 Tom Tromey <tom@tromey.com>
2332
2333 * progspace.c (program_space::~program_space): Don't call
2334 clear_program_space_solib_cache.
2335 (program_space::clear_solib_cache): Rename from
2336 clear_solib_cache.
2337 * solib.c (handle_solib_event): Update.
2338 * progspace.h (struct program_space) <clear_solib_cache>: New
2339 method.
2340 (clear_program_space_solib_cache): Don't declare.
2341
2342 2020-10-29 Tom Tromey <tom@tromey.com>
2343
2344 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2345 * target.c (info_target_command): Update.
2346 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2347 (symbol_file_clear, reread_symbols): Update.
2348 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2349 * stabsread.c (scan_file_globals): Update.
2350 * solib.c (update_solib_list): Update.
2351 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2352 (svr4_fetch_objfile_link_map, enable_break)
2353 (svr4_relocate_main_executable)
2354 (svr4_iterate_over_objfiles_in_search_order): Update.
2355 * solib-frv.c (lm_base, enable_break)
2356 (frv_relocate_main_executable): Update.
2357 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2358 (frv_fetch_objfile_link_map): Update.
2359 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2360 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2361 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2362 * remote.c (remote_target::get_offsets): Update.
2363 (remote_target::start_remote)
2364 (extended_remote_target::post_attach): Update.
2365 * objfiles.c (entry_point_address_query): Update.
2366 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2367 * minsyms.c (get_symbol_leading_char): Update.
2368 * frame.c (inside_main_func): Update.
2369 * progspace.h (symfile_objfile): Remove macro.
2370
2371 2020-10-29 Tom Tromey <tom@tromey.com>
2372
2373 * exec.c (exec_file_attach): Update.
2374 * progspace.c (program_space::exec_close): Update.
2375 * progspace.h (struct program_space) <ebfd>: Now a
2376 gdb_bfd_ref_ptr.
2377 <set_exec_bfd>: Change argument type.
2378 <exec_bfd>: Update.
2379
2380 2020-10-29 Tom Tromey <tom@tromey.com>
2381
2382 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2383 * symfile.c (reread_symbols): Update.
2384 * symfile-mem.c (add_symbol_file_from_memory_command)
2385 (add_vsyscall_page): Update.
2386 * source-cache.c (source_cache::get_plain_source_lines): Update.
2387 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2388 (svr4_current_sos_direct, svr4_exec_displacement)
2389 (svr4_relocate_main_executable): Update.
2390 (svr4_iterate_over_objfiles_in_search_order): Update.
2391 * solib-frv.c (enable_break2, enable_break): Update.
2392 * solib-dsbt.c (lm_base, enable_break): Update.
2393 * solib-darwin.c (find_program_interpreter)
2394 (darwin_solib_create_inferior_hook): Update.
2395 * sol-thread.c (rw_common, ps_pdmodel): Update.
2396 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2397 * remote.c (compare_sections_command)
2398 (remote_target::trace_set_readonly_regions): Update.
2399 * remote-sim.c (get_sim_inferior_data)
2400 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2401 (gdbsim_target_open, gdbsim_target::files_info): Update.
2402 * exec.h (exec_bfd): Remove macro.
2403 * progspace.c (initialize_progspace): Update.
2404 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2405 Update.
2406 * nto-procfs.c (nto_procfs_target::post_attach)
2407 (nto_procfs_target::create_inferior): Update.
2408 * maint.c (maintenance_info_sections): Update.
2409 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2410 Update.
2411 * infcmd.c (post_create_inferior): Update.
2412 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2413 (objfile_find_memory_regions): Update.
2414 * exec.c (validate_exec_file, exec_file_attach)
2415 (exec_read_partial_read_only, print_section_info): Update.
2416 * corelow.c (core_target_open): Update.
2417 * corefile.c (reopen_exec_file, validate_files): Update.
2418 * arm-tdep.c (gdb_print_insn_arm): Update.
2419 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2420 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2421 methods.
2422
2423 2020-10-29 Tom Tromey <tom@tromey.com>
2424
2425 * progspace.h (current_target_sections): Remove macro.
2426 * solib-svr4.c (scan_dyntag): Update.
2427 * solib-dsbt.c (scan_dyntag): Update.
2428 * exec.c (exec_target::close): Update.
2429 (add_target_sections, add_target_sections_of_objfile)
2430 (remove_target_sections, exec_target::get_section_table)
2431 (exec_target::files_info, set_section_command)
2432 (exec_set_section_address, exec_target::has_memory)
2433 (exec_target::has_memory): Update.
2434
2435 2020-10-29 Tom Tromey <tom@tromey.com>
2436
2437 * source-cache.c (source_cache::get_plain_source_lines): Use
2438 current_program_space.
2439 * corefile.c (reopen_exec_file): Use current_program_space.
2440 * exec.c (exec_file_attach): Use current_program_space.
2441 * exec.h (exec_bfd_mtime): Remove.
2442
2443 2020-10-29 Tom Tromey <tom@tromey.com>
2444
2445 * gcore.c (default_gcore_mach): Remove.
2446 (create_gcore_bfd): Update.
2447
2448 2020-10-29 Tom Tromey <tom@tromey.com>
2449
2450 * progspace.c (program_space::exec_close): New method, from
2451 exec_close in exec.c.
2452 * exec.c (exec_close): Move to progspace.c.
2453 (exec_target::close, exec_file_attach): Update.
2454 * progspace.h (struct program_space) <exec_close>: Declare
2455 method.
2456
2457 2020-10-29 Tom Tromey <tom@tromey.com>
2458
2459 * progspace.h (struct program_space) <exec_filename>: Rename from
2460 pspace_exec_filename. Now a unique_xmalloc_ptr.
2461 * inferior.c (print_selected_inferior): Update.
2462 (print_inferior): Update.
2463 * mi/mi-main.c (print_one_inferior): Update.
2464 * exec.h (exec_filename): Remove macro.
2465 * corefile.c (get_exec_file): Update.
2466 * exec.c (exec_close): Update.
2467 (exec_file_attach): Update.
2468 * progspace.c (clone_program_space): Update.
2469 (print_program_space): Update.
2470
2471 2020-10-29 Tom Tromey <tom@tromey.com>
2472
2473 * target-section.h (struct target_section): Add constructor.
2474 * exec.c (build_section_table, add_target_sections_of_objfile):
2475 Update.
2476 * corelow.c (core_target::build_file_mappings): Update.
2477
2478 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2479
2480 PR gdb/19318
2481 * inferior.c (detach_inferior_command): Restore the current thread.
2482 (kill_inferior_command): Ditto.
2483
2484 2020-10-28 Tom de Vries <tdevries@suse.de>
2485
2486 PR symtab/26772
2487 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2488 map, check it in the "best match" loop.
2489
2490 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * m32c-tdep.c: Remove unused includes.
2493
2494 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * xtensa-tdep.c: Remove includes.
2497
2498 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2499
2500 * breakpoint.c (struct condition_command_opts): New struct.
2501 (condition_command_option_defs): New static global.
2502 (make_condition_command_options_def_group): New function.
2503 (condition_completer): Update to consider the '-force' flag.
2504 (condition_command): Use gdb::option for the '-force' flag.
2505
2506 2020-10-27 Tom de Vries <tdevries@suse.de>
2507
2508 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2509 symbols in section check.
2510
2511 2020-10-27 Tom de Vries <tdevries@suse.de>
2512
2513 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2514
2515 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2516
2517 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2518 * breakpoint.c: Update the help text of the 'condition' and 'break'
2519 commands.
2520 (set_breakpoint_condition): Take a new bool parameter
2521 to control whether condition definition should be forced even when
2522 the condition expression is invalid in all of the current locations.
2523 (condition_command): Update the call to 'set_breakpoint_condition'.
2524 (find_condition_and_thread): Take the "-force-condition" flag into
2525 account.
2526 * linespec.c (linespec_keywords): Add "-force-condition" as an
2527 element.
2528 (FORCE_KEYWORD_INDEX): New #define.
2529 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2530 as a keyword.
2531 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2532 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2533 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2534 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2535
2536 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2537
2538 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2539 * breakpoint.c (set_breakpoint_location_condition): New function.
2540 (set_breakpoint_condition): Disable a breakpoint location if parsing
2541 the condition string gives an error.
2542 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2543 (build_target_condition_list): Ditto.
2544 (build_target_command_list): Ditto.
2545 (build_bpstat_chain): Ditto.
2546 (print_one_breakpoint_location): Ditto.
2547 (print_one_breakpoint): Ditto.
2548 (breakpoint_1): Ditto.
2549 (bp_location::bp_location): Ditto.
2550 (locations_are_equal): Ditto.
2551 (update_breakpoint_locations): Ditto.
2552 (enable_disable_bp_num_loc): Ditto.
2553 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2554 (find_condition_and_thread_for_sals): New static function.
2555 (create_breakpoint): Call find_condition_and_thread_for_sals.
2556 (location_to_sals): Call find_condition_and_thread_for_sals instead
2557 of find_condition_and_thread.
2558
2559 2020-10-26 Tom de Vries <tdevries@suse.de>
2560
2561 * dwarf2/read.c (process_full_comp_unit): Call
2562 dwarf2_find_base_address.
2563
2564 2020-10-26 Tom Tromey <tromey@adacore.com>
2565
2566 * gdbtypes.c (create_range_type): Revert previous patch. Add
2567 comment.
2568
2569 2020-10-26 Pedro Alves <pedro@palves.net>
2570
2571 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2572 (my_waitpid): Use gdb::handle_eintr.
2573
2574 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * acinclude.m4: Update ptrace.m4 path.
2577 * ptrace.m4: Moved to gdbsupport.
2578
2579 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2582 instead of target_gdbarch.
2583
2584 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * jit.c (jit_reader_load_command): Pass current inferior.
2587 (jit_inferior_init): Change parameter type to inferior, use it.
2588 (jit_inferior_created): Remove.
2589 (jit_inferior_created_hook): Pass inferior parameter down.
2590 (_initialize_jit): Use jit_inferior_created_hook instead of
2591 jit_inferior_created.
2592 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2593 * infrun.c (follow_exec): Pass inferior to
2594 jit_inferior_created_hook.
2595
2596 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2599 parameter and use it.
2600 (thread_db_inferior_created): Pass inferior argument.
2601
2602 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * aix-thread.c (aix_thread_inferior_created): Add inferior
2605 parameter.
2606 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2607 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2608 * jit.c (jit_inferior_created): Likewise.
2609 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2610 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2611 * observable.h (inferior_created): Likewise.
2612 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2613 * symfile-mem.c (add_vsyscall_page): Likewise.
2614 * infcmd.c (post_create_inferior): Pass inferior argument.
2615
2616 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2617
2618 GDB 10.1 released.
2619
2620 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2621
2622 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2623 to ada_check_typedef.
2624
2625 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * f-exp.y (f_parse): Rename to...
2628 (f_language::parser): ...this.
2629 * f-lang.c (f_get_encoding): Rename to...
2630 (f_language::get_encoding): ...this.
2631 (f_op_print_tab): Rename to...
2632 (f_language::op_print_tab): ...this.
2633 (exp_descriptor_f): Rename to...
2634 (f_language::exp_descriptor_tab): ...this.
2635 (class f_language): Moved to f-lang.h.
2636 (f_language::language_arch_info): New function, moved out of class
2637 declaration.
2638 (f_language::search_name_hash): Likewise.
2639 (f_language::lookup_symbol_nonlocal): Likewise.
2640 (f_language::get_symbol_name_matcher_inner): Likewise.
2641 * f-lang.h: Add 'valprint.h' include.
2642 (class f_language): Moved here from f-lang.c.
2643 * f-typeprint.c (f_type_print_args): Delete commented out
2644 declaration.
2645 (f_print_typedef): Rename to...
2646 (f_language::print_typedef): ...this.
2647 (f_print_type): Rename to...
2648 (f_language::print_type): ...this.
2649 (f_type_print_varspec_prefix): Delete declaration and rename to...
2650 (f_language::f_type_print_varspec_prefix): ...this.
2651 (f_type_print_varspec_suffix): Delete declaration and rename to...
2652 (f_language::f_type_print_varspec_suffix): ...this.
2653 (f_type_print_base): Delete declaration and rename to...
2654 (f_language::f_type_print_base): ...this.
2655 * f-valprint.c (f_value_print_inner): Rename to...
2656 (f_language::value_print_inner): ...this.
2657 * parse.c: Delete 'f-lang.h' include.
2658
2659 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * language.h (language_defn::print_type): Add variable names in
2662 declaration, and update header comment.
2663
2664 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * ada-lang.c (ada_language::demangle): Rename to...
2667 (ada_language::demangle_symbol): ...this.
2668 * c-lang.c (cplus_language::demangle): Rename to...
2669 (cplus_language::demangle_symbol): ...this.
2670 * d-lang.c (d_language::demangle): Rename to...
2671 (d_language::demangle_symbol): ...this.
2672 * f-lang.c (f_language::demangle): Rename to...
2673 (f_language::demangle_symbol): ...this.
2674 * go-lang.c (go_language::demangle): Rename to...
2675 (go_language::demangle_symbol): ...this.
2676 * language.c (language_demangle): Update call to demangle_symbol.
2677 (auto_or_unknown_language::demangle): Rename to...
2678 (auto_or_unknown_language::demangle_symbol): ...this.
2679 * language.h (language_defn::demangle): Rename to...
2680 (language_defn::demangle_symbol): ...this.
2681 * objc-lang.c (objc_language::demangle): Rename to...
2682 (objc_language::demangle_symbol): ...this.
2683 * rust-lang.c (rust_language::demangle): Rename to...
2684 (rust_language::demangle_symbol): ...this.
2685
2686 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2687
2688 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2689 (iterate_over_file_blocks): Replace use of macro with the macros
2690 definition.
2691
2692 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2695 * valprint.c (maybe_print_array_index): Replace use of macro with
2696 the macros definition.
2697
2698 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * ada-lang.c (ada_language::print_array_index): Call value_print
2701 directly.
2702 * language.c (language_defn::print_array_index): Likewise.
2703 * language.h (LA_VALUE_PRINT): Delete.
2704 * valprint.c (value_print): Call value_print on the
2705 current_language directly.
2706
2707 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2708
2709 * language.h (LA_PRINT_TYPEDEF): Delete.
2710 * typeprint.c (typedef_print): Call print_typedef directly on the
2711 current_language object.
2712
2713 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2714
2715 * m2-exp.y (m2_parse): Rename to...
2716 (m2_language::parser): ...this. Update function signature.
2717 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2718 (m2_op_print): Rename to...
2719 (m2_language::op_print_tab): ...this, and make const.
2720 (exp_descriptor_modula2): Rename to...
2721 (m2_language::exp_descriptor_modula2): ...this.
2722 (class m2_language): Move to m2-lang.h.
2723 (m2_language::language_arch_info): New function, moved out of
2724 class declaration.
2725 (m2_language::printchar): New function, body from m2_printchar.
2726 (m2_language::printstr): New function, moved out of class
2727 declaration.
2728 (m2_language::emitchar): Likewise.
2729 * m2-lang.h (m2_parse): Delete declaration.
2730 (m2_print_typedef): Delete declaration.
2731 (m2_value_print_inner): Delete declaration.
2732 (class m2_language): Class declaration moved from m2-lang.c,
2733 larger functions are left in m2-lang.c.
2734 * m2-typeprint.c (m2_print_typedef): Rename to...
2735 (m2_language::print_typedef): ...this, and update function
2736 signature.
2737 * m2-valprint.c (m2_value_print_inner): Rename to...
2738 (m2_language::value_print_inner): ...this, replace use of
2739 LA_PRINT_STRING with a direct call to printstr member function,
2740 and update recursive call.
2741
2742 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * language.c (default_is_string_type_p): Delete, implementation
2745 moved into auto_or_unknown_language::is_string_type_p.
2746 (unk_op_print_tab): Moved into
2747 auto_or_unknown_language::opcode_print_table.
2748 (unknown_language_arch_info): Delete, implementation moved into
2749 auto_or_unknown_language::language_arch_info.
2750 (class auto_or_unknown_language): New class, member functions
2751 copied from unknown_language class, with some updates.
2752 (class unknown_language): Most member functions moved into
2753 auto_or_unknown_language class. Inherit from
2754 auto_or_unknown_language class.
2755 (class auto_language): Inherit from auto_or_unknown_language.
2756 Delete most member functions.
2757
2758 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2759
2760 * stabsread.c (read_member_functions): Remove gdb_assert.
2761
2762 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2763
2764 * gdbtypes.c (init_complex_type): Check target type name.
2765
2766 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * target-debug.h (target_debug_print_struct_target_ops_p):
2769 Remove.
2770 (target_debug_print_async_callback_ftype_p): Remove.
2771 (target_debug_print_struct_trace_state_variable_p): Remove.
2772 (target_debug_print_struct_traceframe_info_p): Remove.
2773 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2774 (target_debug_print_enum_btrace_format): Remove.
2775 (target_debug_print_enum_info_proc_what): Remove.
2776 (target_debug_print_thread_info_pp): Remove.
2777
2778 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * target.h (struct target_ops) <make_corefile_notes>:
2781 Change return type to unique pointer.
2782 * target.c (dummy_make_corefile_notes): Likewise.
2783 * exec.c (struct exec_target) <make_corefile_notes>:
2784 Likewise.
2785 (exec_target::make_corefile_notes): Likewise.
2786 * procfs.c (class procfs_target) <make_corefile_notes>:
2787 Likewise.
2788 (procfs_do_thread_registers): Adjust to unique pointer.
2789 (struct procfs_corefile_thread_data): Add constructor.
2790 <note_data>: Change type to unique pointer.
2791 (procfs_corefile_thread_callback): Adjust to unique pointer.
2792 (procfs_target::make_corefile_notes): Change return type to
2793 unique pointer.
2794 * target-delegates.c: Re-generate.
2795 * gcore.c (write_gcore_file_1): Adjust.
2796 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2797 New.
2798
2799 2020-10-22 Tom de Vries <tdevries@suse.de>
2800
2801 * block.c (find_block_in_blockvector): Make sure the returned block
2802 contains pc.
2803
2804 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 PR gdb/26693
2807 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2808 parameter.
2809 (load_cu): Pass existing CU.
2810 (process_imported_unit_die): Likewise.
2811 (follow_die_offset): Likewise.
2812
2813 2020-10-22 Luis Machado <luis.machado@linaro.org>
2814
2815 * corelow.c (core_target::xfer_partial): Also check for an empty
2816 m_core_unavailable_mappings vector.
2817
2818 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2821 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2822 * f-exp.y (arglist): Allow for a series of subranges.
2823 (subrange): Add cases for subranges with strides.
2824 * f-lang.c (value_f90_subarray): Catch use of array strides and
2825 throw an error.
2826 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2827
2828 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * expprint.c (print_subexp_standard): Change enum range_type to
2831 range_flag and rename variables to match.
2832 (dump_subexp_body_standard): Likewise.
2833 * expression.h (enum range_type): Rename to...
2834 (enum range_flag): ...this.
2835 (range_types): Rename to...
2836 (range_flags): ...this.
2837 * f-lang.c (value_f90_subarray): Change enum range_type to
2838 range_flag and rename variables to match.
2839 * parse.c (operator_length_standard): Likewise.
2840 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2841 range_type to range_flag.
2842 * rust-lang.c (rust_evaluate_funcall): Likewise.
2843 (rust_range): Likewise.
2844 (rust_compute_range): Likewise.
2845 (rust_subscript): Likewise.
2846
2847 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * expprint.c (print_subexp_standard): Update to reflect changes to
2850 enum range_type.
2851 (dump_subexp_body_standard): Likewise.
2852 * expression.h (enum range_type): Convert to a bit field enum, and
2853 make the enum unsigned.
2854 * f-exp.y (subrange): Update to reflect changes to enum
2855 range_type.
2856 * f-lang.c (value_f90_subarray): Likewise.
2857 * parse.c (operator_length_standard): Likewise.
2858 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2859 * rust-lang.c (rust_range): Likewise.
2860 (rust_compute_range): Likewise.
2861 (rust_subscript): Likewise.
2862
2863 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2866 (displaced_step_in_progress): Fix comment.
2867
2868 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2871 * gdbarch.c: Re-generate.
2872 * gdbarch.h: Re-generate.
2873 * gcore.c (write_gcore_file_1): Adjust.
2874 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2875 constructor.
2876 <note_data>: Change type to unique pointer.
2877 <abort_iteration>: Change type to bool.
2878 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2879 (fbsd_collect_thread_registers): Return void, adjust.
2880 (struct fbsd_corefile_thread_data): Add construtor.
2881 <note_data>: Change type to unique pointer.
2882 (fbsd_corefile_thread): Adjust.
2883 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2884 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2885 to unique pointer, adjust.
2886 (struct linux_collect_regset_section_cb_data): Add constructor.
2887 <note_data>: Change type to unique pointer.
2888 <abort_iteration>: Change type to bool.
2889 (linux_collect_thread_registers): Return void, adjust.
2890 (struct linux_corefile_thread_data): Add constructor.
2891 <note_data>: Change type to unique pointer.
2892 (linux_corefile_thread): Adjust.
2893 (linux_make_corefile_notes): Return unique pointer, adjust.
2894
2895 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2898 * gdbarch.c: Re-generate.
2899 * gdbarch.h: Re-generate.
2900 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2901 bool.
2902 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2903 Likewise.
2904 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2905 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2906 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2907 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2908
2909 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * gdbarch.sh: Make generated predicates return bool.
2912 * gdbarch.c: Re-generate.
2913 * gdbarch.h: Re-generate.
2914
2915 2020-10-20 Tom Tromey <tom@tromey.com>
2916
2917 * varobj-iter.h (struct varobj_item): Remove typedef.
2918
2919 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * infrun.c (currently_stepping): Change int to bool
2922 (maybe_software_singlestep): Likewise.
2923 (show_stop_on_solib_events): Likewise.
2924 (stepping_past_nonsteppable_watchpoint): Likewise.
2925 (displaced_step_in_progress_any_inferior): Likewise.
2926 (displaced_step_in_progress_thread): Likewise.
2927 (keep_going_stepped_thread): Likewise.
2928 (thread_still_needs_step_over): Likewise.
2929 (start_step_over): Likewise.
2930 (do_target_resume): Likewise.
2931 (resume_1): Likewise.
2932 (clear_proceed_status): Likewise.
2933 (thread_still_needs_step_over_bp): Likewise.
2934 (proceed): Likewise.
2935 (switch_back_to_stepped_thread): Likewise.
2936 (adjust_pc_after_break): Likewise.
2937 (stepped_in_from): Likewise.
2938 (handle_stop_requested): Likewise.
2939 (handle_syscall_event): Likewise.
2940 (handle_no_resumed): Likewise.
2941 (handle_inferior_event): Likewise.
2942 (finish_step_over): Likewise.
2943 (handle_signal_stop): Likewise.
2944 (process_event_stop_test): Likewise.
2945
2946 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * infrun.c (get_displaced_stepping_state): Fix comment.
2949
2950 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2951
2952 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2953
2954 2020-10-19 Tom Tromey <tromey@adacore.com>
2955
2956 PR tui/26719
2957 * tui/tui-winsource.h (struct tui_source_window_base)
2958 <refresh_window>: Rename from refresh_pad.
2959 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2960 Rename from refresh_pad.
2961 (tui_source_window_base::show_source_content)
2962 (tui_source_window_base::do_scroll_horizontal): Update.
2963
2964 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965
2966 * thread.c (_initialize_thread): Fine-tune the help text of
2967 'info threads'.
2968
2969 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2970
2971 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2972
2973 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2974
2975 * breakpoint.c (handle_jit_event): Add an argument, change how
2976 `jit_event_handler` is called.
2977
2978 2020-10-17 Tom Tromey <tom@tromey.com>
2979
2980 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2981 (scan_xcoff_symtab): Update.
2982 * psymtab.h (class psymtab_storage) <global_psymbols,
2983 static_psymbols, current_global_psymbols,
2984 current_static_psymbols>: Remove.
2985 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2986 (match_partial_symbol, lookup_partial_symbol): Update.
2987 (print_partial_symbols): Change parameters.
2988 (dump_psymtab, recursively_search_psymtabs)
2989 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2990 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2991 (concat): Remove.
2992 (end_psymtab_common): Simplify.
2993 (append_psymbol_to_list): Change parameters.
2994 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2995 (init_psymbol_list): Simplify.
2996 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2997 * psympriv.h (struct partial_symtab) <empty>: New method.
2998 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2999 Remove.
3000 <global_psymbols, static_psymbols>: New members.
3001 <add_psymbol>: New methods.
3002 (add_psymbol_to_list): Don't declare.
3003 (psymbol_placement): Move earlier.
3004 * mdebugread.c (parse_partial_symbols): Update.
3005 (handle_psymbol_enumerators): Change parameters.
3006 (mdebug_expand_psymtab): Update.
3007 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3008 (add_partial_symbol): Update.
3009 * dwarf2/index-write.c (write_psymbols): Change parameters.
3010 (write_one_signatured_type): Update.
3011 (recursively_count_psymbols): Update.
3012 (recursively_write_psymbols): Update.
3013 (class debug_names) <recursively_write_psymbols>: Update.
3014 <write_psymbols>: Change parameters.
3015 <write_one_signatured_type>: Update.
3016 * dbxread.c (read_dbx_symtab): Update.
3017 (dbx_end_psymtab): Use partial_symtab::empty.
3018 * ctfread.c (struct ctf_context) <pst>: New member.
3019 (create_partial_symtab): Set it.
3020 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3021 (scan_partial_symbols): Use the psymtab's context. Update.
3022
3023 2020-10-17 Tom Tromey <tom@tromey.com>
3024
3025 * valprint.c (generic_value_print): Remove comment.
3026 * m2-valprint.c (m2_value_print_inner): Remove comment.
3027 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3028 type.
3029
3030 2020-10-17 Tom de Vries <tdevries@suse.de>
3031
3032 PR symtab/26317
3033 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3034 symbol main.
3035
3036 2020-10-14 Tom de Vries <tdevries@suse.de>
3037
3038 PR gdb/26733
3039 * solib.c (solib_contains_address_p): Handle
3040 'solib->sections == nullptr'.
3041
3042 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 PR gdb/26642
3045 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3046 target can't do async.
3047 * target.c (target_wait): Assert that we don't pass
3048 TARGET_WNOHANG to a target that can't async.
3049
3050 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3051
3052 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3053 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3054 * alpha-bsd-nat.c: Adjust include.
3055 * alpha-bsd-tdep.h: Adjust comment.
3056 * alpha-nbsd-tdep.c: Rename to ...
3057 * alpha-netbsd-tdep.c: ... this, adjust include.
3058 * amd64-nbsd-nat.c: Rename to ...
3059 * amd64-netbsd-nat.c: ... this, adjust include.
3060 * amd64-nbsd-tdep.c: Rename to ...
3061 * amd64-netbsd-tdep.c: ... this, adjust include.
3062 * amd64-tdep.h: Adjust include.
3063 * arm-nbsd-nat.c: Rename to ...
3064 * arm-netbsd-nat.c: ... this, adjust include.
3065 * arm-nbsd-tdep.c: Rename to ...
3066 * arm-netbsd-tdep.c: ... this, adjust include.
3067 * arm-nbsd-tdep.h: Rename to ...
3068 * arm-netbsd-tdep.h: ... this, adjust include.
3069 * configure.nat: Adjust file lists.
3070 * configure.tgt: Likewise.
3071 * hppa-nbsd-nat.c: Rename to ...
3072 * hppa-netbsd-nat.c: ... this, adjust include.
3073 * hppa-nbsd-tdep.c: Rename to ...
3074 * hppa-netbsd-tdep.c: ... this, adjust include.
3075 * i386-nbsd-nat.c: Rename to ...
3076 * i386-netbsd-nat.c: ... this, adjust include.
3077 * i386-nbsd-tdep.c: Rename to ...
3078 * i386-netbsd-tdep.c: ... this, adjust include.
3079 * m68k-bsd-nat.c: Adjust include.
3080 * mips-nbsd-nat.c: Rename to ...
3081 * mips-netbsd-nat.c: ... this, adjust include.
3082 * mips-nbsd-tdep.c: Rename to ...
3083 * mips-netbsd-tdep.c: ... this, adjust include.
3084 * mips-nbsd-tdep.h: Rename to ...
3085 * mips-netbsd-tdep.h: ... this.
3086 * nbsd-nat.c: Rename to ...
3087 * netbsd-nat.c: ... this, adjust include.
3088 * nbsd-nat.h: Rename to ...
3089 * netbsd-nat.h: ... this, adjust include.
3090 * nbsd-tdep.c: Rename to ...
3091 * netbsd-tdep.c: ... this, adjust include.
3092 * nbsd-tdep.h: Rename to ...
3093 * netbsd-tdep.h: ... this.
3094 * ppc-nbsd-nat.c: Rename to ...
3095 * ppc-netbsd-nat.c: ... this, adjust include.
3096 * ppc-nbsd-tdep.c: Rename to ...
3097 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3098 * ppc-nbsd-tdep.h: Rename to ...
3099 * ppc-netbsd-tdep.h: ... this.
3100 * sh-nbsd-nat.c: Rename to ...
3101 * sh-netbsd-nat.c: ... this, adjust include.
3102 * sh-nbsd-tdep.c: Rename to ...
3103 * sh-netbsd-tdep.c: ... this, adjust include.
3104 * sparc-nbsd-nat.c: Rename to ...
3105 * sparc-netbsd-nat.c: ... this.
3106 * sparc-nbsd-tdep.c: Rename to ...
3107 * sparc-netbsd-tdep.c: ... this, adjust include.
3108 * sparc64-nbsd-nat.c: Rename to ...
3109 * sparc64-netbsd-nat.c: ... this.
3110 * sparc64-nbsd-tdep.c: Rename to ...
3111 * sparc64-netbsd-tdep.c: ... this, adjust include.
3112 * sparc64-tdep.h: Adjust comment.
3113 * vax-bsd-nat.c: Adjust include.
3114 * vax-nbsd-tdep.c: Rename to ...
3115 * vax-netbsd-tdep.c: ... this, adjust include.
3116
3117 2020-10-12 Tom Tromey <tom@tromey.com>
3118
3119 * target.h (struct target_ops) <get_section_table>: Update.
3120 (target_get_section_table): Update.
3121 * target.c (target_get_section_table, target_section_by_addr)
3122 (memory_xfer_partial_1): Update.
3123 * target-section.h (target_section_table): Now an alias.
3124 * target-delegates.c: Rebuild.
3125 * target-debug.h (target_debug_print_target_section_table_p):
3126 Rename from target_debug_print_struct_target_section_table_p.
3127 * symfile.c (build_section_addr_info_from_section_table): Update.
3128 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3129 * solib-svr4.c (scan_dyntag): Update.
3130 * solib-dsbt.c (scan_dyntag): Update.
3131 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3132 Update.
3133 * record-full.c (record_full_core_target::xfer_partial): Update.
3134 * progspace.h (struct program_space) <target_sections>: Update.
3135 * exec.h (print_section_info): Update.
3136 * exec.c (exec_target::close, build_section_table)
3137 (add_target_sections, add_target_sections_of_objfile)
3138 (remove_target_sections, exec_on_vfork)
3139 (section_table_available_memory)
3140 (section_table_xfer_memory_partial)
3141 (exec_target::get_section_table, exec_target::xfer_partial)
3142 (print_section_info, set_section_command)
3143 (exec_set_section_address, exec_target::has_memory): Update.
3144 * corelow.c (core_target::build_file_mappings)
3145 (core_target::xfer_partial, core_target::info_proc_mappings)
3146 (core_target::info_proc_mappings): Update.
3147 * bfd-target.c (class target_bfd): Update
3148
3149 2020-10-12 Tom Tromey <tom@tromey.com>
3150
3151 * progspace.c (program_space::~program_space): Don't call
3152 clear_section_table.
3153 * exec.h (clear_section_table): Don't declare.
3154 * exec.c (exec_target::close): Update.
3155 (clear_section_table): Remove.
3156
3157 2020-10-12 Tom Tromey <tom@tromey.com>
3158
3159 * exec.c (add_target_sections_of_objfile): Simplify.
3160
3161 2020-10-12 Tom Tromey <tom@tromey.com>
3162
3163 * solib.c (solib_map_sections): Update.
3164 * record-full.c (record_full_core_open_1): Update.
3165 * exec.h (build_section_table): Return a target_section_table.
3166 * exec.c (exec_file_attach): Update.
3167 (build_section_table): Return a target_section_table.
3168 * corelow.c (core_target::core_target): Update.
3169 * bfd-target.c (target_bfd::target_bfd): Update.
3170
3171 2020-10-12 Tom Tromey <tom@tromey.com>
3172
3173 * target.c (target_section_by_addr, memory_xfer_partial_1):
3174 Update.
3175 * target-section.h (struct target_section_table): Use
3176 std::vector.
3177 * symfile.h (build_section_addr_info_from_section_table): Take a
3178 target_section_table.
3179 * symfile.c (build_section_addr_info_from_section_table): Take a
3180 target_section_table.
3181 * solist.h (struct so_list) <sections>: Change type.
3182 <sections_end>: Remove.
3183 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3184 (solib_contains_address_p): Update.
3185 * solib-svr4.c (scan_dyntag): Update.
3186 * solib-dsbt.c (scan_dyntag): Update.
3187 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3188 Update.
3189 * record-full.c (record_full_core_start, record_full_core_end):
3190 Remove.
3191 (record_full_core_sections): New global.
3192 (record_full_core_open_1, record_full_core_target::xfer_partial):
3193 Update.
3194 * exec.h (build_section_table, section_table_xfer_memory_partial)
3195 (add_target_sections): Take a target_section_table.
3196 * exec.c (exec_file_attach, clear_section_table): Update.
3197 (resize_section_table): Remove.
3198 (build_section_table, add_target_sections): Take a
3199 target_section_table.
3200 (add_target_sections_of_objfile, remove_target_sections)
3201 (exec_on_vfork): Update.
3202 (section_table_available_memory): Take a target_section_table.
3203 (section_table_read_available_memory): Update.
3204 (section_table_xfer_memory_partial): Take a target_section_table.
3205 (print_section_info, set_section_command)
3206 (exec_set_section_address, exec_target::has_memory): Update.
3207 * corelow.c (class core_target) <m_core_section_table,
3208 m_core_file_mappings>: Remove braces.
3209 <~core_target>: Remove.
3210 (core_target::core_target): Update.
3211 (core_target::~core_target): Remove.
3212 (core_target::build_file_mappings)
3213 (core_target::xfer_memory_via_mappings)
3214 (core_target::xfer_partial, core_target::info_proc_mappings):
3215 Update.
3216 * bfd-target.c (target_bfd::xfer_partial): Update.
3217 (target_bfd::target_bfd): Update.
3218 (target_bfd::~target_bfd): Remove.
3219
3220 2020-10-12 Tom Tromey <tom@tromey.com>
3221
3222 * target.h (struct target_section, struct target_section_table):
3223 Move to target-section.h.
3224 * target-section.h: New file.
3225
3226 2020-10-12 Pedro Alves <pedro@palves.net>
3227
3228 PR exp/26602
3229 * valops.c (struct struct_field_searcher): New.
3230 (update_search_result): Rename to ...
3231 (struct_field_searcher::update_result): ... this. Simplify
3232 prototype. Record all found fields.
3233 (do_search_struct_field): Rename to ...
3234 (struct_field_searcher::search): ... this. Simplify prototype.
3235 Maintain stack of visited baseclass path. Call update_result for
3236 fields too. Keep searching fields in baseclasses instead of
3237 stopping at the first found field.
3238 (search_struct_field): Use struct_field_searcher. When looking
3239 for fields, report ambiguous access attempts.
3240
3241 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * frame.c (inside_main_func): Check full symbols as well as
3244 minimal symbols.
3245
3246 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3247
3248 * ada-lang.c (advance_wild_match): Rewrite the function's
3249 description. Change the type of target0, t0 and t1 to char.
3250
3251 2020-10-09 Tom Tromey <tromey@adacore.com>
3252
3253 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3254
3255 2020-10-09 Tom Tromey <tromey@adacore.com>
3256
3257 * ada-lang.h (ada_encode): Return std::string.
3258 * ada-lang.c (ada_encode_1): Return std::string.
3259 (ada_encode): Likewise.
3260 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3261 Update.
3262 * ada-exp.y (block_lookup, write_var_or_type): Update.
3263
3264 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3265
3266 PR exp/26714
3267 * printcmd.c (print_formatted): Handle void results as
3268 unformatted prints.
3269
3270 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * arch/aarch32.c (aarch32_create_target_description): Release the
3273 target_desc_up as late as possible.
3274 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3275 * arch/amd64.c (amd64_create_target_description): Likewise.
3276 * arch/arc.c (arc_create_target_description): Return a
3277 target_desc_up, don't release it.
3278 * arch/arc.h (arc_create_target_description): Update declaration.
3279 (arc_lookup_target_description): Move target_desc_up into the
3280 cache, and return a borrowed pointer.
3281 * arch/arm.c (arm_create_target_description): Release the
3282 target_desc_up as late as possible.
3283 * arch/i386.c (i386_create_target_description): Likewise.
3284 * arch/riscv.h (riscv_create_target_description): Update
3285 declaration to match definition.
3286 * arch/tic6x.c (tic6x_create_target_description): Release the
3287 target_desc_up as late as possible.
3288
3289 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3292 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3293
3294 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3295
3296 * source.c (directory_command): Notify observers that "directories"
3297 parameter has changed.
3298
3299 2020-10-08 Tom Tromey <tom@tromey.com>
3300
3301 * cli/cli-cmds.c (print_disassembly): Style function name and
3302 addresses. Add _() wrappers.
3303
3304 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3305
3306 * NEWS: Mention ARC support in GDBserver.
3307
3308 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * arch/aarch32.c (aarch32_create_target_description): Release
3311 unique_ptr returned from allocate_target_description.
3312 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3313 * arch/amd64.c (amd64_create_target_description): Likewise.
3314 * arch/arc.c (arc_create_target_description): Likewise.
3315 * arch/arm.c (arm_create_target_description): Likewise.
3316 * arch/i386.c (i386_create_target_description): Likewise.
3317 * arch/riscv.c (riscv_create_target_description): Update return
3318 type. Handle allocate_target_description returning a unique_ptr.
3319 (riscv_lookup_target_description): Update to handle unique_ptr.
3320 * arch/tic6x.c (tic6x_create_target_description): Release
3321 unique_ptr returned from allocate_target_description.
3322 * features/microblaze-with-stack-protect.c: Regenerate.
3323 * features/microblaze.c: Regenerate.
3324 * features/mips-dsp-linux.c: Regenerate.
3325 * features/mips-linux.c: Regenerate.
3326 * features/mips64-dsp-linux.c: Regenerate.
3327 * features/mips64-linux.c: Regenerate.
3328 * features/nds32.c: Regenerate.
3329 * features/nios2.c: Regenerate.
3330 * features/or1k.c: Regenerate.
3331 * features/rs6000/powerpc-32.c: Regenerate.
3332 * features/rs6000/powerpc-32l.c: Regenerate.
3333 * features/rs6000/powerpc-403.c: Regenerate.
3334 * features/rs6000/powerpc-403gc.c: Regenerate.
3335 * features/rs6000/powerpc-405.c: Regenerate.
3336 * features/rs6000/powerpc-505.c: Regenerate.
3337 * features/rs6000/powerpc-601.c: Regenerate.
3338 * features/rs6000/powerpc-602.c: Regenerate.
3339 * features/rs6000/powerpc-603.c: Regenerate.
3340 * features/rs6000/powerpc-604.c: Regenerate.
3341 * features/rs6000/powerpc-64.c: Regenerate.
3342 * features/rs6000/powerpc-64l.c: Regenerate.
3343 * features/rs6000/powerpc-7400.c: Regenerate.
3344 * features/rs6000/powerpc-750.c: Regenerate.
3345 * features/rs6000/powerpc-860.c: Regenerate.
3346 * features/rs6000/powerpc-altivec32.c: Regenerate.
3347 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3348 * features/rs6000/powerpc-altivec64.c: Regenerate.
3349 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3350 * features/rs6000/powerpc-e500.c: Regenerate.
3351 * features/rs6000/powerpc-e500l.c: Regenerate.
3352 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3353 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3354 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3355 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3356 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3357 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3358 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3359 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3360 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3361 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3362 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3363 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3364 * features/rs6000/powerpc-vsx32.c: Regenerate.
3365 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3366 * features/rs6000/powerpc-vsx64.c: Regenerate.
3367 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3368 * features/rs6000/rs6000.c: Regenerate.
3369 * features/rx.c: Regenerate.
3370 * features/s390-gs-linux64.c: Regenerate.
3371 * features/s390-linux32.c: Regenerate.
3372 * features/s390-linux32v1.c: Regenerate.
3373 * features/s390-linux32v2.c: Regenerate.
3374 * features/s390-linux64.c: Regenerate.
3375 * features/s390-linux64v1.c: Regenerate.
3376 * features/s390-linux64v2.c: Regenerate.
3377 * features/s390-te-linux64.c: Regenerate.
3378 * features/s390-tevx-linux64.c: Regenerate.
3379 * features/s390-vx-linux64.c: Regenerate.
3380 * features/s390x-gs-linux64.c: Regenerate.
3381 * features/s390x-linux64.c: Regenerate.
3382 * features/s390x-linux64v1.c: Regenerate.
3383 * features/s390x-linux64v2.c: Regenerate.
3384 * features/s390x-te-linux64.c: Regenerate.
3385 * features/s390x-tevx-linux64.c: Regenerate.
3386 * features/s390x-vx-linux64.c: Regenerate.
3387 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3388 from allocate_target_description.
3389 * target-descriptions.c (allocate_target_description): Update
3390 return type.
3391 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3392 allocate_target_description.
3393
3394 2020-10-07 Tom Tromey <tromey@adacore.com>
3395
3396 * unittests/search-memory-selftests.c: New file.
3397 * Makefile.in (SELFTESTS_SRCS): Add
3398 unittests/search-memory-selftests.c.
3399
3400 2020-10-07 Tom Tromey <tromey@adacore.com>
3401
3402 PR gdb/16930:
3403 * findcmd.c (_initialize_mem_search): Mention that the range is
3404 inclusive.
3405
3406 2020-10-07 Tom Tromey <tromey@adacore.com>
3407
3408 * target.h (simple_search_memory): Don't declare.
3409 * target.c (simple_search_memory): Move to gdbsupport.
3410 (default_search_memory): Update.
3411 * remote.c (remote_target::search_memory): Update.
3412
3413 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * Makefile.in (COMPILE): Add CXXFLAGS.
3416 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3417 (check-headers): Add CXXFLAGS.
3418
3419 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3420
3421 * arc-linux-tdep.h: New file.
3422 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3423 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3424 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3425 arc_linux_gregset, arc_linux_v2_regset,
3426 arc_linux_iterate_over_regset_sections,
3427 arc_linux_core_read_description): Implement.
3428 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3429 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3430 (arc_gdbarch_features_create): Add.
3431 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3432
3433 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3434
3435 * arch/arc.h: Rename "arc_gdbarch_features" to
3436 "arc_arch_features".
3437 * arc-tdep.h: Likewise.
3438 * arc-tdep.c: Likewise.
3439
3440 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3441
3442 * infcmd.c (attach_command): Remove the redundant call to
3443 `clear_proceed_status`.
3444
3445 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3446
3447 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3448
3449 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3450
3451 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3452 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3453 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3454
3455 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3456
3457 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3458 (_initialize_break_catch_sig): Don't allocate array.
3459
3460 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * symtab.c (find_pc_line): Return unmapped addresses when the
3463 requested address is also unmapped.
3464
3465 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3466
3467 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3468 tui/tui-out.h.
3469
3470 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3473 type::is_vector instead of TYPE_VECTOR.
3474
3475 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * auto-load.c (auto_load_objfile_script_1): Don't use
3478 debugfile_holder as temporary variable when stripping drive
3479 letter.
3480
3481 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3482
3483 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3484 Add TYPE_CODE_COMPLEX.
3485 (amd64_windows_return_value): Fix types returned via XMM0.
3486
3487 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3488
3489 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3490 AArch64/ARM maintainers.
3491
3492 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * NEWS: Mention set/show debug event-loop.
3495
3496 2020-10-02 Tom Tromey <tromey@adacore.com>
3497
3498 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3499 REG_EXTENDED.
3500
3501 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3504 * procfs.c (procfs_inferior_created): Remove.
3505 (_initialize_procfs): Don't register procfs_inferior_created.
3506
3507 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * async-event.c (invoke_async_signal_handlers): Add debug
3510 print.
3511 (check_async_event_handlers): Likewise.
3512 * event-top.c (show_debug_event_loop): New function.
3513 (_initialize_event_top): Register "set debug event-loop"
3514 setting.
3515
3516 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3517
3518 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3519 * debug.h: Remove.
3520 * infrun.c: Include gdbsupport/common-debug.h.
3521 * linux-nat.c: Likewise.
3522
3523 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * async-event.h (create_async_signal_handler): Add name
3526 parameter.
3527 (create_async_event_handler): Likewise.
3528 * async-event.c (struct async_signal_handler) <name>: New field.
3529 (struct async_event_handler) <name>: New field.
3530 (create_async_signal_handler): Assign name.
3531 (create_async_event_handler): Assign name.
3532 * event-top.c (async_init_signals): Pass name when creating
3533 handler.
3534 * infrun.c (_initialize_infrun): Likewise.
3535 * record-btrace.c (record_btrace_push_target): Likewise.
3536 * record-full.c (record_full_open): Likewise.
3537 * remote-notif.c (remote_notif_state_allocate): Likewise.
3538 * remote.c (remote_target::open_1): Likewise.
3539 * tui/tui-win.c (tui_initialize_win): Likewise.
3540
3541 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3542
3543 * async-event.c (initialize_async_signal_handlers): Pass name to
3544 add_file_handler
3545 * event-top.c (ui_register_input_event_handler): Likewise.
3546 * linux-nat.c (linux_nat_target::async): Likewise.
3547 * run-on-main-thread.c (_initialize_run_on_main_thread):
3548 Likewise
3549 * ser-base.c (reschedule): Likewise.
3550 (ser_base_async): Likewise.
3551 * tui/tui-io.c: Likewise.
3552 * top.h (struct ui) <num>: New field.
3553 * top.c (highest_ui_num): New variable.
3554 (ui::ui): Initialize num.
3555
3556 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * observable.h <inferior_created>: Remove parameters. Update all
3559 listeners.
3560 * inferior.h (post_create_inferior): Remove target parameter.
3561 Update all callers.
3562
3563 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3564
3565 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3566 and DW_MACRO_undef_strx.
3567 (dwarf_decode_macros): Likewise
3568 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3569 which is the value of DW_AT_str_offsets_base.
3570 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3571 str_offsets_base.
3572
3573 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3574
3575 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3576
3577 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3578
3579 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3580 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3581
3582 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3583
3584 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3585
3586 2020-09-30 Tom de Vries <tdevries@suse.de>
3587
3588 PR symtab/26683
3589 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3590
3591 2020-09-30 Tom Tromey <tromey@adacore.com>
3592
3593 * dwarf2/read.c (handle_variant): Use constant_value.
3594
3595 2020-09-29 Tom Tromey <tom@tromey.com>
3596
3597 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3598 (read_file_scope, dwarf2_get_pc_bounds)
3599 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3600 (read_structure_type, handle_struct_member_die)
3601 (read_enumeration_type, read_array_type, read_set_type)
3602 (read_tag_pointer_type, read_tag_reference_type)
3603 (read_subroutine_type, read_base_type, read_subrange_type)
3604 (read_full_die_1, partial_die_info::read)
3605 (partial_die_info::read, by, new_symbol)
3606 (dwarf2_const_value_data, dwarf2_const_value_attr)
3607 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3608 (prepare_one_comp_unit): Update.
3609 * dwarf2/attribute.h (DW_UNSND): Remove.
3610
3611 2020-09-29 Tom Tromey <tom@tromey.com>
3612
3613 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3614 (read_subroutine_type, partial_die_info::read)
3615 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3616 (dwarf2_add_member_fn): Update.
3617 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3618 * dwarf2/attribute.c (attribute::as_boolean): New method.
3619
3620 2020-09-29 Tom Tromey <tom@tromey.com>
3621
3622 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3623 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3624 method.
3625 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3626
3627 2020-09-29 Tom Tromey <tom@tromey.com>
3628
3629 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3630 the attribute's form.
3631
3632 2020-09-29 Tom Tromey <tom@tromey.com>
3633
3634 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3635 (dwarf2_add_member_fn): Update.
3636 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3637 * dwarf2/attribute.c (attribute::defaulted): New method, from
3638 is_valid_DW_AT_defaulted.
3639
3640 2020-09-29 Tom Tromey <tom@tromey.com>
3641
3642 * dwarf2/read.c (dw2_get_file_names_reader)
3643 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3644 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3645 (dwarf2_symbol_mark_computed): Use as_unsigned.
3646 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3647 method.
3648 <form_is_section_offset>: Update comment.
3649
3650 2020-09-29 Tom Tromey <tom@tromey.com>
3651
3652 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3653 dwarf2_default_access_attribute. Look up attribute.
3654 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3655 Update.
3656
3657 2020-09-29 Tom Tromey <tom@tromey.com>
3658
3659 * dwarf2/read.c (skip_one_die): Update.
3660 (read_full_die_1): Change how reprocessing is done.
3661 (partial_die_info::read): Update.
3662 (read_attribute_value): Remove need_reprocess parameter.
3663 (read_attribute): Likewise.
3664 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3665 New method.
3666
3667 2020-09-29 Tom Tromey <tom@tromey.com>
3668
3669 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3670 (dwarf2_const_value_attr, dump_die_shallow)
3671 (dwarf2_fetch_constant_bytes): Update.
3672 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3673 comment.
3674 <set_address>: New method.
3675 (DW_ADDR): Remove.
3676 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3677 (attribute::as_string, attribute::as_address): Add assert.
3678
3679 2020-09-29 Tom Tromey <tom@tromey.com>
3680
3681 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3682 (read_attribute_reprocess, read_attribute_value): Update.
3683 (read_attribute): Clear requires_reprocessing.
3684 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3685 form_requires_reprocessing>: New methods.
3686 <string_init>: Clear requires_reprocessing.
3687 <set_unsigned_reprocess>: New method.
3688 <name>: Shrink by one bit.
3689 <requires_reprocessing>: New member.
3690 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3691 method.
3692
3693 2020-09-29 Tom Tromey <tom@tromey.com>
3694
3695 * dwarf2/read.c (read_attribute_value): Update.
3696 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3697 set_unsigned>: New methods.
3698 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3699
3700 2020-09-29 Tom Tromey <tom@tromey.com>
3701
3702 * dwarf2/read.c (get_alignment, read_array_order)
3703 (read_attribute_value, dwarf2_const_value_attr)
3704 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3705 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3706 New methods.
3707 (DW_SND): Remove.
3708
3709 2020-09-29 Tom Tromey <tom@tromey.com>
3710
3711 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3712 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3713 Update.
3714 * dwarf2/attribute.h (struct attribute) <as_signature,
3715 set_signature>: New methods.
3716 (DW_SIGNATURE): Remove.
3717
3718 2020-09-29 Tom Tromey <tom@tromey.com>
3719
3720 * dwarf2/read.c (read_call_site_scope)
3721 (handle_data_member_location, dwarf2_add_member_fn)
3722 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3723 (partial_die_info::read, read_attribute_value)
3724 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3725 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3726 (dwarf2_symbol_mark_computed): Update.
3727 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3728 methods.
3729 (DW_BLOCK): Remove.
3730 * dwarf2/attribute.c (attribute::form_is_block): Add
3731 DW_FORM_data16.
3732
3733 2020-09-29 Tom Tromey <tom@tromey.com>
3734
3735 * dwarf2/read.c (read_cutu_die_from_dwo)
3736 (read_attribute_reprocess, read_attribute_value, read_attribute)
3737 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3738 (dwarf2_fetch_constant_bytes): Update.
3739 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3740 <set_string_noncanonical, set_string_canonical>: New methods.
3741 <string_is_canonical>: Update comment.
3742 <canonical_string_p>: Add assert.
3743 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3744 * dwarf2/attribute.c (attribute::form_is_string): New method.
3745 (attribute::string): Use it.
3746
3747 2020-09-29 Tom Tromey <tom@tromey.com>
3748
3749 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3750 (dump_die_shallow): Use canonical_string_p.
3751 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3752 method.
3753
3754 2020-09-29 Tom Tromey <tom@tromey.com>
3755
3756 * dwarf2/read.c (partial_die_info::read)
3757 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3758 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3759 attribute::as_string.
3760
3761 2020-09-29 Tom Tromey <tom@tromey.com>
3762
3763 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3764 DW_ADDR.
3765 (attribute::string): Don't use DW_STRING.
3766 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3767 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3768
3769 2020-09-29 Tom Tromey <tom@tromey.com>
3770
3771 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3772 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3773 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3774 * dwarf2/attribute.h (struct attribute): Rename methods.
3775 * dwarf2/attribute.c (attribute::as_address): Rename from
3776 value_as_address.
3777 (attribute::as_string): Rename from value_as_string.
3778
3779 2020-09-29 Tom Tromey <tom@tromey.com>
3780
3781 * dwarf2/read.c (partial_die_info::read) <case
3782 DW_AT_linkage_name>: Use value_as_string.
3783 (dwarf2_string_attr): Use value_as_string.
3784 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3785 method.
3786 * dwarf2/attribute.c (attribute::value_as_string): New method.
3787
3788 2020-09-29 Pedro Alves <pedro@palves.net>
3789
3790 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3791 defined before using '#pragma GCC diagnostic' instead of checking
3792 __clang__.
3793
3794 2020-09-28 Tom Tromey <tom@tromey.com>
3795
3796 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3797 (handle_signal_stop): Update.
3798 * procfs.c (procfs_target::insert_watchpoint): Update.
3799 * target.h (target_have_steppable_watchpoint): Now a function.
3800
3801 2020-09-28 Tom Tromey <tom@tromey.com>
3802
3803 * infrun.c (set_schedlock_func): Update.
3804 * target.h (target_can_lock_scheduler): Now a function.
3805
3806 2020-09-28 Tom Tromey <tom@tromey.com>
3807
3808 * inferior.h (class inferior) <has_execution>: Update.
3809 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3810 * valops.c (find_function_in_inferior)
3811 (value_allocate_space_in_inferior): Update.
3812 * top.c (kill_or_detach): Update.
3813 * target.c (target_preopen, set_target_permissions): Update.
3814 (target_has_execution_current): Remove.
3815 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3816 Update.
3817 * solib.c (update_solib_list, reload_shared_libraries): Update.
3818 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3819 * solib-dsbt.c (enable_break): Update.
3820 * score-tdep.c (score7_fetch_inst): Update.
3821 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3822 Update.
3823 * remote.c (remote_target::start_remote)
3824 (remote_target::remote_check_symbols, remote_target::open_1)
3825 (remote_target::remote_detach_1, remote_target::verify_memory)
3826 (remote_target::xfer_partial, remote_target::read_description)
3827 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3828 * record-full.c (record_full_open_1): Update.
3829 * record-btrace.c (record_btrace_target_open): Update.
3830 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3831 (value_nsstring): Update.
3832 * linux-thread-db.c (add_thread_db_info)
3833 (thread_db_find_new_threads_silently, check_thread_db_callback)
3834 (try_thread_db_load_1, record_thread): Update.
3835 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3836 Update.
3837 * linux-fork.c (checkpoint_command): Update.
3838 * infrun.c (set_non_stop, set_observer_mode)
3839 (check_multi_target_resumption, for_each_just_stopped_thread)
3840 (maybe_remove_breakpoints, normal_stop)
3841 (class infcall_suspend_state): Update.
3842 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3843 (info_program_command, attach_command): Update.
3844 * infcall.c (call_function_by_hand_dummy): Update.
3845 * inf-loop.c (inferior_event_handler): Update.
3846 * gcore.c (gcore_command, derive_heap_segment): Update.
3847 * exec.c (exec_file_command): Update.
3848 * eval.c (evaluate_subexp): Update.
3849 * compile/compile.c (compile_to_object): Update.
3850 * cli/cli-dump.c (restore_command): Update.
3851 * breakpoint.c (update_watchpoint)
3852 (update_inserted_breakpoint_locations)
3853 (insert_breakpoint_locations, get_bpstat_thread): Update.
3854 * target.h (target_has_execution): Remove macro.
3855 (target_has_execution_current): Don't declare.
3856 (target_has_execution): Rename from target_has_execution_1. Add
3857 argument default.
3858
3859 2020-09-28 Tom Tromey <tom@tromey.com>
3860
3861 * mi/mi-main.c (exec_reverse_continue)
3862 (mi_cmd_list_target_features): Update.
3863 * infrun.c (set_exec_direction_func): Update.
3864 * target.c (default_execution_direction): Update.
3865 * reverse.c (exec_reverse_once): Update.
3866 * target.h (target_can_execute_reverse): Now a function.
3867
3868 2020-09-28 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-regs.c (tui_get_register)
3871 (tui_data_window::show_registers): Update.
3872 * thread.c (scoped_restore_current_thread::restore)
3873 (scoped_restore_current_thread::scoped_restore_current_thread):
3874 Update.
3875 * regcache-dump.c (regcache_print): Update.
3876 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3877 Update.
3878 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3879 * mep-tdep.c (current_me_module, current_options): Update.
3880 * linux-thread-db.c (thread_db_load): Update.
3881 * infcmd.c (registers_info, info_vector_command)
3882 (info_float_command): Update.
3883 * ia64-tdep.c (ia64_frame_prev_register)
3884 (ia64_sigtramp_frame_prev_register): Update.
3885 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3886 * gcore.c (derive_stack_segment): Update.
3887 * frame.c (get_current_frame, has_stack_frames): Update.
3888 * findvar.c (language_defn::read_var_value): Update.
3889 * arm-tdep.c (arm_pc_is_thumb): Update.
3890 * target.c (target_has_registers): Rename from
3891 target_has_registers_1.
3892 * target.h (target_has_registers): Remove macro.
3893 (target_has_registers): Rename from target_has_registers_1.
3894
3895 2020-09-28 Tom Tromey <tom@tromey.com>
3896
3897 * windows-tdep.c (tlb_make_value): Update.
3898 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3899 * thread.c (scoped_restore_current_thread::restore)
3900 (scoped_restore_current_thread::scoped_restore_current_thread)
3901 (thread_command): Update.
3902 * stack.c (backtrace_command_1, frame_apply_level_command)
3903 (frame_apply_all_command, frame_apply_command): Update.
3904 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3905 Update.
3906 * gcore.c (derive_stack_segment): Update.
3907 * frame.c (get_current_frame, has_stack_frames): Update.
3908 * auxv.c (info_auxv_command): Update.
3909 * ada-tasks.c (ada_build_task_list): Update.
3910 * target.c (target_has_stack): Rename from target_has_stack_1.
3911 * target.h (target_has_stack): Remove macro.
3912 (target_has_stack): Rename from target_has_stack_1.
3913
3914 2020-09-28 Tom Tromey <tom@tromey.com>
3915
3916 * target.c (target_has_memory): Rename from target_has_memory_1.
3917 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3918 * thread.c (scoped_restore_current_thread::restore)
3919 (scoped_restore_current_thread::scoped_restore_current_thread):
3920 Update.
3921 * frame.c (get_current_frame, has_stack_frames): Update.
3922 * target.h (target_has_memory): Remove macro.
3923 (target_has_memory): Rename from target_has_memory_1.
3924
3925 2020-09-28 Tom Tromey <tom@tromey.com>
3926
3927 * target.c (target_has_all_memory_1): Remove.
3928 * target.h (target_has_all_memory): Remove define.
3929 (target_has_all_memory_1): Don't declare.
3930
3931 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3932
3933 * ser-base.c: Adjust comments formatting.
3934
3935 2020-09-27 Tom Tromey <tom@tromey.com>
3936
3937 PR tui/25342:
3938 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3939
3940 2020-09-27 Tom Tromey <tom@tromey.com>
3941
3942 PR tui/25342:
3943 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3944
3945 2020-09-27 Tom Tromey <tom@tromey.com>
3946
3947 * unittests/tui-selftests.c: Update.
3948 * tui/tui-winsource.h (struct tui_source_window_base)
3949 <extra_margin, show_line_number, refresh_pad>: New methods.
3950 <m_max_length, m_pad>: New members.
3951 (tui_copy_source_line): Update.
3952 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3953 first_col, line_width, ndigits parameters. Add length.
3954 (tui_source_window_base::show_source_line): Write to pad. Line
3955 number now 0-based.
3956 (tui_source_window_base::refresh_pad): New method.
3957 (tui_source_window_base::show_source_content): Write to pad. Call
3958 refresh_pad.
3959 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3960 not refill.
3961 (tui_source_window_base::update_exec_info): Call
3962 show_line_number.
3963 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3964 method.
3965 <m_digits>: New member.
3966 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3967 and m_max_length.
3968 (tui_source_window::show_line_number): New method.
3969 * tui/tui-io.h (tui_puts): Fix comment.
3970 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3971 m_max_length.
3972
3973 2020-09-27 Tom Tromey <tom@tromey.com>
3974
3975 * tui/tui-winsource.c
3976 (tui_source_window_base::set_is_exec_point_at): Don't call
3977 show_source_line.
3978
3979 2020-09-27 Tom Tromey <tom@tromey.com>
3980
3981 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3982 method.
3983 <erase>: Update.
3984 <cursor_x, cursor_y>: Remove.
3985 <m_inner_window>: New member.
3986 (tui_py_window::rerender): Create inner window.
3987 (tui_py_window::output): Write to inner window.
3988
3989 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3990
3991 PR python/26586
3992 * cli/cli-script.c (execute_control_commands): don't set
3993 instream to nullptr here as this breaks the from_tty argument
3994 to gdb.execute in Python.
3995 (execute_user_command): set instream to nullptr here instead.
3996
3997 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * infrun.h (infrun_debug_printf): Fix formatting.
4000 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4001
4002 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4003
4004 * compile/compile-object-load.h (struct munmap_list): Add
4005 explicitly-defined move constructor.
4006
4007 2020-09-24 Tom Tromey <tromey@adacore.com>
4008
4009 PR tui/26638:
4010 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4011 method.
4012 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4013 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4014 (tui_prev_win): Rewrite.
4015
4016 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4017
4018 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4019 in WOW64 processes as SIGINT.
4020 * nat/windows-nat.h: Make wow64_process a shared variable.
4021 * windows-nat.c: Remove static wow64_process variable.
4022
4023 2020-09-23 Tom Tromey <tom@tromey.com>
4024
4025 PR symtab/25470:
4026 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4027 offset and bit size.
4028 * printcmd.c (print_scalar_formatted): Handle zero-length
4029 integer.
4030 (print_scalar_formatted): Use bit_size_differs_p.
4031 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4032 constant.
4033 (union type_specific): <int_stuff>: New member.
4034 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4035 methods.
4036 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4037 TYPE_SPECIFIC_FIELD.
4038 (recursive_dump_type, copy_type_recursive): Update.
4039 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4040 DW_AT_data_bit_offset.
4041
4042 2020-09-23 Tom Tromey <tom@tromey.com>
4043
4044 * utils.h (class gdb_argv): Add move operators.
4045 <append>: New methods.
4046 * compile/compile.c (build_argc_argv): Remove.
4047 (compile_args_argc): Remove.
4048 (compile_args_argv): Change type.
4049 (set_compile_args): Simplify.
4050 (append_args): Remove.
4051 (filter_args): Remove argcp parameter.
4052 (get_args): Return gdb_argv. Simplify.
4053 (compile_to_object): Update.
4054
4055 2020-09-23 Tom Tromey <tom@tromey.com>
4056
4057 * compile/compile-object-run.c (do_module_cleanup)
4058 <~do_module_cleanup> :Remove.
4059 (do_module_cleanup): Update.
4060 * compile/compile-object-load.h (struct munmap_list): Add move
4061 assignment operator.
4062 <source_file>: Now a std::string.
4063 <munmap_list>: Rename. No longer a pointer.
4064 * compile/compile-object-load.c (struct setup_sections_data): Add
4065 constructor.
4066 <setup_one_section>: Declare.
4067 <munmap_list>: Move earlier.
4068 <m_bfd>: New member.
4069 <m_last_size, m_last_section_first, m_last_prot,
4070 m_last_max_alignment>: Rename, add initializers where needed.
4071 (setup_sections_data::setup_one_section): Rename from
4072 setup_sections. Update.
4073 (compile_object_load): Update. Don't use bfd_map_over_sections.
4074
4075 2020-09-23 Tom Tromey <tom@tromey.com>
4076
4077 * compile/compile-object-run.c (struct do_module_cleanup): Add
4078 parameters to constructor. Update destructor.
4079 <source_file, scope, scope_data, out_value_type, out_value_addr,
4080 munmap_list_head, objfile_name_string>: Remove.
4081 <module>: New member.
4082 (do_module_cleanup): Update.
4083 (compile_object_run): Update.
4084
4085 2020-09-23 Tom Tromey <tom@tromey.com>
4086
4087 * compile/compile.c (eval_compile_command): Update.
4088 * compile/compile-object-run.h (compile_object_run): Take a
4089 compile_module_up.
4090 * compile/compile-object-run.c (compile_object_run): Take a
4091 compile_module_up.
4092 * compile/compile-object-load.h (struct compile_module): Add
4093 constructor, destructor.
4094 (compile_module_up): New typedef.
4095 (compile_object_load): Return compile_object_up.
4096 * compile/compile-object-load.c (compile_object_load): Return
4097 compile_module_up.
4098
4099 2020-09-23 Tom Tromey <tom@tromey.com>
4100
4101 * compile/compile-object-run.c (struct do_module_cleanup): Add
4102 constructor, destructor.
4103 <objfile_name_string>: Don't use struct hack.
4104 (do_module_cleanup): Use delete.
4105 (compile_object_run): Use new.
4106
4107 2020-09-23 Tom Tromey <tom@tromey.com>
4108
4109 * compile/compile-cplus-types.c
4110 (compile_cplus_convert_struct_or_union): Use std::vector.
4111 (compile_cplus_convert_func): Likewise.
4112 * compile/compile-c-types.c (convert_func): Use std::vector.
4113
4114 2020-09-21 Tom Tromey <tromey@adacore.com>
4115
4116 * sparc-tdep.c (sparc32_skip_prologue): Use
4117 skip_prologue_using_sal.
4118
4119 2020-09-19 Tom Tromey <tom@tromey.com>
4120
4121 * symfile.c (add_section_size_callback): Remove.
4122 (load_one_section): Rename from load_section_callback. Change
4123 parameters.
4124 (generic_load): Use foreach.
4125
4126 2020-09-19 Tom Tromey <tom@tromey.com>
4127
4128 * exec.c (add_to_section_table): Remove.
4129 (build_section_table): Use foreach.
4130
4131 2020-09-19 Tom Tromey <tom@tromey.com>
4132
4133 * elfread.c (elf_locate_sections): Change parameters.
4134 (elf_symfile_read): Use foreach.
4135
4136 2020-09-19 Tom Tromey <tom@tromey.com>
4137
4138 * cli/cli-dump.c (struct callback_data): Remove.
4139 (restore_one_section): Rename from restore_section_callback.
4140 Change parameters.
4141 (restore_binary_file): Change parameters.
4142 (restore_command): Use foreach.
4143
4144 2020-09-19 Tom Tromey <tom@tromey.com>
4145
4146 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4147 (gcore_copy_callback): Likewise.
4148 (gcore_memory_sections): Use foreach.
4149
4150 2020-09-19 Tom Tromey <tom@tromey.com>
4151
4152 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4153 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4154 parameters.
4155 (generic_elf_osabi_sniffer): Use foreach.
4156 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4157 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4158
4159 2020-09-19 Tom Tromey <tom@tromey.com>
4160
4161 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4162 (dwarf2_get_dwz_file): Use foreach.
4163 (dwarf2_locate_dwo_sections): Change parameters.
4164 (open_and_init_dwo_file): Use foreach.
4165 (dwarf2_locate_common_dwp_sections): Change parameters.
4166 (open_and_init_dwp_file): Use foreach.
4167
4168 2020-09-19 Tom Tromey <tom@tromey.com>
4169
4170 * symfile.h: (find_lowest_section): Don't declare.
4171 * symfile.c (find_lowest_section): Now static. Change
4172 parameters.
4173 (struct place_section_arg): Remove.
4174 (place_section): Change parameters.
4175 (addr_info_make_relative): Use foreach.
4176 (symfile_dummy_outputs): Remove.
4177 (default_symfile_relocate): Use foreach.
4178
4179 2020-09-19 Tom Tromey <tom@tromey.com>
4180
4181 * objfiles.c (add_to_objfile_sections): Rename from
4182 add_to_objfile_sections_full.
4183 (add_to_objfile_sections): Remove.
4184 (build_objfile_section_table): Use foreach.
4185
4186 2020-09-19 Tom Tromey <tom@tromey.com>
4187
4188 * stap-probe.c (get_stap_base_address_1): Remove.
4189 (get_stap_base_address): Use foreach.
4190
4191 2020-09-19 Tom Tromey <tom@tromey.com>
4192
4193 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4194 parameters.
4195 (gdb_bfd_close_or_warn): Use foreach.
4196
4197 2020-09-19 Tom Tromey <tom@tromey.com>
4198
4199 * corelow.c (add_to_thread_list): Change parameters.
4200 (core_target_open): Use foreach.
4201
4202 2020-09-19 Tom Tromey <tom@tromey.com>
4203
4204 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4205 existing function.
4206
4207 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4210 for arrays.
4211
4212 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * eval.c: Remove 'f-lang.h' include.
4215 (value_f90_subarray): Moved to f-lang.c.
4216 (eval_call): Renamed to...
4217 (evaluate_subexp_do_call): ...this, is no longer static, header
4218 comment moved into header file.
4219 (evaluate_funcall): Update call to eval_call.
4220 (skip_undetermined_arglist): Moved to f-lang.c.
4221 (fortran_value_subarray): Likewise.
4222 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4223 moved to evaluate_subexp_f.
4224 (calc_f77_array_dims): Moved to f-lang.c
4225 * expprint.c (print_subexp_funcall): New function.
4226 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4227 moved to print_subexp_f, OP_FUNCALL uses new function.
4228 (dump_subexp_body_funcall): New function.
4229 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4230 moved to dump_subexp_f, OP_FUNCALL uses new function.
4231 * expression.h (evaluate_subexp_do_call): Declare.
4232 * f-lang.c (value_f90_subarray): Moved from eval.c.
4233 (skip_undetermined_arglist): Likewise.
4234 (calc_f77_array_dims): Likewise.
4235 (fortran_value_subarray): Likewise.
4236 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4237 (operator_length_f): Likewise.
4238 (print_subexp_f): Likewise.
4239 (dump_subexp_body_f): Likewise.
4240 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4241 declaration of this operation to here.
4242 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4243 support moved to operator_length_f.
4244 * parser-defs.h (dump_subexp_body_funcall): Declare.
4245 (print_subexp_funcall): Declare.
4246 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4247 fortran-operator.def.
4248
4249 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * eval.c (fortran_value_subarray): New function, content is taken
4252 from...
4253 (evaluate_subexp_standard): ...here, in two places. Now arrays
4254 and strings both call the new function.
4255 (calc_f77_array_dims): Add header comment, handle strings.
4256
4257 2020-09-18 Victor Collod <vcollod@nvidia.com>
4258
4259 PR gdb/26635
4260 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4261 (i386_analyze_prologue): Call i386_skip_endbr.
4262
4263 2020-09-18 Tom Tromey <tromey@adacore.com>
4264
4265 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4266 (windows_nat_target::wait): Update.
4267 * target/wait.h (enum target_wait_flag): New. Use
4268 DEF_ENUM_FLAGS_TYPE.
4269 * target/target.h (target_wait): Change type of options.
4270 * target.h (target_options_to_string, default_target_wait):
4271 Update.
4272 (struct target_ops) <wait>: Change type of options.
4273 * target.c (target_wait, default_target_wait, do_option): Change
4274 type of "options".
4275 (target_options_to_string): Likewise.
4276 * target-delegates.c: Rebuild.
4277 * target-debug.h (target_debug_print_target_wait_flags): Rename
4278 from target_debug_print_options.
4279 * sol-thread.c (class sol_thread_target) <wait>: Update.
4280 (sol_thread_target::wait): Update.
4281 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4282 (rs6000_nat_target::wait): Update.
4283 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4284 Update.
4285 (remote_target::wait_ns, remote_target::wait_as): Change type of
4286 "options".
4287 (remote_target::wait): Update.
4288 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4289 (gdbsim_target::wait): Update.
4290 * record-full.c (class record_full_base_target) <wait>: Update.
4291 (record_full_wait_1): Change type of "options".
4292 (record_full_base_target::wait): Update.
4293 * record-btrace.c (class record_btrace_target) <wait>: Update.
4294 (record_btrace_target::wait): Update.
4295 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4296 Update.
4297 (ravenscar_thread_target::wait): Update.
4298 * procfs.c (class procfs_target) <wait>: Update.
4299 (procfs_target::wait): Update.
4300 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4301 * obsd-nat.c (obsd_nat_target::wait): Update.
4302 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4303 (nto_procfs_target::wait): Update.
4304 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4305 * nbsd-nat.c (nbsd_wait): Change type of "options".
4306 (nbsd_nat_target::wait): Update.
4307 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4308 (thread_db_target::wait): Update.
4309 * linux-nat.h (class linux_nat_target) <wait>: Update.
4310 * linux-nat.c (linux_nat_target::wait): Update.
4311 (linux_nat_wait_1): Update.
4312 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4313 "options".
4314 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4315 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4316 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4317 (go32_nat_target::wait): Update.
4318 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4319 * gnu-nat.c (gnu_nat_target::wait): Update.
4320 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4321 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4322 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4323 * darwin-nat.c (darwin_nat_target::wait): Update.
4324 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4325 (bsd_uthread_target::wait): Update.
4326 * aix-thread.c (class aix_thread_target) <wait>: Update.
4327 (aix_thread_target::wait): Update.
4328
4329 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * compile/compile-object-run.c (create_copied_type_recursive): New
4332 function.
4333 (compile_object_run): Use new function.
4334
4335 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4336
4337 * NEWS: Mention x86_64 Cygwin core file support.
4338
4339 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4340
4341 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4342 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4343
4344 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4345
4346 * windows-tdep.h: Add prototypes.
4347 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4348 (i386_windows_core_pid_to_str): Move and rename ...
4349 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4350 (windows_core_pid_to_str): ... and here.
4351 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4352
4353 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4354 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4355 (amd64_windows_init_abi_common): ... and register.
4356
4357 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4358
4359 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4360 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4361
4362 2020-09-18 Pedro Alves <pedro@palves.net>
4363
4364 PR gdb/26631
4365 * thread.c (thread_find_command): Switch inferior before calling
4366 target methods.
4367
4368 2020-09-17 Tom Tromey <tromey@adacore.com>
4369
4370 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4371 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4372 (tdesc_arch_data_up): New typedef.
4373 (tdesc_use_registers, tdesc_data_alloc): Update.
4374 (tdesc_data_cleanup): Don't declare.
4375 * target-descriptions.c (tdesc_data_alloc): Return a
4376 tdesc_arch_data_up.
4377 (tdesc_arch_data_deleter::operator()): Rename from
4378 tdesc_data_cleanup. Change argument type.
4379 (tdesc_use_registers): Change early_data to an rvalue reference.
4380 (tdesc_use_registers): Don't use delete.
4381 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4382 * s390-tdep.c (s390_gdbarch_init): Update.
4383 * rx-tdep.c (rx_gdbarch_init): Update.
4384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4385 * riscv-tdep.c (riscv_gdbarch_init): Update.
4386 * or1k-tdep.c (or1k_gdbarch_init): Update.
4387 * nios2-tdep.c (nios2_gdbarch_init): Update.
4388 * nds32-tdep.c (nds32_gdbarch_init): Update.
4389 * mips-tdep.c (mips_gdbarch_init): Update.
4390 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4391 * m68k-tdep.c (m68k_gdbarch_init): Update.
4392 * i386-tdep.c (i386_gdbarch_init): Update.
4393 * arm-tdep.c (arm_gdbarch_init): Update.
4394 * arc-tdep.c (arc_tdesc_init): Update.
4395 (arc_gdbarch_init): Update.
4396 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4397
4398 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4399
4400 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4401 for WOW64 processes.
4402
4403 2020-09-17 Tom Tromey <tom@tromey.com>
4404
4405 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4406
4407 2020-09-17 Tom Tromey <tom@tromey.com>
4408
4409 * value.c (preserve_values): Update.
4410 * python/py-type.c (save_objfile_types): Update.
4411 * guile/scm-type.c (save_objfile_types): Update.
4412 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4413 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4414 * compile/compile-object-run.c (compile_object_run): Update.
4415
4416 2020-09-17 Tom Tromey <tom@tromey.com>
4417
4418 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4419 Remove.
4420 <m_table>: Now htab_up.
4421 * typeprint.c (typedef_hash_table::recursively_update)
4422 (typedef_hash_table::add_template_parameters)
4423 (typedef_hash_table::typedef_hash_table): Update.
4424 (typedef_hash_table::~typedef_hash_table): Remove.
4425 (typedef_hash_table::typedef_hash_table)
4426 (typedef_hash_table::find_global_typedef)
4427 (typedef_hash_table::find_typedef): Update.
4428
4429 2020-09-17 Tom Tromey <tom@tromey.com>
4430
4431 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4432
4433 2020-09-17 Tom Tromey <tom@tromey.com>
4434
4435 * linespec.c (class decode_compound_collector)
4436 <~decode_compound_collector>: Remove.
4437 <m_unique_syms>: Now htab_up.
4438 (decode_compound_collector::operator ()): Update.
4439 (class symtab_collector) <~symtab_collector>: Remove.
4440 <m_symtab_table>: Now htab_up.
4441 (symtab_collector::operator ()): Update.
4442
4443 2020-09-17 Tom Tromey <tom@tromey.com>
4444
4445 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4446 (filename_seen_cache::clear): Update.
4447 (~filename_seen_cache): Remove.
4448 (filename_seen_cache::seen): Update.
4449 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4450 htab_up.
4451 <~filename_seen_cache>: Remove.
4452 <traverse>: Update.
4453
4454 2020-09-17 Tom Tromey <tom@tromey.com>
4455
4456 * completer.c (completion_tracker::discard_completions)
4457 (completion_tracker::~completion_tracker)
4458 (completion_tracker::maybe_add_completion)
4459 (completion_tracker::remove_completion)
4460 (completion_tracker::recompute_lowest_common_denominator)
4461 (completion_tracker::build_completion_result): Update.
4462 * completer.h (class completion_tracker) <have_completions>:
4463 Update.
4464 <m_entries_hash>: Now htab_up.
4465
4466 2020-09-17 Tom Tromey <tom@tromey.com>
4467
4468 * breakpoint.c (ambiguous_names_p): Use htab_up.
4469
4470 2020-09-17 Tom Tromey <tom@tromey.com>
4471
4472 * auto-load.c (struct auto_load_pspace_info)
4473 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4474 <loaded_script_files, loaded_script_texts>: Change type to
4475 htab_up.
4476 (~auto_load_pspace_info) Remove.
4477 (init_loaded_scripts_info, maybe_add_script_file)
4478 (maybe_add_script_text, auto_load_info_scripts): Update.
4479
4480 2020-09-17 Tom Tromey <tromey@adacore.com>
4481
4482 * c-exp.y (name_obstack): Now static.
4483
4484 2020-09-17 Chungyi Chi <demonic@csie.io>
4485
4486 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4487
4488 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4491 (add_solib_catchpoint): Likewise.
4492 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4493 to bool.
4494 (add_solib_catchpoint): Change int parameter/variable to bool.
4495 (catch_load_or_unload): Likewise.
4496 (init_catchpoint): Likewise.
4497 (create_fork_vfork_event_catchpoint): Likewise.
4498 (catch_fork_command_1): Likewise.
4499 (catch_exec_command_1): Likewise.
4500
4501 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4504 Change instance_flags to m_instance_flags.
4505
4506 2020-09-16 Tom Tromey <tromey@adacore.com>
4507
4508 PR gdb/26598:
4509 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4510
4511 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4512
4513 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4514 PL_FLAG_EXEC.
4515 (fbsd_nat_target::insert_exec_catchpoint)
4516 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4517 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4518 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4519
4520 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4521
4522 * configure.ac: Remove check for kinfo_getvmmap().
4523 * configure, config.in: Regenerate.
4524 * fbsd-nat.c (fbsd_read_mapping): Remove
4525 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4526 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4527 kinfo_get_vmmap() are always present.
4528
4529 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4530
4531 * fbsd-nat.c: Always include support for
4532 TARGET_OBJECT_SIGNAL_INFO.
4533
4534 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4535
4536 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4537 sysctl and remove procfs fallback.
4538
4539 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4540
4541 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4542 * fbsd-nat.h: Likewise.
4543
4544 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545
4546 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4547 argument.
4548
4549 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * ada-lang.c (ada_language_data): Delete.
4552 (ada_language): Remove references to ada_language_data.
4553 * c-lang.c (c_language_data): Delete.
4554 (c_language): Remove references to c_language_data.
4555 (cplus_language_data): Delete.
4556 (cplus_language): Remove references to cplus_language_data.
4557 (asm_language_data): Delete.
4558 (asm_language): Remove references to asm_language_data.
4559 (minimal_language_data): Delete.
4560 (minimal_language): Remove references to minimal_language_data.
4561 * d-lang.c (d_language_data): Delete.
4562 (d_language): Remove references to d_language_data.
4563 * f-lang.c (f_language_data): Delete.
4564 (f_language): Remove references to f_language_data.
4565 * go-lang.c (go_language_data): Delete.
4566 (go_language): Remove references to go_language_data.
4567 * language.c (unknown_language_data): Delete.
4568 (unknown_language): Remove references to unknown_language_data.
4569 (auto_language_data): Delete.
4570 (auto_language): Remove references to auto_language_data.
4571 * language.h (language_data): Delete struct.
4572 (language_defn): No longer inherit from language_data.
4573 * m2-lang.c (m2_language_data): Delete.
4574 (m2_language): Remove references to m2_language_data.
4575 * objc-lang.c (objc_language_data): Delete.
4576 (objc_language): Remove references to objc_language_data.
4577 * opencl-lang.c (opencl_language_data): Delete.
4578 (opencl_language): Remove references to opencl_language_data.
4579 * p-lang.c (pascal_language_data): Delete.
4580 (pascal_language): Remove references to pascal_language_data.
4581 * rust-lang.c (rust_language_data): Delete.
4582 (rust_language): Remove references to rust_language_data.
4583
4584 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4587 initializer.
4588 (ada_language::opcode_print_table): New member function.
4589 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4590 (c_language::opcode_print_table): New member function.
4591 (cplus_language_data): Remove la_op_print_tab initializer.
4592 (cplus_language::opcode_print_table): New member function.
4593 (asm_language_data): Remove la_op_print_tab initializer.
4594 (asm_language::opcode_print_table): New member function.
4595 (minimal_language_data): Remove la_op_print_tab initializer.
4596 (minimal_language::opcode_print_table): New member function.
4597 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4598 (d_language::opcode_print_table): New member function.
4599 * expprint.c (print_subexp_standard): Update call to
4600 opcode_print_table.
4601 (op_string): Likewise.
4602 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4603 (f_language::opcode_print_table): New member function.
4604 * go-lang.c (go_language_data): Remove la_op_print_tab
4605 initializer.
4606 (go_language::opcode_print_table): New member function.
4607 * language.c (unknown_language_data): Remove la_op_print_tab
4608 initializer.
4609 (unknown_language::opcode_print_table): New member function.
4610 (auto_language_data): Remove la_op_print_tab initializer.
4611 (auto_language::opcode_print_table): New member function.
4612 * language.h (language_data): Remove la_op_print_tab field.
4613 (language_defn::opcode_print_table): Declare new member function.
4614 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4615 initializer.
4616 (m2_language::opcode_print_table): New member function.
4617 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4618 initializer.
4619 (objc_language::opcode_print_table): New member function.
4620 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4621 initializer.
4622 (opencl_language::opcode_print_table): New member function.
4623 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4624 initializer.
4625 (pascal_language::opcode_print_table): New member function.
4626 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4627 initializer.
4628 (rust_language::opcode_print_table): New member function.
4629
4630 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4633 (ada_language::expression_ops): New member function.
4634 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4635 (c_language::expression_ops): New member function.
4636 (cplus_language_data): Remove la_exp_desc initializer.
4637 (cplus_language::expression_ops): New member function.
4638 (asm_language_data): Remove la_exp_desc initializer.
4639 (asm_language::expression_ops): New member function.
4640 (minimal_language_data): Remove la_exp_desc initializer.
4641 (minimal_language::expression_ops): New member function.
4642 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4643 (d_language::expression_ops): New member function.
4644 * eval.c (evaluate_subexp): Update call to expression_ops.
4645 * expprint.c (print_subexp): Likewise.
4646 (op_name): Likewise.
4647 (dump_subexp_body): Likewise.
4648 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4649 (f_language::expression_ops): New member function.
4650 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4651 (go_language::expression_ops): New member function.
4652 * language.c (language_defn::expression_ops): New function.
4653 (unknown_language_data): Remove la_exp_desc initializer.
4654 (auto_language_data): Likewise.
4655 * language.h (language_data): Remove la_exp_desc field.
4656 (language_defn::expression_ops): Declare new member function.
4657 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4658 (m2_language::expression_ops): New member function.
4659 * objc-lang.c (objc_language_data): Remove la_exp_desc
4660 initializer.
4661 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4662 initializer.
4663 (opencl_language::expression_ops): New member function.
4664 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4665 * parse.c (operator_length): Update call to expression_ops.
4666 (exp_iterate): Likewise.
4667 * rust-lang.c (rust_language_data): Remove la_exp_desc
4668 initializer.
4669 (ruse_language::expression_ops): New member function.
4670
4671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4674 initializer.
4675 (ada_language::varobj_ops): New member function.
4676 * c-lang.c (c_language_data): Remove la_varobj_ops
4677 initializer.
4678 (cplus_language_data): Likewise.
4679 (cplus_language::varobj_ops): New member function.
4680 (asm_language_data): Remove la_varobj_ops initializer.
4681 (minimal_language_data): Likewise.
4682 * d-lang.c (d_language_data): Likewise.
4683 * f-lang.c (f_language_data): Likewise.
4684 * go-lang.c (go_language_data): Likewise.
4685 * language.c (language_defn::varobj_ops): New function.
4686 (unknown_language_data): Remove la_varobj_ops
4687 initializer.
4688 (auto_language_data): Likewise.
4689 * language.h (language_data): Remove la_varobj_ops field.
4690 (language_defn::varobj_ops): Declare new member function.
4691 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4692 * objc-lang.c (objc_language_data): Likewise.
4693 * opencl-lang.c (opencl_language_data): Likewise.
4694 * p-lang.c (pascal_language_data): Likewise.
4695 * rust-lang.c (rust_language_data): Likewise.
4696 * varobj.c (varobj_create): Update call to varobj_ops.
4697 * varobj.h (default_varobj_ops): Delete define.
4698
4699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4702 initializer.
4703 * c-lang.c (c_language_data): Likewise.
4704 (c_language::macro_expansion): New member function.
4705 (cplus_language_data): Likewise.
4706 (cplus_language::macro_expansion): New member function.
4707 (asm_language_data): Likewise.
4708 (asm_language::macro_expansion): New member function.
4709 (minimal_language_data): Likewise.
4710 (minimal_language::macro_expansion): New member function.
4711 * d-lang.c (d_language_data): Remove la_macro_expansion
4712 initializer.
4713 * f-lang.c (f_language_data): Likewise.
4714 * go-lang.c (go_language_data): Likewise.
4715 * language.c (unknown_language_data): Likewise.
4716 (auto_language_data): Likewise.
4717 * language.h (language_data): Remove la_macro_expansion field.
4718 (language_defn::macro_expansion): New member function.
4719 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4720 initializer.
4721 * objc-lang.c (objc_language_data): Likewise.
4722 (objc_language::macro_expansion): New member function.
4723 * opencl-lang.c (opencl_language_data): Likewise.
4724 (opencl_language::macro_expansion): New member function.
4725 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4726 initializer.
4727 * rust-lang.c (rust_language_data): Likewise.
4728 * symtab.c (default_collect_symbol_completion_matches_break_on):
4729 Update call to macro_expansion.
4730
4731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * ada-lang.c (ada_language_data): Remove la_array_ordering
4734 initializer.
4735 * c-lang.c (c_language_data): Likewise.
4736 (cplus_language_data): Likewise.
4737 (asm_language_data): Likewise.
4738 (minimal_language_data): Likewise.
4739 * d-lang.c (d_language_data): Likewise.
4740 * dwarf2/read.c (read_array_order): Update for call to
4741 array_ordering.
4742 * f-lang.c (f_language_data): Remove la_array_ordering
4743 initializer.
4744 (f_language::array_ordering): New member function.
4745 * go-lang.c (go_language_data): Remove la_array_ordering
4746 initializer.
4747 * language.c (unknown_language_data): Likewise.
4748 (auto_language_data): Likewise.
4749 * language.h (language_data): Delete la_array_ordering field.
4750 (language_defn::array_ordering): New member function.
4751 * m2-lang.c (m2_language_data): Remove la_array_ordering
4752 initializer.
4753 * objc-lang.c (objc_language_data): Likewise.
4754 * opencl-lang.c (opencl_language_data): Likewise.
4755 * p-lang.c (pascal_language_data): Likewise.
4756 * rust-lang.c (rust_language_data): Likewise.
4757
4758 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4761 initializer.
4762 * c-lang.c (c_language_data): Likewise.
4763 (cplus_language_data): Likewise.
4764 (asm_language_data): Likewise.
4765 (minimal_language_data): Likewise.
4766 * d-lang.c (d_language_data): Likewise.
4767 * f-lang.c (f_language_data): Likewise.
4768 (f_language::case_sensitivity): New member function.
4769 * go-lang.c (go_language_data): Remove la_case_sensitivity
4770 initializer.
4771 * language.c (enum case_mode): Moved here from language.h.
4772 (case_mode): Make static.
4773 (show_case_command): Update for case_sensitivity being a method.
4774 (set_case_command): Likewise.
4775 (set_range_case): Likewise.
4776 (unknown_language_data): Remove la_case_sensitivity initializer.
4777 (auto_language_data): Likewise.
4778 * language.h (case_mode): Delete, move enum declaration to
4779 language.c.
4780 (language_data): Delete la_case_sensitivity field.
4781 (language_defn::case_sensitivity): New member function.
4782 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4783 initializer.
4784 * objc-lang.c (objc_language_data): Likewise.
4785 * opencl-lang.c (opencl_language_data): Likewise.
4786 * p-lang.c (pascal_language_data): Likewise.
4787 * rust-lang.c (rust_language_data): Likewise.
4788
4789 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * ada-lang.c (ada_language_data): Remove la_range_check
4792 initializer.
4793 * c-lang.c (c_language_data): Likewise.
4794 (cplus_language_data): Likewise.
4795 (asm_language_data): Likewise.
4796 (minimal_language_data): Likewise.
4797 * d-lang.c (d_language_data): Likewise.
4798 * f-lang.c (f_language_data): Likewise.
4799 (f_language::range_checking_on_by_default): New member function.
4800 * go-lang.c (go_language_data): Remove la_range_check initializer.
4801 * language.c (enum range_mode): Moved here from language.h.
4802 (range_mode): Made static.
4803 (show_range_command): Update to use
4804 range_checking_on_by_default.
4805 (set_range_command): Likewise.
4806 (set_range_case): Likewise.
4807 (unknown_language_data): Remove la_range_check initializer.
4808 (auto_language_data): Likewise.
4809 * language.h (range_mode): Delete. Enum definition moved to
4810 language.c.
4811 (language_data): Remove la_range_check field.
4812 (language_defn::range_checking_on_by_default): New member
4813 function.
4814 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4815 (m2_language::range_checking_on_by_default): New member function.
4816 * objc-lang.c (objc_language_data): Remove la_range_check
4817 initializer.
4818 * opencl-lang.c (opencl_language_data): Likewise.
4819 * p-lang.c (pascal_language_data): Likewise.
4820 (pascal_language::range_checking_on_by_default): New member
4821 function.
4822 * rust-lang.c (rust_language_data): Remove la_range_check
4823 initializer.
4824 (rust_language::range_checking_on_by_default): New member
4825 function.
4826
4827 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4828
4829 * dwarf2/read.c (dwarf2_physname): Remove special case for
4830 language_go.
4831 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4832 member function.
4833
4834 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 * ada-lang.c (ada_language_data): Remove
4837 la_store_sym_names_in_linkage_form_p initializer.
4838 (ada_language::store_sym_names_in_linkage_form_p): New member
4839 function.
4840 * c-lang.c (c_language_data): Remove
4841 la_store_sym_names_in_linkage_form_p initializer.
4842 (c_language::store_sym_names_in_linkage_form_p): New member
4843 function.
4844 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4845 initializer.
4846 (asm_language_data): Likewise.
4847 (asm_language::store_sym_names_in_linkage_form_p): New member
4848 function.
4849 (minimal_language_data): Remove
4850 la_store_sym_names_in_linkage_form_p initializer.
4851 (minimal_language::store_sym_names_in_linkage_form_p): New member
4852 function.
4853 * d-lang.c (d_language_data): Remove
4854 la_store_sym_names_in_linkage_form_p initializer.
4855 * dwarf2/read.c (dwarf2_physname): Update call to
4856 store_sym_names_in_linkage_form_p.
4857 * f-lang.c (f_language_data): Remove
4858 la_store_sym_names_in_linkage_form_p initializer.
4859 * go-lang.c (go_language_data): Remove
4860 la_store_sym_names_in_linkage_form_p initializer.
4861 * language.c (unknown_language_data): Remove
4862 la_store_sym_names_in_linkage_form_p initializer.
4863 (unknown_language::store_sym_names_in_linkage_form_p): New member
4864 function.
4865 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4866 initializer.
4867 (auto_language::store_sym_names_in_linkage_form_p): New member
4868 function.
4869 * language.h (language_data): Remove
4870 la_store_sym_names_in_linkage_form_p member variable.
4871 (language_defn::store_sym_names_in_linkage_form_p): New member
4872 function.
4873 * m2-lang.c (m2_language_data): Remove
4874 la_store_sym_names_in_linkage_form_p initializer.
4875 * objc-lang.c (objc_language_data): Likewise.
4876 * opencl-lang.c (opencl_language_data): Likewise.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * rust-lang.c (rust_language_data): Likewise.
4879
4880 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * ada-lang.c (ada_language_data): Remove string_lower_bound
4883 initializer.
4884 * c-lang.c (c_language_data): Likewise.
4885 (cplus_language_data): Likewise.
4886 (asm_language_data): Likewise.
4887 (minimal_language_data): Likewise.
4888 * d-lang.c (d_language_data): Likewise.
4889 * f-lang.c (f_language_data): Likewise.
4890 * go-lang.c (go_language_data): Likewise.
4891 * language.c (unknown_language_data): Likewise.
4892 (auto_language_data): Likewise.
4893 * language.h (language_data): Remove string_lower_bound field.
4894 (language_defn::string_lower_bound): New member function.
4895 * m2-lang.c (m2_language_data): Remove string_lower_bound
4896 initializer.
4897 (m2_language::string_lower_bound): New member function.
4898 * objc-lang.c (objc_language_data): Remove string_lower_bound
4899 initializer.
4900 * opencl-lang.c (opencl_language_data): Likewise.
4901 * p-lang.c (pascal_language_data): Likewise.
4902 * rust-lang.c (rust_language_data): Likewise.
4903 * valops.c (value_cstring): Update call to string_lower_bound.
4904 (value_string): Likewise.
4905 * value.c (allocate_repeated_value): Likewise.
4906
4907 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * valops.c (value_repeat): Fix incorrect argument name in comment.
4910
4911 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * ada-lang.c (ada_language_data): Remove c_style_arrays
4914 initializer.
4915 (ada_language::c_style_arrays_p): New member fuction.
4916 * c-lang.c (c_language_data): Remove c_style_arrays
4917 initializer.
4918 (cplus_language_data): Likewise.
4919 (asm_language_data): Likewise.
4920 (minimal_language_data): Likewise.
4921 * d-lang.c (d_language_data): Likewise.
4922 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4923 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4924 (f_language::c_style_arrays_p): New member function.
4925 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4926 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4927 * language.c (unknown_language_data): Remove c_style_arrays
4928 initializer.
4929 (auto_language_data): Likewise.
4930 * language.h (language_data): Remove c_style_arrays field.
4931 (language_defn::c_style_arrays_p): New member function.
4932 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4933 (m2_language::c_style_arrays_p): New member function.
4934 * objc-lang.c (objc_language_data): Remove c_style_arrays
4935 initializer.
4936 * opencl-lang.c (opencl_language_data): Likewise.
4937 * p-lang.c (pascal_language_data): Likewise.
4938 * rust-lang.c (rust_language_data): Likewise.
4939 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4940 and update local variable to a bool.
4941 * valops.c (value_cast): Update call to c_style_arrays_p.
4942 (value_array): Likewise.
4943 * value.c (coerce_array): Likewise.
4944
4945 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * ada-lang.c (ada_language_data): Remove la_language initializer.
4948 * c-lang.c (c_language_data): Likewise.
4949 (cplus_language_data): Likewise.
4950 (asm_language_data): Likewise.
4951 (minimal_language_data): Likewise.
4952 * d-lang.c (d_language_data): Likewise.
4953 * f-lang.c (f_language_data): Likewise.
4954 * go-lang.c (go_language_data): Likewise.
4955 * language.c (unknown_language_data): Likewise.
4956 (auto_language_data): Likewise.
4957 * language.h (language_data): Remove la_language field.
4958 (language_defn::language_defn): Initialise la_language field.
4959 (language_defn::la_language): New member variable.
4960 * m2-lang.c (m2_language_data): Remove la_language field.
4961 * objc-lang.c (objc_language_data): Likewise.
4962 * opencl-lang.c (opencl_language_data): Likewise.
4963 * p-lang.c (pascal_language_data): Likewise.
4964 * rust-lang.c (rust_language_data): Likewise.
4965
4966 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * ada-lang.c (ada_extensions): Delete, moved into
4969 ada_language::filename_extensions.
4970 (ada_language_data): Remove la_filename_extensions initializer.
4971 (ada_language::filename_extensions): New member function.
4972 * c-lang.c (c_extensions): Delete, moved into
4973 c_language::filename_extensions.
4974 (c_language_data): Remove la_filename_extensions initializer.
4975 (c_language::filename_extensions): New member function.
4976 (cplus_extensions): Delete, moved into
4977 cplus_language::filename_extensions.
4978 (cplus_language_data): Remove la_filename_extensions initializer.
4979 (cplus_language::filename_extensions): New member function.
4980 (asm_extensions): Delete, moved into
4981 asm_language::filename_extensions.
4982 (asm_language_data): Remove la_filename_extensions initializer.
4983 (asm_language::filename_extensions): New member function.
4984 (minimal_language_data): Remove la_filename_extensions
4985 initializer.
4986 * d-lang.c (d_extensions): Delete, moved into
4987 d_language::filename_extensions.
4988 (d_language_data): Remove la_filename_extensions initializer.
4989 (d_language::filename_extensions): New member function.
4990 * f-lang.c (f_extensions): Delete, moved into
4991 f_language::filename_extensions.
4992 (f_language_data): Remove la_filename_extensions initializer.
4993 (f_language::filename_extensions): New member function.
4994 * go-lang.c (go_language_data): Remove la_filename_extensions
4995 initializer.
4996 * language.c (add_set_language_command): Update now that
4997 filename_extensions returns a vector.
4998 (unknown_language_data): Remove la_filename_extensions
4999 initializer.
5000 (auto_language_data): Likewise.
5001 * language.h (language_data): Remove la_filename_extensions field.
5002 (language_defn::filename_extensions): New member function.
5003 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5004 initializer.
5005 * objc-lang.c (objc_extensions): Delete, moved into
5006 objc_language::filename_extensions.
5007 (objc_language_data): Remove la_filename_extensions initializer.
5008 (objc_language::filename_extensions): New member function.
5009 * opencl-lang.c (opencl_language_data): Remove
5010 la_filename_extensions initializer.
5011 * p-lang.c (pascal_extensions): Delete, moved into
5012 pascal_language::filename_extensions.
5013 (pascal_language_data): Remove la_filename_extensions initializer.
5014 (pascal_language::filename_extensions): New member function.
5015 * rust-lang.c (rust_extensions): Delete, moved into
5016 rust_language::filename_extensions.
5017 (rust_language_data): Remove la_filename_extensions initializer.
5018 (rust_language::filename_extensions): New member function.
5019 * symfile.c (add_filename_language): Add new assert.
5020
5021 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-lang.c (ada_language_data): Remove la_name and
5024 la_natural_name initializers.
5025 (ada_language::name): New member function.
5026 (ada_language::natural_name): New member function.
5027 * c-lang.c (c_language_data): Remove la_name and
5028 la_natural_name initializers.
5029 (c_language::name): New member function.
5030 (c_language::natural_name): New member function.
5031 (cplus_language_data): Remove la_name and
5032 la_natural_name initializers.
5033 (cplus_language::name): New member function.
5034 (cplus_language::natural_name): New member function.
5035 (asm_language_data): Remove la_name and
5036 la_natural_name initializers.
5037 (asm_language::name): New member function.
5038 (asm_language::natural_name): New member function.
5039 (minimal_language_data): Remove la_name and
5040 la_natural_name initializers.
5041 (minimal_language::name): New member function.
5042 (minimal_language::natural_name): New member function.
5043 * compile/compile.c (compile_to_object): Update call to
5044 lanugage_defn::name.
5045 * d-lang.c (d_language_data): Remove la_name and
5046 la_natural_name initializers.
5047 (d_language::name): New member function.
5048 (d_language::natural_name): New member function.
5049 * expprint.c (print_subexp_standard): Update call to
5050 language_defn::name.
5051 (dump_raw_expression): Likewise
5052 (dump_prefix_expression): Likewise.
5053 * f-lang.c (f_language_data): Remove la_name and
5054 la_natural_name initializers.
5055 (f_language::name): New member function.
5056 (f_language::natural_name): New member function.
5057 * go-lang.c (go_language_data): Remove la_name and
5058 la_natural_name initializers.
5059 (go_language::name): New member function.
5060 (go_language::natural_name): New member function.
5061 * language.c (show_language_command): Update call to
5062 language_defn::name.
5063 (set_language_command): Likewise.
5064 (language_enum): Likewise.
5065 (language_str): Likewise.
5066 (add_set_language_command): Likewise, use
5067 language_defn::natural_name in the doc string.
5068 (unknown_language_data): Remove la_name and
5069 la_natural_name initializers.
5070 (unknown_language::name): New member function.
5071 (unknown_language::natural_name): New member function.
5072 (auto_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (auto_language::name): New member function.
5075 (auto_language::natural_name): New member function.
5076 (language_lookup_primitive_type_as_symbol): Update call to
5077 language_defn::name.
5078 * language.h (language_data): Remove la_name and la_natural_name
5079 member variables.
5080 (language_defn::name): New member function.
5081 (language_defn::natural_name): New member function.
5082 * m2-lang.c (m2_language_data): Remove la_name and
5083 la_natural_name initializers.
5084 (m2_language::name): New member function.
5085 (m2_language::natural_name): New member function.
5086 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5087 language_defn::natural_name.
5088 * objc-lang.c (objc_language_data): Remove la_name and
5089 la_natural_name initializers.
5090 (objc_language::name): New member function.
5091 (objc_language::natural_name): New member function.
5092 * opencl-lang.c (opencl_language_data): Remove la_name and
5093 la_natural_name initializers.
5094 (opencl_language::name): New member function.
5095 (opencl_language::natural_name): New member function.
5096 * p-lang.c (pascal_language_data): Remove la_name and
5097 la_natural_name initializers.
5098 (pascal_language::name): New member function.
5099 (pascal_language::natural_name): New member function.
5100 * rust-lang.c (rust_language_data): Remove la_name and
5101 la_natural_name initializers.
5102 (rust_language::name): New member function.
5103 (rust_language::natural_name): New member function.
5104 * symtab.c (lookup_language_this): Update call to
5105 language_defn::name.
5106
5107 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * ada-lang.c (ada_language_data): Remove la_name_of_this
5110 initializer.
5111 * ax-gdb.c (gen_expr): Update call to name_of_this.
5112 * c-exp.y (classify_name): Likewise.
5113 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5114 (cplus_language_data): Likewise.
5115 (cplus_language::name_of_this): New member function.
5116 (asm_language_data): Remove la_name_of_this initializer.
5117 (minimal_language_data): Likewise.
5118 * d-lang.c (d_language_data): Likewise.
5119 (d_language::name_of_this): New member function.
5120 * expprint.c (print_subexp_standard): Update call to name_of_this.
5121 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5122 * go-lang.c (go_language_data): Likewise.
5123 * language.c (unknown_language_data): Likewise.
5124 (unknown_language::name_of_this): New member function.
5125 (auto_language_data): Remove la_name_of_this initializer.
5126 (auto_language::name_of_this): New member function.
5127 * language.h (language_data): Delete la_name_of_this member
5128 variable.
5129 (language_defn::name_of_this): New member function.
5130 * m2-lang.c (m2_language_data): Remove la_name_of_this
5131 initializer.
5132 * objc-lang.c (objc_language_data): Likewise.
5133 (objc_language::name_of_this): New member function.
5134 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5135 initializer.
5136 * p-lang.c (pascal_language_data): Likewise.
5137 (pascal_language::name_of_this): New member function.
5138 * rust-lang.c (rust_language_data): Remove la_name_of_this
5139 initializer.
5140 * symtab.c (lookup_language_this): Update call to name_of_this.
5141 (lookup_symbol_aux): Likewise.
5142 * valops.c (value_of_this): Likewise.
5143
5144 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * ada-lang.c (ada_language_data): Remove
5147 la_struct_too_deep_ellipsis initializer.
5148 (ada_language::struct_too_deep_ellipsis): New member function.
5149 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5150 initializer.
5151 (cplus_language_data): Likewise.
5152 (asm_language_data): Likewise.
5153 (minimal_language_data): Likewise.
5154 * cp-valprint.c (cp_print_value): Update call to
5155 struct_too_deep_ellipsis.
5156 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5157 initializer.
5158 * f-lang.c (f_language_data): Likewise.
5159 (f_language::struct_too_deep_ellipsis): New member function.
5160 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5161 initializer.
5162 * language.c (unknown_language_data): Likewise.
5163 (auto_language_data): Likewise.
5164 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5165 member variable.
5166 (language_defn::struct_too_deep_ellipsis): New member function.
5167 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5168 initializer.Q
5169 * objc-lang.c (objc_language_data): Likewise.
5170 * opencl-lang.c (opencl_language_data): Likewise.
5171 * p-lang.c (pascal_language_data): Likewise.
5172 * rust-lang.c (rust_language_data): Likewise.
5173 * valprint.c (val_print_check_max_depth): Update call to
5174 struct_too_deep_ellipsis.
5175
5176 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5177
5178 * MAINTAINERS (Write After Approval): Add myself.
5179
5180 2020-09-15 Tom Tromey <tom@tromey.com>
5181
5182 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5183 Remove.
5184
5185 2020-09-15 Tom Tromey <tom@tromey.com>
5186
5187 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5188 and TYPE_CODE_METHODPTR cases.
5189 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5190 (c_value_print_inner): Update.
5191 * valprint.c (generic_value_print_memberptr): New function, from
5192 c_value_print_memberptr.
5193 (generic_value_print): Use it. Call cplus_print_method_ptr.
5194
5195 2020-09-15 Tom Tromey <tromey@adacore.com>
5196
5197 * python/python-internal.h (PyInt_FromLong): Remove define.
5198 * python/py-value.c (convert_value_from_python): Use
5199 gdb_py_object_from_longest.
5200 * python/py-type.c (typy_get_code): Use
5201 gdb_py_object_from_longest.
5202 * python/py-symtab.c (salpy_get_line): Use
5203 gdb_py_object_from_longest.
5204 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5205 gdb_py_object_from_longest.
5206 * python/py-record.c (recpy_gap_reason_code): Use
5207 gdb_py_object_from_longest.
5208 * python/py-record-btrace.c (recpy_bt_insn_size)
5209 (recpy_bt_func_level, btpy_list_count): Use
5210 gdb_py_object_from_longest.
5211 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5212 gdb_py_object_from_longest. Fix error handling.
5213 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5214 gdb_py_object_from_longest.
5215 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5216 gdb_py_object_from_longest.
5217 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5218 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5219 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5220
5221 2020-09-15 Tom Tromey <tromey@adacore.com>
5222
5223 * python/python.c (gdbpy_parameter_value): Use
5224 gdb_py_object_from_ulongest.
5225
5226 2020-09-15 Tom Tromey <tromey@adacore.com>
5227
5228 * python/py-infevents.c (create_register_changed_event_object):
5229 Use gdb_py_object_from_longest.
5230 * python/py-exitedevent.c (create_exited_event_object): Use
5231 gdb_py_object_from_longest.
5232
5233 2020-09-15 Tom Tromey <tromey@adacore.com>
5234
5235 * python/python.c (gdbpy_parameter_value): Use
5236 gdb_py_object_from_longest.
5237 * python/py-type.c (convert_field, typy_range): Use
5238 gdb_py_object_from_longest.
5239 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5240 gdb_py_object_from_longest.
5241 * python/py-lazy-string.c (stpy_get_length): Use
5242 gdb_py_object_from_longest.
5243 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5244 gdb_py_object_from_longest.
5245 * python/py-infevents.c (create_memory_changed_event_object): Use
5246 gdb_py_object_from_longest.
5247 * python/py-inferior.c (infpy_get_num): Use
5248 gdb_py_object_from_longest.
5249 (infpy_get_pid): Likewise.
5250
5251 2020-09-15 Tom Tromey <tromey@adacore.com>
5252
5253 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5254 defines.
5255 * python/py-value.c (valpy_long): Use
5256 gdb_py_object_from_ulongest.
5257 * python/py-symtab.c (salpy_get_pc): Use
5258 gdb_py_object_from_ulongest.
5259 (salpy_get_last): Likewise.
5260 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5261 gdb_py_object_from_ulongest.
5262 * python/py-lazy-string.c (stpy_get_address): Use
5263 gdb_py_object_from_ulongest.
5264 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5265 * python/py-arch.c (archpy_disassemble): Use
5266 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5267 error handling.
5268
5269 2020-09-15 Tom Tromey <tromey@adacore.com>
5270
5271 * python/python-internal.h (gdb_py_long_from_longest): Remove
5272 defines.
5273 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5274 * python/py-type.c (convert_field, typy_get_sizeof): Use
5275 gdb_py_object_from_longest.
5276 * python/py-record-btrace.c (btpy_list_index): Use
5277 gdb_py_object_from_longest.
5278
5279 2020-09-15 Tom Tromey <tromey@adacore.com>
5280
5281 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5282 * python/py-record.c (recpy_element_number): Use
5283 gdb_py_object_from_longest.
5284 (recpy_gap_number): Likewise.
5285
5286 2020-09-15 Tom Tromey <tromey@adacore.com>
5287
5288 * top.c (ui::ui): Update.
5289 (highest_ui_num): Remove.
5290 * top.h (struct ui) <num>: Remove.
5291
5292 2020-09-15 Tom Tromey <tromey@adacore.com>
5293
5294 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5295 * ui-style.c (ansi_regex_text): Now array.
5296 * rust-exp.y (number_regex_text): Now array.
5297 * linespec.c (linespec_quote_characters): Now array.
5298 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5299 Now arrays.
5300
5301 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * debuginfod-support.c (debuginfod_client_deleter): New.
5304 (debuginfod_client_up): New.
5305 (debuginfod_init): Return debuginfod_client_up.
5306 (debuginfod_source_query): Adjust.
5307 (debuginfod_debuginfo_query): Adjust.
5308
5309 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * debuginfod-support.c (debuginfod_source_query): Use
5312 make_unique_xstrdup.
5313
5314 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5317 with `type::instance_flags`.
5318
5319 2020-09-14 Michael Mullin <masmullin@gmail.com>
5320
5321 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5322 Remove baton parameter.
5323
5324 2020-09-14 Pedro Alves <pedro@palves.net>
5325
5326 * Makefile.in (SELFTESTS_SRCS): Add
5327 unittests/enum-flags-selftests.c.
5328 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5329 btrace_function_flags instead of enum btrace_function_flag.
5330 * compile/compile-c-types.c (convert_qualified): Use
5331 enum_flags::raw.
5332 * compile/compile-cplus-symbols.c (convert_one_symbol)
5333 (convert_symbol_bmsym):
5334 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5335 (compile_cplus_convert_struct_or_union_methods)
5336 (compile_cplus_instance::convert_qualified_base):
5337 * go-exp.y (parse_string_or_char): Add cast to int.
5338 * unittests/enum-flags-selftests.c: New file.
5339 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5340 type to btrace_thread_flags from btrace_thread_flag.
5341 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5342 local's type to btrace_thread_flags from btrace_thread_flag. Add
5343 cast in DEBUG call.
5344
5345 2020-09-14 Pedro Alves <pedro@palves.net>
5346
5347 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5348 * gdbtypes.c (address_space_name_to_int): Rename to ...
5349 (address_space_name_to_type_instance_flags): ... this.
5350 (address_space_int_to_name): Rename to ...
5351 (address_space_type_instance_flags_to_name): ... this.
5352 * gdbtypes.h (address_space_name_to_int): Rename to ...
5353 (address_space_name_to_type_instance_flags): ... this.
5354 (address_space_int_to_name): Rename to ...
5355 (address_space_type_instance_flags_to_name): ... this.
5356 * type-stack.c (type_stack::insert): Adjust to rename.
5357 * type-stack.h (type_stack::insert): Likewise.
5358
5359 2020-09-14 Pedro Alves <pedro@palves.net>
5360 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * avr-tdep.c (avr_address_class_type_flags): Return
5363 type_instance_flags.
5364 (avr_address_class_type_flags_to_name): Take a
5365 type_instance_flags.
5366 (avr_address_class_name_to_type_flags): Return bool and take a
5367 type_instance_flags.
5368 * d-lang.c (build_d_types): Use type::set_instance_flags.
5369 * ft32-tdep.c (ft32_address_class_type_flags): Return
5370 type_instance_flags.
5371 (ft32_address_class_type_flags_to_name): Take a
5372 type_instance_flags.
5373 (ft32_address_class_name_to_type_flags): Return bool and take a
5374 type_instance_flags.
5375 (ft32_gdbarch_init): Use type::set_instance_flags.
5376 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5377 * gdbarch.h, gdbarch.c: Regenerate.
5378 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5379 (address_class_name_to_type_flags): Use type_instance_flags and
5380 bool.
5381 * gdbtypes.c (address_space_name_to_int)
5382 (address_space_int_to_name, make_qualified_type): Use
5383 type_instance_flags.
5384 (make_qualified_type): Use type_instance_flags and
5385 type::set_instance_flags.
5386 (make_type_with_address_space, make_cv_type, make_vector_type)
5387 (check_typedef): Use type_instance_flags.
5388 (recursive_dump_type): Cast type_instance_flags to unsigned for
5389 printing.
5390 (copy_type_recursive): Use type::set_instance_flags.
5391 (gdbtypes_post_init): Use type::set_instance_flags.
5392 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5393 <m_instance_flags>: ... this.
5394 <instance_flags, set_instance_flags>: New methods.
5395 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5396 (SET_TYPE_INSTANCE_FLAGS): New.
5397 (address_space_name_to_int, address_space_int_to_name)
5398 (make_type_with_address_space): Pass flags using
5399 type_instance_flags instead of int.
5400 * stabsread.c (cleanup_undefined_types_noname): Use
5401 type::set_instance_flags.
5402 * s390-tdep.c (s390_address_class_type_flags): Return
5403 type_instance_flags.
5404 (s390_address_class_type_flags_to_name): Take a
5405 type_instance_flags.
5406 (s390_address_class_name_to_type_flags): Return bool and take a
5407 type_instance_flags.
5408 * type-stack.c (type_stack::follow_types): Use
5409 type_instance_flags.
5410 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5411
5412 2020-09-14 Tom Tromey <tromey@adacore.com>
5413
5414 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5415 * x86-tdep.c (x86_is_thunk_register_name)
5416 (x86_in_indirect_branch_thunk): Update.
5417 * sparc64-tdep.c (sparc64_fpu_register_names)
5418 (sparc64_cp0_register_names, sparc64_register_names)
5419 (sparc64_pseudo_register_names): Now const.
5420 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5421 cp0_registers_num>: Now const.
5422 * sparc-tdep.c (sparc_core_register_names)
5423 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5424 (sparc32_pseudo_register_names): Now const.
5425 (validate_tdesc_registers): Update.
5426 * rust-lang.c (rust_extensions): Now const.
5427 * p-lang.c (p_extensions): Now const.
5428 * objc-lang.c (objc_extensions): Now const.
5429 * nto-tdep.c (nto_thread_state_str): Now const.
5430 * moxie-tdep.c (moxie_register_names): Now const.
5431 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5432 Now const.
5433 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5434 (mips_linux_reg_names): Now const.
5435 (mips_gdbarch_init): Update.
5436 * microblaze-tdep.c (microblaze_register_names): Now const.
5437 * m68k-tdep.c (m68k_register_names): Now const.
5438 * m32r-tdep.c (m32r_register_names): Now const.
5439 * ia64-tdep.c (ia64_register_names): Now const.
5440 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5441 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5442 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5443 ymm_avx512_register_names, pkeys_register_names>: Now const.
5444 * i386-tdep.c (i386_register_names, i386_zmm_names)
5445 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5446 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5447 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5448 * f-lang.c (f_extensions): Now const.
5449 * d-lang.c (d_extensions): Now const.
5450 * csky-tdep.c (csky_register_names): Now const.
5451 * charset.c (default_charset_names, charset_enum): Now const.
5452 (_initialize_charset): Update.
5453 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5454 const.
5455 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5456 (bsd_uthread_solib_loaded): Update.
5457 (bsd_uthread_state): Now const.
5458 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5459 (amd64_ymm_avx512_names, amd64_ymmh_names)
5460 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5461 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5462 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5463 (amd64_dword_names): Now const.
5464 * agent.c (can_use_agent_enum): Now const.
5465 * ada-tasks.c (task_states, long_task_states): Now const.
5466 * ada-lang.c (known_runtime_file_name_patterns)
5467 (known_auxiliary_function_name_patterns, attribute_names)
5468 (standard_exc, ada_extensions): Now const.
5469
5470 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * bcache.h (struct bcache) <bcache>: Remove constructor.
5473 <m_hash_function, m_compare_function>: Remove.
5474 <~bcache>: Make virtual.
5475 <compare>: Remove static method, introduce virtual method.
5476 <default_hash>: Remove.
5477 <hash>: New virtual method.
5478 * bcache.c (bcache::expand_hash_table): Update.
5479 (bcache::insert): Update.
5480 (bcache::hash): New.
5481 (bcache::compare): Update comment and parameter names.
5482 * gdbtypes.c (types_deeply_equal): Update.
5483 * psymtab.h (struct psymbol_bcache): New struct.
5484 (class psymtab_storage) <psymtab_storage>: Make default.
5485 <psymbol_cache>: Change type to psymbol_bcache.
5486 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5487 (psymbol_hash): Change to...
5488 (psymbol_bcache::hash): ... this.
5489 (psymbol_compare): Change to...
5490 (psymbol_bcache::compare): ... this.
5491
5492 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5493
5494 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5495 checking for initial lwp.
5496
5497 2020-09-14 Tom Tromey <tromey@adacore.com>
5498
5499 * m68k-tdep.c (m68k_extract_return_value): Use
5500 pointer_result_regnum.
5501 (m68k_store_return_value): Likewise.
5502 (m68k_reg_struct_return_p): Handle vectors and arrays.
5503 (m68k_return_value): Handle arrays.
5504 (m68k_svr4_return_value): Fix single-element aggregate handling.
5505 Handle long double. Adjust for embedded ABI.
5506 (m68k_svr4_init_abi): Set pointer_result_regnum.
5507 (m68k_embedded_init_abi): New function.
5508 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5509 (m68k_osabi_sniffer): New function.
5510 (_initialize_m68k_tdep): Register osabi sniffer.
5511 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5512 member.
5513
5514 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5517 with gdb::unique_xmalloc_ptr<char>.
5518
5519 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * xml-support.h (xml_fetch_another): Change type to be a
5522 function_view.
5523 (xml_process_xincludes): Remove baton parameter.
5524 (xml_fetch_content_from_file): Change baton parameter to
5525 dirname.
5526 * xml-support.c (struct xinclude_parsing_data)
5527 <xinclude_parsing_data>: Remove baton parameter.
5528 <fetcher_baton>: Remove.
5529 (xinclude_start_include): Adjust.
5530 (xml_process_xincludes): Adjust.
5531 (xml_fetch_content_from_file): Replace baton parameter with
5532 dirname.
5533 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5534 (xml_init_syscalls_info): Use a lambda.
5535 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5536 (file_read_description_xml): Use a lambda.
5537 (fetch_available_features_from_target): Change baton parameter
5538 to target_ops.
5539 (target_read_description_xml): Use a lambda.
5540 (target_fetch_description_xml): Use a lambda.
5541 (string_read_description_xml): Update.
5542
5543 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5544
5545 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5546 uses with type::endianity_is_not_default.
5547
5548 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * gdbtypes.h (struct type) <endianity_is_not_default,
5551 set_endianity_is_not_default>: New methods.
5552 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5553 type::endianity_is_not_default, change all write call sites to
5554 use type::set_endianity_is_not_default.
5555
5556 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5559 uses with type::is_fixed_instance.
5560
5561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5562
5563 * gdbtypes.h (struct type) <is_fixed_instance,
5564 set_is_fixed_instance>: New methods.
5565 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5566 write call sites to use type::set_is_fixed_instance.
5567
5568 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5571 uses with type::is_gnu_ifunc.
5572
5573 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5574
5575 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5576 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5577 use type::set_is_gnu_ifunc.
5578
5579 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5580
5581 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5582 uses with type::stub_is_supported.
5583
5584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5587 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5588 use type::set_stub_is_supported.
5589
5590 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5593 uses with type::is_vector.
5594
5595 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5598 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5599 use type::set_is_vector.
5600
5601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5604 uses with type::has_varargs.
5605
5606 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5607
5608 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5609 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5610 use type::set_has_varargs.
5611
5612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5615 uses with type::is_prototyped.
5616
5617 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5620 New methods.
5621 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5622 call sites to use type::set_is_prototyped.
5623
5624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5627 uses with type::target_is_stub.
5628
5629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5632 New methods.
5633 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5634 sites to use type::set_target_is_stub.
5635
5636 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * gdbtypes.h (TYPE_STUB): Remove, replace all
5639 uses with type::is_stub.
5640
5641 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5644 (TYPE_STUB): Use type::is_stub, change all write call sites to
5645 use type::set_is_stub.
5646
5647 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5650 type::has_no_signedness.
5651
5652 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * gdbtypes.h (struct type) <has_no_signedness,
5655 set_has_no_signedness>: New methods.
5656 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5657 call sites to use type::set_has_no_signedness.
5658
5659 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5662 type::is_unsigned.
5663
5664 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5667 methods.
5668 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5669 sites to use type::set_is_unsigned.
5670
5671 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5672 Adam Renquinha <arenquinha@cimeq.qc.ca>
5673
5674 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5675 pointer and stack frame offset when unwinding.
5676
5677 2020-09-13 Pedro Alves <pedro@palves.net>
5678
5679 * NEWS: Document "-break-insert --qualified".
5680 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5681
5682 2020-09-13 Pedro Alves <pedro@palves.net>
5683
5684 * linespec.c (classify_mtype, compare_msyms): Delete.
5685 (search_minsyms_for_name): Remove classification logic. Instead
5686 filter out trampoline symbols if we also found an external
5687 function of the same name.
5688
5689 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5690
5691 * NEWS: Create a new section for the next release branch.
5692 Rename the section of the current branch, now that it has
5693 been cut.
5694
5695 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5696
5697 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5698 * version.in: Bump version to 11.0.50.DATE-git.
5699
5700 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5701
5702 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5703
5704 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5705 Felix Willgerodt <Felix.Willgerodt@intel.com>
5706
5707 * gdbarch.sh: Added bfloat16 type.
5708 * gdbarch.c: Regenerated.
5709 * gdbarch.h: Regenerated.
5710 * gdbtypes.c (floatformats_bfloat16): New struct.
5711 (gdbtypes_post_init): Add builtin_bfloat16.
5712 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5713 (floatformats_bfloat16): New struct.
5714 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5715 (i386_ymm_type): Add field "v16_bfloat16"
5716 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5717 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5718 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5719 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5720 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5721 * features/i386/64bit-avx512.c: Regenerated.
5722 * features/i386/64bit-sse.xml: Add bfloat16 type.
5723 * features/i386/64bit-sse.c: Regenerated.
5724
5725 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5726
5727 * i386-tdep.c (i386_zmm_type): Fix field names.
5728 (i386_ymm_type): Fix field names.
5729
5730 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5731
5732 * breakpoint.c: Fix typo in the help message of the
5733 "set breakpoint condition-evaluation" command.
5734
5735 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5736
5737 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5738 * (nbsd_nat_target::pid_to_exec_file)
5739 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5740 (nbsd_nat_target::post_startup_inferior)
5741 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5742 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5743 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5744 * (nbsd_thread_lister): Remove.
5745
5746 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5747
5748 * fork-inferior.c (startup_inferior): Avoid double free.
5749
5750 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5751
5752 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5753 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5754
5755 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5756
5757 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5758 * netbsd-nat.c: Include <sys/ptrace.h>.
5759 * (netbsd_nat::enable_proc_events): Add.
5760
5761 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5762
5763 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5764 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5765 (netbsd_nat::for_each_thread): Add.
5766 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5767 "gdbsupport/common-debug.h".
5768 * (netbsd_nat::netbsd_thread_lister)
5769 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5770 (netbsd_nat::for_each_thread): Add.
5771
5772 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5773
5774 * netbsd-nat.h: Include <unistd.h>.
5775 * (netbsd_nat::pid_to_exec_file): Add.
5776 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5777 * (netbsd_nat::pid_to_exec_file) Add.
5778
5779 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5780
5781 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5782
5783 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5784
5785 * netbsd-nat.h: New file.
5786 * netbsd-nat.c: Likewise.
5787
5788 2020-09-09 Tom Tromey <tromey@adacore.com>
5789
5790 * ada-lang.c (remove_extra_symbols): Do not increment when
5791 removing an element
5792
5793 2020-09-08 Tom Tromey <tromey@adacore.com>
5794
5795 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5796
5797 2020-09-08 Tom Tromey <tromey@adacore.com>
5798
5799 PR win32/25302:
5800 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5801 (gdb_bfd_init_data): New function.
5802 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5803
5804 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5805
5806 * infrun.c (fetch_inferior_event): Use
5807 `switch_to_target_no_thread` to switch the target.
5808
5809 2020-09-06 Tom Tromey <tom@tromey.com>
5810
5811 * symfile.h (dwarf2_free_objfile): Don't declare.
5812
5813 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5814
5815 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5816 to match 16 byte real/complex type generated by Flang compiler.
5817
5818 2020-09-03 Tom de Vries <tdevries@suse.de>
5819
5820 PR breakpoint/26546
5821 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5822 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5823
5824 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * maint.c (index_digits): New function.
5827 (struct maint_print_section_data): Remove.
5828 (print_bfd_section_info): Remove print_data parameter, add arg
5829 and index_digits.
5830 (print_objfile_section_info): Likewise.
5831 (print_bfd_section_info_maybe_relocated): Likewise (plus
5832 objfile).
5833 (maintenance_info_sections): Adjust calls.
5834
5835 2020-09-02 Tom Tromey <tromey@adacore.com>
5836
5837 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5838 for null pointers.
5839 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5840
5841 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * bcache.h (struct bcache) <insert>: Change type of `added` to
5844 pointer to bool.
5845 * bcache.c (bcache::insert): Likewise.
5846 * gdbtypes.c (check_types_worklist): Adjust.
5847 * psymtab.c (add_psymbol_to_bcache): Adjust.
5848
5849 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5850
5851 * corelow.c (unordered_set): Include.
5852 (class core_target): Add field 'm_core_unavailable_mappings'.
5853 (core_target::build_file_mappings): Print only one warning
5854 per inaccessible file. Add unavailable/broken mappings
5855 to m_core_unavailable_mappings.
5856 (core_target::xfer_partial): Call...
5857 (core_target::xfer_memory_via_mappings): New method.
5858
5859 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5860
5861 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5862 type to bool.
5863
5864 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * dwarf2/read.c (struct field_info): Fix indentation.
5867
5868 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5869
5870 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5871 ordering in comment.
5872 * frame.c (frame_id_eq): Fix indentation.
5873
5874 2020-08-31 Scott Linder <scott@scottlinder.com>
5875 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5878 inline frame ids in outer frame.
5879
5880 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5883 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5884 (outer_frame_id): Use FID_STACK_OUTER instead of
5885 FID_STACK_INVALID.
5886 (frame_id_p): Don't check for outer_frame_id.
5887
5888 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5891 regnum/frame in value. Call allocate_value_lazy.
5892 * frame.c (frame_unwind_register_value): Use
5893 val_print_not_saved.
5894
5895 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5898
5899 2020-08-29 Pedro Alves <pedro@palves.net>
5900
5901 * progspace.c (print_program_space): Use all_inferiors. Switch to
5902 the inferior before calling target_pid_to_str.
5903
5904 2020-08-28 Tom Tromey <tom@tromey.com>
5905
5906 * xcoffread.c (xcoff_end_psymtab): Update comment.
5907 * dbxread.c (dbx_end_psymtab): Update comment.
5908
5909 2020-08-28 Tom de Vries <tdevries@suse.de>
5910
5911 PR breakpoint/26544
5912 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5913 event_location.
5914 (create_breakpoint): Same.
5915 (base_breakpoint_decode_location): Same.
5916 (bkpt_create_sals_from_location): Same.
5917 (bkpt_decode_location): Same.
5918 (bkpt_probe_create_sals_from_location): Same.
5919 (bkpt_probe_decode_location): Same.
5920 (tracepoint_create_sals_from_location): Same.
5921 (tracepoint_decode_location): Same.
5922 (tracepoint_probe_decode_location): Same.
5923 (strace_marker_create_sals_from_location): Same.
5924 (strace_marker_decode_location): Same.
5925 (create_sals_from_location_default): Same.
5926 (decode_location_default): Same.
5927 * breakpoint.h (struct breakpoint_ops): Same.
5928 (create_breakpoint): Same.
5929 * linespec.h (decode_line_full): Same.
5930 * linespec.c (decode_line_full): Same. Throw error if
5931 result.size () == 0.
5932
5933 2020-08-27 Pedro Alves <pedro@palves.net>
5934
5935 PR gdb/26524
5936 * breakpoint.c (until_break_fsm) <location_breakpoint,
5937 caller_breakpoint>: Delete fields.
5938 <breakpoints>: New field.
5939 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5940 two individual breakpoints.
5941 (until_break_fsm::should_stop): Loop over breakpoints in the
5942 breakpoint vector.
5943 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5944 vector.
5945 (until_break_command): Handle location expanding into multiple
5946 sals.
5947
5948 2020-08-27 Pedro Alves <pedro@palves.net>
5949
5950 PR gdb/26523
5951 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5952 bp_until breakpoints user-specified locations. Update intro
5953 comment.
5954
5955 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5958 gdb_bfd_sections): New.
5959 * maint.c (print_bfd_section_info): Change param type to
5960 maint_print_section_data.
5961 (print_objfile_section_info): Likewise.
5962 (print_bfd_section_info_maybe_relocated): Likewise.
5963 (maintenance_info_sections): Use gdb_bfd_sections.
5964
5965 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5966
5967 * MAINTAINERS: Add ARC target and maintainer.
5968
5969 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5970
5971 * configure.tgt: ARC support for GNU/Linux.
5972 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5973 * arc-linux-tdep.c: New file.
5974 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5975 * arc-tdep.c (arc_write_pc): Use it.
5976
5977 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5978
5979 * arc-tdep.c (arc_check_for_hardware_loop): New.
5980 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5981
5982 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5983
5984 * arc-tdep.h: Include "gdbarch.h".
5985
5986 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5987
5988 * arch/arc.h
5989 (arc_gdbarch_features): New class to stir the selection of target XML.
5990 (arc_create_target_description): Use FEATURES to choose XML target.
5991 (arc_lookup_target_description): Use arc_create_target_description
5992 to create _new_ target descriptions or return the already created
5993 ones if the FEATURES is the same.
5994 * arch/arc.c: Implementation of prototypes described above.
5995 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5996 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5997 * arc-tdep.c (*_feature_name): Make feature names consistent.
5998 (arc_register_feature): A new struct to hold information about
5999 registers of a particular target/feature.
6000 (arc_check_tdesc_feature): Check if XML provides registers in
6001 compliance with ARC_REGISTER_FEATURE structs.
6002 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6003 (determine_*_reg_feature_set): Which feature name to look for.
6004 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6005 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6006 to expected ISA enums to be used in arc_gdbarch_features structs.
6007 * features/Makefile (FEATURE_XMLFILES): Add new files.
6008 * gdb/features/arc/v1-aux.c: New file.
6009 * gdb/features/arc/v1-aux.xml: Likewise.
6010 * gdb/features/arc/v1-core.c: Likewise.
6011 * gdb/features/arc/v1-core.xml: Likewise.
6012 * gdb/features/arc/v2-aux.c: Likewise.
6013 * gdb/features/arc/v2-aux.xml: Likewise.
6014 * gdb/features/arc/v2-core.c: Likewise.
6015 * gdb/features/arc/v2-core.xml: Likewise.
6016 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6017
6018 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6019 Andrew Burgess <andrew.burgess@embecosm.com>
6020
6021 PR m2/26372
6022 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6023 an assert. Remove single element array indexing pattern as the
6024 MULTI_SUBSCRIPT support will handle this case too.
6025
6026 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * value.h (valprint_check_validity): Move declaration from
6029 here...
6030 * valprint.h (valprint_check_validity): ... to here.
6031
6032 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6033
6034 * debug.h: New file.
6035 * debug.c (debug_prefixed_vprintf): New function.
6036 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6037 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6038
6039 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * infrun.h (infrun_debug_printf_1): New function declaration.
6042 (infrun_debug_printf): New macro.
6043 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6044 throughout.
6045 (infrun_debug_printf): New function.
6046 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6047 (handle_jit_event): Likewise.
6048
6049 2020-08-21 Mark Wielaard <mark@klomp.org>
6050
6051 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6052
6053 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * frame.c (enum class frame_id_status): New.
6056 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6057 (fprintf_frame): Update.
6058 (compute_frame_id): Set frame id status to "computing" on entry.
6059 Set it back to "not_computed" on failure and to "computed" on
6060 success.
6061 (get_frame_id): Assert the frame id is not being computed.
6062 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6063 (create_new_frame): Likewise.
6064 (frame_cleanup_after_sniffer): Update assert.
6065
6066 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * regcache.c (pid_ptid_regcache_map): New type.
6069 (target_ptid_regcache_map): Remove.
6070 (target_pid_ptid_regcache_map): New type.
6071 (regcaches): Change type to target_pid_ptid_regcache_map.
6072 (get_thread_arch_aspace_regcache): Update.
6073 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6074 case.
6075 (regcaches_size): Update.
6076 (regcache_count): Update.
6077 (registers_changed_ptid_target_pid_test): New.
6078 (_initialize_regcache): Register new test.
6079
6080 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * regcache.c (regcache_count): New.
6083 (struct regcache_test_data): New.
6084 (regcache_test_data_up): New.
6085 (populate_regcaches_for_test): New.
6086 (regcaches_test): Remove.
6087 (get_thread_arch_aspace_regcache_test): New.
6088 (registers_changed_ptid_all_test): New.
6089 (registers_changed_ptid_target_test): New.
6090 (registers_changed_ptid_target_ptid_test): New.
6091 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6092 (_initialize_regcache): Register new tests.
6093
6094 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6097 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6098 gdbarch and aspace parameter. Use current inferior's aspace.
6099 Validate regcache's arch value.
6100 (regcaches_test): Update.
6101
6102 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * regcache.c (regcaches_test): Call registers_changed.
6105
6106 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6107
6108 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6109
6110 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6111
6112 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6113 to find the end of prologue for flang compiled binaries.
6114 * arm-tdep.c (arm_skip_prologue): Likewise.
6115 * i386-tdep.c (i386_skip_prologue): Likewise.
6116 * producer.c (producer_is_llvm): New function.
6117 (producer_parsing_tests): Added new tests for clang/flang.
6118 * producer.h (producer_is_llvm): New declaration.
6119
6120 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * linux-nat.c (linux_nat_debug_printf): New function.
6123 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6124
6125 2020-08-18 Aaron Merey <amerey@redhat.com>
6126
6127 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6128 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6129 (CLIBS): Add DEBUGINFOD_LIBS.
6130
6131 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6132
6133 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6134 'gdbarch_num_regs'.
6135
6136 2020-08-17 Tom Tromey <tromey@adacore.com>
6137
6138 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6139 ada_get_decoded_value returns NULL.
6140
6141 2020-08-17 Tom Tromey <tromey@adacore.com>
6142
6143 * python/py-inferior.c (infpy_search_memory): Use
6144 gdb_py_object_from_ulongest.
6145 * python/py-infevents.c (create_inferior_call_event_object)
6146 (create_memory_changed_event_object): Use
6147 gdb_py_object_from_ulongest.
6148 * python/py-linetable.c (ltpy_entry_get_pc): Use
6149 gdb_py_object_from_ulongest.
6150
6151 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * loc.c (class symbol_needs_eval_context): Fix indentation.
6154
6155 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6158 bool.
6159
6160 2020-08-17 Tom de Vries <tdevries@suse.de>
6161
6162 PR gdb/26393
6163 * gdbtypes.c (dump_dynamic_prop): New function.
6164 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6165
6166 2020-08-15 Tom de Vries <tdevries@suse.de>
6167
6168 PR backtrace/26390
6169 * stack.c (print_frame_args): Temporarily set the selected
6170 frame to FRAME while printing the frame's arguments.
6171
6172 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6173
6174 PR breakpoints/26385
6175 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6176 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6177
6178 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6179
6180 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6181 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6182 and >= to check return value instead of == -1 and != -1.
6183
6184 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6185
6186 * utils.h (class gdb_argv) <as_array_view>: New method.
6187 * utils.c (gdb_argv_as_array_view_test): New.
6188 (_initialize_utils): Register selftest.
6189 * maint.c (maintenance_selftest): Use the new method.
6190
6191 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6192
6193 * target.h (supports_dumpcore, dumpcore): New
6194 function declarations.
6195 * target.c (supports_dumpcore, dumpcore): New
6196 functions.
6197 * target-delegates.c: Rebuild.
6198 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6199 and target_dumpcore ().
6200
6201 2020-08-13 Aaron Merey <amerey@redhat.com>
6202
6203 * debuginfod-support.c: Replace global variables with user_data.
6204
6205 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * maint.c (maintenance_selftest): Split args and pass array_view
6208 to run_tests.
6209
6210 2020-08-12 Luis Machado <luis.machado@linaro.org>
6211
6212 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6213 type's length.
6214 Use %s and pulongest to print the length.
6215
6216 2020-08-12 Pedro Alves <palves@redhat.com>
6217
6218 * NEWS: Move "Multi-target debugging support" item to the
6219 "Changes since GDB 9" section.
6220
6221 2020-08-12 Pedro Alves <palves@redhat.com>
6222
6223 PR gdb/26336
6224 * progspace.c (program_space::remove_objfile): Invalidate the
6225 frame cache.
6226
6227 2020-08-11 Tom de Vries <tdevries@suse.de>
6228
6229 * MAINTAINERS: Mark ms1 as deleted.
6230
6231 2020-08-10 Luis Machado <luis.machado@linaro.org>
6232
6233 PR gdb/26310
6234
6235 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6236 act accordingly.
6237 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6238 movz/str/stur/stp skipping behavior.
6239
6240 2020-08-10 Luis Machado <luis.machado@linaro.org>
6241
6242 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6243 struct user_sve_header instead of struct sve_context.
6244
6245 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * read.h (dwarf2_fetch_die_loc_sect_off,
6248 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6249 `void *` parameter with function_view.
6250 * read.c (dwarf2_fetch_die_loc_sect_off,
6251 dwarf2_fetch_die_loc_cu_off): Likewise.
6252 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6253 (per_cu_dwarf_call): Adjust.
6254 (get_frame_address_in_block_wrapper): Remove.
6255 (indirect_synthetic_pointer): Adjust.
6256 (get_ax_pc): Remove.
6257 (dwarf2_compile_expr_to_ax): Adjust.
6258
6259 2020-08-08 Tom de Vries <tdevries@suse.de>
6260
6261 PR build/26344
6262 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6263 constructor.
6264 * regcache.c (get_thread_arch_aspace_regcache): Same.
6265
6266 2020-08-07 Tom Tromey <tromey@adacore.com>
6267
6268 * ravenscar-thread.c
6269 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6270 New method.
6271 (ravenscar_thread_target::wait): Check
6272 runtime_initialized.
6273 (ravenscar_thread_target::prepare_to_store)
6274 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6275 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6276 (ravenscar_thread_target::stopped_by_watchpoint)
6277 (ravenscar_thread_target::stopped_data_address)
6278 (ravenscar_thread_target::core_of_thread): Use
6279 scoped_restore_current_thread and
6280 set_base_thread_from_ravenscar_task.
6281
6282 2020-08-07 Tom Tromey <tromey@adacore.com>
6283
6284 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6285
6286 2020-08-07 Tom Tromey <tromey@adacore.com>
6287
6288 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6289 update_inferior_ptid before update_thread_list.
6290 (temporarily_change_regcache_ptid): New class.
6291 (ravenscar_thread_target::fetch_registers)
6292 (ravenscar_thread_target::store_registers)
6293 (ravenscar_thread_target::prepare_to_store): Use base thread when
6294 forwarding operation.
6295
6296 2020-08-07 Tom Tromey <tromey@adacore.com>
6297
6298 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6299 "is_pid" case.
6300
6301 2020-08-07 Tom Tromey <tromey@adacore.com>
6302
6303 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6304 New methods.
6305 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6306 first.
6307 (ravenscar_thread_target::add_thread): Rename from
6308 ravenscar_add_thread.
6309 (ravenscar_thread_target::update_thread_list): Use a lambda.
6310 (ravenscar_thread_target::xfer_partial): New method.
6311
6312 2020-08-07 Tom Tromey <tromey@adacore.com>
6313
6314 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6315 gdb::function_view.
6316 (iterate_over_live_ada_tasks): Change type of argument.
6317 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6318 of argument.
6319
6320 2020-08-07 Tom Tromey <tromey@adacore.com>
6321
6322 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6323 Remove.
6324 (ravenscar_thread_target::extra_thread_info): Remove.
6325 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6326 defer to target beneath for non-Ravenscar threads.
6327
6328 2020-08-07 Tom Tromey <tromey@adacore.com>
6329
6330 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6331 get_base_thread_from_ravenscar_task>: Now methods.
6332 <m_cpu_map>: New member.
6333 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6334 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6335 (ravenscar_thread_target::task_is_currently_active): Update.
6336 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6337 Now a method.
6338 (ravenscar_thread_target::add_active_thread): Put initial thread
6339 into the m_cpu_map.
6340
6341 2020-08-07 Tom Tromey <tromey@adacore.com>
6342
6343 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6344 event_ptid.
6345
6346 2020-08-07 Tom Tromey <tromey@adacore.com>
6347
6348 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6349 runtime_initialized.
6350
6351 2020-08-07 Tom Tromey <tromey@adacore.com>
6352
6353 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6354 add_active_thread.
6355 (ravenscar_thread_target::add_active_thread): Now public.
6356 (ravenscar_inferior_created): Call add_active_thread after pushing
6357 the target.
6358
6359 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * regcache.c (ptid_regcache_map): New type.
6362 (target_ptid_regcache_map): New type.
6363 (regcaches): Change type to target_ptid_regcache_map.
6364 (get_thread_arch_aspace_regcache): Update to regcaches' new
6365 type.
6366 (regcache_thread_ptid_changed): Likewise.
6367 (registers_changed_ptid): Likewise.
6368 (regcaches_size): Likewise.
6369 (regcaches_test): Update.
6370 (regcache_thread_ptid_changed): Update.
6371 * regcache.h (regcache_up): New type.
6372 * gdbsupport/ptid.h (hash_ptid): New struct.
6373
6374 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * observable.h (thread_ptid_changed): Add parameter
6377 `process_stratum_target *`.
6378 * infrun.c (infrun_thread_ptid_changed): Add parameter
6379 `process_stratum_target *` and use it.
6380 (selftests): New namespace.
6381 (infrun_thread_ptid_changed): New function.
6382 (_initialize_infrun): Register selftest.
6383 * regcache.c (regcache_thread_ptid_changed): Add parameter
6384 `process_stratum_target *` and use it.
6385 (regcache_thread_ptid_changed): New function.
6386 (_initialize_regcache): Register selftest.
6387 * thread.c (thread_change_ptid): Pass target to
6388 thread_ptid_changed observable.
6389
6390 2020-08-06 Caroline Tice <cmtice@google.com>
6391
6392 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6393 (struct dwp_sections): Update field comments. Add loclists and
6394 rnglists fields.
6395 (struct virtual_v2_dwo_sections): Rename struct to
6396 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6397 size & offset fields for loclists and rnglists.
6398 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6399 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6400 skipping dummy type units.
6401 (create_dwp_hash_table): Update the large comment above the function to
6402 discuss Version 5 DWP files as well, with references. Update all the
6403 version checks in the function to check for version 5 as well. Add new
6404 section at the end to create dwp hash table for version 5.
6405 (create_dwp_v2_section): Rename function to
6406 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6407 Add V5 to error message text.
6408 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6409 into calls to create_dwp_v2_or_v5_section.
6410 (create_dwo_unit_in_dwp_v5): New function.
6411 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6412 check for version2; add else clause to handle version 5.
6413 (open_and_init_dwo_file): Add code to check dwarf version & only call
6414 create_debug_types_hash_table (with sections.types) if version is not 5;
6415 else call create_debug_type_hash_table, with sections.info.
6416 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6417 version 5.
6418 (dwarf2_locate_v5_dwp_sections): New function.
6419 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6420 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6421
6422 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6423
6424 * regcache.h (class regcache): Remove friend
6425 registers_changed_ptid.
6426 <regcache_thread_ptid_changed>: Remove.
6427 <regcaches>: Remove.
6428 * regcache.c (regcache::regcaches): Rename to...
6429 (regcaches): ... this. Make static.
6430 (get_thread_arch_aspace_regcache): Update.
6431 (regcache::regcache_thread_ptid_changed): Rename to...
6432 (regcache_thread_ptid_changed): ... this. Update.
6433 (class regcache_access): Remove.
6434 (regcaches_test): Update.
6435 (_initialize_regcache): Update.
6436 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6437 <forward_list>.
6438
6439 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * regcache.h (class regcache) <current_regcache>: Rename to...
6442 <regcaches>: ... this. Move doc here.
6443 * regcache.c (regcache::current_regcache) Rename to...
6444 (regcache::regcaches): ... this. Move doc to header.
6445 (get_thread_arch_aspace_regcache): Update.
6446 (regcache::regcache_thread_ptid_changed): Update.
6447 (registers_changed_ptid): Update.
6448 (class regcache_access) <current_regcache_size>: Rename to...
6449 <regcaches_size>: ... this.
6450 (current_regcache_test): Rename to...
6451 (regcaches_test): ... this.
6452 (_initialize_regcache): Update.
6453
6454 2020-08-06 Victor Collod <vcollod@nvidia.com>
6455
6456 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6457
6458 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6459
6460 * corelow.c (core_target::build_file_mappings): Don't output
6461 null pathname in warning.
6462
6463 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6466 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6467 gdb.dwarf2/dw2-single-line-discriminators.exp,
6468 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6469
6470 2020-08-05 Tom Tromey <tromey@adacore.com>
6471
6472 PR rust/26197:
6473 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6474 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6475 Fix off-by-one and type size errors in ordinary case.
6476
6477 2020-08-05 Tom de Vries <tdevries@suse.de>
6478
6479 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6480 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6481
6482 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * frame.h (frame_id_p): Return bool.
6485 (frame_id_artificial_p): Return bool.
6486 (frame_id_eq): Return bool.
6487 (has_stack_frames): Return bool.
6488 (get_selected_frame): Fix typo in comment.
6489 (get_frame_pc_if_available): Return bool.
6490 (get_frame_address_in_block_if_available): Return bool.
6491 (get_frame_func_if_available): Return bool.
6492 (read_frame_register_unsigned): Return bool.
6493 (get_frame_register_bytes): Return bool.
6494 (safe_frame_unwind_memory): Return bool.
6495 (deprecated_frame_register_read): Return bool.
6496 (frame_unwinder_is): Return bool.
6497 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6498 bool.
6499 <this_id::p>: Likewise.
6500 <prev_p>: Likewise.
6501 (frame_stash_add): Return bool.
6502 (get_frame_id): Use bool.
6503 (frame_id_build_special) Use bool.
6504 (frame_id_build_unavailable_stack): Use bool.
6505 (frame_id_build): Use bool.
6506 (frame_id_p): Return bool, use true/false instead of 1/0.
6507 (frame_id_artificial_p): Likewise.
6508 (frame_id_eq): Likewise.
6509 (frame_id_inner): Likewise.
6510 (get_frame_func_if_available): Likewise.
6511 (read_frame_register_unsigned): Likewise.
6512 (deprecated_frame_register_read): Likewise.
6513 (get_frame_register_bytes): Likewise.
6514 (has_stack_frames): Likewise.
6515 (inside_main_func): Likewise.
6516 (inside_entry_func): Likewise.
6517 (get_frame_pc_if_available): Likewise.
6518 (get_frame_address_in_block_if_available): Likewise.
6519 (frame_unwinder_is): Likewise.
6520 (safe_frame_unwind_memory): Likewise.
6521 (frame_unwind_arch): Likewise.
6522
6523 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6526 type to cached_copy_status.
6527 (fprintf_frame): Adjust.
6528 (get_frame_func_if_available): Adjust.
6529 (frame_cleanup_after_sniffer): Adjust.
6530
6531 2020-08-04 Mark Wielaard <mark@klomp.org>
6532
6533 * MAINTAINERS (Write After Approval): Update email address.
6534
6535 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6538 dynamic_prop::const_val.
6539
6540 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6543 dynamic_prop::kind.
6544
6545 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6546
6547 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6548
6549 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6550
6551 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6552
6553 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6554 Jose E. Marchesi <jose.marchesi@oracle.com>
6555
6556 * configure.tgt: Add entry for bpf-*-*.
6557 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6558 (ALLDEPFILES): Add bpf-tdep.c.
6559 * bpf-tdep.c: New file.
6560 * MAINTAINERS: Add bpf target and maintainer.
6561 * NEWS: Mention the support for the new target.
6562
6563 2020-08-04 Tom de Vries <tdevries@suse.de>
6564
6565 PR symtab/23270
6566 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6567 Error.
6568
6569 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6570
6571 * syscalls/freebsd.xml: Regenerate.
6572
6573 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6574
6575 * syscalls/update-freebsd.sh: Fix usage and year range.
6576
6577 2020-08-03 Tom de Vries <tdevries@suse.de>
6578
6579 PR symtab/26333
6580 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6581 DW_LNE_lo_user/DW_LNE_hi_user range.
6582
6583 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 PR ada/26318
6586 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6587 kind.
6588
6589 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6590
6591 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6592
6593 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6594
6595 * breakpoint.c (set_breakpoint_condition): Update the condition
6596 expressions after checking that the input condition string parses
6597 successfully and does not contain junk at the end.
6598
6599 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600
6601 * breakpoint.c (set_breakpoint_condition): Update the
6602 condition string after parsing the new condition successfully.
6603
6604 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6605
6606 * proc-api.c (_STRUCTURED_PROC): Don't define.
6607 * proc-events.c: Likewise.
6608 * proc-flags.c: Likewise.
6609 * proc-why.c: Likewise.
6610 * procfs.c: Likewise.
6611
6612 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6613 * configure, config.in: Regenerate.
6614
6615 2020-07-30 Tom de Vries <tdevries@suse.de>
6616
6617 PR build/26320
6618 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6619 m_red/m_green/m_blue in a union.
6620
6621 2020-07-29 Tom de Vries <tdevries@suse.de>
6622
6623 PR tdep/26280
6624 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6625
6626 2020-07-28 Tom Tromey <tromey@adacore.com>
6627
6628 PR symtab/26270:
6629 * symtab.h (find_pc_partial_function_sym): Declare.
6630 * cli/cli-cmds.c (disassemble_command): Use
6631 find_pc_partial_function_sym. Check asm_demangle.
6632 * blockframe.c (cache_pc_function_sym): New global.
6633 (cache_pc_function_name): Remove.
6634 (clear_pc_function_cache): Update.
6635 (find_pc_partial_function_sym): New function, from
6636 find_pc_partial_function.
6637 (find_pc_partial_function): Rewrite using
6638 find_pc_partial_function_sym.
6639
6640 2020-07-28 Tom Tromey <tromey@adacore.com>
6641
6642 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6643 help. Add usage.
6644
6645 2020-07-28 Tom Tromey <tromey@adacore.com>
6646
6647 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6648 <DW_OP_GNU_variable_value>: Cast to address type.
6649
6650 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6651
6652 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6653 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6654 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6655 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6656 (nbsd_get_siginfo_type): New.
6657 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6658 (_initialize_nbsd_tdep): New.
6659
6660 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6661
6662 PR binutils/26301
6663 * configure: Regenerated.
6664
6665 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6666
6667 PR binutils/26301
6668 * configure: Regenerated.
6669
6670 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * python/py-frame.c: Remove 'user-regs.h' include.
6673 (frapy_read_register): Rewrite to make use of
6674 gdbpy_parse_register_id.
6675 * python/py-registers.c (gdbpy_parse_register_id): New function,
6676 moved here from python/py-unwind.c. Updated the return type, and
6677 also accepts register descriptor objects.
6678 * python/py-unwind.c: Remove 'user-regs.h' include.
6679 (pyuw_parse_register_id): Moved to python/py-registers.c.
6680 (unwind_infopy_add_saved_register): Update to use
6681 gdbpy_parse_register_id.
6682 (pending_framepy_read_register): Likewise.
6683 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6684
6685 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * python/py-registers.c: Add 'user-regs.h' include.
6688 (register_descriptor_iter_find): New function.
6689 (register_descriptor_iterator_object_methods): New static global
6690 methods array.
6691 (register_descriptor_iterator_object_type): Add pointer to methods
6692 array.
6693
6694 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6695
6696 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6697 for all architectures on FreeBSD 11.3 and later.
6698
6699 2020-07-27 Tom Tromey <tromey@adacore.com>
6700
6701 * gcore.h (load_corefile): Don't declare.
6702
6703 2020-07-27 Tom de Vries <tdevries@suse.de>
6704
6705 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6706 * config.in: Regenerate.
6707 * configure: Regenerate.
6708
6709 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6710
6711 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6712 ws2tcpip.h. When checking whether socklen_t type is defined, use
6713 ws2tcpip.h if it is available and sys/socket.h isn't.
6714 * configure: Regenerate.
6715 * config.in: Regenerate.
6716
6717 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 PR fortran/23051
6720 PR fortran/26139
6721 * valops.c (value_ind): Pass address to
6722 readjust_indirect_value_type.
6723 * value.c (readjust_indirect_value_type): Make parameter
6724 non-const, and add extra address parameter. Resolve original type
6725 before using it.
6726 * value.h (readjust_indirect_value_type): Update function
6727 signature and comment.
6728
6729 2020-07-25 Tom de Vries <tdevries@suse.de>
6730
6731 PR symtab/26243
6732 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6733 entries.
6734
6735 2020-07-24 Aaron Merey <amerey@redhat.com>
6736
6737 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6738 * configure: Rebuild.
6739
6740 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6741
6742 PR corefiles/26294
6743 * corelow.c (_initialize_corelow): Add period to help text
6744 for "maintenance print core-file-backed-mappings".
6745
6746 2020-07-23 Pedro Alves <pedro@palves.net>
6747
6748 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6749 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6750 meanwhile.
6751 * frame.c (frame_cache_generation, get_frame_cache_generation):
6752 New.
6753 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6754 (get_prev_frame_if_no_cycle): On exception, don't touch
6755 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6756 * frame.h (get_frame_cache_generation): Declare.
6757
6758 2020-07-23 Tom de Vries <tdevries@suse.de>
6759
6760 PR tui/26282
6761 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6762 New default constructor.
6763
6764 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6767 exclude non-statement entries.
6768
6769 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6770
6771 * NEWS (New commands): Mention new command
6772 "maintenance print core-file-backed-mappings".
6773
6774 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6775
6776 * corelow.c (gdbcmd.h): Include.
6777 (core_target::info_proc_mappings): New method.
6778 (get_current_core_target): New function.
6779 (maintenance_print_core_file_backed_mappings): New function.
6780 (_initialize_corelow): Add core-file-backed-mappings to
6781 "maint print" commands.
6782
6783 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6784
6785 * linux-tdep.c (dump_note_entry_p): New function.
6786 (linux_dump_mapping_p_ftype): New typedef.
6787 (linux_find_memory_regions_full): Add new parameter,
6788 should_dump_mapping_p.
6789 (linux_find_memory_regions): Adjust call to
6790 linux_find_memory_regions_full.
6791 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6792 call to linux_find_memory_regions_full.
6793
6794 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6795
6796 * corelow.c (solist.h, unordered_map): Include.
6797 (class core_target): Add field m_core_file_mappings and
6798 method build_file_mappings.
6799 (core_target::core_target): Call build_file_mappings.
6800 (core_target::~core_target): Free memory associated with
6801 m_core_file_mappings.
6802 (core_target::build_file_mappings): New method.
6803 (core_target::xfer_partial): Use m_core_file_mappings
6804 for memory transfers.
6805 * linux-tdep.c (linux_read_core_file_mappings): New
6806 function.
6807 (linux_core_info_proc_mappings): Rewrite to use
6808 linux_read_core_file_mappings.
6809 (linux_init_abi): Register linux_read_core_file_mappings.
6810
6811 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6812
6813 * arch-utils.c (default_read_core_file_mappings): New function.
6814 * arch-utils.c (default_read_core_file_mappings): Declare.
6815 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6816 * gdbarch.h, gdbarch.c: Regenerate.
6817
6818 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6819
6820 PR corefiles/25631
6821 * corelow.c (core_target:xfer_partial): Revise
6822 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6823 case after first checking the stratum beneath the core
6824 target.
6825 (has_all_memory): Return true.
6826 * target.c (raw_memory_xfer_partial): Revise comment
6827 regarding use of has_all_memory.
6828
6829 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6830
6831 * exec.h (section_table_xfer_memory): Revise declaration,
6832 replacing section name parameter with an optional callback
6833 predicate.
6834 * exec.c (section_table_xfer_memory): Likewise.
6835 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6836 of section_table_xfer_memory.
6837
6838 2020-07-22 Tom Tromey <tromey@adacore.com>
6839
6840 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6841 lookup_symbol_search_name.
6842
6843 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6844
6845 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6846 redundant local variable.
6847 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6848 reference, not pointer, update code accordingly.
6849
6850 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6851 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6852
6853 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6854 * jit.c (jit_breakpoint_re_set_internal): Use the
6855 `skip_jit_symbol_lookup` field.
6856
6857 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6858 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6859
6860 * jit.c (jit_read_descriptor): Define the descriptor address once,
6861 use twice.
6862 (jit_breakpoint_deleted): Move the declaration of the loop variable
6863 `iter` into the loop header.
6864 (jit_breakpoint_re_set_internal): Move the declaration of the local
6865 variable `objf_data` to the first point of definition.
6866 (jit_event_handler): Move the declaration of local variables
6867 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6868 Rename `objf` to `jited`.
6869
6870 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6871
6872 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6873 Remove.
6874 * jit.c (get_jiter_objfile_data): Update.
6875
6876 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6877 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * jit.c (struct jit_program_space_data): Remove.
6880 (jit_program_space_key): Remove.
6881 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6882 stuff.
6883 (get_jit_program_space_data): Remove.
6884 (jit_breakpoint_deleted): Iterate on all of the program space's
6885 objfiles.
6886 (jit_inferior_init): Likewise.
6887 (jit_breakpoint_re_set_internal): Likewise. Also change return
6888 type to void.
6889 (jit_breakpoint_re_set): Pass current_program_space to
6890 jit_breakpoint_re_set_internal.
6891
6892 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6893
6894 * jit.h (struct jiter_objfile_data) <cached_code_address,
6895 jit_breakpoint>: Move to here from ...
6896 * jit.c (jit_program_space_data): ... here.
6897 (jiter_objfile_data::~jiter_objfile_data): Update.
6898 (jit_breakpoint_deleted): Update.
6899 (jit_breakpoint_re_set_internal): Update.
6900
6901 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6902
6903 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6904 checks.
6905 (jit_read_descriptor): Remove NULL check.
6906 (jit_event_handler): Add an assertion.
6907
6908 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6909
6910 * jit.h (struct jit_objfile_data): Split into...
6911 (struct jiter_objfile_data): ... this ...
6912 (struct jited_objfile_data): ... and this.
6913 * objfiles.h (struct objfile) <jit_data>: Remove.
6914 <jiter_data, jited_data>: New fields.
6915 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6916 (jiter_objfile_data::~jiter_objfile_data): ... this.
6917 (get_jit_objfile_data): Rename to ...
6918 (get_jiter_objfile_data): ... this.
6919 (add_objfile_entry): Update.
6920 (jit_read_descriptor): Use get_jiter_objfile_data.
6921 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6922 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6923 (jit_inferior_exit_hook): Use objfile's jited_data field.
6924
6925 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6926
6927 * jit.h: Forward-declare `struct minimal_symbol`.
6928 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6929 constructor, destructor, and an objfile* field.
6930 * jit.c (jit_objfile_data): Remove.
6931 (struct jit_objfile_data): Migrate from here to jit.h.
6932 (jit_objfile_data::~jit_objfile_data): New destructor
6933 implementation with code moved from free_objfile_data.
6934 (free_objfile_data): Delete.
6935 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6936 (jit_find_objf_with_entry_addr): Ditto.
6937 (jit_inferior_exit_hook): Ditto.
6938 (_initialize_jit): Remove the call to
6939 register_objfile_data_with_cleanup.
6940 * objfiles.h (struct objfile) <jit_data>: New field.
6941
6942 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6943
6944 * jit.h: Forward-declare `struct objfile`.
6945 (jit_event_handler): Add a second parameter, the JITer objfile.
6946 * jit.c (jit_read_descriptor): Change the signature to take the
6947 JITer objfile as an argument instead of the jit_program_space_data.
6948 (jit_inferior_init): Update the call to jit_read_descriptor.
6949 (jit_event_handler): Use the new JITer objfile argument when calling
6950 jit_read_descriptor.
6951 * breakpoint.c (handle_jit_event): Update the call to
6952 jit_event_handler to pass the JITer objfile.
6953
6954 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6955
6956 * gdbarch.c: Regenerate.
6957 * gdbarch.h: Regenerate.
6958 * gdbarch.sh (handle_segmentation_fault): Remove method.
6959 * infrun.c (handle_segmentation_fault): Remove.
6960 (print_signal_received_reason): Remove call to
6961 handle_segmentation_fault.
6962
6963 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6964
6965 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6966 Rename to sparc64_linux_report_signal_info and add siggnal
6967 argument.
6968 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6969 instead of sparc64_linux_handle_segmentation_fault.
6970
6971 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6972
6973 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6974 i386_linux_report_signal_info instead of
6975 i386_linux_handle_segmentation_fault.
6976 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6977 to i386_linux_report_signal_info and add siggnal argument.
6978 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6979 of i386_linux_handle_segmentation_fault.
6980 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6981 to i386_linux_report_signal_info and add siggnal argument.
6982
6983 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6984
6985 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6986 hook if present.
6987
6988 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6989
6990 * gdbarch.c: Regenerate.
6991 * gdbarch.h: Regenerate.
6992 * gdbarch.sh (report_signal_info): New method.
6993 * infrun.c (print_signal_received_reason): Invoke gdbarch
6994 report_signal_info hook if present.
6995
6996 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6997
6998 * python/py-registers.c : Add 'unordered_map' include.
6999 (gdbpy_new_reggroup): Renamed to...
7000 (gdbpy_get_reggroup): ...this. Update to only create register
7001 group descriptors when needed.
7002 (gdbpy_reggroup_iter_next): Update.
7003
7004 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7005
7006 * python/py-registers.c (gdbpy_register_object_data): New static
7007 global.
7008 (gdbpy_register_object_data_init): New function.
7009 (gdbpy_new_register_descriptor): Renamed to...
7010 (gdbpy_get_register_descriptor): ...this, and update to reuse
7011 existing register descriptors where possible.
7012 (gdbpy_register_descriptor_iter_next): Update.
7013 (gdbpy_initialize_registers): Register new gdbarch data.
7014
7015 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * linux-nat.c (stopped_pids): Make static.
7018
7019 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7020
7021 PR ada/26235
7022 * gdbtypes.c (ada_discrete_type_low_bound,
7023 ada_discrete_type_high_bound): Handle undefined bounds.
7024
7025 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7026
7027 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7028 declaration.
7029 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7030 function.
7031
7032 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7033
7034 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7035 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7036 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7037 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7038 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7039 method.
7040
7041 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7042
7043 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7044 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7045 which are deprecated in Guile 3.0.
7046 * configure.ac (try_guile_versions): Add "guile-3.0".
7047 * configure (try_guile_versions): Regenerate.
7048 * NEWS: Update entry.
7049
7050 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7051 Doug Evans <dje@google.com>
7052
7053 PR gdb/21104
7054 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7055 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7056 USING_GUILE_BEFORE_2_2.
7057 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7058 Change type to 'scm_t_port_type *'.
7059 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7060 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7061 parameter and honor it. Update callers.
7062 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7063 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7064 functions.
7065 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7066 USING_GUILE_BEFORE_2_2.
7067 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7068 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7069 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7070 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7071 and 'SCM_PORT_TYPE'.
7072 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7073 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7074 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7075 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7076 [!USING_GUILE_BEFORE_2_2]: New functions.
7077 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7078 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7079 'gdbscm_memory_port_read'.
7080 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7081 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7082 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7083 function.
7084 (ioscm_init_memory_port): Remove.
7085 (ioscm_init_memory_port_stream): New function
7086 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7087 function.
7088 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7089 Return scm_from_uint (0).
7090 (gdbscm_set_memory_port_read_buffer_size_x)
7091 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7092 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7093 Return scm_from_uint (0).
7094 (gdbscm_set_memory_port_write_buffer_size_x)
7095 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7096 * configure.ac (try_guile_versions): Add "guile-2.2".
7097 * configure: Regenerate.
7098 * NEWS: Add entry.
7099
7100 2020-07-18 Tom Tromey <tom@tromey.com>
7101
7102 * linux-nat.c (linux_multi_process): Remove.
7103 (linux_nat_target::supports_multi_process): Return true.
7104
7105 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7108 (riscv_lookup_target_description): Return pointer out of
7109 unique_ptr.
7110 * target-descriptions.c (allocate_target_description): Add
7111 comment.
7112 (target_desc_deleter::operator()): Likewise.
7113 * target-descriptions.h (struct target_desc_deleter): Moved to
7114 gdbsupport/tdesc.h.
7115 (target_desc_up): Likewise.
7116
7117 2020-07-17 Tom Tromey <tromey@adacore.com>
7118
7119 * linux-nat.c (linux_nat_target::supports_non_stop)
7120 (linux_nat_target::always_non_stop_p): Use "true".
7121 (linux_nat_target::supports_disable_randomization): Use "true" and
7122 "false".
7123
7124 2020-07-16 Caroline Tice <cmtice@google.com>
7125
7126 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7127 (RNGLIST_HEADER_SIZE64): New constant definition.
7128 (struct dwop_section_names): Add rnglists_dwo.
7129 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7130 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7131 (struct dwo_sections): Add rnglists field.
7132 (read_attribut_reprocess): Add tag parameter.
7133 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7134 (cu_debug_rnglists_section): New function (decl & definition).
7135 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7136 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7137 die whose range is being checked; get rnglist section from
7138 cu_debug_rnglists_section, to get from either objfile or dwo file as
7139 appropriate. Add cases for DW_RLE_base_addressx,
7140 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7141 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7142 test inside if-condition and updating complaint message.
7143 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7144 dwarf2_rnglists_process.
7145 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7146 dwarf2_ranges_process.
7147 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7148 need_ranges_base and update comment appropriately. Also pass die tag
7149 to dwarf2_ranges_read.
7150 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7151 need_ranges_base and update comment appropriately. Also pass die tag
7152 to dwarf2_ranges_process.
7153 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7154 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7155 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7156 need_ranges_base and update comment appropriately. Also pass die tag
7157 to read_attribute_reprocess and dwarf2_ranges_read.
7158 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7159 and update function comment appropriately.
7160 (read_loclist_index): Call read_loclists_rnglists_header instead of
7161 read_loclist_header.
7162 (read_rnglist_index): New function.
7163 (read_attribute_reprocess): Add tag parameter. Add code for
7164 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7165 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7166
7167 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7168
7169 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7170 being resolved.
7171
7172 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * arch-utils.c (show_architecture): Update formatting of messages.
7175
7176 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7177
7178 * gdbtypes.h (struct type) <bounds>: Handle array and string
7179 types.
7180 * ada-lang.c (assign_aggregate): Use type::bounds on
7181 array/string type.
7182 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7183 * c-varobj.c (c_number_of_children): Likewise.
7184 (c_describe_child): Likewise.
7185 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7186 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7187 (f_type_print_base): Likewise.
7188 * f-valprint.c (f77_array_offset_tbl): Likewise.
7189 (f77_get_upperbound): Likewise.
7190 (f77_print_array_1): Likewise.
7191 * guile/scm-type.c (gdbscm_type_range): Likewise.
7192 * m2-typeprint.c (m2_array): Likewise.
7193 (m2_is_long_set_of_type): Likewise.
7194 * m2-valprint.c (get_long_set_bounds): Likewise.
7195 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7196 * python/py-type.c (typy_range): Likewise.
7197 * rust-lang.c (rust_internal_print_type): Likewise.
7198 * type-stack.c (type_stack::follow_types): Likewise.
7199 * valarith.c (value_subscripted_rvalue): Likewise.
7200 * valops.c (value_cast): Likewise.
7201
7202 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7205 callers to use the equivalent accessor methods.
7206
7207 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7210 (struct type) <bit_stride>: New method.
7211 (TYPE_BIT_STRIDE): Remove.
7212 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7213
7214 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7217 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7218 callers to use the equivalent accessor methods instead.
7219
7220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7223 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): 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_LOW_BOUND_KIND,
7229 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7230 to use dynamic_prop::kind.
7231
7232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7235 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7236 to get the bound property's kind and check against
7237 PROP_UNDEFINED.
7238
7239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7242 all callers to use type::range_bounds followed by
7243 dynamic_prop::{low,high}.
7244
7245 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7246
7247 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7248 const_val, set_const_val, baton, set_locexpr, set_loclist,
7249 set_addr_offset, variant_parts, set_variant_parts,
7250 original_type, set_original_type>: New methods.
7251 <kind>: Rename to...
7252 <m_kind>: ... this. Update all users to use the new methods
7253 instead.
7254 <data>: Rename to...
7255 <m_data>: ... this. Update all users to use the new methods
7256 instead.
7257
7258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * gdbtypes.c (get_discrete_bounds): Return failure if
7261 the range type's bounds are not both defined and constant
7262 values.
7263 (get_array_bounds): Update comment. Remove undefined bound check.
7264
7265 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7266
7267 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7268 the type::bounds method directly.
7269
7270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7271
7272 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7273 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7274 are used to set the range type's bounds to use set_bounds.
7275
7276 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7277
7278 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7279
7280 2020-07-10 Pedro Alves <pedro@palves.net>
7281
7282 * gdbthread.h (inferior_ref): Define.
7283 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7284 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7285 * thread.c
7286 (scoped_restore_current_thread::restore):
7287 Adjust to gdb::ref_ptr.
7288 (scoped_restore_current_thread::~scoped_restore_current_thread):
7289 Remove manual decref handling.
7290 (scoped_restore_current_thread::scoped_restore_current_thread):
7291 Adjust to use
7292 inferior_ref::new_reference/thread_info_ref::new_reference.
7293 Incref the thread before calling get_frame_id instead of after.
7294 Let TARGET_CLOSE_ERROR propagate.
7295
7296 2020-07-10 Pedro Alves <pedro@palves.net>
7297
7298 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7299 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7300 NOT_AVAILABLE_ERROR.
7301 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7302 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7303
7304 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7305 Pedro Alves <pedro@palves.net>
7306
7307 PR gdb/26199
7308 * infrun.c (threads_are_resumed_pending_p): Delete.
7309 (do_target_wait): Remove threads_are_executing and
7310 threads_are_resumed_pending_p checks from the inferior_matches
7311 lambda. Update comments.
7312
7313 2020-07-10 Pedro Alves <pedro@palves.net>
7314
7315 PR gdb/26199
7316 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7317 executing threads.
7318
7319 2020-07-10 Pedro Alves <pedro@palves.net>
7320
7321 PR gdb/26199
7322 * infrun.c (handle_no_resumed): Handle multiple targets.
7323
7324 2020-07-10 Pedro Alves <pedro@palves.net>
7325
7326 PR gdb/26199
7327 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7328 target_is_async_p.
7329
7330 2020-07-10 Pedro Alves <pedro@palves.net>
7331
7332 PR gdb/26199
7333 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7334 threads, not all threads.
7335
7336 2020-07-10 Pedro Alves <pedro@palves.net>
7337
7338 PR gdb/26199
7339 * remote.c (remote_target::open_1): Pass remote target pointer as
7340 data to create_async_event_handler.
7341 (remote_async_inferior_event_handler): Mark async event handler
7342 before returning if the remote target still has either pending
7343 events or unacknowledged notifications.
7344
7345 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7346
7347 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7348 declaration.
7349 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7350 function.
7351
7352 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7353
7354 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7355 inferior_ptid.
7356
7357 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7358
7359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7360 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7361 AT_FREEBSD_PS_STRINGS.
7362
7363 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7364
7365 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7366 of debugfile path on Windows.
7367
7368 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7369
7370 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7371 argument to 'data'.
7372
7373 2020-07-08 Tom Tromey <tromey@adacore.com>
7374
7375 * ada-lang.c (ada_exception_message_1): Use read_memory.
7376
7377 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 PR python/22748
7380 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7381 special handling for inline frames.
7382 * findvar.c (value_of_register_lazy): Skip inline frames when
7383 creating lazy register values.
7384 * frame.c (frame_id_computed_p): Delete definition.
7385 * frame.h (frame_id_computed_p): Delete declaration.
7386
7387 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7388
7389 * NEWS: Mention additions to Python API.
7390 * python/py-arch.c (archpy_register_groups): New function.
7391 (arch_object_methods): Add 'register_groups' method.
7392 * python/py-registers.c (reggroup_iterator_object): New struct.
7393 (reggroup_object): New struct.
7394 (gdbpy_new_reggroup): New function.
7395 (gdbpy_reggroup_to_string): New function.
7396 (gdbpy_reggroup_name): New function.
7397 (gdbpy_reggroup_iter): New function.
7398 (gdbpy_reggroup_iter_next): New function.
7399 (gdbpy_new_reggroup_iterator): New function
7400 (gdbpy_initialize_registers): Register new types.
7401 (reggroup_iterator_object_type): Define new Python type.
7402 (gdbpy_reggroup_getset): New static global.
7403 (reggroup_object_type): Define new Python type.
7404 * python/python-internal.h
7405
7406 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7409 * python/py-arch.c (archpy_registers): New function.
7410 (arch_object_methods): Add 'registers' method.
7411 * python/py-registers.c: New file.
7412 * python/python-internal.h
7413 (gdbpy_new_register_descriptor_iterator): Declare.
7414 (gdbpy_initialize_registers): Declare.
7415 * python/python.c (do_start_initialization): Call
7416 gdbpy_initialize_registers.
7417 * NEWS: Mention additions to the Python API.
7418
7419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7420
7421 * NEWS: Mention new Python API method.
7422 * python/py-unwind.c (pending_framepy_architecture): New function.
7423 (pending_frame_object_methods): Add architecture method.
7424
7425 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * gdbarch.c: Regenerate.
7428 * gdbarch.h: Regenerate.
7429 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7430 (gdbarch_data): Use internal_error for the case where
7431 deprecated_set_gdbarch_data was originally needed.
7432 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7433 and use passed in obstack.
7434 (libunwind_frame_set_descr): Should no longer get back NULL from
7435 gdbarch_data.
7436 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7437 type.
7438 * user-regs.c (user_regs_init): Update parameters, and use passed
7439 in obstack.
7440 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7441 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7442
7443 2020-07-06 Tom de Vries <tdevries@suse.de>
7444
7445 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7446 End-Of-Sequence in lte_is_less_than.
7447 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7448 "gdb: Don't reorder line table entries too much when sorting".
7449
7450 2020-07-06 Tom de Vries <tdevries@suse.de>
7451
7452 PR tui/26205
7453 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7454
7455 2020-07-05 Tom de Vries <tdevries@suse.de>
7456
7457 PR build/26187
7458 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7459 std::uncaught_exceptions instead of deprecated
7460 std::uncaught_exception.
7461
7462 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7463
7464 * macroexp.h (macro_stringify): Return
7465 gdb::unique_xmalloc_ptr<char>.
7466 * macroexp.c (macro_stringify): Likewise.
7467 * macrotab.c (fixup_definition): Update.
7468
7469 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7470
7471 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7472 (lex_one_token): Update.
7473 * macroexp.c (struct macro_buffer) <release>: Return
7474 gdb::unique_xmalloc_ptr<char>.
7475 (macro_stringify): Update.
7476 (macro_expand): Update.
7477 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7478 * macroexp.h (macro_expand_next): Likewise.
7479
7480 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * macroexp.h (macro_lookup_ftype): Remove.
7483 (macro_expand, macro_expand_once, macro_expand_next): Remove
7484 lookup function parameters, add scope parameter.
7485 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7486 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7487 * macroscope.h (standard_macro_lookup): Change parameter type
7488 to macro_scope.
7489 * macroscope.c (standard_macro_lookup): Likewise.
7490 * c-exp.y (lex_one_token): Update.
7491 * macrocmd.c (macro_expand_command): Likewise.
7492 (macro_expand_once_command): Likewise.
7493
7494 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * inf-loop.c (inferior_event_handler): Remove client_data param.
7497 * inf-loop.h (inferior_event_handler): Likewise.
7498 * infcmd.c (step_1): Adjust.
7499 * infrun.c (proceed): Adjust.
7500 (fetch_inferior_event): Remove client_data param.
7501 (infrun_async_inferior_event_handler): Adjust.
7502 * infrun.h (fetch_inferior_event): Remove `void *` param.
7503 * linux-nat.c (handle_target_event): Adjust.
7504 * record-btrace.c (record_btrace_handle_async_inferior_event):
7505 Adjust.
7506 * record-full.c (record_full_async_inferior_event_handler):
7507 Adjust.
7508 * remote.c (remote_async_inferior_event_handler): Adjust.
7509
7510 2020-07-01 Tom Tromey <tom@tromey.com>
7511
7512 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7513 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7514
7515 2020-07-01 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7518 tui_gen_win_info.
7519 (tui_win_info::make_window): Merge with
7520 tui_gen_win_info::make_window.
7521 (tui_win_info::make_visible): Move from tui_gen_win_info.
7522 * tui/tui-win.c (tui_win_info::max_width): Move from
7523 tui_gen_win_info.
7524 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7525 type.
7526 <window_factory>: Likewise.
7527 * tui/tui-layout.c (tui_win_info::resize): Move from
7528 tui_gen_win_info.
7529 (make_standard_window): Change return type.
7530 (get_locator_window, tui_get_window_by_name): Likewise.
7531 (tui_layout_window::apply): Remove a cast.
7532 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7533 (struct tui_win_info): Merge with tui_gen_win_info.
7534 (struct tui_gen_win_info): Remove.
7535
7536 2020-07-01 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui-stack.h (struct tui_locator_window): Derive from
7539 tui_win_info.
7540 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7541 <can_box>: New method.
7542
7543 2020-07-01 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7546
7547 2020-07-01 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-regs.c (tui_data_window::display_registers_from)
7550 (tui_data_window::display_registers_from)
7551 (tui_data_window::first_data_item_displayed)
7552 (tui_data_window::delete_data_content_windows): Update.
7553 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7554 Remove.
7555 (tui_data_window::check_register_values): Update.
7556 (tui_data_item_window::rerender): Add parameters. Update.
7557 (tui_data_item_window::refresh_window): Remove.
7558 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7559 virtual.
7560 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7561 tui_gen_win_info.
7562 <refresh_window, max_height, min_height>: Remove.
7563 <rerender>: Add parameters.
7564 <x, y, visible>: New members.
7565 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7566 <m_item_width>: New member.
7567
7568 2020-07-01 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-regs.c (tui_data_window::show_register_group)
7571 (tui_data_window::check_register_values): Update.
7572 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7573 from item_no.
7574
7575 2020-07-01 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7578 useless "if".
7579
7580 2020-07-01 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7583 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7584
7585 2020-07-01 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7588 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7589 (struct tui_line_or_address): Move from tui-data.h.
7590 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7591 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7592 (tui_cmd_window, tui_source_window_base, tui_source_window)
7593 (tui_disasm_window): Don't declare.
7594 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7595 to tui-winsource.h.
7596 (SINGLE_KEY): Move to tui-stack.c.
7597
7598 2020-07-01 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7601 std::string.
7602 * tui/tui-regs.c (class tab_expansion_file): New.
7603 (tab_expansion_file::write): New method.
7604 (tui_register_format): Change return type. Use
7605 tab_expansion_file.
7606 (tui_get_register, tui_data_window::display_registers_from)
7607 (tui_data_item_window::rerender): Update.
7608 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7609 * tui/tui-io.c (tui_expand_tabs): Remove.
7610
7611 2020-07-01 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7614
7615 2020-07-01 Fangrui Song <maskray@google.com>
7616
7617 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7618
7619 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7620
7621 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7622 forms for DW_AT_associated and DW_AT_allocated attributes,
7623 which is already checked in function attr_to_dynamic_prop.
7624
7625 2020-06-30 Tom Tromey <tromey@adacore.com>
7626
7627 * dwarf2/read.c (quirk_rust_enum): Correctly call
7628 alloc_rust_variant for default-less enum.
7629
7630 2020-06-30 Tom Tromey <tromey@adacore.com>
7631
7632 PR build/26183:
7633 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7634 gdb::to_string.
7635
7636 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7639 * gdbarch.h: Re-generate.
7640
7641 2020-06-28 Tom Tromey <tom@tromey.com>
7642
7643 * command.h (cmd_types): Remove.
7644 (cmd_type): Don't declare.
7645 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7646 typedef.
7647 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7648 * cli/cli-decode.c (cmd_type): Remove.
7649
7650 2020-06-27 Pedro Alves <palves@redhat.com>
7651
7652 * fork-child.c (prefork_hook): Adjust.
7653 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7654 Delete.
7655 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7656 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7657 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7658 Remove declarations.
7659 (struct inferior) <set_tty, tty>: New methods.
7660 (struct inferior) <terminal>: Rename to ...
7661 (struct inferior) <m_terminal>: ... this and make private.
7662 * main.c (captured_main_1): Adjust.
7663 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7664 (mi_cmd_inferior_tty_show): Adjust.
7665 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7666 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7667
7668 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7669
7670 * configure.ac: Add --enable-libctf: handle --disable-static
7671 properly.
7672 * acinclude.m4: sinclude ../config/enable.m4.
7673 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7674 (LIBCTF): Substitute in.
7675 (CTF_DEPS): New, likewise.
7676 (CLIBS): libctf needs symbols from libbfd: move earlier.
7677 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7678 flags.
7679 * ctfread.c: Surround in ENABLE_LIBCTF.
7680 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7681 * configure: Regenerate.
7682 * config.in: Likewise.
7683
7684 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7685
7686 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7687
7688 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7689
7690 * inferior.h (struct inferior) <terminal>: Change type to
7691 gdb::unique_xmalloc_ptr<char>.
7692 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7693 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7694 field, adjust to unique pointer.
7695 (get_inferior_io_terminal): Adjust to unique pointer.
7696
7697 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7700 registers, not just the known core set of registers.
7701
7702 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7703
7704 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7705 fflags, frm, and fcsr registers.
7706 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7707 restore groups.
7708 (riscv_tdesc_unknown_reg): New function.
7709 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7710 tdesc_use_registers.
7711 * riscv-tdep.h (struct gdbarch_tdep): Add
7712 unknown_csrs_first_regnum, unknown_csrs_count,
7713 duplicate_fflags_regnum, duplicate_frm_regnum, and
7714 duplicate_fcsr_regnum fields.
7715
7716 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7719 callback, use the callback (when not null) to help number unknown
7720 registers.
7721 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7722 (tdesc_use_registers): Add extra parameter to declaration.
7723
7724 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7727 in the file.
7728 (class riscv_pending_register_alias): Likewise.
7729 (riscv_register_feature::register_info): Change 'required_p' field
7730 to 'required', and change its type. Add 'check' member function.
7731 (riscv_register_feature::register_info::check): Define new member
7732 function.
7733 (riscv_xreg_feature): Change initialisation of 'required' field.
7734 (riscv_freg_feature): Likewise.
7735 (riscv_virtual_feature): Likewise.
7736 (riscv_csr_feature): Likewise.
7737 (riscv_check_tdesc_feature): Take extra parameter, the csr
7738 tdesc_feature, rewrite the function to use the new
7739 riscv_register_feature::register_info::check function.
7740 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7741
7742 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * features/Makefile: Remove all references to the deleted files
7745 below.
7746 * features/riscv/32bit-csr.c: Deleted.
7747 * features/riscv/32bit-csr.xml: Deleted.
7748 * features/riscv/64bit-csr.c: Deleted.
7749 * features/riscv/64bit-csr.xml: Deleted.
7750 * features/riscv/rebuild-csr-xml.sh: Deleted.
7751
7752 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7753
7754 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7755 whitespace error for declaration of names member variable.
7756 (struct riscv_register_feature): Add new prefer_first_name member
7757 variable, and fix whitespace error in declaration of registers.
7758 (riscv_xreg_feature): Initialize prefer_first_name field.
7759 (riscv_freg_feature): Likewise.
7760 (riscv_virtual_feature): Likewise.
7761 (riscv_csr_feature): Likewise.
7762 (riscv_register_name): Expand on comments. Remove register name
7763 modifications for CSR and virtual registers.
7764
7765 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7768 errors.
7769
7770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7773 riscv-opc.h.
7774 (class riscv_pending_register_alias): New class.
7775 (riscv_check_tdesc_feature): Take vector of pending aliases and
7776 populate it as appropriate.
7777 (riscv_setup_register_aliases): Delete.
7778 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7779 to riscv_check_tdesc_feature in all cases. Use the vector to
7780 create the register aliases.
7781
7782 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7783
7784 * sol2-tdep.c (sol2_static_transform_name): Remove.
7785 (sol2_init_abi): Don't register it.
7786 * gdbarch.sh (static_transform_name): Remove.
7787 * gdbarch.c, gdbarch.h: Regenerate.
7788
7789 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7790 gdbarch_static_transform_name.
7791 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7792 * stabsread.c (define_symbol) <'X'>: Remove.
7793 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7794 handling.
7795 <'V'>: Likewise.
7796 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7797 <'S'>: Remove call to gdbarch_static_transform_name.
7798
7799 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7800
7801 * procfs.c (procfs_pre_trace): New function.
7802 (procfs_target::create_inferior): Pass it to fork_inferior.
7803
7804 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7805
7806 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7807 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7808 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7809 sol2-tdep.o, sparc-sol2-tdep.o.
7810 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7811 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7812 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7813 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7814
7815 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7816
7817 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7818 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7819 Call sol2_init_abi.
7820 Remove calls to set_gdbarch_skip_solib_resolver,
7821 set_gdbarch_core_pid_to_str.
7822 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7823 (i386_sol2_static_transform_name): Remove.
7824 (i386_sol2_init_abi): Call sol2_init_abi.
7825 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7826 set_gdbarch_static_transform_name,
7827 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7828 Use sol2_sigtramp_p.
7829 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7830 (sol2_sigtramp_p): New function.
7831 (sol2_static_transform_name): New function.
7832 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7833 (sol2_init_abi): New function.
7834 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7835 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7836 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7837 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7838 (sparc_sol2_static_transform_name): Remove.
7839 (sparc32_sol2_init_abi): Call sol2_init_abi.
7840 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7841 set_gdbarch_static_transform_name,
7842 set_gdbarch_skip_solib_resolver,
7843 set_gdbarch_core_pid_to_str.
7844 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7845 (sparc_sol2_static_transform_name): Remove
7846 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7847 call sol2_sigtramp_p.
7848 (sparc64_sol2_init_abi): Call sol2_init_abi.
7849 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7850 set_gdbarch_static_transform_name,
7851 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7852
7853 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7854
7855 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7856 * exec.c (validate_exec_file): If from_tty, set both
7857 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7858 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7859 and from_tty, unconditionally ask a confirmation.
7860
7861 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * target-descriptions.c (tdesc_architecture_name): Protect against
7864 NULL pointer dereference.
7865 (maint_print_xml_tdesc_cmd): New function.
7866 (_initialize_target_descriptions): Register new 'maint print
7867 xml-tdesc' command and give it the filename completer.
7868 * NEWS: Mention new 'maint print xml-tdesc' command.
7869
7870 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7871
7872 * target-descriptions.c (class tdesc_compatible_info): New class.
7873 (struct target_desc): Change type of compatible vector.
7874 (tdesc_compatible_p): Update for change in type of
7875 target_desc::compatible.
7876 (tdesc_compatible_info_list): New function.
7877 (tdesc_compatible_info_arch_name): New function.
7878 (tdesc_add_compatible): Update for change in type of
7879 target_desc::compatible.
7880 (print_c_tdesc::visit_pre): Likewise.
7881
7882 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7885 whitespace to underscore.
7886 (maint_print_c_tdesc_cmd): Use fake filename for target
7887 descriptions that came from the target.
7888 (_initialize_target_descriptions): Add filename command completion
7889 for 'maint print c-tdesc'.
7890
7891 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7894 lines.
7895
7896 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7899 lines.
7900 (dwarf2_find_location_expression): Likewise.
7901 (call_site_parameter_matches): Likewise.
7902 (dwarf2_compile_expr_to_ax): Likewise.
7903 (disassemble_dwarf_expression): Likewise.
7904 (loclist_describe_location): Likewise.
7905
7906 2020-06-23 Pedro Alves <palves@redhat.com>
7907
7908 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7909 progspace-and-thread.h. Include scoped-mock-context.h instead.
7910 (register_to_value_test): Use scoped_mock_context.
7911 * regcache.c: Include "scoped-mock-context.h".
7912 (cooked_read_test): Don't error out if a target is already pushed.
7913 Use scoped_mock_context. Adjust.
7914 * scoped-mock-context.h: New file.
7915
7916 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7919 initializer.
7920 (ada_language::is_string_type_p): New member function.
7921 * c-lang.c (c_language_data): Delete la_is_string_type_p
7922 initializer.
7923 (cplus_language_data): Likewise.
7924 (asm_language_data): Likewise.
7925 (minimal_language_data): Likewise.
7926 * d-lang.c (d_language_data): Likewise.
7927 * f-lang.c (f_is_string_type_p): Delete function, implementation
7928 moved to f_language::is_string_type_p.
7929 (f_language_data): Delete la_is_string_type_p initializer.
7930 (f_language::is_string_type_p): New member function,
7931 implementation from f_is_string_type_p.
7932 * go-lang.c (go_is_string_type_p): Delete function, implementation
7933 moved to go_language::is_string_type_p.
7934 (go_language_data): Delete la_is_string_type_p initializer.
7935 (go_language::is_string_type_p): New member function,
7936 implementation from go_is_string_type_p.
7937 * language.c (language_defn::is_string_type_p): Define new member
7938 function.
7939 (default_is_string_type_p): Make static, add comment copied from
7940 header file.
7941 (unknown_language_data): Delete la_is_string_type_p initializer.
7942 (unknown_language::is_string_type_p): New member function.
7943 (auto_language_data): Delete la_is_string_type_p initializer.
7944 (auto_language::is_string_type_p): New member function.
7945 * language.h (language_data): Delete la_is_string_type_p field.
7946 (language_defn::is_string_type_p): Declare new function.
7947 (default_is_string_type_p): Delete desclaration, move comment to
7948 definition.
7949 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7950 moved to m2_language::is_string_type_p.
7951 (m2_language_data): Delete la_is_string_type_p initializer.
7952 (m2_language::is_string_type_p): New member function,
7953 implementation from m2_is_string_type_p.
7954 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7955 initializer.
7956 * opencl-lang.c (opencl_language_data): Likewise.
7957 * p-lang.c (pascal_is_string_type_p): Delete function,
7958 implementation moved to pascal_language::is_string_type_p.
7959 (pascal_language_data): Delete la_is_string_type_p initializer.
7960 (pascal_language::is_string_type_p): New member function,
7961 implementation from pascal_is_string_type_p.
7962 * rust-lang.c (rust_is_string_type_p): Delete function,
7963 implementation moved to rust_language::is_string_type_p.
7964 (rust_language_data): Delete la_is_string_type_p initializer.
7965 (rust_language::is_string_type_p): New member function,
7966 implementation from rust_is_string_type_p.
7967 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7968 is_string_type_p.
7969
7970 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7971
7972 * ada-lang.c (ada_language_data): Delete la_print_typedef
7973 initializer.
7974 (ada_language::print_typedef): New member function.
7975 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7976 (cplus_language_data): Likewise.
7977 (asm_language_data): Likewise.
7978 (minimal_language_data): Likewise.
7979 * d-lang.c (d_language_data): Likewise.
7980 * f-lang.c (f_language_data): Likewise.
7981 (f_language::print_typedef): New member function.
7982 * go-lang.c (go_language_data): Delete la_print_typedef
7983 initializer.
7984 * language.c (language_defn::print_typedef): Define member
7985 function.
7986 (unknown_language_data): Delete la_print_typedef initializer.
7987 (unknown_language::print_typedef): New member function.
7988 (auto_language_data): Delete la_print_typedef initializer.
7989 (auto_language::print_typedef): New member function.
7990 * language.h (language_data): Delete la_print_typedef field.
7991 (language_defn::print_typedef): Declare new member function.
7992 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7993 (default_print_typedef): Delete declaration.
7994 * m2-lang.c (m2_language_data): Delete la_print_typedef
7995 initializer.
7996 (m2_language::print_typedef): New member function.
7997 * objc-lang.c (objc_language_data): Delete la_print_typedef
7998 initializer.
7999 * opencl-lang.c (opencl_language_data): Likewise.
8000 * p-lang.c (pascal_language_data): Likewise.
8001 (pascal_language::print_typedef): New member function.
8002 * rust-lang.c (rust_print_typedef): Delete function,
8003 implementation moved to rust_language::print_typedef.
8004 (rust_language): Delete la_print_typedef initializer.
8005 (rust_language::print_typedef): New member function,
8006 implementation from rust_print_typedef.
8007 * typeprint.c (default_print_typedef): Delete.
8008
8009 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8012 (ada_language::printstr): New member function.
8013 * c-lang.c (c_language_data): Delete la_printstr initializer.
8014 (cplus_language_data): Likewise.
8015 (asm_language_data): Likewise.
8016 (minimal_language_data): Likewise.
8017 * d-lang.c (d_language_data): Likewise.
8018 * f-lang.c (f_printstr): Rename to f_language::printstr.
8019 (f_language_data): Delete la_printstr initializer.
8020 (f_language::printstr): New member function, implementation from
8021 f_printstr.
8022 * go-lang.c (go_language_data): Delete la_printstr initializer.
8023 * language.c (language_defn::printstr): Define new member
8024 function.
8025 (unk_lang_printstr): Delete.
8026 (unknown_language_data): Delete la_printstr initializer.
8027 (unknown_language::printstr): New member function.
8028 (auto_language_data): Delete la_printstr initializer.
8029 (auto_language::printstr): New member function.
8030 * language.h (language_data): Delete la_printstr field.
8031 (language_defn::printstr): Declare new member function.
8032 (LA_PRINT_STRING): Update call to printstr.
8033 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8034 (m2_language_data): Delete la_printstr initializer.
8035 (m2_language::printstr): New member function, implementation from
8036 m2_printstr.
8037 * objc-lang.c (objc_language_data): Delete la_printstr
8038 initializer.
8039 * opencl-lang.c (opencl_language_data): Likewise.
8040 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8041 (pascal_language_data): Delete la_printstr initializer.
8042 (pascal_language::printstr): New member function, implementation
8043 from pascal_printstr.
8044 * p-lang.h (pascal_printstr): Delete declaration.
8045 * rust-lang.c (rust_printstr): Update header comment.
8046 (rust_language_data): Delete la_printstr initializer.
8047 (rust_language::printstr): New member function.
8048
8049 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8052 (ada_language::printchar): New member function.
8053 * c-lang.c (c_language_data): Delete la_printchar initializer.
8054 (cplus_language_data): Likewise.
8055 (asm_language_data): Likewise.
8056 (minimal_language_data): Likewise.
8057 * d-lang.c (d_language_data): Likewise.
8058 * f-lang.c (f_printchar): Rename to f_language::printchar.
8059 (f_language_data): Delete la_printchar initializer.
8060 (f_language::printchar): New member function, implementation from
8061 f_printchar.
8062 * go-lang.c (go_language_data): Delete la_printchar initializer.
8063 * language.c (unk_lang_printchar): Delete.
8064 (language_defn::printchar): Define new member function.
8065 (unknown_language_data): Delete la_printchar initializer.
8066 (unknown_language::printchar): New member function.
8067 (auto_language_data): Delete la_printchar initializer.
8068 (auto_language::printchar): New member function.
8069 * language.h (language_data): Delete la_printchar field.
8070 (language_defn::printchar): Declare new member function.
8071 (LA_PRINT_CHAR): Update call to printchar.
8072 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8073 (m2_language::printchar): New member function.
8074 * objc-lang.c (objc_language_data): Delete la_printchar
8075 initializer.
8076 * opencl-lang.c (opencl_language_data): Likewise.
8077 * p-lang.c (pascal_language_data): Delete la_printchar
8078 initializer.
8079 (pascal_language::printchar): New member function.
8080 * rust-lang.c (rust_printchar): Rename to
8081 rust_language::printchar.
8082 (rust_language_data): Delete la_printchar initializer.
8083 (rust_language::printchar): New member function, implementation
8084 from rust_printchar.
8085
8086 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8087
8088 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8089 (ada_language_data): Delete la_emitchar initializer.
8090 (ada_language::emitchar): New member function, implementation from
8091 emit_char.
8092 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8093 (cplus_language_data): Likewise.
8094 (asm_language_data): Likewise.
8095 (minimal_language_data): Likewise.
8096 * d-lang.c (d_language_data): Likewise.
8097 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8098 (f_language_data): Delete la_emitchar initializer.
8099 (f_language::emitchar): New member function, implementation from
8100 f_emit_char.
8101 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8102 * language.c (unk_lang_emit_char): Delete.
8103 (language_defn::emitchar): New member function definition.
8104 (unknown_language_data): Delete la_emitchar initializer.
8105 (unknown_language::emitchar): New member function.
8106 (auto_language_data): Delete la_emitchar initializer.
8107 (auto_language::emitchar): New member function.
8108 * language.h (language_data): Delete la_emitchar field.
8109 (language_defn::emitchar): New member field declaration.
8110 (LA_EMIT_CHAR): Update call to emitchar.
8111 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8112 (m2_language_data): Delete la_emitchar initializer.
8113 (m2_language::emitchar): New member function, implementation from
8114 m2_emit_char.
8115 * objc-lang.c (objc_language_data): Delete la_emitchar
8116 initializer.
8117 * opencl-lang.c (opencl_language_data): Likewise.
8118 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8119 (pascal_language_data): Delete la_emitchar initializer.
8120 (pascal_language::emitchar): New member function, implementation
8121 from pascal_emit_char.
8122 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8123 (rust_language_data): Delete la_emitchar initializer.
8124 (rust_language::emitchar): New member function, implementation
8125 from rust_emitchar.
8126
8127 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8130 (ada_language_data): Delete la_post_parser initializer.
8131 (ada_language::post_parser): New member function.
8132 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8133 (cplus_language_data): Likewise.
8134 (asm_language_data): Likewise.
8135 (minimal_language_data): Likewise.
8136 * d-lang.c (d_language_data): Likewise.
8137 * f-lang.c (f_language_data): Likewise.
8138 * go-lang.c (go_language_data): Likewise.
8139 * language.c (unknown_language_data): Likewise.
8140 (auto_language_data): Likewise.
8141 * language.h (language_data): Delete la_post_parser field.
8142 (language_defn::post_parser): New member function.
8143 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8144 * objc-lang.c (objc_language_data): Likewise.
8145 * opencl-lang.c (opencl_language_data): Likewise.
8146 * p-lang.c (pascal_language_data): Likewise.
8147 * parse.c (parse_exp_in_context): Update call to post_parser.
8148 (null_post_parser): Delete definition.
8149 * parser-defs.h (null_post_parser): Delete declaration.
8150 * rust-lang.c (rust_language_data): Delete la_post_parser
8151 initializer.
8152
8153 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * ada-lang.c (parse): Rename to ada_language::parser.
8156 (ada_language_data): Delete la_parser initializer.
8157 (ada_language::parser): New member function, implementation from
8158 parse.
8159 * c-lang.c (c_language_data): Delete la_parser initializer.
8160 (cplus_language_data): Likewise.
8161 (asm_language_data): Likewise.
8162 (minimal_language_data): Likewise.
8163 * d-lang.c (d_language_data): Likewise.
8164 (d_language::parser): New member function.
8165 * f-lang.c (f_language_data): Delete la_parser initializer.
8166 (f_language::parser): New member function.
8167 * go-lang.c (go_language_data): Delete la_parser initializer.
8168 (go_language::parser): New member function.
8169 * language.c (unk_lang_parser): Delete.
8170 (language_defn::parser): Define new member function.
8171 (unknown_language_data): Delete la_parser initializer.
8172 (unknown_language::parser): New member function.
8173 (auto_language_data): Delete la_parser initializer.
8174 (auto_language::parser): New member function.
8175 * language.h (language_data): Delete la_parser field.
8176 (language_defn::parser): Declare new member function.
8177 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8178 (m2_language::parser): New member function.
8179 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8180 * opencl-lang.c (opencl_language_data): Likewise.
8181 * p-lang.c (pascal_language_data): Likewise.
8182 (pascal_language::parser): New member function.
8183 * parse.c (parse_exp_in_context): Update call to parser.
8184 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8185 (rust_language::parser): New member function.
8186
8187 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * top.c (print_gdb_configuration): Print --with-python-libdir
8190 configuration value.
8191
8192 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8193
8194 * NEWS: Mention change to the alias command.
8195
8196 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8197
8198 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8199 (alias_command_completer)
8200 (make_alias_options_def_group): New functions.
8201 (alias_opts, alias_option_defs): New struct and array.
8202 (alias_usage_error): Update usage.
8203 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8204 Use option framework.
8205 (_initialize_cli_cmds): Update alias command help.
8206 Update aliases command help.
8207 (show_user):
8208 Add NULL for new default_args lookup_cmd argument.
8209 (valid_command_p): Rename to validate_aliased_command.
8210 Add NULL for new default_args lookup_cmd argument. Verify that the
8211 aliased_command has no default args.
8212 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8213 (lookup_cmd_1, lookup_cmd): New argument default_args.
8214 (add_alias_cmd):
8215 Add NULL for new default_args lookup_cmd argument.
8216 (print_help_for_command): Show default args under the layout
8217 alias some_alias = some_aliased_cmd some_alias_default_arg.
8218 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8219 xfree default_args in destructor.
8220 * cli/cli-script.c (process_next_line, do_define_command):
8221 Add NULL for new default_args lookup_cmd argument.
8222 * command.h: Declare new default_args argument in lookup_cmd
8223 and lookup_cmd_1.
8224 * completer.c (complete_line_internal_1):
8225 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8226 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8227 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8228 Likewise.
8229 * infcmd.c (_initialize_infcmd): Likewise.
8230 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8231 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8232 * python/py-param.c (add_setshow_generic): Likewise.
8233 * remote.c (_initialize_remote): Likewise.
8234 * top.c (execute_command): Prepend default_args if command has some.
8235 (set_verbose):
8236 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8237 * tracepoint.c (validate_actionline, encode_actions_1):
8238 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8239
8240 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8241
8242 * jit.c (jit_read_descriptor): Use bool as the return type.
8243 (jit_breakpoint_re_set_internal): Use bool as the return type.
8244 Invert the return value logic; return true if the jit breakpoint
8245 has been successfully initialized.
8246 (jit_inferior_init): Update the call to
8247 jit_breakpoint_re_set_internal.
8248
8249 2020-06-22 Pedro Alves <palves@redhat.com>
8250
8251 PR gdb/25939
8252 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8253 Use the current inferior instead. Don't return
8254 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8255 wait again.
8256 * sol-thread.c (sol_thread_target::wait): Don't reference
8257 inferior_ptid.
8258 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8259 (sol_update_thread_list_callback): Use the current inferior's pid
8260 instead of inferior_ptid.
8261
8262 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8263
8264 * procfs.c: Cleanup many comments.
8265
8266 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8267 (AFTER_WATCHFLAG): Replace by value.
8268
8269 (MAIN_PROC_NAME_FORMAT): Inline ...
8270 (create_procinfo): ... here.
8271
8272 (procfs_debug_inferior): Remove SYS_exec handling.
8273 (syscall_is_exec): Likewise.
8274 (procfs_set_exec_trap): Likewise.
8275
8276 (syscall_is_lwp_exit): Inline in callers.
8277 (syscall_is_exit): Likewise.
8278 (syscall_is_exec): Likewise.
8279 (syscall_is_lwp_create): Likewise.
8280
8281 (invalidate_cache): Remove #if 0 code.
8282
8283 (make_signal_thread_runnable): Remove.
8284 (procfs_target::resume): Remove #if 0 code.
8285
8286 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8287
8288 PR gdb/25939
8289 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8290 call ...
8291 (procfs_target::create_inferior): ... here.
8292
8293 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8294
8295 * exec.c (validate_exec_file): Ensure the build-id is up to
8296 date by calling reopen_exec_file (that checks file timestamp
8297 to decide to re-read the file).
8298
8299 2020-06-18 Pedro Alves <palves@redhat.com>
8300
8301 PR gdb/25412
8302 * gdbthread.h (delete_thread, delete_thread_silent)
8303 (find_thread_ptid): Update comments.
8304 * thread.c (current_thread_): New global.
8305 (is_current_thread): Move higher, and reimplement.
8306 (inferior_thread): Reimplement.
8307 (set_thread_exited): Use bool. Add assertions.
8308 (add_thread_silent): Simplify thread-reuse handling by always
8309 calling delete_thread.
8310 (delete_thread): Remove intro comment.
8311 (find_thread_ptid): Skip exited threads.
8312 (switch_to_thread_no_regs): Write to current_thread_.
8313 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8314 INFERIOR_PTID. Clear current_thread_.
8315
8316 2020-06-18 Pedro Alves <palves@redhat.com>
8317
8318 * aix-thread.c (pd_update): Use switch_to_thread.
8319
8320 2020-06-18 Pedro Alves <palves@redhat.com>
8321
8322 * ravenscar-thread.c (ravenscar_thread_target): Update.
8323 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8324 (ravenscar_thread_target::add_active_thread): ... this. Don't
8325 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8326 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8327
8328 2020-06-18 Pedro Alves <palves@redhat.com>
8329
8330 * nat/windows-nat.c (current_windows_thread): Remove.
8331 * nat/windows-nat.h (current_windows_thread): Remove.
8332 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8333 Adjust.
8334 (display_selectors): Adjust to fetch the current
8335 windows_thread_info based on inferior_ptid.
8336 (fake_create_process): No longer write to current_windows_thread.
8337 (windows_nat_target::get_windows_debug_event):
8338 Don't set inferior_ptid or current_windows_thread.
8339 (windows_nat_target::wait): Adjust to not rely on
8340 current_windows_thread.
8341 (do_initial_windows_stuff): Now a method of windows_nat_target.
8342 Switch to the last_ptid thread.
8343 (windows_nat_target::attach): Adjust.
8344 (windows_nat_target::detach): Use switch_to_no_thread instead of
8345 writing to inferior_ptid directly.
8346 (windows_nat_target::create_inferior): Adjust.
8347
8348 2020-06-18 Pedro Alves <palves@redhat.com>
8349
8350 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8351
8352 2020-06-18 Pedro Alves <palves@redhat.com>
8353
8354 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8355 after creating it, instead of writing to inferior_ptid. Don't
8356 write to inferior_ptid.
8357
8358 2020-06-18 Pedro Alves <palves@redhat.com>
8359
8360 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8361
8362 2020-06-18 Pedro Alves <palves@redhat.com>
8363
8364 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8365 it, instead of writing to inferior_ptid.
8366
8367 2020-06-18 Pedro Alves <palves@redhat.com>
8368
8369 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8370 to inferior_ptid.
8371
8372 2020-06-18 Pedro Alves <palves@redhat.com>
8373
8374 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8375 instead of writing to inferior_ptid directly.
8376
8377 2020-06-18 Pedro Alves <palves@redhat.com>
8378
8379 * corelow.c (core_target::close): Use switch_to_no_thread instead
8380 of writing to inferior_ptid directly.
8381 (add_to_thread_list, core_target_open): Use switch_to_thread
8382 instead of writing to inferior_ptid directly.
8383
8384 2020-06-18 Pedro Alves <palves@redhat.com>
8385
8386 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8387 inferior_ptid.
8388 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8389 inferior_ptid.
8390 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8391 inferior_ptid directly.
8392 (darwin_nat_target::init_thread_list): Switch to thread, instead
8393 of writing to inferior_ptid.
8394 (darwin_nat_target::attach): Don't write to inferior_ptid.
8395 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8396
8397 2020-06-18 Pedro Alves <palves@redhat.com>
8398
8399 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8400 thread.
8401 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8402 Instead use switch_to_thread.
8403 (gnu_nat_target::detach): Use switch_to_no_thread
8404 instead of writing to inferior_ptid directly. Used passed-in
8405 inferior instead of looking up the inferior by pid.
8406
8407 2020-06-18 Pedro Alves <palves@redhat.com>
8408
8409 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8410 inferior_ptid.
8411
8412 2020-06-18 Pedro Alves <palves@redhat.com>
8413
8414 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8415 inferior_ptid.
8416 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8417 thread.
8418 (nto_procfs_target::detach): Avoid referencing
8419 inferior_ptid. Use switch_to_no_thread instead of writing to
8420 inferior_ptid directly.
8421 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8422 instead of writing to inferior_ptid directly.
8423 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8424 to thread.
8425
8426 2020-06-18 Pedro Alves <palves@redhat.com>
8427
8428 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8429 after creating it, instead of writing to inferior_ptid.
8430 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8431 to inferior_ptid directly.
8432 (gdbsim_target::wait): Don't write to inferior_ptid.
8433
8434 2020-06-18 Pedro Alves <palves@redhat.com>
8435
8436 * remote.c (remote_target::remote_notice_new_inferior): Use
8437 switch_to_thread instead of writing to inferior_ptid directly.
8438 (remote_target::add_current_inferior_and_thread): Use
8439 switch_to_no_thread instead of writing to inferior_ptid directly.
8440 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8441 and switch_to_thread instead of using set_current_inferior or
8442 writing to inferior_ptid directly.
8443
8444 2020-06-18 Pedro Alves <palves@redhat.com>
8445
8446 * tracectf.c (ctf_target_open): Switch to added thread instead of
8447 writing to inferior_ptid directly.
8448 (ctf_target::close): Use switch_to_no_thread instead of writing to
8449 inferior_ptid directly.
8450
8451 2020-06-18 Pedro Alves <palves@redhat.com>
8452
8453 * tracefile-tfile.c (tfile_target_open): Don't write to
8454 inferior_ptid directly, instead switch to added thread.
8455 (tfile_target::close): Use switch_to_no_thread instead of writing
8456 to inferior_ptid directly.
8457
8458 2020-06-18 Pedro Alves <palves@redhat.com>
8459
8460 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8461 (procfs_target::detach): Use switch_to_no_thread
8462 instead of writing to inferior_ptid directly.
8463 (do_attach): Change return type to void. Switch to the added
8464 thread.
8465 (procfs_target::create_inferior): Switch to the added thread.
8466 (procfs_do_thread_registers): Don't write to inferior_ptid.
8467
8468 2020-06-18 Pedro Alves <palves@redhat.com>
8469
8470 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8471 of writing to inferior_ptid.
8472 (scoped_restore_exited_inferior): Delete.
8473 (handle_vfork_child_exec_or_exit): Simplify using
8474 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8475 instead of writing to inferior_ptid.
8476 (THREAD_STOPPED_BY): Delete.
8477 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8478 (thread_stopped_by_hw_breakpoint): Delete.
8479 (save_waitstatus): Use
8480 scoped_restore_current_thread+switch_to_thread, and call
8481 target_stopped_by_watchpoint instead of
8482 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8483 instead of thread_stopped_by_sw_breakpoint, and
8484 target_stopped_by_hw_breakpoint instead of
8485 thread_stopped_by_hw_breakpoint.
8486 (handle_inferior_event)
8487 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8488 inferior_ptid directly, nor
8489 set_current_inferior/set_current_program_space. Use
8490 switch_to_thread / switch_to_inferior_no_thread instead.
8491
8492 2020-06-18 Pedro Alves <palves@redhat.com>
8493
8494 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8495 instead of writing to inferior_ptid.
8496
8497 2020-06-18 Pedro Alves <palves@redhat.com>
8498
8499 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8500 added thread.
8501 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8502 to the added thread.
8503 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8504 instead of writing to inferior_ptid.
8505
8506 2020-06-18 Pedro Alves <palves@redhat.com>
8507
8508 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8509 (register_to_value_test): Mock a program_space too. Heap-allocate
8510 the address space. Don't write to inferior_ptid. Use
8511 switch_to_thread instead.
8512
8513 2020-06-18 Pedro Alves <palves@redhat.com>
8514
8515 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8516 Delete.
8517 (find_signalled_thread()): New, factored out from
8518 linux_make_corefile_notes and adjusted to handle exited threads.
8519 (linux_make_corefile_notes): Adjust to use the new
8520 find_signalled_thread.
8521
8522 2020-06-18 Pedro Alves <palves@redhat.com>
8523
8524 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8525 of saving/restoring inferior_ptid.
8526
8527 2020-06-17 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8530 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8531 declare.
8532 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8533
8534 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8535
8536 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8537 of partial symtabs.
8538
8539 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * regformats/reg-arm.dat: Remove.
8542 * regformats/reg-bfin.dat: Remove.
8543 * regformats/reg-cris.dat: Remove.
8544 * regformats/reg-crisv32.dat: Remove.
8545 * regformats/reg-m32r.dat: Remove.
8546 * regformats/reg-tilegx.dat: Remove.
8547 * regformats/reg-tilegx32.dat: Remove.
8548
8549 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * features/Makefile (WHICH): Remove arm files.
8552 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8553 * regformats/arm/arm-with-neon.dat: Remove.
8554 * regformats/arm/arm-with-vfpv2.dat: Remove.
8555 * regformats/arm/arm-with-vfpv3.dat: Remove.
8556
8557 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8558
8559 * features/Makefile (XMLTOC): Remove rx.xml.
8560
8561 2020-06-17 Pedro Alves <palves@redhat.com>
8562
8563 * gdbthread.h (thread_control_state) <trap_expected> Update
8564 comments.
8565
8566 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8569 ada_language::lookup_symbol_nonlocal.
8570 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8571 (ada_language::lookup_symbol_nonlocal): New member function,
8572 implementation from ada_lookup_symbol_nonlocal.
8573 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8574 initializer.
8575 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8576 initializer.
8577 (cplus_language::lookup_symbol_nonlocal): New member function.
8578 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8579 (minimal_language_data) Likewise.
8580 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8581 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8582 initializer.
8583 (d_language::lookup_symbol_nonlocal): New member function.
8584 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8585 initializer.
8586 (f_language::lookup_symbol_nonlocal): New member function.
8587 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8588 initializer.
8589 * language.c (unknown_language_data): Likewise.
8590 (auto_language_data): Likewise.
8591 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8592 field.
8593 (language_defn::lookup_symbol_nonlocal): New member function.
8594 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8595 initializer.
8596 * objc-lang.c (objc_language_data): Likewise.
8597 * opencl-lang.c (opencl_language_data): Likewise.
8598 * p-lang.c (pascal_language_data): Likewise.
8599 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8600 rust_language::lookup_symbol_nonlocal.
8601 (rust_language_data): Delete la_lookup_symbol_nonlocal
8602 initializer.
8603 (rust_language::lookup_symbol_nonlocal): New member function,
8604 implementation from rust_lookup_symbol_nonlocal.
8605 * symtab.c (lookup_symbol_aux): Update call to
8606 lookup_symbol_nonlocal.
8607 (basic_lookup_symbol_nonlocal): Rename to...
8608 (language_defn::lookup_symbol_nonlocal): ...this, and update
8609 header comment. Remove language_defn parameter, and replace with
8610 uses of `this'.
8611 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8612
8613 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8614
8615 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8616 initializer.
8617 (ada_language::value_print_inner): New member function.
8618 * c-lang.c (c_language_data): Delete la_value_print_inner
8619 initializer.
8620 (cplus_language_data): Likewise.
8621 (asm_language_data): Likewise.
8622 (minimal_language_data): Likewise.
8623 * d-lang.c (d_language_data): Likewise.
8624 (d_language::value_print_inner): New member function.
8625 * f-lang.c (f_language_data): Delete la_value_print_inner
8626 initializer.
8627 (f_language::value_print_inner): New member function.
8628 * f-lang.h (f_value_print_innner): Rename to...
8629 (f_value_print_inner): ...this (note spelling of 'inner').
8630 * f-valprint.c (f_value_print_innner): Rename to...
8631 (f_value_print_inner): ...this (note spelling of 'inner').
8632 * go-lang.c (go_language_data): Delete la_value_print_inner
8633 initializer.
8634 (go_language::value_print_inner): New member function.
8635 * language.c (language_defn::value_print_inner): Define new member
8636 function.
8637 (unk_lang_value_print_inner): Delete.
8638 (unknown_language_data): Delete la_value_print_inner initializer.
8639 (unknown_language::value_print_inner): New member function.
8640 (auto_language_data): Delete la_value_print_inner initializer.
8641 (auto_language::value_print_inner): New member function.
8642 * language.h (language_data): Delete la_value_print_inner field.
8643 (language_defn::value_print_inner): Delcare new member function.
8644 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8645 initializer.
8646 (m2_language::value_print_inner): New member function.
8647 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8648 initializer.
8649 * opencl-lang.c (opencl_language_data): Likewise.
8650 * p-lang.c (pascal_language_data): Likewise.
8651 (pascal_language::value_print_inner): New member function.
8652 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8653 initializer.
8654 (rust_language::value_print_inner): New member function.
8655 * valprint.c (do_val_print): Update call to value_print_inner.
8656
8657 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * ada-lang.c (ada_language_data): Delete la_value_print
8660 initializer.
8661 (ada_language::value_print): New member function.
8662 * c-lang.c (c_language_data): Delete la_value_print initializer.
8663 (cplus_language_data): Likewise.
8664 (asm_language_data): Likewise.
8665 (minimal_language_data): Likewise.
8666 * d-lang.c (d_language_data): Likewise.
8667 * f-lang.c (f_language_data): Likewise.
8668 * go-lang.c (go_language_data): Likewise.
8669 * language.c (unk_lang_value_print): Delete.
8670 (language_defn::value_print): Define new member function.
8671 (unknown_language_data): Delete la_value_print initializer.
8672 (unknown_language::value_print): New member function.
8673 (auto_language_data): Delete la_value_print initializer.
8674 (auto_language::value_print): New member function.
8675 * language.h (language_data): Delete la_value_print field.
8676 (language_defn::value_print): Declare new member function.
8677 (LA_VALUE_PRINT): Update call to value_print.
8678 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8679 * objc-lang.c (objc_language_data): Likewise.
8680 * opencl-lang.c (opencl_language_data): Likewise.
8681 * p-lang.c (pascal_language_data): Likewise.
8682 (pascal_language::value_print): New member function.
8683 * rust-lang.c (rust_language_data): Delete la_value_print
8684 initializer.
8685
8686 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8687
8688 * ada-lang.c (ada_watch_location_expression): Rename to
8689 ada_language::watch_location_expression.
8690 (ada_language_data): Delete la_watch_location_expression
8691 initializer.
8692 (ada_language::watch_location_expression): New member function,
8693 implementation from ada_watch_location_expression.
8694 * breakpoint.c (watch_command_1): Update call to
8695 watch_location_expression.
8696 * c-lang.c (c_watch_location_expression): Rename to
8697 language_defn::watch_location_expression.
8698 (c_language_data): Delete la_watch_location_expression
8699 initializer.
8700 (cplus_language_data): Likewise.
8701 (asm_language_data): Likewise.
8702 (minimal_language_data): Likewise.
8703 * c-lang.h (c_watch_location_expression): Delete declaration.
8704 * d-lang.c (d_language_data): Delete la_watch_location_expression
8705 initializer.
8706 * f-lang.c (f_language_data): Likewise.
8707 * go-lang.c (go_language_data): Likewise.
8708 * language.c (language_defn::watch_location_expression): Member
8709 function implementation from c_watch_location_expression.
8710 (unknown_language_data): Delete la_watch_location_expression
8711 initializer.
8712 (auto_language_data): Likewise.
8713 * language.h (language_data): Delete la_watch_location_expression
8714 field.
8715 (language_defn::watch_location_expression): Declare new member
8716 function.
8717 * m2-lang.c (m2_language_data): Delete
8718 la_watch_location_expression initializer.
8719 * objc-lang.c (objc_language_data): Likewise.
8720 * opencl-lang.c (opencl_language_data): Likewise.
8721 * p-lang.c (pascal_language_data): Likewise.
8722 * rust-lang.c (rust_watch_location_expression): Rename to
8723 rust_language::watch_location_expression.
8724 (rust_language_data): Delete la_watch_location_expression
8725 initializer.
8726 (rust_language::watch_location_expression): New member function,
8727 implementation from rust_watch_location_expression.
8728
8729 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8732 ada_language::collect_symbol_completion_matches.
8733 (ada_language_data): Delete la_collect_symbol_completion_matches
8734 initializer.
8735 (ada_language::collect_symbol_completion_matches): New member
8736 function, implementation from
8737 ada_collect_symbol_completion_matches.
8738 * c-lang.c (c_language_data): Delete
8739 la_collect_symbol_completion_matches initializer.
8740 (cplus_language_data): Likewise.
8741 (asm_language_data): Likewise.
8742 (minimal_language_data): Likewise.
8743 * d-lang.c (d_language_data): Likewise.
8744 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8745 f_language::collect_symbol_completion_matches.
8746 (f_language_data): Delete la_collect_symbol_completion_matches
8747 initializer.
8748 (f_language::collect_symbol_completion_matches) New member
8749 function, implementation from f_collect_symbol_completion_matches.
8750 * go-lang.c (go_language_data): Delete
8751 la_collect_symbol_completion_matches initializer.
8752 * language.c (unknown_language_data): Likewise.
8753 (auto_language_data): Likewise.
8754 * language.h (language_data): Delete
8755 la_collect_symbol_completion_matches field.
8756 (language_defn::collect_symbol_completion_matches): New member
8757 function.
8758 * m2-lang.c (m2_language_data): Delete
8759 la_collect_symbol_completion_matches initializer.
8760 * objc-lang.c (objc_language_data): Likewise.
8761 * opencl-lang.c (opencl_language_data): Likewise.
8762 * p-lang.c (pascal_language_data): Likewise.
8763 * rust-lang.c (rust_language_data): Likewise.
8764 * symtab.c (default_collect_symbol_completion_matches): Delete.
8765 (collect_symbol_completion_matches): Update call to
8766 collect_symbol_completion_matches.
8767 (collect_symbol_completion_matches_type): Likewise.
8768 * symtab.h (default_collect_symbol_completion_matches): Delete
8769 declaration.
8770
8771 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8774 (ada_language_data): Delete la_word_break_characters initializer.
8775 (ada_language::word_break_characters): New member function.
8776 * c-lang.c (c_language_data): Delete la_word_break_characters
8777 initializer.
8778 (cplus_language_data): Likewise.
8779 (asm_language_data): Likewise.
8780 (minimal_language_data): Likewise.
8781 * completer.c: Update global comment.
8782 (advance_to_expression_complete_word_point): Update call to
8783 word_break_characters.
8784 (complete_files_symbols): Likewise.
8785 (complete_line_internal_1): Likewise.
8786 (default_completer_handle_brkchars): Likewise.
8787 (skip_quoted_chars): Likewise.
8788 * d-lang.c (d_language_data): Delete la_word_break_characters
8789 initializer.
8790 * f-lang.c (f_word_break_characters): Delete.
8791 (f_language_data): Delete la_word_break_characters initializer.
8792 (f_language::word_break_characters): New member function.
8793 * go-lang.c (go_language_data): Delete la_word_break_characters
8794 initializer.
8795 * language.c (unknown_language_data): Likewise.
8796 (auto_language_data): Likewise.
8797 * language.h (default_word_break_characters): Move declaration to
8798 earlier in the file.
8799 (language_data): Delete la_word_break_characters field.
8800 (language_defn::word_break_characters): New member function.
8801 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8802 initializer.
8803 * objc-lang.c (objc_language_data): Likewise.
8804 * opencl-lang.c (opencl_language_data): Likewise.
8805 * p-lang.c (pascal_language_data): Likewise.
8806 * rust-lang.c (rust_language_data): Likewise.
8807
8808 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8811 (ada_language_data): Delete la_get_symbol_name_matcher
8812 initializer.
8813 (language_defn::get_symbol_name_matcher_inner): New member
8814 function.
8815 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8816 initializer.
8817 (cplus_language_data): Likewise.
8818 (cplus_language::get_symbol_name_matcher_inner): New member
8819 function.
8820 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8821 (minimal_language_data): Likewise.
8822 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8823 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8824 initializer.
8825 * dictionary.c (iter_match_first_hashed): Update call to
8826 get_symbol_name_matcher.
8827 (iter_match_next_hashed): Likewise.
8828 (iter_match_next_linear): Likewise.
8829 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8830 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8831 initializer.
8832 (f_language::get_symbol_name_matcher_inner): New member function.
8833 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8834 initializer.
8835 * language.c (default_symbol_name_matcher): Update header comment,
8836 make static.
8837 (language_defn::get_symbol_name_matcher): New definition.
8838 (language_defn::get_symbol_name_matcher_inner): Likewise.
8839 (get_symbol_name_matcher): Delete.
8840 (unknown_language_data): Delete la_get_symbol_name_matcher
8841 initializer.
8842 (auto_language_data): Likewise.
8843 * language.h (language_data): Delete la_get_symbol_name_matcher
8844 field.
8845 (language_defn::get_symbol_name_matcher): New member function.
8846 (language_defn::get_symbol_name_matcher_inner): Likewise.
8847 (default_symbol_name_matcher): Delete declaration.
8848 * linespec.c (find_methods): Update call to
8849 get_symbol_name_matcher.
8850 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8851 initializer.
8852 * minsyms.c (lookup_minimal_symbol): Update call to
8853 get_symbol_name_matcher.
8854 (iterate_over_minimal_symbols): Likewise.
8855 * objc-lang.c (objc_language_data): Delete
8856 la_get_symbol_name_matcher initializer.
8857 * opencl-lang.c (opencl_language_data): Likewise.
8858 * p-lang.c (pascal_language_data): Likewise.
8859 * psymtab.c (psymbol_name_matches): Update call to
8860 get_symbol_name_matcher.
8861 * rust-lang.c (rust_language_data): Delete
8862 la_get_symbol_name_matcher initializer.
8863 * symtab.c (symbol_matches_search_name): Update call to
8864 get_symbol_name_matcher.
8865 (compare_symbol_name): Likewise.
8866
8867 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8868
8869 * ada-lang.c (ada_language_data): Delete la_compute_program
8870 initializer.
8871 * c-lang.c (c_language_data): Likewise.
8872 (c_language::compute_program): New member function.
8873 (cplus_language_data): Delete la_compute_program initializer.
8874 (cplus_language::compute_program): New member function.
8875 (asm_language_data): Delete la_compute_program initializer.
8876 (minimal_language_data): Likewise.
8877 * c-lang.h (c_compute_program): Update comment.
8878 (cplus_compute_program): Likewise.
8879 * compile/compile-c-support.c (c_compute_program): Likewise.
8880 (cplus_compute_program): Likewise.
8881 * compile/compile.c (compile_to_object): Update call to
8882 la_compute_program.
8883 * d-lang.c (d_language_data): Delete la_compute_program
8884 initializer.
8885 * f-lang.c (f_language_data): Likewise.
8886 * go-lang.c (go_language_data): Likewise.
8887 * language.c (unknown_language_data): Likewise.
8888 (auto_language_data): Likewise.
8889 * language.h (language_data): Delete la_compute_program field.
8890 (language_defn::compute_program): New member function.
8891 * m2-lang.c (m2_language_data): Delete la_compute_program
8892 initializer.
8893 * objc-lang.c (objc_language_data): Likewise.
8894 * opencl-lang.c (opencl_language_data): Likewise.
8895 * p-lang.c (pascal_language_data): Likewise.
8896 * rust-lang.c (rust_language_data): Likewise.
8897
8898 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * ada-lang.c (ada_language_data) Delete
8901 la_class_name_from_physname initializer.
8902 * c-lang.c (c_language_data): Likewise.
8903 (cplus_language_data): Likewise.
8904 (cplus_language::class_name_from_physname): New member function.
8905 (asm_language_data): Delete la_class_name_from_physname
8906 initializer.
8907 (minimal_language_data): Likewise.
8908 * d-lang.c (d_language_data): Likewise.
8909 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8910 method on language_defn class.
8911 (guess_full_die_structure_name): Likewise.
8912 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8913 initializer.
8914 * go-lang.c (go_language_data): Likewise.
8915 * language.c (language_class_name_from_physname): Delete.
8916 (unk_lang_class_name): Delete.
8917 (unknown_language_data): Delete la_class_name_from_physname
8918 initializer.
8919 (auto_language_data): Likewise.
8920 * language.h (language_data): Delete la_class_name_from_physname
8921 field.
8922 (language_defn::class_name_from_physname): New function.
8923 (language_class_name_from_physname): Delete declaration.
8924 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8925 initializer.
8926 * objc-lang.c (objc_language_data): Likewise.
8927 * opencl-lang.c (opencl_language_data): Likewise.
8928 * p-lang.c (pascal_language_data): Likewise.
8929 * rust-lang.c (rust_language_data): Likewise.
8930
8931 2020-06-16 Tom Tromey <tom@tromey.com>
8932
8933 * tui/tui-data.h (STATUS_NAME): New macro.
8934 * tui/tui-layout.c (tui_remove_some_windows)
8935 (initialize_known_windows, tui_register_window)
8936 (tui_layout_split::remove_windows, initialize_layouts)
8937 (tui_new_layout_command): Don't use hard-coded window names.
8938
8939 2020-06-16 Tom Tromey <tom@tromey.com>
8940
8941 PR tui/25348:
8942 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8943 tui_initialize_readline. Only run once. Call rl_initialize.
8944 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8945 tui_initialize_readline.
8946 * tui/tui-io.c (tui_setup_io): Call
8947 tui_ensure_readline_initialized.
8948 * tui/tui-interp.c (tui_interp::init): Update.
8949
8950 2020-06-16 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8953 Also preserve the status window.
8954
8955 2020-06-16 Tom Tromey <tom@tromey.com>
8956
8957 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8958 where m_window==nullptr.
8959
8960 2020-06-15 Tom Tromey <tromey@adacore.com>
8961
8962 * windows-nat.c (windows_nat::handle_output_debug_string):
8963 Update.
8964 (windows_nat::handle_ms_vc_exception): Update.
8965 * target.h (target_read_string): Change API.
8966 * target.c (target_read_string): Change API.
8967 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8968 Update.
8969 * solib-frv.c (frv_current_sos): Update.
8970 * solib-dsbt.c (dsbt_current_sos): Update.
8971 * solib-darwin.c (darwin_current_sos): Update.
8972 * linux-thread-db.c (inferior_has_bug): Update.
8973 * expprint.c (print_subexp_standard): Update.
8974 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8975 (ada_exception_message_1): Update.
8976
8977 2020-06-15 Tom Tromey <tromey@adacore.com>
8978
8979 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8980
8981 2020-06-15 Tom Tromey <tromey@adacore.com>
8982
8983 * valprint.c (read_string): Update comment.
8984 * target.c (MIN): Remove.
8985 (target_read_string): Rewrite.
8986
8987 2020-06-15 Tom Tromey <tromey@adacore.com>
8988
8989 * corefile.c (read_memory_string): Remove.
8990 * ada-valprint.c (ada_value_print_ptr): Update.
8991 * ada-lang.h (ada_tag_name): Change return type.
8992 * ada-lang.c (type_from_tag): Update.
8993 (ada_tag_name_from_tsd): Change return type. Use
8994 target_read_string.
8995 (ada_tag_name): Likewise.
8996 * gdbcore.h (read_memory_string): Don't declare.
8997
8998 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8999
9000 * symtab.c (rbreak_command): Ignore Windows drive colon.
9001
9002 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * NEWS: Mention removed GDBserver host support.
9005
9006 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9007
9008 * features/riscv/rebuild-csr-xml.sh: Updated.
9009
9010 2020-06-11 Tom Tromey <tom@tromey.com>
9011
9012 PR gdb/18318:
9013 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9014
9015 2020-06-09 Jonny Grant <jg@jguk.org>
9016 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9017
9018 * main.c (captured_main_1): Don't print new line after help.
9019 (print_gdb_help): add mailing list and IRC channel information
9020 to --help. Add new lines between items in the footer. Remove
9021 quotes around bug url.
9022
9023 2020-06-11 Keith Seitz <keiths@redhat.com>
9024
9025 PR gdb/21356
9026 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9027 Resolve typedefs for type length calculations.
9028
9029 2020-06-10 Tom de Vries <tdevries@suse.de>
9030
9031 PR ada/24713
9032 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9033 (write_psymbols): Enable .gdb_index for ada.
9034 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9035 ada.
9036
9037 2020-06-10 Tom de Vries <tdevries@suse.de>
9038
9039 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9040 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9041 namei" instead of "const char *name" argument.
9042 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9043 dw2_symtab_iter_init.
9044
9045 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9048 to use type::field and field::type instead.
9049
9050 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9053 to use field::type instead.
9054
9055 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * gdbtypes.h (struct field) <type, set_type>: New methods.
9058 Rename `type` field to...
9059 <m_type>: ... this. Change references throughout to use type or
9060 set_type methods.
9061 (FIELD_TYPE): Use field::type. Change call sites that modify
9062 the field's type to use field::set_type instead.
9063
9064 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9067 to use type::index_type instead.
9068
9069 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9072 methods.
9073 (TYPE_INDEX_TYPE): Use type::index_type.
9074 * gdbtypes.c (create_array_type_with_stride): Likewise.
9075
9076 2020-06-07 Tom Tromey <tom@tromey.com>
9077
9078 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9079 parameter.
9080 (generic_value_print): Update.
9081
9082 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9083
9084 Revert commit 982a38f60b0.
9085 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9086
9087 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9090 avoid use after free.
9091
9092 2020-06-05 Tom de Vries <tdevries@suse.de>
9093
9094 * NEWS: Fix typos.
9095
9096 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9099 the per_bfd object.
9100 (dwarf2_read_debug_names): Likewise.
9101 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9102 object when re-using a per_bfd object with an index.
9103
9104 2020-06-03 Tom de Vries <tdevries@suse.de>
9105
9106 PR symtab/26046
9107 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9108 children for C++.
9109 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9110 DW_TAG_subprogram.
9111
9112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * ada-lang.c (ada_language_data): Delete skip_trampoline
9115 initializer.
9116 * c-lang.c (c_language_data): Likewise.
9117 (cplus_language_data): Likewise.
9118 (cplus_language::skip_trampoline): New member function.
9119 (asm_language_data): Delete skip_trampoline initializer.
9120 (minimal_language_data): Likewise.
9121 * d-lang.c (d_language_data): Likewise.
9122 * f-lang.c (f_language_data): Likewise.
9123 * go-lang.c (go_language_data): Likewise.
9124 * language.c (unk_lang_trampoline): Delete function.
9125 (skip_language_trampoline): Update.
9126 (unknown_language_data): Delete skip_trampoline initializer.
9127 (auto_language_data): Likewise.
9128 * language.h (language_data): Delete skip_trampoline field.
9129 (language_defn::skip_trampoline): New function.
9130 * m2-lang.c (m2_language_data): Delete skip_trampoline
9131 initializer.
9132 * objc-lang.c (objc_skip_trampoline): Delete function, move
9133 implementation to objc_language::skip_trampoline.
9134 (objc_language_data): Delete skip_trampoline initializer.
9135 (objc_language::skip_trampoline): New member function with
9136 implementation from objc_skip_trampoline.
9137 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9138 initializer.
9139 * p-lang.c (pascal_language_data): Likewise.
9140 * rust-lang.c (rust_language_data): Likewise.
9141
9142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9143
9144 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9145 (ada_language::demangle): New member function.
9146 * c-lang.c (c_language_data): Delete la_demangle initializer.
9147 (cplus_language_data): Delete la_demangle initializer.
9148 (cplus_language::demangle): New member function.
9149 (asm_language_data): Delete la_demangle initializer.
9150 (minimal_language_data): Delete la_demangle initializer.
9151 * d-lang.c (d_language_data): Delete la_demangle initializer.
9152 (d_language::demangle): New member function.
9153 * f-lang.c (f_language_data): Delete la_demangle initializer.
9154 (f_language::demangle): New member function.
9155 * go-lang.c (go_language_data): Delete la_demangle initializer.
9156 (go_language::demangle): New member function.
9157 * language.c (language_demangle): Update.
9158 (unk_lang_demangle): Delete.
9159 (unknown_language_data): Delete la_demangle initializer.
9160 (unknown_language::demangle): New member function.
9161 (auto_language_data): Delete la_demangle initializer.
9162 (auto_language::demangle): New member function.
9163 * language.h (language_data): Delete la_demangle field.
9164 (language_defn::demangle): New function.
9165 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9166 * objc-lang.c (objc_language_data): Delete la_demangle
9167 initializer.
9168 (objc_language::demangle): New member function.
9169 * opencl-lang.c (opencl_language_data): Delete la_demangle
9170 initializer.
9171 * p-lang.c (pascal_language_data): Likewise.
9172 * rust-lang.c (rust_language_data): Likewise.
9173 (rust_language::demangle): New member function.
9174
9175 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * ada-lang.c (ada_language_data): Delete la_print_type
9178 initializer.
9179 (ada_language::print_type): New member function.
9180 * c-lang.c (c_language_data): Delete la_print_type initializer.
9181 (c_language::print_type): New member function.
9182 (cplus_language_data): Delete la_print_type initializer.
9183 (cplus_language::print_type): New member function.
9184 (asm_language_data): Delete la_print_type initializer.
9185 (asm_language::print_type): New member function.
9186 (minimal_language_data): Delete la_print_type initializer.
9187 (minimal_language::print_type): New member function.
9188 * d-lang.c (d_language_data): Delete la_print_type initializer.
9189 (d_language::print_type): New member function.
9190 * f-lang.c (f_language_data): Delete la_print_type initializer.
9191 (f_language::print_type): New member function.
9192 * go-lang.c (go_language_data): Delete la_print_type initializer.
9193 (go_language::print_type): New member function.
9194 * language.c (unk_lang_print_type): Delete.
9195 (unknown_language_data): Delete la_print_type initializer.
9196 (unknown_language::print_type): New member function.
9197 (auto_language_data): Delete la_print_type initializer.
9198 (auto_language::print_type): New member function.
9199 * language.h (language_data): Delete la_print_type field.
9200 (language_defn::print_type): New function.
9201 (LA_PRINT_TYPE): Update.
9202 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9203 (m2_language::print_type): New member function.
9204 * objc-lang.c (objc_language_data): Delete la_print_type
9205 initializer.
9206 (objc_language::print_type): New member function.
9207 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9208 to opencl_language::print_type.
9209 (opencl_language_data): Delete la_print_type initializer.
9210 (opencl_language::print_type): New member function, implementation
9211 from opencl_print_type.
9212 * p-lang.c (pascal_language_data): Delete la_print_type
9213 initializer.
9214 (pascal_language::print_type): New member function.
9215 * rust-lang.c (rust_print_type): Delete, implementation moved to
9216 rust_language::print_type.
9217 (rust_language_data): Delete la_print_type initializer.
9218 (rust_language::print_type): New member function, implementation
9219 from rust_print_type.
9220
9221 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9222
9223 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9224 implementation moves to...
9225 (ada_language::sniff_from_mangled_name): ...here. Update return
9226 type.
9227 (ada_language_data): Delete la_sniff_from_mangled_name
9228 initializer.
9229 * c-lang.c (c_language_data): Likewise.
9230 (cplus_language_data): Likewise.
9231 (cplus_language::sniff_from_mangled_name): New member function,
9232 implementation taken from gdb_sniff_from_mangled_name.
9233 (asm_language_data): Delete la_sniff_from_mangled_name
9234 initializer.
9235 (minimal_language_data): Likewise.
9236 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9237 implementation moves to cplus_language::sniff_from_mangled_name.
9238 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9239 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9240 moves to...
9241 (d_language::sniff_from_mangled_name): ...here.
9242 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9243 * f-lang.c (f_language_data): Likewise.
9244 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9245 moves to...
9246 (go_language::sniff_from_mangled_name): ...here.
9247 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9248 * language.c (language_sniff_from_mangled_name): Delete.
9249 (unknown_language_data): Delete la_sniff_from_mangled_name
9250 initializer.
9251 (auto_language_data): Likewise.
9252 * language.h (language_data): Delete la_sniff_from_mangled_name
9253 field.
9254 (language_defn::sniff_from_mangled_name): New function.
9255 (language_sniff_from_mangled_name): Delete declaration.
9256 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9257 field.
9258 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9259 implementation moves to...
9260 (objc_language::sniff_from_mangled_name): ...here.
9261 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9262 * opencl-lang.c (opencl_language_data): Likewise.
9263 * p-lang.c (pascal_language_data): Likewise.
9264 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9265 implementation moves to...
9266 (rust_language::sniff_from_mangled_name): ...here.
9267 (rust_language_data): Delete la_sniff_from_mangled_name
9268 initializer.
9269 * symtab.c (symbol_find_demangled_name): Call
9270 sniff_from_mangled_name member function.
9271
9272 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9273
9274 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9275 initializer.
9276 * c-lang.c (c_language_data): Likewise.
9277 (cplus_language_data): Likewise.
9278 (cplus_language::search_name_hash): New member function.
9279 (asm_language_data): Delete la_search_name_hash initializer.
9280 (minimal_language_data): Likewise.
9281 * d-lang.c (d_language_data): Likewise.
9282 * dictionary.c (default_search_name_hash): Rename to...
9283 (language_defn::search_name_hash): ...this.
9284 * f-lang.c (f_language_data): Likewise.
9285 (f_language::search_name_hash): New member function.
9286 * go-lang.c (go_language_data): Delete la_search_name_hash
9287 initializer.
9288 * language.c (unknown_language_data): Likewise.
9289 (auto_language_data): Likewise.
9290 * language.h (struct language_data): Delete la_search_name_hash
9291 field.
9292 (language_defn::search_name_hash): Declare new member function.
9293 (default_search_name_hash): Delete declaration.
9294 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9295 initializer.
9296 * objc-lang.c (objc_language_data): Likewise.
9297 * opencl-lang.c (opencl_language_data): Likewise.
9298 * p-lang.c (pascal_language_data): Likewise.
9299 * rust-lang.c (rust_language_data): Likewise.
9300 * symtab.c (search_name_hash): Update call.
9301
9302 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9303
9304 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9305 initializer.
9306 * c-lang.c (class compile_instance): Declare.
9307 (c_language_data): Delete la_get_compile_instance initializer.
9308 (c_language::get_compile_instance): New member function.
9309 (cplus_language_data): Delete la_get_compile_instance initializer.
9310 (cplus_language::get_compile_instance): New member function.
9311 (asm_language_data): Delete la_get_compile_instance initializer.
9312 (minimal_language_data): Likewise.
9313 * c-lang.h (c_get_compile_context): Update comment.
9314 (cplus_get_compile_context): Update comment.
9315 * compile/compile.c (compile_to_object): Update calls, don't rely
9316 on function pointer being NULL.
9317 * d-lang.c (d_language_data): Delete la_get_compile_instance
9318 initializer.
9319 * f-lang.c (f_language_data): Likewise.
9320 * go-lang.c (go_language_data): Likewise.
9321 * language.c (unknown_language_data): Likewise.
9322 (auto_language_data): Likewise.
9323 * language.h (language_data): Delete la_get_compile_instance field.
9324 (language_defn::get_compile_instance): New member function.
9325 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9326 initializer.
9327 * objc-lang.c (objc_language_data): Likewise.
9328 * opencl-lang.c (opencl_language_data): Likewise.
9329 * p-lang.c (pascal_language_data): Likewise.
9330 * rust-lang.c (rust_language_data): Likewise.
9331
9332 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * ada-lang.c (ada_add_all_symbols): Update comment.
9335 (ada_iterate_over_symbols): Delete, move implementation to...
9336 (ada_language::iterate_over_symbols): ...here, a new member
9337 function, rewrite to use range based for loop.
9338 (ada_language_data): Delete la_iterate_over_symbols initializer.
9339 * c-lang.c (c_language_data): Likewise.
9340 (cplus_language_data): Likewise.
9341 (asm_language_data): Likewise.
9342 (minimal_language_data): Likewise.
9343 * d-lang.c (d_language_data): Likewise.
9344 * f-lang.c (f_language_data): Likewise.
9345 * go-lang.c (go_language_data): Likewise.
9346 * language.c (unknown_language_data): Likewise.
9347 (auto_language_data): Likewise.
9348 * language.h (language_data): Delete la_iterate_over_symbols field.
9349 (language_defn::iterate_over_symbols): New member function.
9350 (LA_ITERATE_OVER_SYMBOLS): Update.
9351 * linespec.c (iterate_over_all_matching_symtabs): Update.
9352 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9353 initializer.
9354 * objc-lang.c (objc_language_data): Likewise.
9355 * opencl-lang.c (opencl_language_data): Likewise.
9356 * p-lang.c (pascal_language_data): Likewise.
9357 * rust-lang.c (rust_language_data): Likewise.
9358
9359 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * ada-lang.c (ada_language_data): Delete
9362 la_lookup_transparent_type initializer.
9363 * c-lang.c (c_language_data): Likewise.
9364 (cplus_language_data): Likewise.
9365 (cplus_language::lookup_transparent_type): New member function.
9366 (asm_language_data): Delete la_lookup_transparent_type
9367 initializer.
9368 (minimal_language_data): Likewise.
9369 * d-lang.c (d_language_data): Likewise.
9370 * f-lang.c (f_language_data): Likewise.
9371 * go-lang.c (go_language_data): Likewise.
9372 * language.c (unknown_language_data): Likewise.
9373 (auto_language_data): Likewise.
9374 * language.h (struct language_data): Delete
9375 la_lookup_transparent_type field.
9376 (language_defn::lookup_transparent_type): New member function.
9377 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9378 initializer.
9379 * objc-lang.c (objc_language_data): Likewise.
9380 * opencl-lang.c (opencl_language_data): Likewise.
9381 * p-lang.c (pascal_language_data): Likewise.
9382 * rust-lang.c (rust_language_data): Likewise.
9383 * symtab.c (symbol_matches_domain): Update call.
9384
9385 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9386
9387 * ada-lang.c (ada_language_arch_info): Delete function, move
9388 implementation to...
9389 (ada_language::language_arch_info): ...here, a new member
9390 function.
9391 (ada_language_data): Delete la_language_arch_info.
9392 * c-lang.c (c_language_data): Likewise.
9393 (c_language::language_arch_info): New member function.
9394 (cplus_language_arch_info): Delete function, move
9395 implementation to...
9396 (cplus_language::language_arch_info): ...here, a new member
9397 function.
9398 (cplus_language_data): Delete la_language_arch_info.
9399 (asm_language_data): Likewise.
9400 (asm_language::language_arch_info): New member function.
9401 (minimal_language_data): Delete la_language_arch_info.
9402 (minimal_language::language_arch_info): New member function.
9403 * d-lang.c (d_language_arch_info): Delete function, move
9404 implementation to...
9405 (d_language::language_arch_info): ...here, a new member
9406 function.
9407 (d_language_data): Delete la_language_arch_info.
9408 * f-lang.c (f_language_arch_info): Delete function, move
9409 implementation to...
9410 (f_language::language_arch_info): ...here, a new member
9411 function.
9412 (f_language_data): Delete la_language_arch_info.
9413 * go-lang.c (go_language_arch_info): Delete function, move
9414 implementation to...
9415 (go_language::language_arch_info): ...here, a new member
9416 function.
9417 (go_language_data): Delete la_language_arch_info.
9418 * language.c (unknown_language_data): Likewise.
9419 (unknown_language::language_arch_info): New member function.
9420 (auto_language_data): Delete la_language_arch_info.
9421 (auto_language::language_arch_info): New member function.
9422 (language_gdbarch_post_init): Update call to
9423 la_language_arch_info.
9424 * language.h (language_data): Delete la_language_arch_info
9425 function pointer.
9426 (language_defn::language_arch_info): New function.
9427 * m2-lang.c (m2_language_arch_info): Delete function, move
9428 implementation to...
9429 (m2_language::language_arch_info): ...here, a new member
9430 function.
9431 (m2_language_data): Delete la_language_arch_info.
9432 * objc-lang.c (objc_language_arch_info): Delete function, move
9433 implementation to...
9434 (objc_language::language_arch_info): ...here, a new member
9435 function.
9436 (objc_language_data): Delete la_language_arch_info.
9437 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9438 implementation to...
9439 (opencl_language::language_arch_info): ...here, a new member
9440 function.
9441 (opencl_language_data): Delete la_language_arch_info.
9442 * p-lang.c (pascal_language_arch_info): Delete function, move
9443 implementation to...
9444 (pascal_language::language_arch_info): ...here, a new member
9445 function.
9446 (pascal_language_data): Delete la_language_arch_info.
9447 * rust-lang.c (rust_language_arch_info): Delete function, move
9448 implementation to...
9449 (rust_language::language_arch_info): ...here, a new member
9450 function.
9451 (rust_language_data): Delete la_language_arch_info.
9452
9453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9454
9455 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9456 initializer.
9457 * c-lang.c (c_language_data): Likewise.
9458 (cplus_language_data): Likewise.
9459 (cplus_language::pass_by_reference_info): New method.
9460 (asm_language_data): Delete la_pass_by_reference initializer.
9461 (minimal_language_data): Likewise.
9462 * cp-abi.c (cp_pass_by_reference): Remove use of
9463 default_pass_by_reference.
9464 * d-lang.c (d_language_data): Likewise.
9465 * f-lang.c (f_language_data): Likewise.
9466 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9467 default_pass_by_reference.
9468 * go-lang.c (go_language_data): Likewise.
9469 * language.c (language_pass_by_reference): Update.
9470 (default_pass_by_reference): Delete.
9471 (unknown_language_data): Delete la_pass_by_reference
9472 initializer.
9473 (auto_language_data): Likewise.
9474 * language.h (struct language_data): Delete la_pass_by_reference
9475 field.
9476 (language_defn::pass_by_reference_info): New member function.
9477 (default_pass_by_reference): Delete declaration.
9478 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9479 initializer.
9480 * objc-lang.c (objc_language_data): Likewise.
9481 * opencl-lang.c (opencl_language_data): Likewise.
9482 * p-lang.c (pascal_language_data): Likewise.
9483 * rust-lang.c (rust_language_data): Likewise.
9484
9485 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * ada-lang.c (ada_read_var_value): Delete function, move
9488 implementation to...
9489 (ada_language::read_var_value): ...here.
9490 (ada_language_data): Delete la_read_var_value initializer.
9491 * c-lang.c (c_language_data): Likewise.
9492 (cplus_language_data): Likewise.
9493 (minimal_language_data): Likewise.
9494 * d-lang.c (d_language_data): Likewise.
9495 * f-lang.c (f_language_data): Likewise.
9496 * findvar.c (default_read_var_value): Rename to...
9497 (language_defn::read_var_value): ...this.
9498 * findvar.c (read_var_value): Update header comment, and change to
9499 call member function instead of function pointer.
9500 * go-lang.c (go_language_data): Likewise.
9501 * language.c (unknown_language_data): Delete la_read_var_value
9502 initializer.
9503 (auto_language_data): Likewise.
9504 * language.h (struct language_data): Delete la_read_var_value
9505 field.
9506 (language_defn::read_var_value): New member function.
9507 (default_read_var_value): Delete declaration.
9508 * m2-lang.c (m2_language_data): Delete la_read_var_value
9509 initializer.
9510 * objc-lang.c (objc_language_data): Likewise.
9511 * opencl-lang.c (opencl_language_data): Likewise.
9512 * p-lang.c (pascal_language_data): Likewise.
9513 * rust-lang.c (rust_language_data): Likewise.
9514 * value.h (default_read_var_value): Delete declaration.
9515
9516 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9517
9518 * ada-lang.c (ada_print_array_index): Delete function, move
9519 implementation to...
9520 (ada_language::print_array_index): ...here.
9521 (ada_language_data): Delete la_print_array_index initializer.
9522 * c-lang.c (c_language_data): Likewise.
9523 (cplus_language_data): Likewise.
9524 (minimal_language_data): Likewise.
9525 * d-lang.c (d_language_data): Likewise.
9526 * f-lang.c (f_language_data): Likewise.
9527 * go-lang.c (go_language_data): Likewise.
9528 * language.c (default_print_array_index): Delete function, move
9529 implementation to...
9530 (language_defn::print_array_index): ...here.
9531 (unknown_language_data): Delete la_print_array_index initializer.
9532 (auto_language_data): Likewise.
9533 * language.h (struct language_data): Delete la_print_array_index
9534 field.
9535 (language_defn::print_array_index): New member function.
9536 (LA_PRINT_ARRAY_INDEX): Update.
9537 (default_print_array_index): Delete declaration.
9538 * m2-lang.c (m2_language_data): Delete la_print_array_index
9539 initializer.
9540 * objc-lang.c (objc_language_data): Likewise.
9541 * opencl-lang.c (opencl_language_data): Likewise.
9542 * p-lang.c (pascal_language_data): Likewise.
9543 * rust-lang.c (rust_language_data): Likewise.
9544
9545 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9546
9547 * gdb/ada-lang.c (ada_language_defn): Convert to...
9548 (ada_language_data): ...this.
9549 (class ada_language): New class.
9550 (ada_language_defn): New static global.
9551 * gdb/c-lang.c (c_language_defn): Convert to...
9552 (c_language_data): ...this.
9553 (class c_language): New class.
9554 (c_language_defn): New static global.
9555 (cplus_language_defn): Convert to...
9556 (cplus_language_data): ...this.
9557 (class cplus_language): New class.
9558 (cplus_language_defn): New static global.
9559 (asm_language_defn): Convert to...
9560 (asm_language_data): ...this.
9561 (class asm_language): New class.
9562 (asm_language_defn): New static global.
9563 (minimal_language_defn): Convert to...
9564 (minimal_language_data): ...this.
9565 (class minimal_language): New class.
9566 (minimal_language_defn): New static global.
9567 * gdb/d-lang.c (d_language_defn): Convert to...
9568 (d_language_data): ...this.
9569 (class d_language): New class.
9570 (d_language_defn): New static global.
9571 * gdb/f-lang.c (f_language_defn): Convert to...
9572 (f_language_data): ...this.
9573 (class f_language): New class.
9574 (f_language_defn): New static global.
9575 * gdb/go-lang.c (go_language_defn): Convert to...
9576 (go_language_data): ...this.
9577 (class go_language): New class.
9578 (go_language_defn): New static global.
9579 * gdb/language.c (unknown_language_defn): Remove declaration.
9580 (current_language): Initialize to nullptr, real initialization is
9581 moved to _initialize_language.
9582 (languages): Delete global.
9583 (language_defn::languages): Define.
9584 (set_language_command): Use language_defn::languages.
9585 (set_language): Likewise.
9586 (range_error): Likewise.
9587 (language_enum): Likewise.
9588 (language_def): Likewise.
9589 (add_set_language_command): Use language_def::languages for the
9590 language list, and language_def to lookup language pointers.
9591 (skip_language_trampoline): Use language_defn::languages.
9592 (unknown_language_defn): Convert to...
9593 (unknown_language_data): ...this.
9594 (class unknown_language): New class.
9595 (unknown_language_defn): New static global.
9596 (auto_language_defn): Convert to...
9597 (auto_language_data): ...this.
9598 (class auto_language): New class.
9599 (auto_language_defn): New static global.
9600 (language_gdbarch_post_init): Use language_defn::languages.
9601 (_initialize_language): Initialize current_language.
9602 * gdb/language.h (struct language_defn): Rename to...
9603 (struct language_data): ...this.
9604 (struct language_defn): New.
9605 (auto_language_defn): Delete.
9606 (unknown_language_defn): Delete.
9607 (minimal_language_defn): Delete.
9608 (ada_language_defn): Delete.
9609 (asm_language_defn): Delete.
9610 (c_language_defn): Delete.
9611 (cplus_language_defn): Delete.
9612 (d_language_defn): Delete.
9613 (f_language_defn): Delete.
9614 (go_language_defn): Delete.
9615 (m2_language_defn): Delete.
9616 (objc_language_defn): Delete.
9617 (opencl_language_defn): Delete.
9618 (pascal_language_defn): Delete.
9619 (rust_language_defn): Delete.
9620 * gdb/m2-lang.c (m2_language_defn): Convert to...
9621 (m2_language_data): ...this.
9622 (class m2_language): New class.
9623 (m2_language_defn): New static global.
9624 * gdb/objc-lang.c (objc_language_defn): Convert to...
9625 (objc_language_data): ...this.
9626 (class objc_language): New class.
9627 (objc_language_defn): New static global.
9628 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9629 (opencl_language_data): ...this.
9630 (class opencl_language): New class.
9631 (opencl_language_defn): New static global.
9632 * gdb/p-lang.c (pascal_language_defn): Convert to...
9633 (pascal_language_data): ...this.
9634 (class pascal_language): New class.
9635 (pascal_language_defn): New static global.
9636 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9637 language pointer, update comment format.
9638 * gdb/rust-lang.c (rust_language_defn): Convert to...
9639 (rust_language_data): ...this.
9640 (class rust_language): New class.
9641 (rust_language_defn): New static global.
9642
9643 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9646 member variable.
9647 <m_stmt_at_address>: New member variable.
9648 (lnp_state_machine::record_line): Don't record some lines, update
9649 tracking of is_stmt at the same address.
9650 (lnp_state_machine::lnp_state_machine): Initialise new member
9651 variables.
9652
9653 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9654
9655 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9656 "-include gnu-nat-mig.h".
9657 * gnu-nat-mig.h: New file.
9658 * gnu-nat.c: Include "gnu-nat-mig.h".
9659 (exc_server, msg_reply_server, notify_server,
9660 process_reply_server): Remove declarations.
9661
9662 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9663
9664 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9665 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9666 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9667 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9668 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9669 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9670 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9671 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9672 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9673 to gnu_nat_target class.
9674 * gnu-nat.c: Likewise.
9675 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9676 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9677 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9678 object.
9679 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9680 instead of `gnu_target'.
9681
9682 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9683
9684 * i386-gnu-tdep.c: Include "gdbcore.h"
9685 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9686 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9687 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9688 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9689 i386_gnu_sigcontext_addr): New functions
9690 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9691 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9692 tdep.
9693
9694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9695
9696 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9697 before fork_inferior call. Avoid calling it if target_is_pushed returns
9698 true.
9699
9700 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9701
9702 * gnu-nat.h (gnu_target): New variable declaration.
9703 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9704 gnu_target.
9705 * gnu-nat.c (gnu_target): New variable.
9706 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9707 add_thread_silent, and add_thread calls.
9708 (gnu_nat_target::create_inferior): Pass gnu_target to
9709 add_thread_silent, thread_change_ptid call.
9710 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9711 call.
9712
9713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9714
9715 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9716 (gnu_nat_target::find_memory_regions): Remove unused
9717 `old_address' variable.
9718
9719 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9720
9721 * gnu-nat.c: Include "gdbarch.h".
9722
9723 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9724
9725 * reply_mig_hack.awk (Error return): Cast function through
9726 void *, to bypass compiler function call check.
9727
9728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9729
9730 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9731 $(srcdir)/reply_mig_hack.awk.
9732
9733 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9734
9735 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9736
9737 2020-05-30 Jonny Grant <jg@jguk.org>
9738
9739 * configure.ac (ACX_BUGURL): change bug URL to https.
9740
9741 2020-05-30 Pedro Alves <palves@redhat.com>
9742
9743 * cp-support.c (replace_typedefs_template): New.
9744 (replace_typedefs_qualified_name): Handle
9745 DEMANGLE_COMPONENT_TEMPLATE.
9746
9747 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9750 dwarf2/index-cache.h, dwarf2/index-write.c,
9751 dwarf2/index-write.h, dwarf2/line-header.c,
9752 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9753 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9754 variables and fields from `dwarf2_per_objfile` to just
9755 `per_objfile` throughout.
9756
9757 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9760 <push_dwarf_reg_entry_value>: Add comment.
9761
9762 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9763 Keith Seitz <keiths@redhat.com>
9764
9765 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9766 instead of PyEval_ReleaseLock.
9767 (class gdbpy_gil): Move to earlier in file.
9768 (finalize_python): Set gdb_python_initialized.
9769 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9770 when not initialized.
9771
9772 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9775 <push_dwarf_reg_entry_value>: Remove assert. Override
9776 per_objfile with caller_per_objfile.
9777
9778 2020-05-28 Tom de Vries <tdevries@suse.de>
9779
9780 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9781 PR gold/15646 workaround to symbol kind "type".
9782
9783 2020-05-27 Tom Tromey <tromey@adacore.com>
9784
9785 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9786
9787 2020-05-27 Tom Tromey <tromey@adacore.com>
9788
9789 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9790 Use htab_find_with_hash.
9791 <add_abbrev>: Remove "abbrev_number" parameter.
9792 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9793 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9794 (hash_abbrev): Add comment.
9795 (abbrev_table::lookup_abbrev): Move to header file.
9796 (abbrev_table::read): Update.
9797
9798 2020-05-27 Tom Tromey <tromey@adacore.com>
9799
9800 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9801 method.
9802 <canonical_name>: New member.
9803 <raw_name>: Rename from "name".
9804 (partial_die_info): Initialize canonical_name.
9805 (scan_partial_symbols): Check raw_name.
9806 (partial_die_parent_scope, partial_die_full_name)
9807 (add_partial_symbol, add_partial_subprogram)
9808 (add_partial_enumeration, load_partial_dies): Use "name" method.
9809 (partial_die_info::name): New method.
9810 (partial_die_info::read, guess_partial_die_structure_name)
9811 (partial_die_info::fixup): Update.
9812
9813 2020-05-27 Tom Tromey <tromey@adacore.com>
9814
9815 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9816 <get_ref_die_offset>: Inline.
9817 <get_ref_die_offset_complaint>: New method.
9818 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9819 (attribute::get_ref_die_offset_complaint): Rename from
9820 get_ref_die_offset. Just issue complaint.
9821
9822 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9823
9824 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9825
9826 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9827
9828 * exec.c (exec_file_attach): Use errno value of first openp failure.
9829
9830 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9831
9832 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9833 Don't close thread handle.
9834
9835 2020-05-27 Tom Tromey <tom@tromey.com>
9836 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9839 shared_ptr.
9840 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9841 member.
9842 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9843 dwarf2_per_bfd_objfile_data_key>: New globals.
9844 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9845 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9846 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9847 shared.
9848 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9849 short-circuit when sharing.
9850 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9851 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9852
9853 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9856 to...
9857 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9858 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9859
9860 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9861
9862 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9863 build_name_components, find_name_components_bounds>:
9864 Add per_objfile parameter.
9865 (struct mapped_index) <symbol_name_at>: Likewise.
9866 (struct mapped_debug_names): Remove constructor.
9867 <dwarf2_per_objfile>: Remove field.
9868 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9869 (mapped_index_base::find_name_components_bounds,
9870 mapped_index_base::build_name_components,
9871 dw2_expand_symtabs_matching_symbol): Likewise.
9872 (class mock_mapped_index) <symbol_name_at>: Likewise.
9873 (check_match): Likewise.
9874 (check_find_bounds_finds): Likewise.
9875 (test_mapped_index_find_name_component_bounds): Update.
9876 (CHECK_MATCH): Update.
9877 (dw2_expand_symtabs_matching): Update.
9878 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9879 per_objfile parameter.
9880 <find_vec_in_debug_names>: Likewise.
9881 <m_per_objfile>: New field.
9882 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9883 parameter.
9884 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9885 (dw2_debug_names_iterator::next): Update.
9886 (dw2_debug_names_lookup_symbol): Update.
9887 (dw2_debug_names_expand_symtabs_for_function): Update.
9888 (dw2_debug_names_map_matching_symbols): Update.
9889 (dw2_debug_names_expand_symtabs_matching): Update.
9890 (dwarf2_read_debug_names): Update.
9891
9892 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9895 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9896 move to dwarf2_per_objfile.
9897 <read_in_chain>: Remove.
9898 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9899 remove_all_cus, age_comp_units>: New methods.
9900 <m_dwarf2_cus>: New member.
9901 (struct dwarf2_per_cu_data) <cu>: Remove.
9902 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9903 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9904 moved to methods of dwarf2_per_objfile.
9905 (dwarf2_clear_marks): Remove.
9906 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9907 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9908 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9909 (dwarf2_per_objfile::remove_all_cus): New.
9910 (class free_cached_comp_units) <~free_cached_comp_units>:
9911 Update.
9912 (load_cu): Update.
9913 (dw2_do_instantiate_symtab): Adjust.
9914 (fill_in_sig_entry_from_dwo_entry): Adjust.
9915 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9916 (cutu_reader::cutu_reader): Likewise.
9917 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9918 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9919 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9920 and dwarf2_per_objfile::age_comp_units.
9921 (load_partial_comp_unit): Update.
9922 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9923 (process_queue): Likewise.
9924 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9925 backlink.
9926 (dwarf2_read_addr_index): Likewise.
9927 (follow_die_offset): Likewise.
9928 (dwarf2_fetch_die_loc_sect_off): Likewise.
9929 (dwarf2_fetch_constant_bytes): Likewise.
9930 (dwarf2_fetch_die_type_sect_off): Likewise.
9931 (follow_die_sig_1): Likewise.
9932 (load_full_type_unit): Likewise.
9933 (read_signatured_type): Likewise.
9934 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9935 (dwarf2_cu::~dwarf2_cu): Remove.
9936 (dwarf2_per_objfile::get_cu): New.
9937 (dwarf2_per_objfile::set_cu): New.
9938 (age_cached_comp_units): Rename to...
9939 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9940 to std::unordered_map.
9941 (free_one_cached_comp_unit): Rename to...
9942 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9943 to std::unordered_map.
9944 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9945 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9946 a dwarf2_per_objfile in data.
9947 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9948 (dwarf2_clear_marks): Remove.
9949
9950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9953 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9954 (init_tu_and_read_dwo_dies): Likewise.
9955 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9956 (cutu_reader::cutu_reader): Likewise.
9957 (load_partial_comp_unit): Likewise.
9958 (process_psymtab_comp_unit): Update.
9959 (build_type_psymtabs_1): Update.
9960 (process_skeletonless_type_unit): Update.
9961 (load_full_comp_unit): Update.
9962 (find_partial_die): Update.
9963 (dwarf2_read_addr_index): Update.
9964 (read_signatured_type): Update.
9965
9966 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9967
9968 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9969 m_header_read_in>: New fields.
9970 <get_header>: New method.
9971 * dwarf2/read.c (per_cu_header_read_in): Remove.
9972 (dwarf2_per_cu_data::get_header): New.
9973 (dwarf2_per_cu_data::addr_size): Update.
9974 (dwarf2_per_cu_data::offset_size): Update.
9975 (dwarf2_per_cu_data::ref_addr_size): Update.
9976
9977 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9978
9979 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9980 (dw2_do_instantiate_symtab): Update.
9981 (queue_and_load_all_dwo_tus): Change parameter from
9982 dwarf2_per_cu_data to dwarf2_cu.
9983 (dwarf2_fetch_die_loc_sect_off): Update.
9984 (dwarf2_fetch_constant_bytes): Update.
9985 (dwarf2_fetch_die_type_sect_off): Update.
9986
9987 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9988
9989 * dwarf2/read.c (process_full_comp_unit,
9990 process_full_type_unit): Remove per_cu, per_objfile paramters.
9991 Add dwarf2_cu parameter.
9992 (process_queue): Update.
9993
9994 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9995
9996 * dwarf2/read.c (create_cu_from_index_list): Replace
9997 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9998 (create_cus_from_index_list): Likewise.
9999 (create_cus_from_index): Likewise.
10000 (create_signatured_type_table_from_index): Likewise.
10001 (create_cus_from_debug_names_list): Likewise.
10002 (create_cus_from_debug_names): Likewise.
10003 (dwarf2_read_gdb_index): Update.
10004 (dwarf2_read_debug_names): Update.
10005
10006 2020-05-27 Tom Tromey <tom@tromey.com>
10007 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * dwarf2/read.h (struct dwarf2_per_objfile)
10010 <get_type_for_signatured_type, set_type_for_signatured_type>:
10011 New methods.
10012 <m_type_map>: New member.
10013 (struct signatured_type) <type>: Remove.
10014 * dwarf2/read.c
10015 (dwarf2_per_objfile::get_type_for_signatured_type,
10016 dwarf2_per_objfile::set_type_for_signatured_type): New.
10017 (get_signatured_type): Use new methods.
10018
10019 2020-05-27 Tom Tromey <tom@tromey.com>
10020 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10023 (struct dwarf2_per_objfile) <type_units>: New member.
10024 <get_type_unit_group_unshareable>: New method.
10025 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10026 num_symtabs, symtabs>: Remove; move to
10027 type_unit_group_unshareable.
10028 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10029 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10030 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10031
10032 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10033
10034 * dwarf2/read.h (struct dwarf2_per_cu_data):
10035 <dwarf2_per_objfile>: Remove.
10036 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10037 dwarf2_per_objfile.
10038 (create_signatured_type_table_from_index): Likewise.
10039 (create_signatured_type_table_from_debug_names): Likewise.
10040 (create_debug_type_hash_table): Likewise.
10041 (fill_in_sig_entry_from_dwo_entry): Likewise.
10042 (create_type_unit_group): Likewise.
10043 (read_comp_units_from_section): Likewise.
10044 (create_cus_hash_table): Likewise.
10045
10046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10049 dwarf2_per_cu_data::dwarf2_per_objfile.
10050 (compute_compunit_symtab_includes): Likewise.
10051 (dwarf2_cu::start_symtab): Likewise.
10052
10053 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10056 parameter.
10057 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10058 (read_namespace_alias): Update.
10059 (lookup_die_type): Update.
10060 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10061 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10062 Update.
10063 (disassemble_dwarf_expression): Update.
10064
10065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * dwarf2/read.h (struct dwarf2_queue_item): Add
10068 dwarf2_per_objfile parameter, assign new parameter.
10069 <per_objfile>: New field.
10070 * dwarf2/read.c (free_one_cached_comp_unit): Add
10071 dwarf2_per_objfile parameter.
10072 (queue_comp_unit): Likewise.
10073 (dw2_do_instantiate_symtab): Update.
10074 (process_psymtab_comp_unit): Update.
10075 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10076 (process_imported_unit_die): Update.
10077 (queue_and_load_dwo_tu): Update.
10078 (follow_die_offset): Update.
10079 (follow_die_sig_1): Update.
10080
10081 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10084 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10085 (read_call_site_scope): Assign per_objfile.
10086 (dwarf2_per_cu_data::objfile): Remove.
10087 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10088 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10089 dwarf2_per_objfile parameter.
10090 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10091 dwarf2_per_objfile parameter.
10092 (dwarf_expr_reg_to_entry_parameter): Add output
10093 dwarf2_per_objfile parameter.
10094 (locexpr_get_frame_base): Update.
10095 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10096 <push_dwarf_reg_entry_value>: Update.
10097 <call_site_to_target_addr>: Update.
10098 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10099 parameter.
10100 (value_of_dwarf_reg_entry): Update.
10101 (rw_pieced_value): Update.
10102 (indirect_synthetic_pointer): Update.
10103 (dwarf2_evaluate_property): Update.
10104 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10105 parameter.
10106 (locexpr_read_variable): Update.
10107 (locexpr_get_symbol_read_needs): Update.
10108 (loclist_read_variable): Update.
10109
10110 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10111
10112 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10113 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10114 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10115 parameter.
10116 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10117 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10118 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10119 parameter.
10120 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10121 sect_variable_value): Add dwarf2_per_objfile parameter.
10122 (class dwarf_evaluate_loc_desc) <dwarf_call,
10123 dwarf_variable_value>: Update.
10124 (fetch_const_value_from_synthetic_pointer): Add
10125 dwarf2_per_objfile parameter.
10126 (fetch_const_value_from_synthetic_pointer): Update.
10127 (coerced_pieced_ref): Update.
10128 (class symbol_needs_eval_context) <dwarf_call,
10129 dwarf_variable_value>: Update.
10130 (dwarf2_compile_expr_to_ax): Update.
10131
10132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10133
10134 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10135 parameter.
10136 (dwarf2_evaluate_loc_desc_full): Update.
10137
10138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10139
10140 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10141 parameter.
10142 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10143 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10144 dwarf2_per_objfile parameter.
10145 (decode_debug_loc_dwo_addresses): Likewise.
10146 (dwarf2_find_location_expression): Update.
10147 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10148 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10149 parameter.
10150 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10151 parameter.
10152 (locexpr_describe_location_1): Likewise.
10153 (locexpr_describe_location): Update.
10154
10155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10158 Remove.
10159 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10160 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10161 (dwarf2_compile_property_to_c): Update.
10162 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10163 use text offset from objfile.
10164 (locexpr_tracepoint_var_ref): Update.
10165 (locexpr_generate_c_location): Update.
10166 (loclist_describe_location): Update.
10167 (loclist_tracepoint_var_ref): Update.
10168 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10169 dwarf2_per_objfile parameter.
10170 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10171 use text offset from objfile.
10172 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10173
10174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10175
10176 * dwarf2/expr.h (struct dwarf_expr_context)
10177 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10178 <offset>: Remove.
10179 <per_objfile>: New member.
10180 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10181 dwarf2_per_objfile parameter. Don't set offset, set
10182 per_objfile.
10183 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10184 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10185 a dwarf2_per_objfile object instead of an offset.
10186 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10187 constructor.
10188 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10189 to dwarf2_expr_executor constructor. Don't set offset.
10190 (dwarf2_fetch_cfa_info): Update.
10191 (struct dwarf2_frame_cache) <text_offset>: Remove.
10192 <per_objfile>: New field.
10193 (dwarf2_frame_cache): Update.
10194 (dwarf2_frame_prev_register): Update.
10195 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10196 <dwarf_evaluate_loc_desc>: Add constructor.
10197 (dwarf2_evaluate_loc_desc_full): Update.
10198 (dwarf2_locexpr_baton_eval): Update.
10199 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10200 Add constructor.
10201 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10202
10203 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10206 addr_sized_int_type>: Move to dwarf2_cu.
10207 <int_type>: Move to dwarf2_per_objfile.
10208 (struct dwarf2_per_objfile) <int_type>: Move here.
10209 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10210 addr_sized_int_type>: Move here.
10211 (read_func_scope): Update.
10212 (read_array_type): Update.
10213 (read_tag_string_type): Update.
10214 (attr_to_dynamic_prop): Update.
10215 (dwarf2_per_cu_data::int_type): Rename to...
10216 (dwarf2_per_objfile::int_type): ... this.
10217 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10218 (dwarf2_cu::addr_sized_int_type): ... this.
10219 (read_subrange_type): Update.
10220 (dwarf2_per_cu_data::addr_type): Rename to...
10221 (dwarf2_cu::addr_type): ... this.
10222 (set_die_type): Update.
10223
10224 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10227 data through per_cu->cu.
10228
10229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10232 dwarf2_per_cu_data parameter fo dwarf2_cu.
10233 (lookup_dwo_type_unit): Likewise.
10234 (read_cutu_die_from_dwo): Likewise.
10235 (lookup_dwo_unit): Likewise.
10236 (open_and_init_dwo_file): Likewise.
10237 (lookup_dwo_cutu): Likewise.
10238 (lookup_dwo_comp_unit): Likewise.
10239 (lookup_dwo_type_unit): Likewise.
10240 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10241 (cutu_reader::cutu_reader): Update.
10242
10243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10246 parameter.
10247 (process_full_type_unit): Likewise.
10248 (process_queue): Update.
10249
10250 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * dwarf2/read.c (recursively_compute_inclusions): Add
10253 dwarf2_per_objfile parameter.
10254 (compute_compunit_symtab_includes): Likewise.
10255 (process_cu_includes): Update.
10256
10257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10260 parameter.
10261 (create_type_unit_group): Update.
10262 (process_psymtab_comp_unit_reader): Update.
10263 (build_type_psymtabs_reader): Update.
10264
10265 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10268 object through m_this_cu->cu.
10269
10270 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10273 the info parameter.
10274 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10275
10276 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10277
10278 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10279 per_objfile parameter.
10280 (load_full_type_unit): Add per_objfile parameter.
10281 (read_signatured_type): Likewise.
10282 (load_full_comp_unit): Likewise.
10283 (load_cu): Likewise.
10284 (dw2_do_instantiate_symtab): Likewise.
10285 (dw2_get_file_names): Likewise.
10286 (dw2_map_symtabs_matching_filename): Update.
10287 (dw_expand_symtabs_matching_file_matcher): Update.
10288 (dw2_map_symbol_filenames): Update.
10289 (process_psymtab_comp_unit): Add per_objfile parameter.
10290 (build_type_psymtabs_1): Update.
10291 (process_skeletonless_type_unit): Update.
10292 (dwarf2_build_psymtabs_hard): Update.
10293 (load_partial_comp_unit): Add per_objfile parameter.
10294 (scan_partial_symbols): Update.
10295 (load_full_comp_unit): Add per_objfile parameter.
10296 (process_imported_unit_die): Update.
10297 (create_cus_hash_table): Update.
10298 (find_partial_die): Update.
10299 (dwarf2_read_addr_index): Update.
10300 (follow_die_offset): Update.
10301 (dwarf2_fetch_die_loc_sect_off): Update.
10302 (dwarf2_fetch_constant_bytes): Update.
10303 (dwarf2_fetch_die_type_sect_off): Update.
10304 (follow_die_sig_1): Update.
10305 (load_full_type_unit): Add per_objfile parameter.
10306 (read_signatured_type): Likewise.
10307
10308 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10311 of objfile_name.
10312
10313 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10314
10315 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10316 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10317 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10318 field.
10319 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10320 (create_cus_from_index): Update.
10321 (dwarf2_read_gdb_index): Update.
10322 (create_cus_from_debug_names): Update.
10323 (dwarf2_read_debug_names): Update.
10324 (get_abbrev_section_for_cu): Update.
10325 (create_all_comp_units): Update.
10326 (read_attribute_value): Update.
10327 (get_debug_line_section): Update.
10328 * dwarf2/index-cache.c (index_cache::store): Update.
10329 * dwarf2/index-write.c (save_gdb_index_command): Update.
10330 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10331
10332 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10333
10334 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10335 member.
10336 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10337 dwarf2_per_cu_data::per_bfd.
10338 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10339 (create_type_unit_group): Likewise.
10340 (queue_comp_unit): Remove reference to
10341 per_cu->dwarf2_per_objfile.
10342 (maybe_queue_comp_unit): Likewise.
10343 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10344 (create_cus_hash_table): Assign new field.
10345
10346 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10347
10348 * dwarf2/read.c: Replace
10349 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10350 dwarf2_cu->per_objfile throughout.
10351
10352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10355 parameter, don't use per_cu->dwarf2_per_objfile.
10356 (dw2_instantiate_symtab): Likewise.
10357 (dw2_find_last_source_symtab): Update.
10358 (dw2_map_expand_apply): Update.
10359 (dw2_lookup_symbol): Update.
10360 (dw2_expand_symtabs_for_function): Update.
10361 (dw2_expand_all_symtabs): Update.
10362 (dw2_expand_symtabs_with_fullname): Update.
10363 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10364 don't use per_cu->dwarf2_per_objfile.
10365 (dw2_expand_marked_cus): Update.
10366 (dw2_find_pc_sect_compunit_symtab): Update.
10367 (dw2_debug_names_lookup_symbol): Update.
10368 (dw2_debug_names_expand_symtabs_for_function): Update.
10369 (dw2_debug_names_map_matching_symbols): Update.
10370 (dwarf2_psymtab::expand_psymtab): Update.
10371
10372 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10375 <per_objfile>: New member.
10376 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10377 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10378 call to dwarf2_cu.
10379 (cutu_reader::cutu_reader): Update.
10380 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10381
10382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10385 struct dwarf2_per_objfile.
10386 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10387 dwarf2_per_bfd.
10388 * dwarf2/read.c (set_die_type): Update.
10389 (get_die_type_at_offset): Update.
10390
10391 2020-05-27 Tom Tromey <tom@tromey.com>
10392 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10395 method.
10396 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10397 get_symtab, set_symtab>: New methods.
10398 <m_symtabs>: New field.
10399 (struct dwarf2_psymtab): Derive from partial_symtab.
10400 <readin_p, get_compunit_symtab>: Declare methods.
10401 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10402 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10403 New methods.
10404 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10405 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10406 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10407 (dw2_symtab_iter_next, dw2_print_stats)
10408 (dw2_expand_symtabs_with_fullname)
10409 (dw2_expand_symtabs_matching_one)
10410 (dw_expand_symtabs_matching_file_matcher)
10411 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10412 (dw2_debug_names_iterator::next)
10413 (dw2_debug_names_map_matching_symbols)
10414 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10415 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10416 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10417 New methods.
10418 (get_compunit_symtab, process_full_comp_unit)
10419 (process_full_type_unit): Update.
10420 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10421
10422 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10423
10424 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10425 then introduce a new dwarf2_per_objfile type.
10426 <read_line_string>: Move to the new dwarf2_per_objfile type.
10427 <objfile>: Likewise.
10428 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10429 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10430 dwarf2_per_objfile->per_bfd.
10431 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10432 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10433 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10434 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10435 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10436 (dwarf2_per_objfile::locate_sections): Rename to...
10437 (dwarf2_per_bfd::locate_sections): ... this.
10438 (dwarf2_per_objfile::get_cutu): Rename to...
10439 (dwarf2_per_bfd::get_cutu): ... this.
10440 (dwarf2_per_objfile::get_cu): Rename to...
10441 (dwarf2_per_bfd::get_cu): ... this.
10442 (dwarf2_per_objfile::get_tu): Rename to...
10443 (dwarf2_per_bfd::get_tu): ... this.
10444 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10445 (dwarf2_per_bfd::allocate_per_cu): ... this.
10446 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10447 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10448 (get_gdb_index_contents_ftype): Change parameter from
10449 dwarf2_per_objfile to dwarf2_per_bfd.
10450 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10451 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10452
10453 2020-05-27 Tom Tromey <tom@tromey.com>
10454 Simon Marchi <simon.marchi@efficios.com>
10455
10456 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10457 (allocate_piece_closure): Set "per_objfile" member.
10458 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10459 (locexpr_describe_location, loclist_describe_location): Use new
10460 member.
10461 * dwarf2/read.c (read_call_site_scope)
10462 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10463 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10464 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10465 handle_data_member_location): Set per_objfile member.
10466 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10467 member.
10468 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10469
10470 2020-05-27 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10473 allocate_signatured_type>: Declare new methods.
10474 <m_num_psymtabs>: New member.
10475 (struct dwarf2_per_cu_data) <index>: New member.
10476 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10477 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10478 (create_cu_from_index_list): Use allocate_per_cu.
10479 (create_signatured_type_table_from_index)
10480 (create_signatured_type_table_from_debug_names)
10481 (create_debug_type_hash_table, add_type_unit)
10482 (read_comp_units_from_section): Use allocate_signatured_type.
10483
10484 2020-05-27 Tom Tromey <tom@tromey.com>
10485
10486 * psymtab.c (partial_map_expand_apply)
10487 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10488 (psym_lookup_global_symbol_language)
10489 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10490 (psym_print_stats, psym_expand_symtabs_for_function)
10491 (psym_map_symbol_filenames, psym_map_matching_symbols)
10492 (psym_expand_symtabs_matching)
10493 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10494 (maintenance_check_psymtabs): Update.
10495 * psympriv.h (struct partial_symtab) <readin_p,
10496 get_compunit_symtab>: Add objfile parameter.
10497 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10498 Likewise.
10499 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10500 get_compunit_symtab>: Likewise.
10501 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10502
10503 2020-05-27 Tom Tromey <tom@tromey.com>
10504
10505 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10506 member.
10507 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10508 (create_cu_from_index_list)
10509 (create_signatured_type_table_from_index)
10510 (create_signatured_type_table_from_debug_names)
10511 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10512 (dwarf2_create_include_psymtab)
10513 (create_debug_type_hash_table, add_type_unit)
10514 (create_type_unit_group, read_comp_units_from_section)
10515 (dwarf2_compute_name, create_cus_hash_table)
10516 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10517 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10518 obstack.
10519 (dw2_get_real_path): Likewise. Change argument to
10520 dwarf2_per_objfile.
10521
10522 2020-05-27 Luis Machado <luis.machado@linaro.org>
10523
10524 PR tdep/26000
10525 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10526 for ldrd (immediate).
10527
10528 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10529
10530 * command.h: Add comment giving the name of class_tui.
10531 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10532 create the fake command for the help for class_tui.
10533
10534 2020-05-26 Tom Tromey <tromey@adacore.com>
10535
10536 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10537 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10538 (val_atr): New function.
10539 (value_val_atr): Use it.
10540 * ada-valprint.c (print_optional_low_bound): Change low bound
10541 handling for enums.
10542 (val_print_packed_array_elements): Don't call discrete_position.
10543 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10544 discrete_position for enum types.
10545 * language.c (default_print_array_index): Change type.
10546 * language.h (struct language_defn) <la_print_array_index>: Add
10547 index_type parameter, change type of index_value.
10548 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10549 (default_print_array_index): Update.
10550 * valprint.c (maybe_print_array_index): Don't call
10551 value_from_longest. Update.
10552 (value_print_array_elements): Don't call discrete_position.
10553
10554 2020-05-26 Tom Tromey <tromey@adacore.com>
10555
10556 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10557 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10558
10559 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10560
10561 PR gdb/13519
10562 * avr-tdep.c (avr_integer_to_address): Return data or code
10563 address accordingly to the second 'type' argument of the
10564 function.
10565
10566 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10567
10568 * infcmd.c, inferior.h: (construct_inferior_arguments):
10569 Moved function from here to gdbsupport/common-inferior.{h,cc}
10570
10571 2020-05-23 Tom Tromey <tom@tromey.com>
10572
10573 Revert commit eca1f90c:
10574 * NEWS: Remove entry for completion styling.
10575 * completer.c (_rl_completion_prefix_display_length): Move
10576 declaration later.
10577 (gdb_fnprint): Revert.
10578 (gdb_display_match_list_1): Likewise.
10579 * cli/cli-style.c (completion_prefix_style)
10580 (completion_difference_style, completion_suffix_style): Remove.
10581 (_initialize_cli_style): Revert.
10582 * cli/cli-style.h (completion_prefix_style)
10583 (completion_difference_style, completion_suffix_style): Don't
10584 declare.
10585
10586 2020-05-24 Pedro Alves <palves@redhat.com>
10587
10588 * symtab.c (completion_list_add_name): Return boolean indication
10589 of whether the symbol matched.
10590 (completion_list_add_symbol): Don't try to remove C++ aliases if
10591 the symbol didn't match in the first place.
10592 * symtab.h (completion_list_add_name): Return bool.
10593
10594 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10595
10596 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10597 type::field.
10598
10599 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10600
10601 GDB 9.2 released.
10602
10603 2020-05-23 Tom Tromey <tom@tromey.com>
10604
10605 * NEWS: Add entry for completion styling.
10606 * completer.c (_rl_completion_prefix_display_length): Move
10607 declaration earlier.
10608 (gdb_fnprint): Use completion_style.
10609 (gdb_display_match_list_1): Likewise.
10610 * cli/cli-style.c (completion_prefix_style)
10611 (completion_difference_style, completion_suffix_style): New
10612 globals.
10613 (_initialize_cli_style): Register new globals.
10614 * cli/cli-style.h (completion_prefix_style)
10615 (completion_difference_style, completion_suffix_style): Declare.
10616
10617 2020-05-23 Pedro Alves <palves@redhat.com>
10618
10619 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10620 (parse_escape): Use ISDIGIT instead of isdigit.
10621 (puts_debug): Use gdb_isprint instead of isprint.
10622 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10623 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10624 ISSPACE instead of isspace.
10625 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10626 instead of isspace.
10627 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10628 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10629 instead of isxdigit and ISDIGIT instead of isdigit.
10630
10631 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * gdbtypes.h (struct type) <field>: New method.
10634 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10635 or type::field.
10636
10637 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10640 (TYPE_FIELDS): Use type::fields. Change all call sites that
10641 modify the propery to use type::set_fields instead.
10642
10643 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10644
10645 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10646 type::num_fields instead.
10647
10648 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10651 methods.
10652 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10653 that modify the number of fields to use type::set_num_fields
10654 instead.
10655
10656 2020-05-22 Tom Tromey <tromey@adacore.com>
10657
10658 * compile/compile-object-load.h (munmap_list_free): Don't
10659 declare.
10660
10661 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10662
10663 * annotate.c (annotate_source_line): Update return type, add call
10664 to update current symtab and line.
10665 * annotate.h (annotate_source_line): Update return type, and
10666 extend header comment.
10667 * source.c (info_line_command): Check annotation_level before
10668 calling annotate_source_line.
10669 * stack.c (print_frame_info): If calling annotate_source_line
10670 returns true, then don't print any other source line information.
10671
10672 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10675
10676 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * coffread.c (patch_type): Remove NULL check before xfree.
10679 * corefile.c (set_gnutarget): Likewise.
10680 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10681 * exec.c (build_section_table): Likewise.
10682 * remote.c (remote_target::pass_signals): Likewise.
10683 * utils.c (n_spaces): Likewise.
10684 * cli/cli-script.c (document_command): Likewise.
10685 * i386-windows-tdep.c (core_process_module_section): Likewise.
10686 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10687
10688 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * symfile.c (reread_symbols): Clear objfile's section_offsets
10691 vector and section indices, re-compute them by calling
10692 sym_offsets.
10693
10694 2020-05-20 Tom Tromey <tromey@adacore.com>
10695
10696 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10697 (desc_one_bound, desc_index_type): Compute field name.
10698
10699 2020-05-20 Tom de Vries <tdevries@suse.de>
10700
10701 PR symtab/25833
10702 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10703
10704 2020-05-20 Alan Modra <amodra@gmail.com>
10705
10706 PR 25993
10707 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10708 bfd_set_filename.
10709 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10710 passed to bfd_set_filename.
10711 * symfile-mem.c (add_vsyscall_page): Likewise for string
10712 passed to symbol_file_add_from_memory.
10713 (symbol_file_add_from_memory): Make name param a const char* and
10714 don't strdup.
10715
10716 2020-05-20 Alan Modra <amodra@gmail.com>
10717
10718 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10719 rather than accessing bfd->filename directly.
10720 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10721 and use bfd_section_name.
10722 * dwarf2/frame.c (decode_frame_entry): Likewise.
10723 * exec.c (exec_set_section_address): Likewise.
10724 * solib-aix.c (solib_aix_bfd_open): Likewise.
10725 * stap-probe.c (get_stap_base_address): Likewise.
10726 * symfile.c (reread_symbols): Likewise.
10727
10728 2020-05-19 Tom Tromey <tromey@adacore.com>
10729
10730 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10731
10732 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10733
10734 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10735
10736 2020-05-19 Pedro Alves <palves@redhat.com>
10737
10738 * NEWS (set exec-file-mismatch): Adjust entry.
10739 * exec.c: Include "build-id.h".
10740 (validate_exec_file): Try to match build IDs instead of filenames.
10741 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10742 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10743 and pass down 'warn_if_slow'.
10744 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10745 gdb_bfd_open_closure to pass it down.
10746 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10747
10748 2020-05-19 Pedro Alves <palves@redhat.com>
10749
10750 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10751 * target.c (target_fileio_open_1): Rename to target_fileio_open
10752 and make extern. Use bool.
10753 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10754 (target_fileio_read_alloc_1): Adjust.
10755 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10756 (target_fileio_open_warn_if_slow): Delete declaration.
10757
10758 2020-05-19 Pedro Alves <palves@redhat.com>
10759
10760 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10761 Adjust all callers.
10762
10763 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10764
10765 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10766 whether disp is negative.
10767
10768 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * symfile.h (struct symfile_segment_data)
10771 <~symfile_segment_data>: Remove.
10772 <segment_info>: Change to std::vector.
10773 * symfile.c (default_symfile_segments): Update.
10774 * elfread.c (elf_symfile_segments): Update.
10775
10776 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10779 <segments>: New.
10780 <segment_bases, segment_sizes>: Remove.
10781 * symfile.c (default_symfile_segments): Update.
10782 * elfread.c (elf_symfile_segments): Update.
10783 * remote.c (remote_target::get_offsets): Update.
10784 * solib-target.c (solib_target_relocate_section_addresses):
10785 Update.
10786
10787 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10788
10789 * symfile.h (struct symfile_segment_data): Initialize fields.
10790 <~symfile_segment_data>: Add.
10791 (symfile_segment_data_up): New.
10792 (struct sym_fns) <sym_segments>: Return a
10793 symfile_segment_data_up.
10794 (default_symfile_segments): Return a symfile_segment_data_up.
10795 (free_symfile_segment_data): Remove.
10796 (get_symfile_segment_data): Return a symfile_segment_data_up.
10797 * symfile.c (default_symfile_segments): Likewise.
10798 (get_symfile_segment_data): Likewise.
10799 (free_symfile_segment_data): Remove.
10800 (symfile_find_segment_sections): Update.
10801 * elfread.c (elf_symfile_segments): Return a
10802 symfile_segment_data_up.
10803 * remote.c (remote_target::get_offsets): Update.
10804 * solib-target.c (solib_target_relocate_section_addresses):
10805 Update.
10806 * symfile-debug.c (debug_sym_segments): Return a
10807 symfile_segment_data_up.
10808
10809 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10810
10811 PR build/25981
10812 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10813 Hardcode register numbers.
10814
10815 PR build/25981
10816 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10817 procfs_find_LDT_entry): Remove.
10818 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10819 procfs_find_LDT_entry): Remove.
10820 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10821 Remove.
10822
10823 2020-05-17 Pedro Alves <palves@redhat.com>
10824 Andrew Burgess <andrew.burgess@embecosm.com>
10825 Keno Fischer <keno@juliacomputing.com>
10826
10827 PR gdb/25741
10828 * breakpoint.c (build_target_condition_list): Update comments.
10829 (build_target_command_list): Update comments and skip matching
10830 locations.
10831 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10832 a separate function. Simplify "set breakpoint auto-hw off"
10833 handling.
10834 (insert_breakpoints): Update comment.
10835 (tracepoint_locations_match): New parameter. For breakpoints,
10836 compare location types too, if the caller wants to.
10837 (handle_automatic_hardware_breakpoints): New functions.
10838 (bp_location_is_less_than): Also sort by location type and
10839 hardware breakpoint length.
10840 (update_global_location_list): Handle "set breakpoint auto-hw on"
10841 here.
10842 (update_breakpoint_locations): Ask breakpoint_locations_match to
10843 ignore location types.
10844
10845 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10848 type::name instead.
10849
10850 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10851
10852 * gdbtypes.h (struct type) <name, set_name>: New methods.
10853 (TYPE_CODE): Use type::name. Change all call sites used to set
10854 the name to use type::set_name instead.
10855
10856 2020-05-16 Tom Tromey <tom@tromey.com>
10857
10858 * top.c (quit_force): Update.
10859 * infrun.c (handle_no_resumed): Update.
10860 * top.h (all_uis): New function.
10861 (ALL_UIS): Remove.
10862
10863 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10864
10865 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10866
10867 2020-05-16 Pedro Alves <palves@redhat.com>
10868
10869 * ia64-linux-nat.c
10870 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10871 Declare method.
10872 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10873
10874 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10877 (sparc64_adi_info): Likewise.
10878
10879 2020-05-15 Tom Tromey <tom@tromey.com>
10880
10881 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10882 block_objfile.
10883 (lookup_objfile_from_block): Remove.
10884 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10885 (lookup_global_symbol): Use block_objfile.
10886 * symtab.h (lookup_objfile_from_block): Don't declare.
10887 * printcmd.c (clear_dangling_display_expressions): Use
10888 block_objfile.
10889 * parse.c (operator_check_standard): Use block_objfile.
10890
10891 2020-05-15 Tom Tromey <tom@tromey.com>
10892
10893 * language.c (language_alloc_type_symbol): Set
10894 SYMBOL_SECTION.
10895 * symtab.c (initialize_objfile_symbol): Remove.
10896 (allocate_symbol): Remove.
10897 (allocate_template_symbol): Remove.
10898 * dwarf2/read.c (fixup_go_packaging): Use "new".
10899 (new_symbol): Use "new".
10900 (read_variable): Don't call initialize_objfile_symbol. Use
10901 "new".
10902 (read_func_scope): Use "new".
10903 * xcoffread.c (process_xcoff_symbol): Don't call
10904 initialize_objfile_symbol.
10905 (SYMBOL_DUP): Remove.
10906 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10907 "new".
10908 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10909 (allocate_template_symbol): Don't declare.
10910 (struct symbol): Add copy constructor. Change defaults.
10911 * jit.c (finalize_symtab): Use "new".
10912 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10913 Use "new".
10914 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10915 (common_block_end): Use "new".
10916 * mdebugread.c (parse_symbol): Use "new".
10917 (new_symbol): Likewise.
10918
10919 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10920
10921 * NEWS: Mention changes to help and apropos.
10922
10923 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10924
10925 * command.h (enum command_class): Improve comments, document
10926 that class_alias is for user-defined aliases, give the class
10927 name for each class, remove unused class_xdb.
10928 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10929 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10930 by a precise class.
10931 * infcmd.c (_initialize_infcmd): Likewise.
10932 * reverse.c (_initialize_reverse): Likewise.
10933 * stack.c (_initialize_stack): Likewise.
10934 * symfile.c (_initialize_symfile): Likewise.
10935 * tracepoint.c (_initialize_tracepoint): Likewise.
10936
10937 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10938
10939 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10940 when their aliased command is traversed.
10941 (help_cmd): Add fput_command_names_styled call to
10942 output command name and aliases when command has an alias.
10943
10944 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10945
10946 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10947 * cli/cli-decode.c (help_cmd_list): Declare as static,
10948 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10949 a command together with the command.
10950 (fput_command_name_styled, fput_command_names_styled): New functions.
10951 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10952 fput_command_name_styled.
10953 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10954 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10955
10956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957
10958 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10959 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10960 * command.h (cmd_show_list): Likewise.
10961 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10962 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10963
10964 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10965
10966 * unittests/command-def-selftests.c (traverse_command_structure):
10967 Verify all commands of a list have the same prefix command and
10968 that only the top cmdlist commands have a null prefix.
10969
10970 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10971
10972 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10973 as prefix, not one of its aliases.
10974 (set_cmd_prefix): Remove.
10975 (do_add_cmd): Centralize the setting of the prefix of a command, when
10976 command is defined after its full chain of prefix commands.
10977 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10978 (add_setshow_cmd_full): Likewise.
10979 (update_prefix_field_of_prefixed_commands): New function.
10980 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10981 update_prefix_field_of_prefixed_commands.
10982 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10983 addresses of remote_set_cmdlist and remote_show_cmdlist given
10984 as argument, not the address of an argument.
10985 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10986 * gdb/remote.c (_initialize_remote): Likewise.
10987
10988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10989
10990 * cli/cli-cmds.c (alias_command): Check for an existing alias
10991 using lookup_cmd_composition, as valid_command_p is too strict
10992 and forbids aliases that are the prefix of an existing alias
10993 or command.
10994 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10995 command is properly recognised as a valid command.
10996
10997 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10998
10999 * unittests/help-doc-selftests.c: Rename to
11000 unittests/command-def-selftests.c
11001 * unittests/command-def-selftests.c (help_doc_tests): Update some
11002 comments.
11003 (command_structure_tests, traverse_command_structure): New namespace
11004 and function.
11005 (command_structure_invariants_tests): New function.
11006 (_initialize_command_def_selftests) Renamed from
11007 _initialize_help_doc_selftests, register command_structure_invariants
11008 selftest.
11009
11010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11011
11012 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11013 an alias of 'show'.
11014
11015 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11016
11017 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11018 ada_is_fixed_point_type. Update all callers.
11019 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11020 all callers.
11021 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11022 Update all callers.
11023 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11024 print_fixed_point_type. Update all callers.
11025 * ada-valprint.c (ada_value_print_num): Replace call to
11026 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11027
11028 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11029
11030 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11031 processors.
11032 (cpu_supports_bts): Add CV_AMD case.
11033
11034 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11035 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * infrun.c (stop_all_threads): Collect multiple wait events at
11038 each pass.
11039
11040 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11043 type::code instead.
11044
11045 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11046
11047 * gdbtypes.h (struct type) <code, set_code>: New methods.
11048 (TYPE_CODE): Use type::code. Change all call sites used to set
11049 the code to use type::set_code instead.
11050
11051 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11052 Tom de Vries <tdevries@suse.de>
11053 Pedro Alves <palves@redhat.com>
11054
11055 PR threads/25478
11056 * infrun.c (stop_all_threads): Do NOT ignore
11057 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11058 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11059 received.
11060 (handle_no_resumed): Remove code handling a live inferior with no
11061 threads.
11062 * remote.c (has_single_non_exited_thread): New.
11063 (remote_target::update_thread_list): Do not delete a thread if is
11064 the last thread of the process.
11065 * thread.c (thread_select): Call delete_exited_threads instead of
11066 prune_threads.
11067
11068 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11069
11070 * infrun.c (stop_all_threads): Enable/disable thread events of all
11071 targets. Move a debug message denoting the end of the function
11072 into the SCOPED_EXIT block.
11073
11074 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11075
11076 * process-stratum-target.h: Include <set>.
11077 (all_non_exited_process_targets, switch_to_target_no_thread): New
11078 function declarations.
11079 * process-stratum-target.c (all_non_exited_process_targets)
11080 (switch_to_target_no_thread): New function implementations.
11081
11082 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11083
11084 * infrun.c (handle_inferior_event): Extract out a piece of code
11085 into...
11086 (mark_non_executing_threads): ...this new function.
11087
11088 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11089
11090 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11091 use.
11092
11093 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11094
11095 * regcache.c (regcache_read_pc_protected): New function
11096 implementation that returns 0 if the PC cannot read via
11097 'regcache_read_pc'.
11098 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11099 instead of 'regcache_read_pc'.
11100 (keep_going_pass_signal): Ditto.
11101
11102 2020-05-13 Tom Tromey <tromey@adacore.com>
11103
11104 * ada-lang.c (align_value): Remove.
11105 (ada_template_to_fixed_record_type_1): Use align_up.
11106
11107 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108
11109 * async-event.c: Update the copyright year.
11110 * async-event.h: Update the copyright year.
11111
11112 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11113
11114 * objfiles.h (is_addr_in_objfile,
11115 shared_objfile_contains_address_p): Return bool.
11116 * objfile.c (is_addr_in_objfile,
11117 shared_objfile_contains_address_p): Return bool.
11118
11119 2020-05-11 Tom Tromey <tromey@adacore.com>
11120
11121 * cli/cli-cmds.c (info_command): Restore.
11122 (_initialize_cli_cmds): Use add_prefix_command for "info".
11123 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11124
11125 2020-05-11 Tom Tromey <tromey@adacore.com>
11126
11127 * ada-lang.c (ada_value_primitive_field): Now public.
11128 * ada-lang.h (ada_value_primitive_field): Declare.
11129 * ada-valprint.c (print_field_values): Use
11130 ada_value_primitive_field for wrapper fields.
11131
11132 2020-05-11 Tom de Vries <tdevries@suse.de>
11133
11134 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11135 MODULE_DOMAIN.
11136
11137 2020-05-11 Tom de Vries <tdevries@suse.de>
11138
11139 PR symtab/25941
11140 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11141 with length 0, if not gdb-produced.
11142 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11143
11144 2020-05-09 Tom de Vries <tdevries@suse.de>
11145
11146 PR gdb/25955
11147 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11148 calculation.
11149
11150 2020-05-09 Tom Tromey <tom@tromey.com>
11151
11152 * top.c (server_command): Now bool.
11153 * top.h (server_command): Now bool.
11154
11155 2020-05-08 Tom Tromey <tromey@adacore.com>
11156
11157 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11158 already being processed.
11159
11160 2020-05-08 Tom Tromey <tom@tromey.com>
11161
11162 * printcmd.c (struct display) <next>: Remove.
11163 <display>: New constructor.
11164 <exp_string>: Now a std::string.
11165 <enabled_p>: Now a bool.
11166 (display_number): Move definition earlier.
11167 (displays): Rename from display_chain. Now a std::vector.
11168 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11169 (display_command): Update.
11170 (do_one_display, disable_display)
11171 (enable_disable_display_command, do_enable_disable_display):
11172 Update.
11173 (free_display): Remove.
11174 (clear_displays): Rewrite.
11175 (delete_display): Update.
11176 (map_display_numbers): Use function_view. Remove "data"
11177 parameter. Update.
11178 (do_delete_display): Remove.
11179 (undisplay_command): Update.
11180 (do_one_display, do_displays, disable_display)
11181 (info_display_command): Update.
11182 (do_enable_disable_display): Remove.
11183 (enable_disable_display_command)
11184 (clear_dangling_display_expressions): Update.
11185
11186 2020-05-08 Tom Tromey <tom@tromey.com>
11187
11188 * symtab.c (set_symbol_cache_size)
11189 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11190 (maintenance_print_symbol_cache_statistics): Update.
11191 * symmisc.c (print_symbol_bcache_statistics)
11192 (print_objfile_statistics, maintenance_print_objfiles)
11193 (maintenance_info_symtabs, maintenance_check_symtabs)
11194 (maintenance_expand_symtabs, maintenance_info_line_tables):
11195 Update.
11196 * symfile-debug.c (set_debug_symfile): Update.
11197 * source.c (forget_cached_source_info): Update.
11198 * python/python.c (gdbpy_progspaces): Update.
11199 * psymtab.c (maintenance_info_psymtabs): Update.
11200 * probe.c (parse_probes): Update.
11201 * linespec.c (iterate_over_all_matching_symtabs)
11202 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11203 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11204 * exec.c (exec_target::close): Update.
11205 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11206 * breakpoint.c (print_one_breakpoint_location)
11207 (create_longjmp_master_breakpoint)
11208 (create_std_terminate_master_breakpoint): Update.
11209 * progspace.c (program_spaces): Now a std::vector.
11210 (maybe_new_address_space): Update.
11211 (add_program_space): Remove.
11212 (program_space::program_space): Update.
11213 (remove_program_space): Update.
11214 (number_of_program_spaces): Remove.
11215 (print_program_space, update_address_spaces): Update.
11216 * progspace.h (program_spaces): Change type.
11217 (ALL_PSPACES): Remove.
11218 (number_of_program_spaces): Don't declare.
11219 (struct program_space) <next>: Remove.
11220
11221 2020-05-08 Tom Tromey <tom@tromey.com>
11222
11223 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11224 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11225 (enable_break): Update.
11226 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11227 (frv_fdpic_find_canonical_descriptor): Update.
11228 (frv_fetch_objfile_link_map): Update.
11229 * progspace.c (program_space::free_all_objfiles): Update.
11230 (program_space::solibs): New method.
11231 * progspace.h (struct program_space) <solibs>: New method.
11232 * solist.h (master_so_list): Don't declare.
11233 (ALL_SO_LIBS): Remove.
11234 * solib.h (so_list_head): Remove.
11235 (update_solib_list): Update comment.
11236 * solib.c (master_so_list): Remove.
11237 (solib_used, update_solib_list, solib_add)
11238 (info_sharedlibrary_command, clear_solib)
11239 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11240
11241 2020-05-08 Tom Tromey <tom@tromey.com>
11242
11243 * extension.c (extension_languages): Now a std::array.
11244 (ALL_EXTENSION_LANGUAGES): Remove.
11245 (get_ext_lang_defn, get_ext_lang_of_file)
11246 (eval_ext_lang_from_control_command): Update.
11247 (finish_ext_lang_initialization)
11248 (auto_load_ext_lang_scripts_for_objfile)
11249 (ext_lang_type_printers::ext_lang_type_printers)
11250 (apply_ext_lang_type_printers)
11251 (ext_lang_type_printers::~ext_lang_type_printers)
11252 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11253 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11254 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11255 (get_matching_xmethod_workers, ext_lang_colorize)
11256 (ext_lang_before_prompt): Update.
11257 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11258
11259 2020-05-08 Tom Tromey <tom@tromey.com>
11260
11261 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11262 overload.
11263 <swap_string, m_string>: Remove.
11264 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11265 Update.
11266 * stabsread.c (define_symbol, read_type): Update.
11267 * linespec.c (find_linespec_symbols): Update.
11268 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11269 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11270 * dbxread.c (read_dbx_symtab): Update.
11271 * cp-support.h (cp_canonicalize_string_full)
11272 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11273 Return unique_xmalloc_ptr.
11274 * cp-support.c (inspect_type): Update.
11275 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11276 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11277 Likewise.
11278 * c-typeprint.c (print_name_maybe_canonical): Update.
11279 * break-catch-throw.c (check_status_exception_catchpoint):
11280 Update.
11281
11282 2020-05-08 Tom de Vries <tdevries@suse.de>
11283
11284 * infrun.c (follow_fork): Copy current_line and current_symtab to
11285 child thread.
11286
11287 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11288
11289 * async-event.c (struct async_signal_handler, struct
11290 async_event_handler): Reformat, remove typedef.
11291
11292 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11293
11294 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11295 access thistype->main_type->dyn_prop_list directly.
11296
11297 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11298
11299 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11300 (remove_dyn_prop): Remove. Update all users to use
11301 type::remove_dyn_prop.
11302 * gdbtypes.c (remove_dyn_prop): Rename to...
11303 (type::remove_dyn_prop): ... this.
11304
11305 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11306
11307 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11308 (add_dyn_prop): Remove. Update all users to use
11309 type::add_dyn_prop.
11310 * gdbtypes.c (add_dyn_prop): Rename to...
11311 (type::add_dyn_prop): ... this.
11312
11313 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11316 (get_dyn_prop): Remove. Update all users to use
11317 type::dyn_prop.
11318 * gdbtypes.c (get_dyn_prop): Rename to...
11319 (type::dyn_prop): ... this.
11320
11321 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11322
11323 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11324
11325 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11326
11327 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11328 instruction, skip it if it's there.
11329
11330 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11333
11334 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11337 * gdbtypes.c (recursive_dump_type): Remove use of
11338 TYPE_INCOMPLETE.
11339
11340 2020-05-03 Tom Tromey <tom@tromey.com>
11341
11342 * breakpoint.c (catch_command, tcatch_command): Remove.
11343 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11344 add_show_prefix_cmd.
11345 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11346 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11347 Remove.
11348 (add_internal_problem_command): Use add_basic_prefix_cmd,
11349 add_show_prefix_cmd.
11350 * mips-tdep.c (set_mipsfpu_command): Remove.
11351 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11352 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11353 (_initialize_index_cache): Use add_basic_prefix_cmd.
11354 * memattr.c (dummy_cmd): Remove.
11355 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11356 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11357 (_initialize_tui_win): Use add_basic_prefix_cmd,
11358 add_show_prefix_cmd.
11359 * cli/cli-logging.c (set_logging_command): Remove.
11360 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11361 add_show_prefix_cmd.
11362 (show_logging_command): Remove.
11363 * target.c (target_command): Remove.
11364 (add_target): Use add_basic_prefix_cmd.
11365
11366 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11367
11368 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11369
11370 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11371
11372 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11373 info_command.
11374
11375 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11376
11377 * nbsd-nat.c (nbsd_enable_proc_events)
11378 (nbsd_nat_target::post_startup_inferior): Add.
11379 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11380 (nbsd_nat_target::update_thread_list): Rewrite.
11381 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11382 "PTRACE_LWP_CREATE".
11383 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11384
11385 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11386
11387 * stack.c (_initialize_stack): Remove duplicated creation
11388 of "frame" command and "f" alias.
11389
11390 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11391
11392 PR gdb/18706
11393 * gdbtypes.c (check_typedef): Calculate size of array of
11394 stubbed type.
11395
11396 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11397
11398 PR gdb/15559
11399 * i386-tdep.c (i386_push_dummy_call): Call
11400 i386_thiscall_push_dummy_call.
11401 (i386_thiscall_push_dummy_call): New function.
11402 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11403 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11404 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11405
11406 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11407
11408 * gdbarch.sh (do_read): Add shellcheck disable directive for
11409 warning SC2162.
11410
11411 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11412
11413 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11414 "referenced but not assigned" warning.
11415
11416 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11417
11418 * gdbarch.sh: Remove code that sets fallbackdefault.
11419
11420 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11421
11422 * gdbarch.sh: Use shell operators && and || instead of
11423 -a and -o.
11424
11425 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11426
11427 * gdbarch.sh: Use $(...) instead of `...`.
11428
11429 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11430
11431 * gdbarch.sh: Use double quotes around variables.
11432
11433 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11434
11435 * gdbarch.sh: Use %s with printf, instead of variables in the
11436 format string.
11437
11438 2020-04-29 Tom Tromey <tromey@adacore.com>
11439
11440 PR ada/25875:
11441 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11442 type fields here.
11443 (read_enumeration_type): Call
11444 update_enumeration_type_from_children later. Update comments.
11445 (process_enumeration_scope): Don't create type fields.
11446
11447 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11448
11449 * nbsd-tdep.c: Include "xml-syscall.h".
11450 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11451
11452 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11453
11454 * nbsd-nat.c: Include "sys/wait.h".
11455 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11456 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11457 (nbsd_nat_target::remove_exec_catchpoint)
11458 (nbsd_nat_target::set_syscall_catchpoint): Add.
11459 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11460 (nbsd_nat_target::insert_exec_catchpoint)
11461 (nbsd_nat_target::remove_exec_catchpoint)
11462 (nbsd_nat_target::set_syscall_catchpoint): Add.
11463 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11464 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11465 `nbsd_get_syscall_number'.
11466
11467 2020-04-29 Tom Tromey <tom@tromey.com>
11468
11469 * stack.c (print_block_frame_labels): Remove.
11470
11471 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11472
11473 PR gdb/17320
11474 * ada-valprint.c (val_print_packed_array_elements): Move array
11475 end bracket to new line.
11476 (ada_val_print_string): Remove extra spaces before first array
11477 element.
11478 * c-valprint.c (c_value_print_array): Likewise.
11479 * m2-valprint.c (m2_print_array_contents): Likewise.
11480 (m2_value_print_inner): Likewise.
11481 * p-valprint.c (pascal_value_print_inner): Likewise.
11482 * valprint.c (generic_val_print_array): Likewise.
11483 (value_print_array_elements): Move first array element and array
11484 end bracket to new line.
11485
11486 2020-04-29 Tom de Vries <tdevries@suse.de>
11487
11488 PR symtab/25889
11489 * linespec.c (find_method): Fix ix calculation.
11490
11491 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11492
11493 * syscalls/update-netbsd.sh: New file.
11494 * syscalls/netbsd.xml: Regenerate.
11495 * data-directory/Makefile.in: Register `netbsd.xml' in
11496 `SYSCALLS_FILES'.
11497
11498 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11499
11500 * syscalls/update-freebsd.sh: Add double quotes.
11501
11502 2020-04-28 Tom Tromey <tom@tromey.com>
11503
11504 * NEWS: Update.
11505 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11506 (cmdpy_init): Allow class_tui.
11507
11508 2020-04-28 Mark Williams <mark@myosotissp.com>
11509
11510 PR gdb/24480
11511 * dwarf2read.c: Add missing assingments to list_in_scope when
11512 start_symtab was already called.
11513
11514 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11515
11516 PR gdb/25881
11517 * dwarf2/read.c (offset_map_type): Use
11518 gdb:hash_enum<sect_offset> as hash function.
11519
11520 2020-04-28 Tom de Vries <tdevries@suse.de>
11521
11522 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11523 with DW_AT_signature.
11524
11525 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11526
11527 * configure.ac: Remove check for fs_base/gs_base in
11528 user_regs_struct.
11529 * configure: Re-generate.
11530 * config.in: Re-generate.
11531 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11532 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11533 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11534
11535 2020-04-27 Luis Machado <luis.machado@linaro.org>
11536
11537 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11538 problematic inline frame unwinding situation.
11539 * frame.c (frame_id_computed_p): New function.
11540 * frame.h (frame_id_computed_p): New prototype.
11541
11542 2020-04-26 Tom Tromey <tom@tromey.com>
11543
11544 * command.h (enum command_class) <class_pseudo>: Remove.
11545
11546 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11547
11548 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11549 and whitespace.
11550
11551 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11552
11553 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11554 `PT_GET_PROCESS_STATE' block.
11555
11556 2020-04-24 Tom Tromey <tom@tromey.com>
11557
11558 * symtab.h (symbol_get_demangled_name): Don't declare.
11559 * symtab.c (symbol_get_demangled_name): Remove.
11560 (general_symbol_info::natural_name)
11561 (general_symbol_info::demangled_name): Update.
11562
11563 2020-04-24 Tom Tromey <tom@tromey.com>
11564
11565 PR rust/25025:
11566 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11567
11568 2020-04-24 Tom Tromey <tom@tromey.com>
11569
11570 PR symtab/12707:
11571 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11572 exists.
11573 (new_symbol): Likewise.
11574 * compile/compile-object-load.c (get_out_value_type): Use
11575 symbol_matches_search_name.
11576
11577 2020-04-24 Tom Tromey <tom@tromey.com>
11578
11579 * dwarf2/read.c (add_partial_symbol): Do not call
11580 compute_and_set_names.
11581
11582 2020-04-24 Tom Tromey <tom@tromey.com>
11583
11584 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11585 overload.
11586
11587 2020-04-24 Tom Tromey <tom@tromey.com>
11588
11589 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11590 (add_psymbol_to_list): New overload. Make old overload call new
11591 one.
11592 * psympriv.h (add_psymbol_to_list): New overload.
11593
11594 2020-04-24 Tom Tromey <tom@tromey.com>
11595
11596 * dwarf2/read.c (partial_die_info::read) <case
11597 DW_AT_linkage_name>: Use value_as_string.
11598 (dwarf2_string_attr): Use value_as_string.
11599 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11600 method.
11601 * dwarf2/attribute.c (attribute::value_as_string): New method.
11602
11603 2020-04-24 Tom Tromey <tom@tromey.com>
11604
11605 * symtab.c (general_symbol_info::natural_name)
11606 (general_symbol_info::demangled_name): Check for language_rust.
11607
11608 2020-04-24 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11611 (dwarf2_physname): ... from here.
11612 (partial_die_info::read): Add Rust "{" hack.
11613
11614 2020-04-24 Tom Tromey <tom@tromey.com>
11615
11616 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11617 method.
11618 (symbol_set_demangled_name): Don't declare.
11619 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11620 symbol_set_demangled_name.
11621 (general_symbol_info::set_language)
11622 (general_symbol_info::compute_and_set_names): Update.
11623 * minsyms.c (minimal_symbol_reader::install): Update.
11624 * dwarf2/read.c (new_symbol): Update.
11625
11626 2020-04-24 Tom Tromey <tromey@adacore.com>
11627
11628 PR python/23662:
11629 * python/py-type.c (convert_field): Handle
11630 FIELD_LOC_KIND_DWARF_BLOCK.
11631 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11632 (typy_get_dynamic): Nw function.
11633 (type_object_getset): Add "dynamic".
11634 * NEWS: Add entry.
11635
11636 2020-04-24 Tom Tromey <tromey@adacore.com>
11637
11638 * ada-typeprint.c (print_choices, print_variant_part)
11639 (print_record_field_types_dynamic): New functions.
11640 (print_record_field_types): Use print_record_field_types_dynamic.
11641
11642 2020-04-24 Tom Tromey <tromey@adacore.com>
11643
11644 * dwarf2/read.c (handle_data_member_location): New overload.
11645 (dwarf2_add_field): Use it.
11646 (decode_locdesc): Add "computed" parameter. Update comment.
11647 * gdbtypes.c (is_dynamic_type_internal): Also look for
11648 FIELD_LOC_KIND_DWARF_BLOCK.
11649 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11650 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11651 virtual base classes.
11652 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11653 FIELD_LOC_KIND_DWARF_BLOCK.
11654
11655 2020-04-24 Tom Tromey <tromey@adacore.com>
11656
11657 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11658 * gdbtypes.c (is_dynamic_type_internal): Check
11659 TYPE_HAS_DYNAMIC_LENGTH.
11660 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11661 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11662 New macros.
11663 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11664 constant.
11665
11666 2020-04-24 Tom Tromey <tromey@adacore.com>
11667
11668 * dwarf2/read.c (struct variant_field): Rewrite.
11669 (struct variant_part_builder): New.
11670 (struct nextfield): Remove "variant" field. Add "offset".
11671 (struct field_info): Add "current_variant_part" and
11672 "variant_parts".
11673 (alloc_discriminant_info): Remove.
11674 (alloc_rust_variant): New function.
11675 (quirk_rust_enum): Update.
11676 (dwarf2_add_field): Set "offset" member. Don't handle
11677 DW_TAG_variant_part.
11678 (offset_map_type): New typedef.
11679 (convert_variant_range, create_one_variant)
11680 (create_one_variant_part, create_variant_parts)
11681 (add_variant_property): New functions.
11682 (dwarf2_attach_fields_to_type): Call add_variant_property.
11683 (read_structure_type): Don't handle DW_TAG_variant_part.
11684 (handle_variant_part, handle_variant): New functions.
11685 (handle_struct_member_die): Use them.
11686 (process_structure_scope): Don't handle variant parts.
11687 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11688 (struct discriminant_info): Remove.
11689 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11690 (struct main_type) <flag_discriminated_union>: Remove.
11691 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11692 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11693 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11694 Update.
11695 * valops.c (value_union_variant): Remove.
11696 * value.h (value_union_variant): Don't declare.
11697
11698 2020-04-24 Tom Tromey <tromey@adacore.com>
11699
11700 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11701 (ada_value_primitive_packed_val): Update.
11702 * ada-valprint.c (ada_value_print_1): Update.
11703 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11704 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11705 just an address. Use evaluate_for_locexpr_baton.
11706 (dwarf2_evaluate_property): Update.
11707 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11708 array_view.
11709 * findvar.c (default_read_var_value): Update.
11710 * gdbtypes.c (compute_variant_fields_inner)
11711 (resolve_dynamic_type_internal): Update.
11712 (resolve_dynamic_type): Change type of valaddr parameter.
11713 * gdbtypes.h (resolve_dynamic_type): Update.
11714 * valarith.c (value_subscripted_rvalue): Update.
11715 * value.c (value_from_contents_and_address): Update.
11716
11717 2020-04-24 Tom Tromey <tromey@adacore.com>
11718
11719 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11720 "push_initial_value" parameter.
11721 (dwarf2_evaluate_property): Likewise.
11722 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11723
11724 2020-04-24 Tom Tromey <tromey@adacore.com>
11725
11726 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11727 (variant::matches, compute_variant_fields_recurse)
11728 (compute_variant_fields_inner, compute_variant_fields): New
11729 functions.
11730 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11731 Use resolved_type after type is made.
11732 (operator==): Add new cases.
11733 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11734 (struct discriminant_range, struct variant, struct variant_part):
11735 New.
11736 (union dynamic_prop_data) <variant_parts, original_type>: New
11737 members.
11738 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11739 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11740 constants.
11741 * value.c (unpack_bits_as_long): Now public.
11742 * value.h (unpack_bits_as_long): Declare.
11743
11744 2020-04-24 Tom Tromey <tromey@adacore.com>
11745
11746 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11747 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11748
11749 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11750
11751 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11752
11753 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11754
11755 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11756 (remove_fork_catchpoint, post_startup_inferior)
11757 (post_attach): Move...
11758 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11759 (remove_fork_catchpoint, post_startup_inferior)
11760 (post_attach): ...here.
11761 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11762 (remove_fork_catchpoint, post_startup_inferior)
11763 (post_attach): Move...
11764 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11765 (remove_fork_catchpoint, post_startup_inferior)
11766 (post_attach): ...here.
11767
11768 2020-04-24 Tom Tromey <tromey@adacore.com>
11769
11770 * nat/windows-nat.h (struct windows_thread_info)
11771 <pc_adjusted>: New member.
11772 * windows-nat.c (windows_fetch_one_register): Check
11773 pc_adjusted.
11774 (windows_nat_target::get_windows_debug_event)
11775 (windows_nat_target::wait): Set pc_adjusted.
11776
11777 2020-04-24 Tom de Vries <tdevries@suse.de>
11778
11779 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11780 Run gdb-add-index inside temp dir.
11781
11782 2020-04-23 Tom Tromey <tromey@adacore.com>
11783
11784 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11785 in loop.
11786
11787 2020-04-23 Luis Machado <luis.machado@linaro.org>
11788
11789 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11790 get_frame_register instead of gdbarch_unwind_pc.
11791
11792 2020-04-23 Tom de Vries <tdevries@suse.de>
11793
11794 * symtab.c (lookup_global_symbol): Prefer def over decl.
11795
11796 2020-04-23 Tom de Vries <tdevries@suse.de>
11797
11798 PR symtab/25807
11799 * block.c (best_symbol, better_symbol): Promote to external.
11800 * block.h (best_symbol, better_symbol): Declare.
11801 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11802 decl.
11803
11804 2020-04-23 Tom Tromey <tromey@adacore.com>
11805
11806 PR ada/25837:
11807 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11808 "const char *", not a "const std::string &".
11809 <name_and_matcher::operator==>: Update.
11810 * unittests/lookup_name_info-selftests.c: Change type of
11811 "result".
11812
11813 2020-04-23 Tom Tromey <tom@tromey.com>
11814
11815 * inferior.h (iterate_over_inferiors): Don't declare.
11816 * inferior.c (iterate_over_inferiors): Remove.
11817 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11818 Remove.
11819 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11820 use iterate_over_inferiors.
11821 (darwin_resume_inferior_it)
11822 (struct resume_inferior_threads_param)
11823 (darwin_resume_inferior_threads_it): Remove.
11824 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11825
11826 2020-04-23 Tom de Vries <tdevries@suse.de>
11827
11828 * blockframe.c (find_pc_partial_function): Use
11829 find_pc_sect_compunit_symtab rather than
11830 objfile->sf->qf->find_pc_sect_compunit_symtab.
11831
11832 2020-04-22 Tom de Vries <tdevries@suse.de>
11833
11834 PR symtab/25764
11835 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11836 in psymtabs.
11837
11838 2020-04-22 Tom de Vries <tdevries@suse.de>
11839
11840 PR symtab/25801
11841 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11842 symtabs.
11843
11844 2020-04-22 Tom de Vries <tdevries@suse.de>
11845
11846 PR symtab/25700
11847 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11848 CU if already created.
11849
11850 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11851
11852 * infrun.c (displaced_step_fixup): Switch to the event_thread
11853 before calling displaced_step_restore, not after.
11854
11855 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11856
11857 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11858 its inferior is not recorded by us.
11859 (record_btrace_target_open): Replace call to
11860 all_non_exited_threads () with call to current_inferior
11861 ()->non_exited_threads ().
11862 (record_btrace_target::stop_recording): Likewise.
11863 (record_btrace_target::close): Likewise.
11864 (record_btrace_target::wait): Likewise.
11865 (record_btrace_target::record_stop_replaying): Likewise.
11866
11867 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11868
11869 * btrace.c (btrace_enable): Throw an error on double enables and
11870 when enabling recording fails.
11871 (btrace_disable): Throw an error if the thread is not recorded.
11872
11873 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11874
11875 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11876 request if we do not have a thread_info.
11877
11878 2020-04-21 Tom de Vries <tdevries@suse.de>
11879
11880 PR gdb/25471
11881 * thread.c
11882 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11883 exception in get_frame_id.
11884
11885 2020-04-20 Tom Tromey <tromey@adacore.com>
11886
11887 * python/python.c (struct gdbpy_event): Mark move constructor as
11888 noexcept.
11889 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11890 constructor as noexcept.
11891 * completer.h (struct completion_result): Mark move constructor as
11892 noexcept.
11893 * completer.c (completion_result::completion_result): Use
11894 initialization style. Don't call reset_match_list.
11895
11896 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11897
11898 * MAINTAINERS (Write After Approval): Add myself.
11899
11900 2020-04-18 Tom Tromey <tom@tromey.com>
11901
11902 * windows-tdep.c (init_w32_command_list)
11903 (w32_prefix_command_valid): Restore.
11904 (_initialize_windows_tdep): Call init_w32_command_list.
11905
11906 2020-04-18 Tom Tromey <tom@tromey.com>
11907
11908 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11909 * value.c (value_fn_field): Update.
11910 * valops.c (find_function_in_inferior)
11911 (value_allocate_space_in_inferior): Update.
11912 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11913 Update.
11914 * tui/tui-source.c (tui_source_window::set_contents): Update.
11915 * symtab.c (lookup_global_or_static_symbol)
11916 (find_function_start_sal_1, skip_prologue_sal)
11917 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11918 * symmisc.c (dump_msymbols, dump_symtab_1)
11919 (maintenance_print_one_line_table): Update.
11920 * symfile.c (init_entry_point_info, section_is_mapped)
11921 (list_overlays_command, simple_read_overlay_table)
11922 (simple_overlay_update_1): Update.
11923 * stap-probe.c (handle_stap_probe): Update.
11924 * stabsread.c (dbx_init_float_type, define_symbol)
11925 (read_one_struct_field, read_enum_type, read_range_type): Update.
11926 * source.c (info_line_command): Update.
11927 * python/python.c (gdbpy_source_objfile_script)
11928 (gdbpy_execute_objfile_script): Update.
11929 * python/py-type.c (save_objfile_types): Update.
11930 * python/py-objfile.c (py_free_objfile): Update.
11931 * python/py-inferior.c (python_new_objfile): Update.
11932 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11933 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11934 (maintenance_check_psymtabs): Update.
11935 * printcmd.c (info_address_command): Update.
11936 * objfiles.h (struct objfile) <arch>: New method, from
11937 get_objfile_arch.
11938 (get_objfile_arch): Don't declare.
11939 * objfiles.c (get_objfile_arch): Remove.
11940 (filter_overlapping_sections): Update.
11941 * minsyms.c (msymbol_is_function): Update.
11942 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11943 (output_nondebug_symbol): Update.
11944 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11945 (mdebug_expand_psymtab): Update.
11946 * machoread.c (macho_add_oso_symfile): Update.
11947 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11948 Update.
11949 * linux-fork.c (checkpoint_command): Update.
11950 * linespec.c (convert_linespec_to_sals): Update.
11951 * jit.c (finalize_symtab): Update.
11952 * infrun.c (insert_exception_resume_from_probe): Update.
11953 * ia64-tdep.c (ia64_find_unwind_table): Update.
11954 * hppa-tdep.c (internalize_unwinds): Update.
11955 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11956 Update.
11957 * gcore.c (call_target_sbrk): Update.
11958 * elfread.c (record_minimal_symbol, elf_symtab_read)
11959 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11960 (elf_gnu_ifunc_resolve_by_got): Update.
11961 * dwarf2/read.c (create_addrmap_from_index)
11962 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11963 (read_debug_names_from_section)
11964 (process_psymtab_comp_unit_reader, add_partial_symbol)
11965 (add_partial_subprogram, process_full_comp_unit)
11966 (read_file_scope, read_func_scope, read_lexical_block_scope)
11967 (read_call_site_scope, dwarf2_ranges_read)
11968 (dwarf2_record_block_ranges, dwarf2_add_field)
11969 (mark_common_block_symbol_computed, read_tag_pointer_type)
11970 (read_tag_string_type, dwarf2_init_float_type)
11971 (dwarf2_init_complex_target_type, read_base_type)
11972 (partial_die_info::read, partial_die_info::read)
11973 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11974 (dwarf2_fetch_die_loc_sect_off): Update.
11975 * dwarf2/loc.c (dwarf2_find_location_expression)
11976 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11977 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11978 (dwarf2_loc_desc_get_symbol_read_needs)
11979 (locexpr_describe_location_piece, locexpr_describe_location_1)
11980 (loclist_describe_location): Update.
11981 * dwarf2/index-write.c (write_debug_names): Update.
11982 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11983 * dtrace-probe.c (dtrace_process_dof): Update.
11984 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11985 (process_one_symbol): Update.
11986 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11987 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11988 (coff_read_enum_type): Update.
11989 * cli/cli-cmds.c (edit_command, list_command): Update.
11990 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11991 * breakpoint.c (create_overlay_event_breakpoint)
11992 (create_longjmp_master_breakpoint)
11993 (create_std_terminate_master_breakpoint)
11994 (create_exception_master_breakpoint, get_sal_arch): Update.
11995 * block.c (block_gdbarch): Update.
11996 * annotate.c (annotate_source_line): Update.
11997
11998 2020-04-17 Tom Tromey <tromey@adacore.com>
11999
12000 * auto-load.c (show_auto_load_cmd): Remove.
12001 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12002 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12003 (maintenance_print_arc_command): Remove.
12004 * tui/tui-win.c (tui_command): Remove.
12005 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12006 * tui/tui-layout.c (tui_layout_command): Remove.
12007 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12008 * python/python.c (user_set_python, user_show_python): Remove.
12009 (_initialize_python): Use add_basic_prefix_cmd,
12010 add_show_prefix_cmd.
12011 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12012 (install_gdb_commands): Use add_basic_prefix_cmd,
12013 add_show_prefix_cmd.
12014 (info_guile_command): Remove.
12015 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12016 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12017 add_show_prefix_cmd.
12018 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12019 Remove do_set and do_show parameters.
12020 * cli/cli-style.c (set_style, show_style): Remove.
12021 (_initialize_cli_style): Use add_basic_prefix_cmd,
12022 add_show_prefix_cmd.
12023 (cli_style_option::add_setshow_commands): Remove do_set and
12024 do_show parameters.
12025 (cli_style_option::add_setshow_commands): Use
12026 add_basic_prefix_cmd, add_show_prefix_cmd.
12027 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12028 (set_style_name): Remove.
12029 * cli/cli-dump.c (dump_command, append_command): Remove.
12030 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12031 (tekhex_dump_command, binary_dump_command)
12032 (binary_append_command): Remove.
12033 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12034 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12035 (init_w32_command_list): Remove; move into ...
12036 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12037 * valprint.c (set_print, show_print, set_print_raw)
12038 (show_print_raw): Remove.
12039 (_initialize_valprint): Use add_basic_prefix_cmd,
12040 add_show_prefix_cmd.
12041 * typeprint.c (set_print_type, show_print_type): Remove.
12042 (_initialize_typeprint): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * record.c (set_record_command, show_record_command): Remove.
12045 (_initialize_record): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12048 add_show_prefix_cmd.
12049 (info_command, show_command, set_debug, show_debug): Remove.
12050 * top.h (set_history, show_history): Don't declare.
12051 * top.c (set_history, show_history): Remove.
12052 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12053 (unset_tdesc_cmd): Remove.
12054 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12055 add_show_prefix_cmd.
12056 * symtab.c (info_module_command): Remove.
12057 (_initialize_symtab): Use add_basic_prefix_cmd.
12058 * symfile.c (overlay_command): Remove.
12059 (_initialize_symfile): Use add_basic_prefix_cmd.
12060 * sparc64-tdep.c (info_adi_command): Remove.
12061 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12062 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12063 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12064 add_show_prefix_cmd.
12065 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12066 (_initialize_serial): Use add_basic_prefix_cmd,
12067 add_show_prefix_cmd.
12068 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12069 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12070 add_show_prefix_cmd.
12071 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12072 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12073 add_show_prefix_cmd.
12074 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12075 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12076 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12077 add_show_prefix_cmd.
12078 * remote.c (remote_command, set_remote_cmd): Remove.
12079 (_initialize_remote): Use add_basic_prefix_cmd.
12080 * record-full.c (set_record_full_command)
12081 (show_record_full_command): Remove.
12082 (_initialize_record_full): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * record-btrace.c (cmd_set_record_btrace)
12085 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12086 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12087 (cmd_show_record_btrace_pt): Remove.
12088 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12089 add_show_prefix_cmd.
12090 * ravenscar-thread.c (set_ravenscar_command)
12091 (show_ravenscar_command): Remove.
12092 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12093 add_show_prefix_cmd.
12094 * mips-tdep.c (show_mips_command, set_mips_command)
12095 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * maint.c (maintenance_command, maintenance_info_command)
12098 (maintenance_check_command, maintenance_print_command)
12099 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12100 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12101 add_show_prefix_cmd.
12102 (show_per_command_cmd): Remove.
12103 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12104 Remove.
12105 (maintenance_show_test_settings_cmd): Remove.
12106 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12107 add_show_prefix_cmd.
12108 * maint-test-options.c (maintenance_test_options_command):
12109 Remove.
12110 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12111 * macrocmd.c (macro_command): Remove
12112 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12113 * language.c (set_check, show_check): Remove.
12114 (_initialize_language): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * infcmd.c (unset_command): Remove.
12117 (_initialize_infcmd): Use add_basic_prefix_cmd.
12118 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12119 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 * go32-nat.c (go32_info_dos_command): Remove.
12122 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12123 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12124 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12125 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12126 (_initialize_frame): Use add_basic_prefix_cmd,
12127 add_show_prefix_cmd.
12128 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12129 (_initialize_dcache): Use add_basic_prefix_cmd,
12130 add_show_prefix_cmd.
12131 * cp-support.c (maint_cplus_command): Remove.
12132 (_initialize_cp_support): Use add_basic_prefix_cmd.
12133 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12134 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12135 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12136 add_basic_prefix_cmd, add_show_prefix_cmd.
12137 * breakpoint.c (save_command): Remove.
12138 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12139 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12140 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12141 add_show_prefix_cmd.
12142 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12143 (set_ada_command, show_ada_command): Remove.
12144 (_initialize_ada_language): Use add_basic_prefix_cmd,
12145 add_show_prefix_cmd.
12146 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12147
12148 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12149
12150 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12151 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12152
12153 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12154
12155 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12156 warning messages.
12157
12158 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12161 import table is not at beginning of .idata section.
12162
12163 2020-04-16 Pedro Alves <palves@redhat.com>
12164
12165 * inferior.c (delete_inferior): Use delete operator directly
12166 instead of delete_program_space.
12167 * progspace.c (add_program_space): New, factored out from
12168 program_space::program_space.
12169 (remove_program_space): New, factored out from
12170 delete_program_space.
12171 (program_space::program_space): Remove intro comment. Rewrite.
12172 (program_space::~program_space): Remove intro comment. Call
12173 remove_program_space.
12174 (delete_program_space): Delete.
12175 * progspace.h (program_space::program_space): Make explicit. Move
12176 intro comment here, adjusted.
12177 (program_space::~program_space): Move intro comment here,
12178 adjusted.
12179 (delete_program_space): Remove.
12180
12181 2020-04-16 Tom Tromey <tromey@adacore.com>
12182
12183 * windows-nat.c (windows_nat::handle_access_violation): New
12184 function.
12185 * nat/windows-nat.h (handle_access_violation): Declare.
12186 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12187 windows-nat.c. Call handle_access_violation.
12188
12189 2020-04-16 Tom de Vries <tdevries@suse.de>
12190
12191 PR symtab/25791
12192 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12193 CUs without psymtab.
12194
12195 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12196
12197 * python/python.c (do_start_initialization): Don't call
12198 PyEval_InitThreads for Python 3.9 and beyond.
12199
12200 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12201
12202 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12203 thread functions.
12204 (obsd_nat_target::wait): Likewise.
12205
12206 2020-04-15 Tom Tromey <tromey@adacore.com>
12207
12208 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12209 (DEBUG_EXCEPT): Use debug_printf.
12210
12211 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * completer.c (class completion_tracker::completion_hash_entry)
12214 <hash_name>: New member function.
12215 (completion_tracker::discard_completions): New callback to hash a
12216 completion_hash_entry, pass this to htab_create_alloc.
12217
12218 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12219
12220 * windows-nat.c (windows_make_so): Warn rather than stopping with
12221 an error if realpath() fails.
12222
12223 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12224
12225 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12226 (nbsd_nat_target::info_proc): Add do_status.
12227
12228 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12229 Tom de Vries <tdevries@suse.de>
12230
12231 PR symtab/25718
12232 * psympriv.h (struct partial_symtab::read_symtab)
12233 (struct partial_symtab::expand_psymtab)
12234 (struct partial_symtab::read_dependencies): Update comments.
12235 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12236 read_symtab for includer.
12237 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12238 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12239 (struct dwarf2_include_psymtab::m_readin): Remove.
12240 (struct dwarf2_include_psymtab::includer): New member function.
12241 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12242
12243 2020-04-14 Tom de Vries <tdevries@suse.de>
12244
12245 PR symtab/25720
12246 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12247 with NULL symbol_matcher and lookup_name.
12248 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12249 and lookup_name.
12250 * dwarf2/read.c (dw2_expand_symtabs_matching)
12251 (dw2_debug_names_expand_symtabs_matching): Same.
12252 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12253 Make lookup_name a pointer. Update comment.
12254 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12255 lookup_name being a pointer.
12256 * symfile.c (expand_symtabs_matching): Same.
12257 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12258 * linespec.c (iterate_over_all_matching_symtabs): Same.
12259
12260 2020-04-13 Tom Tromey <tom@tromey.com>
12261
12262 * run-on-main-thread.c: Update include.
12263 * unittests/main-thread-selftests.c: Update include.
12264 * tui/tui-win.c: Update include.
12265 * tui/tui-io.c: Update include.
12266 * tui/tui-interp.c: Update include.
12267 * tui/tui-hooks.c: Update include.
12268 * top.h: Update include.
12269 * top.c: Update include.
12270 * ser-base.c: Update include.
12271 * remote.c: Update include.
12272 * remote-notif.c: Update include.
12273 * remote-fileio.c: Update include.
12274 * record-full.c: Update include.
12275 * record-btrace.c: Update include.
12276 * python/python.c: Update include.
12277 * posix-hdep.c: Update include.
12278 * mingw-hdep.c: Update include.
12279 * mi/mi-main.c: Update include.
12280 * mi/mi-interp.c: Update include.
12281 * main.c: Update include.
12282 * linux-nat.c: Update include.
12283 * interps.c: Update include.
12284 * infrun.c: Update include.
12285 * inf-loop.c: Update include.
12286 * event-top.c: Update include.
12287 * event-loop.c: Move to ../gdbsupport/.
12288 * event-loop.h: Move to ../gdbsupport/.
12289 * async-event.h: Update include.
12290 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12291
12292 2020-04-13 Tom Tromey <tom@tromey.com>
12293
12294 * tui/tui-win.c: Include async-event.h.
12295 * remote.c: Include async-event.h.
12296 * remote-notif.c: Include async-event.h.
12297 * record-full.c: Include async-event.h.
12298 * record-btrace.c: Include async-event.h.
12299 * infrun.c: Include async-event.h.
12300 * event-top.c: Include async-event.h.
12301 * event-loop.h: Move some declarations to async-event.h.
12302 * event-loop.c: Don't include ser-event.h or top.h. Move some
12303 code to async-event.c.
12304 * async-event.h: New file.
12305 * async-event.c: New file.
12306 * Makefile.in (COMMON_SFILES): Add async-event.c.
12307 (HFILES_NO_SRCDIR): Add async-event.h.
12308
12309 2020-04-13 Tom Tromey <tom@tromey.com>
12310
12311 * utils.c (flush_streams): New function.
12312 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12313
12314 2020-04-13 Tom Tromey <tom@tromey.com>
12315
12316 * event-loop.c (handle_file_event): Use warning, not
12317 printf_unfiltered.
12318
12319 2020-04-13 Tom Tromey <tom@tromey.com>
12320
12321 * event-loop.c: Include <chrono>.
12322
12323 2020-04-13 Tom Tromey <tom@tromey.com>
12324
12325 * gdb_select.h: Move to ../gdbsupport/.
12326 * event-loop.c: Update include path.
12327 * top.c: Update include path.
12328 * ser-base.c: Update include path.
12329 * ui-file.c: Update include path.
12330 * ser-tcp.c: Update include path.
12331 * guile/scm-ports.c: Update include path.
12332 * posix-hdep.c: Update include path.
12333 * ser-unix.c: Update include path.
12334 * gdb_usleep.c: Update include path.
12335 * mingw-hdep.c: Update include path.
12336 * inflow.c: Update include path.
12337 * infrun.c: Update include path.
12338 * event-top.c: Update include path.
12339
12340 2020-04-13 Tom Tromey <tom@tromey.com>
12341
12342 * configure: Rebuild.
12343 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12344
12345 2020-04-13 Tom Tromey <tom@tromey.com>
12346
12347 * event-loop.h (start_event_loop): Don't declare.
12348 * event-loop.c (start_event_loop): Move...
12349 * main.c (start_event_loop): ...here. Now static.
12350
12351 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12352
12353 * MAINTAINERS: Update my email address.
12354
12355 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12356
12357 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12358 IP_ALL.
12359
12360 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12361
12362 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12363 (nbsd_nat_target::info_proc): Add do_cmdline.
12364
12365 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12366
12367 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12368 (nbsd_nat_target::info_proc): Add do_cwd.
12369
12370 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12371
12372 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12373
12374 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12375
12376 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12377 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12378 (nbsd_nat_target::info_proc): New functions.
12379 * nbsd-nat.c (kinfo_get_vmmap): New function.
12380 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12381 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12382 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12383 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12384 functions.
12385 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12386 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12387 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12388 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12389 (KINFO_VME_FLAG_GROWS_DOWN): New.
12390
12391 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12392
12393 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12394 bit shift.
12395
12396 2020-04-10 Tom Tromey <tromey@adacore.com>
12397
12398 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12399
12400 2020-04-10 Tom Tromey <tromey@adacore.com>
12401
12402 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12403 separate debug files.
12404
12405 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12406
12407 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12408 Move to...
12409 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12410 ... here.
12411 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12412 Check for STATUS_WX86_BREAKPOINT.
12413 (windows_nat_target::wait): Same.
12414
12415 2020-04-10 Tom de Vries <tdevries@suse.de>
12416
12417 PR cli/25808
12418 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12419
12420 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12421
12422 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12423 (Write After Approval): Remove Tom de Vries.
12424
12425 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12426
12427 revert partially:
12428 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12429
12430 * buildsym.c (record_line): Fix undefined behavior and preserve
12431 lines at eof.
12432
12433 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12434
12435 * auxv.h (svr4_auxv_parse): New.
12436 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12437 and generic_auxv_parse.
12438 (svr4_auxv_parse): Add.
12439 * obsd-tdep.c: Include "auxv.h".
12440 (obsd_auxv_parse): Remove.
12441 (obsd_init_abi): Remove comment.
12442 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12443 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12444 * nbsd-tdep.c: Include "auxv.h".
12445 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12446
12447 2020-04-08 Tom Tromey <tromey@adacore.com>
12448
12449 * nat/windows-nat.h (last_wait_event): Don't declare.
12450 (wait_for_debug_event): Update comment.
12451 * nat/windows-nat.c (last_wait_event): Now static.
12452
12453 2020-04-08 Tom Tromey <tromey@adacore.com>
12454
12455 * windows-nat.c (wait_for_debug_event): Move to
12456 nat/windows-nat.c.
12457 * nat/windows-nat.h (wait_for_debug_event): Declare.
12458 * nat/windows-nat.c (wait_for_debug_event): Move from
12459 windows-nat.c. No longer static.
12460
12461 2020-04-08 Tom Tromey <tromey@adacore.com>
12462
12463 * windows-nat.c (get_windows_debug_event): Use
12464 fetch_pending_stop.
12465 * nat/windows-nat.h (fetch_pending_stop): Declare.
12466 * nat/windows-nat.c (fetch_pending_stop): New function.
12467
12468 2020-04-08 Tom Tromey <tromey@adacore.com>
12469
12470 * windows-nat.c (windows_continue): Use matching_pending_stop and
12471 continue_last_debug_event.
12472 * nat/windows-nat.h (matching_pending_stop)
12473 (continue_last_debug_event): Declare.
12474 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12475 (matching_pending_stop, continue_last_debug_event): New
12476 functions.
12477
12478 2020-04-08 Tom Tromey <tromey@adacore.com>
12479
12480 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12481 (handle_exception_result): Move to nat/windows-nat.h.
12482 (DEBUG_EXCEPTION_SIMPLE): Remove.
12483 (windows_nat::handle_ms_vc_exception): New function.
12484 (handle_exception): Move to nat/windows-nat.c.
12485 (get_windows_debug_event): Update.
12486 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12487 nat/windows-nat.c.
12488 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12489 (handle_exception_result): Move from windows-nat.c.
12490 (handle_exception): Declare.
12491 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12492 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12493 windows-nat.c.
12494
12495 2020-04-08 Tom Tromey <tromey@adacore.com>
12496
12497 * windows-nat.c (exception_count, event_count): Remove.
12498 (handle_exception, get_windows_debug_event)
12499 (do_initial_windows_stuff): Update.
12500
12501 2020-04-08 Tom Tromey <tromey@adacore.com>
12502
12503 * windows-nat.c (windows_nat::handle_load_dll)
12504 (windows_nat::handle_unload_dll): Rename. No longer static.
12505 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12506 Declare.
12507
12508 2020-04-08 Tom Tromey <tromey@adacore.com>
12509
12510 * complaints.h (stop_whining): Declare at top-level.
12511 (complaint): Don't declare stop_whining.
12512
12513 2020-04-08 Tom Tromey <tromey@adacore.com>
12514
12515 * windows-nat.c (windows_nat::handle_output_debug_string):
12516 Rename. No longer static.
12517 * nat/windows-nat.h (handle_output_debug_string): Declare.
12518
12519 2020-04-08 Tom Tromey <tromey@adacore.com>
12520
12521 * windows-nat.c (current_process_handle, current_process_id)
12522 (main_thread_id, last_sig, current_event, last_wait_event)
12523 (current_windows_thread, desired_stop_thread_id, pending_stops)
12524 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12525 (display_selectors, fake_create_process)
12526 (get_windows_debug_event): Update.
12527 * nat/windows-nat.h (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 from windows-nat.c.
12531 * nat/windows-nat.c (current_process_handle, current_process_id)
12532 (main_thread_id, last_sig, current_event, last_wait_event)
12533 (current_windows_thread, desired_stop_thread_id, pending_stops)
12534 (siginfo_er): New globals. Move from windows-nat.c.
12535
12536 2020-04-08 Tom Tromey <tromey@adacore.com>
12537
12538 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12539 (handle_load_dll): Update.
12540 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12541
12542 2020-04-08 Tom Tromey <tromey@adacore.com>
12543
12544 * windows-nat.c (enum thread_disposition_type): Move to
12545 nat/windows-nat.h.
12546 (windows_nat::thread_rec): Rename from thread_rec. No longer
12547 static.
12548 (windows_add_thread, windows_nat_target::fetch_registers)
12549 (windows_nat_target::store_registers, handle_exception)
12550 (windows_nat_target::resume, get_windows_debug_event)
12551 (windows_nat_target::get_tib_address)
12552 (windows_nat_target::thread_name)
12553 (windows_nat_target::thread_alive): Update.
12554 * nat/windows-nat.h (enum thread_disposition_type): Move from
12555 windows-nat.c.
12556 (thread_rec): Declare.
12557
12558 2020-04-08 Tom Tromey <tromey@adacore.com>
12559
12560 * windows-nat.c: Add "using namespace".
12561 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12562 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12563
12564 2020-04-08 Tom Tromey <tromey@adacore.com>
12565
12566 * nat/windows-nat.h (struct windows_thread_info): Declare
12567 destructor.
12568 * nat/windows-nat.c (~windows_thread_info): New.
12569
12570 2020-04-08 Tom Tromey <tromey@adacore.com>
12571
12572 PR gdb/22992
12573 * windows-nat.c (current_event): Update comment.
12574 (last_wait_event, desired_stop_thread_id): New globals.
12575 (struct pending_stop): New.
12576 (pending_stops): New global.
12577 (windows_nat_target) <stopped_by_sw_breakpoint>
12578 <supports_stopped_by_sw_breakpoint>: New methods.
12579 (windows_fetch_one_register): Add assertions. Adjust PC.
12580 (windows_continue): Handle pending stops. Suspend other threads
12581 when stepping. Use last_wait_event
12582 (wait_for_debug_event): New function.
12583 (get_windows_debug_event): Use wait_for_debug_event. Handle
12584 pending stops. Queue spurious stops.
12585 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12586 (windows_nat_target::kill): Use wait_for_debug_event.
12587 * nat/windows-nat.h (struct windows_thread_info)
12588 <stopped_at_software_breakpoint>: New field.
12589 * nat/windows-nat.c (windows_thread_info::resume): Clear
12590 stopped_at_software_breakpoint.
12591
12592 2020-04-08 Tom Tromey <tromey@adacore.com>
12593
12594 * windows-nat.c (enum thread_disposition_type): New.
12595 (thread_rec): Replace "get_context" parameter with "disposition";
12596 change type.
12597 (windows_add_thread, windows_nat_target::fetch_registers)
12598 (windows_nat_target::store_registers, handle_exception)
12599 (windows_nat_target::resume, get_windows_debug_event)
12600 (windows_nat_target::get_tib_address)
12601 (windows_nat_target::thread_name)
12602 (windows_nat_target::thread_alive): Update.
12603
12604 2020-04-08 Tom Tromey <tromey@adacore.com>
12605
12606 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12607 (windows_continue): Use windows_continue::resume.
12608 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12609 resume>: Declare new methods.
12610 * nat/windows-nat.c: New file.
12611 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12612
12613 2020-04-08 Tom Tromey <tromey@adacore.com>
12614
12615 * windows-nat.c (windows_add_thread, windows_delete_thread)
12616 (windows_nat_target::fetch_registers)
12617 (windows_nat_target::store_registers, fake_create_process)
12618 (windows_nat_target::resume, windows_nat_target::resume)
12619 (get_windows_debug_event, windows_nat_target::wait)
12620 (windows_nat_target::pid_to_str)
12621 (windows_nat_target::get_tib_address)
12622 (windows_nat_target::get_ada_task_ptid)
12623 (windows_nat_target::thread_name)
12624 (windows_nat_target::thread_alive): Use lwp, not tid.
12625
12626 2020-04-08 Tom Tromey <tromey@adacore.com>
12627
12628 * windows-nat.c (handle_exception)
12629 (windows_nat_target::thread_name): Update.
12630 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12631 <name>: Now unique_xmalloc_ptr.
12632
12633 2020-04-08 Tom Tromey <tromey@adacore.com>
12634
12635 * windows-nat.c (thread_rec)
12636 (windows_nat_target::fetch_registers): Update.
12637 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12638 Update comment.
12639 <debug_registers_changed, reload_context>: Now bool.
12640
12641 2020-04-08 Tom Tromey <tromey@adacore.com>
12642
12643 * windows-nat.c (windows_add_thread): Use new.
12644 (windows_init_thread_list, windows_delete_thread): Use delete.
12645 (get_windows_debug_event): Update.
12646 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12647 destructor, and initializers.
12648
12649 2020-04-08 Tom Tromey <tromey@adacore.com>
12650
12651 * windows-nat.c (struct windows_thread_info): Remove.
12652 * nat/windows-nat.h: New file.
12653
12654 2020-04-08 Tom Tromey <tromey@adacore.com>
12655
12656 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12657 (thread_rec, windows_add_thread, windows_delete_thread)
12658 (windows_continue): Update.
12659
12660 2020-04-08 Tom Tromey <tromey@adacore.com>
12661
12662 * windows-nat.c (struct windows_thread_info): Remove typedef.
12663 (thread_head): Remove.
12664 (thread_list): New global.
12665 (thread_rec, windows_add_thread, windows_init_thread_list)
12666 (windows_delete_thread, windows_continue): Update.
12667
12668 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12669
12670 * windows-tdep.h (windows_init_abi): Add comment.
12671 (cygwin_init_abi): New declaration.
12672 * windows-tdep.c: Split signal enumeration in two, one for
12673 Windows and one for Cygwin.
12674 (windows_gdb_signal_to_target): Only deal with signal of the
12675 Windows OS ABI.
12676 (cygwin_gdb_signal_to_target): New function.
12677 (windows_init_abi): Rename to windows_init_abi_common, don't set
12678 gdb_signal_to_target gdbarch method. Add new new function with
12679 this name.
12680 (cygwin_init_abi): New function.
12681 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12682 comment. Don't call windows_init_abi.
12683 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12684 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12685 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12686 i386_windows_init_abi_common, don't call windows_init_abi. Add
12687 a new function of this name.
12688 (i386_cygwin_init_abi): New function.
12689 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12690 OS ABI Cygwin.
12691
12692 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12693
12694 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12695 parameter.c.
12696 (dwarf2_read_gdb_index): Update.
12697
12698 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12699
12700 * nbsd-tdep.c: Include "objfiles.h".
12701 (nbsd_skip_solib_resolver): New.
12702 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12703
12704 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12705
12706 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12707 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12708 with DW_LLE_base_addressx are being emitted in DWARFv5.
12709 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12710 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12711 unsigned integer.
12712
12713 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12714
12715 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12716 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12717 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12718 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12719 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12720 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12721 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12722
12723
12724 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12725
12726 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12727 (read_loclist_index): New function definition.
12728 (lookup_loclist_base): New function definition.
12729 (read_loclist_header): New function definition.
12730 (dwarf2_cu): Add loclist_base and loclist_header field.
12731 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12732 (read_full_die_1): Read the value of DW_AT_loclists_base.
12733 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12734 (read_attribute_value): Handle DW_FORM_loclistx.
12735 (skip_one_die): Handle DW_FORM_loclistx.
12736 (loclist_header): New structure declaration.
12737 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12738
12739 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12740
12741 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12742 constructor. Remove `addr` parameter from other constructor and
12743 add `per_cu` parameter.
12744 * dwarf2/read.c (create_partial_symtab): Update.
12745
12746 2020-04-07 Tom de Vries <tdevries@suse.de>
12747
12748 PR symtab/25796
12749 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12750 (partial_die_info::fixup): Inherit has_const_value.
12751
12752 2020-04-07 Tom de Vries <tdevries@suse.de>
12753
12754 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12755 symbols without address.
12756
12757 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12758
12759 * nbsd-nat.h (struct thread_info): Add forward declaration.
12760 (nbsd_nat_target::thread_alive): Add.
12761 (nbsd_nat_target::thread_name): Likewise.
12762 (nbsd_nat_target::update_thread_list): Likewise.
12763 (update_thread_list::post_attach): Likewise.
12764 (post_attach::pid_to_str): Likewise.
12765 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12766 (nbsd_thread_lister): Add.
12767 (nbsd_nat_target::thread_alive): Likewise.
12768 (nbsd_nat_target::thread_name): Likewise.
12769 (nbsd_add_threads): Likewise.
12770 (update_thread_list::post_attach): Likewise.
12771 (nbsd_nat_target::update_thread_list): Likewise.
12772 (post_attach::pid_to_str): Likewise.
12773
12774 2020-04-06 Tom Tromey <tromey@adacore.com>
12775
12776 * ada-valprint.c (print_variant_part): Extract the variant field.
12777 (print_field_values): Use the field as the outer value when
12778 recursing.
12779
12780 2020-04-06 Tom Tromey <tromey@adacore.com>
12781
12782 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12783 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12784 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12785 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12786 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12787
12788 2020-04-06 Tom Tromey <tromey@adacore.com>
12789
12790 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12791 TYPE_CODE_ERROR.
12792
12793 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12794
12795 * nbsd-tdep.c: Include "gdbarch.h".
12796 Define enum with NetBSD signal numbers.
12797 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12798 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12799 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12800 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12801 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12802 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12803 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12804 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12805 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12806 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12807 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12808 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12809
12810 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12811
12812 PR gdb/25325
12813 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12814
12815 2020-04-03 Tom Tromey <tromey@adacore.com>
12816
12817 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12818 Read constant block.
12819
12820 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12821
12822 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12823 (gdb_bfd_get_full_section_contents): New declaration.
12824 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12825 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12826 gdb_bfd_get_full_section_contents.
12827
12828 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12829
12830 * exec.c (build_section_table): Replace internal_error with
12831 gdb_assert.
12832 (section_table_xfer_memory_partial): Likewise.
12833 * mdebugread.c (parse_partial_symbols): Likewise.
12834 * psymtab.c (lookup_partial_symbol): Likewise.
12835 * utils.c (wrap_here): Likewise.
12836
12837 2020-04-02 Tom Tromey <tromey@adacore.com>
12838
12839 * f-lang.c (build_fortran_types): Use arch_type to initialize
12840 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12841
12842 2020-04-02 Tom Tromey <tromey@adacore.com>
12843
12844 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12845 of attributes.
12846
12847 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12848 Bernd Edlinger <bernd.edlinger@hotmail.de>
12849 Tom Tromey <tromey@adacore.com>
12850
12851 * buildsym.c (buildsym_compunit::record_line): Remove
12852 deduplication code.
12853
12854 2020-04-02 Tom de Vries <tdevries@suse.de>
12855
12856 PR ada/24671
12857 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12858
12859 2020-04-02 Tom de Vries <tdevries@suse.de>
12860
12861 * dwarf2/read.c (dwarf2_gdb_index_functions,
12862 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12863 NULL.
12864 * psymtab.c (psym_lookup_global_symbol_language): New function.
12865 (psym_functions): Init psym_lookup_global_symbol_language with
12866 psym_lookup_global_symbol_language.
12867 * symfile-debug.c (debug_sym_quick_functions): Init
12868 lookup_global_symbol_language with NULL.
12869 * symfile.c (set_initial_language): Remove fixme comment.
12870 * symfile.h (struct quick_symbol_functions): Add
12871 lookup_global_symbol_language.
12872 * symtab.c (find_quick_global_symbol_language): New function.
12873 (find_main_name): Use find_quick_global_symbol_language.
12874
12875 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12876
12877 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12878
12879 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12880
12881 * buildsym.c (record_line): Fix undefined behavior and preserve
12882 lines at eof.
12883
12884 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12885
12886 * buildsym.c (record_line): Fix the resizing condition.
12887
12888 2020-04-01 Tom Tromey <tom@tromey.com>
12889
12890 * value.h (value_literal_complex): Add comment.
12891 * valops.c (value_literal_complex): Refer to value.h.
12892
12893 2020-04-01 Tom Tromey <tom@tromey.com>
12894
12895 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12896 (scalar_type): New rule, from typebase.
12897 (typebase): Use scalar_type. Recognize complex types.
12898 (field_name): Handle FLOAT_KEYWORD.
12899 (ident_tokens): Add _Complex and __complex__.
12900
12901 2020-04-01 Tom Tromey <tom@tromey.com>
12902
12903 PR exp/25299:
12904 * valarith.c (promotion_type, complex_binop): New functions.
12905 (scalar_binop): Handle complex numbers. Use promotion_type.
12906 (value_pos, value_neg, value_complement): Handle complex numbers.
12907
12908 2020-04-01 Tom Tromey <tom@tromey.com>
12909
12910 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12911 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12912 (parse_number): Handle complex numbers.
12913
12914 2020-04-01 Tom Tromey <tom@tromey.com>
12915
12916 * c-valprint.c (c_decorations): Change complex suffix to "i".
12917
12918 2020-04-01 Tom Tromey <tom@tromey.com>
12919
12920 * valprint.c (generic_value_print_complex): Use accessors.
12921 * value.h (value_real_part, value_imaginary_part): Declare.
12922 * valops.c (value_real_part, value_imaginary_part): New
12923 functions.
12924 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12925
12926 2020-04-01 Tom Tromey <tom@tromey.com>
12927
12928 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12929 (read_range_type): Update.
12930 * mdebugread.c (basic_type): Update.
12931 * go-lang.c (build_go_types): Use init_complex_type.
12932 * gdbtypes.h (struct main_type) <complex_type>: New member.
12933 (init_complex_type): Update.
12934 (arch_complex_type): Don't declare.
12935 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12936 Make name if none given. Use alloc_type_copy. Look for cached
12937 complex type.
12938 (arch_complex_type): Remove.
12939 (gdbtypes_post_init): Use init_complex_type.
12940 * f-lang.c (build_fortran_types): Use init_complex_type.
12941 * dwarf2/read.c (read_base_type): Update.
12942 * d-lang.c (build_d_types): Use init_complex_type.
12943 * ctfread.c (read_base_type): Update.
12944
12945 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12946
12947 * infrun.c (stop_all_threads): Update assertion, plus when
12948 stopping threads, take into account that we might be trying
12949 to stop an all-stop target.
12950 (stop_waiting): Call 'stop_all_threads' if there exists a
12951 non-stop target.
12952
12953 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12954
12955 * target.h (exists_non_stop_target): New function declaration.
12956 * target.c (exists_non_stop_target): New function.
12957
12958 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12959
12960 PR gdb/24789
12961 * eval.c (is_integral_or_integral_reference): New function.
12962 (evaluate_subexp_standard): Allow integer references in
12963 pointer arithmetic.
12964
12965 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12966
12967 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12968 check for no ptid in the stop reply when the target is non-stop.
12969
12970 2020-04-01 Tom Tromey <tromey@adacore.com>
12971
12972 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12973 "name" parameter to rvalue reference. Initialize m_name_holder.
12974 <lookup_name_info>: New overloads.
12975 <name>: Return gdb::string_view.
12976 <c_str>: New method.
12977 <make_ignore_params>: Update.
12978 <search_name_hash>: Update.
12979 <language_lookup_name>: Return const char *.
12980 <m_name>: Change type.
12981 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12982 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12983 (lookup_name_info::match_any): Update.
12984 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12985 Update.
12986 * minsyms.c (linkage_name_str): Update.
12987 * language.c (default_symbol_name_matcher): Update.
12988 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12989 Update.
12990 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12991 (ada_lookup_name_info::ada_lookup_name_info): Update.
12992 (literal_symbol_name_matcher): Update.
12993
12994 2020-04-01 Tom Tromey <tromey@adacore.com>
12995
12996 * psymtab.c (psymtab_search_name): Remove function.
12997 (psym_lookup_symbol): Create search name and lookup name here.
12998 (lookup_partial_symbol): Remove "name" parameter; add
12999 lookup_name.
13000 (psym_expand_symtabs_for_function): Update.
13001
13002 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13003
13004 PR tui/25597:
13005 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13006
13007 2020-03-31 Tom Tromey <tromey@adacore.com>
13008
13009 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13010 memcpy.
13011
13012 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13013
13014 * features/riscv/32bit-csr.xml: Regenerated.
13015 * features/riscv/64bit-csr.xml: Regenerated.
13016
13017 2020-03-30 Tom Tromey <tromey@adacore.com>
13018
13019 * ada-valprint.c (print_variant_part): Update.
13020 * ada-lang.h (ada_which_variant_applies): Update.
13021 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13022 outer_valaddr parameters; replace with "outer" value parameter.
13023 (to_fixed_variant_branch_type): Update.
13024
13025 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13026
13027 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13028 <list>. Remove inclusion of observable.h.
13029 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13030 (struct arch_lwp_info): New struct.
13031 (class ppc_linux_dreg_interface): New class.
13032 (struct ppc_linux_process_info): New struct.
13033 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13034 <low_new_clone, low_forget_process, low_prepare_to_resume>
13035 <copy_thread_dreg_state, mark_thread_stale>
13036 <mark_debug_registers_changed, register_hw_breakpoint>
13037 <clear_hw_breakpoint, register_wp, clear_wp>
13038 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13039 <num_memory_accesses, get_trigger_type>
13040 <create_watchpoint_request, hwdebug_point_cmp>
13041 <init_arch_lwp_info, get_arch_lwp_info>
13042 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13043 methods.
13044 <struct ptid_hash>: New inner struct.
13045 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13046 members.
13047 (saved_dabr_value, hwdebug_info, max_slots_number)
13048 (struct hw_break_tuple, struct thread_points, ppc_threads)
13049 (have_ptrace_hwdebug_interface)
13050 (hwdebug_find_thread_points_by_tid)
13051 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13052 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13053 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13054 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13055 use m_dreg_interface.
13056 (hwdebug_point_cmp): Change to...
13057 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13058 reference arguments instead of pointers.
13059 (ppc_linux_nat_target::ranged_break_num_registers): Use
13060 m_dreg_interface.
13061 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13062 m_dreg_interface. Call register_hw_breakpoint.
13063 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13064 m_dreg_interface. Call clear_hw_breakpoint.
13065 (get_trigger_type): Change to...
13066 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13067 comment.
13068 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13069 use m_dreg_interface. Call register_hw_breakpoint.
13070 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13071 use m_dreg_interface. Call clear_hw_breakpoint.
13072 (can_use_watchpoint_cond_accel): Change to...
13073 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13074 method. Update comment, use m_dreg_interface and
13075 m_process_info.
13076 (calculate_dvc): Change to...
13077 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13078 m_dreg_interface.
13079 (num_memory_accesses): Change to...
13080 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13081 (check_condition): Change to...
13082 (ppc_linux_nat_target::check_condition): ...this method.
13083 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13084 comment, use m_dreg_interface.
13085 (create_watchpoint_request): Change to...
13086 (ppc_linux_nat_target::create_watchpoint_request): ...this
13087 method. Use m_dreg_interface.
13088 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13089 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13090 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13091 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13092 (ppc_linux_nat_target::low_forget_process)
13093 (ppc_linux_nat_target::low_new_fork)
13094 (ppc_linux_nat_target::low_new_clone)
13095 (ppc_linux_nat_target::low_delete_thread)
13096 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13097 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13098 only call mark_thread_stale.
13099 (ppc_linux_thread_exit): Remove.
13100 (ppc_linux_nat_target::stopped_data_address): Change to...
13101 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13102 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13103 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13104 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13105 comment. Call low_stopped_data_address.
13106 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13107 m_dreg_interface.
13108 (ppc_linux_nat_target::masked_watch_num_registers): Use
13109 m_dreg_interface.
13110 (ppc_linux_nat_target::copy_thread_dreg_state)
13111 (ppc_linux_nat_target::mark_thread_stale)
13112 (ppc_linux_nat_target::mark_debug_registers_changed)
13113 (ppc_linux_nat_target::register_hw_breakpoint)
13114 (ppc_linux_nat_target::clear_hw_breakpoint)
13115 (ppc_linux_nat_target::register_wp)
13116 (ppc_linux_nat_target::clear_wp)
13117 (ppc_linux_nat_target::init_arch_lwp_info)
13118 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13119 (_initialize_ppc_linux_nat): Remove observer callback.
13120
13121 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13122
13123 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13124 (ppc_linux_nat_target::auxv_parse)
13125 (ppc_linux_nat_target::read_description)
13126 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13127 Move up.
13128
13129 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13130
13131 * linux-nat.h (low_new_clone): New method.
13132 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13133
13134 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13135
13136 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13137 (dbx_expand_psymtab): ... this.
13138 (start_psymtab): Update.
13139 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13140 (mdebug_expand_psymtab): ... this.
13141 (parse_partial_symbols): Update.
13142 (new_psymtab): Update.
13143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13144 (xcoff_expand_psymtab): ... this.
13145 (xcoff_start_psymtab): Update.
13146
13147 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13148
13149 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13150 <expand_dependencies>: ... this.
13151 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13152 (partial_symtab::expand_dependencies): ... this.
13153 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13154 Update.
13155 (dwarf2_psymtab::expand_psymtab): Update.
13156 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13157 * mdebugread.c (psymtab_to_symtab_1): Update.
13158 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13159
13160 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13161
13162 * psympriv.h (discard_psymtab): Remove.
13163 * dbxread.c (dbx_end_psymtab): Update.
13164 * xcoffread.c (xcoff_end_psymtab): Update.
13165
13166 2020-03-28 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13169 comment.
13170
13171 2020-03-28 Tom Tromey <tom@tromey.com>
13172
13173 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13174
13175 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13176
13177 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13178
13179 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13180
13181 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13182
13183 2020-03-26 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13186 (mark_common_block_symbol_computed, read_tag_string_type)
13187 (attr_to_dynamic_prop, read_subrange_type): Update.
13188 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13189 to be methods on struct attribute.
13190 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13191 (read_call_site_scope, partial_die_info::read)
13192 (partial_die_info::read, lookup_die_type, follow_die_ref):
13193 Update.
13194 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13195 from dwarf2_get_ref_die_offset.
13196 (attribute::constant_value): New method, from
13197 dwarf2_get_attr_constant_value.
13198 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13199 Declare method.
13200 <constant_value>: New method.
13201
13202 2020-03-26 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13205 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13206 (dwarf_type_encoding_name): Move to stringify.c.
13207 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13208 * dwarf2/stringify.c: New file.
13209 * dwarf2/stringify.h: New file.
13210
13211 2020-03-26 Tom Tromey <tom@tromey.com>
13212
13213 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13214 Rewrite.
13215
13216 2020-03-26 Tom Tromey <tom@tromey.com>
13217
13218 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13219 methods.
13220 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13221 (lookup_ranges_base): Likewise.
13222 (read_cutu_die_from_dwo, read_full_die_1): Update.
13223
13224 2020-03-26 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2/read.c (read_import_statement, read_file_scope)
13227 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13228 (read_lexical_block_scope, read_call_site_scope)
13229 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13230 (handle_struct_member_die, process_structure_scope)
13231 (update_enumeration_type_from_children)
13232 (process_enumeration_scope, read_array_type, read_common_block)
13233 (read_namespace, read_module, read_subroutine_type): Update.
13234 (sibling_die): Remove.
13235
13236 2020-03-26 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13239 (build_type_psymtabs_reader, read_structure_type)
13240 (read_enumeration_type, read_full_die_1): Update.
13241 (dwarf2_attr_no_follow): Move to die.h.
13242 * dwarf2/die.h (struct die_info) <attr>: New method.
13243
13244 2020-03-26 Tom Tromey <tom@tromey.com>
13245
13246 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13247 <base_address>: Now an optional.
13248 (dwarf2_find_base_address, dwarf2_rnglists_process)
13249 (dwarf2_ranges_process, fill_in_loclist_baton)
13250 (dwarf2_symbol_mark_computed): Update.
13251
13252 2020-03-26 Tom Tromey <tom@tromey.com>
13253
13254 * dwarf2/read.c (struct die_info): Move to die.h.
13255 * dwarf2/die.h: New file.
13256
13257 2020-03-26 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13260 * dwarf2/read.c
13261 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13262 Move to line-header.c.
13263 (read_checked_initial_length_and_offset, read_formatted_entries):
13264 Likewise.
13265 (dwarf_decode_line_header): Split into two.
13266 * dwarf2/line-header.c
13267 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13268 Move from read.c.
13269 (read_checked_initial_length_and_offset, read_formatted_entries):
13270 Likewise.
13271 (dwarf_decode_line_header): New function, split from read.c.
13272
13273 2020-03-26 Tom Tromey <tom@tromey.com>
13274
13275 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13276 Declare method.
13277 * dwarf2/read.c (read_attribute_value): Update.
13278 (dwarf2_per_objfile::read_line_string): Rename from
13279 read_indirect_line_string.
13280 (read_formatted_entries): Update.
13281
13282 2020-03-26 Tom Tromey <tom@tromey.com>
13283
13284 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13285 variable.
13286
13287 2020-03-26 Tom Tromey <tom@tromey.com>
13288
13289 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13290 const.
13291 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13292 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13293 parameter const.
13294
13295 2020-03-26 Tom Tromey <tom@tromey.com>
13296
13297 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13298 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13299 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13300 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13301
13302 2020-03-26 Tom Tromey <tom@tromey.com>
13303
13304 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13305 file_names_size, file_full_name, file_file_name>: Use const.
13306 <file_name_at, file_names>: Add const overload.
13307 * dwarf2/line-header.c (line_header::file_file_name)
13308 (line_header::file_full_name): Update.
13309
13310 2020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13313 (macro_start_file, consume_improper_spaces)
13314 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13315 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13316 (dwarf_decode_macros): Move to macro.c.
13317 * dwarf2/macro.c: New file.
13318 * dwarf2/macro.h: New file.
13319 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13320
13321 2020-03-26 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13324 method.
13325 * dwarf2/section.c: New method. From
13326 read_indirect_string_at_offset_from.
13327 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13328 (read_indirect_string_at_offset_from): Move to section.c.
13329 (read_indirect_string_at_offset): Rewrite.
13330 (read_indirect_line_string_at_offset): Remove.
13331 (read_indirect_string, read_indirect_line_string)
13332 (dwarf_decode_macro_bytes): Update.
13333
13334 2020-03-26 Tom Tromey <tom@tromey.com>
13335
13336 * dwarf2/section.h (struct dwarf2_section_info)
13337 <overload_complaint>: Declare.
13338 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13339 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13340 Rename from dwarf2_section_buffer_overflow_complaint.
13341 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13342 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13343
13344 2020-03-26 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13347 Declare.
13348 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13349 Move from read.c.
13350 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13351 to section.c.
13352
13353 2020-03-26 Tom Tromey <tom@tromey.com>
13354
13355 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13356
13357 2020-03-26 Tom Tromey <tom@tromey.com>
13358
13359 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13360 "builder".
13361 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13362 parameter.
13363 (dwarf_decode_macros): Update.
13364
13365 2020-03-26 Tom Tromey <tom@tromey.com>
13366
13367 * dwarf2/read.c (read_attribute_value): Update.
13368 (read_indirect_string_from_dwz): Move to dwz.c; change into
13369 method.
13370 (dwarf_decode_macro_bytes): Update.
13371 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13372 * dwarf2/dwz.c: New file.
13373 * Makefile.in (COMMON_SFILES): Add dwz.c.
13374
13375 2020-03-26 Tom Tromey <tom@tromey.com>
13376
13377 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13378 * dwarf2/read.c: Add include.
13379 * dwarf2/index-write.c: Add include.
13380 * dwarf2/index-cache.c: Add include.
13381 * dwarf2/dwz.h: New file.
13382
13383 2020-03-25 Tom Tromey <tom@tromey.com>
13384
13385 * compile/compile-object-load.c (get_out_value_type): Mention
13386 correct symbol name in error message.
13387
13388 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13389
13390 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13391
13392 2020-03-25 Tom de Vries <tdevries@suse.de>
13393
13394 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13395 * symmisc.c (dump_symtab_1): Print user and includes fields.
13396 (maintenance_info_symtabs): Same.
13397
13398 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13399
13400 PR gdb/25534
13401 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13402 (riscv_regcache_cooked_write): New function.
13403 (riscv_push_dummy_call): Use new function.
13404 (riscv_return_value): Likewise.
13405
13406 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13407
13408 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13409 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13410 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13411 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13412 * infrun.c (follow_fork): Likewise.
13413 (follow_fork_inferior): Likewise.
13414 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13415 * linux-nat.h (class linux_nat_target): Likewise.
13416 * remote.c (class remote_target) <follow_fork>: Likewise.
13417 (remote_target::follow_fork): Likewise.
13418 * target-delegates.c: Re-generate.
13419 * target.c (default_follow_fork): Likewise.
13420 (target_follow_fork): Likewise.
13421 * target.h (struct target_ops) <follow_fork>: Likewise.
13422 (target_follow_fork): Likewise.
13423
13424 2020-03-24 Tom de Vries <tdevries@suse.de>
13425
13426 * psymtab.c (maintenance_info_psymtabs): Print user field.
13427
13428 2020-03-20 Tom Tromey <tromey@adacore.com>
13429
13430 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13431 const.
13432 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13433 const.
13434
13435 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13436
13437 * ptrace.m4: Don't check for ptrace declaration.
13438 * config.in: Re-generate.
13439 * configure: Re-generate.
13440 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13441 not defined.
13442
13443 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13444
13445 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13446 `PTRACE_TYPE_RET'.
13447 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13448 * sparc-nat.c (gdb_ptrace): Likewise.
13449 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13450
13451 2020-03-20 Tom Tromey <tromey@adacore.com>
13452
13453 * c-exp.y (lex_one_token): Fix assert.
13454
13455 2020-03-20 Tom Tromey <tromey@adacore.com>
13456
13457 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13458 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13459 strncpy call.
13460
13461 2020-03-20 Tom Tromey <tromey@adacore.com>
13462
13463 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13464
13465 2020-03-20 Tom Tromey <tromey@adacore.com>
13466
13467 * ada-valprint.c (print_variant_part): Remove parameters; switch
13468 to value-based API.
13469 (print_field_values): Likewise.
13470 (ada_val_print_struct_union): Likewise.
13471 (ada_value_print_1): Update.
13472
13473 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13474
13475 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13476 nbsd_nat_target instead of inf_ptrace_target.
13477 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13478 nbsd_nat_target.
13479
13480 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13481
13482 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13483 it to the ptrace call.
13484 * (store_registers): Likewise.
13485
13486 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13487
13488 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13489 it to the ptrace call.
13490 * (store_registers): Likewise.
13491
13492 2020-03-19 Luis Machado <luis.machado@linaro.org>
13493
13494 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13495 valid, fetch vg value from ptrace.
13496
13497 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13498 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13499 * inf-ptrace.c: Likewise.
13500 * (gdb_ptrace): Add.
13501 * (inf_ptrace_target::resume): Update.
13502 * (inf_ptrace_target::xfer_partial): Likewise.
13503 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13504 * (inf_ptrace_peek_poke): Update.
13505
13506 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13507
13508 * x86-bsd-nat.c (gdb_ptrace): New.
13509 * (x86bsd_dr_set): Add new argument `ptid'.
13510 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13511 x86bsd_dr_set_addr): Update.
13512
13513 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13514
13515 * remote.c (remote_target::process_stop_reply): Handle events for
13516 all threads differently.
13517
13518 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * completer.c (completion_tracker::remove_completion): Define new
13521 function.
13522 * completer.h (completion_tracker::remove_completion): Declare new
13523 function.
13524 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13525 when adding a C++ function symbol.
13526
13527 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13528
13529 * completer.c (completion_tracker::completion_hash_entry): Define
13530 new class.
13531 (advance_to_filename_complete_word_point): Call
13532 recompute_lowest_common_denominator.
13533 (completion_tracker::completion_tracker): Call discard_completions
13534 to setup the hash table.
13535 (completion_tracker::discard_completions): Allow for being called
13536 from the constructor, pass new equal function, and element deleter
13537 when constructing the hash table. Initialise new class member
13538 variables.
13539 (completion_tracker::maybe_add_completion): Remove use of
13540 m_entries_vec, and store more information into m_entries_hash.
13541 (completion_tracker::recompute_lcd_visitor): New function, most
13542 content taken from...
13543 (completion_tracker::recompute_lowest_common_denominator):
13544 ...here, this now just visits each item in the hash calling the
13545 above visitor.
13546 (completion_tracker::build_completion_result): Remove use of
13547 m_entries_vec, call recompute_lowest_common_denominator.
13548 * completer.h (completion_tracker::have_completions): Remove use
13549 of m_entries_vec.
13550 (completion_tracker::completion_hash_entry): Declare new class.
13551 (completion_tracker::recompute_lowest_common_denominator): Change
13552 function signature.
13553 (completion_tracker::recompute_lcd_visitor): Declare new function.
13554 (completion_tracker::m_entries_vec): Delete.
13555 (completion_tracker::m_entries_hash): Initialize to NULL.
13556 (completion_tracker::m_lowest_common_denominator_valid): New
13557 member variable.
13558 (completion_tracker::m_lowest_common_denominator_max_length): New
13559 member variable.
13560
13561 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13562
13563 * regformats/regdef.h: Put reg in gdb namespace.
13564
13565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13566
13567 * i386-bsd-nat.c (gdb_ptrace): New.
13568 * (i386bsd_fetch_inferior_registers,
13569 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13570 * (i386bsd_fetch_inferior_registers,
13571 i386bsd_store_inferior_registers) Use gdb_ptrace.
13572
13573 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13574
13575 * amd64-bsd-nat.c (gdb_ptrace): New.
13576 * (amd64bsd_fetch_inferior_registers,
13577 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13578 * (amd64bsd_fetch_inferior_registers,
13579 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13580
13581 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13582
13583 * user-regs.c (user_reg::read): Rename to...
13584 (user_reg::xread): ...this.
13585 * (append_user_reg): Rename argument `read' to `xread'.
13586 * (user_reg_add_builtin): Likewise.
13587 * (user_reg_add): Likewise.
13588 * (value_of_user_reg): Likewise.
13589
13590 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13591
13592 * sparc-nat.c (gdb_ptrace): New.
13593 * sparc-nat.c (sparc_fetch_inferior_registers)
13594 (sparc_store_inferior_registers) Remove obsolete comment.
13595 * sparc-nat.c (sparc_fetch_inferior_registers)
13596 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13597 * sparc-nat.c (sparc_fetch_inferior_registers)
13598 (sparc_store_inferior_registers) Use gdb_ptrace.
13599
13600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13601
13602 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13603 it to the ptrace call.
13604 * sh-nbsd-nat.c (store_registers): Likewise.
13605
13606 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13607
13608 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13609 nbsd_nat_target instead of inf_ptrace_target.
13610 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13611 nbsd_nat_target.
13612
13613 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13614
13615 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13616
13617 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13618
13619 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13620 <sys/sysctl.h>.
13621 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13622
13623 2020-03-17 Tom de Vries <tdevries@suse.de>
13624
13625 PR gdb/23710
13626 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13627 fields.
13628 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13629 fields.
13630 (process_imported_unit_die): Skip import of c++ CUs.
13631
13632 2020-03-16 Tom Tromey <tom@tromey.com>
13633
13634 * p-valprint.c (pascal_object_print_value): Initialize
13635 base_value.
13636
13637 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13638 Shahab Vahedi <shahab@synopsys.com>
13639
13640 * Makefile.in: Add arch/arc.o
13641 * configure.tgt: Likewise.
13642 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13643 (_initialize_arc_tdep): Don't initialize old target descriptions.
13644 (arc_read_description): New function to cache target descriptions.
13645 * arc-tdep.h (arc_read_description): Add proto type.
13646 * arch/arc.c: New file.
13647 * arch/arc.h: Likewise.
13648 * features/Makefile: Replace old target descriptions with new.
13649 * features/arc-arcompact.c: Remove.
13650 * features/arc-arcompact.xml: Likewise.
13651 * features/arc-v2.c: Likewise
13652 * features/arc-v2.xml: Likewise
13653 * features/arc/aux-arcompact.xml: New file.
13654 * features/arc/aux-v2.xml: Likewise.
13655 * features/arc/core-arcompact.xml: Likewise.
13656 * features/arc/core-v2.xml: Likewise.
13657 * features/arc/aux-arcompact.c: Generate.
13658 * features/arc/aux-v2.c: Likewise.
13659 * features/arc/core-arcompact.c: Likewise.
13660 * features/arc/core-v2.c: Likewise.
13661 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13662
13663 2020-03-16 Tom Tromey <tromey@adacore.com>
13664
13665 PR gdb/25663:
13666 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13667 putting value into bcache.
13668
13669 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13670
13671 PR gdb/21500
13672 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13673 to...
13674 (amd64_windows_init_abi_common): ... this. Don't set size of
13675 long type.
13676 (amd64_windows_init_abi): New function.
13677 (amd64_cygwin_init_abi): New function.
13678 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13679 the Cygwin OS ABI.
13680 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13681 comment.
13682
13683 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13684
13685 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13686 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13687 (pe_import_directory_entry): New struct type.
13688 (is_linked_with_cygwin_dll): New function.
13689 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13690 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13691 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13692
13693 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13694
13695 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13696 i386_cygwin_core_osabi_sniffer.
13697
13698 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13699
13700 * i386-cygwin-tdep.c: Rename to...
13701 * i386-windows-tdep.c: ... this.
13702 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13703 i386-windows-tdep.c.
13704 * configure.tgt: Likewise.
13705
13706 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13707
13708 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13709 * osabi.c (gdb_osabi_names): Add "Windows".
13710 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13711 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13712 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13713 i386_cygwin_osabi_sniffer.
13714 (_initialize_i386_cygwin_tdep): Register OS ABI
13715 GDB_OSABI_WINDOWS for i386.
13716 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13717 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13718 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13719 for x86-64.
13720 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13721 when the target matches '*-*-mingw*'.
13722
13723 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13724
13725 * defs.h (enum gdb_osabi): Move to...
13726 * osabi.h (enum gdb_osabi): ... here.
13727 * gdbarch.sh: Include osabi.h in gdbarch.h.
13728 * gdbarch.h: Re-generate.
13729
13730 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13733 function.
13734 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13735
13736 2020-03-14 Tom Tromey <tom@tromey.com>
13737
13738 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13739 for C++.
13740 (c_type_print_modifier): Likewise. Add "language" parameter.
13741 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13742 (c_type_print_base_1): Update.
13743 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13744 constants.
13745 * type-stack.c (type_stack::insert): Handle tp_atomic and
13746 tp_restrict.
13747 (type_stack::follow_type_instance_flags): Likewise.
13748 (type_stack::follow_types): Likewise. Merge type-following code.
13749 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13750 (space_identifier, cv_with_space_id)
13751 (const_or_volatile_or_space_identifier_noopt)
13752 (const_or_volatile_or_space_identifier): Remove.
13753 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13754 rules.
13755 (ptr_operator, typebase): Update.
13756 (enum token_flag) <FLAG_C>: New constant.
13757 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13758 "_Atomic".
13759 (lex_one_token): Handle FLAG_C.
13760
13761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13762
13763 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13764 it to the ptrace call.
13765 * m68k-bsd-nat.c (store_registers): Likewise.
13766
13767 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13768
13769 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13770 gdb_byte *.
13771 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13772 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13773 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13774
13775 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13776
13777 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13778 nbsd_nat_target instead of inf_ptrace_target.
13779 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13780 nbsd_nat_target.
13781
13782 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13783
13784 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13785 register_t.
13786
13787 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13788
13789 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13790 it to the ptrace call.
13791 * alpha-bsd-nat.c (store_registers): Likewise.
13792
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13794
13795 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13796 includes.
13797 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13798 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13799 fill_fpregset): Likewise.
13800
13801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13802
13803 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13804 nbsd_nat_target instead of inf_ptrace_target.
13805 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13806 nbsd_nat_target.
13807
13808 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13809
13810 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13811 register_t.
13812
13813 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13814
13815 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13816 it to the ptrace call.
13817 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13818 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13819 * arm-nbsd-nat.c (store_register): Likewise.
13820 * arm-nbsd-nat.c (store_regs): Likewise.
13821 * arm-nbsd-nat.c (store_fp_register): Likewise.
13822 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13823
13824 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13825
13826 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13827 nbsd_nat_target instead of inf_ptrace_target.
13828 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13829 nbsd_nat_target.
13830
13831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13832
13833 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13834 it to the ptrace call.
13835 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13836
13837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13838
13839 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13840 it to the ptrace call.
13841 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13842
13843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13844
13845 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13846 gdb_byte *.
13847 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13848
13849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13850
13851 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13852 instead of inf_ptrace_target.
13853 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13854 nbsd_nat_target.
13855
13856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13857
13858 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13859 register_t.
13860
13861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13862
13863 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13864 register_t.
13865
13866 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13867
13868 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13869 register_t.
13870
13871 2020-03-13 Tom Tromey <tom@tromey.com>
13872
13873 * value.h (val_print): Don't declare.
13874 * valprint.h (val_print_array_elements)
13875 (val_print_scalar_formatted, generic_val_print): Don't declare.
13876 * valprint.c (generic_val_print_array): Take a struct value.
13877 (generic_val_print_ptr, generic_val_print_memberptr)
13878 (generic_val_print_bool, generic_val_print_int)
13879 (generic_val_print_char, generic_val_print_complex)
13880 (generic_val_print): Remove.
13881 (generic_value_print): Update.
13882 (do_val_print): Remove unused parameters. Don't call
13883 la_val_print.
13884 (val_print): Remove.
13885 (common_val_print): Update. Don't call value_check_printable.
13886 (val_print_scalar_formatted, val_print_array_elements): Remove.
13887 * rust-lang.c (rust_val_print): Remove.
13888 (rust_language_defn): Update.
13889 * p-valprint.c (pascal_val_print): Remove.
13890 (pascal_value_print_inner): Update.
13891 (pascal_object_print_val_fields, pascal_object_print_val):
13892 Remove.
13893 (pascal_object_print_static_field): Update.
13894 * p-lang.h (pascal_val_print): Don't declare.
13895 * p-lang.c (pascal_language_defn): Update.
13896 * opencl-lang.c (opencl_language_defn): Update.
13897 * objc-lang.c (objc_language_defn): Update.
13898 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13899 * m2-lang.h (m2_val_print): Don't declare.
13900 * m2-lang.c (m2_language_defn): Update.
13901 * language.h (struct language_defn) <la_val_print>: Remove.
13902 * language.c (unk_lang_value_print_inner): Rename. Change
13903 argument types.
13904 (unknown_language_defn, auto_language_defn): Update.
13905 * go-valprint.c (go_val_print): Remove.
13906 * go-lang.h (go_val_print): Don't declare.
13907 * go-lang.c (go_language_defn): Update.
13908 * f-valprint.c (f_val_print): Remove.
13909 * f-lang.h (f_value_print): Don't declare.
13910 * f-lang.c (f_language_defn): Update.
13911 * d-valprint.c (d_val_print): Remove.
13912 * d-lang.h (d_value_print): Don't declare.
13913 * d-lang.c (d_language_defn): Update.
13914 * cp-valprint.c (cp_print_value_fields)
13915 (cp_print_value_fields_rtti, cp_print_value): Remove.
13916 (cp_print_static_field): Update.
13917 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13918 (c_val_print_struct, c_val_print_union, c_val_print_int)
13919 (c_val_print_memberptr, c_val_print): Remove.
13920 * c-lang.h (c_val_print_array, cp_print_value_fields)
13921 (cp_print_value_fields_rtti): Don't declare.
13922 * c-lang.c (c_language_defn, cplus_language_defn)
13923 (asm_language_defn, minimal_language_defn): Update.
13924 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13925 (ada_val_print_enum): Take a struct value.
13926 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13927 (ada_val_print): Remove.
13928 (ada_value_print_1): Update.
13929 (printable_val_type): Remove.
13930 * ada-lang.h (ada_val_print): Don't declare.
13931 * ada-lang.c (ada_language_defn): Update.
13932
13933 2020-03-13 Tom Tromey <tom@tromey.com>
13934
13935 * valprint.c (do_val_print): Update.
13936 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13937 a struct value.
13938 (value_to_value_object_no_release): Declare.
13939 * python/py-value.c (value_to_value_object_no_release): New
13940 function.
13941 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13942 struct value.
13943 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13944 function.
13945 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13946 a struct value.
13947 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13948 Declare.
13949 (gdbscm_apply_val_pretty_printer): Take a struct value.
13950 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13951 value.
13952 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13953 value.
13954 * extension-priv.h (struct extension_language_ops)
13955 <apply_val_pretty_printer>: Take a struct value.
13956 * cp-valprint.c (cp_print_value): Create a struct value.
13957 (cp_print_value): Update.
13958
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13960
13961 * ada-valprint.c (print_field_values): Call common_val_print.
13962
13963 2020-03-13 Tom Tromey <tom@tromey.com>
13964
13965 * ada-valprint.c (val_print_packed_array_elements): Remove
13966 bitoffset and val parameters. Call common_val_print.
13967 (ada_val_print_string): Remove offset, address, and original_value
13968 parameters.
13969 (ada_val_print_array): Update.
13970 (ada_value_print_array): New function.
13971 (ada_value_print_1): Call it.
13972
13973 2020-03-13 Tom Tromey <tom@tromey.com>
13974
13975 * ada-valprint.c (ada_value_print): Use common_val_print.
13976
13977 2020-03-13 Tom Tromey <tom@tromey.com>
13978
13979 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13980
13981 2020-03-13 Tom Tromey <tom@tromey.com>
13982
13983 * ada-valprint.c (ada_value_print_num): New function.
13984 (ada_value_print_1): Use it.
13985
13986 2020-03-13 Tom Tromey <tom@tromey.com>
13987
13988 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13989
13990 2020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * ada-valprint.c (ada_value_print_ptr): New function.
13993 (ada_value_print_1): Use it.
13994
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13998 call common_val_print.
13999 (ada_val_print_1): Update.
14000 (ada_value_print_1): New function.
14001 (ada_value_print_inner): Rewrite.
14002
14003 2020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * cp-valprint.c (cp_print_value_fields): Update.
14006 (cp_print_value): New function.
14007
14008 2020-03-13 Tom Tromey <tom@tromey.com>
14009
14010 * m2-valprint.c (m2_value_print_inner): Use
14011 cp_print_value_fields.
14012 * cp-valprint.c (cp_print_value_fields): New function.
14013 * c-valprint.c (c_value_print_struct): New function.
14014 (c_value_print_inner): Use c_value_print_struct.
14015 * c-lang.h (cp_print_value_fields): Declare.
14016
14017 2020-03-13 Tom Tromey <tom@tromey.com>
14018
14019 * c-valprint.c (c_value_print_array): New function.
14020 (c_value_print_inner): Use it.
14021
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14023
14024 * c-valprint.c (c_value_print_memberptr): New function.
14025 (c_value_print_inner): Use it.
14026
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * c-valprint.c (c_value_print_int): New function.
14030 (c_value_print_inner): Use it.
14031
14032 2020-03-13 Tom Tromey <tom@tromey.com>
14033
14034 * c-valprint.c (c_value_print_ptr): New function.
14035 (c_value_print_inner): Use it.
14036
14037 2020-03-13 Tom Tromey <tom@tromey.com>
14038
14039 * c-valprint.c (c_value_print_inner): Rewrite.
14040
14041 2020-03-13 Tom Tromey <tom@tromey.com>
14042
14043 * valprint.c (generic_value_print_complex): New function.
14044 (generic_value_print): Use it.
14045
14046 2020-03-13 Tom Tromey <tom@tromey.com>
14047
14048 * valprint.c (generic_val_print_float): Don't call
14049 val_print_scalar_formatted.
14050 (generic_val_print, generic_value_print): Update.
14051
14052 2020-03-13 Tom Tromey <tom@tromey.com>
14053
14054 * valprint.c (generic_value_print_char): New function
14055 (generic_value_print): Use it.
14056
14057 2020-03-13 Tom Tromey <tom@tromey.com>
14058
14059 * valprint.c (generic_value_print_int): New function.
14060 (generic_value_print): Use it.
14061
14062 2020-03-13 Tom Tromey <tom@tromey.com>
14063
14064 * valprint.c (generic_value_print_bool): New function.
14065 (generic_value_print): Use it.
14066
14067 2020-03-13 Tom Tromey <tom@tromey.com>
14068
14069 * valprint.c (generic_val_print_func): Simplify.
14070 (generic_val_print, generic_value_print): Update.
14071
14072 2020-03-13 Tom Tromey <tom@tromey.com>
14073
14074 * valprint.c (generic_val_print_flags): Remove.
14075 (generic_val_print, generic_value_print): Update.
14076 (val_print_type_code_flags): Add original_value parameter.
14077
14078 2020-03-13 Tom Tromey <tom@tromey.com>
14079
14080 * valprint.c (generic_val_print): Update.
14081 (generic_value_print): Update.
14082 * valprint.c (generic_val_print_enum): Don't call
14083 val_print_scalar_formatted.
14084
14085 2020-03-13 Tom Tromey <tom@tromey.com>
14086
14087 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14088 * valprint.c (generic_value_print_ptr): New function.
14089
14090 2020-03-13 Tom Tromey <tom@tromey.com>
14091
14092 * valprint.c (generic_value_print): Rewrite.
14093
14094 2020-03-13 Tom Tromey <tom@tromey.com>
14095
14096 * p-valprint.c (pascal_object_print_value_fields)
14097 (pascal_object_print_value): New functions.
14098
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14100
14101 * p-valprint.c (pascal_value_print_inner): Rewrite.
14102
14103 2020-03-13 Tom Tromey <tom@tromey.com>
14104
14105 * f-valprint.c (f_value_print_innner): Rewrite.
14106
14107 2020-03-13 Tom Tromey <tom@tromey.com>
14108
14109 * m2-valprint.c (m2_print_unbounded_array): New overload.
14110 (m2_print_unbounded_array): Update.
14111 (m2_print_array_contents): Take a struct value.
14112 (m2_value_print_inner): Rewrite.
14113
14114 2020-03-13 Tom Tromey <tom@tromey.com>
14115
14116 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14117 (d_value_print_inner): New function.
14118 * d-lang.h (d_value_print_inner): Declare.
14119 * d-lang.c (d_language_defn): Use d_value_print_inner.
14120
14121 2020-03-13 Tom Tromey <tom@tromey.com>
14122
14123 * go-valprint.c (go_value_print_inner): New function.
14124 * go-lang.h (go_value_print_inner): Declare.
14125 * go-lang.c (go_language_defn): Use go_value_print_inner.
14126
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14130 API.
14131 (rust_val_print): Rewrite.
14132 (rust_value_print_inner): New function, from rust_val_print.
14133 (rust_language_defn): Use rust_value_print_inner.
14134
14135 2020-03-13 Tom Tromey <tom@tromey.com>
14136
14137 * ada-valprint.c (ada_value_print_inner): New function.
14138 * ada-lang.h (ada_value_print_inner): Declare.
14139 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14140
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14142
14143 * f-valprint.c (f_value_print_innner): New function.
14144 * f-lang.h (f_value_print_innner): Declare.
14145 * f-lang.c (f_language_defn): Use f_value_print_innner.
14146
14147 2020-03-13 Tom Tromey <tom@tromey.com>
14148
14149 * p-valprint.c (pascal_value_print_inner): New function.
14150 * p-lang.h (pascal_value_print_inner): Declare.
14151 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14152
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14154
14155 * m2-valprint.c (m2_value_print_inner): New function.
14156 * m2-lang.h (m2_value_print_inner): Declare.
14157 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14162 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14163 * c-valprint.c (c_value_print_inner): New function.
14164 * c-lang.h (c_value_print_inner): Declare.
14165 * c-lang.c (c_language_defn, cplus_language_defn)
14166 (asm_language_defn, minimal_language_defn): Use
14167 c_value_print_inner.
14168
14169 2020-03-13 Tom Tromey <tom@tromey.com>
14170
14171 * p-valprint.c (pascal_object_print_value_fields): Now static.
14172 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14173
14174 2020-03-13 Tom Tromey <tom@tromey.com>
14175
14176 * c-valprint.c (c_val_print_array): Simplify.
14177
14178 2020-03-13 Tom Tromey <tom@tromey.com>
14179
14180 * valprint.c (value_print_array_elements): New function.
14181 * valprint.h (value_print_array_elements): Declare.
14182
14183 2020-03-13 Tom Tromey <tom@tromey.com>
14184
14185 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14186 * mips-tdep.c (mips_print_register): Use
14187 value_print_scalar_formatted.
14188
14189 2020-03-13 Tom Tromey <tom@tromey.com>
14190
14191 * valprint.h (value_print_scalar_formatted): Declare.
14192 * valprint.c (value_print_scalar_formatted): New function.
14193
14194 2020-03-13 Tom Tromey <tom@tromey.com>
14195
14196 * valprint.h (generic_value_print): Declare.
14197 * valprint.c (generic_value_print): New function.
14198
14199 2020-03-13 Tom Tromey <tom@tromey.com>
14200
14201 * valprint.c (do_val_print): Call la_value_print_inner, if
14202 available.
14203 * rust-lang.c (rust_language_defn): Update.
14204 * p-lang.c (pascal_language_defn): Update.
14205 * opencl-lang.c (opencl_language_defn): Update.
14206 * objc-lang.c (objc_language_defn): Update.
14207 * m2-lang.c (m2_language_defn): Update.
14208 * language.h (struct language_defn) <la_value_print_inner>: New
14209 member.
14210 * language.c (unknown_language_defn, auto_language_defn): Update.
14211 * go-lang.c (go_language_defn): Update.
14212 * f-lang.c (f_language_defn): Update.
14213 * d-lang.c (d_language_defn): Update.
14214 * c-lang.c (c_language_defn, cplus_language_defn)
14215 (asm_language_defn, minimal_language_defn): Update.
14216 * ada-lang.c (ada_language_defn): Update.
14217
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14219
14220 * c-valprint.c (c_value_print): Use common_val_print.
14221
14222 2020-03-13 Tom Tromey <tom@tromey.com>
14223
14224 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14225
14226 2020-03-13 Tom Tromey <tom@tromey.com>
14227
14228 * f-valprint.c (f77_print_array_1, f_val_print): Use
14229 common_val_print.
14230
14231 2020-03-13 Tom Tromey <tom@tromey.com>
14232
14233 * riscv-tdep.c (riscv_print_one_register_info): Use
14234 common_val_print.
14235
14236 2020-03-13 Tom Tromey <tom@tromey.com>
14237
14238 * mi/mi-main.c (output_register): Use common_val_print.
14239
14240 2020-03-13 Tom Tromey <tom@tromey.com>
14241
14242 * infcmd.c (default_print_one_register_info): Use
14243 common_val_print.
14244
14245 2020-03-13 Tom Tromey <tom@tromey.com>
14246
14247 * valprint.h (common_val_print_checked): Declare.
14248 * valprint.c (common_val_print_checked): New function.
14249 * stack.c (print_frame_arg): Use common_val_print_checked.
14250
14251 2020-03-13 Tom Tromey <tom@tromey.com>
14252
14253 * valprint.c (do_val_print): New function, from val_print.
14254 (val_print): Use do_val_print.
14255 (common_val_print): Use do_val_print.
14256
14257 2020-03-13 Tom Tromey <tom@tromey.com>
14258
14259 * valprint.c (value_print): Use scoped_value_mark.
14260
14261 2020-03-13 Tom de Vries <tdevries@suse.de>
14262
14263 PR symtab/25646
14264 * psymtab.c (partial_symtab::partial_symtab): Don't set
14265 globals_offset and statics_offset. Push element onto
14266 current_global_psymbols and current_static_psymbols stacks.
14267 (concat): New function.
14268 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14269 element from current_global_psymbols and current_static_psymbols
14270 stacks. Concat popped elements to global_psymbols and
14271 static_symbols.
14272 (add_psymbol_to_list): Use current_global_psymbols and
14273 current_static_psymbols stacks.
14274 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14275 current_static_psymbols fields.
14276
14277 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14278
14279 * corelow.c (sniff_core_bfd): Remove.
14280 (class core_target) <m_core_vec>: Remove.
14281 (core_target::core_target): Update.
14282 (core_file_fns): Remove.
14283 (deprecated_add_core_fns): Remove.
14284 (default_core_sniffer): Remove.
14285 (sniff_core_bfd): Remove.
14286 (default_check_format): Remove.
14287 (gdb_check_format): Remove.
14288 (core_target_open): Update.
14289 (core_target::get_core_register_section): Update.
14290 (get_core_registers_cb): Update.
14291 (core_target::fetch_registers): Update.
14292 * gdbcore.h (struct core_fns): Remove.
14293 (deprecated_add_core_fns): Remove.
14294 (default_core_sniffer): Remove.
14295 (default_check_format): Remove.
14296
14297 2020-03-12 Tom Tromey <tom@tromey.com>
14298
14299 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14300 CORE_ADDR.
14301 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14302
14303 2020-03-12 Tom Tromey <tom@tromey.com>
14304
14305 * remote.c (remote_target::download_tracepoint)
14306 (remote_target::enable_tracepoint)
14307 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14308 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14309 sprintf_vma.
14310
14311 2020-03-12 Tom Tromey <tom@tromey.com>
14312
14313 * symfile-mem.c: Update CORE_ADDR size assert.
14314
14315 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14316
14317 * selftest.m4: Move to gdbsupport/.
14318 * acinclude.m4: Update path to selftest.m4.
14319
14320 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14321
14322 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14323 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14324 gdbarch-selfselftests.c and selftest-arch.c.
14325 (SUBDIR_UNITTESTS_OBS): Rename to...
14326 (SELFTESTS_OBS): ... this.
14327 (COMMON_SFILES): Remove disasm-selftests.c and
14328 gdbarch-selftests.c.
14329 * configure.ac: Don't add selftest-arch.{c,o} to
14330 CONFIG_{SRCS,OBS}.
14331 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14332 preprocessor conditions.
14333
14334 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * configure.ac: Don't source bfd/development.sh.
14337 * selftest.m4: Modify comment.
14338 * configure: Re-generate.
14339
14340 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14343 not "true" or "false".
14344 * configure: Re-generate.
14345
14346 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14347
14348 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14349 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14350 renamed to arm_nbsd_supply_gregset.
14351 (fetch_register): Update to call arm_nbsd_supply_gregset.
14352 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14353 (arm_netbsd_nat_target::fetch_registers): Update.
14354 (fetch_elfcore_registers): Removed.
14355 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14356 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14357 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14358 not require NetBSD system headers.
14359 (arm_nbsd_regset): New struct.
14360 (arm_nbsd_iterate_over_regset_sections): New function.
14361 (arm_netbsd_init_abi_common): Updated to call
14362 set_gdbarch_iterate_over_regset_sections.
14363 * arm-nbsd-tdep.h: New file.
14364
14365 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14366
14367 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14368 recursion.
14369
14370 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14371
14372 * configure: Re-generate.
14373
14374 2020-03-11 Tom Tromey <tromey@adacore.com>
14375
14376 * ada-typeprint.c (print_choices): Fix comment.
14377
14378 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14379
14380 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14381 previous item in the list, when the list has no items.
14382
14383 2020-03-11 Tom de Vries <tdevries@suse.de>
14384
14385 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14386 PROP_LOCLIST handling code.
14387
14388 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14389
14390 * buildsym-legacy.c (record_line): Pass extra parameter to
14391 record_line.
14392 * buildsym.c (buildsym_compunit::record_line): Take an extra
14393 parameter, reduce duplication in the line table, and record the
14394 is_stmt flag in the line table.
14395 * buildsym.h (buildsym_compunit::record_line): Add extra
14396 parameter.
14397 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14398 non-statement lines.
14399 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14400 this to the symtab builder.
14401 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14402 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14403 through to dwarf_record_line_1.
14404 * infrun.c (process_event_stop_test): When stepping, don't stop at
14405 a non-statement instruction, and only refresh the step info when
14406 we land in the middle of a line's range. Also add an extra
14407 comment.
14408 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14409 field.
14410 * record-btrace.c (btrace_find_line_range): Only record lines
14411 marked as is-statement.
14412 * stack.c (frame_show_address): Show the frame address if we are
14413 in a non-statement sal.
14414 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14415 (maintenance_print_one_line_table): Print a header for the is_stmt
14416 column, and include is_stmt information in the output.
14417 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14418 preference to non-statements.
14419 (find_pcs_for_symtab_line): Prefer is-statement entries.
14420 (find_line_common): Likewise.
14421 * symtab.h (struct linetable_entry): Add is_stmt field.
14422 (struct symtab_and_line): Likewise.
14423 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14424 arranging the line table.
14425
14426 2020-03-07 Tom de Vries <tdevries@suse.de>
14427
14428 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14429 DIE.
14430
14431 2020-03-07 Tom Tromey <tom@tromey.com>
14432
14433 * valops.c (value_literal_complex): Remove obsolete comment.
14434 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14435 comment.
14436
14437 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14438
14439 * infrun.h: Forward-declare thread_info.
14440 (set_step_info): Add thread_info parameter, add doc.
14441 * infrun.c (set_step_info): Add thread_info parameter, move doc
14442 to header.
14443 * infrun.c (process_event_stop_test): Pass thread to
14444 set_step_info call.
14445 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14446 set_step_info.
14447 (prepare_one_step): Add thread_info parameter, pass it to
14448 set_step_frame and prepare_one_step (recursive) call.
14449 (step_1): Pass thread to prepare_one_step call.
14450 (step_command_fsm::should_stop): Pass thread to
14451 prepare_one_step.
14452 (until_next_fsm): Pass thread to set_step_frame call.
14453 (finish_command): Pass thread to set_step_info call.
14454
14455 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14456
14457 * windows-tdep.c (windows_solib_create_inferior_hook):
14458 Check if inferior is running.
14459
14460 2020-03-06 Tom de Vries <tdevries@suse.de>
14461
14462 * NEWS: Fix "the the".
14463 * ctfread.c: Same.
14464
14465 2020-03-06 Tom de Vries <tdevries@suse.de>
14466
14467 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14468
14469 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14470
14471 * .dir-locals.el: Add a comment referencing the other copies of
14472 this file.
14473
14474 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14475
14476 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14477 psargs.
14478
14479 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14480
14481 * .gitattributes: New file.
14482
14483 2020-03-04 Tom Tromey <tom@tromey.com>
14484
14485 * symmisc.c (print_symbol_bcache_statistics)
14486 (print_objfile_statistics): Update.
14487 * symfile.c (allocate_symtab): Use intern.
14488 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14489 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14490 macro_cache>: Remove.
14491 <string_cache>: New member.
14492 (struct objfile) <intern>: New methods.
14493 * elfread.c (elf_symtab_read): Use intern.
14494 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14495 (dwarf2_compute_name, dwarf2_physname)
14496 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14497 names.
14498 (guess_partial_die_structure_name): Update.
14499 (partial_die_info::fixup): Intern name.
14500 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14501 name.
14502 (dwarf2_name): Intern name. Update.
14503 * buildsym.c (buildsym_compunit::get_macro_table): Use
14504 string_cache.
14505
14506 2020-03-04 Tom Tromey <tom@tromey.com>
14507
14508 * jit.c (bfd_open_from_target_memory): Make "target" const.
14509 * corefile.c (gnutarget): Now const.
14510 * gdbcore.h (gnutarget): Now const.
14511
14512 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14513
14514 * NEWS: Mention support for WOW64 processes.
14515 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14516 (amd64_windows_segment_register_p): Remove static.
14517 (_initialize_amd64_windows_nat): Update.
14518 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14519 * i386-windows-nat.c (context_offset): Update.
14520 (i386_mappings): Rename and remove static.
14521 (i386_windows_segment_register_p): Remove static.
14522 (_initialize_i386_windows_nat): Update.
14523 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14524 (STATUS_WX86_SINGLE_STEP): New macro.
14525 (EnumProcessModulesEx): New macro.
14526 (Wow64SuspendThread): New macro.
14527 (Wow64GetThreadContext): New macro.
14528 (Wow64SetThreadContext): New macro.
14529 (Wow64GetThreadSelectorEntry): New macro.
14530 (windows_set_context_register_offsets): Add static.
14531 (windows_set_segment_register_p): Likewise.
14532 (windows_add_thread): Adapt for WOW64 processes.
14533 (windows_fetch_one_register): Likewise.
14534 (windows_nat_target::fetch_registers): Likewise.
14535 (windows_store_one_register): Likewise.
14536 (display_selector): Likewise.
14537 (display_selectors): Likewise.
14538 (handle_exception): Likewise.
14539 (windows_continue): Likewise.
14540 (windows_nat_target::resume): Likewise.
14541 (windows_add_all_dlls): Likewise.
14542 (do_initial_windows_stuff): Likewise.
14543 (windows_nat_target::attach): Likewise.
14544 (windows_get_exec_module_filename): Likewise.
14545 (windows_nat_target::create_inferior): Likewise.
14546 (windows_xfer_siginfo): Likewise.
14547 (_initialize_loadable): Initialize Wow64SuspendThread,
14548 Wow64GetThreadContext, Wow64SetThreadContext,
14549 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14550 * windows-nat.h (windows_set_context_register_offsets):
14551 Remove declaration.
14552 (windows_set_segment_register_p): Likewise.
14553 (i386_windows_segment_register_p): Add declaration.
14554 (amd64_windows_segment_register_p): Likewise.
14555
14556 2020-03-04 Luis Machado <luis.machado@linaro.org>
14557
14558 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14559 in "info registers" for AArch64/ARM.
14560
14561 The change caused "info registers" to not print GPR's.
14562
14563 gdb/ChangeLog:
14564
14565 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14566
14567 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14568 when reg->group is empty and reggroup is not.
14569
14570 2020-03-03 Tom Tromey <tromey@adacore.com>
14571
14572 * dwarf2/frame.c (struct dwarf2_frame_cache)
14573 <checked_tailcall_bottom, entry_cfa_sp_offset,
14574 entry_cfa_sp_offset_p>: Remove members.
14575 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14576 (dwarf2_frame_prev_register): Don't call
14577 dwarf2_tailcall_sniffer_first.
14578 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14579 * frame-unwind.c (add_unwinder): New fuction.
14580 (frame_unwind_init): Use it. Add tailcall unwinder.
14581
14582 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14583 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14584
14585 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14586 value should be printed as true.
14587
14588 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14589
14590 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14591 (windows_init_abi): Set and use windows_so_ops.
14592
14593 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14594
14595 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14596 when verifying if dealing with a convenience variable.
14597
14598 2020-03-03 Luis Machado <luis.machado@linaro.org>
14599
14600 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14601
14602 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14603
14604 * infrun.c (gdbarch_supports_displaced_stepping): New.
14605 (use_displaced_stepping): Break up conditions in smaller pieces.
14606 Use gdbarch_supports_displaced_stepping.
14607 (displaced_step_prepare_throw): Use
14608 gdbarch_supports_displaced_stepping.
14609
14610 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14611
14612 * NEWS: Mention new behaviour of the history filename.
14613 * top.c (write_history_p): Add comment.
14614 (show_write_history_p): Add header comment, give a different
14615 message when history writing is on, but the history filename is
14616 empty.
14617 (history_filename): Add comment.
14618 (history_filename_empty): New function.
14619 (show_history_filename): Add header comment, give a different
14620 message when the filename is empty.
14621 (init_history): Compare history_filename against nullptr, and only
14622 read history if the filename is not empty.
14623 (set_history_filename): Add header comment, and only make
14624 non-empty filenames absolute.
14625 (init_main): Make the filename argument to 'set history filename'
14626 optional.
14627
14628 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14629
14630 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14631 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14632 (fetch_fp_register): Update.
14633 (fetch_fp_regs): Update.
14634 (store_fp_register): Update.
14635 (store_fp_regs): Update.
14636 (arm_netbsd_nat_target::read_description): New function.
14637 (fetch_elfcore_registers): Update.
14638
14639 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14640
14641 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14642 general_thread if the stop reply is missing a thread-id.
14643 (remote_target::process_stop_reply): Use the first non-exited
14644 thread if the target didn't pass a thread-id.
14645 * infrun.c (do_target_wait): Move call to
14646 switch_to_inferior_no_thread to ....
14647 (do_target_wait_1): ... here.
14648
14649 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14650
14651 * debuginfod-support.c: Include defs.h first.
14652
14653 2020-02-28 Tom de Vries <tdevries@suse.de>
14654
14655 * symfile.c (set_initial_language): Use default language for lookup.
14656
14657 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14658
14659 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14660 reader variable, pass `this` to read_cutu_die_from_dwo.
14661
14662 2020-02-27 Aaron Merey <amerey@redhat.com>
14663
14664 * source.c (open_source_file): Check for nullptr when computing
14665 srcpath.
14666
14667 2020-02-27 Tom Tromey <tromey@adacore.com>
14668
14669 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14670 member.
14671 (dwarf2_add_field): Don't update nfields.
14672 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14673
14674 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14675
14676 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14677 abs.
14678
14679 2020-02-26 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14682 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14683 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14684 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14685 per_cu_data.
14686
14687 2020-02-26 Tom Tromey <tom@tromey.com>
14688
14689 * dwarf2/index-write.c (psym_index_map): Change type.
14690 (add_address_entry_worker, write_one_signatured_type)
14691 (recursively_count_psymbols, recursively_write_psymbols)
14692 (class debug_names, psyms_seen_size, write_gdbindex)
14693 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14694
14695 2020-02-26 Aaron Merey <amerey@redhat.com>
14696
14697 * Makefile.in: Handle optional debuginfod support.
14698 * NEWS: Update.
14699 * README: Add --with-debuginfod summary.
14700 * config.in: Regenerate.
14701 * configure: Regenerate.
14702 * configure.ac: Handle optional debuginfod support.
14703 * debuginfod-support.c: debuginfod helper functions.
14704 * debuginfod-support.h: Ditto.
14705 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14706 summary.
14707 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14708 when a dwz file cannot be found.
14709 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14710 debuginfo file cannot be found.
14711 * source.c (open_source_file): Query debuginfod servers when a
14712 source file cannot be found.
14713 * top.c (print_gdb_configuration): Include
14714 --{with,without}-debuginfod in the output.
14715
14716 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14717
14718 * thread.c (thr_try_catch_cmd): Print thread name.
14719
14720 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14721
14722 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14723 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14724 dwarf2_fetch_die_type_sect_off): Move to...
14725 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14726 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14727 dwarf2_fetch_die_type_sect_off): ... here.
14728 * dwarf2/read.c (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 doc to header file.
14731
14732 2020-02-26 Tom de Vries <tdevries@suse.de>
14733
14734 PR gdb/25603
14735 * symfile.c (set_initial_language): Exit-early if
14736 language_mode == language_mode_manual.
14737
14738 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14739
14740 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14741 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14742 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14743
14744 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14745
14746 * gdbtypes.c (create_array_type_with_stride): Handle negative
14747 array strides.
14748 * valarith.c (value_subscripted_rvalue): Likewise.
14749
14750 2020-02-25 Luis Machado <luis.machado@linaro.org>
14751
14752 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14753
14754 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14755
14756 * loc.h (dwarf2_get_die_type): Move to...
14757 * read.h (dwarf2_get_die_type): ... here.
14758 * read.c (dwarf2_get_die_type): Move doc to header.
14759
14760 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14761
14762 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14763 'gnulib/Makefile.in' to the list.
14764
14765 2020-02-24 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14768 Remove.
14769 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14770 XOBNEWVEC.
14771
14772 2020-02-24 Tom Tromey <tom@tromey.com>
14773
14774 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14775 New method.
14776 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14777 (dw2_do_instantiate_symtab, dw2_get_file_names)
14778 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14779
14780 2020-02-24 Tom Tromey <tom@tromey.com>
14781
14782 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14783 make_scoped_restore.
14784 (dwarf2_psymtab::read_symtab): Don't clear
14785 reading_partial_symbols.
14786
14787 2020-02-24 Tom de Vries <tdevries@suse.de>
14788
14789 PR gdb/25592
14790 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14791
14792 2020-02-24 Tom de Vries <tdevries@suse.de>
14793
14794 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14795 commands layout next/prev/regs.
14796
14797 2020-02-22 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14800 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14801
14802 2020-02-22 Tom Tromey <tom@tromey.com>
14803
14804 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14805
14806 2020-02-22 Tom Tromey <tom@tromey.com>
14807
14808 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14809 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14810 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14811 * tui/tui.c (_initialize_tui): Add usage text.
14812
14813 2020-02-22 Tom Tromey <tom@tromey.com>
14814
14815 * tui/tui-win.c (tui_set_focus_command)
14816 (tui_set_win_height_command): Use error_no_arg.
14817 (_initialize_tui_win): Update help text.
14818 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14819
14820 2020-02-22 Tom Tromey <tom@tromey.com>
14821
14822 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14823 * tui/tui-disasm.h (struct tui_disasm_window)
14824 <display_start_addr>: Declare.
14825 * tui/tui-source.h (struct tui_source_window)
14826 <display_start_addr>: Declare.
14827 * tui/tui-winsource.h (struct tui_source_window_base)
14828 <show_source_line, display_start_addr>: New methods.
14829 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14830 Rename and move to protected section.
14831 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14832 (tui_source_window_base::do_erase_source_content): Update.
14833 (tui_source_window_base::show_source_line): Now a method.
14834 (tui_source_window_base::show_source_content)
14835 (tui_source_window_base::tui_source_window_base)
14836 (tui_source_window_base::rerender)
14837 (tui_source_window_base::refill)
14838 (tui_source_window_base::do_scroll_horizontal)
14839 (tui_source_window_base::set_is_exec_point_at)
14840 (tui_source_window_base::update_breakpoint_info)
14841 (tui_source_window_base::update_exec_info): Update.
14842 * tui/tui-source.c (tui_source_window::set_contents)
14843 (tui_source_window::showing_source_p)
14844 (tui_source_window::do_scroll_vertical)
14845 (tui_source_window::location_matches_p)
14846 (tui_source_window::line_is_displayed): Update.
14847 (tui_source_window::display_start_addr): New method.
14848 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14849 (tui_disasm_window::do_scroll_vertical)
14850 (tui_disasm_window::location_matches_p): Update.
14851 (tui_disasm_window::display_start_addr): New method.
14852
14853 2020-02-22 Tom Tromey <tom@tromey.com>
14854
14855 * NEWS: Add entry for gdb.register_window_type.
14856 * tui/tui-layout.h (window_factory): New typedef.
14857 (tui_register_window): Declare.
14858 * tui/tui-layout.c (saved_tui_windows): New global.
14859 (tui_apply_current_layout): Use it.
14860 (tui_register_window): New function.
14861 * python/python.c (do_start_initialization): Call
14862 gdbpy_initialize_tui.
14863 (python_GdbMethods): Add "register_window_type" function.
14864 * python/python-internal.h (gdbpy_register_tui_window)
14865 (gdbpy_initialize_tui): Declare.
14866 * python/py-tui.c: New file.
14867 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14868
14869 2020-02-22 Tom Tromey <tom@tromey.com>
14870
14871 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14872
14873 2020-02-22 Tom Tromey <tom@tromey.com>
14874
14875 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14876 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14877 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14878 (tui_set_win_focus_to): Move from tui-win.c.
14879
14880 2020-02-22 Tom Tromey <tom@tromey.com>
14881
14882 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14883 functions.
14884 (known_window_types): New global.
14885 (tui_get_window_by_name): Reimplement.
14886 (initialize_known_windows): New function.
14887 (validate_window_name): Rewrite.
14888 (_initialize_tui_layout): Call initialize_known_windows.
14889
14890 2020-02-22 Tom Tromey <tom@tromey.com>
14891
14892 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14893 Remove constants.
14894 * tui/tui-winsource.h (struct tui_source_window_base)
14895 <tui_source_window_base>: Remove parameter.
14896 * tui/tui-winsource.c
14897 (tui_source_window_base::tui_source_window_base): Remove
14898 parameter.
14899 (tui_source_window_base::refill): Update.
14900 * tui/tui-stack.h (struct tui_locator_window)
14901 <tui_locator_window>: Update.
14902 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14903 Default the constructor.
14904 * tui/tui-regs.h (struct tui_data_item_window)
14905 <tui_data_item_window>: Default the constructor.
14906 (struct tui_data_window) <tui_data_window>: Likewise.
14907 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14908 Default the constructor.
14909 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14910 Default the constructor.
14911 <type>: Remove.
14912 (struct tui_win_info) <tui_win_info>: Default the constructor.
14913 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14914 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14915 Default the constructor.
14916
14917 2020-02-22 Tom Tromey <tom@tromey.com>
14918
14919 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14920 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14921 * tui/tui-win.c (tui_resize_all): Don't call
14922 tui_delete_invisible_windows.
14923 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14924 done.
14925 (tui_set_layout): Update.
14926 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14927 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14928 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14929
14930 2020-02-22 Tom Tromey <tom@tromey.com>
14931
14932 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14933 correctly.
14934
14935 2020-02-22 Tom Tromey <tom@tromey.com>
14936
14937 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14938
14939 2020-02-22 Tom Tromey <tom@tromey.com>
14940
14941 * tui/tui-winsource.h (struct tui_source_window_iterator)
14942 <inner_iterator>: New etytypedef.
14943 <tui_source_window_iterator>: Take "end" parameter.
14944 <tui_source_window_iterator>: Take iterator.
14945 <operator*, advance>: Update.
14946 <m_iter>: Change type.
14947 <m_end>: New field.
14948 (struct tui_source_windows) <begin, end>: Update.
14949 * tui/tui-layout.c (tui_windows): New global.
14950 (tui_apply_current_layout): Clear tui_windows.
14951 (tui_layout_window::apply): Update tui_windows.
14952 * tui/tui-data.h (tui_windows): Declare.
14953 (all_tui_windows): Now inline function.
14954 (class tui_window_iterator, struct all_tui_windows): Remove.
14955
14956 2020-02-22 Tom Tromey <tom@tromey.com>
14957
14958 PR tui/17850:
14959 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14960 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14961 "height" argument.
14962 (class tui_layout_window) <get_sizes>: Likewise.
14963 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14964 argument.
14965 <get_sizes>: Add "height" argument.
14966 <m_vertical>: New field.
14967 * tui/tui-layout.c (tui_layout_split::clone): Update.
14968 (tui_layout_split::get_sizes): Add "height" argument.
14969 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14970 (tui_new_layout_command): Parse "-horizontal".
14971 (_initialize_tui_layout): Update help string.
14972 (tui_layout_split::specification): Add "-horizontal" when needed.
14973 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14974 argument.
14975 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14976 New methods.
14977
14978 2020-02-22 Tom Tromey <tom@tromey.com>
14979
14980 * tui/tui-layout.h (enum tui_adjust_result): New.
14981 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14982 (class tui_layout_window) <adjust_size>: Return
14983 tui_adjust_result. Rewrite.
14984 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14985 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14986
14987 2020-02-22 Tom Tromey <tom@tromey.com>
14988
14989 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14990 parameter and return types.
14991 (class tui_layout_base) <specification>: Add "depth".
14992 (class tui_layout_window) <specification>: Add "depth".
14993 (class tui_layout_split) <specification>: Add "depth".
14994 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14995 and return types.
14996 (tui_new_layout_command): Parse sub-layouts.
14997 (_initialize_tui_layout): Update help string.
14998 (tui_layout_window::specification): Add "depth".
14999 (add_layout_command): Update.
15000
15001 2020-02-22 Tom Tromey <tom@tromey.com>
15002
15003 * NEWS: Add "tui new-layout" item.
15004 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15005 Add new-layout command to help text.
15006 (validate_window_name): New function.
15007 (tui_new_layout_command): New function.
15008 (_initialize_tui_layout): Register "new-layout".
15009 (tui_layout_window::specification): New method.
15010 (tui_layout_window::specification): New method.
15011 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15012 method.
15013 (class tui_layout_window) <specification>: New method.
15014 (class tui_layout_split) <specification>: New method.
15015
15016 2020-02-22 Tom Tromey <tom@tromey.com>
15017
15018 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15019 * tui/tui-win.c (window_name_completer): Update comment.
15020 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15021 Declare method.
15022 (class tui_layout_window) <replace_window>: Likewise.
15023 (class tui_layout_split) <replace_window>: Likewise.
15024 (tui_set_layout): Don't declare.
15025 (tui_set_initial_layout): Declare function.
15026 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15027 (asm_regs_layout): New globals.
15028 (tui_current_layout, show_layout): Remove.
15029 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15030 (find_layout, tui_apply_layout): New function.
15031 (layout_completer): Remove.
15032 (tui_next_layout): Reimplement.
15033 (tui_next_layout_command): New function.
15034 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15035 (tui_regs_layout): Reimplement.
15036 (tui_regs_layout_command): New function.
15037 (extract_display_start_addr): Rewrite.
15038 (next_layout, prev_layout): Remove.
15039 (tui_layout_window::replace_window): New method.
15040 (tui_layout_split::replace_window): New method.
15041 (destroy_layout): New function.
15042 (layout_list): New global.
15043 (add_layout_command): New function.
15044 (initialize_layouts): Update.
15045 (tui_layout_command): New function.
15046 (_initialize_tui_layout): Install "layout" commands.
15047 * tui/tui-data.h (enum tui_layout_type): Remove.
15048 (tui_current_layout): Don't declare.
15049
15050 2020-02-22 Tom Tromey <tom@tromey.com>
15051
15052 * tui/tui-regs.c (tui_reg_layout): Remove.
15053 (tui_reg_command): Use tui_regs_layout.
15054 * tui/tui-layout.h (tui_reg_command): Declare.
15055 * tui/tui-layout.c (tui_reg_command): New function.
15056
15057 2020-02-22 Tom Tromey <tom@tromey.com>
15058
15059 * tui/tui.c (tui_rl_delete_other_windows): Call
15060 tui_remove_some_windows.
15061 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15062 Declare method.
15063 (class tui_layout_window) <remove_windows>: New method.
15064 (class tui_layout_split) <remove_windows>: Declare.
15065 (tui_remove_some_windows): Declare.
15066 * tui/tui-layout.c (tui_remove_some_windows): New function.
15067 (tui_layout_split::remove_windows): New method.
15068
15069 2020-02-22 Tom Tromey <tom@tromey.com>
15070
15071 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15072 * tui/tui-layout.h (tui_next_layout): Declare.
15073 * tui/tui-layout.c (tui_next_layout): New function.
15074
15075 2020-02-22 Tom Tromey <tom@tromey.com>
15076
15077 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15078 correct coordinates.
15079
15080 2020-02-22 Tom Tromey <tom@tromey.com>
15081
15082 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15083 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15084 DATA_WIN case.
15085
15086 2020-02-22 Tom Tromey <tom@tromey.com>
15087
15088 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15089 TUI_DISASM_WIN, not tui_win_list.
15090
15091 2020-02-22 Tom Tromey <tom@tromey.com>
15092
15093 * valprint.c (generic_val_print_enum_1)
15094 (val_print_type_code_flags): Style member names.
15095 * rust-lang.c (val_print_struct, rust_print_enum)
15096 (rust_print_struct_def, rust_internal_print_type): Style member
15097 names.
15098 * p-valprint.c (pascal_object_print_value_fields): Style member
15099 names. Only call fprintf_symbol_filtered for static members.
15100 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15101 * f-valprint.c (f_val_print): Style member names.
15102 * f-typeprint.c (f_type_print_base): Style member names.
15103 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15104 call fprintf_symbol_filtered for static members.
15105 (cp_print_class_member): Style member names.
15106 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15107 member names.
15108 * ada-valprint.c (ada_print_scalar): Style enum names.
15109 (ada_val_print_enum): Likewise.
15110 * ada-typeprint.c (print_enum_type): Style enum names.
15111
15112 2020-02-21 Tom Tromey <tom@tromey.com>
15113
15114 * psympriv.h (struct partial_symtab): Update comment.
15115
15116 2020-02-21 Tom Tromey <tromey@adacore.com>
15117
15118 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15119 type is CORE_ADDR.
15120
15121 2020-02-21 Tom de Vries <tdevries@suse.de>
15122
15123 PR gdb/25534
15124 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15125 if dependencies[i]->user != NULL.
15126
15127 2020-02-21 Ali Tamur <tamur@google.com>
15128
15129 * dwarf2/read.c (dwarf2_name): Add null check.
15130
15131 2020-02-20 Tom Tromey <tom@tromey.com>
15132
15133 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15134 ">=", in binary search.
15135 (dwarf2_find_containing_comp_unit): New overload.
15136 (run_test): New self-test.
15137 (_initialize_dwarf2_read): Register new test.
15138
15139 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15140
15141 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15142 * riscv-tdep.h: Likewise.
15143 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15144 rv32-only CSR.
15145 * features/riscv/64bit-csr.xml: Regenerated.
15146
15147 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15148 Tom Tromey <tom@tromey.com>
15149
15150 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15151 of 'fputc_unfiltered'.
15152 (putchar_unfiltered): Call 'fputc_unfiltered'.
15153 (fputc_unfiltered): Call 'fputs_unfiltered'.
15154
15155 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15156
15157 * config.in: Regenerate.
15158 * configure: Regenerate.
15159 * configure.ac: Add --with-python-libdir option.
15160 * main.c: Use WITH_PYTHON_LIBDIR.
15161
15162 2020-02-19 Tom Tromey <tom@tromey.com>
15163
15164 * symtab.c (general_symbol_info::compute_and_set_names): Use
15165 obstack_strndup. Simplify call to symbol_set_demangled_name.
15166
15167 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15168
15169 * dwarf2/read.c (allocate_signatured_type_table,
15170 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15171 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15172 Remove objfile parameter, update all callers.
15173
15174 2020-02-19 Doug Evans <dje@google.com>
15175
15176 PR rust/25535
15177 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15178 rust_enum_variant calculation.
15179
15180 2020-02-19 Tom Tromey <tromey@adacore.com>
15181
15182 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15183
15184 2020-02-19 Tom Tromey <tromey@adacore.com>
15185
15186 * ada-lang.c (cache_symbol): Use obstack_strdup.
15187
15188 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15189
15190 * configure: Regenerate.
15191
15192 2020-02-19 Tom Tromey <tromey@adacore.com>
15193
15194 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15195 NULL check.
15196
15197 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15198
15199 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15200
15201 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15202
15203 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15204 if GDBSERVER is not defined.
15205 (riscv_tdesc_cache): Likewise, also store const target_desc.
15206 (STATIC_IN_GDB): Define.
15207 (riscv_create_target_description): Update declaration with
15208 STATIC_IN_GDB.
15209 (riscv_lookup_target_description): New function, only define if
15210 GDBSERVER is not defined.
15211 * arch/riscv.h (riscv_create_target_description): Declare only
15212 when GDBSERVER is defined.
15213 (riscv_lookup_target_description): New declaration when GDBSERVER
15214 is not defined.
15215 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15216 (riscv_linux_read_features): ...this, and return
15217 riscv_gdbarch_features instead of target_desc.
15218 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15219 (riscv_linux_read_description): Rename to...
15220 (riscv_linux_read_features): ...this.
15221 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15222 Update to use riscv_gdbarch_features and
15223 riscv_lookup_target_description.
15224 * riscv-tdep.c (riscv_find_default_target_description): Use
15225 riscv_lookup_target_description instead of
15226 riscv_create_target_description.
15227
15228 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15229
15230 * valprint.c (generic_val_print_enum_1): When printing a flag
15231 enum with value 0 and there is no enumerator with value 0, print
15232 just "0" instead of "(unknown: 0x0)".
15233
15234 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15235
15236 * valprint.c (generic_val_print_enum_1): Print unknown part of
15237 flag enum in hex.
15238
15239 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15240
15241 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15242 flag enums to contain duplicate enumerators.
15243 * valprint.c (generic_val_print_enum_1): Update comment.
15244
15245 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15246
15247 * dwarf2/read.c: Include "count-one-bits.h".
15248 (update_enumeration_type_from_children): If an enumerator has
15249 multiple bits set, don't treat the enumeration as a "flag enum".
15250 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15251 of flag enums have 0 or 1 bit set.
15252
15253 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15254
15255 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15256 conversion.
15257 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15258 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15259 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15260 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15261 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15262
15263 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15264
15265 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15266
15267 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15268
15269 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15270 displaced_step_closure_up.
15271 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15272 (struct displaced_step_closure_up):
15273 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15274 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15275 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15276 Likewise.
15277 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15278 * gdbarch.c, gdbarch.h: Re-generate.
15279 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15280 displaced_step_closure_up.
15281 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15282 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15283 * infrun.h (displaced_step_closure_up): New type alias.
15284 (struct displaced_step_inferior_state) <step_closure>: Change
15285 type to displaced_step_closure_up.
15286 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15287 displaced_step_closure_up.
15288 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15289
15290 2020-02-14 Tom Tromey <tom@tromey.com>
15291
15292 * minidebug.c (gnu_debug_key): New global.
15293 (find_separate_debug_file_in_section): Use it.
15294
15295 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15296
15297 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15298 std::unique_ptr.
15299 * gdbarch.c: Re-generate.
15300 * gdbarch.h: Re-generate.
15301 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15302 change.
15303 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15304 type to std::unique_ptr.
15305 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15306 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15307 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15308 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15309 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15310 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15311 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15312 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15313 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15314
15315 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15316
15317 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15318 std::unique_ptr.
15319 (displaced_step_clear): Rename to...
15320 (displaced_step_reset): ... this. Just call displaced->reset ().
15321 (displaced_step_clear_cleanup): Rename to...
15322 (displaced_step_reset_cleanup): ... this.
15323 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15324 (displaced_step_fixup): Likewise.
15325 (resume_1): Likewise.
15326 (handle_inferior_event): Restore child's memory before calling
15327 displaced_step_fixup on the parent.
15328 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15329 to std::unique_ptr.
15330 <step_closure>: Change type to std::unique_ptr.
15331
15332 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15333
15334 * arm-tdep.c: Include count-one-bits.h.
15335 (cleanup_block_store_pc): Use count_one_bits.
15336 (cleanup_block_load_pc): Use count_one_bits.
15337 (arm_copy_block_xfer): Use count_one_bits.
15338 (thumb2_copy_block_xfer): Use count_one_bits.
15339 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15340 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15341 (thumb_get_next_pcs_raw): Use count_one_bits.
15342 (arm_get_next_pcs_raw): Use count_one_bits_l.
15343 * arch/arm.c (bitcount): Remove.
15344 * arch/arm.h (bitcount): Remove.
15345
15346 2020-02-14 Tom Tromey <tromey@adacore.com>
15347
15348 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15349 Update.
15350 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15351 * dwarf2/loc.c (call_site_find_chain_1): Return
15352 unique_xmalloc_ptr.
15353 (call_site_find_chain): Likewise.
15354
15355 2020-02-14 Richard Biener <rguenther@suse.de>
15356
15357 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15358 on expression with division operators.
15359
15360 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15361
15362 * MAINTAINERS (Write After Approval): Adding myself.
15363
15364 2020-02-12 Tom Tromey <tom@tromey.com>
15365
15366 * event-loop.c (event_data, gdb_event, event_handler_func):
15367 Remove.
15368
15369 2020-02-12 Tom Tromey <tom@tromey.com>
15370
15371 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15372 (dwarf2_frame_objfile_data): Add comment.
15373 (find_comp_unit, set_comp_unit): New functions.
15374 (dwarf2_frame_find_fde): Use find_comp_unit.
15375 (dwarf2_build_frame_info): Use set_comp_unit.
15376
15377 2020-02-12 Tom Tromey <tom@tromey.com>
15378
15379 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15380 (comp_unit): Don't initialize objfile.
15381 (execute_cfa_program): Add text_offset parameter.
15382 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15383 (dwarf2_frame_cache): Update.
15384 (dwarf2_build_frame_info): Don't set "objfile" member.
15385
15386 2020-02-12 Tom Tromey <tom@tromey.com>
15387
15388 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15389 (decode_frame_entry): Likewise.
15390 (dwarf2_build_frame_info): Update.
15391
15392 2020-02-12 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15395 (decode_frame_entry_1): Use the comp_unit obstack.
15396
15397 2020-02-12 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2/frame.c (struct comp_unit): Add initializers and
15400 constructor.
15401 (dwarf2_frame_objfile_data): Store a comp_unit.
15402 (dwarf2_frame_find_fde): Update.
15403 (dwarf2_build_frame_info): Use "new".
15404
15405 2020-02-12 Tom Tromey <tom@tromey.com>
15406
15407 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15408 (dwarf2_fde_table): Typedef for std::vector.
15409 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15410 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15411 (decode_frame_entry): Update.
15412 (dwarf2_build_frame_info): Use "new".
15413
15414 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15415
15416 * arm-tdep.c (arm_gdbarch_init): Update.
15417 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15418 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15419 have_neon, is_m>: Change to bool.
15420
15421 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15422
15423 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15424
15425 2020-02-12 Tom Tromey <tom@tromey.com>
15426
15427 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15428
15429 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15430
15431 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15432 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15433
15434 2020-02-11 Tom Tromey <tom@tromey.com>
15435
15436 * psymtab.h: Update comment.
15437
15438 2020-02-11 Tom Tromey <tom@tromey.com>
15439
15440 * gdb_obstack.h (struct auto_obstack): Use
15441 DISABLE_COPY_AND_ASSIGN.
15442
15443 2020-02-11 Tom Tromey <tom@tromey.com>
15444
15445 * dwarf2/frame.h (struct objfile): Don't forward declare.
15446
15447 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15448
15449 * cris-tdep.c (cris_supply_gregset): Change signature to match
15450 what struct regset expects.
15451 (cris_regset): New struct.
15452 (fetch_core_registers): Remove.
15453 (cris_iterate_over_regset_sections): New function.
15454 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15455 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15456
15457 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15458
15459 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15460 registers.
15461
15462 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15463
15464 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15465
15466 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15467
15468 * configure: Re-generate.
15469
15470 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15471
15472 * configure: Re-generate.
15473
15474 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15475
15476 * acinclude: Update warning.m4 path.
15477 * warning.m4: Move to gdbsupport.
15478
15479 2020-02-11 Tom Tromey <tromey@adacore.com>
15480
15481 * remote.c (remote_console_output): Update.
15482 * printcmd.c (printf_command): Update.
15483 * event-loop.c (gdb_wait_for_event): Update.
15484 * linux-nat.c (sigchld_handler): Update.
15485 * remote-sim.c (gdb_os_write_stdout): Update.
15486 (gdb_os_flush_stdout): Update.
15487 (gdb_os_flush_stderr): Update.
15488 (gdb_os_write_stderr): Update.
15489 * exceptions.c (print_exception): Update.
15490 * remote-fileio.c (remote_fileio_func_read): Update.
15491 (remote_fileio_func_write): Update.
15492 * tui/tui.c (tui_enable): Update.
15493 * tui/tui-interp.c (tui_interp::init): Update.
15494 * utils.c (init_page_info): Update.
15495 (putchar_unfiltered, fputc_unfiltered): Update.
15496 (gdb_flush): Update.
15497 (emit_style_escape): Update.
15498 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15499 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15500 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15501 (stderr_file::write): Update.
15502 (stderr_file::puts): Update.
15503 * ui-file.h (ui_file_isatty, ui_file_write)
15504 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15505 (ui_file_puts): Don't declare.
15506
15507 2020-02-10 Tom de Vries <tdevries@suse.de>
15508
15509 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15510 sentinel to char *.
15511
15512 2020-02-09 Tom de Vries <tdevries@suse.de>
15513
15514 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15515 filename if it matches "<artificial>".
15516
15517 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15518
15519 * windows-tdep.c (struct enum_value_name): New struct.
15520 (create_enum): New function.
15521 (windows_get_siginfo_type): Create and use enum types.
15522
15523 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15524
15525 * NEWS: Mention $_siginfo support for Windows.
15526 * windows-nat.c (handle_exception): Set siginfo_er.
15527 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15528 (windows_xfer_siginfo): New function.
15529 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15530 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15531 (init_windows_gdbarch_data): New function.
15532 (get_windows_gdbarch_data): New function.
15533 (windows_get_siginfo_type): New function.
15534 (windows_init_abi): Register windows_get_siginfo_type.
15535 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15536
15537 2020-02-08 Tom Tromey <tom@tromey.com>
15538
15539 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15540 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15541 <keep>: Declare method.
15542 <m_keep>: Remove member.
15543 <~cutu_reader>: Remove.
15544 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15545 (cutu_reader::cutu_reader): Update.
15546 (cutu_reader::keep): Rename from ~cutu_reader.
15547 (process_psymtab_comp_unit, build_type_psymtabs_1)
15548 (process_skeletonless_type_unit, load_partial_comp_unit)
15549 (load_full_comp_unit, dwarf2_read_addr_index)
15550 (read_signatured_type): Update.
15551
15552 2020-02-08 Tom Tromey <tom@tromey.com>
15553
15554 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15555 "want_partial_unit" parameter.
15556 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15557 Inline check for DW_TAG_partial_unit.
15558 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15559
15560 2020-02-08 Tom Tromey <tom@tromey.com>
15561
15562 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15563 read.c.
15564 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15565 read.c.
15566
15567 2020-02-08 Tom Tromey <tom@tromey.com>
15568
15569 * dwarf2/read.c (read_address): Move to comp-unit.c.
15570 (dwarf2_rnglists_process, dwarf2_ranges_process)
15571 (read_attribute_value, dwarf_decode_lines_1)
15572 (var_decode_location, decode_locdesc): Update.
15573 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15574 read.c. Remove "cu" parameter.
15575 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15576 method.
15577
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15581 (read_indirect_line_string): Update.
15582 * dwarf2/comp-unit.c (read_offset): Remove.
15583 (read_comp_unit_head): Update.
15584 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15585 method.
15586 (read_offset): Don't declare.
15587
15588 2020-02-08 Tom Tromey <tom@tromey.com>
15589
15590 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15591 * dwarf2/read.c (struct comp_unit_head): Move to
15592 dwarf2/comp-unit.h.
15593 (enum class rcuh_kind): Move to comp-unit.h.
15594 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15595 (read_comp_unit_head, error_check_comp_unit_head)
15596 (read_and_check_comp_unit_head): Move to comp-unit.c.
15597 (read_offset, dwarf_unit_type_name): Likewise.
15598 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15599 (cutu_reader::cutu_reader, read_call_site_scope)
15600 (find_partial_die, follow_die_offset): Update.
15601 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15602
15603 2020-02-08 Tom Tromey <tom@tromey.com>
15604
15605 * dwarf2/read.c (read_offset_1): Move to leb.c.
15606 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15607 (dwarf_decode_macro_bytes): Update.
15608 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15609 * dwarf2/leb.h (read_offset): Declare.
15610
15611 2020-02-08 Tom Tromey <tom@tromey.com>
15612
15613 * dwarf2/read.c (dwarf2_section_size): Remove.
15614 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15615 Update.
15616 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15617
15618 2020-02-08 Tom Tromey <tom@tromey.com>
15619
15620 * dwarf2/read.c (read_initial_length): Move to leb.c.
15621 * dwarf2/leb.h (read_initial_length): Declare.
15622 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15623 handle_nonstd parameter.
15624 * dwarf2/frame.c (read_initial_length): Remove.
15625 (decode_frame_entry_1): Update.
15626
15627 2020-02-08 Tom Tromey <tom@tromey.com>
15628
15629 * dwarf2/loc.c (dwarf2_find_location_expression)
15630 (dwarf_evaluate_loc_desc::get_tls_address)
15631 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15632 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15633 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15634 (dwarf2_compile_property_to_c)
15635 (dwarf2_loc_desc_get_symbol_read_needs)
15636 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15637 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15638 (loclist_describe_location, loclist_tracepoint_var_ref)
15639 (loclist_generate_c_location): Update.
15640 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15641 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15642 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15643 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15644 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15645 (dwarf2_per_cu_data::addr_size)
15646 (dwarf2_per_cu_data::ref_addr_size)
15647 (dwarf2_per_cu_data::text_offset)
15648 (dwarf2_per_cu_data::addr_type): Now methods.
15649 (per_cu_header_read_in): Make per_cu "const".
15650 (dwarf2_version): Remove.
15651 (dwarf2_per_cu_data::int_type): Now a method.
15652 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15653 (set_die_type, read_array_type, read_subrange_index_type)
15654 (read_tag_string_type, read_subrange_type): Update.
15655 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15656 offset_size, ref_addr_size, text_offset, addr_type, version,
15657 objfile, int_type, addr_sized_int_type>: Declare methods.
15658
15659 2020-02-08 Tom Tromey <tom@tromey.com>
15660
15661 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15662 Move earlier.
15663
15664 2020-02-08 Tom Tromey <tom@tromey.com>
15665
15666 * dwarf2/read.h (dwarf_line_debug): Declare.
15667 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15668 * dwarf2/read.c: Move line_header code to new files.
15669 (dwarf_line_debug): No longer static.
15670 * dwarf2/line-header.c: New file.
15671 * dwarf2/line-header.h: New file.
15672
15673 2020-02-08 Tom Tromey <tom@tromey.com>
15674
15675 * dwarf2/read.c (struct line_header) <file_full_name,
15676 file_file_name>: Return unique_xmalloc_ptr.
15677 (line_header::file_file_name): Update.
15678 (line_header::file_full_name): Update.
15679 (dw2_get_file_names_reader): Update.
15680 (macro_start_file): Update.
15681
15682 2020-02-08 Tom Tromey <tom@tromey.com>
15683
15684 * dwarf2/read.c (struct line_header) <file_full_name,
15685 file_file_name>: Declare methods.
15686 (dw2_get_file_names_reader): Update.
15687 (file_file_name): Now a method.
15688 (file_full_name): Likewise.
15689 (macro_start_file): Update.
15690
15691 2020-02-08 Tom Tromey <tom@tromey.com>
15692
15693 * dwarf2/read.c (dwarf_always_disassemble)
15694 (show_dwarf_always_disassemble): Move to loc.c.
15695 (_initialize_dwarf2_read): Move "always-disassemble" registration
15696 to loc.c.
15697 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15698 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15699 static.
15700 (show_dwarf_always_disassemble): Move from read.c.
15701 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15702
15703 2020-02-08 Tom Tromey <tom@tromey.com>
15704
15705 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15706 (create_quick_file_names_table): Return htab_up.
15707 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15708 Update.
15709 * dwarf2/read.h (struct dwarf2_per_objfile)
15710 <quick_file_names_table>: Now htab_up.
15711
15712 2020-02-08 Tom Tromey <tom@tromey.com>
15713
15714 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15715
15716 2020-02-08 Tom Tromey <tom@tromey.com>
15717
15718 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15719 Rewrite.
15720 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15721 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15722 (abbrev_table::abbrev_table): No longer inline.
15723 (ABBREV_HASH_SIZE): Remove.
15724 (abbrev_table::m_abbrevs): Now an htab_up.
15725
15726 2020-02-08 Tom Tromey <tom@tromey.com>
15727
15728 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15729 (cutu_reader): Update.
15730 (build_type_psymtabs_1): Update.
15731 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15732 (abbrev_table::alloc_abbrev): Update.
15733 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15734 (abbrev_table::read): New static method, renamed from
15735 abbrev_table_read_table.
15736 (abbrev_table::alloc_abbrev)
15737 (abbrev_table::add_abbrev): Now private.
15738 (abbrev_table::abbrev_table): Now private.
15739 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15740
15741 2020-02-08 Tom Tromey <tom@tromey.com>
15742
15743 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15744 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15745 htab_up.
15746
15747 2020-02-08 Tom Tromey <tom@tromey.com>
15748
15749 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15750 htab_up.
15751 (lookup_dwo_unit_in_dwp): Update.
15752 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15753 on obstack.
15754
15755 2020-02-08 Tom Tromey <tom@tromey.com>
15756
15757 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15758 obstack.
15759
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15761
15762 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15763 line_header_hash.
15764 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15765 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15766 Change type to htab_up.
15767
15768 2020-02-08 Tom Tromey <tom@tromey.com>
15769
15770 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15771 htab_up. Don't allocate on obstack.
15772 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15773 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15774 Change type to htab_up.
15775
15776 2020-02-08 Tom Tromey <tom@tromey.com>
15777
15778 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15779 Change type to htab_up.
15780 * dwarf2/read.c (create_signatured_type_table_from_index)
15781 (create_signatured_type_table_from_debug_names)
15782 (create_all_type_units, add_type_unit)
15783 (lookup_dwo_signatured_type, lookup_signatured_type)
15784 (process_skeletonless_type_unit): Update.
15785 (create_debug_type_hash_table, create_debug_types_hash_table):
15786 Change type of types_htab.
15787 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15788 htab_up. Don't allocate on obstack.
15789 (create_cus_hash_table): Change type of cus_htab parameter.
15790 (struct dwo_file) <cus, tus>: Now htab_up.
15791 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15792 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15793 (queue_and_load_all_dwo_tus): Update.
15794 * dwarf2/index-write.c (write_gdbindex): Update.
15795 (write_debug_names): Update.
15796
15797 2020-02-08 Tom Tromey <tom@tromey.com>
15798
15799 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15800 dwarf2/read.c. Remove "next" member. Add constructor ntad
15801 destructor.
15802 (struct dwarf2_per_objfile) <queue>: New member.
15803 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15804 dwarf2/read.h.
15805 (dwarf2_queue, dwarf2_queue_tail): Remove.
15806 (class dwarf2_queue_guard): Add parameter to constructor. Use
15807 DISABLE_COPY_AND_ASSIGN.
15808 <m_per_objfile>: New member.
15809 <~dwarf2_queue_guard>: Rewrite.
15810 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15811 Update.
15812 (~dwarf2_queue_item): New.
15813
15814 2020-02-08 Tom Tromey <tom@tromey.com>
15815
15816 * dwarf2/read.c (struct die_info) <has_children>: New member.
15817 (dw2_get_file_names_reader): Remove has_children.
15818 (dw2_get_file_names): Update.
15819 (read_cutu_die_from_dwo): Remove has_children.
15820 (cutu_reader::init_tu_and_read_dwo_dies)
15821 (cutu_reader::cutu_reader): Update.
15822 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15823 Remove has_children.
15824 (build_type_psymtabs_1, process_skeletonless_type_unit)
15825 (load_partial_comp_unit, load_full_comp_unit): Update.
15826 (create_dwo_cu_reader): Remove has_children.
15827 (create_cus_hash_table, read_die_and_children): Update.
15828 (read_full_die_1,read_full_die): Remove has_children.
15829 (read_signatured_type): Update.
15830 (class cutu_reader) <has_children>: Remove.
15831
15832 2020-02-08 Tom Tromey <tom@tromey.com>
15833
15834 * dwarf2/expr.c: Rename from dwarf2expr.c.
15835 * dwarf2/expr.h: Rename from dwarf2expr.h.
15836 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15837 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15838 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15839 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15840 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15841 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15842 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15843 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15844 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15845 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15846 * dwarf2/loc.c: Rename from dwarf2loc.c.
15847 * dwarf2/loc.h: Rename from dwarf2loc.h.
15848 * dwarf2/read.c: Rename from dwarf2read.c.
15849 * dwarf2/read.h: Rename from dwarf2read.h.
15850 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15851 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15852 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15853 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15854 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15855 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15856 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15857 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15858 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15859 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15860 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15861 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15862 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15863 Update.
15864 * Makefile.in (COMMON_SFILES): Update.
15865 (HFILES_NO_SRCDIR): Update.
15866
15867 2020-02-08 Tom Tromey <tom@tromey.com>
15868
15869 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15870 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15871
15872 2020-02-08 Tom Tromey <tom@tromey.com>
15873
15874 * dwarf2read.h (struct die_info): Don't declare.
15875
15876 2020-02-08 Tom Tromey <tom@tromey.com>
15877
15878 * dwarf2read.h (die_info_ptr): Remove typedef.
15879
15880 2020-02-08 Tom Tromey <tom@tromey.com>
15881
15882 * dwarf2read.c (read_call_site_scope)
15883 (handle_data_member_location, dwarf2_add_member_fn)
15884 (mark_common_block_symbol_computed, read_common_block)
15885 (attr_to_dynamic_prop, partial_die_info::read)
15886 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15887 (dwarf2_symbol_mark_computed, set_die_type): Update.
15888 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15889 method.
15890 (attr_form_is_block): Don't declare.
15891 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15892
15893 2020-02-08 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2read.c (dwarf2_find_base_address, )
15896 (read_call_site_scope, rust_containing_type)
15897 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15898 (handle_data_member_location, dwarf2_add_member_fn)
15899 (get_alignment, read_structure_type, process_structure_scope)
15900 (mark_common_block_symbol_computed, read_common_block)
15901 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15902 (partial_die_info::read, read_attribute_value, new_symbol)
15903 (lookup_die_type, dwarf2_get_ref_die_offset)
15904 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15905 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15906 (dwarf2_symbol_mark_computed): Update.
15907 * dwarf2/attribute.h (struct attribute) <value_as_address,
15908 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15909 methods.
15910 (value_as_address, attr_form_is_section_offset)
15911 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15912 * dwarf2/attribute.c (attribute::value_as_address)
15913 (attribute::form_is_section_offset, attribute::form_is_constant)
15914 (attribute::form_is_ref): Now methods.
15915
15916 2020-02-08 Tom Tromey <tom@tromey.com>
15917
15918 * dwarf2read.c (struct attribute, DW_STRING)
15919 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15920 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15921 (attr_form_is_block, attr_form_is_section_offset)
15922 (attr_form_is_constant, attr_form_is_ref): Move.
15923 * dwarf2/attribute.h: New file.
15924 * dwarf2/attribute.c: New file, from dwarf2read.c.
15925 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15926
15927 2020-02-08 Tom Tromey <tom@tromey.com>
15928
15929 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15930 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15931 Move.
15932 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15933 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15934 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15935 abbrev.c.
15936 * dwarf2/abbrev.h: New file.
15937 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15938 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15939
15940 2020-02-08 Tom Tromey <tom@tromey.com>
15941
15942 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15943 (dwarf2_section_size, dwarf2_get_section_info)
15944 (create_signatured_type_table_from_debug_names)
15945 (create_addrmap_from_aranges, read_debug_names_from_section)
15946 (get_gdb_index_contents_from_section, read_comp_unit_head)
15947 (error_check_comp_unit_head, read_abbrev_offset)
15948 (create_debug_type_hash_table, init_cu_die_reader)
15949 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15950 (read_comp_units_from_section, create_cus_hash_table)
15951 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15952 (create_dwp_v2_section, dwarf2_rnglists_process)
15953 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15954 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15955 (read_indirect_string_from_dwz, read_addr_index_1)
15956 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15957 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15958 (fill_in_loclist_baton): Update.
15959 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15960 get_containing_section, get_bfd_owner, get_bfd_section,
15961 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15962 (dwarf2_read_section, get_section_name, get_section_file_name)
15963 (get_containing_section, get_section_bfd_owner)
15964 (get_section_bfd_section, get_section_name, get_section_file_name)
15965 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15966 declare.
15967 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15968 (dwarf2_section_info::get_bfd_owner)
15969 (dwarf2_section_info::get_bfd_section)
15970 (dwarf2_section_info::get_name)
15971 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15972 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15973 (dwarf2_section_info::read): Now methods.
15974 * dwarf-index-write.c (class debug_names): Update.
15975
15976 2020-02-08 Tom Tromey <tom@tromey.com>
15977
15978 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15979 Move to dwarf2/section.h.
15980 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15981 (get_section_bfd_section, get_section_name)
15982 (get_section_file_name, get_section_id, get_section_flags)
15983 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15984 dwarf2/section.c.
15985 * dwarf2/section.h: New file.
15986 * dwarf2/section.c: New file, from dwarf2read.c.
15987 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15988
15989 2020-02-08 Tom Tromey <tom@tromey.com>
15990
15991 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15992 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15993 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15994 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15995 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15996 * dwarf2/leb.h: New file, from dwarf2read.c.
15997 * dwarf2/leb.c: New file, from dwarf2read.c.
15998 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15999 Remove.
16000 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16001 (COMMON_SFILES): Add dwarf2/leb.c.
16002
16003 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16004
16005 GDB 9.1 released.
16006
16007 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16008
16009 PR gdb/25190:
16010 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16011 * gdb/remote.c (remote_console_output): Update.
16012 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16013 (ui_file_puts): ...this.
16014 * gdb/ui-file.h (ui_file_puts): Add declaration.
16015 * gdb/utils.c (emit_style_escape): Update.
16016 (flush_wrap_buffer): Update.
16017 (fputs_maybe_filtered): Update.
16018 (fputs_unfiltered): Add function.
16019
16020 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16021
16022 * gdb/event-loop.c (gdb_wait_for_event): Update.
16023 * gdb/printcmd.c (printf_command): Update.
16024 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16025 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16026 (gdb_os_flush_stderr): Update.
16027 * gdb/remote.c (remote_console_output): Update.
16028 * gdb/ui-file.c (gdb_flush): Rename to...
16029 (ui_file_flush): ...this.
16030 (stderr_file::write): Update.
16031 (stderr_file::puts): Update.
16032 * gdb/ui-file.h (gdb_flush): Rename to...
16033 (ui_file_flush): ...this.
16034 * gdb/utils.c (gdb_flush): Add function.
16035 * gdb/utils.h (gdb_flush): Add declaration.
16036
16037 2020-02-07 Tom Tromey <tromey@adacore.com>
16038
16039 PR breakpoints/24915:
16040 * source.c (find_and_open_source): Do not check basenames_may_differ.
16041
16042 2020-02-07 Tom Tromey <tom@tromey.com>
16043
16044 * README: Update gdbserver documentation.
16045 * gdbserver: Move to top level.
16046 * configure.tgt (build_gdbserver): Remove.
16047 * configure.ac: Remove --enable-gdbserver.
16048 * configure: Rebuild.
16049 * Makefile.in (distclean): Don't mention gdbserver.
16050
16051 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16052
16053 * source-cache.c (source_cache::ensure): Surround
16054 get_plain_source_lines with a try/catch.
16055 (source_cache::get_line_charpos): Get rid of try/catch
16056 and only check for the return value of "ensure".
16057 * tui/tui-source.c (tui_source_window::set_contents):
16058 Simplify "nlines" calculation.
16059
16060 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16061
16062 * MAINTAINERS (Write After Approval): Add myself.
16063
16064 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16065
16066 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16067 function call.
16068
16069 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16070
16071 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16072
16073 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16074
16075 * nat/riscv-linux-tdesc.h: New file.
16076 * nat/riscv-linux-tdesc.c: New file, taking code from...
16077 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16078 ... here.
16079 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16080 NATDEPFILES.
16081
16082 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16083
16084 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16085 we don't set the fake simulator ptid to the null_ptid.
16086
16087 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16088
16089 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16090 * gdbthread.h (class thread_info) <resumed>: Likewise.
16091 * infrun.c (resume_1): Likewise.
16092 (proceed): Likewise.
16093 (infrun_thread_stop_requested): Likewise.
16094 (stop_all_threads): Likewise.
16095 (handle_inferior_event): Likewise.
16096 (restart_threads): Likewise.
16097 (finish_step_over): Likewise.
16098 (keep_going_stepped_thread): Likewise.
16099 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16100 (linux_handle_extended_wait): Likewise.
16101 * record-btrace.c (get_thread_current_frame_id): Likewise.
16102 * record-full.c (record_full_wait_1): Likewise.
16103 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16104 * target.c (target_resume): Likewise.
16105 * thread.c (set_running_thread): Likewise.
16106
16107 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16108
16109 * f-valprint.c (f77_print_array_1): Changed datatype of index
16110 variable to LONGEST from int to enable it to contain bound
16111 values correctly.
16112
16113 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16114
16115 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16116 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16117 offsets according to FLEN determined.
16118 (riscv_linux_nat_target::read_description): Determine FLEN
16119 dynamically.
16120 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16121 according to FLEN determined.
16122 (riscv_linux_nat_target::store_registers): Likewise.
16123
16124 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16125
16126 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16127 when reg->group is empty and reggroup is not.
16128
16129 2020-01-31 Tom Tromey <tromey@adacore.com>
16130
16131 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16132 Call beneath target's mourn_inferior after unpushing.
16133
16134 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16135
16136 PR tui/9765
16137 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16138 have enough lines to fill the screen, still return the lowest
16139 address we found.
16140
16141 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16142
16143 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16144 '-', '<', and '>' commands.
16145
16146 2020-01-29 Pedro Alves <palves@redhat.com>
16147 Sergio Durigan Junior <sergiodj@redhat.com>
16148
16149 * infcmd.c (construct_inferior_arguments): Assert that
16150 'argc' is greater than 0.
16151
16152 2020-01-29 Luis Machado <luis.machado@linaro.org>
16153
16154 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16155 (BRK_INSN_MASK): Define to 0xd4200000.
16156 (aarch64_program_breakpoint_here_p): New function.
16157 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16158 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16159 breakpoint.c.
16160 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16161 breakpoint.h
16162 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16163 call gdbarch_program_breakpoint_here_p.
16164 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16165 default_program_breakpoint_here_p, changed return type to bool and
16166 simplified.
16167 * breakpoint.h (program_breakpoint_here): Moved prototype to
16168 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16169 return type to bool.
16170 * gdbarch.c: Regenerate.
16171 * gdbarch.h: Regenerate.
16172 * gdbarch.sh (program_breakpoint_here_p): New method.
16173 * infrun.c (handle_signal_stop): Call
16174 gdbarch_program_breakpoint_here_p.
16175
16176 2020-01-26 Tom Tromey <tom@tromey.com>
16177
16178 * ctfread.c (struct ctf_fp_info): Reindent.
16179 (_initialize_ctfread): Remove.
16180
16181 2020-01-26 Tom Tromey <tom@tromey.com>
16182
16183 * psymtab.c (partial_map_expand_apply)
16184 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16185 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16186 (psym_print_stats, psym_expand_symtabs_for_function)
16187 (psym_map_symbol_filenames, psym_map_matching_symbols)
16188 (psym_expand_symtabs_matching)
16189 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16190 (maintenance_check_psymtabs): Use new methods.
16191 * psympriv.h (struct partial_symtab) <readin_p,
16192 get_compunit_symtab>: New methods.
16193 <readin, compunit_symtab>: Remove members.
16194 (struct standard_psymtab): New.
16195 (struct legacy_psymtab): Derive from standard_psymtab.
16196 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16197 standard_psymtab.
16198 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16199
16200 2020-01-26 Tom Tromey <tom@tromey.com>
16201
16202 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16203 read_dependencies. Add assert.
16204 * psymtab.c (partial_symtab::read_dependencies): New method.
16205 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16206 method.
16207 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16208 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16209 read_dependencies.
16210 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16211 Add assert.
16212
16213 2020-01-26 Tom Tromey <tom@tromey.com>
16214
16215 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16216 Call expand_psymtab.
16217 (xcoff_read_symtab): Call expand_psymtab.
16218 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16219 legacy_expand_psymtab.
16220 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16221 method.
16222 (struct legacy_psymtab) <expand_psymtab>: Implement.
16223 <legacy_expand_psymtab>: New member.
16224 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16225 (parse_partial_symbols): Set legacy_expand_psymtab.
16226 (psymtab_to_symtab_1): Change argument order. Call
16227 expand_psymtab.
16228 (new_psymtab): Set legacy_expand_psymtab.
16229 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16230 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16231 expand_psymtab.
16232 (dwarf2_psymtab::expand_psymtab): Rename from
16233 psymtab_to_symtab_1. Call expand_psymtab.
16234 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16235 (dbx_end_psymtab): Likewise.
16236 (dbx_psymtab_to_symtab_1): Change argument order. Call
16237 expand_psymtab.
16238 (dbx_read_symtab): Call expand_psymtab.
16239 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16240 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16241 (ctf_psymtab::read_symtab): Call expand_psymtab.
16242
16243 2020-01-26 Tom Tromey <tom@tromey.com>
16244
16245 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16246 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16247 messages.
16248 * mdebugread.c (mdebug_read_symtab): Remove prints.
16249 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16250 assert.
16251 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16252
16253 2020-01-26 Tom Tromey <tom@tromey.com>
16254
16255 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16256 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16257 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16258 legacy_symtab.
16259 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16260 * psymtab.c (psymtab_to_symtab): Call method.
16261 (dump_psymtab): Update.
16262 * psympriv.h (struct partial_symtab): Add virtual destructor.
16263 <read_symtab>: New method.
16264 (struct legacy_symtab): New.
16265 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16266 (struct pst_map) <pst>: Now a legacy_psymtab.
16267 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16268 (new_psymtab): Use legacy_psymtab.
16269 * dwarf2read.h (struct dwarf2_psymtab): New.
16270 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16271 * dwarf2read.c (dwarf2_create_include_psymtab)
16272 (dwarf2_build_include_psymtabs, create_type_unit_group)
16273 (create_partial_symtab, process_psymtab_comp_unit_reader)
16274 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16275 (set_partial_user): Use dwarf2_psymtab.
16276 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16277 (psymtab_to_symtab_1, process_full_comp_unit)
16278 (process_full_type_unit, dwarf2_ranges_read)
16279 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16280 (dwarf_decode_lines): Use dwarf2_psymtab.
16281 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16282 (add_address_entry_worker, write_one_signatured_type)
16283 (recursively_count_psymbols, recursively_write_psymbols)
16284 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16285 (write_debug_names): Likewise.
16286 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16287 <pst>: Now a legacy_psymtab.
16288 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16289 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16290 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16291 * ctfread.c (struct ctf_psymtab): New.
16292 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16293 ctf_psymtab.
16294 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16295 (create_partial_symtab): Return a ctf_psymtab.
16296 (scan_partial_symbols): Update.
16297
16298 2020-01-26 Tom Tromey <tom@tromey.com>
16299
16300 * xcoffread.c (xcoff_start_psymtab): Use new.
16301 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16302 renamed from start_psymtab_common.
16303 * psympriv.h (struct partial_symtab): Add new constructor.
16304 (start_psymtab_common): Don't declare.
16305 * mdebugread.c (parse_partial_symbols): Use new.
16306 * dwarf2read.c (create_partial_symtab): Use new.
16307 * dbxread.c (start_psymtab): Use new.
16308 * ctfread.c (create_partial_symtab): Use new.
16309
16310 2020-01-26 Tom Tromey <tom@tromey.com>
16311
16312 * xcoffread.c (xcoff_end_psymtab): Use new.
16313 * psymtab.c (start_psymtab_common): Use new.
16314 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16315 Update.
16316 * psympriv.h (struct partial_symtab): Add parameters to
16317 constructor. Don't inline.
16318 (allocate_psymtab): Don't declare.
16319 * mdebugread.c (new_psymtab): Use new.
16320 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16321 * dbxread.c (dbx_end_psymtab): Use new.
16322
16323 2020-01-26 Tom Tromey <tom@tromey.com>
16324
16325 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16326 allocate_psymtab. Update documentation.
16327 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16328 allocate_psymtab. Do not use new.
16329 (allocate_psymtab): Use new. Update.
16330
16331 2020-01-26 Tom Tromey <tom@tromey.com>
16332
16333 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16334 * psymtab.c (psym_print_stats): Update.
16335 * psympriv.h (struct partial_symtab) <readin,
16336 psymtabs_addrmap_supported, anonymous>: Now bool.
16337 * mdebugread.c (psymtab_to_symtab_1): Update.
16338 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16339 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16340 (process_full_comp_unit, process_full_type_unit): Update.
16341 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16342 * ctfread.c (psymtab_to_symtab): Update.
16343
16344 2020-01-26 Tom Tromey <tom@tromey.com>
16345
16346 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16347 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16348 * psymtab.c (psymtab_storage): Delete psymtabs.
16349 (psymtab_storage::allocate_psymtab): Use new.
16350 (psymtab_storage::discard_psymtab): Use delete.
16351 * psympriv.h (struct partial_symtab): Add constructor and
16352 initializers.
16353
16354 2020-01-26 Tom Tromey <tom@tromey.com>
16355
16356 * machoread.c: Do not include psympriv.h.
16357
16358 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16359
16360 * NEWS: Mention the new option and the set/show commands.
16361
16362 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16363
16364 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16365 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16366 (validate_exec_file): New variables, enums, functions.
16367 (exec_file_locate_attach, print_section_info): Style the filenames.
16368 (_initialize_exec): Install show_exec_file_mismatch_command and
16369 set_exec_file_mismatch_command.
16370 * gdbcore.h (validate_exec_file): Declare.
16371 * infcmd.c (attach_command): Call validate_exec_file.
16372 * remote.c ( remote_target::remote_add_inferior): Likewise.
16373
16374 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16375
16376 * frame.c (find_frame_sal): Move call to get_next_frame into more
16377 inner scope.
16378 * inline-frame.c (inilne_state) <inline_state>: Update argument
16379 types.
16380 (inilne_state) <skipped_symbol>: Rename to...
16381 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16382 (skip_inline_frames): Build vector of skipped symbols and use this
16383 to reate the inline_state.
16384 (inline_skipped_symbol): Add a comment and some assertions, fetch
16385 skipped symbol from the list.
16386
16387 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16388
16389 * buildsym.c (lte_is_less_than): Delete.
16390 (buildsym_compunit::end_symtab_with_blockvector): Create local
16391 lambda function to sort line table entries, and use
16392 std::stable_sort instead of std::sort.
16393 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16394 markers when looking for a previous line.
16395
16396 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16397
16398 * dwarf2read.c (lnp_state_machine::record_line): Include
16399 end_sequence parameter in debug print out. Record the line if we
16400 are at an end_sequence marker even if it's not the start of a
16401 statement.
16402 * symmisc.c (maintenance_print_one_line_table): Print end of
16403 sequence markers with 'END' not '0'.
16404
16405 2020-01-24 Pedro Alves <palves@redhat.com>
16406
16407 PR gdb/25410
16408 * thread.c (scoped_restore_current_thread::restore): Use
16409 switch_to_inferior_no_thread.
16410 * exec.c: Include "progspace-and-thread.h".
16411 (add_target_sections, remove_target_sections):
16412 scoped_restore_current_pspace_and_thread instead of
16413 scoped_restore_current_thread.
16414 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16415 and aspace to the inferior before calling clone_program_space.
16416 Remove stale comment.
16417
16418 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16419
16420 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16421 (arm_netbsd_nat_target::fetch_registers): ...this.
16422 (arm_nbsd_nat_target::store_registers): Rename to...
16423 (arm_netbsd_nat_target::store_registers): ...this.
16424
16425 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16426
16427 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16428 register_t.
16429
16430 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16431
16432 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16433 Update comment.
16434 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16435 Likewise.
16436 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16437 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16438 the correct replacement (iterate_over_regset_sections).
16439 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16440 Update comment.
16441
16442 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16443
16444 PR gdb/23718
16445 * gdb/python/python.c (execute_gdb_command): Call
16446 async_enable_stdin in catch block.
16447
16448 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16449
16450 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16451 SWITCH_THRU_ALL_UIS.
16452
16453 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16454
16455 PR tui/9765
16456 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16457 comment, add extra parameter, and update to store previous symbol
16458 when appropriate.
16459 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16460 add extra parameter.
16461 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16462 remove unneeded parameter, add try/catch around gdb_print_insn,
16463 rewrite to add items to asm_lines vector.
16464 (tui_find_backward_disassembly_start_address): New function.
16465 (tui_find_disassembly_address): Updated throughout.
16466 (tui_disasm_window::set_contents): Update for changes to
16467 tui_disassemble.
16468 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16469 number of lines to scroll.
16470
16471 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16472
16473 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16474 (SECT_OFF_DATA): Likewise.
16475 (SECT_OFF_RODATA): Likewise.
16476 (SECT_OFF_TEXT): Likewise.
16477 (SECT_OFF_BSS): Likewise.
16478 (struct objfile) <text_section_offset, data_section_offset>: New
16479 methods.
16480 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16481 objfile::text_section_offset.
16482 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16483 * coffread.c (coff_symtab_read): Likewise.
16484 (enter_linenos): Likewise.
16485 (process_coff_symbol): Likewise.
16486 * ctfread.c (get_objfile_text_range): Likewise.
16487 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16488 Use objfile::data_section_offset.
16489 * dwarf2-frame.c (execute_cfa_program): Use
16490 objfile::text_section_offset.
16491 (dwarf2_frame_find_fde): Likewise.
16492 * dwarf2read.c (create_addrmap_from_index): Likewise.
16493 (create_addrmap_from_aranges): Likewise.
16494 (dw2_find_pc_sect_compunit_symtab): Likewise.
16495 (process_psymtab_comp_unit_reader): Likewise.
16496 (add_partial_symbol): Likewise.
16497 (add_partial_subprogram): Likewise.
16498 (process_full_comp_unit): Likewise.
16499 (read_file_scope): Likewise.
16500 (read_func_scope): Likewise.
16501 (read_lexical_block_scope): Likewise.
16502 (read_call_site_scope): Likewise.
16503 (dwarf2_rnglists_process): Likewise.
16504 (dwarf2_ranges_process): Likewise.
16505 (dwarf2_ranges_read): Likewise.
16506 (dwarf_decode_lines_1): Likewise.
16507 (new_symbol): Likewise.
16508 (dwarf2_fetch_die_loc_sect_off): Likewise.
16509 (dwarf2_per_cu_text_offset): Likewise.
16510 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16511 * hppa-tdep.c (read_unwind_info): Likewise.
16512 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16513 * psympriv.h (struct partial_symtab): Likewise.
16514 * psymtab.c (find_pc_sect_psymtab): Likewise.
16515 * solib-svr4.c (enable_break): Likewise.
16516 * stap-probe.c (relocate_address): Use
16517 objfile::data_section_offset.
16518 * xcoffread.c (enter_line_range): Use
16519 objfile::text_section_offset.
16520 (read_xcoff_symtab): Likewise.
16521
16522 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16523
16524 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16525 declaration to narrower scopes.
16526
16527 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16528
16529 * darwin-nat.h (struct darwin_exception_msg, enum
16530 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16531 Move up.
16532 (class darwin_nat_target) <wait_1, check_new_threads,
16533 decode_exception_message, decode_message, stop_inferior,
16534 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16535 * darwin-nat.c (darwin_check_new_threads): Rename to...
16536 (darwin_nat_target::check_new_threads): ... this.
16537 (darwin_suspend_inferior_it): Remove.
16538 (darwin_decode_exception_message): Rename to...
16539 (darwin_nat_target::decode_exception_message): ... this.
16540 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16541 (darwin_decode_message): Rename to...
16542 (darwin_nat_target::decode_message): ... this.
16543 (cancel_breakpoint): Rename to...
16544 (darwin_nat_target::cancel_breakpoint): ... this.
16545 (darwin_wait): Rename to...
16546 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16547 instead of iterate_over_inferiors.
16548 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16549 (darwin_stop_inferior): Rename to...
16550 (darwin_nat_target::stop_inferior): ... this.
16551 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16552 (darwin_init_thread_list): Rename to...
16553 (darwin_nat_target::init_thread_list): ... this.
16554 (darwin_ptrace_him): Rename to...
16555 (darwin_nat_target::ptrace_him): ... this.
16556 (darwin_nat_target::create_inferior): Pass lambda function to
16557 fork_inferior.
16558 (darwin_nat_target::detach): Call stop_inferior instead of
16559 darwin_stop_inferior.
16560 * fork-inferior.h (fork_inferior): Change init_trace_fun
16561 parameter to gdb::function_view.
16562 * fork-inferior.c (fork_inferior): Likewise.
16563
16564 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16565
16566 * i386-cygwin-tdep.c (core_process_module_section): Update.
16567 * windows-nat.c (struct lm_info_windows): Add text_offset.
16568 (windows_xfer_shared_libraries): Update.
16569 * windows-tdep.c (windows_xfer_shared_library):
16570 Add text_offset_cached argument.
16571 * windows-tdep.h (windows_xfer_shared_library): Update.
16572
16573 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16574
16575 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16576
16577 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16578
16579 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16580 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16581 replace with range-based for.
16582 (gdbsim_interrupt_inferior): Remove.
16583 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16584 with a range-based for. Inline code from
16585 gdbsim_interrupt_inferior.
16586
16587 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16588
16589 * infrun.c (proceed): Fix indentation.
16590
16591 2020-01-21 Tom Tromey <tromey@adacore.com>
16592
16593 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16594 * python/python.c (python_extension_ops): Update.
16595 (gdbpy_colorize): New function.
16596 * python/lib/gdb/__init__.py (colorize): New function.
16597 * extension.h (ext_lang_colorize): Declare.
16598 * extension.c (ext_lang_colorize): New function.
16599 * extension-priv.h (struct extension_language_ops) <colorize>: New
16600 member.
16601 * cli/cli-style.c (_initialize_cli_style): Update help text.
16602
16603 2020-01-21 Luis Machado <luis.machado@linaro.org>
16604
16605 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16606 <cond>: Change type to bool.
16607 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16608 (aarch64_displaced_step_cb): Likewise.
16609 (aarch64_displaced_step_tb): Likewise.
16610
16611 2020-01-21 Luis Machado <luis.machado@linaro.org>
16612
16613 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16614 output.
16615
16616 2020-01-21 Luis Machado <luis.machado@linaro.org>
16617
16618 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16619 <pc_adjust>: Adjust the documentation.
16620 (aarch64_displaced_step_fixup): Check if PC really moved before
16621 adjusting it.
16622
16623 2020-01-19 Tom Tromey <tom@tromey.com>
16624
16625 * disasm.c (~gdb_disassembler): New destructor.
16626 (gdb_buffered_insn_length): Call disassemble_free_target.
16627 * disasm.h (class gdb_disassembler): Declare destructor. Use
16628 DISABLE_COPY_AND_ASSIGN.
16629
16630 2020-01-19 Tom Tromey <tom@tromey.com>
16631
16632 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16633 (die_reader_func_ftype): Remove.
16634 (cutu_reader): New class.
16635 (dw2_get_file_names_reader): Remove "data" parameter.
16636 (dw2_get_file_names): Use cutu_reader.
16637 (create_debug_type_hash_table): Update.
16638 (read_cutu_die_from_dwo): Update comment.
16639 (lookup_dwo_unit): Add dwo_name parameter.
16640 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16641 die_reader_func_ftype and data parameters.
16642 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16643 Remove die_reader_func_ftype and data parameters.
16644 (~cutu_reader): New; from init_cutu_and_read_dies.
16645 (cutu_reader::cutu_reader): Rename from
16646 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16647 and data parameters.
16648 (init_cutu_and_read_dies_simple): Remove.
16649 (struct process_psymtab_comp_unit_data): Remove.
16650 (process_psymtab_comp_unit_reader): Remove data parameter; add
16651 want_partial_unit and pretend_language parameters.
16652 (process_psymtab_comp_unit): Use cutu_reader.
16653 (build_type_psymtabs_reader): Remove data parameter.
16654 (build_type_psymtabs_1): Use cutu_reader.
16655 (process_skeletonless_type_unit): Likewise.
16656 (load_partial_comp_unit_reader): Remove.
16657 (load_partial_comp_unit): Use cutu_reader.
16658 (load_full_comp_unit_reader): Remove.
16659 (load_full_comp_unit): Use cutu_reader.
16660 (struct create_dwo_cu_data): Remove.
16661 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16662 dwo_unit parameters.
16663 (create_cus_hash_table): Use cutu_reader.
16664 (struct dwarf2_read_addr_index_data): Remove.
16665 (dwarf2_read_addr_index_reader): Remove.
16666 (dwarf2_read_addr_index): Use cutu_reader.
16667 (read_signatured_type_reader): Remove.
16668 (read_signatured_type): Use cutu_reader.
16669
16670 2020-01-19 Tom Tromey <tom@tromey.com>
16671
16672 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16673 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16674 (tui_wrefresh): Declare.
16675 * tui/tui-wingeneral.c (suppress_output): New global.
16676 (tui_suppress_output, ~tui_suppress_output): New constructor and
16677 destructor.
16678 (tui_wrefresh): New function.
16679 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16680 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16681 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16682 method.
16683 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16684 tui_wrefresh.
16685 (tui_data_window::no_refresh): New method.
16686 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16687 (tui_reg_command): Use tui_suppress_output
16688 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16689 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16690 method.
16691 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16692
16693 2020-01-19 Tom Tromey <tom@tromey.com>
16694
16695 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16696 Handle case where symtab is null.
16697
16698 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16699
16700 * linux-fork.c (one_fork_p): Simplify.
16701
16702 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16703
16704 * top.c (struct qt_args): Remove.
16705 (kill_or_detach): Change return type to void, replace `void *`
16706 parameter with a proper one.
16707 (print_inferior_quit_action): Likewise.
16708 (quit_confirm): Use range-based for loop to iterate over inferiors.
16709 (quit_force): Likewise.
16710
16711 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16712
16713 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16714 `void *` parameter with proper parameters.
16715 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16716 (print_one_inferior): Change return type to void, replace `void *`
16717 parameter with proper parameters.
16718 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16719 inferiors.
16720 (get_other_inferior): Remove.
16721 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16722 inferiors.
16723
16724 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16725
16726 * mi/mi-interp.c (report_initial_inferior): Remove.
16727 (mi_interp::init): Use range-based for to iterate over inferiors.
16728
16729 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16730
16731 * python/py-inferior.c (build_inferior_list): Remove.
16732 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16733
16734 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16735
16736 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16737 (btrace_stitch_trace): Likewise.
16738 * charset.c (intermediate_encoding): Likewise (vaild).
16739 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16740 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16741 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16742
16743 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16744
16745 * windows-tdep.c (windows_get_tlb_type):
16746 Add rtl_user_process_parameters type.
16747
16748 2020-01-16 Pedro Alves <palves@redhat.com>
16749 Norbert Lange <nolange79@gmail.com>
16750
16751 PR build/24805
16752 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16753 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16754 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16755 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16756 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16757 (ps_plog): Redeclare exported functions with default visibility.
16758
16759 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16760
16761 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16762 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16763
16764 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16765
16766 * infcmd.c (post_create_inferior): Use get_thread_regcache
16767 instead of get_current_regcache.
16768
16769 2020-01-14 Tom Tromey <tom@tromey.com>
16770
16771 PR symtab/12535:
16772 * python/python.c (gdbpy_decode_line): Treat empty string the same
16773 as no argument.
16774
16775 2020-01-14 Tom Tromey <tom@tromey.com>
16776
16777 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16778
16779 2020-01-14 Tom Tromey <tom@tromey.com>
16780
16781 * nat/linux-btrace.c: Don't include <config.h>.
16782 * nat/linux-ptrace.c: Don't include <config.h>.
16783 * nat/x86-linux-dregs.c: Don't include <config.h>.
16784
16785 2020-01-14 Tom Tromey <tom@tromey.com>
16786
16787 * configure: Rebuild.
16788 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16789
16790 2020-01-14 Tom Tromey <tom@tromey.com>
16791
16792 * nat/x86-linux-dregs.c: Include configh.h.
16793 * nat/linux-ptrace.c: Include configh.h.
16794 * nat/linux-btrace.c: Include configh.h.
16795 * defs.h: Include config.h, bfd.h.
16796 * configure.ac: Don't source common.host.
16797 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16798 * configure: Rebuild.
16799 * acinclude.m4: Update path.
16800 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16801 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16802 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16803 (CLIBS): Add LIBSUPPORT.
16804 (CDEPS): Likewise.
16805 (COMMON_SFILES): Remove gdbsupport files.
16806 (HFILES_NO_SRCDIR): Likewise.
16807 (stamp-version): Update path to create-version.sh.
16808 (ALLDEPFILES): Remove gdbsupport files.
16809
16810 2020-01-14 Tom Tromey <tom@tromey.com>
16811
16812 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16813 USE_WIN32API when needed.
16814 * configure.ac (USE_WIN32API): Don't define.
16815 (WIN32LIBS): Use WIN32APILIBS.
16816 * configure: Rebuild.
16817
16818 2020-01-14 Tom Tromey <tom@tromey.com>
16819
16820 * configure: Rebuild.
16821 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16822
16823 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16824
16825 * skip.c (skip_function_command): Make skip w/o arguments use the
16826 name of the inlined function if pc is inside any inlined function.
16827
16828 2020-01-14 Luis Machado <luis.machado@linaro.org>
16829
16830 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16831 * infrun.c (resume_1): Likewise.
16832 (handle_inferior_event): Remove stale comment.
16833 * linux-nat.c (linux_nat_target::resume): Update comments.
16834 (save_stop_reason): Likewise.
16835 (linux_nat_filter_event): Likewise.
16836 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16837
16838 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16839
16840 * elfread.c (record_minimal_symbol): Set section index to 0 for
16841 non-allocatable sections.
16842
16843
16844 2020-01-13 Ali Tamur <tamur@google.com>
16845
16846 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16847 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16848 to gdb::optional. Update comments.
16849 (dwo_file): Update comments.
16850 (read_attribute): Update API to take an additional out parameter,
16851 need_reprocess. This is used to mark attributes that need other
16852 attributes (e.g. str_offsets_base) for correct computation which may not
16853 have been read yet.
16854 (read_attribute_reprocess): New function declaration.
16855 (read_addr_index): Likewise.
16856 (read_dwo_str_index): Likewise.
16857 (read_stub_str_index): Likewise.
16858 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16859 (lookup_addr_base): New function definition.
16860 (lookup_ranges_base): Likewise.
16861 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16862 lookup_ranges_base.
16863 (init_cutu_and_read_dies): Update comments.
16864 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16865 unit. This is used to inherit parent's str_offsets_base and addr_base.
16866 Update comments.
16867 (init_cutu_and_read_dies_simple): Reflect API changes.
16868 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16869 (create_cus_hash_table): Change API to take parent compile unit.
16870 Reflect API changes.
16871 (open_and_init_dwo_file): Reflect API changes.
16872 (dwarf2_get_pc_bounds): Update comments.
16873 (dwarf2_record_block_ranges): Likewise.
16874 (read_full_die_1): Change implementation to reprocess attributes that
16875 need str_offsets_base and addr_base.
16876 (partial_die_info::read): Likewise.
16877 (read_attribute_reprocess): New function definition.
16878 (read_attribute_value): Change API to take an additional out parameter,
16879 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16880 when a non-dwo compile unit has index based attributes.
16881 (read_attribute): Reflect API changes.
16882 (read_addr_index_1): Reflect API changes. Update comments.
16883 (dwarf2_read_addr_index_data): Reflect API changes.
16884 (dwarf2_read_addr_index): Likewise.
16885 (read_str_index): Change API and implementation. This becomes a helper
16886 to be used by the new string index related methods. Update error
16887 message and comments.
16888 (read_dwo_str_index): New function definition.
16889 (read_stub_str_index): Likewise.
16890 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16891 * symfile.h (dwarf2_debug_sections): Likewise.
16892 * xcoffread.c (dwarf2_debug_sections): Likewise.
16893
16894 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16895
16896 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16897 core_reg_sect type to gdb_byte *.
16898 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16899 * cris-tdep.c (fetch_core_registers): Likewise.
16900 * corelow.c (core_target::get_core_register_section): Change
16901 type of `contents` to gdb::byte_vector.
16902
16903 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16904
16905 * tui/tui-wingeneral.c (box_win): Position the title in the center
16906 of the border.
16907
16908 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16909
16910 * corelow.c (core_target::get_core_register_section): Use
16911 std::vector instead of alloca.
16912
16913 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16914
16915 * warning.m4: Add -Wmissing-declarations to build_warnings.
16916 * configure: Re-generate.
16917
16918 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16919
16920 * python/python.c (init__gdb_module): Add declaration.
16921
16922 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16923
16924 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16925 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16926 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16927 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16928 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16929 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16930 * ada-exp.y (_initialize_ada_exp): Add declaration.
16931 * ada-lang.c (_initialize_ada_language): Add declaration.
16932 * ada-tasks.c (_initialize_tasks): Add declaration.
16933 * agent.c (_initialize_agent): Add declaration.
16934 * aix-thread.c (_initialize_aix_thread): Add declaration.
16935 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16936 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16937 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16938 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16939 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16940 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16941 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16942 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16943 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16944 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16945 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16946 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16947 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16948 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16949 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16950 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16951 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16952 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16953 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16954 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16955 * annotate.c (_initialize_annotate): Add declaration.
16956 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16957 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16958 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16959 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16960 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16961 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16962 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16963 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16964 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16965 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16966 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16967 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16968 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16969 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16970 * auto-load.c (_initialize_auto_load): Add declaration.
16971 * auxv.c (_initialize_auxv): Add declaration.
16972 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16973 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16974 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16975 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16976 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16977 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16978 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16979 * breakpoint.c (_initialize_breakpoint): Add declaration.
16980 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16981 * btrace.c (_initialize_btrace): Add declaration.
16982 * charset.c (_initialize_charset): Add declaration.
16983 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16984 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16985 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16986 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16987 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16988 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16989 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16990 * coffread.c (_initialize_coffread): Add declaration.
16991 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16992 * compile/compile.c (_initialize_compile): Add declaration.
16993 * complaints.c (_initialize_complaints): Add declaration.
16994 * completer.c (_initialize_completer): Add declaration.
16995 * copying.c (_initialize_copying): Add declaration.
16996 * corefile.c (_initialize_core): Add declaration.
16997 * corelow.c (_initialize_corelow): Add declaration.
16998 * cp-abi.c (_initialize_cp_abi): Add declaration.
16999 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17000 * cp-support.c (_initialize_cp_support): Add declaration.
17001 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17002 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17003 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17004 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17005 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17006 * ctfread.c (_initialize_ctfread): Add declaration.
17007 * d-lang.c (_initialize_d_language): Add declaration.
17008 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17009 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17010 * dbxread.c (_initialize_dbxread): Add declaration.
17011 * dcache.c (_initialize_dcache): Add declaration.
17012 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17013 * disasm.c (_initialize_disasm): Add declaration.
17014 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17015 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17016 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17017 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17018 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17019 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17020 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17021 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17022 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17023 * elfread.c (_initialize_elfread): Add declaration.
17024 * exec.c (_initialize_exec): Add declaration.
17025 * extension.c (_initialize_extension): Add declaration.
17026 * f-lang.c (_initialize_f_language): Add declaration.
17027 * f-valprint.c (_initialize_f_valprint): Add declaration.
17028 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17029 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17030 * filesystem.c (_initialize_filesystem): Add declaration.
17031 * findcmd.c (_initialize_mem_search): Add declaration.
17032 * findvar.c (_initialize_findvar): Add declaration.
17033 * fork-child.c (_initialize_fork_child): Add declaration.
17034 * frame-base.c (_initialize_frame_base): Add declaration.
17035 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17036 * frame.c (_initialize_frame): Add declaration.
17037 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17038 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17039 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17040 * gcore.c (_initialize_gcore): Add declaration.
17041 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17042 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17043 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17044 * gdbarch.c (_initialize_gdbarch): Add declaration.
17045 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17046 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17047 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17048 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17049 * go-lang.c (_initialize_go_language): Add declaration.
17050 * go32-nat.c (_initialize_go32_nat): Add declaration.
17051 * guile/guile.c (_initialize_guile): Add declaration.
17052 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17053 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17054 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17055 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17056 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17057 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17058 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17059 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17060 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17061 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17062 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17063 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17064 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17065 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17066 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17067 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17068 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17069 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17070 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17071 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17072 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17073 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17074 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17075 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17076 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17077 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17078 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17079 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17080 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17081 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17082 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17083 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17084 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17085 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17086 * infcall.c (_initialize_infcall): Add declaration.
17087 * infcmd.c (_initialize_infcmd): Add declaration.
17088 * inflow.c (_initialize_inflow): Add declaration.
17089 * infrun.c (_initialize_infrun): Add declaration.
17090 * interps.c (_initialize_interpreter): Add declaration.
17091 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17092 * jit.c (_initialize_jit): Add declaration.
17093 * language.c (_initialize_language): Add declaration.
17094 * linux-fork.c (_initialize_linux_fork): Add declaration.
17095 * linux-nat.c (_initialize_linux_nat): Add declaration.
17096 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17097 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17098 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17099 * m2-lang.c (_initialize_m2_language): Add declaration.
17100 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17101 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17102 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17103 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17104 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17105 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17106 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17107 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17108 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17109 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17110 * machoread.c (_initialize_machoread): Add declaration.
17111 * macrocmd.c (_initialize_macrocmd): Add declaration.
17112 * macroscope.c (_initialize_macroscope): Add declaration.
17113 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17114 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17115 * maint.c (_initialize_maint_cmds): Add declaration.
17116 * mdebugread.c (_initialize_mdebugread): Add declaration.
17117 * memattr.c (_initialize_mem): Add declaration.
17118 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17119 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17120 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17121 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17122 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17123 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17124 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17125 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17126 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17127 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17128 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17129 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17130 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17131 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17132 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17133 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17134 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17135 * mipsread.c (_initialize_mipsread): Add declaration.
17136 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17137 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17138 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17139 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17140 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17141 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17142 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17143 * nto-procfs.c (_initialize_procfs): Add declaration.
17144 * objc-lang.c (_initialize_objc_language): Add declaration.
17145 * observable.c (_initialize_observer): Add declaration.
17146 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17147 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17148 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17149 * osabi.c (_initialize_gdb_osabi): Add declaration.
17150 * osdata.c (_initialize_osdata): Add declaration.
17151 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17152 * parse.c (_initialize_parse): Add declaration.
17153 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17154 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17155 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17156 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17157 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17158 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17159 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17160 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17161 * printcmd.c (_initialize_printcmd): Add declaration.
17162 * probe.c (_initialize_probe): Add declaration.
17163 * proc-api.c (_initialize_proc_api): Add declaration.
17164 * proc-events.c (_initialize_proc_events): Add declaration.
17165 * proc-service.c (_initialize_proc_service): Add declaration.
17166 * procfs.c (_initialize_procfs): Add declaration.
17167 * producer.c (_initialize_producer): Add declaration.
17168 * psymtab.c (_initialize_psymtab): Add declaration.
17169 * python/python.c (_initialize_python): Add declaration.
17170 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17171 * record-btrace.c (_initialize_record_btrace): Add declaration.
17172 * record-full.c (_initialize_record_full): Add declaration.
17173 * record.c (_initialize_record): Add declaration.
17174 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17175 * regcache.c (_initialize_regcache): Add declaration.
17176 * reggroups.c (_initialize_reggroup): Add declaration.
17177 * remote-notif.c (_initialize_notif): Add declaration.
17178 * remote-sim.c (_initialize_remote_sim): Add declaration.
17179 * remote.c (_initialize_remote): Add declaration.
17180 * reverse.c (_initialize_reverse): Add declaration.
17181 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17182 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17183 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17184 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17185 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17186 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17187 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17188 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17189 Add declaration.
17190 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17191 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17192 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17193 * rust-exp.y (_initialize_rust_exp): Add declaration.
17194 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17195 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17196 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17197 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17198 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17199 * score-tdep.c (_initialize_score_tdep): Add declaration.
17200 * ser-go32.c (_initialize_ser_dos): Add declaration.
17201 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17202 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17203 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17204 * ser-uds.c (_initialize_ser_socket): Add declaration.
17205 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17206 * serial.c (_initialize_serial): Add declaration.
17207 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17208 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17209 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17210 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17211 * skip.c (_initialize_step_skip): Add declaration.
17212 * sol-thread.c (_initialize_sol_thread): Add declaration.
17213 * solib-aix.c (_initialize_solib_aix): Add declaration.
17214 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17215 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17216 * solib-frv.c (_initialize_frv_solib): Add declaration.
17217 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17218 * solib-target.c (_initialize_solib_target): Add declaration.
17219 * solib.c (_initialize_solib): Add declaration.
17220 * source-cache.c (_initialize_source_cache): Add declaration.
17221 * source.c (_initialize_source): Add declaration.
17222 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17223 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17224 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17225 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17226 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17227 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17228 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17229 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17230 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17231 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17232 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17233 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17234 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17235 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17236 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17237 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17238 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17239 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17240 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17241 * stabsread.c (_initialize_stabsread): Add declaration.
17242 * stack.c (_initialize_stack): Add declaration.
17243 * stap-probe.c (_initialize_stap_probe): Add declaration.
17244 * std-regs.c (_initialize_frame_reg): Add declaration.
17245 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17246 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17247 * symfile.c (_initialize_symfile): Add declaration.
17248 * symmisc.c (_initialize_symmisc): Add declaration.
17249 * symtab.c (_initialize_symtab): Add declaration.
17250 * target.c (_initialize_target): Add declaration.
17251 * target-connection.c (_initialize_target_connection): Add
17252 declaration.
17253 * target-dcache.c (_initialize_target_dcache): Add declaration.
17254 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17255 * thread.c (_initialize_thread): Add declaration.
17256 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17257 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17258 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17259 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17260 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17261 * tracectf.c (_initialize_ctf): Add declaration.
17262 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17263 * tracefile.c (_initialize_tracefile): Add declaration.
17264 * tracepoint.c (_initialize_tracepoint): Add declaration.
17265 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17266 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17267 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17268 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17269 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17270 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17271 * tui/tui.c (_initialize_tui): Add declaration.
17272 * typeprint.c (_initialize_typeprint): Add declaration.
17273 * ui-style.c (_initialize_ui_style): Add declaration.
17274 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17275 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17276 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17277 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17278 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17279 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17280 * unittests/filtered_iterator-selftests.c
17281 (_initialize_filtered_iterator_selftests): Add declaration.
17282 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17283 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17284 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17285 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17286 * unittests/main-thread-selftests.c
17287 (_initialize_main_thread_selftests): Add declaration.
17288 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17289 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17290 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17291 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17292 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17293 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17294 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17295 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17296 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17297 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17298 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17299 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17300 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17301 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17302 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17303 declaration.
17304 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17305 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17306 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17307 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17308 * user-regs.c (_initialize_user_regs): Add declaration.
17309 * utils.c (_initialize_utils): Add declaration.
17310 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17311 * valops.c (_initialize_valops): Add declaration.
17312 * valprint.c (_initialize_valprint): Add declaration.
17313 * value.c (_initialize_values): Add declaration.
17314 * varobj.c (_initialize_varobj): Add declaration.
17315 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17316 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17317 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17318 * windows-nat.c (_initialize_windows_nat): Add declaration.
17319 (_initialize_check_for_gdb_ini): Add declaration.
17320 (_initialize_loadable): Add declaration.
17321 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17322 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17323 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17324 * xcoffread.c (_initialize_xcoffread): Add declaration.
17325 * xml-support.c (_initialize_xml_support): Add declaration.
17326 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17327 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17328 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17329 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17330
17331 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17332
17333 * regformats/regdat.sh: Generate declaration for init function.
17334
17335 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17336
17337 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17338 up.
17339 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17340 close_one_inferior>: New methods.
17341 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17342 pass down target to find_inferior_pid.
17343 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17344 Pass down target to find_inferior_ptid.
17345 (gdbsim_target::create_inferior): Pass down target to
17346 add_thread_silent.
17347 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17348 target down to find_inferior_ptid and switch_to_thread.
17349 (gdbsim_target::close): Update to call close_one_inferior.
17350 (struct resume_data): Remove.
17351 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17352 directly, rather than through a void pointer.
17353 (gdbsim_target::resume): Update to call resume_one_inferior.
17354
17355 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17356
17357 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17358
17359 2020-01-12 Pedro Alves <palves@redhat.com>
17360
17361 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17362 directly for the current inferior instead of
17363 discard_all_inferiors.
17364 (discard_all_inferiors): Delete.
17365
17366 2020-01-11 Tom Tromey <tom@tromey.com>
17367
17368 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17369 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17370 deprecated_safe_get_selected_frame.
17371
17372 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17373
17374 * inferior.c (print_inferior): Switch inferior before printing it.
17375
17376 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17377 Pedro Alves <palves@redhat.com>
17378
17379 * progspace-and-thread.c (switch_to_program_space_and_thread):
17380 Assert there's an inferior for PSPACE. Use
17381 switch_to_inferior_no_thread to switch the inferior too.
17382 * progspace.c (program_space::~program_space): Call
17383 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17384 (program_space::free_all_objfiles): Don't call clear_symtab_users
17385 here.
17386 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17387
17388 2020-01-10 Pedro Alves <palves@redhat.com>
17389
17390 * NEWS: Mention multi-target debugging, "info connections", and
17391 "add-inferior -no-connection".
17392
17393 2020-01-10 Pedro Alves <palves@redhat.com>
17394
17395 * infrun.c: Include "target-connection.h".
17396 (check_multi_target_resumption): New.
17397 (proceed): Call it.
17398 * target-connection.c (make_target_connection_string): Make
17399 extern.
17400 * target-connection.h (make_target_connection_string): Declare.
17401
17402 2020-01-10 Pedro Alves <palves@redhat.com>
17403
17404 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17405 * inferior.c (uiout_field_connection): New function.
17406 (print_inferior): Add new "connection-id" column.
17407 (add_inferior_command): Show connection number/string of added
17408 inferior.
17409 * process-stratum-target.h
17410 (process_stratum_target::connection_string): New virtual method.
17411 (process_stratum_target::connection_number): New field.
17412 * remote.c (remote_target::connection_string): New override.
17413 * target-connection.c: New file.
17414 * target-connection.h: New file.
17415 * target.c (decref_target): Remove process_stratum targets from
17416 the connection list.
17417 (target_stack::push): Add process_stratum targets to the
17418 connection list.
17419
17420 2020-01-10 Pedro Alves <palves@redhat.com>
17421
17422 Revert:
17423 2016-04-12 Pedro Alves <palves@redhat.com>
17424 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17425 Remove references to name.
17426 * serial.h (struct serial) <name>: Delete.
17427
17428 2020-01-10 Pedro Alves <palves@redhat.com>
17429
17430 * gdbarch-selftests.c (register_to_value_test): Remove "target
17431 already pushed" check.
17432
17433 2020-01-10 Pedro Alves <palves@redhat.com>
17434 John Baldwin <jhb@FreeBSD.org>
17435
17436 * aarch64-linux-nat.c
17437 (aarch64_linux_nat_target::thread_architecture): Adjust.
17438 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17439 (task_command_1): Likewise.
17440 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17441 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17442 (aix_thread_target::store_registers)
17443 (aix_thread_target::thread_alive): Adjust.
17444 * amd64-fbsd-tdep.c: Include "inferior.h".
17445 (amd64fbsd_get_thread_local_address): Pass down target.
17446 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17447 thread's gdbarch instead of target_gdbarch.
17448 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17449 get_last_target_status.
17450 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17451 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17452 inferiors.
17453 (update_inserted_breakpoint_locations): Skip if inferiors with no
17454 execution.
17455 (update_global_location_list): When handling moribund locations,
17456 find representative inferior for location's pspace, and use thread
17457 count of its process_stratum target.
17458 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17459 * bsd-uthread.c (bsd_uthread_target::wait): Use
17460 as_process_stratum_target and adjust thread_change_ptid and
17461 add_thread calls.
17462 (bsd_uthread_target::update_thread_list): Use
17463 as_process_stratum_target and adjust find_thread_ptid,
17464 thread_change_ptid and add_thread calls.
17465 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17466 find_thread_ptid call.
17467 * corelow.c (add_to_thread_list): Adjust add_thread call.
17468 (core_target_open): Adjust add_thread_silent and thread_count
17469 calls.
17470 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17471 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17472 * event-top.c (async_disconnect): Pop targets from all inferiors.
17473 * exec.c (add_target_sections): Push exec target on all inferiors
17474 sharing the program space.
17475 (remove_target_sections): Remove the exec target from all
17476 inferiors sharing the program space.
17477 (exec_on_vfork): New.
17478 * exec.h (exec_on_vfork): Declare.
17479 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17480 Pass it down.
17481 (fbsd_nat_target::update_thread_list): Adjust.
17482 (fbsd_nat_target::resume): Adjust.
17483 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17484 down.
17485 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17486 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17487 get_thread_arch_regcache call.
17488 * fork-child.c (gdb_startup_inferior): Pass target down to
17489 startup_inferior and set_executing.
17490 * gdbthread.h (struct process_stratum_target): Forward declare.
17491 (add_thread, add_thread_silent, add_thread_with_info)
17492 (in_thread_list): Add process_stratum_target parameter.
17493 (find_thread_ptid(inferior*, ptid_t)): New overload.
17494 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17495 parameter.
17496 (all_threads()): Delete overload.
17497 (all_threads, all_non_exited_threads): Add process_stratum_target
17498 parameter.
17499 (all_threads_safe): Use brace initialization.
17500 (thread_count): Add process_stratum_target parameter.
17501 (set_resumed, set_running, set_stop_requested, set_executing)
17502 (threads_are_executing, finish_thread_state): Add
17503 process_stratum_target parameter.
17504 (switch_to_thread): Use is_current_thread.
17505 * i386-fbsd-tdep.c: Include "inferior.h".
17506 (i386fbsd_get_thread_local_address): Pass down target.
17507 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17508 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17509 have_inferiors check.
17510 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17511 (inf_ptrace_target::attach): Adjust.
17512 * infcall.c (run_inferior_call): Adjust.
17513 * infcmd.c (run_command_1): Pass target to
17514 scoped_finish_thread_state.
17515 (proceed_thread_callback): Skip inferiors with no execution.
17516 (continue_command): Rename 'all_threads' local to avoid hiding
17517 'all_threads' function. Adjust get_last_target_status call.
17518 (prepare_one_step): Adjust set_running call.
17519 (signal_command): Use user_visible_resume_target. Compare thread
17520 pointers instead of inferior_ptid.
17521 (info_program_command): Adjust to pass down target.
17522 (attach_command): Mark target's 'thread_executing' flag.
17523 (stop_current_target_threads_ns): New, factored out from ...
17524 (interrupt_target_1): ... this. Switch inferior before making
17525 target calls.
17526 * inferior-iter.h
17527 (struct all_inferiors_iterator, struct all_inferiors_range)
17528 (struct all_inferiors_safe_range)
17529 (struct all_non_exited_inferiors_range): Filter on
17530 process_stratum_target too. Remove explicit.
17531 * inferior.c (inferior::inferior): Push dummy target on target
17532 stack.
17533 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17534 Add process_stratum_target parameter, and pass it down.
17535 (have_live_inferiors): Adjust.
17536 (switch_to_inferior_and_push_target): New.
17537 (add_inferior_command, clone_inferior_command): Handle
17538 "-no-connection" parameter. Use
17539 switch_to_inferior_and_push_target.
17540 (_initialize_inferior): Mention "-no-connection" option in
17541 the help of "add-inferior" and "clone-inferior" commands.
17542 * inferior.h: Include "process-stratum-target.h".
17543 (interrupt_target_1): Use bool.
17544 (struct inferior) <push_target, unpush_target, target_is_pushed,
17545 find_target_beneath, top_target, process_target, target_at,
17546 m_stack>: New.
17547 (discard_all_inferiors): Delete.
17548 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17549 (all_inferiors, all_non_exited_inferiors): Add
17550 process_stratum_target parameter.
17551 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17552 (target_last_proc_target): New global.
17553 (follow_fork_inferior): Push target on new inferior. Pass target
17554 to add_thread_silent. Call exec_on_vfork. Handle target's
17555 reference count.
17556 (follow_fork): Adjust get_last_target_status call. Also consider
17557 target.
17558 (follow_exec): Push target on new inferior.
17559 (struct execution_control_state) <target>: New field.
17560 (user_visible_resume_target): New.
17561 (do_target_resume): Call target_async.
17562 (resume_1): Set target's threads_executing flag. Consider resume
17563 target.
17564 (commit_resume_all_targets): New.
17565 (proceed): Also consider resume target. Skip threads of inferiors
17566 with no execution. Commit resumtion in all targets.
17567 (start_remote): Pass current inferior to wait_for_inferior.
17568 (infrun_thread_stop_requested): Consider target as well. Pass
17569 thread_info pointer to clear_inline_frame_state instead of ptid.
17570 (infrun_thread_thread_exit): Consider target as well.
17571 (random_pending_event_thread): New inferior parameter. Use it.
17572 (do_target_wait): Rename to ...
17573 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17574 down.
17575 (threads_are_resumed_pending_p, do_target_wait): New.
17576 (prepare_for_detach): Adjust calls.
17577 (wait_for_inferior): New inferior parameter. Handle it. Use
17578 do_target_wait_1 instead of do_target_wait.
17579 (fetch_inferior_event): Adjust. Switch to representative
17580 inferior. Pass target down.
17581 (set_last_target_status): Add process_stratum_target parameter.
17582 Save target in global.
17583 (get_last_target_status): Add process_stratum_target parameter and
17584 handle it.
17585 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17586 (context_switch): Check inferior_ptid == null_ptid before calling
17587 inferior_thread().
17588 (get_inferior_stop_soon): Pass down target.
17589 (wait_one): Rename to ...
17590 (poll_one_curr_target): ... this.
17591 (struct wait_one_event): New.
17592 (wait_one): New.
17593 (stop_all_threads): Adjust.
17594 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17595 event's target.
17596 (switch_back_to_stepped_thread): Also consider target.
17597 (print_stop_event): Update.
17598 (normal_stop): Update. Also consider the resume target.
17599 * infrun.h (wait_for_inferior): Remove declaration.
17600 (user_visible_resume_target): New declaration.
17601 (get_last_target_status, set_last_target_status): New
17602 process_stratum_target parameter.
17603 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17604 process_stratum_target parameter, and use it.
17605 (clear_inline_frame_state (thread_info*)): New.
17606 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17607 process_stratum_target parameter.
17608 (clear_inline_frame_state (thread_info*)): Declare.
17609 * linux-fork.c (delete_checkpoint_command): Pass target down to
17610 find_thread_ptid.
17611 (checkpoint_command): Adjust.
17612 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17613 instead of just tweaking inferior_ptid.
17614 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17615 (exit_lwp): Pass target down to find_thread_ptid.
17616 (attach_proc_task_lwp_callback): Pass target down to
17617 add_thread/set_running/set_executing.
17618 (linux_nat_target::attach): Pass target down to
17619 thread_change_ptid.
17620 (get_detach_signal): Pass target down to find_thread_ptid.
17621 Consider last target status's target.
17622 (linux_resume_one_lwp_throw, resume_lwp)
17623 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17624 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17625 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17626 (linux_nat_target::async_wait_fd): New.
17627 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17628 target down.
17629 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17630 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17631 * linux-thread-db.c (struct thread_db_info::process_target): New
17632 field.
17633 (add_thread_db_info): Save target.
17634 (get_thread_db_info): New process_stratum_target parameter. Also
17635 match target.
17636 (delete_thread_db_info): New process_stratum_target parameter.
17637 Also match target.
17638 (thread_from_lwp): Adjust to pass down target.
17639 (thread_db_notice_clone): Pass down target.
17640 (check_thread_db_callback): Pass down target.
17641 (try_thread_db_load_1): Always push the thread_db target.
17642 (try_thread_db_load, record_thread): Pass target down.
17643 (thread_db_target::detach): Pass target down. Always unpush the
17644 thread_db target.
17645 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17646 target down. Always unpush the thread_db target.
17647 (find_new_threads_callback, thread_db_find_new_threads_2)
17648 (thread_db_target::update_thread_list): Pass target down.
17649 (thread_db_target::pid_to_str): Pass current inferior down.
17650 (thread_db_target::get_thread_local_address): Pass target down.
17651 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17652 target down.
17653 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17654 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17655 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17656 (procfs_init_inferior): Rename to ...
17657 (procfs_target::procfs_init_inferior): ... this and adjust.
17658 (procfs_target::create_inferior, procfs_notice_thread)
17659 (procfs_do_thread_registers): Adjust.
17660 * ppc-fbsd-tdep.c: Include "inferior.h".
17661 (ppcfbsd_get_thread_local_address): Pass down target.
17662 * proc-service.c (ps_xfer_memory): Switch current inferior and
17663 program space as well.
17664 (get_ps_regcache): Pass target down.
17665 * process-stratum-target.c
17666 (process_stratum_target::thread_address_space)
17667 (process_stratum_target::thread_architecture): Pass target down.
17668 * process-stratum-target.h
17669 (process_stratum_target::threads_executing): New field.
17670 (as_process_stratum_target): New.
17671 * ravenscar-thread.c
17672 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17673 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17674 down.
17675 * record-btrace.c (record_btrace_target::info_record): Adjust.
17676 (record_btrace_target::record_method)
17677 (record_btrace_target::record_is_replaying)
17678 (record_btrace_target::fetch_registers)
17679 (get_thread_current_frame_id, record_btrace_target::resume)
17680 (record_btrace_target::wait, record_btrace_target::stop): Pass
17681 target down.
17682 * record-full.c (record_full_wait_1): Switch to event thread.
17683 Pass target down.
17684 * regcache.c (regcache::regcache)
17685 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17686 process_stratum_target parameter and handle it.
17687 (current_thread_target): New global.
17688 (get_thread_regcache): Add process_stratum_target parameter and
17689 handle it. Switch inferior before calling target method.
17690 (get_thread_regcache): Pass target down.
17691 (get_thread_regcache_for_ptid): Pass target down.
17692 (registers_changed_ptid): Add process_stratum_target parameter and
17693 handle it.
17694 (registers_changed_thread, registers_changed): Pass target down.
17695 (test_get_thread_arch_aspace_regcache): New.
17696 (current_regcache_test): Define a couple local test_target_ops
17697 instances and use them for testing.
17698 (readwrite_regcache): Pass process_stratum_target parameter.
17699 (cooked_read_test, cooked_write_test): Pass mock_target down.
17700 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17701 (get_thread_arch_aspace_regcache): Add process_stratum_target
17702 parameter.
17703 (regcache::target): New method.
17704 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17705 (regcache::registers_changed_ptid): Add process_stratum_target
17706 parameter.
17707 (regcache::m_target): New field.
17708 (registers_changed_ptid): Add process_stratum_target parameter.
17709 * remote.c (remote_state::supports_vCont_probed): New field.
17710 (remote_target::async_wait_fd): New method.
17711 (remote_unpush_and_throw): Add remote_target parameter.
17712 (get_current_remote_target): Adjust.
17713 (remote_target::remote_add_inferior): Push target.
17714 (remote_target::remote_add_thread)
17715 (remote_target::remote_notice_new_inferior)
17716 (get_remote_thread_info): Pass target down.
17717 (remote_target::update_thread_list): Skip threads of inferiors
17718 bound to other targets. (remote_target::close): Don't discard
17719 inferiors. (remote_target::add_current_inferior_and_thread)
17720 (remote_target::process_initial_stop_replies)
17721 (remote_target::start_remote)
17722 (remote_target::remote_serial_quit_handler): Pass down target.
17723 (remote_target::remote_unpush_target): New remote_target
17724 parameter. Unpush the target from all inferiors.
17725 (remote_target::remote_unpush_and_throw): New remote_target
17726 parameter. Pass it down.
17727 (remote_target::open_1): Check whether the current inferior has
17728 execution instead of checking whether any inferior is live. Pass
17729 target down.
17730 (remote_target::remote_detach_1): Pass down target. Use
17731 remote_unpush_target.
17732 (extended_remote_target::attach): Pass down target.
17733 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17734 (remote_target::append_resumption): Pass down target.
17735 (remote_target::append_pending_thread_resumptions)
17736 (remote_target::remote_resume_with_hc, remote_target::resume)
17737 (remote_target::commit_resume): Pass down target.
17738 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17739 (remote_target::interrupt_query)
17740 (remote_target::remove_new_fork_children)
17741 (remote_target::check_pending_events_prevent_wildcard_vcont)
17742 (remote_target::remote_parse_stop_reply)
17743 (remote_target::process_stop_reply): Pass down target.
17744 (first_remote_resumed_thread): New remote_target parameter. Pass
17745 it down.
17746 (remote_target::wait_as): Pass down target.
17747 (unpush_and_perror): New remote_target parameter. Pass it down.
17748 (remote_target::readchar, remote_target::remote_serial_write)
17749 (remote_target::getpkt_or_notif_sane_1)
17750 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17751 down target.
17752 (remote_target::mourn_inferior): Pass down target. Use
17753 remote_unpush_target.
17754 (remote_target::core_of_thread)
17755 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17756 (remote_target::pid_to_exec_file)
17757 (remote_target::thread_handle_to_thread_info): Pass down target.
17758 (remote_target::async_wait_fd): New.
17759 * riscv-fbsd-tdep.c: Include "inferior.h".
17760 (riscv_fbsd_get_thread_local_address): Pass down target.
17761 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17762 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17763 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17764 Adjust.
17765 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17766 * solib-svr4.c (enable_break): Pass down target.
17767 * spu-multiarch.c (parse_spufs_run): Pass down target.
17768 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17769 * target-delegates.c: Regenerate.
17770 * target.c (g_target_stack): Delete.
17771 (current_top_target): Return the current inferior's top target.
17772 (target_has_execution_1): Refer to the passed-in inferior's top
17773 target.
17774 (target_supports_terminal_ours): Check whether the initial
17775 inferior was already created.
17776 (decref_target): New.
17777 (target_stack::push): Incref/decref the target.
17778 (push_target, push_target, unpush_target): Adjust.
17779 (target_stack::unpush): Defref target.
17780 (target_is_pushed): Return bool. Adjust to refer to the current
17781 inferior's target stack.
17782 (dispose_inferior): Delete, and inline parts ...
17783 (target_preopen): ... here. Only dispose of the current inferior.
17784 (target_detach): Hold strong target reference while detaching.
17785 Pass target down.
17786 (target_thread_name): Add assertion.
17787 (target_resume): Pass down target.
17788 (target_ops::beneath, find_target_at): Adjust to refer to the
17789 current inferior's target stack.
17790 (get_dummy_target): New.
17791 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17792 has a thread running.
17793 (initialize_targets): Rename to ...
17794 (_initialize_target): ... this.
17795 * target.h: Include "gdbsupport/refcounted-object.h".
17796 (struct target_ops): Inherit refcounted_object.
17797 (target_ops::shortname, target_ops::longname): Make const.
17798 (target_ops::async_wait_fd): New method.
17799 (decref_target): Declare.
17800 (struct target_ops_ref_policy): New.
17801 (target_ops_ref): New typedef.
17802 (get_dummy_target): Declare function.
17803 (target_is_pushed): Return bool.
17804 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17805 (all_matching_threads_iterator::all_matching_threads_iterator):
17806 Handle filter target.
17807 * thread-iter.h (struct all_matching_threads_iterator, struct
17808 all_matching_threads_range, class all_non_exited_threads_range):
17809 Filter by target too. Remove explicit.
17810 * thread.c (threads_executing): Delete.
17811 (inferior_thread): Pass down current inferior.
17812 (clear_thread_inferior_resources): Pass down thread pointer
17813 instead of ptid_t.
17814 (add_thread_silent, add_thread_with_info, add_thread): Add
17815 process_stratum_target parameter. Use it for thread and inferior
17816 searches.
17817 (is_current_thread): New.
17818 (thread_info::deletable): Use it.
17819 (find_thread_ptid, thread_count, in_thread_list)
17820 (thread_change_ptid, set_resumed, set_running): New
17821 process_stratum_target parameter. Pass it down.
17822 (set_executing): New process_stratum_target parameter. Pass it
17823 down. Adjust reference to 'threads_executing'.
17824 (threads_are_executing): New process_stratum_target parameter.
17825 Adjust reference to 'threads_executing'.
17826 (set_stop_requested, finish_thread_state): New
17827 process_stratum_target parameter. Pass it down.
17828 (switch_to_thread): Also match inferior.
17829 (switch_to_thread): New process_stratum_target parameter. Pass it
17830 down.
17831 (update_threads_executing): Reimplement.
17832 * top.c (quit_force): Pop targets from all inferior.
17833 (gdb_init): Don't call initialize_targets.
17834 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17835 Declare.
17836 (windows_add_thread, windows_delete_thread): Adjust.
17837 (get_windows_debug_event): Rename to ...
17838 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17839 * tracefile-tfile.c (tfile_target_open): Pass down target.
17840 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17841 Forward declare.
17842 (switch_to_thread): Add process_stratum_target parameter.
17843 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17844 parameter. Use it.
17845 (mi_on_resume): Pass target down.
17846 * nat/fork-inferior.c (startup_inferior): Add
17847 process_stratum_target parameter. Pass it down.
17848 * nat/fork-inferior.h (startup_inferior): Add
17849 process_stratum_target parameter.
17850 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17851
17852 2020-01-10 Pedro Alves <palves@redhat.com>
17853
17854 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17855 directly. Instead find the first thread in the thread list and
17856 use switch_to_thread.
17857
17858 2020-01-10 Pedro Alves <palves@redhat.com>
17859
17860 * remote.c (remote_target::remote_add_inferior): Don't bind a
17861 process to the current inferior if the current inferior is already
17862 bound to a process.
17863
17864 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17865 Pedro Alves <palves@redhat.com>
17866
17867 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17868 If no process is specified, return null_ptid instead of
17869 inferior_ptid.
17870 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17871 TARGET_WAITKIND_SIGNALLED with no pid.
17872
17873 2020-01-10 Pedro Alves <palves@redhat.com>
17874
17875 * remote.c (first_remote_resumed_thread): New.
17876 (remote_target::wait_as): Use it as default event_ptid instead of
17877 inferior_ptid.
17878
17879 2020-01-10 Pedro Alves <palves@redhat.com>
17880
17881 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17882
17883 2020-01-10 Pedro Alves <palves@redhat.com>
17884
17885 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17886 not -1.
17887
17888 2020-01-10 Pedro Alves <palves@redhat.com>
17889
17890 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17891 ptid to get_last_target_status.
17892 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17893 ptid to get_last_target_status.
17894 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17895 get_last_target_status.
17896 (info_program_command): Don't pass a target_waitstatus to
17897 get_last_target_status.
17898 * infrun.c (init_wait_for_inferior): Use
17899 nullify_last_target_wait_ptid.
17900 (get_last_target_status): Handle nullptr arguments.
17901 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17902 (print_stop_event): Don't pass a ptid to get_last_target_status.
17903 (normal_stop): Don't pass a ptid to get_last_target_status.
17904 * infrun.h (get_last_target_status, set_last_target_status): Move
17905 comments here and update.
17906 (nullify_last_target_wait_ptid): Declare.
17907 * linux-fork.c (fork_load_infrun_state): Remove local extern
17908 declaration of nullify_last_target_wait_ptid.
17909 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17910 to get_last_target_status.
17911
17912 2020-01-10 Pedro Alves <palves@redhat.com>
17913
17914 * gdbthread.h (scoped_restore_current_thread)
17915 <dont_restore, restore, m_dont_restore>: Declare.
17916 * thread.c (thread_alive): Add assertion. Return bool.
17917 (switch_to_thread_if_alive): New.
17918 (prune_threads): Switch inferior/thread.
17919 (print_thread_info_1): Switch thread before calling target methods.
17920 (scoped_restore_current_thread::restore): New, factored out from
17921 ...
17922 (scoped_restore_current_thread::~scoped_restore_current_thread):
17923 ... this.
17924 (scoped_restore_current_thread::scoped_restore_current_thread):
17925 Add assertion.
17926 (thread_apply_all_command, thread_select): Use
17927 switch_to_thread_if_alive.
17928 * infrun.c (proceed, restart_threads, handle_signal_stop)
17929 (switch_back_to_stepped_thread): Switch current thread before
17930 calling target methods.
17931
17932 2020-01-10 Pedro Alves <palves@redhat.com>
17933
17934 * inferior.c (switch_to_inferior_no_thread): New function,
17935 factored out from ...
17936 (inferior_command): ... here.
17937 * inferior.h (switch_to_inferior_no_thread): Declare.
17938 * mi/mi-main.c (run_one_inferior): Use
17939 switch_to_inferior_no_thread.
17940
17941 2020-01-10 Pedro Alves <palves@redhat.com>
17942
17943 * infcmd.c (kill_command): Remove dead code.
17944
17945 2020-01-10 Pedro Alves <palves@redhat.com>
17946
17947 * remote.c (remote_target::mourn_inferior): No longer check
17948 whether the target is running.
17949
17950 2020-01-10 Pedro Alves <palves@redhat.com>
17951
17952 * corelow.c (core_target::has_execution): Change parameter type to
17953 inferior pointer.
17954 * inferior.c (number_of_live_inferiors): Use
17955 inferior::has_execution instead of target_has_execution_1.
17956 * inferior.h (inferior::has_execution): New.
17957 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17958 inferior::has_execution instead of target_has_execution_1.
17959 * process-stratum-target.c
17960 (process_stratum_target::has_execution): Change parameter type to
17961 inferior pointer. Check the inferior's PID instead of
17962 inferior_ptid.
17963 * process-stratum-target.h
17964 (process_stratum_target::has_execution): Change parameter type to
17965 inferior pointer.
17966 * record-full.c (record_full_core_target::has_execution): Change
17967 parameter type to inferior pointer.
17968 * target.c (target_has_execution_1): Change parameter type to
17969 inferior pointer.
17970 (target_has_execution_current): Adjust.
17971 * target.h (target_ops::has_execution): Change parameter type to
17972 inferior pointer.
17973 (target_has_execution_1): Change parameter type to inferior
17974 pointer. Change return type to bool.
17975 * tracefile.h (tracefile_target::has_execution): Change parameter
17976 type to inferior pointer.
17977
17978 2020-01-10 Pedro Alves <palves@redhat.com>
17979
17980 * exceptions.c (print_flush): Remove current_top_target() check.
17981
17982 2020-01-10 Pedro Alves <palves@redhat.com>
17983
17984 * remote.c (show_remote_exec_file): Show the current inferior's
17985 exec-file instead of the command variable's value.
17986
17987 2020-01-10 Pedro Alves <palves@redhat.com>
17988
17989 * record-full.c (record_full_resume_ptid): New global.
17990 (record_full_target::resume): Set it.
17991 (record_full_wait_1): Use record_full_resume_ptid instead of
17992 inferior_ptid.
17993
17994 2020-01-10 Pedro Alves <palves@redhat.com>
17995
17996 * gdbthread.h (scoped_restore_current_thread)
17997 <dont_restore, restore, m_dont_restore>: Declare.
17998 * thread.c (thread_alive): Add assertion. Return bool.
17999 (switch_to_thread_if_alive): New.
18000 (prune_threads): Switch inferior/thread.
18001 (print_thread_info_1): Switch thread before calling target methods.
18002 (scoped_restore_current_thread::restore): New, factored out from
18003 ...
18004 (scoped_restore_current_thread::~scoped_restore_current_thread):
18005 ... this.
18006 (scoped_restore_current_thread::scoped_restore_current_thread):
18007 Add assertion.
18008 (thread_apply_all_command, thread_select): Use
18009 switch_to_thread_if_alive.
18010
18011 2020-01-10 George Barrett <bob@bob131.so>
18012
18013 * stap-probe.c (stap_modify_semaphore): Don't check for null
18014 semaphores.
18015 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18016 for null semaphores.
18017
18018 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18019
18020 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18021 all source windows, and maintain horizontal scroll status while
18022 doing so.
18023
18024 2020-01-09 Tom Tromey <tom@tromey.com>
18025
18026 PR tui/18932:
18027 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18028 update_source_window, not print_source_lines.
18029
18030 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18031
18032 * tui/tui.c (tui_enable): Register tui hooks after calling
18033 tui_display_main.
18034
18035 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18036
18037 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18038
18039 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18040
18041 * thread.c (print_thread_info_1): Fix indentation.
18042
18043 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18044
18045 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18046 unique_xmalloc_ptr outside the if to always free the demangled name.
18047
18048 2020-01-08 Tom Tromey <tromey@adacore.com>
18049
18050 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18051 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18052 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18053 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18054 Remove.
18055 (section_offsets): New typedef.
18056 * symtab.c (fixup_section, get_msymbol_address): Update.
18057 * symmisc.c (dump_msymbols): Update.
18058 * symfile.h (relative_addr_info_to_section_offsets)
18059 (symfile_map_offsets_to_segments): Update.
18060 * symfile.c (build_section_addr_info_from_objfile)
18061 (init_objfile_sect_indices): Update.
18062 (struct place_section_arg): Change type of "offsets".
18063 (place_section): Update.
18064 (relative_addr_info_to_section_offsets): Change type of
18065 "section_offsets". Remove "num_sections" parameter.
18066 (default_symfile_offsets, syms_from_objfile_1)
18067 (set_objfile_default_section_offset): Update.
18068 (reread_symbols): No need to preserve section offsets by hand.
18069 (symfile_map_offsets_to_segments): Change type of "offsets".
18070 * stap-probe.c (relocate_address): Update.
18071 * stabsread.h (process_one_symbol): Update.
18072 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18073 (solib_target_relocate_section_addresses): Update.
18074 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18075 Update.
18076 * solib-frv.c (frv_relocate_main_executable): Update.
18077 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18078 * solib-aix.c (solib_aix_get_section_offsets): Change return
18079 type.
18080 (solib_aix_solib_create_inferior_hook): Update.
18081 * remote.c (remote_target::get_offsets): Update.
18082 * psymtab.c (find_pc_sect_psymtab): Update.
18083 * psympriv.h (struct partial_symbol) <address, text_low,
18084 text_high>: Update.
18085 * objfiles.h (obj_section_offset): Update.
18086 (struct objfile) <section_offsets>: Change type.
18087 <num_sections>: Remove.
18088 (objfile_relocate): Update.
18089 * objfiles.c (entry_point_address_query): Update
18090 (relocate_one_symbol): Change type of "section_offsets".
18091 (objfile_relocate1, objfile_relocate1): Change type of
18092 "new_offsets".
18093 (objfile_rebase1): Update.
18094 * mipsread.c (mipscoff_symfile_read): Update.
18095 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18096 parameter.
18097 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18098 (parse_external, psymtab_to_symtab_1): Update.
18099 * machoread.c (macho_symfile_offsets): Update.
18100 * ia64-tdep.c (ia64_find_unwind_table): Update.
18101 * hppa-tdep.c (read_unwind_info): Update.
18102 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18103 * dwarf2read.c (create_addrmap_from_index)
18104 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18105 (process_psymtab_comp_unit_reader, add_partial_symbol)
18106 (add_partial_subprogram, process_full_comp_unit)
18107 (read_file_scope, read_func_scope, read_lexical_block_scope)
18108 (read_call_site_scope, dwarf2_rnglists_process)
18109 (dwarf2_ranges_process, dwarf2_ranges_read)
18110 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18111 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18112 Update.
18113 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18114 Update.
18115 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18116 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18117 (process_one_symbol): Change type of "section_offsets".
18118 * ctfread.c (get_objfile_text_range): Update.
18119 * coffread.c (coff_symtab_read, enter_linenos)
18120 (process_coff_symbol): Update.
18121 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18122 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18123
18124 2020-01-08 Tom Tromey <tromey@adacore.com>
18125
18126 * dwarf2read.c (parse_macro_definition): Use std::string.
18127 (parse_macro_definition): Likewise.
18128
18129 2020-01-08 Tom Tromey <tromey@adacore.com>
18130
18131 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18132 (ATTR_ALLOC_CHUNK): Remove.
18133
18134 2020-01-08 Tom Tromey <tromey@adacore.com>
18135
18136 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18137
18138 2020-01-08 Tom Tromey <tromey@adacore.com>
18139
18140 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18141 (dwarf2_compute_name, open_dwo_file): Likewise.
18142 (process_enumeration_scope): Use std::vector.
18143 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18144 (partial_die_info::fixup, dwarf2_start_subfile)
18145 (guess_full_die_structure_name, dwarf2_name): Likewise.
18146 (determine_prefix): Update.
18147 (guess_full_die_structure_name): Make return type const.
18148 (partial_die_full_name): Return unique_xmalloc_ptr.
18149 (DW_FIELD_ALLOC_CHUNK): Remove.
18150
18151 2020-01-07 Tom Tromey <tromey@adacore.com>
18152
18153 PR build/24937:
18154 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18155
18156 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18157
18158 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18159
18160 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18161
18162 * stack.c (print_frame_info): Move disassemble_next_line code
18163 inside source_print block.
18164
18165 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18166
18167 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18168 gdb/signals.h, as we are now using native signal symbols.
18169
18170 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18171
18172 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18173 overflow by an early check of content vs threshold.
18174 * tui/tui-source.c (tui_source_window::line_is_displayed):
18175 Likewise.
18176
18177 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18178
18179 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18180
18181 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18182
18183 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18184 export table if no section contains it's RVA.
18185
18186 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18187
18188 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18189
18190 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18191
18192 * source.c (print_source_lines_base): Set last_line_listed.
18193
18194 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18195
18196 * tui/tui-disasm.c: Remove trailing spaces.
18197
18198 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18199 Pedro Alves <palves@redhat.com>
18200
18201 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18202 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18203 (windows_gdb_signal_to_target): New function, uses the above
18204 enumeration to convert GDB internal signal codes to equivalent
18205 Windows codes.
18206 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18207 * windows-nat.c: Include "gdb_wait.h".
18208 (get_windows_debug_event): Extract the fatal exception from the
18209 exit status and convert to the equivalent Posix signal number.
18210 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18211 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18212 * gdbsupport/gdb_wait.c: New file, implements
18213 windows_status_to_termsig.
18214 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18215 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18216
18217 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18218
18219 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18220 show_layout.
18221
18222 2020-01-05 Luis Machado <luis.machado@linaro.org>
18223
18224 * aarch64-linux-nat.c
18225 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18226 and bfd_mach_aarch64.
18227
18228 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18229
18230 * ui-file.c (stdio_file::can_emit_style_escape)
18231 (tee_file::can_emit_style_escape): Ensure style is used also on
18232 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18233 to gdb_stdout.
18234 * main.c (set_gdb_data_directory): Use file style to output the
18235 warning that the given pathname is not a directory.
18236 * top.c (show_history_filename, gdb_safe_append_history)
18237 (show_gdb_datadir): Use file style.
18238
18239 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18240
18241 * solib-target.c (struct lm_info_target):
18242 Change offsets to be a unique_xmalloc_ptr.
18243 (solib_target_relocate_section_addresses): Update.
18244
18245 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18246
18247 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18248
18249 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18250
18251 * MAINTAINERS (Write After Approval): Add myself.
18252
18253 2020-01-02 Luis Machado <luis.machado@linaro.org>
18254
18255 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18256 Cell BE architecture.
18257 * target.h (struct target_ops) <thread_architecture>: Likewise.
18258
18259 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18260
18261 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18262
18263 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18264
18265 * MAINTAINERS (Write After Approval): Add myself.
18266
18267 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18268
18269 * gdbarch.sh: Update copyright year range of generated files.
18270
18271 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18272
18273 Update copyright year range in all GDB files.
18274
18275 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18276
18277 * copyright.py: Convert to Python 3.
18278
18279 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18280
18281 * copyright.py: Adapt after move of gnulib directory from gdb
18282 directory to toplevel directory.
18283
18284 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18285
18286 * copyright.py (main): Exit if run from the wrong directory.
18287
18288 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18289
18290 * top.c (print_gdb_version): Change copyright year to 2020.
18291
18292 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18293
18294 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18295
18296 For older changes see ChangeLog-2019.
18297 \f
18298 Local Variables:
18299 mode: change-log
18300 left-margin: 8
18301 fill-column: 74
18302 version-control: never
18303 coding: utf-8
18304 End:
This page took 0.575828 seconds and 5 git commands to generate.