Handle block-local names for Ada
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-14 Tom Tromey <tromey@adacore.com>
2
3 * dictionary.c (language_defn::search_name_hash): Ignore "B".
4 * ada-lang.c (advance_wild_match): Ignore "B".
5 (full_match): Remove.
6 (do_full_match): Rewrite.
7
8 2020-12-14 Tom Tromey <tromey@adacore.com>
9
10 * ada-lang.c (get_var_value): Only consider exact matches.
11
12 2020-12-14 Tom Tromey <tromey@adacore.com>
13
14 * dwarf2/read.c (rewrite_array_type): New function.
15 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
16
17 2020-12-14 Tom Tromey <tromey@adacore.com>
18
19 * valarith.c (fixed_point_binop): Call error on division by zero.
20
21 2020-12-13 Tom Tromey <tom@tromey.com>
22
23 * gdbtypes.c (safe_parse_type): Make argument const.
24 * value.h (parse_and_eval_type): Make argument const.
25 * eval.c (parse_and_eval_type): Make argument const.
26
27 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * NEWS: Mention new commands.
30 * target-dcache.c: Add 'cli/cli-cmds.h' include.
31 (maint_flush_dcache_command): New function.
32 (_initialize_target_dcache): Create new 'maint flush dcache'
33 command.
34
35 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * NEWS: Mention new commands, and that the old commands are now
38 deprecated.
39 * cli/cli-cmds.c (maintenanceflushlist): Define.
40 * cli/cli-cmds.h (maintenanceflushlist): Declare.
41 * maint.c (_initialize_maint_cmds): Initialise
42 maintenanceflushlist.
43 * regcache.c: Add 'cli/cli-cmds.h' include.
44 (reg_flush_command): Add header comment.
45 (_initialize_regcache): Create new 'maint flush register-cache'
46 command, make 'flushregs' an alias.
47 * symtab.c: Add 'cli/cli-cmds.h' include.
48 (_initialize_symtab): Create new 'maint flush symbol-cache'
49 command, make old command an alias.
50
51 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
54 result from lookup_cmd_composition_1, use the prefixes from both
55 the command and the alias instead.
56 (lookup_cmd_composition_1): Initial prefix command is the based on
57 the search list being passed in. Simplify the logic for tracking
58 the prefix command. Replace a use of alloca with a local
59 std::string.
60
61 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
64 of NULL. Don't print message piece by piece, but sentence at a
65 time to allow internationalisation. Some whitespace cleanup.
66
67 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 PR cli/15104
70 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
71 deprecated_cmd_warning.
72 (deprecated_cmd_warning): Take extra parameter, call
73 lookup_cmd_composition_1 and pass new parameter through.
74 (lookup_cmd_composition_1): New function, takes implementation of
75 lookup_cmd_composition but with extra parameter.
76 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
77 passing in cmdlist.
78 * command.h (deprecated_cmd_warning): Add extra parameter to
79 declaration.
80 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
81
82 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
85 command.h, add extra parameter, and use this to guard giving a
86 warning.
87 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
88 include argument names in declaration, add new argument.
89 * completer.c (complete_line_internal_1): Remove unneeded
90 brackets, pass extra argument to lookup_cmd_1.
91
92 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * infrun.h (debug_infrun): Make a bool.
95 * infrun.c (debug_infrun): Make a bool.
96 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
97 debug infrun".
98
99 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * displaced-stepping.h (displaced_debug_printf): Use
102 debug_prefixed_printf_cond.
103 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
104 (dwarf_read_debug_printf_v): Likewise.
105 * infrun.h (infrun_debug_printf): Likewise.
106 * linux-nat.c (linux_nat_debug_printf): Likewise.
107
108 2020-12-11 Tom Tromey <tom@tromey.com>
109
110 * p-exp.y (intvar): Remove global.
111 (DOLLAR_VARIABLE): Change type.
112 (start): Update.
113 (exp): Call write_dollar_variable here...
114 (yylex): ... not here.
115 * m2-exp.y (DOLLAR_VARIABLE): Change type.
116 (variable): Call write_dollar_variable here...
117 (yylex): ... not here.
118 * f-exp.y (DOLLAR_VARIABLE): Change type.
119 (exp): Call write_dollar_variable here...
120 (yylex): ... not here.
121
122 2020-12-11 Tom Tromey <tom@tromey.com>
123
124 * varobj.c (varobj_create): Update.
125 (install_variable): Return void.
126
127 2020-12-11 Tom Tromey <tom@tromey.com>
128
129 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
130
131 2020-12-11 Tom Tromey <tom@tromey.com>
132
133 * varobj.c (varobj_clear_saved_item): Remove.
134 (update_dynamic_varobj_children): Update.
135 (varobj::~varobj): Don't call varobj_clear_saved_item.
136
137 2020-12-11 Tom Tromey <tom@tromey.com>
138
139 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
140 (update_dynamic_varobj_children, create_child)
141 (create_child_with_value): Update.
142 * varobj-iter.h (struct varobj_item) <value>: Now a
143 value_ref_ptr.
144 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
145
146 2020-12-11 Tom Tromey <tom@tromey.com>
147
148 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
149 (varobj_get_iterator): Return unique_ptr.
150 (update_dynamic_varobj_children, install_visualizer)
151 (varobj::~varobj): Update.
152 * python/python-internal.h (py_varobj_get_iterator): Return
153 unique_ptr.
154 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
155
156 2020-12-11 Tom Tromey <tom@tromey.com>
157
158 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
159 (varobj_clear_saved_item, update_dynamic_varobj_children):
160 Update.
161
162 2020-12-11 Tom Tromey <tom@tromey.com>
163
164 * varobj.c (update_dynamic_varobj_children): Update.
165 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
166 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
167 type.
168 (py_varobj_iter::next): Likewise.
169
170 2020-12-11 Tom Tromey <tom@tromey.com>
171
172 * varobj.c (update_dynamic_varobj_children, install_visualizer)
173 (varobj::~varobj): Update.
174 * varobj-iter.h (struct varobj_iter): Change to interface class.
175 (struct varobj_iter_ops): Remove.
176 (varobj_iter_next, varobj_iter_delete): Remove.
177 * python/py-varobj.c (struct py_varobj_iter): Derive from
178 varobj_iter. Add constructor, destructor. Rename members.
179 (py_varobj_iter::~py_varobj_iter): Rename from
180 py_varobj_iter_dtor.
181 (py_varobj_iter::next): Rename from py_varobj_iter_next.
182 (py_varobj_iter_ops): Remove.
183 (py_varobj_iter): Rename from py_varobj_iter_ctor.
184 (py_varobj_iter_new): Remove.
185 (py_varobj_get_iterator): Update.
186
187 2020-12-11 Tom Tromey <tom@tromey.com>
188
189 * varobj.h (all_root_varobjs): Take a function_view.
190 * varobj.c (all_root_varobjs): Take a function_view.
191 (varobj_invalidate_iter): Remove unused parameter.
192 (varobj_invalidate): Update.
193 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
194 (mi_cmd_var_update_iter): Change parameters.
195
196 2020-12-11 Tom Tromey <tom@tromey.com>
197
198 * varobj.c (struct varobj_root) <next>: Remove.
199 (struct vlist): Remove.
200 (rootlist): Now a std::list.
201 (install_variable, uninstall_variable, all_root_varobjs): Update.
202
203 2020-12-11 Tom Tromey <tom@tromey.com>
204
205 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
206 (varobj_table): Now htab_t.
207 (varobj_get_handle, install_variable, uninstall_variable):
208 Update.
209 (hash_varobj, eq_varobj_and_string): New functions.
210 (hash_varobj): Update.
211
212 2020-12-11 Tom Tromey <tom@tromey.com>
213
214 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
215 * ada-lang.c (check_status_exception): Update.
216 * breakpoint.c (free_bp_location): Remove.
217 (decref_bp_location): Use bp_location_ref_policy.
218 (bpstats::bpstats): Don't call incref_bp_location.
219 (bpstats::~bpstats): Remove.
220 (bpstats::bpstats): Update.
221 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
222 (bp_location::bp_location): Update.
223 (incref_bp_location): Remove.
224 (bkpt_print_it): Update.
225 * breakpoint.h (class bp_location): Derive from
226 refcounted_object.
227 (struct bpstats): Remove destructor.
228 <bp_location_at>: Now a bp_location_ref_ptr.
229 <refc>: Remove.
230 (bp_location_ref_ptr): New typedef.
231 (struct bp_location_ref_policy): New.
232
233 2020-12-11 Tom Tromey <tom@tromey.com>
234
235 * thread.c (class scoped_inc_dec_ref): Remove.
236 (tp_array_compar_ascending, tp_array_compar_descending): Change
237 parameter types.
238 (thread_apply_all_command): Use thread_info_ref.
239
240 2020-12-11 Tom Tromey <tom@tromey.com>
241
242 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
243 (stop_context::stop_context): Update.
244 (stop_context::~stop_context): Remove.
245
246 2020-12-11 Tom Tromey <tom@tromey.com>
247
248 * inferior.c (current_inferior_): Change type.
249 (current_inferior, set_current_inferior, initialize_inferiors):
250 Update.
251
252 2020-12-11 Tom Tromey <tom@tromey.com>
253
254 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
255 Change type.
256
257 2020-12-11 Tom Tromey <tromey@adacore.com>
258
259 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
260 field.
261 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
262 (read_atcb): Use cpu_id_offset.
263
264 2020-12-10 Kevin Buettner <kevinb@redhat.com>
265
266 * ada-lang.c (ada_fold_name): Fix off-by-one error.
267
268 2020-12-10 Luis Machado <luis.machado@linaro.org>
269
270 * breakpoint.c (should_be_inserted): Don't output newline.
271
272 2020-12-10 Luis Machado <luis.machado@linaro.org>
273
274 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
275 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
276 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
277 * arch/aarch64.h: ... here.
278 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
279 (aarch64_maybe_swab128): New function.
280 (aarch64_sve_regs_copy_to_reg_buf)
281 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
282 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
283 the data field.
284 (TF_REG_VALUE_BYTES): New enum value.
285 (trad_frame_value_bytes_p): New function.
286 (trad_frame_set_value_bytes): New function.
287 (trad_frame_set_reg_value_bytes): New function.
288 (trad_frame_get_prev_register): Handle register values saved as bytes.
289 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
290 (struct trad_frame_saved_reg) <data>: New field.
291 (trad_frame_set_value_bytes): New prototype.
292 (trad_frame_value_bytes_p): New prototype.
293
294 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
295
296 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
297 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
298 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
299
300 2020-12-09 Tom Tromey <tromey@adacore.com>
301
302 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
303
304 2020-12-09 Tom Tromey <tromey@adacore.com>
305
306 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
307 and "denominator" to gdb_mpz. Handle block forms.
308 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
309 "denominator" to gdb_mpz.
310 (finish_fixed_point_type): Update.
311 (has_zero_over_zero_small_attribute): Update.
312
313 2020-12-09 Tom Tromey <tromey@adacore.com>
314
315 * expprint.c (op_name): Update.
316 * expression.h (enum exp_opcode): Update.
317 * std-operator.def: Add more opcodes.
318 * ada-operator.def, fortran-operator.def: Remove, moving contents
319 into std-operator.def.
320
321 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
324 Return {} instead of false.
325 (get_discrete_bounds): Compute high bound only if low bound is
326 valid.
327
328 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
329
330 PR 26875, PR 26901
331 * gdbtypes.c (get_discrete_low_bound): Make non-static.
332 (get_discrete_high_bound): Make non-static.
333 * gdbtypes.h (get_discrete_low_bound): New declaration.
334 (get_discrete_high_bound): New declaration.
335 * valarith.c (value_subscript): Only fetch high bound if
336 necessary.
337
338 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
339
340 * gdbtypes.c (get_discrete_bounds): Implement with
341 get_discrete_low_bound and get_discrete_high_bound.
342 (get_discrete_low_bound): New.
343 (get_discrete_high_bound): New.
344
345 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
346
347 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
348 callers.
349 * gdbtypes.c (get_discrete_bounds): Return bool.
350
351 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
352
353 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
354 (ada_value_slice): Adjust.
355 (pos_atr): Adjust.
356 * gdbtypes.c (get_discrete_bounds): Adjust.
357 (discrete_position): Return optional.
358 * gdbtypes.h (discrete_position): Return optional.
359
360 2020-12-07 Tom Tromey <tromey@adacore.com>
361
362 * maint.c (_initialize_maint_cmds): Use expression command
363 completer for "maint print type".
364
365 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
366
367 * completer.c (complete_explicit_location): Also add keywords
368 that start with '-' to the completion list.
369
370 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
373 keyword may be followed by any keyword.
374 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
375 'toklen' in the case for "-force-condition".
376
377 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378
379 * main.c (catch_command_errors): Add a flag parameter; invoke
380 `bpstat_do_actions` if the flag is set.
381 (execute_cmdargs): Update a call to `catch_command_errors`.
382
383 2020-12-07 Tom de Vries <tdevries@suse.de>
384
385 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
386
387 2020-12-06 Tom Tromey <tom@tromey.com>
388
389 PR ada/26999
390 * ada-lang.c (replace_operator_with_call): Rewrite.
391
392 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
393
394 PR breakpoints/27009
395 * s390-tdep.h (op_bc): Correct BC opcode value.
396
397 2020-12-06 Joel Brobecker <brobecker@adacore.com>
398
399 * gmp-utils.h (gdb_mpz::safe_export): New private method.
400 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
401 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
402 (gdb_mpz::safe_export): New method.
403 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
404 Update function description.
405 (check_as_integer_raises_out_of_range_error): New function.
406 (gdb_mpz_as_integer_out_of_range): New function.
407 (_initialize_gmp_utils_selftests): Register
408 gdb_mpz_as_integer_out_of_range as a selftest.
409
410 2020-12-05 Joel Brobecker <brobecker@adacore.com>
411
412 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
413 TARGET_CHAR_BIT.
414 (gdb_mpz::write): Likewise.
415
416 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
417
418 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
419 number of displaced step buffers.
420
421 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
422
423 * displaced-stepping.h (struct displaced_step_buffer): Rename
424 to...
425 (struct displaced_step_buffers): ... this.
426 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
427 <struct displaced_step_buffer>: New inner class.
428 <m_buffers>: New.
429 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
430 to...
431 (displaced_step_buffers::prepare): ... this, adjust for multiple
432 buffers.
433 (displaced_step_buffer::finish): Rename to...
434 (displaced_step_buffers::finish): ... this, adjust for multiple
435 buffers.
436 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
437 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
438 adjust for multiple buffers.
439 (displaced_step_buffer::restore_in_ptid): Rename to...
440 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
441 multiple buffers.
442 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
443 for num_disp_step_buffers.
444 * linux-tdep.c (struct linux_gdbarch_data)
445 <num_disp_step_buffers>: New field.
446 (struct linux_info) <disp_step_buf>: Rename to...
447 <disp_step_bufs>: ... this, change type to
448 displaced_step_buffers.
449 (linux_displaced_step_prepare): Use
450 linux_gdbarch_data::num_disp_step_buffers to create that number
451 of buffers.
452 (linux_displaced_step_finish): Adjust.
453 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
454 (linux_displaced_step_restore_all_in_ptid): Adjust.
455 (linux_init_abi): Change supports_displaced_step parameter for
456 num_disp_step_buffers, save it in linux_gdbarch_data.
457 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
458 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
459 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
460 supports_displaced_step parameter for num_disp_step_buffers.
461 (amd64_linux_init_abi): Adjust.
462 (amd64_x32_linux_init_abi): Adjust.
463 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
464 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
465 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
466 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
467 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
468 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
469 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
470 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
471 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
472 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
473 * m68k-linux-tdep.c (m68k_linux_init_abi):
474 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
475 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
476 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
477 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
478 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
479 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
480 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
481 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
482 Change type to displaced_step_buffers.
483 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
484 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
485 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
486 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
487 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
488 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
489 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
490
491 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
492
493 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
494 obkstack.
495 (_initialize_linux_tdep): Register pre-init gdb data instead of
496 post-init.
497
498 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
499
500 * displaced-stepping.h (struct
501 displaced_step_copy_insn_closure): Adjust comments.
502 (struct displaced_step_inferior_state) <step_thread,
503 step_gdbarch, step_closure, step_original, step_copy,
504 step_saved_copy>: Remove fields.
505 (struct displaced_step_thread_state): New.
506 (struct displaced_step_buffer): New.
507 * displaced-stepping.c (displaced_step_buffer::prepare): New.
508 (write_memory_ptid): Move from infrun.c.
509 (displaced_step_instruction_executed_successfully): New,
510 factored out of displaced_step_finish.
511 (displaced_step_buffer::finish): New.
512 (displaced_step_buffer::copy_insn_closure_by_addr): New.
513 (displaced_step_buffer::restore_in_ptid): New.
514 * gdbarch.sh (displaced_step_location): Remove.
515 (displaced_step_prepare, displaced_step_finish,
516 displaced_step_copy_insn_closure_by_addr,
517 displaced_step_restore_all_in_ptid): New.
518 * gdbarch.c: Re-generate.
519 * gdbarch.h: Re-generate.
520 * gdbthread.h (class thread_info) <displaced_step_state>: New
521 field.
522 (thread_step_over_chain_remove): New declaration.
523 (thread_step_over_chain_next): New declaration.
524 (thread_step_over_chain_length): New declaration.
525 * thread.c (thread_step_over_chain_remove): Make non-static.
526 (thread_step_over_chain_next): New.
527 (global_thread_step_over_chain_next): Use
528 thread_step_over_chain_next.
529 (thread_step_over_chain_length): New.
530 (global_thread_step_over_chain_enqueue): Add debug print.
531 (global_thread_step_over_chain_remove): Add debug print.
532 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
533 Remove.
534 * infrun.c (get_displaced_stepping_state): New.
535 (displaced_step_in_progress_any_inferior): Remove.
536 (displaced_step_in_progress_thread): Adjust.
537 (displaced_step_in_progress): Adjust.
538 (displaced_step_in_progress_any_thread): New.
539 (get_displaced_step_copy_insn_closure_by_addr): Remove.
540 (gdbarch_supports_displaced_stepping): Use
541 gdbarch_displaced_step_prepare_p.
542 (displaced_step_reset): Change parameter from inferior to
543 thread.
544 (displaced_step_prepare_throw): Implement using
545 gdbarch_displaced_step_prepare.
546 (write_memory_ptid): Move to displaced-step.c.
547 (displaced_step_restore): Remove.
548 (displaced_step_finish): Implement using
549 gdbarch_displaced_step_finish.
550 (start_step_over): Allow starting more than one displaced step.
551 (prepare_for_detach): Handle possibly multiple threads doing
552 displaced steps.
553 (handle_inferior_event): Handle possibility that fork event
554 happens while another thread displaced steps.
555 * linux-tdep.h (linux_displaced_step_prepare): New.
556 (linux_displaced_step_finish): New.
557 (linux_displaced_step_copy_insn_closure_by_addr): New.
558 (linux_displaced_step_restore_all_in_ptid): New.
559 (linux_init_abi): Add supports_displaced_step parameter.
560 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
561 (linux_displaced_step_prepare): New.
562 (linux_displaced_step_finish): New.
563 (linux_displaced_step_copy_insn_closure_by_addr): New.
564 (linux_displaced_step_restore_all_in_ptid): New.
565 (linux_init_abi): Add supports_displaced_step parameter,
566 register displaced step methods if true.
567 (_initialize_linux_tdep): Register inferior_execd observer.
568 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
569 supports_displaced_step parameter, adjust call to
570 linux_init_abi. Remove call to
571 set_gdbarch_displaced_step_location.
572 (amd64_linux_init_abi): Adjust call to
573 amd64_linux_init_abi_common.
574 (amd64_x32_linux_init_abi): Likewise.
575 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
576 linux_init_abi. Remove call to
577 set_gdbarch_displaced_step_location.
578 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
579 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
580 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
581 linux_init_abi.
582 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
583 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
584 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
585 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
586 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
587 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
588 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
589 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
590 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
591 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
592 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
593 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
594 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
595 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
596 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
597 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
598 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
599 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
600 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
601 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
602 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
603 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
604 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
605 linux_init_abi. Remove call to
606 set_gdbarch_displaced_step_location.
607 * arm-tdep.c (arm_pc_is_thumb): Call
608 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
609 get_displaced_step_copy_insn_closure_by_addr.
610 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
611 clear gdbarch methods.
612 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
613 (get_ppc_per_inferior): New function.
614 (ppc_displaced_step_prepare): New function.
615 (ppc_displaced_step_finish): New function.
616 (ppc_displaced_step_restore_all_in_ptid): New function.
617 (rs6000_gdbarch_init): Register new gdbarch methods.
618 * s390-tdep.c (s390_gdbarch_init): Don't call
619 set_gdbarch_displaced_step_location, set new gdbarch methods.
620
621 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
622
623 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
624 * aarch64-tdep.h: Include displaced-stepping.h.
625 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
626 Move here.
627 (displaced_step_copy_insn_closure_up): Move here.
628 (struct buf_displaced_step_copy_insn_closure): Move here.
629 (struct displaced_step_inferior_state): Move here.
630 (debug_displaced): Move here.
631 (displaced_debug_printf_1): Move here.
632 (displaced_debug_printf): Move here.
633 * displaced-stepping.c: New file.
634 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
635 * gdbarch.h: Re-generate.
636 * inferior.h: Include displaced-stepping.h.
637 * infrun.h (debug_displaced): Move to displaced-stepping.h.
638 (displaced_debug_printf_1): Likewise.
639 (displaced_debug_printf): Likewise.
640 (struct displaced_step_copy_insn_closure): Likewise.
641 (displaced_step_copy_insn_closure_up): Likewise.
642 (struct buf_displaced_step_copy_insn_closure): Likewise.
643 (struct displaced_step_inferior_state): Likewise.
644 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
645 (displaced_debug_printf_1): Likewise.
646 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
647 Likewise.
648 (_initialize_infrun): Don't register "set/show debug displaced".
649
650 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
651
652 * linux-tdep.c (get_linux_inferior_data): Add inferior
653 parameter.
654 (linux_vsyscall_range): Pass current inferior.
655
656 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
657
658 * infrun.c (displaced_step_prepare_throw): Change return type to
659 displaced_step_prepare_status.
660 (displaced_step_prepare): Likewise.
661 (displaced_step_finish): Change return type to
662 displaced_step_finish_status.
663 (resume_1): Adjust.
664 (stop_all_threads): Adjust.
665 * displaced-stepping.h: New file.
666
667 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
668
669 * infrun.c (displaced_step_fixup): Rename to...
670 (displaced_step_finish): ... this, update all callers.
671
672 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
673
674 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
675 (get_displaced_step_copy_insn_closure_by_addr): ... this.
676 Update all users.
677 (displaced_step_closure): Rename to...
678 (displaced_step_copy_insn_closure): ... this. Update all users.
679 (displaced_step_closure_up): Rename to...
680 (displaced_step_copy_insn_closure_up). ... this. Update all
681 users.
682 (buf_displaced_step_closure): Rename to...
683 (buf_displaced_step_copy_insn_closure): ... this. Update all
684 users.
685 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
686 (get_displaced_step_copy_insn_closure_by_addr): ... this.
687 Update all users.
688 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
689 (aarch64_displaced_step_copy_insn_closure): ... this. Update
690 all users.
691 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
692 (amd64_displaced_step_copy_insn_closure): ... this. Update all
693 users.
694 * arm-tdep.h (arm_displaced_step_closure): Rename to...
695 (arm_displaced_step_copy_insn_closure): ... this. Update all
696 users.
697 * i386-tdep.h (i386_displaced_step_closure): Rename to...
698 (i386_displaced_step_copy_insn_closure): ... this. Update all
699 users.
700 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
701 (ppc_displaced_step_copy_insn_closure): ... this. Update all
702 users.
703 * s390-tdep.c (s390_displaced_step_closure): Rename to...
704 (s390_displaced_step_copy_insn_closure): ... this. Update all
705 users.
706 * gdbarch.h: Re-generate.
707 * gdbarch.c: Re-generate.
708
709 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
710
711 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
712 (global_thread_step_over_chain_enqueue): ... this. Update all
713 users.
714 (thread_step_over_chain_remove): Rename to...
715 (global_thread_step_over_chain_remove): ... this. Update all
716 users.
717 (thread_step_over_chain_next): Rename to...
718 (global_thread_step_over_chain_next): ... this. Update all
719 users.
720 * infrun.h (step_over_queue_head): Rename to...
721 (global_thread_step_over_chain_head): ... this. Update all
722 users.
723 * infrun.c (step_over_queue_head): Rename to...
724 (global_thread_step_over_chain_head): ... this. Update all
725 users.
726 * thread.c (step_over_chain_remove): Rename to...
727 (thread_step_over_chain_remove): ... this. Update all users.
728 (thread_step_over_chain_next): Rename to...
729 (global_thread_step_over_chain_next): ... this. Update all
730 users.
731 (thread_step_over_chain_enqueue): Rename to...
732 (global_thread_step_over_chain_enqueue): ... this. Update all
733 users.
734 (thread_step_over_chain_remove): Rename to...
735 (global_thread_step_over_chain_remove): ... this. Update all
736 users.
737
738 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * infrun.c (get_displaced_stepping_state): Remove, change
741 callers to access the field directly.
742
743 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * infrun.c (handle_inferior_event): Restore displaced step
746 buffer bytes in child process when handling fork, even if fork
747 happened in another thread than the displaced-stepping one.
748
749 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
750
751 * infrun.c (infrun_inferior_execd): New function.
752 (_initialize_infrun): Attach inferior_execd observer.
753
754 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
755
756 * observable.h (inferior_execd): Declare new observable.
757 * observable.c (inferior_execd): Declare new observable.
758 * infrun.c (follow_exec): Notify inferior_execd observer.
759 * jit.c (jit_inferior_created_hook): Make static.
760 (_initialize_jit): Register inferior_execd observer.
761 * jit.h (jit_inferior_created_hook): Remove declaration.
762 * solib.c (_initialize_solib): Register inferior_execd observer.
763
764 2020-12-04 Tom de Vries <tdevries@suse.de>
765
766 PR gdb/27003
767 * completer.c (completion_tracker::build_completion_result): Don't
768 access match_list[0][-1].
769
770 2020-12-04 Tom Tromey <tromey@adacore.com>
771
772 * linespec.c (struct linespec_token): Rename; remove typedef.
773 * guile/scm-block.c (struct block_smob): Remove typedef.
774 (struct block_syms_progress_smob): Likewise.
775 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
776 * guile/scm-symtab.c (symtab_smob): Remove typedef.
777 (struct sal_smob): Remove typedef.
778 * guile/scm-param.c (struct param_smob): Remove typedef.
779 * guile/scm-progspace.c (struct pspace_smob): Rename.
780 * guile/scm-objfile.c (struct objfile_smob): Rename.
781 * guile/scm-iterator.c (struct iterator_smob): Rename.
782 * guile/scm-frame.c (struct frame_smob): Rename.
783 * guile/scm-arch.c (struct arch_smob): Rename.
784 * guile/scm-type.c (struct field_smob): Remove typedef.
785 (struct type_smob): Rename.
786 * guile/scm-cmd.c (struct command_smob): Remove typedef.
787 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
788 * guile/scm-value.c (struct value_smob): Remove typedef.
789 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
790 * guile/guile-internal.h (struct scheme_variable)
791 (struct scheme_function, struct scheme_integer_constant)
792 (struct gdb_smob, struct chained_gdb_smob)
793 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
794 (objfile_smob, pspace_smob, type_smob): Remove typedef.
795 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
796 (struct pretty_printer_worker_smob): Remove typedef.
797 * guile/scm-exception.c (struct exception_smob): Remove typedef.
798 * python/py-block.c (struct block_object): Remove typedef.
799 (block_syms_iterator_object): Update.
800 (set_block): Update.
801 (block_syms_iterator_object): Remove typedef.
802 * python/py-inferior.c (struct membuf_object): Remove typedef.
803 * python/py-symtab.c (struct symtab_object): Remove typedef.
804 (set_symtab): Update.
805 (sal_object): Remove typedef.
806 (set_sal): Update.
807 * python/py-frame.c (frame_object): Remove typedef.
808 * python/py-record-btrace.c (struct btpy_list_object): Remove
809 typedef.
810 * python/py-arch.c (struct arch_object): Remove typedef.
811 * python/py-linetable.c (struct linetable_entry_object)
812 (linetable_object, struct ltpy_iterator_object): Remove typedef.
813 * python/py-events.h (eventregistry_object): Remove typedef.
814 (struct events_object): Remove typedef.
815 * python/python-internal.h (gdbpy_breakpoint_object): Remove
816 typedef.
817 (thread_object): Remove typedef.
818 * python/py-progspace.c (pspace_object): Remove typedef.
819 * python/py-value.c (struct value_object): Remove typedef.
820 * python/py-record.h (recpy_record_object): Remove typedef.
821 (struct recpy_element_object): Remove typedef.
822 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
823 * python/py-objfile.c (objfile_object): Remove typedef.
824 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
825 * python/py-type.c (type_object): Remove typedef.
826 (typy_iterator_object): Update.
827 (set_type): Update.
828 (field_object): Remove typedef.
829 (typy_iterator_object): Remove typedef.
830 * python/py-registers.c (register_descriptor_iterator_object):
831 Remove typedef.
832 (struct register_descriptor_object)
833 (struct reggroup_iterator_object, struct reggroup_object): Remove
834 typedef.
835 * python/py-record.c (recpy_gap_object): Remove typedef.
836 * python/py-symbol.c (symbol_object): Remove typedef.
837 (set_symbol): Update.
838 * python/py-event.h (event_object): Remove typedef.
839 * python/py-param.c (parmpy_object): Remove typedef.
840 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
841 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
842 (unwind_info_object, struct cached_frame_info): Likewise.
843
844 2020-12-04 Tom Tromey <tromey@adacore.com>
845
846 * value.c (value_internal_function_name): Make return type const.
847 * value.h (value_internal_function_name): Make return type const.
848
849 2020-12-04 Luis Machado <luis.machado@linaro.org>
850
851 * aarch64-tdep.c (submask, bit, bits): Remove.
852 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
853 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
854 (aarch64_decode_cb, aarch64_decode_tb)
855 (aarch64_decode_ldr_literal): Use sbits to extract a signed
856 immediate.
857 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
858
859 2020-12-04 Tom de Vries <tdevries@suse.de>
860
861 PR tdep/27007
862 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
863
864 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
865
866 PR gdb/26876
867 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
868 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
869
870 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * arch/riscv.c: Include 'rv32e-xregs.c'.
873 (riscv_create_target_description): Update to handle rv32e.
874 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
875 member variable.
876 <operator==>: Update to account for new field.
877 <hash>: Likewise.
878 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
879 * features/riscv/rv32e-xregs.c: Generated.
880 * features/riscv/rv32e-xregs.xml: New file.
881 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
882 file.
883 (riscv_debug_infcall): Likewise.
884 (riscv_debug_unwinder): Likewise.
885 (riscv_debug_gdbarch): Likewise.
886 (enum riscv_register_required_status): Delete.
887 (struct riscv_register_feature): Add constructor, delete default
888 constructor, copy, and assign constructors.
889 (struct riscv_register_feature::register_info) <required>: Delete.
890 <check>: Update comment and arguments.
891 (struct riscv_register_feature) <name>: Change to member function.
892 <prefer_first_name>: Delete.
893 <tdesc_feature>: New member function.
894 <registers>: Rename to...
895 <m_registers>: ...this.
896 <m_feature_name>: New member variable.
897 (riscv_register_feature::register_info::check): Update arguments.
898 (riscv_xreg_feature): Rewrite as class, create a single static
899 instance of the class.
900 (riscv_freg_feature): Likewise.
901 (riscv_virtual_feature): Likewise.
902 (riscv_csr_feature): Likewise.
903 (riscv_create_csr_aliases): Has become a member function inside
904 riscv_csr_feature class.
905 (riscv_abi_embedded): New function definition.
906 (riscv_register_name): Adjust to use new feature objects.
907 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
908 and adjust available argument registers.
909 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
910 (riscv_check_tdesc_feature): Delete.
911 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
912 (riscv_gdbarch_init): Delete target description checking code, and
913 instead call to the new feature objects to perform the checks.
914 Reorder handling of no abi information case, allows small code
915 simplification.
916 (_initialize_riscv_tdep): Remove call, this is now done in the
917 riscv_csr_feature constructor.
918 * riscv-tdep.h (riscv_abi_embedded): Declare.
919
920 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
921
922 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
923 DECLARE_CSR_ALIAS.
924
925 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * riscv-tdep.c (riscv_is_unknown_csr): New function,
928 implementation moved from riscv_register_reggroup_p.
929 (riscv_register_reggroup_p): Update group handling for unknown
930 CSRs.
931
932 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
933
934 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
935 (dwarf2_get_dwz_file): Convert 'filename' to a
936 std::string. Use dwz_search_other_debugdirs to search for DWZ
937 files in the debug-file-directories provided by the user as well.
938
939 2020-12-01 Tom Tromey <tom@tromey.com>
940
941 * parse.c (expr_builder::expr_builder): Initialize expout.
942 (expr_builder::release): Use expression::resize.
943 (expression::expression, expression::~expression)
944 (expression::resize): New methods.
945 (write_exp_elt): Use expression::resize.
946 (prefixify_expression): Update.
947 (increase_expout_size): Use expression::resize.
948 * expression.h (struct expression): Add constructor, destructor.
949 <resize>: New method.
950 (expression_up): Change type.
951
952 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
953 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
954 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
955 set region.
956
957 2020-11-30 Tom de Vries <tdevries@suse.de>
958
959 PR symtab/26905
960 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
961 is_reference parameter.
962 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
963
964 2020-11-30 Tom Tromey <tom@tromey.com>
965
966 * rust-lang.c (rust_op_name): Remove.
967 (exp_descriptor_rust): Update.
968 * parser-defs.h (op_name_standard): Don't declare.
969 (struct exp_descriptor) <op_name>: Remove.
970 * parse.c (exp_descriptor_standard): Update.
971 * opencl-lang.c (exp_descriptor_opencl): Update.
972 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
973 * f-lang.c (op_name_f): Remove.
974 (f_language::exp_descriptor_tab): Update.
975 * expression.h (op_name): Update.
976 * expprint.c (op_name): Rewrite.
977 (op_name_standard): Remove.
978 (dump_raw_expression, dump_subexp): Update.
979 * c-lang.c (exp_descriptor_c): Update.
980 * ax-gdb.c (gen_expr): Update.
981 * ada-lang.c (ada_op_name): Remove.
982 (ada_exp_descriptor): Update.
983
984 2020-11-30 Tom Tromey <tom@tromey.com>
985
986 * eval.c (init_array_element): Remove.
987 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
988
989 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
990
991 PR tui/26973
992 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
993 static locator win info.
994
995 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
996
997 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
998 program.
999
1000 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1003 is always initialized.
1004
1005 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1006 * MAINTAINERS (Write After Approval): Add myself.
1007
1008 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1009
1010 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1011 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1012
1013 2020-11-25 Tom Tromey <tom@tromey.com>
1014
1015 * eval.c (evaluate_subexp_standard): Remove unnecessary
1016 variables.
1017
1018 2020-11-25 Tom Tromey <tom@tromey.com>
1019
1020 * d-lang.c: Include parser-defs.h.
1021 * rust-lang.c: Include parser-defs.h.
1022 * c-lang.h: Do not include parser-defs.h.
1023
1024 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * regcache.h (struct cached_reg): Remove typedef.
1027
1028 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1029
1030 * README: Fix the URL of the MPFR library.
1031
1032 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1033
1034 * README: Document the --with-libgmp-prefix configure option.
1035
1036 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1037
1038 * NEWS: Add entry documenting support for DWARF-based fixed
1039 point types.
1040
1041 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1042
1043 * NEWS: Document that building GDB now requires GMP.
1044
1045 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1046
1047 * typeprint.c (print_type_scalar): Add handling of
1048 TYPE_CODE_FIXED_POINT.
1049
1050 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1051
1052 * valarith.c (fixed_point_binop): Replace the
1053 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1054 users accordingly.
1055
1056 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1057
1058 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1059 replacing fixed_point_scaling_factor. All callers updated
1060 throughout this project.
1061 (fixed_point_scaling_factor): Delete declaration.
1062 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1063 fixed_point_scaling_factor. Adjust implementation accordingly.
1064
1065 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1066
1067 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1068 replacing the fixed_point_type_base_type function. All callers
1069 updated throughout this project.
1070 (fixed_point_type_base_type): Remove declaration.
1071 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1072 fixed_point_type_base_type. Adjust implementation accordingly.
1073
1074 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1075
1076 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1077 New methods.
1078 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1079 (TYPE_FIXED_POINT_INFO): Delete macro.
1080 (allocate_fixed_point_type_info): Change return type to void.
1081 * gdbtypes.c (copy_type_recursive): Replace the use of
1082 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1083 (fixed_point_scaling_factor): Likewise.
1084 (allocate_fixed_point_type_info): Change return type to void.
1085 Adjust implementation accordingly.
1086 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1087 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1088
1089 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1090
1091 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1092 into one single gdb::array_view parameter.
1093 (gdb_mpz::write): Likewise.
1094 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1095 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1096 into one single gdb::array_view parameter.
1097 Adjust implementation accordingly.
1098 (gdb_mpz::write): Likewise.
1099 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1100 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1101 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1102
1103 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1104
1105 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1106 Change return type to std::string. Update all callers.
1107 * gmp-utils.c (gmp_string_printf): Likewise.
1108
1109 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1110
1111 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1112 instead of mpq_set_ui to initialize our GMP rational.
1113
1114 2020-11-23 Tom de Vries <tdevries@suse.de>
1115
1116 * debuginfod-support.c (debuginfod_source_query)
1117 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1118
1119 2020-11-21 Tom Tromey <tom@tromey.com>
1120
1121 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1122
1123 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1126 Pass 2.0 to pow.
1127 (gdb_mpz_write_all_from_small): Likewise.
1128
1129 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1132 of abs.
1133
1134 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1135
1136 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1137 ctf_arc_open_by_name.
1138
1139 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1140
1141 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1142 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1143
1144 2020-11-20 Pedro Alves <pedro@palves.net>
1145
1146 * language.c (language_arch_info::lookup_primitive_type): Use
1147 gdb::function_view instead of gdb::function.
1148 (template language_lookup_primitive_type): Rename to ...
1149 (language_lookup_primitive_type_1): ... this, and make static.
1150 (language_lookup_primitive_type(const struct language_defn *,
1151 struct gdbarch *, const char *): Make non-template.
1152 (language_lookup_primitive_type(const struct language_defn *,
1153 struct gdbarch *, std::function<bool (struct type *)>): Make
1154 non-template and use gdb::function_view.
1155 * language.h (language_arch_info::lookup_primitive_type): Use
1156 gdb::function_view instead of std::function.
1157 (language_lookup_primitive_type): No longer template.
1158 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1159 lambda instead of a std::function.
1160
1161 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1162
1163 PR tdep/26916
1164 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1165 and STOCFH.
1166
1167 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1170
1171 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1174 in `loop_cb` parameter.
1175 * gdbarch.c: Re-generate.
1176 * gdbarch.h: Re-generate.
1177 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1178 parameter.
1179 * arch-utils.h (default_read_core_file_mappings): Likewise.
1180 * corelow.c (core_target::build_file_mappings): Likewise.
1181 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1182 (linux_core_info_proc_mappings): Likewise.
1183
1184 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1187 * NEWS: Mention new options.
1188 * f-array-walker.h: New file.
1189 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1190 (repack_array_slices): New static global.
1191 (show_repack_array_slices): New function.
1192 (fortran_array_slicing_debug): New static global.
1193 (show_fortran_array_slicing_debug): New function.
1194 (value_f90_subarray): Delete.
1195 (skip_undetermined_arglist): Delete.
1196 (class fortran_array_repacker_base_impl): New class.
1197 (class fortran_lazy_array_repacker_impl): New class.
1198 (class fortran_array_repacker_impl): New class.
1199 (fortran_value_subarray): Complete rewrite.
1200 (set_fortran_list): New static global.
1201 (show_fortran_list): Likewise.
1202 (_initialize_f_language): Register new commands.
1203 (fortran_adjust_dynamic_array_base_address_hack): New function.
1204 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1205 Declare.
1206 * f-valprint.c: Include 'f-array-walker.h'.
1207 (class fortran_array_printer_impl): New class.
1208 (f77_print_array_1): Delete.
1209 (f77_print_array): Delete.
1210 (fortran_print_array): New.
1211 (f_value_print_inner): Update to call fortran_print_array.
1212 * gdbtypes.c: Include 'f-lang.h'.
1213 (resolve_dynamic_type_internal): Call
1214 fortran_adjust_dynamic_array_base_address_hack.
1215
1216 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * breakpoint.c (struct watch_options): New struct.
1219 (watch_option_defs): New static global.
1220 (make_watch_options_def_group): New function.
1221 (watch_maybe_just_location): Convert option parsing.
1222 (watch_command_completer): New function.
1223 (_initialize_breakpoint): Build help text using options mechanism.
1224
1225 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1228 (watch_command_1): Update parameter types. Convert locals to
1229 bool.
1230 (watch_command_wrapper): Change parameter type.
1231 (watch_maybe_just_location): Change locals to bool.
1232 (rwatch_command_wrapper): Update parameter type.
1233 (awatch_command_wrapper): Update parameter type.
1234 * breakpoint.h (watch_command_wrapper): Change parameter type.
1235 (rwatch_command_wrapper): Update parameter type.
1236 (awatch_command_wrapper): Update parameter type.
1237 * eval.c (fetch_subexp_value): Change parameter type.
1238 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1239 'false' not '0'.
1240 * value.h (fetch_subexp_value): Change parameter type in
1241 declaration.
1242
1243 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1246 skip_spaces.
1247
1248 2020-11-18 Keith Seitz <keiths@redhat.com>
1249
1250 * linux-tdep.c (dump_note_entry_p): Return true instead of
1251 checking `filename'.
1252
1253 2020-11-18 Tom de Vries <tdevries@suse.de>
1254
1255 * debuginfod-support.c (debuginfod_source_query)
1256 (debuginfod_debuginfo_query): Also do early exit if
1257 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1258
1259 2020-11-18 Tom de Vries <tdevries@suse.de>
1260
1261 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1262 warning.
1263
1264 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1267 callers. Move doc here.
1268 * gdbtypes.c (get_array_bounds): Return bool
1269
1270 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1273 assert.
1274 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1275 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1276 case to the default.
1277
1278 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * printcmd.c: Include 'safe-ctype.c'.
1281 (skip_over_slash_fmt): New function.
1282 (print_command_completer): Call skip_over_slash_fmt.
1283 (display_and_x_command_completer): New function.
1284 (_initialize_printcmd): Add command completion for 'x' and
1285 'display'.
1286
1287 2020-11-16 Pedro Alves <pedro@palves.net>
1288
1289 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1290 (get_prev_frame_always_1): ... to here.
1291 * inline-frame.c (inline_frame_this_id): Mention
1292 get_prev_frame_always_1 in comment.
1293
1294 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1295
1296 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1297 handling.
1298 (value_less): Add fixed-point handling.
1299
1300 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1301
1302 * eval.c (binop_promote): Add fixed-point type handling.
1303 * valarith.c (fixed_point_binop): New function.
1304 (scalar_binop): Add fixed-point type handling.
1305 (value_neg): Add fixed-point type handling.
1306 * valops.c (value_cast_to_fixed_point): New function.
1307 (value_cast): Add fixed-point type handling.
1308
1309 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1310
1311 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1312 range types.
1313 * c-typeprint.c (c_type_print_varspec_prefix)
1314 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1315 TYPE_CODE_FIXED_POINT handling.
1316 * p-typeprint.c (pascal_type_print_varspec_prefix)
1317 (pascal_type_print_varspec_suffix): Likewise.
1318 * typeprint.c (print_type_fixed_point): New function.
1319 * typeprint.h (print_type_fixed_point): Add declaration.
1320
1321 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1322
1323 * printcmd.c (print_scalar_formatted): Add fixed-point type
1324 handling when options->format is set.
1325
1326 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1327
1328 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1329 * dwarf2/read.c (get_dwarf2_rational_constant)
1330 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1331 (has_zero_over_zero_small_attribute): New functions.
1332 read_base_type, set_die_type): Add fixed-point type handling.
1333 * gdb-gdb.py.in: Add fixed-point type handling.
1334 * gdbtypes.c: #include "gmp-utils.h".
1335 (create_range_type, set_type_code): Add fixed-point type handling.
1336 (init_fixed_point_type): New function.
1337 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1338 (print_fixed_point_type_info): New function.
1339 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1340 handling.
1341 (fixed_point_type_storage): New typedef.
1342 (fixed_point_objfile_key): New static global.
1343 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1344 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1345 functions.
1346 * gdbtypes.h: #include "gmp-utils.h".
1347 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1348 (union type_specific) <fixed_point_info>: New field.
1349 (struct fixed_point_type_info): New struct.
1350 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1351 (init_fixed_point_type, is_fixed_point_type)
1352 (fixed_point_type_base_type, fixed_point_scaling_factor)
1353 (allocate_fixed_point_type_info): Add declarations.
1354 * valprint.c (generic_val_print_fixed_point): New function.
1355 (generic_value_print): Add fixed-point type handling.
1356 * value.c (value_as_address, unpack_long): Add fixed-point type
1357 handling.
1358
1359 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1360
1361 * utils.h (uinteger_pow): Add declaration.
1362 * utils.c (uinteger_pow): Moved here (without changes)...
1363 * valarith.c (uinteger_pow): ... from here.
1364
1365 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1366
1367 * gmp-utils.h, gmp-utils.c: New file.
1368 * unittests/gmp-utils-selftests.c: New file.
1369 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1370 unittests/gmp-utils-selftests.c.
1371 (COMMON_SFILES) Add gmp-utils.c.
1372 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1373
1374 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1375
1376 * configure.ac: Generate an error if a usable GMP library
1377 could not be found.
1378 * configure: Regenerate.
1379
1380 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1381
1382 * configure.ac: Add support for --with-libgmp-prefix.
1383 * Makefile.in (LIBGMP): New variable.
1384 (CLIBS): Include $(LIBGMP).
1385 * configure, config.in: Regenerate
1386
1387 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 PR cli/26879
1390 * f-exp.y (COMPLETE): New token.
1391 (exp): Two new rules for tab-completion.
1392 (saw_name_at_eof): New static global.
1393 (last_was_structop): Likewise.
1394 (yylex): Set new variables, and return COMPLETE token at the end
1395 of the input stream in some cases.
1396
1397 2020-11-14 Tom Tromey <tom@tromey.com>
1398
1399 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1400
1401 2020-11-14 Tom Tromey <tom@tromey.com>
1402
1403 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1404
1405 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1406
1407 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1408
1409 2020-11-13 Tom Tromey <tom@tromey.com>
1410
1411 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1412 (convert_escape, parse_one_string): Constify.
1413
1414 2020-11-13 Keith Seitz <keiths@redhat.com>
1415
1416 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1417 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1418 outside of ELF segments" warning for debugin
1419
1420 2020-11-13 Keith Seitz <keiths@redhat.com>
1421
1422 PR gdb/23034
1423 * elfread.c (elf_symfile_segments): Output a BFD file name
1424 for the "Loadable section ... outside of ELF segments" warning.
1425
1426 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 PR gdb/26835
1429 * arm-tdep.c (class arm_instruction_reader): New.
1430 (target_arm_instruction_reader): New.
1431 (arm_analyze_prologue): Add instruction reader parameter and use
1432 it. Use arm_expand_immediate.
1433 (class target_arm_instruction_reader): Adjust.
1434 (arm_skip_prologue): Adjust.
1435 (arm_expand_immediate): New.
1436 (arm_scan_prologue): Adjust.
1437 (arm_analyze_prologue_test): New.
1438 (class test_arm_instruction_reader): New.
1439
1440 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * f-lang.c (fortran_argument_convert): Add declaration. Add
1443 header comment, taken from f-lang.h. Make static.
1444 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1445 (fortran_argument_convert): Delete declaration.
1446
1447 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * ada-exp.y (find_primitive_type): Make parameter const.
1450 * ada-lang.c (enum ada_primitive_types): Delete.
1451 (ada_language::language_arch_info): Update.
1452 * c-lang.c (enum c_primitive_types): Delete.
1453 (c_language_arch_info): Update.
1454 (enum cplus_primitive_types): Delete.
1455 (cplus_language::language_arch_info): Update.
1456 * d-lang.c (enum d_primitive_types): Delete.
1457 (d_language::language_arch_info): Update.
1458 * f-lang.c (enum f_primitive_types): Delete.
1459 (f_language::language_arch_info): Update.
1460 * go-lang.c (enum go_primitive_types): Delete.
1461 (go_language::language_arch_info): Update.
1462 * language.c (auto_or_unknown_language::language_arch_info):
1463 Update.
1464 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1465 (language_string_char_type): Add header comment, call function in
1466 language_arch_info.
1467 (language_bool_type): Likewise
1468 (language_arch_info::bool_type): Define.
1469 (language_lookup_primitive_type_1): Delete.
1470 (language_lookup_primitive_type): Rewrite as a templated function
1471 to call function in language_arch_info, then instantiate twice.
1472 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1473 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1474 (language_arch_info::lookup_primitive_type): Define twice with
1475 different signatures.
1476 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1477 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1478 member function in language_arch_info.
1479 * language.h (language_arch_info): Complete rewrite.
1480 (language_lookup_primitive_type): Make templated.
1481 * m2-lang.c (enum m2_primitive_types): Delete.
1482 (m2_language::language_arch_info): Update.
1483 * opencl-lang.c (OCL_P_TYPE): Delete.
1484 (enum opencl_primitive_types): Delete.
1485 (opencl_type_data): Delete.
1486 (builtin_opencl_type): Delete.
1487 (lookup_opencl_vector_type): Update.
1488 (opencl_language::language_arch_info): Update, lots of content
1489 moved from...
1490 (build_opencl_types): ...here. This function is now deleted.
1491 (_initialize_opencl_language): Delete.
1492 * p-lang.c (enum pascal_primitive_types): Delete.
1493 (pascal_language::language_arch_info): Update.
1494 * rust-lang.c (enum rust_primitive_types): Delete.
1495 (rust_language::language_arch_info): Update.
1496
1497 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1500 dwarf2_queue_guard.
1501
1502 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1505 comment.
1506
1507 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * dwarf2/read.c (dwarf_read_debug_printf,
1510 dwarf_read_debug_printf_v): New macros, use throughout the file.
1511
1512 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1513
1514 PR tdep/27015
1515 * arc-linux-tdep.c (collect_register): Populate "eret" by
1516 "pc" value from the regcache when asked for "pc" value.
1517
1518 2020-11-12 Tom Tromey <tom@tromey.com>
1519
1520 PR rust/26799:
1521 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1522 exist.
1523
1524 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * features/Makefile (XMLTOC): Add rx.xml.
1527 (FEATURE_XMLFILES): Remove rx.xml.
1528 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1529 * features/rx.c: Regenerate.
1530 * features/rx.xml: Wrap in `target` tags, and reindent.
1531 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1532 structure.
1533 (maint_print_c_tdesc_opt_def): New typedef.
1534 (maint_print_c_tdesc_opt_defs): New static global.
1535 (make_maint_print_c_tdesc_options_def_group): New function.
1536 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1537 print single feature C file for target descriptions containing a
1538 single feature.
1539 (maint_print_c_tdesc_cmd_completer): New function.
1540 (_initialize_target_descriptions): Update call to register command
1541 completer, and include command line flag in help text.
1542
1543 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1546 numbers.
1547 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1548 enum values.
1549
1550 2020-11-10 Tom Tromey <tom@tromey.com>
1551
1552 * value.h (internalvar_name): Update.
1553 * value.c (internalvar_name): Make return type const.
1554
1555 2020-11-10 Tom Tromey <tom@tromey.com>
1556
1557 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1558 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1559 const.
1560
1561 2020-11-10 Tom Tromey <tom@tromey.com>
1562
1563 * objc-lang.h (value_nsstring): Update.
1564 * objc-lang.c (value_nsstring): Make "ptr" const.
1565
1566 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * expprint.c (print_subexp_funcall): Increment expression position
1569 after reading argument count.
1570 * f-lang.c (print_subexp_f): Skip over opcode before calling
1571 common function.
1572 (dump_subexp_body_f): Likewise.
1573
1574 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1575
1576 PR python/26832
1577 * configure: Regenerate.
1578 * configure.ac: Check for python modules ctypes instead of
1579 itertools.
1580
1581 2020-11-06 Pedro Alves <pedro@palves.net>
1582
1583 * macroexp.c (struct macro_buffer): Split in two classes. Add
1584 uses adjusted.
1585 (struct shared_macro_buffer): New, factored out from struct
1586 macro_buffer.
1587 (struct growable_macro_buffer): New, factored out from struct
1588 macro_buffer.
1589 (set_token, get_comment, get_identifier, get_pp_number)
1590 (get_character_constant, get_string_literal, get_punctuator)
1591 (get_next_token_for_substitution): Constify parameters.
1592 (substitute_args): Constify locals.
1593
1594 2020-11-05 Tom Tromey <tom@tromey.com>
1595
1596 * dwarf2/read.c (read_cutu_die_from_dwo)
1597 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1598 (build_type_psymtabs_1): Update.
1599 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1600 parameter.
1601 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1602 Don't read section. Add assert.
1603
1604 2020-11-04 Tom Tromey <tromey@adacore.com>
1605
1606 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1607
1608 2020-11-04 Tom Tromey <tromey@adacore.com>
1609
1610 * ada-typeprint.c (ada_print_type): Handle __T types.
1611
1612 2020-11-04 Tom Tromey <tromey@adacore.com>
1613
1614 * dwarf2/read.c (add_partial_symbol, process_die):
1615 Handle DW_TAG_array_type.
1616 (is_type_tag_for_partial): Add "lang" parameter.
1617 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1618
1619 2020-11-04 Tom Tromey <tromey@adacore.com>
1620
1621 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1622
1623 2020-11-04 Tom Tromey <tromey@adacore.com>
1624
1625 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1626 array.
1627
1628 2020-11-04 Tom Tromey <tromey@adacore.com>
1629
1630 * gdbtypes.c (update_static_array_size): Handle bit stride.
1631
1632 2020-11-04 Tom Tromey <tromey@adacore.com>
1633
1634 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1635
1636 2020-11-04 Tom Tromey <tromey@adacore.com>
1637
1638 * ada-lang.c (ada_is_any_packed_array_type): New function.
1639 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1640
1641 2020-11-04 Tom Tromey <tromey@adacore.com>
1642
1643 * dwarf2/read.c (recognize_bound_expression)
1644 (quirk_ada_thick_pointer): New functions.
1645 (read_array_type): Call quirk_ada_thick_pointer.
1646 (set_die_type): Add "skip_data_location" parameter.
1647 (quirk_ada_thick_pointer): New function.
1648 (process_structure_scope): Call quirk_ada_thick_pointer.
1649 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1650 (decode_packed_array_bitsize): Handle thick pointers without
1651 parallel types.
1652 (ada_is_gnat_encoded_packed_array_type): Rename from
1653 ada_is_packed_array_type.
1654 (ada_is_constrained_packed_array_type): Update.
1655 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1656 (ada_value_print_1): Use ada_get_decoded_value.
1657
1658 2020-11-04 Tom Tromey <tromey@adacore.com>
1659
1660 * ada-lang.c (recursively_update_array_bitsize): New function.
1661 (decode_constrained_packed_array_type): Call it.
1662
1663 2020-11-04 Tom Tromey <tromey@adacore.com>
1664
1665 * ada-lang.c (to_fixed_array_type): Error if
1666 decode_constrained_packed_array_type returns NULL.
1667
1668 2020-11-04 Tom Tromey <tromey@adacore.com>
1669
1670 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1671
1672 2020-11-02 Tom Tromey <tromey@adacore.com>
1673
1674 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1675 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1676 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1677 * amd64-ravenscar-thread.c: New file.
1678 * amd64-ravenscar-thread.h: New file.
1679 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1680 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1681
1682 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * main.c (execute_cmdargs): New function.
1685 (captured_main_1): Make use of execute_cmdargs.
1686
1687 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * NEWS: Mention changes to config file search path.
1690 * main.c
1691
1692 2020-11-02 Tom Tromey <tromey@adacore.com>
1693
1694 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1695 (python_GdbModuleDef): Move earlier. Now static.
1696 (do_start_initialization): Consolidate some IS_PY3K blocks.
1697
1698 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * aarch64-linux-tdep.c: Fix indentation.
1701 * aarch64-ravenscar-thread.c: Fix indentation.
1702 * aarch64-tdep.c: Fix indentation.
1703 * aarch64-tdep.h: Fix indentation.
1704 * ada-lang.c: Fix indentation.
1705 * ada-lang.h: Fix indentation.
1706 * ada-tasks.c: Fix indentation.
1707 * ada-typeprint.c: Fix indentation.
1708 * ada-valprint.c: Fix indentation.
1709 * ada-varobj.c: Fix indentation.
1710 * addrmap.c: Fix indentation.
1711 * addrmap.h: Fix indentation.
1712 * agent.c: Fix indentation.
1713 * aix-thread.c: Fix indentation.
1714 * alpha-bsd-nat.c: Fix indentation.
1715 * alpha-linux-tdep.c: Fix indentation.
1716 * alpha-mdebug-tdep.c: Fix indentation.
1717 * alpha-nbsd-tdep.c: Fix indentation.
1718 * alpha-obsd-tdep.c: Fix indentation.
1719 * alpha-tdep.c: Fix indentation.
1720 * amd64-bsd-nat.c: Fix indentation.
1721 * amd64-darwin-tdep.c: Fix indentation.
1722 * amd64-linux-nat.c: Fix indentation.
1723 * amd64-linux-tdep.c: Fix indentation.
1724 * amd64-nat.c: Fix indentation.
1725 * amd64-obsd-tdep.c: Fix indentation.
1726 * amd64-tdep.c: Fix indentation.
1727 * amd64-windows-tdep.c: Fix indentation.
1728 * annotate.c: Fix indentation.
1729 * arc-tdep.c: Fix indentation.
1730 * arch-utils.c: Fix indentation.
1731 * arch/arm-get-next-pcs.c: Fix indentation.
1732 * arch/arm.c: Fix indentation.
1733 * arm-linux-nat.c: Fix indentation.
1734 * arm-linux-tdep.c: Fix indentation.
1735 * arm-nbsd-tdep.c: Fix indentation.
1736 * arm-pikeos-tdep.c: Fix indentation.
1737 * arm-tdep.c: Fix indentation.
1738 * arm-tdep.h: Fix indentation.
1739 * arm-wince-tdep.c: Fix indentation.
1740 * auto-load.c: Fix indentation.
1741 * auxv.c: Fix indentation.
1742 * avr-tdep.c: Fix indentation.
1743 * ax-gdb.c: Fix indentation.
1744 * ax-general.c: Fix indentation.
1745 * bfin-linux-tdep.c: Fix indentation.
1746 * block.c: Fix indentation.
1747 * block.h: Fix indentation.
1748 * blockframe.c: Fix indentation.
1749 * bpf-tdep.c: Fix indentation.
1750 * break-catch-sig.c: Fix indentation.
1751 * break-catch-syscall.c: Fix indentation.
1752 * break-catch-throw.c: Fix indentation.
1753 * breakpoint.c: Fix indentation.
1754 * breakpoint.h: Fix indentation.
1755 * bsd-uthread.c: Fix indentation.
1756 * btrace.c: Fix indentation.
1757 * build-id.c: Fix indentation.
1758 * buildsym-legacy.h: Fix indentation.
1759 * buildsym.c: Fix indentation.
1760 * c-typeprint.c: Fix indentation.
1761 * c-valprint.c: Fix indentation.
1762 * c-varobj.c: Fix indentation.
1763 * charset.c: Fix indentation.
1764 * cli/cli-cmds.c: Fix indentation.
1765 * cli/cli-decode.c: Fix indentation.
1766 * cli/cli-decode.h: Fix indentation.
1767 * cli/cli-script.c: Fix indentation.
1768 * cli/cli-setshow.c: Fix indentation.
1769 * coff-pe-read.c: Fix indentation.
1770 * coffread.c: Fix indentation.
1771 * compile/compile-cplus-types.c: Fix indentation.
1772 * compile/compile-object-load.c: Fix indentation.
1773 * compile/compile-object-run.c: Fix indentation.
1774 * completer.c: Fix indentation.
1775 * corefile.c: Fix indentation.
1776 * corelow.c: Fix indentation.
1777 * cp-abi.h: Fix indentation.
1778 * cp-namespace.c: Fix indentation.
1779 * cp-support.c: Fix indentation.
1780 * cp-valprint.c: Fix indentation.
1781 * cris-linux-tdep.c: Fix indentation.
1782 * cris-tdep.c: Fix indentation.
1783 * darwin-nat-info.c: Fix indentation.
1784 * darwin-nat.c: Fix indentation.
1785 * darwin-nat.h: Fix indentation.
1786 * dbxread.c: Fix indentation.
1787 * dcache.c: Fix indentation.
1788 * disasm.c: Fix indentation.
1789 * dtrace-probe.c: Fix indentation.
1790 * dwarf2/abbrev.c: Fix indentation.
1791 * dwarf2/attribute.c: Fix indentation.
1792 * dwarf2/expr.c: Fix indentation.
1793 * dwarf2/frame.c: Fix indentation.
1794 * dwarf2/index-cache.c: Fix indentation.
1795 * dwarf2/index-write.c: Fix indentation.
1796 * dwarf2/line-header.c: Fix indentation.
1797 * dwarf2/loc.c: Fix indentation.
1798 * dwarf2/macro.c: Fix indentation.
1799 * dwarf2/read.c: Fix indentation.
1800 * dwarf2/read.h: Fix indentation.
1801 * elfread.c: Fix indentation.
1802 * eval.c: Fix indentation.
1803 * event-top.c: Fix indentation.
1804 * exec.c: Fix indentation.
1805 * exec.h: Fix indentation.
1806 * expprint.c: Fix indentation.
1807 * f-lang.c: Fix indentation.
1808 * f-typeprint.c: Fix indentation.
1809 * f-valprint.c: Fix indentation.
1810 * fbsd-nat.c: Fix indentation.
1811 * fbsd-tdep.c: Fix indentation.
1812 * findvar.c: Fix indentation.
1813 * fork-child.c: Fix indentation.
1814 * frame-unwind.c: Fix indentation.
1815 * frame-unwind.h: Fix indentation.
1816 * frame.c: Fix indentation.
1817 * frv-linux-tdep.c: Fix indentation.
1818 * frv-tdep.c: Fix indentation.
1819 * frv-tdep.h: Fix indentation.
1820 * ft32-tdep.c: Fix indentation.
1821 * gcore.c: Fix indentation.
1822 * gdb_bfd.c: Fix indentation.
1823 * gdbarch.sh: Fix indentation.
1824 * gdbarch.c: Re-generate
1825 * gdbarch.h: Re-generate.
1826 * gdbcore.h: Fix indentation.
1827 * gdbthread.h: Fix indentation.
1828 * gdbtypes.c: Fix indentation.
1829 * gdbtypes.h: Fix indentation.
1830 * glibc-tdep.c: Fix indentation.
1831 * gnu-nat.c: Fix indentation.
1832 * gnu-nat.h: Fix indentation.
1833 * gnu-v2-abi.c: Fix indentation.
1834 * gnu-v3-abi.c: Fix indentation.
1835 * go32-nat.c: Fix indentation.
1836 * guile/guile-internal.h: Fix indentation.
1837 * guile/scm-cmd.c: Fix indentation.
1838 * guile/scm-frame.c: Fix indentation.
1839 * guile/scm-iterator.c: Fix indentation.
1840 * guile/scm-math.c: Fix indentation.
1841 * guile/scm-ports.c: Fix indentation.
1842 * guile/scm-pretty-print.c: Fix indentation.
1843 * guile/scm-value.c: Fix indentation.
1844 * h8300-tdep.c: Fix indentation.
1845 * hppa-linux-nat.c: Fix indentation.
1846 * hppa-linux-tdep.c: Fix indentation.
1847 * hppa-nbsd-nat.c: Fix indentation.
1848 * hppa-nbsd-tdep.c: Fix indentation.
1849 * hppa-obsd-nat.c: Fix indentation.
1850 * hppa-tdep.c: Fix indentation.
1851 * hppa-tdep.h: Fix indentation.
1852 * i386-bsd-nat.c: Fix indentation.
1853 * i386-darwin-nat.c: Fix indentation.
1854 * i386-darwin-tdep.c: Fix indentation.
1855 * i386-dicos-tdep.c: Fix indentation.
1856 * i386-gnu-nat.c: Fix indentation.
1857 * i386-linux-nat.c: Fix indentation.
1858 * i386-linux-tdep.c: Fix indentation.
1859 * i386-nto-tdep.c: Fix indentation.
1860 * i386-obsd-tdep.c: Fix indentation.
1861 * i386-sol2-nat.c: Fix indentation.
1862 * i386-tdep.c: Fix indentation.
1863 * i386-tdep.h: Fix indentation.
1864 * i386-windows-tdep.c: Fix indentation.
1865 * i387-tdep.c: Fix indentation.
1866 * i387-tdep.h: Fix indentation.
1867 * ia64-libunwind-tdep.c: Fix indentation.
1868 * ia64-libunwind-tdep.h: Fix indentation.
1869 * ia64-linux-nat.c: Fix indentation.
1870 * ia64-linux-tdep.c: Fix indentation.
1871 * ia64-tdep.c: Fix indentation.
1872 * ia64-tdep.h: Fix indentation.
1873 * ia64-vms-tdep.c: Fix indentation.
1874 * infcall.c: Fix indentation.
1875 * infcmd.c: Fix indentation.
1876 * inferior.c: Fix indentation.
1877 * infrun.c: Fix indentation.
1878 * iq2000-tdep.c: Fix indentation.
1879 * language.c: Fix indentation.
1880 * linespec.c: Fix indentation.
1881 * linux-fork.c: Fix indentation.
1882 * linux-nat.c: Fix indentation.
1883 * linux-tdep.c: Fix indentation.
1884 * linux-thread-db.c: Fix indentation.
1885 * lm32-tdep.c: Fix indentation.
1886 * m2-lang.c: Fix indentation.
1887 * m2-typeprint.c: Fix indentation.
1888 * m2-valprint.c: Fix indentation.
1889 * m32c-tdep.c: Fix indentation.
1890 * m32r-linux-tdep.c: Fix indentation.
1891 * m32r-tdep.c: Fix indentation.
1892 * m68hc11-tdep.c: Fix indentation.
1893 * m68k-bsd-nat.c: Fix indentation.
1894 * m68k-linux-nat.c: Fix indentation.
1895 * m68k-linux-tdep.c: Fix indentation.
1896 * m68k-tdep.c: Fix indentation.
1897 * machoread.c: Fix indentation.
1898 * macrocmd.c: Fix indentation.
1899 * macroexp.c: Fix indentation.
1900 * macroscope.c: Fix indentation.
1901 * macrotab.c: Fix indentation.
1902 * macrotab.h: Fix indentation.
1903 * main.c: Fix indentation.
1904 * mdebugread.c: Fix indentation.
1905 * mep-tdep.c: Fix indentation.
1906 * mi/mi-cmd-catch.c: Fix indentation.
1907 * mi/mi-cmd-disas.c: Fix indentation.
1908 * mi/mi-cmd-env.c: Fix indentation.
1909 * mi/mi-cmd-stack.c: Fix indentation.
1910 * mi/mi-cmd-var.c: Fix indentation.
1911 * mi/mi-cmds.c: Fix indentation.
1912 * mi/mi-main.c: Fix indentation.
1913 * mi/mi-parse.c: Fix indentation.
1914 * microblaze-tdep.c: Fix indentation.
1915 * minidebug.c: Fix indentation.
1916 * minsyms.c: Fix indentation.
1917 * mips-linux-nat.c: Fix indentation.
1918 * mips-linux-tdep.c: Fix indentation.
1919 * mips-nbsd-tdep.c: Fix indentation.
1920 * mips-tdep.c: Fix indentation.
1921 * mn10300-linux-tdep.c: Fix indentation.
1922 * mn10300-tdep.c: Fix indentation.
1923 * moxie-tdep.c: Fix indentation.
1924 * msp430-tdep.c: Fix indentation.
1925 * namespace.h: Fix indentation.
1926 * nat/fork-inferior.c: Fix indentation.
1927 * nat/gdb_ptrace.h: Fix indentation.
1928 * nat/linux-namespaces.c: Fix indentation.
1929 * nat/linux-osdata.c: Fix indentation.
1930 * nat/netbsd-nat.c: Fix indentation.
1931 * nat/x86-dregs.c: Fix indentation.
1932 * nbsd-nat.c: Fix indentation.
1933 * nbsd-tdep.c: Fix indentation.
1934 * nios2-linux-tdep.c: Fix indentation.
1935 * nios2-tdep.c: Fix indentation.
1936 * nto-procfs.c: Fix indentation.
1937 * nto-tdep.c: Fix indentation.
1938 * objfiles.c: Fix indentation.
1939 * objfiles.h: Fix indentation.
1940 * opencl-lang.c: Fix indentation.
1941 * or1k-tdep.c: Fix indentation.
1942 * osabi.c: Fix indentation.
1943 * osabi.h: Fix indentation.
1944 * osdata.c: Fix indentation.
1945 * p-lang.c: Fix indentation.
1946 * p-typeprint.c: Fix indentation.
1947 * p-valprint.c: Fix indentation.
1948 * parse.c: Fix indentation.
1949 * ppc-linux-nat.c: Fix indentation.
1950 * ppc-linux-tdep.c: Fix indentation.
1951 * ppc-nbsd-nat.c: Fix indentation.
1952 * ppc-nbsd-tdep.c: Fix indentation.
1953 * ppc-obsd-nat.c: Fix indentation.
1954 * ppc-ravenscar-thread.c: Fix indentation.
1955 * ppc-sysv-tdep.c: Fix indentation.
1956 * ppc64-tdep.c: Fix indentation.
1957 * printcmd.c: Fix indentation.
1958 * proc-api.c: Fix indentation.
1959 * producer.c: Fix indentation.
1960 * producer.h: Fix indentation.
1961 * prologue-value.c: Fix indentation.
1962 * prologue-value.h: Fix indentation.
1963 * psymtab.c: Fix indentation.
1964 * python/py-arch.c: Fix indentation.
1965 * python/py-bpevent.c: Fix indentation.
1966 * python/py-event.c: Fix indentation.
1967 * python/py-event.h: Fix indentation.
1968 * python/py-finishbreakpoint.c: Fix indentation.
1969 * python/py-frame.c: Fix indentation.
1970 * python/py-framefilter.c: Fix indentation.
1971 * python/py-inferior.c: Fix indentation.
1972 * python/py-infthread.c: Fix indentation.
1973 * python/py-objfile.c: Fix indentation.
1974 * python/py-prettyprint.c: Fix indentation.
1975 * python/py-registers.c: Fix indentation.
1976 * python/py-signalevent.c: Fix indentation.
1977 * python/py-stopevent.c: Fix indentation.
1978 * python/py-stopevent.h: Fix indentation.
1979 * python/py-threadevent.c: Fix indentation.
1980 * python/py-tui.c: Fix indentation.
1981 * python/py-unwind.c: Fix indentation.
1982 * python/py-value.c: Fix indentation.
1983 * python/py-xmethods.c: Fix indentation.
1984 * python/python-internal.h: Fix indentation.
1985 * python/python.c: Fix indentation.
1986 * ravenscar-thread.c: Fix indentation.
1987 * record-btrace.c: Fix indentation.
1988 * record-full.c: Fix indentation.
1989 * record.c: Fix indentation.
1990 * reggroups.c: Fix indentation.
1991 * regset.h: Fix indentation.
1992 * remote-fileio.c: Fix indentation.
1993 * remote.c: Fix indentation.
1994 * reverse.c: Fix indentation.
1995 * riscv-linux-tdep.c: Fix indentation.
1996 * riscv-ravenscar-thread.c: Fix indentation.
1997 * riscv-tdep.c: Fix indentation.
1998 * rl78-tdep.c: Fix indentation.
1999 * rs6000-aix-tdep.c: Fix indentation.
2000 * rs6000-lynx178-tdep.c: Fix indentation.
2001 * rs6000-nat.c: Fix indentation.
2002 * rs6000-tdep.c: Fix indentation.
2003 * rust-lang.c: Fix indentation.
2004 * rx-tdep.c: Fix indentation.
2005 * s12z-tdep.c: Fix indentation.
2006 * s390-linux-tdep.c: Fix indentation.
2007 * score-tdep.c: Fix indentation.
2008 * ser-base.c: Fix indentation.
2009 * ser-mingw.c: Fix indentation.
2010 * ser-uds.c: Fix indentation.
2011 * ser-unix.c: Fix indentation.
2012 * serial.c: Fix indentation.
2013 * sh-linux-tdep.c: Fix indentation.
2014 * sh-nbsd-tdep.c: Fix indentation.
2015 * sh-tdep.c: Fix indentation.
2016 * skip.c: Fix indentation.
2017 * sol-thread.c: Fix indentation.
2018 * solib-aix.c: Fix indentation.
2019 * solib-darwin.c: Fix indentation.
2020 * solib-frv.c: Fix indentation.
2021 * solib-svr4.c: Fix indentation.
2022 * solib.c: Fix indentation.
2023 * source.c: Fix indentation.
2024 * sparc-linux-tdep.c: Fix indentation.
2025 * sparc-nbsd-tdep.c: Fix indentation.
2026 * sparc-obsd-tdep.c: Fix indentation.
2027 * sparc-ravenscar-thread.c: Fix indentation.
2028 * sparc-tdep.c: Fix indentation.
2029 * sparc64-linux-tdep.c: Fix indentation.
2030 * sparc64-nbsd-tdep.c: Fix indentation.
2031 * sparc64-obsd-tdep.c: Fix indentation.
2032 * sparc64-tdep.c: Fix indentation.
2033 * stabsread.c: Fix indentation.
2034 * stack.c: Fix indentation.
2035 * stap-probe.c: Fix indentation.
2036 * stubs/ia64vms-stub.c: Fix indentation.
2037 * stubs/m32r-stub.c: Fix indentation.
2038 * stubs/m68k-stub.c: Fix indentation.
2039 * stubs/sh-stub.c: Fix indentation.
2040 * stubs/sparc-stub.c: Fix indentation.
2041 * symfile-mem.c: Fix indentation.
2042 * symfile.c: Fix indentation.
2043 * symfile.h: Fix indentation.
2044 * symmisc.c: Fix indentation.
2045 * symtab.c: Fix indentation.
2046 * symtab.h: Fix indentation.
2047 * target-float.c: Fix indentation.
2048 * target.c: Fix indentation.
2049 * target.h: Fix indentation.
2050 * tic6x-tdep.c: Fix indentation.
2051 * tilegx-linux-tdep.c: Fix indentation.
2052 * tilegx-tdep.c: Fix indentation.
2053 * top.c: Fix indentation.
2054 * tracefile-tfile.c: Fix indentation.
2055 * tracepoint.c: Fix indentation.
2056 * tui/tui-disasm.c: Fix indentation.
2057 * tui/tui-io.c: Fix indentation.
2058 * tui/tui-regs.c: Fix indentation.
2059 * tui/tui-stack.c: Fix indentation.
2060 * tui/tui-win.c: Fix indentation.
2061 * tui/tui-winsource.c: Fix indentation.
2062 * tui/tui.c: Fix indentation.
2063 * typeprint.c: Fix indentation.
2064 * ui-out.h: Fix indentation.
2065 * unittests/copy_bitwise-selftests.c: Fix indentation.
2066 * unittests/memory-map-selftests.c: Fix indentation.
2067 * utils.c: Fix indentation.
2068 * v850-tdep.c: Fix indentation.
2069 * valarith.c: Fix indentation.
2070 * valops.c: Fix indentation.
2071 * valprint.c: Fix indentation.
2072 * valprint.h: Fix indentation.
2073 * value.c: Fix indentation.
2074 * value.h: Fix indentation.
2075 * varobj.c: Fix indentation.
2076 * vax-tdep.c: Fix indentation.
2077 * windows-nat.c: Fix indentation.
2078 * windows-tdep.c: Fix indentation.
2079 * xcoffread.c: Fix indentation.
2080 * xml-syscall.c: Fix indentation.
2081 * xml-tdesc.c: Fix indentation.
2082 * xstormy16-tdep.c: Fix indentation.
2083 * xtensa-config.c: Fix indentation.
2084 * xtensa-linux-nat.c: Fix indentation.
2085 * xtensa-linux-tdep.c: Fix indentation.
2086 * xtensa-tdep.c: Fix indentation.
2087
2088 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2089 Craig Blackmore <craig.blackmore@embecosm.com>
2090
2091 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2092 as an unsigned value.
2093
2094 2020-11-01 Tom Tromey <tom@tromey.com>
2095
2096 * dbxread.c (dbx_end_psymtab): Update.
2097 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2098 (build_type_psymtabs_reader): Update.
2099 * xcoffread.c (xcoff_end_psymtab): Update.
2100 * ctfread.c (scan_partial_symbols): Update.
2101 * psymtab.c (sort_pst_symbols): Remove.
2102 (partial_symtab::end): Rename from end_psymtab_common. Inline
2103 sort_pst_symbols.
2104 * psympriv.h (struct partial_symtab) <end>: New method.
2105 (end_psymtab_common): Don't declare.
2106
2107 2020-11-01 Tom Tromey <tom@tromey.com>
2108
2109 * symmisc.c (count_psyms): New function.
2110 (print_objfile_statistics): Use it.
2111 * psymtab.c (append_psymbol_to_list): Remove.
2112 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2113 * objfiles.h (struct objstats) <n_psyms>: Remove.
2114
2115 2020-11-01 Tom Tromey <tom@tromey.com>
2116
2117 * dbxread.c (dbx_end_psymtab): Update.
2118 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2119 (build_type_psymtabs_reader): Update.
2120 * xcoffread.c (xcoff_end_psymtab): Update.
2121 * ctfread.c (scan_partial_symbols): Update.
2122 * psympriv.h (end_psymtab_common): Update.
2123 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2124 (sort_pst_symbols): Likewise.
2125
2126 2020-11-01 Tom Tromey <tom@tromey.com>
2127
2128 * dbxread.c (dbx_symfile_read): Update.
2129 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2130 * xcoffread.c (xcoff_initial_scan): Update.
2131 * psympriv.h (init_psymbol_list): Don't declare.
2132 * psymtab.c (init_psymbol_list): Remove.
2133
2134 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2135
2136 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2137 gnat_encoded_fixed_type_info. Update all callers.
2138
2139 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2140
2141 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2142 line too long.
2143
2144 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2145
2146 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2147 cast_from_fixed. Update all callers.
2148 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2149 Update all callers.
2150 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2151 Update all callers.
2152 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2153 ada_scaling_factor.
2154 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2155 to print_gnat_encoded_fixed_point_type.
2156 * ada-valprint.c: Likewise.
2157
2158 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2161 (debug_prefixed_printf): Add check of debug_displaced flag.
2162 * linux-nat.c (linux_nat_debug_printf): Add check of
2163 debug_linux_nat flag.
2164
2165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * infrun.c (infrun_debug_printf_1): Remove.
2168 (displaced_debug_printf_1): Remove.
2169 (stop_all_threads): Use debug_prefixed_printf.
2170 * infrun.h (infrun_debug_printf_1): Remove.
2171 (infrun_debug_printf): Use debug_prefixed_printf.
2172 (displaced_debug_printf_1): Remove.
2173 (displaced_debug_printf): Use debug_prefixed_printf.
2174 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2175 (linux_nat_debug_printf): Use debug_prefixed_printf.
2176
2177 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * configure: Re-generate.
2180 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2181 AC_LANG_PROGRAM.
2182
2183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * configure: Re-generate.
2186
2187 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * configure: Re-generate.
2190
2191 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2192
2193 * configure: Re-generate.
2194
2195 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * configure: Re-generate.
2198
2199 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * acinclude.m4: Modernize.
2202 * configure: Re-generate.
2203
2204 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * configure.ac: Modernize.
2207 * configure: Re-generate.
2208
2209 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2212 * configure: Re-generate.
2213 * configure.ac: Remove AM_PROG_CC_STDC.
2214
2215 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2218 AC_CANONICAL_SYSTEM.
2219 * configure: Re-generate.
2220
2221 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2222
2223 * infrun.h (displaced_debug_printf): New macro. Replace
2224 displaced debug prints throughout to use it.
2225 (displaced_debug_printf_1): New declaration.
2226 (displaced_step_dump_bytes): Return string, remove ui_file
2227 parameter, update all callers.
2228 * infrun.c (displaced_debug_printf_1): New function.
2229 (displaced_step_dump_bytes): Return string, remove ui_file
2230 parameter
2231
2232 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2233
2234 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2235
2236 2020-10-30 Tom Tromey <tromey@adacore.com>
2237
2238 * Makefile.in (stamp-init): Depend on config.status.
2239
2240 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2241
2242 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2243
2244 2020-10-30 Pedro Alves <pedro@palves.net>
2245
2246 * thread.c (lookup_selected_frame): Move ...
2247 * frame.c (lookup_selected_frame): ... here.
2248
2249 2020-10-30 Pedro Alves <pedro@palves.net>
2250
2251 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2252 * frame.c
2253 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2254 Use save_selected_frame. Save language as well.
2255 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2256 Use restore_selected_frame, and restore language as well.
2257 (selected_frame_id, selected_frame_level): New.
2258 (selected_frame): Update comments.
2259 (save_selected_frame, restore_selected_frame): New.
2260 (get_selected_frame): Use lookup_selected_frame.
2261 (get_selected_frame_if_set): Delete.
2262 (select_frame): Record selected_frame_level and selected_frame_id.
2263 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2264 fields.
2265 (get_selected_frame): Make 'message' parameter optional.
2266 (get_selected_frame_if_set): Delete declaration.
2267 (select_frame): Update comments.
2268 (save_selected_frame, restore_selected_frame)
2269 (lookup_selected_frame): Declare.
2270 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2271 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2272 New field.
2273 (save_infcall_control_state): Use save_selected_frame.
2274 (restore_selected_frame): Delete.
2275 (restore_infcall_control_state): Use restore_selected_frame.
2276 * stack.c (select_frame_command_core, frame_command_core): Use
2277 get_selected_frame.
2278 * thread.c (restore_selected_frame): Rename to ...
2279 (lookup_selected_frame): ... this and make extern. Select the
2280 current frame if the frame level is -1.
2281 (scoped_restore_current_thread::restore): Also restore the
2282 language.
2283 (scoped_restore_current_thread::~scoped_restore_current_thread):
2284 Don't try/catch.
2285 (scoped_restore_current_thread::scoped_restore_current_thread):
2286 Save the language as well. Use save_selected_frame.
2287
2288 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2291 documentation.
2292 * gdbarch.h: Re-generate.
2293
2294 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2297 parameter.
2298 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2299 Likewise.
2300 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2301 Likewise.
2302 * arch-utils.c (default_displaced_step_hw_singlestep):
2303 Likewise.
2304 * arch-utils.h (default_displaced_step_hw_singlestep):
2305 Likewise.
2306 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2307 Likewise.
2308 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2309 Likewise.
2310 * gdbarch.c: Re-generate.
2311 * gdbarch.h: Re-generate.
2312 * infrun.c (resume_1): Adjust.
2313
2314 2020-10-29 Tom Tromey <tom@tromey.com>
2315
2316 * progspace.c (program_space::~program_space): Don't call
2317 exec_close.
2318
2319 2020-10-29 Tom Tromey <tom@tromey.com>
2320
2321 * exec.c (exec_target::close): Don't change current program
2322 space.
2323
2324 2020-10-29 Tom Tromey <tom@tromey.com>
2325
2326 * symfile.c (add_symbol_file_command): Update.
2327 * exec.c (program_space::add_target_sections): Rename.
2328 * symfile-mem.c (symbol_file_add_from_memory): Update.
2329 * progspace.h (struct program_space) <add_target_sections>:
2330 Declare new overload.
2331 * exec.h (add_target_sections_of_objfile): Don't declare.
2332
2333 2020-10-29 Tom Tromey <tom@tromey.com>
2334
2335 * solib.c (solib_map_sections): Update.
2336 * exec.c (program_space::add_target_sections): Now a method.
2337 (exec_file_attach): Update.
2338 * exec.h (add_target_sections): Don't declare.
2339 * progspace.h (struct program_space) <add_target_sections>:
2340 Declare.
2341
2342 2020-10-29 Tom Tromey <tom@tromey.com>
2343
2344 * progspace.h (struct program_space) <remove_target_sections>:
2345 Declare.
2346 * exec.c (program_space::remove_target_sections): Now a method.
2347 * exec.h (remove_target_sections): Don't declare.
2348
2349 2020-10-29 Tom Tromey <tom@tromey.com>
2350
2351 * inferior.c (delete_inferior): Update.
2352 * progspace.c (program_space::empty): Rename from
2353 program_space_empty_p. Return bool.
2354 * progspace.h (struct program_space) <empty>: New method.
2355 (program_space_empty_p): Don't declare.
2356
2357 2020-10-29 Tom Tromey <tom@tromey.com>
2358
2359 * progspace.c (program_space::~program_space): Don't call
2360 clear_program_space_solib_cache.
2361 (program_space::clear_solib_cache): Rename from
2362 clear_solib_cache.
2363 * solib.c (handle_solib_event): Update.
2364 * progspace.h (struct program_space) <clear_solib_cache>: New
2365 method.
2366 (clear_program_space_solib_cache): Don't declare.
2367
2368 2020-10-29 Tom Tromey <tom@tromey.com>
2369
2370 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2371 * target.c (info_target_command): Update.
2372 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2373 (symbol_file_clear, reread_symbols): Update.
2374 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2375 * stabsread.c (scan_file_globals): Update.
2376 * solib.c (update_solib_list): Update.
2377 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2378 (svr4_fetch_objfile_link_map, enable_break)
2379 (svr4_relocate_main_executable)
2380 (svr4_iterate_over_objfiles_in_search_order): Update.
2381 * solib-frv.c (lm_base, enable_break)
2382 (frv_relocate_main_executable): Update.
2383 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2384 (frv_fetch_objfile_link_map): Update.
2385 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2386 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2387 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2388 * remote.c (remote_target::get_offsets): Update.
2389 (remote_target::start_remote)
2390 (extended_remote_target::post_attach): Update.
2391 * objfiles.c (entry_point_address_query): Update.
2392 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2393 * minsyms.c (get_symbol_leading_char): Update.
2394 * frame.c (inside_main_func): Update.
2395 * progspace.h (symfile_objfile): Remove macro.
2396
2397 2020-10-29 Tom Tromey <tom@tromey.com>
2398
2399 * exec.c (exec_file_attach): Update.
2400 * progspace.c (program_space::exec_close): Update.
2401 * progspace.h (struct program_space) <ebfd>: Now a
2402 gdb_bfd_ref_ptr.
2403 <set_exec_bfd>: Change argument type.
2404 <exec_bfd>: Update.
2405
2406 2020-10-29 Tom Tromey <tom@tromey.com>
2407
2408 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2409 * symfile.c (reread_symbols): Update.
2410 * symfile-mem.c (add_symbol_file_from_memory_command)
2411 (add_vsyscall_page): Update.
2412 * source-cache.c (source_cache::get_plain_source_lines): Update.
2413 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2414 (svr4_current_sos_direct, svr4_exec_displacement)
2415 (svr4_relocate_main_executable): Update.
2416 (svr4_iterate_over_objfiles_in_search_order): Update.
2417 * solib-frv.c (enable_break2, enable_break): Update.
2418 * solib-dsbt.c (lm_base, enable_break): Update.
2419 * solib-darwin.c (find_program_interpreter)
2420 (darwin_solib_create_inferior_hook): Update.
2421 * sol-thread.c (rw_common, ps_pdmodel): Update.
2422 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2423 * remote.c (compare_sections_command)
2424 (remote_target::trace_set_readonly_regions): Update.
2425 * remote-sim.c (get_sim_inferior_data)
2426 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2427 (gdbsim_target_open, gdbsim_target::files_info): Update.
2428 * exec.h (exec_bfd): Remove macro.
2429 * progspace.c (initialize_progspace): Update.
2430 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2431 Update.
2432 * nto-procfs.c (nto_procfs_target::post_attach)
2433 (nto_procfs_target::create_inferior): Update.
2434 * maint.c (maintenance_info_sections): Update.
2435 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2436 Update.
2437 * infcmd.c (post_create_inferior): Update.
2438 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2439 (objfile_find_memory_regions): Update.
2440 * exec.c (validate_exec_file, exec_file_attach)
2441 (exec_read_partial_read_only, print_section_info): Update.
2442 * corelow.c (core_target_open): Update.
2443 * corefile.c (reopen_exec_file, validate_files): Update.
2444 * arm-tdep.c (gdb_print_insn_arm): Update.
2445 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2446 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2447 methods.
2448
2449 2020-10-29 Tom Tromey <tom@tromey.com>
2450
2451 * progspace.h (current_target_sections): Remove macro.
2452 * solib-svr4.c (scan_dyntag): Update.
2453 * solib-dsbt.c (scan_dyntag): Update.
2454 * exec.c (exec_target::close): Update.
2455 (add_target_sections, add_target_sections_of_objfile)
2456 (remove_target_sections, exec_target::get_section_table)
2457 (exec_target::files_info, set_section_command)
2458 (exec_set_section_address, exec_target::has_memory)
2459 (exec_target::has_memory): Update.
2460
2461 2020-10-29 Tom Tromey <tom@tromey.com>
2462
2463 * source-cache.c (source_cache::get_plain_source_lines): Use
2464 current_program_space.
2465 * corefile.c (reopen_exec_file): Use current_program_space.
2466 * exec.c (exec_file_attach): Use current_program_space.
2467 * exec.h (exec_bfd_mtime): Remove.
2468
2469 2020-10-29 Tom Tromey <tom@tromey.com>
2470
2471 * gcore.c (default_gcore_mach): Remove.
2472 (create_gcore_bfd): Update.
2473
2474 2020-10-29 Tom Tromey <tom@tromey.com>
2475
2476 * progspace.c (program_space::exec_close): New method, from
2477 exec_close in exec.c.
2478 * exec.c (exec_close): Move to progspace.c.
2479 (exec_target::close, exec_file_attach): Update.
2480 * progspace.h (struct program_space) <exec_close>: Declare
2481 method.
2482
2483 2020-10-29 Tom Tromey <tom@tromey.com>
2484
2485 * progspace.h (struct program_space) <exec_filename>: Rename from
2486 pspace_exec_filename. Now a unique_xmalloc_ptr.
2487 * inferior.c (print_selected_inferior): Update.
2488 (print_inferior): Update.
2489 * mi/mi-main.c (print_one_inferior): Update.
2490 * exec.h (exec_filename): Remove macro.
2491 * corefile.c (get_exec_file): Update.
2492 * exec.c (exec_close): Update.
2493 (exec_file_attach): Update.
2494 * progspace.c (clone_program_space): Update.
2495 (print_program_space): Update.
2496
2497 2020-10-29 Tom Tromey <tom@tromey.com>
2498
2499 * target-section.h (struct target_section): Add constructor.
2500 * exec.c (build_section_table, add_target_sections_of_objfile):
2501 Update.
2502 * corelow.c (core_target::build_file_mappings): Update.
2503
2504 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2505
2506 PR gdb/19318
2507 * inferior.c (detach_inferior_command): Restore the current thread.
2508 (kill_inferior_command): Ditto.
2509
2510 2020-10-28 Tom de Vries <tdevries@suse.de>
2511
2512 PR symtab/26772
2513 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2514 map, check it in the "best match" loop.
2515
2516 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * m32c-tdep.c: Remove unused includes.
2519
2520 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2521
2522 * xtensa-tdep.c: Remove includes.
2523
2524 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2525
2526 * breakpoint.c (struct condition_command_opts): New struct.
2527 (condition_command_option_defs): New static global.
2528 (make_condition_command_options_def_group): New function.
2529 (condition_completer): Update to consider the '-force' flag.
2530 (condition_command): Use gdb::option for the '-force' flag.
2531
2532 2020-10-27 Tom de Vries <tdevries@suse.de>
2533
2534 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2535 symbols in section check.
2536
2537 2020-10-27 Tom de Vries <tdevries@suse.de>
2538
2539 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2540
2541 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2542
2543 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2544 * breakpoint.c: Update the help text of the 'condition' and 'break'
2545 commands.
2546 (set_breakpoint_condition): Take a new bool parameter
2547 to control whether condition definition should be forced even when
2548 the condition expression is invalid in all of the current locations.
2549 (condition_command): Update the call to 'set_breakpoint_condition'.
2550 (find_condition_and_thread): Take the "-force-condition" flag into
2551 account.
2552 * linespec.c (linespec_keywords): Add "-force-condition" as an
2553 element.
2554 (FORCE_KEYWORD_INDEX): New #define.
2555 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2556 as a keyword.
2557 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2558 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2559 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2560 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2561
2562 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2563
2564 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2565 * breakpoint.c (set_breakpoint_location_condition): New function.
2566 (set_breakpoint_condition): Disable a breakpoint location if parsing
2567 the condition string gives an error.
2568 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2569 (build_target_condition_list): Ditto.
2570 (build_target_command_list): Ditto.
2571 (build_bpstat_chain): Ditto.
2572 (print_one_breakpoint_location): Ditto.
2573 (print_one_breakpoint): Ditto.
2574 (breakpoint_1): Ditto.
2575 (bp_location::bp_location): Ditto.
2576 (locations_are_equal): Ditto.
2577 (update_breakpoint_locations): Ditto.
2578 (enable_disable_bp_num_loc): Ditto.
2579 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2580 (find_condition_and_thread_for_sals): New static function.
2581 (create_breakpoint): Call find_condition_and_thread_for_sals.
2582 (location_to_sals): Call find_condition_and_thread_for_sals instead
2583 of find_condition_and_thread.
2584
2585 2020-10-26 Tom de Vries <tdevries@suse.de>
2586
2587 * dwarf2/read.c (process_full_comp_unit): Call
2588 dwarf2_find_base_address.
2589
2590 2020-10-26 Tom Tromey <tromey@adacore.com>
2591
2592 * gdbtypes.c (create_range_type): Revert previous patch. Add
2593 comment.
2594
2595 2020-10-26 Pedro Alves <pedro@palves.net>
2596
2597 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2598 (my_waitpid): Use gdb::handle_eintr.
2599
2600 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2601
2602 * acinclude.m4: Update ptrace.m4 path.
2603 * ptrace.m4: Moved to gdbsupport.
2604
2605 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2606
2607 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2608 instead of target_gdbarch.
2609
2610 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * jit.c (jit_reader_load_command): Pass current inferior.
2613 (jit_inferior_init): Change parameter type to inferior, use it.
2614 (jit_inferior_created): Remove.
2615 (jit_inferior_created_hook): Pass inferior parameter down.
2616 (_initialize_jit): Use jit_inferior_created_hook instead of
2617 jit_inferior_created.
2618 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2619 * infrun.c (follow_exec): Pass inferior to
2620 jit_inferior_created_hook.
2621
2622 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2625 parameter and use it.
2626 (thread_db_inferior_created): Pass inferior argument.
2627
2628 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * aix-thread.c (aix_thread_inferior_created): Add inferior
2631 parameter.
2632 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2633 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2634 * jit.c (jit_inferior_created): Likewise.
2635 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2636 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2637 * observable.h (inferior_created): Likewise.
2638 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2639 * symfile-mem.c (add_vsyscall_page): Likewise.
2640 * infcmd.c (post_create_inferior): Pass inferior argument.
2641
2642 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2643
2644 GDB 10.1 released.
2645
2646 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2647
2648 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2649 to ada_check_typedef.
2650
2651 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * f-exp.y (f_parse): Rename to...
2654 (f_language::parser): ...this.
2655 * f-lang.c (f_get_encoding): Rename to...
2656 (f_language::get_encoding): ...this.
2657 (f_op_print_tab): Rename to...
2658 (f_language::op_print_tab): ...this.
2659 (exp_descriptor_f): Rename to...
2660 (f_language::exp_descriptor_tab): ...this.
2661 (class f_language): Moved to f-lang.h.
2662 (f_language::language_arch_info): New function, moved out of class
2663 declaration.
2664 (f_language::search_name_hash): Likewise.
2665 (f_language::lookup_symbol_nonlocal): Likewise.
2666 (f_language::get_symbol_name_matcher_inner): Likewise.
2667 * f-lang.h: Add 'valprint.h' include.
2668 (class f_language): Moved here from f-lang.c.
2669 * f-typeprint.c (f_type_print_args): Delete commented out
2670 declaration.
2671 (f_print_typedef): Rename to...
2672 (f_language::print_typedef): ...this.
2673 (f_print_type): Rename to...
2674 (f_language::print_type): ...this.
2675 (f_type_print_varspec_prefix): Delete declaration and rename to...
2676 (f_language::f_type_print_varspec_prefix): ...this.
2677 (f_type_print_varspec_suffix): Delete declaration and rename to...
2678 (f_language::f_type_print_varspec_suffix): ...this.
2679 (f_type_print_base): Delete declaration and rename to...
2680 (f_language::f_type_print_base): ...this.
2681 * f-valprint.c (f_value_print_inner): Rename to...
2682 (f_language::value_print_inner): ...this.
2683 * parse.c: Delete 'f-lang.h' include.
2684
2685 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2686
2687 * language.h (language_defn::print_type): Add variable names in
2688 declaration, and update header comment.
2689
2690 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2691
2692 * ada-lang.c (ada_language::demangle): Rename to...
2693 (ada_language::demangle_symbol): ...this.
2694 * c-lang.c (cplus_language::demangle): Rename to...
2695 (cplus_language::demangle_symbol): ...this.
2696 * d-lang.c (d_language::demangle): Rename to...
2697 (d_language::demangle_symbol): ...this.
2698 * f-lang.c (f_language::demangle): Rename to...
2699 (f_language::demangle_symbol): ...this.
2700 * go-lang.c (go_language::demangle): Rename to...
2701 (go_language::demangle_symbol): ...this.
2702 * language.c (language_demangle): Update call to demangle_symbol.
2703 (auto_or_unknown_language::demangle): Rename to...
2704 (auto_or_unknown_language::demangle_symbol): ...this.
2705 * language.h (language_defn::demangle): Rename to...
2706 (language_defn::demangle_symbol): ...this.
2707 * objc-lang.c (objc_language::demangle): Rename to...
2708 (objc_language::demangle_symbol): ...this.
2709 * rust-lang.c (rust_language::demangle): Rename to...
2710 (rust_language::demangle_symbol): ...this.
2711
2712 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2715 (iterate_over_file_blocks): Replace use of macro with the macros
2716 definition.
2717
2718 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2721 * valprint.c (maybe_print_array_index): Replace use of macro with
2722 the macros definition.
2723
2724 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * ada-lang.c (ada_language::print_array_index): Call value_print
2727 directly.
2728 * language.c (language_defn::print_array_index): Likewise.
2729 * language.h (LA_VALUE_PRINT): Delete.
2730 * valprint.c (value_print): Call value_print on the
2731 current_language directly.
2732
2733 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * language.h (LA_PRINT_TYPEDEF): Delete.
2736 * typeprint.c (typedef_print): Call print_typedef directly on the
2737 current_language object.
2738
2739 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * m2-exp.y (m2_parse): Rename to...
2742 (m2_language::parser): ...this. Update function signature.
2743 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2744 (m2_op_print): Rename to...
2745 (m2_language::op_print_tab): ...this, and make const.
2746 (exp_descriptor_modula2): Rename to...
2747 (m2_language::exp_descriptor_modula2): ...this.
2748 (class m2_language): Move to m2-lang.h.
2749 (m2_language::language_arch_info): New function, moved out of
2750 class declaration.
2751 (m2_language::printchar): New function, body from m2_printchar.
2752 (m2_language::printstr): New function, moved out of class
2753 declaration.
2754 (m2_language::emitchar): Likewise.
2755 * m2-lang.h (m2_parse): Delete declaration.
2756 (m2_print_typedef): Delete declaration.
2757 (m2_value_print_inner): Delete declaration.
2758 (class m2_language): Class declaration moved from m2-lang.c,
2759 larger functions are left in m2-lang.c.
2760 * m2-typeprint.c (m2_print_typedef): Rename to...
2761 (m2_language::print_typedef): ...this, and update function
2762 signature.
2763 * m2-valprint.c (m2_value_print_inner): Rename to...
2764 (m2_language::value_print_inner): ...this, replace use of
2765 LA_PRINT_STRING with a direct call to printstr member function,
2766 and update recursive call.
2767
2768 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * language.c (default_is_string_type_p): Delete, implementation
2771 moved into auto_or_unknown_language::is_string_type_p.
2772 (unk_op_print_tab): Moved into
2773 auto_or_unknown_language::opcode_print_table.
2774 (unknown_language_arch_info): Delete, implementation moved into
2775 auto_or_unknown_language::language_arch_info.
2776 (class auto_or_unknown_language): New class, member functions
2777 copied from unknown_language class, with some updates.
2778 (class unknown_language): Most member functions moved into
2779 auto_or_unknown_language class. Inherit from
2780 auto_or_unknown_language class.
2781 (class auto_language): Inherit from auto_or_unknown_language.
2782 Delete most member functions.
2783
2784 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2785
2786 * stabsread.c (read_member_functions): Remove gdb_assert.
2787
2788 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2789
2790 * gdbtypes.c (init_complex_type): Check target type name.
2791
2792 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * target-debug.h (target_debug_print_struct_target_ops_p):
2795 Remove.
2796 (target_debug_print_async_callback_ftype_p): Remove.
2797 (target_debug_print_struct_trace_state_variable_p): Remove.
2798 (target_debug_print_struct_traceframe_info_p): Remove.
2799 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2800 (target_debug_print_enum_btrace_format): Remove.
2801 (target_debug_print_enum_info_proc_what): Remove.
2802 (target_debug_print_thread_info_pp): Remove.
2803
2804 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * target.h (struct target_ops) <make_corefile_notes>:
2807 Change return type to unique pointer.
2808 * target.c (dummy_make_corefile_notes): Likewise.
2809 * exec.c (struct exec_target) <make_corefile_notes>:
2810 Likewise.
2811 (exec_target::make_corefile_notes): Likewise.
2812 * procfs.c (class procfs_target) <make_corefile_notes>:
2813 Likewise.
2814 (procfs_do_thread_registers): Adjust to unique pointer.
2815 (struct procfs_corefile_thread_data): Add constructor.
2816 <note_data>: Change type to unique pointer.
2817 (procfs_corefile_thread_callback): Adjust to unique pointer.
2818 (procfs_target::make_corefile_notes): Change return type to
2819 unique pointer.
2820 * target-delegates.c: Re-generate.
2821 * gcore.c (write_gcore_file_1): Adjust.
2822 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2823 New.
2824
2825 2020-10-22 Tom de Vries <tdevries@suse.de>
2826
2827 * block.c (find_block_in_blockvector): Make sure the returned block
2828 contains pc.
2829
2830 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 PR gdb/26693
2833 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2834 parameter.
2835 (load_cu): Pass existing CU.
2836 (process_imported_unit_die): Likewise.
2837 (follow_die_offset): Likewise.
2838
2839 2020-10-22 Luis Machado <luis.machado@linaro.org>
2840
2841 * corelow.c (core_target::xfer_partial): Also check for an empty
2842 m_core_unavailable_mappings vector.
2843
2844 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2847 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2848 * f-exp.y (arglist): Allow for a series of subranges.
2849 (subrange): Add cases for subranges with strides.
2850 * f-lang.c (value_f90_subarray): Catch use of array strides and
2851 throw an error.
2852 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2853
2854 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * expprint.c (print_subexp_standard): Change enum range_type to
2857 range_flag and rename variables to match.
2858 (dump_subexp_body_standard): Likewise.
2859 * expression.h (enum range_type): Rename to...
2860 (enum range_flag): ...this.
2861 (range_types): Rename to...
2862 (range_flags): ...this.
2863 * f-lang.c (value_f90_subarray): Change enum range_type to
2864 range_flag and rename variables to match.
2865 * parse.c (operator_length_standard): Likewise.
2866 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2867 range_type to range_flag.
2868 * rust-lang.c (rust_evaluate_funcall): Likewise.
2869 (rust_range): Likewise.
2870 (rust_compute_range): Likewise.
2871 (rust_subscript): Likewise.
2872
2873 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * expprint.c (print_subexp_standard): Update to reflect changes to
2876 enum range_type.
2877 (dump_subexp_body_standard): Likewise.
2878 * expression.h (enum range_type): Convert to a bit field enum, and
2879 make the enum unsigned.
2880 * f-exp.y (subrange): Update to reflect changes to enum
2881 range_type.
2882 * f-lang.c (value_f90_subarray): Likewise.
2883 * parse.c (operator_length_standard): Likewise.
2884 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2885 * rust-lang.c (rust_range): Likewise.
2886 (rust_compute_range): Likewise.
2887 (rust_subscript): Likewise.
2888
2889 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2892 (displaced_step_in_progress): Fix comment.
2893
2894 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2895
2896 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2897 * gdbarch.c: Re-generate.
2898 * gdbarch.h: Re-generate.
2899 * gcore.c (write_gcore_file_1): Adjust.
2900 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2901 constructor.
2902 <note_data>: Change type to unique pointer.
2903 <abort_iteration>: Change type to bool.
2904 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2905 (fbsd_collect_thread_registers): Return void, adjust.
2906 (struct fbsd_corefile_thread_data): Add construtor.
2907 <note_data>: Change type to unique pointer.
2908 (fbsd_corefile_thread): Adjust.
2909 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2910 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2911 to unique pointer, adjust.
2912 (struct linux_collect_regset_section_cb_data): Add constructor.
2913 <note_data>: Change type to unique pointer.
2914 <abort_iteration>: Change type to bool.
2915 (linux_collect_thread_registers): Return void, adjust.
2916 (struct linux_corefile_thread_data): Add constructor.
2917 <note_data>: Change type to unique pointer.
2918 (linux_corefile_thread): Adjust.
2919 (linux_make_corefile_notes): Return unique pointer, adjust.
2920
2921 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2924 * gdbarch.c: Re-generate.
2925 * gdbarch.h: Re-generate.
2926 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2927 bool.
2928 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2929 Likewise.
2930 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2931 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2932 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2933 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2934
2935 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * gdbarch.sh: Make generated predicates return bool.
2938 * gdbarch.c: Re-generate.
2939 * gdbarch.h: Re-generate.
2940
2941 2020-10-20 Tom Tromey <tom@tromey.com>
2942
2943 * varobj-iter.h (struct varobj_item): Remove typedef.
2944
2945 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * infrun.c (currently_stepping): Change int to bool
2948 (maybe_software_singlestep): Likewise.
2949 (show_stop_on_solib_events): Likewise.
2950 (stepping_past_nonsteppable_watchpoint): Likewise.
2951 (displaced_step_in_progress_any_inferior): Likewise.
2952 (displaced_step_in_progress_thread): Likewise.
2953 (keep_going_stepped_thread): Likewise.
2954 (thread_still_needs_step_over): Likewise.
2955 (start_step_over): Likewise.
2956 (do_target_resume): Likewise.
2957 (resume_1): Likewise.
2958 (clear_proceed_status): Likewise.
2959 (thread_still_needs_step_over_bp): Likewise.
2960 (proceed): Likewise.
2961 (switch_back_to_stepped_thread): Likewise.
2962 (adjust_pc_after_break): Likewise.
2963 (stepped_in_from): Likewise.
2964 (handle_stop_requested): Likewise.
2965 (handle_syscall_event): Likewise.
2966 (handle_no_resumed): Likewise.
2967 (handle_inferior_event): Likewise.
2968 (finish_step_over): Likewise.
2969 (handle_signal_stop): Likewise.
2970 (process_event_stop_test): Likewise.
2971
2972 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2973
2974 * infrun.c (get_displaced_stepping_state): Fix comment.
2975
2976 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2977
2978 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2979
2980 2020-10-19 Tom Tromey <tromey@adacore.com>
2981
2982 PR tui/26719
2983 * tui/tui-winsource.h (struct tui_source_window_base)
2984 <refresh_window>: Rename from refresh_pad.
2985 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2986 Rename from refresh_pad.
2987 (tui_source_window_base::show_source_content)
2988 (tui_source_window_base::do_scroll_horizontal): Update.
2989
2990 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2991
2992 * thread.c (_initialize_thread): Fine-tune the help text of
2993 'info threads'.
2994
2995 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996
2997 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2998
2999 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3000
3001 * breakpoint.c (handle_jit_event): Add an argument, change how
3002 `jit_event_handler` is called.
3003
3004 2020-10-17 Tom Tromey <tom@tromey.com>
3005
3006 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3007 (scan_xcoff_symtab): Update.
3008 * psymtab.h (class psymtab_storage) <global_psymbols,
3009 static_psymbols, current_global_psymbols,
3010 current_static_psymbols>: Remove.
3011 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3012 (match_partial_symbol, lookup_partial_symbol): Update.
3013 (print_partial_symbols): Change parameters.
3014 (dump_psymtab, recursively_search_psymtabs)
3015 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3016 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3017 (concat): Remove.
3018 (end_psymtab_common): Simplify.
3019 (append_psymbol_to_list): Change parameters.
3020 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3021 (init_psymbol_list): Simplify.
3022 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3023 * psympriv.h (struct partial_symtab) <empty>: New method.
3024 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3025 Remove.
3026 <global_psymbols, static_psymbols>: New members.
3027 <add_psymbol>: New methods.
3028 (add_psymbol_to_list): Don't declare.
3029 (psymbol_placement): Move earlier.
3030 * mdebugread.c (parse_partial_symbols): Update.
3031 (handle_psymbol_enumerators): Change parameters.
3032 (mdebug_expand_psymtab): Update.
3033 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3034 (add_partial_symbol): Update.
3035 * dwarf2/index-write.c (write_psymbols): Change parameters.
3036 (write_one_signatured_type): Update.
3037 (recursively_count_psymbols): Update.
3038 (recursively_write_psymbols): Update.
3039 (class debug_names) <recursively_write_psymbols>: Update.
3040 <write_psymbols>: Change parameters.
3041 <write_one_signatured_type>: Update.
3042 * dbxread.c (read_dbx_symtab): Update.
3043 (dbx_end_psymtab): Use partial_symtab::empty.
3044 * ctfread.c (struct ctf_context) <pst>: New member.
3045 (create_partial_symtab): Set it.
3046 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3047 (scan_partial_symbols): Use the psymtab's context. Update.
3048
3049 2020-10-17 Tom Tromey <tom@tromey.com>
3050
3051 * valprint.c (generic_value_print): Remove comment.
3052 * m2-valprint.c (m2_value_print_inner): Remove comment.
3053 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3054 type.
3055
3056 2020-10-17 Tom de Vries <tdevries@suse.de>
3057
3058 PR symtab/26317
3059 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3060 symbol main.
3061
3062 2020-10-14 Tom de Vries <tdevries@suse.de>
3063
3064 PR gdb/26733
3065 * solib.c (solib_contains_address_p): Handle
3066 'solib->sections == nullptr'.
3067
3068 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 PR gdb/26642
3071 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3072 target can't do async.
3073 * target.c (target_wait): Assert that we don't pass
3074 TARGET_WNOHANG to a target that can't async.
3075
3076 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3077
3078 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3079 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3080 * alpha-bsd-nat.c: Adjust include.
3081 * alpha-bsd-tdep.h: Adjust comment.
3082 * alpha-nbsd-tdep.c: Rename to ...
3083 * alpha-netbsd-tdep.c: ... this, adjust include.
3084 * amd64-nbsd-nat.c: Rename to ...
3085 * amd64-netbsd-nat.c: ... this, adjust include.
3086 * amd64-nbsd-tdep.c: Rename to ...
3087 * amd64-netbsd-tdep.c: ... this, adjust include.
3088 * amd64-tdep.h: Adjust include.
3089 * arm-nbsd-nat.c: Rename to ...
3090 * arm-netbsd-nat.c: ... this, adjust include.
3091 * arm-nbsd-tdep.c: Rename to ...
3092 * arm-netbsd-tdep.c: ... this, adjust include.
3093 * arm-nbsd-tdep.h: Rename to ...
3094 * arm-netbsd-tdep.h: ... this, adjust include.
3095 * configure.nat: Adjust file lists.
3096 * configure.tgt: Likewise.
3097 * hppa-nbsd-nat.c: Rename to ...
3098 * hppa-netbsd-nat.c: ... this, adjust include.
3099 * hppa-nbsd-tdep.c: Rename to ...
3100 * hppa-netbsd-tdep.c: ... this, adjust include.
3101 * i386-nbsd-nat.c: Rename to ...
3102 * i386-netbsd-nat.c: ... this, adjust include.
3103 * i386-nbsd-tdep.c: Rename to ...
3104 * i386-netbsd-tdep.c: ... this, adjust include.
3105 * m68k-bsd-nat.c: Adjust include.
3106 * mips-nbsd-nat.c: Rename to ...
3107 * mips-netbsd-nat.c: ... this, adjust include.
3108 * mips-nbsd-tdep.c: Rename to ...
3109 * mips-netbsd-tdep.c: ... this, adjust include.
3110 * mips-nbsd-tdep.h: Rename to ...
3111 * mips-netbsd-tdep.h: ... this.
3112 * nbsd-nat.c: Rename to ...
3113 * netbsd-nat.c: ... this, adjust include.
3114 * nbsd-nat.h: Rename to ...
3115 * netbsd-nat.h: ... this, adjust include.
3116 * nbsd-tdep.c: Rename to ...
3117 * netbsd-tdep.c: ... this, adjust include.
3118 * nbsd-tdep.h: Rename to ...
3119 * netbsd-tdep.h: ... this.
3120 * ppc-nbsd-nat.c: Rename to ...
3121 * ppc-netbsd-nat.c: ... this, adjust include.
3122 * ppc-nbsd-tdep.c: Rename to ...
3123 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3124 * ppc-nbsd-tdep.h: Rename to ...
3125 * ppc-netbsd-tdep.h: ... this.
3126 * sh-nbsd-nat.c: Rename to ...
3127 * sh-netbsd-nat.c: ... this, adjust include.
3128 * sh-nbsd-tdep.c: Rename to ...
3129 * sh-netbsd-tdep.c: ... this, adjust include.
3130 * sparc-nbsd-nat.c: Rename to ...
3131 * sparc-netbsd-nat.c: ... this.
3132 * sparc-nbsd-tdep.c: Rename to ...
3133 * sparc-netbsd-tdep.c: ... this, adjust include.
3134 * sparc64-nbsd-nat.c: Rename to ...
3135 * sparc64-netbsd-nat.c: ... this.
3136 * sparc64-nbsd-tdep.c: Rename to ...
3137 * sparc64-netbsd-tdep.c: ... this, adjust include.
3138 * sparc64-tdep.h: Adjust comment.
3139 * vax-bsd-nat.c: Adjust include.
3140 * vax-nbsd-tdep.c: Rename to ...
3141 * vax-netbsd-tdep.c: ... this, adjust include.
3142
3143 2020-10-12 Tom Tromey <tom@tromey.com>
3144
3145 * target.h (struct target_ops) <get_section_table>: Update.
3146 (target_get_section_table): Update.
3147 * target.c (target_get_section_table, target_section_by_addr)
3148 (memory_xfer_partial_1): Update.
3149 * target-section.h (target_section_table): Now an alias.
3150 * target-delegates.c: Rebuild.
3151 * target-debug.h (target_debug_print_target_section_table_p):
3152 Rename from target_debug_print_struct_target_section_table_p.
3153 * symfile.c (build_section_addr_info_from_section_table): Update.
3154 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3155 * solib-svr4.c (scan_dyntag): Update.
3156 * solib-dsbt.c (scan_dyntag): Update.
3157 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3158 Update.
3159 * record-full.c (record_full_core_target::xfer_partial): Update.
3160 * progspace.h (struct program_space) <target_sections>: Update.
3161 * exec.h (print_section_info): Update.
3162 * exec.c (exec_target::close, build_section_table)
3163 (add_target_sections, add_target_sections_of_objfile)
3164 (remove_target_sections, exec_on_vfork)
3165 (section_table_available_memory)
3166 (section_table_xfer_memory_partial)
3167 (exec_target::get_section_table, exec_target::xfer_partial)
3168 (print_section_info, set_section_command)
3169 (exec_set_section_address, exec_target::has_memory): Update.
3170 * corelow.c (core_target::build_file_mappings)
3171 (core_target::xfer_partial, core_target::info_proc_mappings)
3172 (core_target::info_proc_mappings): Update.
3173 * bfd-target.c (class target_bfd): Update
3174
3175 2020-10-12 Tom Tromey <tom@tromey.com>
3176
3177 * progspace.c (program_space::~program_space): Don't call
3178 clear_section_table.
3179 * exec.h (clear_section_table): Don't declare.
3180 * exec.c (exec_target::close): Update.
3181 (clear_section_table): Remove.
3182
3183 2020-10-12 Tom Tromey <tom@tromey.com>
3184
3185 * exec.c (add_target_sections_of_objfile): Simplify.
3186
3187 2020-10-12 Tom Tromey <tom@tromey.com>
3188
3189 * solib.c (solib_map_sections): Update.
3190 * record-full.c (record_full_core_open_1): Update.
3191 * exec.h (build_section_table): Return a target_section_table.
3192 * exec.c (exec_file_attach): Update.
3193 (build_section_table): Return a target_section_table.
3194 * corelow.c (core_target::core_target): Update.
3195 * bfd-target.c (target_bfd::target_bfd): Update.
3196
3197 2020-10-12 Tom Tromey <tom@tromey.com>
3198
3199 * target.c (target_section_by_addr, memory_xfer_partial_1):
3200 Update.
3201 * target-section.h (struct target_section_table): Use
3202 std::vector.
3203 * symfile.h (build_section_addr_info_from_section_table): Take a
3204 target_section_table.
3205 * symfile.c (build_section_addr_info_from_section_table): Take a
3206 target_section_table.
3207 * solist.h (struct so_list) <sections>: Change type.
3208 <sections_end>: Remove.
3209 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3210 (solib_contains_address_p): Update.
3211 * solib-svr4.c (scan_dyntag): Update.
3212 * solib-dsbt.c (scan_dyntag): Update.
3213 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3214 Update.
3215 * record-full.c (record_full_core_start, record_full_core_end):
3216 Remove.
3217 (record_full_core_sections): New global.
3218 (record_full_core_open_1, record_full_core_target::xfer_partial):
3219 Update.
3220 * exec.h (build_section_table, section_table_xfer_memory_partial)
3221 (add_target_sections): Take a target_section_table.
3222 * exec.c (exec_file_attach, clear_section_table): Update.
3223 (resize_section_table): Remove.
3224 (build_section_table, add_target_sections): Take a
3225 target_section_table.
3226 (add_target_sections_of_objfile, remove_target_sections)
3227 (exec_on_vfork): Update.
3228 (section_table_available_memory): Take a target_section_table.
3229 (section_table_read_available_memory): Update.
3230 (section_table_xfer_memory_partial): Take a target_section_table.
3231 (print_section_info, set_section_command)
3232 (exec_set_section_address, exec_target::has_memory): Update.
3233 * corelow.c (class core_target) <m_core_section_table,
3234 m_core_file_mappings>: Remove braces.
3235 <~core_target>: Remove.
3236 (core_target::core_target): Update.
3237 (core_target::~core_target): Remove.
3238 (core_target::build_file_mappings)
3239 (core_target::xfer_memory_via_mappings)
3240 (core_target::xfer_partial, core_target::info_proc_mappings):
3241 Update.
3242 * bfd-target.c (target_bfd::xfer_partial): Update.
3243 (target_bfd::target_bfd): Update.
3244 (target_bfd::~target_bfd): Remove.
3245
3246 2020-10-12 Tom Tromey <tom@tromey.com>
3247
3248 * target.h (struct target_section, struct target_section_table):
3249 Move to target-section.h.
3250 * target-section.h: New file.
3251
3252 2020-10-12 Pedro Alves <pedro@palves.net>
3253
3254 PR exp/26602
3255 * valops.c (struct struct_field_searcher): New.
3256 (update_search_result): Rename to ...
3257 (struct_field_searcher::update_result): ... this. Simplify
3258 prototype. Record all found fields.
3259 (do_search_struct_field): Rename to ...
3260 (struct_field_searcher::search): ... this. Simplify prototype.
3261 Maintain stack of visited baseclass path. Call update_result for
3262 fields too. Keep searching fields in baseclasses instead of
3263 stopping at the first found field.
3264 (search_struct_field): Use struct_field_searcher. When looking
3265 for fields, report ambiguous access attempts.
3266
3267 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * frame.c (inside_main_func): Check full symbols as well as
3270 minimal symbols.
3271
3272 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3273
3274 * ada-lang.c (advance_wild_match): Rewrite the function's
3275 description. Change the type of target0, t0 and t1 to char.
3276
3277 2020-10-09 Tom Tromey <tromey@adacore.com>
3278
3279 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3280
3281 2020-10-09 Tom Tromey <tromey@adacore.com>
3282
3283 * ada-lang.h (ada_encode): Return std::string.
3284 * ada-lang.c (ada_encode_1): Return std::string.
3285 (ada_encode): Likewise.
3286 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3287 Update.
3288 * ada-exp.y (block_lookup, write_var_or_type): Update.
3289
3290 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3291
3292 PR exp/26714
3293 * printcmd.c (print_formatted): Handle void results as
3294 unformatted prints.
3295
3296 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * arch/aarch32.c (aarch32_create_target_description): Release the
3299 target_desc_up as late as possible.
3300 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3301 * arch/amd64.c (amd64_create_target_description): Likewise.
3302 * arch/arc.c (arc_create_target_description): Return a
3303 target_desc_up, don't release it.
3304 * arch/arc.h (arc_create_target_description): Update declaration.
3305 (arc_lookup_target_description): Move target_desc_up into the
3306 cache, and return a borrowed pointer.
3307 * arch/arm.c (arm_create_target_description): Release the
3308 target_desc_up as late as possible.
3309 * arch/i386.c (i386_create_target_description): Likewise.
3310 * arch/riscv.h (riscv_create_target_description): Update
3311 declaration to match definition.
3312 * arch/tic6x.c (tic6x_create_target_description): Release the
3313 target_desc_up as late as possible.
3314
3315 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3318 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3319
3320 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3321
3322 * source.c (directory_command): Notify observers that "directories"
3323 parameter has changed.
3324
3325 2020-10-08 Tom Tromey <tom@tromey.com>
3326
3327 * cli/cli-cmds.c (print_disassembly): Style function name and
3328 addresses. Add _() wrappers.
3329
3330 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3331
3332 * NEWS: Mention ARC support in GDBserver.
3333
3334 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * arch/aarch32.c (aarch32_create_target_description): Release
3337 unique_ptr returned from allocate_target_description.
3338 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3339 * arch/amd64.c (amd64_create_target_description): Likewise.
3340 * arch/arc.c (arc_create_target_description): Likewise.
3341 * arch/arm.c (arm_create_target_description): Likewise.
3342 * arch/i386.c (i386_create_target_description): Likewise.
3343 * arch/riscv.c (riscv_create_target_description): Update return
3344 type. Handle allocate_target_description returning a unique_ptr.
3345 (riscv_lookup_target_description): Update to handle unique_ptr.
3346 * arch/tic6x.c (tic6x_create_target_description): Release
3347 unique_ptr returned from allocate_target_description.
3348 * features/microblaze-with-stack-protect.c: Regenerate.
3349 * features/microblaze.c: Regenerate.
3350 * features/mips-dsp-linux.c: Regenerate.
3351 * features/mips-linux.c: Regenerate.
3352 * features/mips64-dsp-linux.c: Regenerate.
3353 * features/mips64-linux.c: Regenerate.
3354 * features/nds32.c: Regenerate.
3355 * features/nios2.c: Regenerate.
3356 * features/or1k.c: Regenerate.
3357 * features/rs6000/powerpc-32.c: Regenerate.
3358 * features/rs6000/powerpc-32l.c: Regenerate.
3359 * features/rs6000/powerpc-403.c: Regenerate.
3360 * features/rs6000/powerpc-403gc.c: Regenerate.
3361 * features/rs6000/powerpc-405.c: Regenerate.
3362 * features/rs6000/powerpc-505.c: Regenerate.
3363 * features/rs6000/powerpc-601.c: Regenerate.
3364 * features/rs6000/powerpc-602.c: Regenerate.
3365 * features/rs6000/powerpc-603.c: Regenerate.
3366 * features/rs6000/powerpc-604.c: Regenerate.
3367 * features/rs6000/powerpc-64.c: Regenerate.
3368 * features/rs6000/powerpc-64l.c: Regenerate.
3369 * features/rs6000/powerpc-7400.c: Regenerate.
3370 * features/rs6000/powerpc-750.c: Regenerate.
3371 * features/rs6000/powerpc-860.c: Regenerate.
3372 * features/rs6000/powerpc-altivec32.c: Regenerate.
3373 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3374 * features/rs6000/powerpc-altivec64.c: Regenerate.
3375 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3376 * features/rs6000/powerpc-e500.c: Regenerate.
3377 * features/rs6000/powerpc-e500l.c: Regenerate.
3378 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3379 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3380 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3381 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3382 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3383 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3384 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3385 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3386 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3387 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3388 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3389 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3390 * features/rs6000/powerpc-vsx32.c: Regenerate.
3391 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3392 * features/rs6000/powerpc-vsx64.c: Regenerate.
3393 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3394 * features/rs6000/rs6000.c: Regenerate.
3395 * features/rx.c: Regenerate.
3396 * features/s390-gs-linux64.c: Regenerate.
3397 * features/s390-linux32.c: Regenerate.
3398 * features/s390-linux32v1.c: Regenerate.
3399 * features/s390-linux32v2.c: Regenerate.
3400 * features/s390-linux64.c: Regenerate.
3401 * features/s390-linux64v1.c: Regenerate.
3402 * features/s390-linux64v2.c: Regenerate.
3403 * features/s390-te-linux64.c: Regenerate.
3404 * features/s390-tevx-linux64.c: Regenerate.
3405 * features/s390-vx-linux64.c: Regenerate.
3406 * features/s390x-gs-linux64.c: Regenerate.
3407 * features/s390x-linux64.c: Regenerate.
3408 * features/s390x-linux64v1.c: Regenerate.
3409 * features/s390x-linux64v2.c: Regenerate.
3410 * features/s390x-te-linux64.c: Regenerate.
3411 * features/s390x-tevx-linux64.c: Regenerate.
3412 * features/s390x-vx-linux64.c: Regenerate.
3413 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3414 from allocate_target_description.
3415 * target-descriptions.c (allocate_target_description): Update
3416 return type.
3417 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3418 allocate_target_description.
3419
3420 2020-10-07 Tom Tromey <tromey@adacore.com>
3421
3422 * unittests/search-memory-selftests.c: New file.
3423 * Makefile.in (SELFTESTS_SRCS): Add
3424 unittests/search-memory-selftests.c.
3425
3426 2020-10-07 Tom Tromey <tromey@adacore.com>
3427
3428 PR gdb/16930:
3429 * findcmd.c (_initialize_mem_search): Mention that the range is
3430 inclusive.
3431
3432 2020-10-07 Tom Tromey <tromey@adacore.com>
3433
3434 * target.h (simple_search_memory): Don't declare.
3435 * target.c (simple_search_memory): Move to gdbsupport.
3436 (default_search_memory): Update.
3437 * remote.c (remote_target::search_memory): Update.
3438
3439 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * Makefile.in (COMPILE): Add CXXFLAGS.
3442 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3443 (check-headers): Add CXXFLAGS.
3444
3445 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3446
3447 * arc-linux-tdep.h: New file.
3448 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3449 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3450 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3451 arc_linux_gregset, arc_linux_v2_regset,
3452 arc_linux_iterate_over_regset_sections,
3453 arc_linux_core_read_description): Implement.
3454 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3455 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3456 (arc_gdbarch_features_create): Add.
3457 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3458
3459 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3460
3461 * arch/arc.h: Rename "arc_gdbarch_features" to
3462 "arc_arch_features".
3463 * arc-tdep.h: Likewise.
3464 * arc-tdep.c: Likewise.
3465
3466 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467
3468 * infcmd.c (attach_command): Remove the redundant call to
3469 `clear_proceed_status`.
3470
3471 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3472
3473 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3474
3475 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3476
3477 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3478 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3479 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3480
3481 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3484 (_initialize_break_catch_sig): Don't allocate array.
3485
3486 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * symtab.c (find_pc_line): Return unmapped addresses when the
3489 requested address is also unmapped.
3490
3491 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3494 tui/tui-out.h.
3495
3496 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3499 type::is_vector instead of TYPE_VECTOR.
3500
3501 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * auto-load.c (auto_load_objfile_script_1): Don't use
3504 debugfile_holder as temporary variable when stripping drive
3505 letter.
3506
3507 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3508
3509 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3510 Add TYPE_CODE_COMPLEX.
3511 (amd64_windows_return_value): Fix types returned via XMM0.
3512
3513 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3514
3515 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3516 AArch64/ARM maintainers.
3517
3518 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * NEWS: Mention set/show debug event-loop.
3521
3522 2020-10-02 Tom Tromey <tromey@adacore.com>
3523
3524 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3525 REG_EXTENDED.
3526
3527 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3530 * procfs.c (procfs_inferior_created): Remove.
3531 (_initialize_procfs): Don't register procfs_inferior_created.
3532
3533 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3534
3535 * async-event.c (invoke_async_signal_handlers): Add debug
3536 print.
3537 (check_async_event_handlers): Likewise.
3538 * event-top.c (show_debug_event_loop): New function.
3539 (_initialize_event_top): Register "set debug event-loop"
3540 setting.
3541
3542 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3545 * debug.h: Remove.
3546 * infrun.c: Include gdbsupport/common-debug.h.
3547 * linux-nat.c: Likewise.
3548
3549 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3550
3551 * async-event.h (create_async_signal_handler): Add name
3552 parameter.
3553 (create_async_event_handler): Likewise.
3554 * async-event.c (struct async_signal_handler) <name>: New field.
3555 (struct async_event_handler) <name>: New field.
3556 (create_async_signal_handler): Assign name.
3557 (create_async_event_handler): Assign name.
3558 * event-top.c (async_init_signals): Pass name when creating
3559 handler.
3560 * infrun.c (_initialize_infrun): Likewise.
3561 * record-btrace.c (record_btrace_push_target): Likewise.
3562 * record-full.c (record_full_open): Likewise.
3563 * remote-notif.c (remote_notif_state_allocate): Likewise.
3564 * remote.c (remote_target::open_1): Likewise.
3565 * tui/tui-win.c (tui_initialize_win): Likewise.
3566
3567 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * async-event.c (initialize_async_signal_handlers): Pass name to
3570 add_file_handler
3571 * event-top.c (ui_register_input_event_handler): Likewise.
3572 * linux-nat.c (linux_nat_target::async): Likewise.
3573 * run-on-main-thread.c (_initialize_run_on_main_thread):
3574 Likewise
3575 * ser-base.c (reschedule): Likewise.
3576 (ser_base_async): Likewise.
3577 * tui/tui-io.c: Likewise.
3578 * top.h (struct ui) <num>: New field.
3579 * top.c (highest_ui_num): New variable.
3580 (ui::ui): Initialize num.
3581
3582 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3583
3584 * observable.h <inferior_created>: Remove parameters. Update all
3585 listeners.
3586 * inferior.h (post_create_inferior): Remove target parameter.
3587 Update all callers.
3588
3589 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3590
3591 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3592 and DW_MACRO_undef_strx.
3593 (dwarf_decode_macros): Likewise
3594 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3595 which is the value of DW_AT_str_offsets_base.
3596 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3597 str_offsets_base.
3598
3599 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3600
3601 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3602
3603 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3604
3605 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3606 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3607
3608 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3609
3610 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3611
3612 2020-09-30 Tom de Vries <tdevries@suse.de>
3613
3614 PR symtab/26683
3615 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3616
3617 2020-09-30 Tom Tromey <tromey@adacore.com>
3618
3619 * dwarf2/read.c (handle_variant): Use constant_value.
3620
3621 2020-09-29 Tom Tromey <tom@tromey.com>
3622
3623 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3624 (read_file_scope, dwarf2_get_pc_bounds)
3625 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3626 (read_structure_type, handle_struct_member_die)
3627 (read_enumeration_type, read_array_type, read_set_type)
3628 (read_tag_pointer_type, read_tag_reference_type)
3629 (read_subroutine_type, read_base_type, read_subrange_type)
3630 (read_full_die_1, partial_die_info::read)
3631 (partial_die_info::read, by, new_symbol)
3632 (dwarf2_const_value_data, dwarf2_const_value_attr)
3633 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3634 (prepare_one_comp_unit): Update.
3635 * dwarf2/attribute.h (DW_UNSND): Remove.
3636
3637 2020-09-29 Tom Tromey <tom@tromey.com>
3638
3639 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3640 (read_subroutine_type, partial_die_info::read)
3641 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3642 (dwarf2_add_member_fn): Update.
3643 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3644 * dwarf2/attribute.c (attribute::as_boolean): New method.
3645
3646 2020-09-29 Tom Tromey <tom@tromey.com>
3647
3648 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3649 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3650 method.
3651 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3652
3653 2020-09-29 Tom Tromey <tom@tromey.com>
3654
3655 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3656 the attribute's form.
3657
3658 2020-09-29 Tom Tromey <tom@tromey.com>
3659
3660 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3661 (dwarf2_add_member_fn): Update.
3662 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3663 * dwarf2/attribute.c (attribute::defaulted): New method, from
3664 is_valid_DW_AT_defaulted.
3665
3666 2020-09-29 Tom Tromey <tom@tromey.com>
3667
3668 * dwarf2/read.c (dw2_get_file_names_reader)
3669 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3670 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3671 (dwarf2_symbol_mark_computed): Use as_unsigned.
3672 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3673 method.
3674 <form_is_section_offset>: Update comment.
3675
3676 2020-09-29 Tom Tromey <tom@tromey.com>
3677
3678 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3679 dwarf2_default_access_attribute. Look up attribute.
3680 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3681 Update.
3682
3683 2020-09-29 Tom Tromey <tom@tromey.com>
3684
3685 * dwarf2/read.c (skip_one_die): Update.
3686 (read_full_die_1): Change how reprocessing is done.
3687 (partial_die_info::read): Update.
3688 (read_attribute_value): Remove need_reprocess parameter.
3689 (read_attribute): Likewise.
3690 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3691 New method.
3692
3693 2020-09-29 Tom Tromey <tom@tromey.com>
3694
3695 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3696 (dwarf2_const_value_attr, dump_die_shallow)
3697 (dwarf2_fetch_constant_bytes): Update.
3698 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3699 comment.
3700 <set_address>: New method.
3701 (DW_ADDR): Remove.
3702 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3703 (attribute::as_string, attribute::as_address): Add assert.
3704
3705 2020-09-29 Tom Tromey <tom@tromey.com>
3706
3707 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3708 (read_attribute_reprocess, read_attribute_value): Update.
3709 (read_attribute): Clear requires_reprocessing.
3710 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3711 form_requires_reprocessing>: New methods.
3712 <string_init>: Clear requires_reprocessing.
3713 <set_unsigned_reprocess>: New method.
3714 <name>: Shrink by one bit.
3715 <requires_reprocessing>: New member.
3716 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3717 method.
3718
3719 2020-09-29 Tom Tromey <tom@tromey.com>
3720
3721 * dwarf2/read.c (read_attribute_value): Update.
3722 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3723 set_unsigned>: New methods.
3724 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3725
3726 2020-09-29 Tom Tromey <tom@tromey.com>
3727
3728 * dwarf2/read.c (get_alignment, read_array_order)
3729 (read_attribute_value, dwarf2_const_value_attr)
3730 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3731 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3732 New methods.
3733 (DW_SND): Remove.
3734
3735 2020-09-29 Tom Tromey <tom@tromey.com>
3736
3737 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3738 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3739 Update.
3740 * dwarf2/attribute.h (struct attribute) <as_signature,
3741 set_signature>: New methods.
3742 (DW_SIGNATURE): Remove.
3743
3744 2020-09-29 Tom Tromey <tom@tromey.com>
3745
3746 * dwarf2/read.c (read_call_site_scope)
3747 (handle_data_member_location, dwarf2_add_member_fn)
3748 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3749 (partial_die_info::read, read_attribute_value)
3750 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3751 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3752 (dwarf2_symbol_mark_computed): Update.
3753 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3754 methods.
3755 (DW_BLOCK): Remove.
3756 * dwarf2/attribute.c (attribute::form_is_block): Add
3757 DW_FORM_data16.
3758
3759 2020-09-29 Tom Tromey <tom@tromey.com>
3760
3761 * dwarf2/read.c (read_cutu_die_from_dwo)
3762 (read_attribute_reprocess, read_attribute_value, read_attribute)
3763 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3764 (dwarf2_fetch_constant_bytes): Update.
3765 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3766 <set_string_noncanonical, set_string_canonical>: New methods.
3767 <string_is_canonical>: Update comment.
3768 <canonical_string_p>: Add assert.
3769 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3770 * dwarf2/attribute.c (attribute::form_is_string): New method.
3771 (attribute::string): Use it.
3772
3773 2020-09-29 Tom Tromey <tom@tromey.com>
3774
3775 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3776 (dump_die_shallow): Use canonical_string_p.
3777 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3778 method.
3779
3780 2020-09-29 Tom Tromey <tom@tromey.com>
3781
3782 * dwarf2/read.c (partial_die_info::read)
3783 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3784 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3785 attribute::as_string.
3786
3787 2020-09-29 Tom Tromey <tom@tromey.com>
3788
3789 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3790 DW_ADDR.
3791 (attribute::string): Don't use DW_STRING.
3792 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3793 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3794
3795 2020-09-29 Tom Tromey <tom@tromey.com>
3796
3797 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3798 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3799 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3800 * dwarf2/attribute.h (struct attribute): Rename methods.
3801 * dwarf2/attribute.c (attribute::as_address): Rename from
3802 value_as_address.
3803 (attribute::as_string): Rename from value_as_string.
3804
3805 2020-09-29 Tom Tromey <tom@tromey.com>
3806
3807 * dwarf2/read.c (partial_die_info::read) <case
3808 DW_AT_linkage_name>: Use value_as_string.
3809 (dwarf2_string_attr): Use value_as_string.
3810 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3811 method.
3812 * dwarf2/attribute.c (attribute::value_as_string): New method.
3813
3814 2020-09-29 Pedro Alves <pedro@palves.net>
3815
3816 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3817 defined before using '#pragma GCC diagnostic' instead of checking
3818 __clang__.
3819
3820 2020-09-28 Tom Tromey <tom@tromey.com>
3821
3822 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3823 (handle_signal_stop): Update.
3824 * procfs.c (procfs_target::insert_watchpoint): Update.
3825 * target.h (target_have_steppable_watchpoint): Now a function.
3826
3827 2020-09-28 Tom Tromey <tom@tromey.com>
3828
3829 * infrun.c (set_schedlock_func): Update.
3830 * target.h (target_can_lock_scheduler): Now a function.
3831
3832 2020-09-28 Tom Tromey <tom@tromey.com>
3833
3834 * inferior.h (class inferior) <has_execution>: Update.
3835 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3836 * valops.c (find_function_in_inferior)
3837 (value_allocate_space_in_inferior): Update.
3838 * top.c (kill_or_detach): Update.
3839 * target.c (target_preopen, set_target_permissions): Update.
3840 (target_has_execution_current): Remove.
3841 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3842 Update.
3843 * solib.c (update_solib_list, reload_shared_libraries): Update.
3844 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3845 * solib-dsbt.c (enable_break): Update.
3846 * score-tdep.c (score7_fetch_inst): Update.
3847 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3848 Update.
3849 * remote.c (remote_target::start_remote)
3850 (remote_target::remote_check_symbols, remote_target::open_1)
3851 (remote_target::remote_detach_1, remote_target::verify_memory)
3852 (remote_target::xfer_partial, remote_target::read_description)
3853 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3854 * record-full.c (record_full_open_1): Update.
3855 * record-btrace.c (record_btrace_target_open): Update.
3856 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3857 (value_nsstring): Update.
3858 * linux-thread-db.c (add_thread_db_info)
3859 (thread_db_find_new_threads_silently, check_thread_db_callback)
3860 (try_thread_db_load_1, record_thread): Update.
3861 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3862 Update.
3863 * linux-fork.c (checkpoint_command): Update.
3864 * infrun.c (set_non_stop, set_observer_mode)
3865 (check_multi_target_resumption, for_each_just_stopped_thread)
3866 (maybe_remove_breakpoints, normal_stop)
3867 (class infcall_suspend_state): Update.
3868 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3869 (info_program_command, attach_command): Update.
3870 * infcall.c (call_function_by_hand_dummy): Update.
3871 * inf-loop.c (inferior_event_handler): Update.
3872 * gcore.c (gcore_command, derive_heap_segment): Update.
3873 * exec.c (exec_file_command): Update.
3874 * eval.c (evaluate_subexp): Update.
3875 * compile/compile.c (compile_to_object): Update.
3876 * cli/cli-dump.c (restore_command): Update.
3877 * breakpoint.c (update_watchpoint)
3878 (update_inserted_breakpoint_locations)
3879 (insert_breakpoint_locations, get_bpstat_thread): Update.
3880 * target.h (target_has_execution): Remove macro.
3881 (target_has_execution_current): Don't declare.
3882 (target_has_execution): Rename from target_has_execution_1. Add
3883 argument default.
3884
3885 2020-09-28 Tom Tromey <tom@tromey.com>
3886
3887 * mi/mi-main.c (exec_reverse_continue)
3888 (mi_cmd_list_target_features): Update.
3889 * infrun.c (set_exec_direction_func): Update.
3890 * target.c (default_execution_direction): Update.
3891 * reverse.c (exec_reverse_once): Update.
3892 * target.h (target_can_execute_reverse): Now a function.
3893
3894 2020-09-28 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-regs.c (tui_get_register)
3897 (tui_data_window::show_registers): Update.
3898 * thread.c (scoped_restore_current_thread::restore)
3899 (scoped_restore_current_thread::scoped_restore_current_thread):
3900 Update.
3901 * regcache-dump.c (regcache_print): Update.
3902 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3903 Update.
3904 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3905 * mep-tdep.c (current_me_module, current_options): Update.
3906 * linux-thread-db.c (thread_db_load): Update.
3907 * infcmd.c (registers_info, info_vector_command)
3908 (info_float_command): Update.
3909 * ia64-tdep.c (ia64_frame_prev_register)
3910 (ia64_sigtramp_frame_prev_register): Update.
3911 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3912 * gcore.c (derive_stack_segment): Update.
3913 * frame.c (get_current_frame, has_stack_frames): Update.
3914 * findvar.c (language_defn::read_var_value): Update.
3915 * arm-tdep.c (arm_pc_is_thumb): Update.
3916 * target.c (target_has_registers): Rename from
3917 target_has_registers_1.
3918 * target.h (target_has_registers): Remove macro.
3919 (target_has_registers): Rename from target_has_registers_1.
3920
3921 2020-09-28 Tom Tromey <tom@tromey.com>
3922
3923 * windows-tdep.c (tlb_make_value): Update.
3924 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3925 * thread.c (scoped_restore_current_thread::restore)
3926 (scoped_restore_current_thread::scoped_restore_current_thread)
3927 (thread_command): Update.
3928 * stack.c (backtrace_command_1, frame_apply_level_command)
3929 (frame_apply_all_command, frame_apply_command): Update.
3930 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3931 Update.
3932 * gcore.c (derive_stack_segment): Update.
3933 * frame.c (get_current_frame, has_stack_frames): Update.
3934 * auxv.c (info_auxv_command): Update.
3935 * ada-tasks.c (ada_build_task_list): Update.
3936 * target.c (target_has_stack): Rename from target_has_stack_1.
3937 * target.h (target_has_stack): Remove macro.
3938 (target_has_stack): Rename from target_has_stack_1.
3939
3940 2020-09-28 Tom Tromey <tom@tromey.com>
3941
3942 * target.c (target_has_memory): Rename from target_has_memory_1.
3943 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3944 * thread.c (scoped_restore_current_thread::restore)
3945 (scoped_restore_current_thread::scoped_restore_current_thread):
3946 Update.
3947 * frame.c (get_current_frame, has_stack_frames): Update.
3948 * target.h (target_has_memory): Remove macro.
3949 (target_has_memory): Rename from target_has_memory_1.
3950
3951 2020-09-28 Tom Tromey <tom@tromey.com>
3952
3953 * target.c (target_has_all_memory_1): Remove.
3954 * target.h (target_has_all_memory): Remove define.
3955 (target_has_all_memory_1): Don't declare.
3956
3957 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3958
3959 * ser-base.c: Adjust comments formatting.
3960
3961 2020-09-27 Tom Tromey <tom@tromey.com>
3962
3963 PR tui/25342:
3964 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3965
3966 2020-09-27 Tom Tromey <tom@tromey.com>
3967
3968 PR tui/25342:
3969 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3970
3971 2020-09-27 Tom Tromey <tom@tromey.com>
3972
3973 * unittests/tui-selftests.c: Update.
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <extra_margin, show_line_number, refresh_pad>: New methods.
3976 <m_max_length, m_pad>: New members.
3977 (tui_copy_source_line): Update.
3978 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3979 first_col, line_width, ndigits parameters. Add length.
3980 (tui_source_window_base::show_source_line): Write to pad. Line
3981 number now 0-based.
3982 (tui_source_window_base::refresh_pad): New method.
3983 (tui_source_window_base::show_source_content): Write to pad. Call
3984 refresh_pad.
3985 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3986 not refill.
3987 (tui_source_window_base::update_exec_info): Call
3988 show_line_number.
3989 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3990 method.
3991 <m_digits>: New member.
3992 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3993 and m_max_length.
3994 (tui_source_window::show_line_number): New method.
3995 * tui/tui-io.h (tui_puts): Fix comment.
3996 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3997 m_max_length.
3998
3999 2020-09-27 Tom Tromey <tom@tromey.com>
4000
4001 * tui/tui-winsource.c
4002 (tui_source_window_base::set_is_exec_point_at): Don't call
4003 show_source_line.
4004
4005 2020-09-27 Tom Tromey <tom@tromey.com>
4006
4007 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4008 method.
4009 <erase>: Update.
4010 <cursor_x, cursor_y>: Remove.
4011 <m_inner_window>: New member.
4012 (tui_py_window::rerender): Create inner window.
4013 (tui_py_window::output): Write to inner window.
4014
4015 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4016
4017 PR python/26586
4018 * cli/cli-script.c (execute_control_commands): don't set
4019 instream to nullptr here as this breaks the from_tty argument
4020 to gdb.execute in Python.
4021 (execute_user_command): set instream to nullptr here instead.
4022
4023 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * infrun.h (infrun_debug_printf): Fix formatting.
4026 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4027
4028 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4029
4030 * compile/compile-object-load.h (struct munmap_list): Add
4031 explicitly-defined move constructor.
4032
4033 2020-09-24 Tom Tromey <tromey@adacore.com>
4034
4035 PR tui/26638:
4036 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4037 method.
4038 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4039 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4040 (tui_prev_win): Rewrite.
4041
4042 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4043
4044 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4045 in WOW64 processes as SIGINT.
4046 * nat/windows-nat.h: Make wow64_process a shared variable.
4047 * windows-nat.c: Remove static wow64_process variable.
4048
4049 2020-09-23 Tom Tromey <tom@tromey.com>
4050
4051 PR symtab/25470:
4052 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4053 offset and bit size.
4054 * printcmd.c (print_scalar_formatted): Handle zero-length
4055 integer.
4056 (print_scalar_formatted): Use bit_size_differs_p.
4057 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4058 constant.
4059 (union type_specific): <int_stuff>: New member.
4060 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4061 methods.
4062 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4063 TYPE_SPECIFIC_FIELD.
4064 (recursive_dump_type, copy_type_recursive): Update.
4065 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4066 DW_AT_data_bit_offset.
4067
4068 2020-09-23 Tom Tromey <tom@tromey.com>
4069
4070 * utils.h (class gdb_argv): Add move operators.
4071 <append>: New methods.
4072 * compile/compile.c (build_argc_argv): Remove.
4073 (compile_args_argc): Remove.
4074 (compile_args_argv): Change type.
4075 (set_compile_args): Simplify.
4076 (append_args): Remove.
4077 (filter_args): Remove argcp parameter.
4078 (get_args): Return gdb_argv. Simplify.
4079 (compile_to_object): Update.
4080
4081 2020-09-23 Tom Tromey <tom@tromey.com>
4082
4083 * compile/compile-object-run.c (do_module_cleanup)
4084 <~do_module_cleanup> :Remove.
4085 (do_module_cleanup): Update.
4086 * compile/compile-object-load.h (struct munmap_list): Add move
4087 assignment operator.
4088 <source_file>: Now a std::string.
4089 <munmap_list>: Rename. No longer a pointer.
4090 * compile/compile-object-load.c (struct setup_sections_data): Add
4091 constructor.
4092 <setup_one_section>: Declare.
4093 <munmap_list>: Move earlier.
4094 <m_bfd>: New member.
4095 <m_last_size, m_last_section_first, m_last_prot,
4096 m_last_max_alignment>: Rename, add initializers where needed.
4097 (setup_sections_data::setup_one_section): Rename from
4098 setup_sections. Update.
4099 (compile_object_load): Update. Don't use bfd_map_over_sections.
4100
4101 2020-09-23 Tom Tromey <tom@tromey.com>
4102
4103 * compile/compile-object-run.c (struct do_module_cleanup): Add
4104 parameters to constructor. Update destructor.
4105 <source_file, scope, scope_data, out_value_type, out_value_addr,
4106 munmap_list_head, objfile_name_string>: Remove.
4107 <module>: New member.
4108 (do_module_cleanup): Update.
4109 (compile_object_run): Update.
4110
4111 2020-09-23 Tom Tromey <tom@tromey.com>
4112
4113 * compile/compile.c (eval_compile_command): Update.
4114 * compile/compile-object-run.h (compile_object_run): Take a
4115 compile_module_up.
4116 * compile/compile-object-run.c (compile_object_run): Take a
4117 compile_module_up.
4118 * compile/compile-object-load.h (struct compile_module): Add
4119 constructor, destructor.
4120 (compile_module_up): New typedef.
4121 (compile_object_load): Return compile_object_up.
4122 * compile/compile-object-load.c (compile_object_load): Return
4123 compile_module_up.
4124
4125 2020-09-23 Tom Tromey <tom@tromey.com>
4126
4127 * compile/compile-object-run.c (struct do_module_cleanup): Add
4128 constructor, destructor.
4129 <objfile_name_string>: Don't use struct hack.
4130 (do_module_cleanup): Use delete.
4131 (compile_object_run): Use new.
4132
4133 2020-09-23 Tom Tromey <tom@tromey.com>
4134
4135 * compile/compile-cplus-types.c
4136 (compile_cplus_convert_struct_or_union): Use std::vector.
4137 (compile_cplus_convert_func): Likewise.
4138 * compile/compile-c-types.c (convert_func): Use std::vector.
4139
4140 2020-09-21 Tom Tromey <tromey@adacore.com>
4141
4142 * sparc-tdep.c (sparc32_skip_prologue): Use
4143 skip_prologue_using_sal.
4144
4145 2020-09-19 Tom Tromey <tom@tromey.com>
4146
4147 * symfile.c (add_section_size_callback): Remove.
4148 (load_one_section): Rename from load_section_callback. Change
4149 parameters.
4150 (generic_load): Use foreach.
4151
4152 2020-09-19 Tom Tromey <tom@tromey.com>
4153
4154 * exec.c (add_to_section_table): Remove.
4155 (build_section_table): Use foreach.
4156
4157 2020-09-19 Tom Tromey <tom@tromey.com>
4158
4159 * elfread.c (elf_locate_sections): Change parameters.
4160 (elf_symfile_read): Use foreach.
4161
4162 2020-09-19 Tom Tromey <tom@tromey.com>
4163
4164 * cli/cli-dump.c (struct callback_data): Remove.
4165 (restore_one_section): Rename from restore_section_callback.
4166 Change parameters.
4167 (restore_binary_file): Change parameters.
4168 (restore_command): Use foreach.
4169
4170 2020-09-19 Tom Tromey <tom@tromey.com>
4171
4172 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4173 (gcore_copy_callback): Likewise.
4174 (gcore_memory_sections): Use foreach.
4175
4176 2020-09-19 Tom Tromey <tom@tromey.com>
4177
4178 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4179 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4180 parameters.
4181 (generic_elf_osabi_sniffer): Use foreach.
4182 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4183 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4184
4185 2020-09-19 Tom Tromey <tom@tromey.com>
4186
4187 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4188 (dwarf2_get_dwz_file): Use foreach.
4189 (dwarf2_locate_dwo_sections): Change parameters.
4190 (open_and_init_dwo_file): Use foreach.
4191 (dwarf2_locate_common_dwp_sections): Change parameters.
4192 (open_and_init_dwp_file): Use foreach.
4193
4194 2020-09-19 Tom Tromey <tom@tromey.com>
4195
4196 * symfile.h: (find_lowest_section): Don't declare.
4197 * symfile.c (find_lowest_section): Now static. Change
4198 parameters.
4199 (struct place_section_arg): Remove.
4200 (place_section): Change parameters.
4201 (addr_info_make_relative): Use foreach.
4202 (symfile_dummy_outputs): Remove.
4203 (default_symfile_relocate): Use foreach.
4204
4205 2020-09-19 Tom Tromey <tom@tromey.com>
4206
4207 * objfiles.c (add_to_objfile_sections): Rename from
4208 add_to_objfile_sections_full.
4209 (add_to_objfile_sections): Remove.
4210 (build_objfile_section_table): Use foreach.
4211
4212 2020-09-19 Tom Tromey <tom@tromey.com>
4213
4214 * stap-probe.c (get_stap_base_address_1): Remove.
4215 (get_stap_base_address): Use foreach.
4216
4217 2020-09-19 Tom Tromey <tom@tromey.com>
4218
4219 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4220 parameters.
4221 (gdb_bfd_close_or_warn): Use foreach.
4222
4223 2020-09-19 Tom Tromey <tom@tromey.com>
4224
4225 * corelow.c (add_to_thread_list): Change parameters.
4226 (core_target_open): Use foreach.
4227
4228 2020-09-19 Tom Tromey <tom@tromey.com>
4229
4230 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4231 existing function.
4232
4233 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4236 for arrays.
4237
4238 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * eval.c: Remove 'f-lang.h' include.
4241 (value_f90_subarray): Moved to f-lang.c.
4242 (eval_call): Renamed to...
4243 (evaluate_subexp_do_call): ...this, is no longer static, header
4244 comment moved into header file.
4245 (evaluate_funcall): Update call to eval_call.
4246 (skip_undetermined_arglist): Moved to f-lang.c.
4247 (fortran_value_subarray): Likewise.
4248 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4249 moved to evaluate_subexp_f.
4250 (calc_f77_array_dims): Moved to f-lang.c
4251 * expprint.c (print_subexp_funcall): New function.
4252 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4253 moved to print_subexp_f, OP_FUNCALL uses new function.
4254 (dump_subexp_body_funcall): New function.
4255 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4256 moved to dump_subexp_f, OP_FUNCALL uses new function.
4257 * expression.h (evaluate_subexp_do_call): Declare.
4258 * f-lang.c (value_f90_subarray): Moved from eval.c.
4259 (skip_undetermined_arglist): Likewise.
4260 (calc_f77_array_dims): Likewise.
4261 (fortran_value_subarray): Likewise.
4262 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4263 (operator_length_f): Likewise.
4264 (print_subexp_f): Likewise.
4265 (dump_subexp_body_f): Likewise.
4266 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4267 declaration of this operation to here.
4268 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4269 support moved to operator_length_f.
4270 * parser-defs.h (dump_subexp_body_funcall): Declare.
4271 (print_subexp_funcall): Declare.
4272 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4273 fortran-operator.def.
4274
4275 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * eval.c (fortran_value_subarray): New function, content is taken
4278 from...
4279 (evaluate_subexp_standard): ...here, in two places. Now arrays
4280 and strings both call the new function.
4281 (calc_f77_array_dims): Add header comment, handle strings.
4282
4283 2020-09-18 Victor Collod <vcollod@nvidia.com>
4284
4285 PR gdb/26635
4286 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4287 (i386_analyze_prologue): Call i386_skip_endbr.
4288
4289 2020-09-18 Tom Tromey <tromey@adacore.com>
4290
4291 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4292 (windows_nat_target::wait): Update.
4293 * target/wait.h (enum target_wait_flag): New. Use
4294 DEF_ENUM_FLAGS_TYPE.
4295 * target/target.h (target_wait): Change type of options.
4296 * target.h (target_options_to_string, default_target_wait):
4297 Update.
4298 (struct target_ops) <wait>: Change type of options.
4299 * target.c (target_wait, default_target_wait, do_option): Change
4300 type of "options".
4301 (target_options_to_string): Likewise.
4302 * target-delegates.c: Rebuild.
4303 * target-debug.h (target_debug_print_target_wait_flags): Rename
4304 from target_debug_print_options.
4305 * sol-thread.c (class sol_thread_target) <wait>: Update.
4306 (sol_thread_target::wait): Update.
4307 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4308 (rs6000_nat_target::wait): Update.
4309 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4310 Update.
4311 (remote_target::wait_ns, remote_target::wait_as): Change type of
4312 "options".
4313 (remote_target::wait): Update.
4314 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4315 (gdbsim_target::wait): Update.
4316 * record-full.c (class record_full_base_target) <wait>: Update.
4317 (record_full_wait_1): Change type of "options".
4318 (record_full_base_target::wait): Update.
4319 * record-btrace.c (class record_btrace_target) <wait>: Update.
4320 (record_btrace_target::wait): Update.
4321 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4322 Update.
4323 (ravenscar_thread_target::wait): Update.
4324 * procfs.c (class procfs_target) <wait>: Update.
4325 (procfs_target::wait): Update.
4326 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4327 * obsd-nat.c (obsd_nat_target::wait): Update.
4328 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4329 (nto_procfs_target::wait): Update.
4330 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4331 * nbsd-nat.c (nbsd_wait): Change type of "options".
4332 (nbsd_nat_target::wait): Update.
4333 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4334 (thread_db_target::wait): Update.
4335 * linux-nat.h (class linux_nat_target) <wait>: Update.
4336 * linux-nat.c (linux_nat_target::wait): Update.
4337 (linux_nat_wait_1): Update.
4338 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4339 "options".
4340 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4341 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4342 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4343 (go32_nat_target::wait): Update.
4344 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4345 * gnu-nat.c (gnu_nat_target::wait): Update.
4346 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4347 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4348 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4349 * darwin-nat.c (darwin_nat_target::wait): Update.
4350 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4351 (bsd_uthread_target::wait): Update.
4352 * aix-thread.c (class aix_thread_target) <wait>: Update.
4353 (aix_thread_target::wait): Update.
4354
4355 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * compile/compile-object-run.c (create_copied_type_recursive): New
4358 function.
4359 (compile_object_run): Use new function.
4360
4361 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4362
4363 * NEWS: Mention x86_64 Cygwin core file support.
4364
4365 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4366
4367 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4368 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4369
4370 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4371
4372 * windows-tdep.h: Add prototypes.
4373 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4374 (i386_windows_core_pid_to_str): Move and rename ...
4375 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4376 (windows_core_pid_to_str): ... and here.
4377 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4378
4379 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4380 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4381 (amd64_windows_init_abi_common): ... and register.
4382
4383 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4384
4385 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4386 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4387
4388 2020-09-18 Pedro Alves <pedro@palves.net>
4389
4390 PR gdb/26631
4391 * thread.c (thread_find_command): Switch inferior before calling
4392 target methods.
4393
4394 2020-09-17 Tom Tromey <tromey@adacore.com>
4395
4396 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4397 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4398 (tdesc_arch_data_up): New typedef.
4399 (tdesc_use_registers, tdesc_data_alloc): Update.
4400 (tdesc_data_cleanup): Don't declare.
4401 * target-descriptions.c (tdesc_data_alloc): Return a
4402 tdesc_arch_data_up.
4403 (tdesc_arch_data_deleter::operator()): Rename from
4404 tdesc_data_cleanup. Change argument type.
4405 (tdesc_use_registers): Change early_data to an rvalue reference.
4406 (tdesc_use_registers): Don't use delete.
4407 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4408 * s390-tdep.c (s390_gdbarch_init): Update.
4409 * rx-tdep.c (rx_gdbarch_init): Update.
4410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4411 * riscv-tdep.c (riscv_gdbarch_init): Update.
4412 * or1k-tdep.c (or1k_gdbarch_init): Update.
4413 * nios2-tdep.c (nios2_gdbarch_init): Update.
4414 * nds32-tdep.c (nds32_gdbarch_init): Update.
4415 * mips-tdep.c (mips_gdbarch_init): Update.
4416 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4417 * m68k-tdep.c (m68k_gdbarch_init): Update.
4418 * i386-tdep.c (i386_gdbarch_init): Update.
4419 * arm-tdep.c (arm_gdbarch_init): Update.
4420 * arc-tdep.c (arc_tdesc_init): Update.
4421 (arc_gdbarch_init): Update.
4422 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4423
4424 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4425
4426 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4427 for WOW64 processes.
4428
4429 2020-09-17 Tom Tromey <tom@tromey.com>
4430
4431 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4432
4433 2020-09-17 Tom Tromey <tom@tromey.com>
4434
4435 * value.c (preserve_values): Update.
4436 * python/py-type.c (save_objfile_types): Update.
4437 * guile/scm-type.c (save_objfile_types): Update.
4438 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4439 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4440 * compile/compile-object-run.c (compile_object_run): Update.
4441
4442 2020-09-17 Tom Tromey <tom@tromey.com>
4443
4444 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4445 Remove.
4446 <m_table>: Now htab_up.
4447 * typeprint.c (typedef_hash_table::recursively_update)
4448 (typedef_hash_table::add_template_parameters)
4449 (typedef_hash_table::typedef_hash_table): Update.
4450 (typedef_hash_table::~typedef_hash_table): Remove.
4451 (typedef_hash_table::typedef_hash_table)
4452 (typedef_hash_table::find_global_typedef)
4453 (typedef_hash_table::find_typedef): Update.
4454
4455 2020-09-17 Tom Tromey <tom@tromey.com>
4456
4457 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4458
4459 2020-09-17 Tom Tromey <tom@tromey.com>
4460
4461 * linespec.c (class decode_compound_collector)
4462 <~decode_compound_collector>: Remove.
4463 <m_unique_syms>: Now htab_up.
4464 (decode_compound_collector::operator ()): Update.
4465 (class symtab_collector) <~symtab_collector>: Remove.
4466 <m_symtab_table>: Now htab_up.
4467 (symtab_collector::operator ()): Update.
4468
4469 2020-09-17 Tom Tromey <tom@tromey.com>
4470
4471 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4472 (filename_seen_cache::clear): Update.
4473 (~filename_seen_cache): Remove.
4474 (filename_seen_cache::seen): Update.
4475 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4476 htab_up.
4477 <~filename_seen_cache>: Remove.
4478 <traverse>: Update.
4479
4480 2020-09-17 Tom Tromey <tom@tromey.com>
4481
4482 * completer.c (completion_tracker::discard_completions)
4483 (completion_tracker::~completion_tracker)
4484 (completion_tracker::maybe_add_completion)
4485 (completion_tracker::remove_completion)
4486 (completion_tracker::recompute_lowest_common_denominator)
4487 (completion_tracker::build_completion_result): Update.
4488 * completer.h (class completion_tracker) <have_completions>:
4489 Update.
4490 <m_entries_hash>: Now htab_up.
4491
4492 2020-09-17 Tom Tromey <tom@tromey.com>
4493
4494 * breakpoint.c (ambiguous_names_p): Use htab_up.
4495
4496 2020-09-17 Tom Tromey <tom@tromey.com>
4497
4498 * auto-load.c (struct auto_load_pspace_info)
4499 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4500 <loaded_script_files, loaded_script_texts>: Change type to
4501 htab_up.
4502 (~auto_load_pspace_info) Remove.
4503 (init_loaded_scripts_info, maybe_add_script_file)
4504 (maybe_add_script_text, auto_load_info_scripts): Update.
4505
4506 2020-09-17 Tom Tromey <tromey@adacore.com>
4507
4508 * c-exp.y (name_obstack): Now static.
4509
4510 2020-09-17 Chungyi Chi <demonic@csie.io>
4511
4512 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4513
4514 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4517 (add_solib_catchpoint): Likewise.
4518 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4519 to bool.
4520 (add_solib_catchpoint): Change int parameter/variable to bool.
4521 (catch_load_or_unload): Likewise.
4522 (init_catchpoint): Likewise.
4523 (create_fork_vfork_event_catchpoint): Likewise.
4524 (catch_fork_command_1): Likewise.
4525 (catch_exec_command_1): Likewise.
4526
4527 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4530 Change instance_flags to m_instance_flags.
4531
4532 2020-09-16 Tom Tromey <tromey@adacore.com>
4533
4534 PR gdb/26598:
4535 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4536
4537 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4538
4539 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4540 PL_FLAG_EXEC.
4541 (fbsd_nat_target::insert_exec_catchpoint)
4542 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4543 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4544 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4545
4546 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4547
4548 * configure.ac: Remove check for kinfo_getvmmap().
4549 * configure, config.in: Regenerate.
4550 * fbsd-nat.c (fbsd_read_mapping): Remove
4551 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4552 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4553 kinfo_get_vmmap() are always present.
4554
4555 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4556
4557 * fbsd-nat.c: Always include support for
4558 TARGET_OBJECT_SIGNAL_INFO.
4559
4560 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4561
4562 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4563 sysctl and remove procfs fallback.
4564
4565 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4566
4567 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4568 * fbsd-nat.h: Likewise.
4569
4570 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4571
4572 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4573 argument.
4574
4575 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * ada-lang.c (ada_language_data): Delete.
4578 (ada_language): Remove references to ada_language_data.
4579 * c-lang.c (c_language_data): Delete.
4580 (c_language): Remove references to c_language_data.
4581 (cplus_language_data): Delete.
4582 (cplus_language): Remove references to cplus_language_data.
4583 (asm_language_data): Delete.
4584 (asm_language): Remove references to asm_language_data.
4585 (minimal_language_data): Delete.
4586 (minimal_language): Remove references to minimal_language_data.
4587 * d-lang.c (d_language_data): Delete.
4588 (d_language): Remove references to d_language_data.
4589 * f-lang.c (f_language_data): Delete.
4590 (f_language): Remove references to f_language_data.
4591 * go-lang.c (go_language_data): Delete.
4592 (go_language): Remove references to go_language_data.
4593 * language.c (unknown_language_data): Delete.
4594 (unknown_language): Remove references to unknown_language_data.
4595 (auto_language_data): Delete.
4596 (auto_language): Remove references to auto_language_data.
4597 * language.h (language_data): Delete struct.
4598 (language_defn): No longer inherit from language_data.
4599 * m2-lang.c (m2_language_data): Delete.
4600 (m2_language): Remove references to m2_language_data.
4601 * objc-lang.c (objc_language_data): Delete.
4602 (objc_language): Remove references to objc_language_data.
4603 * opencl-lang.c (opencl_language_data): Delete.
4604 (opencl_language): Remove references to opencl_language_data.
4605 * p-lang.c (pascal_language_data): Delete.
4606 (pascal_language): Remove references to pascal_language_data.
4607 * rust-lang.c (rust_language_data): Delete.
4608 (rust_language): Remove references to rust_language_data.
4609
4610 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4613 initializer.
4614 (ada_language::opcode_print_table): New member function.
4615 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4616 (c_language::opcode_print_table): New member function.
4617 (cplus_language_data): Remove la_op_print_tab initializer.
4618 (cplus_language::opcode_print_table): New member function.
4619 (asm_language_data): Remove la_op_print_tab initializer.
4620 (asm_language::opcode_print_table): New member function.
4621 (minimal_language_data): Remove la_op_print_tab initializer.
4622 (minimal_language::opcode_print_table): New member function.
4623 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4624 (d_language::opcode_print_table): New member function.
4625 * expprint.c (print_subexp_standard): Update call to
4626 opcode_print_table.
4627 (op_string): Likewise.
4628 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4629 (f_language::opcode_print_table): New member function.
4630 * go-lang.c (go_language_data): Remove la_op_print_tab
4631 initializer.
4632 (go_language::opcode_print_table): New member function.
4633 * language.c (unknown_language_data): Remove la_op_print_tab
4634 initializer.
4635 (unknown_language::opcode_print_table): New member function.
4636 (auto_language_data): Remove la_op_print_tab initializer.
4637 (auto_language::opcode_print_table): New member function.
4638 * language.h (language_data): Remove la_op_print_tab field.
4639 (language_defn::opcode_print_table): Declare new member function.
4640 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4641 initializer.
4642 (m2_language::opcode_print_table): New member function.
4643 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4644 initializer.
4645 (objc_language::opcode_print_table): New member function.
4646 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4647 initializer.
4648 (opencl_language::opcode_print_table): New member function.
4649 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4650 initializer.
4651 (pascal_language::opcode_print_table): New member function.
4652 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4653 initializer.
4654 (rust_language::opcode_print_table): New member function.
4655
4656 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4659 (ada_language::expression_ops): New member function.
4660 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4661 (c_language::expression_ops): New member function.
4662 (cplus_language_data): Remove la_exp_desc initializer.
4663 (cplus_language::expression_ops): New member function.
4664 (asm_language_data): Remove la_exp_desc initializer.
4665 (asm_language::expression_ops): New member function.
4666 (minimal_language_data): Remove la_exp_desc initializer.
4667 (minimal_language::expression_ops): New member function.
4668 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4669 (d_language::expression_ops): New member function.
4670 * eval.c (evaluate_subexp): Update call to expression_ops.
4671 * expprint.c (print_subexp): Likewise.
4672 (op_name): Likewise.
4673 (dump_subexp_body): Likewise.
4674 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4675 (f_language::expression_ops): New member function.
4676 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4677 (go_language::expression_ops): New member function.
4678 * language.c (language_defn::expression_ops): New function.
4679 (unknown_language_data): Remove la_exp_desc initializer.
4680 (auto_language_data): Likewise.
4681 * language.h (language_data): Remove la_exp_desc field.
4682 (language_defn::expression_ops): Declare new member function.
4683 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4684 (m2_language::expression_ops): New member function.
4685 * objc-lang.c (objc_language_data): Remove la_exp_desc
4686 initializer.
4687 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4688 initializer.
4689 (opencl_language::expression_ops): New member function.
4690 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4691 * parse.c (operator_length): Update call to expression_ops.
4692 (exp_iterate): Likewise.
4693 * rust-lang.c (rust_language_data): Remove la_exp_desc
4694 initializer.
4695 (ruse_language::expression_ops): New member function.
4696
4697 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4700 initializer.
4701 (ada_language::varobj_ops): New member function.
4702 * c-lang.c (c_language_data): Remove la_varobj_ops
4703 initializer.
4704 (cplus_language_data): Likewise.
4705 (cplus_language::varobj_ops): New member function.
4706 (asm_language_data): Remove la_varobj_ops initializer.
4707 (minimal_language_data): Likewise.
4708 * d-lang.c (d_language_data): Likewise.
4709 * f-lang.c (f_language_data): Likewise.
4710 * go-lang.c (go_language_data): Likewise.
4711 * language.c (language_defn::varobj_ops): New function.
4712 (unknown_language_data): Remove la_varobj_ops
4713 initializer.
4714 (auto_language_data): Likewise.
4715 * language.h (language_data): Remove la_varobj_ops field.
4716 (language_defn::varobj_ops): Declare new member function.
4717 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4718 * objc-lang.c (objc_language_data): Likewise.
4719 * opencl-lang.c (opencl_language_data): Likewise.
4720 * p-lang.c (pascal_language_data): Likewise.
4721 * rust-lang.c (rust_language_data): Likewise.
4722 * varobj.c (varobj_create): Update call to varobj_ops.
4723 * varobj.h (default_varobj_ops): Delete define.
4724
4725 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4728 initializer.
4729 * c-lang.c (c_language_data): Likewise.
4730 (c_language::macro_expansion): New member function.
4731 (cplus_language_data): Likewise.
4732 (cplus_language::macro_expansion): New member function.
4733 (asm_language_data): Likewise.
4734 (asm_language::macro_expansion): New member function.
4735 (minimal_language_data): Likewise.
4736 (minimal_language::macro_expansion): New member function.
4737 * d-lang.c (d_language_data): Remove la_macro_expansion
4738 initializer.
4739 * f-lang.c (f_language_data): Likewise.
4740 * go-lang.c (go_language_data): Likewise.
4741 * language.c (unknown_language_data): Likewise.
4742 (auto_language_data): Likewise.
4743 * language.h (language_data): Remove la_macro_expansion field.
4744 (language_defn::macro_expansion): New member function.
4745 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4746 initializer.
4747 * objc-lang.c (objc_language_data): Likewise.
4748 (objc_language::macro_expansion): New member function.
4749 * opencl-lang.c (opencl_language_data): Likewise.
4750 (opencl_language::macro_expansion): New member function.
4751 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4752 initializer.
4753 * rust-lang.c (rust_language_data): Likewise.
4754 * symtab.c (default_collect_symbol_completion_matches_break_on):
4755 Update call to macro_expansion.
4756
4757 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * ada-lang.c (ada_language_data): Remove la_array_ordering
4760 initializer.
4761 * c-lang.c (c_language_data): Likewise.
4762 (cplus_language_data): Likewise.
4763 (asm_language_data): Likewise.
4764 (minimal_language_data): Likewise.
4765 * d-lang.c (d_language_data): Likewise.
4766 * dwarf2/read.c (read_array_order): Update for call to
4767 array_ordering.
4768 * f-lang.c (f_language_data): Remove la_array_ordering
4769 initializer.
4770 (f_language::array_ordering): New member function.
4771 * go-lang.c (go_language_data): Remove la_array_ordering
4772 initializer.
4773 * language.c (unknown_language_data): Likewise.
4774 (auto_language_data): Likewise.
4775 * language.h (language_data): Delete la_array_ordering field.
4776 (language_defn::array_ordering): New member function.
4777 * m2-lang.c (m2_language_data): Remove la_array_ordering
4778 initializer.
4779 * objc-lang.c (objc_language_data): Likewise.
4780 * opencl-lang.c (opencl_language_data): Likewise.
4781 * p-lang.c (pascal_language_data): Likewise.
4782 * rust-lang.c (rust_language_data): Likewise.
4783
4784 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4787 initializer.
4788 * c-lang.c (c_language_data): Likewise.
4789 (cplus_language_data): Likewise.
4790 (asm_language_data): Likewise.
4791 (minimal_language_data): Likewise.
4792 * d-lang.c (d_language_data): Likewise.
4793 * f-lang.c (f_language_data): Likewise.
4794 (f_language::case_sensitivity): New member function.
4795 * go-lang.c (go_language_data): Remove la_case_sensitivity
4796 initializer.
4797 * language.c (enum case_mode): Moved here from language.h.
4798 (case_mode): Make static.
4799 (show_case_command): Update for case_sensitivity being a method.
4800 (set_case_command): Likewise.
4801 (set_range_case): Likewise.
4802 (unknown_language_data): Remove la_case_sensitivity initializer.
4803 (auto_language_data): Likewise.
4804 * language.h (case_mode): Delete, move enum declaration to
4805 language.c.
4806 (language_data): Delete la_case_sensitivity field.
4807 (language_defn::case_sensitivity): New member function.
4808 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4809 initializer.
4810 * objc-lang.c (objc_language_data): Likewise.
4811 * opencl-lang.c (opencl_language_data): Likewise.
4812 * p-lang.c (pascal_language_data): Likewise.
4813 * rust-lang.c (rust_language_data): Likewise.
4814
4815 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4816
4817 * ada-lang.c (ada_language_data): Remove la_range_check
4818 initializer.
4819 * c-lang.c (c_language_data): Likewise.
4820 (cplus_language_data): Likewise.
4821 (asm_language_data): Likewise.
4822 (minimal_language_data): Likewise.
4823 * d-lang.c (d_language_data): Likewise.
4824 * f-lang.c (f_language_data): Likewise.
4825 (f_language::range_checking_on_by_default): New member function.
4826 * go-lang.c (go_language_data): Remove la_range_check initializer.
4827 * language.c (enum range_mode): Moved here from language.h.
4828 (range_mode): Made static.
4829 (show_range_command): Update to use
4830 range_checking_on_by_default.
4831 (set_range_command): Likewise.
4832 (set_range_case): Likewise.
4833 (unknown_language_data): Remove la_range_check initializer.
4834 (auto_language_data): Likewise.
4835 * language.h (range_mode): Delete. Enum definition moved to
4836 language.c.
4837 (language_data): Remove la_range_check field.
4838 (language_defn::range_checking_on_by_default): New member
4839 function.
4840 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4841 (m2_language::range_checking_on_by_default): New member function.
4842 * objc-lang.c (objc_language_data): Remove la_range_check
4843 initializer.
4844 * opencl-lang.c (opencl_language_data): Likewise.
4845 * p-lang.c (pascal_language_data): Likewise.
4846 (pascal_language::range_checking_on_by_default): New member
4847 function.
4848 * rust-lang.c (rust_language_data): Remove la_range_check
4849 initializer.
4850 (rust_language::range_checking_on_by_default): New member
4851 function.
4852
4853 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * dwarf2/read.c (dwarf2_physname): Remove special case for
4856 language_go.
4857 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4858 member function.
4859
4860 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * ada-lang.c (ada_language_data): Remove
4863 la_store_sym_names_in_linkage_form_p initializer.
4864 (ada_language::store_sym_names_in_linkage_form_p): New member
4865 function.
4866 * c-lang.c (c_language_data): Remove
4867 la_store_sym_names_in_linkage_form_p initializer.
4868 (c_language::store_sym_names_in_linkage_form_p): New member
4869 function.
4870 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4871 initializer.
4872 (asm_language_data): Likewise.
4873 (asm_language::store_sym_names_in_linkage_form_p): New member
4874 function.
4875 (minimal_language_data): Remove
4876 la_store_sym_names_in_linkage_form_p initializer.
4877 (minimal_language::store_sym_names_in_linkage_form_p): New member
4878 function.
4879 * d-lang.c (d_language_data): Remove
4880 la_store_sym_names_in_linkage_form_p initializer.
4881 * dwarf2/read.c (dwarf2_physname): Update call to
4882 store_sym_names_in_linkage_form_p.
4883 * f-lang.c (f_language_data): Remove
4884 la_store_sym_names_in_linkage_form_p initializer.
4885 * go-lang.c (go_language_data): Remove
4886 la_store_sym_names_in_linkage_form_p initializer.
4887 * language.c (unknown_language_data): Remove
4888 la_store_sym_names_in_linkage_form_p initializer.
4889 (unknown_language::store_sym_names_in_linkage_form_p): New member
4890 function.
4891 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4892 initializer.
4893 (auto_language::store_sym_names_in_linkage_form_p): New member
4894 function.
4895 * language.h (language_data): Remove
4896 la_store_sym_names_in_linkage_form_p member variable.
4897 (language_defn::store_sym_names_in_linkage_form_p): New member
4898 function.
4899 * m2-lang.c (m2_language_data): Remove
4900 la_store_sym_names_in_linkage_form_p initializer.
4901 * objc-lang.c (objc_language_data): Likewise.
4902 * opencl-lang.c (opencl_language_data): Likewise.
4903 * p-lang.c (pascal_language_data): Likewise.
4904 * rust-lang.c (rust_language_data): Likewise.
4905
4906 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-lang.c (ada_language_data): Remove string_lower_bound
4909 initializer.
4910 * c-lang.c (c_language_data): Likewise.
4911 (cplus_language_data): Likewise.
4912 (asm_language_data): Likewise.
4913 (minimal_language_data): Likewise.
4914 * d-lang.c (d_language_data): Likewise.
4915 * f-lang.c (f_language_data): Likewise.
4916 * go-lang.c (go_language_data): Likewise.
4917 * language.c (unknown_language_data): Likewise.
4918 (auto_language_data): Likewise.
4919 * language.h (language_data): Remove string_lower_bound field.
4920 (language_defn::string_lower_bound): New member function.
4921 * m2-lang.c (m2_language_data): Remove string_lower_bound
4922 initializer.
4923 (m2_language::string_lower_bound): New member function.
4924 * objc-lang.c (objc_language_data): Remove string_lower_bound
4925 initializer.
4926 * opencl-lang.c (opencl_language_data): Likewise.
4927 * p-lang.c (pascal_language_data): Likewise.
4928 * rust-lang.c (rust_language_data): Likewise.
4929 * valops.c (value_cstring): Update call to string_lower_bound.
4930 (value_string): Likewise.
4931 * value.c (allocate_repeated_value): Likewise.
4932
4933 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * valops.c (value_repeat): Fix incorrect argument name in comment.
4936
4937 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * ada-lang.c (ada_language_data): Remove c_style_arrays
4940 initializer.
4941 (ada_language::c_style_arrays_p): New member fuction.
4942 * c-lang.c (c_language_data): Remove c_style_arrays
4943 initializer.
4944 (cplus_language_data): Likewise.
4945 (asm_language_data): Likewise.
4946 (minimal_language_data): Likewise.
4947 * d-lang.c (d_language_data): Likewise.
4948 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4949 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4950 (f_language::c_style_arrays_p): New member function.
4951 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4952 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4953 * language.c (unknown_language_data): Remove c_style_arrays
4954 initializer.
4955 (auto_language_data): Likewise.
4956 * language.h (language_data): Remove c_style_arrays field.
4957 (language_defn::c_style_arrays_p): New member function.
4958 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4959 (m2_language::c_style_arrays_p): New member function.
4960 * objc-lang.c (objc_language_data): Remove c_style_arrays
4961 initializer.
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 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4966 and update local variable to a bool.
4967 * valops.c (value_cast): Update call to c_style_arrays_p.
4968 (value_array): Likewise.
4969 * value.c (coerce_array): Likewise.
4970
4971 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * ada-lang.c (ada_language_data): Remove la_language initializer.
4974 * c-lang.c (c_language_data): Likewise.
4975 (cplus_language_data): Likewise.
4976 (asm_language_data): Likewise.
4977 (minimal_language_data): Likewise.
4978 * d-lang.c (d_language_data): Likewise.
4979 * f-lang.c (f_language_data): Likewise.
4980 * go-lang.c (go_language_data): Likewise.
4981 * language.c (unknown_language_data): Likewise.
4982 (auto_language_data): Likewise.
4983 * language.h (language_data): Remove la_language field.
4984 (language_defn::language_defn): Initialise la_language field.
4985 (language_defn::la_language): New member variable.
4986 * m2-lang.c (m2_language_data): Remove la_language field.
4987 * objc-lang.c (objc_language_data): Likewise.
4988 * opencl-lang.c (opencl_language_data): Likewise.
4989 * p-lang.c (pascal_language_data): Likewise.
4990 * rust-lang.c (rust_language_data): Likewise.
4991
4992 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4993
4994 * ada-lang.c (ada_extensions): Delete, moved into
4995 ada_language::filename_extensions.
4996 (ada_language_data): Remove la_filename_extensions initializer.
4997 (ada_language::filename_extensions): New member function.
4998 * c-lang.c (c_extensions): Delete, moved into
4999 c_language::filename_extensions.
5000 (c_language_data): Remove la_filename_extensions initializer.
5001 (c_language::filename_extensions): New member function.
5002 (cplus_extensions): Delete, moved into
5003 cplus_language::filename_extensions.
5004 (cplus_language_data): Remove la_filename_extensions initializer.
5005 (cplus_language::filename_extensions): New member function.
5006 (asm_extensions): Delete, moved into
5007 asm_language::filename_extensions.
5008 (asm_language_data): Remove la_filename_extensions initializer.
5009 (asm_language::filename_extensions): New member function.
5010 (minimal_language_data): Remove la_filename_extensions
5011 initializer.
5012 * d-lang.c (d_extensions): Delete, moved into
5013 d_language::filename_extensions.
5014 (d_language_data): Remove la_filename_extensions initializer.
5015 (d_language::filename_extensions): New member function.
5016 * f-lang.c (f_extensions): Delete, moved into
5017 f_language::filename_extensions.
5018 (f_language_data): Remove la_filename_extensions initializer.
5019 (f_language::filename_extensions): New member function.
5020 * go-lang.c (go_language_data): Remove la_filename_extensions
5021 initializer.
5022 * language.c (add_set_language_command): Update now that
5023 filename_extensions returns a vector.
5024 (unknown_language_data): Remove la_filename_extensions
5025 initializer.
5026 (auto_language_data): Likewise.
5027 * language.h (language_data): Remove la_filename_extensions field.
5028 (language_defn::filename_extensions): New member function.
5029 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5030 initializer.
5031 * objc-lang.c (objc_extensions): Delete, moved into
5032 objc_language::filename_extensions.
5033 (objc_language_data): Remove la_filename_extensions initializer.
5034 (objc_language::filename_extensions): New member function.
5035 * opencl-lang.c (opencl_language_data): Remove
5036 la_filename_extensions initializer.
5037 * p-lang.c (pascal_extensions): Delete, moved into
5038 pascal_language::filename_extensions.
5039 (pascal_language_data): Remove la_filename_extensions initializer.
5040 (pascal_language::filename_extensions): New member function.
5041 * rust-lang.c (rust_extensions): Delete, moved into
5042 rust_language::filename_extensions.
5043 (rust_language_data): Remove la_filename_extensions initializer.
5044 (rust_language::filename_extensions): New member function.
5045 * symfile.c (add_filename_language): Add new assert.
5046
5047 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * ada-lang.c (ada_language_data): Remove la_name and
5050 la_natural_name initializers.
5051 (ada_language::name): New member function.
5052 (ada_language::natural_name): New member function.
5053 * c-lang.c (c_language_data): Remove la_name and
5054 la_natural_name initializers.
5055 (c_language::name): New member function.
5056 (c_language::natural_name): New member function.
5057 (cplus_language_data): Remove la_name and
5058 la_natural_name initializers.
5059 (cplus_language::name): New member function.
5060 (cplus_language::natural_name): New member function.
5061 (asm_language_data): Remove la_name and
5062 la_natural_name initializers.
5063 (asm_language::name): New member function.
5064 (asm_language::natural_name): New member function.
5065 (minimal_language_data): Remove la_name and
5066 la_natural_name initializers.
5067 (minimal_language::name): New member function.
5068 (minimal_language::natural_name): New member function.
5069 * compile/compile.c (compile_to_object): Update call to
5070 lanugage_defn::name.
5071 * d-lang.c (d_language_data): Remove la_name and
5072 la_natural_name initializers.
5073 (d_language::name): New member function.
5074 (d_language::natural_name): New member function.
5075 * expprint.c (print_subexp_standard): Update call to
5076 language_defn::name.
5077 (dump_raw_expression): Likewise
5078 (dump_prefix_expression): Likewise.
5079 * f-lang.c (f_language_data): Remove la_name and
5080 la_natural_name initializers.
5081 (f_language::name): New member function.
5082 (f_language::natural_name): New member function.
5083 * go-lang.c (go_language_data): Remove la_name and
5084 la_natural_name initializers.
5085 (go_language::name): New member function.
5086 (go_language::natural_name): New member function.
5087 * language.c (show_language_command): Update call to
5088 language_defn::name.
5089 (set_language_command): Likewise.
5090 (language_enum): Likewise.
5091 (language_str): Likewise.
5092 (add_set_language_command): Likewise, use
5093 language_defn::natural_name in the doc string.
5094 (unknown_language_data): Remove la_name and
5095 la_natural_name initializers.
5096 (unknown_language::name): New member function.
5097 (unknown_language::natural_name): New member function.
5098 (auto_language_data): Remove la_name and
5099 la_natural_name initializers.
5100 (auto_language::name): New member function.
5101 (auto_language::natural_name): New member function.
5102 (language_lookup_primitive_type_as_symbol): Update call to
5103 language_defn::name.
5104 * language.h (language_data): Remove la_name and la_natural_name
5105 member variables.
5106 (language_defn::name): New member function.
5107 (language_defn::natural_name): New member function.
5108 * m2-lang.c (m2_language_data): Remove la_name and
5109 la_natural_name initializers.
5110 (m2_language::name): New member function.
5111 (m2_language::natural_name): New member function.
5112 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5113 language_defn::natural_name.
5114 * objc-lang.c (objc_language_data): Remove la_name and
5115 la_natural_name initializers.
5116 (objc_language::name): New member function.
5117 (objc_language::natural_name): New member function.
5118 * opencl-lang.c (opencl_language_data): Remove la_name and
5119 la_natural_name initializers.
5120 (opencl_language::name): New member function.
5121 (opencl_language::natural_name): New member function.
5122 * p-lang.c (pascal_language_data): Remove la_name and
5123 la_natural_name initializers.
5124 (pascal_language::name): New member function.
5125 (pascal_language::natural_name): New member function.
5126 * rust-lang.c (rust_language_data): Remove la_name and
5127 la_natural_name initializers.
5128 (rust_language::name): New member function.
5129 (rust_language::natural_name): New member function.
5130 * symtab.c (lookup_language_this): Update call to
5131 language_defn::name.
5132
5133 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * ada-lang.c (ada_language_data): Remove la_name_of_this
5136 initializer.
5137 * ax-gdb.c (gen_expr): Update call to name_of_this.
5138 * c-exp.y (classify_name): Likewise.
5139 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5140 (cplus_language_data): Likewise.
5141 (cplus_language::name_of_this): New member function.
5142 (asm_language_data): Remove la_name_of_this initializer.
5143 (minimal_language_data): Likewise.
5144 * d-lang.c (d_language_data): Likewise.
5145 (d_language::name_of_this): New member function.
5146 * expprint.c (print_subexp_standard): Update call to name_of_this.
5147 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5148 * go-lang.c (go_language_data): Likewise.
5149 * language.c (unknown_language_data): Likewise.
5150 (unknown_language::name_of_this): New member function.
5151 (auto_language_data): Remove la_name_of_this initializer.
5152 (auto_language::name_of_this): New member function.
5153 * language.h (language_data): Delete la_name_of_this member
5154 variable.
5155 (language_defn::name_of_this): New member function.
5156 * m2-lang.c (m2_language_data): Remove la_name_of_this
5157 initializer.
5158 * objc-lang.c (objc_language_data): Likewise.
5159 (objc_language::name_of_this): New member function.
5160 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5161 initializer.
5162 * p-lang.c (pascal_language_data): Likewise.
5163 (pascal_language::name_of_this): New member function.
5164 * rust-lang.c (rust_language_data): Remove la_name_of_this
5165 initializer.
5166 * symtab.c (lookup_language_this): Update call to name_of_this.
5167 (lookup_symbol_aux): Likewise.
5168 * valops.c (value_of_this): Likewise.
5169
5170 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * ada-lang.c (ada_language_data): Remove
5173 la_struct_too_deep_ellipsis initializer.
5174 (ada_language::struct_too_deep_ellipsis): New member function.
5175 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5176 initializer.
5177 (cplus_language_data): Likewise.
5178 (asm_language_data): Likewise.
5179 (minimal_language_data): Likewise.
5180 * cp-valprint.c (cp_print_value): Update call to
5181 struct_too_deep_ellipsis.
5182 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5183 initializer.
5184 * f-lang.c (f_language_data): Likewise.
5185 (f_language::struct_too_deep_ellipsis): New member function.
5186 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5187 initializer.
5188 * language.c (unknown_language_data): Likewise.
5189 (auto_language_data): Likewise.
5190 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5191 member variable.
5192 (language_defn::struct_too_deep_ellipsis): New member function.
5193 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5194 initializer.Q
5195 * objc-lang.c (objc_language_data): Likewise.
5196 * opencl-lang.c (opencl_language_data): Likewise.
5197 * p-lang.c (pascal_language_data): Likewise.
5198 * rust-lang.c (rust_language_data): Likewise.
5199 * valprint.c (val_print_check_max_depth): Update call to
5200 struct_too_deep_ellipsis.
5201
5202 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5203
5204 * MAINTAINERS (Write After Approval): Add myself.
5205
5206 2020-09-15 Tom Tromey <tom@tromey.com>
5207
5208 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5209 Remove.
5210
5211 2020-09-15 Tom Tromey <tom@tromey.com>
5212
5213 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5214 and TYPE_CODE_METHODPTR cases.
5215 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5216 (c_value_print_inner): Update.
5217 * valprint.c (generic_value_print_memberptr): New function, from
5218 c_value_print_memberptr.
5219 (generic_value_print): Use it. Call cplus_print_method_ptr.
5220
5221 2020-09-15 Tom Tromey <tromey@adacore.com>
5222
5223 * python/python-internal.h (PyInt_FromLong): Remove define.
5224 * python/py-value.c (convert_value_from_python): Use
5225 gdb_py_object_from_longest.
5226 * python/py-type.c (typy_get_code): Use
5227 gdb_py_object_from_longest.
5228 * python/py-symtab.c (salpy_get_line): Use
5229 gdb_py_object_from_longest.
5230 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5231 gdb_py_object_from_longest.
5232 * python/py-record.c (recpy_gap_reason_code): Use
5233 gdb_py_object_from_longest.
5234 * python/py-record-btrace.c (recpy_bt_insn_size)
5235 (recpy_bt_func_level, btpy_list_count): Use
5236 gdb_py_object_from_longest.
5237 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5238 gdb_py_object_from_longest. Fix error handling.
5239 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5240 gdb_py_object_from_longest.
5241 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5242 gdb_py_object_from_longest.
5243 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5244 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5245 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5246
5247 2020-09-15 Tom Tromey <tromey@adacore.com>
5248
5249 * python/python.c (gdbpy_parameter_value): Use
5250 gdb_py_object_from_ulongest.
5251
5252 2020-09-15 Tom Tromey <tromey@adacore.com>
5253
5254 * python/py-infevents.c (create_register_changed_event_object):
5255 Use gdb_py_object_from_longest.
5256 * python/py-exitedevent.c (create_exited_event_object): Use
5257 gdb_py_object_from_longest.
5258
5259 2020-09-15 Tom Tromey <tromey@adacore.com>
5260
5261 * python/python.c (gdbpy_parameter_value): Use
5262 gdb_py_object_from_longest.
5263 * python/py-type.c (convert_field, typy_range): Use
5264 gdb_py_object_from_longest.
5265 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5266 gdb_py_object_from_longest.
5267 * python/py-lazy-string.c (stpy_get_length): Use
5268 gdb_py_object_from_longest.
5269 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5270 gdb_py_object_from_longest.
5271 * python/py-infevents.c (create_memory_changed_event_object): Use
5272 gdb_py_object_from_longest.
5273 * python/py-inferior.c (infpy_get_num): Use
5274 gdb_py_object_from_longest.
5275 (infpy_get_pid): Likewise.
5276
5277 2020-09-15 Tom Tromey <tromey@adacore.com>
5278
5279 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5280 defines.
5281 * python/py-value.c (valpy_long): Use
5282 gdb_py_object_from_ulongest.
5283 * python/py-symtab.c (salpy_get_pc): Use
5284 gdb_py_object_from_ulongest.
5285 (salpy_get_last): Likewise.
5286 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5287 gdb_py_object_from_ulongest.
5288 * python/py-lazy-string.c (stpy_get_address): Use
5289 gdb_py_object_from_ulongest.
5290 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5291 * python/py-arch.c (archpy_disassemble): Use
5292 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5293 error handling.
5294
5295 2020-09-15 Tom Tromey <tromey@adacore.com>
5296
5297 * python/python-internal.h (gdb_py_long_from_longest): Remove
5298 defines.
5299 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5300 * python/py-type.c (convert_field, typy_get_sizeof): Use
5301 gdb_py_object_from_longest.
5302 * python/py-record-btrace.c (btpy_list_index): Use
5303 gdb_py_object_from_longest.
5304
5305 2020-09-15 Tom Tromey <tromey@adacore.com>
5306
5307 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5308 * python/py-record.c (recpy_element_number): Use
5309 gdb_py_object_from_longest.
5310 (recpy_gap_number): Likewise.
5311
5312 2020-09-15 Tom Tromey <tromey@adacore.com>
5313
5314 * top.c (ui::ui): Update.
5315 (highest_ui_num): Remove.
5316 * top.h (struct ui) <num>: Remove.
5317
5318 2020-09-15 Tom Tromey <tromey@adacore.com>
5319
5320 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5321 * ui-style.c (ansi_regex_text): Now array.
5322 * rust-exp.y (number_regex_text): Now array.
5323 * linespec.c (linespec_quote_characters): Now array.
5324 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5325 Now arrays.
5326
5327 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5328
5329 * debuginfod-support.c (debuginfod_client_deleter): New.
5330 (debuginfod_client_up): New.
5331 (debuginfod_init): Return debuginfod_client_up.
5332 (debuginfod_source_query): Adjust.
5333 (debuginfod_debuginfo_query): Adjust.
5334
5335 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5336
5337 * debuginfod-support.c (debuginfod_source_query): Use
5338 make_unique_xstrdup.
5339
5340 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5343 with `type::instance_flags`.
5344
5345 2020-09-14 Michael Mullin <masmullin@gmail.com>
5346
5347 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5348 Remove baton parameter.
5349
5350 2020-09-14 Pedro Alves <pedro@palves.net>
5351
5352 * Makefile.in (SELFTESTS_SRCS): Add
5353 unittests/enum-flags-selftests.c.
5354 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5355 btrace_function_flags instead of enum btrace_function_flag.
5356 * compile/compile-c-types.c (convert_qualified): Use
5357 enum_flags::raw.
5358 * compile/compile-cplus-symbols.c (convert_one_symbol)
5359 (convert_symbol_bmsym):
5360 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5361 (compile_cplus_convert_struct_or_union_methods)
5362 (compile_cplus_instance::convert_qualified_base):
5363 * go-exp.y (parse_string_or_char): Add cast to int.
5364 * unittests/enum-flags-selftests.c: New file.
5365 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5366 type to btrace_thread_flags from btrace_thread_flag.
5367 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5368 local's type to btrace_thread_flags from btrace_thread_flag. Add
5369 cast in DEBUG call.
5370
5371 2020-09-14 Pedro Alves <pedro@palves.net>
5372
5373 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5374 * gdbtypes.c (address_space_name_to_int): Rename to ...
5375 (address_space_name_to_type_instance_flags): ... this.
5376 (address_space_int_to_name): Rename to ...
5377 (address_space_type_instance_flags_to_name): ... this.
5378 * gdbtypes.h (address_space_name_to_int): Rename to ...
5379 (address_space_name_to_type_instance_flags): ... this.
5380 (address_space_int_to_name): Rename to ...
5381 (address_space_type_instance_flags_to_name): ... this.
5382 * type-stack.c (type_stack::insert): Adjust to rename.
5383 * type-stack.h (type_stack::insert): Likewise.
5384
5385 2020-09-14 Pedro Alves <pedro@palves.net>
5386 Andrew Burgess <andrew.burgess@embecosm.com>
5387
5388 * avr-tdep.c (avr_address_class_type_flags): Return
5389 type_instance_flags.
5390 (avr_address_class_type_flags_to_name): Take a
5391 type_instance_flags.
5392 (avr_address_class_name_to_type_flags): Return bool and take a
5393 type_instance_flags.
5394 * d-lang.c (build_d_types): Use type::set_instance_flags.
5395 * ft32-tdep.c (ft32_address_class_type_flags): Return
5396 type_instance_flags.
5397 (ft32_address_class_type_flags_to_name): Take a
5398 type_instance_flags.
5399 (ft32_address_class_name_to_type_flags): Return bool and take a
5400 type_instance_flags.
5401 (ft32_gdbarch_init): Use type::set_instance_flags.
5402 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5403 * gdbarch.h, gdbarch.c: Regenerate.
5404 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5405 (address_class_name_to_type_flags): Use type_instance_flags and
5406 bool.
5407 * gdbtypes.c (address_space_name_to_int)
5408 (address_space_int_to_name, make_qualified_type): Use
5409 type_instance_flags.
5410 (make_qualified_type): Use type_instance_flags and
5411 type::set_instance_flags.
5412 (make_type_with_address_space, make_cv_type, make_vector_type)
5413 (check_typedef): Use type_instance_flags.
5414 (recursive_dump_type): Cast type_instance_flags to unsigned for
5415 printing.
5416 (copy_type_recursive): Use type::set_instance_flags.
5417 (gdbtypes_post_init): Use type::set_instance_flags.
5418 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5419 <m_instance_flags>: ... this.
5420 <instance_flags, set_instance_flags>: New methods.
5421 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5422 (SET_TYPE_INSTANCE_FLAGS): New.
5423 (address_space_name_to_int, address_space_int_to_name)
5424 (make_type_with_address_space): Pass flags using
5425 type_instance_flags instead of int.
5426 * stabsread.c (cleanup_undefined_types_noname): Use
5427 type::set_instance_flags.
5428 * s390-tdep.c (s390_address_class_type_flags): Return
5429 type_instance_flags.
5430 (s390_address_class_type_flags_to_name): Take a
5431 type_instance_flags.
5432 (s390_address_class_name_to_type_flags): Return bool and take a
5433 type_instance_flags.
5434 * type-stack.c (type_stack::follow_types): Use
5435 type_instance_flags.
5436 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5437
5438 2020-09-14 Tom Tromey <tromey@adacore.com>
5439
5440 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5441 * x86-tdep.c (x86_is_thunk_register_name)
5442 (x86_in_indirect_branch_thunk): Update.
5443 * sparc64-tdep.c (sparc64_fpu_register_names)
5444 (sparc64_cp0_register_names, sparc64_register_names)
5445 (sparc64_pseudo_register_names): Now const.
5446 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5447 cp0_registers_num>: Now const.
5448 * sparc-tdep.c (sparc_core_register_names)
5449 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5450 (sparc32_pseudo_register_names): Now const.
5451 (validate_tdesc_registers): Update.
5452 * rust-lang.c (rust_extensions): Now const.
5453 * p-lang.c (p_extensions): Now const.
5454 * objc-lang.c (objc_extensions): Now const.
5455 * nto-tdep.c (nto_thread_state_str): Now const.
5456 * moxie-tdep.c (moxie_register_names): Now const.
5457 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5458 Now const.
5459 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5460 (mips_linux_reg_names): Now const.
5461 (mips_gdbarch_init): Update.
5462 * microblaze-tdep.c (microblaze_register_names): Now const.
5463 * m68k-tdep.c (m68k_register_names): Now const.
5464 * m32r-tdep.c (m32r_register_names): Now const.
5465 * ia64-tdep.c (ia64_register_names): Now const.
5466 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5467 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5468 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5469 ymm_avx512_register_names, pkeys_register_names>: Now const.
5470 * i386-tdep.c (i386_register_names, i386_zmm_names)
5471 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5472 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5473 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5474 * f-lang.c (f_extensions): Now const.
5475 * d-lang.c (d_extensions): Now const.
5476 * csky-tdep.c (csky_register_names): Now const.
5477 * charset.c (default_charset_names, charset_enum): Now const.
5478 (_initialize_charset): Update.
5479 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5480 const.
5481 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5482 (bsd_uthread_solib_loaded): Update.
5483 (bsd_uthread_state): Now const.
5484 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5485 (amd64_ymm_avx512_names, amd64_ymmh_names)
5486 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5487 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5488 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5489 (amd64_dword_names): Now const.
5490 * agent.c (can_use_agent_enum): Now const.
5491 * ada-tasks.c (task_states, long_task_states): Now const.
5492 * ada-lang.c (known_runtime_file_name_patterns)
5493 (known_auxiliary_function_name_patterns, attribute_names)
5494 (standard_exc, ada_extensions): Now const.
5495
5496 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5497
5498 * bcache.h (struct bcache) <bcache>: Remove constructor.
5499 <m_hash_function, m_compare_function>: Remove.
5500 <~bcache>: Make virtual.
5501 <compare>: Remove static method, introduce virtual method.
5502 <default_hash>: Remove.
5503 <hash>: New virtual method.
5504 * bcache.c (bcache::expand_hash_table): Update.
5505 (bcache::insert): Update.
5506 (bcache::hash): New.
5507 (bcache::compare): Update comment and parameter names.
5508 * gdbtypes.c (types_deeply_equal): Update.
5509 * psymtab.h (struct psymbol_bcache): New struct.
5510 (class psymtab_storage) <psymtab_storage>: Make default.
5511 <psymbol_cache>: Change type to psymbol_bcache.
5512 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5513 (psymbol_hash): Change to...
5514 (psymbol_bcache::hash): ... this.
5515 (psymbol_compare): Change to...
5516 (psymbol_bcache::compare): ... this.
5517
5518 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5521 checking for initial lwp.
5522
5523 2020-09-14 Tom Tromey <tromey@adacore.com>
5524
5525 * m68k-tdep.c (m68k_extract_return_value): Use
5526 pointer_result_regnum.
5527 (m68k_store_return_value): Likewise.
5528 (m68k_reg_struct_return_p): Handle vectors and arrays.
5529 (m68k_return_value): Handle arrays.
5530 (m68k_svr4_return_value): Fix single-element aggregate handling.
5531 Handle long double. Adjust for embedded ABI.
5532 (m68k_svr4_init_abi): Set pointer_result_regnum.
5533 (m68k_embedded_init_abi): New function.
5534 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5535 (m68k_osabi_sniffer): New function.
5536 (_initialize_m68k_tdep): Register osabi sniffer.
5537 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5538 member.
5539
5540 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5541
5542 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5543 with gdb::unique_xmalloc_ptr<char>.
5544
5545 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * xml-support.h (xml_fetch_another): Change type to be a
5548 function_view.
5549 (xml_process_xincludes): Remove baton parameter.
5550 (xml_fetch_content_from_file): Change baton parameter to
5551 dirname.
5552 * xml-support.c (struct xinclude_parsing_data)
5553 <xinclude_parsing_data>: Remove baton parameter.
5554 <fetcher_baton>: Remove.
5555 (xinclude_start_include): Adjust.
5556 (xml_process_xincludes): Adjust.
5557 (xml_fetch_content_from_file): Replace baton parameter with
5558 dirname.
5559 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5560 (xml_init_syscalls_info): Use a lambda.
5561 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5562 (file_read_description_xml): Use a lambda.
5563 (fetch_available_features_from_target): Change baton parameter
5564 to target_ops.
5565 (target_read_description_xml): Use a lambda.
5566 (target_fetch_description_xml): Use a lambda.
5567 (string_read_description_xml): Update.
5568
5569 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5572 uses with type::endianity_is_not_default.
5573
5574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * gdbtypes.h (struct type) <endianity_is_not_default,
5577 set_endianity_is_not_default>: New methods.
5578 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5579 type::endianity_is_not_default, change all write call sites to
5580 use type::set_endianity_is_not_default.
5581
5582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5585 uses with type::is_fixed_instance.
5586
5587 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * gdbtypes.h (struct type) <is_fixed_instance,
5590 set_is_fixed_instance>: New methods.
5591 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5592 write call sites to use type::set_is_fixed_instance.
5593
5594 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5597 uses with type::is_gnu_ifunc.
5598
5599 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5602 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5603 use type::set_is_gnu_ifunc.
5604
5605 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5608 uses with type::stub_is_supported.
5609
5610 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5613 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5614 use type::set_stub_is_supported.
5615
5616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5619 uses with type::is_vector.
5620
5621 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5624 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5625 use type::set_is_vector.
5626
5627 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5630 uses with type::has_varargs.
5631
5632 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5635 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5636 use type::set_has_varargs.
5637
5638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5641 uses with type::is_prototyped.
5642
5643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5646 New methods.
5647 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5648 call sites to use type::set_is_prototyped.
5649
5650 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5653 uses with type::target_is_stub.
5654
5655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5658 New methods.
5659 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5660 sites to use type::set_target_is_stub.
5661
5662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbtypes.h (TYPE_STUB): Remove, replace all
5665 uses with type::is_stub.
5666
5667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5670 (TYPE_STUB): Use type::is_stub, change all write call sites to
5671 use type::set_is_stub.
5672
5673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5676 type::has_no_signedness.
5677
5678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (struct type) <has_no_signedness,
5681 set_has_no_signedness>: New methods.
5682 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5683 call sites to use type::set_has_no_signedness.
5684
5685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5688 type::is_unsigned.
5689
5690 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5693 methods.
5694 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5695 sites to use type::set_is_unsigned.
5696
5697 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5698 Adam Renquinha <arenquinha@cimeq.qc.ca>
5699
5700 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5701 pointer and stack frame offset when unwinding.
5702
5703 2020-09-13 Pedro Alves <pedro@palves.net>
5704
5705 * NEWS: Document "-break-insert --qualified".
5706 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5707
5708 2020-09-13 Pedro Alves <pedro@palves.net>
5709
5710 * linespec.c (classify_mtype, compare_msyms): Delete.
5711 (search_minsyms_for_name): Remove classification logic. Instead
5712 filter out trampoline symbols if we also found an external
5713 function of the same name.
5714
5715 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5716
5717 * NEWS: Create a new section for the next release branch.
5718 Rename the section of the current branch, now that it has
5719 been cut.
5720
5721 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5722
5723 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5724 * version.in: Bump version to 11.0.50.DATE-git.
5725
5726 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5727
5728 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5729
5730 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5731 Felix Willgerodt <Felix.Willgerodt@intel.com>
5732
5733 * gdbarch.sh: Added bfloat16 type.
5734 * gdbarch.c: Regenerated.
5735 * gdbarch.h: Regenerated.
5736 * gdbtypes.c (floatformats_bfloat16): New struct.
5737 (gdbtypes_post_init): Add builtin_bfloat16.
5738 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5739 (floatformats_bfloat16): New struct.
5740 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5741 (i386_ymm_type): Add field "v16_bfloat16"
5742 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5743 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5744 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5745 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5746 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5747 * features/i386/64bit-avx512.c: Regenerated.
5748 * features/i386/64bit-sse.xml: Add bfloat16 type.
5749 * features/i386/64bit-sse.c: Regenerated.
5750
5751 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5752
5753 * i386-tdep.c (i386_zmm_type): Fix field names.
5754 (i386_ymm_type): Fix field names.
5755
5756 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5757
5758 * breakpoint.c: Fix typo in the help message of the
5759 "set breakpoint condition-evaluation" command.
5760
5761 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5762
5763 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5764 * (nbsd_nat_target::pid_to_exec_file)
5765 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5766 (nbsd_nat_target::post_startup_inferior)
5767 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5768 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5769 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5770 * (nbsd_thread_lister): Remove.
5771
5772 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5773
5774 * fork-inferior.c (startup_inferior): Avoid double free.
5775
5776 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5777
5778 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5779 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5780
5781 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5782
5783 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5784 * netbsd-nat.c: Include <sys/ptrace.h>.
5785 * (netbsd_nat::enable_proc_events): Add.
5786
5787 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5788
5789 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5790 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5791 (netbsd_nat::for_each_thread): Add.
5792 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5793 "gdbsupport/common-debug.h".
5794 * (netbsd_nat::netbsd_thread_lister)
5795 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5796 (netbsd_nat::for_each_thread): Add.
5797
5798 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5799
5800 * netbsd-nat.h: Include <unistd.h>.
5801 * (netbsd_nat::pid_to_exec_file): Add.
5802 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5803 * (netbsd_nat::pid_to_exec_file) Add.
5804
5805 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5806
5807 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5808
5809 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5810
5811 * netbsd-nat.h: New file.
5812 * netbsd-nat.c: Likewise.
5813
5814 2020-09-09 Tom Tromey <tromey@adacore.com>
5815
5816 * ada-lang.c (remove_extra_symbols): Do not increment when
5817 removing an element
5818
5819 2020-09-08 Tom Tromey <tromey@adacore.com>
5820
5821 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5822
5823 2020-09-08 Tom Tromey <tromey@adacore.com>
5824
5825 PR win32/25302:
5826 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5827 (gdb_bfd_init_data): New function.
5828 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5829
5830 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5831
5832 * infrun.c (fetch_inferior_event): Use
5833 `switch_to_target_no_thread` to switch the target.
5834
5835 2020-09-06 Tom Tromey <tom@tromey.com>
5836
5837 * symfile.h (dwarf2_free_objfile): Don't declare.
5838
5839 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5840
5841 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5842 to match 16 byte real/complex type generated by Flang compiler.
5843
5844 2020-09-03 Tom de Vries <tdevries@suse.de>
5845
5846 PR breakpoint/26546
5847 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5848 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5849
5850 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * maint.c (index_digits): New function.
5853 (struct maint_print_section_data): Remove.
5854 (print_bfd_section_info): Remove print_data parameter, add arg
5855 and index_digits.
5856 (print_objfile_section_info): Likewise.
5857 (print_bfd_section_info_maybe_relocated): Likewise (plus
5858 objfile).
5859 (maintenance_info_sections): Adjust calls.
5860
5861 2020-09-02 Tom Tromey <tromey@adacore.com>
5862
5863 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5864 for null pointers.
5865 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5866
5867 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5868
5869 * bcache.h (struct bcache) <insert>: Change type of `added` to
5870 pointer to bool.
5871 * bcache.c (bcache::insert): Likewise.
5872 * gdbtypes.c (check_types_worklist): Adjust.
5873 * psymtab.c (add_psymbol_to_bcache): Adjust.
5874
5875 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5876
5877 * corelow.c (unordered_set): Include.
5878 (class core_target): Add field 'm_core_unavailable_mappings'.
5879 (core_target::build_file_mappings): Print only one warning
5880 per inaccessible file. Add unavailable/broken mappings
5881 to m_core_unavailable_mappings.
5882 (core_target::xfer_partial): Call...
5883 (core_target::xfer_memory_via_mappings): New method.
5884
5885 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5886
5887 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5888 type to bool.
5889
5890 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * dwarf2/read.c (struct field_info): Fix indentation.
5893
5894 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5897 ordering in comment.
5898 * frame.c (frame_id_eq): Fix indentation.
5899
5900 2020-08-31 Scott Linder <scott@scottlinder.com>
5901 Simon Marchi <simon.marchi@efficios.com>
5902
5903 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5904 inline frame ids in outer frame.
5905
5906 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5909 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5910 (outer_frame_id): Use FID_STACK_OUTER instead of
5911 FID_STACK_INVALID.
5912 (frame_id_p): Don't check for outer_frame_id.
5913
5914 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5917 regnum/frame in value. Call allocate_value_lazy.
5918 * frame.c (frame_unwind_register_value): Use
5919 val_print_not_saved.
5920
5921 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5922
5923 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5924
5925 2020-08-29 Pedro Alves <pedro@palves.net>
5926
5927 * progspace.c (print_program_space): Use all_inferiors. Switch to
5928 the inferior before calling target_pid_to_str.
5929
5930 2020-08-28 Tom Tromey <tom@tromey.com>
5931
5932 * xcoffread.c (xcoff_end_psymtab): Update comment.
5933 * dbxread.c (dbx_end_psymtab): Update comment.
5934
5935 2020-08-28 Tom de Vries <tdevries@suse.de>
5936
5937 PR breakpoint/26544
5938 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5939 event_location.
5940 (create_breakpoint): Same.
5941 (base_breakpoint_decode_location): Same.
5942 (bkpt_create_sals_from_location): Same.
5943 (bkpt_decode_location): Same.
5944 (bkpt_probe_create_sals_from_location): Same.
5945 (bkpt_probe_decode_location): Same.
5946 (tracepoint_create_sals_from_location): Same.
5947 (tracepoint_decode_location): Same.
5948 (tracepoint_probe_decode_location): Same.
5949 (strace_marker_create_sals_from_location): Same.
5950 (strace_marker_decode_location): Same.
5951 (create_sals_from_location_default): Same.
5952 (decode_location_default): Same.
5953 * breakpoint.h (struct breakpoint_ops): Same.
5954 (create_breakpoint): Same.
5955 * linespec.h (decode_line_full): Same.
5956 * linespec.c (decode_line_full): Same. Throw error if
5957 result.size () == 0.
5958
5959 2020-08-27 Pedro Alves <pedro@palves.net>
5960
5961 PR gdb/26524
5962 * breakpoint.c (until_break_fsm) <location_breakpoint,
5963 caller_breakpoint>: Delete fields.
5964 <breakpoints>: New field.
5965 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5966 two individual breakpoints.
5967 (until_break_fsm::should_stop): Loop over breakpoints in the
5968 breakpoint vector.
5969 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5970 vector.
5971 (until_break_command): Handle location expanding into multiple
5972 sals.
5973
5974 2020-08-27 Pedro Alves <pedro@palves.net>
5975
5976 PR gdb/26523
5977 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5978 bp_until breakpoints user-specified locations. Update intro
5979 comment.
5980
5981 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5984 gdb_bfd_sections): New.
5985 * maint.c (print_bfd_section_info): Change param type to
5986 maint_print_section_data.
5987 (print_objfile_section_info): Likewise.
5988 (print_bfd_section_info_maybe_relocated): Likewise.
5989 (maintenance_info_sections): Use gdb_bfd_sections.
5990
5991 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5992
5993 * MAINTAINERS: Add ARC target and maintainer.
5994
5995 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5996
5997 * configure.tgt: ARC support for GNU/Linux.
5998 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5999 * arc-linux-tdep.c: New file.
6000 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6001 * arc-tdep.c (arc_write_pc): Use it.
6002
6003 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6004
6005 * arc-tdep.c (arc_check_for_hardware_loop): New.
6006 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6007
6008 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6009
6010 * arc-tdep.h: Include "gdbarch.h".
6011
6012 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6013
6014 * arch/arc.h
6015 (arc_gdbarch_features): New class to stir the selection of target XML.
6016 (arc_create_target_description): Use FEATURES to choose XML target.
6017 (arc_lookup_target_description): Use arc_create_target_description
6018 to create _new_ target descriptions or return the already created
6019 ones if the FEATURES is the same.
6020 * arch/arc.c: Implementation of prototypes described above.
6021 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6022 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6023 * arc-tdep.c (*_feature_name): Make feature names consistent.
6024 (arc_register_feature): A new struct to hold information about
6025 registers of a particular target/feature.
6026 (arc_check_tdesc_feature): Check if XML provides registers in
6027 compliance with ARC_REGISTER_FEATURE structs.
6028 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6029 (determine_*_reg_feature_set): Which feature name to look for.
6030 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6031 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6032 to expected ISA enums to be used in arc_gdbarch_features structs.
6033 * features/Makefile (FEATURE_XMLFILES): Add new files.
6034 * gdb/features/arc/v1-aux.c: New file.
6035 * gdb/features/arc/v1-aux.xml: Likewise.
6036 * gdb/features/arc/v1-core.c: Likewise.
6037 * gdb/features/arc/v1-core.xml: Likewise.
6038 * gdb/features/arc/v2-aux.c: Likewise.
6039 * gdb/features/arc/v2-aux.xml: Likewise.
6040 * gdb/features/arc/v2-core.c: Likewise.
6041 * gdb/features/arc/v2-core.xml: Likewise.
6042 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6043
6044 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6045 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 PR m2/26372
6048 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6049 an assert. Remove single element array indexing pattern as the
6050 MULTI_SUBSCRIPT support will handle this case too.
6051
6052 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6053
6054 * value.h (valprint_check_validity): Move declaration from
6055 here...
6056 * valprint.h (valprint_check_validity): ... to here.
6057
6058 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * debug.h: New file.
6061 * debug.c (debug_prefixed_vprintf): New function.
6062 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6063 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6064
6065 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6066
6067 * infrun.h (infrun_debug_printf_1): New function declaration.
6068 (infrun_debug_printf): New macro.
6069 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6070 throughout.
6071 (infrun_debug_printf): New function.
6072 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6073 (handle_jit_event): Likewise.
6074
6075 2020-08-21 Mark Wielaard <mark@klomp.org>
6076
6077 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6078
6079 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * frame.c (enum class frame_id_status): New.
6082 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6083 (fprintf_frame): Update.
6084 (compute_frame_id): Set frame id status to "computing" on entry.
6085 Set it back to "not_computed" on failure and to "computed" on
6086 success.
6087 (get_frame_id): Assert the frame id is not being computed.
6088 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6089 (create_new_frame): Likewise.
6090 (frame_cleanup_after_sniffer): Update assert.
6091
6092 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * regcache.c (pid_ptid_regcache_map): New type.
6095 (target_ptid_regcache_map): Remove.
6096 (target_pid_ptid_regcache_map): New type.
6097 (regcaches): Change type to target_pid_ptid_regcache_map.
6098 (get_thread_arch_aspace_regcache): Update.
6099 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6100 case.
6101 (regcaches_size): Update.
6102 (regcache_count): Update.
6103 (registers_changed_ptid_target_pid_test): New.
6104 (_initialize_regcache): Register new test.
6105
6106 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * regcache.c (regcache_count): New.
6109 (struct regcache_test_data): New.
6110 (regcache_test_data_up): New.
6111 (populate_regcaches_for_test): New.
6112 (regcaches_test): Remove.
6113 (get_thread_arch_aspace_regcache_test): New.
6114 (registers_changed_ptid_all_test): New.
6115 (registers_changed_ptid_target_test): New.
6116 (registers_changed_ptid_target_ptid_test): New.
6117 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6118 (_initialize_regcache): Register new tests.
6119
6120 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6123 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6124 gdbarch and aspace parameter. Use current inferior's aspace.
6125 Validate regcache's arch value.
6126 (regcaches_test): Update.
6127
6128 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * regcache.c (regcaches_test): Call registers_changed.
6131
6132 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6133
6134 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6135
6136 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6137
6138 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6139 to find the end of prologue for flang compiled binaries.
6140 * arm-tdep.c (arm_skip_prologue): Likewise.
6141 * i386-tdep.c (i386_skip_prologue): Likewise.
6142 * producer.c (producer_is_llvm): New function.
6143 (producer_parsing_tests): Added new tests for clang/flang.
6144 * producer.h (producer_is_llvm): New declaration.
6145
6146 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * linux-nat.c (linux_nat_debug_printf): New function.
6149 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6150
6151 2020-08-18 Aaron Merey <amerey@redhat.com>
6152
6153 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6154 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6155 (CLIBS): Add DEBUGINFOD_LIBS.
6156
6157 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6158
6159 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6160 'gdbarch_num_regs'.
6161
6162 2020-08-17 Tom Tromey <tromey@adacore.com>
6163
6164 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6165 ada_get_decoded_value returns NULL.
6166
6167 2020-08-17 Tom Tromey <tromey@adacore.com>
6168
6169 * python/py-inferior.c (infpy_search_memory): Use
6170 gdb_py_object_from_ulongest.
6171 * python/py-infevents.c (create_inferior_call_event_object)
6172 (create_memory_changed_event_object): Use
6173 gdb_py_object_from_ulongest.
6174 * python/py-linetable.c (ltpy_entry_get_pc): Use
6175 gdb_py_object_from_ulongest.
6176
6177 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * loc.c (class symbol_needs_eval_context): Fix indentation.
6180
6181 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6184 bool.
6185
6186 2020-08-17 Tom de Vries <tdevries@suse.de>
6187
6188 PR gdb/26393
6189 * gdbtypes.c (dump_dynamic_prop): New function.
6190 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6191
6192 2020-08-15 Tom de Vries <tdevries@suse.de>
6193
6194 PR backtrace/26390
6195 * stack.c (print_frame_args): Temporarily set the selected
6196 frame to FRAME while printing the frame's arguments.
6197
6198 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6199
6200 PR breakpoints/26385
6201 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6202 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6203
6204 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6205
6206 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6207 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6208 and >= to check return value instead of == -1 and != -1.
6209
6210 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * utils.h (class gdb_argv) <as_array_view>: New method.
6213 * utils.c (gdb_argv_as_array_view_test): New.
6214 (_initialize_utils): Register selftest.
6215 * maint.c (maintenance_selftest): Use the new method.
6216
6217 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6218
6219 * target.h (supports_dumpcore, dumpcore): New
6220 function declarations.
6221 * target.c (supports_dumpcore, dumpcore): New
6222 functions.
6223 * target-delegates.c: Rebuild.
6224 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6225 and target_dumpcore ().
6226
6227 2020-08-13 Aaron Merey <amerey@redhat.com>
6228
6229 * debuginfod-support.c: Replace global variables with user_data.
6230
6231 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * maint.c (maintenance_selftest): Split args and pass array_view
6234 to run_tests.
6235
6236 2020-08-12 Luis Machado <luis.machado@linaro.org>
6237
6238 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6239 type's length.
6240 Use %s and pulongest to print the length.
6241
6242 2020-08-12 Pedro Alves <palves@redhat.com>
6243
6244 * NEWS: Move "Multi-target debugging support" item to the
6245 "Changes since GDB 9" section.
6246
6247 2020-08-12 Pedro Alves <palves@redhat.com>
6248
6249 PR gdb/26336
6250 * progspace.c (program_space::remove_objfile): Invalidate the
6251 frame cache.
6252
6253 2020-08-11 Tom de Vries <tdevries@suse.de>
6254
6255 * MAINTAINERS: Mark ms1 as deleted.
6256
6257 2020-08-10 Luis Machado <luis.machado@linaro.org>
6258
6259 PR gdb/26310
6260
6261 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6262 act accordingly.
6263 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6264 movz/str/stur/stp skipping behavior.
6265
6266 2020-08-10 Luis Machado <luis.machado@linaro.org>
6267
6268 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6269 struct user_sve_header instead of struct sve_context.
6270
6271 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * read.h (dwarf2_fetch_die_loc_sect_off,
6274 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6275 `void *` parameter with function_view.
6276 * read.c (dwarf2_fetch_die_loc_sect_off,
6277 dwarf2_fetch_die_loc_cu_off): Likewise.
6278 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6279 (per_cu_dwarf_call): Adjust.
6280 (get_frame_address_in_block_wrapper): Remove.
6281 (indirect_synthetic_pointer): Adjust.
6282 (get_ax_pc): Remove.
6283 (dwarf2_compile_expr_to_ax): Adjust.
6284
6285 2020-08-08 Tom de Vries <tdevries@suse.de>
6286
6287 PR build/26344
6288 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6289 constructor.
6290 * regcache.c (get_thread_arch_aspace_regcache): Same.
6291
6292 2020-08-07 Tom Tromey <tromey@adacore.com>
6293
6294 * ravenscar-thread.c
6295 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6296 New method.
6297 (ravenscar_thread_target::wait): Check
6298 runtime_initialized.
6299 (ravenscar_thread_target::prepare_to_store)
6300 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6301 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6302 (ravenscar_thread_target::stopped_by_watchpoint)
6303 (ravenscar_thread_target::stopped_data_address)
6304 (ravenscar_thread_target::core_of_thread): Use
6305 scoped_restore_current_thread and
6306 set_base_thread_from_ravenscar_task.
6307
6308 2020-08-07 Tom Tromey <tromey@adacore.com>
6309
6310 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6311
6312 2020-08-07 Tom Tromey <tromey@adacore.com>
6313
6314 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6315 update_inferior_ptid before update_thread_list.
6316 (temporarily_change_regcache_ptid): New class.
6317 (ravenscar_thread_target::fetch_registers)
6318 (ravenscar_thread_target::store_registers)
6319 (ravenscar_thread_target::prepare_to_store): Use base thread when
6320 forwarding operation.
6321
6322 2020-08-07 Tom Tromey <tromey@adacore.com>
6323
6324 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6325 "is_pid" case.
6326
6327 2020-08-07 Tom Tromey <tromey@adacore.com>
6328
6329 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6330 New methods.
6331 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6332 first.
6333 (ravenscar_thread_target::add_thread): Rename from
6334 ravenscar_add_thread.
6335 (ravenscar_thread_target::update_thread_list): Use a lambda.
6336 (ravenscar_thread_target::xfer_partial): New method.
6337
6338 2020-08-07 Tom Tromey <tromey@adacore.com>
6339
6340 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6341 gdb::function_view.
6342 (iterate_over_live_ada_tasks): Change type of argument.
6343 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6344 of argument.
6345
6346 2020-08-07 Tom Tromey <tromey@adacore.com>
6347
6348 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6349 Remove.
6350 (ravenscar_thread_target::extra_thread_info): Remove.
6351 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6352 defer to target beneath for non-Ravenscar threads.
6353
6354 2020-08-07 Tom Tromey <tromey@adacore.com>
6355
6356 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6357 get_base_thread_from_ravenscar_task>: Now methods.
6358 <m_cpu_map>: New member.
6359 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6360 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6361 (ravenscar_thread_target::task_is_currently_active): Update.
6362 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6363 Now a method.
6364 (ravenscar_thread_target::add_active_thread): Put initial thread
6365 into the m_cpu_map.
6366
6367 2020-08-07 Tom Tromey <tromey@adacore.com>
6368
6369 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6370 event_ptid.
6371
6372 2020-08-07 Tom Tromey <tromey@adacore.com>
6373
6374 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6375 runtime_initialized.
6376
6377 2020-08-07 Tom Tromey <tromey@adacore.com>
6378
6379 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6380 add_active_thread.
6381 (ravenscar_thread_target::add_active_thread): Now public.
6382 (ravenscar_inferior_created): Call add_active_thread after pushing
6383 the target.
6384
6385 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * regcache.c (ptid_regcache_map): New type.
6388 (target_ptid_regcache_map): New type.
6389 (regcaches): Change type to target_ptid_regcache_map.
6390 (get_thread_arch_aspace_regcache): Update to regcaches' new
6391 type.
6392 (regcache_thread_ptid_changed): Likewise.
6393 (registers_changed_ptid): Likewise.
6394 (regcaches_size): Likewise.
6395 (regcaches_test): Update.
6396 (regcache_thread_ptid_changed): Update.
6397 * regcache.h (regcache_up): New type.
6398 * gdbsupport/ptid.h (hash_ptid): New struct.
6399
6400 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * observable.h (thread_ptid_changed): Add parameter
6403 `process_stratum_target *`.
6404 * infrun.c (infrun_thread_ptid_changed): Add parameter
6405 `process_stratum_target *` and use it.
6406 (selftests): New namespace.
6407 (infrun_thread_ptid_changed): New function.
6408 (_initialize_infrun): Register selftest.
6409 * regcache.c (regcache_thread_ptid_changed): Add parameter
6410 `process_stratum_target *` and use it.
6411 (regcache_thread_ptid_changed): New function.
6412 (_initialize_regcache): Register selftest.
6413 * thread.c (thread_change_ptid): Pass target to
6414 thread_ptid_changed observable.
6415
6416 2020-08-06 Caroline Tice <cmtice@google.com>
6417
6418 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6419 (struct dwp_sections): Update field comments. Add loclists and
6420 rnglists fields.
6421 (struct virtual_v2_dwo_sections): Rename struct to
6422 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6423 size & offset fields for loclists and rnglists.
6424 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6425 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6426 skipping dummy type units.
6427 (create_dwp_hash_table): Update the large comment above the function to
6428 discuss Version 5 DWP files as well, with references. Update all the
6429 version checks in the function to check for version 5 as well. Add new
6430 section at the end to create dwp hash table for version 5.
6431 (create_dwp_v2_section): Rename function to
6432 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6433 Add V5 to error message text.
6434 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6435 into calls to create_dwp_v2_or_v5_section.
6436 (create_dwo_unit_in_dwp_v5): New function.
6437 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6438 check for version2; add else clause to handle version 5.
6439 (open_and_init_dwo_file): Add code to check dwarf version & only call
6440 create_debug_types_hash_table (with sections.types) if version is not 5;
6441 else call create_debug_type_hash_table, with sections.info.
6442 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6443 version 5.
6444 (dwarf2_locate_v5_dwp_sections): New function.
6445 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6446 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6447
6448 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * regcache.h (class regcache): Remove friend
6451 registers_changed_ptid.
6452 <regcache_thread_ptid_changed>: Remove.
6453 <regcaches>: Remove.
6454 * regcache.c (regcache::regcaches): Rename to...
6455 (regcaches): ... this. Make static.
6456 (get_thread_arch_aspace_regcache): Update.
6457 (regcache::regcache_thread_ptid_changed): Rename to...
6458 (regcache_thread_ptid_changed): ... this. Update.
6459 (class regcache_access): Remove.
6460 (regcaches_test): Update.
6461 (_initialize_regcache): Update.
6462 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6463 <forward_list>.
6464
6465 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * regcache.h (class regcache) <current_regcache>: Rename to...
6468 <regcaches>: ... this. Move doc here.
6469 * regcache.c (regcache::current_regcache) Rename to...
6470 (regcache::regcaches): ... this. Move doc to header.
6471 (get_thread_arch_aspace_regcache): Update.
6472 (regcache::regcache_thread_ptid_changed): Update.
6473 (registers_changed_ptid): Update.
6474 (class regcache_access) <current_regcache_size>: Rename to...
6475 <regcaches_size>: ... this.
6476 (current_regcache_test): Rename to...
6477 (regcaches_test): ... this.
6478 (_initialize_regcache): Update.
6479
6480 2020-08-06 Victor Collod <vcollod@nvidia.com>
6481
6482 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6483
6484 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6485
6486 * corelow.c (core_target::build_file_mappings): Don't output
6487 null pathname in warning.
6488
6489 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6490
6491 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6492 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6493 gdb.dwarf2/dw2-single-line-discriminators.exp,
6494 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6495
6496 2020-08-05 Tom Tromey <tromey@adacore.com>
6497
6498 PR rust/26197:
6499 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6500 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6501 Fix off-by-one and type size errors in ordinary case.
6502
6503 2020-08-05 Tom de Vries <tdevries@suse.de>
6504
6505 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6506 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6507
6508 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * frame.h (frame_id_p): Return bool.
6511 (frame_id_artificial_p): Return bool.
6512 (frame_id_eq): Return bool.
6513 (has_stack_frames): Return bool.
6514 (get_selected_frame): Fix typo in comment.
6515 (get_frame_pc_if_available): Return bool.
6516 (get_frame_address_in_block_if_available): Return bool.
6517 (get_frame_func_if_available): Return bool.
6518 (read_frame_register_unsigned): Return bool.
6519 (get_frame_register_bytes): Return bool.
6520 (safe_frame_unwind_memory): Return bool.
6521 (deprecated_frame_register_read): Return bool.
6522 (frame_unwinder_is): Return bool.
6523 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6524 bool.
6525 <this_id::p>: Likewise.
6526 <prev_p>: Likewise.
6527 (frame_stash_add): Return bool.
6528 (get_frame_id): Use bool.
6529 (frame_id_build_special) Use bool.
6530 (frame_id_build_unavailable_stack): Use bool.
6531 (frame_id_build): Use bool.
6532 (frame_id_p): Return bool, use true/false instead of 1/0.
6533 (frame_id_artificial_p): Likewise.
6534 (frame_id_eq): Likewise.
6535 (frame_id_inner): Likewise.
6536 (get_frame_func_if_available): Likewise.
6537 (read_frame_register_unsigned): Likewise.
6538 (deprecated_frame_register_read): Likewise.
6539 (get_frame_register_bytes): Likewise.
6540 (has_stack_frames): Likewise.
6541 (inside_main_func): Likewise.
6542 (inside_entry_func): Likewise.
6543 (get_frame_pc_if_available): Likewise.
6544 (get_frame_address_in_block_if_available): Likewise.
6545 (frame_unwinder_is): Likewise.
6546 (safe_frame_unwind_memory): Likewise.
6547 (frame_unwind_arch): Likewise.
6548
6549 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6550
6551 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6552 type to cached_copy_status.
6553 (fprintf_frame): Adjust.
6554 (get_frame_func_if_available): Adjust.
6555 (frame_cleanup_after_sniffer): Adjust.
6556
6557 2020-08-04 Mark Wielaard <mark@klomp.org>
6558
6559 * MAINTAINERS (Write After Approval): Update email address.
6560
6561 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6564 dynamic_prop::const_val.
6565
6566 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6567
6568 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6569 dynamic_prop::kind.
6570
6571 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6572
6573 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6574
6575 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6576
6577 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6578
6579 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6580 Jose E. Marchesi <jose.marchesi@oracle.com>
6581
6582 * configure.tgt: Add entry for bpf-*-*.
6583 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6584 (ALLDEPFILES): Add bpf-tdep.c.
6585 * bpf-tdep.c: New file.
6586 * MAINTAINERS: Add bpf target and maintainer.
6587 * NEWS: Mention the support for the new target.
6588
6589 2020-08-04 Tom de Vries <tdevries@suse.de>
6590
6591 PR symtab/23270
6592 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6593 Error.
6594
6595 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6596
6597 * syscalls/freebsd.xml: Regenerate.
6598
6599 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6600
6601 * syscalls/update-freebsd.sh: Fix usage and year range.
6602
6603 2020-08-03 Tom de Vries <tdevries@suse.de>
6604
6605 PR symtab/26333
6606 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6607 DW_LNE_lo_user/DW_LNE_hi_user range.
6608
6609 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6610
6611 PR ada/26318
6612 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6613 kind.
6614
6615 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6616
6617 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6618
6619 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6620
6621 * breakpoint.c (set_breakpoint_condition): Update the condition
6622 expressions after checking that the input condition string parses
6623 successfully and does not contain junk at the end.
6624
6625 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6626
6627 * breakpoint.c (set_breakpoint_condition): Update the
6628 condition string after parsing the new condition successfully.
6629
6630 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6631
6632 * proc-api.c (_STRUCTURED_PROC): Don't define.
6633 * proc-events.c: Likewise.
6634 * proc-flags.c: Likewise.
6635 * proc-why.c: Likewise.
6636 * procfs.c: Likewise.
6637
6638 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6639 * configure, config.in: Regenerate.
6640
6641 2020-07-30 Tom de Vries <tdevries@suse.de>
6642
6643 PR build/26320
6644 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6645 m_red/m_green/m_blue in a union.
6646
6647 2020-07-29 Tom de Vries <tdevries@suse.de>
6648
6649 PR tdep/26280
6650 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6651
6652 2020-07-28 Tom Tromey <tromey@adacore.com>
6653
6654 PR symtab/26270:
6655 * symtab.h (find_pc_partial_function_sym): Declare.
6656 * cli/cli-cmds.c (disassemble_command): Use
6657 find_pc_partial_function_sym. Check asm_demangle.
6658 * blockframe.c (cache_pc_function_sym): New global.
6659 (cache_pc_function_name): Remove.
6660 (clear_pc_function_cache): Update.
6661 (find_pc_partial_function_sym): New function, from
6662 find_pc_partial_function.
6663 (find_pc_partial_function): Rewrite using
6664 find_pc_partial_function_sym.
6665
6666 2020-07-28 Tom Tromey <tromey@adacore.com>
6667
6668 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6669 help. Add usage.
6670
6671 2020-07-28 Tom Tromey <tromey@adacore.com>
6672
6673 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6674 <DW_OP_GNU_variable_value>: Cast to address type.
6675
6676 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6677
6678 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6679 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6680 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6681 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6682 (nbsd_get_siginfo_type): New.
6683 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6684 (_initialize_nbsd_tdep): New.
6685
6686 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6687
6688 PR binutils/26301
6689 * configure: Regenerated.
6690
6691 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6692
6693 PR binutils/26301
6694 * configure: Regenerated.
6695
6696 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * python/py-frame.c: Remove 'user-regs.h' include.
6699 (frapy_read_register): Rewrite to make use of
6700 gdbpy_parse_register_id.
6701 * python/py-registers.c (gdbpy_parse_register_id): New function,
6702 moved here from python/py-unwind.c. Updated the return type, and
6703 also accepts register descriptor objects.
6704 * python/py-unwind.c: Remove 'user-regs.h' include.
6705 (pyuw_parse_register_id): Moved to python/py-registers.c.
6706 (unwind_infopy_add_saved_register): Update to use
6707 gdbpy_parse_register_id.
6708 (pending_framepy_read_register): Likewise.
6709 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6710
6711 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * python/py-registers.c: Add 'user-regs.h' include.
6714 (register_descriptor_iter_find): New function.
6715 (register_descriptor_iterator_object_methods): New static global
6716 methods array.
6717 (register_descriptor_iterator_object_type): Add pointer to methods
6718 array.
6719
6720 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6721
6722 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6723 for all architectures on FreeBSD 11.3 and later.
6724
6725 2020-07-27 Tom Tromey <tromey@adacore.com>
6726
6727 * gcore.h (load_corefile): Don't declare.
6728
6729 2020-07-27 Tom de Vries <tdevries@suse.de>
6730
6731 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6732 * config.in: Regenerate.
6733 * configure: Regenerate.
6734
6735 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6736
6737 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6738 ws2tcpip.h. When checking whether socklen_t type is defined, use
6739 ws2tcpip.h if it is available and sys/socket.h isn't.
6740 * configure: Regenerate.
6741 * config.in: Regenerate.
6742
6743 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 PR fortran/23051
6746 PR fortran/26139
6747 * valops.c (value_ind): Pass address to
6748 readjust_indirect_value_type.
6749 * value.c (readjust_indirect_value_type): Make parameter
6750 non-const, and add extra address parameter. Resolve original type
6751 before using it.
6752 * value.h (readjust_indirect_value_type): Update function
6753 signature and comment.
6754
6755 2020-07-25 Tom de Vries <tdevries@suse.de>
6756
6757 PR symtab/26243
6758 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6759 entries.
6760
6761 2020-07-24 Aaron Merey <amerey@redhat.com>
6762
6763 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6764 * configure: Rebuild.
6765
6766 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6767
6768 PR corefiles/26294
6769 * corelow.c (_initialize_corelow): Add period to help text
6770 for "maintenance print core-file-backed-mappings".
6771
6772 2020-07-23 Pedro Alves <pedro@palves.net>
6773
6774 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6775 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6776 meanwhile.
6777 * frame.c (frame_cache_generation, get_frame_cache_generation):
6778 New.
6779 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6780 (get_prev_frame_if_no_cycle): On exception, don't touch
6781 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6782 * frame.h (get_frame_cache_generation): Declare.
6783
6784 2020-07-23 Tom de Vries <tdevries@suse.de>
6785
6786 PR tui/26282
6787 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6788 New default constructor.
6789
6790 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6793 exclude non-statement entries.
6794
6795 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6796
6797 * NEWS (New commands): Mention new command
6798 "maintenance print core-file-backed-mappings".
6799
6800 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6801
6802 * corelow.c (gdbcmd.h): Include.
6803 (core_target::info_proc_mappings): New method.
6804 (get_current_core_target): New function.
6805 (maintenance_print_core_file_backed_mappings): New function.
6806 (_initialize_corelow): Add core-file-backed-mappings to
6807 "maint print" commands.
6808
6809 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6810
6811 * linux-tdep.c (dump_note_entry_p): New function.
6812 (linux_dump_mapping_p_ftype): New typedef.
6813 (linux_find_memory_regions_full): Add new parameter,
6814 should_dump_mapping_p.
6815 (linux_find_memory_regions): Adjust call to
6816 linux_find_memory_regions_full.
6817 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6818 call to linux_find_memory_regions_full.
6819
6820 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6821
6822 * corelow.c (solist.h, unordered_map): Include.
6823 (class core_target): Add field m_core_file_mappings and
6824 method build_file_mappings.
6825 (core_target::core_target): Call build_file_mappings.
6826 (core_target::~core_target): Free memory associated with
6827 m_core_file_mappings.
6828 (core_target::build_file_mappings): New method.
6829 (core_target::xfer_partial): Use m_core_file_mappings
6830 for memory transfers.
6831 * linux-tdep.c (linux_read_core_file_mappings): New
6832 function.
6833 (linux_core_info_proc_mappings): Rewrite to use
6834 linux_read_core_file_mappings.
6835 (linux_init_abi): Register linux_read_core_file_mappings.
6836
6837 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6838
6839 * arch-utils.c (default_read_core_file_mappings): New function.
6840 * arch-utils.c (default_read_core_file_mappings): Declare.
6841 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6842 * gdbarch.h, gdbarch.c: Regenerate.
6843
6844 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6845
6846 PR corefiles/25631
6847 * corelow.c (core_target:xfer_partial): Revise
6848 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6849 case after first checking the stratum beneath the core
6850 target.
6851 (has_all_memory): Return true.
6852 * target.c (raw_memory_xfer_partial): Revise comment
6853 regarding use of has_all_memory.
6854
6855 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6856
6857 * exec.h (section_table_xfer_memory): Revise declaration,
6858 replacing section name parameter with an optional callback
6859 predicate.
6860 * exec.c (section_table_xfer_memory): Likewise.
6861 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6862 of section_table_xfer_memory.
6863
6864 2020-07-22 Tom Tromey <tromey@adacore.com>
6865
6866 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6867 lookup_symbol_search_name.
6868
6869 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6870
6871 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6872 redundant local variable.
6873 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6874 reference, not pointer, update code accordingly.
6875
6876 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6877 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6878
6879 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6880 * jit.c (jit_breakpoint_re_set_internal): Use the
6881 `skip_jit_symbol_lookup` field.
6882
6883 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6884 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6885
6886 * jit.c (jit_read_descriptor): Define the descriptor address once,
6887 use twice.
6888 (jit_breakpoint_deleted): Move the declaration of the loop variable
6889 `iter` into the loop header.
6890 (jit_breakpoint_re_set_internal): Move the declaration of the local
6891 variable `objf_data` to the first point of definition.
6892 (jit_event_handler): Move the declaration of local variables
6893 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6894 Rename `objf` to `jited`.
6895
6896 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6897
6898 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6899 Remove.
6900 * jit.c (get_jiter_objfile_data): Update.
6901
6902 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6903 Simon Marchi <simon.marchi@polymtl.ca>
6904
6905 * jit.c (struct jit_program_space_data): Remove.
6906 (jit_program_space_key): Remove.
6907 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6908 stuff.
6909 (get_jit_program_space_data): Remove.
6910 (jit_breakpoint_deleted): Iterate on all of the program space's
6911 objfiles.
6912 (jit_inferior_init): Likewise.
6913 (jit_breakpoint_re_set_internal): Likewise. Also change return
6914 type to void.
6915 (jit_breakpoint_re_set): Pass current_program_space to
6916 jit_breakpoint_re_set_internal.
6917
6918 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6919
6920 * jit.h (struct jiter_objfile_data) <cached_code_address,
6921 jit_breakpoint>: Move to here from ...
6922 * jit.c (jit_program_space_data): ... here.
6923 (jiter_objfile_data::~jiter_objfile_data): Update.
6924 (jit_breakpoint_deleted): Update.
6925 (jit_breakpoint_re_set_internal): Update.
6926
6927 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6930 checks.
6931 (jit_read_descriptor): Remove NULL check.
6932 (jit_event_handler): Add an assertion.
6933
6934 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 * jit.h (struct jit_objfile_data): Split into...
6937 (struct jiter_objfile_data): ... this ...
6938 (struct jited_objfile_data): ... and this.
6939 * objfiles.h (struct objfile) <jit_data>: Remove.
6940 <jiter_data, jited_data>: New fields.
6941 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6942 (jiter_objfile_data::~jiter_objfile_data): ... this.
6943 (get_jit_objfile_data): Rename to ...
6944 (get_jiter_objfile_data): ... this.
6945 (add_objfile_entry): Update.
6946 (jit_read_descriptor): Use get_jiter_objfile_data.
6947 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6948 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6949 (jit_inferior_exit_hook): Use objfile's jited_data field.
6950
6951 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6952
6953 * jit.h: Forward-declare `struct minimal_symbol`.
6954 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6955 constructor, destructor, and an objfile* field.
6956 * jit.c (jit_objfile_data): Remove.
6957 (struct jit_objfile_data): Migrate from here to jit.h.
6958 (jit_objfile_data::~jit_objfile_data): New destructor
6959 implementation with code moved from free_objfile_data.
6960 (free_objfile_data): Delete.
6961 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6962 (jit_find_objf_with_entry_addr): Ditto.
6963 (jit_inferior_exit_hook): Ditto.
6964 (_initialize_jit): Remove the call to
6965 register_objfile_data_with_cleanup.
6966 * objfiles.h (struct objfile) <jit_data>: New field.
6967
6968 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6969
6970 * jit.h: Forward-declare `struct objfile`.
6971 (jit_event_handler): Add a second parameter, the JITer objfile.
6972 * jit.c (jit_read_descriptor): Change the signature to take the
6973 JITer objfile as an argument instead of the jit_program_space_data.
6974 (jit_inferior_init): Update the call to jit_read_descriptor.
6975 (jit_event_handler): Use the new JITer objfile argument when calling
6976 jit_read_descriptor.
6977 * breakpoint.c (handle_jit_event): Update the call to
6978 jit_event_handler to pass the JITer objfile.
6979
6980 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6981
6982 * gdbarch.c: Regenerate.
6983 * gdbarch.h: Regenerate.
6984 * gdbarch.sh (handle_segmentation_fault): Remove method.
6985 * infrun.c (handle_segmentation_fault): Remove.
6986 (print_signal_received_reason): Remove call to
6987 handle_segmentation_fault.
6988
6989 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6990
6991 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6992 Rename to sparc64_linux_report_signal_info and add siggnal
6993 argument.
6994 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6995 instead of sparc64_linux_handle_segmentation_fault.
6996
6997 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6998
6999 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7000 i386_linux_report_signal_info instead of
7001 i386_linux_handle_segmentation_fault.
7002 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7003 to i386_linux_report_signal_info and add siggnal argument.
7004 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7005 of i386_linux_handle_segmentation_fault.
7006 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7007 to i386_linux_report_signal_info and add siggnal argument.
7008
7009 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7010
7011 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7012 hook if present.
7013
7014 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7015
7016 * gdbarch.c: Regenerate.
7017 * gdbarch.h: Regenerate.
7018 * gdbarch.sh (report_signal_info): New method.
7019 * infrun.c (print_signal_received_reason): Invoke gdbarch
7020 report_signal_info hook if present.
7021
7022 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * python/py-registers.c : Add 'unordered_map' include.
7025 (gdbpy_new_reggroup): Renamed to...
7026 (gdbpy_get_reggroup): ...this. Update to only create register
7027 group descriptors when needed.
7028 (gdbpy_reggroup_iter_next): Update.
7029
7030 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * python/py-registers.c (gdbpy_register_object_data): New static
7033 global.
7034 (gdbpy_register_object_data_init): New function.
7035 (gdbpy_new_register_descriptor): Renamed to...
7036 (gdbpy_get_register_descriptor): ...this, and update to reuse
7037 existing register descriptors where possible.
7038 (gdbpy_register_descriptor_iter_next): Update.
7039 (gdbpy_initialize_registers): Register new gdbarch data.
7040
7041 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * linux-nat.c (stopped_pids): Make static.
7044
7045 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 PR ada/26235
7048 * gdbtypes.c (ada_discrete_type_low_bound,
7049 ada_discrete_type_high_bound): Handle undefined bounds.
7050
7051 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7052
7053 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7054 declaration.
7055 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7056 function.
7057
7058 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7059
7060 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7061 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7062 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7063 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7064 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7065 method.
7066
7067 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7068
7069 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7070 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7071 which are deprecated in Guile 3.0.
7072 * configure.ac (try_guile_versions): Add "guile-3.0".
7073 * configure (try_guile_versions): Regenerate.
7074 * NEWS: Update entry.
7075
7076 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7077 Doug Evans <dje@google.com>
7078
7079 PR gdb/21104
7080 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7081 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7082 USING_GUILE_BEFORE_2_2.
7083 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7084 Change type to 'scm_t_port_type *'.
7085 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7086 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7087 parameter and honor it. Update callers.
7088 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7089 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7090 functions.
7091 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7092 USING_GUILE_BEFORE_2_2.
7093 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7094 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7095 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7096 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7097 and 'SCM_PORT_TYPE'.
7098 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7099 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7100 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7101 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7102 [!USING_GUILE_BEFORE_2_2]: New functions.
7103 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7104 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7105 'gdbscm_memory_port_read'.
7106 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7107 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7108 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7109 function.
7110 (ioscm_init_memory_port): Remove.
7111 (ioscm_init_memory_port_stream): New function
7112 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7113 function.
7114 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7115 Return scm_from_uint (0).
7116 (gdbscm_set_memory_port_read_buffer_size_x)
7117 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7118 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7119 Return scm_from_uint (0).
7120 (gdbscm_set_memory_port_write_buffer_size_x)
7121 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7122 * configure.ac (try_guile_versions): Add "guile-2.2".
7123 * configure: Regenerate.
7124 * NEWS: Add entry.
7125
7126 2020-07-18 Tom Tromey <tom@tromey.com>
7127
7128 * linux-nat.c (linux_multi_process): Remove.
7129 (linux_nat_target::supports_multi_process): Return true.
7130
7131 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7134 (riscv_lookup_target_description): Return pointer out of
7135 unique_ptr.
7136 * target-descriptions.c (allocate_target_description): Add
7137 comment.
7138 (target_desc_deleter::operator()): Likewise.
7139 * target-descriptions.h (struct target_desc_deleter): Moved to
7140 gdbsupport/tdesc.h.
7141 (target_desc_up): Likewise.
7142
7143 2020-07-17 Tom Tromey <tromey@adacore.com>
7144
7145 * linux-nat.c (linux_nat_target::supports_non_stop)
7146 (linux_nat_target::always_non_stop_p): Use "true".
7147 (linux_nat_target::supports_disable_randomization): Use "true" and
7148 "false".
7149
7150 2020-07-16 Caroline Tice <cmtice@google.com>
7151
7152 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7153 (RNGLIST_HEADER_SIZE64): New constant definition.
7154 (struct dwop_section_names): Add rnglists_dwo.
7155 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7156 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7157 (struct dwo_sections): Add rnglists field.
7158 (read_attribut_reprocess): Add tag parameter.
7159 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7160 (cu_debug_rnglists_section): New function (decl & definition).
7161 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7162 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7163 die whose range is being checked; get rnglist section from
7164 cu_debug_rnglists_section, to get from either objfile or dwo file as
7165 appropriate. Add cases for DW_RLE_base_addressx,
7166 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7167 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7168 test inside if-condition and updating complaint message.
7169 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7170 dwarf2_rnglists_process.
7171 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7172 dwarf2_ranges_process.
7173 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7174 need_ranges_base and update comment appropriately. Also pass die tag
7175 to dwarf2_ranges_read.
7176 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7177 need_ranges_base and update comment appropriately. Also pass die tag
7178 to dwarf2_ranges_process.
7179 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7180 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7181 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7182 need_ranges_base and update comment appropriately. Also pass die tag
7183 to read_attribute_reprocess and dwarf2_ranges_read.
7184 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7185 and update function comment appropriately.
7186 (read_loclist_index): Call read_loclists_rnglists_header instead of
7187 read_loclist_header.
7188 (read_rnglist_index): New function.
7189 (read_attribute_reprocess): Add tag parameter. Add code for
7190 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7191 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7192
7193 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7194
7195 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7196 being resolved.
7197
7198 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * arch-utils.c (show_architecture): Update formatting of messages.
7201
7202 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * gdbtypes.h (struct type) <bounds>: Handle array and string
7205 types.
7206 * ada-lang.c (assign_aggregate): Use type::bounds on
7207 array/string type.
7208 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7209 * c-varobj.c (c_number_of_children): Likewise.
7210 (c_describe_child): Likewise.
7211 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7212 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7213 (f_type_print_base): Likewise.
7214 * f-valprint.c (f77_array_offset_tbl): Likewise.
7215 (f77_get_upperbound): Likewise.
7216 (f77_print_array_1): Likewise.
7217 * guile/scm-type.c (gdbscm_type_range): Likewise.
7218 * m2-typeprint.c (m2_array): Likewise.
7219 (m2_is_long_set_of_type): Likewise.
7220 * m2-valprint.c (get_long_set_bounds): Likewise.
7221 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7222 * python/py-type.c (typy_range): Likewise.
7223 * rust-lang.c (rust_internal_print_type): Likewise.
7224 * type-stack.c (type_stack::follow_types): Likewise.
7225 * valarith.c (value_subscripted_rvalue): Likewise.
7226 * valops.c (value_cast): Likewise.
7227
7228 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7229
7230 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7231 callers to use the equivalent accessor methods.
7232
7233 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7236 (struct type) <bit_stride>: New method.
7237 (TYPE_BIT_STRIDE): Remove.
7238 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7239
7240 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7241
7242 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7243 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7244 callers to use the equivalent accessor methods instead.
7245
7246 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7249 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7250 callers to use the equivalent accessor methods instead.
7251
7252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7255 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7256 to use dynamic_prop::kind.
7257
7258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7261 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7262 to get the bound property's kind and check against
7263 PROP_UNDEFINED.
7264
7265 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7266
7267 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7268 all callers to use type::range_bounds followed by
7269 dynamic_prop::{low,high}.
7270
7271 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7274 const_val, set_const_val, baton, set_locexpr, set_loclist,
7275 set_addr_offset, variant_parts, set_variant_parts,
7276 original_type, set_original_type>: New methods.
7277 <kind>: Rename to...
7278 <m_kind>: ... this. Update all users to use the new methods
7279 instead.
7280 <data>: Rename to...
7281 <m_data>: ... this. Update all users to use the new methods
7282 instead.
7283
7284 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * gdbtypes.c (get_discrete_bounds): Return failure if
7287 the range type's bounds are not both defined and constant
7288 values.
7289 (get_array_bounds): Update comment. Remove undefined bound check.
7290
7291 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7292
7293 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7294 the type::bounds method directly.
7295
7296 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7299 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7300 are used to set the range type's bounds to use set_bounds.
7301
7302 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7303
7304 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7305
7306 2020-07-10 Pedro Alves <pedro@palves.net>
7307
7308 * gdbthread.h (inferior_ref): Define.
7309 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7310 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7311 * thread.c
7312 (scoped_restore_current_thread::restore):
7313 Adjust to gdb::ref_ptr.
7314 (scoped_restore_current_thread::~scoped_restore_current_thread):
7315 Remove manual decref handling.
7316 (scoped_restore_current_thread::scoped_restore_current_thread):
7317 Adjust to use
7318 inferior_ref::new_reference/thread_info_ref::new_reference.
7319 Incref the thread before calling get_frame_id instead of after.
7320 Let TARGET_CLOSE_ERROR propagate.
7321
7322 2020-07-10 Pedro Alves <pedro@palves.net>
7323
7324 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7325 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7326 NOT_AVAILABLE_ERROR.
7327 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7328 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7329
7330 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7331 Pedro Alves <pedro@palves.net>
7332
7333 PR gdb/26199
7334 * infrun.c (threads_are_resumed_pending_p): Delete.
7335 (do_target_wait): Remove threads_are_executing and
7336 threads_are_resumed_pending_p checks from the inferior_matches
7337 lambda. Update comments.
7338
7339 2020-07-10 Pedro Alves <pedro@palves.net>
7340
7341 PR gdb/26199
7342 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7343 executing threads.
7344
7345 2020-07-10 Pedro Alves <pedro@palves.net>
7346
7347 PR gdb/26199
7348 * infrun.c (handle_no_resumed): Handle multiple targets.
7349
7350 2020-07-10 Pedro Alves <pedro@palves.net>
7351
7352 PR gdb/26199
7353 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7354 target_is_async_p.
7355
7356 2020-07-10 Pedro Alves <pedro@palves.net>
7357
7358 PR gdb/26199
7359 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7360 threads, not all threads.
7361
7362 2020-07-10 Pedro Alves <pedro@palves.net>
7363
7364 PR gdb/26199
7365 * remote.c (remote_target::open_1): Pass remote target pointer as
7366 data to create_async_event_handler.
7367 (remote_async_inferior_event_handler): Mark async event handler
7368 before returning if the remote target still has either pending
7369 events or unacknowledged notifications.
7370
7371 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7372
7373 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7374 declaration.
7375 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7376 function.
7377
7378 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7379
7380 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7381 inferior_ptid.
7382
7383 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7384
7385 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7386 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7387 AT_FREEBSD_PS_STRINGS.
7388
7389 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7390
7391 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7392 of debugfile path on Windows.
7393
7394 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7395
7396 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7397 argument to 'data'.
7398
7399 2020-07-08 Tom Tromey <tromey@adacore.com>
7400
7401 * ada-lang.c (ada_exception_message_1): Use read_memory.
7402
7403 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7404
7405 PR python/22748
7406 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7407 special handling for inline frames.
7408 * findvar.c (value_of_register_lazy): Skip inline frames when
7409 creating lazy register values.
7410 * frame.c (frame_id_computed_p): Delete definition.
7411 * frame.h (frame_id_computed_p): Delete declaration.
7412
7413 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * NEWS: Mention additions to Python API.
7416 * python/py-arch.c (archpy_register_groups): New function.
7417 (arch_object_methods): Add 'register_groups' method.
7418 * python/py-registers.c (reggroup_iterator_object): New struct.
7419 (reggroup_object): New struct.
7420 (gdbpy_new_reggroup): New function.
7421 (gdbpy_reggroup_to_string): New function.
7422 (gdbpy_reggroup_name): New function.
7423 (gdbpy_reggroup_iter): New function.
7424 (gdbpy_reggroup_iter_next): New function.
7425 (gdbpy_new_reggroup_iterator): New function
7426 (gdbpy_initialize_registers): Register new types.
7427 (reggroup_iterator_object_type): Define new Python type.
7428 (gdbpy_reggroup_getset): New static global.
7429 (reggroup_object_type): Define new Python type.
7430 * python/python-internal.h
7431
7432 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7435 * python/py-arch.c (archpy_registers): New function.
7436 (arch_object_methods): Add 'registers' method.
7437 * python/py-registers.c: New file.
7438 * python/python-internal.h
7439 (gdbpy_new_register_descriptor_iterator): Declare.
7440 (gdbpy_initialize_registers): Declare.
7441 * python/python.c (do_start_initialization): Call
7442 gdbpy_initialize_registers.
7443 * NEWS: Mention additions to the Python API.
7444
7445 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7446
7447 * NEWS: Mention new Python API method.
7448 * python/py-unwind.c (pending_framepy_architecture): New function.
7449 (pending_frame_object_methods): Add architecture method.
7450
7451 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 * gdbarch.c: Regenerate.
7454 * gdbarch.h: Regenerate.
7455 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7456 (gdbarch_data): Use internal_error for the case where
7457 deprecated_set_gdbarch_data was originally needed.
7458 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7459 and use passed in obstack.
7460 (libunwind_frame_set_descr): Should no longer get back NULL from
7461 gdbarch_data.
7462 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7463 type.
7464 * user-regs.c (user_regs_init): Update parameters, and use passed
7465 in obstack.
7466 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7467 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7468
7469 2020-07-06 Tom de Vries <tdevries@suse.de>
7470
7471 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7472 End-Of-Sequence in lte_is_less_than.
7473 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7474 "gdb: Don't reorder line table entries too much when sorting".
7475
7476 2020-07-06 Tom de Vries <tdevries@suse.de>
7477
7478 PR tui/26205
7479 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7480
7481 2020-07-05 Tom de Vries <tdevries@suse.de>
7482
7483 PR build/26187
7484 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7485 std::uncaught_exceptions instead of deprecated
7486 std::uncaught_exception.
7487
7488 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7489
7490 * macroexp.h (macro_stringify): Return
7491 gdb::unique_xmalloc_ptr<char>.
7492 * macroexp.c (macro_stringify): Likewise.
7493 * macrotab.c (fixup_definition): Update.
7494
7495 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7496
7497 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7498 (lex_one_token): Update.
7499 * macroexp.c (struct macro_buffer) <release>: Return
7500 gdb::unique_xmalloc_ptr<char>.
7501 (macro_stringify): Update.
7502 (macro_expand): Update.
7503 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7504 * macroexp.h (macro_expand_next): Likewise.
7505
7506 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * macroexp.h (macro_lookup_ftype): Remove.
7509 (macro_expand, macro_expand_once, macro_expand_next): Remove
7510 lookup function parameters, add scope parameter.
7511 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7512 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7513 * macroscope.h (standard_macro_lookup): Change parameter type
7514 to macro_scope.
7515 * macroscope.c (standard_macro_lookup): Likewise.
7516 * c-exp.y (lex_one_token): Update.
7517 * macrocmd.c (macro_expand_command): Likewise.
7518 (macro_expand_once_command): Likewise.
7519
7520 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7521
7522 * inf-loop.c (inferior_event_handler): Remove client_data param.
7523 * inf-loop.h (inferior_event_handler): Likewise.
7524 * infcmd.c (step_1): Adjust.
7525 * infrun.c (proceed): Adjust.
7526 (fetch_inferior_event): Remove client_data param.
7527 (infrun_async_inferior_event_handler): Adjust.
7528 * infrun.h (fetch_inferior_event): Remove `void *` param.
7529 * linux-nat.c (handle_target_event): Adjust.
7530 * record-btrace.c (record_btrace_handle_async_inferior_event):
7531 Adjust.
7532 * record-full.c (record_full_async_inferior_event_handler):
7533 Adjust.
7534 * remote.c (remote_async_inferior_event_handler): Adjust.
7535
7536 2020-07-01 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7539 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7540
7541 2020-07-01 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7544 tui_gen_win_info.
7545 (tui_win_info::make_window): Merge with
7546 tui_gen_win_info::make_window.
7547 (tui_win_info::make_visible): Move from tui_gen_win_info.
7548 * tui/tui-win.c (tui_win_info::max_width): Move from
7549 tui_gen_win_info.
7550 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7551 type.
7552 <window_factory>: Likewise.
7553 * tui/tui-layout.c (tui_win_info::resize): Move from
7554 tui_gen_win_info.
7555 (make_standard_window): Change return type.
7556 (get_locator_window, tui_get_window_by_name): Likewise.
7557 (tui_layout_window::apply): Remove a cast.
7558 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7559 (struct tui_win_info): Merge with tui_gen_win_info.
7560 (struct tui_gen_win_info): Remove.
7561
7562 2020-07-01 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-stack.h (struct tui_locator_window): Derive from
7565 tui_win_info.
7566 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7567 <can_box>: New method.
7568
7569 2020-07-01 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7572
7573 2020-07-01 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-regs.c (tui_data_window::display_registers_from)
7576 (tui_data_window::display_registers_from)
7577 (tui_data_window::first_data_item_displayed)
7578 (tui_data_window::delete_data_content_windows): Update.
7579 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7580 Remove.
7581 (tui_data_window::check_register_values): Update.
7582 (tui_data_item_window::rerender): Add parameters. Update.
7583 (tui_data_item_window::refresh_window): Remove.
7584 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7585 virtual.
7586 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7587 tui_gen_win_info.
7588 <refresh_window, max_height, min_height>: Remove.
7589 <rerender>: Add parameters.
7590 <x, y, visible>: New members.
7591 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7592 <m_item_width>: New member.
7593
7594 2020-07-01 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-regs.c (tui_data_window::show_register_group)
7597 (tui_data_window::check_register_values): Update.
7598 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7599 from item_no.
7600
7601 2020-07-01 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7604 useless "if".
7605
7606 2020-07-01 Tom Tromey <tom@tromey.com>
7607
7608 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7609 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7610
7611 2020-07-01 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7614 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7615 (struct tui_line_or_address): Move from tui-data.h.
7616 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7617 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7618 (tui_cmd_window, tui_source_window_base, tui_source_window)
7619 (tui_disasm_window): Don't declare.
7620 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7621 to tui-winsource.h.
7622 (SINGLE_KEY): Move to tui-stack.c.
7623
7624 2020-07-01 Tom Tromey <tom@tromey.com>
7625
7626 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7627 std::string.
7628 * tui/tui-regs.c (class tab_expansion_file): New.
7629 (tab_expansion_file::write): New method.
7630 (tui_register_format): Change return type. Use
7631 tab_expansion_file.
7632 (tui_get_register, tui_data_window::display_registers_from)
7633 (tui_data_item_window::rerender): Update.
7634 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7635 * tui/tui-io.c (tui_expand_tabs): Remove.
7636
7637 2020-07-01 Tom Tromey <tom@tromey.com>
7638
7639 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7640
7641 2020-07-01 Fangrui Song <maskray@google.com>
7642
7643 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7644
7645 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7646
7647 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7648 forms for DW_AT_associated and DW_AT_allocated attributes,
7649 which is already checked in function attr_to_dynamic_prop.
7650
7651 2020-06-30 Tom Tromey <tromey@adacore.com>
7652
7653 * dwarf2/read.c (quirk_rust_enum): Correctly call
7654 alloc_rust_variant for default-less enum.
7655
7656 2020-06-30 Tom Tromey <tromey@adacore.com>
7657
7658 PR build/26183:
7659 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7660 gdb::to_string.
7661
7662 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7665 * gdbarch.h: Re-generate.
7666
7667 2020-06-28 Tom Tromey <tom@tromey.com>
7668
7669 * command.h (cmd_types): Remove.
7670 (cmd_type): Don't declare.
7671 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7672 typedef.
7673 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7674 * cli/cli-decode.c (cmd_type): Remove.
7675
7676 2020-06-27 Pedro Alves <palves@redhat.com>
7677
7678 * fork-child.c (prefork_hook): Adjust.
7679 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7680 Delete.
7681 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7682 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7683 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7684 Remove declarations.
7685 (struct inferior) <set_tty, tty>: New methods.
7686 (struct inferior) <terminal>: Rename to ...
7687 (struct inferior) <m_terminal>: ... this and make private.
7688 * main.c (captured_main_1): Adjust.
7689 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7690 (mi_cmd_inferior_tty_show): Adjust.
7691 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7692 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7693
7694 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7695
7696 * configure.ac: Add --enable-libctf: handle --disable-static
7697 properly.
7698 * acinclude.m4: sinclude ../config/enable.m4.
7699 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7700 (LIBCTF): Substitute in.
7701 (CTF_DEPS): New, likewise.
7702 (CLIBS): libctf needs symbols from libbfd: move earlier.
7703 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7704 flags.
7705 * ctfread.c: Surround in ENABLE_LIBCTF.
7706 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7707 * configure: Regenerate.
7708 * config.in: Likewise.
7709
7710 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7711
7712 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7713
7714 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7715
7716 * inferior.h (struct inferior) <terminal>: Change type to
7717 gdb::unique_xmalloc_ptr<char>.
7718 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7719 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7720 field, adjust to unique pointer.
7721 (get_inferior_io_terminal): Adjust to unique pointer.
7722
7723 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7724
7725 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7726 registers, not just the known core set of registers.
7727
7728 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7731 fflags, frm, and fcsr registers.
7732 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7733 restore groups.
7734 (riscv_tdesc_unknown_reg): New function.
7735 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7736 tdesc_use_registers.
7737 * riscv-tdep.h (struct gdbarch_tdep): Add
7738 unknown_csrs_first_regnum, unknown_csrs_count,
7739 duplicate_fflags_regnum, duplicate_frm_regnum, and
7740 duplicate_fcsr_regnum fields.
7741
7742 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7745 callback, use the callback (when not null) to help number unknown
7746 registers.
7747 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7748 (tdesc_use_registers): Add extra parameter to declaration.
7749
7750 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7753 in the file.
7754 (class riscv_pending_register_alias): Likewise.
7755 (riscv_register_feature::register_info): Change 'required_p' field
7756 to 'required', and change its type. Add 'check' member function.
7757 (riscv_register_feature::register_info::check): Define new member
7758 function.
7759 (riscv_xreg_feature): Change initialisation of 'required' field.
7760 (riscv_freg_feature): Likewise.
7761 (riscv_virtual_feature): Likewise.
7762 (riscv_csr_feature): Likewise.
7763 (riscv_check_tdesc_feature): Take extra parameter, the csr
7764 tdesc_feature, rewrite the function to use the new
7765 riscv_register_feature::register_info::check function.
7766 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7767
7768 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * features/Makefile: Remove all references to the deleted files
7771 below.
7772 * features/riscv/32bit-csr.c: Deleted.
7773 * features/riscv/32bit-csr.xml: Deleted.
7774 * features/riscv/64bit-csr.c: Deleted.
7775 * features/riscv/64bit-csr.xml: Deleted.
7776 * features/riscv/rebuild-csr-xml.sh: Deleted.
7777
7778 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7779
7780 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7781 whitespace error for declaration of names member variable.
7782 (struct riscv_register_feature): Add new prefer_first_name member
7783 variable, and fix whitespace error in declaration of registers.
7784 (riscv_xreg_feature): Initialize prefer_first_name field.
7785 (riscv_freg_feature): Likewise.
7786 (riscv_virtual_feature): Likewise.
7787 (riscv_csr_feature): Likewise.
7788 (riscv_register_name): Expand on comments. Remove register name
7789 modifications for CSR and virtual registers.
7790
7791 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7792
7793 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7794 errors.
7795
7796 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7799 riscv-opc.h.
7800 (class riscv_pending_register_alias): New class.
7801 (riscv_check_tdesc_feature): Take vector of pending aliases and
7802 populate it as appropriate.
7803 (riscv_setup_register_aliases): Delete.
7804 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7805 to riscv_check_tdesc_feature in all cases. Use the vector to
7806 create the register aliases.
7807
7808 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7809
7810 * sol2-tdep.c (sol2_static_transform_name): Remove.
7811 (sol2_init_abi): Don't register it.
7812 * gdbarch.sh (static_transform_name): Remove.
7813 * gdbarch.c, gdbarch.h: Regenerate.
7814
7815 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7816 gdbarch_static_transform_name.
7817 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7818 * stabsread.c (define_symbol) <'X'>: Remove.
7819 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7820 handling.
7821 <'V'>: Likewise.
7822 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7823 <'S'>: Remove call to gdbarch_static_transform_name.
7824
7825 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7826
7827 * procfs.c (procfs_pre_trace): New function.
7828 (procfs_target::create_inferior): Pass it to fork_inferior.
7829
7830 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7831
7832 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7833 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7834 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7835 sol2-tdep.o, sparc-sol2-tdep.o.
7836 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7837 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7838 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7839 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7840
7841 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7842
7843 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7844 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7845 Call sol2_init_abi.
7846 Remove calls to set_gdbarch_skip_solib_resolver,
7847 set_gdbarch_core_pid_to_str.
7848 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7849 (i386_sol2_static_transform_name): Remove.
7850 (i386_sol2_init_abi): Call sol2_init_abi.
7851 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7852 set_gdbarch_static_transform_name,
7853 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7854 Use sol2_sigtramp_p.
7855 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7856 (sol2_sigtramp_p): New function.
7857 (sol2_static_transform_name): New function.
7858 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7859 (sol2_init_abi): New function.
7860 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7861 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7862 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7863 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7864 (sparc_sol2_static_transform_name): Remove.
7865 (sparc32_sol2_init_abi): Call sol2_init_abi.
7866 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7867 set_gdbarch_static_transform_name,
7868 set_gdbarch_skip_solib_resolver,
7869 set_gdbarch_core_pid_to_str.
7870 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7871 (sparc_sol2_static_transform_name): Remove
7872 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7873 call sol2_sigtramp_p.
7874 (sparc64_sol2_init_abi): Call sol2_init_abi.
7875 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7876 set_gdbarch_static_transform_name,
7877 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7878
7879 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7880
7881 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7882 * exec.c (validate_exec_file): If from_tty, set both
7883 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7884 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7885 and from_tty, unconditionally ask a confirmation.
7886
7887 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7888
7889 * target-descriptions.c (tdesc_architecture_name): Protect against
7890 NULL pointer dereference.
7891 (maint_print_xml_tdesc_cmd): New function.
7892 (_initialize_target_descriptions): Register new 'maint print
7893 xml-tdesc' command and give it the filename completer.
7894 * NEWS: Mention new 'maint print xml-tdesc' command.
7895
7896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * target-descriptions.c (class tdesc_compatible_info): New class.
7899 (struct target_desc): Change type of compatible vector.
7900 (tdesc_compatible_p): Update for change in type of
7901 target_desc::compatible.
7902 (tdesc_compatible_info_list): New function.
7903 (tdesc_compatible_info_arch_name): New function.
7904 (tdesc_add_compatible): Update for change in type of
7905 target_desc::compatible.
7906 (print_c_tdesc::visit_pre): Likewise.
7907
7908 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7911 whitespace to underscore.
7912 (maint_print_c_tdesc_cmd): Use fake filename for target
7913 descriptions that came from the target.
7914 (_initialize_target_descriptions): Add filename command completion
7915 for 'maint print c-tdesc'.
7916
7917 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7918
7919 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7920 lines.
7921
7922 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7925 lines.
7926 (dwarf2_find_location_expression): Likewise.
7927 (call_site_parameter_matches): Likewise.
7928 (dwarf2_compile_expr_to_ax): Likewise.
7929 (disassemble_dwarf_expression): Likewise.
7930 (loclist_describe_location): Likewise.
7931
7932 2020-06-23 Pedro Alves <palves@redhat.com>
7933
7934 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7935 progspace-and-thread.h. Include scoped-mock-context.h instead.
7936 (register_to_value_test): Use scoped_mock_context.
7937 * regcache.c: Include "scoped-mock-context.h".
7938 (cooked_read_test): Don't error out if a target is already pushed.
7939 Use scoped_mock_context. Adjust.
7940 * scoped-mock-context.h: New file.
7941
7942 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7945 initializer.
7946 (ada_language::is_string_type_p): New member function.
7947 * c-lang.c (c_language_data): Delete la_is_string_type_p
7948 initializer.
7949 (cplus_language_data): Likewise.
7950 (asm_language_data): Likewise.
7951 (minimal_language_data): Likewise.
7952 * d-lang.c (d_language_data): Likewise.
7953 * f-lang.c (f_is_string_type_p): Delete function, implementation
7954 moved to f_language::is_string_type_p.
7955 (f_language_data): Delete la_is_string_type_p initializer.
7956 (f_language::is_string_type_p): New member function,
7957 implementation from f_is_string_type_p.
7958 * go-lang.c (go_is_string_type_p): Delete function, implementation
7959 moved to go_language::is_string_type_p.
7960 (go_language_data): Delete la_is_string_type_p initializer.
7961 (go_language::is_string_type_p): New member function,
7962 implementation from go_is_string_type_p.
7963 * language.c (language_defn::is_string_type_p): Define new member
7964 function.
7965 (default_is_string_type_p): Make static, add comment copied from
7966 header file.
7967 (unknown_language_data): Delete la_is_string_type_p initializer.
7968 (unknown_language::is_string_type_p): New member function.
7969 (auto_language_data): Delete la_is_string_type_p initializer.
7970 (auto_language::is_string_type_p): New member function.
7971 * language.h (language_data): Delete la_is_string_type_p field.
7972 (language_defn::is_string_type_p): Declare new function.
7973 (default_is_string_type_p): Delete desclaration, move comment to
7974 definition.
7975 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7976 moved to m2_language::is_string_type_p.
7977 (m2_language_data): Delete la_is_string_type_p initializer.
7978 (m2_language::is_string_type_p): New member function,
7979 implementation from m2_is_string_type_p.
7980 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7981 initializer.
7982 * opencl-lang.c (opencl_language_data): Likewise.
7983 * p-lang.c (pascal_is_string_type_p): Delete function,
7984 implementation moved to pascal_language::is_string_type_p.
7985 (pascal_language_data): Delete la_is_string_type_p initializer.
7986 (pascal_language::is_string_type_p): New member function,
7987 implementation from pascal_is_string_type_p.
7988 * rust-lang.c (rust_is_string_type_p): Delete function,
7989 implementation moved to rust_language::is_string_type_p.
7990 (rust_language_data): Delete la_is_string_type_p initializer.
7991 (rust_language::is_string_type_p): New member function,
7992 implementation from rust_is_string_type_p.
7993 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7994 is_string_type_p.
7995
7996 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7997
7998 * ada-lang.c (ada_language_data): Delete la_print_typedef
7999 initializer.
8000 (ada_language::print_typedef): New member function.
8001 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8002 (cplus_language_data): Likewise.
8003 (asm_language_data): Likewise.
8004 (minimal_language_data): Likewise.
8005 * d-lang.c (d_language_data): Likewise.
8006 * f-lang.c (f_language_data): Likewise.
8007 (f_language::print_typedef): New member function.
8008 * go-lang.c (go_language_data): Delete la_print_typedef
8009 initializer.
8010 * language.c (language_defn::print_typedef): Define member
8011 function.
8012 (unknown_language_data): Delete la_print_typedef initializer.
8013 (unknown_language::print_typedef): New member function.
8014 (auto_language_data): Delete la_print_typedef initializer.
8015 (auto_language::print_typedef): New member function.
8016 * language.h (language_data): Delete la_print_typedef field.
8017 (language_defn::print_typedef): Declare new member function.
8018 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8019 (default_print_typedef): Delete declaration.
8020 * m2-lang.c (m2_language_data): Delete la_print_typedef
8021 initializer.
8022 (m2_language::print_typedef): New member function.
8023 * objc-lang.c (objc_language_data): Delete la_print_typedef
8024 initializer.
8025 * opencl-lang.c (opencl_language_data): Likewise.
8026 * p-lang.c (pascal_language_data): Likewise.
8027 (pascal_language::print_typedef): New member function.
8028 * rust-lang.c (rust_print_typedef): Delete function,
8029 implementation moved to rust_language::print_typedef.
8030 (rust_language): Delete la_print_typedef initializer.
8031 (rust_language::print_typedef): New member function,
8032 implementation from rust_print_typedef.
8033 * typeprint.c (default_print_typedef): Delete.
8034
8035 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8038 (ada_language::printstr): New member function.
8039 * c-lang.c (c_language_data): Delete la_printstr initializer.
8040 (cplus_language_data): Likewise.
8041 (asm_language_data): Likewise.
8042 (minimal_language_data): Likewise.
8043 * d-lang.c (d_language_data): Likewise.
8044 * f-lang.c (f_printstr): Rename to f_language::printstr.
8045 (f_language_data): Delete la_printstr initializer.
8046 (f_language::printstr): New member function, implementation from
8047 f_printstr.
8048 * go-lang.c (go_language_data): Delete la_printstr initializer.
8049 * language.c (language_defn::printstr): Define new member
8050 function.
8051 (unk_lang_printstr): Delete.
8052 (unknown_language_data): Delete la_printstr initializer.
8053 (unknown_language::printstr): New member function.
8054 (auto_language_data): Delete la_printstr initializer.
8055 (auto_language::printstr): New member function.
8056 * language.h (language_data): Delete la_printstr field.
8057 (language_defn::printstr): Declare new member function.
8058 (LA_PRINT_STRING): Update call to printstr.
8059 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8060 (m2_language_data): Delete la_printstr initializer.
8061 (m2_language::printstr): New member function, implementation from
8062 m2_printstr.
8063 * objc-lang.c (objc_language_data): Delete la_printstr
8064 initializer.
8065 * opencl-lang.c (opencl_language_data): Likewise.
8066 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8067 (pascal_language_data): Delete la_printstr initializer.
8068 (pascal_language::printstr): New member function, implementation
8069 from pascal_printstr.
8070 * p-lang.h (pascal_printstr): Delete declaration.
8071 * rust-lang.c (rust_printstr): Update header comment.
8072 (rust_language_data): Delete la_printstr initializer.
8073 (rust_language::printstr): New member function.
8074
8075 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8076
8077 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8078 (ada_language::printchar): New member function.
8079 * c-lang.c (c_language_data): Delete la_printchar initializer.
8080 (cplus_language_data): Likewise.
8081 (asm_language_data): Likewise.
8082 (minimal_language_data): Likewise.
8083 * d-lang.c (d_language_data): Likewise.
8084 * f-lang.c (f_printchar): Rename to f_language::printchar.
8085 (f_language_data): Delete la_printchar initializer.
8086 (f_language::printchar): New member function, implementation from
8087 f_printchar.
8088 * go-lang.c (go_language_data): Delete la_printchar initializer.
8089 * language.c (unk_lang_printchar): Delete.
8090 (language_defn::printchar): Define new member function.
8091 (unknown_language_data): Delete la_printchar initializer.
8092 (unknown_language::printchar): New member function.
8093 (auto_language_data): Delete la_printchar initializer.
8094 (auto_language::printchar): New member function.
8095 * language.h (language_data): Delete la_printchar field.
8096 (language_defn::printchar): Declare new member function.
8097 (LA_PRINT_CHAR): Update call to printchar.
8098 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8099 (m2_language::printchar): New member function.
8100 * objc-lang.c (objc_language_data): Delete la_printchar
8101 initializer.
8102 * opencl-lang.c (opencl_language_data): Likewise.
8103 * p-lang.c (pascal_language_data): Delete la_printchar
8104 initializer.
8105 (pascal_language::printchar): New member function.
8106 * rust-lang.c (rust_printchar): Rename to
8107 rust_language::printchar.
8108 (rust_language_data): Delete la_printchar initializer.
8109 (rust_language::printchar): New member function, implementation
8110 from rust_printchar.
8111
8112 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8115 (ada_language_data): Delete la_emitchar initializer.
8116 (ada_language::emitchar): New member function, implementation from
8117 emit_char.
8118 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8119 (cplus_language_data): Likewise.
8120 (asm_language_data): Likewise.
8121 (minimal_language_data): Likewise.
8122 * d-lang.c (d_language_data): Likewise.
8123 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8124 (f_language_data): Delete la_emitchar initializer.
8125 (f_language::emitchar): New member function, implementation from
8126 f_emit_char.
8127 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8128 * language.c (unk_lang_emit_char): Delete.
8129 (language_defn::emitchar): New member function definition.
8130 (unknown_language_data): Delete la_emitchar initializer.
8131 (unknown_language::emitchar): New member function.
8132 (auto_language_data): Delete la_emitchar initializer.
8133 (auto_language::emitchar): New member function.
8134 * language.h (language_data): Delete la_emitchar field.
8135 (language_defn::emitchar): New member field declaration.
8136 (LA_EMIT_CHAR): Update call to emitchar.
8137 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8138 (m2_language_data): Delete la_emitchar initializer.
8139 (m2_language::emitchar): New member function, implementation from
8140 m2_emit_char.
8141 * objc-lang.c (objc_language_data): Delete la_emitchar
8142 initializer.
8143 * opencl-lang.c (opencl_language_data): Likewise.
8144 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8145 (pascal_language_data): Delete la_emitchar initializer.
8146 (pascal_language::emitchar): New member function, implementation
8147 from pascal_emit_char.
8148 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8149 (rust_language_data): Delete la_emitchar initializer.
8150 (rust_language::emitchar): New member function, implementation
8151 from rust_emitchar.
8152
8153 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8156 (ada_language_data): Delete la_post_parser initializer.
8157 (ada_language::post_parser): New member function.
8158 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8159 (cplus_language_data): Likewise.
8160 (asm_language_data): Likewise.
8161 (minimal_language_data): Likewise.
8162 * d-lang.c (d_language_data): Likewise.
8163 * f-lang.c (f_language_data): Likewise.
8164 * go-lang.c (go_language_data): Likewise.
8165 * language.c (unknown_language_data): Likewise.
8166 (auto_language_data): Likewise.
8167 * language.h (language_data): Delete la_post_parser field.
8168 (language_defn::post_parser): New member function.
8169 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8170 * objc-lang.c (objc_language_data): Likewise.
8171 * opencl-lang.c (opencl_language_data): Likewise.
8172 * p-lang.c (pascal_language_data): Likewise.
8173 * parse.c (parse_exp_in_context): Update call to post_parser.
8174 (null_post_parser): Delete definition.
8175 * parser-defs.h (null_post_parser): Delete declaration.
8176 * rust-lang.c (rust_language_data): Delete la_post_parser
8177 initializer.
8178
8179 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * ada-lang.c (parse): Rename to ada_language::parser.
8182 (ada_language_data): Delete la_parser initializer.
8183 (ada_language::parser): New member function, implementation from
8184 parse.
8185 * c-lang.c (c_language_data): Delete la_parser initializer.
8186 (cplus_language_data): Likewise.
8187 (asm_language_data): Likewise.
8188 (minimal_language_data): Likewise.
8189 * d-lang.c (d_language_data): Likewise.
8190 (d_language::parser): New member function.
8191 * f-lang.c (f_language_data): Delete la_parser initializer.
8192 (f_language::parser): New member function.
8193 * go-lang.c (go_language_data): Delete la_parser initializer.
8194 (go_language::parser): New member function.
8195 * language.c (unk_lang_parser): Delete.
8196 (language_defn::parser): Define new member function.
8197 (unknown_language_data): Delete la_parser initializer.
8198 (unknown_language::parser): New member function.
8199 (auto_language_data): Delete la_parser initializer.
8200 (auto_language::parser): New member function.
8201 * language.h (language_data): Delete la_parser field.
8202 (language_defn::parser): Declare new member function.
8203 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8204 (m2_language::parser): New member function.
8205 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8206 * opencl-lang.c (opencl_language_data): Likewise.
8207 * p-lang.c (pascal_language_data): Likewise.
8208 (pascal_language::parser): New member function.
8209 * parse.c (parse_exp_in_context): Update call to parser.
8210 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8211 (rust_language::parser): New member function.
8212
8213 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * top.c (print_gdb_configuration): Print --with-python-libdir
8216 configuration value.
8217
8218 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8219
8220 * NEWS: Mention change to the alias command.
8221
8222 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8223
8224 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8225 (alias_command_completer)
8226 (make_alias_options_def_group): New functions.
8227 (alias_opts, alias_option_defs): New struct and array.
8228 (alias_usage_error): Update usage.
8229 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8230 Use option framework.
8231 (_initialize_cli_cmds): Update alias command help.
8232 Update aliases command help.
8233 (show_user):
8234 Add NULL for new default_args lookup_cmd argument.
8235 (valid_command_p): Rename to validate_aliased_command.
8236 Add NULL for new default_args lookup_cmd argument. Verify that the
8237 aliased_command has no default args.
8238 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8239 (lookup_cmd_1, lookup_cmd): New argument default_args.
8240 (add_alias_cmd):
8241 Add NULL for new default_args lookup_cmd argument.
8242 (print_help_for_command): Show default args under the layout
8243 alias some_alias = some_aliased_cmd some_alias_default_arg.
8244 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8245 xfree default_args in destructor.
8246 * cli/cli-script.c (process_next_line, do_define_command):
8247 Add NULL for new default_args lookup_cmd argument.
8248 * command.h: Declare new default_args argument in lookup_cmd
8249 and lookup_cmd_1.
8250 * completer.c (complete_line_internal_1):
8251 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8252 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8253 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8254 Likewise.
8255 * infcmd.c (_initialize_infcmd): Likewise.
8256 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8257 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8258 * python/py-param.c (add_setshow_generic): Likewise.
8259 * remote.c (_initialize_remote): Likewise.
8260 * top.c (execute_command): Prepend default_args if command has some.
8261 (set_verbose):
8262 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8263 * tracepoint.c (validate_actionline, encode_actions_1):
8264 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8265
8266 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8267
8268 * jit.c (jit_read_descriptor): Use bool as the return type.
8269 (jit_breakpoint_re_set_internal): Use bool as the return type.
8270 Invert the return value logic; return true if the jit breakpoint
8271 has been successfully initialized.
8272 (jit_inferior_init): Update the call to
8273 jit_breakpoint_re_set_internal.
8274
8275 2020-06-22 Pedro Alves <palves@redhat.com>
8276
8277 PR gdb/25939
8278 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8279 Use the current inferior instead. Don't return
8280 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8281 wait again.
8282 * sol-thread.c (sol_thread_target::wait): Don't reference
8283 inferior_ptid.
8284 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8285 (sol_update_thread_list_callback): Use the current inferior's pid
8286 instead of inferior_ptid.
8287
8288 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8289
8290 * procfs.c: Cleanup many comments.
8291
8292 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8293 (AFTER_WATCHFLAG): Replace by value.
8294
8295 (MAIN_PROC_NAME_FORMAT): Inline ...
8296 (create_procinfo): ... here.
8297
8298 (procfs_debug_inferior): Remove SYS_exec handling.
8299 (syscall_is_exec): Likewise.
8300 (procfs_set_exec_trap): Likewise.
8301
8302 (syscall_is_lwp_exit): Inline in callers.
8303 (syscall_is_exit): Likewise.
8304 (syscall_is_exec): Likewise.
8305 (syscall_is_lwp_create): Likewise.
8306
8307 (invalidate_cache): Remove #if 0 code.
8308
8309 (make_signal_thread_runnable): Remove.
8310 (procfs_target::resume): Remove #if 0 code.
8311
8312 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8313
8314 PR gdb/25939
8315 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8316 call ...
8317 (procfs_target::create_inferior): ... here.
8318
8319 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8320
8321 * exec.c (validate_exec_file): Ensure the build-id is up to
8322 date by calling reopen_exec_file (that checks file timestamp
8323 to decide to re-read the file).
8324
8325 2020-06-18 Pedro Alves <palves@redhat.com>
8326
8327 PR gdb/25412
8328 * gdbthread.h (delete_thread, delete_thread_silent)
8329 (find_thread_ptid): Update comments.
8330 * thread.c (current_thread_): New global.
8331 (is_current_thread): Move higher, and reimplement.
8332 (inferior_thread): Reimplement.
8333 (set_thread_exited): Use bool. Add assertions.
8334 (add_thread_silent): Simplify thread-reuse handling by always
8335 calling delete_thread.
8336 (delete_thread): Remove intro comment.
8337 (find_thread_ptid): Skip exited threads.
8338 (switch_to_thread_no_regs): Write to current_thread_.
8339 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8340 INFERIOR_PTID. Clear current_thread_.
8341
8342 2020-06-18 Pedro Alves <palves@redhat.com>
8343
8344 * aix-thread.c (pd_update): Use switch_to_thread.
8345
8346 2020-06-18 Pedro Alves <palves@redhat.com>
8347
8348 * ravenscar-thread.c (ravenscar_thread_target): Update.
8349 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8350 (ravenscar_thread_target::add_active_thread): ... this. Don't
8351 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8352 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8353
8354 2020-06-18 Pedro Alves <palves@redhat.com>
8355
8356 * nat/windows-nat.c (current_windows_thread): Remove.
8357 * nat/windows-nat.h (current_windows_thread): Remove.
8358 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8359 Adjust.
8360 (display_selectors): Adjust to fetch the current
8361 windows_thread_info based on inferior_ptid.
8362 (fake_create_process): No longer write to current_windows_thread.
8363 (windows_nat_target::get_windows_debug_event):
8364 Don't set inferior_ptid or current_windows_thread.
8365 (windows_nat_target::wait): Adjust to not rely on
8366 current_windows_thread.
8367 (do_initial_windows_stuff): Now a method of windows_nat_target.
8368 Switch to the last_ptid thread.
8369 (windows_nat_target::attach): Adjust.
8370 (windows_nat_target::detach): Use switch_to_no_thread instead of
8371 writing to inferior_ptid directly.
8372 (windows_nat_target::create_inferior): Adjust.
8373
8374 2020-06-18 Pedro Alves <palves@redhat.com>
8375
8376 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8377
8378 2020-06-18 Pedro Alves <palves@redhat.com>
8379
8380 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8381 after creating it, instead of writing to inferior_ptid. Don't
8382 write to inferior_ptid.
8383
8384 2020-06-18 Pedro Alves <palves@redhat.com>
8385
8386 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8387
8388 2020-06-18 Pedro Alves <palves@redhat.com>
8389
8390 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8391 it, instead of writing to inferior_ptid.
8392
8393 2020-06-18 Pedro Alves <palves@redhat.com>
8394
8395 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8396 to inferior_ptid.
8397
8398 2020-06-18 Pedro Alves <palves@redhat.com>
8399
8400 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8401 instead of writing to inferior_ptid directly.
8402
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8404
8405 * corelow.c (core_target::close): Use switch_to_no_thread instead
8406 of writing to inferior_ptid directly.
8407 (add_to_thread_list, core_target_open): Use switch_to_thread
8408 instead of writing to inferior_ptid directly.
8409
8410 2020-06-18 Pedro Alves <palves@redhat.com>
8411
8412 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8413 inferior_ptid.
8414 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8415 inferior_ptid.
8416 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8417 inferior_ptid directly.
8418 (darwin_nat_target::init_thread_list): Switch to thread, instead
8419 of writing to inferior_ptid.
8420 (darwin_nat_target::attach): Don't write to inferior_ptid.
8421 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8422
8423 2020-06-18 Pedro Alves <palves@redhat.com>
8424
8425 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8426 thread.
8427 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8428 Instead use switch_to_thread.
8429 (gnu_nat_target::detach): Use switch_to_no_thread
8430 instead of writing to inferior_ptid directly. Used passed-in
8431 inferior instead of looking up the inferior by pid.
8432
8433 2020-06-18 Pedro Alves <palves@redhat.com>
8434
8435 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8436 inferior_ptid.
8437
8438 2020-06-18 Pedro Alves <palves@redhat.com>
8439
8440 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8441 inferior_ptid.
8442 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8443 thread.
8444 (nto_procfs_target::detach): Avoid referencing
8445 inferior_ptid. Use switch_to_no_thread instead of writing to
8446 inferior_ptid directly.
8447 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8448 instead of writing to inferior_ptid directly.
8449 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8450 to thread.
8451
8452 2020-06-18 Pedro Alves <palves@redhat.com>
8453
8454 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8455 after creating it, instead of writing to inferior_ptid.
8456 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8457 to inferior_ptid directly.
8458 (gdbsim_target::wait): Don't write to inferior_ptid.
8459
8460 2020-06-18 Pedro Alves <palves@redhat.com>
8461
8462 * remote.c (remote_target::remote_notice_new_inferior): Use
8463 switch_to_thread instead of writing to inferior_ptid directly.
8464 (remote_target::add_current_inferior_and_thread): Use
8465 switch_to_no_thread instead of writing to inferior_ptid directly.
8466 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8467 and switch_to_thread instead of using set_current_inferior or
8468 writing to inferior_ptid directly.
8469
8470 2020-06-18 Pedro Alves <palves@redhat.com>
8471
8472 * tracectf.c (ctf_target_open): Switch to added thread instead of
8473 writing to inferior_ptid directly.
8474 (ctf_target::close): Use switch_to_no_thread instead of writing to
8475 inferior_ptid directly.
8476
8477 2020-06-18 Pedro Alves <palves@redhat.com>
8478
8479 * tracefile-tfile.c (tfile_target_open): Don't write to
8480 inferior_ptid directly, instead switch to added thread.
8481 (tfile_target::close): Use switch_to_no_thread instead of writing
8482 to inferior_ptid directly.
8483
8484 2020-06-18 Pedro Alves <palves@redhat.com>
8485
8486 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8487 (procfs_target::detach): Use switch_to_no_thread
8488 instead of writing to inferior_ptid directly.
8489 (do_attach): Change return type to void. Switch to the added
8490 thread.
8491 (procfs_target::create_inferior): Switch to the added thread.
8492 (procfs_do_thread_registers): Don't write to inferior_ptid.
8493
8494 2020-06-18 Pedro Alves <palves@redhat.com>
8495
8496 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8497 of writing to inferior_ptid.
8498 (scoped_restore_exited_inferior): Delete.
8499 (handle_vfork_child_exec_or_exit): Simplify using
8500 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8501 instead of writing to inferior_ptid.
8502 (THREAD_STOPPED_BY): Delete.
8503 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8504 (thread_stopped_by_hw_breakpoint): Delete.
8505 (save_waitstatus): Use
8506 scoped_restore_current_thread+switch_to_thread, and call
8507 target_stopped_by_watchpoint instead of
8508 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8509 instead of thread_stopped_by_sw_breakpoint, and
8510 target_stopped_by_hw_breakpoint instead of
8511 thread_stopped_by_hw_breakpoint.
8512 (handle_inferior_event)
8513 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8514 inferior_ptid directly, nor
8515 set_current_inferior/set_current_program_space. Use
8516 switch_to_thread / switch_to_inferior_no_thread instead.
8517
8518 2020-06-18 Pedro Alves <palves@redhat.com>
8519
8520 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8521 instead of writing to inferior_ptid.
8522
8523 2020-06-18 Pedro Alves <palves@redhat.com>
8524
8525 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8526 added thread.
8527 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8528 to the added thread.
8529 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8530 instead of writing to inferior_ptid.
8531
8532 2020-06-18 Pedro Alves <palves@redhat.com>
8533
8534 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8535 (register_to_value_test): Mock a program_space too. Heap-allocate
8536 the address space. Don't write to inferior_ptid. Use
8537 switch_to_thread instead.
8538
8539 2020-06-18 Pedro Alves <palves@redhat.com>
8540
8541 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8542 Delete.
8543 (find_signalled_thread()): New, factored out from
8544 linux_make_corefile_notes and adjusted to handle exited threads.
8545 (linux_make_corefile_notes): Adjust to use the new
8546 find_signalled_thread.
8547
8548 2020-06-18 Pedro Alves <palves@redhat.com>
8549
8550 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8551 of saving/restoring inferior_ptid.
8552
8553 2020-06-17 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8556 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8557 declare.
8558 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8559
8560 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8563 of partial symtabs.
8564
8565 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * regformats/reg-arm.dat: Remove.
8568 * regformats/reg-bfin.dat: Remove.
8569 * regformats/reg-cris.dat: Remove.
8570 * regformats/reg-crisv32.dat: Remove.
8571 * regformats/reg-m32r.dat: Remove.
8572 * regformats/reg-tilegx.dat: Remove.
8573 * regformats/reg-tilegx32.dat: Remove.
8574
8575 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * features/Makefile (WHICH): Remove arm files.
8578 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8579 * regformats/arm/arm-with-neon.dat: Remove.
8580 * regformats/arm/arm-with-vfpv2.dat: Remove.
8581 * regformats/arm/arm-with-vfpv3.dat: Remove.
8582
8583 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * features/Makefile (XMLTOC): Remove rx.xml.
8586
8587 2020-06-17 Pedro Alves <palves@redhat.com>
8588
8589 * gdbthread.h (thread_control_state) <trap_expected> Update
8590 comments.
8591
8592 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8593
8594 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8595 ada_language::lookup_symbol_nonlocal.
8596 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8597 (ada_language::lookup_symbol_nonlocal): New member function,
8598 implementation from ada_lookup_symbol_nonlocal.
8599 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8600 initializer.
8601 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8602 initializer.
8603 (cplus_language::lookup_symbol_nonlocal): New member function.
8604 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8605 (minimal_language_data) Likewise.
8606 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8607 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8608 initializer.
8609 (d_language::lookup_symbol_nonlocal): New member function.
8610 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8611 initializer.
8612 (f_language::lookup_symbol_nonlocal): New member function.
8613 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8614 initializer.
8615 * language.c (unknown_language_data): Likewise.
8616 (auto_language_data): Likewise.
8617 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8618 field.
8619 (language_defn::lookup_symbol_nonlocal): New member function.
8620 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8621 initializer.
8622 * objc-lang.c (objc_language_data): Likewise.
8623 * opencl-lang.c (opencl_language_data): Likewise.
8624 * p-lang.c (pascal_language_data): Likewise.
8625 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8626 rust_language::lookup_symbol_nonlocal.
8627 (rust_language_data): Delete la_lookup_symbol_nonlocal
8628 initializer.
8629 (rust_language::lookup_symbol_nonlocal): New member function,
8630 implementation from rust_lookup_symbol_nonlocal.
8631 * symtab.c (lookup_symbol_aux): Update call to
8632 lookup_symbol_nonlocal.
8633 (basic_lookup_symbol_nonlocal): Rename to...
8634 (language_defn::lookup_symbol_nonlocal): ...this, and update
8635 header comment. Remove language_defn parameter, and replace with
8636 uses of `this'.
8637 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8638
8639 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8642 initializer.
8643 (ada_language::value_print_inner): New member function.
8644 * c-lang.c (c_language_data): Delete la_value_print_inner
8645 initializer.
8646 (cplus_language_data): Likewise.
8647 (asm_language_data): Likewise.
8648 (minimal_language_data): Likewise.
8649 * d-lang.c (d_language_data): Likewise.
8650 (d_language::value_print_inner): New member function.
8651 * f-lang.c (f_language_data): Delete la_value_print_inner
8652 initializer.
8653 (f_language::value_print_inner): New member function.
8654 * f-lang.h (f_value_print_innner): Rename to...
8655 (f_value_print_inner): ...this (note spelling of 'inner').
8656 * f-valprint.c (f_value_print_innner): Rename to...
8657 (f_value_print_inner): ...this (note spelling of 'inner').
8658 * go-lang.c (go_language_data): Delete la_value_print_inner
8659 initializer.
8660 (go_language::value_print_inner): New member function.
8661 * language.c (language_defn::value_print_inner): Define new member
8662 function.
8663 (unk_lang_value_print_inner): Delete.
8664 (unknown_language_data): Delete la_value_print_inner initializer.
8665 (unknown_language::value_print_inner): New member function.
8666 (auto_language_data): Delete la_value_print_inner initializer.
8667 (auto_language::value_print_inner): New member function.
8668 * language.h (language_data): Delete la_value_print_inner field.
8669 (language_defn::value_print_inner): Delcare new member function.
8670 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8671 initializer.
8672 (m2_language::value_print_inner): New member function.
8673 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8674 initializer.
8675 * opencl-lang.c (opencl_language_data): Likewise.
8676 * p-lang.c (pascal_language_data): Likewise.
8677 (pascal_language::value_print_inner): New member function.
8678 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8679 initializer.
8680 (rust_language::value_print_inner): New member function.
8681 * valprint.c (do_val_print): Update call to value_print_inner.
8682
8683 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * ada-lang.c (ada_language_data): Delete la_value_print
8686 initializer.
8687 (ada_language::value_print): New member function.
8688 * c-lang.c (c_language_data): Delete la_value_print initializer.
8689 (cplus_language_data): Likewise.
8690 (asm_language_data): Likewise.
8691 (minimal_language_data): Likewise.
8692 * d-lang.c (d_language_data): Likewise.
8693 * f-lang.c (f_language_data): Likewise.
8694 * go-lang.c (go_language_data): Likewise.
8695 * language.c (unk_lang_value_print): Delete.
8696 (language_defn::value_print): Define new member function.
8697 (unknown_language_data): Delete la_value_print initializer.
8698 (unknown_language::value_print): New member function.
8699 (auto_language_data): Delete la_value_print initializer.
8700 (auto_language::value_print): New member function.
8701 * language.h (language_data): Delete la_value_print field.
8702 (language_defn::value_print): Declare new member function.
8703 (LA_VALUE_PRINT): Update call to value_print.
8704 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8705 * objc-lang.c (objc_language_data): Likewise.
8706 * opencl-lang.c (opencl_language_data): Likewise.
8707 * p-lang.c (pascal_language_data): Likewise.
8708 (pascal_language::value_print): New member function.
8709 * rust-lang.c (rust_language_data): Delete la_value_print
8710 initializer.
8711
8712 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * ada-lang.c (ada_watch_location_expression): Rename to
8715 ada_language::watch_location_expression.
8716 (ada_language_data): Delete la_watch_location_expression
8717 initializer.
8718 (ada_language::watch_location_expression): New member function,
8719 implementation from ada_watch_location_expression.
8720 * breakpoint.c (watch_command_1): Update call to
8721 watch_location_expression.
8722 * c-lang.c (c_watch_location_expression): Rename to
8723 language_defn::watch_location_expression.
8724 (c_language_data): Delete la_watch_location_expression
8725 initializer.
8726 (cplus_language_data): Likewise.
8727 (asm_language_data): Likewise.
8728 (minimal_language_data): Likewise.
8729 * c-lang.h (c_watch_location_expression): Delete declaration.
8730 * d-lang.c (d_language_data): Delete la_watch_location_expression
8731 initializer.
8732 * f-lang.c (f_language_data): Likewise.
8733 * go-lang.c (go_language_data): Likewise.
8734 * language.c (language_defn::watch_location_expression): Member
8735 function implementation from c_watch_location_expression.
8736 (unknown_language_data): Delete la_watch_location_expression
8737 initializer.
8738 (auto_language_data): Likewise.
8739 * language.h (language_data): Delete la_watch_location_expression
8740 field.
8741 (language_defn::watch_location_expression): Declare new member
8742 function.
8743 * m2-lang.c (m2_language_data): Delete
8744 la_watch_location_expression initializer.
8745 * objc-lang.c (objc_language_data): Likewise.
8746 * opencl-lang.c (opencl_language_data): Likewise.
8747 * p-lang.c (pascal_language_data): Likewise.
8748 * rust-lang.c (rust_watch_location_expression): Rename to
8749 rust_language::watch_location_expression.
8750 (rust_language_data): Delete la_watch_location_expression
8751 initializer.
8752 (rust_language::watch_location_expression): New member function,
8753 implementation from rust_watch_location_expression.
8754
8755 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8756
8757 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8758 ada_language::collect_symbol_completion_matches.
8759 (ada_language_data): Delete la_collect_symbol_completion_matches
8760 initializer.
8761 (ada_language::collect_symbol_completion_matches): New member
8762 function, implementation from
8763 ada_collect_symbol_completion_matches.
8764 * c-lang.c (c_language_data): Delete
8765 la_collect_symbol_completion_matches initializer.
8766 (cplus_language_data): Likewise.
8767 (asm_language_data): Likewise.
8768 (minimal_language_data): Likewise.
8769 * d-lang.c (d_language_data): Likewise.
8770 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8771 f_language::collect_symbol_completion_matches.
8772 (f_language_data): Delete la_collect_symbol_completion_matches
8773 initializer.
8774 (f_language::collect_symbol_completion_matches) New member
8775 function, implementation from f_collect_symbol_completion_matches.
8776 * go-lang.c (go_language_data): Delete
8777 la_collect_symbol_completion_matches initializer.
8778 * language.c (unknown_language_data): Likewise.
8779 (auto_language_data): Likewise.
8780 * language.h (language_data): Delete
8781 la_collect_symbol_completion_matches field.
8782 (language_defn::collect_symbol_completion_matches): New member
8783 function.
8784 * m2-lang.c (m2_language_data): Delete
8785 la_collect_symbol_completion_matches initializer.
8786 * objc-lang.c (objc_language_data): Likewise.
8787 * opencl-lang.c (opencl_language_data): Likewise.
8788 * p-lang.c (pascal_language_data): Likewise.
8789 * rust-lang.c (rust_language_data): Likewise.
8790 * symtab.c (default_collect_symbol_completion_matches): Delete.
8791 (collect_symbol_completion_matches): Update call to
8792 collect_symbol_completion_matches.
8793 (collect_symbol_completion_matches_type): Likewise.
8794 * symtab.h (default_collect_symbol_completion_matches): Delete
8795 declaration.
8796
8797 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8798
8799 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8800 (ada_language_data): Delete la_word_break_characters initializer.
8801 (ada_language::word_break_characters): New member function.
8802 * c-lang.c (c_language_data): Delete la_word_break_characters
8803 initializer.
8804 (cplus_language_data): Likewise.
8805 (asm_language_data): Likewise.
8806 (minimal_language_data): Likewise.
8807 * completer.c: Update global comment.
8808 (advance_to_expression_complete_word_point): Update call to
8809 word_break_characters.
8810 (complete_files_symbols): Likewise.
8811 (complete_line_internal_1): Likewise.
8812 (default_completer_handle_brkchars): Likewise.
8813 (skip_quoted_chars): Likewise.
8814 * d-lang.c (d_language_data): Delete la_word_break_characters
8815 initializer.
8816 * f-lang.c (f_word_break_characters): Delete.
8817 (f_language_data): Delete la_word_break_characters initializer.
8818 (f_language::word_break_characters): New member function.
8819 * go-lang.c (go_language_data): Delete la_word_break_characters
8820 initializer.
8821 * language.c (unknown_language_data): Likewise.
8822 (auto_language_data): Likewise.
8823 * language.h (default_word_break_characters): Move declaration to
8824 earlier in the file.
8825 (language_data): Delete la_word_break_characters field.
8826 (language_defn::word_break_characters): New member function.
8827 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8828 initializer.
8829 * objc-lang.c (objc_language_data): Likewise.
8830 * opencl-lang.c (opencl_language_data): Likewise.
8831 * p-lang.c (pascal_language_data): Likewise.
8832 * rust-lang.c (rust_language_data): Likewise.
8833
8834 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8837 (ada_language_data): Delete la_get_symbol_name_matcher
8838 initializer.
8839 (language_defn::get_symbol_name_matcher_inner): New member
8840 function.
8841 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8842 initializer.
8843 (cplus_language_data): Likewise.
8844 (cplus_language::get_symbol_name_matcher_inner): New member
8845 function.
8846 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8847 (minimal_language_data): Likewise.
8848 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8849 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8850 initializer.
8851 * dictionary.c (iter_match_first_hashed): Update call to
8852 get_symbol_name_matcher.
8853 (iter_match_next_hashed): Likewise.
8854 (iter_match_next_linear): Likewise.
8855 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8856 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8857 initializer.
8858 (f_language::get_symbol_name_matcher_inner): New member function.
8859 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8860 initializer.
8861 * language.c (default_symbol_name_matcher): Update header comment,
8862 make static.
8863 (language_defn::get_symbol_name_matcher): New definition.
8864 (language_defn::get_symbol_name_matcher_inner): Likewise.
8865 (get_symbol_name_matcher): Delete.
8866 (unknown_language_data): Delete la_get_symbol_name_matcher
8867 initializer.
8868 (auto_language_data): Likewise.
8869 * language.h (language_data): Delete la_get_symbol_name_matcher
8870 field.
8871 (language_defn::get_symbol_name_matcher): New member function.
8872 (language_defn::get_symbol_name_matcher_inner): Likewise.
8873 (default_symbol_name_matcher): Delete declaration.
8874 * linespec.c (find_methods): Update call to
8875 get_symbol_name_matcher.
8876 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8877 initializer.
8878 * minsyms.c (lookup_minimal_symbol): Update call to
8879 get_symbol_name_matcher.
8880 (iterate_over_minimal_symbols): Likewise.
8881 * objc-lang.c (objc_language_data): Delete
8882 la_get_symbol_name_matcher initializer.
8883 * opencl-lang.c (opencl_language_data): Likewise.
8884 * p-lang.c (pascal_language_data): Likewise.
8885 * psymtab.c (psymbol_name_matches): Update call to
8886 get_symbol_name_matcher.
8887 * rust-lang.c (rust_language_data): Delete
8888 la_get_symbol_name_matcher initializer.
8889 * symtab.c (symbol_matches_search_name): Update call to
8890 get_symbol_name_matcher.
8891 (compare_symbol_name): Likewise.
8892
8893 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8894
8895 * ada-lang.c (ada_language_data): Delete la_compute_program
8896 initializer.
8897 * c-lang.c (c_language_data): Likewise.
8898 (c_language::compute_program): New member function.
8899 (cplus_language_data): Delete la_compute_program initializer.
8900 (cplus_language::compute_program): New member function.
8901 (asm_language_data): Delete la_compute_program initializer.
8902 (minimal_language_data): Likewise.
8903 * c-lang.h (c_compute_program): Update comment.
8904 (cplus_compute_program): Likewise.
8905 * compile/compile-c-support.c (c_compute_program): Likewise.
8906 (cplus_compute_program): Likewise.
8907 * compile/compile.c (compile_to_object): Update call to
8908 la_compute_program.
8909 * d-lang.c (d_language_data): Delete la_compute_program
8910 initializer.
8911 * f-lang.c (f_language_data): Likewise.
8912 * go-lang.c (go_language_data): Likewise.
8913 * language.c (unknown_language_data): Likewise.
8914 (auto_language_data): Likewise.
8915 * language.h (language_data): Delete la_compute_program field.
8916 (language_defn::compute_program): New member function.
8917 * m2-lang.c (m2_language_data): Delete la_compute_program
8918 initializer.
8919 * objc-lang.c (objc_language_data): Likewise.
8920 * opencl-lang.c (opencl_language_data): Likewise.
8921 * p-lang.c (pascal_language_data): Likewise.
8922 * rust-lang.c (rust_language_data): Likewise.
8923
8924 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8925
8926 * ada-lang.c (ada_language_data) Delete
8927 la_class_name_from_physname initializer.
8928 * c-lang.c (c_language_data): Likewise.
8929 (cplus_language_data): Likewise.
8930 (cplus_language::class_name_from_physname): New member function.
8931 (asm_language_data): Delete la_class_name_from_physname
8932 initializer.
8933 (minimal_language_data): Likewise.
8934 * d-lang.c (d_language_data): Likewise.
8935 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8936 method on language_defn class.
8937 (guess_full_die_structure_name): Likewise.
8938 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8939 initializer.
8940 * go-lang.c (go_language_data): Likewise.
8941 * language.c (language_class_name_from_physname): Delete.
8942 (unk_lang_class_name): Delete.
8943 (unknown_language_data): Delete la_class_name_from_physname
8944 initializer.
8945 (auto_language_data): Likewise.
8946 * language.h (language_data): Delete la_class_name_from_physname
8947 field.
8948 (language_defn::class_name_from_physname): New function.
8949 (language_class_name_from_physname): Delete declaration.
8950 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8951 initializer.
8952 * objc-lang.c (objc_language_data): Likewise.
8953 * opencl-lang.c (opencl_language_data): Likewise.
8954 * p-lang.c (pascal_language_data): Likewise.
8955 * rust-lang.c (rust_language_data): Likewise.
8956
8957 2020-06-16 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-data.h (STATUS_NAME): New macro.
8960 * tui/tui-layout.c (tui_remove_some_windows)
8961 (initialize_known_windows, tui_register_window)
8962 (tui_layout_split::remove_windows, initialize_layouts)
8963 (tui_new_layout_command): Don't use hard-coded window names.
8964
8965 2020-06-16 Tom Tromey <tom@tromey.com>
8966
8967 PR tui/25348:
8968 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8969 tui_initialize_readline. Only run once. Call rl_initialize.
8970 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8971 tui_initialize_readline.
8972 * tui/tui-io.c (tui_setup_io): Call
8973 tui_ensure_readline_initialized.
8974 * tui/tui-interp.c (tui_interp::init): Update.
8975
8976 2020-06-16 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8979 Also preserve the status window.
8980
8981 2020-06-16 Tom Tromey <tom@tromey.com>
8982
8983 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8984 where m_window==nullptr.
8985
8986 2020-06-15 Tom Tromey <tromey@adacore.com>
8987
8988 * windows-nat.c (windows_nat::handle_output_debug_string):
8989 Update.
8990 (windows_nat::handle_ms_vc_exception): Update.
8991 * target.h (target_read_string): Change API.
8992 * target.c (target_read_string): Change API.
8993 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8994 Update.
8995 * solib-frv.c (frv_current_sos): Update.
8996 * solib-dsbt.c (dsbt_current_sos): Update.
8997 * solib-darwin.c (darwin_current_sos): Update.
8998 * linux-thread-db.c (inferior_has_bug): Update.
8999 * expprint.c (print_subexp_standard): Update.
9000 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9001 (ada_exception_message_1): Update.
9002
9003 2020-06-15 Tom Tromey <tromey@adacore.com>
9004
9005 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9006
9007 2020-06-15 Tom Tromey <tromey@adacore.com>
9008
9009 * valprint.c (read_string): Update comment.
9010 * target.c (MIN): Remove.
9011 (target_read_string): Rewrite.
9012
9013 2020-06-15 Tom Tromey <tromey@adacore.com>
9014
9015 * corefile.c (read_memory_string): Remove.
9016 * ada-valprint.c (ada_value_print_ptr): Update.
9017 * ada-lang.h (ada_tag_name): Change return type.
9018 * ada-lang.c (type_from_tag): Update.
9019 (ada_tag_name_from_tsd): Change return type. Use
9020 target_read_string.
9021 (ada_tag_name): Likewise.
9022 * gdbcore.h (read_memory_string): Don't declare.
9023
9024 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9025
9026 * symtab.c (rbreak_command): Ignore Windows drive colon.
9027
9028 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9029
9030 * NEWS: Mention removed GDBserver host support.
9031
9032 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9033
9034 * features/riscv/rebuild-csr-xml.sh: Updated.
9035
9036 2020-06-11 Tom Tromey <tom@tromey.com>
9037
9038 PR gdb/18318:
9039 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9040
9041 2020-06-09 Jonny Grant <jg@jguk.org>
9042 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9043
9044 * main.c (captured_main_1): Don't print new line after help.
9045 (print_gdb_help): add mailing list and IRC channel information
9046 to --help. Add new lines between items in the footer. Remove
9047 quotes around bug url.
9048
9049 2020-06-11 Keith Seitz <keiths@redhat.com>
9050
9051 PR gdb/21356
9052 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9053 Resolve typedefs for type length calculations.
9054
9055 2020-06-10 Tom de Vries <tdevries@suse.de>
9056
9057 PR ada/24713
9058 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9059 (write_psymbols): Enable .gdb_index for ada.
9060 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9061 ada.
9062
9063 2020-06-10 Tom de Vries <tdevries@suse.de>
9064
9065 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9066 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9067 namei" instead of "const char *name" argument.
9068 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9069 dw2_symtab_iter_init.
9070
9071 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9074 to use type::field and field::type instead.
9075
9076 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9077
9078 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9079 to use field::type instead.
9080
9081 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * gdbtypes.h (struct field) <type, set_type>: New methods.
9084 Rename `type` field to...
9085 <m_type>: ... this. Change references throughout to use type or
9086 set_type methods.
9087 (FIELD_TYPE): Use field::type. Change call sites that modify
9088 the field's type to use field::set_type instead.
9089
9090 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9093 to use type::index_type instead.
9094
9095 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9098 methods.
9099 (TYPE_INDEX_TYPE): Use type::index_type.
9100 * gdbtypes.c (create_array_type_with_stride): Likewise.
9101
9102 2020-06-07 Tom Tromey <tom@tromey.com>
9103
9104 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9105 parameter.
9106 (generic_value_print): Update.
9107
9108 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 Revert commit 982a38f60b0.
9111 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9112
9113 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9114
9115 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9116 avoid use after free.
9117
9118 2020-06-05 Tom de Vries <tdevries@suse.de>
9119
9120 * NEWS: Fix typos.
9121
9122 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9123
9124 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9125 the per_bfd object.
9126 (dwarf2_read_debug_names): Likewise.
9127 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9128 object when re-using a per_bfd object with an index.
9129
9130 2020-06-03 Tom de Vries <tdevries@suse.de>
9131
9132 PR symtab/26046
9133 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9134 children for C++.
9135 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9136 DW_TAG_subprogram.
9137
9138 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9139
9140 * ada-lang.c (ada_language_data): Delete skip_trampoline
9141 initializer.
9142 * c-lang.c (c_language_data): Likewise.
9143 (cplus_language_data): Likewise.
9144 (cplus_language::skip_trampoline): New member function.
9145 (asm_language_data): Delete skip_trampoline initializer.
9146 (minimal_language_data): Likewise.
9147 * d-lang.c (d_language_data): Likewise.
9148 * f-lang.c (f_language_data): Likewise.
9149 * go-lang.c (go_language_data): Likewise.
9150 * language.c (unk_lang_trampoline): Delete function.
9151 (skip_language_trampoline): Update.
9152 (unknown_language_data): Delete skip_trampoline initializer.
9153 (auto_language_data): Likewise.
9154 * language.h (language_data): Delete skip_trampoline field.
9155 (language_defn::skip_trampoline): New function.
9156 * m2-lang.c (m2_language_data): Delete skip_trampoline
9157 initializer.
9158 * objc-lang.c (objc_skip_trampoline): Delete function, move
9159 implementation to objc_language::skip_trampoline.
9160 (objc_language_data): Delete skip_trampoline initializer.
9161 (objc_language::skip_trampoline): New member function with
9162 implementation from objc_skip_trampoline.
9163 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9164 initializer.
9165 * p-lang.c (pascal_language_data): Likewise.
9166 * rust-lang.c (rust_language_data): Likewise.
9167
9168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9169
9170 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9171 (ada_language::demangle): New member function.
9172 * c-lang.c (c_language_data): Delete la_demangle initializer.
9173 (cplus_language_data): Delete la_demangle initializer.
9174 (cplus_language::demangle): New member function.
9175 (asm_language_data): Delete la_demangle initializer.
9176 (minimal_language_data): Delete la_demangle initializer.
9177 * d-lang.c (d_language_data): Delete la_demangle initializer.
9178 (d_language::demangle): New member function.
9179 * f-lang.c (f_language_data): Delete la_demangle initializer.
9180 (f_language::demangle): New member function.
9181 * go-lang.c (go_language_data): Delete la_demangle initializer.
9182 (go_language::demangle): New member function.
9183 * language.c (language_demangle): Update.
9184 (unk_lang_demangle): Delete.
9185 (unknown_language_data): Delete la_demangle initializer.
9186 (unknown_language::demangle): New member function.
9187 (auto_language_data): Delete la_demangle initializer.
9188 (auto_language::demangle): New member function.
9189 * language.h (language_data): Delete la_demangle field.
9190 (language_defn::demangle): New function.
9191 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9192 * objc-lang.c (objc_language_data): Delete la_demangle
9193 initializer.
9194 (objc_language::demangle): New member function.
9195 * opencl-lang.c (opencl_language_data): Delete la_demangle
9196 initializer.
9197 * p-lang.c (pascal_language_data): Likewise.
9198 * rust-lang.c (rust_language_data): Likewise.
9199 (rust_language::demangle): New member function.
9200
9201 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9202
9203 * ada-lang.c (ada_language_data): Delete la_print_type
9204 initializer.
9205 (ada_language::print_type): New member function.
9206 * c-lang.c (c_language_data): Delete la_print_type initializer.
9207 (c_language::print_type): New member function.
9208 (cplus_language_data): Delete la_print_type initializer.
9209 (cplus_language::print_type): New member function.
9210 (asm_language_data): Delete la_print_type initializer.
9211 (asm_language::print_type): New member function.
9212 (minimal_language_data): Delete la_print_type initializer.
9213 (minimal_language::print_type): New member function.
9214 * d-lang.c (d_language_data): Delete la_print_type initializer.
9215 (d_language::print_type): New member function.
9216 * f-lang.c (f_language_data): Delete la_print_type initializer.
9217 (f_language::print_type): New member function.
9218 * go-lang.c (go_language_data): Delete la_print_type initializer.
9219 (go_language::print_type): New member function.
9220 * language.c (unk_lang_print_type): Delete.
9221 (unknown_language_data): Delete la_print_type initializer.
9222 (unknown_language::print_type): New member function.
9223 (auto_language_data): Delete la_print_type initializer.
9224 (auto_language::print_type): New member function.
9225 * language.h (language_data): Delete la_print_type field.
9226 (language_defn::print_type): New function.
9227 (LA_PRINT_TYPE): Update.
9228 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9229 (m2_language::print_type): New member function.
9230 * objc-lang.c (objc_language_data): Delete la_print_type
9231 initializer.
9232 (objc_language::print_type): New member function.
9233 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9234 to opencl_language::print_type.
9235 (opencl_language_data): Delete la_print_type initializer.
9236 (opencl_language::print_type): New member function, implementation
9237 from opencl_print_type.
9238 * p-lang.c (pascal_language_data): Delete la_print_type
9239 initializer.
9240 (pascal_language::print_type): New member function.
9241 * rust-lang.c (rust_print_type): Delete, implementation moved to
9242 rust_language::print_type.
9243 (rust_language_data): Delete la_print_type initializer.
9244 (rust_language::print_type): New member function, implementation
9245 from rust_print_type.
9246
9247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9250 implementation moves to...
9251 (ada_language::sniff_from_mangled_name): ...here. Update return
9252 type.
9253 (ada_language_data): Delete la_sniff_from_mangled_name
9254 initializer.
9255 * c-lang.c (c_language_data): Likewise.
9256 (cplus_language_data): Likewise.
9257 (cplus_language::sniff_from_mangled_name): New member function,
9258 implementation taken from gdb_sniff_from_mangled_name.
9259 (asm_language_data): Delete la_sniff_from_mangled_name
9260 initializer.
9261 (minimal_language_data): Likewise.
9262 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9263 implementation moves to cplus_language::sniff_from_mangled_name.
9264 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9265 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9266 moves to...
9267 (d_language::sniff_from_mangled_name): ...here.
9268 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9269 * f-lang.c (f_language_data): Likewise.
9270 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9271 moves to...
9272 (go_language::sniff_from_mangled_name): ...here.
9273 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9274 * language.c (language_sniff_from_mangled_name): Delete.
9275 (unknown_language_data): Delete la_sniff_from_mangled_name
9276 initializer.
9277 (auto_language_data): Likewise.
9278 * language.h (language_data): Delete la_sniff_from_mangled_name
9279 field.
9280 (language_defn::sniff_from_mangled_name): New function.
9281 (language_sniff_from_mangled_name): Delete declaration.
9282 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9283 field.
9284 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9285 implementation moves to...
9286 (objc_language::sniff_from_mangled_name): ...here.
9287 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9288 * opencl-lang.c (opencl_language_data): Likewise.
9289 * p-lang.c (pascal_language_data): Likewise.
9290 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9291 implementation moves to...
9292 (rust_language::sniff_from_mangled_name): ...here.
9293 (rust_language_data): Delete la_sniff_from_mangled_name
9294 initializer.
9295 * symtab.c (symbol_find_demangled_name): Call
9296 sniff_from_mangled_name member function.
9297
9298 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9301 initializer.
9302 * c-lang.c (c_language_data): Likewise.
9303 (cplus_language_data): Likewise.
9304 (cplus_language::search_name_hash): New member function.
9305 (asm_language_data): Delete la_search_name_hash initializer.
9306 (minimal_language_data): Likewise.
9307 * d-lang.c (d_language_data): Likewise.
9308 * dictionary.c (default_search_name_hash): Rename to...
9309 (language_defn::search_name_hash): ...this.
9310 * f-lang.c (f_language_data): Likewise.
9311 (f_language::search_name_hash): New member function.
9312 * go-lang.c (go_language_data): Delete la_search_name_hash
9313 initializer.
9314 * language.c (unknown_language_data): Likewise.
9315 (auto_language_data): Likewise.
9316 * language.h (struct language_data): Delete la_search_name_hash
9317 field.
9318 (language_defn::search_name_hash): Declare new member function.
9319 (default_search_name_hash): Delete declaration.
9320 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9321 initializer.
9322 * objc-lang.c (objc_language_data): Likewise.
9323 * opencl-lang.c (opencl_language_data): Likewise.
9324 * p-lang.c (pascal_language_data): Likewise.
9325 * rust-lang.c (rust_language_data): Likewise.
9326 * symtab.c (search_name_hash): Update call.
9327
9328 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9331 initializer.
9332 * c-lang.c (class compile_instance): Declare.
9333 (c_language_data): Delete la_get_compile_instance initializer.
9334 (c_language::get_compile_instance): New member function.
9335 (cplus_language_data): Delete la_get_compile_instance initializer.
9336 (cplus_language::get_compile_instance): New member function.
9337 (asm_language_data): Delete la_get_compile_instance initializer.
9338 (minimal_language_data): Likewise.
9339 * c-lang.h (c_get_compile_context): Update comment.
9340 (cplus_get_compile_context): Update comment.
9341 * compile/compile.c (compile_to_object): Update calls, don't rely
9342 on function pointer being NULL.
9343 * d-lang.c (d_language_data): Delete la_get_compile_instance
9344 initializer.
9345 * f-lang.c (f_language_data): Likewise.
9346 * go-lang.c (go_language_data): Likewise.
9347 * language.c (unknown_language_data): Likewise.
9348 (auto_language_data): Likewise.
9349 * language.h (language_data): Delete la_get_compile_instance field.
9350 (language_defn::get_compile_instance): New member function.
9351 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9352 initializer.
9353 * objc-lang.c (objc_language_data): Likewise.
9354 * opencl-lang.c (opencl_language_data): Likewise.
9355 * p-lang.c (pascal_language_data): Likewise.
9356 * rust-lang.c (rust_language_data): Likewise.
9357
9358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * ada-lang.c (ada_add_all_symbols): Update comment.
9361 (ada_iterate_over_symbols): Delete, move implementation to...
9362 (ada_language::iterate_over_symbols): ...here, a new member
9363 function, rewrite to use range based for loop.
9364 (ada_language_data): Delete la_iterate_over_symbols initializer.
9365 * c-lang.c (c_language_data): Likewise.
9366 (cplus_language_data): Likewise.
9367 (asm_language_data): Likewise.
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 (language_data): Delete la_iterate_over_symbols field.
9375 (language_defn::iterate_over_symbols): New member function.
9376 (LA_ITERATE_OVER_SYMBOLS): Update.
9377 * linespec.c (iterate_over_all_matching_symtabs): Update.
9378 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9379 initializer.
9380 * objc-lang.c (objc_language_data): Likewise.
9381 * opencl-lang.c (opencl_language_data): Likewise.
9382 * p-lang.c (pascal_language_data): Likewise.
9383 * rust-lang.c (rust_language_data): Likewise.
9384
9385 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9386
9387 * ada-lang.c (ada_language_data): Delete
9388 la_lookup_transparent_type initializer.
9389 * c-lang.c (c_language_data): Likewise.
9390 (cplus_language_data): Likewise.
9391 (cplus_language::lookup_transparent_type): New member function.
9392 (asm_language_data): Delete la_lookup_transparent_type
9393 initializer.
9394 (minimal_language_data): Likewise.
9395 * d-lang.c (d_language_data): Likewise.
9396 * f-lang.c (f_language_data): Likewise.
9397 * go-lang.c (go_language_data): Likewise.
9398 * language.c (unknown_language_data): Likewise.
9399 (auto_language_data): Likewise.
9400 * language.h (struct language_data): Delete
9401 la_lookup_transparent_type field.
9402 (language_defn::lookup_transparent_type): New member function.
9403 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9404 initializer.
9405 * objc-lang.c (objc_language_data): Likewise.
9406 * opencl-lang.c (opencl_language_data): Likewise.
9407 * p-lang.c (pascal_language_data): Likewise.
9408 * rust-lang.c (rust_language_data): Likewise.
9409 * symtab.c (symbol_matches_domain): Update call.
9410
9411 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9412
9413 * ada-lang.c (ada_language_arch_info): Delete function, move
9414 implementation to...
9415 (ada_language::language_arch_info): ...here, a new member
9416 function.
9417 (ada_language_data): Delete la_language_arch_info.
9418 * c-lang.c (c_language_data): Likewise.
9419 (c_language::language_arch_info): New member function.
9420 (cplus_language_arch_info): Delete function, move
9421 implementation to...
9422 (cplus_language::language_arch_info): ...here, a new member
9423 function.
9424 (cplus_language_data): Delete la_language_arch_info.
9425 (asm_language_data): Likewise.
9426 (asm_language::language_arch_info): New member function.
9427 (minimal_language_data): Delete la_language_arch_info.
9428 (minimal_language::language_arch_info): New member function.
9429 * d-lang.c (d_language_arch_info): Delete function, move
9430 implementation to...
9431 (d_language::language_arch_info): ...here, a new member
9432 function.
9433 (d_language_data): Delete la_language_arch_info.
9434 * f-lang.c (f_language_arch_info): Delete function, move
9435 implementation to...
9436 (f_language::language_arch_info): ...here, a new member
9437 function.
9438 (f_language_data): Delete la_language_arch_info.
9439 * go-lang.c (go_language_arch_info): Delete function, move
9440 implementation to...
9441 (go_language::language_arch_info): ...here, a new member
9442 function.
9443 (go_language_data): Delete la_language_arch_info.
9444 * language.c (unknown_language_data): Likewise.
9445 (unknown_language::language_arch_info): New member function.
9446 (auto_language_data): Delete la_language_arch_info.
9447 (auto_language::language_arch_info): New member function.
9448 (language_gdbarch_post_init): Update call to
9449 la_language_arch_info.
9450 * language.h (language_data): Delete la_language_arch_info
9451 function pointer.
9452 (language_defn::language_arch_info): New function.
9453 * m2-lang.c (m2_language_arch_info): Delete function, move
9454 implementation to...
9455 (m2_language::language_arch_info): ...here, a new member
9456 function.
9457 (m2_language_data): Delete la_language_arch_info.
9458 * objc-lang.c (objc_language_arch_info): Delete function, move
9459 implementation to...
9460 (objc_language::language_arch_info): ...here, a new member
9461 function.
9462 (objc_language_data): Delete la_language_arch_info.
9463 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9464 implementation to...
9465 (opencl_language::language_arch_info): ...here, a new member
9466 function.
9467 (opencl_language_data): Delete la_language_arch_info.
9468 * p-lang.c (pascal_language_arch_info): Delete function, move
9469 implementation to...
9470 (pascal_language::language_arch_info): ...here, a new member
9471 function.
9472 (pascal_language_data): Delete la_language_arch_info.
9473 * rust-lang.c (rust_language_arch_info): Delete function, move
9474 implementation to...
9475 (rust_language::language_arch_info): ...here, a new member
9476 function.
9477 (rust_language_data): Delete la_language_arch_info.
9478
9479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9482 initializer.
9483 * c-lang.c (c_language_data): Likewise.
9484 (cplus_language_data): Likewise.
9485 (cplus_language::pass_by_reference_info): New method.
9486 (asm_language_data): Delete la_pass_by_reference initializer.
9487 (minimal_language_data): Likewise.
9488 * cp-abi.c (cp_pass_by_reference): Remove use of
9489 default_pass_by_reference.
9490 * d-lang.c (d_language_data): Likewise.
9491 * f-lang.c (f_language_data): Likewise.
9492 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9493 default_pass_by_reference.
9494 * go-lang.c (go_language_data): Likewise.
9495 * language.c (language_pass_by_reference): Update.
9496 (default_pass_by_reference): Delete.
9497 (unknown_language_data): Delete la_pass_by_reference
9498 initializer.
9499 (auto_language_data): Likewise.
9500 * language.h (struct language_data): Delete la_pass_by_reference
9501 field.
9502 (language_defn::pass_by_reference_info): New member function.
9503 (default_pass_by_reference): Delete declaration.
9504 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9505 initializer.
9506 * objc-lang.c (objc_language_data): Likewise.
9507 * opencl-lang.c (opencl_language_data): Likewise.
9508 * p-lang.c (pascal_language_data): Likewise.
9509 * rust-lang.c (rust_language_data): Likewise.
9510
9511 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9512
9513 * ada-lang.c (ada_read_var_value): Delete function, move
9514 implementation to...
9515 (ada_language::read_var_value): ...here.
9516 (ada_language_data): Delete la_read_var_value initializer.
9517 * c-lang.c (c_language_data): Likewise.
9518 (cplus_language_data): Likewise.
9519 (minimal_language_data): Likewise.
9520 * d-lang.c (d_language_data): Likewise.
9521 * f-lang.c (f_language_data): Likewise.
9522 * findvar.c (default_read_var_value): Rename to...
9523 (language_defn::read_var_value): ...this.
9524 * findvar.c (read_var_value): Update header comment, and change to
9525 call member function instead of function pointer.
9526 * go-lang.c (go_language_data): Likewise.
9527 * language.c (unknown_language_data): Delete la_read_var_value
9528 initializer.
9529 (auto_language_data): Likewise.
9530 * language.h (struct language_data): Delete la_read_var_value
9531 field.
9532 (language_defn::read_var_value): New member function.
9533 (default_read_var_value): Delete declaration.
9534 * m2-lang.c (m2_language_data): Delete la_read_var_value
9535 initializer.
9536 * objc-lang.c (objc_language_data): Likewise.
9537 * opencl-lang.c (opencl_language_data): Likewise.
9538 * p-lang.c (pascal_language_data): Likewise.
9539 * rust-lang.c (rust_language_data): Likewise.
9540 * value.h (default_read_var_value): Delete declaration.
9541
9542 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9543
9544 * ada-lang.c (ada_print_array_index): Delete function, move
9545 implementation to...
9546 (ada_language::print_array_index): ...here.
9547 (ada_language_data): Delete la_print_array_index initializer.
9548 * c-lang.c (c_language_data): Likewise.
9549 (cplus_language_data): Likewise.
9550 (minimal_language_data): Likewise.
9551 * d-lang.c (d_language_data): Likewise.
9552 * f-lang.c (f_language_data): Likewise.
9553 * go-lang.c (go_language_data): Likewise.
9554 * language.c (default_print_array_index): Delete function, move
9555 implementation to...
9556 (language_defn::print_array_index): ...here.
9557 (unknown_language_data): Delete la_print_array_index initializer.
9558 (auto_language_data): Likewise.
9559 * language.h (struct language_data): Delete la_print_array_index
9560 field.
9561 (language_defn::print_array_index): New member function.
9562 (LA_PRINT_ARRAY_INDEX): Update.
9563 (default_print_array_index): Delete declaration.
9564 * m2-lang.c (m2_language_data): Delete la_print_array_index
9565 initializer.
9566 * objc-lang.c (objc_language_data): Likewise.
9567 * opencl-lang.c (opencl_language_data): Likewise.
9568 * p-lang.c (pascal_language_data): Likewise.
9569 * rust-lang.c (rust_language_data): Likewise.
9570
9571 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9572
9573 * gdb/ada-lang.c (ada_language_defn): Convert to...
9574 (ada_language_data): ...this.
9575 (class ada_language): New class.
9576 (ada_language_defn): New static global.
9577 * gdb/c-lang.c (c_language_defn): Convert to...
9578 (c_language_data): ...this.
9579 (class c_language): New class.
9580 (c_language_defn): New static global.
9581 (cplus_language_defn): Convert to...
9582 (cplus_language_data): ...this.
9583 (class cplus_language): New class.
9584 (cplus_language_defn): New static global.
9585 (asm_language_defn): Convert to...
9586 (asm_language_data): ...this.
9587 (class asm_language): New class.
9588 (asm_language_defn): New static global.
9589 (minimal_language_defn): Convert to...
9590 (minimal_language_data): ...this.
9591 (class minimal_language): New class.
9592 (minimal_language_defn): New static global.
9593 * gdb/d-lang.c (d_language_defn): Convert to...
9594 (d_language_data): ...this.
9595 (class d_language): New class.
9596 (d_language_defn): New static global.
9597 * gdb/f-lang.c (f_language_defn): Convert to...
9598 (f_language_data): ...this.
9599 (class f_language): New class.
9600 (f_language_defn): New static global.
9601 * gdb/go-lang.c (go_language_defn): Convert to...
9602 (go_language_data): ...this.
9603 (class go_language): New class.
9604 (go_language_defn): New static global.
9605 * gdb/language.c (unknown_language_defn): Remove declaration.
9606 (current_language): Initialize to nullptr, real initialization is
9607 moved to _initialize_language.
9608 (languages): Delete global.
9609 (language_defn::languages): Define.
9610 (set_language_command): Use language_defn::languages.
9611 (set_language): Likewise.
9612 (range_error): Likewise.
9613 (language_enum): Likewise.
9614 (language_def): Likewise.
9615 (add_set_language_command): Use language_def::languages for the
9616 language list, and language_def to lookup language pointers.
9617 (skip_language_trampoline): Use language_defn::languages.
9618 (unknown_language_defn): Convert to...
9619 (unknown_language_data): ...this.
9620 (class unknown_language): New class.
9621 (unknown_language_defn): New static global.
9622 (auto_language_defn): Convert to...
9623 (auto_language_data): ...this.
9624 (class auto_language): New class.
9625 (auto_language_defn): New static global.
9626 (language_gdbarch_post_init): Use language_defn::languages.
9627 (_initialize_language): Initialize current_language.
9628 * gdb/language.h (struct language_defn): Rename to...
9629 (struct language_data): ...this.
9630 (struct language_defn): New.
9631 (auto_language_defn): Delete.
9632 (unknown_language_defn): Delete.
9633 (minimal_language_defn): Delete.
9634 (ada_language_defn): Delete.
9635 (asm_language_defn): Delete.
9636 (c_language_defn): Delete.
9637 (cplus_language_defn): Delete.
9638 (d_language_defn): Delete.
9639 (f_language_defn): Delete.
9640 (go_language_defn): Delete.
9641 (m2_language_defn): Delete.
9642 (objc_language_defn): Delete.
9643 (opencl_language_defn): Delete.
9644 (pascal_language_defn): Delete.
9645 (rust_language_defn): Delete.
9646 * gdb/m2-lang.c (m2_language_defn): Convert to...
9647 (m2_language_data): ...this.
9648 (class m2_language): New class.
9649 (m2_language_defn): New static global.
9650 * gdb/objc-lang.c (objc_language_defn): Convert to...
9651 (objc_language_data): ...this.
9652 (class objc_language): New class.
9653 (objc_language_defn): New static global.
9654 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9655 (opencl_language_data): ...this.
9656 (class opencl_language): New class.
9657 (opencl_language_defn): New static global.
9658 * gdb/p-lang.c (pascal_language_defn): Convert to...
9659 (pascal_language_data): ...this.
9660 (class pascal_language): New class.
9661 (pascal_language_defn): New static global.
9662 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9663 language pointer, update comment format.
9664 * gdb/rust-lang.c (rust_language_defn): Convert to...
9665 (rust_language_data): ...this.
9666 (class rust_language): New class.
9667 (rust_language_defn): New static global.
9668
9669 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9670
9671 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9672 member variable.
9673 <m_stmt_at_address>: New member variable.
9674 (lnp_state_machine::record_line): Don't record some lines, update
9675 tracking of is_stmt at the same address.
9676 (lnp_state_machine::lnp_state_machine): Initialise new member
9677 variables.
9678
9679 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9680
9681 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9682 "-include gnu-nat-mig.h".
9683 * gnu-nat-mig.h: New file.
9684 * gnu-nat.c: Include "gnu-nat-mig.h".
9685 (exc_server, msg_reply_server, notify_server,
9686 process_reply_server): Remove declarations.
9687
9688 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9689
9690 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9691 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9692 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9693 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9694 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9695 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9696 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9697 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9698 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9699 to gnu_nat_target class.
9700 * gnu-nat.c: Likewise.
9701 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9702 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9703 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9704 object.
9705 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9706 instead of `gnu_target'.
9707
9708 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9709
9710 * i386-gnu-tdep.c: Include "gdbcore.h"
9711 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9712 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9713 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9714 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9715 i386_gnu_sigcontext_addr): New functions
9716 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9717 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9718 tdep.
9719
9720 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9721
9722 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9723 before fork_inferior call. Avoid calling it if target_is_pushed returns
9724 true.
9725
9726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9727
9728 * gnu-nat.h (gnu_target): New variable declaration.
9729 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9730 gnu_target.
9731 * gnu-nat.c (gnu_target): New variable.
9732 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9733 add_thread_silent, and add_thread calls.
9734 (gnu_nat_target::create_inferior): Pass gnu_target to
9735 add_thread_silent, thread_change_ptid call.
9736 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9737 call.
9738
9739 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9740
9741 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9742 (gnu_nat_target::find_memory_regions): Remove unused
9743 `old_address' variable.
9744
9745 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9746
9747 * gnu-nat.c: Include "gdbarch.h".
9748
9749 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9750
9751 * reply_mig_hack.awk (Error return): Cast function through
9752 void *, to bypass compiler function call check.
9753
9754 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9755
9756 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9757 $(srcdir)/reply_mig_hack.awk.
9758
9759 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9760
9761 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9762
9763 2020-05-30 Jonny Grant <jg@jguk.org>
9764
9765 * configure.ac (ACX_BUGURL): change bug URL to https.
9766
9767 2020-05-30 Pedro Alves <palves@redhat.com>
9768
9769 * cp-support.c (replace_typedefs_template): New.
9770 (replace_typedefs_qualified_name): Handle
9771 DEMANGLE_COMPONENT_TEMPLATE.
9772
9773 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9776 dwarf2/index-cache.h, dwarf2/index-write.c,
9777 dwarf2/index-write.h, dwarf2/line-header.c,
9778 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9779 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9780 variables and fields from `dwarf2_per_objfile` to just
9781 `per_objfile` throughout.
9782
9783 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9784
9785 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9786 <push_dwarf_reg_entry_value>: Add comment.
9787
9788 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9789 Keith Seitz <keiths@redhat.com>
9790
9791 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9792 instead of PyEval_ReleaseLock.
9793 (class gdbpy_gil): Move to earlier in file.
9794 (finalize_python): Set gdb_python_initialized.
9795 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9796 when not initialized.
9797
9798 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9801 <push_dwarf_reg_entry_value>: Remove assert. Override
9802 per_objfile with caller_per_objfile.
9803
9804 2020-05-28 Tom de Vries <tdevries@suse.de>
9805
9806 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9807 PR gold/15646 workaround to symbol kind "type".
9808
9809 2020-05-27 Tom Tromey <tromey@adacore.com>
9810
9811 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9812
9813 2020-05-27 Tom Tromey <tromey@adacore.com>
9814
9815 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9816 Use htab_find_with_hash.
9817 <add_abbrev>: Remove "abbrev_number" parameter.
9818 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9819 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9820 (hash_abbrev): Add comment.
9821 (abbrev_table::lookup_abbrev): Move to header file.
9822 (abbrev_table::read): Update.
9823
9824 2020-05-27 Tom Tromey <tromey@adacore.com>
9825
9826 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9827 method.
9828 <canonical_name>: New member.
9829 <raw_name>: Rename from "name".
9830 (partial_die_info): Initialize canonical_name.
9831 (scan_partial_symbols): Check raw_name.
9832 (partial_die_parent_scope, partial_die_full_name)
9833 (add_partial_symbol, add_partial_subprogram)
9834 (add_partial_enumeration, load_partial_dies): Use "name" method.
9835 (partial_die_info::name): New method.
9836 (partial_die_info::read, guess_partial_die_structure_name)
9837 (partial_die_info::fixup): Update.
9838
9839 2020-05-27 Tom Tromey <tromey@adacore.com>
9840
9841 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9842 <get_ref_die_offset>: Inline.
9843 <get_ref_die_offset_complaint>: New method.
9844 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9845 (attribute::get_ref_die_offset_complaint): Rename from
9846 get_ref_die_offset. Just issue complaint.
9847
9848 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9849
9850 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9851
9852 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9853
9854 * exec.c (exec_file_attach): Use errno value of first openp failure.
9855
9856 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9857
9858 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9859 Don't close thread handle.
9860
9861 2020-05-27 Tom Tromey <tom@tromey.com>
9862 Simon Marchi <simon.marchi@efficios.com>
9863
9864 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9865 shared_ptr.
9866 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9867 member.
9868 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9869 dwarf2_per_bfd_objfile_data_key>: New globals.
9870 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9871 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9872 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9873 shared.
9874 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9875 short-circuit when sharing.
9876 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9877 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9878
9879 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9882 to...
9883 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9884 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9885
9886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9889 build_name_components, find_name_components_bounds>:
9890 Add per_objfile parameter.
9891 (struct mapped_index) <symbol_name_at>: Likewise.
9892 (struct mapped_debug_names): Remove constructor.
9893 <dwarf2_per_objfile>: Remove field.
9894 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9895 (mapped_index_base::find_name_components_bounds,
9896 mapped_index_base::build_name_components,
9897 dw2_expand_symtabs_matching_symbol): Likewise.
9898 (class mock_mapped_index) <symbol_name_at>: Likewise.
9899 (check_match): Likewise.
9900 (check_find_bounds_finds): Likewise.
9901 (test_mapped_index_find_name_component_bounds): Update.
9902 (CHECK_MATCH): Update.
9903 (dw2_expand_symtabs_matching): Update.
9904 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9905 per_objfile parameter.
9906 <find_vec_in_debug_names>: Likewise.
9907 <m_per_objfile>: New field.
9908 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9909 parameter.
9910 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9911 (dw2_debug_names_iterator::next): Update.
9912 (dw2_debug_names_lookup_symbol): Update.
9913 (dw2_debug_names_expand_symtabs_for_function): Update.
9914 (dw2_debug_names_map_matching_symbols): Update.
9915 (dw2_debug_names_expand_symtabs_matching): Update.
9916 (dwarf2_read_debug_names): Update.
9917
9918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9921 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9922 move to dwarf2_per_objfile.
9923 <read_in_chain>: Remove.
9924 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9925 remove_all_cus, age_comp_units>: New methods.
9926 <m_dwarf2_cus>: New member.
9927 (struct dwarf2_per_cu_data) <cu>: Remove.
9928 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9929 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9930 moved to methods of dwarf2_per_objfile.
9931 (dwarf2_clear_marks): Remove.
9932 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9933 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9934 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9935 (dwarf2_per_objfile::remove_all_cus): New.
9936 (class free_cached_comp_units) <~free_cached_comp_units>:
9937 Update.
9938 (load_cu): Update.
9939 (dw2_do_instantiate_symtab): Adjust.
9940 (fill_in_sig_entry_from_dwo_entry): Adjust.
9941 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9942 (cutu_reader::cutu_reader): Likewise.
9943 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9944 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9945 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9946 and dwarf2_per_objfile::age_comp_units.
9947 (load_partial_comp_unit): Update.
9948 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9949 (process_queue): Likewise.
9950 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9951 backlink.
9952 (dwarf2_read_addr_index): Likewise.
9953 (follow_die_offset): Likewise.
9954 (dwarf2_fetch_die_loc_sect_off): Likewise.
9955 (dwarf2_fetch_constant_bytes): Likewise.
9956 (dwarf2_fetch_die_type_sect_off): Likewise.
9957 (follow_die_sig_1): Likewise.
9958 (load_full_type_unit): Likewise.
9959 (read_signatured_type): Likewise.
9960 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9961 (dwarf2_cu::~dwarf2_cu): Remove.
9962 (dwarf2_per_objfile::get_cu): New.
9963 (dwarf2_per_objfile::set_cu): New.
9964 (age_cached_comp_units): Rename to...
9965 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9966 to std::unordered_map.
9967 (free_one_cached_comp_unit): Rename to...
9968 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9969 to std::unordered_map.
9970 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9971 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9972 a dwarf2_per_objfile in data.
9973 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9974 (dwarf2_clear_marks): Remove.
9975
9976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9977
9978 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9979 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9980 (init_tu_and_read_dwo_dies): Likewise.
9981 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9982 (cutu_reader::cutu_reader): Likewise.
9983 (load_partial_comp_unit): Likewise.
9984 (process_psymtab_comp_unit): Update.
9985 (build_type_psymtabs_1): Update.
9986 (process_skeletonless_type_unit): Update.
9987 (load_full_comp_unit): Update.
9988 (find_partial_die): Update.
9989 (dwarf2_read_addr_index): Update.
9990 (read_signatured_type): Update.
9991
9992 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9993
9994 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9995 m_header_read_in>: New fields.
9996 <get_header>: New method.
9997 * dwarf2/read.c (per_cu_header_read_in): Remove.
9998 (dwarf2_per_cu_data::get_header): New.
9999 (dwarf2_per_cu_data::addr_size): Update.
10000 (dwarf2_per_cu_data::offset_size): Update.
10001 (dwarf2_per_cu_data::ref_addr_size): Update.
10002
10003 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10006 (dw2_do_instantiate_symtab): Update.
10007 (queue_and_load_all_dwo_tus): Change parameter from
10008 dwarf2_per_cu_data to dwarf2_cu.
10009 (dwarf2_fetch_die_loc_sect_off): Update.
10010 (dwarf2_fetch_constant_bytes): Update.
10011 (dwarf2_fetch_die_type_sect_off): Update.
10012
10013 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10014
10015 * dwarf2/read.c (process_full_comp_unit,
10016 process_full_type_unit): Remove per_cu, per_objfile paramters.
10017 Add dwarf2_cu parameter.
10018 (process_queue): Update.
10019
10020 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10021
10022 * dwarf2/read.c (create_cu_from_index_list): Replace
10023 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10024 (create_cus_from_index_list): Likewise.
10025 (create_cus_from_index): Likewise.
10026 (create_signatured_type_table_from_index): Likewise.
10027 (create_cus_from_debug_names_list): Likewise.
10028 (create_cus_from_debug_names): Likewise.
10029 (dwarf2_read_gdb_index): Update.
10030 (dwarf2_read_debug_names): Update.
10031
10032 2020-05-27 Tom Tromey <tom@tromey.com>
10033 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * dwarf2/read.h (struct dwarf2_per_objfile)
10036 <get_type_for_signatured_type, set_type_for_signatured_type>:
10037 New methods.
10038 <m_type_map>: New member.
10039 (struct signatured_type) <type>: Remove.
10040 * dwarf2/read.c
10041 (dwarf2_per_objfile::get_type_for_signatured_type,
10042 dwarf2_per_objfile::set_type_for_signatured_type): New.
10043 (get_signatured_type): Use new methods.
10044
10045 2020-05-27 Tom Tromey <tom@tromey.com>
10046 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10049 (struct dwarf2_per_objfile) <type_units>: New member.
10050 <get_type_unit_group_unshareable>: New method.
10051 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10052 num_symtabs, symtabs>: Remove; move to
10053 type_unit_group_unshareable.
10054 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10055 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10056 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10057
10058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * dwarf2/read.h (struct dwarf2_per_cu_data):
10061 <dwarf2_per_objfile>: Remove.
10062 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10063 dwarf2_per_objfile.
10064 (create_signatured_type_table_from_index): Likewise.
10065 (create_signatured_type_table_from_debug_names): Likewise.
10066 (create_debug_type_hash_table): Likewise.
10067 (fill_in_sig_entry_from_dwo_entry): Likewise.
10068 (create_type_unit_group): Likewise.
10069 (read_comp_units_from_section): Likewise.
10070 (create_cus_hash_table): Likewise.
10071
10072 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10075 dwarf2_per_cu_data::dwarf2_per_objfile.
10076 (compute_compunit_symtab_includes): Likewise.
10077 (dwarf2_cu::start_symtab): Likewise.
10078
10079 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10082 parameter.
10083 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10084 (read_namespace_alias): Update.
10085 (lookup_die_type): Update.
10086 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10087 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10088 Update.
10089 (disassemble_dwarf_expression): Update.
10090
10091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10092
10093 * dwarf2/read.h (struct dwarf2_queue_item): Add
10094 dwarf2_per_objfile parameter, assign new parameter.
10095 <per_objfile>: New field.
10096 * dwarf2/read.c (free_one_cached_comp_unit): Add
10097 dwarf2_per_objfile parameter.
10098 (queue_comp_unit): Likewise.
10099 (dw2_do_instantiate_symtab): Update.
10100 (process_psymtab_comp_unit): Update.
10101 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10102 (process_imported_unit_die): Update.
10103 (queue_and_load_dwo_tu): Update.
10104 (follow_die_offset): Update.
10105 (follow_die_sig_1): Update.
10106
10107 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10110 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10111 (read_call_site_scope): Assign per_objfile.
10112 (dwarf2_per_cu_data::objfile): Remove.
10113 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10114 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10115 dwarf2_per_objfile parameter.
10116 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10117 dwarf2_per_objfile parameter.
10118 (dwarf_expr_reg_to_entry_parameter): Add output
10119 dwarf2_per_objfile parameter.
10120 (locexpr_get_frame_base): Update.
10121 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10122 <push_dwarf_reg_entry_value>: Update.
10123 <call_site_to_target_addr>: Update.
10124 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10125 parameter.
10126 (value_of_dwarf_reg_entry): Update.
10127 (rw_pieced_value): Update.
10128 (indirect_synthetic_pointer): Update.
10129 (dwarf2_evaluate_property): Update.
10130 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10131 parameter.
10132 (locexpr_read_variable): Update.
10133 (locexpr_get_symbol_read_needs): Update.
10134 (loclist_read_variable): Update.
10135
10136 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10139 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10140 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10141 parameter.
10142 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10143 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10144 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10145 parameter.
10146 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10147 sect_variable_value): Add dwarf2_per_objfile parameter.
10148 (class dwarf_evaluate_loc_desc) <dwarf_call,
10149 dwarf_variable_value>: Update.
10150 (fetch_const_value_from_synthetic_pointer): Add
10151 dwarf2_per_objfile parameter.
10152 (fetch_const_value_from_synthetic_pointer): Update.
10153 (coerced_pieced_ref): Update.
10154 (class symbol_needs_eval_context) <dwarf_call,
10155 dwarf_variable_value>: Update.
10156 (dwarf2_compile_expr_to_ax): Update.
10157
10158 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10159
10160 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10161 parameter.
10162 (dwarf2_evaluate_loc_desc_full): Update.
10163
10164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10165
10166 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10167 parameter.
10168 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10169 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10170 dwarf2_per_objfile parameter.
10171 (decode_debug_loc_dwo_addresses): Likewise.
10172 (dwarf2_find_location_expression): Update.
10173 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10174 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10175 parameter.
10176 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10177 parameter.
10178 (locexpr_describe_location_1): Likewise.
10179 (locexpr_describe_location): Update.
10180
10181 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10184 Remove.
10185 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10186 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10187 (dwarf2_compile_property_to_c): Update.
10188 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10189 use text offset from objfile.
10190 (locexpr_tracepoint_var_ref): Update.
10191 (locexpr_generate_c_location): Update.
10192 (loclist_describe_location): Update.
10193 (loclist_tracepoint_var_ref): Update.
10194 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10195 dwarf2_per_objfile parameter.
10196 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10197 use text offset from objfile.
10198 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10199
10200 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * dwarf2/expr.h (struct dwarf_expr_context)
10203 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10204 <offset>: Remove.
10205 <per_objfile>: New member.
10206 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10207 dwarf2_per_objfile parameter. Don't set offset, set
10208 per_objfile.
10209 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10210 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10211 a dwarf2_per_objfile object instead of an offset.
10212 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10213 constructor.
10214 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10215 to dwarf2_expr_executor constructor. Don't set offset.
10216 (dwarf2_fetch_cfa_info): Update.
10217 (struct dwarf2_frame_cache) <text_offset>: Remove.
10218 <per_objfile>: New field.
10219 (dwarf2_frame_cache): Update.
10220 (dwarf2_frame_prev_register): Update.
10221 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10222 <dwarf_evaluate_loc_desc>: Add constructor.
10223 (dwarf2_evaluate_loc_desc_full): Update.
10224 (dwarf2_locexpr_baton_eval): Update.
10225 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10226 Add constructor.
10227 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10228
10229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10232 addr_sized_int_type>: Move to dwarf2_cu.
10233 <int_type>: Move to dwarf2_per_objfile.
10234 (struct dwarf2_per_objfile) <int_type>: Move here.
10235 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10236 addr_sized_int_type>: Move here.
10237 (read_func_scope): Update.
10238 (read_array_type): Update.
10239 (read_tag_string_type): Update.
10240 (attr_to_dynamic_prop): Update.
10241 (dwarf2_per_cu_data::int_type): Rename to...
10242 (dwarf2_per_objfile::int_type): ... this.
10243 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10244 (dwarf2_cu::addr_sized_int_type): ... this.
10245 (read_subrange_type): Update.
10246 (dwarf2_per_cu_data::addr_type): Rename to...
10247 (dwarf2_cu::addr_type): ... this.
10248 (set_die_type): Update.
10249
10250 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10253 data through per_cu->cu.
10254
10255 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10256
10257 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10258 dwarf2_per_cu_data parameter fo dwarf2_cu.
10259 (lookup_dwo_type_unit): Likewise.
10260 (read_cutu_die_from_dwo): Likewise.
10261 (lookup_dwo_unit): Likewise.
10262 (open_and_init_dwo_file): Likewise.
10263 (lookup_dwo_cutu): Likewise.
10264 (lookup_dwo_comp_unit): Likewise.
10265 (lookup_dwo_type_unit): Likewise.
10266 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10267 (cutu_reader::cutu_reader): Update.
10268
10269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10272 parameter.
10273 (process_full_type_unit): Likewise.
10274 (process_queue): Update.
10275
10276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * dwarf2/read.c (recursively_compute_inclusions): Add
10279 dwarf2_per_objfile parameter.
10280 (compute_compunit_symtab_includes): Likewise.
10281 (process_cu_includes): Update.
10282
10283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10286 parameter.
10287 (create_type_unit_group): Update.
10288 (process_psymtab_comp_unit_reader): Update.
10289 (build_type_psymtabs_reader): Update.
10290
10291 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10294 object through m_this_cu->cu.
10295
10296 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10297
10298 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10299 the info parameter.
10300 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10301
10302 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10303
10304 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10305 per_objfile parameter.
10306 (load_full_type_unit): Add per_objfile parameter.
10307 (read_signatured_type): Likewise.
10308 (load_full_comp_unit): Likewise.
10309 (load_cu): Likewise.
10310 (dw2_do_instantiate_symtab): Likewise.
10311 (dw2_get_file_names): Likewise.
10312 (dw2_map_symtabs_matching_filename): Update.
10313 (dw_expand_symtabs_matching_file_matcher): Update.
10314 (dw2_map_symbol_filenames): Update.
10315 (process_psymtab_comp_unit): Add per_objfile parameter.
10316 (build_type_psymtabs_1): Update.
10317 (process_skeletonless_type_unit): Update.
10318 (dwarf2_build_psymtabs_hard): Update.
10319 (load_partial_comp_unit): Add per_objfile parameter.
10320 (scan_partial_symbols): Update.
10321 (load_full_comp_unit): Add per_objfile parameter.
10322 (process_imported_unit_die): Update.
10323 (create_cus_hash_table): Update.
10324 (find_partial_die): Update.
10325 (dwarf2_read_addr_index): Update.
10326 (follow_die_offset): Update.
10327 (dwarf2_fetch_die_loc_sect_off): Update.
10328 (dwarf2_fetch_constant_bytes): Update.
10329 (dwarf2_fetch_die_type_sect_off): Update.
10330 (follow_die_sig_1): Update.
10331 (load_full_type_unit): Add per_objfile parameter.
10332 (read_signatured_type): Likewise.
10333
10334 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10337 of objfile_name.
10338
10339 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10340
10341 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10342 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10343 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10344 field.
10345 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10346 (create_cus_from_index): Update.
10347 (dwarf2_read_gdb_index): Update.
10348 (create_cus_from_debug_names): Update.
10349 (dwarf2_read_debug_names): Update.
10350 (get_abbrev_section_for_cu): Update.
10351 (create_all_comp_units): Update.
10352 (read_attribute_value): Update.
10353 (get_debug_line_section): Update.
10354 * dwarf2/index-cache.c (index_cache::store): Update.
10355 * dwarf2/index-write.c (save_gdb_index_command): Update.
10356 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10357
10358 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10359
10360 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10361 member.
10362 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10363 dwarf2_per_cu_data::per_bfd.
10364 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10365 (create_type_unit_group): Likewise.
10366 (queue_comp_unit): Remove reference to
10367 per_cu->dwarf2_per_objfile.
10368 (maybe_queue_comp_unit): Likewise.
10369 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10370 (create_cus_hash_table): Assign new field.
10371
10372 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * dwarf2/read.c: Replace
10375 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10376 dwarf2_cu->per_objfile throughout.
10377
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10381 parameter, don't use per_cu->dwarf2_per_objfile.
10382 (dw2_instantiate_symtab): Likewise.
10383 (dw2_find_last_source_symtab): Update.
10384 (dw2_map_expand_apply): Update.
10385 (dw2_lookup_symbol): Update.
10386 (dw2_expand_symtabs_for_function): Update.
10387 (dw2_expand_all_symtabs): Update.
10388 (dw2_expand_symtabs_with_fullname): Update.
10389 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10390 don't use per_cu->dwarf2_per_objfile.
10391 (dw2_expand_marked_cus): Update.
10392 (dw2_find_pc_sect_compunit_symtab): Update.
10393 (dw2_debug_names_lookup_symbol): Update.
10394 (dw2_debug_names_expand_symtabs_for_function): Update.
10395 (dw2_debug_names_map_matching_symbols): Update.
10396 (dwarf2_psymtab::expand_psymtab): Update.
10397
10398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10401 <per_objfile>: New member.
10402 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10403 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10404 call to dwarf2_cu.
10405 (cutu_reader::cutu_reader): Update.
10406 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10407
10408 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10411 struct dwarf2_per_objfile.
10412 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10413 dwarf2_per_bfd.
10414 * dwarf2/read.c (set_die_type): Update.
10415 (get_die_type_at_offset): Update.
10416
10417 2020-05-27 Tom Tromey <tom@tromey.com>
10418 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10421 method.
10422 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10423 get_symtab, set_symtab>: New methods.
10424 <m_symtabs>: New field.
10425 (struct dwarf2_psymtab): Derive from partial_symtab.
10426 <readin_p, get_compunit_symtab>: Declare methods.
10427 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10428 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10429 New methods.
10430 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10431 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10432 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10433 (dw2_symtab_iter_next, dw2_print_stats)
10434 (dw2_expand_symtabs_with_fullname)
10435 (dw2_expand_symtabs_matching_one)
10436 (dw_expand_symtabs_matching_file_matcher)
10437 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10438 (dw2_debug_names_iterator::next)
10439 (dw2_debug_names_map_matching_symbols)
10440 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10441 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10442 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10443 New methods.
10444 (get_compunit_symtab, process_full_comp_unit)
10445 (process_full_type_unit): Update.
10446 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10447
10448 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10449
10450 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10451 then introduce a new dwarf2_per_objfile type.
10452 <read_line_string>: Move to the new dwarf2_per_objfile type.
10453 <objfile>: Likewise.
10454 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10455 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10456 dwarf2_per_objfile->per_bfd.
10457 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10458 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10459 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10460 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10461 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10462 (dwarf2_per_objfile::locate_sections): Rename to...
10463 (dwarf2_per_bfd::locate_sections): ... this.
10464 (dwarf2_per_objfile::get_cutu): Rename to...
10465 (dwarf2_per_bfd::get_cutu): ... this.
10466 (dwarf2_per_objfile::get_cu): Rename to...
10467 (dwarf2_per_bfd::get_cu): ... this.
10468 (dwarf2_per_objfile::get_tu): Rename to...
10469 (dwarf2_per_bfd::get_tu): ... this.
10470 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10471 (dwarf2_per_bfd::allocate_per_cu): ... this.
10472 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10473 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10474 (get_gdb_index_contents_ftype): Change parameter from
10475 dwarf2_per_objfile to dwarf2_per_bfd.
10476 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10477 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10478
10479 2020-05-27 Tom Tromey <tom@tromey.com>
10480 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10483 (allocate_piece_closure): Set "per_objfile" member.
10484 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10485 (locexpr_describe_location, loclist_describe_location): Use new
10486 member.
10487 * dwarf2/read.c (read_call_site_scope)
10488 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10489 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10490 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10491 handle_data_member_location): Set per_objfile member.
10492 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10493 member.
10494 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10495
10496 2020-05-27 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10499 allocate_signatured_type>: Declare new methods.
10500 <m_num_psymtabs>: New member.
10501 (struct dwarf2_per_cu_data) <index>: New member.
10502 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10503 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10504 (create_cu_from_index_list): Use allocate_per_cu.
10505 (create_signatured_type_table_from_index)
10506 (create_signatured_type_table_from_debug_names)
10507 (create_debug_type_hash_table, add_type_unit)
10508 (read_comp_units_from_section): Use allocate_signatured_type.
10509
10510 2020-05-27 Tom Tromey <tom@tromey.com>
10511
10512 * psymtab.c (partial_map_expand_apply)
10513 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10514 (psym_lookup_global_symbol_language)
10515 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10516 (psym_print_stats, psym_expand_symtabs_for_function)
10517 (psym_map_symbol_filenames, psym_map_matching_symbols)
10518 (psym_expand_symtabs_matching)
10519 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10520 (maintenance_check_psymtabs): Update.
10521 * psympriv.h (struct partial_symtab) <readin_p,
10522 get_compunit_symtab>: Add objfile parameter.
10523 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10524 Likewise.
10525 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10526 get_compunit_symtab>: Likewise.
10527 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10528
10529 2020-05-27 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10532 member.
10533 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10534 (create_cu_from_index_list)
10535 (create_signatured_type_table_from_index)
10536 (create_signatured_type_table_from_debug_names)
10537 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10538 (dwarf2_create_include_psymtab)
10539 (create_debug_type_hash_table, add_type_unit)
10540 (create_type_unit_group, read_comp_units_from_section)
10541 (dwarf2_compute_name, create_cus_hash_table)
10542 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10543 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10544 obstack.
10545 (dw2_get_real_path): Likewise. Change argument to
10546 dwarf2_per_objfile.
10547
10548 2020-05-27 Luis Machado <luis.machado@linaro.org>
10549
10550 PR tdep/26000
10551 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10552 for ldrd (immediate).
10553
10554 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10555
10556 * command.h: Add comment giving the name of class_tui.
10557 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10558 create the fake command for the help for class_tui.
10559
10560 2020-05-26 Tom Tromey <tromey@adacore.com>
10561
10562 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10563 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10564 (val_atr): New function.
10565 (value_val_atr): Use it.
10566 * ada-valprint.c (print_optional_low_bound): Change low bound
10567 handling for enums.
10568 (val_print_packed_array_elements): Don't call discrete_position.
10569 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10570 discrete_position for enum types.
10571 * language.c (default_print_array_index): Change type.
10572 * language.h (struct language_defn) <la_print_array_index>: Add
10573 index_type parameter, change type of index_value.
10574 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10575 (default_print_array_index): Update.
10576 * valprint.c (maybe_print_array_index): Don't call
10577 value_from_longest. Update.
10578 (value_print_array_elements): Don't call discrete_position.
10579
10580 2020-05-26 Tom Tromey <tromey@adacore.com>
10581
10582 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10583 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10584
10585 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10586
10587 PR gdb/13519
10588 * avr-tdep.c (avr_integer_to_address): Return data or code
10589 address accordingly to the second 'type' argument of the
10590 function.
10591
10592 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10593
10594 * infcmd.c, inferior.h: (construct_inferior_arguments):
10595 Moved function from here to gdbsupport/common-inferior.{h,cc}
10596
10597 2020-05-23 Tom Tromey <tom@tromey.com>
10598
10599 Revert commit eca1f90c:
10600 * NEWS: Remove entry for completion styling.
10601 * completer.c (_rl_completion_prefix_display_length): Move
10602 declaration later.
10603 (gdb_fnprint): Revert.
10604 (gdb_display_match_list_1): Likewise.
10605 * cli/cli-style.c (completion_prefix_style)
10606 (completion_difference_style, completion_suffix_style): Remove.
10607 (_initialize_cli_style): Revert.
10608 * cli/cli-style.h (completion_prefix_style)
10609 (completion_difference_style, completion_suffix_style): Don't
10610 declare.
10611
10612 2020-05-24 Pedro Alves <palves@redhat.com>
10613
10614 * symtab.c (completion_list_add_name): Return boolean indication
10615 of whether the symbol matched.
10616 (completion_list_add_symbol): Don't try to remove C++ aliases if
10617 the symbol didn't match in the first place.
10618 * symtab.h (completion_list_add_name): Return bool.
10619
10620 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10621
10622 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10623 type::field.
10624
10625 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10626
10627 GDB 9.2 released.
10628
10629 2020-05-23 Tom Tromey <tom@tromey.com>
10630
10631 * NEWS: Add entry for completion styling.
10632 * completer.c (_rl_completion_prefix_display_length): Move
10633 declaration earlier.
10634 (gdb_fnprint): Use completion_style.
10635 (gdb_display_match_list_1): Likewise.
10636 * cli/cli-style.c (completion_prefix_style)
10637 (completion_difference_style, completion_suffix_style): New
10638 globals.
10639 (_initialize_cli_style): Register new globals.
10640 * cli/cli-style.h (completion_prefix_style)
10641 (completion_difference_style, completion_suffix_style): Declare.
10642
10643 2020-05-23 Pedro Alves <palves@redhat.com>
10644
10645 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10646 (parse_escape): Use ISDIGIT instead of isdigit.
10647 (puts_debug): Use gdb_isprint instead of isprint.
10648 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10649 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10650 ISSPACE instead of isspace.
10651 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10652 instead of isspace.
10653 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10654 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10655 instead of isxdigit and ISDIGIT instead of isdigit.
10656
10657 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * gdbtypes.h (struct type) <field>: New method.
10660 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10661 or type::field.
10662
10663 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10666 (TYPE_FIELDS): Use type::fields. Change all call sites that
10667 modify the propery to use type::set_fields instead.
10668
10669 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10672 type::num_fields instead.
10673
10674 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10677 methods.
10678 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10679 that modify the number of fields to use type::set_num_fields
10680 instead.
10681
10682 2020-05-22 Tom Tromey <tromey@adacore.com>
10683
10684 * compile/compile-object-load.h (munmap_list_free): Don't
10685 declare.
10686
10687 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10688
10689 * annotate.c (annotate_source_line): Update return type, add call
10690 to update current symtab and line.
10691 * annotate.h (annotate_source_line): Update return type, and
10692 extend header comment.
10693 * source.c (info_line_command): Check annotation_level before
10694 calling annotate_source_line.
10695 * stack.c (print_frame_info): If calling annotate_source_line
10696 returns true, then don't print any other source line information.
10697
10698 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10701
10702 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * coffread.c (patch_type): Remove NULL check before xfree.
10705 * corefile.c (set_gnutarget): Likewise.
10706 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10707 * exec.c (build_section_table): Likewise.
10708 * remote.c (remote_target::pass_signals): Likewise.
10709 * utils.c (n_spaces): Likewise.
10710 * cli/cli-script.c (document_command): Likewise.
10711 * i386-windows-tdep.c (core_process_module_section): Likewise.
10712 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10713
10714 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * symfile.c (reread_symbols): Clear objfile's section_offsets
10717 vector and section indices, re-compute them by calling
10718 sym_offsets.
10719
10720 2020-05-20 Tom Tromey <tromey@adacore.com>
10721
10722 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10723 (desc_one_bound, desc_index_type): Compute field name.
10724
10725 2020-05-20 Tom de Vries <tdevries@suse.de>
10726
10727 PR symtab/25833
10728 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10729
10730 2020-05-20 Alan Modra <amodra@gmail.com>
10731
10732 PR 25993
10733 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10734 bfd_set_filename.
10735 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10736 passed to bfd_set_filename.
10737 * symfile-mem.c (add_vsyscall_page): Likewise for string
10738 passed to symbol_file_add_from_memory.
10739 (symbol_file_add_from_memory): Make name param a const char* and
10740 don't strdup.
10741
10742 2020-05-20 Alan Modra <amodra@gmail.com>
10743
10744 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10745 rather than accessing bfd->filename directly.
10746 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10747 and use bfd_section_name.
10748 * dwarf2/frame.c (decode_frame_entry): Likewise.
10749 * exec.c (exec_set_section_address): Likewise.
10750 * solib-aix.c (solib_aix_bfd_open): Likewise.
10751 * stap-probe.c (get_stap_base_address): Likewise.
10752 * symfile.c (reread_symbols): Likewise.
10753
10754 2020-05-19 Tom Tromey <tromey@adacore.com>
10755
10756 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10757
10758 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10759
10760 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10761
10762 2020-05-19 Pedro Alves <palves@redhat.com>
10763
10764 * NEWS (set exec-file-mismatch): Adjust entry.
10765 * exec.c: Include "build-id.h".
10766 (validate_exec_file): Try to match build IDs instead of filenames.
10767 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10768 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10769 and pass down 'warn_if_slow'.
10770 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10771 gdb_bfd_open_closure to pass it down.
10772 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10773
10774 2020-05-19 Pedro Alves <palves@redhat.com>
10775
10776 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10777 * target.c (target_fileio_open_1): Rename to target_fileio_open
10778 and make extern. Use bool.
10779 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10780 (target_fileio_read_alloc_1): Adjust.
10781 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10782 (target_fileio_open_warn_if_slow): Delete declaration.
10783
10784 2020-05-19 Pedro Alves <palves@redhat.com>
10785
10786 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10787 Adjust all callers.
10788
10789 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10790
10791 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10792 whether disp is negative.
10793
10794 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * symfile.h (struct symfile_segment_data)
10797 <~symfile_segment_data>: Remove.
10798 <segment_info>: Change to std::vector.
10799 * symfile.c (default_symfile_segments): Update.
10800 * elfread.c (elf_symfile_segments): Update.
10801
10802 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10803
10804 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10805 <segments>: New.
10806 <segment_bases, segment_sizes>: Remove.
10807 * symfile.c (default_symfile_segments): Update.
10808 * elfread.c (elf_symfile_segments): Update.
10809 * remote.c (remote_target::get_offsets): Update.
10810 * solib-target.c (solib_target_relocate_section_addresses):
10811 Update.
10812
10813 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * symfile.h (struct symfile_segment_data): Initialize fields.
10816 <~symfile_segment_data>: Add.
10817 (symfile_segment_data_up): New.
10818 (struct sym_fns) <sym_segments>: Return a
10819 symfile_segment_data_up.
10820 (default_symfile_segments): Return a symfile_segment_data_up.
10821 (free_symfile_segment_data): Remove.
10822 (get_symfile_segment_data): Return a symfile_segment_data_up.
10823 * symfile.c (default_symfile_segments): Likewise.
10824 (get_symfile_segment_data): Likewise.
10825 (free_symfile_segment_data): Remove.
10826 (symfile_find_segment_sections): Update.
10827 * elfread.c (elf_symfile_segments): Return a
10828 symfile_segment_data_up.
10829 * remote.c (remote_target::get_offsets): Update.
10830 * solib-target.c (solib_target_relocate_section_addresses):
10831 Update.
10832 * symfile-debug.c (debug_sym_segments): Return a
10833 symfile_segment_data_up.
10834
10835 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10836
10837 PR build/25981
10838 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10839 Hardcode register numbers.
10840
10841 PR build/25981
10842 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10843 procfs_find_LDT_entry): Remove.
10844 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10845 procfs_find_LDT_entry): Remove.
10846 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10847 Remove.
10848
10849 2020-05-17 Pedro Alves <palves@redhat.com>
10850 Andrew Burgess <andrew.burgess@embecosm.com>
10851 Keno Fischer <keno@juliacomputing.com>
10852
10853 PR gdb/25741
10854 * breakpoint.c (build_target_condition_list): Update comments.
10855 (build_target_command_list): Update comments and skip matching
10856 locations.
10857 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10858 a separate function. Simplify "set breakpoint auto-hw off"
10859 handling.
10860 (insert_breakpoints): Update comment.
10861 (tracepoint_locations_match): New parameter. For breakpoints,
10862 compare location types too, if the caller wants to.
10863 (handle_automatic_hardware_breakpoints): New functions.
10864 (bp_location_is_less_than): Also sort by location type and
10865 hardware breakpoint length.
10866 (update_global_location_list): Handle "set breakpoint auto-hw on"
10867 here.
10868 (update_breakpoint_locations): Ask breakpoint_locations_match to
10869 ignore location types.
10870
10871 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10872
10873 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10874 type::name instead.
10875
10876 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10877
10878 * gdbtypes.h (struct type) <name, set_name>: New methods.
10879 (TYPE_CODE): Use type::name. Change all call sites used to set
10880 the name to use type::set_name instead.
10881
10882 2020-05-16 Tom Tromey <tom@tromey.com>
10883
10884 * top.c (quit_force): Update.
10885 * infrun.c (handle_no_resumed): Update.
10886 * top.h (all_uis): New function.
10887 (ALL_UIS): Remove.
10888
10889 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10890
10891 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10892
10893 2020-05-16 Pedro Alves <palves@redhat.com>
10894
10895 * ia64-linux-nat.c
10896 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10897 Declare method.
10898 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10899
10900 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10903 (sparc64_adi_info): Likewise.
10904
10905 2020-05-15 Tom Tromey <tom@tromey.com>
10906
10907 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10908 block_objfile.
10909 (lookup_objfile_from_block): Remove.
10910 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10911 (lookup_global_symbol): Use block_objfile.
10912 * symtab.h (lookup_objfile_from_block): Don't declare.
10913 * printcmd.c (clear_dangling_display_expressions): Use
10914 block_objfile.
10915 * parse.c (operator_check_standard): Use block_objfile.
10916
10917 2020-05-15 Tom Tromey <tom@tromey.com>
10918
10919 * language.c (language_alloc_type_symbol): Set
10920 SYMBOL_SECTION.
10921 * symtab.c (initialize_objfile_symbol): Remove.
10922 (allocate_symbol): Remove.
10923 (allocate_template_symbol): Remove.
10924 * dwarf2/read.c (fixup_go_packaging): Use "new".
10925 (new_symbol): Use "new".
10926 (read_variable): Don't call initialize_objfile_symbol. Use
10927 "new".
10928 (read_func_scope): Use "new".
10929 * xcoffread.c (process_xcoff_symbol): Don't call
10930 initialize_objfile_symbol.
10931 (SYMBOL_DUP): Remove.
10932 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10933 "new".
10934 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10935 (allocate_template_symbol): Don't declare.
10936 (struct symbol): Add copy constructor. Change defaults.
10937 * jit.c (finalize_symtab): Use "new".
10938 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10939 Use "new".
10940 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10941 (common_block_end): Use "new".
10942 * mdebugread.c (parse_symbol): Use "new".
10943 (new_symbol): Likewise.
10944
10945 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10946
10947 * NEWS: Mention changes to help and apropos.
10948
10949 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10950
10951 * command.h (enum command_class): Improve comments, document
10952 that class_alias is for user-defined aliases, give the class
10953 name for each class, remove unused class_xdb.
10954 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10955 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10956 by a precise class.
10957 * infcmd.c (_initialize_infcmd): Likewise.
10958 * reverse.c (_initialize_reverse): Likewise.
10959 * stack.c (_initialize_stack): Likewise.
10960 * symfile.c (_initialize_symfile): Likewise.
10961 * tracepoint.c (_initialize_tracepoint): Likewise.
10962
10963 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964
10965 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10966 when their aliased command is traversed.
10967 (help_cmd): Add fput_command_names_styled call to
10968 output command name and aliases when command has an alias.
10969
10970 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10971
10972 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10973 * cli/cli-decode.c (help_cmd_list): Declare as static,
10974 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10975 a command together with the command.
10976 (fput_command_name_styled, fput_command_names_styled): New functions.
10977 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10978 fput_command_name_styled.
10979 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10980 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10981
10982 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10983
10984 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10985 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10986 * command.h (cmd_show_list): Likewise.
10987 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10988 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10989
10990 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991
10992 * unittests/command-def-selftests.c (traverse_command_structure):
10993 Verify all commands of a list have the same prefix command and
10994 that only the top cmdlist commands have a null prefix.
10995
10996 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997
10998 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10999 as prefix, not one of its aliases.
11000 (set_cmd_prefix): Remove.
11001 (do_add_cmd): Centralize the setting of the prefix of a command, when
11002 command is defined after its full chain of prefix commands.
11003 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11004 (add_setshow_cmd_full): Likewise.
11005 (update_prefix_field_of_prefixed_commands): New function.
11006 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11007 update_prefix_field_of_prefixed_commands.
11008 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11009 addresses of remote_set_cmdlist and remote_show_cmdlist given
11010 as argument, not the address of an argument.
11011 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11012 * gdb/remote.c (_initialize_remote): Likewise.
11013
11014 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11015
11016 * cli/cli-cmds.c (alias_command): Check for an existing alias
11017 using lookup_cmd_composition, as valid_command_p is too strict
11018 and forbids aliases that are the prefix of an existing alias
11019 or command.
11020 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11021 command is properly recognised as a valid command.
11022
11023 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11024
11025 * unittests/help-doc-selftests.c: Rename to
11026 unittests/command-def-selftests.c
11027 * unittests/command-def-selftests.c (help_doc_tests): Update some
11028 comments.
11029 (command_structure_tests, traverse_command_structure): New namespace
11030 and function.
11031 (command_structure_invariants_tests): New function.
11032 (_initialize_command_def_selftests) Renamed from
11033 _initialize_help_doc_selftests, register command_structure_invariants
11034 selftest.
11035
11036 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11037
11038 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11039 an alias of 'show'.
11040
11041 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11042
11043 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11044 ada_is_fixed_point_type. Update all callers.
11045 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11046 all callers.
11047 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11048 Update all callers.
11049 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11050 print_fixed_point_type. Update all callers.
11051 * ada-valprint.c (ada_value_print_num): Replace call to
11052 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11053
11054 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11055
11056 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11057 processors.
11058 (cpu_supports_bts): Add CV_AMD case.
11059
11060 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11061 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * infrun.c (stop_all_threads): Collect multiple wait events at
11064 each pass.
11065
11066 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11067
11068 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11069 type::code instead.
11070
11071 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * gdbtypes.h (struct type) <code, set_code>: New methods.
11074 (TYPE_CODE): Use type::code. Change all call sites used to set
11075 the code to use type::set_code instead.
11076
11077 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11078 Tom de Vries <tdevries@suse.de>
11079 Pedro Alves <palves@redhat.com>
11080
11081 PR threads/25478
11082 * infrun.c (stop_all_threads): Do NOT ignore
11083 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11084 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11085 received.
11086 (handle_no_resumed): Remove code handling a live inferior with no
11087 threads.
11088 * remote.c (has_single_non_exited_thread): New.
11089 (remote_target::update_thread_list): Do not delete a thread if is
11090 the last thread of the process.
11091 * thread.c (thread_select): Call delete_exited_threads instead of
11092 prune_threads.
11093
11094 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11095
11096 * infrun.c (stop_all_threads): Enable/disable thread events of all
11097 targets. Move a debug message denoting the end of the function
11098 into the SCOPED_EXIT block.
11099
11100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11101
11102 * process-stratum-target.h: Include <set>.
11103 (all_non_exited_process_targets, switch_to_target_no_thread): New
11104 function declarations.
11105 * process-stratum-target.c (all_non_exited_process_targets)
11106 (switch_to_target_no_thread): New function implementations.
11107
11108 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11109
11110 * infrun.c (handle_inferior_event): Extract out a piece of code
11111 into...
11112 (mark_non_executing_threads): ...this new function.
11113
11114 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11115
11116 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11117 use.
11118
11119 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11120
11121 * regcache.c (regcache_read_pc_protected): New function
11122 implementation that returns 0 if the PC cannot read via
11123 'regcache_read_pc'.
11124 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11125 instead of 'regcache_read_pc'.
11126 (keep_going_pass_signal): Ditto.
11127
11128 2020-05-13 Tom Tromey <tromey@adacore.com>
11129
11130 * ada-lang.c (align_value): Remove.
11131 (ada_template_to_fixed_record_type_1): Use align_up.
11132
11133 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11134
11135 * async-event.c: Update the copyright year.
11136 * async-event.h: Update the copyright year.
11137
11138 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11139
11140 * objfiles.h (is_addr_in_objfile,
11141 shared_objfile_contains_address_p): Return bool.
11142 * objfile.c (is_addr_in_objfile,
11143 shared_objfile_contains_address_p): Return bool.
11144
11145 2020-05-11 Tom Tromey <tromey@adacore.com>
11146
11147 * cli/cli-cmds.c (info_command): Restore.
11148 (_initialize_cli_cmds): Use add_prefix_command for "info".
11149 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11150
11151 2020-05-11 Tom Tromey <tromey@adacore.com>
11152
11153 * ada-lang.c (ada_value_primitive_field): Now public.
11154 * ada-lang.h (ada_value_primitive_field): Declare.
11155 * ada-valprint.c (print_field_values): Use
11156 ada_value_primitive_field for wrapper fields.
11157
11158 2020-05-11 Tom de Vries <tdevries@suse.de>
11159
11160 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11161 MODULE_DOMAIN.
11162
11163 2020-05-11 Tom de Vries <tdevries@suse.de>
11164
11165 PR symtab/25941
11166 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11167 with length 0, if not gdb-produced.
11168 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11169
11170 2020-05-09 Tom de Vries <tdevries@suse.de>
11171
11172 PR gdb/25955
11173 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11174 calculation.
11175
11176 2020-05-09 Tom Tromey <tom@tromey.com>
11177
11178 * top.c (server_command): Now bool.
11179 * top.h (server_command): Now bool.
11180
11181 2020-05-08 Tom Tromey <tromey@adacore.com>
11182
11183 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11184 already being processed.
11185
11186 2020-05-08 Tom Tromey <tom@tromey.com>
11187
11188 * printcmd.c (struct display) <next>: Remove.
11189 <display>: New constructor.
11190 <exp_string>: Now a std::string.
11191 <enabled_p>: Now a bool.
11192 (display_number): Move definition earlier.
11193 (displays): Rename from display_chain. Now a std::vector.
11194 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11195 (display_command): Update.
11196 (do_one_display, disable_display)
11197 (enable_disable_display_command, do_enable_disable_display):
11198 Update.
11199 (free_display): Remove.
11200 (clear_displays): Rewrite.
11201 (delete_display): Update.
11202 (map_display_numbers): Use function_view. Remove "data"
11203 parameter. Update.
11204 (do_delete_display): Remove.
11205 (undisplay_command): Update.
11206 (do_one_display, do_displays, disable_display)
11207 (info_display_command): Update.
11208 (do_enable_disable_display): Remove.
11209 (enable_disable_display_command)
11210 (clear_dangling_display_expressions): Update.
11211
11212 2020-05-08 Tom Tromey <tom@tromey.com>
11213
11214 * symtab.c (set_symbol_cache_size)
11215 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11216 (maintenance_print_symbol_cache_statistics): Update.
11217 * symmisc.c (print_symbol_bcache_statistics)
11218 (print_objfile_statistics, maintenance_print_objfiles)
11219 (maintenance_info_symtabs, maintenance_check_symtabs)
11220 (maintenance_expand_symtabs, maintenance_info_line_tables):
11221 Update.
11222 * symfile-debug.c (set_debug_symfile): Update.
11223 * source.c (forget_cached_source_info): Update.
11224 * python/python.c (gdbpy_progspaces): Update.
11225 * psymtab.c (maintenance_info_psymtabs): Update.
11226 * probe.c (parse_probes): Update.
11227 * linespec.c (iterate_over_all_matching_symtabs)
11228 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11229 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11230 * exec.c (exec_target::close): Update.
11231 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11232 * breakpoint.c (print_one_breakpoint_location)
11233 (create_longjmp_master_breakpoint)
11234 (create_std_terminate_master_breakpoint): Update.
11235 * progspace.c (program_spaces): Now a std::vector.
11236 (maybe_new_address_space): Update.
11237 (add_program_space): Remove.
11238 (program_space::program_space): Update.
11239 (remove_program_space): Update.
11240 (number_of_program_spaces): Remove.
11241 (print_program_space, update_address_spaces): Update.
11242 * progspace.h (program_spaces): Change type.
11243 (ALL_PSPACES): Remove.
11244 (number_of_program_spaces): Don't declare.
11245 (struct program_space) <next>: Remove.
11246
11247 2020-05-08 Tom Tromey <tom@tromey.com>
11248
11249 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11250 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11251 (enable_break): Update.
11252 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11253 (frv_fdpic_find_canonical_descriptor): Update.
11254 (frv_fetch_objfile_link_map): Update.
11255 * progspace.c (program_space::free_all_objfiles): Update.
11256 (program_space::solibs): New method.
11257 * progspace.h (struct program_space) <solibs>: New method.
11258 * solist.h (master_so_list): Don't declare.
11259 (ALL_SO_LIBS): Remove.
11260 * solib.h (so_list_head): Remove.
11261 (update_solib_list): Update comment.
11262 * solib.c (master_so_list): Remove.
11263 (solib_used, update_solib_list, solib_add)
11264 (info_sharedlibrary_command, clear_solib)
11265 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11266
11267 2020-05-08 Tom Tromey <tom@tromey.com>
11268
11269 * extension.c (extension_languages): Now a std::array.
11270 (ALL_EXTENSION_LANGUAGES): Remove.
11271 (get_ext_lang_defn, get_ext_lang_of_file)
11272 (eval_ext_lang_from_control_command): Update.
11273 (finish_ext_lang_initialization)
11274 (auto_load_ext_lang_scripts_for_objfile)
11275 (ext_lang_type_printers::ext_lang_type_printers)
11276 (apply_ext_lang_type_printers)
11277 (ext_lang_type_printers::~ext_lang_type_printers)
11278 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11279 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11280 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11281 (get_matching_xmethod_workers, ext_lang_colorize)
11282 (ext_lang_before_prompt): Update.
11283 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11284
11285 2020-05-08 Tom Tromey <tom@tromey.com>
11286
11287 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11288 overload.
11289 <swap_string, m_string>: Remove.
11290 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11291 Update.
11292 * stabsread.c (define_symbol, read_type): Update.
11293 * linespec.c (find_linespec_symbols): Update.
11294 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11295 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11296 * dbxread.c (read_dbx_symtab): Update.
11297 * cp-support.h (cp_canonicalize_string_full)
11298 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11299 Return unique_xmalloc_ptr.
11300 * cp-support.c (inspect_type): Update.
11301 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11302 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11303 Likewise.
11304 * c-typeprint.c (print_name_maybe_canonical): Update.
11305 * break-catch-throw.c (check_status_exception_catchpoint):
11306 Update.
11307
11308 2020-05-08 Tom de Vries <tdevries@suse.de>
11309
11310 * infrun.c (follow_fork): Copy current_line and current_symtab to
11311 child thread.
11312
11313 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * async-event.c (struct async_signal_handler, struct
11316 async_event_handler): Reformat, remove typedef.
11317
11318 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11319
11320 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11321 access thistype->main_type->dyn_prop_list directly.
11322
11323 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11326 (remove_dyn_prop): Remove. Update all users to use
11327 type::remove_dyn_prop.
11328 * gdbtypes.c (remove_dyn_prop): Rename to...
11329 (type::remove_dyn_prop): ... this.
11330
11331 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11332
11333 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11334 (add_dyn_prop): Remove. Update all users to use
11335 type::add_dyn_prop.
11336 * gdbtypes.c (add_dyn_prop): Rename to...
11337 (type::add_dyn_prop): ... this.
11338
11339 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11342 (get_dyn_prop): Remove. Update all users to use
11343 type::dyn_prop.
11344 * gdbtypes.c (get_dyn_prop): Rename to...
11345 (type::dyn_prop): ... this.
11346
11347 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11348
11349 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11350
11351 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11352
11353 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11354 instruction, skip it if it's there.
11355
11356 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11357
11358 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11359
11360 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11361
11362 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11363 * gdbtypes.c (recursive_dump_type): Remove use of
11364 TYPE_INCOMPLETE.
11365
11366 2020-05-03 Tom Tromey <tom@tromey.com>
11367
11368 * breakpoint.c (catch_command, tcatch_command): Remove.
11369 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11370 add_show_prefix_cmd.
11371 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11372 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11373 Remove.
11374 (add_internal_problem_command): Use add_basic_prefix_cmd,
11375 add_show_prefix_cmd.
11376 * mips-tdep.c (set_mipsfpu_command): Remove.
11377 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11378 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11379 (_initialize_index_cache): Use add_basic_prefix_cmd.
11380 * memattr.c (dummy_cmd): Remove.
11381 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11382 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11383 (_initialize_tui_win): Use add_basic_prefix_cmd,
11384 add_show_prefix_cmd.
11385 * cli/cli-logging.c (set_logging_command): Remove.
11386 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11387 add_show_prefix_cmd.
11388 (show_logging_command): Remove.
11389 * target.c (target_command): Remove.
11390 (add_target): Use add_basic_prefix_cmd.
11391
11392 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11393
11394 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11395
11396 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11397
11398 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11399 info_command.
11400
11401 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11402
11403 * nbsd-nat.c (nbsd_enable_proc_events)
11404 (nbsd_nat_target::post_startup_inferior): Add.
11405 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11406 (nbsd_nat_target::update_thread_list): Rewrite.
11407 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11408 "PTRACE_LWP_CREATE".
11409 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11410
11411 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11412
11413 * stack.c (_initialize_stack): Remove duplicated creation
11414 of "frame" command and "f" alias.
11415
11416 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11417
11418 PR gdb/18706
11419 * gdbtypes.c (check_typedef): Calculate size of array of
11420 stubbed type.
11421
11422 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11423
11424 PR gdb/15559
11425 * i386-tdep.c (i386_push_dummy_call): Call
11426 i386_thiscall_push_dummy_call.
11427 (i386_thiscall_push_dummy_call): New function.
11428 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11429 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11430 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11431
11432 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11433
11434 * gdbarch.sh (do_read): Add shellcheck disable directive for
11435 warning SC2162.
11436
11437 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11438
11439 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11440 "referenced but not assigned" warning.
11441
11442 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11443
11444 * gdbarch.sh: Remove code that sets fallbackdefault.
11445
11446 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11447
11448 * gdbarch.sh: Use shell operators && and || instead of
11449 -a and -o.
11450
11451 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11452
11453 * gdbarch.sh: Use $(...) instead of `...`.
11454
11455 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11456
11457 * gdbarch.sh: Use double quotes around variables.
11458
11459 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11460
11461 * gdbarch.sh: Use %s with printf, instead of variables in the
11462 format string.
11463
11464 2020-04-29 Tom Tromey <tromey@adacore.com>
11465
11466 PR ada/25875:
11467 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11468 type fields here.
11469 (read_enumeration_type): Call
11470 update_enumeration_type_from_children later. Update comments.
11471 (process_enumeration_scope): Don't create type fields.
11472
11473 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11474
11475 * nbsd-tdep.c: Include "xml-syscall.h".
11476 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11477
11478 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11479
11480 * nbsd-nat.c: Include "sys/wait.h".
11481 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11482 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11483 (nbsd_nat_target::remove_exec_catchpoint)
11484 (nbsd_nat_target::set_syscall_catchpoint): Add.
11485 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11486 (nbsd_nat_target::insert_exec_catchpoint)
11487 (nbsd_nat_target::remove_exec_catchpoint)
11488 (nbsd_nat_target::set_syscall_catchpoint): Add.
11489 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11490 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11491 `nbsd_get_syscall_number'.
11492
11493 2020-04-29 Tom Tromey <tom@tromey.com>
11494
11495 * stack.c (print_block_frame_labels): Remove.
11496
11497 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11498
11499 PR gdb/17320
11500 * ada-valprint.c (val_print_packed_array_elements): Move array
11501 end bracket to new line.
11502 (ada_val_print_string): Remove extra spaces before first array
11503 element.
11504 * c-valprint.c (c_value_print_array): Likewise.
11505 * m2-valprint.c (m2_print_array_contents): Likewise.
11506 (m2_value_print_inner): Likewise.
11507 * p-valprint.c (pascal_value_print_inner): Likewise.
11508 * valprint.c (generic_val_print_array): Likewise.
11509 (value_print_array_elements): Move first array element and array
11510 end bracket to new line.
11511
11512 2020-04-29 Tom de Vries <tdevries@suse.de>
11513
11514 PR symtab/25889
11515 * linespec.c (find_method): Fix ix calculation.
11516
11517 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11518
11519 * syscalls/update-netbsd.sh: New file.
11520 * syscalls/netbsd.xml: Regenerate.
11521 * data-directory/Makefile.in: Register `netbsd.xml' in
11522 `SYSCALLS_FILES'.
11523
11524 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11525
11526 * syscalls/update-freebsd.sh: Add double quotes.
11527
11528 2020-04-28 Tom Tromey <tom@tromey.com>
11529
11530 * NEWS: Update.
11531 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11532 (cmdpy_init): Allow class_tui.
11533
11534 2020-04-28 Mark Williams <mark@myosotissp.com>
11535
11536 PR gdb/24480
11537 * dwarf2read.c: Add missing assingments to list_in_scope when
11538 start_symtab was already called.
11539
11540 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11541
11542 PR gdb/25881
11543 * dwarf2/read.c (offset_map_type): Use
11544 gdb:hash_enum<sect_offset> as hash function.
11545
11546 2020-04-28 Tom de Vries <tdevries@suse.de>
11547
11548 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11549 with DW_AT_signature.
11550
11551 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11552
11553 * configure.ac: Remove check for fs_base/gs_base in
11554 user_regs_struct.
11555 * configure: Re-generate.
11556 * config.in: Re-generate.
11557 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11558 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11559 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11560
11561 2020-04-27 Luis Machado <luis.machado@linaro.org>
11562
11563 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11564 problematic inline frame unwinding situation.
11565 * frame.c (frame_id_computed_p): New function.
11566 * frame.h (frame_id_computed_p): New prototype.
11567
11568 2020-04-26 Tom Tromey <tom@tromey.com>
11569
11570 * command.h (enum command_class) <class_pseudo>: Remove.
11571
11572 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11573
11574 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11575 and whitespace.
11576
11577 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11578
11579 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11580 `PT_GET_PROCESS_STATE' block.
11581
11582 2020-04-24 Tom Tromey <tom@tromey.com>
11583
11584 * symtab.h (symbol_get_demangled_name): Don't declare.
11585 * symtab.c (symbol_get_demangled_name): Remove.
11586 (general_symbol_info::natural_name)
11587 (general_symbol_info::demangled_name): Update.
11588
11589 2020-04-24 Tom Tromey <tom@tromey.com>
11590
11591 PR rust/25025:
11592 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11593
11594 2020-04-24 Tom Tromey <tom@tromey.com>
11595
11596 PR symtab/12707:
11597 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11598 exists.
11599 (new_symbol): Likewise.
11600 * compile/compile-object-load.c (get_out_value_type): Use
11601 symbol_matches_search_name.
11602
11603 2020-04-24 Tom Tromey <tom@tromey.com>
11604
11605 * dwarf2/read.c (add_partial_symbol): Do not call
11606 compute_and_set_names.
11607
11608 2020-04-24 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11611 overload.
11612
11613 2020-04-24 Tom Tromey <tom@tromey.com>
11614
11615 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11616 (add_psymbol_to_list): New overload. Make old overload call new
11617 one.
11618 * psympriv.h (add_psymbol_to_list): New overload.
11619
11620 2020-04-24 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2/read.c (partial_die_info::read) <case
11623 DW_AT_linkage_name>: Use value_as_string.
11624 (dwarf2_string_attr): Use value_as_string.
11625 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11626 method.
11627 * dwarf2/attribute.c (attribute::value_as_string): New method.
11628
11629 2020-04-24 Tom Tromey <tom@tromey.com>
11630
11631 * symtab.c (general_symbol_info::natural_name)
11632 (general_symbol_info::demangled_name): Check for language_rust.
11633
11634 2020-04-24 Tom Tromey <tom@tromey.com>
11635
11636 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11637 (dwarf2_physname): ... from here.
11638 (partial_die_info::read): Add Rust "{" hack.
11639
11640 2020-04-24 Tom Tromey <tom@tromey.com>
11641
11642 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11643 method.
11644 (symbol_set_demangled_name): Don't declare.
11645 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11646 symbol_set_demangled_name.
11647 (general_symbol_info::set_language)
11648 (general_symbol_info::compute_and_set_names): Update.
11649 * minsyms.c (minimal_symbol_reader::install): Update.
11650 * dwarf2/read.c (new_symbol): Update.
11651
11652 2020-04-24 Tom Tromey <tromey@adacore.com>
11653
11654 PR python/23662:
11655 * python/py-type.c (convert_field): Handle
11656 FIELD_LOC_KIND_DWARF_BLOCK.
11657 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11658 (typy_get_dynamic): Nw function.
11659 (type_object_getset): Add "dynamic".
11660 * NEWS: Add entry.
11661
11662 2020-04-24 Tom Tromey <tromey@adacore.com>
11663
11664 * ada-typeprint.c (print_choices, print_variant_part)
11665 (print_record_field_types_dynamic): New functions.
11666 (print_record_field_types): Use print_record_field_types_dynamic.
11667
11668 2020-04-24 Tom Tromey <tromey@adacore.com>
11669
11670 * dwarf2/read.c (handle_data_member_location): New overload.
11671 (dwarf2_add_field): Use it.
11672 (decode_locdesc): Add "computed" parameter. Update comment.
11673 * gdbtypes.c (is_dynamic_type_internal): Also look for
11674 FIELD_LOC_KIND_DWARF_BLOCK.
11675 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11676 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11677 virtual base classes.
11678 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11679 FIELD_LOC_KIND_DWARF_BLOCK.
11680
11681 2020-04-24 Tom Tromey <tromey@adacore.com>
11682
11683 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11684 * gdbtypes.c (is_dynamic_type_internal): Check
11685 TYPE_HAS_DYNAMIC_LENGTH.
11686 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11687 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11688 New macros.
11689 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11690 constant.
11691
11692 2020-04-24 Tom Tromey <tromey@adacore.com>
11693
11694 * dwarf2/read.c (struct variant_field): Rewrite.
11695 (struct variant_part_builder): New.
11696 (struct nextfield): Remove "variant" field. Add "offset".
11697 (struct field_info): Add "current_variant_part" and
11698 "variant_parts".
11699 (alloc_discriminant_info): Remove.
11700 (alloc_rust_variant): New function.
11701 (quirk_rust_enum): Update.
11702 (dwarf2_add_field): Set "offset" member. Don't handle
11703 DW_TAG_variant_part.
11704 (offset_map_type): New typedef.
11705 (convert_variant_range, create_one_variant)
11706 (create_one_variant_part, create_variant_parts)
11707 (add_variant_property): New functions.
11708 (dwarf2_attach_fields_to_type): Call add_variant_property.
11709 (read_structure_type): Don't handle DW_TAG_variant_part.
11710 (handle_variant_part, handle_variant): New functions.
11711 (handle_struct_member_die): Use them.
11712 (process_structure_scope): Don't handle variant parts.
11713 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11714 (struct discriminant_info): Remove.
11715 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11716 (struct main_type) <flag_discriminated_union>: Remove.
11717 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11718 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11719 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11720 Update.
11721 * valops.c (value_union_variant): Remove.
11722 * value.h (value_union_variant): Don't declare.
11723
11724 2020-04-24 Tom Tromey <tromey@adacore.com>
11725
11726 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11727 (ada_value_primitive_packed_val): Update.
11728 * ada-valprint.c (ada_value_print_1): Update.
11729 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11730 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11731 just an address. Use evaluate_for_locexpr_baton.
11732 (dwarf2_evaluate_property): Update.
11733 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11734 array_view.
11735 * findvar.c (default_read_var_value): Update.
11736 * gdbtypes.c (compute_variant_fields_inner)
11737 (resolve_dynamic_type_internal): Update.
11738 (resolve_dynamic_type): Change type of valaddr parameter.
11739 * gdbtypes.h (resolve_dynamic_type): Update.
11740 * valarith.c (value_subscripted_rvalue): Update.
11741 * value.c (value_from_contents_and_address): Update.
11742
11743 2020-04-24 Tom Tromey <tromey@adacore.com>
11744
11745 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11746 "push_initial_value" parameter.
11747 (dwarf2_evaluate_property): Likewise.
11748 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11749
11750 2020-04-24 Tom Tromey <tromey@adacore.com>
11751
11752 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11753 (variant::matches, compute_variant_fields_recurse)
11754 (compute_variant_fields_inner, compute_variant_fields): New
11755 functions.
11756 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11757 Use resolved_type after type is made.
11758 (operator==): Add new cases.
11759 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11760 (struct discriminant_range, struct variant, struct variant_part):
11761 New.
11762 (union dynamic_prop_data) <variant_parts, original_type>: New
11763 members.
11764 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11765 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11766 constants.
11767 * value.c (unpack_bits_as_long): Now public.
11768 * value.h (unpack_bits_as_long): Declare.
11769
11770 2020-04-24 Tom Tromey <tromey@adacore.com>
11771
11772 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11773 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11774
11775 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11776
11777 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11778
11779 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11780
11781 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11782 (remove_fork_catchpoint, post_startup_inferior)
11783 (post_attach): Move...
11784 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11785 (remove_fork_catchpoint, post_startup_inferior)
11786 (post_attach): ...here.
11787 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11788 (remove_fork_catchpoint, post_startup_inferior)
11789 (post_attach): Move...
11790 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11791 (remove_fork_catchpoint, post_startup_inferior)
11792 (post_attach): ...here.
11793
11794 2020-04-24 Tom Tromey <tromey@adacore.com>
11795
11796 * nat/windows-nat.h (struct windows_thread_info)
11797 <pc_adjusted>: New member.
11798 * windows-nat.c (windows_fetch_one_register): Check
11799 pc_adjusted.
11800 (windows_nat_target::get_windows_debug_event)
11801 (windows_nat_target::wait): Set pc_adjusted.
11802
11803 2020-04-24 Tom de Vries <tdevries@suse.de>
11804
11805 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11806 Run gdb-add-index inside temp dir.
11807
11808 2020-04-23 Tom Tromey <tromey@adacore.com>
11809
11810 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11811 in loop.
11812
11813 2020-04-23 Luis Machado <luis.machado@linaro.org>
11814
11815 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11816 get_frame_register instead of gdbarch_unwind_pc.
11817
11818 2020-04-23 Tom de Vries <tdevries@suse.de>
11819
11820 * symtab.c (lookup_global_symbol): Prefer def over decl.
11821
11822 2020-04-23 Tom de Vries <tdevries@suse.de>
11823
11824 PR symtab/25807
11825 * block.c (best_symbol, better_symbol): Promote to external.
11826 * block.h (best_symbol, better_symbol): Declare.
11827 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11828 decl.
11829
11830 2020-04-23 Tom Tromey <tromey@adacore.com>
11831
11832 PR ada/25837:
11833 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11834 "const char *", not a "const std::string &".
11835 <name_and_matcher::operator==>: Update.
11836 * unittests/lookup_name_info-selftests.c: Change type of
11837 "result".
11838
11839 2020-04-23 Tom Tromey <tom@tromey.com>
11840
11841 * inferior.h (iterate_over_inferiors): Don't declare.
11842 * inferior.c (iterate_over_inferiors): Remove.
11843 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11844 Remove.
11845 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11846 use iterate_over_inferiors.
11847 (darwin_resume_inferior_it)
11848 (struct resume_inferior_threads_param)
11849 (darwin_resume_inferior_threads_it): Remove.
11850 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11851
11852 2020-04-23 Tom de Vries <tdevries@suse.de>
11853
11854 * blockframe.c (find_pc_partial_function): Use
11855 find_pc_sect_compunit_symtab rather than
11856 objfile->sf->qf->find_pc_sect_compunit_symtab.
11857
11858 2020-04-22 Tom de Vries <tdevries@suse.de>
11859
11860 PR symtab/25764
11861 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11862 in psymtabs.
11863
11864 2020-04-22 Tom de Vries <tdevries@suse.de>
11865
11866 PR symtab/25801
11867 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11868 symtabs.
11869
11870 2020-04-22 Tom de Vries <tdevries@suse.de>
11871
11872 PR symtab/25700
11873 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11874 CU if already created.
11875
11876 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11877
11878 * infrun.c (displaced_step_fixup): Switch to the event_thread
11879 before calling displaced_step_restore, not after.
11880
11881 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11882
11883 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11884 its inferior is not recorded by us.
11885 (record_btrace_target_open): Replace call to
11886 all_non_exited_threads () with call to current_inferior
11887 ()->non_exited_threads ().
11888 (record_btrace_target::stop_recording): Likewise.
11889 (record_btrace_target::close): Likewise.
11890 (record_btrace_target::wait): Likewise.
11891 (record_btrace_target::record_stop_replaying): Likewise.
11892
11893 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11894
11895 * btrace.c (btrace_enable): Throw an error on double enables and
11896 when enabling recording fails.
11897 (btrace_disable): Throw an error if the thread is not recorded.
11898
11899 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11900
11901 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11902 request if we do not have a thread_info.
11903
11904 2020-04-21 Tom de Vries <tdevries@suse.de>
11905
11906 PR gdb/25471
11907 * thread.c
11908 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11909 exception in get_frame_id.
11910
11911 2020-04-20 Tom Tromey <tromey@adacore.com>
11912
11913 * python/python.c (struct gdbpy_event): Mark move constructor as
11914 noexcept.
11915 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11916 constructor as noexcept.
11917 * completer.h (struct completion_result): Mark move constructor as
11918 noexcept.
11919 * completer.c (completion_result::completion_result): Use
11920 initialization style. Don't call reset_match_list.
11921
11922 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11923
11924 * MAINTAINERS (Write After Approval): Add myself.
11925
11926 2020-04-18 Tom Tromey <tom@tromey.com>
11927
11928 * windows-tdep.c (init_w32_command_list)
11929 (w32_prefix_command_valid): Restore.
11930 (_initialize_windows_tdep): Call init_w32_command_list.
11931
11932 2020-04-18 Tom Tromey <tom@tromey.com>
11933
11934 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11935 * value.c (value_fn_field): Update.
11936 * valops.c (find_function_in_inferior)
11937 (value_allocate_space_in_inferior): Update.
11938 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11939 Update.
11940 * tui/tui-source.c (tui_source_window::set_contents): Update.
11941 * symtab.c (lookup_global_or_static_symbol)
11942 (find_function_start_sal_1, skip_prologue_sal)
11943 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11944 * symmisc.c (dump_msymbols, dump_symtab_1)
11945 (maintenance_print_one_line_table): Update.
11946 * symfile.c (init_entry_point_info, section_is_mapped)
11947 (list_overlays_command, simple_read_overlay_table)
11948 (simple_overlay_update_1): Update.
11949 * stap-probe.c (handle_stap_probe): Update.
11950 * stabsread.c (dbx_init_float_type, define_symbol)
11951 (read_one_struct_field, read_enum_type, read_range_type): Update.
11952 * source.c (info_line_command): Update.
11953 * python/python.c (gdbpy_source_objfile_script)
11954 (gdbpy_execute_objfile_script): Update.
11955 * python/py-type.c (save_objfile_types): Update.
11956 * python/py-objfile.c (py_free_objfile): Update.
11957 * python/py-inferior.c (python_new_objfile): Update.
11958 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11959 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11960 (maintenance_check_psymtabs): Update.
11961 * printcmd.c (info_address_command): Update.
11962 * objfiles.h (struct objfile) <arch>: New method, from
11963 get_objfile_arch.
11964 (get_objfile_arch): Don't declare.
11965 * objfiles.c (get_objfile_arch): Remove.
11966 (filter_overlapping_sections): Update.
11967 * minsyms.c (msymbol_is_function): Update.
11968 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11969 (output_nondebug_symbol): Update.
11970 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11971 (mdebug_expand_psymtab): Update.
11972 * machoread.c (macho_add_oso_symfile): Update.
11973 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11974 Update.
11975 * linux-fork.c (checkpoint_command): Update.
11976 * linespec.c (convert_linespec_to_sals): Update.
11977 * jit.c (finalize_symtab): Update.
11978 * infrun.c (insert_exception_resume_from_probe): Update.
11979 * ia64-tdep.c (ia64_find_unwind_table): Update.
11980 * hppa-tdep.c (internalize_unwinds): Update.
11981 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11982 Update.
11983 * gcore.c (call_target_sbrk): Update.
11984 * elfread.c (record_minimal_symbol, elf_symtab_read)
11985 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11986 (elf_gnu_ifunc_resolve_by_got): Update.
11987 * dwarf2/read.c (create_addrmap_from_index)
11988 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11989 (read_debug_names_from_section)
11990 (process_psymtab_comp_unit_reader, add_partial_symbol)
11991 (add_partial_subprogram, process_full_comp_unit)
11992 (read_file_scope, read_func_scope, read_lexical_block_scope)
11993 (read_call_site_scope, dwarf2_ranges_read)
11994 (dwarf2_record_block_ranges, dwarf2_add_field)
11995 (mark_common_block_symbol_computed, read_tag_pointer_type)
11996 (read_tag_string_type, dwarf2_init_float_type)
11997 (dwarf2_init_complex_target_type, read_base_type)
11998 (partial_die_info::read, partial_die_info::read)
11999 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12000 (dwarf2_fetch_die_loc_sect_off): Update.
12001 * dwarf2/loc.c (dwarf2_find_location_expression)
12002 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12003 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12004 (dwarf2_loc_desc_get_symbol_read_needs)
12005 (locexpr_describe_location_piece, locexpr_describe_location_1)
12006 (loclist_describe_location): Update.
12007 * dwarf2/index-write.c (write_debug_names): Update.
12008 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12009 * dtrace-probe.c (dtrace_process_dof): Update.
12010 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12011 (process_one_symbol): Update.
12012 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12013 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12014 (coff_read_enum_type): Update.
12015 * cli/cli-cmds.c (edit_command, list_command): Update.
12016 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12017 * breakpoint.c (create_overlay_event_breakpoint)
12018 (create_longjmp_master_breakpoint)
12019 (create_std_terminate_master_breakpoint)
12020 (create_exception_master_breakpoint, get_sal_arch): Update.
12021 * block.c (block_gdbarch): Update.
12022 * annotate.c (annotate_source_line): Update.
12023
12024 2020-04-17 Tom Tromey <tromey@adacore.com>
12025
12026 * auto-load.c (show_auto_load_cmd): Remove.
12027 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12028 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12029 (maintenance_print_arc_command): Remove.
12030 * tui/tui-win.c (tui_command): Remove.
12031 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12032 * tui/tui-layout.c (tui_layout_command): Remove.
12033 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12034 * python/python.c (user_set_python, user_show_python): Remove.
12035 (_initialize_python): Use add_basic_prefix_cmd,
12036 add_show_prefix_cmd.
12037 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12038 (install_gdb_commands): Use add_basic_prefix_cmd,
12039 add_show_prefix_cmd.
12040 (info_guile_command): Remove.
12041 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12042 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12045 Remove do_set and do_show parameters.
12046 * cli/cli-style.c (set_style, show_style): Remove.
12047 (_initialize_cli_style): Use add_basic_prefix_cmd,
12048 add_show_prefix_cmd.
12049 (cli_style_option::add_setshow_commands): Remove do_set and
12050 do_show parameters.
12051 (cli_style_option::add_setshow_commands): Use
12052 add_basic_prefix_cmd, add_show_prefix_cmd.
12053 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12054 (set_style_name): Remove.
12055 * cli/cli-dump.c (dump_command, append_command): Remove.
12056 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12057 (tekhex_dump_command, binary_dump_command)
12058 (binary_append_command): Remove.
12059 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12060 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12061 (init_w32_command_list): Remove; move into ...
12062 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12063 * valprint.c (set_print, show_print, set_print_raw)
12064 (show_print_raw): Remove.
12065 (_initialize_valprint): Use add_basic_prefix_cmd,
12066 add_show_prefix_cmd.
12067 * typeprint.c (set_print_type, show_print_type): Remove.
12068 (_initialize_typeprint): Use add_basic_prefix_cmd,
12069 add_show_prefix_cmd.
12070 * record.c (set_record_command, show_record_command): Remove.
12071 (_initialize_record): Use add_basic_prefix_cmd,
12072 add_show_prefix_cmd.
12073 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12074 add_show_prefix_cmd.
12075 (info_command, show_command, set_debug, show_debug): Remove.
12076 * top.h (set_history, show_history): Don't declare.
12077 * top.c (set_history, show_history): Remove.
12078 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12079 (unset_tdesc_cmd): Remove.
12080 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12081 add_show_prefix_cmd.
12082 * symtab.c (info_module_command): Remove.
12083 (_initialize_symtab): Use add_basic_prefix_cmd.
12084 * symfile.c (overlay_command): Remove.
12085 (_initialize_symfile): Use add_basic_prefix_cmd.
12086 * sparc64-tdep.c (info_adi_command): Remove.
12087 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12088 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12089 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12090 add_show_prefix_cmd.
12091 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12092 (_initialize_serial): Use add_basic_prefix_cmd,
12093 add_show_prefix_cmd.
12094 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12095 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12098 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12101 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12102 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12103 add_show_prefix_cmd.
12104 * remote.c (remote_command, set_remote_cmd): Remove.
12105 (_initialize_remote): Use add_basic_prefix_cmd.
12106 * record-full.c (set_record_full_command)
12107 (show_record_full_command): Remove.
12108 (_initialize_record_full): Use add_basic_prefix_cmd,
12109 add_show_prefix_cmd.
12110 * record-btrace.c (cmd_set_record_btrace)
12111 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12112 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12113 (cmd_show_record_btrace_pt): Remove.
12114 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * ravenscar-thread.c (set_ravenscar_command)
12117 (show_ravenscar_command): Remove.
12118 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12119 add_show_prefix_cmd.
12120 * mips-tdep.c (show_mips_command, set_mips_command)
12121 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12122 add_show_prefix_cmd.
12123 * maint.c (maintenance_command, maintenance_info_command)
12124 (maintenance_check_command, maintenance_print_command)
12125 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12126 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12127 add_show_prefix_cmd.
12128 (show_per_command_cmd): Remove.
12129 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12130 Remove.
12131 (maintenance_show_test_settings_cmd): Remove.
12132 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 * maint-test-options.c (maintenance_test_options_command):
12135 Remove.
12136 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12137 * macrocmd.c (macro_command): Remove
12138 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12139 * language.c (set_check, show_check): Remove.
12140 (_initialize_language): Use add_basic_prefix_cmd,
12141 add_show_prefix_cmd.
12142 * infcmd.c (unset_command): Remove.
12143 (_initialize_infcmd): Use add_basic_prefix_cmd.
12144 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12145 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12146 add_show_prefix_cmd.
12147 * go32-nat.c (go32_info_dos_command): Remove.
12148 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12149 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12150 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12151 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12152 (_initialize_frame): Use add_basic_prefix_cmd,
12153 add_show_prefix_cmd.
12154 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12155 (_initialize_dcache): Use add_basic_prefix_cmd,
12156 add_show_prefix_cmd.
12157 * cp-support.c (maint_cplus_command): Remove.
12158 (_initialize_cp_support): Use add_basic_prefix_cmd.
12159 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12160 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12161 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12162 add_basic_prefix_cmd, add_show_prefix_cmd.
12163 * breakpoint.c (save_command): Remove.
12164 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12165 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12166 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12167 add_show_prefix_cmd.
12168 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12169 (set_ada_command, show_ada_command): Remove.
12170 (_initialize_ada_language): Use add_basic_prefix_cmd,
12171 add_show_prefix_cmd.
12172 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12173
12174 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12175
12176 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12177 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12178
12179 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12180
12181 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12182 warning messages.
12183
12184 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12185
12186 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12187 import table is not at beginning of .idata section.
12188
12189 2020-04-16 Pedro Alves <palves@redhat.com>
12190
12191 * inferior.c (delete_inferior): Use delete operator directly
12192 instead of delete_program_space.
12193 * progspace.c (add_program_space): New, factored out from
12194 program_space::program_space.
12195 (remove_program_space): New, factored out from
12196 delete_program_space.
12197 (program_space::program_space): Remove intro comment. Rewrite.
12198 (program_space::~program_space): Remove intro comment. Call
12199 remove_program_space.
12200 (delete_program_space): Delete.
12201 * progspace.h (program_space::program_space): Make explicit. Move
12202 intro comment here, adjusted.
12203 (program_space::~program_space): Move intro comment here,
12204 adjusted.
12205 (delete_program_space): Remove.
12206
12207 2020-04-16 Tom Tromey <tromey@adacore.com>
12208
12209 * windows-nat.c (windows_nat::handle_access_violation): New
12210 function.
12211 * nat/windows-nat.h (handle_access_violation): Declare.
12212 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12213 windows-nat.c. Call handle_access_violation.
12214
12215 2020-04-16 Tom de Vries <tdevries@suse.de>
12216
12217 PR symtab/25791
12218 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12219 CUs without psymtab.
12220
12221 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12222
12223 * python/python.c (do_start_initialization): Don't call
12224 PyEval_InitThreads for Python 3.9 and beyond.
12225
12226 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12227
12228 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12229 thread functions.
12230 (obsd_nat_target::wait): Likewise.
12231
12232 2020-04-15 Tom Tromey <tromey@adacore.com>
12233
12234 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12235 (DEBUG_EXCEPT): Use debug_printf.
12236
12237 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12238
12239 * completer.c (class completion_tracker::completion_hash_entry)
12240 <hash_name>: New member function.
12241 (completion_tracker::discard_completions): New callback to hash a
12242 completion_hash_entry, pass this to htab_create_alloc.
12243
12244 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12245
12246 * windows-nat.c (windows_make_so): Warn rather than stopping with
12247 an error if realpath() fails.
12248
12249 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12250
12251 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12252 (nbsd_nat_target::info_proc): Add do_status.
12253
12254 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12255 Tom de Vries <tdevries@suse.de>
12256
12257 PR symtab/25718
12258 * psympriv.h (struct partial_symtab::read_symtab)
12259 (struct partial_symtab::expand_psymtab)
12260 (struct partial_symtab::read_dependencies): Update comments.
12261 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12262 read_symtab for includer.
12263 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12264 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12265 (struct dwarf2_include_psymtab::m_readin): Remove.
12266 (struct dwarf2_include_psymtab::includer): New member function.
12267 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12268
12269 2020-04-14 Tom de Vries <tdevries@suse.de>
12270
12271 PR symtab/25720
12272 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12273 with NULL symbol_matcher and lookup_name.
12274 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12275 and lookup_name.
12276 * dwarf2/read.c (dw2_expand_symtabs_matching)
12277 (dw2_debug_names_expand_symtabs_matching): Same.
12278 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12279 Make lookup_name a pointer. Update comment.
12280 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12281 lookup_name being a pointer.
12282 * symfile.c (expand_symtabs_matching): Same.
12283 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12284 * linespec.c (iterate_over_all_matching_symtabs): Same.
12285
12286 2020-04-13 Tom Tromey <tom@tromey.com>
12287
12288 * run-on-main-thread.c: Update include.
12289 * unittests/main-thread-selftests.c: Update include.
12290 * tui/tui-win.c: Update include.
12291 * tui/tui-io.c: Update include.
12292 * tui/tui-interp.c: Update include.
12293 * tui/tui-hooks.c: Update include.
12294 * top.h: Update include.
12295 * top.c: Update include.
12296 * ser-base.c: Update include.
12297 * remote.c: Update include.
12298 * remote-notif.c: Update include.
12299 * remote-fileio.c: Update include.
12300 * record-full.c: Update include.
12301 * record-btrace.c: Update include.
12302 * python/python.c: Update include.
12303 * posix-hdep.c: Update include.
12304 * mingw-hdep.c: Update include.
12305 * mi/mi-main.c: Update include.
12306 * mi/mi-interp.c: Update include.
12307 * main.c: Update include.
12308 * linux-nat.c: Update include.
12309 * interps.c: Update include.
12310 * infrun.c: Update include.
12311 * inf-loop.c: Update include.
12312 * event-top.c: Update include.
12313 * event-loop.c: Move to ../gdbsupport/.
12314 * event-loop.h: Move to ../gdbsupport/.
12315 * async-event.h: Update include.
12316 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12317
12318 2020-04-13 Tom Tromey <tom@tromey.com>
12319
12320 * tui/tui-win.c: Include async-event.h.
12321 * remote.c: Include async-event.h.
12322 * remote-notif.c: Include async-event.h.
12323 * record-full.c: Include async-event.h.
12324 * record-btrace.c: Include async-event.h.
12325 * infrun.c: Include async-event.h.
12326 * event-top.c: Include async-event.h.
12327 * event-loop.h: Move some declarations to async-event.h.
12328 * event-loop.c: Don't include ser-event.h or top.h. Move some
12329 code to async-event.c.
12330 * async-event.h: New file.
12331 * async-event.c: New file.
12332 * Makefile.in (COMMON_SFILES): Add async-event.c.
12333 (HFILES_NO_SRCDIR): Add async-event.h.
12334
12335 2020-04-13 Tom Tromey <tom@tromey.com>
12336
12337 * utils.c (flush_streams): New function.
12338 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12339
12340 2020-04-13 Tom Tromey <tom@tromey.com>
12341
12342 * event-loop.c (handle_file_event): Use warning, not
12343 printf_unfiltered.
12344
12345 2020-04-13 Tom Tromey <tom@tromey.com>
12346
12347 * event-loop.c: Include <chrono>.
12348
12349 2020-04-13 Tom Tromey <tom@tromey.com>
12350
12351 * gdb_select.h: Move to ../gdbsupport/.
12352 * event-loop.c: Update include path.
12353 * top.c: Update include path.
12354 * ser-base.c: Update include path.
12355 * ui-file.c: Update include path.
12356 * ser-tcp.c: Update include path.
12357 * guile/scm-ports.c: Update include path.
12358 * posix-hdep.c: Update include path.
12359 * ser-unix.c: Update include path.
12360 * gdb_usleep.c: Update include path.
12361 * mingw-hdep.c: Update include path.
12362 * inflow.c: Update include path.
12363 * infrun.c: Update include path.
12364 * event-top.c: Update include path.
12365
12366 2020-04-13 Tom Tromey <tom@tromey.com>
12367
12368 * configure: Rebuild.
12369 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12370
12371 2020-04-13 Tom Tromey <tom@tromey.com>
12372
12373 * event-loop.h (start_event_loop): Don't declare.
12374 * event-loop.c (start_event_loop): Move...
12375 * main.c (start_event_loop): ...here. Now static.
12376
12377 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12378
12379 * MAINTAINERS: Update my email address.
12380
12381 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12382
12383 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12384 IP_ALL.
12385
12386 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12387
12388 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12389 (nbsd_nat_target::info_proc): Add do_cmdline.
12390
12391 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12392
12393 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12394 (nbsd_nat_target::info_proc): Add do_cwd.
12395
12396 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12397
12398 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12399
12400 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12401
12402 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12403 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12404 (nbsd_nat_target::info_proc): New functions.
12405 * nbsd-nat.c (kinfo_get_vmmap): New function.
12406 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12407 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12408 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12409 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12410 functions.
12411 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12412 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12413 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12414 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12415 (KINFO_VME_FLAG_GROWS_DOWN): New.
12416
12417 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12418
12419 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12420 bit shift.
12421
12422 2020-04-10 Tom Tromey <tromey@adacore.com>
12423
12424 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12425
12426 2020-04-10 Tom Tromey <tromey@adacore.com>
12427
12428 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12429 separate debug files.
12430
12431 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12432
12433 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12434 Move to...
12435 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12436 ... here.
12437 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12438 Check for STATUS_WX86_BREAKPOINT.
12439 (windows_nat_target::wait): Same.
12440
12441 2020-04-10 Tom de Vries <tdevries@suse.de>
12442
12443 PR cli/25808
12444 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12445
12446 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12447
12448 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12449 (Write After Approval): Remove Tom de Vries.
12450
12451 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12452
12453 revert partially:
12454 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12455
12456 * buildsym.c (record_line): Fix undefined behavior and preserve
12457 lines at eof.
12458
12459 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12460
12461 * auxv.h (svr4_auxv_parse): New.
12462 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12463 and generic_auxv_parse.
12464 (svr4_auxv_parse): Add.
12465 * obsd-tdep.c: Include "auxv.h".
12466 (obsd_auxv_parse): Remove.
12467 (obsd_init_abi): Remove comment.
12468 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12469 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12470 * nbsd-tdep.c: Include "auxv.h".
12471 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12472
12473 2020-04-08 Tom Tromey <tromey@adacore.com>
12474
12475 * nat/windows-nat.h (last_wait_event): Don't declare.
12476 (wait_for_debug_event): Update comment.
12477 * nat/windows-nat.c (last_wait_event): Now static.
12478
12479 2020-04-08 Tom Tromey <tromey@adacore.com>
12480
12481 * windows-nat.c (wait_for_debug_event): Move to
12482 nat/windows-nat.c.
12483 * nat/windows-nat.h (wait_for_debug_event): Declare.
12484 * nat/windows-nat.c (wait_for_debug_event): Move from
12485 windows-nat.c. No longer static.
12486
12487 2020-04-08 Tom Tromey <tromey@adacore.com>
12488
12489 * windows-nat.c (get_windows_debug_event): Use
12490 fetch_pending_stop.
12491 * nat/windows-nat.h (fetch_pending_stop): Declare.
12492 * nat/windows-nat.c (fetch_pending_stop): New function.
12493
12494 2020-04-08 Tom Tromey <tromey@adacore.com>
12495
12496 * windows-nat.c (windows_continue): Use matching_pending_stop and
12497 continue_last_debug_event.
12498 * nat/windows-nat.h (matching_pending_stop)
12499 (continue_last_debug_event): Declare.
12500 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12501 (matching_pending_stop, continue_last_debug_event): New
12502 functions.
12503
12504 2020-04-08 Tom Tromey <tromey@adacore.com>
12505
12506 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12507 (handle_exception_result): Move to nat/windows-nat.h.
12508 (DEBUG_EXCEPTION_SIMPLE): Remove.
12509 (windows_nat::handle_ms_vc_exception): New function.
12510 (handle_exception): Move to nat/windows-nat.c.
12511 (get_windows_debug_event): Update.
12512 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12513 nat/windows-nat.c.
12514 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12515 (handle_exception_result): Move from windows-nat.c.
12516 (handle_exception): Declare.
12517 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12518 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12519 windows-nat.c.
12520
12521 2020-04-08 Tom Tromey <tromey@adacore.com>
12522
12523 * windows-nat.c (exception_count, event_count): Remove.
12524 (handle_exception, get_windows_debug_event)
12525 (do_initial_windows_stuff): Update.
12526
12527 2020-04-08 Tom Tromey <tromey@adacore.com>
12528
12529 * windows-nat.c (windows_nat::handle_load_dll)
12530 (windows_nat::handle_unload_dll): Rename. No longer static.
12531 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12532 Declare.
12533
12534 2020-04-08 Tom Tromey <tromey@adacore.com>
12535
12536 * complaints.h (stop_whining): Declare at top-level.
12537 (complaint): Don't declare stop_whining.
12538
12539 2020-04-08 Tom Tromey <tromey@adacore.com>
12540
12541 * windows-nat.c (windows_nat::handle_output_debug_string):
12542 Rename. No longer static.
12543 * nat/windows-nat.h (handle_output_debug_string): Declare.
12544
12545 2020-04-08 Tom Tromey <tromey@adacore.com>
12546
12547 * windows-nat.c (current_process_handle, current_process_id)
12548 (main_thread_id, last_sig, current_event, last_wait_event)
12549 (current_windows_thread, desired_stop_thread_id, pending_stops)
12550 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12551 (display_selectors, fake_create_process)
12552 (get_windows_debug_event): Update.
12553 * nat/windows-nat.h (current_process_handle, current_process_id)
12554 (main_thread_id, last_sig, current_event, last_wait_event)
12555 (current_windows_thread, desired_stop_thread_id, pending_stops)
12556 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12557 * nat/windows-nat.c (current_process_handle, current_process_id)
12558 (main_thread_id, last_sig, current_event, last_wait_event)
12559 (current_windows_thread, desired_stop_thread_id, pending_stops)
12560 (siginfo_er): New globals. Move from windows-nat.c.
12561
12562 2020-04-08 Tom Tromey <tromey@adacore.com>
12563
12564 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12565 (handle_load_dll): Update.
12566 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12567
12568 2020-04-08 Tom Tromey <tromey@adacore.com>
12569
12570 * windows-nat.c (enum thread_disposition_type): Move to
12571 nat/windows-nat.h.
12572 (windows_nat::thread_rec): Rename from thread_rec. No longer
12573 static.
12574 (windows_add_thread, windows_nat_target::fetch_registers)
12575 (windows_nat_target::store_registers, handle_exception)
12576 (windows_nat_target::resume, get_windows_debug_event)
12577 (windows_nat_target::get_tib_address)
12578 (windows_nat_target::thread_name)
12579 (windows_nat_target::thread_alive): Update.
12580 * nat/windows-nat.h (enum thread_disposition_type): Move from
12581 windows-nat.c.
12582 (thread_rec): Declare.
12583
12584 2020-04-08 Tom Tromey <tromey@adacore.com>
12585
12586 * windows-nat.c: Add "using namespace".
12587 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12588 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12589
12590 2020-04-08 Tom Tromey <tromey@adacore.com>
12591
12592 * nat/windows-nat.h (struct windows_thread_info): Declare
12593 destructor.
12594 * nat/windows-nat.c (~windows_thread_info): New.
12595
12596 2020-04-08 Tom Tromey <tromey@adacore.com>
12597
12598 PR gdb/22992
12599 * windows-nat.c (current_event): Update comment.
12600 (last_wait_event, desired_stop_thread_id): New globals.
12601 (struct pending_stop): New.
12602 (pending_stops): New global.
12603 (windows_nat_target) <stopped_by_sw_breakpoint>
12604 <supports_stopped_by_sw_breakpoint>: New methods.
12605 (windows_fetch_one_register): Add assertions. Adjust PC.
12606 (windows_continue): Handle pending stops. Suspend other threads
12607 when stepping. Use last_wait_event
12608 (wait_for_debug_event): New function.
12609 (get_windows_debug_event): Use wait_for_debug_event. Handle
12610 pending stops. Queue spurious stops.
12611 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12612 (windows_nat_target::kill): Use wait_for_debug_event.
12613 * nat/windows-nat.h (struct windows_thread_info)
12614 <stopped_at_software_breakpoint>: New field.
12615 * nat/windows-nat.c (windows_thread_info::resume): Clear
12616 stopped_at_software_breakpoint.
12617
12618 2020-04-08 Tom Tromey <tromey@adacore.com>
12619
12620 * windows-nat.c (enum thread_disposition_type): New.
12621 (thread_rec): Replace "get_context" parameter with "disposition";
12622 change type.
12623 (windows_add_thread, windows_nat_target::fetch_registers)
12624 (windows_nat_target::store_registers, handle_exception)
12625 (windows_nat_target::resume, get_windows_debug_event)
12626 (windows_nat_target::get_tib_address)
12627 (windows_nat_target::thread_name)
12628 (windows_nat_target::thread_alive): Update.
12629
12630 2020-04-08 Tom Tromey <tromey@adacore.com>
12631
12632 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12633 (windows_continue): Use windows_continue::resume.
12634 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12635 resume>: Declare new methods.
12636 * nat/windows-nat.c: New file.
12637 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12638
12639 2020-04-08 Tom Tromey <tromey@adacore.com>
12640
12641 * windows-nat.c (windows_add_thread, windows_delete_thread)
12642 (windows_nat_target::fetch_registers)
12643 (windows_nat_target::store_registers, fake_create_process)
12644 (windows_nat_target::resume, windows_nat_target::resume)
12645 (get_windows_debug_event, windows_nat_target::wait)
12646 (windows_nat_target::pid_to_str)
12647 (windows_nat_target::get_tib_address)
12648 (windows_nat_target::get_ada_task_ptid)
12649 (windows_nat_target::thread_name)
12650 (windows_nat_target::thread_alive): Use lwp, not tid.
12651
12652 2020-04-08 Tom Tromey <tromey@adacore.com>
12653
12654 * windows-nat.c (handle_exception)
12655 (windows_nat_target::thread_name): Update.
12656 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12657 <name>: Now unique_xmalloc_ptr.
12658
12659 2020-04-08 Tom Tromey <tromey@adacore.com>
12660
12661 * windows-nat.c (thread_rec)
12662 (windows_nat_target::fetch_registers): Update.
12663 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12664 Update comment.
12665 <debug_registers_changed, reload_context>: Now bool.
12666
12667 2020-04-08 Tom Tromey <tromey@adacore.com>
12668
12669 * windows-nat.c (windows_add_thread): Use new.
12670 (windows_init_thread_list, windows_delete_thread): Use delete.
12671 (get_windows_debug_event): Update.
12672 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12673 destructor, and initializers.
12674
12675 2020-04-08 Tom Tromey <tromey@adacore.com>
12676
12677 * windows-nat.c (struct windows_thread_info): Remove.
12678 * nat/windows-nat.h: New file.
12679
12680 2020-04-08 Tom Tromey <tromey@adacore.com>
12681
12682 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12683 (thread_rec, windows_add_thread, windows_delete_thread)
12684 (windows_continue): Update.
12685
12686 2020-04-08 Tom Tromey <tromey@adacore.com>
12687
12688 * windows-nat.c (struct windows_thread_info): Remove typedef.
12689 (thread_head): Remove.
12690 (thread_list): New global.
12691 (thread_rec, windows_add_thread, windows_init_thread_list)
12692 (windows_delete_thread, windows_continue): Update.
12693
12694 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12695
12696 * windows-tdep.h (windows_init_abi): Add comment.
12697 (cygwin_init_abi): New declaration.
12698 * windows-tdep.c: Split signal enumeration in two, one for
12699 Windows and one for Cygwin.
12700 (windows_gdb_signal_to_target): Only deal with signal of the
12701 Windows OS ABI.
12702 (cygwin_gdb_signal_to_target): New function.
12703 (windows_init_abi): Rename to windows_init_abi_common, don't set
12704 gdb_signal_to_target gdbarch method. Add new new function with
12705 this name.
12706 (cygwin_init_abi): New function.
12707 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12708 comment. Don't call windows_init_abi.
12709 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12710 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12711 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12712 i386_windows_init_abi_common, don't call windows_init_abi. Add
12713 a new function of this name.
12714 (i386_cygwin_init_abi): New function.
12715 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12716 OS ABI Cygwin.
12717
12718 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12719
12720 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12721 parameter.c.
12722 (dwarf2_read_gdb_index): Update.
12723
12724 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12725
12726 * nbsd-tdep.c: Include "objfiles.h".
12727 (nbsd_skip_solib_resolver): New.
12728 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12729
12730 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12731
12732 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12733 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12734 with DW_LLE_base_addressx are being emitted in DWARFv5.
12735 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12736 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12737 unsigned integer.
12738
12739 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12740
12741 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12742 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12743 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12744 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12745 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12746 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12747 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12748
12749
12750 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12751
12752 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12753 (read_loclist_index): New function definition.
12754 (lookup_loclist_base): New function definition.
12755 (read_loclist_header): New function definition.
12756 (dwarf2_cu): Add loclist_base and loclist_header field.
12757 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12758 (read_full_die_1): Read the value of DW_AT_loclists_base.
12759 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12760 (read_attribute_value): Handle DW_FORM_loclistx.
12761 (skip_one_die): Handle DW_FORM_loclistx.
12762 (loclist_header): New structure declaration.
12763 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12764
12765 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12766
12767 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12768 constructor. Remove `addr` parameter from other constructor and
12769 add `per_cu` parameter.
12770 * dwarf2/read.c (create_partial_symtab): Update.
12771
12772 2020-04-07 Tom de Vries <tdevries@suse.de>
12773
12774 PR symtab/25796
12775 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12776 (partial_die_info::fixup): Inherit has_const_value.
12777
12778 2020-04-07 Tom de Vries <tdevries@suse.de>
12779
12780 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12781 symbols without address.
12782
12783 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12784
12785 * nbsd-nat.h (struct thread_info): Add forward declaration.
12786 (nbsd_nat_target::thread_alive): Add.
12787 (nbsd_nat_target::thread_name): Likewise.
12788 (nbsd_nat_target::update_thread_list): Likewise.
12789 (update_thread_list::post_attach): Likewise.
12790 (post_attach::pid_to_str): Likewise.
12791 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12792 (nbsd_thread_lister): Add.
12793 (nbsd_nat_target::thread_alive): Likewise.
12794 (nbsd_nat_target::thread_name): Likewise.
12795 (nbsd_add_threads): Likewise.
12796 (update_thread_list::post_attach): Likewise.
12797 (nbsd_nat_target::update_thread_list): Likewise.
12798 (post_attach::pid_to_str): Likewise.
12799
12800 2020-04-06 Tom Tromey <tromey@adacore.com>
12801
12802 * ada-valprint.c (print_variant_part): Extract the variant field.
12803 (print_field_values): Use the field as the outer value when
12804 recursing.
12805
12806 2020-04-06 Tom Tromey <tromey@adacore.com>
12807
12808 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12809 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12810 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12811 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12812 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12813
12814 2020-04-06 Tom Tromey <tromey@adacore.com>
12815
12816 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12817 TYPE_CODE_ERROR.
12818
12819 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12820
12821 * nbsd-tdep.c: Include "gdbarch.h".
12822 Define enum with NetBSD signal numbers.
12823 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12824 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12825 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12826 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12827 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12828 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12829 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12830 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12831 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12832 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12833 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12834 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12835
12836 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12837
12838 PR gdb/25325
12839 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12840
12841 2020-04-03 Tom Tromey <tromey@adacore.com>
12842
12843 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12844 Read constant block.
12845
12846 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12847
12848 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12849 (gdb_bfd_get_full_section_contents): New declaration.
12850 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12851 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12852 gdb_bfd_get_full_section_contents.
12853
12854 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12855
12856 * exec.c (build_section_table): Replace internal_error with
12857 gdb_assert.
12858 (section_table_xfer_memory_partial): Likewise.
12859 * mdebugread.c (parse_partial_symbols): Likewise.
12860 * psymtab.c (lookup_partial_symbol): Likewise.
12861 * utils.c (wrap_here): Likewise.
12862
12863 2020-04-02 Tom Tromey <tromey@adacore.com>
12864
12865 * f-lang.c (build_fortran_types): Use arch_type to initialize
12866 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12867
12868 2020-04-02 Tom Tromey <tromey@adacore.com>
12869
12870 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12871 of attributes.
12872
12873 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12874 Bernd Edlinger <bernd.edlinger@hotmail.de>
12875 Tom Tromey <tromey@adacore.com>
12876
12877 * buildsym.c (buildsym_compunit::record_line): Remove
12878 deduplication code.
12879
12880 2020-04-02 Tom de Vries <tdevries@suse.de>
12881
12882 PR ada/24671
12883 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12884
12885 2020-04-02 Tom de Vries <tdevries@suse.de>
12886
12887 * dwarf2/read.c (dwarf2_gdb_index_functions,
12888 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12889 NULL.
12890 * psymtab.c (psym_lookup_global_symbol_language): New function.
12891 (psym_functions): Init psym_lookup_global_symbol_language with
12892 psym_lookup_global_symbol_language.
12893 * symfile-debug.c (debug_sym_quick_functions): Init
12894 lookup_global_symbol_language with NULL.
12895 * symfile.c (set_initial_language): Remove fixme comment.
12896 * symfile.h (struct quick_symbol_functions): Add
12897 lookup_global_symbol_language.
12898 * symtab.c (find_quick_global_symbol_language): New function.
12899 (find_main_name): Use find_quick_global_symbol_language.
12900
12901 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12902
12903 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12904
12905 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12906
12907 * buildsym.c (record_line): Fix undefined behavior and preserve
12908 lines at eof.
12909
12910 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12911
12912 * buildsym.c (record_line): Fix the resizing condition.
12913
12914 2020-04-01 Tom Tromey <tom@tromey.com>
12915
12916 * value.h (value_literal_complex): Add comment.
12917 * valops.c (value_literal_complex): Refer to value.h.
12918
12919 2020-04-01 Tom Tromey <tom@tromey.com>
12920
12921 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12922 (scalar_type): New rule, from typebase.
12923 (typebase): Use scalar_type. Recognize complex types.
12924 (field_name): Handle FLOAT_KEYWORD.
12925 (ident_tokens): Add _Complex and __complex__.
12926
12927 2020-04-01 Tom Tromey <tom@tromey.com>
12928
12929 PR exp/25299:
12930 * valarith.c (promotion_type, complex_binop): New functions.
12931 (scalar_binop): Handle complex numbers. Use promotion_type.
12932 (value_pos, value_neg, value_complement): Handle complex numbers.
12933
12934 2020-04-01 Tom Tromey <tom@tromey.com>
12935
12936 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12937 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12938 (parse_number): Handle complex numbers.
12939
12940 2020-04-01 Tom Tromey <tom@tromey.com>
12941
12942 * c-valprint.c (c_decorations): Change complex suffix to "i".
12943
12944 2020-04-01 Tom Tromey <tom@tromey.com>
12945
12946 * valprint.c (generic_value_print_complex): Use accessors.
12947 * value.h (value_real_part, value_imaginary_part): Declare.
12948 * valops.c (value_real_part, value_imaginary_part): New
12949 functions.
12950 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12951
12952 2020-04-01 Tom Tromey <tom@tromey.com>
12953
12954 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12955 (read_range_type): Update.
12956 * mdebugread.c (basic_type): Update.
12957 * go-lang.c (build_go_types): Use init_complex_type.
12958 * gdbtypes.h (struct main_type) <complex_type>: New member.
12959 (init_complex_type): Update.
12960 (arch_complex_type): Don't declare.
12961 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12962 Make name if none given. Use alloc_type_copy. Look for cached
12963 complex type.
12964 (arch_complex_type): Remove.
12965 (gdbtypes_post_init): Use init_complex_type.
12966 * f-lang.c (build_fortran_types): Use init_complex_type.
12967 * dwarf2/read.c (read_base_type): Update.
12968 * d-lang.c (build_d_types): Use init_complex_type.
12969 * ctfread.c (read_base_type): Update.
12970
12971 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12972
12973 * infrun.c (stop_all_threads): Update assertion, plus when
12974 stopping threads, take into account that we might be trying
12975 to stop an all-stop target.
12976 (stop_waiting): Call 'stop_all_threads' if there exists a
12977 non-stop target.
12978
12979 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12980
12981 * target.h (exists_non_stop_target): New function declaration.
12982 * target.c (exists_non_stop_target): New function.
12983
12984 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12985
12986 PR gdb/24789
12987 * eval.c (is_integral_or_integral_reference): New function.
12988 (evaluate_subexp_standard): Allow integer references in
12989 pointer arithmetic.
12990
12991 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12992
12993 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12994 check for no ptid in the stop reply when the target is non-stop.
12995
12996 2020-04-01 Tom Tromey <tromey@adacore.com>
12997
12998 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12999 "name" parameter to rvalue reference. Initialize m_name_holder.
13000 <lookup_name_info>: New overloads.
13001 <name>: Return gdb::string_view.
13002 <c_str>: New method.
13003 <make_ignore_params>: Update.
13004 <search_name_hash>: Update.
13005 <language_lookup_name>: Return const char *.
13006 <m_name>: Change type.
13007 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13008 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13009 (lookup_name_info::match_any): Update.
13010 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13011 Update.
13012 * minsyms.c (linkage_name_str): Update.
13013 * language.c (default_symbol_name_matcher): Update.
13014 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13015 Update.
13016 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13017 (ada_lookup_name_info::ada_lookup_name_info): Update.
13018 (literal_symbol_name_matcher): Update.
13019
13020 2020-04-01 Tom Tromey <tromey@adacore.com>
13021
13022 * psymtab.c (psymtab_search_name): Remove function.
13023 (psym_lookup_symbol): Create search name and lookup name here.
13024 (lookup_partial_symbol): Remove "name" parameter; add
13025 lookup_name.
13026 (psym_expand_symtabs_for_function): Update.
13027
13028 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13029
13030 PR tui/25597:
13031 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13032
13033 2020-03-31 Tom Tromey <tromey@adacore.com>
13034
13035 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13036 memcpy.
13037
13038 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13039
13040 * features/riscv/32bit-csr.xml: Regenerated.
13041 * features/riscv/64bit-csr.xml: Regenerated.
13042
13043 2020-03-30 Tom Tromey <tromey@adacore.com>
13044
13045 * ada-valprint.c (print_variant_part): Update.
13046 * ada-lang.h (ada_which_variant_applies): Update.
13047 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13048 outer_valaddr parameters; replace with "outer" value parameter.
13049 (to_fixed_variant_branch_type): Update.
13050
13051 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13052
13053 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13054 <list>. Remove inclusion of observable.h.
13055 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13056 (struct arch_lwp_info): New struct.
13057 (class ppc_linux_dreg_interface): New class.
13058 (struct ppc_linux_process_info): New struct.
13059 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13060 <low_new_clone, low_forget_process, low_prepare_to_resume>
13061 <copy_thread_dreg_state, mark_thread_stale>
13062 <mark_debug_registers_changed, register_hw_breakpoint>
13063 <clear_hw_breakpoint, register_wp, clear_wp>
13064 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13065 <num_memory_accesses, get_trigger_type>
13066 <create_watchpoint_request, hwdebug_point_cmp>
13067 <init_arch_lwp_info, get_arch_lwp_info>
13068 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13069 methods.
13070 <struct ptid_hash>: New inner struct.
13071 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13072 members.
13073 (saved_dabr_value, hwdebug_info, max_slots_number)
13074 (struct hw_break_tuple, struct thread_points, ppc_threads)
13075 (have_ptrace_hwdebug_interface)
13076 (hwdebug_find_thread_points_by_tid)
13077 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13078 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13079 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13080 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13081 use m_dreg_interface.
13082 (hwdebug_point_cmp): Change to...
13083 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13084 reference arguments instead of pointers.
13085 (ppc_linux_nat_target::ranged_break_num_registers): Use
13086 m_dreg_interface.
13087 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13088 m_dreg_interface. Call register_hw_breakpoint.
13089 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13090 m_dreg_interface. Call clear_hw_breakpoint.
13091 (get_trigger_type): Change to...
13092 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13093 comment.
13094 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13095 use m_dreg_interface. Call register_hw_breakpoint.
13096 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13097 use m_dreg_interface. Call clear_hw_breakpoint.
13098 (can_use_watchpoint_cond_accel): Change to...
13099 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13100 method. Update comment, use m_dreg_interface and
13101 m_process_info.
13102 (calculate_dvc): Change to...
13103 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13104 m_dreg_interface.
13105 (num_memory_accesses): Change to...
13106 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13107 (check_condition): Change to...
13108 (ppc_linux_nat_target::check_condition): ...this method.
13109 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13110 comment, use m_dreg_interface.
13111 (create_watchpoint_request): Change to...
13112 (ppc_linux_nat_target::create_watchpoint_request): ...this
13113 method. Use m_dreg_interface.
13114 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13115 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13116 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13117 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13118 (ppc_linux_nat_target::low_forget_process)
13119 (ppc_linux_nat_target::low_new_fork)
13120 (ppc_linux_nat_target::low_new_clone)
13121 (ppc_linux_nat_target::low_delete_thread)
13122 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13123 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13124 only call mark_thread_stale.
13125 (ppc_linux_thread_exit): Remove.
13126 (ppc_linux_nat_target::stopped_data_address): Change to...
13127 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13128 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13129 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13130 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13131 comment. Call low_stopped_data_address.
13132 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13133 m_dreg_interface.
13134 (ppc_linux_nat_target::masked_watch_num_registers): Use
13135 m_dreg_interface.
13136 (ppc_linux_nat_target::copy_thread_dreg_state)
13137 (ppc_linux_nat_target::mark_thread_stale)
13138 (ppc_linux_nat_target::mark_debug_registers_changed)
13139 (ppc_linux_nat_target::register_hw_breakpoint)
13140 (ppc_linux_nat_target::clear_hw_breakpoint)
13141 (ppc_linux_nat_target::register_wp)
13142 (ppc_linux_nat_target::clear_wp)
13143 (ppc_linux_nat_target::init_arch_lwp_info)
13144 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13145 (_initialize_ppc_linux_nat): Remove observer callback.
13146
13147 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13148
13149 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13150 (ppc_linux_nat_target::auxv_parse)
13151 (ppc_linux_nat_target::read_description)
13152 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13153 Move up.
13154
13155 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13156
13157 * linux-nat.h (low_new_clone): New method.
13158 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13159
13160 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13161
13162 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13163 (dbx_expand_psymtab): ... this.
13164 (start_psymtab): Update.
13165 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13166 (mdebug_expand_psymtab): ... this.
13167 (parse_partial_symbols): Update.
13168 (new_psymtab): Update.
13169 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13170 (xcoff_expand_psymtab): ... this.
13171 (xcoff_start_psymtab): Update.
13172
13173 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13174
13175 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13176 <expand_dependencies>: ... this.
13177 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13178 (partial_symtab::expand_dependencies): ... this.
13179 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13180 Update.
13181 (dwarf2_psymtab::expand_psymtab): Update.
13182 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13183 * mdebugread.c (psymtab_to_symtab_1): Update.
13184 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13185
13186 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13187
13188 * psympriv.h (discard_psymtab): Remove.
13189 * dbxread.c (dbx_end_psymtab): Update.
13190 * xcoffread.c (xcoff_end_psymtab): Update.
13191
13192 2020-03-28 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13195 comment.
13196
13197 2020-03-28 Tom Tromey <tom@tromey.com>
13198
13199 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13200
13201 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13202
13203 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13204
13205 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13206
13207 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13208
13209 2020-03-26 Tom Tromey <tom@tromey.com>
13210
13211 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13212 (mark_common_block_symbol_computed, read_tag_string_type)
13213 (attr_to_dynamic_prop, read_subrange_type): Update.
13214 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13215 to be methods on struct attribute.
13216 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13217 (read_call_site_scope, partial_die_info::read)
13218 (partial_die_info::read, lookup_die_type, follow_die_ref):
13219 Update.
13220 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13221 from dwarf2_get_ref_die_offset.
13222 (attribute::constant_value): New method, from
13223 dwarf2_get_attr_constant_value.
13224 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13225 Declare method.
13226 <constant_value>: New method.
13227
13228 2020-03-26 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13231 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13232 (dwarf_type_encoding_name): Move to stringify.c.
13233 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13234 * dwarf2/stringify.c: New file.
13235 * dwarf2/stringify.h: New file.
13236
13237 2020-03-26 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13240 Rewrite.
13241
13242 2020-03-26 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13245 methods.
13246 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13247 (lookup_ranges_base): Likewise.
13248 (read_cutu_die_from_dwo, read_full_die_1): Update.
13249
13250 2020-03-26 Tom Tromey <tom@tromey.com>
13251
13252 * dwarf2/read.c (read_import_statement, read_file_scope)
13253 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13254 (read_lexical_block_scope, read_call_site_scope)
13255 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13256 (handle_struct_member_die, process_structure_scope)
13257 (update_enumeration_type_from_children)
13258 (process_enumeration_scope, read_array_type, read_common_block)
13259 (read_namespace, read_module, read_subroutine_type): Update.
13260 (sibling_die): Remove.
13261
13262 2020-03-26 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13265 (build_type_psymtabs_reader, read_structure_type)
13266 (read_enumeration_type, read_full_die_1): Update.
13267 (dwarf2_attr_no_follow): Move to die.h.
13268 * dwarf2/die.h (struct die_info) <attr>: New method.
13269
13270 2020-03-26 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13273 <base_address>: Now an optional.
13274 (dwarf2_find_base_address, dwarf2_rnglists_process)
13275 (dwarf2_ranges_process, fill_in_loclist_baton)
13276 (dwarf2_symbol_mark_computed): Update.
13277
13278 2020-03-26 Tom Tromey <tom@tromey.com>
13279
13280 * dwarf2/read.c (struct die_info): Move to die.h.
13281 * dwarf2/die.h: New file.
13282
13283 2020-03-26 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13286 * dwarf2/read.c
13287 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13288 Move to line-header.c.
13289 (read_checked_initial_length_and_offset, read_formatted_entries):
13290 Likewise.
13291 (dwarf_decode_line_header): Split into two.
13292 * dwarf2/line-header.c
13293 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13294 Move from read.c.
13295 (read_checked_initial_length_and_offset, read_formatted_entries):
13296 Likewise.
13297 (dwarf_decode_line_header): New function, split from read.c.
13298
13299 2020-03-26 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13302 Declare method.
13303 * dwarf2/read.c (read_attribute_value): Update.
13304 (dwarf2_per_objfile::read_line_string): Rename from
13305 read_indirect_line_string.
13306 (read_formatted_entries): Update.
13307
13308 2020-03-26 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13311 variable.
13312
13313 2020-03-26 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13316 const.
13317 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13318 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13319 parameter const.
13320
13321 2020-03-26 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13324 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13325 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13326 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13327
13328 2020-03-26 Tom Tromey <tom@tromey.com>
13329
13330 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13331 file_names_size, file_full_name, file_file_name>: Use const.
13332 <file_name_at, file_names>: Add const overload.
13333 * dwarf2/line-header.c (line_header::file_file_name)
13334 (line_header::file_full_name): Update.
13335
13336 2020-03-26 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13339 (macro_start_file, consume_improper_spaces)
13340 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13341 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13342 (dwarf_decode_macros): Move to macro.c.
13343 * dwarf2/macro.c: New file.
13344 * dwarf2/macro.h: New file.
13345 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13346
13347 2020-03-26 Tom Tromey <tom@tromey.com>
13348
13349 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13350 method.
13351 * dwarf2/section.c: New method. From
13352 read_indirect_string_at_offset_from.
13353 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13354 (read_indirect_string_at_offset_from): Move to section.c.
13355 (read_indirect_string_at_offset): Rewrite.
13356 (read_indirect_line_string_at_offset): Remove.
13357 (read_indirect_string, read_indirect_line_string)
13358 (dwarf_decode_macro_bytes): Update.
13359
13360 2020-03-26 Tom Tromey <tom@tromey.com>
13361
13362 * dwarf2/section.h (struct dwarf2_section_info)
13363 <overload_complaint>: Declare.
13364 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13365 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13366 Rename from dwarf2_section_buffer_overflow_complaint.
13367 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13368 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13369
13370 2020-03-26 Tom Tromey <tom@tromey.com>
13371
13372 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13373 Declare.
13374 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13375 Move from read.c.
13376 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13377 to section.c.
13378
13379 2020-03-26 Tom Tromey <tom@tromey.com>
13380
13381 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13382
13383 2020-03-26 Tom Tromey <tom@tromey.com>
13384
13385 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13386 "builder".
13387 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13388 parameter.
13389 (dwarf_decode_macros): Update.
13390
13391 2020-03-26 Tom Tromey <tom@tromey.com>
13392
13393 * dwarf2/read.c (read_attribute_value): Update.
13394 (read_indirect_string_from_dwz): Move to dwz.c; change into
13395 method.
13396 (dwarf_decode_macro_bytes): Update.
13397 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13398 * dwarf2/dwz.c: New file.
13399 * Makefile.in (COMMON_SFILES): Add dwz.c.
13400
13401 2020-03-26 Tom Tromey <tom@tromey.com>
13402
13403 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13404 * dwarf2/read.c: Add include.
13405 * dwarf2/index-write.c: Add include.
13406 * dwarf2/index-cache.c: Add include.
13407 * dwarf2/dwz.h: New file.
13408
13409 2020-03-25 Tom Tromey <tom@tromey.com>
13410
13411 * compile/compile-object-load.c (get_out_value_type): Mention
13412 correct symbol name in error message.
13413
13414 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13415
13416 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13417
13418 2020-03-25 Tom de Vries <tdevries@suse.de>
13419
13420 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13421 * symmisc.c (dump_symtab_1): Print user and includes fields.
13422 (maintenance_info_symtabs): Same.
13423
13424 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13425
13426 PR gdb/25534
13427 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13428 (riscv_regcache_cooked_write): New function.
13429 (riscv_push_dummy_call): Use new function.
13430 (riscv_return_value): Likewise.
13431
13432 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13433
13434 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13435 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13436 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13437 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13438 * infrun.c (follow_fork): Likewise.
13439 (follow_fork_inferior): Likewise.
13440 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13441 * linux-nat.h (class linux_nat_target): Likewise.
13442 * remote.c (class remote_target) <follow_fork>: Likewise.
13443 (remote_target::follow_fork): Likewise.
13444 * target-delegates.c: Re-generate.
13445 * target.c (default_follow_fork): Likewise.
13446 (target_follow_fork): Likewise.
13447 * target.h (struct target_ops) <follow_fork>: Likewise.
13448 (target_follow_fork): Likewise.
13449
13450 2020-03-24 Tom de Vries <tdevries@suse.de>
13451
13452 * psymtab.c (maintenance_info_psymtabs): Print user field.
13453
13454 2020-03-20 Tom Tromey <tromey@adacore.com>
13455
13456 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13457 const.
13458 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13459 const.
13460
13461 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * ptrace.m4: Don't check for ptrace declaration.
13464 * config.in: Re-generate.
13465 * configure: Re-generate.
13466 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13467 not defined.
13468
13469 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13470
13471 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13472 `PTRACE_TYPE_RET'.
13473 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13474 * sparc-nat.c (gdb_ptrace): Likewise.
13475 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13476
13477 2020-03-20 Tom Tromey <tromey@adacore.com>
13478
13479 * c-exp.y (lex_one_token): Fix assert.
13480
13481 2020-03-20 Tom Tromey <tromey@adacore.com>
13482
13483 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13484 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13485 strncpy call.
13486
13487 2020-03-20 Tom Tromey <tromey@adacore.com>
13488
13489 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13490
13491 2020-03-20 Tom Tromey <tromey@adacore.com>
13492
13493 * ada-valprint.c (print_variant_part): Remove parameters; switch
13494 to value-based API.
13495 (print_field_values): Likewise.
13496 (ada_val_print_struct_union): Likewise.
13497 (ada_value_print_1): Update.
13498
13499 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13500
13501 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13502 nbsd_nat_target instead of inf_ptrace_target.
13503 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13504 nbsd_nat_target.
13505
13506 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13507
13508 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13509 it to the ptrace call.
13510 * (store_registers): Likewise.
13511
13512 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13513
13514 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13515 it to the ptrace call.
13516 * (store_registers): Likewise.
13517
13518 2020-03-19 Luis Machado <luis.machado@linaro.org>
13519
13520 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13521 valid, fetch vg value from ptrace.
13522
13523 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13524 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13525 * inf-ptrace.c: Likewise.
13526 * (gdb_ptrace): Add.
13527 * (inf_ptrace_target::resume): Update.
13528 * (inf_ptrace_target::xfer_partial): Likewise.
13529 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13530 * (inf_ptrace_peek_poke): Update.
13531
13532 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13533
13534 * x86-bsd-nat.c (gdb_ptrace): New.
13535 * (x86bsd_dr_set): Add new argument `ptid'.
13536 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13537 x86bsd_dr_set_addr): Update.
13538
13539 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13540
13541 * remote.c (remote_target::process_stop_reply): Handle events for
13542 all threads differently.
13543
13544 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13545
13546 * completer.c (completion_tracker::remove_completion): Define new
13547 function.
13548 * completer.h (completion_tracker::remove_completion): Declare new
13549 function.
13550 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13551 when adding a C++ function symbol.
13552
13553 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13554
13555 * completer.c (completion_tracker::completion_hash_entry): Define
13556 new class.
13557 (advance_to_filename_complete_word_point): Call
13558 recompute_lowest_common_denominator.
13559 (completion_tracker::completion_tracker): Call discard_completions
13560 to setup the hash table.
13561 (completion_tracker::discard_completions): Allow for being called
13562 from the constructor, pass new equal function, and element deleter
13563 when constructing the hash table. Initialise new class member
13564 variables.
13565 (completion_tracker::maybe_add_completion): Remove use of
13566 m_entries_vec, and store more information into m_entries_hash.
13567 (completion_tracker::recompute_lcd_visitor): New function, most
13568 content taken from...
13569 (completion_tracker::recompute_lowest_common_denominator):
13570 ...here, this now just visits each item in the hash calling the
13571 above visitor.
13572 (completion_tracker::build_completion_result): Remove use of
13573 m_entries_vec, call recompute_lowest_common_denominator.
13574 * completer.h (completion_tracker::have_completions): Remove use
13575 of m_entries_vec.
13576 (completion_tracker::completion_hash_entry): Declare new class.
13577 (completion_tracker::recompute_lowest_common_denominator): Change
13578 function signature.
13579 (completion_tracker::recompute_lcd_visitor): Declare new function.
13580 (completion_tracker::m_entries_vec): Delete.
13581 (completion_tracker::m_entries_hash): Initialize to NULL.
13582 (completion_tracker::m_lowest_common_denominator_valid): New
13583 member variable.
13584 (completion_tracker::m_lowest_common_denominator_max_length): New
13585 member variable.
13586
13587 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13588
13589 * regformats/regdef.h: Put reg in gdb namespace.
13590
13591 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13592
13593 * i386-bsd-nat.c (gdb_ptrace): New.
13594 * (i386bsd_fetch_inferior_registers,
13595 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13596 * (i386bsd_fetch_inferior_registers,
13597 i386bsd_store_inferior_registers) Use gdb_ptrace.
13598
13599 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13600
13601 * amd64-bsd-nat.c (gdb_ptrace): New.
13602 * (amd64bsd_fetch_inferior_registers,
13603 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13604 * (amd64bsd_fetch_inferior_registers,
13605 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13606
13607 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13608
13609 * user-regs.c (user_reg::read): Rename to...
13610 (user_reg::xread): ...this.
13611 * (append_user_reg): Rename argument `read' to `xread'.
13612 * (user_reg_add_builtin): Likewise.
13613 * (user_reg_add): Likewise.
13614 * (value_of_user_reg): Likewise.
13615
13616 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13617
13618 * sparc-nat.c (gdb_ptrace): New.
13619 * sparc-nat.c (sparc_fetch_inferior_registers)
13620 (sparc_store_inferior_registers) Remove obsolete comment.
13621 * sparc-nat.c (sparc_fetch_inferior_registers)
13622 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13623 * sparc-nat.c (sparc_fetch_inferior_registers)
13624 (sparc_store_inferior_registers) Use gdb_ptrace.
13625
13626 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13627
13628 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13629 it to the ptrace call.
13630 * sh-nbsd-nat.c (store_registers): Likewise.
13631
13632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13633
13634 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13635 nbsd_nat_target instead of inf_ptrace_target.
13636 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13637 nbsd_nat_target.
13638
13639 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13640
13641 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13642
13643 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13644
13645 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13646 <sys/sysctl.h>.
13647 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13648
13649 2020-03-17 Tom de Vries <tdevries@suse.de>
13650
13651 PR gdb/23710
13652 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13653 fields.
13654 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13655 fields.
13656 (process_imported_unit_die): Skip import of c++ CUs.
13657
13658 2020-03-16 Tom Tromey <tom@tromey.com>
13659
13660 * p-valprint.c (pascal_object_print_value): Initialize
13661 base_value.
13662
13663 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13664 Shahab Vahedi <shahab@synopsys.com>
13665
13666 * Makefile.in: Add arch/arc.o
13667 * configure.tgt: Likewise.
13668 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13669 (_initialize_arc_tdep): Don't initialize old target descriptions.
13670 (arc_read_description): New function to cache target descriptions.
13671 * arc-tdep.h (arc_read_description): Add proto type.
13672 * arch/arc.c: New file.
13673 * arch/arc.h: Likewise.
13674 * features/Makefile: Replace old target descriptions with new.
13675 * features/arc-arcompact.c: Remove.
13676 * features/arc-arcompact.xml: Likewise.
13677 * features/arc-v2.c: Likewise
13678 * features/arc-v2.xml: Likewise
13679 * features/arc/aux-arcompact.xml: New file.
13680 * features/arc/aux-v2.xml: Likewise.
13681 * features/arc/core-arcompact.xml: Likewise.
13682 * features/arc/core-v2.xml: Likewise.
13683 * features/arc/aux-arcompact.c: Generate.
13684 * features/arc/aux-v2.c: Likewise.
13685 * features/arc/core-arcompact.c: Likewise.
13686 * features/arc/core-v2.c: Likewise.
13687 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13688
13689 2020-03-16 Tom Tromey <tromey@adacore.com>
13690
13691 PR gdb/25663:
13692 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13693 putting value into bcache.
13694
13695 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13696
13697 PR gdb/21500
13698 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13699 to...
13700 (amd64_windows_init_abi_common): ... this. Don't set size of
13701 long type.
13702 (amd64_windows_init_abi): New function.
13703 (amd64_cygwin_init_abi): New function.
13704 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13705 the Cygwin OS ABI.
13706 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13707 comment.
13708
13709 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13710
13711 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13712 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13713 (pe_import_directory_entry): New struct type.
13714 (is_linked_with_cygwin_dll): New function.
13715 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13716 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13717 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13718
13719 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13720
13721 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13722 i386_cygwin_core_osabi_sniffer.
13723
13724 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13725
13726 * i386-cygwin-tdep.c: Rename to...
13727 * i386-windows-tdep.c: ... this.
13728 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13729 i386-windows-tdep.c.
13730 * configure.tgt: Likewise.
13731
13732 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13733
13734 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13735 * osabi.c (gdb_osabi_names): Add "Windows".
13736 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13737 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13738 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13739 i386_cygwin_osabi_sniffer.
13740 (_initialize_i386_cygwin_tdep): Register OS ABI
13741 GDB_OSABI_WINDOWS for i386.
13742 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13743 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13744 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13745 for x86-64.
13746 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13747 when the target matches '*-*-mingw*'.
13748
13749 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13750
13751 * defs.h (enum gdb_osabi): Move to...
13752 * osabi.h (enum gdb_osabi): ... here.
13753 * gdbarch.sh: Include osabi.h in gdbarch.h.
13754 * gdbarch.h: Re-generate.
13755
13756 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13757
13758 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13759 function.
13760 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13761
13762 2020-03-14 Tom Tromey <tom@tromey.com>
13763
13764 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13765 for C++.
13766 (c_type_print_modifier): Likewise. Add "language" parameter.
13767 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13768 (c_type_print_base_1): Update.
13769 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13770 constants.
13771 * type-stack.c (type_stack::insert): Handle tp_atomic and
13772 tp_restrict.
13773 (type_stack::follow_type_instance_flags): Likewise.
13774 (type_stack::follow_types): Likewise. Merge type-following code.
13775 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13776 (space_identifier, cv_with_space_id)
13777 (const_or_volatile_or_space_identifier_noopt)
13778 (const_or_volatile_or_space_identifier): Remove.
13779 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13780 rules.
13781 (ptr_operator, typebase): Update.
13782 (enum token_flag) <FLAG_C>: New constant.
13783 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13784 "_Atomic".
13785 (lex_one_token): Handle FLAG_C.
13786
13787 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13788
13789 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13790 it to the ptrace call.
13791 * m68k-bsd-nat.c (store_registers): Likewise.
13792
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13794
13795 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13796 gdb_byte *.
13797 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13798 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13799 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13800
13801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13802
13803 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13804 nbsd_nat_target instead of inf_ptrace_target.
13805 * m68k-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 * m68k-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 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13816 it to the ptrace call.
13817 * alpha-bsd-nat.c (store_registers): Likewise.
13818
13819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13820
13821 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13822 includes.
13823 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13824 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13825 fill_fpregset): Likewise.
13826
13827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13828
13829 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13830 nbsd_nat_target instead of inf_ptrace_target.
13831 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13832 nbsd_nat_target.
13833
13834 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13835
13836 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13837 register_t.
13838
13839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13840
13841 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13842 it to the ptrace call.
13843 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13844 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13845 * arm-nbsd-nat.c (store_register): Likewise.
13846 * arm-nbsd-nat.c (store_regs): Likewise.
13847 * arm-nbsd-nat.c (store_fp_register): Likewise.
13848 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13849
13850 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13851
13852 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13853 nbsd_nat_target instead of inf_ptrace_target.
13854 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13855 nbsd_nat_target.
13856
13857 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13858
13859 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13860 it to the ptrace call.
13861 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13862
13863 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13864
13865 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13866 it to the ptrace call.
13867 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13868
13869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13870
13871 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13872 gdb_byte *.
13873 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13874
13875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13876
13877 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13878 instead of inf_ptrace_target.
13879 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13880 nbsd_nat_target.
13881
13882 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13883
13884 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13885 register_t.
13886
13887 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13888
13889 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13890 register_t.
13891
13892 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13893
13894 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13895 register_t.
13896
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13898
13899 * value.h (val_print): Don't declare.
13900 * valprint.h (val_print_array_elements)
13901 (val_print_scalar_formatted, generic_val_print): Don't declare.
13902 * valprint.c (generic_val_print_array): Take a struct value.
13903 (generic_val_print_ptr, generic_val_print_memberptr)
13904 (generic_val_print_bool, generic_val_print_int)
13905 (generic_val_print_char, generic_val_print_complex)
13906 (generic_val_print): Remove.
13907 (generic_value_print): Update.
13908 (do_val_print): Remove unused parameters. Don't call
13909 la_val_print.
13910 (val_print): Remove.
13911 (common_val_print): Update. Don't call value_check_printable.
13912 (val_print_scalar_formatted, val_print_array_elements): Remove.
13913 * rust-lang.c (rust_val_print): Remove.
13914 (rust_language_defn): Update.
13915 * p-valprint.c (pascal_val_print): Remove.
13916 (pascal_value_print_inner): Update.
13917 (pascal_object_print_val_fields, pascal_object_print_val):
13918 Remove.
13919 (pascal_object_print_static_field): Update.
13920 * p-lang.h (pascal_val_print): Don't declare.
13921 * p-lang.c (pascal_language_defn): Update.
13922 * opencl-lang.c (opencl_language_defn): Update.
13923 * objc-lang.c (objc_language_defn): Update.
13924 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13925 * m2-lang.h (m2_val_print): Don't declare.
13926 * m2-lang.c (m2_language_defn): Update.
13927 * language.h (struct language_defn) <la_val_print>: Remove.
13928 * language.c (unk_lang_value_print_inner): Rename. Change
13929 argument types.
13930 (unknown_language_defn, auto_language_defn): Update.
13931 * go-valprint.c (go_val_print): Remove.
13932 * go-lang.h (go_val_print): Don't declare.
13933 * go-lang.c (go_language_defn): Update.
13934 * f-valprint.c (f_val_print): Remove.
13935 * f-lang.h (f_value_print): Don't declare.
13936 * f-lang.c (f_language_defn): Update.
13937 * d-valprint.c (d_val_print): Remove.
13938 * d-lang.h (d_value_print): Don't declare.
13939 * d-lang.c (d_language_defn): Update.
13940 * cp-valprint.c (cp_print_value_fields)
13941 (cp_print_value_fields_rtti, cp_print_value): Remove.
13942 (cp_print_static_field): Update.
13943 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13944 (c_val_print_struct, c_val_print_union, c_val_print_int)
13945 (c_val_print_memberptr, c_val_print): Remove.
13946 * c-lang.h (c_val_print_array, cp_print_value_fields)
13947 (cp_print_value_fields_rtti): Don't declare.
13948 * c-lang.c (c_language_defn, cplus_language_defn)
13949 (asm_language_defn, minimal_language_defn): Update.
13950 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13951 (ada_val_print_enum): Take a struct value.
13952 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13953 (ada_val_print): Remove.
13954 (ada_value_print_1): Update.
13955 (printable_val_type): Remove.
13956 * ada-lang.h (ada_val_print): Don't declare.
13957 * ada-lang.c (ada_language_defn): Update.
13958
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13960
13961 * valprint.c (do_val_print): Update.
13962 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13963 a struct value.
13964 (value_to_value_object_no_release): Declare.
13965 * python/py-value.c (value_to_value_object_no_release): New
13966 function.
13967 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13968 struct value.
13969 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13970 function.
13971 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13972 a struct value.
13973 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13974 Declare.
13975 (gdbscm_apply_val_pretty_printer): Take a struct value.
13976 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13977 value.
13978 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13979 value.
13980 * extension-priv.h (struct extension_language_ops)
13981 <apply_val_pretty_printer>: Take a struct value.
13982 * cp-valprint.c (cp_print_value): Create a struct value.
13983 (cp_print_value): Update.
13984
13985 2020-03-13 Tom Tromey <tom@tromey.com>
13986
13987 * ada-valprint.c (print_field_values): Call common_val_print.
13988
13989 2020-03-13 Tom Tromey <tom@tromey.com>
13990
13991 * ada-valprint.c (val_print_packed_array_elements): Remove
13992 bitoffset and val parameters. Call common_val_print.
13993 (ada_val_print_string): Remove offset, address, and original_value
13994 parameters.
13995 (ada_val_print_array): Update.
13996 (ada_value_print_array): New function.
13997 (ada_value_print_1): Call it.
13998
13999 2020-03-13 Tom Tromey <tom@tromey.com>
14000
14001 * ada-valprint.c (ada_value_print): Use common_val_print.
14002
14003 2020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14006
14007 2020-03-13 Tom Tromey <tom@tromey.com>
14008
14009 * ada-valprint.c (ada_value_print_num): New function.
14010 (ada_value_print_1): Use it.
14011
14012 2020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14015
14016 2020-03-13 Tom Tromey <tom@tromey.com>
14017
14018 * ada-valprint.c (ada_value_print_ptr): New function.
14019 (ada_value_print_1): Use it.
14020
14021 2020-03-13 Tom Tromey <tom@tromey.com>
14022
14023 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14024 call common_val_print.
14025 (ada_val_print_1): Update.
14026 (ada_value_print_1): New function.
14027 (ada_value_print_inner): Rewrite.
14028
14029 2020-03-13 Tom Tromey <tom@tromey.com>
14030
14031 * cp-valprint.c (cp_print_value_fields): Update.
14032 (cp_print_value): New function.
14033
14034 2020-03-13 Tom Tromey <tom@tromey.com>
14035
14036 * m2-valprint.c (m2_value_print_inner): Use
14037 cp_print_value_fields.
14038 * cp-valprint.c (cp_print_value_fields): New function.
14039 * c-valprint.c (c_value_print_struct): New function.
14040 (c_value_print_inner): Use c_value_print_struct.
14041 * c-lang.h (cp_print_value_fields): Declare.
14042
14043 2020-03-13 Tom Tromey <tom@tromey.com>
14044
14045 * c-valprint.c (c_value_print_array): New function.
14046 (c_value_print_inner): Use it.
14047
14048 2020-03-13 Tom Tromey <tom@tromey.com>
14049
14050 * c-valprint.c (c_value_print_memberptr): New function.
14051 (c_value_print_inner): Use it.
14052
14053 2020-03-13 Tom Tromey <tom@tromey.com>
14054
14055 * c-valprint.c (c_value_print_int): New function.
14056 (c_value_print_inner): Use it.
14057
14058 2020-03-13 Tom Tromey <tom@tromey.com>
14059
14060 * c-valprint.c (c_value_print_ptr): New function.
14061 (c_value_print_inner): Use it.
14062
14063 2020-03-13 Tom Tromey <tom@tromey.com>
14064
14065 * c-valprint.c (c_value_print_inner): Rewrite.
14066
14067 2020-03-13 Tom Tromey <tom@tromey.com>
14068
14069 * valprint.c (generic_value_print_complex): New function.
14070 (generic_value_print): Use it.
14071
14072 2020-03-13 Tom Tromey <tom@tromey.com>
14073
14074 * valprint.c (generic_val_print_float): Don't call
14075 val_print_scalar_formatted.
14076 (generic_val_print, generic_value_print): Update.
14077
14078 2020-03-13 Tom Tromey <tom@tromey.com>
14079
14080 * valprint.c (generic_value_print_char): New function
14081 (generic_value_print): Use it.
14082
14083 2020-03-13 Tom Tromey <tom@tromey.com>
14084
14085 * valprint.c (generic_value_print_int): New function.
14086 (generic_value_print): Use it.
14087
14088 2020-03-13 Tom Tromey <tom@tromey.com>
14089
14090 * valprint.c (generic_value_print_bool): New function.
14091 (generic_value_print): Use it.
14092
14093 2020-03-13 Tom Tromey <tom@tromey.com>
14094
14095 * valprint.c (generic_val_print_func): Simplify.
14096 (generic_val_print, generic_value_print): Update.
14097
14098 2020-03-13 Tom Tromey <tom@tromey.com>
14099
14100 * valprint.c (generic_val_print_flags): Remove.
14101 (generic_val_print, generic_value_print): Update.
14102 (val_print_type_code_flags): Add original_value parameter.
14103
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (generic_val_print): Update.
14107 (generic_value_print): Update.
14108 * valprint.c (generic_val_print_enum): Don't call
14109 val_print_scalar_formatted.
14110
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14112
14113 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14114 * valprint.c (generic_value_print_ptr): New function.
14115
14116 2020-03-13 Tom Tromey <tom@tromey.com>
14117
14118 * valprint.c (generic_value_print): Rewrite.
14119
14120 2020-03-13 Tom Tromey <tom@tromey.com>
14121
14122 * p-valprint.c (pascal_object_print_value_fields)
14123 (pascal_object_print_value): New functions.
14124
14125 2020-03-13 Tom Tromey <tom@tromey.com>
14126
14127 * p-valprint.c (pascal_value_print_inner): Rewrite.
14128
14129 2020-03-13 Tom Tromey <tom@tromey.com>
14130
14131 * f-valprint.c (f_value_print_innner): Rewrite.
14132
14133 2020-03-13 Tom Tromey <tom@tromey.com>
14134
14135 * m2-valprint.c (m2_print_unbounded_array): New overload.
14136 (m2_print_unbounded_array): Update.
14137 (m2_print_array_contents): Take a struct value.
14138 (m2_value_print_inner): Rewrite.
14139
14140 2020-03-13 Tom Tromey <tom@tromey.com>
14141
14142 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14143 (d_value_print_inner): New function.
14144 * d-lang.h (d_value_print_inner): Declare.
14145 * d-lang.c (d_language_defn): Use d_value_print_inner.
14146
14147 2020-03-13 Tom Tromey <tom@tromey.com>
14148
14149 * go-valprint.c (go_value_print_inner): New function.
14150 * go-lang.h (go_value_print_inner): Declare.
14151 * go-lang.c (go_language_defn): Use go_value_print_inner.
14152
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14154
14155 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14156 API.
14157 (rust_val_print): Rewrite.
14158 (rust_value_print_inner): New function, from rust_val_print.
14159 (rust_language_defn): Use rust_value_print_inner.
14160
14161 2020-03-13 Tom Tromey <tom@tromey.com>
14162
14163 * ada-valprint.c (ada_value_print_inner): New function.
14164 * ada-lang.h (ada_value_print_inner): Declare.
14165 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14166
14167 2020-03-13 Tom Tromey <tom@tromey.com>
14168
14169 * f-valprint.c (f_value_print_innner): New function.
14170 * f-lang.h (f_value_print_innner): Declare.
14171 * f-lang.c (f_language_defn): Use f_value_print_innner.
14172
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14174
14175 * p-valprint.c (pascal_value_print_inner): New function.
14176 * p-lang.h (pascal_value_print_inner): Declare.
14177 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14178
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14180
14181 * m2-valprint.c (m2_value_print_inner): New function.
14182 * m2-lang.h (m2_value_print_inner): Declare.
14183 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14184
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14186
14187 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14188 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14189 * c-valprint.c (c_value_print_inner): New function.
14190 * c-lang.h (c_value_print_inner): Declare.
14191 * c-lang.c (c_language_defn, cplus_language_defn)
14192 (asm_language_defn, minimal_language_defn): Use
14193 c_value_print_inner.
14194
14195 2020-03-13 Tom Tromey <tom@tromey.com>
14196
14197 * p-valprint.c (pascal_object_print_value_fields): Now static.
14198 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14199
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * c-valprint.c (c_val_print_array): Simplify.
14203
14204 2020-03-13 Tom Tromey <tom@tromey.com>
14205
14206 * valprint.c (value_print_array_elements): New function.
14207 * valprint.h (value_print_array_elements): Declare.
14208
14209 2020-03-13 Tom Tromey <tom@tromey.com>
14210
14211 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14212 * mips-tdep.c (mips_print_register): Use
14213 value_print_scalar_formatted.
14214
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * valprint.h (value_print_scalar_formatted): Declare.
14218 * valprint.c (value_print_scalar_formatted): New function.
14219
14220 2020-03-13 Tom Tromey <tom@tromey.com>
14221
14222 * valprint.h (generic_value_print): Declare.
14223 * valprint.c (generic_value_print): New function.
14224
14225 2020-03-13 Tom Tromey <tom@tromey.com>
14226
14227 * valprint.c (do_val_print): Call la_value_print_inner, if
14228 available.
14229 * rust-lang.c (rust_language_defn): Update.
14230 * p-lang.c (pascal_language_defn): Update.
14231 * opencl-lang.c (opencl_language_defn): Update.
14232 * objc-lang.c (objc_language_defn): Update.
14233 * m2-lang.c (m2_language_defn): Update.
14234 * language.h (struct language_defn) <la_value_print_inner>: New
14235 member.
14236 * language.c (unknown_language_defn, auto_language_defn): Update.
14237 * go-lang.c (go_language_defn): Update.
14238 * f-lang.c (f_language_defn): Update.
14239 * d-lang.c (d_language_defn): Update.
14240 * c-lang.c (c_language_defn, cplus_language_defn)
14241 (asm_language_defn, minimal_language_defn): Update.
14242 * ada-lang.c (ada_language_defn): Update.
14243
14244 2020-03-13 Tom Tromey <tom@tromey.com>
14245
14246 * c-valprint.c (c_value_print): Use common_val_print.
14247
14248 2020-03-13 Tom Tromey <tom@tromey.com>
14249
14250 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14251
14252 2020-03-13 Tom Tromey <tom@tromey.com>
14253
14254 * f-valprint.c (f77_print_array_1, f_val_print): Use
14255 common_val_print.
14256
14257 2020-03-13 Tom Tromey <tom@tromey.com>
14258
14259 * riscv-tdep.c (riscv_print_one_register_info): Use
14260 common_val_print.
14261
14262 2020-03-13 Tom Tromey <tom@tromey.com>
14263
14264 * mi/mi-main.c (output_register): Use common_val_print.
14265
14266 2020-03-13 Tom Tromey <tom@tromey.com>
14267
14268 * infcmd.c (default_print_one_register_info): Use
14269 common_val_print.
14270
14271 2020-03-13 Tom Tromey <tom@tromey.com>
14272
14273 * valprint.h (common_val_print_checked): Declare.
14274 * valprint.c (common_val_print_checked): New function.
14275 * stack.c (print_frame_arg): Use common_val_print_checked.
14276
14277 2020-03-13 Tom Tromey <tom@tromey.com>
14278
14279 * valprint.c (do_val_print): New function, from val_print.
14280 (val_print): Use do_val_print.
14281 (common_val_print): Use do_val_print.
14282
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * valprint.c (value_print): Use scoped_value_mark.
14286
14287 2020-03-13 Tom de Vries <tdevries@suse.de>
14288
14289 PR symtab/25646
14290 * psymtab.c (partial_symtab::partial_symtab): Don't set
14291 globals_offset and statics_offset. Push element onto
14292 current_global_psymbols and current_static_psymbols stacks.
14293 (concat): New function.
14294 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14295 element from current_global_psymbols and current_static_psymbols
14296 stacks. Concat popped elements to global_psymbols and
14297 static_symbols.
14298 (add_psymbol_to_list): Use current_global_psymbols and
14299 current_static_psymbols stacks.
14300 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14301 current_static_psymbols fields.
14302
14303 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14304
14305 * corelow.c (sniff_core_bfd): Remove.
14306 (class core_target) <m_core_vec>: Remove.
14307 (core_target::core_target): Update.
14308 (core_file_fns): Remove.
14309 (deprecated_add_core_fns): Remove.
14310 (default_core_sniffer): Remove.
14311 (sniff_core_bfd): Remove.
14312 (default_check_format): Remove.
14313 (gdb_check_format): Remove.
14314 (core_target_open): Update.
14315 (core_target::get_core_register_section): Update.
14316 (get_core_registers_cb): Update.
14317 (core_target::fetch_registers): Update.
14318 * gdbcore.h (struct core_fns): Remove.
14319 (deprecated_add_core_fns): Remove.
14320 (default_core_sniffer): Remove.
14321 (default_check_format): Remove.
14322
14323 2020-03-12 Tom Tromey <tom@tromey.com>
14324
14325 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14326 CORE_ADDR.
14327 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14328
14329 2020-03-12 Tom Tromey <tom@tromey.com>
14330
14331 * remote.c (remote_target::download_tracepoint)
14332 (remote_target::enable_tracepoint)
14333 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14334 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14335 sprintf_vma.
14336
14337 2020-03-12 Tom Tromey <tom@tromey.com>
14338
14339 * symfile-mem.c: Update CORE_ADDR size assert.
14340
14341 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14342
14343 * selftest.m4: Move to gdbsupport/.
14344 * acinclude.m4: Update path to selftest.m4.
14345
14346 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14347
14348 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14349 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14350 gdbarch-selfselftests.c and selftest-arch.c.
14351 (SUBDIR_UNITTESTS_OBS): Rename to...
14352 (SELFTESTS_OBS): ... this.
14353 (COMMON_SFILES): Remove disasm-selftests.c and
14354 gdbarch-selftests.c.
14355 * configure.ac: Don't add selftest-arch.{c,o} to
14356 CONFIG_{SRCS,OBS}.
14357 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14358 preprocessor conditions.
14359
14360 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14361
14362 * configure.ac: Don't source bfd/development.sh.
14363 * selftest.m4: Modify comment.
14364 * configure: Re-generate.
14365
14366 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14369 not "true" or "false".
14370 * configure: Re-generate.
14371
14372 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14373
14374 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14375 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14376 renamed to arm_nbsd_supply_gregset.
14377 (fetch_register): Update to call arm_nbsd_supply_gregset.
14378 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14379 (arm_netbsd_nat_target::fetch_registers): Update.
14380 (fetch_elfcore_registers): Removed.
14381 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14382 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14383 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14384 not require NetBSD system headers.
14385 (arm_nbsd_regset): New struct.
14386 (arm_nbsd_iterate_over_regset_sections): New function.
14387 (arm_netbsd_init_abi_common): Updated to call
14388 set_gdbarch_iterate_over_regset_sections.
14389 * arm-nbsd-tdep.h: New file.
14390
14391 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14392
14393 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14394 recursion.
14395
14396 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14397
14398 * configure: Re-generate.
14399
14400 2020-03-11 Tom Tromey <tromey@adacore.com>
14401
14402 * ada-typeprint.c (print_choices): Fix comment.
14403
14404 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14405
14406 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14407 previous item in the list, when the list has no items.
14408
14409 2020-03-11 Tom de Vries <tdevries@suse.de>
14410
14411 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14412 PROP_LOCLIST handling code.
14413
14414 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14415
14416 * buildsym-legacy.c (record_line): Pass extra parameter to
14417 record_line.
14418 * buildsym.c (buildsym_compunit::record_line): Take an extra
14419 parameter, reduce duplication in the line table, and record the
14420 is_stmt flag in the line table.
14421 * buildsym.h (buildsym_compunit::record_line): Add extra
14422 parameter.
14423 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14424 non-statement lines.
14425 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14426 this to the symtab builder.
14427 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14428 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14429 through to dwarf_record_line_1.
14430 * infrun.c (process_event_stop_test): When stepping, don't stop at
14431 a non-statement instruction, and only refresh the step info when
14432 we land in the middle of a line's range. Also add an extra
14433 comment.
14434 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14435 field.
14436 * record-btrace.c (btrace_find_line_range): Only record lines
14437 marked as is-statement.
14438 * stack.c (frame_show_address): Show the frame address if we are
14439 in a non-statement sal.
14440 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14441 (maintenance_print_one_line_table): Print a header for the is_stmt
14442 column, and include is_stmt information in the output.
14443 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14444 preference to non-statements.
14445 (find_pcs_for_symtab_line): Prefer is-statement entries.
14446 (find_line_common): Likewise.
14447 * symtab.h (struct linetable_entry): Add is_stmt field.
14448 (struct symtab_and_line): Likewise.
14449 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14450 arranging the line table.
14451
14452 2020-03-07 Tom de Vries <tdevries@suse.de>
14453
14454 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14455 DIE.
14456
14457 2020-03-07 Tom Tromey <tom@tromey.com>
14458
14459 * valops.c (value_literal_complex): Remove obsolete comment.
14460 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14461 comment.
14462
14463 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14464
14465 * infrun.h: Forward-declare thread_info.
14466 (set_step_info): Add thread_info parameter, add doc.
14467 * infrun.c (set_step_info): Add thread_info parameter, move doc
14468 to header.
14469 * infrun.c (process_event_stop_test): Pass thread to
14470 set_step_info call.
14471 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14472 set_step_info.
14473 (prepare_one_step): Add thread_info parameter, pass it to
14474 set_step_frame and prepare_one_step (recursive) call.
14475 (step_1): Pass thread to prepare_one_step call.
14476 (step_command_fsm::should_stop): Pass thread to
14477 prepare_one_step.
14478 (until_next_fsm): Pass thread to set_step_frame call.
14479 (finish_command): Pass thread to set_step_info call.
14480
14481 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14482
14483 * windows-tdep.c (windows_solib_create_inferior_hook):
14484 Check if inferior is running.
14485
14486 2020-03-06 Tom de Vries <tdevries@suse.de>
14487
14488 * NEWS: Fix "the the".
14489 * ctfread.c: Same.
14490
14491 2020-03-06 Tom de Vries <tdevries@suse.de>
14492
14493 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14494
14495 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14496
14497 * .dir-locals.el: Add a comment referencing the other copies of
14498 this file.
14499
14500 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14501
14502 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14503 psargs.
14504
14505 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14506
14507 * .gitattributes: New file.
14508
14509 2020-03-04 Tom Tromey <tom@tromey.com>
14510
14511 * symmisc.c (print_symbol_bcache_statistics)
14512 (print_objfile_statistics): Update.
14513 * symfile.c (allocate_symtab): Use intern.
14514 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14515 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14516 macro_cache>: Remove.
14517 <string_cache>: New member.
14518 (struct objfile) <intern>: New methods.
14519 * elfread.c (elf_symtab_read): Use intern.
14520 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14521 (dwarf2_compute_name, dwarf2_physname)
14522 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14523 names.
14524 (guess_partial_die_structure_name): Update.
14525 (partial_die_info::fixup): Intern name.
14526 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14527 name.
14528 (dwarf2_name): Intern name. Update.
14529 * buildsym.c (buildsym_compunit::get_macro_table): Use
14530 string_cache.
14531
14532 2020-03-04 Tom Tromey <tom@tromey.com>
14533
14534 * jit.c (bfd_open_from_target_memory): Make "target" const.
14535 * corefile.c (gnutarget): Now const.
14536 * gdbcore.h (gnutarget): Now const.
14537
14538 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14539
14540 * NEWS: Mention support for WOW64 processes.
14541 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14542 (amd64_windows_segment_register_p): Remove static.
14543 (_initialize_amd64_windows_nat): Update.
14544 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14545 * i386-windows-nat.c (context_offset): Update.
14546 (i386_mappings): Rename and remove static.
14547 (i386_windows_segment_register_p): Remove static.
14548 (_initialize_i386_windows_nat): Update.
14549 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14550 (STATUS_WX86_SINGLE_STEP): New macro.
14551 (EnumProcessModulesEx): New macro.
14552 (Wow64SuspendThread): New macro.
14553 (Wow64GetThreadContext): New macro.
14554 (Wow64SetThreadContext): New macro.
14555 (Wow64GetThreadSelectorEntry): New macro.
14556 (windows_set_context_register_offsets): Add static.
14557 (windows_set_segment_register_p): Likewise.
14558 (windows_add_thread): Adapt for WOW64 processes.
14559 (windows_fetch_one_register): Likewise.
14560 (windows_nat_target::fetch_registers): Likewise.
14561 (windows_store_one_register): Likewise.
14562 (display_selector): Likewise.
14563 (display_selectors): Likewise.
14564 (handle_exception): Likewise.
14565 (windows_continue): Likewise.
14566 (windows_nat_target::resume): Likewise.
14567 (windows_add_all_dlls): Likewise.
14568 (do_initial_windows_stuff): Likewise.
14569 (windows_nat_target::attach): Likewise.
14570 (windows_get_exec_module_filename): Likewise.
14571 (windows_nat_target::create_inferior): Likewise.
14572 (windows_xfer_siginfo): Likewise.
14573 (_initialize_loadable): Initialize Wow64SuspendThread,
14574 Wow64GetThreadContext, Wow64SetThreadContext,
14575 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14576 * windows-nat.h (windows_set_context_register_offsets):
14577 Remove declaration.
14578 (windows_set_segment_register_p): Likewise.
14579 (i386_windows_segment_register_p): Add declaration.
14580 (amd64_windows_segment_register_p): Likewise.
14581
14582 2020-03-04 Luis Machado <luis.machado@linaro.org>
14583
14584 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14585 in "info registers" for AArch64/ARM.
14586
14587 The change caused "info registers" to not print GPR's.
14588
14589 gdb/ChangeLog:
14590
14591 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14592
14593 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14594 when reg->group is empty and reggroup is not.
14595
14596 2020-03-03 Tom Tromey <tromey@adacore.com>
14597
14598 * dwarf2/frame.c (struct dwarf2_frame_cache)
14599 <checked_tailcall_bottom, entry_cfa_sp_offset,
14600 entry_cfa_sp_offset_p>: Remove members.
14601 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14602 (dwarf2_frame_prev_register): Don't call
14603 dwarf2_tailcall_sniffer_first.
14604 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14605 * frame-unwind.c (add_unwinder): New fuction.
14606 (frame_unwind_init): Use it. Add tailcall unwinder.
14607
14608 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14609 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14610
14611 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14612 value should be printed as true.
14613
14614 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14615
14616 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14617 (windows_init_abi): Set and use windows_so_ops.
14618
14619 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14620
14621 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14622 when verifying if dealing with a convenience variable.
14623
14624 2020-03-03 Luis Machado <luis.machado@linaro.org>
14625
14626 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14627
14628 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14629
14630 * infrun.c (gdbarch_supports_displaced_stepping): New.
14631 (use_displaced_stepping): Break up conditions in smaller pieces.
14632 Use gdbarch_supports_displaced_stepping.
14633 (displaced_step_prepare_throw): Use
14634 gdbarch_supports_displaced_stepping.
14635
14636 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14637
14638 * NEWS: Mention new behaviour of the history filename.
14639 * top.c (write_history_p): Add comment.
14640 (show_write_history_p): Add header comment, give a different
14641 message when history writing is on, but the history filename is
14642 empty.
14643 (history_filename): Add comment.
14644 (history_filename_empty): New function.
14645 (show_history_filename): Add header comment, give a different
14646 message when the filename is empty.
14647 (init_history): Compare history_filename against nullptr, and only
14648 read history if the filename is not empty.
14649 (set_history_filename): Add header comment, and only make
14650 non-empty filenames absolute.
14651 (init_main): Make the filename argument to 'set history filename'
14652 optional.
14653
14654 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14655
14656 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14657 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14658 (fetch_fp_register): Update.
14659 (fetch_fp_regs): Update.
14660 (store_fp_register): Update.
14661 (store_fp_regs): Update.
14662 (arm_netbsd_nat_target::read_description): New function.
14663 (fetch_elfcore_registers): Update.
14664
14665 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14666
14667 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14668 general_thread if the stop reply is missing a thread-id.
14669 (remote_target::process_stop_reply): Use the first non-exited
14670 thread if the target didn't pass a thread-id.
14671 * infrun.c (do_target_wait): Move call to
14672 switch_to_inferior_no_thread to ....
14673 (do_target_wait_1): ... here.
14674
14675 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14676
14677 * debuginfod-support.c: Include defs.h first.
14678
14679 2020-02-28 Tom de Vries <tdevries@suse.de>
14680
14681 * symfile.c (set_initial_language): Use default language for lookup.
14682
14683 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14684
14685 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14686 reader variable, pass `this` to read_cutu_die_from_dwo.
14687
14688 2020-02-27 Aaron Merey <amerey@redhat.com>
14689
14690 * source.c (open_source_file): Check for nullptr when computing
14691 srcpath.
14692
14693 2020-02-27 Tom Tromey <tromey@adacore.com>
14694
14695 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14696 member.
14697 (dwarf2_add_field): Don't update nfields.
14698 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14699
14700 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14701
14702 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14703 abs.
14704
14705 2020-02-26 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14708 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14709 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14710 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14711 per_cu_data.
14712
14713 2020-02-26 Tom Tromey <tom@tromey.com>
14714
14715 * dwarf2/index-write.c (psym_index_map): Change type.
14716 (add_address_entry_worker, write_one_signatured_type)
14717 (recursively_count_psymbols, recursively_write_psymbols)
14718 (class debug_names, psyms_seen_size, write_gdbindex)
14719 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14720
14721 2020-02-26 Aaron Merey <amerey@redhat.com>
14722
14723 * Makefile.in: Handle optional debuginfod support.
14724 * NEWS: Update.
14725 * README: Add --with-debuginfod summary.
14726 * config.in: Regenerate.
14727 * configure: Regenerate.
14728 * configure.ac: Handle optional debuginfod support.
14729 * debuginfod-support.c: debuginfod helper functions.
14730 * debuginfod-support.h: Ditto.
14731 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14732 summary.
14733 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14734 when a dwz file cannot be found.
14735 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14736 debuginfo file cannot be found.
14737 * source.c (open_source_file): Query debuginfod servers when a
14738 source file cannot be found.
14739 * top.c (print_gdb_configuration): Include
14740 --{with,without}-debuginfod in the output.
14741
14742 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14743
14744 * thread.c (thr_try_catch_cmd): Print thread name.
14745
14746 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14747
14748 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14749 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14750 dwarf2_fetch_die_type_sect_off): Move to...
14751 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14752 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14753 dwarf2_fetch_die_type_sect_off): ... here.
14754 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14756 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14757
14758 2020-02-26 Tom de Vries <tdevries@suse.de>
14759
14760 PR gdb/25603
14761 * symfile.c (set_initial_language): Exit-early if
14762 language_mode == language_mode_manual.
14763
14764 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14765
14766 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14767 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14768 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14769
14770 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14771
14772 * gdbtypes.c (create_array_type_with_stride): Handle negative
14773 array strides.
14774 * valarith.c (value_subscripted_rvalue): Likewise.
14775
14776 2020-02-25 Luis Machado <luis.machado@linaro.org>
14777
14778 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14779
14780 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14781
14782 * loc.h (dwarf2_get_die_type): Move to...
14783 * read.h (dwarf2_get_die_type): ... here.
14784 * read.c (dwarf2_get_die_type): Move doc to header.
14785
14786 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14787
14788 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14789 'gnulib/Makefile.in' to the list.
14790
14791 2020-02-24 Tom Tromey <tom@tromey.com>
14792
14793 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14794 Remove.
14795 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14796 XOBNEWVEC.
14797
14798 2020-02-24 Tom Tromey <tom@tromey.com>
14799
14800 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14801 New method.
14802 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14803 (dw2_do_instantiate_symtab, dw2_get_file_names)
14804 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14805
14806 2020-02-24 Tom Tromey <tom@tromey.com>
14807
14808 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14809 make_scoped_restore.
14810 (dwarf2_psymtab::read_symtab): Don't clear
14811 reading_partial_symbols.
14812
14813 2020-02-24 Tom de Vries <tdevries@suse.de>
14814
14815 PR gdb/25592
14816 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14817
14818 2020-02-24 Tom de Vries <tdevries@suse.de>
14819
14820 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14821 commands layout next/prev/regs.
14822
14823 2020-02-22 Tom Tromey <tom@tromey.com>
14824
14825 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14826 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14827
14828 2020-02-22 Tom Tromey <tom@tromey.com>
14829
14830 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14831
14832 2020-02-22 Tom Tromey <tom@tromey.com>
14833
14834 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14835 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14836 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14837 * tui/tui.c (_initialize_tui): Add usage text.
14838
14839 2020-02-22 Tom Tromey <tom@tromey.com>
14840
14841 * tui/tui-win.c (tui_set_focus_command)
14842 (tui_set_win_height_command): Use error_no_arg.
14843 (_initialize_tui_win): Update help text.
14844 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14845
14846 2020-02-22 Tom Tromey <tom@tromey.com>
14847
14848 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14849 * tui/tui-disasm.h (struct tui_disasm_window)
14850 <display_start_addr>: Declare.
14851 * tui/tui-source.h (struct tui_source_window)
14852 <display_start_addr>: Declare.
14853 * tui/tui-winsource.h (struct tui_source_window_base)
14854 <show_source_line, display_start_addr>: New methods.
14855 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14856 Rename and move to protected section.
14857 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14858 (tui_source_window_base::do_erase_source_content): Update.
14859 (tui_source_window_base::show_source_line): Now a method.
14860 (tui_source_window_base::show_source_content)
14861 (tui_source_window_base::tui_source_window_base)
14862 (tui_source_window_base::rerender)
14863 (tui_source_window_base::refill)
14864 (tui_source_window_base::do_scroll_horizontal)
14865 (tui_source_window_base::set_is_exec_point_at)
14866 (tui_source_window_base::update_breakpoint_info)
14867 (tui_source_window_base::update_exec_info): Update.
14868 * tui/tui-source.c (tui_source_window::set_contents)
14869 (tui_source_window::showing_source_p)
14870 (tui_source_window::do_scroll_vertical)
14871 (tui_source_window::location_matches_p)
14872 (tui_source_window::line_is_displayed): Update.
14873 (tui_source_window::display_start_addr): New method.
14874 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14875 (tui_disasm_window::do_scroll_vertical)
14876 (tui_disasm_window::location_matches_p): Update.
14877 (tui_disasm_window::display_start_addr): New method.
14878
14879 2020-02-22 Tom Tromey <tom@tromey.com>
14880
14881 * NEWS: Add entry for gdb.register_window_type.
14882 * tui/tui-layout.h (window_factory): New typedef.
14883 (tui_register_window): Declare.
14884 * tui/tui-layout.c (saved_tui_windows): New global.
14885 (tui_apply_current_layout): Use it.
14886 (tui_register_window): New function.
14887 * python/python.c (do_start_initialization): Call
14888 gdbpy_initialize_tui.
14889 (python_GdbMethods): Add "register_window_type" function.
14890 * python/python-internal.h (gdbpy_register_tui_window)
14891 (gdbpy_initialize_tui): Declare.
14892 * python/py-tui.c: New file.
14893 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14894
14895 2020-02-22 Tom Tromey <tom@tromey.com>
14896
14897 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14898
14899 2020-02-22 Tom Tromey <tom@tromey.com>
14900
14901 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14902 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14903 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14904 (tui_set_win_focus_to): Move from tui-win.c.
14905
14906 2020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14909 functions.
14910 (known_window_types): New global.
14911 (tui_get_window_by_name): Reimplement.
14912 (initialize_known_windows): New function.
14913 (validate_window_name): Rewrite.
14914 (_initialize_tui_layout): Call initialize_known_windows.
14915
14916 2020-02-22 Tom Tromey <tom@tromey.com>
14917
14918 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14919 Remove constants.
14920 * tui/tui-winsource.h (struct tui_source_window_base)
14921 <tui_source_window_base>: Remove parameter.
14922 * tui/tui-winsource.c
14923 (tui_source_window_base::tui_source_window_base): Remove
14924 parameter.
14925 (tui_source_window_base::refill): Update.
14926 * tui/tui-stack.h (struct tui_locator_window)
14927 <tui_locator_window>: Update.
14928 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14929 Default the constructor.
14930 * tui/tui-regs.h (struct tui_data_item_window)
14931 <tui_data_item_window>: Default the constructor.
14932 (struct tui_data_window) <tui_data_window>: Likewise.
14933 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14934 Default the constructor.
14935 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14936 Default the constructor.
14937 <type>: Remove.
14938 (struct tui_win_info) <tui_win_info>: Default the constructor.
14939 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14940 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14941 Default the constructor.
14942
14943 2020-02-22 Tom Tromey <tom@tromey.com>
14944
14945 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14946 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14947 * tui/tui-win.c (tui_resize_all): Don't call
14948 tui_delete_invisible_windows.
14949 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14950 done.
14951 (tui_set_layout): Update.
14952 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14953 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14954 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14955
14956 2020-02-22 Tom Tromey <tom@tromey.com>
14957
14958 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14959 correctly.
14960
14961 2020-02-22 Tom Tromey <tom@tromey.com>
14962
14963 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14964
14965 2020-02-22 Tom Tromey <tom@tromey.com>
14966
14967 * tui/tui-winsource.h (struct tui_source_window_iterator)
14968 <inner_iterator>: New etytypedef.
14969 <tui_source_window_iterator>: Take "end" parameter.
14970 <tui_source_window_iterator>: Take iterator.
14971 <operator*, advance>: Update.
14972 <m_iter>: Change type.
14973 <m_end>: New field.
14974 (struct tui_source_windows) <begin, end>: Update.
14975 * tui/tui-layout.c (tui_windows): New global.
14976 (tui_apply_current_layout): Clear tui_windows.
14977 (tui_layout_window::apply): Update tui_windows.
14978 * tui/tui-data.h (tui_windows): Declare.
14979 (all_tui_windows): Now inline function.
14980 (class tui_window_iterator, struct all_tui_windows): Remove.
14981
14982 2020-02-22 Tom Tromey <tom@tromey.com>
14983
14984 PR tui/17850:
14985 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14986 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14987 "height" argument.
14988 (class tui_layout_window) <get_sizes>: Likewise.
14989 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14990 argument.
14991 <get_sizes>: Add "height" argument.
14992 <m_vertical>: New field.
14993 * tui/tui-layout.c (tui_layout_split::clone): Update.
14994 (tui_layout_split::get_sizes): Add "height" argument.
14995 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14996 (tui_new_layout_command): Parse "-horizontal".
14997 (_initialize_tui_layout): Update help string.
14998 (tui_layout_split::specification): Add "-horizontal" when needed.
14999 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15000 argument.
15001 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15002 New methods.
15003
15004 2020-02-22 Tom Tromey <tom@tromey.com>
15005
15006 * tui/tui-layout.h (enum tui_adjust_result): New.
15007 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15008 (class tui_layout_window) <adjust_size>: Return
15009 tui_adjust_result. Rewrite.
15010 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15011 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15012
15013 2020-02-22 Tom Tromey <tom@tromey.com>
15014
15015 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15016 parameter and return types.
15017 (class tui_layout_base) <specification>: Add "depth".
15018 (class tui_layout_window) <specification>: Add "depth".
15019 (class tui_layout_split) <specification>: Add "depth".
15020 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15021 and return types.
15022 (tui_new_layout_command): Parse sub-layouts.
15023 (_initialize_tui_layout): Update help string.
15024 (tui_layout_window::specification): Add "depth".
15025 (add_layout_command): Update.
15026
15027 2020-02-22 Tom Tromey <tom@tromey.com>
15028
15029 * NEWS: Add "tui new-layout" item.
15030 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15031 Add new-layout command to help text.
15032 (validate_window_name): New function.
15033 (tui_new_layout_command): New function.
15034 (_initialize_tui_layout): Register "new-layout".
15035 (tui_layout_window::specification): New method.
15036 (tui_layout_window::specification): New method.
15037 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15038 method.
15039 (class tui_layout_window) <specification>: New method.
15040 (class tui_layout_split) <specification>: New method.
15041
15042 2020-02-22 Tom Tromey <tom@tromey.com>
15043
15044 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15045 * tui/tui-win.c (window_name_completer): Update comment.
15046 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15047 Declare method.
15048 (class tui_layout_window) <replace_window>: Likewise.
15049 (class tui_layout_split) <replace_window>: Likewise.
15050 (tui_set_layout): Don't declare.
15051 (tui_set_initial_layout): Declare function.
15052 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15053 (asm_regs_layout): New globals.
15054 (tui_current_layout, show_layout): Remove.
15055 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15056 (find_layout, tui_apply_layout): New function.
15057 (layout_completer): Remove.
15058 (tui_next_layout): Reimplement.
15059 (tui_next_layout_command): New function.
15060 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15061 (tui_regs_layout): Reimplement.
15062 (tui_regs_layout_command): New function.
15063 (extract_display_start_addr): Rewrite.
15064 (next_layout, prev_layout): Remove.
15065 (tui_layout_window::replace_window): New method.
15066 (tui_layout_split::replace_window): New method.
15067 (destroy_layout): New function.
15068 (layout_list): New global.
15069 (add_layout_command): New function.
15070 (initialize_layouts): Update.
15071 (tui_layout_command): New function.
15072 (_initialize_tui_layout): Install "layout" commands.
15073 * tui/tui-data.h (enum tui_layout_type): Remove.
15074 (tui_current_layout): Don't declare.
15075
15076 2020-02-22 Tom Tromey <tom@tromey.com>
15077
15078 * tui/tui-regs.c (tui_reg_layout): Remove.
15079 (tui_reg_command): Use tui_regs_layout.
15080 * tui/tui-layout.h (tui_reg_command): Declare.
15081 * tui/tui-layout.c (tui_reg_command): New function.
15082
15083 2020-02-22 Tom Tromey <tom@tromey.com>
15084
15085 * tui/tui.c (tui_rl_delete_other_windows): Call
15086 tui_remove_some_windows.
15087 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15088 Declare method.
15089 (class tui_layout_window) <remove_windows>: New method.
15090 (class tui_layout_split) <remove_windows>: Declare.
15091 (tui_remove_some_windows): Declare.
15092 * tui/tui-layout.c (tui_remove_some_windows): New function.
15093 (tui_layout_split::remove_windows): New method.
15094
15095 2020-02-22 Tom Tromey <tom@tromey.com>
15096
15097 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15098 * tui/tui-layout.h (tui_next_layout): Declare.
15099 * tui/tui-layout.c (tui_next_layout): New function.
15100
15101 2020-02-22 Tom Tromey <tom@tromey.com>
15102
15103 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15104 correct coordinates.
15105
15106 2020-02-22 Tom Tromey <tom@tromey.com>
15107
15108 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15109 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15110 DATA_WIN case.
15111
15112 2020-02-22 Tom Tromey <tom@tromey.com>
15113
15114 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15115 TUI_DISASM_WIN, not tui_win_list.
15116
15117 2020-02-22 Tom Tromey <tom@tromey.com>
15118
15119 * valprint.c (generic_val_print_enum_1)
15120 (val_print_type_code_flags): Style member names.
15121 * rust-lang.c (val_print_struct, rust_print_enum)
15122 (rust_print_struct_def, rust_internal_print_type): Style member
15123 names.
15124 * p-valprint.c (pascal_object_print_value_fields): Style member
15125 names. Only call fprintf_symbol_filtered for static members.
15126 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15127 * f-valprint.c (f_val_print): Style member names.
15128 * f-typeprint.c (f_type_print_base): Style member names.
15129 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15130 call fprintf_symbol_filtered for static members.
15131 (cp_print_class_member): Style member names.
15132 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15133 member names.
15134 * ada-valprint.c (ada_print_scalar): Style enum names.
15135 (ada_val_print_enum): Likewise.
15136 * ada-typeprint.c (print_enum_type): Style enum names.
15137
15138 2020-02-21 Tom Tromey <tom@tromey.com>
15139
15140 * psympriv.h (struct partial_symtab): Update comment.
15141
15142 2020-02-21 Tom Tromey <tromey@adacore.com>
15143
15144 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15145 type is CORE_ADDR.
15146
15147 2020-02-21 Tom de Vries <tdevries@suse.de>
15148
15149 PR gdb/25534
15150 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15151 if dependencies[i]->user != NULL.
15152
15153 2020-02-21 Ali Tamur <tamur@google.com>
15154
15155 * dwarf2/read.c (dwarf2_name): Add null check.
15156
15157 2020-02-20 Tom Tromey <tom@tromey.com>
15158
15159 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15160 ">=", in binary search.
15161 (dwarf2_find_containing_comp_unit): New overload.
15162 (run_test): New self-test.
15163 (_initialize_dwarf2_read): Register new test.
15164
15165 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15166
15167 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15168 * riscv-tdep.h: Likewise.
15169 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15170 rv32-only CSR.
15171 * features/riscv/64bit-csr.xml: Regenerated.
15172
15173 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15174 Tom Tromey <tom@tromey.com>
15175
15176 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15177 of 'fputc_unfiltered'.
15178 (putchar_unfiltered): Call 'fputc_unfiltered'.
15179 (fputc_unfiltered): Call 'fputs_unfiltered'.
15180
15181 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15182
15183 * config.in: Regenerate.
15184 * configure: Regenerate.
15185 * configure.ac: Add --with-python-libdir option.
15186 * main.c: Use WITH_PYTHON_LIBDIR.
15187
15188 2020-02-19 Tom Tromey <tom@tromey.com>
15189
15190 * symtab.c (general_symbol_info::compute_and_set_names): Use
15191 obstack_strndup. Simplify call to symbol_set_demangled_name.
15192
15193 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15194
15195 * dwarf2/read.c (allocate_signatured_type_table,
15196 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15197 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15198 Remove objfile parameter, update all callers.
15199
15200 2020-02-19 Doug Evans <dje@google.com>
15201
15202 PR rust/25535
15203 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15204 rust_enum_variant calculation.
15205
15206 2020-02-19 Tom Tromey <tromey@adacore.com>
15207
15208 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15209
15210 2020-02-19 Tom Tromey <tromey@adacore.com>
15211
15212 * ada-lang.c (cache_symbol): Use obstack_strdup.
15213
15214 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15215
15216 * configure: Regenerate.
15217
15218 2020-02-19 Tom Tromey <tromey@adacore.com>
15219
15220 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15221 NULL check.
15222
15223 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15224
15225 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15226
15227 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15228
15229 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15230 if GDBSERVER is not defined.
15231 (riscv_tdesc_cache): Likewise, also store const target_desc.
15232 (STATIC_IN_GDB): Define.
15233 (riscv_create_target_description): Update declaration with
15234 STATIC_IN_GDB.
15235 (riscv_lookup_target_description): New function, only define if
15236 GDBSERVER is not defined.
15237 * arch/riscv.h (riscv_create_target_description): Declare only
15238 when GDBSERVER is defined.
15239 (riscv_lookup_target_description): New declaration when GDBSERVER
15240 is not defined.
15241 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15242 (riscv_linux_read_features): ...this, and return
15243 riscv_gdbarch_features instead of target_desc.
15244 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15245 (riscv_linux_read_description): Rename to...
15246 (riscv_linux_read_features): ...this.
15247 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15248 Update to use riscv_gdbarch_features and
15249 riscv_lookup_target_description.
15250 * riscv-tdep.c (riscv_find_default_target_description): Use
15251 riscv_lookup_target_description instead of
15252 riscv_create_target_description.
15253
15254 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15255
15256 * valprint.c (generic_val_print_enum_1): When printing a flag
15257 enum with value 0 and there is no enumerator with value 0, print
15258 just "0" instead of "(unknown: 0x0)".
15259
15260 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15261
15262 * valprint.c (generic_val_print_enum_1): Print unknown part of
15263 flag enum in hex.
15264
15265 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15266
15267 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15268 flag enums to contain duplicate enumerators.
15269 * valprint.c (generic_val_print_enum_1): Update comment.
15270
15271 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15272
15273 * dwarf2/read.c: Include "count-one-bits.h".
15274 (update_enumeration_type_from_children): If an enumerator has
15275 multiple bits set, don't treat the enumeration as a "flag enum".
15276 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15277 of flag enums have 0 or 1 bit set.
15278
15279 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15280
15281 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15282 conversion.
15283 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15284 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15285 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15286 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15287 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15288
15289 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15290
15291 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15292
15293 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15294
15295 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15296 displaced_step_closure_up.
15297 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15298 (struct displaced_step_closure_up):
15299 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15300 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15301 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15302 Likewise.
15303 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15304 * gdbarch.c, gdbarch.h: Re-generate.
15305 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15306 displaced_step_closure_up.
15307 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15308 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15309 * infrun.h (displaced_step_closure_up): New type alias.
15310 (struct displaced_step_inferior_state) <step_closure>: Change
15311 type to displaced_step_closure_up.
15312 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15313 displaced_step_closure_up.
15314 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15315
15316 2020-02-14 Tom Tromey <tom@tromey.com>
15317
15318 * minidebug.c (gnu_debug_key): New global.
15319 (find_separate_debug_file_in_section): Use it.
15320
15321 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15322
15323 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15324 std::unique_ptr.
15325 * gdbarch.c: Re-generate.
15326 * gdbarch.h: Re-generate.
15327 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15328 change.
15329 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15330 type to std::unique_ptr.
15331 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15332 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15333 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15334 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15335 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15336 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15337 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15338 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15339 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15340
15341 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15342
15343 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15344 std::unique_ptr.
15345 (displaced_step_clear): Rename to...
15346 (displaced_step_reset): ... this. Just call displaced->reset ().
15347 (displaced_step_clear_cleanup): Rename to...
15348 (displaced_step_reset_cleanup): ... this.
15349 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15350 (displaced_step_fixup): Likewise.
15351 (resume_1): Likewise.
15352 (handle_inferior_event): Restore child's memory before calling
15353 displaced_step_fixup on the parent.
15354 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15355 to std::unique_ptr.
15356 <step_closure>: Change type to std::unique_ptr.
15357
15358 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15359
15360 * arm-tdep.c: Include count-one-bits.h.
15361 (cleanup_block_store_pc): Use count_one_bits.
15362 (cleanup_block_load_pc): Use count_one_bits.
15363 (arm_copy_block_xfer): Use count_one_bits.
15364 (thumb2_copy_block_xfer): Use count_one_bits.
15365 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15366 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15367 (thumb_get_next_pcs_raw): Use count_one_bits.
15368 (arm_get_next_pcs_raw): Use count_one_bits_l.
15369 * arch/arm.c (bitcount): Remove.
15370 * arch/arm.h (bitcount): Remove.
15371
15372 2020-02-14 Tom Tromey <tromey@adacore.com>
15373
15374 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15375 Update.
15376 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15377 * dwarf2/loc.c (call_site_find_chain_1): Return
15378 unique_xmalloc_ptr.
15379 (call_site_find_chain): Likewise.
15380
15381 2020-02-14 Richard Biener <rguenther@suse.de>
15382
15383 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15384 on expression with division operators.
15385
15386 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15387
15388 * MAINTAINERS (Write After Approval): Adding myself.
15389
15390 2020-02-12 Tom Tromey <tom@tromey.com>
15391
15392 * event-loop.c (event_data, gdb_event, event_handler_func):
15393 Remove.
15394
15395 2020-02-12 Tom Tromey <tom@tromey.com>
15396
15397 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15398 (dwarf2_frame_objfile_data): Add comment.
15399 (find_comp_unit, set_comp_unit): New functions.
15400 (dwarf2_frame_find_fde): Use find_comp_unit.
15401 (dwarf2_build_frame_info): Use set_comp_unit.
15402
15403 2020-02-12 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15406 (comp_unit): Don't initialize objfile.
15407 (execute_cfa_program): Add text_offset parameter.
15408 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15409 (dwarf2_frame_cache): Update.
15410 (dwarf2_build_frame_info): Don't set "objfile" member.
15411
15412 2020-02-12 Tom Tromey <tom@tromey.com>
15413
15414 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15415 (decode_frame_entry): Likewise.
15416 (dwarf2_build_frame_info): Update.
15417
15418 2020-02-12 Tom Tromey <tom@tromey.com>
15419
15420 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15421 (decode_frame_entry_1): Use the comp_unit obstack.
15422
15423 2020-02-12 Tom Tromey <tom@tromey.com>
15424
15425 * dwarf2/frame.c (struct comp_unit): Add initializers and
15426 constructor.
15427 (dwarf2_frame_objfile_data): Store a comp_unit.
15428 (dwarf2_frame_find_fde): Update.
15429 (dwarf2_build_frame_info): Use "new".
15430
15431 2020-02-12 Tom Tromey <tom@tromey.com>
15432
15433 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15434 (dwarf2_fde_table): Typedef for std::vector.
15435 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15436 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15437 (decode_frame_entry): Update.
15438 (dwarf2_build_frame_info): Use "new".
15439
15440 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15441
15442 * arm-tdep.c (arm_gdbarch_init): Update.
15443 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15444 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15445 have_neon, is_m>: Change to bool.
15446
15447 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15448
15449 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15450
15451 2020-02-12 Tom Tromey <tom@tromey.com>
15452
15453 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15454
15455 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15456
15457 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15458 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15459
15460 2020-02-11 Tom Tromey <tom@tromey.com>
15461
15462 * psymtab.h: Update comment.
15463
15464 2020-02-11 Tom Tromey <tom@tromey.com>
15465
15466 * gdb_obstack.h (struct auto_obstack): Use
15467 DISABLE_COPY_AND_ASSIGN.
15468
15469 2020-02-11 Tom Tromey <tom@tromey.com>
15470
15471 * dwarf2/frame.h (struct objfile): Don't forward declare.
15472
15473 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15474
15475 * cris-tdep.c (cris_supply_gregset): Change signature to match
15476 what struct regset expects.
15477 (cris_regset): New struct.
15478 (fetch_core_registers): Remove.
15479 (cris_iterate_over_regset_sections): New function.
15480 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15481 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15482
15483 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15484
15485 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15486 registers.
15487
15488 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15489
15490 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15491
15492 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15493
15494 * configure: Re-generate.
15495
15496 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15497
15498 * configure: Re-generate.
15499
15500 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15501
15502 * acinclude: Update warning.m4 path.
15503 * warning.m4: Move to gdbsupport.
15504
15505 2020-02-11 Tom Tromey <tromey@adacore.com>
15506
15507 * remote.c (remote_console_output): Update.
15508 * printcmd.c (printf_command): Update.
15509 * event-loop.c (gdb_wait_for_event): Update.
15510 * linux-nat.c (sigchld_handler): Update.
15511 * remote-sim.c (gdb_os_write_stdout): Update.
15512 (gdb_os_flush_stdout): Update.
15513 (gdb_os_flush_stderr): Update.
15514 (gdb_os_write_stderr): Update.
15515 * exceptions.c (print_exception): Update.
15516 * remote-fileio.c (remote_fileio_func_read): Update.
15517 (remote_fileio_func_write): Update.
15518 * tui/tui.c (tui_enable): Update.
15519 * tui/tui-interp.c (tui_interp::init): Update.
15520 * utils.c (init_page_info): Update.
15521 (putchar_unfiltered, fputc_unfiltered): Update.
15522 (gdb_flush): Update.
15523 (emit_style_escape): Update.
15524 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15525 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15526 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15527 (stderr_file::write): Update.
15528 (stderr_file::puts): Update.
15529 * ui-file.h (ui_file_isatty, ui_file_write)
15530 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15531 (ui_file_puts): Don't declare.
15532
15533 2020-02-10 Tom de Vries <tdevries@suse.de>
15534
15535 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15536 sentinel to char *.
15537
15538 2020-02-09 Tom de Vries <tdevries@suse.de>
15539
15540 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15541 filename if it matches "<artificial>".
15542
15543 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15544
15545 * windows-tdep.c (struct enum_value_name): New struct.
15546 (create_enum): New function.
15547 (windows_get_siginfo_type): Create and use enum types.
15548
15549 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15550
15551 * NEWS: Mention $_siginfo support for Windows.
15552 * windows-nat.c (handle_exception): Set siginfo_er.
15553 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15554 (windows_xfer_siginfo): New function.
15555 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15556 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15557 (init_windows_gdbarch_data): New function.
15558 (get_windows_gdbarch_data): New function.
15559 (windows_get_siginfo_type): New function.
15560 (windows_init_abi): Register windows_get_siginfo_type.
15561 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15562
15563 2020-02-08 Tom Tromey <tom@tromey.com>
15564
15565 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15566 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15567 <keep>: Declare method.
15568 <m_keep>: Remove member.
15569 <~cutu_reader>: Remove.
15570 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15571 (cutu_reader::cutu_reader): Update.
15572 (cutu_reader::keep): Rename from ~cutu_reader.
15573 (process_psymtab_comp_unit, build_type_psymtabs_1)
15574 (process_skeletonless_type_unit, load_partial_comp_unit)
15575 (load_full_comp_unit, dwarf2_read_addr_index)
15576 (read_signatured_type): Update.
15577
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15581 "want_partial_unit" parameter.
15582 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15583 Inline check for DW_TAG_partial_unit.
15584 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15585
15586 2020-02-08 Tom Tromey <tom@tromey.com>
15587
15588 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15589 read.c.
15590 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15591 read.c.
15592
15593 2020-02-08 Tom Tromey <tom@tromey.com>
15594
15595 * dwarf2/read.c (read_address): Move to comp-unit.c.
15596 (dwarf2_rnglists_process, dwarf2_ranges_process)
15597 (read_attribute_value, dwarf_decode_lines_1)
15598 (var_decode_location, decode_locdesc): Update.
15599 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15600 read.c. Remove "cu" parameter.
15601 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15602 method.
15603
15604 2020-02-08 Tom Tromey <tom@tromey.com>
15605
15606 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15607 (read_indirect_line_string): Update.
15608 * dwarf2/comp-unit.c (read_offset): Remove.
15609 (read_comp_unit_head): Update.
15610 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15611 method.
15612 (read_offset): Don't declare.
15613
15614 2020-02-08 Tom Tromey <tom@tromey.com>
15615
15616 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15617 * dwarf2/read.c (struct comp_unit_head): Move to
15618 dwarf2/comp-unit.h.
15619 (enum class rcuh_kind): Move to comp-unit.h.
15620 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15621 (read_comp_unit_head, error_check_comp_unit_head)
15622 (read_and_check_comp_unit_head): Move to comp-unit.c.
15623 (read_offset, dwarf_unit_type_name): Likewise.
15624 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15625 (cutu_reader::cutu_reader, read_call_site_scope)
15626 (find_partial_die, follow_die_offset): Update.
15627 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15628
15629 2020-02-08 Tom Tromey <tom@tromey.com>
15630
15631 * dwarf2/read.c (read_offset_1): Move to leb.c.
15632 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15633 (dwarf_decode_macro_bytes): Update.
15634 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15635 * dwarf2/leb.h (read_offset): Declare.
15636
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15638
15639 * dwarf2/read.c (dwarf2_section_size): Remove.
15640 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15641 Update.
15642 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15643
15644 2020-02-08 Tom Tromey <tom@tromey.com>
15645
15646 * dwarf2/read.c (read_initial_length): Move to leb.c.
15647 * dwarf2/leb.h (read_initial_length): Declare.
15648 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15649 handle_nonstd parameter.
15650 * dwarf2/frame.c (read_initial_length): Remove.
15651 (decode_frame_entry_1): Update.
15652
15653 2020-02-08 Tom Tromey <tom@tromey.com>
15654
15655 * dwarf2/loc.c (dwarf2_find_location_expression)
15656 (dwarf_evaluate_loc_desc::get_tls_address)
15657 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15658 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15659 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15660 (dwarf2_compile_property_to_c)
15661 (dwarf2_loc_desc_get_symbol_read_needs)
15662 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15663 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15664 (loclist_describe_location, loclist_tracepoint_var_ref)
15665 (loclist_generate_c_location): Update.
15666 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15667 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15668 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15669 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15670 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15671 (dwarf2_per_cu_data::addr_size)
15672 (dwarf2_per_cu_data::ref_addr_size)
15673 (dwarf2_per_cu_data::text_offset)
15674 (dwarf2_per_cu_data::addr_type): Now methods.
15675 (per_cu_header_read_in): Make per_cu "const".
15676 (dwarf2_version): Remove.
15677 (dwarf2_per_cu_data::int_type): Now a method.
15678 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15679 (set_die_type, read_array_type, read_subrange_index_type)
15680 (read_tag_string_type, read_subrange_type): Update.
15681 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15682 offset_size, ref_addr_size, text_offset, addr_type, version,
15683 objfile, int_type, addr_sized_int_type>: Declare methods.
15684
15685 2020-02-08 Tom Tromey <tom@tromey.com>
15686
15687 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15688 Move earlier.
15689
15690 2020-02-08 Tom Tromey <tom@tromey.com>
15691
15692 * dwarf2/read.h (dwarf_line_debug): Declare.
15693 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15694 * dwarf2/read.c: Move line_header code to new files.
15695 (dwarf_line_debug): No longer static.
15696 * dwarf2/line-header.c: New file.
15697 * dwarf2/line-header.h: New file.
15698
15699 2020-02-08 Tom Tromey <tom@tromey.com>
15700
15701 * dwarf2/read.c (struct line_header) <file_full_name,
15702 file_file_name>: Return unique_xmalloc_ptr.
15703 (line_header::file_file_name): Update.
15704 (line_header::file_full_name): Update.
15705 (dw2_get_file_names_reader): Update.
15706 (macro_start_file): Update.
15707
15708 2020-02-08 Tom Tromey <tom@tromey.com>
15709
15710 * dwarf2/read.c (struct line_header) <file_full_name,
15711 file_file_name>: Declare methods.
15712 (dw2_get_file_names_reader): Update.
15713 (file_file_name): Now a method.
15714 (file_full_name): Likewise.
15715 (macro_start_file): Update.
15716
15717 2020-02-08 Tom Tromey <tom@tromey.com>
15718
15719 * dwarf2/read.c (dwarf_always_disassemble)
15720 (show_dwarf_always_disassemble): Move to loc.c.
15721 (_initialize_dwarf2_read): Move "always-disassemble" registration
15722 to loc.c.
15723 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15724 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15725 static.
15726 (show_dwarf_always_disassemble): Move from read.c.
15727 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15728
15729 2020-02-08 Tom Tromey <tom@tromey.com>
15730
15731 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15732 (create_quick_file_names_table): Return htab_up.
15733 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15734 Update.
15735 * dwarf2/read.h (struct dwarf2_per_objfile)
15736 <quick_file_names_table>: Now htab_up.
15737
15738 2020-02-08 Tom Tromey <tom@tromey.com>
15739
15740 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15741
15742 2020-02-08 Tom Tromey <tom@tromey.com>
15743
15744 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15745 Rewrite.
15746 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15747 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15748 (abbrev_table::abbrev_table): No longer inline.
15749 (ABBREV_HASH_SIZE): Remove.
15750 (abbrev_table::m_abbrevs): Now an htab_up.
15751
15752 2020-02-08 Tom Tromey <tom@tromey.com>
15753
15754 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15755 (cutu_reader): Update.
15756 (build_type_psymtabs_1): Update.
15757 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15758 (abbrev_table::alloc_abbrev): Update.
15759 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15760 (abbrev_table::read): New static method, renamed from
15761 abbrev_table_read_table.
15762 (abbrev_table::alloc_abbrev)
15763 (abbrev_table::add_abbrev): Now private.
15764 (abbrev_table::abbrev_table): Now private.
15765 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15766
15767 2020-02-08 Tom Tromey <tom@tromey.com>
15768
15769 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15770 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15771 htab_up.
15772
15773 2020-02-08 Tom Tromey <tom@tromey.com>
15774
15775 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15776 htab_up.
15777 (lookup_dwo_unit_in_dwp): Update.
15778 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15779 on obstack.
15780
15781 2020-02-08 Tom Tromey <tom@tromey.com>
15782
15783 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15784 obstack.
15785
15786 2020-02-08 Tom Tromey <tom@tromey.com>
15787
15788 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15789 line_header_hash.
15790 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15791 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15792 Change type to htab_up.
15793
15794 2020-02-08 Tom Tromey <tom@tromey.com>
15795
15796 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15797 htab_up. Don't allocate on obstack.
15798 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15799 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15800 Change type to htab_up.
15801
15802 2020-02-08 Tom Tromey <tom@tromey.com>
15803
15804 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15805 Change type to htab_up.
15806 * dwarf2/read.c (create_signatured_type_table_from_index)
15807 (create_signatured_type_table_from_debug_names)
15808 (create_all_type_units, add_type_unit)
15809 (lookup_dwo_signatured_type, lookup_signatured_type)
15810 (process_skeletonless_type_unit): Update.
15811 (create_debug_type_hash_table, create_debug_types_hash_table):
15812 Change type of types_htab.
15813 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15814 htab_up. Don't allocate on obstack.
15815 (create_cus_hash_table): Change type of cus_htab parameter.
15816 (struct dwo_file) <cus, tus>: Now htab_up.
15817 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15818 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15819 (queue_and_load_all_dwo_tus): Update.
15820 * dwarf2/index-write.c (write_gdbindex): Update.
15821 (write_debug_names): Update.
15822
15823 2020-02-08 Tom Tromey <tom@tromey.com>
15824
15825 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15826 dwarf2/read.c. Remove "next" member. Add constructor ntad
15827 destructor.
15828 (struct dwarf2_per_objfile) <queue>: New member.
15829 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15830 dwarf2/read.h.
15831 (dwarf2_queue, dwarf2_queue_tail): Remove.
15832 (class dwarf2_queue_guard): Add parameter to constructor. Use
15833 DISABLE_COPY_AND_ASSIGN.
15834 <m_per_objfile>: New member.
15835 <~dwarf2_queue_guard>: Rewrite.
15836 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15837 Update.
15838 (~dwarf2_queue_item): New.
15839
15840 2020-02-08 Tom Tromey <tom@tromey.com>
15841
15842 * dwarf2/read.c (struct die_info) <has_children>: New member.
15843 (dw2_get_file_names_reader): Remove has_children.
15844 (dw2_get_file_names): Update.
15845 (read_cutu_die_from_dwo): Remove has_children.
15846 (cutu_reader::init_tu_and_read_dwo_dies)
15847 (cutu_reader::cutu_reader): Update.
15848 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15849 Remove has_children.
15850 (build_type_psymtabs_1, process_skeletonless_type_unit)
15851 (load_partial_comp_unit, load_full_comp_unit): Update.
15852 (create_dwo_cu_reader): Remove has_children.
15853 (create_cus_hash_table, read_die_and_children): Update.
15854 (read_full_die_1,read_full_die): Remove has_children.
15855 (read_signatured_type): Update.
15856 (class cutu_reader) <has_children>: Remove.
15857
15858 2020-02-08 Tom Tromey <tom@tromey.com>
15859
15860 * dwarf2/expr.c: Rename from dwarf2expr.c.
15861 * dwarf2/expr.h: Rename from dwarf2expr.h.
15862 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15863 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15864 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15865 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15866 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15867 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15868 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15869 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15870 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15871 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15872 * dwarf2/loc.c: Rename from dwarf2loc.c.
15873 * dwarf2/loc.h: Rename from dwarf2loc.h.
15874 * dwarf2/read.c: Rename from dwarf2read.c.
15875 * dwarf2/read.h: Rename from dwarf2read.h.
15876 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15877 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15878 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15879 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15880 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15881 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15882 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15883 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15884 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15885 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15886 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15887 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15888 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15889 Update.
15890 * Makefile.in (COMMON_SFILES): Update.
15891 (HFILES_NO_SRCDIR): Update.
15892
15893 2020-02-08 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15896 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15897
15898 2020-02-08 Tom Tromey <tom@tromey.com>
15899
15900 * dwarf2read.h (struct die_info): Don't declare.
15901
15902 2020-02-08 Tom Tromey <tom@tromey.com>
15903
15904 * dwarf2read.h (die_info_ptr): Remove typedef.
15905
15906 2020-02-08 Tom Tromey <tom@tromey.com>
15907
15908 * dwarf2read.c (read_call_site_scope)
15909 (handle_data_member_location, dwarf2_add_member_fn)
15910 (mark_common_block_symbol_computed, read_common_block)
15911 (attr_to_dynamic_prop, partial_die_info::read)
15912 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15913 (dwarf2_symbol_mark_computed, set_die_type): Update.
15914 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15915 method.
15916 (attr_form_is_block): Don't declare.
15917 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15918
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2read.c (dwarf2_find_base_address, )
15922 (read_call_site_scope, rust_containing_type)
15923 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15924 (handle_data_member_location, dwarf2_add_member_fn)
15925 (get_alignment, read_structure_type, process_structure_scope)
15926 (mark_common_block_symbol_computed, read_common_block)
15927 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15928 (partial_die_info::read, read_attribute_value, new_symbol)
15929 (lookup_die_type, dwarf2_get_ref_die_offset)
15930 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15931 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15932 (dwarf2_symbol_mark_computed): Update.
15933 * dwarf2/attribute.h (struct attribute) <value_as_address,
15934 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15935 methods.
15936 (value_as_address, attr_form_is_section_offset)
15937 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15938 * dwarf2/attribute.c (attribute::value_as_address)
15939 (attribute::form_is_section_offset, attribute::form_is_constant)
15940 (attribute::form_is_ref): Now methods.
15941
15942 2020-02-08 Tom Tromey <tom@tromey.com>
15943
15944 * dwarf2read.c (struct attribute, DW_STRING)
15945 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15946 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15947 (attr_form_is_block, attr_form_is_section_offset)
15948 (attr_form_is_constant, attr_form_is_ref): Move.
15949 * dwarf2/attribute.h: New file.
15950 * dwarf2/attribute.c: New file, from dwarf2read.c.
15951 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15952
15953 2020-02-08 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15956 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15957 Move.
15958 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15959 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15960 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15961 abbrev.c.
15962 * dwarf2/abbrev.h: New file.
15963 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15964 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15965
15966 2020-02-08 Tom Tromey <tom@tromey.com>
15967
15968 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15969 (dwarf2_section_size, dwarf2_get_section_info)
15970 (create_signatured_type_table_from_debug_names)
15971 (create_addrmap_from_aranges, read_debug_names_from_section)
15972 (get_gdb_index_contents_from_section, read_comp_unit_head)
15973 (error_check_comp_unit_head, read_abbrev_offset)
15974 (create_debug_type_hash_table, init_cu_die_reader)
15975 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15976 (read_comp_units_from_section, create_cus_hash_table)
15977 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15978 (create_dwp_v2_section, dwarf2_rnglists_process)
15979 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15980 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15981 (read_indirect_string_from_dwz, read_addr_index_1)
15982 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15983 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15984 (fill_in_loclist_baton): Update.
15985 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15986 get_containing_section, get_bfd_owner, get_bfd_section,
15987 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15988 (dwarf2_read_section, get_section_name, get_section_file_name)
15989 (get_containing_section, get_section_bfd_owner)
15990 (get_section_bfd_section, get_section_name, get_section_file_name)
15991 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15992 declare.
15993 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15994 (dwarf2_section_info::get_bfd_owner)
15995 (dwarf2_section_info::get_bfd_section)
15996 (dwarf2_section_info::get_name)
15997 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15998 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15999 (dwarf2_section_info::read): Now methods.
16000 * dwarf-index-write.c (class debug_names): Update.
16001
16002 2020-02-08 Tom Tromey <tom@tromey.com>
16003
16004 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16005 Move to dwarf2/section.h.
16006 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16007 (get_section_bfd_section, get_section_name)
16008 (get_section_file_name, get_section_id, get_section_flags)
16009 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16010 dwarf2/section.c.
16011 * dwarf2/section.h: New file.
16012 * dwarf2/section.c: New file, from dwarf2read.c.
16013 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16014
16015 2020-02-08 Tom Tromey <tom@tromey.com>
16016
16017 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16018 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16019 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16020 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16021 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16022 * dwarf2/leb.h: New file, from dwarf2read.c.
16023 * dwarf2/leb.c: New file, from dwarf2read.c.
16024 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16025 Remove.
16026 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16027 (COMMON_SFILES): Add dwarf2/leb.c.
16028
16029 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16030
16031 GDB 9.1 released.
16032
16033 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16034
16035 PR gdb/25190:
16036 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16037 * gdb/remote.c (remote_console_output): Update.
16038 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16039 (ui_file_puts): ...this.
16040 * gdb/ui-file.h (ui_file_puts): Add declaration.
16041 * gdb/utils.c (emit_style_escape): Update.
16042 (flush_wrap_buffer): Update.
16043 (fputs_maybe_filtered): Update.
16044 (fputs_unfiltered): Add function.
16045
16046 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16047
16048 * gdb/event-loop.c (gdb_wait_for_event): Update.
16049 * gdb/printcmd.c (printf_command): Update.
16050 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16051 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16052 (gdb_os_flush_stderr): Update.
16053 * gdb/remote.c (remote_console_output): Update.
16054 * gdb/ui-file.c (gdb_flush): Rename to...
16055 (ui_file_flush): ...this.
16056 (stderr_file::write): Update.
16057 (stderr_file::puts): Update.
16058 * gdb/ui-file.h (gdb_flush): Rename to...
16059 (ui_file_flush): ...this.
16060 * gdb/utils.c (gdb_flush): Add function.
16061 * gdb/utils.h (gdb_flush): Add declaration.
16062
16063 2020-02-07 Tom Tromey <tromey@adacore.com>
16064
16065 PR breakpoints/24915:
16066 * source.c (find_and_open_source): Do not check basenames_may_differ.
16067
16068 2020-02-07 Tom Tromey <tom@tromey.com>
16069
16070 * README: Update gdbserver documentation.
16071 * gdbserver: Move to top level.
16072 * configure.tgt (build_gdbserver): Remove.
16073 * configure.ac: Remove --enable-gdbserver.
16074 * configure: Rebuild.
16075 * Makefile.in (distclean): Don't mention gdbserver.
16076
16077 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16078
16079 * source-cache.c (source_cache::ensure): Surround
16080 get_plain_source_lines with a try/catch.
16081 (source_cache::get_line_charpos): Get rid of try/catch
16082 and only check for the return value of "ensure".
16083 * tui/tui-source.c (tui_source_window::set_contents):
16084 Simplify "nlines" calculation.
16085
16086 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16087
16088 * MAINTAINERS (Write After Approval): Add myself.
16089
16090 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16091
16092 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16093 function call.
16094
16095 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16096
16097 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16098
16099 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16100
16101 * nat/riscv-linux-tdesc.h: New file.
16102 * nat/riscv-linux-tdesc.c: New file, taking code from...
16103 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16104 ... here.
16105 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16106 NATDEPFILES.
16107
16108 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16109
16110 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16111 we don't set the fake simulator ptid to the null_ptid.
16112
16113 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16114
16115 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16116 * gdbthread.h (class thread_info) <resumed>: Likewise.
16117 * infrun.c (resume_1): Likewise.
16118 (proceed): Likewise.
16119 (infrun_thread_stop_requested): Likewise.
16120 (stop_all_threads): Likewise.
16121 (handle_inferior_event): Likewise.
16122 (restart_threads): Likewise.
16123 (finish_step_over): Likewise.
16124 (keep_going_stepped_thread): Likewise.
16125 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16126 (linux_handle_extended_wait): Likewise.
16127 * record-btrace.c (get_thread_current_frame_id): Likewise.
16128 * record-full.c (record_full_wait_1): Likewise.
16129 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16130 * target.c (target_resume): Likewise.
16131 * thread.c (set_running_thread): Likewise.
16132
16133 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16134
16135 * f-valprint.c (f77_print_array_1): Changed datatype of index
16136 variable to LONGEST from int to enable it to contain bound
16137 values correctly.
16138
16139 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16140
16141 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16142 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16143 offsets according to FLEN determined.
16144 (riscv_linux_nat_target::read_description): Determine FLEN
16145 dynamically.
16146 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16147 according to FLEN determined.
16148 (riscv_linux_nat_target::store_registers): Likewise.
16149
16150 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16151
16152 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16153 when reg->group is empty and reggroup is not.
16154
16155 2020-01-31 Tom Tromey <tromey@adacore.com>
16156
16157 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16158 Call beneath target's mourn_inferior after unpushing.
16159
16160 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16161
16162 PR tui/9765
16163 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16164 have enough lines to fill the screen, still return the lowest
16165 address we found.
16166
16167 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16168
16169 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16170 '-', '<', and '>' commands.
16171
16172 2020-01-29 Pedro Alves <palves@redhat.com>
16173 Sergio Durigan Junior <sergiodj@redhat.com>
16174
16175 * infcmd.c (construct_inferior_arguments): Assert that
16176 'argc' is greater than 0.
16177
16178 2020-01-29 Luis Machado <luis.machado@linaro.org>
16179
16180 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16181 (BRK_INSN_MASK): Define to 0xd4200000.
16182 (aarch64_program_breakpoint_here_p): New function.
16183 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16184 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16185 breakpoint.c.
16186 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16187 breakpoint.h
16188 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16189 call gdbarch_program_breakpoint_here_p.
16190 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16191 default_program_breakpoint_here_p, changed return type to bool and
16192 simplified.
16193 * breakpoint.h (program_breakpoint_here): Moved prototype to
16194 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16195 return type to bool.
16196 * gdbarch.c: Regenerate.
16197 * gdbarch.h: Regenerate.
16198 * gdbarch.sh (program_breakpoint_here_p): New method.
16199 * infrun.c (handle_signal_stop): Call
16200 gdbarch_program_breakpoint_here_p.
16201
16202 2020-01-26 Tom Tromey <tom@tromey.com>
16203
16204 * ctfread.c (struct ctf_fp_info): Reindent.
16205 (_initialize_ctfread): Remove.
16206
16207 2020-01-26 Tom Tromey <tom@tromey.com>
16208
16209 * psymtab.c (partial_map_expand_apply)
16210 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16211 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16212 (psym_print_stats, psym_expand_symtabs_for_function)
16213 (psym_map_symbol_filenames, psym_map_matching_symbols)
16214 (psym_expand_symtabs_matching)
16215 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16216 (maintenance_check_psymtabs): Use new methods.
16217 * psympriv.h (struct partial_symtab) <readin_p,
16218 get_compunit_symtab>: New methods.
16219 <readin, compunit_symtab>: Remove members.
16220 (struct standard_psymtab): New.
16221 (struct legacy_psymtab): Derive from standard_psymtab.
16222 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16223 standard_psymtab.
16224 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16225
16226 2020-01-26 Tom Tromey <tom@tromey.com>
16227
16228 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16229 read_dependencies. Add assert.
16230 * psymtab.c (partial_symtab::read_dependencies): New method.
16231 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16232 method.
16233 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16234 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16235 read_dependencies.
16236 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16237 Add assert.
16238
16239 2020-01-26 Tom Tromey <tom@tromey.com>
16240
16241 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16242 Call expand_psymtab.
16243 (xcoff_read_symtab): Call expand_psymtab.
16244 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16245 legacy_expand_psymtab.
16246 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16247 method.
16248 (struct legacy_psymtab) <expand_psymtab>: Implement.
16249 <legacy_expand_psymtab>: New member.
16250 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16251 (parse_partial_symbols): Set legacy_expand_psymtab.
16252 (psymtab_to_symtab_1): Change argument order. Call
16253 expand_psymtab.
16254 (new_psymtab): Set legacy_expand_psymtab.
16255 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16256 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16257 expand_psymtab.
16258 (dwarf2_psymtab::expand_psymtab): Rename from
16259 psymtab_to_symtab_1. Call expand_psymtab.
16260 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16261 (dbx_end_psymtab): Likewise.
16262 (dbx_psymtab_to_symtab_1): Change argument order. Call
16263 expand_psymtab.
16264 (dbx_read_symtab): Call expand_psymtab.
16265 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16266 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16267 (ctf_psymtab::read_symtab): Call expand_psymtab.
16268
16269 2020-01-26 Tom Tromey <tom@tromey.com>
16270
16271 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16272 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16273 messages.
16274 * mdebugread.c (mdebug_read_symtab): Remove prints.
16275 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16276 assert.
16277 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16278
16279 2020-01-26 Tom Tromey <tom@tromey.com>
16280
16281 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16282 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16283 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16284 legacy_symtab.
16285 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16286 * psymtab.c (psymtab_to_symtab): Call method.
16287 (dump_psymtab): Update.
16288 * psympriv.h (struct partial_symtab): Add virtual destructor.
16289 <read_symtab>: New method.
16290 (struct legacy_symtab): New.
16291 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16292 (struct pst_map) <pst>: Now a legacy_psymtab.
16293 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16294 (new_psymtab): Use legacy_psymtab.
16295 * dwarf2read.h (struct dwarf2_psymtab): New.
16296 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16297 * dwarf2read.c (dwarf2_create_include_psymtab)
16298 (dwarf2_build_include_psymtabs, create_type_unit_group)
16299 (create_partial_symtab, process_psymtab_comp_unit_reader)
16300 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16301 (set_partial_user): Use dwarf2_psymtab.
16302 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16303 (psymtab_to_symtab_1, process_full_comp_unit)
16304 (process_full_type_unit, dwarf2_ranges_read)
16305 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16306 (dwarf_decode_lines): Use dwarf2_psymtab.
16307 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16308 (add_address_entry_worker, write_one_signatured_type)
16309 (recursively_count_psymbols, recursively_write_psymbols)
16310 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16311 (write_debug_names): Likewise.
16312 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16313 <pst>: Now a legacy_psymtab.
16314 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16315 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16316 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16317 * ctfread.c (struct ctf_psymtab): New.
16318 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16319 ctf_psymtab.
16320 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16321 (create_partial_symtab): Return a ctf_psymtab.
16322 (scan_partial_symbols): Update.
16323
16324 2020-01-26 Tom Tromey <tom@tromey.com>
16325
16326 * xcoffread.c (xcoff_start_psymtab): Use new.
16327 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16328 renamed from start_psymtab_common.
16329 * psympriv.h (struct partial_symtab): Add new constructor.
16330 (start_psymtab_common): Don't declare.
16331 * mdebugread.c (parse_partial_symbols): Use new.
16332 * dwarf2read.c (create_partial_symtab): Use new.
16333 * dbxread.c (start_psymtab): Use new.
16334 * ctfread.c (create_partial_symtab): Use new.
16335
16336 2020-01-26 Tom Tromey <tom@tromey.com>
16337
16338 * xcoffread.c (xcoff_end_psymtab): Use new.
16339 * psymtab.c (start_psymtab_common): Use new.
16340 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16341 Update.
16342 * psympriv.h (struct partial_symtab): Add parameters to
16343 constructor. Don't inline.
16344 (allocate_psymtab): Don't declare.
16345 * mdebugread.c (new_psymtab): Use new.
16346 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16347 * dbxread.c (dbx_end_psymtab): Use new.
16348
16349 2020-01-26 Tom Tromey <tom@tromey.com>
16350
16351 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16352 allocate_psymtab. Update documentation.
16353 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16354 allocate_psymtab. Do not use new.
16355 (allocate_psymtab): Use new. Update.
16356
16357 2020-01-26 Tom Tromey <tom@tromey.com>
16358
16359 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16360 * psymtab.c (psym_print_stats): Update.
16361 * psympriv.h (struct partial_symtab) <readin,
16362 psymtabs_addrmap_supported, anonymous>: Now bool.
16363 * mdebugread.c (psymtab_to_symtab_1): Update.
16364 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16365 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16366 (process_full_comp_unit, process_full_type_unit): Update.
16367 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16368 * ctfread.c (psymtab_to_symtab): Update.
16369
16370 2020-01-26 Tom Tromey <tom@tromey.com>
16371
16372 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16373 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16374 * psymtab.c (psymtab_storage): Delete psymtabs.
16375 (psymtab_storage::allocate_psymtab): Use new.
16376 (psymtab_storage::discard_psymtab): Use delete.
16377 * psympriv.h (struct partial_symtab): Add constructor and
16378 initializers.
16379
16380 2020-01-26 Tom Tromey <tom@tromey.com>
16381
16382 * machoread.c: Do not include psympriv.h.
16383
16384 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16385
16386 * NEWS: Mention the new option and the set/show commands.
16387
16388 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16389
16390 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16391 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16392 (validate_exec_file): New variables, enums, functions.
16393 (exec_file_locate_attach, print_section_info): Style the filenames.
16394 (_initialize_exec): Install show_exec_file_mismatch_command and
16395 set_exec_file_mismatch_command.
16396 * gdbcore.h (validate_exec_file): Declare.
16397 * infcmd.c (attach_command): Call validate_exec_file.
16398 * remote.c ( remote_target::remote_add_inferior): Likewise.
16399
16400 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16401
16402 * frame.c (find_frame_sal): Move call to get_next_frame into more
16403 inner scope.
16404 * inline-frame.c (inilne_state) <inline_state>: Update argument
16405 types.
16406 (inilne_state) <skipped_symbol>: Rename to...
16407 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16408 (skip_inline_frames): Build vector of skipped symbols and use this
16409 to reate the inline_state.
16410 (inline_skipped_symbol): Add a comment and some assertions, fetch
16411 skipped symbol from the list.
16412
16413 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16414
16415 * buildsym.c (lte_is_less_than): Delete.
16416 (buildsym_compunit::end_symtab_with_blockvector): Create local
16417 lambda function to sort line table entries, and use
16418 std::stable_sort instead of std::sort.
16419 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16420 markers when looking for a previous line.
16421
16422 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16423
16424 * dwarf2read.c (lnp_state_machine::record_line): Include
16425 end_sequence parameter in debug print out. Record the line if we
16426 are at an end_sequence marker even if it's not the start of a
16427 statement.
16428 * symmisc.c (maintenance_print_one_line_table): Print end of
16429 sequence markers with 'END' not '0'.
16430
16431 2020-01-24 Pedro Alves <palves@redhat.com>
16432
16433 PR gdb/25410
16434 * thread.c (scoped_restore_current_thread::restore): Use
16435 switch_to_inferior_no_thread.
16436 * exec.c: Include "progspace-and-thread.h".
16437 (add_target_sections, remove_target_sections):
16438 scoped_restore_current_pspace_and_thread instead of
16439 scoped_restore_current_thread.
16440 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16441 and aspace to the inferior before calling clone_program_space.
16442 Remove stale comment.
16443
16444 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16445
16446 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16447 (arm_netbsd_nat_target::fetch_registers): ...this.
16448 (arm_nbsd_nat_target::store_registers): Rename to...
16449 (arm_netbsd_nat_target::store_registers): ...this.
16450
16451 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16452
16453 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16454 register_t.
16455
16456 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16457
16458 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16459 Update comment.
16460 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16461 Likewise.
16462 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16463 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16464 the correct replacement (iterate_over_regset_sections).
16465 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16466 Update comment.
16467
16468 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16469
16470 PR gdb/23718
16471 * gdb/python/python.c (execute_gdb_command): Call
16472 async_enable_stdin in catch block.
16473
16474 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16475
16476 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16477 SWITCH_THRU_ALL_UIS.
16478
16479 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16480
16481 PR tui/9765
16482 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16483 comment, add extra parameter, and update to store previous symbol
16484 when appropriate.
16485 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16486 add extra parameter.
16487 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16488 remove unneeded parameter, add try/catch around gdb_print_insn,
16489 rewrite to add items to asm_lines vector.
16490 (tui_find_backward_disassembly_start_address): New function.
16491 (tui_find_disassembly_address): Updated throughout.
16492 (tui_disasm_window::set_contents): Update for changes to
16493 tui_disassemble.
16494 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16495 number of lines to scroll.
16496
16497 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16498
16499 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16500 (SECT_OFF_DATA): Likewise.
16501 (SECT_OFF_RODATA): Likewise.
16502 (SECT_OFF_TEXT): Likewise.
16503 (SECT_OFF_BSS): Likewise.
16504 (struct objfile) <text_section_offset, data_section_offset>: New
16505 methods.
16506 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16507 objfile::text_section_offset.
16508 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16509 * coffread.c (coff_symtab_read): Likewise.
16510 (enter_linenos): Likewise.
16511 (process_coff_symbol): Likewise.
16512 * ctfread.c (get_objfile_text_range): Likewise.
16513 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16514 Use objfile::data_section_offset.
16515 * dwarf2-frame.c (execute_cfa_program): Use
16516 objfile::text_section_offset.
16517 (dwarf2_frame_find_fde): Likewise.
16518 * dwarf2read.c (create_addrmap_from_index): Likewise.
16519 (create_addrmap_from_aranges): Likewise.
16520 (dw2_find_pc_sect_compunit_symtab): Likewise.
16521 (process_psymtab_comp_unit_reader): Likewise.
16522 (add_partial_symbol): Likewise.
16523 (add_partial_subprogram): Likewise.
16524 (process_full_comp_unit): Likewise.
16525 (read_file_scope): Likewise.
16526 (read_func_scope): Likewise.
16527 (read_lexical_block_scope): Likewise.
16528 (read_call_site_scope): Likewise.
16529 (dwarf2_rnglists_process): Likewise.
16530 (dwarf2_ranges_process): Likewise.
16531 (dwarf2_ranges_read): Likewise.
16532 (dwarf_decode_lines_1): Likewise.
16533 (new_symbol): Likewise.
16534 (dwarf2_fetch_die_loc_sect_off): Likewise.
16535 (dwarf2_per_cu_text_offset): Likewise.
16536 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16537 * hppa-tdep.c (read_unwind_info): Likewise.
16538 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16539 * psympriv.h (struct partial_symtab): Likewise.
16540 * psymtab.c (find_pc_sect_psymtab): Likewise.
16541 * solib-svr4.c (enable_break): Likewise.
16542 * stap-probe.c (relocate_address): Use
16543 objfile::data_section_offset.
16544 * xcoffread.c (enter_line_range): Use
16545 objfile::text_section_offset.
16546 (read_xcoff_symtab): Likewise.
16547
16548 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16549
16550 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16551 declaration to narrower scopes.
16552
16553 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16554
16555 * darwin-nat.h (struct darwin_exception_msg, enum
16556 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16557 Move up.
16558 (class darwin_nat_target) <wait_1, check_new_threads,
16559 decode_exception_message, decode_message, stop_inferior,
16560 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16561 * darwin-nat.c (darwin_check_new_threads): Rename to...
16562 (darwin_nat_target::check_new_threads): ... this.
16563 (darwin_suspend_inferior_it): Remove.
16564 (darwin_decode_exception_message): Rename to...
16565 (darwin_nat_target::decode_exception_message): ... this.
16566 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16567 (darwin_decode_message): Rename to...
16568 (darwin_nat_target::decode_message): ... this.
16569 (cancel_breakpoint): Rename to...
16570 (darwin_nat_target::cancel_breakpoint): ... this.
16571 (darwin_wait): Rename to...
16572 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16573 instead of iterate_over_inferiors.
16574 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16575 (darwin_stop_inferior): Rename to...
16576 (darwin_nat_target::stop_inferior): ... this.
16577 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16578 (darwin_init_thread_list): Rename to...
16579 (darwin_nat_target::init_thread_list): ... this.
16580 (darwin_ptrace_him): Rename to...
16581 (darwin_nat_target::ptrace_him): ... this.
16582 (darwin_nat_target::create_inferior): Pass lambda function to
16583 fork_inferior.
16584 (darwin_nat_target::detach): Call stop_inferior instead of
16585 darwin_stop_inferior.
16586 * fork-inferior.h (fork_inferior): Change init_trace_fun
16587 parameter to gdb::function_view.
16588 * fork-inferior.c (fork_inferior): Likewise.
16589
16590 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16591
16592 * i386-cygwin-tdep.c (core_process_module_section): Update.
16593 * windows-nat.c (struct lm_info_windows): Add text_offset.
16594 (windows_xfer_shared_libraries): Update.
16595 * windows-tdep.c (windows_xfer_shared_library):
16596 Add text_offset_cached argument.
16597 * windows-tdep.h (windows_xfer_shared_library): Update.
16598
16599 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16600
16601 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16602
16603 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16604
16605 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16606 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16607 replace with range-based for.
16608 (gdbsim_interrupt_inferior): Remove.
16609 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16610 with a range-based for. Inline code from
16611 gdbsim_interrupt_inferior.
16612
16613 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16614
16615 * infrun.c (proceed): Fix indentation.
16616
16617 2020-01-21 Tom Tromey <tromey@adacore.com>
16618
16619 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16620 * python/python.c (python_extension_ops): Update.
16621 (gdbpy_colorize): New function.
16622 * python/lib/gdb/__init__.py (colorize): New function.
16623 * extension.h (ext_lang_colorize): Declare.
16624 * extension.c (ext_lang_colorize): New function.
16625 * extension-priv.h (struct extension_language_ops) <colorize>: New
16626 member.
16627 * cli/cli-style.c (_initialize_cli_style): Update help text.
16628
16629 2020-01-21 Luis Machado <luis.machado@linaro.org>
16630
16631 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16632 <cond>: Change type to bool.
16633 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16634 (aarch64_displaced_step_cb): Likewise.
16635 (aarch64_displaced_step_tb): Likewise.
16636
16637 2020-01-21 Luis Machado <luis.machado@linaro.org>
16638
16639 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16640 output.
16641
16642 2020-01-21 Luis Machado <luis.machado@linaro.org>
16643
16644 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16645 <pc_adjust>: Adjust the documentation.
16646 (aarch64_displaced_step_fixup): Check if PC really moved before
16647 adjusting it.
16648
16649 2020-01-19 Tom Tromey <tom@tromey.com>
16650
16651 * disasm.c (~gdb_disassembler): New destructor.
16652 (gdb_buffered_insn_length): Call disassemble_free_target.
16653 * disasm.h (class gdb_disassembler): Declare destructor. Use
16654 DISABLE_COPY_AND_ASSIGN.
16655
16656 2020-01-19 Tom Tromey <tom@tromey.com>
16657
16658 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16659 (die_reader_func_ftype): Remove.
16660 (cutu_reader): New class.
16661 (dw2_get_file_names_reader): Remove "data" parameter.
16662 (dw2_get_file_names): Use cutu_reader.
16663 (create_debug_type_hash_table): Update.
16664 (read_cutu_die_from_dwo): Update comment.
16665 (lookup_dwo_unit): Add dwo_name parameter.
16666 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16667 die_reader_func_ftype and data parameters.
16668 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16669 Remove die_reader_func_ftype and data parameters.
16670 (~cutu_reader): New; from init_cutu_and_read_dies.
16671 (cutu_reader::cutu_reader): Rename from
16672 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16673 and data parameters.
16674 (init_cutu_and_read_dies_simple): Remove.
16675 (struct process_psymtab_comp_unit_data): Remove.
16676 (process_psymtab_comp_unit_reader): Remove data parameter; add
16677 want_partial_unit and pretend_language parameters.
16678 (process_psymtab_comp_unit): Use cutu_reader.
16679 (build_type_psymtabs_reader): Remove data parameter.
16680 (build_type_psymtabs_1): Use cutu_reader.
16681 (process_skeletonless_type_unit): Likewise.
16682 (load_partial_comp_unit_reader): Remove.
16683 (load_partial_comp_unit): Use cutu_reader.
16684 (load_full_comp_unit_reader): Remove.
16685 (load_full_comp_unit): Use cutu_reader.
16686 (struct create_dwo_cu_data): Remove.
16687 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16688 dwo_unit parameters.
16689 (create_cus_hash_table): Use cutu_reader.
16690 (struct dwarf2_read_addr_index_data): Remove.
16691 (dwarf2_read_addr_index_reader): Remove.
16692 (dwarf2_read_addr_index): Use cutu_reader.
16693 (read_signatured_type_reader): Remove.
16694 (read_signatured_type): Use cutu_reader.
16695
16696 2020-01-19 Tom Tromey <tom@tromey.com>
16697
16698 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16699 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16700 (tui_wrefresh): Declare.
16701 * tui/tui-wingeneral.c (suppress_output): New global.
16702 (tui_suppress_output, ~tui_suppress_output): New constructor and
16703 destructor.
16704 (tui_wrefresh): New function.
16705 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16706 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16707 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16708 method.
16709 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16710 tui_wrefresh.
16711 (tui_data_window::no_refresh): New method.
16712 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16713 (tui_reg_command): Use tui_suppress_output
16714 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16715 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16716 method.
16717 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16718
16719 2020-01-19 Tom Tromey <tom@tromey.com>
16720
16721 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16722 Handle case where symtab is null.
16723
16724 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16725
16726 * linux-fork.c (one_fork_p): Simplify.
16727
16728 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16729
16730 * top.c (struct qt_args): Remove.
16731 (kill_or_detach): Change return type to void, replace `void *`
16732 parameter with a proper one.
16733 (print_inferior_quit_action): Likewise.
16734 (quit_confirm): Use range-based for loop to iterate over inferiors.
16735 (quit_force): Likewise.
16736
16737 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16738
16739 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16740 `void *` parameter with proper parameters.
16741 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16742 (print_one_inferior): Change return type to void, replace `void *`
16743 parameter with proper parameters.
16744 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16745 inferiors.
16746 (get_other_inferior): Remove.
16747 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16748 inferiors.
16749
16750 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16751
16752 * mi/mi-interp.c (report_initial_inferior): Remove.
16753 (mi_interp::init): Use range-based for to iterate over inferiors.
16754
16755 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16756
16757 * python/py-inferior.c (build_inferior_list): Remove.
16758 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16759
16760 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16761
16762 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16763 (btrace_stitch_trace): Likewise.
16764 * charset.c (intermediate_encoding): Likewise (vaild).
16765 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16766 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16767 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16768
16769 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16770
16771 * windows-tdep.c (windows_get_tlb_type):
16772 Add rtl_user_process_parameters type.
16773
16774 2020-01-16 Pedro Alves <palves@redhat.com>
16775 Norbert Lange <nolange79@gmail.com>
16776
16777 PR build/24805
16778 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16779 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16780 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16781 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16782 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16783 (ps_plog): Redeclare exported functions with default visibility.
16784
16785 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16786
16787 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16788 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16789
16790 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16791
16792 * infcmd.c (post_create_inferior): Use get_thread_regcache
16793 instead of get_current_regcache.
16794
16795 2020-01-14 Tom Tromey <tom@tromey.com>
16796
16797 PR symtab/12535:
16798 * python/python.c (gdbpy_decode_line): Treat empty string the same
16799 as no argument.
16800
16801 2020-01-14 Tom Tromey <tom@tromey.com>
16802
16803 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16804
16805 2020-01-14 Tom Tromey <tom@tromey.com>
16806
16807 * nat/linux-btrace.c: Don't include <config.h>.
16808 * nat/linux-ptrace.c: Don't include <config.h>.
16809 * nat/x86-linux-dregs.c: Don't include <config.h>.
16810
16811 2020-01-14 Tom Tromey <tom@tromey.com>
16812
16813 * configure: Rebuild.
16814 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16815
16816 2020-01-14 Tom Tromey <tom@tromey.com>
16817
16818 * nat/x86-linux-dregs.c: Include configh.h.
16819 * nat/linux-ptrace.c: Include configh.h.
16820 * nat/linux-btrace.c: Include configh.h.
16821 * defs.h: Include config.h, bfd.h.
16822 * configure.ac: Don't source common.host.
16823 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16824 * configure: Rebuild.
16825 * acinclude.m4: Update path.
16826 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16827 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16828 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16829 (CLIBS): Add LIBSUPPORT.
16830 (CDEPS): Likewise.
16831 (COMMON_SFILES): Remove gdbsupport files.
16832 (HFILES_NO_SRCDIR): Likewise.
16833 (stamp-version): Update path to create-version.sh.
16834 (ALLDEPFILES): Remove gdbsupport files.
16835
16836 2020-01-14 Tom Tromey <tom@tromey.com>
16837
16838 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16839 USE_WIN32API when needed.
16840 * configure.ac (USE_WIN32API): Don't define.
16841 (WIN32LIBS): Use WIN32APILIBS.
16842 * configure: Rebuild.
16843
16844 2020-01-14 Tom Tromey <tom@tromey.com>
16845
16846 * configure: Rebuild.
16847 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16848
16849 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16850
16851 * skip.c (skip_function_command): Make skip w/o arguments use the
16852 name of the inlined function if pc is inside any inlined function.
16853
16854 2020-01-14 Luis Machado <luis.machado@linaro.org>
16855
16856 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16857 * infrun.c (resume_1): Likewise.
16858 (handle_inferior_event): Remove stale comment.
16859 * linux-nat.c (linux_nat_target::resume): Update comments.
16860 (save_stop_reason): Likewise.
16861 (linux_nat_filter_event): Likewise.
16862 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16863
16864 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16865
16866 * elfread.c (record_minimal_symbol): Set section index to 0 for
16867 non-allocatable sections.
16868
16869
16870 2020-01-13 Ali Tamur <tamur@google.com>
16871
16872 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16873 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16874 to gdb::optional. Update comments.
16875 (dwo_file): Update comments.
16876 (read_attribute): Update API to take an additional out parameter,
16877 need_reprocess. This is used to mark attributes that need other
16878 attributes (e.g. str_offsets_base) for correct computation which may not
16879 have been read yet.
16880 (read_attribute_reprocess): New function declaration.
16881 (read_addr_index): Likewise.
16882 (read_dwo_str_index): Likewise.
16883 (read_stub_str_index): Likewise.
16884 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16885 (lookup_addr_base): New function definition.
16886 (lookup_ranges_base): Likewise.
16887 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16888 lookup_ranges_base.
16889 (init_cutu_and_read_dies): Update comments.
16890 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16891 unit. This is used to inherit parent's str_offsets_base and addr_base.
16892 Update comments.
16893 (init_cutu_and_read_dies_simple): Reflect API changes.
16894 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16895 (create_cus_hash_table): Change API to take parent compile unit.
16896 Reflect API changes.
16897 (open_and_init_dwo_file): Reflect API changes.
16898 (dwarf2_get_pc_bounds): Update comments.
16899 (dwarf2_record_block_ranges): Likewise.
16900 (read_full_die_1): Change implementation to reprocess attributes that
16901 need str_offsets_base and addr_base.
16902 (partial_die_info::read): Likewise.
16903 (read_attribute_reprocess): New function definition.
16904 (read_attribute_value): Change API to take an additional out parameter,
16905 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16906 when a non-dwo compile unit has index based attributes.
16907 (read_attribute): Reflect API changes.
16908 (read_addr_index_1): Reflect API changes. Update comments.
16909 (dwarf2_read_addr_index_data): Reflect API changes.
16910 (dwarf2_read_addr_index): Likewise.
16911 (read_str_index): Change API and implementation. This becomes a helper
16912 to be used by the new string index related methods. Update error
16913 message and comments.
16914 (read_dwo_str_index): New function definition.
16915 (read_stub_str_index): Likewise.
16916 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16917 * symfile.h (dwarf2_debug_sections): Likewise.
16918 * xcoffread.c (dwarf2_debug_sections): Likewise.
16919
16920 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16921
16922 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16923 core_reg_sect type to gdb_byte *.
16924 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16925 * cris-tdep.c (fetch_core_registers): Likewise.
16926 * corelow.c (core_target::get_core_register_section): Change
16927 type of `contents` to gdb::byte_vector.
16928
16929 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16930
16931 * tui/tui-wingeneral.c (box_win): Position the title in the center
16932 of the border.
16933
16934 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16935
16936 * corelow.c (core_target::get_core_register_section): Use
16937 std::vector instead of alloca.
16938
16939 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16940
16941 * warning.m4: Add -Wmissing-declarations to build_warnings.
16942 * configure: Re-generate.
16943
16944 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16945
16946 * python/python.c (init__gdb_module): Add declaration.
16947
16948 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16949
16950 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16951 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16952 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16953 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16954 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16955 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16956 * ada-exp.y (_initialize_ada_exp): Add declaration.
16957 * ada-lang.c (_initialize_ada_language): Add declaration.
16958 * ada-tasks.c (_initialize_tasks): Add declaration.
16959 * agent.c (_initialize_agent): Add declaration.
16960 * aix-thread.c (_initialize_aix_thread): Add declaration.
16961 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16962 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16963 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16964 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16965 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16966 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16967 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16968 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16969 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16970 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16971 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16972 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16973 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16974 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16975 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16976 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16977 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16978 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16979 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16980 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16981 * annotate.c (_initialize_annotate): Add declaration.
16982 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16983 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16984 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16985 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16986 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16987 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16988 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16989 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16990 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16991 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16992 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16993 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16994 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16995 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16996 * auto-load.c (_initialize_auto_load): Add declaration.
16997 * auxv.c (_initialize_auxv): Add declaration.
16998 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16999 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17000 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17001 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17002 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17003 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17004 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17005 * breakpoint.c (_initialize_breakpoint): Add declaration.
17006 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17007 * btrace.c (_initialize_btrace): Add declaration.
17008 * charset.c (_initialize_charset): Add declaration.
17009 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17010 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17011 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17012 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17013 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17014 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17015 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17016 * coffread.c (_initialize_coffread): Add declaration.
17017 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17018 * compile/compile.c (_initialize_compile): Add declaration.
17019 * complaints.c (_initialize_complaints): Add declaration.
17020 * completer.c (_initialize_completer): Add declaration.
17021 * copying.c (_initialize_copying): Add declaration.
17022 * corefile.c (_initialize_core): Add declaration.
17023 * corelow.c (_initialize_corelow): Add declaration.
17024 * cp-abi.c (_initialize_cp_abi): Add declaration.
17025 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17026 * cp-support.c (_initialize_cp_support): Add declaration.
17027 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17028 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17029 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17030 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17031 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17032 * ctfread.c (_initialize_ctfread): Add declaration.
17033 * d-lang.c (_initialize_d_language): Add declaration.
17034 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17035 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17036 * dbxread.c (_initialize_dbxread): Add declaration.
17037 * dcache.c (_initialize_dcache): Add declaration.
17038 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17039 * disasm.c (_initialize_disasm): Add declaration.
17040 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17041 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17042 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17043 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17044 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17045 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17046 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17047 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17048 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17049 * elfread.c (_initialize_elfread): Add declaration.
17050 * exec.c (_initialize_exec): Add declaration.
17051 * extension.c (_initialize_extension): Add declaration.
17052 * f-lang.c (_initialize_f_language): Add declaration.
17053 * f-valprint.c (_initialize_f_valprint): Add declaration.
17054 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17055 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17056 * filesystem.c (_initialize_filesystem): Add declaration.
17057 * findcmd.c (_initialize_mem_search): Add declaration.
17058 * findvar.c (_initialize_findvar): Add declaration.
17059 * fork-child.c (_initialize_fork_child): Add declaration.
17060 * frame-base.c (_initialize_frame_base): Add declaration.
17061 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17062 * frame.c (_initialize_frame): Add declaration.
17063 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17064 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17065 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17066 * gcore.c (_initialize_gcore): Add declaration.
17067 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17068 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17069 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17070 * gdbarch.c (_initialize_gdbarch): Add declaration.
17071 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17072 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17073 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17074 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17075 * go-lang.c (_initialize_go_language): Add declaration.
17076 * go32-nat.c (_initialize_go32_nat): Add declaration.
17077 * guile/guile.c (_initialize_guile): Add declaration.
17078 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17079 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17080 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17081 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17082 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17083 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17084 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17085 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17086 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17087 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17088 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17089 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17090 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17091 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17092 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17093 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17094 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17095 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17096 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17097 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17098 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17099 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17100 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17101 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17102 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17103 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17104 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17105 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17106 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17107 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17108 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17109 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17110 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17111 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17112 * infcall.c (_initialize_infcall): Add declaration.
17113 * infcmd.c (_initialize_infcmd): Add declaration.
17114 * inflow.c (_initialize_inflow): Add declaration.
17115 * infrun.c (_initialize_infrun): Add declaration.
17116 * interps.c (_initialize_interpreter): Add declaration.
17117 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17118 * jit.c (_initialize_jit): Add declaration.
17119 * language.c (_initialize_language): Add declaration.
17120 * linux-fork.c (_initialize_linux_fork): Add declaration.
17121 * linux-nat.c (_initialize_linux_nat): Add declaration.
17122 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17123 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17124 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17125 * m2-lang.c (_initialize_m2_language): Add declaration.
17126 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17127 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17128 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17129 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17130 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17131 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17132 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17133 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17134 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17135 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17136 * machoread.c (_initialize_machoread): Add declaration.
17137 * macrocmd.c (_initialize_macrocmd): Add declaration.
17138 * macroscope.c (_initialize_macroscope): Add declaration.
17139 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17140 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17141 * maint.c (_initialize_maint_cmds): Add declaration.
17142 * mdebugread.c (_initialize_mdebugread): Add declaration.
17143 * memattr.c (_initialize_mem): Add declaration.
17144 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17145 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17146 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17147 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17148 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17149 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17150 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17151 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17152 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17153 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17154 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17155 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17156 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17157 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17158 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17159 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17160 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17161 * mipsread.c (_initialize_mipsread): Add declaration.
17162 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17163 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17164 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17165 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17166 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17167 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17168 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17169 * nto-procfs.c (_initialize_procfs): Add declaration.
17170 * objc-lang.c (_initialize_objc_language): Add declaration.
17171 * observable.c (_initialize_observer): Add declaration.
17172 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17173 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17174 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17175 * osabi.c (_initialize_gdb_osabi): Add declaration.
17176 * osdata.c (_initialize_osdata): Add declaration.
17177 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17178 * parse.c (_initialize_parse): Add declaration.
17179 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17180 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17181 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17182 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17183 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17184 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17185 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17186 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17187 * printcmd.c (_initialize_printcmd): Add declaration.
17188 * probe.c (_initialize_probe): Add declaration.
17189 * proc-api.c (_initialize_proc_api): Add declaration.
17190 * proc-events.c (_initialize_proc_events): Add declaration.
17191 * proc-service.c (_initialize_proc_service): Add declaration.
17192 * procfs.c (_initialize_procfs): Add declaration.
17193 * producer.c (_initialize_producer): Add declaration.
17194 * psymtab.c (_initialize_psymtab): Add declaration.
17195 * python/python.c (_initialize_python): Add declaration.
17196 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17197 * record-btrace.c (_initialize_record_btrace): Add declaration.
17198 * record-full.c (_initialize_record_full): Add declaration.
17199 * record.c (_initialize_record): Add declaration.
17200 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17201 * regcache.c (_initialize_regcache): Add declaration.
17202 * reggroups.c (_initialize_reggroup): Add declaration.
17203 * remote-notif.c (_initialize_notif): Add declaration.
17204 * remote-sim.c (_initialize_remote_sim): Add declaration.
17205 * remote.c (_initialize_remote): Add declaration.
17206 * reverse.c (_initialize_reverse): Add declaration.
17207 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17208 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17209 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17210 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17211 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17212 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17213 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17214 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17215 Add declaration.
17216 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17217 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17218 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17219 * rust-exp.y (_initialize_rust_exp): Add declaration.
17220 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17221 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17222 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17223 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17224 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17225 * score-tdep.c (_initialize_score_tdep): Add declaration.
17226 * ser-go32.c (_initialize_ser_dos): Add declaration.
17227 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17228 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17229 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17230 * ser-uds.c (_initialize_ser_socket): Add declaration.
17231 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17232 * serial.c (_initialize_serial): Add declaration.
17233 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17234 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17235 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17236 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17237 * skip.c (_initialize_step_skip): Add declaration.
17238 * sol-thread.c (_initialize_sol_thread): Add declaration.
17239 * solib-aix.c (_initialize_solib_aix): Add declaration.
17240 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17241 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17242 * solib-frv.c (_initialize_frv_solib): Add declaration.
17243 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17244 * solib-target.c (_initialize_solib_target): Add declaration.
17245 * solib.c (_initialize_solib): Add declaration.
17246 * source-cache.c (_initialize_source_cache): Add declaration.
17247 * source.c (_initialize_source): Add declaration.
17248 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17249 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17250 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17251 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17252 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17253 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17254 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17255 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17256 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17257 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17258 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17259 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17260 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17261 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17262 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17263 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17264 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17265 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17266 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17267 * stabsread.c (_initialize_stabsread): Add declaration.
17268 * stack.c (_initialize_stack): Add declaration.
17269 * stap-probe.c (_initialize_stap_probe): Add declaration.
17270 * std-regs.c (_initialize_frame_reg): Add declaration.
17271 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17272 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17273 * symfile.c (_initialize_symfile): Add declaration.
17274 * symmisc.c (_initialize_symmisc): Add declaration.
17275 * symtab.c (_initialize_symtab): Add declaration.
17276 * target.c (_initialize_target): Add declaration.
17277 * target-connection.c (_initialize_target_connection): Add
17278 declaration.
17279 * target-dcache.c (_initialize_target_dcache): Add declaration.
17280 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17281 * thread.c (_initialize_thread): Add declaration.
17282 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17283 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17284 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17285 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17286 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17287 * tracectf.c (_initialize_ctf): Add declaration.
17288 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17289 * tracefile.c (_initialize_tracefile): Add declaration.
17290 * tracepoint.c (_initialize_tracepoint): Add declaration.
17291 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17292 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17293 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17294 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17295 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17296 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17297 * tui/tui.c (_initialize_tui): Add declaration.
17298 * typeprint.c (_initialize_typeprint): Add declaration.
17299 * ui-style.c (_initialize_ui_style): Add declaration.
17300 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17301 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17302 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17303 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17304 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17305 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17306 * unittests/filtered_iterator-selftests.c
17307 (_initialize_filtered_iterator_selftests): Add declaration.
17308 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17309 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17310 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17311 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17312 * unittests/main-thread-selftests.c
17313 (_initialize_main_thread_selftests): Add declaration.
17314 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17315 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17316 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17317 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17318 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17319 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17320 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17321 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17322 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17323 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17324 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17325 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17326 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17327 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17328 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17329 declaration.
17330 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17331 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17332 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17333 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17334 * user-regs.c (_initialize_user_regs): Add declaration.
17335 * utils.c (_initialize_utils): Add declaration.
17336 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17337 * valops.c (_initialize_valops): Add declaration.
17338 * valprint.c (_initialize_valprint): Add declaration.
17339 * value.c (_initialize_values): Add declaration.
17340 * varobj.c (_initialize_varobj): Add declaration.
17341 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17342 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17343 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17344 * windows-nat.c (_initialize_windows_nat): Add declaration.
17345 (_initialize_check_for_gdb_ini): Add declaration.
17346 (_initialize_loadable): Add declaration.
17347 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17348 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17349 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17350 * xcoffread.c (_initialize_xcoffread): Add declaration.
17351 * xml-support.c (_initialize_xml_support): Add declaration.
17352 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17353 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17354 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17355 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17356
17357 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17358
17359 * regformats/regdat.sh: Generate declaration for init function.
17360
17361 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17362
17363 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17364 up.
17365 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17366 close_one_inferior>: New methods.
17367 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17368 pass down target to find_inferior_pid.
17369 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17370 Pass down target to find_inferior_ptid.
17371 (gdbsim_target::create_inferior): Pass down target to
17372 add_thread_silent.
17373 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17374 target down to find_inferior_ptid and switch_to_thread.
17375 (gdbsim_target::close): Update to call close_one_inferior.
17376 (struct resume_data): Remove.
17377 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17378 directly, rather than through a void pointer.
17379 (gdbsim_target::resume): Update to call resume_one_inferior.
17380
17381 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17382
17383 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17384
17385 2020-01-12 Pedro Alves <palves@redhat.com>
17386
17387 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17388 directly for the current inferior instead of
17389 discard_all_inferiors.
17390 (discard_all_inferiors): Delete.
17391
17392 2020-01-11 Tom Tromey <tom@tromey.com>
17393
17394 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17395 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17396 deprecated_safe_get_selected_frame.
17397
17398 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17399
17400 * inferior.c (print_inferior): Switch inferior before printing it.
17401
17402 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17403 Pedro Alves <palves@redhat.com>
17404
17405 * progspace-and-thread.c (switch_to_program_space_and_thread):
17406 Assert there's an inferior for PSPACE. Use
17407 switch_to_inferior_no_thread to switch the inferior too.
17408 * progspace.c (program_space::~program_space): Call
17409 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17410 (program_space::free_all_objfiles): Don't call clear_symtab_users
17411 here.
17412 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17413
17414 2020-01-10 Pedro Alves <palves@redhat.com>
17415
17416 * NEWS: Mention multi-target debugging, "info connections", and
17417 "add-inferior -no-connection".
17418
17419 2020-01-10 Pedro Alves <palves@redhat.com>
17420
17421 * infrun.c: Include "target-connection.h".
17422 (check_multi_target_resumption): New.
17423 (proceed): Call it.
17424 * target-connection.c (make_target_connection_string): Make
17425 extern.
17426 * target-connection.h (make_target_connection_string): Declare.
17427
17428 2020-01-10 Pedro Alves <palves@redhat.com>
17429
17430 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17431 * inferior.c (uiout_field_connection): New function.
17432 (print_inferior): Add new "connection-id" column.
17433 (add_inferior_command): Show connection number/string of added
17434 inferior.
17435 * process-stratum-target.h
17436 (process_stratum_target::connection_string): New virtual method.
17437 (process_stratum_target::connection_number): New field.
17438 * remote.c (remote_target::connection_string): New override.
17439 * target-connection.c: New file.
17440 * target-connection.h: New file.
17441 * target.c (decref_target): Remove process_stratum targets from
17442 the connection list.
17443 (target_stack::push): Add process_stratum targets to the
17444 connection list.
17445
17446 2020-01-10 Pedro Alves <palves@redhat.com>
17447
17448 Revert:
17449 2016-04-12 Pedro Alves <palves@redhat.com>
17450 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17451 Remove references to name.
17452 * serial.h (struct serial) <name>: Delete.
17453
17454 2020-01-10 Pedro Alves <palves@redhat.com>
17455
17456 * gdbarch-selftests.c (register_to_value_test): Remove "target
17457 already pushed" check.
17458
17459 2020-01-10 Pedro Alves <palves@redhat.com>
17460 John Baldwin <jhb@FreeBSD.org>
17461
17462 * aarch64-linux-nat.c
17463 (aarch64_linux_nat_target::thread_architecture): Adjust.
17464 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17465 (task_command_1): Likewise.
17466 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17467 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17468 (aix_thread_target::store_registers)
17469 (aix_thread_target::thread_alive): Adjust.
17470 * amd64-fbsd-tdep.c: Include "inferior.h".
17471 (amd64fbsd_get_thread_local_address): Pass down target.
17472 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17473 thread's gdbarch instead of target_gdbarch.
17474 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17475 get_last_target_status.
17476 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17477 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17478 inferiors.
17479 (update_inserted_breakpoint_locations): Skip if inferiors with no
17480 execution.
17481 (update_global_location_list): When handling moribund locations,
17482 find representative inferior for location's pspace, and use thread
17483 count of its process_stratum target.
17484 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17485 * bsd-uthread.c (bsd_uthread_target::wait): Use
17486 as_process_stratum_target and adjust thread_change_ptid and
17487 add_thread calls.
17488 (bsd_uthread_target::update_thread_list): Use
17489 as_process_stratum_target and adjust find_thread_ptid,
17490 thread_change_ptid and add_thread calls.
17491 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17492 find_thread_ptid call.
17493 * corelow.c (add_to_thread_list): Adjust add_thread call.
17494 (core_target_open): Adjust add_thread_silent and thread_count
17495 calls.
17496 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17497 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17498 * event-top.c (async_disconnect): Pop targets from all inferiors.
17499 * exec.c (add_target_sections): Push exec target on all inferiors
17500 sharing the program space.
17501 (remove_target_sections): Remove the exec target from all
17502 inferiors sharing the program space.
17503 (exec_on_vfork): New.
17504 * exec.h (exec_on_vfork): Declare.
17505 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17506 Pass it down.
17507 (fbsd_nat_target::update_thread_list): Adjust.
17508 (fbsd_nat_target::resume): Adjust.
17509 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17510 down.
17511 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17512 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17513 get_thread_arch_regcache call.
17514 * fork-child.c (gdb_startup_inferior): Pass target down to
17515 startup_inferior and set_executing.
17516 * gdbthread.h (struct process_stratum_target): Forward declare.
17517 (add_thread, add_thread_silent, add_thread_with_info)
17518 (in_thread_list): Add process_stratum_target parameter.
17519 (find_thread_ptid(inferior*, ptid_t)): New overload.
17520 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17521 parameter.
17522 (all_threads()): Delete overload.
17523 (all_threads, all_non_exited_threads): Add process_stratum_target
17524 parameter.
17525 (all_threads_safe): Use brace initialization.
17526 (thread_count): Add process_stratum_target parameter.
17527 (set_resumed, set_running, set_stop_requested, set_executing)
17528 (threads_are_executing, finish_thread_state): Add
17529 process_stratum_target parameter.
17530 (switch_to_thread): Use is_current_thread.
17531 * i386-fbsd-tdep.c: Include "inferior.h".
17532 (i386fbsd_get_thread_local_address): Pass down target.
17533 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17534 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17535 have_inferiors check.
17536 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17537 (inf_ptrace_target::attach): Adjust.
17538 * infcall.c (run_inferior_call): Adjust.
17539 * infcmd.c (run_command_1): Pass target to
17540 scoped_finish_thread_state.
17541 (proceed_thread_callback): Skip inferiors with no execution.
17542 (continue_command): Rename 'all_threads' local to avoid hiding
17543 'all_threads' function. Adjust get_last_target_status call.
17544 (prepare_one_step): Adjust set_running call.
17545 (signal_command): Use user_visible_resume_target. Compare thread
17546 pointers instead of inferior_ptid.
17547 (info_program_command): Adjust to pass down target.
17548 (attach_command): Mark target's 'thread_executing' flag.
17549 (stop_current_target_threads_ns): New, factored out from ...
17550 (interrupt_target_1): ... this. Switch inferior before making
17551 target calls.
17552 * inferior-iter.h
17553 (struct all_inferiors_iterator, struct all_inferiors_range)
17554 (struct all_inferiors_safe_range)
17555 (struct all_non_exited_inferiors_range): Filter on
17556 process_stratum_target too. Remove explicit.
17557 * inferior.c (inferior::inferior): Push dummy target on target
17558 stack.
17559 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17560 Add process_stratum_target parameter, and pass it down.
17561 (have_live_inferiors): Adjust.
17562 (switch_to_inferior_and_push_target): New.
17563 (add_inferior_command, clone_inferior_command): Handle
17564 "-no-connection" parameter. Use
17565 switch_to_inferior_and_push_target.
17566 (_initialize_inferior): Mention "-no-connection" option in
17567 the help of "add-inferior" and "clone-inferior" commands.
17568 * inferior.h: Include "process-stratum-target.h".
17569 (interrupt_target_1): Use bool.
17570 (struct inferior) <push_target, unpush_target, target_is_pushed,
17571 find_target_beneath, top_target, process_target, target_at,
17572 m_stack>: New.
17573 (discard_all_inferiors): Delete.
17574 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17575 (all_inferiors, all_non_exited_inferiors): Add
17576 process_stratum_target parameter.
17577 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17578 (target_last_proc_target): New global.
17579 (follow_fork_inferior): Push target on new inferior. Pass target
17580 to add_thread_silent. Call exec_on_vfork. Handle target's
17581 reference count.
17582 (follow_fork): Adjust get_last_target_status call. Also consider
17583 target.
17584 (follow_exec): Push target on new inferior.
17585 (struct execution_control_state) <target>: New field.
17586 (user_visible_resume_target): New.
17587 (do_target_resume): Call target_async.
17588 (resume_1): Set target's threads_executing flag. Consider resume
17589 target.
17590 (commit_resume_all_targets): New.
17591 (proceed): Also consider resume target. Skip threads of inferiors
17592 with no execution. Commit resumtion in all targets.
17593 (start_remote): Pass current inferior to wait_for_inferior.
17594 (infrun_thread_stop_requested): Consider target as well. Pass
17595 thread_info pointer to clear_inline_frame_state instead of ptid.
17596 (infrun_thread_thread_exit): Consider target as well.
17597 (random_pending_event_thread): New inferior parameter. Use it.
17598 (do_target_wait): Rename to ...
17599 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17600 down.
17601 (threads_are_resumed_pending_p, do_target_wait): New.
17602 (prepare_for_detach): Adjust calls.
17603 (wait_for_inferior): New inferior parameter. Handle it. Use
17604 do_target_wait_1 instead of do_target_wait.
17605 (fetch_inferior_event): Adjust. Switch to representative
17606 inferior. Pass target down.
17607 (set_last_target_status): Add process_stratum_target parameter.
17608 Save target in global.
17609 (get_last_target_status): Add process_stratum_target parameter and
17610 handle it.
17611 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17612 (context_switch): Check inferior_ptid == null_ptid before calling
17613 inferior_thread().
17614 (get_inferior_stop_soon): Pass down target.
17615 (wait_one): Rename to ...
17616 (poll_one_curr_target): ... this.
17617 (struct wait_one_event): New.
17618 (wait_one): New.
17619 (stop_all_threads): Adjust.
17620 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17621 event's target.
17622 (switch_back_to_stepped_thread): Also consider target.
17623 (print_stop_event): Update.
17624 (normal_stop): Update. Also consider the resume target.
17625 * infrun.h (wait_for_inferior): Remove declaration.
17626 (user_visible_resume_target): New declaration.
17627 (get_last_target_status, set_last_target_status): New
17628 process_stratum_target parameter.
17629 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17630 process_stratum_target parameter, and use it.
17631 (clear_inline_frame_state (thread_info*)): New.
17632 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17633 process_stratum_target parameter.
17634 (clear_inline_frame_state (thread_info*)): Declare.
17635 * linux-fork.c (delete_checkpoint_command): Pass target down to
17636 find_thread_ptid.
17637 (checkpoint_command): Adjust.
17638 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17639 instead of just tweaking inferior_ptid.
17640 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17641 (exit_lwp): Pass target down to find_thread_ptid.
17642 (attach_proc_task_lwp_callback): Pass target down to
17643 add_thread/set_running/set_executing.
17644 (linux_nat_target::attach): Pass target down to
17645 thread_change_ptid.
17646 (get_detach_signal): Pass target down to find_thread_ptid.
17647 Consider last target status's target.
17648 (linux_resume_one_lwp_throw, resume_lwp)
17649 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17650 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17651 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17652 (linux_nat_target::async_wait_fd): New.
17653 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17654 target down.
17655 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17656 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17657 * linux-thread-db.c (struct thread_db_info::process_target): New
17658 field.
17659 (add_thread_db_info): Save target.
17660 (get_thread_db_info): New process_stratum_target parameter. Also
17661 match target.
17662 (delete_thread_db_info): New process_stratum_target parameter.
17663 Also match target.
17664 (thread_from_lwp): Adjust to pass down target.
17665 (thread_db_notice_clone): Pass down target.
17666 (check_thread_db_callback): Pass down target.
17667 (try_thread_db_load_1): Always push the thread_db target.
17668 (try_thread_db_load, record_thread): Pass target down.
17669 (thread_db_target::detach): Pass target down. Always unpush the
17670 thread_db target.
17671 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17672 target down. Always unpush the thread_db target.
17673 (find_new_threads_callback, thread_db_find_new_threads_2)
17674 (thread_db_target::update_thread_list): Pass target down.
17675 (thread_db_target::pid_to_str): Pass current inferior down.
17676 (thread_db_target::get_thread_local_address): Pass target down.
17677 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17678 target down.
17679 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17680 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17681 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17682 (procfs_init_inferior): Rename to ...
17683 (procfs_target::procfs_init_inferior): ... this and adjust.
17684 (procfs_target::create_inferior, procfs_notice_thread)
17685 (procfs_do_thread_registers): Adjust.
17686 * ppc-fbsd-tdep.c: Include "inferior.h".
17687 (ppcfbsd_get_thread_local_address): Pass down target.
17688 * proc-service.c (ps_xfer_memory): Switch current inferior and
17689 program space as well.
17690 (get_ps_regcache): Pass target down.
17691 * process-stratum-target.c
17692 (process_stratum_target::thread_address_space)
17693 (process_stratum_target::thread_architecture): Pass target down.
17694 * process-stratum-target.h
17695 (process_stratum_target::threads_executing): New field.
17696 (as_process_stratum_target): New.
17697 * ravenscar-thread.c
17698 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17699 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17700 down.
17701 * record-btrace.c (record_btrace_target::info_record): Adjust.
17702 (record_btrace_target::record_method)
17703 (record_btrace_target::record_is_replaying)
17704 (record_btrace_target::fetch_registers)
17705 (get_thread_current_frame_id, record_btrace_target::resume)
17706 (record_btrace_target::wait, record_btrace_target::stop): Pass
17707 target down.
17708 * record-full.c (record_full_wait_1): Switch to event thread.
17709 Pass target down.
17710 * regcache.c (regcache::regcache)
17711 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17712 process_stratum_target parameter and handle it.
17713 (current_thread_target): New global.
17714 (get_thread_regcache): Add process_stratum_target parameter and
17715 handle it. Switch inferior before calling target method.
17716 (get_thread_regcache): Pass target down.
17717 (get_thread_regcache_for_ptid): Pass target down.
17718 (registers_changed_ptid): Add process_stratum_target parameter and
17719 handle it.
17720 (registers_changed_thread, registers_changed): Pass target down.
17721 (test_get_thread_arch_aspace_regcache): New.
17722 (current_regcache_test): Define a couple local test_target_ops
17723 instances and use them for testing.
17724 (readwrite_regcache): Pass process_stratum_target parameter.
17725 (cooked_read_test, cooked_write_test): Pass mock_target down.
17726 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17727 (get_thread_arch_aspace_regcache): Add process_stratum_target
17728 parameter.
17729 (regcache::target): New method.
17730 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17731 (regcache::registers_changed_ptid): Add process_stratum_target
17732 parameter.
17733 (regcache::m_target): New field.
17734 (registers_changed_ptid): Add process_stratum_target parameter.
17735 * remote.c (remote_state::supports_vCont_probed): New field.
17736 (remote_target::async_wait_fd): New method.
17737 (remote_unpush_and_throw): Add remote_target parameter.
17738 (get_current_remote_target): Adjust.
17739 (remote_target::remote_add_inferior): Push target.
17740 (remote_target::remote_add_thread)
17741 (remote_target::remote_notice_new_inferior)
17742 (get_remote_thread_info): Pass target down.
17743 (remote_target::update_thread_list): Skip threads of inferiors
17744 bound to other targets. (remote_target::close): Don't discard
17745 inferiors. (remote_target::add_current_inferior_and_thread)
17746 (remote_target::process_initial_stop_replies)
17747 (remote_target::start_remote)
17748 (remote_target::remote_serial_quit_handler): Pass down target.
17749 (remote_target::remote_unpush_target): New remote_target
17750 parameter. Unpush the target from all inferiors.
17751 (remote_target::remote_unpush_and_throw): New remote_target
17752 parameter. Pass it down.
17753 (remote_target::open_1): Check whether the current inferior has
17754 execution instead of checking whether any inferior is live. Pass
17755 target down.
17756 (remote_target::remote_detach_1): Pass down target. Use
17757 remote_unpush_target.
17758 (extended_remote_target::attach): Pass down target.
17759 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17760 (remote_target::append_resumption): Pass down target.
17761 (remote_target::append_pending_thread_resumptions)
17762 (remote_target::remote_resume_with_hc, remote_target::resume)
17763 (remote_target::commit_resume): Pass down target.
17764 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17765 (remote_target::interrupt_query)
17766 (remote_target::remove_new_fork_children)
17767 (remote_target::check_pending_events_prevent_wildcard_vcont)
17768 (remote_target::remote_parse_stop_reply)
17769 (remote_target::process_stop_reply): Pass down target.
17770 (first_remote_resumed_thread): New remote_target parameter. Pass
17771 it down.
17772 (remote_target::wait_as): Pass down target.
17773 (unpush_and_perror): New remote_target parameter. Pass it down.
17774 (remote_target::readchar, remote_target::remote_serial_write)
17775 (remote_target::getpkt_or_notif_sane_1)
17776 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17777 down target.
17778 (remote_target::mourn_inferior): Pass down target. Use
17779 remote_unpush_target.
17780 (remote_target::core_of_thread)
17781 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17782 (remote_target::pid_to_exec_file)
17783 (remote_target::thread_handle_to_thread_info): Pass down target.
17784 (remote_target::async_wait_fd): New.
17785 * riscv-fbsd-tdep.c: Include "inferior.h".
17786 (riscv_fbsd_get_thread_local_address): Pass down target.
17787 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17788 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17789 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17790 Adjust.
17791 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17792 * solib-svr4.c (enable_break): Pass down target.
17793 * spu-multiarch.c (parse_spufs_run): Pass down target.
17794 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17795 * target-delegates.c: Regenerate.
17796 * target.c (g_target_stack): Delete.
17797 (current_top_target): Return the current inferior's top target.
17798 (target_has_execution_1): Refer to the passed-in inferior's top
17799 target.
17800 (target_supports_terminal_ours): Check whether the initial
17801 inferior was already created.
17802 (decref_target): New.
17803 (target_stack::push): Incref/decref the target.
17804 (push_target, push_target, unpush_target): Adjust.
17805 (target_stack::unpush): Defref target.
17806 (target_is_pushed): Return bool. Adjust to refer to the current
17807 inferior's target stack.
17808 (dispose_inferior): Delete, and inline parts ...
17809 (target_preopen): ... here. Only dispose of the current inferior.
17810 (target_detach): Hold strong target reference while detaching.
17811 Pass target down.
17812 (target_thread_name): Add assertion.
17813 (target_resume): Pass down target.
17814 (target_ops::beneath, find_target_at): Adjust to refer to the
17815 current inferior's target stack.
17816 (get_dummy_target): New.
17817 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17818 has a thread running.
17819 (initialize_targets): Rename to ...
17820 (_initialize_target): ... this.
17821 * target.h: Include "gdbsupport/refcounted-object.h".
17822 (struct target_ops): Inherit refcounted_object.
17823 (target_ops::shortname, target_ops::longname): Make const.
17824 (target_ops::async_wait_fd): New method.
17825 (decref_target): Declare.
17826 (struct target_ops_ref_policy): New.
17827 (target_ops_ref): New typedef.
17828 (get_dummy_target): Declare function.
17829 (target_is_pushed): Return bool.
17830 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17831 (all_matching_threads_iterator::all_matching_threads_iterator):
17832 Handle filter target.
17833 * thread-iter.h (struct all_matching_threads_iterator, struct
17834 all_matching_threads_range, class all_non_exited_threads_range):
17835 Filter by target too. Remove explicit.
17836 * thread.c (threads_executing): Delete.
17837 (inferior_thread): Pass down current inferior.
17838 (clear_thread_inferior_resources): Pass down thread pointer
17839 instead of ptid_t.
17840 (add_thread_silent, add_thread_with_info, add_thread): Add
17841 process_stratum_target parameter. Use it for thread and inferior
17842 searches.
17843 (is_current_thread): New.
17844 (thread_info::deletable): Use it.
17845 (find_thread_ptid, thread_count, in_thread_list)
17846 (thread_change_ptid, set_resumed, set_running): New
17847 process_stratum_target parameter. Pass it down.
17848 (set_executing): New process_stratum_target parameter. Pass it
17849 down. Adjust reference to 'threads_executing'.
17850 (threads_are_executing): New process_stratum_target parameter.
17851 Adjust reference to 'threads_executing'.
17852 (set_stop_requested, finish_thread_state): New
17853 process_stratum_target parameter. Pass it down.
17854 (switch_to_thread): Also match inferior.
17855 (switch_to_thread): New process_stratum_target parameter. Pass it
17856 down.
17857 (update_threads_executing): Reimplement.
17858 * top.c (quit_force): Pop targets from all inferior.
17859 (gdb_init): Don't call initialize_targets.
17860 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17861 Declare.
17862 (windows_add_thread, windows_delete_thread): Adjust.
17863 (get_windows_debug_event): Rename to ...
17864 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17865 * tracefile-tfile.c (tfile_target_open): Pass down target.
17866 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17867 Forward declare.
17868 (switch_to_thread): Add process_stratum_target parameter.
17869 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17870 parameter. Use it.
17871 (mi_on_resume): Pass target down.
17872 * nat/fork-inferior.c (startup_inferior): Add
17873 process_stratum_target parameter. Pass it down.
17874 * nat/fork-inferior.h (startup_inferior): Add
17875 process_stratum_target parameter.
17876 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17877
17878 2020-01-10 Pedro Alves <palves@redhat.com>
17879
17880 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17881 directly. Instead find the first thread in the thread list and
17882 use switch_to_thread.
17883
17884 2020-01-10 Pedro Alves <palves@redhat.com>
17885
17886 * remote.c (remote_target::remote_add_inferior): Don't bind a
17887 process to the current inferior if the current inferior is already
17888 bound to a process.
17889
17890 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17891 Pedro Alves <palves@redhat.com>
17892
17893 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17894 If no process is specified, return null_ptid instead of
17895 inferior_ptid.
17896 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17897 TARGET_WAITKIND_SIGNALLED with no pid.
17898
17899 2020-01-10 Pedro Alves <palves@redhat.com>
17900
17901 * remote.c (first_remote_resumed_thread): New.
17902 (remote_target::wait_as): Use it as default event_ptid instead of
17903 inferior_ptid.
17904
17905 2020-01-10 Pedro Alves <palves@redhat.com>
17906
17907 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17908
17909 2020-01-10 Pedro Alves <palves@redhat.com>
17910
17911 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17912 not -1.
17913
17914 2020-01-10 Pedro Alves <palves@redhat.com>
17915
17916 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17917 ptid to get_last_target_status.
17918 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17919 ptid to get_last_target_status.
17920 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17921 get_last_target_status.
17922 (info_program_command): Don't pass a target_waitstatus to
17923 get_last_target_status.
17924 * infrun.c (init_wait_for_inferior): Use
17925 nullify_last_target_wait_ptid.
17926 (get_last_target_status): Handle nullptr arguments.
17927 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17928 (print_stop_event): Don't pass a ptid to get_last_target_status.
17929 (normal_stop): Don't pass a ptid to get_last_target_status.
17930 * infrun.h (get_last_target_status, set_last_target_status): Move
17931 comments here and update.
17932 (nullify_last_target_wait_ptid): Declare.
17933 * linux-fork.c (fork_load_infrun_state): Remove local extern
17934 declaration of nullify_last_target_wait_ptid.
17935 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17936 to get_last_target_status.
17937
17938 2020-01-10 Pedro Alves <palves@redhat.com>
17939
17940 * gdbthread.h (scoped_restore_current_thread)
17941 <dont_restore, restore, m_dont_restore>: Declare.
17942 * thread.c (thread_alive): Add assertion. Return bool.
17943 (switch_to_thread_if_alive): New.
17944 (prune_threads): Switch inferior/thread.
17945 (print_thread_info_1): Switch thread before calling target methods.
17946 (scoped_restore_current_thread::restore): New, factored out from
17947 ...
17948 (scoped_restore_current_thread::~scoped_restore_current_thread):
17949 ... this.
17950 (scoped_restore_current_thread::scoped_restore_current_thread):
17951 Add assertion.
17952 (thread_apply_all_command, thread_select): Use
17953 switch_to_thread_if_alive.
17954 * infrun.c (proceed, restart_threads, handle_signal_stop)
17955 (switch_back_to_stepped_thread): Switch current thread before
17956 calling target methods.
17957
17958 2020-01-10 Pedro Alves <palves@redhat.com>
17959
17960 * inferior.c (switch_to_inferior_no_thread): New function,
17961 factored out from ...
17962 (inferior_command): ... here.
17963 * inferior.h (switch_to_inferior_no_thread): Declare.
17964 * mi/mi-main.c (run_one_inferior): Use
17965 switch_to_inferior_no_thread.
17966
17967 2020-01-10 Pedro Alves <palves@redhat.com>
17968
17969 * infcmd.c (kill_command): Remove dead code.
17970
17971 2020-01-10 Pedro Alves <palves@redhat.com>
17972
17973 * remote.c (remote_target::mourn_inferior): No longer check
17974 whether the target is running.
17975
17976 2020-01-10 Pedro Alves <palves@redhat.com>
17977
17978 * corelow.c (core_target::has_execution): Change parameter type to
17979 inferior pointer.
17980 * inferior.c (number_of_live_inferiors): Use
17981 inferior::has_execution instead of target_has_execution_1.
17982 * inferior.h (inferior::has_execution): New.
17983 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17984 inferior::has_execution instead of target_has_execution_1.
17985 * process-stratum-target.c
17986 (process_stratum_target::has_execution): Change parameter type to
17987 inferior pointer. Check the inferior's PID instead of
17988 inferior_ptid.
17989 * process-stratum-target.h
17990 (process_stratum_target::has_execution): Change parameter type to
17991 inferior pointer.
17992 * record-full.c (record_full_core_target::has_execution): Change
17993 parameter type to inferior pointer.
17994 * target.c (target_has_execution_1): Change parameter type to
17995 inferior pointer.
17996 (target_has_execution_current): Adjust.
17997 * target.h (target_ops::has_execution): Change parameter type to
17998 inferior pointer.
17999 (target_has_execution_1): Change parameter type to inferior
18000 pointer. Change return type to bool.
18001 * tracefile.h (tracefile_target::has_execution): Change parameter
18002 type to inferior pointer.
18003
18004 2020-01-10 Pedro Alves <palves@redhat.com>
18005
18006 * exceptions.c (print_flush): Remove current_top_target() check.
18007
18008 2020-01-10 Pedro Alves <palves@redhat.com>
18009
18010 * remote.c (show_remote_exec_file): Show the current inferior's
18011 exec-file instead of the command variable's value.
18012
18013 2020-01-10 Pedro Alves <palves@redhat.com>
18014
18015 * record-full.c (record_full_resume_ptid): New global.
18016 (record_full_target::resume): Set it.
18017 (record_full_wait_1): Use record_full_resume_ptid instead of
18018 inferior_ptid.
18019
18020 2020-01-10 Pedro Alves <palves@redhat.com>
18021
18022 * gdbthread.h (scoped_restore_current_thread)
18023 <dont_restore, restore, m_dont_restore>: Declare.
18024 * thread.c (thread_alive): Add assertion. Return bool.
18025 (switch_to_thread_if_alive): New.
18026 (prune_threads): Switch inferior/thread.
18027 (print_thread_info_1): Switch thread before calling target methods.
18028 (scoped_restore_current_thread::restore): New, factored out from
18029 ...
18030 (scoped_restore_current_thread::~scoped_restore_current_thread):
18031 ... this.
18032 (scoped_restore_current_thread::scoped_restore_current_thread):
18033 Add assertion.
18034 (thread_apply_all_command, thread_select): Use
18035 switch_to_thread_if_alive.
18036
18037 2020-01-10 George Barrett <bob@bob131.so>
18038
18039 * stap-probe.c (stap_modify_semaphore): Don't check for null
18040 semaphores.
18041 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18042 for null semaphores.
18043
18044 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18045
18046 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18047 all source windows, and maintain horizontal scroll status while
18048 doing so.
18049
18050 2020-01-09 Tom Tromey <tom@tromey.com>
18051
18052 PR tui/18932:
18053 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18054 update_source_window, not print_source_lines.
18055
18056 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18057
18058 * tui/tui.c (tui_enable): Register tui hooks after calling
18059 tui_display_main.
18060
18061 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18062
18063 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18064
18065 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18066
18067 * thread.c (print_thread_info_1): Fix indentation.
18068
18069 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18070
18071 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18072 unique_xmalloc_ptr outside the if to always free the demangled name.
18073
18074 2020-01-08 Tom Tromey <tromey@adacore.com>
18075
18076 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18077 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18078 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18079 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18080 Remove.
18081 (section_offsets): New typedef.
18082 * symtab.c (fixup_section, get_msymbol_address): Update.
18083 * symmisc.c (dump_msymbols): Update.
18084 * symfile.h (relative_addr_info_to_section_offsets)
18085 (symfile_map_offsets_to_segments): Update.
18086 * symfile.c (build_section_addr_info_from_objfile)
18087 (init_objfile_sect_indices): Update.
18088 (struct place_section_arg): Change type of "offsets".
18089 (place_section): Update.
18090 (relative_addr_info_to_section_offsets): Change type of
18091 "section_offsets". Remove "num_sections" parameter.
18092 (default_symfile_offsets, syms_from_objfile_1)
18093 (set_objfile_default_section_offset): Update.
18094 (reread_symbols): No need to preserve section offsets by hand.
18095 (symfile_map_offsets_to_segments): Change type of "offsets".
18096 * stap-probe.c (relocate_address): Update.
18097 * stabsread.h (process_one_symbol): Update.
18098 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18099 (solib_target_relocate_section_addresses): Update.
18100 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18101 Update.
18102 * solib-frv.c (frv_relocate_main_executable): Update.
18103 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18104 * solib-aix.c (solib_aix_get_section_offsets): Change return
18105 type.
18106 (solib_aix_solib_create_inferior_hook): Update.
18107 * remote.c (remote_target::get_offsets): Update.
18108 * psymtab.c (find_pc_sect_psymtab): Update.
18109 * psympriv.h (struct partial_symbol) <address, text_low,
18110 text_high>: Update.
18111 * objfiles.h (obj_section_offset): Update.
18112 (struct objfile) <section_offsets>: Change type.
18113 <num_sections>: Remove.
18114 (objfile_relocate): Update.
18115 * objfiles.c (entry_point_address_query): Update
18116 (relocate_one_symbol): Change type of "section_offsets".
18117 (objfile_relocate1, objfile_relocate1): Change type of
18118 "new_offsets".
18119 (objfile_rebase1): Update.
18120 * mipsread.c (mipscoff_symfile_read): Update.
18121 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18122 parameter.
18123 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18124 (parse_external, psymtab_to_symtab_1): Update.
18125 * machoread.c (macho_symfile_offsets): Update.
18126 * ia64-tdep.c (ia64_find_unwind_table): Update.
18127 * hppa-tdep.c (read_unwind_info): Update.
18128 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18129 * dwarf2read.c (create_addrmap_from_index)
18130 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18131 (process_psymtab_comp_unit_reader, add_partial_symbol)
18132 (add_partial_subprogram, process_full_comp_unit)
18133 (read_file_scope, read_func_scope, read_lexical_block_scope)
18134 (read_call_site_scope, dwarf2_rnglists_process)
18135 (dwarf2_ranges_process, dwarf2_ranges_read)
18136 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18137 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18138 Update.
18139 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18140 Update.
18141 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18142 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18143 (process_one_symbol): Change type of "section_offsets".
18144 * ctfread.c (get_objfile_text_range): Update.
18145 * coffread.c (coff_symtab_read, enter_linenos)
18146 (process_coff_symbol): Update.
18147 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18148 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18149
18150 2020-01-08 Tom Tromey <tromey@adacore.com>
18151
18152 * dwarf2read.c (parse_macro_definition): Use std::string.
18153 (parse_macro_definition): Likewise.
18154
18155 2020-01-08 Tom Tromey <tromey@adacore.com>
18156
18157 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18158 (ATTR_ALLOC_CHUNK): Remove.
18159
18160 2020-01-08 Tom Tromey <tromey@adacore.com>
18161
18162 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18163
18164 2020-01-08 Tom Tromey <tromey@adacore.com>
18165
18166 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18167 (dwarf2_compute_name, open_dwo_file): Likewise.
18168 (process_enumeration_scope): Use std::vector.
18169 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18170 (partial_die_info::fixup, dwarf2_start_subfile)
18171 (guess_full_die_structure_name, dwarf2_name): Likewise.
18172 (determine_prefix): Update.
18173 (guess_full_die_structure_name): Make return type const.
18174 (partial_die_full_name): Return unique_xmalloc_ptr.
18175 (DW_FIELD_ALLOC_CHUNK): Remove.
18176
18177 2020-01-07 Tom Tromey <tromey@adacore.com>
18178
18179 PR build/24937:
18180 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18181
18182 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18183
18184 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18185
18186 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18187
18188 * stack.c (print_frame_info): Move disassemble_next_line code
18189 inside source_print block.
18190
18191 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18192
18193 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18194 gdb/signals.h, as we are now using native signal symbols.
18195
18196 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18197
18198 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18199 overflow by an early check of content vs threshold.
18200 * tui/tui-source.c (tui_source_window::line_is_displayed):
18201 Likewise.
18202
18203 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18204
18205 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18206
18207 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18208
18209 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18210 export table if no section contains it's RVA.
18211
18212 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18213
18214 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18215
18216 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18217
18218 * source.c (print_source_lines_base): Set last_line_listed.
18219
18220 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18221
18222 * tui/tui-disasm.c: Remove trailing spaces.
18223
18224 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18225 Pedro Alves <palves@redhat.com>
18226
18227 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18228 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18229 (windows_gdb_signal_to_target): New function, uses the above
18230 enumeration to convert GDB internal signal codes to equivalent
18231 Windows codes.
18232 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18233 * windows-nat.c: Include "gdb_wait.h".
18234 (get_windows_debug_event): Extract the fatal exception from the
18235 exit status and convert to the equivalent Posix signal number.
18236 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18237 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18238 * gdbsupport/gdb_wait.c: New file, implements
18239 windows_status_to_termsig.
18240 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18241 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18242
18243 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18244
18245 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18246 show_layout.
18247
18248 2020-01-05 Luis Machado <luis.machado@linaro.org>
18249
18250 * aarch64-linux-nat.c
18251 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18252 and bfd_mach_aarch64.
18253
18254 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18255
18256 * ui-file.c (stdio_file::can_emit_style_escape)
18257 (tee_file::can_emit_style_escape): Ensure style is used also on
18258 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18259 to gdb_stdout.
18260 * main.c (set_gdb_data_directory): Use file style to output the
18261 warning that the given pathname is not a directory.
18262 * top.c (show_history_filename, gdb_safe_append_history)
18263 (show_gdb_datadir): Use file style.
18264
18265 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18266
18267 * solib-target.c (struct lm_info_target):
18268 Change offsets to be a unique_xmalloc_ptr.
18269 (solib_target_relocate_section_addresses): Update.
18270
18271 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18272
18273 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18274
18275 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18276
18277 * MAINTAINERS (Write After Approval): Add myself.
18278
18279 2020-01-02 Luis Machado <luis.machado@linaro.org>
18280
18281 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18282 Cell BE architecture.
18283 * target.h (struct target_ops) <thread_architecture>: Likewise.
18284
18285 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18286
18287 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18288
18289 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18290
18291 * MAINTAINERS (Write After Approval): Add myself.
18292
18293 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18294
18295 * gdbarch.sh: Update copyright year range of generated files.
18296
18297 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18298
18299 Update copyright year range in all GDB files.
18300
18301 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18302
18303 * copyright.py: Convert to Python 3.
18304
18305 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18306
18307 * copyright.py: Adapt after move of gnulib directory from gdb
18308 directory to toplevel directory.
18309
18310 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18311
18312 * copyright.py (main): Exit if run from the wrong directory.
18313
18314 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18315
18316 * top.c (print_gdb_version): Change copyright year to 2020.
18317
18318 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18319
18320 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18321
18322 For older changes see ChangeLog-2019.
18323 \f
18324 Local Variables:
18325 mode: change-log
18326 left-margin: 8
18327 fill-column: 74
18328 version-control: never
18329 coding: utf-8
18330 End:
This page took 0.376281 seconds and 5 git commands to generate.