gdb: multi-line support for "document" command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-15 Rae Kim <rae.kim@gmail.com>
2
3 * cli/cli-script.c (do_document_command): Rename from
4 document_command. Handle multi-line input.
5 (multi_line_command_p): Handle document_control.
6 (build_command_line): Likewise.
7 (execute_control_command_1): Likewise.
8 (process_next_line): Likewise.
9 (document_command): Call do_document_command.
10 * cli/cli-script.h (enum command_control_type): Add
11 document_control.
12
13 2020-12-15 Tom Tromey <tom@tromey.com>
14
15 * stap-probe.c (stap_probe::evaluate_argument): Use
16 evaluate_expression.
17 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
18 evaluate_expression.
19 * value.h (evaluate_expression): Add expect_type parameter.
20 * objc-lang.c (print_object_command): Call evaluate_expression.
21 * eval.c (evaluate_expression): Add expect_type parameter.
22
23 2020-12-15 Tom Tromey <tom@tromey.com>
24
25 * varobj.c (varobj_create): Use first_opcode.
26 * value.c (init_if_undefined_command): Use first_opcode.
27 * typeprint.c (whatis_exp): Use first_opcode.
28 * tracepoint.c (validate_actionline): Use first_opcode.
29 (encode_actions_1): Use first_opcode.
30 * stack.c (return_command): Use first_opcode.
31 * expression.h (struct expression) <first_opcode>: New method.
32 * eval.c (parse_and_eval_type): Use first_opcode.
33 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
34
35 2020-12-15 Tom Tromey <tom@tromey.com>
36
37 * f-lang.c (evaluate_subexp_f): Update.
38 * expression.h (evaluate_subexp_do_call): Update.
39 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
40 nargs, argvec with array_view.
41 (evaluate_funcall): Update.
42
43 2020-12-15 Tom Tromey <tom@tromey.com>
44
45 * ada-lang.c (num_component_specs): Remove.
46 (assign_aggregate): Update.
47 (aggregate_assign_positional, aggregate_assign_from_choices)
48 (aggregate_assign_others, add_component_interval): Change
49 arguments.
50
51 2020-12-15 Tom Tromey <tromey@adacore.com>
52
53 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
54 command names.
55
56 2020-12-14 Tom Tromey <tom@tromey.com>
57
58 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
59 * typeprint.c (whatis_exp): Always use evaluate_type.
60 (maintenance_print_type): Likewise. Simplify.
61
62 2020-12-14 Tom Tromey <tromey@adacore.com>
63
64 * dictionary.c (language_defn::search_name_hash): Ignore "B".
65 * ada-lang.c (advance_wild_match): Ignore "B".
66 (full_match): Remove.
67 (do_full_match): Rewrite.
68
69 2020-12-14 Tom Tromey <tromey@adacore.com>
70
71 * ada-lang.c (get_var_value): Only consider exact matches.
72
73 2020-12-14 Tom Tromey <tromey@adacore.com>
74
75 * dwarf2/read.c (rewrite_array_type): New function.
76 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
77
78 2020-12-14 Tom Tromey <tromey@adacore.com>
79
80 * valarith.c (fixed_point_binop): Call error on division by zero.
81
82 2020-12-13 Tom Tromey <tom@tromey.com>
83
84 * gdbtypes.c (safe_parse_type): Make argument const.
85 * value.h (parse_and_eval_type): Make argument const.
86 * eval.c (parse_and_eval_type): Make argument const.
87
88 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * NEWS: Mention new commands.
91 * target-dcache.c: Add 'cli/cli-cmds.h' include.
92 (maint_flush_dcache_command): New function.
93 (_initialize_target_dcache): Create new 'maint flush dcache'
94 command.
95
96 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * NEWS: Mention new commands, and that the old commands are now
99 deprecated.
100 * cli/cli-cmds.c (maintenanceflushlist): Define.
101 * cli/cli-cmds.h (maintenanceflushlist): Declare.
102 * maint.c (_initialize_maint_cmds): Initialise
103 maintenanceflushlist.
104 * regcache.c: Add 'cli/cli-cmds.h' include.
105 (reg_flush_command): Add header comment.
106 (_initialize_regcache): Create new 'maint flush register-cache'
107 command, make 'flushregs' an alias.
108 * symtab.c: Add 'cli/cli-cmds.h' include.
109 (_initialize_symtab): Create new 'maint flush symbol-cache'
110 command, make old command an alias.
111
112 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
115 result from lookup_cmd_composition_1, use the prefixes from both
116 the command and the alias instead.
117 (lookup_cmd_composition_1): Initial prefix command is the based on
118 the search list being passed in. Simplify the logic for tracking
119 the prefix command. Replace a use of alloca with a local
120 std::string.
121
122 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
125 of NULL. Don't print message piece by piece, but sentence at a
126 time to allow internationalisation. Some whitespace cleanup.
127
128 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 PR cli/15104
131 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
132 deprecated_cmd_warning.
133 (deprecated_cmd_warning): Take extra parameter, call
134 lookup_cmd_composition_1 and pass new parameter through.
135 (lookup_cmd_composition_1): New function, takes implementation of
136 lookup_cmd_composition but with extra parameter.
137 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
138 passing in cmdlist.
139 * command.h (deprecated_cmd_warning): Add extra parameter to
140 declaration.
141 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
142
143 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
146 command.h, add extra parameter, and use this to guard giving a
147 warning.
148 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
149 include argument names in declaration, add new argument.
150 * completer.c (complete_line_internal_1): Remove unneeded
151 brackets, pass extra argument to lookup_cmd_1.
152
153 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * infrun.h (debug_infrun): Make a bool.
156 * infrun.c (debug_infrun): Make a bool.
157 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
158 debug infrun".
159
160 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
161
162 * displaced-stepping.h (displaced_debug_printf): Use
163 debug_prefixed_printf_cond.
164 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
165 (dwarf_read_debug_printf_v): Likewise.
166 * infrun.h (infrun_debug_printf): Likewise.
167 * linux-nat.c (linux_nat_debug_printf): Likewise.
168
169 2020-12-11 Tom Tromey <tom@tromey.com>
170
171 * p-exp.y (intvar): Remove global.
172 (DOLLAR_VARIABLE): Change type.
173 (start): Update.
174 (exp): Call write_dollar_variable here...
175 (yylex): ... not here.
176 * m2-exp.y (DOLLAR_VARIABLE): Change type.
177 (variable): Call write_dollar_variable here...
178 (yylex): ... not here.
179 * f-exp.y (DOLLAR_VARIABLE): Change type.
180 (exp): Call write_dollar_variable here...
181 (yylex): ... not here.
182
183 2020-12-11 Tom Tromey <tom@tromey.com>
184
185 * varobj.c (varobj_create): Update.
186 (install_variable): Return void.
187
188 2020-12-11 Tom Tromey <tom@tromey.com>
189
190 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
191
192 2020-12-11 Tom Tromey <tom@tromey.com>
193
194 * varobj.c (varobj_clear_saved_item): Remove.
195 (update_dynamic_varobj_children): Update.
196 (varobj::~varobj): Don't call varobj_clear_saved_item.
197
198 2020-12-11 Tom Tromey <tom@tromey.com>
199
200 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
201 (update_dynamic_varobj_children, create_child)
202 (create_child_with_value): Update.
203 * varobj-iter.h (struct varobj_item) <value>: Now a
204 value_ref_ptr.
205 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
206
207 2020-12-11 Tom Tromey <tom@tromey.com>
208
209 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
210 (varobj_get_iterator): Return unique_ptr.
211 (update_dynamic_varobj_children, install_visualizer)
212 (varobj::~varobj): Update.
213 * python/python-internal.h (py_varobj_get_iterator): Return
214 unique_ptr.
215 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
216
217 2020-12-11 Tom Tromey <tom@tromey.com>
218
219 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
220 (varobj_clear_saved_item, update_dynamic_varobj_children):
221 Update.
222
223 2020-12-11 Tom Tromey <tom@tromey.com>
224
225 * varobj.c (update_dynamic_varobj_children): Update.
226 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
227 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
228 type.
229 (py_varobj_iter::next): Likewise.
230
231 2020-12-11 Tom Tromey <tom@tromey.com>
232
233 * varobj.c (update_dynamic_varobj_children, install_visualizer)
234 (varobj::~varobj): Update.
235 * varobj-iter.h (struct varobj_iter): Change to interface class.
236 (struct varobj_iter_ops): Remove.
237 (varobj_iter_next, varobj_iter_delete): Remove.
238 * python/py-varobj.c (struct py_varobj_iter): Derive from
239 varobj_iter. Add constructor, destructor. Rename members.
240 (py_varobj_iter::~py_varobj_iter): Rename from
241 py_varobj_iter_dtor.
242 (py_varobj_iter::next): Rename from py_varobj_iter_next.
243 (py_varobj_iter_ops): Remove.
244 (py_varobj_iter): Rename from py_varobj_iter_ctor.
245 (py_varobj_iter_new): Remove.
246 (py_varobj_get_iterator): Update.
247
248 2020-12-11 Tom Tromey <tom@tromey.com>
249
250 * varobj.h (all_root_varobjs): Take a function_view.
251 * varobj.c (all_root_varobjs): Take a function_view.
252 (varobj_invalidate_iter): Remove unused parameter.
253 (varobj_invalidate): Update.
254 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
255 (mi_cmd_var_update_iter): Change parameters.
256
257 2020-12-11 Tom Tromey <tom@tromey.com>
258
259 * varobj.c (struct varobj_root) <next>: Remove.
260 (struct vlist): Remove.
261 (rootlist): Now a std::list.
262 (install_variable, uninstall_variable, all_root_varobjs): Update.
263
264 2020-12-11 Tom Tromey <tom@tromey.com>
265
266 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
267 (varobj_table): Now htab_t.
268 (varobj_get_handle, install_variable, uninstall_variable):
269 Update.
270 (hash_varobj, eq_varobj_and_string): New functions.
271 (hash_varobj): Update.
272
273 2020-12-11 Tom Tromey <tom@tromey.com>
274
275 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
276 * ada-lang.c (check_status_exception): Update.
277 * breakpoint.c (free_bp_location): Remove.
278 (decref_bp_location): Use bp_location_ref_policy.
279 (bpstats::bpstats): Don't call incref_bp_location.
280 (bpstats::~bpstats): Remove.
281 (bpstats::bpstats): Update.
282 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
283 (bp_location::bp_location): Update.
284 (incref_bp_location): Remove.
285 (bkpt_print_it): Update.
286 * breakpoint.h (class bp_location): Derive from
287 refcounted_object.
288 (struct bpstats): Remove destructor.
289 <bp_location_at>: Now a bp_location_ref_ptr.
290 <refc>: Remove.
291 (bp_location_ref_ptr): New typedef.
292 (struct bp_location_ref_policy): New.
293
294 2020-12-11 Tom Tromey <tom@tromey.com>
295
296 * thread.c (class scoped_inc_dec_ref): Remove.
297 (tp_array_compar_ascending, tp_array_compar_descending): Change
298 parameter types.
299 (thread_apply_all_command): Use thread_info_ref.
300
301 2020-12-11 Tom Tromey <tom@tromey.com>
302
303 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
304 (stop_context::stop_context): Update.
305 (stop_context::~stop_context): Remove.
306
307 2020-12-11 Tom Tromey <tom@tromey.com>
308
309 * inferior.c (current_inferior_): Change type.
310 (current_inferior, set_current_inferior, initialize_inferiors):
311 Update.
312
313 2020-12-11 Tom Tromey <tom@tromey.com>
314
315 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
316 Change type.
317
318 2020-12-11 Tom Tromey <tromey@adacore.com>
319
320 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
321 field.
322 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
323 (read_atcb): Use cpu_id_offset.
324
325 2020-12-10 Kevin Buettner <kevinb@redhat.com>
326
327 * ada-lang.c (ada_fold_name): Fix off-by-one error.
328
329 2020-12-10 Luis Machado <luis.machado@linaro.org>
330
331 * breakpoint.c (should_be_inserted): Don't output newline.
332
333 2020-12-10 Luis Machado <luis.machado@linaro.org>
334
335 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
336 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
337 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
338 * arch/aarch64.h: ... here.
339 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
340 (aarch64_maybe_swab128): New function.
341 (aarch64_sve_regs_copy_to_reg_buf)
342 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
343 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
344 the data field.
345 (TF_REG_VALUE_BYTES): New enum value.
346 (trad_frame_value_bytes_p): New function.
347 (trad_frame_set_value_bytes): New function.
348 (trad_frame_set_reg_value_bytes): New function.
349 (trad_frame_get_prev_register): Handle register values saved as bytes.
350 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
351 (struct trad_frame_saved_reg) <data>: New field.
352 (trad_frame_set_value_bytes): New prototype.
353 (trad_frame_value_bytes_p): New prototype.
354
355 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
356
357 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
358 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
359 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
360
361 2020-12-09 Tom Tromey <tromey@adacore.com>
362
363 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
364
365 2020-12-09 Tom Tromey <tromey@adacore.com>
366
367 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
368 and "denominator" to gdb_mpz. Handle block forms.
369 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
370 "denominator" to gdb_mpz.
371 (finish_fixed_point_type): Update.
372 (has_zero_over_zero_small_attribute): Update.
373
374 2020-12-09 Tom Tromey <tromey@adacore.com>
375
376 * expprint.c (op_name): Update.
377 * expression.h (enum exp_opcode): Update.
378 * std-operator.def: Add more opcodes.
379 * ada-operator.def, fortran-operator.def: Remove, moving contents
380 into std-operator.def.
381
382 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
385 Return {} instead of false.
386 (get_discrete_bounds): Compute high bound only if low bound is
387 valid.
388
389 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
390
391 PR 26875, PR 26901
392 * gdbtypes.c (get_discrete_low_bound): Make non-static.
393 (get_discrete_high_bound): Make non-static.
394 * gdbtypes.h (get_discrete_low_bound): New declaration.
395 (get_discrete_high_bound): New declaration.
396 * valarith.c (value_subscript): Only fetch high bound if
397 necessary.
398
399 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
400
401 * gdbtypes.c (get_discrete_bounds): Implement with
402 get_discrete_low_bound and get_discrete_high_bound.
403 (get_discrete_low_bound): New.
404 (get_discrete_high_bound): New.
405
406 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
407
408 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
409 callers.
410 * gdbtypes.c (get_discrete_bounds): Return bool.
411
412 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
413
414 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
415 (ada_value_slice): Adjust.
416 (pos_atr): Adjust.
417 * gdbtypes.c (get_discrete_bounds): Adjust.
418 (discrete_position): Return optional.
419 * gdbtypes.h (discrete_position): Return optional.
420
421 2020-12-07 Tom Tromey <tromey@adacore.com>
422
423 * maint.c (_initialize_maint_cmds): Use expression command
424 completer for "maint print type".
425
426 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427
428 * completer.c (complete_explicit_location): Also add keywords
429 that start with '-' to the completion list.
430
431 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
434 keyword may be followed by any keyword.
435 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
436 'toklen' in the case for "-force-condition".
437
438 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439
440 * main.c (catch_command_errors): Add a flag parameter; invoke
441 `bpstat_do_actions` if the flag is set.
442 (execute_cmdargs): Update a call to `catch_command_errors`.
443
444 2020-12-07 Tom de Vries <tdevries@suse.de>
445
446 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
447
448 2020-12-06 Tom Tromey <tom@tromey.com>
449
450 PR ada/26999
451 * ada-lang.c (replace_operator_with_call): Rewrite.
452
453 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
454
455 PR breakpoints/27009
456 * s390-tdep.h (op_bc): Correct BC opcode value.
457
458 2020-12-06 Joel Brobecker <brobecker@adacore.com>
459
460 * gmp-utils.h (gdb_mpz::safe_export): New private method.
461 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
462 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
463 (gdb_mpz::safe_export): New method.
464 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
465 Update function description.
466 (check_as_integer_raises_out_of_range_error): New function.
467 (gdb_mpz_as_integer_out_of_range): New function.
468 (_initialize_gmp_utils_selftests): Register
469 gdb_mpz_as_integer_out_of_range as a selftest.
470
471 2020-12-05 Joel Brobecker <brobecker@adacore.com>
472
473 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
474 TARGET_CHAR_BIT.
475 (gdb_mpz::write): Likewise.
476
477 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
478
479 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
480 number of displaced step buffers.
481
482 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
483
484 * displaced-stepping.h (struct displaced_step_buffer): Rename
485 to...
486 (struct displaced_step_buffers): ... this.
487 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
488 <struct displaced_step_buffer>: New inner class.
489 <m_buffers>: New.
490 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
491 to...
492 (displaced_step_buffers::prepare): ... this, adjust for multiple
493 buffers.
494 (displaced_step_buffer::finish): Rename to...
495 (displaced_step_buffers::finish): ... this, adjust for multiple
496 buffers.
497 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
498 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
499 adjust for multiple buffers.
500 (displaced_step_buffer::restore_in_ptid): Rename to...
501 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
502 multiple buffers.
503 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
504 for num_disp_step_buffers.
505 * linux-tdep.c (struct linux_gdbarch_data)
506 <num_disp_step_buffers>: New field.
507 (struct linux_info) <disp_step_buf>: Rename to...
508 <disp_step_bufs>: ... this, change type to
509 displaced_step_buffers.
510 (linux_displaced_step_prepare): Use
511 linux_gdbarch_data::num_disp_step_buffers to create that number
512 of buffers.
513 (linux_displaced_step_finish): Adjust.
514 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
515 (linux_displaced_step_restore_all_in_ptid): Adjust.
516 (linux_init_abi): Change supports_displaced_step parameter for
517 num_disp_step_buffers, save it in linux_gdbarch_data.
518 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
519 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
520 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
521 supports_displaced_step parameter for num_disp_step_buffers.
522 (amd64_linux_init_abi): Adjust.
523 (amd64_x32_linux_init_abi): Adjust.
524 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
525 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
526 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
527 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
528 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
529 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
530 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
531 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
532 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
533 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
534 * m68k-linux-tdep.c (m68k_linux_init_abi):
535 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
536 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
537 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
538 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
539 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
540 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
541 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
542 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
543 Change type to displaced_step_buffers.
544 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
545 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
546 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
547 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
548 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
549 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
550 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
551
552 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
553
554 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
555 obkstack.
556 (_initialize_linux_tdep): Register pre-init gdb data instead of
557 post-init.
558
559 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
560
561 * displaced-stepping.h (struct
562 displaced_step_copy_insn_closure): Adjust comments.
563 (struct displaced_step_inferior_state) <step_thread,
564 step_gdbarch, step_closure, step_original, step_copy,
565 step_saved_copy>: Remove fields.
566 (struct displaced_step_thread_state): New.
567 (struct displaced_step_buffer): New.
568 * displaced-stepping.c (displaced_step_buffer::prepare): New.
569 (write_memory_ptid): Move from infrun.c.
570 (displaced_step_instruction_executed_successfully): New,
571 factored out of displaced_step_finish.
572 (displaced_step_buffer::finish): New.
573 (displaced_step_buffer::copy_insn_closure_by_addr): New.
574 (displaced_step_buffer::restore_in_ptid): New.
575 * gdbarch.sh (displaced_step_location): Remove.
576 (displaced_step_prepare, displaced_step_finish,
577 displaced_step_copy_insn_closure_by_addr,
578 displaced_step_restore_all_in_ptid): New.
579 * gdbarch.c: Re-generate.
580 * gdbarch.h: Re-generate.
581 * gdbthread.h (class thread_info) <displaced_step_state>: New
582 field.
583 (thread_step_over_chain_remove): New declaration.
584 (thread_step_over_chain_next): New declaration.
585 (thread_step_over_chain_length): New declaration.
586 * thread.c (thread_step_over_chain_remove): Make non-static.
587 (thread_step_over_chain_next): New.
588 (global_thread_step_over_chain_next): Use
589 thread_step_over_chain_next.
590 (thread_step_over_chain_length): New.
591 (global_thread_step_over_chain_enqueue): Add debug print.
592 (global_thread_step_over_chain_remove): Add debug print.
593 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
594 Remove.
595 * infrun.c (get_displaced_stepping_state): New.
596 (displaced_step_in_progress_any_inferior): Remove.
597 (displaced_step_in_progress_thread): Adjust.
598 (displaced_step_in_progress): Adjust.
599 (displaced_step_in_progress_any_thread): New.
600 (get_displaced_step_copy_insn_closure_by_addr): Remove.
601 (gdbarch_supports_displaced_stepping): Use
602 gdbarch_displaced_step_prepare_p.
603 (displaced_step_reset): Change parameter from inferior to
604 thread.
605 (displaced_step_prepare_throw): Implement using
606 gdbarch_displaced_step_prepare.
607 (write_memory_ptid): Move to displaced-step.c.
608 (displaced_step_restore): Remove.
609 (displaced_step_finish): Implement using
610 gdbarch_displaced_step_finish.
611 (start_step_over): Allow starting more than one displaced step.
612 (prepare_for_detach): Handle possibly multiple threads doing
613 displaced steps.
614 (handle_inferior_event): Handle possibility that fork event
615 happens while another thread displaced steps.
616 * linux-tdep.h (linux_displaced_step_prepare): New.
617 (linux_displaced_step_finish): New.
618 (linux_displaced_step_copy_insn_closure_by_addr): New.
619 (linux_displaced_step_restore_all_in_ptid): New.
620 (linux_init_abi): Add supports_displaced_step parameter.
621 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
622 (linux_displaced_step_prepare): New.
623 (linux_displaced_step_finish): New.
624 (linux_displaced_step_copy_insn_closure_by_addr): New.
625 (linux_displaced_step_restore_all_in_ptid): New.
626 (linux_init_abi): Add supports_displaced_step parameter,
627 register displaced step methods if true.
628 (_initialize_linux_tdep): Register inferior_execd observer.
629 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
630 supports_displaced_step parameter, adjust call to
631 linux_init_abi. Remove call to
632 set_gdbarch_displaced_step_location.
633 (amd64_linux_init_abi): Adjust call to
634 amd64_linux_init_abi_common.
635 (amd64_x32_linux_init_abi): Likewise.
636 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
637 linux_init_abi. Remove call to
638 set_gdbarch_displaced_step_location.
639 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
640 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
641 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
642 linux_init_abi.
643 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
644 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
645 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
646 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
647 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
648 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
649 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
650 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
651 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
652 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
653 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
654 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
655 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
656 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
657 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
658 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
659 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
660 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
661 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
662 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
663 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
664 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
665 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
666 linux_init_abi. Remove call to
667 set_gdbarch_displaced_step_location.
668 * arm-tdep.c (arm_pc_is_thumb): Call
669 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
670 get_displaced_step_copy_insn_closure_by_addr.
671 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
672 clear gdbarch methods.
673 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
674 (get_ppc_per_inferior): New function.
675 (ppc_displaced_step_prepare): New function.
676 (ppc_displaced_step_finish): New function.
677 (ppc_displaced_step_restore_all_in_ptid): New function.
678 (rs6000_gdbarch_init): Register new gdbarch methods.
679 * s390-tdep.c (s390_gdbarch_init): Don't call
680 set_gdbarch_displaced_step_location, set new gdbarch methods.
681
682 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
683
684 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
685 * aarch64-tdep.h: Include displaced-stepping.h.
686 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
687 Move here.
688 (displaced_step_copy_insn_closure_up): Move here.
689 (struct buf_displaced_step_copy_insn_closure): Move here.
690 (struct displaced_step_inferior_state): Move here.
691 (debug_displaced): Move here.
692 (displaced_debug_printf_1): Move here.
693 (displaced_debug_printf): Move here.
694 * displaced-stepping.c: New file.
695 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
696 * gdbarch.h: Re-generate.
697 * inferior.h: Include displaced-stepping.h.
698 * infrun.h (debug_displaced): Move to displaced-stepping.h.
699 (displaced_debug_printf_1): Likewise.
700 (displaced_debug_printf): Likewise.
701 (struct displaced_step_copy_insn_closure): Likewise.
702 (displaced_step_copy_insn_closure_up): Likewise.
703 (struct buf_displaced_step_copy_insn_closure): Likewise.
704 (struct displaced_step_inferior_state): Likewise.
705 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
706 (displaced_debug_printf_1): Likewise.
707 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
708 Likewise.
709 (_initialize_infrun): Don't register "set/show debug displaced".
710
711 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
712
713 * linux-tdep.c (get_linux_inferior_data): Add inferior
714 parameter.
715 (linux_vsyscall_range): Pass current inferior.
716
717 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
718
719 * infrun.c (displaced_step_prepare_throw): Change return type to
720 displaced_step_prepare_status.
721 (displaced_step_prepare): Likewise.
722 (displaced_step_finish): Change return type to
723 displaced_step_finish_status.
724 (resume_1): Adjust.
725 (stop_all_threads): Adjust.
726 * displaced-stepping.h: New file.
727
728 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
729
730 * infrun.c (displaced_step_fixup): Rename to...
731 (displaced_step_finish): ... this, update all callers.
732
733 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
734
735 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
736 (get_displaced_step_copy_insn_closure_by_addr): ... this.
737 Update all users.
738 (displaced_step_closure): Rename to...
739 (displaced_step_copy_insn_closure): ... this. Update all users.
740 (displaced_step_closure_up): Rename to...
741 (displaced_step_copy_insn_closure_up). ... this. Update all
742 users.
743 (buf_displaced_step_closure): Rename to...
744 (buf_displaced_step_copy_insn_closure): ... this. Update all
745 users.
746 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
747 (get_displaced_step_copy_insn_closure_by_addr): ... this.
748 Update all users.
749 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
750 (aarch64_displaced_step_copy_insn_closure): ... this. Update
751 all users.
752 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
753 (amd64_displaced_step_copy_insn_closure): ... this. Update all
754 users.
755 * arm-tdep.h (arm_displaced_step_closure): Rename to...
756 (arm_displaced_step_copy_insn_closure): ... this. Update all
757 users.
758 * i386-tdep.h (i386_displaced_step_closure): Rename to...
759 (i386_displaced_step_copy_insn_closure): ... this. Update all
760 users.
761 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
762 (ppc_displaced_step_copy_insn_closure): ... this. Update all
763 users.
764 * s390-tdep.c (s390_displaced_step_closure): Rename to...
765 (s390_displaced_step_copy_insn_closure): ... this. Update all
766 users.
767 * gdbarch.h: Re-generate.
768 * gdbarch.c: Re-generate.
769
770 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
771
772 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
773 (global_thread_step_over_chain_enqueue): ... this. Update all
774 users.
775 (thread_step_over_chain_remove): Rename to...
776 (global_thread_step_over_chain_remove): ... this. Update all
777 users.
778 (thread_step_over_chain_next): Rename to...
779 (global_thread_step_over_chain_next): ... this. Update all
780 users.
781 * infrun.h (step_over_queue_head): Rename to...
782 (global_thread_step_over_chain_head): ... this. Update all
783 users.
784 * infrun.c (step_over_queue_head): Rename to...
785 (global_thread_step_over_chain_head): ... this. Update all
786 users.
787 * thread.c (step_over_chain_remove): Rename to...
788 (thread_step_over_chain_remove): ... this. Update all users.
789 (thread_step_over_chain_next): Rename to...
790 (global_thread_step_over_chain_next): ... this. Update all
791 users.
792 (thread_step_over_chain_enqueue): Rename to...
793 (global_thread_step_over_chain_enqueue): ... this. Update all
794 users.
795 (thread_step_over_chain_remove): Rename to...
796 (global_thread_step_over_chain_remove): ... this. Update all
797 users.
798
799 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * infrun.c (get_displaced_stepping_state): Remove, change
802 callers to access the field directly.
803
804 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * infrun.c (handle_inferior_event): Restore displaced step
807 buffer bytes in child process when handling fork, even if fork
808 happened in another thread than the displaced-stepping one.
809
810 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
811
812 * infrun.c (infrun_inferior_execd): New function.
813 (_initialize_infrun): Attach inferior_execd observer.
814
815 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
816
817 * observable.h (inferior_execd): Declare new observable.
818 * observable.c (inferior_execd): Declare new observable.
819 * infrun.c (follow_exec): Notify inferior_execd observer.
820 * jit.c (jit_inferior_created_hook): Make static.
821 (_initialize_jit): Register inferior_execd observer.
822 * jit.h (jit_inferior_created_hook): Remove declaration.
823 * solib.c (_initialize_solib): Register inferior_execd observer.
824
825 2020-12-04 Tom de Vries <tdevries@suse.de>
826
827 PR gdb/27003
828 * completer.c (completion_tracker::build_completion_result): Don't
829 access match_list[0][-1].
830
831 2020-12-04 Tom Tromey <tromey@adacore.com>
832
833 * linespec.c (struct linespec_token): Rename; remove typedef.
834 * guile/scm-block.c (struct block_smob): Remove typedef.
835 (struct block_syms_progress_smob): Likewise.
836 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
837 * guile/scm-symtab.c (symtab_smob): Remove typedef.
838 (struct sal_smob): Remove typedef.
839 * guile/scm-param.c (struct param_smob): Remove typedef.
840 * guile/scm-progspace.c (struct pspace_smob): Rename.
841 * guile/scm-objfile.c (struct objfile_smob): Rename.
842 * guile/scm-iterator.c (struct iterator_smob): Rename.
843 * guile/scm-frame.c (struct frame_smob): Rename.
844 * guile/scm-arch.c (struct arch_smob): Rename.
845 * guile/scm-type.c (struct field_smob): Remove typedef.
846 (struct type_smob): Rename.
847 * guile/scm-cmd.c (struct command_smob): Remove typedef.
848 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
849 * guile/scm-value.c (struct value_smob): Remove typedef.
850 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
851 * guile/guile-internal.h (struct scheme_variable)
852 (struct scheme_function, struct scheme_integer_constant)
853 (struct gdb_smob, struct chained_gdb_smob)
854 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
855 (objfile_smob, pspace_smob, type_smob): Remove typedef.
856 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
857 (struct pretty_printer_worker_smob): Remove typedef.
858 * guile/scm-exception.c (struct exception_smob): Remove typedef.
859 * python/py-block.c (struct block_object): Remove typedef.
860 (block_syms_iterator_object): Update.
861 (set_block): Update.
862 (block_syms_iterator_object): Remove typedef.
863 * python/py-inferior.c (struct membuf_object): Remove typedef.
864 * python/py-symtab.c (struct symtab_object): Remove typedef.
865 (set_symtab): Update.
866 (sal_object): Remove typedef.
867 (set_sal): Update.
868 * python/py-frame.c (frame_object): Remove typedef.
869 * python/py-record-btrace.c (struct btpy_list_object): Remove
870 typedef.
871 * python/py-arch.c (struct arch_object): Remove typedef.
872 * python/py-linetable.c (struct linetable_entry_object)
873 (linetable_object, struct ltpy_iterator_object): Remove typedef.
874 * python/py-events.h (eventregistry_object): Remove typedef.
875 (struct events_object): Remove typedef.
876 * python/python-internal.h (gdbpy_breakpoint_object): Remove
877 typedef.
878 (thread_object): Remove typedef.
879 * python/py-progspace.c (pspace_object): Remove typedef.
880 * python/py-value.c (struct value_object): Remove typedef.
881 * python/py-record.h (recpy_record_object): Remove typedef.
882 (struct recpy_element_object): Remove typedef.
883 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
884 * python/py-objfile.c (objfile_object): Remove typedef.
885 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
886 * python/py-type.c (type_object): Remove typedef.
887 (typy_iterator_object): Update.
888 (set_type): Update.
889 (field_object): Remove typedef.
890 (typy_iterator_object): Remove typedef.
891 * python/py-registers.c (register_descriptor_iterator_object):
892 Remove typedef.
893 (struct register_descriptor_object)
894 (struct reggroup_iterator_object, struct reggroup_object): Remove
895 typedef.
896 * python/py-record.c (recpy_gap_object): Remove typedef.
897 * python/py-symbol.c (symbol_object): Remove typedef.
898 (set_symbol): Update.
899 * python/py-event.h (event_object): Remove typedef.
900 * python/py-param.c (parmpy_object): Remove typedef.
901 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
902 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
903 (unwind_info_object, struct cached_frame_info): Likewise.
904
905 2020-12-04 Tom Tromey <tromey@adacore.com>
906
907 * value.c (value_internal_function_name): Make return type const.
908 * value.h (value_internal_function_name): Make return type const.
909
910 2020-12-04 Luis Machado <luis.machado@linaro.org>
911
912 * aarch64-tdep.c (submask, bit, bits): Remove.
913 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
914 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
915 (aarch64_decode_cb, aarch64_decode_tb)
916 (aarch64_decode_ldr_literal): Use sbits to extract a signed
917 immediate.
918 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
919
920 2020-12-04 Tom de Vries <tdevries@suse.de>
921
922 PR tdep/27007
923 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
924
925 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
926
927 PR gdb/26876
928 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
929 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
930
931 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * arch/riscv.c: Include 'rv32e-xregs.c'.
934 (riscv_create_target_description): Update to handle rv32e.
935 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
936 member variable.
937 <operator==>: Update to account for new field.
938 <hash>: Likewise.
939 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
940 * features/riscv/rv32e-xregs.c: Generated.
941 * features/riscv/rv32e-xregs.xml: New file.
942 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
943 file.
944 (riscv_debug_infcall): Likewise.
945 (riscv_debug_unwinder): Likewise.
946 (riscv_debug_gdbarch): Likewise.
947 (enum riscv_register_required_status): Delete.
948 (struct riscv_register_feature): Add constructor, delete default
949 constructor, copy, and assign constructors.
950 (struct riscv_register_feature::register_info) <required>: Delete.
951 <check>: Update comment and arguments.
952 (struct riscv_register_feature) <name>: Change to member function.
953 <prefer_first_name>: Delete.
954 <tdesc_feature>: New member function.
955 <registers>: Rename to...
956 <m_registers>: ...this.
957 <m_feature_name>: New member variable.
958 (riscv_register_feature::register_info::check): Update arguments.
959 (riscv_xreg_feature): Rewrite as class, create a single static
960 instance of the class.
961 (riscv_freg_feature): Likewise.
962 (riscv_virtual_feature): Likewise.
963 (riscv_csr_feature): Likewise.
964 (riscv_create_csr_aliases): Has become a member function inside
965 riscv_csr_feature class.
966 (riscv_abi_embedded): New function definition.
967 (riscv_register_name): Adjust to use new feature objects.
968 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
969 and adjust available argument registers.
970 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
971 (riscv_check_tdesc_feature): Delete.
972 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
973 (riscv_gdbarch_init): Delete target description checking code, and
974 instead call to the new feature objects to perform the checks.
975 Reorder handling of no abi information case, allows small code
976 simplification.
977 (_initialize_riscv_tdep): Remove call, this is now done in the
978 riscv_csr_feature constructor.
979 * riscv-tdep.h (riscv_abi_embedded): Declare.
980
981 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
984 DECLARE_CSR_ALIAS.
985
986 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * riscv-tdep.c (riscv_is_unknown_csr): New function,
989 implementation moved from riscv_register_reggroup_p.
990 (riscv_register_reggroup_p): Update group handling for unknown
991 CSRs.
992
993 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
994
995 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
996 (dwarf2_get_dwz_file): Convert 'filename' to a
997 std::string. Use dwz_search_other_debugdirs to search for DWZ
998 files in the debug-file-directories provided by the user as well.
999
1000 2020-12-01 Tom Tromey <tom@tromey.com>
1001
1002 * parse.c (expr_builder::expr_builder): Initialize expout.
1003 (expr_builder::release): Use expression::resize.
1004 (expression::expression, expression::~expression)
1005 (expression::resize): New methods.
1006 (write_exp_elt): Use expression::resize.
1007 (prefixify_expression): Update.
1008 (increase_expout_size): Use expression::resize.
1009 * expression.h (struct expression): Add constructor, destructor.
1010 <resize>: New method.
1011 (expression_up): Change type.
1012
1013 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1014 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1015 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1016 set region.
1017
1018 2020-11-30 Tom de Vries <tdevries@suse.de>
1019
1020 PR symtab/26905
1021 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1022 is_reference parameter.
1023 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1024
1025 2020-11-30 Tom Tromey <tom@tromey.com>
1026
1027 * rust-lang.c (rust_op_name): Remove.
1028 (exp_descriptor_rust): Update.
1029 * parser-defs.h (op_name_standard): Don't declare.
1030 (struct exp_descriptor) <op_name>: Remove.
1031 * parse.c (exp_descriptor_standard): Update.
1032 * opencl-lang.c (exp_descriptor_opencl): Update.
1033 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1034 * f-lang.c (op_name_f): Remove.
1035 (f_language::exp_descriptor_tab): Update.
1036 * expression.h (op_name): Update.
1037 * expprint.c (op_name): Rewrite.
1038 (op_name_standard): Remove.
1039 (dump_raw_expression, dump_subexp): Update.
1040 * c-lang.c (exp_descriptor_c): Update.
1041 * ax-gdb.c (gen_expr): Update.
1042 * ada-lang.c (ada_op_name): Remove.
1043 (ada_exp_descriptor): Update.
1044
1045 2020-11-30 Tom Tromey <tom@tromey.com>
1046
1047 * eval.c (init_array_element): Remove.
1048 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1049
1050 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1051
1052 PR tui/26973
1053 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1054 static locator win info.
1055
1056 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1057
1058 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1059 program.
1060
1061 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1064 is always initialized.
1065
1066 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1067 * MAINTAINERS (Write After Approval): Add myself.
1068
1069 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1070
1071 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1072 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1073
1074 2020-11-25 Tom Tromey <tom@tromey.com>
1075
1076 * eval.c (evaluate_subexp_standard): Remove unnecessary
1077 variables.
1078
1079 2020-11-25 Tom Tromey <tom@tromey.com>
1080
1081 * d-lang.c: Include parser-defs.h.
1082 * rust-lang.c: Include parser-defs.h.
1083 * c-lang.h: Do not include parser-defs.h.
1084
1085 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * regcache.h (struct cached_reg): Remove typedef.
1088
1089 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1090
1091 * README: Fix the URL of the MPFR library.
1092
1093 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1094
1095 * README: Document the --with-libgmp-prefix configure option.
1096
1097 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1098
1099 * NEWS: Add entry documenting support for DWARF-based fixed
1100 point types.
1101
1102 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1103
1104 * NEWS: Document that building GDB now requires GMP.
1105
1106 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1107
1108 * typeprint.c (print_type_scalar): Add handling of
1109 TYPE_CODE_FIXED_POINT.
1110
1111 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1112
1113 * valarith.c (fixed_point_binop): Replace the
1114 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1115 users accordingly.
1116
1117 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1118
1119 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1120 replacing fixed_point_scaling_factor. All callers updated
1121 throughout this project.
1122 (fixed_point_scaling_factor): Delete declaration.
1123 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1124 fixed_point_scaling_factor. Adjust implementation accordingly.
1125
1126 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1127
1128 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1129 replacing the fixed_point_type_base_type function. All callers
1130 updated throughout this project.
1131 (fixed_point_type_base_type): Remove declaration.
1132 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1133 fixed_point_type_base_type. Adjust implementation accordingly.
1134
1135 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1136
1137 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1138 New methods.
1139 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1140 (TYPE_FIXED_POINT_INFO): Delete macro.
1141 (allocate_fixed_point_type_info): Change return type to void.
1142 * gdbtypes.c (copy_type_recursive): Replace the use of
1143 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1144 (fixed_point_scaling_factor): Likewise.
1145 (allocate_fixed_point_type_info): Change return type to void.
1146 Adjust implementation accordingly.
1147 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1148 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1149
1150 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1151
1152 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1153 into one single gdb::array_view parameter.
1154 (gdb_mpz::write): Likewise.
1155 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1156 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1157 into one single gdb::array_view parameter.
1158 Adjust implementation accordingly.
1159 (gdb_mpz::write): Likewise.
1160 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1161 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1162 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1163
1164 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1165
1166 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1167 Change return type to std::string. Update all callers.
1168 * gmp-utils.c (gmp_string_printf): Likewise.
1169
1170 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1171
1172 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1173 instead of mpq_set_ui to initialize our GMP rational.
1174
1175 2020-11-23 Tom de Vries <tdevries@suse.de>
1176
1177 * debuginfod-support.c (debuginfod_source_query)
1178 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1179
1180 2020-11-21 Tom Tromey <tom@tromey.com>
1181
1182 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1183
1184 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1185
1186 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1187 Pass 2.0 to pow.
1188 (gdb_mpz_write_all_from_small): Likewise.
1189
1190 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1193 of abs.
1194
1195 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1196
1197 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1198 ctf_arc_open_by_name.
1199
1200 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1201
1202 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1203 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1204
1205 2020-11-20 Pedro Alves <pedro@palves.net>
1206
1207 * language.c (language_arch_info::lookup_primitive_type): Use
1208 gdb::function_view instead of gdb::function.
1209 (template language_lookup_primitive_type): Rename to ...
1210 (language_lookup_primitive_type_1): ... this, and make static.
1211 (language_lookup_primitive_type(const struct language_defn *,
1212 struct gdbarch *, const char *): Make non-template.
1213 (language_lookup_primitive_type(const struct language_defn *,
1214 struct gdbarch *, std::function<bool (struct type *)>): Make
1215 non-template and use gdb::function_view.
1216 * language.h (language_arch_info::lookup_primitive_type): Use
1217 gdb::function_view instead of std::function.
1218 (language_lookup_primitive_type): No longer template.
1219 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1220 lambda instead of a std::function.
1221
1222 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1223
1224 PR tdep/26916
1225 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1226 and STOCFH.
1227
1228 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1231
1232 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1235 in `loop_cb` parameter.
1236 * gdbarch.c: Re-generate.
1237 * gdbarch.h: Re-generate.
1238 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1239 parameter.
1240 * arch-utils.h (default_read_core_file_mappings): Likewise.
1241 * corelow.c (core_target::build_file_mappings): Likewise.
1242 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1243 (linux_core_info_proc_mappings): Likewise.
1244
1245 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1248 * NEWS: Mention new options.
1249 * f-array-walker.h: New file.
1250 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1251 (repack_array_slices): New static global.
1252 (show_repack_array_slices): New function.
1253 (fortran_array_slicing_debug): New static global.
1254 (show_fortran_array_slicing_debug): New function.
1255 (value_f90_subarray): Delete.
1256 (skip_undetermined_arglist): Delete.
1257 (class fortran_array_repacker_base_impl): New class.
1258 (class fortran_lazy_array_repacker_impl): New class.
1259 (class fortran_array_repacker_impl): New class.
1260 (fortran_value_subarray): Complete rewrite.
1261 (set_fortran_list): New static global.
1262 (show_fortran_list): Likewise.
1263 (_initialize_f_language): Register new commands.
1264 (fortran_adjust_dynamic_array_base_address_hack): New function.
1265 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1266 Declare.
1267 * f-valprint.c: Include 'f-array-walker.h'.
1268 (class fortran_array_printer_impl): New class.
1269 (f77_print_array_1): Delete.
1270 (f77_print_array): Delete.
1271 (fortran_print_array): New.
1272 (f_value_print_inner): Update to call fortran_print_array.
1273 * gdbtypes.c: Include 'f-lang.h'.
1274 (resolve_dynamic_type_internal): Call
1275 fortran_adjust_dynamic_array_base_address_hack.
1276
1277 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * breakpoint.c (struct watch_options): New struct.
1280 (watch_option_defs): New static global.
1281 (make_watch_options_def_group): New function.
1282 (watch_maybe_just_location): Convert option parsing.
1283 (watch_command_completer): New function.
1284 (_initialize_breakpoint): Build help text using options mechanism.
1285
1286 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1289 (watch_command_1): Update parameter types. Convert locals to
1290 bool.
1291 (watch_command_wrapper): Change parameter type.
1292 (watch_maybe_just_location): Change locals to bool.
1293 (rwatch_command_wrapper): Update parameter type.
1294 (awatch_command_wrapper): Update parameter type.
1295 * breakpoint.h (watch_command_wrapper): Change parameter type.
1296 (rwatch_command_wrapper): Update parameter type.
1297 (awatch_command_wrapper): Update parameter type.
1298 * eval.c (fetch_subexp_value): Change parameter type.
1299 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1300 'false' not '0'.
1301 * value.h (fetch_subexp_value): Change parameter type in
1302 declaration.
1303
1304 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1307 skip_spaces.
1308
1309 2020-11-18 Keith Seitz <keiths@redhat.com>
1310
1311 * linux-tdep.c (dump_note_entry_p): Return true instead of
1312 checking `filename'.
1313
1314 2020-11-18 Tom de Vries <tdevries@suse.de>
1315
1316 * debuginfod-support.c (debuginfod_source_query)
1317 (debuginfod_debuginfo_query): Also do early exit if
1318 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1319
1320 2020-11-18 Tom de Vries <tdevries@suse.de>
1321
1322 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1323 warning.
1324
1325 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1328 callers. Move doc here.
1329 * gdbtypes.c (get_array_bounds): Return bool
1330
1331 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1334 assert.
1335 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1336 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1337 case to the default.
1338
1339 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * printcmd.c: Include 'safe-ctype.c'.
1342 (skip_over_slash_fmt): New function.
1343 (print_command_completer): Call skip_over_slash_fmt.
1344 (display_and_x_command_completer): New function.
1345 (_initialize_printcmd): Add command completion for 'x' and
1346 'display'.
1347
1348 2020-11-16 Pedro Alves <pedro@palves.net>
1349
1350 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1351 (get_prev_frame_always_1): ... to here.
1352 * inline-frame.c (inline_frame_this_id): Mention
1353 get_prev_frame_always_1 in comment.
1354
1355 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1356
1357 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1358 handling.
1359 (value_less): Add fixed-point handling.
1360
1361 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1362
1363 * eval.c (binop_promote): Add fixed-point type handling.
1364 * valarith.c (fixed_point_binop): New function.
1365 (scalar_binop): Add fixed-point type handling.
1366 (value_neg): Add fixed-point type handling.
1367 * valops.c (value_cast_to_fixed_point): New function.
1368 (value_cast): Add fixed-point type handling.
1369
1370 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1371
1372 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1373 range types.
1374 * c-typeprint.c (c_type_print_varspec_prefix)
1375 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1376 TYPE_CODE_FIXED_POINT handling.
1377 * p-typeprint.c (pascal_type_print_varspec_prefix)
1378 (pascal_type_print_varspec_suffix): Likewise.
1379 * typeprint.c (print_type_fixed_point): New function.
1380 * typeprint.h (print_type_fixed_point): Add declaration.
1381
1382 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1383
1384 * printcmd.c (print_scalar_formatted): Add fixed-point type
1385 handling when options->format is set.
1386
1387 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1388
1389 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1390 * dwarf2/read.c (get_dwarf2_rational_constant)
1391 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1392 (has_zero_over_zero_small_attribute): New functions.
1393 read_base_type, set_die_type): Add fixed-point type handling.
1394 * gdb-gdb.py.in: Add fixed-point type handling.
1395 * gdbtypes.c: #include "gmp-utils.h".
1396 (create_range_type, set_type_code): Add fixed-point type handling.
1397 (init_fixed_point_type): New function.
1398 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1399 (print_fixed_point_type_info): New function.
1400 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1401 handling.
1402 (fixed_point_type_storage): New typedef.
1403 (fixed_point_objfile_key): New static global.
1404 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1405 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1406 functions.
1407 * gdbtypes.h: #include "gmp-utils.h".
1408 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1409 (union type_specific) <fixed_point_info>: New field.
1410 (struct fixed_point_type_info): New struct.
1411 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1412 (init_fixed_point_type, is_fixed_point_type)
1413 (fixed_point_type_base_type, fixed_point_scaling_factor)
1414 (allocate_fixed_point_type_info): Add declarations.
1415 * valprint.c (generic_val_print_fixed_point): New function.
1416 (generic_value_print): Add fixed-point type handling.
1417 * value.c (value_as_address, unpack_long): Add fixed-point type
1418 handling.
1419
1420 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1421
1422 * utils.h (uinteger_pow): Add declaration.
1423 * utils.c (uinteger_pow): Moved here (without changes)...
1424 * valarith.c (uinteger_pow): ... from here.
1425
1426 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1427
1428 * gmp-utils.h, gmp-utils.c: New file.
1429 * unittests/gmp-utils-selftests.c: New file.
1430 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1431 unittests/gmp-utils-selftests.c.
1432 (COMMON_SFILES) Add gmp-utils.c.
1433 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1434
1435 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1436
1437 * configure.ac: Generate an error if a usable GMP library
1438 could not be found.
1439 * configure: Regenerate.
1440
1441 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1442
1443 * configure.ac: Add support for --with-libgmp-prefix.
1444 * Makefile.in (LIBGMP): New variable.
1445 (CLIBS): Include $(LIBGMP).
1446 * configure, config.in: Regenerate
1447
1448 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 PR cli/26879
1451 * f-exp.y (COMPLETE): New token.
1452 (exp): Two new rules for tab-completion.
1453 (saw_name_at_eof): New static global.
1454 (last_was_structop): Likewise.
1455 (yylex): Set new variables, and return COMPLETE token at the end
1456 of the input stream in some cases.
1457
1458 2020-11-14 Tom Tromey <tom@tromey.com>
1459
1460 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1461
1462 2020-11-14 Tom Tromey <tom@tromey.com>
1463
1464 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1465
1466 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1467
1468 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1469
1470 2020-11-13 Tom Tromey <tom@tromey.com>
1471
1472 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1473 (convert_escape, parse_one_string): Constify.
1474
1475 2020-11-13 Keith Seitz <keiths@redhat.com>
1476
1477 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1478 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1479 outside of ELF segments" warning for debugin
1480
1481 2020-11-13 Keith Seitz <keiths@redhat.com>
1482
1483 PR gdb/23034
1484 * elfread.c (elf_symfile_segments): Output a BFD file name
1485 for the "Loadable section ... outside of ELF segments" warning.
1486
1487 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 PR gdb/26835
1490 * arm-tdep.c (class arm_instruction_reader): New.
1491 (target_arm_instruction_reader): New.
1492 (arm_analyze_prologue): Add instruction reader parameter and use
1493 it. Use arm_expand_immediate.
1494 (class target_arm_instruction_reader): Adjust.
1495 (arm_skip_prologue): Adjust.
1496 (arm_expand_immediate): New.
1497 (arm_scan_prologue): Adjust.
1498 (arm_analyze_prologue_test): New.
1499 (class test_arm_instruction_reader): New.
1500
1501 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * f-lang.c (fortran_argument_convert): Add declaration. Add
1504 header comment, taken from f-lang.h. Make static.
1505 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1506 (fortran_argument_convert): Delete declaration.
1507
1508 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * ada-exp.y (find_primitive_type): Make parameter const.
1511 * ada-lang.c (enum ada_primitive_types): Delete.
1512 (ada_language::language_arch_info): Update.
1513 * c-lang.c (enum c_primitive_types): Delete.
1514 (c_language_arch_info): Update.
1515 (enum cplus_primitive_types): Delete.
1516 (cplus_language::language_arch_info): Update.
1517 * d-lang.c (enum d_primitive_types): Delete.
1518 (d_language::language_arch_info): Update.
1519 * f-lang.c (enum f_primitive_types): Delete.
1520 (f_language::language_arch_info): Update.
1521 * go-lang.c (enum go_primitive_types): Delete.
1522 (go_language::language_arch_info): Update.
1523 * language.c (auto_or_unknown_language::language_arch_info):
1524 Update.
1525 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1526 (language_string_char_type): Add header comment, call function in
1527 language_arch_info.
1528 (language_bool_type): Likewise
1529 (language_arch_info::bool_type): Define.
1530 (language_lookup_primitive_type_1): Delete.
1531 (language_lookup_primitive_type): Rewrite as a templated function
1532 to call function in language_arch_info, then instantiate twice.
1533 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1534 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1535 (language_arch_info::lookup_primitive_type): Define twice with
1536 different signatures.
1537 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1538 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1539 member function in language_arch_info.
1540 * language.h (language_arch_info): Complete rewrite.
1541 (language_lookup_primitive_type): Make templated.
1542 * m2-lang.c (enum m2_primitive_types): Delete.
1543 (m2_language::language_arch_info): Update.
1544 * opencl-lang.c (OCL_P_TYPE): Delete.
1545 (enum opencl_primitive_types): Delete.
1546 (opencl_type_data): Delete.
1547 (builtin_opencl_type): Delete.
1548 (lookup_opencl_vector_type): Update.
1549 (opencl_language::language_arch_info): Update, lots of content
1550 moved from...
1551 (build_opencl_types): ...here. This function is now deleted.
1552 (_initialize_opencl_language): Delete.
1553 * p-lang.c (enum pascal_primitive_types): Delete.
1554 (pascal_language::language_arch_info): Update.
1555 * rust-lang.c (enum rust_primitive_types): Delete.
1556 (rust_language::language_arch_info): Update.
1557
1558 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1561 dwarf2_queue_guard.
1562
1563 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1566 comment.
1567
1568 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * dwarf2/read.c (dwarf_read_debug_printf,
1571 dwarf_read_debug_printf_v): New macros, use throughout the file.
1572
1573 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1574
1575 PR tdep/27015
1576 * arc-linux-tdep.c (collect_register): Populate "eret" by
1577 "pc" value from the regcache when asked for "pc" value.
1578
1579 2020-11-12 Tom Tromey <tom@tromey.com>
1580
1581 PR rust/26799:
1582 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1583 exist.
1584
1585 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * features/Makefile (XMLTOC): Add rx.xml.
1588 (FEATURE_XMLFILES): Remove rx.xml.
1589 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1590 * features/rx.c: Regenerate.
1591 * features/rx.xml: Wrap in `target` tags, and reindent.
1592 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1593 structure.
1594 (maint_print_c_tdesc_opt_def): New typedef.
1595 (maint_print_c_tdesc_opt_defs): New static global.
1596 (make_maint_print_c_tdesc_options_def_group): New function.
1597 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1598 print single feature C file for target descriptions containing a
1599 single feature.
1600 (maint_print_c_tdesc_cmd_completer): New function.
1601 (_initialize_target_descriptions): Update call to register command
1602 completer, and include command line flag in help text.
1603
1604 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1607 numbers.
1608 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1609 enum values.
1610
1611 2020-11-10 Tom Tromey <tom@tromey.com>
1612
1613 * value.h (internalvar_name): Update.
1614 * value.c (internalvar_name): Make return type const.
1615
1616 2020-11-10 Tom Tromey <tom@tromey.com>
1617
1618 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1619 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1620 const.
1621
1622 2020-11-10 Tom Tromey <tom@tromey.com>
1623
1624 * objc-lang.h (value_nsstring): Update.
1625 * objc-lang.c (value_nsstring): Make "ptr" const.
1626
1627 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * expprint.c (print_subexp_funcall): Increment expression position
1630 after reading argument count.
1631 * f-lang.c (print_subexp_f): Skip over opcode before calling
1632 common function.
1633 (dump_subexp_body_f): Likewise.
1634
1635 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1636
1637 PR python/26832
1638 * configure: Regenerate.
1639 * configure.ac: Check for python modules ctypes instead of
1640 itertools.
1641
1642 2020-11-06 Pedro Alves <pedro@palves.net>
1643
1644 * macroexp.c (struct macro_buffer): Split in two classes. Add
1645 uses adjusted.
1646 (struct shared_macro_buffer): New, factored out from struct
1647 macro_buffer.
1648 (struct growable_macro_buffer): New, factored out from struct
1649 macro_buffer.
1650 (set_token, get_comment, get_identifier, get_pp_number)
1651 (get_character_constant, get_string_literal, get_punctuator)
1652 (get_next_token_for_substitution): Constify parameters.
1653 (substitute_args): Constify locals.
1654
1655 2020-11-05 Tom Tromey <tom@tromey.com>
1656
1657 * dwarf2/read.c (read_cutu_die_from_dwo)
1658 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1659 (build_type_psymtabs_1): Update.
1660 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1661 parameter.
1662 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1663 Don't read section. Add assert.
1664
1665 2020-11-04 Tom Tromey <tromey@adacore.com>
1666
1667 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1668
1669 2020-11-04 Tom Tromey <tromey@adacore.com>
1670
1671 * ada-typeprint.c (ada_print_type): Handle __T types.
1672
1673 2020-11-04 Tom Tromey <tromey@adacore.com>
1674
1675 * dwarf2/read.c (add_partial_symbol, process_die):
1676 Handle DW_TAG_array_type.
1677 (is_type_tag_for_partial): Add "lang" parameter.
1678 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1679
1680 2020-11-04 Tom Tromey <tromey@adacore.com>
1681
1682 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1683
1684 2020-11-04 Tom Tromey <tromey@adacore.com>
1685
1686 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1687 array.
1688
1689 2020-11-04 Tom Tromey <tromey@adacore.com>
1690
1691 * gdbtypes.c (update_static_array_size): Handle bit stride.
1692
1693 2020-11-04 Tom Tromey <tromey@adacore.com>
1694
1695 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1696
1697 2020-11-04 Tom Tromey <tromey@adacore.com>
1698
1699 * ada-lang.c (ada_is_any_packed_array_type): New function.
1700 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1701
1702 2020-11-04 Tom Tromey <tromey@adacore.com>
1703
1704 * dwarf2/read.c (recognize_bound_expression)
1705 (quirk_ada_thick_pointer): New functions.
1706 (read_array_type): Call quirk_ada_thick_pointer.
1707 (set_die_type): Add "skip_data_location" parameter.
1708 (quirk_ada_thick_pointer): New function.
1709 (process_structure_scope): Call quirk_ada_thick_pointer.
1710 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1711 (decode_packed_array_bitsize): Handle thick pointers without
1712 parallel types.
1713 (ada_is_gnat_encoded_packed_array_type): Rename from
1714 ada_is_packed_array_type.
1715 (ada_is_constrained_packed_array_type): Update.
1716 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1717 (ada_value_print_1): Use ada_get_decoded_value.
1718
1719 2020-11-04 Tom Tromey <tromey@adacore.com>
1720
1721 * ada-lang.c (recursively_update_array_bitsize): New function.
1722 (decode_constrained_packed_array_type): Call it.
1723
1724 2020-11-04 Tom Tromey <tromey@adacore.com>
1725
1726 * ada-lang.c (to_fixed_array_type): Error if
1727 decode_constrained_packed_array_type returns NULL.
1728
1729 2020-11-04 Tom Tromey <tromey@adacore.com>
1730
1731 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1732
1733 2020-11-02 Tom Tromey <tromey@adacore.com>
1734
1735 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1736 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1737 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1738 * amd64-ravenscar-thread.c: New file.
1739 * amd64-ravenscar-thread.h: New file.
1740 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1741 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1742
1743 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * main.c (execute_cmdargs): New function.
1746 (captured_main_1): Make use of execute_cmdargs.
1747
1748 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * NEWS: Mention changes to config file search path.
1751 * main.c
1752
1753 2020-11-02 Tom Tromey <tromey@adacore.com>
1754
1755 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1756 (python_GdbModuleDef): Move earlier. Now static.
1757 (do_start_initialization): Consolidate some IS_PY3K blocks.
1758
1759 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1760
1761 * aarch64-linux-tdep.c: Fix indentation.
1762 * aarch64-ravenscar-thread.c: Fix indentation.
1763 * aarch64-tdep.c: Fix indentation.
1764 * aarch64-tdep.h: Fix indentation.
1765 * ada-lang.c: Fix indentation.
1766 * ada-lang.h: Fix indentation.
1767 * ada-tasks.c: Fix indentation.
1768 * ada-typeprint.c: Fix indentation.
1769 * ada-valprint.c: Fix indentation.
1770 * ada-varobj.c: Fix indentation.
1771 * addrmap.c: Fix indentation.
1772 * addrmap.h: Fix indentation.
1773 * agent.c: Fix indentation.
1774 * aix-thread.c: Fix indentation.
1775 * alpha-bsd-nat.c: Fix indentation.
1776 * alpha-linux-tdep.c: Fix indentation.
1777 * alpha-mdebug-tdep.c: Fix indentation.
1778 * alpha-nbsd-tdep.c: Fix indentation.
1779 * alpha-obsd-tdep.c: Fix indentation.
1780 * alpha-tdep.c: Fix indentation.
1781 * amd64-bsd-nat.c: Fix indentation.
1782 * amd64-darwin-tdep.c: Fix indentation.
1783 * amd64-linux-nat.c: Fix indentation.
1784 * amd64-linux-tdep.c: Fix indentation.
1785 * amd64-nat.c: Fix indentation.
1786 * amd64-obsd-tdep.c: Fix indentation.
1787 * amd64-tdep.c: Fix indentation.
1788 * amd64-windows-tdep.c: Fix indentation.
1789 * annotate.c: Fix indentation.
1790 * arc-tdep.c: Fix indentation.
1791 * arch-utils.c: Fix indentation.
1792 * arch/arm-get-next-pcs.c: Fix indentation.
1793 * arch/arm.c: Fix indentation.
1794 * arm-linux-nat.c: Fix indentation.
1795 * arm-linux-tdep.c: Fix indentation.
1796 * arm-nbsd-tdep.c: Fix indentation.
1797 * arm-pikeos-tdep.c: Fix indentation.
1798 * arm-tdep.c: Fix indentation.
1799 * arm-tdep.h: Fix indentation.
1800 * arm-wince-tdep.c: Fix indentation.
1801 * auto-load.c: Fix indentation.
1802 * auxv.c: Fix indentation.
1803 * avr-tdep.c: Fix indentation.
1804 * ax-gdb.c: Fix indentation.
1805 * ax-general.c: Fix indentation.
1806 * bfin-linux-tdep.c: Fix indentation.
1807 * block.c: Fix indentation.
1808 * block.h: Fix indentation.
1809 * blockframe.c: Fix indentation.
1810 * bpf-tdep.c: Fix indentation.
1811 * break-catch-sig.c: Fix indentation.
1812 * break-catch-syscall.c: Fix indentation.
1813 * break-catch-throw.c: Fix indentation.
1814 * breakpoint.c: Fix indentation.
1815 * breakpoint.h: Fix indentation.
1816 * bsd-uthread.c: Fix indentation.
1817 * btrace.c: Fix indentation.
1818 * build-id.c: Fix indentation.
1819 * buildsym-legacy.h: Fix indentation.
1820 * buildsym.c: Fix indentation.
1821 * c-typeprint.c: Fix indentation.
1822 * c-valprint.c: Fix indentation.
1823 * c-varobj.c: Fix indentation.
1824 * charset.c: Fix indentation.
1825 * cli/cli-cmds.c: Fix indentation.
1826 * cli/cli-decode.c: Fix indentation.
1827 * cli/cli-decode.h: Fix indentation.
1828 * cli/cli-script.c: Fix indentation.
1829 * cli/cli-setshow.c: Fix indentation.
1830 * coff-pe-read.c: Fix indentation.
1831 * coffread.c: Fix indentation.
1832 * compile/compile-cplus-types.c: Fix indentation.
1833 * compile/compile-object-load.c: Fix indentation.
1834 * compile/compile-object-run.c: Fix indentation.
1835 * completer.c: Fix indentation.
1836 * corefile.c: Fix indentation.
1837 * corelow.c: Fix indentation.
1838 * cp-abi.h: Fix indentation.
1839 * cp-namespace.c: Fix indentation.
1840 * cp-support.c: Fix indentation.
1841 * cp-valprint.c: Fix indentation.
1842 * cris-linux-tdep.c: Fix indentation.
1843 * cris-tdep.c: Fix indentation.
1844 * darwin-nat-info.c: Fix indentation.
1845 * darwin-nat.c: Fix indentation.
1846 * darwin-nat.h: Fix indentation.
1847 * dbxread.c: Fix indentation.
1848 * dcache.c: Fix indentation.
1849 * disasm.c: Fix indentation.
1850 * dtrace-probe.c: Fix indentation.
1851 * dwarf2/abbrev.c: Fix indentation.
1852 * dwarf2/attribute.c: Fix indentation.
1853 * dwarf2/expr.c: Fix indentation.
1854 * dwarf2/frame.c: Fix indentation.
1855 * dwarf2/index-cache.c: Fix indentation.
1856 * dwarf2/index-write.c: Fix indentation.
1857 * dwarf2/line-header.c: Fix indentation.
1858 * dwarf2/loc.c: Fix indentation.
1859 * dwarf2/macro.c: Fix indentation.
1860 * dwarf2/read.c: Fix indentation.
1861 * dwarf2/read.h: Fix indentation.
1862 * elfread.c: Fix indentation.
1863 * eval.c: Fix indentation.
1864 * event-top.c: Fix indentation.
1865 * exec.c: Fix indentation.
1866 * exec.h: Fix indentation.
1867 * expprint.c: Fix indentation.
1868 * f-lang.c: Fix indentation.
1869 * f-typeprint.c: Fix indentation.
1870 * f-valprint.c: Fix indentation.
1871 * fbsd-nat.c: Fix indentation.
1872 * fbsd-tdep.c: Fix indentation.
1873 * findvar.c: Fix indentation.
1874 * fork-child.c: Fix indentation.
1875 * frame-unwind.c: Fix indentation.
1876 * frame-unwind.h: Fix indentation.
1877 * frame.c: Fix indentation.
1878 * frv-linux-tdep.c: Fix indentation.
1879 * frv-tdep.c: Fix indentation.
1880 * frv-tdep.h: Fix indentation.
1881 * ft32-tdep.c: Fix indentation.
1882 * gcore.c: Fix indentation.
1883 * gdb_bfd.c: Fix indentation.
1884 * gdbarch.sh: Fix indentation.
1885 * gdbarch.c: Re-generate
1886 * gdbarch.h: Re-generate.
1887 * gdbcore.h: Fix indentation.
1888 * gdbthread.h: Fix indentation.
1889 * gdbtypes.c: Fix indentation.
1890 * gdbtypes.h: Fix indentation.
1891 * glibc-tdep.c: Fix indentation.
1892 * gnu-nat.c: Fix indentation.
1893 * gnu-nat.h: Fix indentation.
1894 * gnu-v2-abi.c: Fix indentation.
1895 * gnu-v3-abi.c: Fix indentation.
1896 * go32-nat.c: Fix indentation.
1897 * guile/guile-internal.h: Fix indentation.
1898 * guile/scm-cmd.c: Fix indentation.
1899 * guile/scm-frame.c: Fix indentation.
1900 * guile/scm-iterator.c: Fix indentation.
1901 * guile/scm-math.c: Fix indentation.
1902 * guile/scm-ports.c: Fix indentation.
1903 * guile/scm-pretty-print.c: Fix indentation.
1904 * guile/scm-value.c: Fix indentation.
1905 * h8300-tdep.c: Fix indentation.
1906 * hppa-linux-nat.c: Fix indentation.
1907 * hppa-linux-tdep.c: Fix indentation.
1908 * hppa-nbsd-nat.c: Fix indentation.
1909 * hppa-nbsd-tdep.c: Fix indentation.
1910 * hppa-obsd-nat.c: Fix indentation.
1911 * hppa-tdep.c: Fix indentation.
1912 * hppa-tdep.h: Fix indentation.
1913 * i386-bsd-nat.c: Fix indentation.
1914 * i386-darwin-nat.c: Fix indentation.
1915 * i386-darwin-tdep.c: Fix indentation.
1916 * i386-dicos-tdep.c: Fix indentation.
1917 * i386-gnu-nat.c: Fix indentation.
1918 * i386-linux-nat.c: Fix indentation.
1919 * i386-linux-tdep.c: Fix indentation.
1920 * i386-nto-tdep.c: Fix indentation.
1921 * i386-obsd-tdep.c: Fix indentation.
1922 * i386-sol2-nat.c: Fix indentation.
1923 * i386-tdep.c: Fix indentation.
1924 * i386-tdep.h: Fix indentation.
1925 * i386-windows-tdep.c: Fix indentation.
1926 * i387-tdep.c: Fix indentation.
1927 * i387-tdep.h: Fix indentation.
1928 * ia64-libunwind-tdep.c: Fix indentation.
1929 * ia64-libunwind-tdep.h: Fix indentation.
1930 * ia64-linux-nat.c: Fix indentation.
1931 * ia64-linux-tdep.c: Fix indentation.
1932 * ia64-tdep.c: Fix indentation.
1933 * ia64-tdep.h: Fix indentation.
1934 * ia64-vms-tdep.c: Fix indentation.
1935 * infcall.c: Fix indentation.
1936 * infcmd.c: Fix indentation.
1937 * inferior.c: Fix indentation.
1938 * infrun.c: Fix indentation.
1939 * iq2000-tdep.c: Fix indentation.
1940 * language.c: Fix indentation.
1941 * linespec.c: Fix indentation.
1942 * linux-fork.c: Fix indentation.
1943 * linux-nat.c: Fix indentation.
1944 * linux-tdep.c: Fix indentation.
1945 * linux-thread-db.c: Fix indentation.
1946 * lm32-tdep.c: Fix indentation.
1947 * m2-lang.c: Fix indentation.
1948 * m2-typeprint.c: Fix indentation.
1949 * m2-valprint.c: Fix indentation.
1950 * m32c-tdep.c: Fix indentation.
1951 * m32r-linux-tdep.c: Fix indentation.
1952 * m32r-tdep.c: Fix indentation.
1953 * m68hc11-tdep.c: Fix indentation.
1954 * m68k-bsd-nat.c: Fix indentation.
1955 * m68k-linux-nat.c: Fix indentation.
1956 * m68k-linux-tdep.c: Fix indentation.
1957 * m68k-tdep.c: Fix indentation.
1958 * machoread.c: Fix indentation.
1959 * macrocmd.c: Fix indentation.
1960 * macroexp.c: Fix indentation.
1961 * macroscope.c: Fix indentation.
1962 * macrotab.c: Fix indentation.
1963 * macrotab.h: Fix indentation.
1964 * main.c: Fix indentation.
1965 * mdebugread.c: Fix indentation.
1966 * mep-tdep.c: Fix indentation.
1967 * mi/mi-cmd-catch.c: Fix indentation.
1968 * mi/mi-cmd-disas.c: Fix indentation.
1969 * mi/mi-cmd-env.c: Fix indentation.
1970 * mi/mi-cmd-stack.c: Fix indentation.
1971 * mi/mi-cmd-var.c: Fix indentation.
1972 * mi/mi-cmds.c: Fix indentation.
1973 * mi/mi-main.c: Fix indentation.
1974 * mi/mi-parse.c: Fix indentation.
1975 * microblaze-tdep.c: Fix indentation.
1976 * minidebug.c: Fix indentation.
1977 * minsyms.c: Fix indentation.
1978 * mips-linux-nat.c: Fix indentation.
1979 * mips-linux-tdep.c: Fix indentation.
1980 * mips-nbsd-tdep.c: Fix indentation.
1981 * mips-tdep.c: Fix indentation.
1982 * mn10300-linux-tdep.c: Fix indentation.
1983 * mn10300-tdep.c: Fix indentation.
1984 * moxie-tdep.c: Fix indentation.
1985 * msp430-tdep.c: Fix indentation.
1986 * namespace.h: Fix indentation.
1987 * nat/fork-inferior.c: Fix indentation.
1988 * nat/gdb_ptrace.h: Fix indentation.
1989 * nat/linux-namespaces.c: Fix indentation.
1990 * nat/linux-osdata.c: Fix indentation.
1991 * nat/netbsd-nat.c: Fix indentation.
1992 * nat/x86-dregs.c: Fix indentation.
1993 * nbsd-nat.c: Fix indentation.
1994 * nbsd-tdep.c: Fix indentation.
1995 * nios2-linux-tdep.c: Fix indentation.
1996 * nios2-tdep.c: Fix indentation.
1997 * nto-procfs.c: Fix indentation.
1998 * nto-tdep.c: Fix indentation.
1999 * objfiles.c: Fix indentation.
2000 * objfiles.h: Fix indentation.
2001 * opencl-lang.c: Fix indentation.
2002 * or1k-tdep.c: Fix indentation.
2003 * osabi.c: Fix indentation.
2004 * osabi.h: Fix indentation.
2005 * osdata.c: Fix indentation.
2006 * p-lang.c: Fix indentation.
2007 * p-typeprint.c: Fix indentation.
2008 * p-valprint.c: Fix indentation.
2009 * parse.c: Fix indentation.
2010 * ppc-linux-nat.c: Fix indentation.
2011 * ppc-linux-tdep.c: Fix indentation.
2012 * ppc-nbsd-nat.c: Fix indentation.
2013 * ppc-nbsd-tdep.c: Fix indentation.
2014 * ppc-obsd-nat.c: Fix indentation.
2015 * ppc-ravenscar-thread.c: Fix indentation.
2016 * ppc-sysv-tdep.c: Fix indentation.
2017 * ppc64-tdep.c: Fix indentation.
2018 * printcmd.c: Fix indentation.
2019 * proc-api.c: Fix indentation.
2020 * producer.c: Fix indentation.
2021 * producer.h: Fix indentation.
2022 * prologue-value.c: Fix indentation.
2023 * prologue-value.h: Fix indentation.
2024 * psymtab.c: Fix indentation.
2025 * python/py-arch.c: Fix indentation.
2026 * python/py-bpevent.c: Fix indentation.
2027 * python/py-event.c: Fix indentation.
2028 * python/py-event.h: Fix indentation.
2029 * python/py-finishbreakpoint.c: Fix indentation.
2030 * python/py-frame.c: Fix indentation.
2031 * python/py-framefilter.c: Fix indentation.
2032 * python/py-inferior.c: Fix indentation.
2033 * python/py-infthread.c: Fix indentation.
2034 * python/py-objfile.c: Fix indentation.
2035 * python/py-prettyprint.c: Fix indentation.
2036 * python/py-registers.c: Fix indentation.
2037 * python/py-signalevent.c: Fix indentation.
2038 * python/py-stopevent.c: Fix indentation.
2039 * python/py-stopevent.h: Fix indentation.
2040 * python/py-threadevent.c: Fix indentation.
2041 * python/py-tui.c: Fix indentation.
2042 * python/py-unwind.c: Fix indentation.
2043 * python/py-value.c: Fix indentation.
2044 * python/py-xmethods.c: Fix indentation.
2045 * python/python-internal.h: Fix indentation.
2046 * python/python.c: Fix indentation.
2047 * ravenscar-thread.c: Fix indentation.
2048 * record-btrace.c: Fix indentation.
2049 * record-full.c: Fix indentation.
2050 * record.c: Fix indentation.
2051 * reggroups.c: Fix indentation.
2052 * regset.h: Fix indentation.
2053 * remote-fileio.c: Fix indentation.
2054 * remote.c: Fix indentation.
2055 * reverse.c: Fix indentation.
2056 * riscv-linux-tdep.c: Fix indentation.
2057 * riscv-ravenscar-thread.c: Fix indentation.
2058 * riscv-tdep.c: Fix indentation.
2059 * rl78-tdep.c: Fix indentation.
2060 * rs6000-aix-tdep.c: Fix indentation.
2061 * rs6000-lynx178-tdep.c: Fix indentation.
2062 * rs6000-nat.c: Fix indentation.
2063 * rs6000-tdep.c: Fix indentation.
2064 * rust-lang.c: Fix indentation.
2065 * rx-tdep.c: Fix indentation.
2066 * s12z-tdep.c: Fix indentation.
2067 * s390-linux-tdep.c: Fix indentation.
2068 * score-tdep.c: Fix indentation.
2069 * ser-base.c: Fix indentation.
2070 * ser-mingw.c: Fix indentation.
2071 * ser-uds.c: Fix indentation.
2072 * ser-unix.c: Fix indentation.
2073 * serial.c: Fix indentation.
2074 * sh-linux-tdep.c: Fix indentation.
2075 * sh-nbsd-tdep.c: Fix indentation.
2076 * sh-tdep.c: Fix indentation.
2077 * skip.c: Fix indentation.
2078 * sol-thread.c: Fix indentation.
2079 * solib-aix.c: Fix indentation.
2080 * solib-darwin.c: Fix indentation.
2081 * solib-frv.c: Fix indentation.
2082 * solib-svr4.c: Fix indentation.
2083 * solib.c: Fix indentation.
2084 * source.c: Fix indentation.
2085 * sparc-linux-tdep.c: Fix indentation.
2086 * sparc-nbsd-tdep.c: Fix indentation.
2087 * sparc-obsd-tdep.c: Fix indentation.
2088 * sparc-ravenscar-thread.c: Fix indentation.
2089 * sparc-tdep.c: Fix indentation.
2090 * sparc64-linux-tdep.c: Fix indentation.
2091 * sparc64-nbsd-tdep.c: Fix indentation.
2092 * sparc64-obsd-tdep.c: Fix indentation.
2093 * sparc64-tdep.c: Fix indentation.
2094 * stabsread.c: Fix indentation.
2095 * stack.c: Fix indentation.
2096 * stap-probe.c: Fix indentation.
2097 * stubs/ia64vms-stub.c: Fix indentation.
2098 * stubs/m32r-stub.c: Fix indentation.
2099 * stubs/m68k-stub.c: Fix indentation.
2100 * stubs/sh-stub.c: Fix indentation.
2101 * stubs/sparc-stub.c: Fix indentation.
2102 * symfile-mem.c: Fix indentation.
2103 * symfile.c: Fix indentation.
2104 * symfile.h: Fix indentation.
2105 * symmisc.c: Fix indentation.
2106 * symtab.c: Fix indentation.
2107 * symtab.h: Fix indentation.
2108 * target-float.c: Fix indentation.
2109 * target.c: Fix indentation.
2110 * target.h: Fix indentation.
2111 * tic6x-tdep.c: Fix indentation.
2112 * tilegx-linux-tdep.c: Fix indentation.
2113 * tilegx-tdep.c: Fix indentation.
2114 * top.c: Fix indentation.
2115 * tracefile-tfile.c: Fix indentation.
2116 * tracepoint.c: Fix indentation.
2117 * tui/tui-disasm.c: Fix indentation.
2118 * tui/tui-io.c: Fix indentation.
2119 * tui/tui-regs.c: Fix indentation.
2120 * tui/tui-stack.c: Fix indentation.
2121 * tui/tui-win.c: Fix indentation.
2122 * tui/tui-winsource.c: Fix indentation.
2123 * tui/tui.c: Fix indentation.
2124 * typeprint.c: Fix indentation.
2125 * ui-out.h: Fix indentation.
2126 * unittests/copy_bitwise-selftests.c: Fix indentation.
2127 * unittests/memory-map-selftests.c: Fix indentation.
2128 * utils.c: Fix indentation.
2129 * v850-tdep.c: Fix indentation.
2130 * valarith.c: Fix indentation.
2131 * valops.c: Fix indentation.
2132 * valprint.c: Fix indentation.
2133 * valprint.h: Fix indentation.
2134 * value.c: Fix indentation.
2135 * value.h: Fix indentation.
2136 * varobj.c: Fix indentation.
2137 * vax-tdep.c: Fix indentation.
2138 * windows-nat.c: Fix indentation.
2139 * windows-tdep.c: Fix indentation.
2140 * xcoffread.c: Fix indentation.
2141 * xml-syscall.c: Fix indentation.
2142 * xml-tdesc.c: Fix indentation.
2143 * xstormy16-tdep.c: Fix indentation.
2144 * xtensa-config.c: Fix indentation.
2145 * xtensa-linux-nat.c: Fix indentation.
2146 * xtensa-linux-tdep.c: Fix indentation.
2147 * xtensa-tdep.c: Fix indentation.
2148
2149 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2150 Craig Blackmore <craig.blackmore@embecosm.com>
2151
2152 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2153 as an unsigned value.
2154
2155 2020-11-01 Tom Tromey <tom@tromey.com>
2156
2157 * dbxread.c (dbx_end_psymtab): Update.
2158 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2159 (build_type_psymtabs_reader): Update.
2160 * xcoffread.c (xcoff_end_psymtab): Update.
2161 * ctfread.c (scan_partial_symbols): Update.
2162 * psymtab.c (sort_pst_symbols): Remove.
2163 (partial_symtab::end): Rename from end_psymtab_common. Inline
2164 sort_pst_symbols.
2165 * psympriv.h (struct partial_symtab) <end>: New method.
2166 (end_psymtab_common): Don't declare.
2167
2168 2020-11-01 Tom Tromey <tom@tromey.com>
2169
2170 * symmisc.c (count_psyms): New function.
2171 (print_objfile_statistics): Use it.
2172 * psymtab.c (append_psymbol_to_list): Remove.
2173 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2174 * objfiles.h (struct objstats) <n_psyms>: Remove.
2175
2176 2020-11-01 Tom Tromey <tom@tromey.com>
2177
2178 * dbxread.c (dbx_end_psymtab): Update.
2179 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2180 (build_type_psymtabs_reader): Update.
2181 * xcoffread.c (xcoff_end_psymtab): Update.
2182 * ctfread.c (scan_partial_symbols): Update.
2183 * psympriv.h (end_psymtab_common): Update.
2184 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2185 (sort_pst_symbols): Likewise.
2186
2187 2020-11-01 Tom Tromey <tom@tromey.com>
2188
2189 * dbxread.c (dbx_symfile_read): Update.
2190 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2191 * xcoffread.c (xcoff_initial_scan): Update.
2192 * psympriv.h (init_psymbol_list): Don't declare.
2193 * psymtab.c (init_psymbol_list): Remove.
2194
2195 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2196
2197 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2198 gnat_encoded_fixed_type_info. Update all callers.
2199
2200 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2201
2202 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2203 line too long.
2204
2205 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2206
2207 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2208 cast_from_fixed. Update all callers.
2209 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2210 Update all callers.
2211 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2212 Update all callers.
2213 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2214 ada_scaling_factor.
2215 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2216 to print_gnat_encoded_fixed_point_type.
2217 * ada-valprint.c: Likewise.
2218
2219 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2222 (debug_prefixed_printf): Add check of debug_displaced flag.
2223 * linux-nat.c (linux_nat_debug_printf): Add check of
2224 debug_linux_nat flag.
2225
2226 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * infrun.c (infrun_debug_printf_1): Remove.
2229 (displaced_debug_printf_1): Remove.
2230 (stop_all_threads): Use debug_prefixed_printf.
2231 * infrun.h (infrun_debug_printf_1): Remove.
2232 (infrun_debug_printf): Use debug_prefixed_printf.
2233 (displaced_debug_printf_1): Remove.
2234 (displaced_debug_printf): Use debug_prefixed_printf.
2235 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2236 (linux_nat_debug_printf): Use debug_prefixed_printf.
2237
2238 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2239
2240 * configure: Re-generate.
2241 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2242 AC_LANG_PROGRAM.
2243
2244 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * configure: Re-generate.
2247
2248 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * configure: Re-generate.
2251
2252 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2253
2254 * configure: Re-generate.
2255
2256 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2257
2258 * configure: Re-generate.
2259
2260 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * acinclude.m4: Modernize.
2263 * configure: Re-generate.
2264
2265 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * configure.ac: Modernize.
2268 * configure: Re-generate.
2269
2270 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2271
2272 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2273 * configure: Re-generate.
2274 * configure.ac: Remove AM_PROG_CC_STDC.
2275
2276 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2277
2278 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2279 AC_CANONICAL_SYSTEM.
2280 * configure: Re-generate.
2281
2282 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * infrun.h (displaced_debug_printf): New macro. Replace
2285 displaced debug prints throughout to use it.
2286 (displaced_debug_printf_1): New declaration.
2287 (displaced_step_dump_bytes): Return string, remove ui_file
2288 parameter, update all callers.
2289 * infrun.c (displaced_debug_printf_1): New function.
2290 (displaced_step_dump_bytes): Return string, remove ui_file
2291 parameter
2292
2293 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2296
2297 2020-10-30 Tom Tromey <tromey@adacore.com>
2298
2299 * Makefile.in (stamp-init): Depend on config.status.
2300
2301 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2302
2303 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2304
2305 2020-10-30 Pedro Alves <pedro@palves.net>
2306
2307 * thread.c (lookup_selected_frame): Move ...
2308 * frame.c (lookup_selected_frame): ... here.
2309
2310 2020-10-30 Pedro Alves <pedro@palves.net>
2311
2312 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2313 * frame.c
2314 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2315 Use save_selected_frame. Save language as well.
2316 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2317 Use restore_selected_frame, and restore language as well.
2318 (selected_frame_id, selected_frame_level): New.
2319 (selected_frame): Update comments.
2320 (save_selected_frame, restore_selected_frame): New.
2321 (get_selected_frame): Use lookup_selected_frame.
2322 (get_selected_frame_if_set): Delete.
2323 (select_frame): Record selected_frame_level and selected_frame_id.
2324 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2325 fields.
2326 (get_selected_frame): Make 'message' parameter optional.
2327 (get_selected_frame_if_set): Delete declaration.
2328 (select_frame): Update comments.
2329 (save_selected_frame, restore_selected_frame)
2330 (lookup_selected_frame): Declare.
2331 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2332 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2333 New field.
2334 (save_infcall_control_state): Use save_selected_frame.
2335 (restore_selected_frame): Delete.
2336 (restore_infcall_control_state): Use restore_selected_frame.
2337 * stack.c (select_frame_command_core, frame_command_core): Use
2338 get_selected_frame.
2339 * thread.c (restore_selected_frame): Rename to ...
2340 (lookup_selected_frame): ... this and make extern. Select the
2341 current frame if the frame level is -1.
2342 (scoped_restore_current_thread::restore): Also restore the
2343 language.
2344 (scoped_restore_current_thread::~scoped_restore_current_thread):
2345 Don't try/catch.
2346 (scoped_restore_current_thread::scoped_restore_current_thread):
2347 Save the language as well. Use save_selected_frame.
2348
2349 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2352 documentation.
2353 * gdbarch.h: Re-generate.
2354
2355 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2358 parameter.
2359 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2360 Likewise.
2361 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2362 Likewise.
2363 * arch-utils.c (default_displaced_step_hw_singlestep):
2364 Likewise.
2365 * arch-utils.h (default_displaced_step_hw_singlestep):
2366 Likewise.
2367 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2368 Likewise.
2369 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2370 Likewise.
2371 * gdbarch.c: Re-generate.
2372 * gdbarch.h: Re-generate.
2373 * infrun.c (resume_1): Adjust.
2374
2375 2020-10-29 Tom Tromey <tom@tromey.com>
2376
2377 * progspace.c (program_space::~program_space): Don't call
2378 exec_close.
2379
2380 2020-10-29 Tom Tromey <tom@tromey.com>
2381
2382 * exec.c (exec_target::close): Don't change current program
2383 space.
2384
2385 2020-10-29 Tom Tromey <tom@tromey.com>
2386
2387 * symfile.c (add_symbol_file_command): Update.
2388 * exec.c (program_space::add_target_sections): Rename.
2389 * symfile-mem.c (symbol_file_add_from_memory): Update.
2390 * progspace.h (struct program_space) <add_target_sections>:
2391 Declare new overload.
2392 * exec.h (add_target_sections_of_objfile): Don't declare.
2393
2394 2020-10-29 Tom Tromey <tom@tromey.com>
2395
2396 * solib.c (solib_map_sections): Update.
2397 * exec.c (program_space::add_target_sections): Now a method.
2398 (exec_file_attach): Update.
2399 * exec.h (add_target_sections): Don't declare.
2400 * progspace.h (struct program_space) <add_target_sections>:
2401 Declare.
2402
2403 2020-10-29 Tom Tromey <tom@tromey.com>
2404
2405 * progspace.h (struct program_space) <remove_target_sections>:
2406 Declare.
2407 * exec.c (program_space::remove_target_sections): Now a method.
2408 * exec.h (remove_target_sections): Don't declare.
2409
2410 2020-10-29 Tom Tromey <tom@tromey.com>
2411
2412 * inferior.c (delete_inferior): Update.
2413 * progspace.c (program_space::empty): Rename from
2414 program_space_empty_p. Return bool.
2415 * progspace.h (struct program_space) <empty>: New method.
2416 (program_space_empty_p): Don't declare.
2417
2418 2020-10-29 Tom Tromey <tom@tromey.com>
2419
2420 * progspace.c (program_space::~program_space): Don't call
2421 clear_program_space_solib_cache.
2422 (program_space::clear_solib_cache): Rename from
2423 clear_solib_cache.
2424 * solib.c (handle_solib_event): Update.
2425 * progspace.h (struct program_space) <clear_solib_cache>: New
2426 method.
2427 (clear_program_space_solib_cache): Don't declare.
2428
2429 2020-10-29 Tom Tromey <tom@tromey.com>
2430
2431 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2432 * target.c (info_target_command): Update.
2433 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2434 (symbol_file_clear, reread_symbols): Update.
2435 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2436 * stabsread.c (scan_file_globals): Update.
2437 * solib.c (update_solib_list): Update.
2438 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2439 (svr4_fetch_objfile_link_map, enable_break)
2440 (svr4_relocate_main_executable)
2441 (svr4_iterate_over_objfiles_in_search_order): Update.
2442 * solib-frv.c (lm_base, enable_break)
2443 (frv_relocate_main_executable): Update.
2444 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2445 (frv_fetch_objfile_link_map): Update.
2446 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2447 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2448 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2449 * remote.c (remote_target::get_offsets): Update.
2450 (remote_target::start_remote)
2451 (extended_remote_target::post_attach): Update.
2452 * objfiles.c (entry_point_address_query): Update.
2453 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2454 * minsyms.c (get_symbol_leading_char): Update.
2455 * frame.c (inside_main_func): Update.
2456 * progspace.h (symfile_objfile): Remove macro.
2457
2458 2020-10-29 Tom Tromey <tom@tromey.com>
2459
2460 * exec.c (exec_file_attach): Update.
2461 * progspace.c (program_space::exec_close): Update.
2462 * progspace.h (struct program_space) <ebfd>: Now a
2463 gdb_bfd_ref_ptr.
2464 <set_exec_bfd>: Change argument type.
2465 <exec_bfd>: Update.
2466
2467 2020-10-29 Tom Tromey <tom@tromey.com>
2468
2469 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2470 * symfile.c (reread_symbols): Update.
2471 * symfile-mem.c (add_symbol_file_from_memory_command)
2472 (add_vsyscall_page): Update.
2473 * source-cache.c (source_cache::get_plain_source_lines): Update.
2474 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2475 (svr4_current_sos_direct, svr4_exec_displacement)
2476 (svr4_relocate_main_executable): Update.
2477 (svr4_iterate_over_objfiles_in_search_order): Update.
2478 * solib-frv.c (enable_break2, enable_break): Update.
2479 * solib-dsbt.c (lm_base, enable_break): Update.
2480 * solib-darwin.c (find_program_interpreter)
2481 (darwin_solib_create_inferior_hook): Update.
2482 * sol-thread.c (rw_common, ps_pdmodel): Update.
2483 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2484 * remote.c (compare_sections_command)
2485 (remote_target::trace_set_readonly_regions): Update.
2486 * remote-sim.c (get_sim_inferior_data)
2487 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2488 (gdbsim_target_open, gdbsim_target::files_info): Update.
2489 * exec.h (exec_bfd): Remove macro.
2490 * progspace.c (initialize_progspace): Update.
2491 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2492 Update.
2493 * nto-procfs.c (nto_procfs_target::post_attach)
2494 (nto_procfs_target::create_inferior): Update.
2495 * maint.c (maintenance_info_sections): Update.
2496 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2497 Update.
2498 * infcmd.c (post_create_inferior): Update.
2499 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2500 (objfile_find_memory_regions): Update.
2501 * exec.c (validate_exec_file, exec_file_attach)
2502 (exec_read_partial_read_only, print_section_info): Update.
2503 * corelow.c (core_target_open): Update.
2504 * corefile.c (reopen_exec_file, validate_files): Update.
2505 * arm-tdep.c (gdb_print_insn_arm): Update.
2506 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2507 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2508 methods.
2509
2510 2020-10-29 Tom Tromey <tom@tromey.com>
2511
2512 * progspace.h (current_target_sections): Remove macro.
2513 * solib-svr4.c (scan_dyntag): Update.
2514 * solib-dsbt.c (scan_dyntag): Update.
2515 * exec.c (exec_target::close): Update.
2516 (add_target_sections, add_target_sections_of_objfile)
2517 (remove_target_sections, exec_target::get_section_table)
2518 (exec_target::files_info, set_section_command)
2519 (exec_set_section_address, exec_target::has_memory)
2520 (exec_target::has_memory): Update.
2521
2522 2020-10-29 Tom Tromey <tom@tromey.com>
2523
2524 * source-cache.c (source_cache::get_plain_source_lines): Use
2525 current_program_space.
2526 * corefile.c (reopen_exec_file): Use current_program_space.
2527 * exec.c (exec_file_attach): Use current_program_space.
2528 * exec.h (exec_bfd_mtime): Remove.
2529
2530 2020-10-29 Tom Tromey <tom@tromey.com>
2531
2532 * gcore.c (default_gcore_mach): Remove.
2533 (create_gcore_bfd): Update.
2534
2535 2020-10-29 Tom Tromey <tom@tromey.com>
2536
2537 * progspace.c (program_space::exec_close): New method, from
2538 exec_close in exec.c.
2539 * exec.c (exec_close): Move to progspace.c.
2540 (exec_target::close, exec_file_attach): Update.
2541 * progspace.h (struct program_space) <exec_close>: Declare
2542 method.
2543
2544 2020-10-29 Tom Tromey <tom@tromey.com>
2545
2546 * progspace.h (struct program_space) <exec_filename>: Rename from
2547 pspace_exec_filename. Now a unique_xmalloc_ptr.
2548 * inferior.c (print_selected_inferior): Update.
2549 (print_inferior): Update.
2550 * mi/mi-main.c (print_one_inferior): Update.
2551 * exec.h (exec_filename): Remove macro.
2552 * corefile.c (get_exec_file): Update.
2553 * exec.c (exec_close): Update.
2554 (exec_file_attach): Update.
2555 * progspace.c (clone_program_space): Update.
2556 (print_program_space): Update.
2557
2558 2020-10-29 Tom Tromey <tom@tromey.com>
2559
2560 * target-section.h (struct target_section): Add constructor.
2561 * exec.c (build_section_table, add_target_sections_of_objfile):
2562 Update.
2563 * corelow.c (core_target::build_file_mappings): Update.
2564
2565 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2566
2567 PR gdb/19318
2568 * inferior.c (detach_inferior_command): Restore the current thread.
2569 (kill_inferior_command): Ditto.
2570
2571 2020-10-28 Tom de Vries <tdevries@suse.de>
2572
2573 PR symtab/26772
2574 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2575 map, check it in the "best match" loop.
2576
2577 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2578
2579 * m32c-tdep.c: Remove unused includes.
2580
2581 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * xtensa-tdep.c: Remove includes.
2584
2585 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2586
2587 * breakpoint.c (struct condition_command_opts): New struct.
2588 (condition_command_option_defs): New static global.
2589 (make_condition_command_options_def_group): New function.
2590 (condition_completer): Update to consider the '-force' flag.
2591 (condition_command): Use gdb::option for the '-force' flag.
2592
2593 2020-10-27 Tom de Vries <tdevries@suse.de>
2594
2595 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2596 symbols in section check.
2597
2598 2020-10-27 Tom de Vries <tdevries@suse.de>
2599
2600 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2601
2602 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603
2604 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2605 * breakpoint.c: Update the help text of the 'condition' and 'break'
2606 commands.
2607 (set_breakpoint_condition): Take a new bool parameter
2608 to control whether condition definition should be forced even when
2609 the condition expression is invalid in all of the current locations.
2610 (condition_command): Update the call to 'set_breakpoint_condition'.
2611 (find_condition_and_thread): Take the "-force-condition" flag into
2612 account.
2613 * linespec.c (linespec_keywords): Add "-force-condition" as an
2614 element.
2615 (FORCE_KEYWORD_INDEX): New #define.
2616 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2617 as a keyword.
2618 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2619 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2620 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2621 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2622
2623 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2624
2625 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2626 * breakpoint.c (set_breakpoint_location_condition): New function.
2627 (set_breakpoint_condition): Disable a breakpoint location if parsing
2628 the condition string gives an error.
2629 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2630 (build_target_condition_list): Ditto.
2631 (build_target_command_list): Ditto.
2632 (build_bpstat_chain): Ditto.
2633 (print_one_breakpoint_location): Ditto.
2634 (print_one_breakpoint): Ditto.
2635 (breakpoint_1): Ditto.
2636 (bp_location::bp_location): Ditto.
2637 (locations_are_equal): Ditto.
2638 (update_breakpoint_locations): Ditto.
2639 (enable_disable_bp_num_loc): Ditto.
2640 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2641 (find_condition_and_thread_for_sals): New static function.
2642 (create_breakpoint): Call find_condition_and_thread_for_sals.
2643 (location_to_sals): Call find_condition_and_thread_for_sals instead
2644 of find_condition_and_thread.
2645
2646 2020-10-26 Tom de Vries <tdevries@suse.de>
2647
2648 * dwarf2/read.c (process_full_comp_unit): Call
2649 dwarf2_find_base_address.
2650
2651 2020-10-26 Tom Tromey <tromey@adacore.com>
2652
2653 * gdbtypes.c (create_range_type): Revert previous patch. Add
2654 comment.
2655
2656 2020-10-26 Pedro Alves <pedro@palves.net>
2657
2658 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2659 (my_waitpid): Use gdb::handle_eintr.
2660
2661 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2662
2663 * acinclude.m4: Update ptrace.m4 path.
2664 * ptrace.m4: Moved to gdbsupport.
2665
2666 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2667
2668 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2669 instead of target_gdbarch.
2670
2671 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * jit.c (jit_reader_load_command): Pass current inferior.
2674 (jit_inferior_init): Change parameter type to inferior, use it.
2675 (jit_inferior_created): Remove.
2676 (jit_inferior_created_hook): Pass inferior parameter down.
2677 (_initialize_jit): Use jit_inferior_created_hook instead of
2678 jit_inferior_created.
2679 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2680 * infrun.c (follow_exec): Pass inferior to
2681 jit_inferior_created_hook.
2682
2683 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2686 parameter and use it.
2687 (thread_db_inferior_created): Pass inferior argument.
2688
2689 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * aix-thread.c (aix_thread_inferior_created): Add inferior
2692 parameter.
2693 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2694 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2695 * jit.c (jit_inferior_created): Likewise.
2696 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2697 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2698 * observable.h (inferior_created): Likewise.
2699 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2700 * symfile-mem.c (add_vsyscall_page): Likewise.
2701 * infcmd.c (post_create_inferior): Pass inferior argument.
2702
2703 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2704
2705 GDB 10.1 released.
2706
2707 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2708
2709 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2710 to ada_check_typedef.
2711
2712 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * f-exp.y (f_parse): Rename to...
2715 (f_language::parser): ...this.
2716 * f-lang.c (f_get_encoding): Rename to...
2717 (f_language::get_encoding): ...this.
2718 (f_op_print_tab): Rename to...
2719 (f_language::op_print_tab): ...this.
2720 (exp_descriptor_f): Rename to...
2721 (f_language::exp_descriptor_tab): ...this.
2722 (class f_language): Moved to f-lang.h.
2723 (f_language::language_arch_info): New function, moved out of class
2724 declaration.
2725 (f_language::search_name_hash): Likewise.
2726 (f_language::lookup_symbol_nonlocal): Likewise.
2727 (f_language::get_symbol_name_matcher_inner): Likewise.
2728 * f-lang.h: Add 'valprint.h' include.
2729 (class f_language): Moved here from f-lang.c.
2730 * f-typeprint.c (f_type_print_args): Delete commented out
2731 declaration.
2732 (f_print_typedef): Rename to...
2733 (f_language::print_typedef): ...this.
2734 (f_print_type): Rename to...
2735 (f_language::print_type): ...this.
2736 (f_type_print_varspec_prefix): Delete declaration and rename to...
2737 (f_language::f_type_print_varspec_prefix): ...this.
2738 (f_type_print_varspec_suffix): Delete declaration and rename to...
2739 (f_language::f_type_print_varspec_suffix): ...this.
2740 (f_type_print_base): Delete declaration and rename to...
2741 (f_language::f_type_print_base): ...this.
2742 * f-valprint.c (f_value_print_inner): Rename to...
2743 (f_language::value_print_inner): ...this.
2744 * parse.c: Delete 'f-lang.h' include.
2745
2746 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * language.h (language_defn::print_type): Add variable names in
2749 declaration, and update header comment.
2750
2751 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * ada-lang.c (ada_language::demangle): Rename to...
2754 (ada_language::demangle_symbol): ...this.
2755 * c-lang.c (cplus_language::demangle): Rename to...
2756 (cplus_language::demangle_symbol): ...this.
2757 * d-lang.c (d_language::demangle): Rename to...
2758 (d_language::demangle_symbol): ...this.
2759 * f-lang.c (f_language::demangle): Rename to...
2760 (f_language::demangle_symbol): ...this.
2761 * go-lang.c (go_language::demangle): Rename to...
2762 (go_language::demangle_symbol): ...this.
2763 * language.c (language_demangle): Update call to demangle_symbol.
2764 (auto_or_unknown_language::demangle): Rename to...
2765 (auto_or_unknown_language::demangle_symbol): ...this.
2766 * language.h (language_defn::demangle): Rename to...
2767 (language_defn::demangle_symbol): ...this.
2768 * objc-lang.c (objc_language::demangle): Rename to...
2769 (objc_language::demangle_symbol): ...this.
2770 * rust-lang.c (rust_language::demangle): Rename to...
2771 (rust_language::demangle_symbol): ...this.
2772
2773 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2776 (iterate_over_file_blocks): Replace use of macro with the macros
2777 definition.
2778
2779 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2782 * valprint.c (maybe_print_array_index): Replace use of macro with
2783 the macros definition.
2784
2785 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * ada-lang.c (ada_language::print_array_index): Call value_print
2788 directly.
2789 * language.c (language_defn::print_array_index): Likewise.
2790 * language.h (LA_VALUE_PRINT): Delete.
2791 * valprint.c (value_print): Call value_print on the
2792 current_language directly.
2793
2794 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * language.h (LA_PRINT_TYPEDEF): Delete.
2797 * typeprint.c (typedef_print): Call print_typedef directly on the
2798 current_language object.
2799
2800 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * m2-exp.y (m2_parse): Rename to...
2803 (m2_language::parser): ...this. Update function signature.
2804 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2805 (m2_op_print): Rename to...
2806 (m2_language::op_print_tab): ...this, and make const.
2807 (exp_descriptor_modula2): Rename to...
2808 (m2_language::exp_descriptor_modula2): ...this.
2809 (class m2_language): Move to m2-lang.h.
2810 (m2_language::language_arch_info): New function, moved out of
2811 class declaration.
2812 (m2_language::printchar): New function, body from m2_printchar.
2813 (m2_language::printstr): New function, moved out of class
2814 declaration.
2815 (m2_language::emitchar): Likewise.
2816 * m2-lang.h (m2_parse): Delete declaration.
2817 (m2_print_typedef): Delete declaration.
2818 (m2_value_print_inner): Delete declaration.
2819 (class m2_language): Class declaration moved from m2-lang.c,
2820 larger functions are left in m2-lang.c.
2821 * m2-typeprint.c (m2_print_typedef): Rename to...
2822 (m2_language::print_typedef): ...this, and update function
2823 signature.
2824 * m2-valprint.c (m2_value_print_inner): Rename to...
2825 (m2_language::value_print_inner): ...this, replace use of
2826 LA_PRINT_STRING with a direct call to printstr member function,
2827 and update recursive call.
2828
2829 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * language.c (default_is_string_type_p): Delete, implementation
2832 moved into auto_or_unknown_language::is_string_type_p.
2833 (unk_op_print_tab): Moved into
2834 auto_or_unknown_language::opcode_print_table.
2835 (unknown_language_arch_info): Delete, implementation moved into
2836 auto_or_unknown_language::language_arch_info.
2837 (class auto_or_unknown_language): New class, member functions
2838 copied from unknown_language class, with some updates.
2839 (class unknown_language): Most member functions moved into
2840 auto_or_unknown_language class. Inherit from
2841 auto_or_unknown_language class.
2842 (class auto_language): Inherit from auto_or_unknown_language.
2843 Delete most member functions.
2844
2845 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2846
2847 * stabsread.c (read_member_functions): Remove gdb_assert.
2848
2849 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2850
2851 * gdbtypes.c (init_complex_type): Check target type name.
2852
2853 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * target-debug.h (target_debug_print_struct_target_ops_p):
2856 Remove.
2857 (target_debug_print_async_callback_ftype_p): Remove.
2858 (target_debug_print_struct_trace_state_variable_p): Remove.
2859 (target_debug_print_struct_traceframe_info_p): Remove.
2860 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2861 (target_debug_print_enum_btrace_format): Remove.
2862 (target_debug_print_enum_info_proc_what): Remove.
2863 (target_debug_print_thread_info_pp): Remove.
2864
2865 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2866
2867 * target.h (struct target_ops) <make_corefile_notes>:
2868 Change return type to unique pointer.
2869 * target.c (dummy_make_corefile_notes): Likewise.
2870 * exec.c (struct exec_target) <make_corefile_notes>:
2871 Likewise.
2872 (exec_target::make_corefile_notes): Likewise.
2873 * procfs.c (class procfs_target) <make_corefile_notes>:
2874 Likewise.
2875 (procfs_do_thread_registers): Adjust to unique pointer.
2876 (struct procfs_corefile_thread_data): Add constructor.
2877 <note_data>: Change type to unique pointer.
2878 (procfs_corefile_thread_callback): Adjust to unique pointer.
2879 (procfs_target::make_corefile_notes): Change return type to
2880 unique pointer.
2881 * target-delegates.c: Re-generate.
2882 * gcore.c (write_gcore_file_1): Adjust.
2883 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2884 New.
2885
2886 2020-10-22 Tom de Vries <tdevries@suse.de>
2887
2888 * block.c (find_block_in_blockvector): Make sure the returned block
2889 contains pc.
2890
2891 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 PR gdb/26693
2894 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2895 parameter.
2896 (load_cu): Pass existing CU.
2897 (process_imported_unit_die): Likewise.
2898 (follow_die_offset): Likewise.
2899
2900 2020-10-22 Luis Machado <luis.machado@linaro.org>
2901
2902 * corelow.c (core_target::xfer_partial): Also check for an empty
2903 m_core_unavailable_mappings vector.
2904
2905 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2908 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2909 * f-exp.y (arglist): Allow for a series of subranges.
2910 (subrange): Add cases for subranges with strides.
2911 * f-lang.c (value_f90_subarray): Catch use of array strides and
2912 throw an error.
2913 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2914
2915 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * expprint.c (print_subexp_standard): Change enum range_type to
2918 range_flag and rename variables to match.
2919 (dump_subexp_body_standard): Likewise.
2920 * expression.h (enum range_type): Rename to...
2921 (enum range_flag): ...this.
2922 (range_types): Rename to...
2923 (range_flags): ...this.
2924 * f-lang.c (value_f90_subarray): Change enum range_type to
2925 range_flag and rename variables to match.
2926 * parse.c (operator_length_standard): Likewise.
2927 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2928 range_type to range_flag.
2929 * rust-lang.c (rust_evaluate_funcall): Likewise.
2930 (rust_range): Likewise.
2931 (rust_compute_range): Likewise.
2932 (rust_subscript): Likewise.
2933
2934 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * expprint.c (print_subexp_standard): Update to reflect changes to
2937 enum range_type.
2938 (dump_subexp_body_standard): Likewise.
2939 * expression.h (enum range_type): Convert to a bit field enum, and
2940 make the enum unsigned.
2941 * f-exp.y (subrange): Update to reflect changes to enum
2942 range_type.
2943 * f-lang.c (value_f90_subarray): Likewise.
2944 * parse.c (operator_length_standard): Likewise.
2945 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2946 * rust-lang.c (rust_range): Likewise.
2947 (rust_compute_range): Likewise.
2948 (rust_subscript): Likewise.
2949
2950 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2953 (displaced_step_in_progress): Fix comment.
2954
2955 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2956
2957 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2958 * gdbarch.c: Re-generate.
2959 * gdbarch.h: Re-generate.
2960 * gcore.c (write_gcore_file_1): Adjust.
2961 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2962 constructor.
2963 <note_data>: Change type to unique pointer.
2964 <abort_iteration>: Change type to bool.
2965 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2966 (fbsd_collect_thread_registers): Return void, adjust.
2967 (struct fbsd_corefile_thread_data): Add construtor.
2968 <note_data>: Change type to unique pointer.
2969 (fbsd_corefile_thread): Adjust.
2970 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2971 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2972 to unique pointer, adjust.
2973 (struct linux_collect_regset_section_cb_data): Add constructor.
2974 <note_data>: Change type to unique pointer.
2975 <abort_iteration>: Change type to bool.
2976 (linux_collect_thread_registers): Return void, adjust.
2977 (struct linux_corefile_thread_data): Add constructor.
2978 <note_data>: Change type to unique pointer.
2979 (linux_corefile_thread): Adjust.
2980 (linux_make_corefile_notes): Return unique pointer, adjust.
2981
2982 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2985 * gdbarch.c: Re-generate.
2986 * gdbarch.h: Re-generate.
2987 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2988 bool.
2989 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2990 Likewise.
2991 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2992 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2993 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2994 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2995
2996 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2997
2998 * gdbarch.sh: Make generated predicates return bool.
2999 * gdbarch.c: Re-generate.
3000 * gdbarch.h: Re-generate.
3001
3002 2020-10-20 Tom Tromey <tom@tromey.com>
3003
3004 * varobj-iter.h (struct varobj_item): Remove typedef.
3005
3006 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 * infrun.c (currently_stepping): Change int to bool
3009 (maybe_software_singlestep): Likewise.
3010 (show_stop_on_solib_events): Likewise.
3011 (stepping_past_nonsteppable_watchpoint): Likewise.
3012 (displaced_step_in_progress_any_inferior): Likewise.
3013 (displaced_step_in_progress_thread): Likewise.
3014 (keep_going_stepped_thread): Likewise.
3015 (thread_still_needs_step_over): Likewise.
3016 (start_step_over): Likewise.
3017 (do_target_resume): Likewise.
3018 (resume_1): Likewise.
3019 (clear_proceed_status): Likewise.
3020 (thread_still_needs_step_over_bp): Likewise.
3021 (proceed): Likewise.
3022 (switch_back_to_stepped_thread): Likewise.
3023 (adjust_pc_after_break): Likewise.
3024 (stepped_in_from): Likewise.
3025 (handle_stop_requested): Likewise.
3026 (handle_syscall_event): Likewise.
3027 (handle_no_resumed): Likewise.
3028 (handle_inferior_event): Likewise.
3029 (finish_step_over): Likewise.
3030 (handle_signal_stop): Likewise.
3031 (process_event_stop_test): Likewise.
3032
3033 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3034
3035 * infrun.c (get_displaced_stepping_state): Fix comment.
3036
3037 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3038
3039 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3040
3041 2020-10-19 Tom Tromey <tromey@adacore.com>
3042
3043 PR tui/26719
3044 * tui/tui-winsource.h (struct tui_source_window_base)
3045 <refresh_window>: Rename from refresh_pad.
3046 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3047 Rename from refresh_pad.
3048 (tui_source_window_base::show_source_content)
3049 (tui_source_window_base::do_scroll_horizontal): Update.
3050
3051 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 * thread.c (_initialize_thread): Fine-tune the help text of
3054 'info threads'.
3055
3056 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057
3058 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3059
3060 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3061
3062 * breakpoint.c (handle_jit_event): Add an argument, change how
3063 `jit_event_handler` is called.
3064
3065 2020-10-17 Tom Tromey <tom@tromey.com>
3066
3067 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3068 (scan_xcoff_symtab): Update.
3069 * psymtab.h (class psymtab_storage) <global_psymbols,
3070 static_psymbols, current_global_psymbols,
3071 current_static_psymbols>: Remove.
3072 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3073 (match_partial_symbol, lookup_partial_symbol): Update.
3074 (print_partial_symbols): Change parameters.
3075 (dump_psymtab, recursively_search_psymtabs)
3076 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3077 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3078 (concat): Remove.
3079 (end_psymtab_common): Simplify.
3080 (append_psymbol_to_list): Change parameters.
3081 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3082 (init_psymbol_list): Simplify.
3083 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3084 * psympriv.h (struct partial_symtab) <empty>: New method.
3085 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3086 Remove.
3087 <global_psymbols, static_psymbols>: New members.
3088 <add_psymbol>: New methods.
3089 (add_psymbol_to_list): Don't declare.
3090 (psymbol_placement): Move earlier.
3091 * mdebugread.c (parse_partial_symbols): Update.
3092 (handle_psymbol_enumerators): Change parameters.
3093 (mdebug_expand_psymtab): Update.
3094 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3095 (add_partial_symbol): Update.
3096 * dwarf2/index-write.c (write_psymbols): Change parameters.
3097 (write_one_signatured_type): Update.
3098 (recursively_count_psymbols): Update.
3099 (recursively_write_psymbols): Update.
3100 (class debug_names) <recursively_write_psymbols>: Update.
3101 <write_psymbols>: Change parameters.
3102 <write_one_signatured_type>: Update.
3103 * dbxread.c (read_dbx_symtab): Update.
3104 (dbx_end_psymtab): Use partial_symtab::empty.
3105 * ctfread.c (struct ctf_context) <pst>: New member.
3106 (create_partial_symtab): Set it.
3107 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3108 (scan_partial_symbols): Use the psymtab's context. Update.
3109
3110 2020-10-17 Tom Tromey <tom@tromey.com>
3111
3112 * valprint.c (generic_value_print): Remove comment.
3113 * m2-valprint.c (m2_value_print_inner): Remove comment.
3114 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3115 type.
3116
3117 2020-10-17 Tom de Vries <tdevries@suse.de>
3118
3119 PR symtab/26317
3120 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3121 symbol main.
3122
3123 2020-10-14 Tom de Vries <tdevries@suse.de>
3124
3125 PR gdb/26733
3126 * solib.c (solib_contains_address_p): Handle
3127 'solib->sections == nullptr'.
3128
3129 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 PR gdb/26642
3132 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3133 target can't do async.
3134 * target.c (target_wait): Assert that we don't pass
3135 TARGET_WNOHANG to a target that can't async.
3136
3137 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3138
3139 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3140 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3141 * alpha-bsd-nat.c: Adjust include.
3142 * alpha-bsd-tdep.h: Adjust comment.
3143 * alpha-nbsd-tdep.c: Rename to ...
3144 * alpha-netbsd-tdep.c: ... this, adjust include.
3145 * amd64-nbsd-nat.c: Rename to ...
3146 * amd64-netbsd-nat.c: ... this, adjust include.
3147 * amd64-nbsd-tdep.c: Rename to ...
3148 * amd64-netbsd-tdep.c: ... this, adjust include.
3149 * amd64-tdep.h: Adjust include.
3150 * arm-nbsd-nat.c: Rename to ...
3151 * arm-netbsd-nat.c: ... this, adjust include.
3152 * arm-nbsd-tdep.c: Rename to ...
3153 * arm-netbsd-tdep.c: ... this, adjust include.
3154 * arm-nbsd-tdep.h: Rename to ...
3155 * arm-netbsd-tdep.h: ... this, adjust include.
3156 * configure.nat: Adjust file lists.
3157 * configure.tgt: Likewise.
3158 * hppa-nbsd-nat.c: Rename to ...
3159 * hppa-netbsd-nat.c: ... this, adjust include.
3160 * hppa-nbsd-tdep.c: Rename to ...
3161 * hppa-netbsd-tdep.c: ... this, adjust include.
3162 * i386-nbsd-nat.c: Rename to ...
3163 * i386-netbsd-nat.c: ... this, adjust include.
3164 * i386-nbsd-tdep.c: Rename to ...
3165 * i386-netbsd-tdep.c: ... this, adjust include.
3166 * m68k-bsd-nat.c: Adjust include.
3167 * mips-nbsd-nat.c: Rename to ...
3168 * mips-netbsd-nat.c: ... this, adjust include.
3169 * mips-nbsd-tdep.c: Rename to ...
3170 * mips-netbsd-tdep.c: ... this, adjust include.
3171 * mips-nbsd-tdep.h: Rename to ...
3172 * mips-netbsd-tdep.h: ... this.
3173 * nbsd-nat.c: Rename to ...
3174 * netbsd-nat.c: ... this, adjust include.
3175 * nbsd-nat.h: Rename to ...
3176 * netbsd-nat.h: ... this, adjust include.
3177 * nbsd-tdep.c: Rename to ...
3178 * netbsd-tdep.c: ... this, adjust include.
3179 * nbsd-tdep.h: Rename to ...
3180 * netbsd-tdep.h: ... this.
3181 * ppc-nbsd-nat.c: Rename to ...
3182 * ppc-netbsd-nat.c: ... this, adjust include.
3183 * ppc-nbsd-tdep.c: Rename to ...
3184 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3185 * ppc-nbsd-tdep.h: Rename to ...
3186 * ppc-netbsd-tdep.h: ... this.
3187 * sh-nbsd-nat.c: Rename to ...
3188 * sh-netbsd-nat.c: ... this, adjust include.
3189 * sh-nbsd-tdep.c: Rename to ...
3190 * sh-netbsd-tdep.c: ... this, adjust include.
3191 * sparc-nbsd-nat.c: Rename to ...
3192 * sparc-netbsd-nat.c: ... this.
3193 * sparc-nbsd-tdep.c: Rename to ...
3194 * sparc-netbsd-tdep.c: ... this, adjust include.
3195 * sparc64-nbsd-nat.c: Rename to ...
3196 * sparc64-netbsd-nat.c: ... this.
3197 * sparc64-nbsd-tdep.c: Rename to ...
3198 * sparc64-netbsd-tdep.c: ... this, adjust include.
3199 * sparc64-tdep.h: Adjust comment.
3200 * vax-bsd-nat.c: Adjust include.
3201 * vax-nbsd-tdep.c: Rename to ...
3202 * vax-netbsd-tdep.c: ... this, adjust include.
3203
3204 2020-10-12 Tom Tromey <tom@tromey.com>
3205
3206 * target.h (struct target_ops) <get_section_table>: Update.
3207 (target_get_section_table): Update.
3208 * target.c (target_get_section_table, target_section_by_addr)
3209 (memory_xfer_partial_1): Update.
3210 * target-section.h (target_section_table): Now an alias.
3211 * target-delegates.c: Rebuild.
3212 * target-debug.h (target_debug_print_target_section_table_p):
3213 Rename from target_debug_print_struct_target_section_table_p.
3214 * symfile.c (build_section_addr_info_from_section_table): Update.
3215 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3216 * solib-svr4.c (scan_dyntag): Update.
3217 * solib-dsbt.c (scan_dyntag): Update.
3218 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3219 Update.
3220 * record-full.c (record_full_core_target::xfer_partial): Update.
3221 * progspace.h (struct program_space) <target_sections>: Update.
3222 * exec.h (print_section_info): Update.
3223 * exec.c (exec_target::close, build_section_table)
3224 (add_target_sections, add_target_sections_of_objfile)
3225 (remove_target_sections, exec_on_vfork)
3226 (section_table_available_memory)
3227 (section_table_xfer_memory_partial)
3228 (exec_target::get_section_table, exec_target::xfer_partial)
3229 (print_section_info, set_section_command)
3230 (exec_set_section_address, exec_target::has_memory): Update.
3231 * corelow.c (core_target::build_file_mappings)
3232 (core_target::xfer_partial, core_target::info_proc_mappings)
3233 (core_target::info_proc_mappings): Update.
3234 * bfd-target.c (class target_bfd): Update
3235
3236 2020-10-12 Tom Tromey <tom@tromey.com>
3237
3238 * progspace.c (program_space::~program_space): Don't call
3239 clear_section_table.
3240 * exec.h (clear_section_table): Don't declare.
3241 * exec.c (exec_target::close): Update.
3242 (clear_section_table): Remove.
3243
3244 2020-10-12 Tom Tromey <tom@tromey.com>
3245
3246 * exec.c (add_target_sections_of_objfile): Simplify.
3247
3248 2020-10-12 Tom Tromey <tom@tromey.com>
3249
3250 * solib.c (solib_map_sections): Update.
3251 * record-full.c (record_full_core_open_1): Update.
3252 * exec.h (build_section_table): Return a target_section_table.
3253 * exec.c (exec_file_attach): Update.
3254 (build_section_table): Return a target_section_table.
3255 * corelow.c (core_target::core_target): Update.
3256 * bfd-target.c (target_bfd::target_bfd): Update.
3257
3258 2020-10-12 Tom Tromey <tom@tromey.com>
3259
3260 * target.c (target_section_by_addr, memory_xfer_partial_1):
3261 Update.
3262 * target-section.h (struct target_section_table): Use
3263 std::vector.
3264 * symfile.h (build_section_addr_info_from_section_table): Take a
3265 target_section_table.
3266 * symfile.c (build_section_addr_info_from_section_table): Take a
3267 target_section_table.
3268 * solist.h (struct so_list) <sections>: Change type.
3269 <sections_end>: Remove.
3270 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3271 (solib_contains_address_p): Update.
3272 * solib-svr4.c (scan_dyntag): Update.
3273 * solib-dsbt.c (scan_dyntag): Update.
3274 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3275 Update.
3276 * record-full.c (record_full_core_start, record_full_core_end):
3277 Remove.
3278 (record_full_core_sections): New global.
3279 (record_full_core_open_1, record_full_core_target::xfer_partial):
3280 Update.
3281 * exec.h (build_section_table, section_table_xfer_memory_partial)
3282 (add_target_sections): Take a target_section_table.
3283 * exec.c (exec_file_attach, clear_section_table): Update.
3284 (resize_section_table): Remove.
3285 (build_section_table, add_target_sections): Take a
3286 target_section_table.
3287 (add_target_sections_of_objfile, remove_target_sections)
3288 (exec_on_vfork): Update.
3289 (section_table_available_memory): Take a target_section_table.
3290 (section_table_read_available_memory): Update.
3291 (section_table_xfer_memory_partial): Take a target_section_table.
3292 (print_section_info, set_section_command)
3293 (exec_set_section_address, exec_target::has_memory): Update.
3294 * corelow.c (class core_target) <m_core_section_table,
3295 m_core_file_mappings>: Remove braces.
3296 <~core_target>: Remove.
3297 (core_target::core_target): Update.
3298 (core_target::~core_target): Remove.
3299 (core_target::build_file_mappings)
3300 (core_target::xfer_memory_via_mappings)
3301 (core_target::xfer_partial, core_target::info_proc_mappings):
3302 Update.
3303 * bfd-target.c (target_bfd::xfer_partial): Update.
3304 (target_bfd::target_bfd): Update.
3305 (target_bfd::~target_bfd): Remove.
3306
3307 2020-10-12 Tom Tromey <tom@tromey.com>
3308
3309 * target.h (struct target_section, struct target_section_table):
3310 Move to target-section.h.
3311 * target-section.h: New file.
3312
3313 2020-10-12 Pedro Alves <pedro@palves.net>
3314
3315 PR exp/26602
3316 * valops.c (struct struct_field_searcher): New.
3317 (update_search_result): Rename to ...
3318 (struct_field_searcher::update_result): ... this. Simplify
3319 prototype. Record all found fields.
3320 (do_search_struct_field): Rename to ...
3321 (struct_field_searcher::search): ... this. Simplify prototype.
3322 Maintain stack of visited baseclass path. Call update_result for
3323 fields too. Keep searching fields in baseclasses instead of
3324 stopping at the first found field.
3325 (search_struct_field): Use struct_field_searcher. When looking
3326 for fields, report ambiguous access attempts.
3327
3328 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * frame.c (inside_main_func): Check full symbols as well as
3331 minimal symbols.
3332
3333 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3334
3335 * ada-lang.c (advance_wild_match): Rewrite the function's
3336 description. Change the type of target0, t0 and t1 to char.
3337
3338 2020-10-09 Tom Tromey <tromey@adacore.com>
3339
3340 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3341
3342 2020-10-09 Tom Tromey <tromey@adacore.com>
3343
3344 * ada-lang.h (ada_encode): Return std::string.
3345 * ada-lang.c (ada_encode_1): Return std::string.
3346 (ada_encode): Likewise.
3347 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3348 Update.
3349 * ada-exp.y (block_lookup, write_var_or_type): Update.
3350
3351 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3352
3353 PR exp/26714
3354 * printcmd.c (print_formatted): Handle void results as
3355 unformatted prints.
3356
3357 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * arch/aarch32.c (aarch32_create_target_description): Release the
3360 target_desc_up as late as possible.
3361 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3362 * arch/amd64.c (amd64_create_target_description): Likewise.
3363 * arch/arc.c (arc_create_target_description): Return a
3364 target_desc_up, don't release it.
3365 * arch/arc.h (arc_create_target_description): Update declaration.
3366 (arc_lookup_target_description): Move target_desc_up into the
3367 cache, and return a borrowed pointer.
3368 * arch/arm.c (arm_create_target_description): Release the
3369 target_desc_up as late as possible.
3370 * arch/i386.c (i386_create_target_description): Likewise.
3371 * arch/riscv.h (riscv_create_target_description): Update
3372 declaration to match definition.
3373 * arch/tic6x.c (tic6x_create_target_description): Release the
3374 target_desc_up as late as possible.
3375
3376 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3379 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3380
3381 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3382
3383 * source.c (directory_command): Notify observers that "directories"
3384 parameter has changed.
3385
3386 2020-10-08 Tom Tromey <tom@tromey.com>
3387
3388 * cli/cli-cmds.c (print_disassembly): Style function name and
3389 addresses. Add _() wrappers.
3390
3391 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3392
3393 * NEWS: Mention ARC support in GDBserver.
3394
3395 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * arch/aarch32.c (aarch32_create_target_description): Release
3398 unique_ptr returned from allocate_target_description.
3399 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3400 * arch/amd64.c (amd64_create_target_description): Likewise.
3401 * arch/arc.c (arc_create_target_description): Likewise.
3402 * arch/arm.c (arm_create_target_description): Likewise.
3403 * arch/i386.c (i386_create_target_description): Likewise.
3404 * arch/riscv.c (riscv_create_target_description): Update return
3405 type. Handle allocate_target_description returning a unique_ptr.
3406 (riscv_lookup_target_description): Update to handle unique_ptr.
3407 * arch/tic6x.c (tic6x_create_target_description): Release
3408 unique_ptr returned from allocate_target_description.
3409 * features/microblaze-with-stack-protect.c: Regenerate.
3410 * features/microblaze.c: Regenerate.
3411 * features/mips-dsp-linux.c: Regenerate.
3412 * features/mips-linux.c: Regenerate.
3413 * features/mips64-dsp-linux.c: Regenerate.
3414 * features/mips64-linux.c: Regenerate.
3415 * features/nds32.c: Regenerate.
3416 * features/nios2.c: Regenerate.
3417 * features/or1k.c: Regenerate.
3418 * features/rs6000/powerpc-32.c: Regenerate.
3419 * features/rs6000/powerpc-32l.c: Regenerate.
3420 * features/rs6000/powerpc-403.c: Regenerate.
3421 * features/rs6000/powerpc-403gc.c: Regenerate.
3422 * features/rs6000/powerpc-405.c: Regenerate.
3423 * features/rs6000/powerpc-505.c: Regenerate.
3424 * features/rs6000/powerpc-601.c: Regenerate.
3425 * features/rs6000/powerpc-602.c: Regenerate.
3426 * features/rs6000/powerpc-603.c: Regenerate.
3427 * features/rs6000/powerpc-604.c: Regenerate.
3428 * features/rs6000/powerpc-64.c: Regenerate.
3429 * features/rs6000/powerpc-64l.c: Regenerate.
3430 * features/rs6000/powerpc-7400.c: Regenerate.
3431 * features/rs6000/powerpc-750.c: Regenerate.
3432 * features/rs6000/powerpc-860.c: Regenerate.
3433 * features/rs6000/powerpc-altivec32.c: Regenerate.
3434 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3435 * features/rs6000/powerpc-altivec64.c: Regenerate.
3436 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3437 * features/rs6000/powerpc-e500.c: Regenerate.
3438 * features/rs6000/powerpc-e500l.c: Regenerate.
3439 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3440 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3441 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3442 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3443 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3444 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3445 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3446 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3447 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3448 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3449 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3450 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3451 * features/rs6000/powerpc-vsx32.c: Regenerate.
3452 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3453 * features/rs6000/powerpc-vsx64.c: Regenerate.
3454 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3455 * features/rs6000/rs6000.c: Regenerate.
3456 * features/rx.c: Regenerate.
3457 * features/s390-gs-linux64.c: Regenerate.
3458 * features/s390-linux32.c: Regenerate.
3459 * features/s390-linux32v1.c: Regenerate.
3460 * features/s390-linux32v2.c: Regenerate.
3461 * features/s390-linux64.c: Regenerate.
3462 * features/s390-linux64v1.c: Regenerate.
3463 * features/s390-linux64v2.c: Regenerate.
3464 * features/s390-te-linux64.c: Regenerate.
3465 * features/s390-tevx-linux64.c: Regenerate.
3466 * features/s390-vx-linux64.c: Regenerate.
3467 * features/s390x-gs-linux64.c: Regenerate.
3468 * features/s390x-linux64.c: Regenerate.
3469 * features/s390x-linux64v1.c: Regenerate.
3470 * features/s390x-linux64v2.c: Regenerate.
3471 * features/s390x-te-linux64.c: Regenerate.
3472 * features/s390x-tevx-linux64.c: Regenerate.
3473 * features/s390x-vx-linux64.c: Regenerate.
3474 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3475 from allocate_target_description.
3476 * target-descriptions.c (allocate_target_description): Update
3477 return type.
3478 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3479 allocate_target_description.
3480
3481 2020-10-07 Tom Tromey <tromey@adacore.com>
3482
3483 * unittests/search-memory-selftests.c: New file.
3484 * Makefile.in (SELFTESTS_SRCS): Add
3485 unittests/search-memory-selftests.c.
3486
3487 2020-10-07 Tom Tromey <tromey@adacore.com>
3488
3489 PR gdb/16930:
3490 * findcmd.c (_initialize_mem_search): Mention that the range is
3491 inclusive.
3492
3493 2020-10-07 Tom Tromey <tromey@adacore.com>
3494
3495 * target.h (simple_search_memory): Don't declare.
3496 * target.c (simple_search_memory): Move to gdbsupport.
3497 (default_search_memory): Update.
3498 * remote.c (remote_target::search_memory): Update.
3499
3500 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * Makefile.in (COMPILE): Add CXXFLAGS.
3503 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3504 (check-headers): Add CXXFLAGS.
3505
3506 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3507
3508 * arc-linux-tdep.h: New file.
3509 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3510 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3511 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3512 arc_linux_gregset, arc_linux_v2_regset,
3513 arc_linux_iterate_over_regset_sections,
3514 arc_linux_core_read_description): Implement.
3515 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3516 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3517 (arc_gdbarch_features_create): Add.
3518 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3519
3520 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3521
3522 * arch/arc.h: Rename "arc_gdbarch_features" to
3523 "arc_arch_features".
3524 * arc-tdep.h: Likewise.
3525 * arc-tdep.c: Likewise.
3526
3527 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3528
3529 * infcmd.c (attach_command): Remove the redundant call to
3530 `clear_proceed_status`.
3531
3532 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3533
3534 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3535
3536 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3537
3538 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3539 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3540 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3541
3542 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3545 (_initialize_break_catch_sig): Don't allocate array.
3546
3547 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * symtab.c (find_pc_line): Return unmapped addresses when the
3550 requested address is also unmapped.
3551
3552 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3555 tui/tui-out.h.
3556
3557 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3560 type::is_vector instead of TYPE_VECTOR.
3561
3562 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3563
3564 * auto-load.c (auto_load_objfile_script_1): Don't use
3565 debugfile_holder as temporary variable when stripping drive
3566 letter.
3567
3568 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3569
3570 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3571 Add TYPE_CODE_COMPLEX.
3572 (amd64_windows_return_value): Fix types returned via XMM0.
3573
3574 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3575
3576 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3577 AArch64/ARM maintainers.
3578
3579 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3580
3581 * NEWS: Mention set/show debug event-loop.
3582
3583 2020-10-02 Tom Tromey <tromey@adacore.com>
3584
3585 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3586 REG_EXTENDED.
3587
3588 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3591 * procfs.c (procfs_inferior_created): Remove.
3592 (_initialize_procfs): Don't register procfs_inferior_created.
3593
3594 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * async-event.c (invoke_async_signal_handlers): Add debug
3597 print.
3598 (check_async_event_handlers): Likewise.
3599 * event-top.c (show_debug_event_loop): New function.
3600 (_initialize_event_top): Register "set debug event-loop"
3601 setting.
3602
3603 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3606 * debug.h: Remove.
3607 * infrun.c: Include gdbsupport/common-debug.h.
3608 * linux-nat.c: Likewise.
3609
3610 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * async-event.h (create_async_signal_handler): Add name
3613 parameter.
3614 (create_async_event_handler): Likewise.
3615 * async-event.c (struct async_signal_handler) <name>: New field.
3616 (struct async_event_handler) <name>: New field.
3617 (create_async_signal_handler): Assign name.
3618 (create_async_event_handler): Assign name.
3619 * event-top.c (async_init_signals): Pass name when creating
3620 handler.
3621 * infrun.c (_initialize_infrun): Likewise.
3622 * record-btrace.c (record_btrace_push_target): Likewise.
3623 * record-full.c (record_full_open): Likewise.
3624 * remote-notif.c (remote_notif_state_allocate): Likewise.
3625 * remote.c (remote_target::open_1): Likewise.
3626 * tui/tui-win.c (tui_initialize_win): Likewise.
3627
3628 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * async-event.c (initialize_async_signal_handlers): Pass name to
3631 add_file_handler
3632 * event-top.c (ui_register_input_event_handler): Likewise.
3633 * linux-nat.c (linux_nat_target::async): Likewise.
3634 * run-on-main-thread.c (_initialize_run_on_main_thread):
3635 Likewise
3636 * ser-base.c (reschedule): Likewise.
3637 (ser_base_async): Likewise.
3638 * tui/tui-io.c: Likewise.
3639 * top.h (struct ui) <num>: New field.
3640 * top.c (highest_ui_num): New variable.
3641 (ui::ui): Initialize num.
3642
3643 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3644
3645 * observable.h <inferior_created>: Remove parameters. Update all
3646 listeners.
3647 * inferior.h (post_create_inferior): Remove target parameter.
3648 Update all callers.
3649
3650 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3651
3652 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3653 and DW_MACRO_undef_strx.
3654 (dwarf_decode_macros): Likewise
3655 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3656 which is the value of DW_AT_str_offsets_base.
3657 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3658 str_offsets_base.
3659
3660 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3661
3662 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3663
3664 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3665
3666 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3667 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3668
3669 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3670
3671 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3672
3673 2020-09-30 Tom de Vries <tdevries@suse.de>
3674
3675 PR symtab/26683
3676 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3677
3678 2020-09-30 Tom Tromey <tromey@adacore.com>
3679
3680 * dwarf2/read.c (handle_variant): Use constant_value.
3681
3682 2020-09-29 Tom Tromey <tom@tromey.com>
3683
3684 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3685 (read_file_scope, dwarf2_get_pc_bounds)
3686 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3687 (read_structure_type, handle_struct_member_die)
3688 (read_enumeration_type, read_array_type, read_set_type)
3689 (read_tag_pointer_type, read_tag_reference_type)
3690 (read_subroutine_type, read_base_type, read_subrange_type)
3691 (read_full_die_1, partial_die_info::read)
3692 (partial_die_info::read, by, new_symbol)
3693 (dwarf2_const_value_data, dwarf2_const_value_attr)
3694 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3695 (prepare_one_comp_unit): Update.
3696 * dwarf2/attribute.h (DW_UNSND): Remove.
3697
3698 2020-09-29 Tom Tromey <tom@tromey.com>
3699
3700 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3701 (read_subroutine_type, partial_die_info::read)
3702 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3703 (dwarf2_add_member_fn): Update.
3704 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3705 * dwarf2/attribute.c (attribute::as_boolean): New method.
3706
3707 2020-09-29 Tom Tromey <tom@tromey.com>
3708
3709 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3710 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3711 method.
3712 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3713
3714 2020-09-29 Tom Tromey <tom@tromey.com>
3715
3716 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3717 the attribute's form.
3718
3719 2020-09-29 Tom Tromey <tom@tromey.com>
3720
3721 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3722 (dwarf2_add_member_fn): Update.
3723 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3724 * dwarf2/attribute.c (attribute::defaulted): New method, from
3725 is_valid_DW_AT_defaulted.
3726
3727 2020-09-29 Tom Tromey <tom@tromey.com>
3728
3729 * dwarf2/read.c (dw2_get_file_names_reader)
3730 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3731 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3732 (dwarf2_symbol_mark_computed): Use as_unsigned.
3733 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3734 method.
3735 <form_is_section_offset>: Update comment.
3736
3737 2020-09-29 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3740 dwarf2_default_access_attribute. Look up attribute.
3741 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3742 Update.
3743
3744 2020-09-29 Tom Tromey <tom@tromey.com>
3745
3746 * dwarf2/read.c (skip_one_die): Update.
3747 (read_full_die_1): Change how reprocessing is done.
3748 (partial_die_info::read): Update.
3749 (read_attribute_value): Remove need_reprocess parameter.
3750 (read_attribute): Likewise.
3751 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3752 New method.
3753
3754 2020-09-29 Tom Tromey <tom@tromey.com>
3755
3756 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3757 (dwarf2_const_value_attr, dump_die_shallow)
3758 (dwarf2_fetch_constant_bytes): Update.
3759 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3760 comment.
3761 <set_address>: New method.
3762 (DW_ADDR): Remove.
3763 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3764 (attribute::as_string, attribute::as_address): Add assert.
3765
3766 2020-09-29 Tom Tromey <tom@tromey.com>
3767
3768 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3769 (read_attribute_reprocess, read_attribute_value): Update.
3770 (read_attribute): Clear requires_reprocessing.
3771 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3772 form_requires_reprocessing>: New methods.
3773 <string_init>: Clear requires_reprocessing.
3774 <set_unsigned_reprocess>: New method.
3775 <name>: Shrink by one bit.
3776 <requires_reprocessing>: New member.
3777 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3778 method.
3779
3780 2020-09-29 Tom Tromey <tom@tromey.com>
3781
3782 * dwarf2/read.c (read_attribute_value): Update.
3783 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3784 set_unsigned>: New methods.
3785 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3786
3787 2020-09-29 Tom Tromey <tom@tromey.com>
3788
3789 * dwarf2/read.c (get_alignment, read_array_order)
3790 (read_attribute_value, dwarf2_const_value_attr)
3791 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3792 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3793 New methods.
3794 (DW_SND): Remove.
3795
3796 2020-09-29 Tom Tromey <tom@tromey.com>
3797
3798 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3799 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3800 Update.
3801 * dwarf2/attribute.h (struct attribute) <as_signature,
3802 set_signature>: New methods.
3803 (DW_SIGNATURE): Remove.
3804
3805 2020-09-29 Tom Tromey <tom@tromey.com>
3806
3807 * dwarf2/read.c (read_call_site_scope)
3808 (handle_data_member_location, dwarf2_add_member_fn)
3809 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3810 (partial_die_info::read, read_attribute_value)
3811 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3812 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3813 (dwarf2_symbol_mark_computed): Update.
3814 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3815 methods.
3816 (DW_BLOCK): Remove.
3817 * dwarf2/attribute.c (attribute::form_is_block): Add
3818 DW_FORM_data16.
3819
3820 2020-09-29 Tom Tromey <tom@tromey.com>
3821
3822 * dwarf2/read.c (read_cutu_die_from_dwo)
3823 (read_attribute_reprocess, read_attribute_value, read_attribute)
3824 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3825 (dwarf2_fetch_constant_bytes): Update.
3826 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3827 <set_string_noncanonical, set_string_canonical>: New methods.
3828 <string_is_canonical>: Update comment.
3829 <canonical_string_p>: Add assert.
3830 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3831 * dwarf2/attribute.c (attribute::form_is_string): New method.
3832 (attribute::string): Use it.
3833
3834 2020-09-29 Tom Tromey <tom@tromey.com>
3835
3836 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3837 (dump_die_shallow): Use canonical_string_p.
3838 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3839 method.
3840
3841 2020-09-29 Tom Tromey <tom@tromey.com>
3842
3843 * dwarf2/read.c (partial_die_info::read)
3844 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3845 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3846 attribute::as_string.
3847
3848 2020-09-29 Tom Tromey <tom@tromey.com>
3849
3850 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3851 DW_ADDR.
3852 (attribute::string): Don't use DW_STRING.
3853 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3854 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3855
3856 2020-09-29 Tom Tromey <tom@tromey.com>
3857
3858 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3859 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3860 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3861 * dwarf2/attribute.h (struct attribute): Rename methods.
3862 * dwarf2/attribute.c (attribute::as_address): Rename from
3863 value_as_address.
3864 (attribute::as_string): Rename from value_as_string.
3865
3866 2020-09-29 Tom Tromey <tom@tromey.com>
3867
3868 * dwarf2/read.c (partial_die_info::read) <case
3869 DW_AT_linkage_name>: Use value_as_string.
3870 (dwarf2_string_attr): Use value_as_string.
3871 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3872 method.
3873 * dwarf2/attribute.c (attribute::value_as_string): New method.
3874
3875 2020-09-29 Pedro Alves <pedro@palves.net>
3876
3877 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3878 defined before using '#pragma GCC diagnostic' instead of checking
3879 __clang__.
3880
3881 2020-09-28 Tom Tromey <tom@tromey.com>
3882
3883 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3884 (handle_signal_stop): Update.
3885 * procfs.c (procfs_target::insert_watchpoint): Update.
3886 * target.h (target_have_steppable_watchpoint): Now a function.
3887
3888 2020-09-28 Tom Tromey <tom@tromey.com>
3889
3890 * infrun.c (set_schedlock_func): Update.
3891 * target.h (target_can_lock_scheduler): Now a function.
3892
3893 2020-09-28 Tom Tromey <tom@tromey.com>
3894
3895 * inferior.h (class inferior) <has_execution>: Update.
3896 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3897 * valops.c (find_function_in_inferior)
3898 (value_allocate_space_in_inferior): Update.
3899 * top.c (kill_or_detach): Update.
3900 * target.c (target_preopen, set_target_permissions): Update.
3901 (target_has_execution_current): Remove.
3902 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3903 Update.
3904 * solib.c (update_solib_list, reload_shared_libraries): Update.
3905 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3906 * solib-dsbt.c (enable_break): Update.
3907 * score-tdep.c (score7_fetch_inst): Update.
3908 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3909 Update.
3910 * remote.c (remote_target::start_remote)
3911 (remote_target::remote_check_symbols, remote_target::open_1)
3912 (remote_target::remote_detach_1, remote_target::verify_memory)
3913 (remote_target::xfer_partial, remote_target::read_description)
3914 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3915 * record-full.c (record_full_open_1): Update.
3916 * record-btrace.c (record_btrace_target_open): Update.
3917 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3918 (value_nsstring): Update.
3919 * linux-thread-db.c (add_thread_db_info)
3920 (thread_db_find_new_threads_silently, check_thread_db_callback)
3921 (try_thread_db_load_1, record_thread): Update.
3922 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3923 Update.
3924 * linux-fork.c (checkpoint_command): Update.
3925 * infrun.c (set_non_stop, set_observer_mode)
3926 (check_multi_target_resumption, for_each_just_stopped_thread)
3927 (maybe_remove_breakpoints, normal_stop)
3928 (class infcall_suspend_state): Update.
3929 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3930 (info_program_command, attach_command): Update.
3931 * infcall.c (call_function_by_hand_dummy): Update.
3932 * inf-loop.c (inferior_event_handler): Update.
3933 * gcore.c (gcore_command, derive_heap_segment): Update.
3934 * exec.c (exec_file_command): Update.
3935 * eval.c (evaluate_subexp): Update.
3936 * compile/compile.c (compile_to_object): Update.
3937 * cli/cli-dump.c (restore_command): Update.
3938 * breakpoint.c (update_watchpoint)
3939 (update_inserted_breakpoint_locations)
3940 (insert_breakpoint_locations, get_bpstat_thread): Update.
3941 * target.h (target_has_execution): Remove macro.
3942 (target_has_execution_current): Don't declare.
3943 (target_has_execution): Rename from target_has_execution_1. Add
3944 argument default.
3945
3946 2020-09-28 Tom Tromey <tom@tromey.com>
3947
3948 * mi/mi-main.c (exec_reverse_continue)
3949 (mi_cmd_list_target_features): Update.
3950 * infrun.c (set_exec_direction_func): Update.
3951 * target.c (default_execution_direction): Update.
3952 * reverse.c (exec_reverse_once): Update.
3953 * target.h (target_can_execute_reverse): Now a function.
3954
3955 2020-09-28 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-regs.c (tui_get_register)
3958 (tui_data_window::show_registers): Update.
3959 * thread.c (scoped_restore_current_thread::restore)
3960 (scoped_restore_current_thread::scoped_restore_current_thread):
3961 Update.
3962 * regcache-dump.c (regcache_print): Update.
3963 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3964 Update.
3965 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3966 * mep-tdep.c (current_me_module, current_options): Update.
3967 * linux-thread-db.c (thread_db_load): Update.
3968 * infcmd.c (registers_info, info_vector_command)
3969 (info_float_command): Update.
3970 * ia64-tdep.c (ia64_frame_prev_register)
3971 (ia64_sigtramp_frame_prev_register): Update.
3972 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3973 * gcore.c (derive_stack_segment): Update.
3974 * frame.c (get_current_frame, has_stack_frames): Update.
3975 * findvar.c (language_defn::read_var_value): Update.
3976 * arm-tdep.c (arm_pc_is_thumb): Update.
3977 * target.c (target_has_registers): Rename from
3978 target_has_registers_1.
3979 * target.h (target_has_registers): Remove macro.
3980 (target_has_registers): Rename from target_has_registers_1.
3981
3982 2020-09-28 Tom Tromey <tom@tromey.com>
3983
3984 * windows-tdep.c (tlb_make_value): Update.
3985 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3986 * thread.c (scoped_restore_current_thread::restore)
3987 (scoped_restore_current_thread::scoped_restore_current_thread)
3988 (thread_command): Update.
3989 * stack.c (backtrace_command_1, frame_apply_level_command)
3990 (frame_apply_all_command, frame_apply_command): Update.
3991 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3992 Update.
3993 * gcore.c (derive_stack_segment): Update.
3994 * frame.c (get_current_frame, has_stack_frames): Update.
3995 * auxv.c (info_auxv_command): Update.
3996 * ada-tasks.c (ada_build_task_list): Update.
3997 * target.c (target_has_stack): Rename from target_has_stack_1.
3998 * target.h (target_has_stack): Remove macro.
3999 (target_has_stack): Rename from target_has_stack_1.
4000
4001 2020-09-28 Tom Tromey <tom@tromey.com>
4002
4003 * target.c (target_has_memory): Rename from target_has_memory_1.
4004 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4005 * thread.c (scoped_restore_current_thread::restore)
4006 (scoped_restore_current_thread::scoped_restore_current_thread):
4007 Update.
4008 * frame.c (get_current_frame, has_stack_frames): Update.
4009 * target.h (target_has_memory): Remove macro.
4010 (target_has_memory): Rename from target_has_memory_1.
4011
4012 2020-09-28 Tom Tromey <tom@tromey.com>
4013
4014 * target.c (target_has_all_memory_1): Remove.
4015 * target.h (target_has_all_memory): Remove define.
4016 (target_has_all_memory_1): Don't declare.
4017
4018 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * ser-base.c: Adjust comments formatting.
4021
4022 2020-09-27 Tom Tromey <tom@tromey.com>
4023
4024 PR tui/25342:
4025 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4026
4027 2020-09-27 Tom Tromey <tom@tromey.com>
4028
4029 PR tui/25342:
4030 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4031
4032 2020-09-27 Tom Tromey <tom@tromey.com>
4033
4034 * unittests/tui-selftests.c: Update.
4035 * tui/tui-winsource.h (struct tui_source_window_base)
4036 <extra_margin, show_line_number, refresh_pad>: New methods.
4037 <m_max_length, m_pad>: New members.
4038 (tui_copy_source_line): Update.
4039 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4040 first_col, line_width, ndigits parameters. Add length.
4041 (tui_source_window_base::show_source_line): Write to pad. Line
4042 number now 0-based.
4043 (tui_source_window_base::refresh_pad): New method.
4044 (tui_source_window_base::show_source_content): Write to pad. Call
4045 refresh_pad.
4046 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4047 not refill.
4048 (tui_source_window_base::update_exec_info): Call
4049 show_line_number.
4050 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4051 method.
4052 <m_digits>: New member.
4053 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4054 and m_max_length.
4055 (tui_source_window::show_line_number): New method.
4056 * tui/tui-io.h (tui_puts): Fix comment.
4057 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4058 m_max_length.
4059
4060 2020-09-27 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-winsource.c
4063 (tui_source_window_base::set_is_exec_point_at): Don't call
4064 show_source_line.
4065
4066 2020-09-27 Tom Tromey <tom@tromey.com>
4067
4068 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4069 method.
4070 <erase>: Update.
4071 <cursor_x, cursor_y>: Remove.
4072 <m_inner_window>: New member.
4073 (tui_py_window::rerender): Create inner window.
4074 (tui_py_window::output): Write to inner window.
4075
4076 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4077
4078 PR python/26586
4079 * cli/cli-script.c (execute_control_commands): don't set
4080 instream to nullptr here as this breaks the from_tty argument
4081 to gdb.execute in Python.
4082 (execute_user_command): set instream to nullptr here instead.
4083
4084 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * infrun.h (infrun_debug_printf): Fix formatting.
4087 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4088
4089 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4090
4091 * compile/compile-object-load.h (struct munmap_list): Add
4092 explicitly-defined move constructor.
4093
4094 2020-09-24 Tom Tromey <tromey@adacore.com>
4095
4096 PR tui/26638:
4097 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4098 method.
4099 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4100 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4101 (tui_prev_win): Rewrite.
4102
4103 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4104
4105 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4106 in WOW64 processes as SIGINT.
4107 * nat/windows-nat.h: Make wow64_process a shared variable.
4108 * windows-nat.c: Remove static wow64_process variable.
4109
4110 2020-09-23 Tom Tromey <tom@tromey.com>
4111
4112 PR symtab/25470:
4113 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4114 offset and bit size.
4115 * printcmd.c (print_scalar_formatted): Handle zero-length
4116 integer.
4117 (print_scalar_formatted): Use bit_size_differs_p.
4118 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4119 constant.
4120 (union type_specific): <int_stuff>: New member.
4121 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4122 methods.
4123 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4124 TYPE_SPECIFIC_FIELD.
4125 (recursive_dump_type, copy_type_recursive): Update.
4126 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4127 DW_AT_data_bit_offset.
4128
4129 2020-09-23 Tom Tromey <tom@tromey.com>
4130
4131 * utils.h (class gdb_argv): Add move operators.
4132 <append>: New methods.
4133 * compile/compile.c (build_argc_argv): Remove.
4134 (compile_args_argc): Remove.
4135 (compile_args_argv): Change type.
4136 (set_compile_args): Simplify.
4137 (append_args): Remove.
4138 (filter_args): Remove argcp parameter.
4139 (get_args): Return gdb_argv. Simplify.
4140 (compile_to_object): Update.
4141
4142 2020-09-23 Tom Tromey <tom@tromey.com>
4143
4144 * compile/compile-object-run.c (do_module_cleanup)
4145 <~do_module_cleanup> :Remove.
4146 (do_module_cleanup): Update.
4147 * compile/compile-object-load.h (struct munmap_list): Add move
4148 assignment operator.
4149 <source_file>: Now a std::string.
4150 <munmap_list>: Rename. No longer a pointer.
4151 * compile/compile-object-load.c (struct setup_sections_data): Add
4152 constructor.
4153 <setup_one_section>: Declare.
4154 <munmap_list>: Move earlier.
4155 <m_bfd>: New member.
4156 <m_last_size, m_last_section_first, m_last_prot,
4157 m_last_max_alignment>: Rename, add initializers where needed.
4158 (setup_sections_data::setup_one_section): Rename from
4159 setup_sections. Update.
4160 (compile_object_load): Update. Don't use bfd_map_over_sections.
4161
4162 2020-09-23 Tom Tromey <tom@tromey.com>
4163
4164 * compile/compile-object-run.c (struct do_module_cleanup): Add
4165 parameters to constructor. Update destructor.
4166 <source_file, scope, scope_data, out_value_type, out_value_addr,
4167 munmap_list_head, objfile_name_string>: Remove.
4168 <module>: New member.
4169 (do_module_cleanup): Update.
4170 (compile_object_run): Update.
4171
4172 2020-09-23 Tom Tromey <tom@tromey.com>
4173
4174 * compile/compile.c (eval_compile_command): Update.
4175 * compile/compile-object-run.h (compile_object_run): Take a
4176 compile_module_up.
4177 * compile/compile-object-run.c (compile_object_run): Take a
4178 compile_module_up.
4179 * compile/compile-object-load.h (struct compile_module): Add
4180 constructor, destructor.
4181 (compile_module_up): New typedef.
4182 (compile_object_load): Return compile_object_up.
4183 * compile/compile-object-load.c (compile_object_load): Return
4184 compile_module_up.
4185
4186 2020-09-23 Tom Tromey <tom@tromey.com>
4187
4188 * compile/compile-object-run.c (struct do_module_cleanup): Add
4189 constructor, destructor.
4190 <objfile_name_string>: Don't use struct hack.
4191 (do_module_cleanup): Use delete.
4192 (compile_object_run): Use new.
4193
4194 2020-09-23 Tom Tromey <tom@tromey.com>
4195
4196 * compile/compile-cplus-types.c
4197 (compile_cplus_convert_struct_or_union): Use std::vector.
4198 (compile_cplus_convert_func): Likewise.
4199 * compile/compile-c-types.c (convert_func): Use std::vector.
4200
4201 2020-09-21 Tom Tromey <tromey@adacore.com>
4202
4203 * sparc-tdep.c (sparc32_skip_prologue): Use
4204 skip_prologue_using_sal.
4205
4206 2020-09-19 Tom Tromey <tom@tromey.com>
4207
4208 * symfile.c (add_section_size_callback): Remove.
4209 (load_one_section): Rename from load_section_callback. Change
4210 parameters.
4211 (generic_load): Use foreach.
4212
4213 2020-09-19 Tom Tromey <tom@tromey.com>
4214
4215 * exec.c (add_to_section_table): Remove.
4216 (build_section_table): Use foreach.
4217
4218 2020-09-19 Tom Tromey <tom@tromey.com>
4219
4220 * elfread.c (elf_locate_sections): Change parameters.
4221 (elf_symfile_read): Use foreach.
4222
4223 2020-09-19 Tom Tromey <tom@tromey.com>
4224
4225 * cli/cli-dump.c (struct callback_data): Remove.
4226 (restore_one_section): Rename from restore_section_callback.
4227 Change parameters.
4228 (restore_binary_file): Change parameters.
4229 (restore_command): Use foreach.
4230
4231 2020-09-19 Tom Tromey <tom@tromey.com>
4232
4233 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4234 (gcore_copy_callback): Likewise.
4235 (gcore_memory_sections): Use foreach.
4236
4237 2020-09-19 Tom Tromey <tom@tromey.com>
4238
4239 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4240 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4241 parameters.
4242 (generic_elf_osabi_sniffer): Use foreach.
4243 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4244 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4245
4246 2020-09-19 Tom Tromey <tom@tromey.com>
4247
4248 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4249 (dwarf2_get_dwz_file): Use foreach.
4250 (dwarf2_locate_dwo_sections): Change parameters.
4251 (open_and_init_dwo_file): Use foreach.
4252 (dwarf2_locate_common_dwp_sections): Change parameters.
4253 (open_and_init_dwp_file): Use foreach.
4254
4255 2020-09-19 Tom Tromey <tom@tromey.com>
4256
4257 * symfile.h: (find_lowest_section): Don't declare.
4258 * symfile.c (find_lowest_section): Now static. Change
4259 parameters.
4260 (struct place_section_arg): Remove.
4261 (place_section): Change parameters.
4262 (addr_info_make_relative): Use foreach.
4263 (symfile_dummy_outputs): Remove.
4264 (default_symfile_relocate): Use foreach.
4265
4266 2020-09-19 Tom Tromey <tom@tromey.com>
4267
4268 * objfiles.c (add_to_objfile_sections): Rename from
4269 add_to_objfile_sections_full.
4270 (add_to_objfile_sections): Remove.
4271 (build_objfile_section_table): Use foreach.
4272
4273 2020-09-19 Tom Tromey <tom@tromey.com>
4274
4275 * stap-probe.c (get_stap_base_address_1): Remove.
4276 (get_stap_base_address): Use foreach.
4277
4278 2020-09-19 Tom Tromey <tom@tromey.com>
4279
4280 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4281 parameters.
4282 (gdb_bfd_close_or_warn): Use foreach.
4283
4284 2020-09-19 Tom Tromey <tom@tromey.com>
4285
4286 * corelow.c (add_to_thread_list): Change parameters.
4287 (core_target_open): Use foreach.
4288
4289 2020-09-19 Tom Tromey <tom@tromey.com>
4290
4291 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4292 existing function.
4293
4294 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4297 for arrays.
4298
4299 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * eval.c: Remove 'f-lang.h' include.
4302 (value_f90_subarray): Moved to f-lang.c.
4303 (eval_call): Renamed to...
4304 (evaluate_subexp_do_call): ...this, is no longer static, header
4305 comment moved into header file.
4306 (evaluate_funcall): Update call to eval_call.
4307 (skip_undetermined_arglist): Moved to f-lang.c.
4308 (fortran_value_subarray): Likewise.
4309 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4310 moved to evaluate_subexp_f.
4311 (calc_f77_array_dims): Moved to f-lang.c
4312 * expprint.c (print_subexp_funcall): New function.
4313 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4314 moved to print_subexp_f, OP_FUNCALL uses new function.
4315 (dump_subexp_body_funcall): New function.
4316 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4317 moved to dump_subexp_f, OP_FUNCALL uses new function.
4318 * expression.h (evaluate_subexp_do_call): Declare.
4319 * f-lang.c (value_f90_subarray): Moved from eval.c.
4320 (skip_undetermined_arglist): Likewise.
4321 (calc_f77_array_dims): Likewise.
4322 (fortran_value_subarray): Likewise.
4323 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4324 (operator_length_f): Likewise.
4325 (print_subexp_f): Likewise.
4326 (dump_subexp_body_f): Likewise.
4327 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4328 declaration of this operation to here.
4329 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4330 support moved to operator_length_f.
4331 * parser-defs.h (dump_subexp_body_funcall): Declare.
4332 (print_subexp_funcall): Declare.
4333 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4334 fortran-operator.def.
4335
4336 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4337
4338 * eval.c (fortran_value_subarray): New function, content is taken
4339 from...
4340 (evaluate_subexp_standard): ...here, in two places. Now arrays
4341 and strings both call the new function.
4342 (calc_f77_array_dims): Add header comment, handle strings.
4343
4344 2020-09-18 Victor Collod <vcollod@nvidia.com>
4345
4346 PR gdb/26635
4347 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4348 (i386_analyze_prologue): Call i386_skip_endbr.
4349
4350 2020-09-18 Tom Tromey <tromey@adacore.com>
4351
4352 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4353 (windows_nat_target::wait): Update.
4354 * target/wait.h (enum target_wait_flag): New. Use
4355 DEF_ENUM_FLAGS_TYPE.
4356 * target/target.h (target_wait): Change type of options.
4357 * target.h (target_options_to_string, default_target_wait):
4358 Update.
4359 (struct target_ops) <wait>: Change type of options.
4360 * target.c (target_wait, default_target_wait, do_option): Change
4361 type of "options".
4362 (target_options_to_string): Likewise.
4363 * target-delegates.c: Rebuild.
4364 * target-debug.h (target_debug_print_target_wait_flags): Rename
4365 from target_debug_print_options.
4366 * sol-thread.c (class sol_thread_target) <wait>: Update.
4367 (sol_thread_target::wait): Update.
4368 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4369 (rs6000_nat_target::wait): Update.
4370 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4371 Update.
4372 (remote_target::wait_ns, remote_target::wait_as): Change type of
4373 "options".
4374 (remote_target::wait): Update.
4375 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4376 (gdbsim_target::wait): Update.
4377 * record-full.c (class record_full_base_target) <wait>: Update.
4378 (record_full_wait_1): Change type of "options".
4379 (record_full_base_target::wait): Update.
4380 * record-btrace.c (class record_btrace_target) <wait>: Update.
4381 (record_btrace_target::wait): Update.
4382 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4383 Update.
4384 (ravenscar_thread_target::wait): Update.
4385 * procfs.c (class procfs_target) <wait>: Update.
4386 (procfs_target::wait): Update.
4387 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4388 * obsd-nat.c (obsd_nat_target::wait): Update.
4389 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4390 (nto_procfs_target::wait): Update.
4391 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4392 * nbsd-nat.c (nbsd_wait): Change type of "options".
4393 (nbsd_nat_target::wait): Update.
4394 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4395 (thread_db_target::wait): Update.
4396 * linux-nat.h (class linux_nat_target) <wait>: Update.
4397 * linux-nat.c (linux_nat_target::wait): Update.
4398 (linux_nat_wait_1): Update.
4399 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4400 "options".
4401 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4402 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4403 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4404 (go32_nat_target::wait): Update.
4405 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4406 * gnu-nat.c (gnu_nat_target::wait): Update.
4407 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4408 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4409 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4410 * darwin-nat.c (darwin_nat_target::wait): Update.
4411 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4412 (bsd_uthread_target::wait): Update.
4413 * aix-thread.c (class aix_thread_target) <wait>: Update.
4414 (aix_thread_target::wait): Update.
4415
4416 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * compile/compile-object-run.c (create_copied_type_recursive): New
4419 function.
4420 (compile_object_run): Use new function.
4421
4422 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4423
4424 * NEWS: Mention x86_64 Cygwin core file support.
4425
4426 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4427
4428 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4429 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4430
4431 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4432
4433 * windows-tdep.h: Add prototypes.
4434 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4435 (i386_windows_core_pid_to_str): Move and rename ...
4436 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4437 (windows_core_pid_to_str): ... and here.
4438 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4439
4440 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4441 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4442 (amd64_windows_init_abi_common): ... and register.
4443
4444 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4445
4446 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4447 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4448
4449 2020-09-18 Pedro Alves <pedro@palves.net>
4450
4451 PR gdb/26631
4452 * thread.c (thread_find_command): Switch inferior before calling
4453 target methods.
4454
4455 2020-09-17 Tom Tromey <tromey@adacore.com>
4456
4457 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4458 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4459 (tdesc_arch_data_up): New typedef.
4460 (tdesc_use_registers, tdesc_data_alloc): Update.
4461 (tdesc_data_cleanup): Don't declare.
4462 * target-descriptions.c (tdesc_data_alloc): Return a
4463 tdesc_arch_data_up.
4464 (tdesc_arch_data_deleter::operator()): Rename from
4465 tdesc_data_cleanup. Change argument type.
4466 (tdesc_use_registers): Change early_data to an rvalue reference.
4467 (tdesc_use_registers): Don't use delete.
4468 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4469 * s390-tdep.c (s390_gdbarch_init): Update.
4470 * rx-tdep.c (rx_gdbarch_init): Update.
4471 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4472 * riscv-tdep.c (riscv_gdbarch_init): Update.
4473 * or1k-tdep.c (or1k_gdbarch_init): Update.
4474 * nios2-tdep.c (nios2_gdbarch_init): Update.
4475 * nds32-tdep.c (nds32_gdbarch_init): Update.
4476 * mips-tdep.c (mips_gdbarch_init): Update.
4477 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4478 * m68k-tdep.c (m68k_gdbarch_init): Update.
4479 * i386-tdep.c (i386_gdbarch_init): Update.
4480 * arm-tdep.c (arm_gdbarch_init): Update.
4481 * arc-tdep.c (arc_tdesc_init): Update.
4482 (arc_gdbarch_init): Update.
4483 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4484
4485 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4486
4487 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4488 for WOW64 processes.
4489
4490 2020-09-17 Tom Tromey <tom@tromey.com>
4491
4492 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4493
4494 2020-09-17 Tom Tromey <tom@tromey.com>
4495
4496 * value.c (preserve_values): Update.
4497 * python/py-type.c (save_objfile_types): Update.
4498 * guile/scm-type.c (save_objfile_types): Update.
4499 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4500 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4501 * compile/compile-object-run.c (compile_object_run): Update.
4502
4503 2020-09-17 Tom Tromey <tom@tromey.com>
4504
4505 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4506 Remove.
4507 <m_table>: Now htab_up.
4508 * typeprint.c (typedef_hash_table::recursively_update)
4509 (typedef_hash_table::add_template_parameters)
4510 (typedef_hash_table::typedef_hash_table): Update.
4511 (typedef_hash_table::~typedef_hash_table): Remove.
4512 (typedef_hash_table::typedef_hash_table)
4513 (typedef_hash_table::find_global_typedef)
4514 (typedef_hash_table::find_typedef): Update.
4515
4516 2020-09-17 Tom Tromey <tom@tromey.com>
4517
4518 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4519
4520 2020-09-17 Tom Tromey <tom@tromey.com>
4521
4522 * linespec.c (class decode_compound_collector)
4523 <~decode_compound_collector>: Remove.
4524 <m_unique_syms>: Now htab_up.
4525 (decode_compound_collector::operator ()): Update.
4526 (class symtab_collector) <~symtab_collector>: Remove.
4527 <m_symtab_table>: Now htab_up.
4528 (symtab_collector::operator ()): Update.
4529
4530 2020-09-17 Tom Tromey <tom@tromey.com>
4531
4532 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4533 (filename_seen_cache::clear): Update.
4534 (~filename_seen_cache): Remove.
4535 (filename_seen_cache::seen): Update.
4536 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4537 htab_up.
4538 <~filename_seen_cache>: Remove.
4539 <traverse>: Update.
4540
4541 2020-09-17 Tom Tromey <tom@tromey.com>
4542
4543 * completer.c (completion_tracker::discard_completions)
4544 (completion_tracker::~completion_tracker)
4545 (completion_tracker::maybe_add_completion)
4546 (completion_tracker::remove_completion)
4547 (completion_tracker::recompute_lowest_common_denominator)
4548 (completion_tracker::build_completion_result): Update.
4549 * completer.h (class completion_tracker) <have_completions>:
4550 Update.
4551 <m_entries_hash>: Now htab_up.
4552
4553 2020-09-17 Tom Tromey <tom@tromey.com>
4554
4555 * breakpoint.c (ambiguous_names_p): Use htab_up.
4556
4557 2020-09-17 Tom Tromey <tom@tromey.com>
4558
4559 * auto-load.c (struct auto_load_pspace_info)
4560 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4561 <loaded_script_files, loaded_script_texts>: Change type to
4562 htab_up.
4563 (~auto_load_pspace_info) Remove.
4564 (init_loaded_scripts_info, maybe_add_script_file)
4565 (maybe_add_script_text, auto_load_info_scripts): Update.
4566
4567 2020-09-17 Tom Tromey <tromey@adacore.com>
4568
4569 * c-exp.y (name_obstack): Now static.
4570
4571 2020-09-17 Chungyi Chi <demonic@csie.io>
4572
4573 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4574
4575 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4578 (add_solib_catchpoint): Likewise.
4579 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4580 to bool.
4581 (add_solib_catchpoint): Change int parameter/variable to bool.
4582 (catch_load_or_unload): Likewise.
4583 (init_catchpoint): Likewise.
4584 (create_fork_vfork_event_catchpoint): Likewise.
4585 (catch_fork_command_1): Likewise.
4586 (catch_exec_command_1): Likewise.
4587
4588 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4591 Change instance_flags to m_instance_flags.
4592
4593 2020-09-16 Tom Tromey <tromey@adacore.com>
4594
4595 PR gdb/26598:
4596 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4597
4598 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4599
4600 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4601 PL_FLAG_EXEC.
4602 (fbsd_nat_target::insert_exec_catchpoint)
4603 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4604 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4605 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4606
4607 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4608
4609 * configure.ac: Remove check for kinfo_getvmmap().
4610 * configure, config.in: Regenerate.
4611 * fbsd-nat.c (fbsd_read_mapping): Remove
4612 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4613 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4614 kinfo_get_vmmap() are always present.
4615
4616 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4617
4618 * fbsd-nat.c: Always include support for
4619 TARGET_OBJECT_SIGNAL_INFO.
4620
4621 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4622
4623 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4624 sysctl and remove procfs fallback.
4625
4626 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4627
4628 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4629 * fbsd-nat.h: Likewise.
4630
4631 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4632
4633 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4634 argument.
4635
4636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_language_data): Delete.
4639 (ada_language): Remove references to ada_language_data.
4640 * c-lang.c (c_language_data): Delete.
4641 (c_language): Remove references to c_language_data.
4642 (cplus_language_data): Delete.
4643 (cplus_language): Remove references to cplus_language_data.
4644 (asm_language_data): Delete.
4645 (asm_language): Remove references to asm_language_data.
4646 (minimal_language_data): Delete.
4647 (minimal_language): Remove references to minimal_language_data.
4648 * d-lang.c (d_language_data): Delete.
4649 (d_language): Remove references to d_language_data.
4650 * f-lang.c (f_language_data): Delete.
4651 (f_language): Remove references to f_language_data.
4652 * go-lang.c (go_language_data): Delete.
4653 (go_language): Remove references to go_language_data.
4654 * language.c (unknown_language_data): Delete.
4655 (unknown_language): Remove references to unknown_language_data.
4656 (auto_language_data): Delete.
4657 (auto_language): Remove references to auto_language_data.
4658 * language.h (language_data): Delete struct.
4659 (language_defn): No longer inherit from language_data.
4660 * m2-lang.c (m2_language_data): Delete.
4661 (m2_language): Remove references to m2_language_data.
4662 * objc-lang.c (objc_language_data): Delete.
4663 (objc_language): Remove references to objc_language_data.
4664 * opencl-lang.c (opencl_language_data): Delete.
4665 (opencl_language): Remove references to opencl_language_data.
4666 * p-lang.c (pascal_language_data): Delete.
4667 (pascal_language): Remove references to pascal_language_data.
4668 * rust-lang.c (rust_language_data): Delete.
4669 (rust_language): Remove references to rust_language_data.
4670
4671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4674 initializer.
4675 (ada_language::opcode_print_table): New member function.
4676 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4677 (c_language::opcode_print_table): New member function.
4678 (cplus_language_data): Remove la_op_print_tab initializer.
4679 (cplus_language::opcode_print_table): New member function.
4680 (asm_language_data): Remove la_op_print_tab initializer.
4681 (asm_language::opcode_print_table): New member function.
4682 (minimal_language_data): Remove la_op_print_tab initializer.
4683 (minimal_language::opcode_print_table): New member function.
4684 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4685 (d_language::opcode_print_table): New member function.
4686 * expprint.c (print_subexp_standard): Update call to
4687 opcode_print_table.
4688 (op_string): Likewise.
4689 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4690 (f_language::opcode_print_table): New member function.
4691 * go-lang.c (go_language_data): Remove la_op_print_tab
4692 initializer.
4693 (go_language::opcode_print_table): New member function.
4694 * language.c (unknown_language_data): Remove la_op_print_tab
4695 initializer.
4696 (unknown_language::opcode_print_table): New member function.
4697 (auto_language_data): Remove la_op_print_tab initializer.
4698 (auto_language::opcode_print_table): New member function.
4699 * language.h (language_data): Remove la_op_print_tab field.
4700 (language_defn::opcode_print_table): Declare new member function.
4701 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4702 initializer.
4703 (m2_language::opcode_print_table): New member function.
4704 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4705 initializer.
4706 (objc_language::opcode_print_table): New member function.
4707 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4708 initializer.
4709 (opencl_language::opcode_print_table): New member function.
4710 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4711 initializer.
4712 (pascal_language::opcode_print_table): New member function.
4713 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4714 initializer.
4715 (rust_language::opcode_print_table): New member function.
4716
4717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4718
4719 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4720 (ada_language::expression_ops): New member function.
4721 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4722 (c_language::expression_ops): New member function.
4723 (cplus_language_data): Remove la_exp_desc initializer.
4724 (cplus_language::expression_ops): New member function.
4725 (asm_language_data): Remove la_exp_desc initializer.
4726 (asm_language::expression_ops): New member function.
4727 (minimal_language_data): Remove la_exp_desc initializer.
4728 (minimal_language::expression_ops): New member function.
4729 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4730 (d_language::expression_ops): New member function.
4731 * eval.c (evaluate_subexp): Update call to expression_ops.
4732 * expprint.c (print_subexp): Likewise.
4733 (op_name): Likewise.
4734 (dump_subexp_body): Likewise.
4735 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4736 (f_language::expression_ops): New member function.
4737 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4738 (go_language::expression_ops): New member function.
4739 * language.c (language_defn::expression_ops): New function.
4740 (unknown_language_data): Remove la_exp_desc initializer.
4741 (auto_language_data): Likewise.
4742 * language.h (language_data): Remove la_exp_desc field.
4743 (language_defn::expression_ops): Declare new member function.
4744 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4745 (m2_language::expression_ops): New member function.
4746 * objc-lang.c (objc_language_data): Remove la_exp_desc
4747 initializer.
4748 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4749 initializer.
4750 (opencl_language::expression_ops): New member function.
4751 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4752 * parse.c (operator_length): Update call to expression_ops.
4753 (exp_iterate): Likewise.
4754 * rust-lang.c (rust_language_data): Remove la_exp_desc
4755 initializer.
4756 (ruse_language::expression_ops): New member function.
4757
4758 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4761 initializer.
4762 (ada_language::varobj_ops): New member function.
4763 * c-lang.c (c_language_data): Remove la_varobj_ops
4764 initializer.
4765 (cplus_language_data): Likewise.
4766 (cplus_language::varobj_ops): New member function.
4767 (asm_language_data): Remove la_varobj_ops initializer.
4768 (minimal_language_data): Likewise.
4769 * d-lang.c (d_language_data): Likewise.
4770 * f-lang.c (f_language_data): Likewise.
4771 * go-lang.c (go_language_data): Likewise.
4772 * language.c (language_defn::varobj_ops): New function.
4773 (unknown_language_data): Remove la_varobj_ops
4774 initializer.
4775 (auto_language_data): Likewise.
4776 * language.h (language_data): Remove la_varobj_ops field.
4777 (language_defn::varobj_ops): Declare new member function.
4778 * m2-lang.c (m2_language_data): Remove la_varobj_ops 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 * varobj.c (varobj_create): Update call to varobj_ops.
4784 * varobj.h (default_varobj_ops): Delete define.
4785
4786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4789 initializer.
4790 * c-lang.c (c_language_data): Likewise.
4791 (c_language::macro_expansion): New member function.
4792 (cplus_language_data): Likewise.
4793 (cplus_language::macro_expansion): New member function.
4794 (asm_language_data): Likewise.
4795 (asm_language::macro_expansion): New member function.
4796 (minimal_language_data): Likewise.
4797 (minimal_language::macro_expansion): New member function.
4798 * d-lang.c (d_language_data): Remove la_macro_expansion
4799 initializer.
4800 * f-lang.c (f_language_data): Likewise.
4801 * go-lang.c (go_language_data): Likewise.
4802 * language.c (unknown_language_data): Likewise.
4803 (auto_language_data): Likewise.
4804 * language.h (language_data): Remove la_macro_expansion field.
4805 (language_defn::macro_expansion): New member function.
4806 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4807 initializer.
4808 * objc-lang.c (objc_language_data): Likewise.
4809 (objc_language::macro_expansion): New member function.
4810 * opencl-lang.c (opencl_language_data): Likewise.
4811 (opencl_language::macro_expansion): New member function.
4812 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4813 initializer.
4814 * rust-lang.c (rust_language_data): Likewise.
4815 * symtab.c (default_collect_symbol_completion_matches_break_on):
4816 Update call to macro_expansion.
4817
4818 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4819
4820 * ada-lang.c (ada_language_data): Remove la_array_ordering
4821 initializer.
4822 * c-lang.c (c_language_data): Likewise.
4823 (cplus_language_data): Likewise.
4824 (asm_language_data): Likewise.
4825 (minimal_language_data): Likewise.
4826 * d-lang.c (d_language_data): Likewise.
4827 * dwarf2/read.c (read_array_order): Update for call to
4828 array_ordering.
4829 * f-lang.c (f_language_data): Remove la_array_ordering
4830 initializer.
4831 (f_language::array_ordering): New member function.
4832 * go-lang.c (go_language_data): Remove la_array_ordering
4833 initializer.
4834 * language.c (unknown_language_data): Likewise.
4835 (auto_language_data): Likewise.
4836 * language.h (language_data): Delete la_array_ordering field.
4837 (language_defn::array_ordering): New member function.
4838 * m2-lang.c (m2_language_data): Remove la_array_ordering
4839 initializer.
4840 * objc-lang.c (objc_language_data): Likewise.
4841 * opencl-lang.c (opencl_language_data): Likewise.
4842 * p-lang.c (pascal_language_data): Likewise.
4843 * rust-lang.c (rust_language_data): Likewise.
4844
4845 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4846
4847 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4848 initializer.
4849 * c-lang.c (c_language_data): Likewise.
4850 (cplus_language_data): Likewise.
4851 (asm_language_data): Likewise.
4852 (minimal_language_data): Likewise.
4853 * d-lang.c (d_language_data): Likewise.
4854 * f-lang.c (f_language_data): Likewise.
4855 (f_language::case_sensitivity): New member function.
4856 * go-lang.c (go_language_data): Remove la_case_sensitivity
4857 initializer.
4858 * language.c (enum case_mode): Moved here from language.h.
4859 (case_mode): Make static.
4860 (show_case_command): Update for case_sensitivity being a method.
4861 (set_case_command): Likewise.
4862 (set_range_case): Likewise.
4863 (unknown_language_data): Remove la_case_sensitivity initializer.
4864 (auto_language_data): Likewise.
4865 * language.h (case_mode): Delete, move enum declaration to
4866 language.c.
4867 (language_data): Delete la_case_sensitivity field.
4868 (language_defn::case_sensitivity): New member function.
4869 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4870 initializer.
4871 * objc-lang.c (objc_language_data): Likewise.
4872 * opencl-lang.c (opencl_language_data): Likewise.
4873 * p-lang.c (pascal_language_data): Likewise.
4874 * rust-lang.c (rust_language_data): Likewise.
4875
4876 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4877
4878 * ada-lang.c (ada_language_data): Remove la_range_check
4879 initializer.
4880 * c-lang.c (c_language_data): Likewise.
4881 (cplus_language_data): Likewise.
4882 (asm_language_data): Likewise.
4883 (minimal_language_data): Likewise.
4884 * d-lang.c (d_language_data): Likewise.
4885 * f-lang.c (f_language_data): Likewise.
4886 (f_language::range_checking_on_by_default): New member function.
4887 * go-lang.c (go_language_data): Remove la_range_check initializer.
4888 * language.c (enum range_mode): Moved here from language.h.
4889 (range_mode): Made static.
4890 (show_range_command): Update to use
4891 range_checking_on_by_default.
4892 (set_range_command): Likewise.
4893 (set_range_case): Likewise.
4894 (unknown_language_data): Remove la_range_check initializer.
4895 (auto_language_data): Likewise.
4896 * language.h (range_mode): Delete. Enum definition moved to
4897 language.c.
4898 (language_data): Remove la_range_check field.
4899 (language_defn::range_checking_on_by_default): New member
4900 function.
4901 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4902 (m2_language::range_checking_on_by_default): New member function.
4903 * objc-lang.c (objc_language_data): Remove la_range_check
4904 initializer.
4905 * opencl-lang.c (opencl_language_data): Likewise.
4906 * p-lang.c (pascal_language_data): Likewise.
4907 (pascal_language::range_checking_on_by_default): New member
4908 function.
4909 * rust-lang.c (rust_language_data): Remove la_range_check
4910 initializer.
4911 (rust_language::range_checking_on_by_default): New member
4912 function.
4913
4914 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * dwarf2/read.c (dwarf2_physname): Remove special case for
4917 language_go.
4918 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4919 member function.
4920
4921 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * ada-lang.c (ada_language_data): Remove
4924 la_store_sym_names_in_linkage_form_p initializer.
4925 (ada_language::store_sym_names_in_linkage_form_p): New member
4926 function.
4927 * c-lang.c (c_language_data): Remove
4928 la_store_sym_names_in_linkage_form_p initializer.
4929 (c_language::store_sym_names_in_linkage_form_p): New member
4930 function.
4931 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4932 initializer.
4933 (asm_language_data): Likewise.
4934 (asm_language::store_sym_names_in_linkage_form_p): New member
4935 function.
4936 (minimal_language_data): Remove
4937 la_store_sym_names_in_linkage_form_p initializer.
4938 (minimal_language::store_sym_names_in_linkage_form_p): New member
4939 function.
4940 * d-lang.c (d_language_data): Remove
4941 la_store_sym_names_in_linkage_form_p initializer.
4942 * dwarf2/read.c (dwarf2_physname): Update call to
4943 store_sym_names_in_linkage_form_p.
4944 * f-lang.c (f_language_data): Remove
4945 la_store_sym_names_in_linkage_form_p initializer.
4946 * go-lang.c (go_language_data): Remove
4947 la_store_sym_names_in_linkage_form_p initializer.
4948 * language.c (unknown_language_data): Remove
4949 la_store_sym_names_in_linkage_form_p initializer.
4950 (unknown_language::store_sym_names_in_linkage_form_p): New member
4951 function.
4952 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4953 initializer.
4954 (auto_language::store_sym_names_in_linkage_form_p): New member
4955 function.
4956 * language.h (language_data): Remove
4957 la_store_sym_names_in_linkage_form_p member variable.
4958 (language_defn::store_sym_names_in_linkage_form_p): New member
4959 function.
4960 * m2-lang.c (m2_language_data): Remove
4961 la_store_sym_names_in_linkage_form_p initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * rust-lang.c (rust_language_data): Likewise.
4966
4967 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * ada-lang.c (ada_language_data): Remove string_lower_bound
4970 initializer.
4971 * c-lang.c (c_language_data): Likewise.
4972 (cplus_language_data): Likewise.
4973 (asm_language_data): Likewise.
4974 (minimal_language_data): Likewise.
4975 * d-lang.c (d_language_data): Likewise.
4976 * f-lang.c (f_language_data): Likewise.
4977 * go-lang.c (go_language_data): Likewise.
4978 * language.c (unknown_language_data): Likewise.
4979 (auto_language_data): Likewise.
4980 * language.h (language_data): Remove string_lower_bound field.
4981 (language_defn::string_lower_bound): New member function.
4982 * m2-lang.c (m2_language_data): Remove string_lower_bound
4983 initializer.
4984 (m2_language::string_lower_bound): New member function.
4985 * objc-lang.c (objc_language_data): Remove string_lower_bound
4986 initializer.
4987 * opencl-lang.c (opencl_language_data): Likewise.
4988 * p-lang.c (pascal_language_data): Likewise.
4989 * rust-lang.c (rust_language_data): Likewise.
4990 * valops.c (value_cstring): Update call to string_lower_bound.
4991 (value_string): Likewise.
4992 * value.c (allocate_repeated_value): Likewise.
4993
4994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * valops.c (value_repeat): Fix incorrect argument name in comment.
4997
4998 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * ada-lang.c (ada_language_data): Remove c_style_arrays
5001 initializer.
5002 (ada_language::c_style_arrays_p): New member fuction.
5003 * c-lang.c (c_language_data): Remove c_style_arrays
5004 initializer.
5005 (cplus_language_data): Likewise.
5006 (asm_language_data): Likewise.
5007 (minimal_language_data): Likewise.
5008 * d-lang.c (d_language_data): Likewise.
5009 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5010 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5011 (f_language::c_style_arrays_p): New member function.
5012 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5013 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5014 * language.c (unknown_language_data): Remove c_style_arrays
5015 initializer.
5016 (auto_language_data): Likewise.
5017 * language.h (language_data): Remove c_style_arrays field.
5018 (language_defn::c_style_arrays_p): New member function.
5019 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5020 (m2_language::c_style_arrays_p): New member function.
5021 * objc-lang.c (objc_language_data): Remove c_style_arrays
5022 initializer.
5023 * opencl-lang.c (opencl_language_data): Likewise.
5024 * p-lang.c (pascal_language_data): Likewise.
5025 * rust-lang.c (rust_language_data): Likewise.
5026 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5027 and update local variable to a bool.
5028 * valops.c (value_cast): Update call to c_style_arrays_p.
5029 (value_array): Likewise.
5030 * value.c (coerce_array): Likewise.
5031
5032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5033
5034 * ada-lang.c (ada_language_data): Remove la_language initializer.
5035 * c-lang.c (c_language_data): Likewise.
5036 (cplus_language_data): Likewise.
5037 (asm_language_data): Likewise.
5038 (minimal_language_data): Likewise.
5039 * d-lang.c (d_language_data): Likewise.
5040 * f-lang.c (f_language_data): Likewise.
5041 * go-lang.c (go_language_data): Likewise.
5042 * language.c (unknown_language_data): Likewise.
5043 (auto_language_data): Likewise.
5044 * language.h (language_data): Remove la_language field.
5045 (language_defn::language_defn): Initialise la_language field.
5046 (language_defn::la_language): New member variable.
5047 * m2-lang.c (m2_language_data): Remove la_language field.
5048 * objc-lang.c (objc_language_data): Likewise.
5049 * opencl-lang.c (opencl_language_data): Likewise.
5050 * p-lang.c (pascal_language_data): Likewise.
5051 * rust-lang.c (rust_language_data): Likewise.
5052
5053 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * ada-lang.c (ada_extensions): Delete, moved into
5056 ada_language::filename_extensions.
5057 (ada_language_data): Remove la_filename_extensions initializer.
5058 (ada_language::filename_extensions): New member function.
5059 * c-lang.c (c_extensions): Delete, moved into
5060 c_language::filename_extensions.
5061 (c_language_data): Remove la_filename_extensions initializer.
5062 (c_language::filename_extensions): New member function.
5063 (cplus_extensions): Delete, moved into
5064 cplus_language::filename_extensions.
5065 (cplus_language_data): Remove la_filename_extensions initializer.
5066 (cplus_language::filename_extensions): New member function.
5067 (asm_extensions): Delete, moved into
5068 asm_language::filename_extensions.
5069 (asm_language_data): Remove la_filename_extensions initializer.
5070 (asm_language::filename_extensions): New member function.
5071 (minimal_language_data): Remove la_filename_extensions
5072 initializer.
5073 * d-lang.c (d_extensions): Delete, moved into
5074 d_language::filename_extensions.
5075 (d_language_data): Remove la_filename_extensions initializer.
5076 (d_language::filename_extensions): New member function.
5077 * f-lang.c (f_extensions): Delete, moved into
5078 f_language::filename_extensions.
5079 (f_language_data): Remove la_filename_extensions initializer.
5080 (f_language::filename_extensions): New member function.
5081 * go-lang.c (go_language_data): Remove la_filename_extensions
5082 initializer.
5083 * language.c (add_set_language_command): Update now that
5084 filename_extensions returns a vector.
5085 (unknown_language_data): Remove la_filename_extensions
5086 initializer.
5087 (auto_language_data): Likewise.
5088 * language.h (language_data): Remove la_filename_extensions field.
5089 (language_defn::filename_extensions): New member function.
5090 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5091 initializer.
5092 * objc-lang.c (objc_extensions): Delete, moved into
5093 objc_language::filename_extensions.
5094 (objc_language_data): Remove la_filename_extensions initializer.
5095 (objc_language::filename_extensions): New member function.
5096 * opencl-lang.c (opencl_language_data): Remove
5097 la_filename_extensions initializer.
5098 * p-lang.c (pascal_extensions): Delete, moved into
5099 pascal_language::filename_extensions.
5100 (pascal_language_data): Remove la_filename_extensions initializer.
5101 (pascal_language::filename_extensions): New member function.
5102 * rust-lang.c (rust_extensions): Delete, moved into
5103 rust_language::filename_extensions.
5104 (rust_language_data): Remove la_filename_extensions initializer.
5105 (rust_language::filename_extensions): New member function.
5106 * symfile.c (add_filename_language): Add new assert.
5107
5108 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5109
5110 * ada-lang.c (ada_language_data): Remove la_name and
5111 la_natural_name initializers.
5112 (ada_language::name): New member function.
5113 (ada_language::natural_name): New member function.
5114 * c-lang.c (c_language_data): Remove la_name and
5115 la_natural_name initializers.
5116 (c_language::name): New member function.
5117 (c_language::natural_name): New member function.
5118 (cplus_language_data): Remove la_name and
5119 la_natural_name initializers.
5120 (cplus_language::name): New member function.
5121 (cplus_language::natural_name): New member function.
5122 (asm_language_data): Remove la_name and
5123 la_natural_name initializers.
5124 (asm_language::name): New member function.
5125 (asm_language::natural_name): New member function.
5126 (minimal_language_data): Remove la_name and
5127 la_natural_name initializers.
5128 (minimal_language::name): New member function.
5129 (minimal_language::natural_name): New member function.
5130 * compile/compile.c (compile_to_object): Update call to
5131 lanugage_defn::name.
5132 * d-lang.c (d_language_data): Remove la_name and
5133 la_natural_name initializers.
5134 (d_language::name): New member function.
5135 (d_language::natural_name): New member function.
5136 * expprint.c (print_subexp_standard): Update call to
5137 language_defn::name.
5138 (dump_raw_expression): Likewise
5139 (dump_prefix_expression): Likewise.
5140 * f-lang.c (f_language_data): Remove la_name and
5141 la_natural_name initializers.
5142 (f_language::name): New member function.
5143 (f_language::natural_name): New member function.
5144 * go-lang.c (go_language_data): Remove la_name and
5145 la_natural_name initializers.
5146 (go_language::name): New member function.
5147 (go_language::natural_name): New member function.
5148 * language.c (show_language_command): Update call to
5149 language_defn::name.
5150 (set_language_command): Likewise.
5151 (language_enum): Likewise.
5152 (language_str): Likewise.
5153 (add_set_language_command): Likewise, use
5154 language_defn::natural_name in the doc string.
5155 (unknown_language_data): Remove la_name and
5156 la_natural_name initializers.
5157 (unknown_language::name): New member function.
5158 (unknown_language::natural_name): New member function.
5159 (auto_language_data): Remove la_name and
5160 la_natural_name initializers.
5161 (auto_language::name): New member function.
5162 (auto_language::natural_name): New member function.
5163 (language_lookup_primitive_type_as_symbol): Update call to
5164 language_defn::name.
5165 * language.h (language_data): Remove la_name and la_natural_name
5166 member variables.
5167 (language_defn::name): New member function.
5168 (language_defn::natural_name): New member function.
5169 * m2-lang.c (m2_language_data): Remove la_name and
5170 la_natural_name initializers.
5171 (m2_language::name): New member function.
5172 (m2_language::natural_name): New member function.
5173 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5174 language_defn::natural_name.
5175 * objc-lang.c (objc_language_data): Remove la_name and
5176 la_natural_name initializers.
5177 (objc_language::name): New member function.
5178 (objc_language::natural_name): New member function.
5179 * opencl-lang.c (opencl_language_data): Remove la_name and
5180 la_natural_name initializers.
5181 (opencl_language::name): New member function.
5182 (opencl_language::natural_name): New member function.
5183 * p-lang.c (pascal_language_data): Remove la_name and
5184 la_natural_name initializers.
5185 (pascal_language::name): New member function.
5186 (pascal_language::natural_name): New member function.
5187 * rust-lang.c (rust_language_data): Remove la_name and
5188 la_natural_name initializers.
5189 (rust_language::name): New member function.
5190 (rust_language::natural_name): New member function.
5191 * symtab.c (lookup_language_this): Update call to
5192 language_defn::name.
5193
5194 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * ada-lang.c (ada_language_data): Remove la_name_of_this
5197 initializer.
5198 * ax-gdb.c (gen_expr): Update call to name_of_this.
5199 * c-exp.y (classify_name): Likewise.
5200 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5201 (cplus_language_data): Likewise.
5202 (cplus_language::name_of_this): New member function.
5203 (asm_language_data): Remove la_name_of_this initializer.
5204 (minimal_language_data): Likewise.
5205 * d-lang.c (d_language_data): Likewise.
5206 (d_language::name_of_this): New member function.
5207 * expprint.c (print_subexp_standard): Update call to name_of_this.
5208 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5209 * go-lang.c (go_language_data): Likewise.
5210 * language.c (unknown_language_data): Likewise.
5211 (unknown_language::name_of_this): New member function.
5212 (auto_language_data): Remove la_name_of_this initializer.
5213 (auto_language::name_of_this): New member function.
5214 * language.h (language_data): Delete la_name_of_this member
5215 variable.
5216 (language_defn::name_of_this): New member function.
5217 * m2-lang.c (m2_language_data): Remove la_name_of_this
5218 initializer.
5219 * objc-lang.c (objc_language_data): Likewise.
5220 (objc_language::name_of_this): New member function.
5221 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5222 initializer.
5223 * p-lang.c (pascal_language_data): Likewise.
5224 (pascal_language::name_of_this): New member function.
5225 * rust-lang.c (rust_language_data): Remove la_name_of_this
5226 initializer.
5227 * symtab.c (lookup_language_this): Update call to name_of_this.
5228 (lookup_symbol_aux): Likewise.
5229 * valops.c (value_of_this): Likewise.
5230
5231 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * ada-lang.c (ada_language_data): Remove
5234 la_struct_too_deep_ellipsis initializer.
5235 (ada_language::struct_too_deep_ellipsis): New member function.
5236 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5237 initializer.
5238 (cplus_language_data): Likewise.
5239 (asm_language_data): Likewise.
5240 (minimal_language_data): Likewise.
5241 * cp-valprint.c (cp_print_value): Update call to
5242 struct_too_deep_ellipsis.
5243 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5244 initializer.
5245 * f-lang.c (f_language_data): Likewise.
5246 (f_language::struct_too_deep_ellipsis): New member function.
5247 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5248 initializer.
5249 * language.c (unknown_language_data): Likewise.
5250 (auto_language_data): Likewise.
5251 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5252 member variable.
5253 (language_defn::struct_too_deep_ellipsis): New member function.
5254 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5255 initializer.Q
5256 * objc-lang.c (objc_language_data): Likewise.
5257 * opencl-lang.c (opencl_language_data): Likewise.
5258 * p-lang.c (pascal_language_data): Likewise.
5259 * rust-lang.c (rust_language_data): Likewise.
5260 * valprint.c (val_print_check_max_depth): Update call to
5261 struct_too_deep_ellipsis.
5262
5263 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5264
5265 * MAINTAINERS (Write After Approval): Add myself.
5266
5267 2020-09-15 Tom Tromey <tom@tromey.com>
5268
5269 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5270 Remove.
5271
5272 2020-09-15 Tom Tromey <tom@tromey.com>
5273
5274 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5275 and TYPE_CODE_METHODPTR cases.
5276 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5277 (c_value_print_inner): Update.
5278 * valprint.c (generic_value_print_memberptr): New function, from
5279 c_value_print_memberptr.
5280 (generic_value_print): Use it. Call cplus_print_method_ptr.
5281
5282 2020-09-15 Tom Tromey <tromey@adacore.com>
5283
5284 * python/python-internal.h (PyInt_FromLong): Remove define.
5285 * python/py-value.c (convert_value_from_python): Use
5286 gdb_py_object_from_longest.
5287 * python/py-type.c (typy_get_code): Use
5288 gdb_py_object_from_longest.
5289 * python/py-symtab.c (salpy_get_line): Use
5290 gdb_py_object_from_longest.
5291 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5292 gdb_py_object_from_longest.
5293 * python/py-record.c (recpy_gap_reason_code): Use
5294 gdb_py_object_from_longest.
5295 * python/py-record-btrace.c (recpy_bt_insn_size)
5296 (recpy_bt_func_level, btpy_list_count): Use
5297 gdb_py_object_from_longest.
5298 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5299 gdb_py_object_from_longest. Fix error handling.
5300 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5301 gdb_py_object_from_longest.
5302 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5303 gdb_py_object_from_longest.
5304 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5305 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5306 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5307
5308 2020-09-15 Tom Tromey <tromey@adacore.com>
5309
5310 * python/python.c (gdbpy_parameter_value): Use
5311 gdb_py_object_from_ulongest.
5312
5313 2020-09-15 Tom Tromey <tromey@adacore.com>
5314
5315 * python/py-infevents.c (create_register_changed_event_object):
5316 Use gdb_py_object_from_longest.
5317 * python/py-exitedevent.c (create_exited_event_object): Use
5318 gdb_py_object_from_longest.
5319
5320 2020-09-15 Tom Tromey <tromey@adacore.com>
5321
5322 * python/python.c (gdbpy_parameter_value): Use
5323 gdb_py_object_from_longest.
5324 * python/py-type.c (convert_field, typy_range): Use
5325 gdb_py_object_from_longest.
5326 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5327 gdb_py_object_from_longest.
5328 * python/py-lazy-string.c (stpy_get_length): Use
5329 gdb_py_object_from_longest.
5330 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5331 gdb_py_object_from_longest.
5332 * python/py-infevents.c (create_memory_changed_event_object): Use
5333 gdb_py_object_from_longest.
5334 * python/py-inferior.c (infpy_get_num): Use
5335 gdb_py_object_from_longest.
5336 (infpy_get_pid): Likewise.
5337
5338 2020-09-15 Tom Tromey <tromey@adacore.com>
5339
5340 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5341 defines.
5342 * python/py-value.c (valpy_long): Use
5343 gdb_py_object_from_ulongest.
5344 * python/py-symtab.c (salpy_get_pc): Use
5345 gdb_py_object_from_ulongest.
5346 (salpy_get_last): Likewise.
5347 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5348 gdb_py_object_from_ulongest.
5349 * python/py-lazy-string.c (stpy_get_address): Use
5350 gdb_py_object_from_ulongest.
5351 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5352 * python/py-arch.c (archpy_disassemble): Use
5353 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5354 error handling.
5355
5356 2020-09-15 Tom Tromey <tromey@adacore.com>
5357
5358 * python/python-internal.h (gdb_py_long_from_longest): Remove
5359 defines.
5360 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5361 * python/py-type.c (convert_field, typy_get_sizeof): Use
5362 gdb_py_object_from_longest.
5363 * python/py-record-btrace.c (btpy_list_index): Use
5364 gdb_py_object_from_longest.
5365
5366 2020-09-15 Tom Tromey <tromey@adacore.com>
5367
5368 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5369 * python/py-record.c (recpy_element_number): Use
5370 gdb_py_object_from_longest.
5371 (recpy_gap_number): Likewise.
5372
5373 2020-09-15 Tom Tromey <tromey@adacore.com>
5374
5375 * top.c (ui::ui): Update.
5376 (highest_ui_num): Remove.
5377 * top.h (struct ui) <num>: Remove.
5378
5379 2020-09-15 Tom Tromey <tromey@adacore.com>
5380
5381 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5382 * ui-style.c (ansi_regex_text): Now array.
5383 * rust-exp.y (number_regex_text): Now array.
5384 * linespec.c (linespec_quote_characters): Now array.
5385 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5386 Now arrays.
5387
5388 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5389
5390 * debuginfod-support.c (debuginfod_client_deleter): New.
5391 (debuginfod_client_up): New.
5392 (debuginfod_init): Return debuginfod_client_up.
5393 (debuginfod_source_query): Adjust.
5394 (debuginfod_debuginfo_query): Adjust.
5395
5396 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5397
5398 * debuginfod-support.c (debuginfod_source_query): Use
5399 make_unique_xstrdup.
5400
5401 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5404 with `type::instance_flags`.
5405
5406 2020-09-14 Michael Mullin <masmullin@gmail.com>
5407
5408 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5409 Remove baton parameter.
5410
5411 2020-09-14 Pedro Alves <pedro@palves.net>
5412
5413 * Makefile.in (SELFTESTS_SRCS): Add
5414 unittests/enum-flags-selftests.c.
5415 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5416 btrace_function_flags instead of enum btrace_function_flag.
5417 * compile/compile-c-types.c (convert_qualified): Use
5418 enum_flags::raw.
5419 * compile/compile-cplus-symbols.c (convert_one_symbol)
5420 (convert_symbol_bmsym):
5421 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5422 (compile_cplus_convert_struct_or_union_methods)
5423 (compile_cplus_instance::convert_qualified_base):
5424 * go-exp.y (parse_string_or_char): Add cast to int.
5425 * unittests/enum-flags-selftests.c: New file.
5426 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5427 type to btrace_thread_flags from btrace_thread_flag.
5428 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5429 local's type to btrace_thread_flags from btrace_thread_flag. Add
5430 cast in DEBUG call.
5431
5432 2020-09-14 Pedro Alves <pedro@palves.net>
5433
5434 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5435 * gdbtypes.c (address_space_name_to_int): Rename to ...
5436 (address_space_name_to_type_instance_flags): ... this.
5437 (address_space_int_to_name): Rename to ...
5438 (address_space_type_instance_flags_to_name): ... this.
5439 * gdbtypes.h (address_space_name_to_int): Rename to ...
5440 (address_space_name_to_type_instance_flags): ... this.
5441 (address_space_int_to_name): Rename to ...
5442 (address_space_type_instance_flags_to_name): ... this.
5443 * type-stack.c (type_stack::insert): Adjust to rename.
5444 * type-stack.h (type_stack::insert): Likewise.
5445
5446 2020-09-14 Pedro Alves <pedro@palves.net>
5447 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * avr-tdep.c (avr_address_class_type_flags): Return
5450 type_instance_flags.
5451 (avr_address_class_type_flags_to_name): Take a
5452 type_instance_flags.
5453 (avr_address_class_name_to_type_flags): Return bool and take a
5454 type_instance_flags.
5455 * d-lang.c (build_d_types): Use type::set_instance_flags.
5456 * ft32-tdep.c (ft32_address_class_type_flags): Return
5457 type_instance_flags.
5458 (ft32_address_class_type_flags_to_name): Take a
5459 type_instance_flags.
5460 (ft32_address_class_name_to_type_flags): Return bool and take a
5461 type_instance_flags.
5462 (ft32_gdbarch_init): Use type::set_instance_flags.
5463 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5464 * gdbarch.h, gdbarch.c: Regenerate.
5465 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5466 (address_class_name_to_type_flags): Use type_instance_flags and
5467 bool.
5468 * gdbtypes.c (address_space_name_to_int)
5469 (address_space_int_to_name, make_qualified_type): Use
5470 type_instance_flags.
5471 (make_qualified_type): Use type_instance_flags and
5472 type::set_instance_flags.
5473 (make_type_with_address_space, make_cv_type, make_vector_type)
5474 (check_typedef): Use type_instance_flags.
5475 (recursive_dump_type): Cast type_instance_flags to unsigned for
5476 printing.
5477 (copy_type_recursive): Use type::set_instance_flags.
5478 (gdbtypes_post_init): Use type::set_instance_flags.
5479 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5480 <m_instance_flags>: ... this.
5481 <instance_flags, set_instance_flags>: New methods.
5482 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5483 (SET_TYPE_INSTANCE_FLAGS): New.
5484 (address_space_name_to_int, address_space_int_to_name)
5485 (make_type_with_address_space): Pass flags using
5486 type_instance_flags instead of int.
5487 * stabsread.c (cleanup_undefined_types_noname): Use
5488 type::set_instance_flags.
5489 * s390-tdep.c (s390_address_class_type_flags): Return
5490 type_instance_flags.
5491 (s390_address_class_type_flags_to_name): Take a
5492 type_instance_flags.
5493 (s390_address_class_name_to_type_flags): Return bool and take a
5494 type_instance_flags.
5495 * type-stack.c (type_stack::follow_types): Use
5496 type_instance_flags.
5497 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5498
5499 2020-09-14 Tom Tromey <tromey@adacore.com>
5500
5501 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5502 * x86-tdep.c (x86_is_thunk_register_name)
5503 (x86_in_indirect_branch_thunk): Update.
5504 * sparc64-tdep.c (sparc64_fpu_register_names)
5505 (sparc64_cp0_register_names, sparc64_register_names)
5506 (sparc64_pseudo_register_names): Now const.
5507 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5508 cp0_registers_num>: Now const.
5509 * sparc-tdep.c (sparc_core_register_names)
5510 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5511 (sparc32_pseudo_register_names): Now const.
5512 (validate_tdesc_registers): Update.
5513 * rust-lang.c (rust_extensions): Now const.
5514 * p-lang.c (p_extensions): Now const.
5515 * objc-lang.c (objc_extensions): Now const.
5516 * nto-tdep.c (nto_thread_state_str): Now const.
5517 * moxie-tdep.c (moxie_register_names): Now const.
5518 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5519 Now const.
5520 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5521 (mips_linux_reg_names): Now const.
5522 (mips_gdbarch_init): Update.
5523 * microblaze-tdep.c (microblaze_register_names): Now const.
5524 * m68k-tdep.c (m68k_register_names): Now const.
5525 * m32r-tdep.c (m32r_register_names): Now const.
5526 * ia64-tdep.c (ia64_register_names): Now const.
5527 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5528 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5529 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5530 ymm_avx512_register_names, pkeys_register_names>: Now const.
5531 * i386-tdep.c (i386_register_names, i386_zmm_names)
5532 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5533 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5534 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5535 * f-lang.c (f_extensions): Now const.
5536 * d-lang.c (d_extensions): Now const.
5537 * csky-tdep.c (csky_register_names): Now const.
5538 * charset.c (default_charset_names, charset_enum): Now const.
5539 (_initialize_charset): Update.
5540 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5541 const.
5542 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5543 (bsd_uthread_solib_loaded): Update.
5544 (bsd_uthread_state): Now const.
5545 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5546 (amd64_ymm_avx512_names, amd64_ymmh_names)
5547 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5548 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5549 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5550 (amd64_dword_names): Now const.
5551 * agent.c (can_use_agent_enum): Now const.
5552 * ada-tasks.c (task_states, long_task_states): Now const.
5553 * ada-lang.c (known_runtime_file_name_patterns)
5554 (known_auxiliary_function_name_patterns, attribute_names)
5555 (standard_exc, ada_extensions): Now const.
5556
5557 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * bcache.h (struct bcache) <bcache>: Remove constructor.
5560 <m_hash_function, m_compare_function>: Remove.
5561 <~bcache>: Make virtual.
5562 <compare>: Remove static method, introduce virtual method.
5563 <default_hash>: Remove.
5564 <hash>: New virtual method.
5565 * bcache.c (bcache::expand_hash_table): Update.
5566 (bcache::insert): Update.
5567 (bcache::hash): New.
5568 (bcache::compare): Update comment and parameter names.
5569 * gdbtypes.c (types_deeply_equal): Update.
5570 * psymtab.h (struct psymbol_bcache): New struct.
5571 (class psymtab_storage) <psymtab_storage>: Make default.
5572 <psymbol_cache>: Change type to psymbol_bcache.
5573 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5574 (psymbol_hash): Change to...
5575 (psymbol_bcache::hash): ... this.
5576 (psymbol_compare): Change to...
5577 (psymbol_bcache::compare): ... this.
5578
5579 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5582 checking for initial lwp.
5583
5584 2020-09-14 Tom Tromey <tromey@adacore.com>
5585
5586 * m68k-tdep.c (m68k_extract_return_value): Use
5587 pointer_result_regnum.
5588 (m68k_store_return_value): Likewise.
5589 (m68k_reg_struct_return_p): Handle vectors and arrays.
5590 (m68k_return_value): Handle arrays.
5591 (m68k_svr4_return_value): Fix single-element aggregate handling.
5592 Handle long double. Adjust for embedded ABI.
5593 (m68k_svr4_init_abi): Set pointer_result_regnum.
5594 (m68k_embedded_init_abi): New function.
5595 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5596 (m68k_osabi_sniffer): New function.
5597 (_initialize_m68k_tdep): Register osabi sniffer.
5598 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5599 member.
5600
5601 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5604 with gdb::unique_xmalloc_ptr<char>.
5605
5606 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * xml-support.h (xml_fetch_another): Change type to be a
5609 function_view.
5610 (xml_process_xincludes): Remove baton parameter.
5611 (xml_fetch_content_from_file): Change baton parameter to
5612 dirname.
5613 * xml-support.c (struct xinclude_parsing_data)
5614 <xinclude_parsing_data>: Remove baton parameter.
5615 <fetcher_baton>: Remove.
5616 (xinclude_start_include): Adjust.
5617 (xml_process_xincludes): Adjust.
5618 (xml_fetch_content_from_file): Replace baton parameter with
5619 dirname.
5620 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5621 (xml_init_syscalls_info): Use a lambda.
5622 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5623 (file_read_description_xml): Use a lambda.
5624 (fetch_available_features_from_target): Change baton parameter
5625 to target_ops.
5626 (target_read_description_xml): Use a lambda.
5627 (target_fetch_description_xml): Use a lambda.
5628 (string_read_description_xml): Update.
5629
5630 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5633 uses with type::endianity_is_not_default.
5634
5635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * gdbtypes.h (struct type) <endianity_is_not_default,
5638 set_endianity_is_not_default>: New methods.
5639 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5640 type::endianity_is_not_default, change all write call sites to
5641 use type::set_endianity_is_not_default.
5642
5643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5646 uses with type::is_fixed_instance.
5647
5648 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5649
5650 * gdbtypes.h (struct type) <is_fixed_instance,
5651 set_is_fixed_instance>: New methods.
5652 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5653 write call sites to use type::set_is_fixed_instance.
5654
5655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5658 uses with type::is_gnu_ifunc.
5659
5660 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5663 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5664 use type::set_is_gnu_ifunc.
5665
5666 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5669 uses with type::stub_is_supported.
5670
5671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5674 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5675 use type::set_stub_is_supported.
5676
5677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5678
5679 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5680 uses with type::is_vector.
5681
5682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5685 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5686 use type::set_is_vector.
5687
5688 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5689
5690 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5691 uses with type::has_varargs.
5692
5693 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5696 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5697 use type::set_has_varargs.
5698
5699 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5702 uses with type::is_prototyped.
5703
5704 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5707 New methods.
5708 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5709 call sites to use type::set_is_prototyped.
5710
5711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5714 uses with type::target_is_stub.
5715
5716 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5719 New methods.
5720 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5721 sites to use type::set_target_is_stub.
5722
5723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (TYPE_STUB): Remove, replace all
5726 uses with type::is_stub.
5727
5728 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5731 (TYPE_STUB): Use type::is_stub, change all write call sites to
5732 use type::set_is_stub.
5733
5734 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5737 type::has_no_signedness.
5738
5739 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * gdbtypes.h (struct type) <has_no_signedness,
5742 set_has_no_signedness>: New methods.
5743 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5744 call sites to use type::set_has_no_signedness.
5745
5746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5749 type::is_unsigned.
5750
5751 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5754 methods.
5755 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5756 sites to use type::set_is_unsigned.
5757
5758 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5759 Adam Renquinha <arenquinha@cimeq.qc.ca>
5760
5761 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5762 pointer and stack frame offset when unwinding.
5763
5764 2020-09-13 Pedro Alves <pedro@palves.net>
5765
5766 * NEWS: Document "-break-insert --qualified".
5767 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5768
5769 2020-09-13 Pedro Alves <pedro@palves.net>
5770
5771 * linespec.c (classify_mtype, compare_msyms): Delete.
5772 (search_minsyms_for_name): Remove classification logic. Instead
5773 filter out trampoline symbols if we also found an external
5774 function of the same name.
5775
5776 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5777
5778 * NEWS: Create a new section for the next release branch.
5779 Rename the section of the current branch, now that it has
5780 been cut.
5781
5782 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5783
5784 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5785 * version.in: Bump version to 11.0.50.DATE-git.
5786
5787 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5788
5789 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5790
5791 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5792 Felix Willgerodt <Felix.Willgerodt@intel.com>
5793
5794 * gdbarch.sh: Added bfloat16 type.
5795 * gdbarch.c: Regenerated.
5796 * gdbarch.h: Regenerated.
5797 * gdbtypes.c (floatformats_bfloat16): New struct.
5798 (gdbtypes_post_init): Add builtin_bfloat16.
5799 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5800 (floatformats_bfloat16): New struct.
5801 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5802 (i386_ymm_type): Add field "v16_bfloat16"
5803 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5804 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5805 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5806 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5807 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5808 * features/i386/64bit-avx512.c: Regenerated.
5809 * features/i386/64bit-sse.xml: Add bfloat16 type.
5810 * features/i386/64bit-sse.c: Regenerated.
5811
5812 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5813
5814 * i386-tdep.c (i386_zmm_type): Fix field names.
5815 (i386_ymm_type): Fix field names.
5816
5817 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5818
5819 * breakpoint.c: Fix typo in the help message of the
5820 "set breakpoint condition-evaluation" command.
5821
5822 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5823
5824 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5825 * (nbsd_nat_target::pid_to_exec_file)
5826 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5827 (nbsd_nat_target::post_startup_inferior)
5828 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5829 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5830 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5831 * (nbsd_thread_lister): Remove.
5832
5833 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5834
5835 * fork-inferior.c (startup_inferior): Avoid double free.
5836
5837 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5838
5839 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5840 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5841
5842 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5843
5844 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5845 * netbsd-nat.c: Include <sys/ptrace.h>.
5846 * (netbsd_nat::enable_proc_events): Add.
5847
5848 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5849
5850 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5851 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5852 (netbsd_nat::for_each_thread): Add.
5853 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5854 "gdbsupport/common-debug.h".
5855 * (netbsd_nat::netbsd_thread_lister)
5856 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5857 (netbsd_nat::for_each_thread): Add.
5858
5859 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5860
5861 * netbsd-nat.h: Include <unistd.h>.
5862 * (netbsd_nat::pid_to_exec_file): Add.
5863 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5864 * (netbsd_nat::pid_to_exec_file) Add.
5865
5866 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5867
5868 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5869
5870 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5871
5872 * netbsd-nat.h: New file.
5873 * netbsd-nat.c: Likewise.
5874
5875 2020-09-09 Tom Tromey <tromey@adacore.com>
5876
5877 * ada-lang.c (remove_extra_symbols): Do not increment when
5878 removing an element
5879
5880 2020-09-08 Tom Tromey <tromey@adacore.com>
5881
5882 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5883
5884 2020-09-08 Tom Tromey <tromey@adacore.com>
5885
5886 PR win32/25302:
5887 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5888 (gdb_bfd_init_data): New function.
5889 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5890
5891 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5892
5893 * infrun.c (fetch_inferior_event): Use
5894 `switch_to_target_no_thread` to switch the target.
5895
5896 2020-09-06 Tom Tromey <tom@tromey.com>
5897
5898 * symfile.h (dwarf2_free_objfile): Don't declare.
5899
5900 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5901
5902 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5903 to match 16 byte real/complex type generated by Flang compiler.
5904
5905 2020-09-03 Tom de Vries <tdevries@suse.de>
5906
5907 PR breakpoint/26546
5908 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5909 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5910
5911 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * maint.c (index_digits): New function.
5914 (struct maint_print_section_data): Remove.
5915 (print_bfd_section_info): Remove print_data parameter, add arg
5916 and index_digits.
5917 (print_objfile_section_info): Likewise.
5918 (print_bfd_section_info_maybe_relocated): Likewise (plus
5919 objfile).
5920 (maintenance_info_sections): Adjust calls.
5921
5922 2020-09-02 Tom Tromey <tromey@adacore.com>
5923
5924 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5925 for null pointers.
5926 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5927
5928 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * bcache.h (struct bcache) <insert>: Change type of `added` to
5931 pointer to bool.
5932 * bcache.c (bcache::insert): Likewise.
5933 * gdbtypes.c (check_types_worklist): Adjust.
5934 * psymtab.c (add_psymbol_to_bcache): Adjust.
5935
5936 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5937
5938 * corelow.c (unordered_set): Include.
5939 (class core_target): Add field 'm_core_unavailable_mappings'.
5940 (core_target::build_file_mappings): Print only one warning
5941 per inaccessible file. Add unavailable/broken mappings
5942 to m_core_unavailable_mappings.
5943 (core_target::xfer_partial): Call...
5944 (core_target::xfer_memory_via_mappings): New method.
5945
5946 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5949 type to bool.
5950
5951 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * dwarf2/read.c (struct field_info): Fix indentation.
5954
5955 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5956
5957 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5958 ordering in comment.
5959 * frame.c (frame_id_eq): Fix indentation.
5960
5961 2020-08-31 Scott Linder <scott@scottlinder.com>
5962 Simon Marchi <simon.marchi@efficios.com>
5963
5964 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5965 inline frame ids in outer frame.
5966
5967 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5970 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5971 (outer_frame_id): Use FID_STACK_OUTER instead of
5972 FID_STACK_INVALID.
5973 (frame_id_p): Don't check for outer_frame_id.
5974
5975 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5978 regnum/frame in value. Call allocate_value_lazy.
5979 * frame.c (frame_unwind_register_value): Use
5980 val_print_not_saved.
5981
5982 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5983
5984 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5985
5986 2020-08-29 Pedro Alves <pedro@palves.net>
5987
5988 * progspace.c (print_program_space): Use all_inferiors. Switch to
5989 the inferior before calling target_pid_to_str.
5990
5991 2020-08-28 Tom Tromey <tom@tromey.com>
5992
5993 * xcoffread.c (xcoff_end_psymtab): Update comment.
5994 * dbxread.c (dbx_end_psymtab): Update comment.
5995
5996 2020-08-28 Tom de Vries <tdevries@suse.de>
5997
5998 PR breakpoint/26544
5999 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6000 event_location.
6001 (create_breakpoint): Same.
6002 (base_breakpoint_decode_location): Same.
6003 (bkpt_create_sals_from_location): Same.
6004 (bkpt_decode_location): Same.
6005 (bkpt_probe_create_sals_from_location): Same.
6006 (bkpt_probe_decode_location): Same.
6007 (tracepoint_create_sals_from_location): Same.
6008 (tracepoint_decode_location): Same.
6009 (tracepoint_probe_decode_location): Same.
6010 (strace_marker_create_sals_from_location): Same.
6011 (strace_marker_decode_location): Same.
6012 (create_sals_from_location_default): Same.
6013 (decode_location_default): Same.
6014 * breakpoint.h (struct breakpoint_ops): Same.
6015 (create_breakpoint): Same.
6016 * linespec.h (decode_line_full): Same.
6017 * linespec.c (decode_line_full): Same. Throw error if
6018 result.size () == 0.
6019
6020 2020-08-27 Pedro Alves <pedro@palves.net>
6021
6022 PR gdb/26524
6023 * breakpoint.c (until_break_fsm) <location_breakpoint,
6024 caller_breakpoint>: Delete fields.
6025 <breakpoints>: New field.
6026 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6027 two individual breakpoints.
6028 (until_break_fsm::should_stop): Loop over breakpoints in the
6029 breakpoint vector.
6030 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6031 vector.
6032 (until_break_command): Handle location expanding into multiple
6033 sals.
6034
6035 2020-08-27 Pedro Alves <pedro@palves.net>
6036
6037 PR gdb/26523
6038 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6039 bp_until breakpoints user-specified locations. Update intro
6040 comment.
6041
6042 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6045 gdb_bfd_sections): New.
6046 * maint.c (print_bfd_section_info): Change param type to
6047 maint_print_section_data.
6048 (print_objfile_section_info): Likewise.
6049 (print_bfd_section_info_maybe_relocated): Likewise.
6050 (maintenance_info_sections): Use gdb_bfd_sections.
6051
6052 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6053
6054 * MAINTAINERS: Add ARC target and maintainer.
6055
6056 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6057
6058 * configure.tgt: ARC support for GNU/Linux.
6059 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6060 * arc-linux-tdep.c: New file.
6061 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6062 * arc-tdep.c (arc_write_pc): Use it.
6063
6064 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6065
6066 * arc-tdep.c (arc_check_for_hardware_loop): New.
6067 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6068
6069 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6070
6071 * arc-tdep.h: Include "gdbarch.h".
6072
6073 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6074
6075 * arch/arc.h
6076 (arc_gdbarch_features): New class to stir the selection of target XML.
6077 (arc_create_target_description): Use FEATURES to choose XML target.
6078 (arc_lookup_target_description): Use arc_create_target_description
6079 to create _new_ target descriptions or return the already created
6080 ones if the FEATURES is the same.
6081 * arch/arc.c: Implementation of prototypes described above.
6082 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6083 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6084 * arc-tdep.c (*_feature_name): Make feature names consistent.
6085 (arc_register_feature): A new struct to hold information about
6086 registers of a particular target/feature.
6087 (arc_check_tdesc_feature): Check if XML provides registers in
6088 compliance with ARC_REGISTER_FEATURE structs.
6089 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6090 (determine_*_reg_feature_set): Which feature name to look for.
6091 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6092 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6093 to expected ISA enums to be used in arc_gdbarch_features structs.
6094 * features/Makefile (FEATURE_XMLFILES): Add new files.
6095 * gdb/features/arc/v1-aux.c: New file.
6096 * gdb/features/arc/v1-aux.xml: Likewise.
6097 * gdb/features/arc/v1-core.c: Likewise.
6098 * gdb/features/arc/v1-core.xml: Likewise.
6099 * gdb/features/arc/v2-aux.c: Likewise.
6100 * gdb/features/arc/v2-aux.xml: Likewise.
6101 * gdb/features/arc/v2-core.c: Likewise.
6102 * gdb/features/arc/v2-core.xml: Likewise.
6103 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6104
6105 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6106 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 PR m2/26372
6109 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6110 an assert. Remove single element array indexing pattern as the
6111 MULTI_SUBSCRIPT support will handle this case too.
6112
6113 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * value.h (valprint_check_validity): Move declaration from
6116 here...
6117 * valprint.h (valprint_check_validity): ... to here.
6118
6119 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6120
6121 * debug.h: New file.
6122 * debug.c (debug_prefixed_vprintf): New function.
6123 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6124 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6125
6126 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * infrun.h (infrun_debug_printf_1): New function declaration.
6129 (infrun_debug_printf): New macro.
6130 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6131 throughout.
6132 (infrun_debug_printf): New function.
6133 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6134 (handle_jit_event): Likewise.
6135
6136 2020-08-21 Mark Wielaard <mark@klomp.org>
6137
6138 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6139
6140 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * frame.c (enum class frame_id_status): New.
6143 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6144 (fprintf_frame): Update.
6145 (compute_frame_id): Set frame id status to "computing" on entry.
6146 Set it back to "not_computed" on failure and to "computed" on
6147 success.
6148 (get_frame_id): Assert the frame id is not being computed.
6149 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6150 (create_new_frame): Likewise.
6151 (frame_cleanup_after_sniffer): Update assert.
6152
6153 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6154
6155 * regcache.c (pid_ptid_regcache_map): New type.
6156 (target_ptid_regcache_map): Remove.
6157 (target_pid_ptid_regcache_map): New type.
6158 (regcaches): Change type to target_pid_ptid_regcache_map.
6159 (get_thread_arch_aspace_regcache): Update.
6160 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6161 case.
6162 (regcaches_size): Update.
6163 (regcache_count): Update.
6164 (registers_changed_ptid_target_pid_test): New.
6165 (_initialize_regcache): Register new test.
6166
6167 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * regcache.c (regcache_count): New.
6170 (struct regcache_test_data): New.
6171 (regcache_test_data_up): New.
6172 (populate_regcaches_for_test): New.
6173 (regcaches_test): Remove.
6174 (get_thread_arch_aspace_regcache_test): New.
6175 (registers_changed_ptid_all_test): New.
6176 (registers_changed_ptid_target_test): New.
6177 (registers_changed_ptid_target_ptid_test): New.
6178 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6179 (_initialize_regcache): Register new tests.
6180
6181 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6184 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6185 gdbarch and aspace parameter. Use current inferior's aspace.
6186 Validate regcache's arch value.
6187 (regcaches_test): Update.
6188
6189 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * regcache.c (regcaches_test): Call registers_changed.
6192
6193 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6194
6195 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6196
6197 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6198
6199 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6200 to find the end of prologue for flang compiled binaries.
6201 * arm-tdep.c (arm_skip_prologue): Likewise.
6202 * i386-tdep.c (i386_skip_prologue): Likewise.
6203 * producer.c (producer_is_llvm): New function.
6204 (producer_parsing_tests): Added new tests for clang/flang.
6205 * producer.h (producer_is_llvm): New declaration.
6206
6207 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * linux-nat.c (linux_nat_debug_printf): New function.
6210 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6211
6212 2020-08-18 Aaron Merey <amerey@redhat.com>
6213
6214 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6215 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6216 (CLIBS): Add DEBUGINFOD_LIBS.
6217
6218 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6219
6220 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6221 'gdbarch_num_regs'.
6222
6223 2020-08-17 Tom Tromey <tromey@adacore.com>
6224
6225 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6226 ada_get_decoded_value returns NULL.
6227
6228 2020-08-17 Tom Tromey <tromey@adacore.com>
6229
6230 * python/py-inferior.c (infpy_search_memory): Use
6231 gdb_py_object_from_ulongest.
6232 * python/py-infevents.c (create_inferior_call_event_object)
6233 (create_memory_changed_event_object): Use
6234 gdb_py_object_from_ulongest.
6235 * python/py-linetable.c (ltpy_entry_get_pc): Use
6236 gdb_py_object_from_ulongest.
6237
6238 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * loc.c (class symbol_needs_eval_context): Fix indentation.
6241
6242 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6245 bool.
6246
6247 2020-08-17 Tom de Vries <tdevries@suse.de>
6248
6249 PR gdb/26393
6250 * gdbtypes.c (dump_dynamic_prop): New function.
6251 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6252
6253 2020-08-15 Tom de Vries <tdevries@suse.de>
6254
6255 PR backtrace/26390
6256 * stack.c (print_frame_args): Temporarily set the selected
6257 frame to FRAME while printing the frame's arguments.
6258
6259 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6260
6261 PR breakpoints/26385
6262 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6263 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6264
6265 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6266
6267 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6268 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6269 and >= to check return value instead of == -1 and != -1.
6270
6271 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * utils.h (class gdb_argv) <as_array_view>: New method.
6274 * utils.c (gdb_argv_as_array_view_test): New.
6275 (_initialize_utils): Register selftest.
6276 * maint.c (maintenance_selftest): Use the new method.
6277
6278 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6279
6280 * target.h (supports_dumpcore, dumpcore): New
6281 function declarations.
6282 * target.c (supports_dumpcore, dumpcore): New
6283 functions.
6284 * target-delegates.c: Rebuild.
6285 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6286 and target_dumpcore ().
6287
6288 2020-08-13 Aaron Merey <amerey@redhat.com>
6289
6290 * debuginfod-support.c: Replace global variables with user_data.
6291
6292 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * maint.c (maintenance_selftest): Split args and pass array_view
6295 to run_tests.
6296
6297 2020-08-12 Luis Machado <luis.machado@linaro.org>
6298
6299 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6300 type's length.
6301 Use %s and pulongest to print the length.
6302
6303 2020-08-12 Pedro Alves <palves@redhat.com>
6304
6305 * NEWS: Move "Multi-target debugging support" item to the
6306 "Changes since GDB 9" section.
6307
6308 2020-08-12 Pedro Alves <palves@redhat.com>
6309
6310 PR gdb/26336
6311 * progspace.c (program_space::remove_objfile): Invalidate the
6312 frame cache.
6313
6314 2020-08-11 Tom de Vries <tdevries@suse.de>
6315
6316 * MAINTAINERS: Mark ms1 as deleted.
6317
6318 2020-08-10 Luis Machado <luis.machado@linaro.org>
6319
6320 PR gdb/26310
6321
6322 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6323 act accordingly.
6324 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6325 movz/str/stur/stp skipping behavior.
6326
6327 2020-08-10 Luis Machado <luis.machado@linaro.org>
6328
6329 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6330 struct user_sve_header instead of struct sve_context.
6331
6332 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * read.h (dwarf2_fetch_die_loc_sect_off,
6335 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6336 `void *` parameter with function_view.
6337 * read.c (dwarf2_fetch_die_loc_sect_off,
6338 dwarf2_fetch_die_loc_cu_off): Likewise.
6339 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6340 (per_cu_dwarf_call): Adjust.
6341 (get_frame_address_in_block_wrapper): Remove.
6342 (indirect_synthetic_pointer): Adjust.
6343 (get_ax_pc): Remove.
6344 (dwarf2_compile_expr_to_ax): Adjust.
6345
6346 2020-08-08 Tom de Vries <tdevries@suse.de>
6347
6348 PR build/26344
6349 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6350 constructor.
6351 * regcache.c (get_thread_arch_aspace_regcache): Same.
6352
6353 2020-08-07 Tom Tromey <tromey@adacore.com>
6354
6355 * ravenscar-thread.c
6356 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6357 New method.
6358 (ravenscar_thread_target::wait): Check
6359 runtime_initialized.
6360 (ravenscar_thread_target::prepare_to_store)
6361 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6362 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6363 (ravenscar_thread_target::stopped_by_watchpoint)
6364 (ravenscar_thread_target::stopped_data_address)
6365 (ravenscar_thread_target::core_of_thread): Use
6366 scoped_restore_current_thread and
6367 set_base_thread_from_ravenscar_task.
6368
6369 2020-08-07 Tom Tromey <tromey@adacore.com>
6370
6371 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6372
6373 2020-08-07 Tom Tromey <tromey@adacore.com>
6374
6375 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6376 update_inferior_ptid before update_thread_list.
6377 (temporarily_change_regcache_ptid): New class.
6378 (ravenscar_thread_target::fetch_registers)
6379 (ravenscar_thread_target::store_registers)
6380 (ravenscar_thread_target::prepare_to_store): Use base thread when
6381 forwarding operation.
6382
6383 2020-08-07 Tom Tromey <tromey@adacore.com>
6384
6385 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6386 "is_pid" case.
6387
6388 2020-08-07 Tom Tromey <tromey@adacore.com>
6389
6390 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6391 New methods.
6392 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6393 first.
6394 (ravenscar_thread_target::add_thread): Rename from
6395 ravenscar_add_thread.
6396 (ravenscar_thread_target::update_thread_list): Use a lambda.
6397 (ravenscar_thread_target::xfer_partial): New method.
6398
6399 2020-08-07 Tom Tromey <tromey@adacore.com>
6400
6401 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6402 gdb::function_view.
6403 (iterate_over_live_ada_tasks): Change type of argument.
6404 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6405 of argument.
6406
6407 2020-08-07 Tom Tromey <tromey@adacore.com>
6408
6409 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6410 Remove.
6411 (ravenscar_thread_target::extra_thread_info): Remove.
6412 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6413 defer to target beneath for non-Ravenscar threads.
6414
6415 2020-08-07 Tom Tromey <tromey@adacore.com>
6416
6417 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6418 get_base_thread_from_ravenscar_task>: Now methods.
6419 <m_cpu_map>: New member.
6420 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6421 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6422 (ravenscar_thread_target::task_is_currently_active): Update.
6423 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6424 Now a method.
6425 (ravenscar_thread_target::add_active_thread): Put initial thread
6426 into the m_cpu_map.
6427
6428 2020-08-07 Tom Tromey <tromey@adacore.com>
6429
6430 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6431 event_ptid.
6432
6433 2020-08-07 Tom Tromey <tromey@adacore.com>
6434
6435 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6436 runtime_initialized.
6437
6438 2020-08-07 Tom Tromey <tromey@adacore.com>
6439
6440 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6441 add_active_thread.
6442 (ravenscar_thread_target::add_active_thread): Now public.
6443 (ravenscar_inferior_created): Call add_active_thread after pushing
6444 the target.
6445
6446 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6447
6448 * regcache.c (ptid_regcache_map): New type.
6449 (target_ptid_regcache_map): New type.
6450 (regcaches): Change type to target_ptid_regcache_map.
6451 (get_thread_arch_aspace_regcache): Update to regcaches' new
6452 type.
6453 (regcache_thread_ptid_changed): Likewise.
6454 (registers_changed_ptid): Likewise.
6455 (regcaches_size): Likewise.
6456 (regcaches_test): Update.
6457 (regcache_thread_ptid_changed): Update.
6458 * regcache.h (regcache_up): New type.
6459 * gdbsupport/ptid.h (hash_ptid): New struct.
6460
6461 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * observable.h (thread_ptid_changed): Add parameter
6464 `process_stratum_target *`.
6465 * infrun.c (infrun_thread_ptid_changed): Add parameter
6466 `process_stratum_target *` and use it.
6467 (selftests): New namespace.
6468 (infrun_thread_ptid_changed): New function.
6469 (_initialize_infrun): Register selftest.
6470 * regcache.c (regcache_thread_ptid_changed): Add parameter
6471 `process_stratum_target *` and use it.
6472 (regcache_thread_ptid_changed): New function.
6473 (_initialize_regcache): Register selftest.
6474 * thread.c (thread_change_ptid): Pass target to
6475 thread_ptid_changed observable.
6476
6477 2020-08-06 Caroline Tice <cmtice@google.com>
6478
6479 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6480 (struct dwp_sections): Update field comments. Add loclists and
6481 rnglists fields.
6482 (struct virtual_v2_dwo_sections): Rename struct to
6483 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6484 size & offset fields for loclists and rnglists.
6485 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6486 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6487 skipping dummy type units.
6488 (create_dwp_hash_table): Update the large comment above the function to
6489 discuss Version 5 DWP files as well, with references. Update all the
6490 version checks in the function to check for version 5 as well. Add new
6491 section at the end to create dwp hash table for version 5.
6492 (create_dwp_v2_section): Rename function to
6493 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6494 Add V5 to error message text.
6495 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6496 into calls to create_dwp_v2_or_v5_section.
6497 (create_dwo_unit_in_dwp_v5): New function.
6498 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6499 check for version2; add else clause to handle version 5.
6500 (open_and_init_dwo_file): Add code to check dwarf version & only call
6501 create_debug_types_hash_table (with sections.types) if version is not 5;
6502 else call create_debug_type_hash_table, with sections.info.
6503 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6504 version 5.
6505 (dwarf2_locate_v5_dwp_sections): New function.
6506 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6507 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6508
6509 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6510
6511 * regcache.h (class regcache): Remove friend
6512 registers_changed_ptid.
6513 <regcache_thread_ptid_changed>: Remove.
6514 <regcaches>: Remove.
6515 * regcache.c (regcache::regcaches): Rename to...
6516 (regcaches): ... this. Make static.
6517 (get_thread_arch_aspace_regcache): Update.
6518 (regcache::regcache_thread_ptid_changed): Rename to...
6519 (regcache_thread_ptid_changed): ... this. Update.
6520 (class regcache_access): Remove.
6521 (regcaches_test): Update.
6522 (_initialize_regcache): Update.
6523 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6524 <forward_list>.
6525
6526 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6527
6528 * regcache.h (class regcache) <current_regcache>: Rename to...
6529 <regcaches>: ... this. Move doc here.
6530 * regcache.c (regcache::current_regcache) Rename to...
6531 (regcache::regcaches): ... this. Move doc to header.
6532 (get_thread_arch_aspace_regcache): Update.
6533 (regcache::regcache_thread_ptid_changed): Update.
6534 (registers_changed_ptid): Update.
6535 (class regcache_access) <current_regcache_size>: Rename to...
6536 <regcaches_size>: ... this.
6537 (current_regcache_test): Rename to...
6538 (regcaches_test): ... this.
6539 (_initialize_regcache): Update.
6540
6541 2020-08-06 Victor Collod <vcollod@nvidia.com>
6542
6543 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6544
6545 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6546
6547 * corelow.c (core_target::build_file_mappings): Don't output
6548 null pathname in warning.
6549
6550 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6551
6552 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6553 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6554 gdb.dwarf2/dw2-single-line-discriminators.exp,
6555 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6556
6557 2020-08-05 Tom Tromey <tromey@adacore.com>
6558
6559 PR rust/26197:
6560 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6561 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6562 Fix off-by-one and type size errors in ordinary case.
6563
6564 2020-08-05 Tom de Vries <tdevries@suse.de>
6565
6566 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6567 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6568
6569 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6570
6571 * frame.h (frame_id_p): Return bool.
6572 (frame_id_artificial_p): Return bool.
6573 (frame_id_eq): Return bool.
6574 (has_stack_frames): Return bool.
6575 (get_selected_frame): Fix typo in comment.
6576 (get_frame_pc_if_available): Return bool.
6577 (get_frame_address_in_block_if_available): Return bool.
6578 (get_frame_func_if_available): Return bool.
6579 (read_frame_register_unsigned): Return bool.
6580 (get_frame_register_bytes): Return bool.
6581 (safe_frame_unwind_memory): Return bool.
6582 (deprecated_frame_register_read): Return bool.
6583 (frame_unwinder_is): Return bool.
6584 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6585 bool.
6586 <this_id::p>: Likewise.
6587 <prev_p>: Likewise.
6588 (frame_stash_add): Return bool.
6589 (get_frame_id): Use bool.
6590 (frame_id_build_special) Use bool.
6591 (frame_id_build_unavailable_stack): Use bool.
6592 (frame_id_build): Use bool.
6593 (frame_id_p): Return bool, use true/false instead of 1/0.
6594 (frame_id_artificial_p): Likewise.
6595 (frame_id_eq): Likewise.
6596 (frame_id_inner): Likewise.
6597 (get_frame_func_if_available): Likewise.
6598 (read_frame_register_unsigned): Likewise.
6599 (deprecated_frame_register_read): Likewise.
6600 (get_frame_register_bytes): Likewise.
6601 (has_stack_frames): Likewise.
6602 (inside_main_func): Likewise.
6603 (inside_entry_func): Likewise.
6604 (get_frame_pc_if_available): Likewise.
6605 (get_frame_address_in_block_if_available): Likewise.
6606 (frame_unwinder_is): Likewise.
6607 (safe_frame_unwind_memory): Likewise.
6608 (frame_unwind_arch): Likewise.
6609
6610 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6611
6612 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6613 type to cached_copy_status.
6614 (fprintf_frame): Adjust.
6615 (get_frame_func_if_available): Adjust.
6616 (frame_cleanup_after_sniffer): Adjust.
6617
6618 2020-08-04 Mark Wielaard <mark@klomp.org>
6619
6620 * MAINTAINERS (Write After Approval): Update email address.
6621
6622 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6623
6624 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6625 dynamic_prop::const_val.
6626
6627 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6628
6629 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6630 dynamic_prop::kind.
6631
6632 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6633
6634 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6635
6636 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6637
6638 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6639
6640 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6641 Jose E. Marchesi <jose.marchesi@oracle.com>
6642
6643 * configure.tgt: Add entry for bpf-*-*.
6644 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6645 (ALLDEPFILES): Add bpf-tdep.c.
6646 * bpf-tdep.c: New file.
6647 * MAINTAINERS: Add bpf target and maintainer.
6648 * NEWS: Mention the support for the new target.
6649
6650 2020-08-04 Tom de Vries <tdevries@suse.de>
6651
6652 PR symtab/23270
6653 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6654 Error.
6655
6656 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6657
6658 * syscalls/freebsd.xml: Regenerate.
6659
6660 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6661
6662 * syscalls/update-freebsd.sh: Fix usage and year range.
6663
6664 2020-08-03 Tom de Vries <tdevries@suse.de>
6665
6666 PR symtab/26333
6667 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6668 DW_LNE_lo_user/DW_LNE_hi_user range.
6669
6670 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 PR ada/26318
6673 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6674 kind.
6675
6676 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6677
6678 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6679
6680 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6681
6682 * breakpoint.c (set_breakpoint_condition): Update the condition
6683 expressions after checking that the input condition string parses
6684 successfully and does not contain junk at the end.
6685
6686 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6687
6688 * breakpoint.c (set_breakpoint_condition): Update the
6689 condition string after parsing the new condition successfully.
6690
6691 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6692
6693 * proc-api.c (_STRUCTURED_PROC): Don't define.
6694 * proc-events.c: Likewise.
6695 * proc-flags.c: Likewise.
6696 * proc-why.c: Likewise.
6697 * procfs.c: Likewise.
6698
6699 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6700 * configure, config.in: Regenerate.
6701
6702 2020-07-30 Tom de Vries <tdevries@suse.de>
6703
6704 PR build/26320
6705 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6706 m_red/m_green/m_blue in a union.
6707
6708 2020-07-29 Tom de Vries <tdevries@suse.de>
6709
6710 PR tdep/26280
6711 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6712
6713 2020-07-28 Tom Tromey <tromey@adacore.com>
6714
6715 PR symtab/26270:
6716 * symtab.h (find_pc_partial_function_sym): Declare.
6717 * cli/cli-cmds.c (disassemble_command): Use
6718 find_pc_partial_function_sym. Check asm_demangle.
6719 * blockframe.c (cache_pc_function_sym): New global.
6720 (cache_pc_function_name): Remove.
6721 (clear_pc_function_cache): Update.
6722 (find_pc_partial_function_sym): New function, from
6723 find_pc_partial_function.
6724 (find_pc_partial_function): Rewrite using
6725 find_pc_partial_function_sym.
6726
6727 2020-07-28 Tom Tromey <tromey@adacore.com>
6728
6729 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6730 help. Add usage.
6731
6732 2020-07-28 Tom Tromey <tromey@adacore.com>
6733
6734 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6735 <DW_OP_GNU_variable_value>: Cast to address type.
6736
6737 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6738
6739 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6740 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6741 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6742 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6743 (nbsd_get_siginfo_type): New.
6744 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6745 (_initialize_nbsd_tdep): New.
6746
6747 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6748
6749 PR binutils/26301
6750 * configure: Regenerated.
6751
6752 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6753
6754 PR binutils/26301
6755 * configure: Regenerated.
6756
6757 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6758
6759 * python/py-frame.c: Remove 'user-regs.h' include.
6760 (frapy_read_register): Rewrite to make use of
6761 gdbpy_parse_register_id.
6762 * python/py-registers.c (gdbpy_parse_register_id): New function,
6763 moved here from python/py-unwind.c. Updated the return type, and
6764 also accepts register descriptor objects.
6765 * python/py-unwind.c: Remove 'user-regs.h' include.
6766 (pyuw_parse_register_id): Moved to python/py-registers.c.
6767 (unwind_infopy_add_saved_register): Update to use
6768 gdbpy_parse_register_id.
6769 (pending_framepy_read_register): Likewise.
6770 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6771
6772 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * python/py-registers.c: Add 'user-regs.h' include.
6775 (register_descriptor_iter_find): New function.
6776 (register_descriptor_iterator_object_methods): New static global
6777 methods array.
6778 (register_descriptor_iterator_object_type): Add pointer to methods
6779 array.
6780
6781 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6782
6783 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6784 for all architectures on FreeBSD 11.3 and later.
6785
6786 2020-07-27 Tom Tromey <tromey@adacore.com>
6787
6788 * gcore.h (load_corefile): Don't declare.
6789
6790 2020-07-27 Tom de Vries <tdevries@suse.de>
6791
6792 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6793 * config.in: Regenerate.
6794 * configure: Regenerate.
6795
6796 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6797
6798 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6799 ws2tcpip.h. When checking whether socklen_t type is defined, use
6800 ws2tcpip.h if it is available and sys/socket.h isn't.
6801 * configure: Regenerate.
6802 * config.in: Regenerate.
6803
6804 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 PR fortran/23051
6807 PR fortran/26139
6808 * valops.c (value_ind): Pass address to
6809 readjust_indirect_value_type.
6810 * value.c (readjust_indirect_value_type): Make parameter
6811 non-const, and add extra address parameter. Resolve original type
6812 before using it.
6813 * value.h (readjust_indirect_value_type): Update function
6814 signature and comment.
6815
6816 2020-07-25 Tom de Vries <tdevries@suse.de>
6817
6818 PR symtab/26243
6819 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6820 entries.
6821
6822 2020-07-24 Aaron Merey <amerey@redhat.com>
6823
6824 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6825 * configure: Rebuild.
6826
6827 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6828
6829 PR corefiles/26294
6830 * corelow.c (_initialize_corelow): Add period to help text
6831 for "maintenance print core-file-backed-mappings".
6832
6833 2020-07-23 Pedro Alves <pedro@palves.net>
6834
6835 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6836 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6837 meanwhile.
6838 * frame.c (frame_cache_generation, get_frame_cache_generation):
6839 New.
6840 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6841 (get_prev_frame_if_no_cycle): On exception, don't touch
6842 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6843 * frame.h (get_frame_cache_generation): Declare.
6844
6845 2020-07-23 Tom de Vries <tdevries@suse.de>
6846
6847 PR tui/26282
6848 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6849 New default constructor.
6850
6851 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6852
6853 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6854 exclude non-statement entries.
6855
6856 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6857
6858 * NEWS (New commands): Mention new command
6859 "maintenance print core-file-backed-mappings".
6860
6861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6862
6863 * corelow.c (gdbcmd.h): Include.
6864 (core_target::info_proc_mappings): New method.
6865 (get_current_core_target): New function.
6866 (maintenance_print_core_file_backed_mappings): New function.
6867 (_initialize_corelow): Add core-file-backed-mappings to
6868 "maint print" commands.
6869
6870 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6871
6872 * linux-tdep.c (dump_note_entry_p): New function.
6873 (linux_dump_mapping_p_ftype): New typedef.
6874 (linux_find_memory_regions_full): Add new parameter,
6875 should_dump_mapping_p.
6876 (linux_find_memory_regions): Adjust call to
6877 linux_find_memory_regions_full.
6878 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6879 call to linux_find_memory_regions_full.
6880
6881 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6882
6883 * corelow.c (solist.h, unordered_map): Include.
6884 (class core_target): Add field m_core_file_mappings and
6885 method build_file_mappings.
6886 (core_target::core_target): Call build_file_mappings.
6887 (core_target::~core_target): Free memory associated with
6888 m_core_file_mappings.
6889 (core_target::build_file_mappings): New method.
6890 (core_target::xfer_partial): Use m_core_file_mappings
6891 for memory transfers.
6892 * linux-tdep.c (linux_read_core_file_mappings): New
6893 function.
6894 (linux_core_info_proc_mappings): Rewrite to use
6895 linux_read_core_file_mappings.
6896 (linux_init_abi): Register linux_read_core_file_mappings.
6897
6898 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6899
6900 * arch-utils.c (default_read_core_file_mappings): New function.
6901 * arch-utils.c (default_read_core_file_mappings): Declare.
6902 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6903 * gdbarch.h, gdbarch.c: Regenerate.
6904
6905 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6906
6907 PR corefiles/25631
6908 * corelow.c (core_target:xfer_partial): Revise
6909 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6910 case after first checking the stratum beneath the core
6911 target.
6912 (has_all_memory): Return true.
6913 * target.c (raw_memory_xfer_partial): Revise comment
6914 regarding use of has_all_memory.
6915
6916 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6917
6918 * exec.h (section_table_xfer_memory): Revise declaration,
6919 replacing section name parameter with an optional callback
6920 predicate.
6921 * exec.c (section_table_xfer_memory): Likewise.
6922 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6923 of section_table_xfer_memory.
6924
6925 2020-07-22 Tom Tromey <tromey@adacore.com>
6926
6927 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6928 lookup_symbol_search_name.
6929
6930 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6933 redundant local variable.
6934 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6935 reference, not pointer, update code accordingly.
6936
6937 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6938 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6939
6940 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6941 * jit.c (jit_breakpoint_re_set_internal): Use the
6942 `skip_jit_symbol_lookup` field.
6943
6944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6945 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946
6947 * jit.c (jit_read_descriptor): Define the descriptor address once,
6948 use twice.
6949 (jit_breakpoint_deleted): Move the declaration of the loop variable
6950 `iter` into the loop header.
6951 (jit_breakpoint_re_set_internal): Move the declaration of the local
6952 variable `objf_data` to the first point of definition.
6953 (jit_event_handler): Move the declaration of local variables
6954 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6955 Rename `objf` to `jited`.
6956
6957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6958
6959 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6960 Remove.
6961 * jit.c (get_jiter_objfile_data): Update.
6962
6963 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6964 Simon Marchi <simon.marchi@polymtl.ca>
6965
6966 * jit.c (struct jit_program_space_data): Remove.
6967 (jit_program_space_key): Remove.
6968 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6969 stuff.
6970 (get_jit_program_space_data): Remove.
6971 (jit_breakpoint_deleted): Iterate on all of the program space's
6972 objfiles.
6973 (jit_inferior_init): Likewise.
6974 (jit_breakpoint_re_set_internal): Likewise. Also change return
6975 type to void.
6976 (jit_breakpoint_re_set): Pass current_program_space to
6977 jit_breakpoint_re_set_internal.
6978
6979 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * jit.h (struct jiter_objfile_data) <cached_code_address,
6982 jit_breakpoint>: Move to here from ...
6983 * jit.c (jit_program_space_data): ... here.
6984 (jiter_objfile_data::~jiter_objfile_data): Update.
6985 (jit_breakpoint_deleted): Update.
6986 (jit_breakpoint_re_set_internal): Update.
6987
6988 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6989
6990 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6991 checks.
6992 (jit_read_descriptor): Remove NULL check.
6993 (jit_event_handler): Add an assertion.
6994
6995 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6996
6997 * jit.h (struct jit_objfile_data): Split into...
6998 (struct jiter_objfile_data): ... this ...
6999 (struct jited_objfile_data): ... and this.
7000 * objfiles.h (struct objfile) <jit_data>: Remove.
7001 <jiter_data, jited_data>: New fields.
7002 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7003 (jiter_objfile_data::~jiter_objfile_data): ... this.
7004 (get_jit_objfile_data): Rename to ...
7005 (get_jiter_objfile_data): ... this.
7006 (add_objfile_entry): Update.
7007 (jit_read_descriptor): Use get_jiter_objfile_data.
7008 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7009 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7010 (jit_inferior_exit_hook): Use objfile's jited_data field.
7011
7012 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7013
7014 * jit.h: Forward-declare `struct minimal_symbol`.
7015 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7016 constructor, destructor, and an objfile* field.
7017 * jit.c (jit_objfile_data): Remove.
7018 (struct jit_objfile_data): Migrate from here to jit.h.
7019 (jit_objfile_data::~jit_objfile_data): New destructor
7020 implementation with code moved from free_objfile_data.
7021 (free_objfile_data): Delete.
7022 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7023 (jit_find_objf_with_entry_addr): Ditto.
7024 (jit_inferior_exit_hook): Ditto.
7025 (_initialize_jit): Remove the call to
7026 register_objfile_data_with_cleanup.
7027 * objfiles.h (struct objfile) <jit_data>: New field.
7028
7029 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7030
7031 * jit.h: Forward-declare `struct objfile`.
7032 (jit_event_handler): Add a second parameter, the JITer objfile.
7033 * jit.c (jit_read_descriptor): Change the signature to take the
7034 JITer objfile as an argument instead of the jit_program_space_data.
7035 (jit_inferior_init): Update the call to jit_read_descriptor.
7036 (jit_event_handler): Use the new JITer objfile argument when calling
7037 jit_read_descriptor.
7038 * breakpoint.c (handle_jit_event): Update the call to
7039 jit_event_handler to pass the JITer objfile.
7040
7041 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7042
7043 * gdbarch.c: Regenerate.
7044 * gdbarch.h: Regenerate.
7045 * gdbarch.sh (handle_segmentation_fault): Remove method.
7046 * infrun.c (handle_segmentation_fault): Remove.
7047 (print_signal_received_reason): Remove call to
7048 handle_segmentation_fault.
7049
7050 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7051
7052 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7053 Rename to sparc64_linux_report_signal_info and add siggnal
7054 argument.
7055 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7056 instead of sparc64_linux_handle_segmentation_fault.
7057
7058 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7059
7060 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7061 i386_linux_report_signal_info instead of
7062 i386_linux_handle_segmentation_fault.
7063 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7064 to i386_linux_report_signal_info and add siggnal argument.
7065 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7066 of i386_linux_handle_segmentation_fault.
7067 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7068 to i386_linux_report_signal_info and add siggnal argument.
7069
7070 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7071
7072 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7073 hook if present.
7074
7075 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7076
7077 * gdbarch.c: Regenerate.
7078 * gdbarch.h: Regenerate.
7079 * gdbarch.sh (report_signal_info): New method.
7080 * infrun.c (print_signal_received_reason): Invoke gdbarch
7081 report_signal_info hook if present.
7082
7083 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * python/py-registers.c : Add 'unordered_map' include.
7086 (gdbpy_new_reggroup): Renamed to...
7087 (gdbpy_get_reggroup): ...this. Update to only create register
7088 group descriptors when needed.
7089 (gdbpy_reggroup_iter_next): Update.
7090
7091 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7092
7093 * python/py-registers.c (gdbpy_register_object_data): New static
7094 global.
7095 (gdbpy_register_object_data_init): New function.
7096 (gdbpy_new_register_descriptor): Renamed to...
7097 (gdbpy_get_register_descriptor): ...this, and update to reuse
7098 existing register descriptors where possible.
7099 (gdbpy_register_descriptor_iter_next): Update.
7100 (gdbpy_initialize_registers): Register new gdbarch data.
7101
7102 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7103
7104 * linux-nat.c (stopped_pids): Make static.
7105
7106 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 PR ada/26235
7109 * gdbtypes.c (ada_discrete_type_low_bound,
7110 ada_discrete_type_high_bound): Handle undefined bounds.
7111
7112 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7113
7114 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7115 declaration.
7116 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7117 function.
7118
7119 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7120
7121 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7122 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7123 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7124 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7125 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7126 method.
7127
7128 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7129
7130 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7131 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7132 which are deprecated in Guile 3.0.
7133 * configure.ac (try_guile_versions): Add "guile-3.0".
7134 * configure (try_guile_versions): Regenerate.
7135 * NEWS: Update entry.
7136
7137 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7138 Doug Evans <dje@google.com>
7139
7140 PR gdb/21104
7141 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7142 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7143 USING_GUILE_BEFORE_2_2.
7144 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7145 Change type to 'scm_t_port_type *'.
7146 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7147 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7148 parameter and honor it. Update callers.
7149 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7150 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7151 functions.
7152 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7153 USING_GUILE_BEFORE_2_2.
7154 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7155 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7156 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7157 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7158 and 'SCM_PORT_TYPE'.
7159 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7160 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7161 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7162 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7163 [!USING_GUILE_BEFORE_2_2]: New functions.
7164 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7165 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7166 'gdbscm_memory_port_read'.
7167 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7168 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7169 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7170 function.
7171 (ioscm_init_memory_port): Remove.
7172 (ioscm_init_memory_port_stream): New function
7173 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7174 function.
7175 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7176 Return scm_from_uint (0).
7177 (gdbscm_set_memory_port_read_buffer_size_x)
7178 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7179 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7180 Return scm_from_uint (0).
7181 (gdbscm_set_memory_port_write_buffer_size_x)
7182 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7183 * configure.ac (try_guile_versions): Add "guile-2.2".
7184 * configure: Regenerate.
7185 * NEWS: Add entry.
7186
7187 2020-07-18 Tom Tromey <tom@tromey.com>
7188
7189 * linux-nat.c (linux_multi_process): Remove.
7190 (linux_nat_target::supports_multi_process): Return true.
7191
7192 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7195 (riscv_lookup_target_description): Return pointer out of
7196 unique_ptr.
7197 * target-descriptions.c (allocate_target_description): Add
7198 comment.
7199 (target_desc_deleter::operator()): Likewise.
7200 * target-descriptions.h (struct target_desc_deleter): Moved to
7201 gdbsupport/tdesc.h.
7202 (target_desc_up): Likewise.
7203
7204 2020-07-17 Tom Tromey <tromey@adacore.com>
7205
7206 * linux-nat.c (linux_nat_target::supports_non_stop)
7207 (linux_nat_target::always_non_stop_p): Use "true".
7208 (linux_nat_target::supports_disable_randomization): Use "true" and
7209 "false".
7210
7211 2020-07-16 Caroline Tice <cmtice@google.com>
7212
7213 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7214 (RNGLIST_HEADER_SIZE64): New constant definition.
7215 (struct dwop_section_names): Add rnglists_dwo.
7216 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7217 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7218 (struct dwo_sections): Add rnglists field.
7219 (read_attribut_reprocess): Add tag parameter.
7220 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7221 (cu_debug_rnglists_section): New function (decl & definition).
7222 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7223 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7224 die whose range is being checked; get rnglist section from
7225 cu_debug_rnglists_section, to get from either objfile or dwo file as
7226 appropriate. Add cases for DW_RLE_base_addressx,
7227 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7228 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7229 test inside if-condition and updating complaint message.
7230 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7231 dwarf2_rnglists_process.
7232 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7233 dwarf2_ranges_process.
7234 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7235 need_ranges_base and update comment appropriately. Also pass die tag
7236 to dwarf2_ranges_read.
7237 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7238 need_ranges_base and update comment appropriately. Also pass die tag
7239 to dwarf2_ranges_process.
7240 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7241 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7242 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7243 need_ranges_base and update comment appropriately. Also pass die tag
7244 to read_attribute_reprocess and dwarf2_ranges_read.
7245 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7246 and update function comment appropriately.
7247 (read_loclist_index): Call read_loclists_rnglists_header instead of
7248 read_loclist_header.
7249 (read_rnglist_index): New function.
7250 (read_attribute_reprocess): Add tag parameter. Add code for
7251 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7252 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7253
7254 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7257 being resolved.
7258
7259 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * arch-utils.c (show_architecture): Update formatting of messages.
7262
7263 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * gdbtypes.h (struct type) <bounds>: Handle array and string
7266 types.
7267 * ada-lang.c (assign_aggregate): Use type::bounds on
7268 array/string type.
7269 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7270 * c-varobj.c (c_number_of_children): Likewise.
7271 (c_describe_child): Likewise.
7272 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7273 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7274 (f_type_print_base): Likewise.
7275 * f-valprint.c (f77_array_offset_tbl): Likewise.
7276 (f77_get_upperbound): Likewise.
7277 (f77_print_array_1): Likewise.
7278 * guile/scm-type.c (gdbscm_type_range): Likewise.
7279 * m2-typeprint.c (m2_array): Likewise.
7280 (m2_is_long_set_of_type): Likewise.
7281 * m2-valprint.c (get_long_set_bounds): Likewise.
7282 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7283 * python/py-type.c (typy_range): Likewise.
7284 * rust-lang.c (rust_internal_print_type): Likewise.
7285 * type-stack.c (type_stack::follow_types): Likewise.
7286 * valarith.c (value_subscripted_rvalue): Likewise.
7287 * valops.c (value_cast): Likewise.
7288
7289 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7292 callers to use the equivalent accessor methods.
7293
7294 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7295
7296 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7297 (struct type) <bit_stride>: New method.
7298 (TYPE_BIT_STRIDE): Remove.
7299 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7300
7301 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7304 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7305 callers to use the equivalent accessor methods instead.
7306
7307 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7310 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7311 callers to use the equivalent accessor methods instead.
7312
7313 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7314
7315 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7316 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7317 to use dynamic_prop::kind.
7318
7319 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7322 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7323 to get the bound property's kind and check against
7324 PROP_UNDEFINED.
7325
7326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7327
7328 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7329 all callers to use type::range_bounds followed by
7330 dynamic_prop::{low,high}.
7331
7332 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7333
7334 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7335 const_val, set_const_val, baton, set_locexpr, set_loclist,
7336 set_addr_offset, variant_parts, set_variant_parts,
7337 original_type, set_original_type>: New methods.
7338 <kind>: Rename to...
7339 <m_kind>: ... this. Update all users to use the new methods
7340 instead.
7341 <data>: Rename to...
7342 <m_data>: ... this. Update all users to use the new methods
7343 instead.
7344
7345 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * gdbtypes.c (get_discrete_bounds): Return failure if
7348 the range type's bounds are not both defined and constant
7349 values.
7350 (get_array_bounds): Update comment. Remove undefined bound check.
7351
7352 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7353
7354 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7355 the type::bounds method directly.
7356
7357 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7360 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7361 are used to set the range type's bounds to use set_bounds.
7362
7363 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7364
7365 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7366
7367 2020-07-10 Pedro Alves <pedro@palves.net>
7368
7369 * gdbthread.h (inferior_ref): Define.
7370 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7371 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7372 * thread.c
7373 (scoped_restore_current_thread::restore):
7374 Adjust to gdb::ref_ptr.
7375 (scoped_restore_current_thread::~scoped_restore_current_thread):
7376 Remove manual decref handling.
7377 (scoped_restore_current_thread::scoped_restore_current_thread):
7378 Adjust to use
7379 inferior_ref::new_reference/thread_info_ref::new_reference.
7380 Incref the thread before calling get_frame_id instead of after.
7381 Let TARGET_CLOSE_ERROR propagate.
7382
7383 2020-07-10 Pedro Alves <pedro@palves.net>
7384
7385 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7386 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7387 NOT_AVAILABLE_ERROR.
7388 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7389 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7390
7391 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7392 Pedro Alves <pedro@palves.net>
7393
7394 PR gdb/26199
7395 * infrun.c (threads_are_resumed_pending_p): Delete.
7396 (do_target_wait): Remove threads_are_executing and
7397 threads_are_resumed_pending_p checks from the inferior_matches
7398 lambda. Update comments.
7399
7400 2020-07-10 Pedro Alves <pedro@palves.net>
7401
7402 PR gdb/26199
7403 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7404 executing threads.
7405
7406 2020-07-10 Pedro Alves <pedro@palves.net>
7407
7408 PR gdb/26199
7409 * infrun.c (handle_no_resumed): Handle multiple targets.
7410
7411 2020-07-10 Pedro Alves <pedro@palves.net>
7412
7413 PR gdb/26199
7414 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7415 target_is_async_p.
7416
7417 2020-07-10 Pedro Alves <pedro@palves.net>
7418
7419 PR gdb/26199
7420 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7421 threads, not all threads.
7422
7423 2020-07-10 Pedro Alves <pedro@palves.net>
7424
7425 PR gdb/26199
7426 * remote.c (remote_target::open_1): Pass remote target pointer as
7427 data to create_async_event_handler.
7428 (remote_async_inferior_event_handler): Mark async event handler
7429 before returning if the remote target still has either pending
7430 events or unacknowledged notifications.
7431
7432 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7433
7434 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7435 declaration.
7436 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7437 function.
7438
7439 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7440
7441 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7442 inferior_ptid.
7443
7444 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7445
7446 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7447 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7448 AT_FREEBSD_PS_STRINGS.
7449
7450 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7451
7452 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7453 of debugfile path on Windows.
7454
7455 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7456
7457 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7458 argument to 'data'.
7459
7460 2020-07-08 Tom Tromey <tromey@adacore.com>
7461
7462 * ada-lang.c (ada_exception_message_1): Use read_memory.
7463
7464 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 PR python/22748
7467 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7468 special handling for inline frames.
7469 * findvar.c (value_of_register_lazy): Skip inline frames when
7470 creating lazy register values.
7471 * frame.c (frame_id_computed_p): Delete definition.
7472 * frame.h (frame_id_computed_p): Delete declaration.
7473
7474 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7475
7476 * NEWS: Mention additions to Python API.
7477 * python/py-arch.c (archpy_register_groups): New function.
7478 (arch_object_methods): Add 'register_groups' method.
7479 * python/py-registers.c (reggroup_iterator_object): New struct.
7480 (reggroup_object): New struct.
7481 (gdbpy_new_reggroup): New function.
7482 (gdbpy_reggroup_to_string): New function.
7483 (gdbpy_reggroup_name): New function.
7484 (gdbpy_reggroup_iter): New function.
7485 (gdbpy_reggroup_iter_next): New function.
7486 (gdbpy_new_reggroup_iterator): New function
7487 (gdbpy_initialize_registers): Register new types.
7488 (reggroup_iterator_object_type): Define new Python type.
7489 (gdbpy_reggroup_getset): New static global.
7490 (reggroup_object_type): Define new Python type.
7491 * python/python-internal.h
7492
7493 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7496 * python/py-arch.c (archpy_registers): New function.
7497 (arch_object_methods): Add 'registers' method.
7498 * python/py-registers.c: New file.
7499 * python/python-internal.h
7500 (gdbpy_new_register_descriptor_iterator): Declare.
7501 (gdbpy_initialize_registers): Declare.
7502 * python/python.c (do_start_initialization): Call
7503 gdbpy_initialize_registers.
7504 * NEWS: Mention additions to the Python API.
7505
7506 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7507
7508 * NEWS: Mention new Python API method.
7509 * python/py-unwind.c (pending_framepy_architecture): New function.
7510 (pending_frame_object_methods): Add architecture method.
7511
7512 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7513
7514 * gdbarch.c: Regenerate.
7515 * gdbarch.h: Regenerate.
7516 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7517 (gdbarch_data): Use internal_error for the case where
7518 deprecated_set_gdbarch_data was originally needed.
7519 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7520 and use passed in obstack.
7521 (libunwind_frame_set_descr): Should no longer get back NULL from
7522 gdbarch_data.
7523 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7524 type.
7525 * user-regs.c (user_regs_init): Update parameters, and use passed
7526 in obstack.
7527 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7528 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7529
7530 2020-07-06 Tom de Vries <tdevries@suse.de>
7531
7532 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7533 End-Of-Sequence in lte_is_less_than.
7534 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7535 "gdb: Don't reorder line table entries too much when sorting".
7536
7537 2020-07-06 Tom de Vries <tdevries@suse.de>
7538
7539 PR tui/26205
7540 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7541
7542 2020-07-05 Tom de Vries <tdevries@suse.de>
7543
7544 PR build/26187
7545 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7546 std::uncaught_exceptions instead of deprecated
7547 std::uncaught_exception.
7548
7549 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7550
7551 * macroexp.h (macro_stringify): Return
7552 gdb::unique_xmalloc_ptr<char>.
7553 * macroexp.c (macro_stringify): Likewise.
7554 * macrotab.c (fixup_definition): Update.
7555
7556 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7557
7558 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7559 (lex_one_token): Update.
7560 * macroexp.c (struct macro_buffer) <release>: Return
7561 gdb::unique_xmalloc_ptr<char>.
7562 (macro_stringify): Update.
7563 (macro_expand): Update.
7564 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7565 * macroexp.h (macro_expand_next): Likewise.
7566
7567 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * macroexp.h (macro_lookup_ftype): Remove.
7570 (macro_expand, macro_expand_once, macro_expand_next): Remove
7571 lookup function parameters, add scope parameter.
7572 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7573 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7574 * macroscope.h (standard_macro_lookup): Change parameter type
7575 to macro_scope.
7576 * macroscope.c (standard_macro_lookup): Likewise.
7577 * c-exp.y (lex_one_token): Update.
7578 * macrocmd.c (macro_expand_command): Likewise.
7579 (macro_expand_once_command): Likewise.
7580
7581 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7582
7583 * inf-loop.c (inferior_event_handler): Remove client_data param.
7584 * inf-loop.h (inferior_event_handler): Likewise.
7585 * infcmd.c (step_1): Adjust.
7586 * infrun.c (proceed): Adjust.
7587 (fetch_inferior_event): Remove client_data param.
7588 (infrun_async_inferior_event_handler): Adjust.
7589 * infrun.h (fetch_inferior_event): Remove `void *` param.
7590 * linux-nat.c (handle_target_event): Adjust.
7591 * record-btrace.c (record_btrace_handle_async_inferior_event):
7592 Adjust.
7593 * record-full.c (record_full_async_inferior_event_handler):
7594 Adjust.
7595 * remote.c (remote_async_inferior_event_handler): Adjust.
7596
7597 2020-07-01 Tom Tromey <tom@tromey.com>
7598
7599 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7600 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7601
7602 2020-07-01 Tom Tromey <tom@tromey.com>
7603
7604 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7605 tui_gen_win_info.
7606 (tui_win_info::make_window): Merge with
7607 tui_gen_win_info::make_window.
7608 (tui_win_info::make_visible): Move from tui_gen_win_info.
7609 * tui/tui-win.c (tui_win_info::max_width): Move from
7610 tui_gen_win_info.
7611 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7612 type.
7613 <window_factory>: Likewise.
7614 * tui/tui-layout.c (tui_win_info::resize): Move from
7615 tui_gen_win_info.
7616 (make_standard_window): Change return type.
7617 (get_locator_window, tui_get_window_by_name): Likewise.
7618 (tui_layout_window::apply): Remove a cast.
7619 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7620 (struct tui_win_info): Merge with tui_gen_win_info.
7621 (struct tui_gen_win_info): Remove.
7622
7623 2020-07-01 Tom Tromey <tom@tromey.com>
7624
7625 * tui/tui-stack.h (struct tui_locator_window): Derive from
7626 tui_win_info.
7627 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7628 <can_box>: New method.
7629
7630 2020-07-01 Tom Tromey <tom@tromey.com>
7631
7632 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7633
7634 2020-07-01 Tom Tromey <tom@tromey.com>
7635
7636 * tui/tui-regs.c (tui_data_window::display_registers_from)
7637 (tui_data_window::display_registers_from)
7638 (tui_data_window::first_data_item_displayed)
7639 (tui_data_window::delete_data_content_windows): Update.
7640 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7641 Remove.
7642 (tui_data_window::check_register_values): Update.
7643 (tui_data_item_window::rerender): Add parameters. Update.
7644 (tui_data_item_window::refresh_window): Remove.
7645 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7646 virtual.
7647 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7648 tui_gen_win_info.
7649 <refresh_window, max_height, min_height>: Remove.
7650 <rerender>: Add parameters.
7651 <x, y, visible>: New members.
7652 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7653 <m_item_width>: New member.
7654
7655 2020-07-01 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-regs.c (tui_data_window::show_register_group)
7658 (tui_data_window::check_register_values): Update.
7659 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7660 from item_no.
7661
7662 2020-07-01 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7665 useless "if".
7666
7667 2020-07-01 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7670 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7671
7672 2020-07-01 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7675 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7676 (struct tui_line_or_address): Move from tui-data.h.
7677 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7678 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7679 (tui_cmd_window, tui_source_window_base, tui_source_window)
7680 (tui_disasm_window): Don't declare.
7681 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7682 to tui-winsource.h.
7683 (SINGLE_KEY): Move to tui-stack.c.
7684
7685 2020-07-01 Tom Tromey <tom@tromey.com>
7686
7687 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7688 std::string.
7689 * tui/tui-regs.c (class tab_expansion_file): New.
7690 (tab_expansion_file::write): New method.
7691 (tui_register_format): Change return type. Use
7692 tab_expansion_file.
7693 (tui_get_register, tui_data_window::display_registers_from)
7694 (tui_data_item_window::rerender): Update.
7695 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7696 * tui/tui-io.c (tui_expand_tabs): Remove.
7697
7698 2020-07-01 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7701
7702 2020-07-01 Fangrui Song <maskray@google.com>
7703
7704 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7705
7706 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7707
7708 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7709 forms for DW_AT_associated and DW_AT_allocated attributes,
7710 which is already checked in function attr_to_dynamic_prop.
7711
7712 2020-06-30 Tom Tromey <tromey@adacore.com>
7713
7714 * dwarf2/read.c (quirk_rust_enum): Correctly call
7715 alloc_rust_variant for default-less enum.
7716
7717 2020-06-30 Tom Tromey <tromey@adacore.com>
7718
7719 PR build/26183:
7720 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7721 gdb::to_string.
7722
7723 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7724
7725 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7726 * gdbarch.h: Re-generate.
7727
7728 2020-06-28 Tom Tromey <tom@tromey.com>
7729
7730 * command.h (cmd_types): Remove.
7731 (cmd_type): Don't declare.
7732 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7733 typedef.
7734 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7735 * cli/cli-decode.c (cmd_type): Remove.
7736
7737 2020-06-27 Pedro Alves <palves@redhat.com>
7738
7739 * fork-child.c (prefork_hook): Adjust.
7740 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7741 Delete.
7742 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7743 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7744 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7745 Remove declarations.
7746 (struct inferior) <set_tty, tty>: New methods.
7747 (struct inferior) <terminal>: Rename to ...
7748 (struct inferior) <m_terminal>: ... this and make private.
7749 * main.c (captured_main_1): Adjust.
7750 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7751 (mi_cmd_inferior_tty_show): Adjust.
7752 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7753 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7754
7755 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7756
7757 * configure.ac: Add --enable-libctf: handle --disable-static
7758 properly.
7759 * acinclude.m4: sinclude ../config/enable.m4.
7760 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7761 (LIBCTF): Substitute in.
7762 (CTF_DEPS): New, likewise.
7763 (CLIBS): libctf needs symbols from libbfd: move earlier.
7764 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7765 flags.
7766 * ctfread.c: Surround in ENABLE_LIBCTF.
7767 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7768 * configure: Regenerate.
7769 * config.in: Likewise.
7770
7771 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7774
7775 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7776
7777 * inferior.h (struct inferior) <terminal>: Change type to
7778 gdb::unique_xmalloc_ptr<char>.
7779 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7780 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7781 field, adjust to unique pointer.
7782 (get_inferior_io_terminal): Adjust to unique pointer.
7783
7784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7787 registers, not just the known core set of registers.
7788
7789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7792 fflags, frm, and fcsr registers.
7793 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7794 restore groups.
7795 (riscv_tdesc_unknown_reg): New function.
7796 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7797 tdesc_use_registers.
7798 * riscv-tdep.h (struct gdbarch_tdep): Add
7799 unknown_csrs_first_regnum, unknown_csrs_count,
7800 duplicate_fflags_regnum, duplicate_frm_regnum, and
7801 duplicate_fcsr_regnum fields.
7802
7803 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7804
7805 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7806 callback, use the callback (when not null) to help number unknown
7807 registers.
7808 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7809 (tdesc_use_registers): Add extra parameter to declaration.
7810
7811 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7814 in the file.
7815 (class riscv_pending_register_alias): Likewise.
7816 (riscv_register_feature::register_info): Change 'required_p' field
7817 to 'required', and change its type. Add 'check' member function.
7818 (riscv_register_feature::register_info::check): Define new member
7819 function.
7820 (riscv_xreg_feature): Change initialisation of 'required' field.
7821 (riscv_freg_feature): Likewise.
7822 (riscv_virtual_feature): Likewise.
7823 (riscv_csr_feature): Likewise.
7824 (riscv_check_tdesc_feature): Take extra parameter, the csr
7825 tdesc_feature, rewrite the function to use the new
7826 riscv_register_feature::register_info::check function.
7827 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7828
7829 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * features/Makefile: Remove all references to the deleted files
7832 below.
7833 * features/riscv/32bit-csr.c: Deleted.
7834 * features/riscv/32bit-csr.xml: Deleted.
7835 * features/riscv/64bit-csr.c: Deleted.
7836 * features/riscv/64bit-csr.xml: Deleted.
7837 * features/riscv/rebuild-csr-xml.sh: Deleted.
7838
7839 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7842 whitespace error for declaration of names member variable.
7843 (struct riscv_register_feature): Add new prefer_first_name member
7844 variable, and fix whitespace error in declaration of registers.
7845 (riscv_xreg_feature): Initialize prefer_first_name field.
7846 (riscv_freg_feature): Likewise.
7847 (riscv_virtual_feature): Likewise.
7848 (riscv_csr_feature): Likewise.
7849 (riscv_register_name): Expand on comments. Remove register name
7850 modifications for CSR and virtual registers.
7851
7852 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7855 errors.
7856
7857 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7860 riscv-opc.h.
7861 (class riscv_pending_register_alias): New class.
7862 (riscv_check_tdesc_feature): Take vector of pending aliases and
7863 populate it as appropriate.
7864 (riscv_setup_register_aliases): Delete.
7865 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7866 to riscv_check_tdesc_feature in all cases. Use the vector to
7867 create the register aliases.
7868
7869 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7870
7871 * sol2-tdep.c (sol2_static_transform_name): Remove.
7872 (sol2_init_abi): Don't register it.
7873 * gdbarch.sh (static_transform_name): Remove.
7874 * gdbarch.c, gdbarch.h: Regenerate.
7875
7876 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7877 gdbarch_static_transform_name.
7878 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7879 * stabsread.c (define_symbol) <'X'>: Remove.
7880 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7881 handling.
7882 <'V'>: Likewise.
7883 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7884 <'S'>: Remove call to gdbarch_static_transform_name.
7885
7886 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7887
7888 * procfs.c (procfs_pre_trace): New function.
7889 (procfs_target::create_inferior): Pass it to fork_inferior.
7890
7891 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7892
7893 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7894 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7895 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7896 sol2-tdep.o, sparc-sol2-tdep.o.
7897 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7898 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7899 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7900 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7901
7902 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7903
7904 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7905 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7906 Call sol2_init_abi.
7907 Remove calls to set_gdbarch_skip_solib_resolver,
7908 set_gdbarch_core_pid_to_str.
7909 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7910 (i386_sol2_static_transform_name): Remove.
7911 (i386_sol2_init_abi): Call sol2_init_abi.
7912 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7913 set_gdbarch_static_transform_name,
7914 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7915 Use sol2_sigtramp_p.
7916 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7917 (sol2_sigtramp_p): New function.
7918 (sol2_static_transform_name): New function.
7919 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7920 (sol2_init_abi): New function.
7921 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7922 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7923 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7924 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7925 (sparc_sol2_static_transform_name): Remove.
7926 (sparc32_sol2_init_abi): Call sol2_init_abi.
7927 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7928 set_gdbarch_static_transform_name,
7929 set_gdbarch_skip_solib_resolver,
7930 set_gdbarch_core_pid_to_str.
7931 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7932 (sparc_sol2_static_transform_name): Remove
7933 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7934 call sol2_sigtramp_p.
7935 (sparc64_sol2_init_abi): Call sol2_init_abi.
7936 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7937 set_gdbarch_static_transform_name,
7938 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7939
7940 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7941
7942 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7943 * exec.c (validate_exec_file): If from_tty, set both
7944 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7945 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7946 and from_tty, unconditionally ask a confirmation.
7947
7948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * target-descriptions.c (tdesc_architecture_name): Protect against
7951 NULL pointer dereference.
7952 (maint_print_xml_tdesc_cmd): New function.
7953 (_initialize_target_descriptions): Register new 'maint print
7954 xml-tdesc' command and give it the filename completer.
7955 * NEWS: Mention new 'maint print xml-tdesc' command.
7956
7957 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * target-descriptions.c (class tdesc_compatible_info): New class.
7960 (struct target_desc): Change type of compatible vector.
7961 (tdesc_compatible_p): Update for change in type of
7962 target_desc::compatible.
7963 (tdesc_compatible_info_list): New function.
7964 (tdesc_compatible_info_arch_name): New function.
7965 (tdesc_add_compatible): Update for change in type of
7966 target_desc::compatible.
7967 (print_c_tdesc::visit_pre): Likewise.
7968
7969 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7972 whitespace to underscore.
7973 (maint_print_c_tdesc_cmd): Use fake filename for target
7974 descriptions that came from the target.
7975 (_initialize_target_descriptions): Add filename command completion
7976 for 'maint print c-tdesc'.
7977
7978 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7981 lines.
7982
7983 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7984
7985 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7986 lines.
7987 (dwarf2_find_location_expression): Likewise.
7988 (call_site_parameter_matches): Likewise.
7989 (dwarf2_compile_expr_to_ax): Likewise.
7990 (disassemble_dwarf_expression): Likewise.
7991 (loclist_describe_location): Likewise.
7992
7993 2020-06-23 Pedro Alves <palves@redhat.com>
7994
7995 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7996 progspace-and-thread.h. Include scoped-mock-context.h instead.
7997 (register_to_value_test): Use scoped_mock_context.
7998 * regcache.c: Include "scoped-mock-context.h".
7999 (cooked_read_test): Don't error out if a target is already pushed.
8000 Use scoped_mock_context. Adjust.
8001 * scoped-mock-context.h: New file.
8002
8003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8004
8005 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8006 initializer.
8007 (ada_language::is_string_type_p): New member function.
8008 * c-lang.c (c_language_data): Delete la_is_string_type_p
8009 initializer.
8010 (cplus_language_data): Likewise.
8011 (asm_language_data): Likewise.
8012 (minimal_language_data): Likewise.
8013 * d-lang.c (d_language_data): Likewise.
8014 * f-lang.c (f_is_string_type_p): Delete function, implementation
8015 moved to f_language::is_string_type_p.
8016 (f_language_data): Delete la_is_string_type_p initializer.
8017 (f_language::is_string_type_p): New member function,
8018 implementation from f_is_string_type_p.
8019 * go-lang.c (go_is_string_type_p): Delete function, implementation
8020 moved to go_language::is_string_type_p.
8021 (go_language_data): Delete la_is_string_type_p initializer.
8022 (go_language::is_string_type_p): New member function,
8023 implementation from go_is_string_type_p.
8024 * language.c (language_defn::is_string_type_p): Define new member
8025 function.
8026 (default_is_string_type_p): Make static, add comment copied from
8027 header file.
8028 (unknown_language_data): Delete la_is_string_type_p initializer.
8029 (unknown_language::is_string_type_p): New member function.
8030 (auto_language_data): Delete la_is_string_type_p initializer.
8031 (auto_language::is_string_type_p): New member function.
8032 * language.h (language_data): Delete la_is_string_type_p field.
8033 (language_defn::is_string_type_p): Declare new function.
8034 (default_is_string_type_p): Delete desclaration, move comment to
8035 definition.
8036 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8037 moved to m2_language::is_string_type_p.
8038 (m2_language_data): Delete la_is_string_type_p initializer.
8039 (m2_language::is_string_type_p): New member function,
8040 implementation from m2_is_string_type_p.
8041 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8042 initializer.
8043 * opencl-lang.c (opencl_language_data): Likewise.
8044 * p-lang.c (pascal_is_string_type_p): Delete function,
8045 implementation moved to pascal_language::is_string_type_p.
8046 (pascal_language_data): Delete la_is_string_type_p initializer.
8047 (pascal_language::is_string_type_p): New member function,
8048 implementation from pascal_is_string_type_p.
8049 * rust-lang.c (rust_is_string_type_p): Delete function,
8050 implementation moved to rust_language::is_string_type_p.
8051 (rust_language_data): Delete la_is_string_type_p initializer.
8052 (rust_language::is_string_type_p): New member function,
8053 implementation from rust_is_string_type_p.
8054 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8055 is_string_type_p.
8056
8057 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8058
8059 * ada-lang.c (ada_language_data): Delete la_print_typedef
8060 initializer.
8061 (ada_language::print_typedef): New member function.
8062 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8063 (cplus_language_data): Likewise.
8064 (asm_language_data): Likewise.
8065 (minimal_language_data): Likewise.
8066 * d-lang.c (d_language_data): Likewise.
8067 * f-lang.c (f_language_data): Likewise.
8068 (f_language::print_typedef): New member function.
8069 * go-lang.c (go_language_data): Delete la_print_typedef
8070 initializer.
8071 * language.c (language_defn::print_typedef): Define member
8072 function.
8073 (unknown_language_data): Delete la_print_typedef initializer.
8074 (unknown_language::print_typedef): New member function.
8075 (auto_language_data): Delete la_print_typedef initializer.
8076 (auto_language::print_typedef): New member function.
8077 * language.h (language_data): Delete la_print_typedef field.
8078 (language_defn::print_typedef): Declare new member function.
8079 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8080 (default_print_typedef): Delete declaration.
8081 * m2-lang.c (m2_language_data): Delete la_print_typedef
8082 initializer.
8083 (m2_language::print_typedef): New member function.
8084 * objc-lang.c (objc_language_data): Delete la_print_typedef
8085 initializer.
8086 * opencl-lang.c (opencl_language_data): Likewise.
8087 * p-lang.c (pascal_language_data): Likewise.
8088 (pascal_language::print_typedef): New member function.
8089 * rust-lang.c (rust_print_typedef): Delete function,
8090 implementation moved to rust_language::print_typedef.
8091 (rust_language): Delete la_print_typedef initializer.
8092 (rust_language::print_typedef): New member function,
8093 implementation from rust_print_typedef.
8094 * typeprint.c (default_print_typedef): Delete.
8095
8096 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8097
8098 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8099 (ada_language::printstr): New member function.
8100 * c-lang.c (c_language_data): Delete la_printstr initializer.
8101 (cplus_language_data): Likewise.
8102 (asm_language_data): Likewise.
8103 (minimal_language_data): Likewise.
8104 * d-lang.c (d_language_data): Likewise.
8105 * f-lang.c (f_printstr): Rename to f_language::printstr.
8106 (f_language_data): Delete la_printstr initializer.
8107 (f_language::printstr): New member function, implementation from
8108 f_printstr.
8109 * go-lang.c (go_language_data): Delete la_printstr initializer.
8110 * language.c (language_defn::printstr): Define new member
8111 function.
8112 (unk_lang_printstr): Delete.
8113 (unknown_language_data): Delete la_printstr initializer.
8114 (unknown_language::printstr): New member function.
8115 (auto_language_data): Delete la_printstr initializer.
8116 (auto_language::printstr): New member function.
8117 * language.h (language_data): Delete la_printstr field.
8118 (language_defn::printstr): Declare new member function.
8119 (LA_PRINT_STRING): Update call to printstr.
8120 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8121 (m2_language_data): Delete la_printstr initializer.
8122 (m2_language::printstr): New member function, implementation from
8123 m2_printstr.
8124 * objc-lang.c (objc_language_data): Delete la_printstr
8125 initializer.
8126 * opencl-lang.c (opencl_language_data): Likewise.
8127 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8128 (pascal_language_data): Delete la_printstr initializer.
8129 (pascal_language::printstr): New member function, implementation
8130 from pascal_printstr.
8131 * p-lang.h (pascal_printstr): Delete declaration.
8132 * rust-lang.c (rust_printstr): Update header comment.
8133 (rust_language_data): Delete la_printstr initializer.
8134 (rust_language::printstr): New member function.
8135
8136 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8137
8138 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8139 (ada_language::printchar): New member function.
8140 * c-lang.c (c_language_data): Delete la_printchar initializer.
8141 (cplus_language_data): Likewise.
8142 (asm_language_data): Likewise.
8143 (minimal_language_data): Likewise.
8144 * d-lang.c (d_language_data): Likewise.
8145 * f-lang.c (f_printchar): Rename to f_language::printchar.
8146 (f_language_data): Delete la_printchar initializer.
8147 (f_language::printchar): New member function, implementation from
8148 f_printchar.
8149 * go-lang.c (go_language_data): Delete la_printchar initializer.
8150 * language.c (unk_lang_printchar): Delete.
8151 (language_defn::printchar): Define new member function.
8152 (unknown_language_data): Delete la_printchar initializer.
8153 (unknown_language::printchar): New member function.
8154 (auto_language_data): Delete la_printchar initializer.
8155 (auto_language::printchar): New member function.
8156 * language.h (language_data): Delete la_printchar field.
8157 (language_defn::printchar): Declare new member function.
8158 (LA_PRINT_CHAR): Update call to printchar.
8159 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8160 (m2_language::printchar): New member function.
8161 * objc-lang.c (objc_language_data): Delete la_printchar
8162 initializer.
8163 * opencl-lang.c (opencl_language_data): Likewise.
8164 * p-lang.c (pascal_language_data): Delete la_printchar
8165 initializer.
8166 (pascal_language::printchar): New member function.
8167 * rust-lang.c (rust_printchar): Rename to
8168 rust_language::printchar.
8169 (rust_language_data): Delete la_printchar initializer.
8170 (rust_language::printchar): New member function, implementation
8171 from rust_printchar.
8172
8173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8176 (ada_language_data): Delete la_emitchar initializer.
8177 (ada_language::emitchar): New member function, implementation from
8178 emit_char.
8179 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8180 (cplus_language_data): Likewise.
8181 (asm_language_data): Likewise.
8182 (minimal_language_data): Likewise.
8183 * d-lang.c (d_language_data): Likewise.
8184 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8185 (f_language_data): Delete la_emitchar initializer.
8186 (f_language::emitchar): New member function, implementation from
8187 f_emit_char.
8188 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8189 * language.c (unk_lang_emit_char): Delete.
8190 (language_defn::emitchar): New member function definition.
8191 (unknown_language_data): Delete la_emitchar initializer.
8192 (unknown_language::emitchar): New member function.
8193 (auto_language_data): Delete la_emitchar initializer.
8194 (auto_language::emitchar): New member function.
8195 * language.h (language_data): Delete la_emitchar field.
8196 (language_defn::emitchar): New member field declaration.
8197 (LA_EMIT_CHAR): Update call to emitchar.
8198 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8199 (m2_language_data): Delete la_emitchar initializer.
8200 (m2_language::emitchar): New member function, implementation from
8201 m2_emit_char.
8202 * objc-lang.c (objc_language_data): Delete la_emitchar
8203 initializer.
8204 * opencl-lang.c (opencl_language_data): Likewise.
8205 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8206 (pascal_language_data): Delete la_emitchar initializer.
8207 (pascal_language::emitchar): New member function, implementation
8208 from pascal_emit_char.
8209 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8210 (rust_language_data): Delete la_emitchar initializer.
8211 (rust_language::emitchar): New member function, implementation
8212 from rust_emitchar.
8213
8214 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8217 (ada_language_data): Delete la_post_parser initializer.
8218 (ada_language::post_parser): New member function.
8219 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8220 (cplus_language_data): Likewise.
8221 (asm_language_data): Likewise.
8222 (minimal_language_data): Likewise.
8223 * d-lang.c (d_language_data): Likewise.
8224 * f-lang.c (f_language_data): Likewise.
8225 * go-lang.c (go_language_data): Likewise.
8226 * language.c (unknown_language_data): Likewise.
8227 (auto_language_data): Likewise.
8228 * language.h (language_data): Delete la_post_parser field.
8229 (language_defn::post_parser): New member function.
8230 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8231 * objc-lang.c (objc_language_data): Likewise.
8232 * opencl-lang.c (opencl_language_data): Likewise.
8233 * p-lang.c (pascal_language_data): Likewise.
8234 * parse.c (parse_exp_in_context): Update call to post_parser.
8235 (null_post_parser): Delete definition.
8236 * parser-defs.h (null_post_parser): Delete declaration.
8237 * rust-lang.c (rust_language_data): Delete la_post_parser
8238 initializer.
8239
8240 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * ada-lang.c (parse): Rename to ada_language::parser.
8243 (ada_language_data): Delete la_parser initializer.
8244 (ada_language::parser): New member function, implementation from
8245 parse.
8246 * c-lang.c (c_language_data): Delete la_parser initializer.
8247 (cplus_language_data): Likewise.
8248 (asm_language_data): Likewise.
8249 (minimal_language_data): Likewise.
8250 * d-lang.c (d_language_data): Likewise.
8251 (d_language::parser): New member function.
8252 * f-lang.c (f_language_data): Delete la_parser initializer.
8253 (f_language::parser): New member function.
8254 * go-lang.c (go_language_data): Delete la_parser initializer.
8255 (go_language::parser): New member function.
8256 * language.c (unk_lang_parser): Delete.
8257 (language_defn::parser): Define new member function.
8258 (unknown_language_data): Delete la_parser initializer.
8259 (unknown_language::parser): New member function.
8260 (auto_language_data): Delete la_parser initializer.
8261 (auto_language::parser): New member function.
8262 * language.h (language_data): Delete la_parser field.
8263 (language_defn::parser): Declare new member function.
8264 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8265 (m2_language::parser): New member function.
8266 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8267 * opencl-lang.c (opencl_language_data): Likewise.
8268 * p-lang.c (pascal_language_data): Likewise.
8269 (pascal_language::parser): New member function.
8270 * parse.c (parse_exp_in_context): Update call to parser.
8271 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8272 (rust_language::parser): New member function.
8273
8274 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8275
8276 * top.c (print_gdb_configuration): Print --with-python-libdir
8277 configuration value.
8278
8279 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8280
8281 * NEWS: Mention change to the alias command.
8282
8283 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8284
8285 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8286 (alias_command_completer)
8287 (make_alias_options_def_group): New functions.
8288 (alias_opts, alias_option_defs): New struct and array.
8289 (alias_usage_error): Update usage.
8290 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8291 Use option framework.
8292 (_initialize_cli_cmds): Update alias command help.
8293 Update aliases command help.
8294 (show_user):
8295 Add NULL for new default_args lookup_cmd argument.
8296 (valid_command_p): Rename to validate_aliased_command.
8297 Add NULL for new default_args lookup_cmd argument. Verify that the
8298 aliased_command has no default args.
8299 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8300 (lookup_cmd_1, lookup_cmd): New argument default_args.
8301 (add_alias_cmd):
8302 Add NULL for new default_args lookup_cmd argument.
8303 (print_help_for_command): Show default args under the layout
8304 alias some_alias = some_aliased_cmd some_alias_default_arg.
8305 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8306 xfree default_args in destructor.
8307 * cli/cli-script.c (process_next_line, do_define_command):
8308 Add NULL for new default_args lookup_cmd argument.
8309 * command.h: Declare new default_args argument in lookup_cmd
8310 and lookup_cmd_1.
8311 * completer.c (complete_line_internal_1):
8312 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8313 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8314 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8315 Likewise.
8316 * infcmd.c (_initialize_infcmd): Likewise.
8317 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8318 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8319 * python/py-param.c (add_setshow_generic): Likewise.
8320 * remote.c (_initialize_remote): Likewise.
8321 * top.c (execute_command): Prepend default_args if command has some.
8322 (set_verbose):
8323 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8324 * tracepoint.c (validate_actionline, encode_actions_1):
8325 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8326
8327 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8328
8329 * jit.c (jit_read_descriptor): Use bool as the return type.
8330 (jit_breakpoint_re_set_internal): Use bool as the return type.
8331 Invert the return value logic; return true if the jit breakpoint
8332 has been successfully initialized.
8333 (jit_inferior_init): Update the call to
8334 jit_breakpoint_re_set_internal.
8335
8336 2020-06-22 Pedro Alves <palves@redhat.com>
8337
8338 PR gdb/25939
8339 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8340 Use the current inferior instead. Don't return
8341 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8342 wait again.
8343 * sol-thread.c (sol_thread_target::wait): Don't reference
8344 inferior_ptid.
8345 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8346 (sol_update_thread_list_callback): Use the current inferior's pid
8347 instead of inferior_ptid.
8348
8349 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8350
8351 * procfs.c: Cleanup many comments.
8352
8353 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8354 (AFTER_WATCHFLAG): Replace by value.
8355
8356 (MAIN_PROC_NAME_FORMAT): Inline ...
8357 (create_procinfo): ... here.
8358
8359 (procfs_debug_inferior): Remove SYS_exec handling.
8360 (syscall_is_exec): Likewise.
8361 (procfs_set_exec_trap): Likewise.
8362
8363 (syscall_is_lwp_exit): Inline in callers.
8364 (syscall_is_exit): Likewise.
8365 (syscall_is_exec): Likewise.
8366 (syscall_is_lwp_create): Likewise.
8367
8368 (invalidate_cache): Remove #if 0 code.
8369
8370 (make_signal_thread_runnable): Remove.
8371 (procfs_target::resume): Remove #if 0 code.
8372
8373 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8374
8375 PR gdb/25939
8376 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8377 call ...
8378 (procfs_target::create_inferior): ... here.
8379
8380 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8381
8382 * exec.c (validate_exec_file): Ensure the build-id is up to
8383 date by calling reopen_exec_file (that checks file timestamp
8384 to decide to re-read the file).
8385
8386 2020-06-18 Pedro Alves <palves@redhat.com>
8387
8388 PR gdb/25412
8389 * gdbthread.h (delete_thread, delete_thread_silent)
8390 (find_thread_ptid): Update comments.
8391 * thread.c (current_thread_): New global.
8392 (is_current_thread): Move higher, and reimplement.
8393 (inferior_thread): Reimplement.
8394 (set_thread_exited): Use bool. Add assertions.
8395 (add_thread_silent): Simplify thread-reuse handling by always
8396 calling delete_thread.
8397 (delete_thread): Remove intro comment.
8398 (find_thread_ptid): Skip exited threads.
8399 (switch_to_thread_no_regs): Write to current_thread_.
8400 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8401 INFERIOR_PTID. Clear current_thread_.
8402
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8404
8405 * aix-thread.c (pd_update): Use switch_to_thread.
8406
8407 2020-06-18 Pedro Alves <palves@redhat.com>
8408
8409 * ravenscar-thread.c (ravenscar_thread_target): Update.
8410 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8411 (ravenscar_thread_target::add_active_thread): ... this. Don't
8412 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8413 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8414
8415 2020-06-18 Pedro Alves <palves@redhat.com>
8416
8417 * nat/windows-nat.c (current_windows_thread): Remove.
8418 * nat/windows-nat.h (current_windows_thread): Remove.
8419 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8420 Adjust.
8421 (display_selectors): Adjust to fetch the current
8422 windows_thread_info based on inferior_ptid.
8423 (fake_create_process): No longer write to current_windows_thread.
8424 (windows_nat_target::get_windows_debug_event):
8425 Don't set inferior_ptid or current_windows_thread.
8426 (windows_nat_target::wait): Adjust to not rely on
8427 current_windows_thread.
8428 (do_initial_windows_stuff): Now a method of windows_nat_target.
8429 Switch to the last_ptid thread.
8430 (windows_nat_target::attach): Adjust.
8431 (windows_nat_target::detach): Use switch_to_no_thread instead of
8432 writing to inferior_ptid directly.
8433 (windows_nat_target::create_inferior): Adjust.
8434
8435 2020-06-18 Pedro Alves <palves@redhat.com>
8436
8437 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8438
8439 2020-06-18 Pedro Alves <palves@redhat.com>
8440
8441 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8442 after creating it, instead of writing to inferior_ptid. Don't
8443 write to inferior_ptid.
8444
8445 2020-06-18 Pedro Alves <palves@redhat.com>
8446
8447 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8448
8449 2020-06-18 Pedro Alves <palves@redhat.com>
8450
8451 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8452 it, instead of writing to inferior_ptid.
8453
8454 2020-06-18 Pedro Alves <palves@redhat.com>
8455
8456 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8457 to inferior_ptid.
8458
8459 2020-06-18 Pedro Alves <palves@redhat.com>
8460
8461 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8462 instead of writing to inferior_ptid directly.
8463
8464 2020-06-18 Pedro Alves <palves@redhat.com>
8465
8466 * corelow.c (core_target::close): Use switch_to_no_thread instead
8467 of writing to inferior_ptid directly.
8468 (add_to_thread_list, core_target_open): Use switch_to_thread
8469 instead of writing to inferior_ptid directly.
8470
8471 2020-06-18 Pedro Alves <palves@redhat.com>
8472
8473 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8474 inferior_ptid.
8475 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8476 inferior_ptid.
8477 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8478 inferior_ptid directly.
8479 (darwin_nat_target::init_thread_list): Switch to thread, instead
8480 of writing to inferior_ptid.
8481 (darwin_nat_target::attach): Don't write to inferior_ptid.
8482 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8483
8484 2020-06-18 Pedro Alves <palves@redhat.com>
8485
8486 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8487 thread.
8488 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8489 Instead use switch_to_thread.
8490 (gnu_nat_target::detach): Use switch_to_no_thread
8491 instead of writing to inferior_ptid directly. Used passed-in
8492 inferior instead of looking up the inferior by pid.
8493
8494 2020-06-18 Pedro Alves <palves@redhat.com>
8495
8496 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8497 inferior_ptid.
8498
8499 2020-06-18 Pedro Alves <palves@redhat.com>
8500
8501 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8502 inferior_ptid.
8503 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8504 thread.
8505 (nto_procfs_target::detach): Avoid referencing
8506 inferior_ptid. Use switch_to_no_thread instead of writing to
8507 inferior_ptid directly.
8508 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8509 instead of writing to inferior_ptid directly.
8510 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8511 to thread.
8512
8513 2020-06-18 Pedro Alves <palves@redhat.com>
8514
8515 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8516 after creating it, instead of writing to inferior_ptid.
8517 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8518 to inferior_ptid directly.
8519 (gdbsim_target::wait): Don't write to inferior_ptid.
8520
8521 2020-06-18 Pedro Alves <palves@redhat.com>
8522
8523 * remote.c (remote_target::remote_notice_new_inferior): Use
8524 switch_to_thread instead of writing to inferior_ptid directly.
8525 (remote_target::add_current_inferior_and_thread): Use
8526 switch_to_no_thread instead of writing to inferior_ptid directly.
8527 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8528 and switch_to_thread instead of using set_current_inferior or
8529 writing to inferior_ptid directly.
8530
8531 2020-06-18 Pedro Alves <palves@redhat.com>
8532
8533 * tracectf.c (ctf_target_open): Switch to added thread instead of
8534 writing to inferior_ptid directly.
8535 (ctf_target::close): Use switch_to_no_thread instead of writing to
8536 inferior_ptid directly.
8537
8538 2020-06-18 Pedro Alves <palves@redhat.com>
8539
8540 * tracefile-tfile.c (tfile_target_open): Don't write to
8541 inferior_ptid directly, instead switch to added thread.
8542 (tfile_target::close): Use switch_to_no_thread instead of writing
8543 to inferior_ptid directly.
8544
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8546
8547 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8548 (procfs_target::detach): Use switch_to_no_thread
8549 instead of writing to inferior_ptid directly.
8550 (do_attach): Change return type to void. Switch to the added
8551 thread.
8552 (procfs_target::create_inferior): Switch to the added thread.
8553 (procfs_do_thread_registers): Don't write to inferior_ptid.
8554
8555 2020-06-18 Pedro Alves <palves@redhat.com>
8556
8557 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8558 of writing to inferior_ptid.
8559 (scoped_restore_exited_inferior): Delete.
8560 (handle_vfork_child_exec_or_exit): Simplify using
8561 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8562 instead of writing to inferior_ptid.
8563 (THREAD_STOPPED_BY): Delete.
8564 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8565 (thread_stopped_by_hw_breakpoint): Delete.
8566 (save_waitstatus): Use
8567 scoped_restore_current_thread+switch_to_thread, and call
8568 target_stopped_by_watchpoint instead of
8569 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8570 instead of thread_stopped_by_sw_breakpoint, and
8571 target_stopped_by_hw_breakpoint instead of
8572 thread_stopped_by_hw_breakpoint.
8573 (handle_inferior_event)
8574 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8575 inferior_ptid directly, nor
8576 set_current_inferior/set_current_program_space. Use
8577 switch_to_thread / switch_to_inferior_no_thread instead.
8578
8579 2020-06-18 Pedro Alves <palves@redhat.com>
8580
8581 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8582 instead of writing to inferior_ptid.
8583
8584 2020-06-18 Pedro Alves <palves@redhat.com>
8585
8586 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8587 added thread.
8588 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8589 to the added thread.
8590 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8591 instead of writing to inferior_ptid.
8592
8593 2020-06-18 Pedro Alves <palves@redhat.com>
8594
8595 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8596 (register_to_value_test): Mock a program_space too. Heap-allocate
8597 the address space. Don't write to inferior_ptid. Use
8598 switch_to_thread instead.
8599
8600 2020-06-18 Pedro Alves <palves@redhat.com>
8601
8602 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8603 Delete.
8604 (find_signalled_thread()): New, factored out from
8605 linux_make_corefile_notes and adjusted to handle exited threads.
8606 (linux_make_corefile_notes): Adjust to use the new
8607 find_signalled_thread.
8608
8609 2020-06-18 Pedro Alves <palves@redhat.com>
8610
8611 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8612 of saving/restoring inferior_ptid.
8613
8614 2020-06-17 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8617 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8618 declare.
8619 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8620
8621 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8624 of partial symtabs.
8625
8626 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * regformats/reg-arm.dat: Remove.
8629 * regformats/reg-bfin.dat: Remove.
8630 * regformats/reg-cris.dat: Remove.
8631 * regformats/reg-crisv32.dat: Remove.
8632 * regformats/reg-m32r.dat: Remove.
8633 * regformats/reg-tilegx.dat: Remove.
8634 * regformats/reg-tilegx32.dat: Remove.
8635
8636 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * features/Makefile (WHICH): Remove arm files.
8639 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8640 * regformats/arm/arm-with-neon.dat: Remove.
8641 * regformats/arm/arm-with-vfpv2.dat: Remove.
8642 * regformats/arm/arm-with-vfpv3.dat: Remove.
8643
8644 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * features/Makefile (XMLTOC): Remove rx.xml.
8647
8648 2020-06-17 Pedro Alves <palves@redhat.com>
8649
8650 * gdbthread.h (thread_control_state) <trap_expected> Update
8651 comments.
8652
8653 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8656 ada_language::lookup_symbol_nonlocal.
8657 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8658 (ada_language::lookup_symbol_nonlocal): New member function,
8659 implementation from ada_lookup_symbol_nonlocal.
8660 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8661 initializer.
8662 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8663 initializer.
8664 (cplus_language::lookup_symbol_nonlocal): New member function.
8665 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8666 (minimal_language_data) Likewise.
8667 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8668 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8669 initializer.
8670 (d_language::lookup_symbol_nonlocal): New member function.
8671 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8672 initializer.
8673 (f_language::lookup_symbol_nonlocal): New member function.
8674 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8675 initializer.
8676 * language.c (unknown_language_data): Likewise.
8677 (auto_language_data): Likewise.
8678 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8679 field.
8680 (language_defn::lookup_symbol_nonlocal): New member function.
8681 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8682 initializer.
8683 * objc-lang.c (objc_language_data): Likewise.
8684 * opencl-lang.c (opencl_language_data): Likewise.
8685 * p-lang.c (pascal_language_data): Likewise.
8686 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8687 rust_language::lookup_symbol_nonlocal.
8688 (rust_language_data): Delete la_lookup_symbol_nonlocal
8689 initializer.
8690 (rust_language::lookup_symbol_nonlocal): New member function,
8691 implementation from rust_lookup_symbol_nonlocal.
8692 * symtab.c (lookup_symbol_aux): Update call to
8693 lookup_symbol_nonlocal.
8694 (basic_lookup_symbol_nonlocal): Rename to...
8695 (language_defn::lookup_symbol_nonlocal): ...this, and update
8696 header comment. Remove language_defn parameter, and replace with
8697 uses of `this'.
8698 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8699
8700 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8701
8702 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8703 initializer.
8704 (ada_language::value_print_inner): New member function.
8705 * c-lang.c (c_language_data): Delete la_value_print_inner
8706 initializer.
8707 (cplus_language_data): Likewise.
8708 (asm_language_data): Likewise.
8709 (minimal_language_data): Likewise.
8710 * d-lang.c (d_language_data): Likewise.
8711 (d_language::value_print_inner): New member function.
8712 * f-lang.c (f_language_data): Delete la_value_print_inner
8713 initializer.
8714 (f_language::value_print_inner): New member function.
8715 * f-lang.h (f_value_print_innner): Rename to...
8716 (f_value_print_inner): ...this (note spelling of 'inner').
8717 * f-valprint.c (f_value_print_innner): Rename to...
8718 (f_value_print_inner): ...this (note spelling of 'inner').
8719 * go-lang.c (go_language_data): Delete la_value_print_inner
8720 initializer.
8721 (go_language::value_print_inner): New member function.
8722 * language.c (language_defn::value_print_inner): Define new member
8723 function.
8724 (unk_lang_value_print_inner): Delete.
8725 (unknown_language_data): Delete la_value_print_inner initializer.
8726 (unknown_language::value_print_inner): New member function.
8727 (auto_language_data): Delete la_value_print_inner initializer.
8728 (auto_language::value_print_inner): New member function.
8729 * language.h (language_data): Delete la_value_print_inner field.
8730 (language_defn::value_print_inner): Delcare new member function.
8731 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8732 initializer.
8733 (m2_language::value_print_inner): New member function.
8734 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8735 initializer.
8736 * opencl-lang.c (opencl_language_data): Likewise.
8737 * p-lang.c (pascal_language_data): Likewise.
8738 (pascal_language::value_print_inner): New member function.
8739 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8740 initializer.
8741 (rust_language::value_print_inner): New member function.
8742 * valprint.c (do_val_print): Update call to value_print_inner.
8743
8744 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * ada-lang.c (ada_language_data): Delete la_value_print
8747 initializer.
8748 (ada_language::value_print): New member function.
8749 * c-lang.c (c_language_data): Delete la_value_print initializer.
8750 (cplus_language_data): Likewise.
8751 (asm_language_data): Likewise.
8752 (minimal_language_data): Likewise.
8753 * d-lang.c (d_language_data): Likewise.
8754 * f-lang.c (f_language_data): Likewise.
8755 * go-lang.c (go_language_data): Likewise.
8756 * language.c (unk_lang_value_print): Delete.
8757 (language_defn::value_print): Define new member function.
8758 (unknown_language_data): Delete la_value_print initializer.
8759 (unknown_language::value_print): New member function.
8760 (auto_language_data): Delete la_value_print initializer.
8761 (auto_language::value_print): New member function.
8762 * language.h (language_data): Delete la_value_print field.
8763 (language_defn::value_print): Declare new member function.
8764 (LA_VALUE_PRINT): Update call to value_print.
8765 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8766 * objc-lang.c (objc_language_data): Likewise.
8767 * opencl-lang.c (opencl_language_data): Likewise.
8768 * p-lang.c (pascal_language_data): Likewise.
8769 (pascal_language::value_print): New member function.
8770 * rust-lang.c (rust_language_data): Delete la_value_print
8771 initializer.
8772
8773 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 * ada-lang.c (ada_watch_location_expression): Rename to
8776 ada_language::watch_location_expression.
8777 (ada_language_data): Delete la_watch_location_expression
8778 initializer.
8779 (ada_language::watch_location_expression): New member function,
8780 implementation from ada_watch_location_expression.
8781 * breakpoint.c (watch_command_1): Update call to
8782 watch_location_expression.
8783 * c-lang.c (c_watch_location_expression): Rename to
8784 language_defn::watch_location_expression.
8785 (c_language_data): Delete la_watch_location_expression
8786 initializer.
8787 (cplus_language_data): Likewise.
8788 (asm_language_data): Likewise.
8789 (minimal_language_data): Likewise.
8790 * c-lang.h (c_watch_location_expression): Delete declaration.
8791 * d-lang.c (d_language_data): Delete la_watch_location_expression
8792 initializer.
8793 * f-lang.c (f_language_data): Likewise.
8794 * go-lang.c (go_language_data): Likewise.
8795 * language.c (language_defn::watch_location_expression): Member
8796 function implementation from c_watch_location_expression.
8797 (unknown_language_data): Delete la_watch_location_expression
8798 initializer.
8799 (auto_language_data): Likewise.
8800 * language.h (language_data): Delete la_watch_location_expression
8801 field.
8802 (language_defn::watch_location_expression): Declare new member
8803 function.
8804 * m2-lang.c (m2_language_data): Delete
8805 la_watch_location_expression initializer.
8806 * objc-lang.c (objc_language_data): Likewise.
8807 * opencl-lang.c (opencl_language_data): Likewise.
8808 * p-lang.c (pascal_language_data): Likewise.
8809 * rust-lang.c (rust_watch_location_expression): Rename to
8810 rust_language::watch_location_expression.
8811 (rust_language_data): Delete la_watch_location_expression
8812 initializer.
8813 (rust_language::watch_location_expression): New member function,
8814 implementation from rust_watch_location_expression.
8815
8816 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8819 ada_language::collect_symbol_completion_matches.
8820 (ada_language_data): Delete la_collect_symbol_completion_matches
8821 initializer.
8822 (ada_language::collect_symbol_completion_matches): New member
8823 function, implementation from
8824 ada_collect_symbol_completion_matches.
8825 * c-lang.c (c_language_data): Delete
8826 la_collect_symbol_completion_matches initializer.
8827 (cplus_language_data): Likewise.
8828 (asm_language_data): Likewise.
8829 (minimal_language_data): Likewise.
8830 * d-lang.c (d_language_data): Likewise.
8831 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8832 f_language::collect_symbol_completion_matches.
8833 (f_language_data): Delete la_collect_symbol_completion_matches
8834 initializer.
8835 (f_language::collect_symbol_completion_matches) New member
8836 function, implementation from f_collect_symbol_completion_matches.
8837 * go-lang.c (go_language_data): Delete
8838 la_collect_symbol_completion_matches initializer.
8839 * language.c (unknown_language_data): Likewise.
8840 (auto_language_data): Likewise.
8841 * language.h (language_data): Delete
8842 la_collect_symbol_completion_matches field.
8843 (language_defn::collect_symbol_completion_matches): New member
8844 function.
8845 * m2-lang.c (m2_language_data): Delete
8846 la_collect_symbol_completion_matches initializer.
8847 * objc-lang.c (objc_language_data): Likewise.
8848 * opencl-lang.c (opencl_language_data): Likewise.
8849 * p-lang.c (pascal_language_data): Likewise.
8850 * rust-lang.c (rust_language_data): Likewise.
8851 * symtab.c (default_collect_symbol_completion_matches): Delete.
8852 (collect_symbol_completion_matches): Update call to
8853 collect_symbol_completion_matches.
8854 (collect_symbol_completion_matches_type): Likewise.
8855 * symtab.h (default_collect_symbol_completion_matches): Delete
8856 declaration.
8857
8858 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8859
8860 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8861 (ada_language_data): Delete la_word_break_characters initializer.
8862 (ada_language::word_break_characters): New member function.
8863 * c-lang.c (c_language_data): Delete la_word_break_characters
8864 initializer.
8865 (cplus_language_data): Likewise.
8866 (asm_language_data): Likewise.
8867 (minimal_language_data): Likewise.
8868 * completer.c: Update global comment.
8869 (advance_to_expression_complete_word_point): Update call to
8870 word_break_characters.
8871 (complete_files_symbols): Likewise.
8872 (complete_line_internal_1): Likewise.
8873 (default_completer_handle_brkchars): Likewise.
8874 (skip_quoted_chars): Likewise.
8875 * d-lang.c (d_language_data): Delete la_word_break_characters
8876 initializer.
8877 * f-lang.c (f_word_break_characters): Delete.
8878 (f_language_data): Delete la_word_break_characters initializer.
8879 (f_language::word_break_characters): New member function.
8880 * go-lang.c (go_language_data): Delete la_word_break_characters
8881 initializer.
8882 * language.c (unknown_language_data): Likewise.
8883 (auto_language_data): Likewise.
8884 * language.h (default_word_break_characters): Move declaration to
8885 earlier in the file.
8886 (language_data): Delete la_word_break_characters field.
8887 (language_defn::word_break_characters): New member function.
8888 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8889 initializer.
8890 * objc-lang.c (objc_language_data): Likewise.
8891 * opencl-lang.c (opencl_language_data): Likewise.
8892 * p-lang.c (pascal_language_data): Likewise.
8893 * rust-lang.c (rust_language_data): Likewise.
8894
8895 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8898 (ada_language_data): Delete la_get_symbol_name_matcher
8899 initializer.
8900 (language_defn::get_symbol_name_matcher_inner): New member
8901 function.
8902 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8903 initializer.
8904 (cplus_language_data): Likewise.
8905 (cplus_language::get_symbol_name_matcher_inner): New member
8906 function.
8907 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8908 (minimal_language_data): Likewise.
8909 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8910 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8911 initializer.
8912 * dictionary.c (iter_match_first_hashed): Update call to
8913 get_symbol_name_matcher.
8914 (iter_match_next_hashed): Likewise.
8915 (iter_match_next_linear): Likewise.
8916 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8917 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8918 initializer.
8919 (f_language::get_symbol_name_matcher_inner): New member function.
8920 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8921 initializer.
8922 * language.c (default_symbol_name_matcher): Update header comment,
8923 make static.
8924 (language_defn::get_symbol_name_matcher): New definition.
8925 (language_defn::get_symbol_name_matcher_inner): Likewise.
8926 (get_symbol_name_matcher): Delete.
8927 (unknown_language_data): Delete la_get_symbol_name_matcher
8928 initializer.
8929 (auto_language_data): Likewise.
8930 * language.h (language_data): Delete la_get_symbol_name_matcher
8931 field.
8932 (language_defn::get_symbol_name_matcher): New member function.
8933 (language_defn::get_symbol_name_matcher_inner): Likewise.
8934 (default_symbol_name_matcher): Delete declaration.
8935 * linespec.c (find_methods): Update call to
8936 get_symbol_name_matcher.
8937 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8938 initializer.
8939 * minsyms.c (lookup_minimal_symbol): Update call to
8940 get_symbol_name_matcher.
8941 (iterate_over_minimal_symbols): Likewise.
8942 * objc-lang.c (objc_language_data): Delete
8943 la_get_symbol_name_matcher initializer.
8944 * opencl-lang.c (opencl_language_data): Likewise.
8945 * p-lang.c (pascal_language_data): Likewise.
8946 * psymtab.c (psymbol_name_matches): Update call to
8947 get_symbol_name_matcher.
8948 * rust-lang.c (rust_language_data): Delete
8949 la_get_symbol_name_matcher initializer.
8950 * symtab.c (symbol_matches_search_name): Update call to
8951 get_symbol_name_matcher.
8952 (compare_symbol_name): Likewise.
8953
8954 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8955
8956 * ada-lang.c (ada_language_data): Delete la_compute_program
8957 initializer.
8958 * c-lang.c (c_language_data): Likewise.
8959 (c_language::compute_program): New member function.
8960 (cplus_language_data): Delete la_compute_program initializer.
8961 (cplus_language::compute_program): New member function.
8962 (asm_language_data): Delete la_compute_program initializer.
8963 (minimal_language_data): Likewise.
8964 * c-lang.h (c_compute_program): Update comment.
8965 (cplus_compute_program): Likewise.
8966 * compile/compile-c-support.c (c_compute_program): Likewise.
8967 (cplus_compute_program): Likewise.
8968 * compile/compile.c (compile_to_object): Update call to
8969 la_compute_program.
8970 * d-lang.c (d_language_data): Delete la_compute_program
8971 initializer.
8972 * f-lang.c (f_language_data): Likewise.
8973 * go-lang.c (go_language_data): Likewise.
8974 * language.c (unknown_language_data): Likewise.
8975 (auto_language_data): Likewise.
8976 * language.h (language_data): Delete la_compute_program field.
8977 (language_defn::compute_program): New member function.
8978 * m2-lang.c (m2_language_data): Delete la_compute_program
8979 initializer.
8980 * objc-lang.c (objc_language_data): Likewise.
8981 * opencl-lang.c (opencl_language_data): Likewise.
8982 * p-lang.c (pascal_language_data): Likewise.
8983 * rust-lang.c (rust_language_data): Likewise.
8984
8985 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8986
8987 * ada-lang.c (ada_language_data) Delete
8988 la_class_name_from_physname initializer.
8989 * c-lang.c (c_language_data): Likewise.
8990 (cplus_language_data): Likewise.
8991 (cplus_language::class_name_from_physname): New member function.
8992 (asm_language_data): Delete la_class_name_from_physname
8993 initializer.
8994 (minimal_language_data): Likewise.
8995 * d-lang.c (d_language_data): Likewise.
8996 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8997 method on language_defn class.
8998 (guess_full_die_structure_name): Likewise.
8999 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9000 initializer.
9001 * go-lang.c (go_language_data): Likewise.
9002 * language.c (language_class_name_from_physname): Delete.
9003 (unk_lang_class_name): Delete.
9004 (unknown_language_data): Delete la_class_name_from_physname
9005 initializer.
9006 (auto_language_data): Likewise.
9007 * language.h (language_data): Delete la_class_name_from_physname
9008 field.
9009 (language_defn::class_name_from_physname): New function.
9010 (language_class_name_from_physname): Delete declaration.
9011 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9012 initializer.
9013 * objc-lang.c (objc_language_data): Likewise.
9014 * opencl-lang.c (opencl_language_data): Likewise.
9015 * p-lang.c (pascal_language_data): Likewise.
9016 * rust-lang.c (rust_language_data): Likewise.
9017
9018 2020-06-16 Tom Tromey <tom@tromey.com>
9019
9020 * tui/tui-data.h (STATUS_NAME): New macro.
9021 * tui/tui-layout.c (tui_remove_some_windows)
9022 (initialize_known_windows, tui_register_window)
9023 (tui_layout_split::remove_windows, initialize_layouts)
9024 (tui_new_layout_command): Don't use hard-coded window names.
9025
9026 2020-06-16 Tom Tromey <tom@tromey.com>
9027
9028 PR tui/25348:
9029 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9030 tui_initialize_readline. Only run once. Call rl_initialize.
9031 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9032 tui_initialize_readline.
9033 * tui/tui-io.c (tui_setup_io): Call
9034 tui_ensure_readline_initialized.
9035 * tui/tui-interp.c (tui_interp::init): Update.
9036
9037 2020-06-16 Tom Tromey <tom@tromey.com>
9038
9039 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9040 Also preserve the status window.
9041
9042 2020-06-16 Tom Tromey <tom@tromey.com>
9043
9044 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9045 where m_window==nullptr.
9046
9047 2020-06-15 Tom Tromey <tromey@adacore.com>
9048
9049 * windows-nat.c (windows_nat::handle_output_debug_string):
9050 Update.
9051 (windows_nat::handle_ms_vc_exception): Update.
9052 * target.h (target_read_string): Change API.
9053 * target.c (target_read_string): Change API.
9054 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9055 Update.
9056 * solib-frv.c (frv_current_sos): Update.
9057 * solib-dsbt.c (dsbt_current_sos): Update.
9058 * solib-darwin.c (darwin_current_sos): Update.
9059 * linux-thread-db.c (inferior_has_bug): Update.
9060 * expprint.c (print_subexp_standard): Update.
9061 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9062 (ada_exception_message_1): Update.
9063
9064 2020-06-15 Tom Tromey <tromey@adacore.com>
9065
9066 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9067
9068 2020-06-15 Tom Tromey <tromey@adacore.com>
9069
9070 * valprint.c (read_string): Update comment.
9071 * target.c (MIN): Remove.
9072 (target_read_string): Rewrite.
9073
9074 2020-06-15 Tom Tromey <tromey@adacore.com>
9075
9076 * corefile.c (read_memory_string): Remove.
9077 * ada-valprint.c (ada_value_print_ptr): Update.
9078 * ada-lang.h (ada_tag_name): Change return type.
9079 * ada-lang.c (type_from_tag): Update.
9080 (ada_tag_name_from_tsd): Change return type. Use
9081 target_read_string.
9082 (ada_tag_name): Likewise.
9083 * gdbcore.h (read_memory_string): Don't declare.
9084
9085 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9086
9087 * symtab.c (rbreak_command): Ignore Windows drive colon.
9088
9089 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * NEWS: Mention removed GDBserver host support.
9092
9093 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9094
9095 * features/riscv/rebuild-csr-xml.sh: Updated.
9096
9097 2020-06-11 Tom Tromey <tom@tromey.com>
9098
9099 PR gdb/18318:
9100 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9101
9102 2020-06-09 Jonny Grant <jg@jguk.org>
9103 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 * main.c (captured_main_1): Don't print new line after help.
9106 (print_gdb_help): add mailing list and IRC channel information
9107 to --help. Add new lines between items in the footer. Remove
9108 quotes around bug url.
9109
9110 2020-06-11 Keith Seitz <keiths@redhat.com>
9111
9112 PR gdb/21356
9113 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9114 Resolve typedefs for type length calculations.
9115
9116 2020-06-10 Tom de Vries <tdevries@suse.de>
9117
9118 PR ada/24713
9119 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9120 (write_psymbols): Enable .gdb_index for ada.
9121 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9122 ada.
9123
9124 2020-06-10 Tom de Vries <tdevries@suse.de>
9125
9126 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9127 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9128 namei" instead of "const char *name" argument.
9129 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9130 dw2_symtab_iter_init.
9131
9132 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9135 to use type::field and field::type instead.
9136
9137 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9140 to use field::type instead.
9141
9142 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * gdbtypes.h (struct field) <type, set_type>: New methods.
9145 Rename `type` field to...
9146 <m_type>: ... this. Change references throughout to use type or
9147 set_type methods.
9148 (FIELD_TYPE): Use field::type. Change call sites that modify
9149 the field's type to use field::set_type instead.
9150
9151 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9154 to use type::index_type instead.
9155
9156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9159 methods.
9160 (TYPE_INDEX_TYPE): Use type::index_type.
9161 * gdbtypes.c (create_array_type_with_stride): Likewise.
9162
9163 2020-06-07 Tom Tromey <tom@tromey.com>
9164
9165 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9166 parameter.
9167 (generic_value_print): Update.
9168
9169 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9170
9171 Revert commit 982a38f60b0.
9172 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9173
9174 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9177 avoid use after free.
9178
9179 2020-06-05 Tom de Vries <tdevries@suse.de>
9180
9181 * NEWS: Fix typos.
9182
9183 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9186 the per_bfd object.
9187 (dwarf2_read_debug_names): Likewise.
9188 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9189 object when re-using a per_bfd object with an index.
9190
9191 2020-06-03 Tom de Vries <tdevries@suse.de>
9192
9193 PR symtab/26046
9194 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9195 children for C++.
9196 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9197 DW_TAG_subprogram.
9198
9199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9200
9201 * ada-lang.c (ada_language_data): Delete skip_trampoline
9202 initializer.
9203 * c-lang.c (c_language_data): Likewise.
9204 (cplus_language_data): Likewise.
9205 (cplus_language::skip_trampoline): New member function.
9206 (asm_language_data): Delete skip_trampoline initializer.
9207 (minimal_language_data): Likewise.
9208 * d-lang.c (d_language_data): Likewise.
9209 * f-lang.c (f_language_data): Likewise.
9210 * go-lang.c (go_language_data): Likewise.
9211 * language.c (unk_lang_trampoline): Delete function.
9212 (skip_language_trampoline): Update.
9213 (unknown_language_data): Delete skip_trampoline initializer.
9214 (auto_language_data): Likewise.
9215 * language.h (language_data): Delete skip_trampoline field.
9216 (language_defn::skip_trampoline): New function.
9217 * m2-lang.c (m2_language_data): Delete skip_trampoline
9218 initializer.
9219 * objc-lang.c (objc_skip_trampoline): Delete function, move
9220 implementation to objc_language::skip_trampoline.
9221 (objc_language_data): Delete skip_trampoline initializer.
9222 (objc_language::skip_trampoline): New member function with
9223 implementation from objc_skip_trampoline.
9224 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9225 initializer.
9226 * p-lang.c (pascal_language_data): Likewise.
9227 * rust-lang.c (rust_language_data): Likewise.
9228
9229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9230
9231 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9232 (ada_language::demangle): New member function.
9233 * c-lang.c (c_language_data): Delete la_demangle initializer.
9234 (cplus_language_data): Delete la_demangle initializer.
9235 (cplus_language::demangle): New member function.
9236 (asm_language_data): Delete la_demangle initializer.
9237 (minimal_language_data): Delete la_demangle initializer.
9238 * d-lang.c (d_language_data): Delete la_demangle initializer.
9239 (d_language::demangle): New member function.
9240 * f-lang.c (f_language_data): Delete la_demangle initializer.
9241 (f_language::demangle): New member function.
9242 * go-lang.c (go_language_data): Delete la_demangle initializer.
9243 (go_language::demangle): New member function.
9244 * language.c (language_demangle): Update.
9245 (unk_lang_demangle): Delete.
9246 (unknown_language_data): Delete la_demangle initializer.
9247 (unknown_language::demangle): New member function.
9248 (auto_language_data): Delete la_demangle initializer.
9249 (auto_language::demangle): New member function.
9250 * language.h (language_data): Delete la_demangle field.
9251 (language_defn::demangle): New function.
9252 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9253 * objc-lang.c (objc_language_data): Delete la_demangle
9254 initializer.
9255 (objc_language::demangle): New member function.
9256 * opencl-lang.c (opencl_language_data): Delete la_demangle
9257 initializer.
9258 * p-lang.c (pascal_language_data): Likewise.
9259 * rust-lang.c (rust_language_data): Likewise.
9260 (rust_language::demangle): New member function.
9261
9262 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9263
9264 * ada-lang.c (ada_language_data): Delete la_print_type
9265 initializer.
9266 (ada_language::print_type): New member function.
9267 * c-lang.c (c_language_data): Delete la_print_type initializer.
9268 (c_language::print_type): New member function.
9269 (cplus_language_data): Delete la_print_type initializer.
9270 (cplus_language::print_type): New member function.
9271 (asm_language_data): Delete la_print_type initializer.
9272 (asm_language::print_type): New member function.
9273 (minimal_language_data): Delete la_print_type initializer.
9274 (minimal_language::print_type): New member function.
9275 * d-lang.c (d_language_data): Delete la_print_type initializer.
9276 (d_language::print_type): New member function.
9277 * f-lang.c (f_language_data): Delete la_print_type initializer.
9278 (f_language::print_type): New member function.
9279 * go-lang.c (go_language_data): Delete la_print_type initializer.
9280 (go_language::print_type): New member function.
9281 * language.c (unk_lang_print_type): Delete.
9282 (unknown_language_data): Delete la_print_type initializer.
9283 (unknown_language::print_type): New member function.
9284 (auto_language_data): Delete la_print_type initializer.
9285 (auto_language::print_type): New member function.
9286 * language.h (language_data): Delete la_print_type field.
9287 (language_defn::print_type): New function.
9288 (LA_PRINT_TYPE): Update.
9289 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9290 (m2_language::print_type): New member function.
9291 * objc-lang.c (objc_language_data): Delete la_print_type
9292 initializer.
9293 (objc_language::print_type): New member function.
9294 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9295 to opencl_language::print_type.
9296 (opencl_language_data): Delete la_print_type initializer.
9297 (opencl_language::print_type): New member function, implementation
9298 from opencl_print_type.
9299 * p-lang.c (pascal_language_data): Delete la_print_type
9300 initializer.
9301 (pascal_language::print_type): New member function.
9302 * rust-lang.c (rust_print_type): Delete, implementation moved to
9303 rust_language::print_type.
9304 (rust_language_data): Delete la_print_type initializer.
9305 (rust_language::print_type): New member function, implementation
9306 from rust_print_type.
9307
9308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9311 implementation moves to...
9312 (ada_language::sniff_from_mangled_name): ...here. Update return
9313 type.
9314 (ada_language_data): Delete la_sniff_from_mangled_name
9315 initializer.
9316 * c-lang.c (c_language_data): Likewise.
9317 (cplus_language_data): Likewise.
9318 (cplus_language::sniff_from_mangled_name): New member function,
9319 implementation taken from gdb_sniff_from_mangled_name.
9320 (asm_language_data): Delete la_sniff_from_mangled_name
9321 initializer.
9322 (minimal_language_data): Likewise.
9323 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9324 implementation moves to cplus_language::sniff_from_mangled_name.
9325 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9326 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9327 moves to...
9328 (d_language::sniff_from_mangled_name): ...here.
9329 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9330 * f-lang.c (f_language_data): Likewise.
9331 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9332 moves to...
9333 (go_language::sniff_from_mangled_name): ...here.
9334 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9335 * language.c (language_sniff_from_mangled_name): Delete.
9336 (unknown_language_data): Delete la_sniff_from_mangled_name
9337 initializer.
9338 (auto_language_data): Likewise.
9339 * language.h (language_data): Delete la_sniff_from_mangled_name
9340 field.
9341 (language_defn::sniff_from_mangled_name): New function.
9342 (language_sniff_from_mangled_name): Delete declaration.
9343 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9344 field.
9345 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9346 implementation moves to...
9347 (objc_language::sniff_from_mangled_name): ...here.
9348 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9349 * opencl-lang.c (opencl_language_data): Likewise.
9350 * p-lang.c (pascal_language_data): Likewise.
9351 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9352 implementation moves to...
9353 (rust_language::sniff_from_mangled_name): ...here.
9354 (rust_language_data): Delete la_sniff_from_mangled_name
9355 initializer.
9356 * symtab.c (symbol_find_demangled_name): Call
9357 sniff_from_mangled_name member function.
9358
9359 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9362 initializer.
9363 * c-lang.c (c_language_data): Likewise.
9364 (cplus_language_data): Likewise.
9365 (cplus_language::search_name_hash): New member function.
9366 (asm_language_data): Delete la_search_name_hash initializer.
9367 (minimal_language_data): Likewise.
9368 * d-lang.c (d_language_data): Likewise.
9369 * dictionary.c (default_search_name_hash): Rename to...
9370 (language_defn::search_name_hash): ...this.
9371 * f-lang.c (f_language_data): Likewise.
9372 (f_language::search_name_hash): New member function.
9373 * go-lang.c (go_language_data): Delete la_search_name_hash
9374 initializer.
9375 * language.c (unknown_language_data): Likewise.
9376 (auto_language_data): Likewise.
9377 * language.h (struct language_data): Delete la_search_name_hash
9378 field.
9379 (language_defn::search_name_hash): Declare new member function.
9380 (default_search_name_hash): Delete declaration.
9381 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9382 initializer.
9383 * objc-lang.c (objc_language_data): Likewise.
9384 * opencl-lang.c (opencl_language_data): Likewise.
9385 * p-lang.c (pascal_language_data): Likewise.
9386 * rust-lang.c (rust_language_data): Likewise.
9387 * symtab.c (search_name_hash): Update call.
9388
9389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9390
9391 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9392 initializer.
9393 * c-lang.c (class compile_instance): Declare.
9394 (c_language_data): Delete la_get_compile_instance initializer.
9395 (c_language::get_compile_instance): New member function.
9396 (cplus_language_data): Delete la_get_compile_instance initializer.
9397 (cplus_language::get_compile_instance): New member function.
9398 (asm_language_data): Delete la_get_compile_instance initializer.
9399 (minimal_language_data): Likewise.
9400 * c-lang.h (c_get_compile_context): Update comment.
9401 (cplus_get_compile_context): Update comment.
9402 * compile/compile.c (compile_to_object): Update calls, don't rely
9403 on function pointer being NULL.
9404 * d-lang.c (d_language_data): Delete la_get_compile_instance
9405 initializer.
9406 * f-lang.c (f_language_data): Likewise.
9407 * go-lang.c (go_language_data): Likewise.
9408 * language.c (unknown_language_data): Likewise.
9409 (auto_language_data): Likewise.
9410 * language.h (language_data): Delete la_get_compile_instance field.
9411 (language_defn::get_compile_instance): New member function.
9412 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9413 initializer.
9414 * objc-lang.c (objc_language_data): Likewise.
9415 * opencl-lang.c (opencl_language_data): Likewise.
9416 * p-lang.c (pascal_language_data): Likewise.
9417 * rust-lang.c (rust_language_data): Likewise.
9418
9419 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * ada-lang.c (ada_add_all_symbols): Update comment.
9422 (ada_iterate_over_symbols): Delete, move implementation to...
9423 (ada_language::iterate_over_symbols): ...here, a new member
9424 function, rewrite to use range based for loop.
9425 (ada_language_data): Delete la_iterate_over_symbols initializer.
9426 * c-lang.c (c_language_data): Likewise.
9427 (cplus_language_data): Likewise.
9428 (asm_language_data): Likewise.
9429 (minimal_language_data): Likewise.
9430 * d-lang.c (d_language_data): Likewise.
9431 * f-lang.c (f_language_data): Likewise.
9432 * go-lang.c (go_language_data): Likewise.
9433 * language.c (unknown_language_data): Likewise.
9434 (auto_language_data): Likewise.
9435 * language.h (language_data): Delete la_iterate_over_symbols field.
9436 (language_defn::iterate_over_symbols): New member function.
9437 (LA_ITERATE_OVER_SYMBOLS): Update.
9438 * linespec.c (iterate_over_all_matching_symtabs): Update.
9439 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9440 initializer.
9441 * objc-lang.c (objc_language_data): Likewise.
9442 * opencl-lang.c (opencl_language_data): Likewise.
9443 * p-lang.c (pascal_language_data): Likewise.
9444 * rust-lang.c (rust_language_data): Likewise.
9445
9446 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9447
9448 * ada-lang.c (ada_language_data): Delete
9449 la_lookup_transparent_type initializer.
9450 * c-lang.c (c_language_data): Likewise.
9451 (cplus_language_data): Likewise.
9452 (cplus_language::lookup_transparent_type): New member function.
9453 (asm_language_data): Delete la_lookup_transparent_type
9454 initializer.
9455 (minimal_language_data): Likewise.
9456 * d-lang.c (d_language_data): Likewise.
9457 * f-lang.c (f_language_data): Likewise.
9458 * go-lang.c (go_language_data): Likewise.
9459 * language.c (unknown_language_data): Likewise.
9460 (auto_language_data): Likewise.
9461 * language.h (struct language_data): Delete
9462 la_lookup_transparent_type field.
9463 (language_defn::lookup_transparent_type): New member function.
9464 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9465 initializer.
9466 * objc-lang.c (objc_language_data): Likewise.
9467 * opencl-lang.c (opencl_language_data): Likewise.
9468 * p-lang.c (pascal_language_data): Likewise.
9469 * rust-lang.c (rust_language_data): Likewise.
9470 * symtab.c (symbol_matches_domain): Update call.
9471
9472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * ada-lang.c (ada_language_arch_info): Delete function, move
9475 implementation to...
9476 (ada_language::language_arch_info): ...here, a new member
9477 function.
9478 (ada_language_data): Delete la_language_arch_info.
9479 * c-lang.c (c_language_data): Likewise.
9480 (c_language::language_arch_info): New member function.
9481 (cplus_language_arch_info): Delete function, move
9482 implementation to...
9483 (cplus_language::language_arch_info): ...here, a new member
9484 function.
9485 (cplus_language_data): Delete la_language_arch_info.
9486 (asm_language_data): Likewise.
9487 (asm_language::language_arch_info): New member function.
9488 (minimal_language_data): Delete la_language_arch_info.
9489 (minimal_language::language_arch_info): New member function.
9490 * d-lang.c (d_language_arch_info): Delete function, move
9491 implementation to...
9492 (d_language::language_arch_info): ...here, a new member
9493 function.
9494 (d_language_data): Delete la_language_arch_info.
9495 * f-lang.c (f_language_arch_info): Delete function, move
9496 implementation to...
9497 (f_language::language_arch_info): ...here, a new member
9498 function.
9499 (f_language_data): Delete la_language_arch_info.
9500 * go-lang.c (go_language_arch_info): Delete function, move
9501 implementation to...
9502 (go_language::language_arch_info): ...here, a new member
9503 function.
9504 (go_language_data): Delete la_language_arch_info.
9505 * language.c (unknown_language_data): Likewise.
9506 (unknown_language::language_arch_info): New member function.
9507 (auto_language_data): Delete la_language_arch_info.
9508 (auto_language::language_arch_info): New member function.
9509 (language_gdbarch_post_init): Update call to
9510 la_language_arch_info.
9511 * language.h (language_data): Delete la_language_arch_info
9512 function pointer.
9513 (language_defn::language_arch_info): New function.
9514 * m2-lang.c (m2_language_arch_info): Delete function, move
9515 implementation to...
9516 (m2_language::language_arch_info): ...here, a new member
9517 function.
9518 (m2_language_data): Delete la_language_arch_info.
9519 * objc-lang.c (objc_language_arch_info): Delete function, move
9520 implementation to...
9521 (objc_language::language_arch_info): ...here, a new member
9522 function.
9523 (objc_language_data): Delete la_language_arch_info.
9524 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9525 implementation to...
9526 (opencl_language::language_arch_info): ...here, a new member
9527 function.
9528 (opencl_language_data): Delete la_language_arch_info.
9529 * p-lang.c (pascal_language_arch_info): Delete function, move
9530 implementation to...
9531 (pascal_language::language_arch_info): ...here, a new member
9532 function.
9533 (pascal_language_data): Delete la_language_arch_info.
9534 * rust-lang.c (rust_language_arch_info): Delete function, move
9535 implementation to...
9536 (rust_language::language_arch_info): ...here, a new member
9537 function.
9538 (rust_language_data): Delete la_language_arch_info.
9539
9540 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9541
9542 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9543 initializer.
9544 * c-lang.c (c_language_data): Likewise.
9545 (cplus_language_data): Likewise.
9546 (cplus_language::pass_by_reference_info): New method.
9547 (asm_language_data): Delete la_pass_by_reference initializer.
9548 (minimal_language_data): Likewise.
9549 * cp-abi.c (cp_pass_by_reference): Remove use of
9550 default_pass_by_reference.
9551 * d-lang.c (d_language_data): Likewise.
9552 * f-lang.c (f_language_data): Likewise.
9553 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9554 default_pass_by_reference.
9555 * go-lang.c (go_language_data): Likewise.
9556 * language.c (language_pass_by_reference): Update.
9557 (default_pass_by_reference): Delete.
9558 (unknown_language_data): Delete la_pass_by_reference
9559 initializer.
9560 (auto_language_data): Likewise.
9561 * language.h (struct language_data): Delete la_pass_by_reference
9562 field.
9563 (language_defn::pass_by_reference_info): New member function.
9564 (default_pass_by_reference): Delete declaration.
9565 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9566 initializer.
9567 * objc-lang.c (objc_language_data): Likewise.
9568 * opencl-lang.c (opencl_language_data): Likewise.
9569 * p-lang.c (pascal_language_data): Likewise.
9570 * rust-lang.c (rust_language_data): Likewise.
9571
9572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9573
9574 * ada-lang.c (ada_read_var_value): Delete function, move
9575 implementation to...
9576 (ada_language::read_var_value): ...here.
9577 (ada_language_data): Delete la_read_var_value initializer.
9578 * c-lang.c (c_language_data): Likewise.
9579 (cplus_language_data): Likewise.
9580 (minimal_language_data): Likewise.
9581 * d-lang.c (d_language_data): Likewise.
9582 * f-lang.c (f_language_data): Likewise.
9583 * findvar.c (default_read_var_value): Rename to...
9584 (language_defn::read_var_value): ...this.
9585 * findvar.c (read_var_value): Update header comment, and change to
9586 call member function instead of function pointer.
9587 * go-lang.c (go_language_data): Likewise.
9588 * language.c (unknown_language_data): Delete la_read_var_value
9589 initializer.
9590 (auto_language_data): Likewise.
9591 * language.h (struct language_data): Delete la_read_var_value
9592 field.
9593 (language_defn::read_var_value): New member function.
9594 (default_read_var_value): Delete declaration.
9595 * m2-lang.c (m2_language_data): Delete la_read_var_value
9596 initializer.
9597 * objc-lang.c (objc_language_data): Likewise.
9598 * opencl-lang.c (opencl_language_data): Likewise.
9599 * p-lang.c (pascal_language_data): Likewise.
9600 * rust-lang.c (rust_language_data): Likewise.
9601 * value.h (default_read_var_value): Delete declaration.
9602
9603 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * ada-lang.c (ada_print_array_index): Delete function, move
9606 implementation to...
9607 (ada_language::print_array_index): ...here.
9608 (ada_language_data): Delete la_print_array_index initializer.
9609 * c-lang.c (c_language_data): Likewise.
9610 (cplus_language_data): Likewise.
9611 (minimal_language_data): Likewise.
9612 * d-lang.c (d_language_data): Likewise.
9613 * f-lang.c (f_language_data): Likewise.
9614 * go-lang.c (go_language_data): Likewise.
9615 * language.c (default_print_array_index): Delete function, move
9616 implementation to...
9617 (language_defn::print_array_index): ...here.
9618 (unknown_language_data): Delete la_print_array_index initializer.
9619 (auto_language_data): Likewise.
9620 * language.h (struct language_data): Delete la_print_array_index
9621 field.
9622 (language_defn::print_array_index): New member function.
9623 (LA_PRINT_ARRAY_INDEX): Update.
9624 (default_print_array_index): Delete declaration.
9625 * m2-lang.c (m2_language_data): Delete la_print_array_index
9626 initializer.
9627 * objc-lang.c (objc_language_data): Likewise.
9628 * opencl-lang.c (opencl_language_data): Likewise.
9629 * p-lang.c (pascal_language_data): Likewise.
9630 * rust-lang.c (rust_language_data): Likewise.
9631
9632 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9633
9634 * gdb/ada-lang.c (ada_language_defn): Convert to...
9635 (ada_language_data): ...this.
9636 (class ada_language): New class.
9637 (ada_language_defn): New static global.
9638 * gdb/c-lang.c (c_language_defn): Convert to...
9639 (c_language_data): ...this.
9640 (class c_language): New class.
9641 (c_language_defn): New static global.
9642 (cplus_language_defn): Convert to...
9643 (cplus_language_data): ...this.
9644 (class cplus_language): New class.
9645 (cplus_language_defn): New static global.
9646 (asm_language_defn): Convert to...
9647 (asm_language_data): ...this.
9648 (class asm_language): New class.
9649 (asm_language_defn): New static global.
9650 (minimal_language_defn): Convert to...
9651 (minimal_language_data): ...this.
9652 (class minimal_language): New class.
9653 (minimal_language_defn): New static global.
9654 * gdb/d-lang.c (d_language_defn): Convert to...
9655 (d_language_data): ...this.
9656 (class d_language): New class.
9657 (d_language_defn): New static global.
9658 * gdb/f-lang.c (f_language_defn): Convert to...
9659 (f_language_data): ...this.
9660 (class f_language): New class.
9661 (f_language_defn): New static global.
9662 * gdb/go-lang.c (go_language_defn): Convert to...
9663 (go_language_data): ...this.
9664 (class go_language): New class.
9665 (go_language_defn): New static global.
9666 * gdb/language.c (unknown_language_defn): Remove declaration.
9667 (current_language): Initialize to nullptr, real initialization is
9668 moved to _initialize_language.
9669 (languages): Delete global.
9670 (language_defn::languages): Define.
9671 (set_language_command): Use language_defn::languages.
9672 (set_language): Likewise.
9673 (range_error): Likewise.
9674 (language_enum): Likewise.
9675 (language_def): Likewise.
9676 (add_set_language_command): Use language_def::languages for the
9677 language list, and language_def to lookup language pointers.
9678 (skip_language_trampoline): Use language_defn::languages.
9679 (unknown_language_defn): Convert to...
9680 (unknown_language_data): ...this.
9681 (class unknown_language): New class.
9682 (unknown_language_defn): New static global.
9683 (auto_language_defn): Convert to...
9684 (auto_language_data): ...this.
9685 (class auto_language): New class.
9686 (auto_language_defn): New static global.
9687 (language_gdbarch_post_init): Use language_defn::languages.
9688 (_initialize_language): Initialize current_language.
9689 * gdb/language.h (struct language_defn): Rename to...
9690 (struct language_data): ...this.
9691 (struct language_defn): New.
9692 (auto_language_defn): Delete.
9693 (unknown_language_defn): Delete.
9694 (minimal_language_defn): Delete.
9695 (ada_language_defn): Delete.
9696 (asm_language_defn): Delete.
9697 (c_language_defn): Delete.
9698 (cplus_language_defn): Delete.
9699 (d_language_defn): Delete.
9700 (f_language_defn): Delete.
9701 (go_language_defn): Delete.
9702 (m2_language_defn): Delete.
9703 (objc_language_defn): Delete.
9704 (opencl_language_defn): Delete.
9705 (pascal_language_defn): Delete.
9706 (rust_language_defn): Delete.
9707 * gdb/m2-lang.c (m2_language_defn): Convert to...
9708 (m2_language_data): ...this.
9709 (class m2_language): New class.
9710 (m2_language_defn): New static global.
9711 * gdb/objc-lang.c (objc_language_defn): Convert to...
9712 (objc_language_data): ...this.
9713 (class objc_language): New class.
9714 (objc_language_defn): New static global.
9715 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9716 (opencl_language_data): ...this.
9717 (class opencl_language): New class.
9718 (opencl_language_defn): New static global.
9719 * gdb/p-lang.c (pascal_language_defn): Convert to...
9720 (pascal_language_data): ...this.
9721 (class pascal_language): New class.
9722 (pascal_language_defn): New static global.
9723 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9724 language pointer, update comment format.
9725 * gdb/rust-lang.c (rust_language_defn): Convert to...
9726 (rust_language_data): ...this.
9727 (class rust_language): New class.
9728 (rust_language_defn): New static global.
9729
9730 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9733 member variable.
9734 <m_stmt_at_address>: New member variable.
9735 (lnp_state_machine::record_line): Don't record some lines, update
9736 tracking of is_stmt at the same address.
9737 (lnp_state_machine::lnp_state_machine): Initialise new member
9738 variables.
9739
9740 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9741
9742 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9743 "-include gnu-nat-mig.h".
9744 * gnu-nat-mig.h: New file.
9745 * gnu-nat.c: Include "gnu-nat-mig.h".
9746 (exc_server, msg_reply_server, notify_server,
9747 process_reply_server): Remove declarations.
9748
9749 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9750
9751 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9752 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9753 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9754 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9755 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9756 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9757 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9758 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9759 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9760 to gnu_nat_target class.
9761 * gnu-nat.c: Likewise.
9762 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9763 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9764 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9765 object.
9766 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9767 instead of `gnu_target'.
9768
9769 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9770
9771 * i386-gnu-tdep.c: Include "gdbcore.h"
9772 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9773 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9774 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9775 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9776 i386_gnu_sigcontext_addr): New functions
9777 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9778 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9779 tdep.
9780
9781 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9782
9783 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9784 before fork_inferior call. Avoid calling it if target_is_pushed returns
9785 true.
9786
9787 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9788
9789 * gnu-nat.h (gnu_target): New variable declaration.
9790 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9791 gnu_target.
9792 * gnu-nat.c (gnu_target): New variable.
9793 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9794 add_thread_silent, and add_thread calls.
9795 (gnu_nat_target::create_inferior): Pass gnu_target to
9796 add_thread_silent, thread_change_ptid call.
9797 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9798 call.
9799
9800 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9801
9802 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9803 (gnu_nat_target::find_memory_regions): Remove unused
9804 `old_address' variable.
9805
9806 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9807
9808 * gnu-nat.c: Include "gdbarch.h".
9809
9810 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9811
9812 * reply_mig_hack.awk (Error return): Cast function through
9813 void *, to bypass compiler function call check.
9814
9815 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9816
9817 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9818 $(srcdir)/reply_mig_hack.awk.
9819
9820 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9821
9822 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9823
9824 2020-05-30 Jonny Grant <jg@jguk.org>
9825
9826 * configure.ac (ACX_BUGURL): change bug URL to https.
9827
9828 2020-05-30 Pedro Alves <palves@redhat.com>
9829
9830 * cp-support.c (replace_typedefs_template): New.
9831 (replace_typedefs_qualified_name): Handle
9832 DEMANGLE_COMPONENT_TEMPLATE.
9833
9834 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9837 dwarf2/index-cache.h, dwarf2/index-write.c,
9838 dwarf2/index-write.h, dwarf2/line-header.c,
9839 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9840 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9841 variables and fields from `dwarf2_per_objfile` to just
9842 `per_objfile` throughout.
9843
9844 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9845
9846 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9847 <push_dwarf_reg_entry_value>: Add comment.
9848
9849 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9850 Keith Seitz <keiths@redhat.com>
9851
9852 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9853 instead of PyEval_ReleaseLock.
9854 (class gdbpy_gil): Move to earlier in file.
9855 (finalize_python): Set gdb_python_initialized.
9856 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9857 when not initialized.
9858
9859 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9862 <push_dwarf_reg_entry_value>: Remove assert. Override
9863 per_objfile with caller_per_objfile.
9864
9865 2020-05-28 Tom de Vries <tdevries@suse.de>
9866
9867 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9868 PR gold/15646 workaround to symbol kind "type".
9869
9870 2020-05-27 Tom Tromey <tromey@adacore.com>
9871
9872 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9873
9874 2020-05-27 Tom Tromey <tromey@adacore.com>
9875
9876 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9877 Use htab_find_with_hash.
9878 <add_abbrev>: Remove "abbrev_number" parameter.
9879 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9880 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9881 (hash_abbrev): Add comment.
9882 (abbrev_table::lookup_abbrev): Move to header file.
9883 (abbrev_table::read): Update.
9884
9885 2020-05-27 Tom Tromey <tromey@adacore.com>
9886
9887 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9888 method.
9889 <canonical_name>: New member.
9890 <raw_name>: Rename from "name".
9891 (partial_die_info): Initialize canonical_name.
9892 (scan_partial_symbols): Check raw_name.
9893 (partial_die_parent_scope, partial_die_full_name)
9894 (add_partial_symbol, add_partial_subprogram)
9895 (add_partial_enumeration, load_partial_dies): Use "name" method.
9896 (partial_die_info::name): New method.
9897 (partial_die_info::read, guess_partial_die_structure_name)
9898 (partial_die_info::fixup): Update.
9899
9900 2020-05-27 Tom Tromey <tromey@adacore.com>
9901
9902 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9903 <get_ref_die_offset>: Inline.
9904 <get_ref_die_offset_complaint>: New method.
9905 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9906 (attribute::get_ref_die_offset_complaint): Rename from
9907 get_ref_die_offset. Just issue complaint.
9908
9909 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9910
9911 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9912
9913 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9914
9915 * exec.c (exec_file_attach): Use errno value of first openp failure.
9916
9917 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9918
9919 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9920 Don't close thread handle.
9921
9922 2020-05-27 Tom Tromey <tom@tromey.com>
9923 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9926 shared_ptr.
9927 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9928 member.
9929 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9930 dwarf2_per_bfd_objfile_data_key>: New globals.
9931 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9932 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9933 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9934 shared.
9935 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9936 short-circuit when sharing.
9937 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9938 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9939
9940 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9943 to...
9944 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9945 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9946
9947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9950 build_name_components, find_name_components_bounds>:
9951 Add per_objfile parameter.
9952 (struct mapped_index) <symbol_name_at>: Likewise.
9953 (struct mapped_debug_names): Remove constructor.
9954 <dwarf2_per_objfile>: Remove field.
9955 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9956 (mapped_index_base::find_name_components_bounds,
9957 mapped_index_base::build_name_components,
9958 dw2_expand_symtabs_matching_symbol): Likewise.
9959 (class mock_mapped_index) <symbol_name_at>: Likewise.
9960 (check_match): Likewise.
9961 (check_find_bounds_finds): Likewise.
9962 (test_mapped_index_find_name_component_bounds): Update.
9963 (CHECK_MATCH): Update.
9964 (dw2_expand_symtabs_matching): Update.
9965 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9966 per_objfile parameter.
9967 <find_vec_in_debug_names>: Likewise.
9968 <m_per_objfile>: New field.
9969 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9970 parameter.
9971 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9972 (dw2_debug_names_iterator::next): Update.
9973 (dw2_debug_names_lookup_symbol): Update.
9974 (dw2_debug_names_expand_symtabs_for_function): Update.
9975 (dw2_debug_names_map_matching_symbols): Update.
9976 (dw2_debug_names_expand_symtabs_matching): Update.
9977 (dwarf2_read_debug_names): Update.
9978
9979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9982 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9983 move to dwarf2_per_objfile.
9984 <read_in_chain>: Remove.
9985 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9986 remove_all_cus, age_comp_units>: New methods.
9987 <m_dwarf2_cus>: New member.
9988 (struct dwarf2_per_cu_data) <cu>: Remove.
9989 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9990 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9991 moved to methods of dwarf2_per_objfile.
9992 (dwarf2_clear_marks): Remove.
9993 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9994 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9995 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9996 (dwarf2_per_objfile::remove_all_cus): New.
9997 (class free_cached_comp_units) <~free_cached_comp_units>:
9998 Update.
9999 (load_cu): Update.
10000 (dw2_do_instantiate_symtab): Adjust.
10001 (fill_in_sig_entry_from_dwo_entry): Adjust.
10002 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10003 (cutu_reader::cutu_reader): Likewise.
10004 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10005 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10006 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10007 and dwarf2_per_objfile::age_comp_units.
10008 (load_partial_comp_unit): Update.
10009 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10010 (process_queue): Likewise.
10011 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10012 backlink.
10013 (dwarf2_read_addr_index): Likewise.
10014 (follow_die_offset): Likewise.
10015 (dwarf2_fetch_die_loc_sect_off): Likewise.
10016 (dwarf2_fetch_constant_bytes): Likewise.
10017 (dwarf2_fetch_die_type_sect_off): Likewise.
10018 (follow_die_sig_1): Likewise.
10019 (load_full_type_unit): Likewise.
10020 (read_signatured_type): Likewise.
10021 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10022 (dwarf2_cu::~dwarf2_cu): Remove.
10023 (dwarf2_per_objfile::get_cu): New.
10024 (dwarf2_per_objfile::set_cu): New.
10025 (age_cached_comp_units): Rename to...
10026 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10027 to std::unordered_map.
10028 (free_one_cached_comp_unit): Rename to...
10029 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10030 to std::unordered_map.
10031 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10032 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10033 a dwarf2_per_objfile in data.
10034 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10035 (dwarf2_clear_marks): Remove.
10036
10037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10040 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10041 (init_tu_and_read_dwo_dies): Likewise.
10042 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10043 (cutu_reader::cutu_reader): Likewise.
10044 (load_partial_comp_unit): Likewise.
10045 (process_psymtab_comp_unit): Update.
10046 (build_type_psymtabs_1): Update.
10047 (process_skeletonless_type_unit): Update.
10048 (load_full_comp_unit): Update.
10049 (find_partial_die): Update.
10050 (dwarf2_read_addr_index): Update.
10051 (read_signatured_type): Update.
10052
10053 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10056 m_header_read_in>: New fields.
10057 <get_header>: New method.
10058 * dwarf2/read.c (per_cu_header_read_in): Remove.
10059 (dwarf2_per_cu_data::get_header): New.
10060 (dwarf2_per_cu_data::addr_size): Update.
10061 (dwarf2_per_cu_data::offset_size): Update.
10062 (dwarf2_per_cu_data::ref_addr_size): Update.
10063
10064 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10065
10066 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10067 (dw2_do_instantiate_symtab): Update.
10068 (queue_and_load_all_dwo_tus): Change parameter from
10069 dwarf2_per_cu_data to dwarf2_cu.
10070 (dwarf2_fetch_die_loc_sect_off): Update.
10071 (dwarf2_fetch_constant_bytes): Update.
10072 (dwarf2_fetch_die_type_sect_off): Update.
10073
10074 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10075
10076 * dwarf2/read.c (process_full_comp_unit,
10077 process_full_type_unit): Remove per_cu, per_objfile paramters.
10078 Add dwarf2_cu parameter.
10079 (process_queue): Update.
10080
10081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10082
10083 * dwarf2/read.c (create_cu_from_index_list): Replace
10084 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10085 (create_cus_from_index_list): Likewise.
10086 (create_cus_from_index): Likewise.
10087 (create_signatured_type_table_from_index): Likewise.
10088 (create_cus_from_debug_names_list): Likewise.
10089 (create_cus_from_debug_names): Likewise.
10090 (dwarf2_read_gdb_index): Update.
10091 (dwarf2_read_debug_names): Update.
10092
10093 2020-05-27 Tom Tromey <tom@tromey.com>
10094 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * dwarf2/read.h (struct dwarf2_per_objfile)
10097 <get_type_for_signatured_type, set_type_for_signatured_type>:
10098 New methods.
10099 <m_type_map>: New member.
10100 (struct signatured_type) <type>: Remove.
10101 * dwarf2/read.c
10102 (dwarf2_per_objfile::get_type_for_signatured_type,
10103 dwarf2_per_objfile::set_type_for_signatured_type): New.
10104 (get_signatured_type): Use new methods.
10105
10106 2020-05-27 Tom Tromey <tom@tromey.com>
10107 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10110 (struct dwarf2_per_objfile) <type_units>: New member.
10111 <get_type_unit_group_unshareable>: New method.
10112 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10113 num_symtabs, symtabs>: Remove; move to
10114 type_unit_group_unshareable.
10115 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10116 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10117 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10118
10119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * dwarf2/read.h (struct dwarf2_per_cu_data):
10122 <dwarf2_per_objfile>: Remove.
10123 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10124 dwarf2_per_objfile.
10125 (create_signatured_type_table_from_index): Likewise.
10126 (create_signatured_type_table_from_debug_names): Likewise.
10127 (create_debug_type_hash_table): Likewise.
10128 (fill_in_sig_entry_from_dwo_entry): Likewise.
10129 (create_type_unit_group): Likewise.
10130 (read_comp_units_from_section): Likewise.
10131 (create_cus_hash_table): Likewise.
10132
10133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10136 dwarf2_per_cu_data::dwarf2_per_objfile.
10137 (compute_compunit_symtab_includes): Likewise.
10138 (dwarf2_cu::start_symtab): Likewise.
10139
10140 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10141
10142 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10143 parameter.
10144 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10145 (read_namespace_alias): Update.
10146 (lookup_die_type): Update.
10147 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10148 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10149 Update.
10150 (disassemble_dwarf_expression): Update.
10151
10152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * dwarf2/read.h (struct dwarf2_queue_item): Add
10155 dwarf2_per_objfile parameter, assign new parameter.
10156 <per_objfile>: New field.
10157 * dwarf2/read.c (free_one_cached_comp_unit): Add
10158 dwarf2_per_objfile parameter.
10159 (queue_comp_unit): Likewise.
10160 (dw2_do_instantiate_symtab): Update.
10161 (process_psymtab_comp_unit): Update.
10162 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10163 (process_imported_unit_die): Update.
10164 (queue_and_load_dwo_tu): Update.
10165 (follow_die_offset): Update.
10166 (follow_die_sig_1): Update.
10167
10168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10171 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10172 (read_call_site_scope): Assign per_objfile.
10173 (dwarf2_per_cu_data::objfile): Remove.
10174 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10175 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10176 dwarf2_per_objfile parameter.
10177 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10178 dwarf2_per_objfile parameter.
10179 (dwarf_expr_reg_to_entry_parameter): Add output
10180 dwarf2_per_objfile parameter.
10181 (locexpr_get_frame_base): Update.
10182 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10183 <push_dwarf_reg_entry_value>: Update.
10184 <call_site_to_target_addr>: Update.
10185 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10186 parameter.
10187 (value_of_dwarf_reg_entry): Update.
10188 (rw_pieced_value): Update.
10189 (indirect_synthetic_pointer): Update.
10190 (dwarf2_evaluate_property): Update.
10191 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10192 parameter.
10193 (locexpr_read_variable): Update.
10194 (locexpr_get_symbol_read_needs): Update.
10195 (loclist_read_variable): Update.
10196
10197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10198
10199 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10200 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10201 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10202 parameter.
10203 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10204 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10205 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10206 parameter.
10207 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10208 sect_variable_value): Add dwarf2_per_objfile parameter.
10209 (class dwarf_evaluate_loc_desc) <dwarf_call,
10210 dwarf_variable_value>: Update.
10211 (fetch_const_value_from_synthetic_pointer): Add
10212 dwarf2_per_objfile parameter.
10213 (fetch_const_value_from_synthetic_pointer): Update.
10214 (coerced_pieced_ref): Update.
10215 (class symbol_needs_eval_context) <dwarf_call,
10216 dwarf_variable_value>: Update.
10217 (dwarf2_compile_expr_to_ax): Update.
10218
10219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10220
10221 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10222 parameter.
10223 (dwarf2_evaluate_loc_desc_full): Update.
10224
10225 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10228 parameter.
10229 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10230 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10231 dwarf2_per_objfile parameter.
10232 (decode_debug_loc_dwo_addresses): Likewise.
10233 (dwarf2_find_location_expression): Update.
10234 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10235 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10236 parameter.
10237 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10238 parameter.
10239 (locexpr_describe_location_1): Likewise.
10240 (locexpr_describe_location): Update.
10241
10242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10245 Remove.
10246 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10247 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10248 (dwarf2_compile_property_to_c): Update.
10249 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10250 use text offset from objfile.
10251 (locexpr_tracepoint_var_ref): Update.
10252 (locexpr_generate_c_location): Update.
10253 (loclist_describe_location): Update.
10254 (loclist_tracepoint_var_ref): Update.
10255 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10256 dwarf2_per_objfile parameter.
10257 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10258 use text offset from objfile.
10259 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10260
10261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * dwarf2/expr.h (struct dwarf_expr_context)
10264 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10265 <offset>: Remove.
10266 <per_objfile>: New member.
10267 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10268 dwarf2_per_objfile parameter. Don't set offset, set
10269 per_objfile.
10270 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10271 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10272 a dwarf2_per_objfile object instead of an offset.
10273 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10274 constructor.
10275 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10276 to dwarf2_expr_executor constructor. Don't set offset.
10277 (dwarf2_fetch_cfa_info): Update.
10278 (struct dwarf2_frame_cache) <text_offset>: Remove.
10279 <per_objfile>: New field.
10280 (dwarf2_frame_cache): Update.
10281 (dwarf2_frame_prev_register): Update.
10282 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10283 <dwarf_evaluate_loc_desc>: Add constructor.
10284 (dwarf2_evaluate_loc_desc_full): Update.
10285 (dwarf2_locexpr_baton_eval): Update.
10286 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10287 Add constructor.
10288 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10289
10290 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10293 addr_sized_int_type>: Move to dwarf2_cu.
10294 <int_type>: Move to dwarf2_per_objfile.
10295 (struct dwarf2_per_objfile) <int_type>: Move here.
10296 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10297 addr_sized_int_type>: Move here.
10298 (read_func_scope): Update.
10299 (read_array_type): Update.
10300 (read_tag_string_type): Update.
10301 (attr_to_dynamic_prop): Update.
10302 (dwarf2_per_cu_data::int_type): Rename to...
10303 (dwarf2_per_objfile::int_type): ... this.
10304 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10305 (dwarf2_cu::addr_sized_int_type): ... this.
10306 (read_subrange_type): Update.
10307 (dwarf2_per_cu_data::addr_type): Rename to...
10308 (dwarf2_cu::addr_type): ... this.
10309 (set_die_type): Update.
10310
10311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10312
10313 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10314 data through per_cu->cu.
10315
10316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10317
10318 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10319 dwarf2_per_cu_data parameter fo dwarf2_cu.
10320 (lookup_dwo_type_unit): Likewise.
10321 (read_cutu_die_from_dwo): Likewise.
10322 (lookup_dwo_unit): Likewise.
10323 (open_and_init_dwo_file): Likewise.
10324 (lookup_dwo_cutu): Likewise.
10325 (lookup_dwo_comp_unit): Likewise.
10326 (lookup_dwo_type_unit): Likewise.
10327 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10328 (cutu_reader::cutu_reader): Update.
10329
10330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10331
10332 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10333 parameter.
10334 (process_full_type_unit): Likewise.
10335 (process_queue): Update.
10336
10337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * dwarf2/read.c (recursively_compute_inclusions): Add
10340 dwarf2_per_objfile parameter.
10341 (compute_compunit_symtab_includes): Likewise.
10342 (process_cu_includes): Update.
10343
10344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10345
10346 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10347 parameter.
10348 (create_type_unit_group): Update.
10349 (process_psymtab_comp_unit_reader): Update.
10350 (build_type_psymtabs_reader): Update.
10351
10352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10355 object through m_this_cu->cu.
10356
10357 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10360 the info parameter.
10361 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10362
10363 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10364
10365 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10366 per_objfile parameter.
10367 (load_full_type_unit): Add per_objfile parameter.
10368 (read_signatured_type): Likewise.
10369 (load_full_comp_unit): Likewise.
10370 (load_cu): Likewise.
10371 (dw2_do_instantiate_symtab): Likewise.
10372 (dw2_get_file_names): Likewise.
10373 (dw2_map_symtabs_matching_filename): Update.
10374 (dw_expand_symtabs_matching_file_matcher): Update.
10375 (dw2_map_symbol_filenames): Update.
10376 (process_psymtab_comp_unit): Add per_objfile parameter.
10377 (build_type_psymtabs_1): Update.
10378 (process_skeletonless_type_unit): Update.
10379 (dwarf2_build_psymtabs_hard): Update.
10380 (load_partial_comp_unit): Add per_objfile parameter.
10381 (scan_partial_symbols): Update.
10382 (load_full_comp_unit): Add per_objfile parameter.
10383 (process_imported_unit_die): Update.
10384 (create_cus_hash_table): Update.
10385 (find_partial_die): Update.
10386 (dwarf2_read_addr_index): Update.
10387 (follow_die_offset): Update.
10388 (dwarf2_fetch_die_loc_sect_off): Update.
10389 (dwarf2_fetch_constant_bytes): Update.
10390 (dwarf2_fetch_die_type_sect_off): Update.
10391 (follow_die_sig_1): Update.
10392 (load_full_type_unit): Add per_objfile parameter.
10393 (read_signatured_type): Likewise.
10394
10395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10398 of objfile_name.
10399
10400 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10401
10402 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10403 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10404 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10405 field.
10406 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10407 (create_cus_from_index): Update.
10408 (dwarf2_read_gdb_index): Update.
10409 (create_cus_from_debug_names): Update.
10410 (dwarf2_read_debug_names): Update.
10411 (get_abbrev_section_for_cu): Update.
10412 (create_all_comp_units): Update.
10413 (read_attribute_value): Update.
10414 (get_debug_line_section): Update.
10415 * dwarf2/index-cache.c (index_cache::store): Update.
10416 * dwarf2/index-write.c (save_gdb_index_command): Update.
10417 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10418
10419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10420
10421 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10422 member.
10423 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10424 dwarf2_per_cu_data::per_bfd.
10425 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10426 (create_type_unit_group): Likewise.
10427 (queue_comp_unit): Remove reference to
10428 per_cu->dwarf2_per_objfile.
10429 (maybe_queue_comp_unit): Likewise.
10430 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10431 (create_cus_hash_table): Assign new field.
10432
10433 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10434
10435 * dwarf2/read.c: Replace
10436 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10437 dwarf2_cu->per_objfile throughout.
10438
10439 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10440
10441 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10442 parameter, don't use per_cu->dwarf2_per_objfile.
10443 (dw2_instantiate_symtab): Likewise.
10444 (dw2_find_last_source_symtab): Update.
10445 (dw2_map_expand_apply): Update.
10446 (dw2_lookup_symbol): Update.
10447 (dw2_expand_symtabs_for_function): Update.
10448 (dw2_expand_all_symtabs): Update.
10449 (dw2_expand_symtabs_with_fullname): Update.
10450 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10451 don't use per_cu->dwarf2_per_objfile.
10452 (dw2_expand_marked_cus): Update.
10453 (dw2_find_pc_sect_compunit_symtab): Update.
10454 (dw2_debug_names_lookup_symbol): Update.
10455 (dw2_debug_names_expand_symtabs_for_function): Update.
10456 (dw2_debug_names_map_matching_symbols): Update.
10457 (dwarf2_psymtab::expand_psymtab): Update.
10458
10459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10462 <per_objfile>: New member.
10463 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10464 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10465 call to dwarf2_cu.
10466 (cutu_reader::cutu_reader): Update.
10467 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10468
10469 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10472 struct dwarf2_per_objfile.
10473 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10474 dwarf2_per_bfd.
10475 * dwarf2/read.c (set_die_type): Update.
10476 (get_die_type_at_offset): Update.
10477
10478 2020-05-27 Tom Tromey <tom@tromey.com>
10479 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10482 method.
10483 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10484 get_symtab, set_symtab>: New methods.
10485 <m_symtabs>: New field.
10486 (struct dwarf2_psymtab): Derive from partial_symtab.
10487 <readin_p, get_compunit_symtab>: Declare methods.
10488 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10489 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10490 New methods.
10491 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10492 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10493 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10494 (dw2_symtab_iter_next, dw2_print_stats)
10495 (dw2_expand_symtabs_with_fullname)
10496 (dw2_expand_symtabs_matching_one)
10497 (dw_expand_symtabs_matching_file_matcher)
10498 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10499 (dw2_debug_names_iterator::next)
10500 (dw2_debug_names_map_matching_symbols)
10501 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10502 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10503 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10504 New methods.
10505 (get_compunit_symtab, process_full_comp_unit)
10506 (process_full_type_unit): Update.
10507 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10508
10509 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10510
10511 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10512 then introduce a new dwarf2_per_objfile type.
10513 <read_line_string>: Move to the new dwarf2_per_objfile type.
10514 <objfile>: Likewise.
10515 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10516 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10517 dwarf2_per_objfile->per_bfd.
10518 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10519 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10520 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10521 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10522 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10523 (dwarf2_per_objfile::locate_sections): Rename to...
10524 (dwarf2_per_bfd::locate_sections): ... this.
10525 (dwarf2_per_objfile::get_cutu): Rename to...
10526 (dwarf2_per_bfd::get_cutu): ... this.
10527 (dwarf2_per_objfile::get_cu): Rename to...
10528 (dwarf2_per_bfd::get_cu): ... this.
10529 (dwarf2_per_objfile::get_tu): Rename to...
10530 (dwarf2_per_bfd::get_tu): ... this.
10531 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10532 (dwarf2_per_bfd::allocate_per_cu): ... this.
10533 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10534 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10535 (get_gdb_index_contents_ftype): Change parameter from
10536 dwarf2_per_objfile to dwarf2_per_bfd.
10537 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10538 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10539
10540 2020-05-27 Tom Tromey <tom@tromey.com>
10541 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10544 (allocate_piece_closure): Set "per_objfile" member.
10545 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10546 (locexpr_describe_location, loclist_describe_location): Use new
10547 member.
10548 * dwarf2/read.c (read_call_site_scope)
10549 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10550 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10551 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10552 handle_data_member_location): Set per_objfile member.
10553 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10554 member.
10555 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10556
10557 2020-05-27 Tom Tromey <tom@tromey.com>
10558
10559 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10560 allocate_signatured_type>: Declare new methods.
10561 <m_num_psymtabs>: New member.
10562 (struct dwarf2_per_cu_data) <index>: New member.
10563 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10564 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10565 (create_cu_from_index_list): Use allocate_per_cu.
10566 (create_signatured_type_table_from_index)
10567 (create_signatured_type_table_from_debug_names)
10568 (create_debug_type_hash_table, add_type_unit)
10569 (read_comp_units_from_section): Use allocate_signatured_type.
10570
10571 2020-05-27 Tom Tromey <tom@tromey.com>
10572
10573 * psymtab.c (partial_map_expand_apply)
10574 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10575 (psym_lookup_global_symbol_language)
10576 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10577 (psym_print_stats, psym_expand_symtabs_for_function)
10578 (psym_map_symbol_filenames, psym_map_matching_symbols)
10579 (psym_expand_symtabs_matching)
10580 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10581 (maintenance_check_psymtabs): Update.
10582 * psympriv.h (struct partial_symtab) <readin_p,
10583 get_compunit_symtab>: Add objfile parameter.
10584 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10585 Likewise.
10586 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10587 get_compunit_symtab>: Likewise.
10588 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10589
10590 2020-05-27 Tom Tromey <tom@tromey.com>
10591
10592 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10593 member.
10594 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10595 (create_cu_from_index_list)
10596 (create_signatured_type_table_from_index)
10597 (create_signatured_type_table_from_debug_names)
10598 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10599 (dwarf2_create_include_psymtab)
10600 (create_debug_type_hash_table, add_type_unit)
10601 (create_type_unit_group, read_comp_units_from_section)
10602 (dwarf2_compute_name, create_cus_hash_table)
10603 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10604 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10605 obstack.
10606 (dw2_get_real_path): Likewise. Change argument to
10607 dwarf2_per_objfile.
10608
10609 2020-05-27 Luis Machado <luis.machado@linaro.org>
10610
10611 PR tdep/26000
10612 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10613 for ldrd (immediate).
10614
10615 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10616
10617 * command.h: Add comment giving the name of class_tui.
10618 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10619 create the fake command for the help for class_tui.
10620
10621 2020-05-26 Tom Tromey <tromey@adacore.com>
10622
10623 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10624 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10625 (val_atr): New function.
10626 (value_val_atr): Use it.
10627 * ada-valprint.c (print_optional_low_bound): Change low bound
10628 handling for enums.
10629 (val_print_packed_array_elements): Don't call discrete_position.
10630 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10631 discrete_position for enum types.
10632 * language.c (default_print_array_index): Change type.
10633 * language.h (struct language_defn) <la_print_array_index>: Add
10634 index_type parameter, change type of index_value.
10635 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10636 (default_print_array_index): Update.
10637 * valprint.c (maybe_print_array_index): Don't call
10638 value_from_longest. Update.
10639 (value_print_array_elements): Don't call discrete_position.
10640
10641 2020-05-26 Tom Tromey <tromey@adacore.com>
10642
10643 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10644 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10645
10646 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10647
10648 PR gdb/13519
10649 * avr-tdep.c (avr_integer_to_address): Return data or code
10650 address accordingly to the second 'type' argument of the
10651 function.
10652
10653 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10654
10655 * infcmd.c, inferior.h: (construct_inferior_arguments):
10656 Moved function from here to gdbsupport/common-inferior.{h,cc}
10657
10658 2020-05-23 Tom Tromey <tom@tromey.com>
10659
10660 Revert commit eca1f90c:
10661 * NEWS: Remove entry for completion styling.
10662 * completer.c (_rl_completion_prefix_display_length): Move
10663 declaration later.
10664 (gdb_fnprint): Revert.
10665 (gdb_display_match_list_1): Likewise.
10666 * cli/cli-style.c (completion_prefix_style)
10667 (completion_difference_style, completion_suffix_style): Remove.
10668 (_initialize_cli_style): Revert.
10669 * cli/cli-style.h (completion_prefix_style)
10670 (completion_difference_style, completion_suffix_style): Don't
10671 declare.
10672
10673 2020-05-24 Pedro Alves <palves@redhat.com>
10674
10675 * symtab.c (completion_list_add_name): Return boolean indication
10676 of whether the symbol matched.
10677 (completion_list_add_symbol): Don't try to remove C++ aliases if
10678 the symbol didn't match in the first place.
10679 * symtab.h (completion_list_add_name): Return bool.
10680
10681 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10682
10683 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10684 type::field.
10685
10686 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10687
10688 GDB 9.2 released.
10689
10690 2020-05-23 Tom Tromey <tom@tromey.com>
10691
10692 * NEWS: Add entry for completion styling.
10693 * completer.c (_rl_completion_prefix_display_length): Move
10694 declaration earlier.
10695 (gdb_fnprint): Use completion_style.
10696 (gdb_display_match_list_1): Likewise.
10697 * cli/cli-style.c (completion_prefix_style)
10698 (completion_difference_style, completion_suffix_style): New
10699 globals.
10700 (_initialize_cli_style): Register new globals.
10701 * cli/cli-style.h (completion_prefix_style)
10702 (completion_difference_style, completion_suffix_style): Declare.
10703
10704 2020-05-23 Pedro Alves <palves@redhat.com>
10705
10706 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10707 (parse_escape): Use ISDIGIT instead of isdigit.
10708 (puts_debug): Use gdb_isprint instead of isprint.
10709 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10710 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10711 ISSPACE instead of isspace.
10712 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10713 instead of isspace.
10714 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10715 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10716 instead of isxdigit and ISDIGIT instead of isdigit.
10717
10718 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * gdbtypes.h (struct type) <field>: New method.
10721 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10722 or type::field.
10723
10724 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10727 (TYPE_FIELDS): Use type::fields. Change all call sites that
10728 modify the propery to use type::set_fields instead.
10729
10730 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10733 type::num_fields instead.
10734
10735 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10738 methods.
10739 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10740 that modify the number of fields to use type::set_num_fields
10741 instead.
10742
10743 2020-05-22 Tom Tromey <tromey@adacore.com>
10744
10745 * compile/compile-object-load.h (munmap_list_free): Don't
10746 declare.
10747
10748 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * annotate.c (annotate_source_line): Update return type, add call
10751 to update current symtab and line.
10752 * annotate.h (annotate_source_line): Update return type, and
10753 extend header comment.
10754 * source.c (info_line_command): Check annotation_level before
10755 calling annotate_source_line.
10756 * stack.c (print_frame_info): If calling annotate_source_line
10757 returns true, then don't print any other source line information.
10758
10759 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10760
10761 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10762
10763 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * coffread.c (patch_type): Remove NULL check before xfree.
10766 * corefile.c (set_gnutarget): Likewise.
10767 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10768 * exec.c (build_section_table): Likewise.
10769 * remote.c (remote_target::pass_signals): Likewise.
10770 * utils.c (n_spaces): Likewise.
10771 * cli/cli-script.c (document_command): Likewise.
10772 * i386-windows-tdep.c (core_process_module_section): Likewise.
10773 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10774
10775 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * symfile.c (reread_symbols): Clear objfile's section_offsets
10778 vector and section indices, re-compute them by calling
10779 sym_offsets.
10780
10781 2020-05-20 Tom Tromey <tromey@adacore.com>
10782
10783 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10784 (desc_one_bound, desc_index_type): Compute field name.
10785
10786 2020-05-20 Tom de Vries <tdevries@suse.de>
10787
10788 PR symtab/25833
10789 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10790
10791 2020-05-20 Alan Modra <amodra@gmail.com>
10792
10793 PR 25993
10794 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10795 bfd_set_filename.
10796 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10797 passed to bfd_set_filename.
10798 * symfile-mem.c (add_vsyscall_page): Likewise for string
10799 passed to symbol_file_add_from_memory.
10800 (symbol_file_add_from_memory): Make name param a const char* and
10801 don't strdup.
10802
10803 2020-05-20 Alan Modra <amodra@gmail.com>
10804
10805 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10806 rather than accessing bfd->filename directly.
10807 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10808 and use bfd_section_name.
10809 * dwarf2/frame.c (decode_frame_entry): Likewise.
10810 * exec.c (exec_set_section_address): Likewise.
10811 * solib-aix.c (solib_aix_bfd_open): Likewise.
10812 * stap-probe.c (get_stap_base_address): Likewise.
10813 * symfile.c (reread_symbols): Likewise.
10814
10815 2020-05-19 Tom Tromey <tromey@adacore.com>
10816
10817 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10818
10819 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10822
10823 2020-05-19 Pedro Alves <palves@redhat.com>
10824
10825 * NEWS (set exec-file-mismatch): Adjust entry.
10826 * exec.c: Include "build-id.h".
10827 (validate_exec_file): Try to match build IDs instead of filenames.
10828 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10829 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10830 and pass down 'warn_if_slow'.
10831 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10832 gdb_bfd_open_closure to pass it down.
10833 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10834
10835 2020-05-19 Pedro Alves <palves@redhat.com>
10836
10837 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10838 * target.c (target_fileio_open_1): Rename to target_fileio_open
10839 and make extern. Use bool.
10840 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10841 (target_fileio_read_alloc_1): Adjust.
10842 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10843 (target_fileio_open_warn_if_slow): Delete declaration.
10844
10845 2020-05-19 Pedro Alves <palves@redhat.com>
10846
10847 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10848 Adjust all callers.
10849
10850 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10851
10852 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10853 whether disp is negative.
10854
10855 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10856
10857 * symfile.h (struct symfile_segment_data)
10858 <~symfile_segment_data>: Remove.
10859 <segment_info>: Change to std::vector.
10860 * symfile.c (default_symfile_segments): Update.
10861 * elfread.c (elf_symfile_segments): Update.
10862
10863 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10864
10865 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10866 <segments>: New.
10867 <segment_bases, segment_sizes>: Remove.
10868 * symfile.c (default_symfile_segments): Update.
10869 * elfread.c (elf_symfile_segments): Update.
10870 * remote.c (remote_target::get_offsets): Update.
10871 * solib-target.c (solib_target_relocate_section_addresses):
10872 Update.
10873
10874 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * symfile.h (struct symfile_segment_data): Initialize fields.
10877 <~symfile_segment_data>: Add.
10878 (symfile_segment_data_up): New.
10879 (struct sym_fns) <sym_segments>: Return a
10880 symfile_segment_data_up.
10881 (default_symfile_segments): Return a symfile_segment_data_up.
10882 (free_symfile_segment_data): Remove.
10883 (get_symfile_segment_data): Return a symfile_segment_data_up.
10884 * symfile.c (default_symfile_segments): Likewise.
10885 (get_symfile_segment_data): Likewise.
10886 (free_symfile_segment_data): Remove.
10887 (symfile_find_segment_sections): Update.
10888 * elfread.c (elf_symfile_segments): Return a
10889 symfile_segment_data_up.
10890 * remote.c (remote_target::get_offsets): Update.
10891 * solib-target.c (solib_target_relocate_section_addresses):
10892 Update.
10893 * symfile-debug.c (debug_sym_segments): Return a
10894 symfile_segment_data_up.
10895
10896 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10897
10898 PR build/25981
10899 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10900 Hardcode register numbers.
10901
10902 PR build/25981
10903 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10904 procfs_find_LDT_entry): Remove.
10905 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10906 procfs_find_LDT_entry): Remove.
10907 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10908 Remove.
10909
10910 2020-05-17 Pedro Alves <palves@redhat.com>
10911 Andrew Burgess <andrew.burgess@embecosm.com>
10912 Keno Fischer <keno@juliacomputing.com>
10913
10914 PR gdb/25741
10915 * breakpoint.c (build_target_condition_list): Update comments.
10916 (build_target_command_list): Update comments and skip matching
10917 locations.
10918 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10919 a separate function. Simplify "set breakpoint auto-hw off"
10920 handling.
10921 (insert_breakpoints): Update comment.
10922 (tracepoint_locations_match): New parameter. For breakpoints,
10923 compare location types too, if the caller wants to.
10924 (handle_automatic_hardware_breakpoints): New functions.
10925 (bp_location_is_less_than): Also sort by location type and
10926 hardware breakpoint length.
10927 (update_global_location_list): Handle "set breakpoint auto-hw on"
10928 here.
10929 (update_breakpoint_locations): Ask breakpoint_locations_match to
10930 ignore location types.
10931
10932 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10935 type::name instead.
10936
10937 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * gdbtypes.h (struct type) <name, set_name>: New methods.
10940 (TYPE_CODE): Use type::name. Change all call sites used to set
10941 the name to use type::set_name instead.
10942
10943 2020-05-16 Tom Tromey <tom@tromey.com>
10944
10945 * top.c (quit_force): Update.
10946 * infrun.c (handle_no_resumed): Update.
10947 * top.h (all_uis): New function.
10948 (ALL_UIS): Remove.
10949
10950 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10951
10952 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10953
10954 2020-05-16 Pedro Alves <palves@redhat.com>
10955
10956 * ia64-linux-nat.c
10957 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10958 Declare method.
10959 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10960
10961 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10962
10963 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10964 (sparc64_adi_info): Likewise.
10965
10966 2020-05-15 Tom Tromey <tom@tromey.com>
10967
10968 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10969 block_objfile.
10970 (lookup_objfile_from_block): Remove.
10971 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10972 (lookup_global_symbol): Use block_objfile.
10973 * symtab.h (lookup_objfile_from_block): Don't declare.
10974 * printcmd.c (clear_dangling_display_expressions): Use
10975 block_objfile.
10976 * parse.c (operator_check_standard): Use block_objfile.
10977
10978 2020-05-15 Tom Tromey <tom@tromey.com>
10979
10980 * language.c (language_alloc_type_symbol): Set
10981 SYMBOL_SECTION.
10982 * symtab.c (initialize_objfile_symbol): Remove.
10983 (allocate_symbol): Remove.
10984 (allocate_template_symbol): Remove.
10985 * dwarf2/read.c (fixup_go_packaging): Use "new".
10986 (new_symbol): Use "new".
10987 (read_variable): Don't call initialize_objfile_symbol. Use
10988 "new".
10989 (read_func_scope): Use "new".
10990 * xcoffread.c (process_xcoff_symbol): Don't call
10991 initialize_objfile_symbol.
10992 (SYMBOL_DUP): Remove.
10993 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10994 "new".
10995 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10996 (allocate_template_symbol): Don't declare.
10997 (struct symbol): Add copy constructor. Change defaults.
10998 * jit.c (finalize_symtab): Use "new".
10999 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11000 Use "new".
11001 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11002 (common_block_end): Use "new".
11003 * mdebugread.c (parse_symbol): Use "new".
11004 (new_symbol): Likewise.
11005
11006 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11007
11008 * NEWS: Mention changes to help and apropos.
11009
11010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11011
11012 * command.h (enum command_class): Improve comments, document
11013 that class_alias is for user-defined aliases, give the class
11014 name for each class, remove unused class_xdb.
11015 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11016 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11017 by a precise class.
11018 * infcmd.c (_initialize_infcmd): Likewise.
11019 * reverse.c (_initialize_reverse): Likewise.
11020 * stack.c (_initialize_stack): Likewise.
11021 * symfile.c (_initialize_symfile): Likewise.
11022 * tracepoint.c (_initialize_tracepoint): Likewise.
11023
11024 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11025
11026 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11027 when their aliased command is traversed.
11028 (help_cmd): Add fput_command_names_styled call to
11029 output command name and aliases when command has an alias.
11030
11031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11032
11033 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11034 * cli/cli-decode.c (help_cmd_list): Declare as static,
11035 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11036 a command together with the command.
11037 (fput_command_name_styled, fput_command_names_styled): New functions.
11038 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11039 fput_command_name_styled.
11040 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11041 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11042
11043 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044
11045 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11046 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11047 * command.h (cmd_show_list): Likewise.
11048 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11049 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11050
11051 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11052
11053 * unittests/command-def-selftests.c (traverse_command_structure):
11054 Verify all commands of a list have the same prefix command and
11055 that only the top cmdlist commands have a null prefix.
11056
11057 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11058
11059 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11060 as prefix, not one of its aliases.
11061 (set_cmd_prefix): Remove.
11062 (do_add_cmd): Centralize the setting of the prefix of a command, when
11063 command is defined after its full chain of prefix commands.
11064 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11065 (add_setshow_cmd_full): Likewise.
11066 (update_prefix_field_of_prefixed_commands): New function.
11067 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11068 update_prefix_field_of_prefixed_commands.
11069 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11070 addresses of remote_set_cmdlist and remote_show_cmdlist given
11071 as argument, not the address of an argument.
11072 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11073 * gdb/remote.c (_initialize_remote): Likewise.
11074
11075 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11076
11077 * cli/cli-cmds.c (alias_command): Check for an existing alias
11078 using lookup_cmd_composition, as valid_command_p is too strict
11079 and forbids aliases that are the prefix of an existing alias
11080 or command.
11081 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11082 command is properly recognised as a valid command.
11083
11084 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11085
11086 * unittests/help-doc-selftests.c: Rename to
11087 unittests/command-def-selftests.c
11088 * unittests/command-def-selftests.c (help_doc_tests): Update some
11089 comments.
11090 (command_structure_tests, traverse_command_structure): New namespace
11091 and function.
11092 (command_structure_invariants_tests): New function.
11093 (_initialize_command_def_selftests) Renamed from
11094 _initialize_help_doc_selftests, register command_structure_invariants
11095 selftest.
11096
11097 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11098
11099 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11100 an alias of 'show'.
11101
11102 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11103
11104 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11105 ada_is_fixed_point_type. Update all callers.
11106 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11107 all callers.
11108 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11109 Update all callers.
11110 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11111 print_fixed_point_type. Update all callers.
11112 * ada-valprint.c (ada_value_print_num): Replace call to
11113 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11114
11115 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11116
11117 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11118 processors.
11119 (cpu_supports_bts): Add CV_AMD case.
11120
11121 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11122 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * infrun.c (stop_all_threads): Collect multiple wait events at
11125 each pass.
11126
11127 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11128
11129 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11130 type::code instead.
11131
11132 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * gdbtypes.h (struct type) <code, set_code>: New methods.
11135 (TYPE_CODE): Use type::code. Change all call sites used to set
11136 the code to use type::set_code instead.
11137
11138 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11139 Tom de Vries <tdevries@suse.de>
11140 Pedro Alves <palves@redhat.com>
11141
11142 PR threads/25478
11143 * infrun.c (stop_all_threads): Do NOT ignore
11144 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11145 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11146 received.
11147 (handle_no_resumed): Remove code handling a live inferior with no
11148 threads.
11149 * remote.c (has_single_non_exited_thread): New.
11150 (remote_target::update_thread_list): Do not delete a thread if is
11151 the last thread of the process.
11152 * thread.c (thread_select): Call delete_exited_threads instead of
11153 prune_threads.
11154
11155 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11156
11157 * infrun.c (stop_all_threads): Enable/disable thread events of all
11158 targets. Move a debug message denoting the end of the function
11159 into the SCOPED_EXIT block.
11160
11161 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11162
11163 * process-stratum-target.h: Include <set>.
11164 (all_non_exited_process_targets, switch_to_target_no_thread): New
11165 function declarations.
11166 * process-stratum-target.c (all_non_exited_process_targets)
11167 (switch_to_target_no_thread): New function implementations.
11168
11169 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11170
11171 * infrun.c (handle_inferior_event): Extract out a piece of code
11172 into...
11173 (mark_non_executing_threads): ...this new function.
11174
11175 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11176
11177 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11178 use.
11179
11180 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11181
11182 * regcache.c (regcache_read_pc_protected): New function
11183 implementation that returns 0 if the PC cannot read via
11184 'regcache_read_pc'.
11185 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11186 instead of 'regcache_read_pc'.
11187 (keep_going_pass_signal): Ditto.
11188
11189 2020-05-13 Tom Tromey <tromey@adacore.com>
11190
11191 * ada-lang.c (align_value): Remove.
11192 (ada_template_to_fixed_record_type_1): Use align_up.
11193
11194 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11195
11196 * async-event.c: Update the copyright year.
11197 * async-event.h: Update the copyright year.
11198
11199 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11200
11201 * objfiles.h (is_addr_in_objfile,
11202 shared_objfile_contains_address_p): Return bool.
11203 * objfile.c (is_addr_in_objfile,
11204 shared_objfile_contains_address_p): Return bool.
11205
11206 2020-05-11 Tom Tromey <tromey@adacore.com>
11207
11208 * cli/cli-cmds.c (info_command): Restore.
11209 (_initialize_cli_cmds): Use add_prefix_command for "info".
11210 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11211
11212 2020-05-11 Tom Tromey <tromey@adacore.com>
11213
11214 * ada-lang.c (ada_value_primitive_field): Now public.
11215 * ada-lang.h (ada_value_primitive_field): Declare.
11216 * ada-valprint.c (print_field_values): Use
11217 ada_value_primitive_field for wrapper fields.
11218
11219 2020-05-11 Tom de Vries <tdevries@suse.de>
11220
11221 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11222 MODULE_DOMAIN.
11223
11224 2020-05-11 Tom de Vries <tdevries@suse.de>
11225
11226 PR symtab/25941
11227 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11228 with length 0, if not gdb-produced.
11229 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11230
11231 2020-05-09 Tom de Vries <tdevries@suse.de>
11232
11233 PR gdb/25955
11234 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11235 calculation.
11236
11237 2020-05-09 Tom Tromey <tom@tromey.com>
11238
11239 * top.c (server_command): Now bool.
11240 * top.h (server_command): Now bool.
11241
11242 2020-05-08 Tom Tromey <tromey@adacore.com>
11243
11244 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11245 already being processed.
11246
11247 2020-05-08 Tom Tromey <tom@tromey.com>
11248
11249 * printcmd.c (struct display) <next>: Remove.
11250 <display>: New constructor.
11251 <exp_string>: Now a std::string.
11252 <enabled_p>: Now a bool.
11253 (display_number): Move definition earlier.
11254 (displays): Rename from display_chain. Now a std::vector.
11255 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11256 (display_command): Update.
11257 (do_one_display, disable_display)
11258 (enable_disable_display_command, do_enable_disable_display):
11259 Update.
11260 (free_display): Remove.
11261 (clear_displays): Rewrite.
11262 (delete_display): Update.
11263 (map_display_numbers): Use function_view. Remove "data"
11264 parameter. Update.
11265 (do_delete_display): Remove.
11266 (undisplay_command): Update.
11267 (do_one_display, do_displays, disable_display)
11268 (info_display_command): Update.
11269 (do_enable_disable_display): Remove.
11270 (enable_disable_display_command)
11271 (clear_dangling_display_expressions): Update.
11272
11273 2020-05-08 Tom Tromey <tom@tromey.com>
11274
11275 * symtab.c (set_symbol_cache_size)
11276 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11277 (maintenance_print_symbol_cache_statistics): Update.
11278 * symmisc.c (print_symbol_bcache_statistics)
11279 (print_objfile_statistics, maintenance_print_objfiles)
11280 (maintenance_info_symtabs, maintenance_check_symtabs)
11281 (maintenance_expand_symtabs, maintenance_info_line_tables):
11282 Update.
11283 * symfile-debug.c (set_debug_symfile): Update.
11284 * source.c (forget_cached_source_info): Update.
11285 * python/python.c (gdbpy_progspaces): Update.
11286 * psymtab.c (maintenance_info_psymtabs): Update.
11287 * probe.c (parse_probes): Update.
11288 * linespec.c (iterate_over_all_matching_symtabs)
11289 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11290 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11291 * exec.c (exec_target::close): Update.
11292 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11293 * breakpoint.c (print_one_breakpoint_location)
11294 (create_longjmp_master_breakpoint)
11295 (create_std_terminate_master_breakpoint): Update.
11296 * progspace.c (program_spaces): Now a std::vector.
11297 (maybe_new_address_space): Update.
11298 (add_program_space): Remove.
11299 (program_space::program_space): Update.
11300 (remove_program_space): Update.
11301 (number_of_program_spaces): Remove.
11302 (print_program_space, update_address_spaces): Update.
11303 * progspace.h (program_spaces): Change type.
11304 (ALL_PSPACES): Remove.
11305 (number_of_program_spaces): Don't declare.
11306 (struct program_space) <next>: Remove.
11307
11308 2020-05-08 Tom Tromey <tom@tromey.com>
11309
11310 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11311 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11312 (enable_break): Update.
11313 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11314 (frv_fdpic_find_canonical_descriptor): Update.
11315 (frv_fetch_objfile_link_map): Update.
11316 * progspace.c (program_space::free_all_objfiles): Update.
11317 (program_space::solibs): New method.
11318 * progspace.h (struct program_space) <solibs>: New method.
11319 * solist.h (master_so_list): Don't declare.
11320 (ALL_SO_LIBS): Remove.
11321 * solib.h (so_list_head): Remove.
11322 (update_solib_list): Update comment.
11323 * solib.c (master_so_list): Remove.
11324 (solib_used, update_solib_list, solib_add)
11325 (info_sharedlibrary_command, clear_solib)
11326 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11327
11328 2020-05-08 Tom Tromey <tom@tromey.com>
11329
11330 * extension.c (extension_languages): Now a std::array.
11331 (ALL_EXTENSION_LANGUAGES): Remove.
11332 (get_ext_lang_defn, get_ext_lang_of_file)
11333 (eval_ext_lang_from_control_command): Update.
11334 (finish_ext_lang_initialization)
11335 (auto_load_ext_lang_scripts_for_objfile)
11336 (ext_lang_type_printers::ext_lang_type_printers)
11337 (apply_ext_lang_type_printers)
11338 (ext_lang_type_printers::~ext_lang_type_printers)
11339 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11340 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11341 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11342 (get_matching_xmethod_workers, ext_lang_colorize)
11343 (ext_lang_before_prompt): Update.
11344 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11345
11346 2020-05-08 Tom Tromey <tom@tromey.com>
11347
11348 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11349 overload.
11350 <swap_string, m_string>: Remove.
11351 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11352 Update.
11353 * stabsread.c (define_symbol, read_type): Update.
11354 * linespec.c (find_linespec_symbols): Update.
11355 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11356 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11357 * dbxread.c (read_dbx_symtab): Update.
11358 * cp-support.h (cp_canonicalize_string_full)
11359 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11360 Return unique_xmalloc_ptr.
11361 * cp-support.c (inspect_type): Update.
11362 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11363 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11364 Likewise.
11365 * c-typeprint.c (print_name_maybe_canonical): Update.
11366 * break-catch-throw.c (check_status_exception_catchpoint):
11367 Update.
11368
11369 2020-05-08 Tom de Vries <tdevries@suse.de>
11370
11371 * infrun.c (follow_fork): Copy current_line and current_symtab to
11372 child thread.
11373
11374 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * async-event.c (struct async_signal_handler, struct
11377 async_event_handler): Reformat, remove typedef.
11378
11379 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11380
11381 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11382 access thistype->main_type->dyn_prop_list directly.
11383
11384 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11385
11386 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11387 (remove_dyn_prop): Remove. Update all users to use
11388 type::remove_dyn_prop.
11389 * gdbtypes.c (remove_dyn_prop): Rename to...
11390 (type::remove_dyn_prop): ... this.
11391
11392 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11393
11394 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11395 (add_dyn_prop): Remove. Update all users to use
11396 type::add_dyn_prop.
11397 * gdbtypes.c (add_dyn_prop): Rename to...
11398 (type::add_dyn_prop): ... this.
11399
11400 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11401
11402 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11403 (get_dyn_prop): Remove. Update all users to use
11404 type::dyn_prop.
11405 * gdbtypes.c (get_dyn_prop): Rename to...
11406 (type::dyn_prop): ... this.
11407
11408 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11409
11410 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11411
11412 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11413
11414 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11415 instruction, skip it if it's there.
11416
11417 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11418
11419 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11420
11421 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11424 * gdbtypes.c (recursive_dump_type): Remove use of
11425 TYPE_INCOMPLETE.
11426
11427 2020-05-03 Tom Tromey <tom@tromey.com>
11428
11429 * breakpoint.c (catch_command, tcatch_command): Remove.
11430 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11431 add_show_prefix_cmd.
11432 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11433 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11434 Remove.
11435 (add_internal_problem_command): Use add_basic_prefix_cmd,
11436 add_show_prefix_cmd.
11437 * mips-tdep.c (set_mipsfpu_command): Remove.
11438 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11439 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11440 (_initialize_index_cache): Use add_basic_prefix_cmd.
11441 * memattr.c (dummy_cmd): Remove.
11442 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11443 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11444 (_initialize_tui_win): Use add_basic_prefix_cmd,
11445 add_show_prefix_cmd.
11446 * cli/cli-logging.c (set_logging_command): Remove.
11447 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11448 add_show_prefix_cmd.
11449 (show_logging_command): Remove.
11450 * target.c (target_command): Remove.
11451 (add_target): Use add_basic_prefix_cmd.
11452
11453 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11454
11455 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11456
11457 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11458
11459 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11460 info_command.
11461
11462 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11463
11464 * nbsd-nat.c (nbsd_enable_proc_events)
11465 (nbsd_nat_target::post_startup_inferior): Add.
11466 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11467 (nbsd_nat_target::update_thread_list): Rewrite.
11468 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11469 "PTRACE_LWP_CREATE".
11470 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11471
11472 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11473
11474 * stack.c (_initialize_stack): Remove duplicated creation
11475 of "frame" command and "f" alias.
11476
11477 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11478
11479 PR gdb/18706
11480 * gdbtypes.c (check_typedef): Calculate size of array of
11481 stubbed type.
11482
11483 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11484
11485 PR gdb/15559
11486 * i386-tdep.c (i386_push_dummy_call): Call
11487 i386_thiscall_push_dummy_call.
11488 (i386_thiscall_push_dummy_call): New function.
11489 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11490 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11491 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11492
11493 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11494
11495 * gdbarch.sh (do_read): Add shellcheck disable directive for
11496 warning SC2162.
11497
11498 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11499
11500 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11501 "referenced but not assigned" warning.
11502
11503 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11504
11505 * gdbarch.sh: Remove code that sets fallbackdefault.
11506
11507 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11508
11509 * gdbarch.sh: Use shell operators && and || instead of
11510 -a and -o.
11511
11512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11513
11514 * gdbarch.sh: Use $(...) instead of `...`.
11515
11516 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11517
11518 * gdbarch.sh: Use double quotes around variables.
11519
11520 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11521
11522 * gdbarch.sh: Use %s with printf, instead of variables in the
11523 format string.
11524
11525 2020-04-29 Tom Tromey <tromey@adacore.com>
11526
11527 PR ada/25875:
11528 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11529 type fields here.
11530 (read_enumeration_type): Call
11531 update_enumeration_type_from_children later. Update comments.
11532 (process_enumeration_scope): Don't create type fields.
11533
11534 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11535
11536 * nbsd-tdep.c: Include "xml-syscall.h".
11537 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11538
11539 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11540
11541 * nbsd-nat.c: Include "sys/wait.h".
11542 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11543 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11544 (nbsd_nat_target::remove_exec_catchpoint)
11545 (nbsd_nat_target::set_syscall_catchpoint): Add.
11546 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11547 (nbsd_nat_target::insert_exec_catchpoint)
11548 (nbsd_nat_target::remove_exec_catchpoint)
11549 (nbsd_nat_target::set_syscall_catchpoint): Add.
11550 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11551 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11552 `nbsd_get_syscall_number'.
11553
11554 2020-04-29 Tom Tromey <tom@tromey.com>
11555
11556 * stack.c (print_block_frame_labels): Remove.
11557
11558 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11559
11560 PR gdb/17320
11561 * ada-valprint.c (val_print_packed_array_elements): Move array
11562 end bracket to new line.
11563 (ada_val_print_string): Remove extra spaces before first array
11564 element.
11565 * c-valprint.c (c_value_print_array): Likewise.
11566 * m2-valprint.c (m2_print_array_contents): Likewise.
11567 (m2_value_print_inner): Likewise.
11568 * p-valprint.c (pascal_value_print_inner): Likewise.
11569 * valprint.c (generic_val_print_array): Likewise.
11570 (value_print_array_elements): Move first array element and array
11571 end bracket to new line.
11572
11573 2020-04-29 Tom de Vries <tdevries@suse.de>
11574
11575 PR symtab/25889
11576 * linespec.c (find_method): Fix ix calculation.
11577
11578 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11579
11580 * syscalls/update-netbsd.sh: New file.
11581 * syscalls/netbsd.xml: Regenerate.
11582 * data-directory/Makefile.in: Register `netbsd.xml' in
11583 `SYSCALLS_FILES'.
11584
11585 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11586
11587 * syscalls/update-freebsd.sh: Add double quotes.
11588
11589 2020-04-28 Tom Tromey <tom@tromey.com>
11590
11591 * NEWS: Update.
11592 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11593 (cmdpy_init): Allow class_tui.
11594
11595 2020-04-28 Mark Williams <mark@myosotissp.com>
11596
11597 PR gdb/24480
11598 * dwarf2read.c: Add missing assingments to list_in_scope when
11599 start_symtab was already called.
11600
11601 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11602
11603 PR gdb/25881
11604 * dwarf2/read.c (offset_map_type): Use
11605 gdb:hash_enum<sect_offset> as hash function.
11606
11607 2020-04-28 Tom de Vries <tdevries@suse.de>
11608
11609 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11610 with DW_AT_signature.
11611
11612 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11613
11614 * configure.ac: Remove check for fs_base/gs_base in
11615 user_regs_struct.
11616 * configure: Re-generate.
11617 * config.in: Re-generate.
11618 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11619 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11620 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11621
11622 2020-04-27 Luis Machado <luis.machado@linaro.org>
11623
11624 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11625 problematic inline frame unwinding situation.
11626 * frame.c (frame_id_computed_p): New function.
11627 * frame.h (frame_id_computed_p): New prototype.
11628
11629 2020-04-26 Tom Tromey <tom@tromey.com>
11630
11631 * command.h (enum command_class) <class_pseudo>: Remove.
11632
11633 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11634
11635 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11636 and whitespace.
11637
11638 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11639
11640 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11641 `PT_GET_PROCESS_STATE' block.
11642
11643 2020-04-24 Tom Tromey <tom@tromey.com>
11644
11645 * symtab.h (symbol_get_demangled_name): Don't declare.
11646 * symtab.c (symbol_get_demangled_name): Remove.
11647 (general_symbol_info::natural_name)
11648 (general_symbol_info::demangled_name): Update.
11649
11650 2020-04-24 Tom Tromey <tom@tromey.com>
11651
11652 PR rust/25025:
11653 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11654
11655 2020-04-24 Tom Tromey <tom@tromey.com>
11656
11657 PR symtab/12707:
11658 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11659 exists.
11660 (new_symbol): Likewise.
11661 * compile/compile-object-load.c (get_out_value_type): Use
11662 symbol_matches_search_name.
11663
11664 2020-04-24 Tom Tromey <tom@tromey.com>
11665
11666 * dwarf2/read.c (add_partial_symbol): Do not call
11667 compute_and_set_names.
11668
11669 2020-04-24 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11672 overload.
11673
11674 2020-04-24 Tom Tromey <tom@tromey.com>
11675
11676 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11677 (add_psymbol_to_list): New overload. Make old overload call new
11678 one.
11679 * psympriv.h (add_psymbol_to_list): New overload.
11680
11681 2020-04-24 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.c (partial_die_info::read) <case
11684 DW_AT_linkage_name>: Use value_as_string.
11685 (dwarf2_string_attr): Use value_as_string.
11686 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11687 method.
11688 * dwarf2/attribute.c (attribute::value_as_string): New method.
11689
11690 2020-04-24 Tom Tromey <tom@tromey.com>
11691
11692 * symtab.c (general_symbol_info::natural_name)
11693 (general_symbol_info::demangled_name): Check for language_rust.
11694
11695 2020-04-24 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11698 (dwarf2_physname): ... from here.
11699 (partial_die_info::read): Add Rust "{" hack.
11700
11701 2020-04-24 Tom Tromey <tom@tromey.com>
11702
11703 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11704 method.
11705 (symbol_set_demangled_name): Don't declare.
11706 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11707 symbol_set_demangled_name.
11708 (general_symbol_info::set_language)
11709 (general_symbol_info::compute_and_set_names): Update.
11710 * minsyms.c (minimal_symbol_reader::install): Update.
11711 * dwarf2/read.c (new_symbol): Update.
11712
11713 2020-04-24 Tom Tromey <tromey@adacore.com>
11714
11715 PR python/23662:
11716 * python/py-type.c (convert_field): Handle
11717 FIELD_LOC_KIND_DWARF_BLOCK.
11718 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11719 (typy_get_dynamic): Nw function.
11720 (type_object_getset): Add "dynamic".
11721 * NEWS: Add entry.
11722
11723 2020-04-24 Tom Tromey <tromey@adacore.com>
11724
11725 * ada-typeprint.c (print_choices, print_variant_part)
11726 (print_record_field_types_dynamic): New functions.
11727 (print_record_field_types): Use print_record_field_types_dynamic.
11728
11729 2020-04-24 Tom Tromey <tromey@adacore.com>
11730
11731 * dwarf2/read.c (handle_data_member_location): New overload.
11732 (dwarf2_add_field): Use it.
11733 (decode_locdesc): Add "computed" parameter. Update comment.
11734 * gdbtypes.c (is_dynamic_type_internal): Also look for
11735 FIELD_LOC_KIND_DWARF_BLOCK.
11736 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11737 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11738 virtual base classes.
11739 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11740 FIELD_LOC_KIND_DWARF_BLOCK.
11741
11742 2020-04-24 Tom Tromey <tromey@adacore.com>
11743
11744 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11745 * gdbtypes.c (is_dynamic_type_internal): Check
11746 TYPE_HAS_DYNAMIC_LENGTH.
11747 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11748 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11749 New macros.
11750 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11751 constant.
11752
11753 2020-04-24 Tom Tromey <tromey@adacore.com>
11754
11755 * dwarf2/read.c (struct variant_field): Rewrite.
11756 (struct variant_part_builder): New.
11757 (struct nextfield): Remove "variant" field. Add "offset".
11758 (struct field_info): Add "current_variant_part" and
11759 "variant_parts".
11760 (alloc_discriminant_info): Remove.
11761 (alloc_rust_variant): New function.
11762 (quirk_rust_enum): Update.
11763 (dwarf2_add_field): Set "offset" member. Don't handle
11764 DW_TAG_variant_part.
11765 (offset_map_type): New typedef.
11766 (convert_variant_range, create_one_variant)
11767 (create_one_variant_part, create_variant_parts)
11768 (add_variant_property): New functions.
11769 (dwarf2_attach_fields_to_type): Call add_variant_property.
11770 (read_structure_type): Don't handle DW_TAG_variant_part.
11771 (handle_variant_part, handle_variant): New functions.
11772 (handle_struct_member_die): Use them.
11773 (process_structure_scope): Don't handle variant parts.
11774 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11775 (struct discriminant_info): Remove.
11776 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11777 (struct main_type) <flag_discriminated_union>: Remove.
11778 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11779 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11780 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11781 Update.
11782 * valops.c (value_union_variant): Remove.
11783 * value.h (value_union_variant): Don't declare.
11784
11785 2020-04-24 Tom Tromey <tromey@adacore.com>
11786
11787 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11788 (ada_value_primitive_packed_val): Update.
11789 * ada-valprint.c (ada_value_print_1): Update.
11790 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11791 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11792 just an address. Use evaluate_for_locexpr_baton.
11793 (dwarf2_evaluate_property): Update.
11794 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11795 array_view.
11796 * findvar.c (default_read_var_value): Update.
11797 * gdbtypes.c (compute_variant_fields_inner)
11798 (resolve_dynamic_type_internal): Update.
11799 (resolve_dynamic_type): Change type of valaddr parameter.
11800 * gdbtypes.h (resolve_dynamic_type): Update.
11801 * valarith.c (value_subscripted_rvalue): Update.
11802 * value.c (value_from_contents_and_address): Update.
11803
11804 2020-04-24 Tom Tromey <tromey@adacore.com>
11805
11806 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11807 "push_initial_value" parameter.
11808 (dwarf2_evaluate_property): Likewise.
11809 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11810
11811 2020-04-24 Tom Tromey <tromey@adacore.com>
11812
11813 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11814 (variant::matches, compute_variant_fields_recurse)
11815 (compute_variant_fields_inner, compute_variant_fields): New
11816 functions.
11817 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11818 Use resolved_type after type is made.
11819 (operator==): Add new cases.
11820 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11821 (struct discriminant_range, struct variant, struct variant_part):
11822 New.
11823 (union dynamic_prop_data) <variant_parts, original_type>: New
11824 members.
11825 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11826 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11827 constants.
11828 * value.c (unpack_bits_as_long): Now public.
11829 * value.h (unpack_bits_as_long): Declare.
11830
11831 2020-04-24 Tom Tromey <tromey@adacore.com>
11832
11833 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11834 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11835
11836 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11837
11838 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11839
11840 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11841
11842 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11843 (remove_fork_catchpoint, post_startup_inferior)
11844 (post_attach): Move...
11845 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11846 (remove_fork_catchpoint, post_startup_inferior)
11847 (post_attach): ...here.
11848 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11849 (remove_fork_catchpoint, post_startup_inferior)
11850 (post_attach): Move...
11851 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11852 (remove_fork_catchpoint, post_startup_inferior)
11853 (post_attach): ...here.
11854
11855 2020-04-24 Tom Tromey <tromey@adacore.com>
11856
11857 * nat/windows-nat.h (struct windows_thread_info)
11858 <pc_adjusted>: New member.
11859 * windows-nat.c (windows_fetch_one_register): Check
11860 pc_adjusted.
11861 (windows_nat_target::get_windows_debug_event)
11862 (windows_nat_target::wait): Set pc_adjusted.
11863
11864 2020-04-24 Tom de Vries <tdevries@suse.de>
11865
11866 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11867 Run gdb-add-index inside temp dir.
11868
11869 2020-04-23 Tom Tromey <tromey@adacore.com>
11870
11871 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11872 in loop.
11873
11874 2020-04-23 Luis Machado <luis.machado@linaro.org>
11875
11876 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11877 get_frame_register instead of gdbarch_unwind_pc.
11878
11879 2020-04-23 Tom de Vries <tdevries@suse.de>
11880
11881 * symtab.c (lookup_global_symbol): Prefer def over decl.
11882
11883 2020-04-23 Tom de Vries <tdevries@suse.de>
11884
11885 PR symtab/25807
11886 * block.c (best_symbol, better_symbol): Promote to external.
11887 * block.h (best_symbol, better_symbol): Declare.
11888 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11889 decl.
11890
11891 2020-04-23 Tom Tromey <tromey@adacore.com>
11892
11893 PR ada/25837:
11894 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11895 "const char *", not a "const std::string &".
11896 <name_and_matcher::operator==>: Update.
11897 * unittests/lookup_name_info-selftests.c: Change type of
11898 "result".
11899
11900 2020-04-23 Tom Tromey <tom@tromey.com>
11901
11902 * inferior.h (iterate_over_inferiors): Don't declare.
11903 * inferior.c (iterate_over_inferiors): Remove.
11904 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11905 Remove.
11906 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11907 use iterate_over_inferiors.
11908 (darwin_resume_inferior_it)
11909 (struct resume_inferior_threads_param)
11910 (darwin_resume_inferior_threads_it): Remove.
11911 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11912
11913 2020-04-23 Tom de Vries <tdevries@suse.de>
11914
11915 * blockframe.c (find_pc_partial_function): Use
11916 find_pc_sect_compunit_symtab rather than
11917 objfile->sf->qf->find_pc_sect_compunit_symtab.
11918
11919 2020-04-22 Tom de Vries <tdevries@suse.de>
11920
11921 PR symtab/25764
11922 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11923 in psymtabs.
11924
11925 2020-04-22 Tom de Vries <tdevries@suse.de>
11926
11927 PR symtab/25801
11928 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11929 symtabs.
11930
11931 2020-04-22 Tom de Vries <tdevries@suse.de>
11932
11933 PR symtab/25700
11934 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11935 CU if already created.
11936
11937 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11938
11939 * infrun.c (displaced_step_fixup): Switch to the event_thread
11940 before calling displaced_step_restore, not after.
11941
11942 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11943
11944 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11945 its inferior is not recorded by us.
11946 (record_btrace_target_open): Replace call to
11947 all_non_exited_threads () with call to current_inferior
11948 ()->non_exited_threads ().
11949 (record_btrace_target::stop_recording): Likewise.
11950 (record_btrace_target::close): Likewise.
11951 (record_btrace_target::wait): Likewise.
11952 (record_btrace_target::record_stop_replaying): Likewise.
11953
11954 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11955
11956 * btrace.c (btrace_enable): Throw an error on double enables and
11957 when enabling recording fails.
11958 (btrace_disable): Throw an error if the thread is not recorded.
11959
11960 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11961
11962 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11963 request if we do not have a thread_info.
11964
11965 2020-04-21 Tom de Vries <tdevries@suse.de>
11966
11967 PR gdb/25471
11968 * thread.c
11969 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11970 exception in get_frame_id.
11971
11972 2020-04-20 Tom Tromey <tromey@adacore.com>
11973
11974 * python/python.c (struct gdbpy_event): Mark move constructor as
11975 noexcept.
11976 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11977 constructor as noexcept.
11978 * completer.h (struct completion_result): Mark move constructor as
11979 noexcept.
11980 * completer.c (completion_result::completion_result): Use
11981 initialization style. Don't call reset_match_list.
11982
11983 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11984
11985 * MAINTAINERS (Write After Approval): Add myself.
11986
11987 2020-04-18 Tom Tromey <tom@tromey.com>
11988
11989 * windows-tdep.c (init_w32_command_list)
11990 (w32_prefix_command_valid): Restore.
11991 (_initialize_windows_tdep): Call init_w32_command_list.
11992
11993 2020-04-18 Tom Tromey <tom@tromey.com>
11994
11995 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11996 * value.c (value_fn_field): Update.
11997 * valops.c (find_function_in_inferior)
11998 (value_allocate_space_in_inferior): Update.
11999 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12000 Update.
12001 * tui/tui-source.c (tui_source_window::set_contents): Update.
12002 * symtab.c (lookup_global_or_static_symbol)
12003 (find_function_start_sal_1, skip_prologue_sal)
12004 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12005 * symmisc.c (dump_msymbols, dump_symtab_1)
12006 (maintenance_print_one_line_table): Update.
12007 * symfile.c (init_entry_point_info, section_is_mapped)
12008 (list_overlays_command, simple_read_overlay_table)
12009 (simple_overlay_update_1): Update.
12010 * stap-probe.c (handle_stap_probe): Update.
12011 * stabsread.c (dbx_init_float_type, define_symbol)
12012 (read_one_struct_field, read_enum_type, read_range_type): Update.
12013 * source.c (info_line_command): Update.
12014 * python/python.c (gdbpy_source_objfile_script)
12015 (gdbpy_execute_objfile_script): Update.
12016 * python/py-type.c (save_objfile_types): Update.
12017 * python/py-objfile.c (py_free_objfile): Update.
12018 * python/py-inferior.c (python_new_objfile): Update.
12019 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12020 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12021 (maintenance_check_psymtabs): Update.
12022 * printcmd.c (info_address_command): Update.
12023 * objfiles.h (struct objfile) <arch>: New method, from
12024 get_objfile_arch.
12025 (get_objfile_arch): Don't declare.
12026 * objfiles.c (get_objfile_arch): Remove.
12027 (filter_overlapping_sections): Update.
12028 * minsyms.c (msymbol_is_function): Update.
12029 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12030 (output_nondebug_symbol): Update.
12031 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12032 (mdebug_expand_psymtab): Update.
12033 * machoread.c (macho_add_oso_symfile): Update.
12034 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12035 Update.
12036 * linux-fork.c (checkpoint_command): Update.
12037 * linespec.c (convert_linespec_to_sals): Update.
12038 * jit.c (finalize_symtab): Update.
12039 * infrun.c (insert_exception_resume_from_probe): Update.
12040 * ia64-tdep.c (ia64_find_unwind_table): Update.
12041 * hppa-tdep.c (internalize_unwinds): Update.
12042 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12043 Update.
12044 * gcore.c (call_target_sbrk): Update.
12045 * elfread.c (record_minimal_symbol, elf_symtab_read)
12046 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12047 (elf_gnu_ifunc_resolve_by_got): Update.
12048 * dwarf2/read.c (create_addrmap_from_index)
12049 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12050 (read_debug_names_from_section)
12051 (process_psymtab_comp_unit_reader, add_partial_symbol)
12052 (add_partial_subprogram, process_full_comp_unit)
12053 (read_file_scope, read_func_scope, read_lexical_block_scope)
12054 (read_call_site_scope, dwarf2_ranges_read)
12055 (dwarf2_record_block_ranges, dwarf2_add_field)
12056 (mark_common_block_symbol_computed, read_tag_pointer_type)
12057 (read_tag_string_type, dwarf2_init_float_type)
12058 (dwarf2_init_complex_target_type, read_base_type)
12059 (partial_die_info::read, partial_die_info::read)
12060 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12061 (dwarf2_fetch_die_loc_sect_off): Update.
12062 * dwarf2/loc.c (dwarf2_find_location_expression)
12063 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12064 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12065 (dwarf2_loc_desc_get_symbol_read_needs)
12066 (locexpr_describe_location_piece, locexpr_describe_location_1)
12067 (loclist_describe_location): Update.
12068 * dwarf2/index-write.c (write_debug_names): Update.
12069 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12070 * dtrace-probe.c (dtrace_process_dof): Update.
12071 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12072 (process_one_symbol): Update.
12073 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12074 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12075 (coff_read_enum_type): Update.
12076 * cli/cli-cmds.c (edit_command, list_command): Update.
12077 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12078 * breakpoint.c (create_overlay_event_breakpoint)
12079 (create_longjmp_master_breakpoint)
12080 (create_std_terminate_master_breakpoint)
12081 (create_exception_master_breakpoint, get_sal_arch): Update.
12082 * block.c (block_gdbarch): Update.
12083 * annotate.c (annotate_source_line): Update.
12084
12085 2020-04-17 Tom Tromey <tromey@adacore.com>
12086
12087 * auto-load.c (show_auto_load_cmd): Remove.
12088 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12089 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12090 (maintenance_print_arc_command): Remove.
12091 * tui/tui-win.c (tui_command): Remove.
12092 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12093 * tui/tui-layout.c (tui_layout_command): Remove.
12094 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12095 * python/python.c (user_set_python, user_show_python): Remove.
12096 (_initialize_python): Use add_basic_prefix_cmd,
12097 add_show_prefix_cmd.
12098 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12099 (install_gdb_commands): Use add_basic_prefix_cmd,
12100 add_show_prefix_cmd.
12101 (info_guile_command): Remove.
12102 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12103 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12104 add_show_prefix_cmd.
12105 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12106 Remove do_set and do_show parameters.
12107 * cli/cli-style.c (set_style, show_style): Remove.
12108 (_initialize_cli_style): Use add_basic_prefix_cmd,
12109 add_show_prefix_cmd.
12110 (cli_style_option::add_setshow_commands): Remove do_set and
12111 do_show parameters.
12112 (cli_style_option::add_setshow_commands): Use
12113 add_basic_prefix_cmd, add_show_prefix_cmd.
12114 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12115 (set_style_name): Remove.
12116 * cli/cli-dump.c (dump_command, append_command): Remove.
12117 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12118 (tekhex_dump_command, binary_dump_command)
12119 (binary_append_command): Remove.
12120 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12121 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12122 (init_w32_command_list): Remove; move into ...
12123 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12124 * valprint.c (set_print, show_print, set_print_raw)
12125 (show_print_raw): Remove.
12126 (_initialize_valprint): Use add_basic_prefix_cmd,
12127 add_show_prefix_cmd.
12128 * typeprint.c (set_print_type, show_print_type): Remove.
12129 (_initialize_typeprint): Use add_basic_prefix_cmd,
12130 add_show_prefix_cmd.
12131 * record.c (set_record_command, show_record_command): Remove.
12132 (_initialize_record): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12135 add_show_prefix_cmd.
12136 (info_command, show_command, set_debug, show_debug): Remove.
12137 * top.h (set_history, show_history): Don't declare.
12138 * top.c (set_history, show_history): Remove.
12139 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12140 (unset_tdesc_cmd): Remove.
12141 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12142 add_show_prefix_cmd.
12143 * symtab.c (info_module_command): Remove.
12144 (_initialize_symtab): Use add_basic_prefix_cmd.
12145 * symfile.c (overlay_command): Remove.
12146 (_initialize_symfile): Use add_basic_prefix_cmd.
12147 * sparc64-tdep.c (info_adi_command): Remove.
12148 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12149 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12150 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12151 add_show_prefix_cmd.
12152 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12153 (_initialize_serial): Use add_basic_prefix_cmd,
12154 add_show_prefix_cmd.
12155 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12156 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12157 add_show_prefix_cmd.
12158 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12159 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12160 add_show_prefix_cmd.
12161 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12162 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12163 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12164 add_show_prefix_cmd.
12165 * remote.c (remote_command, set_remote_cmd): Remove.
12166 (_initialize_remote): Use add_basic_prefix_cmd.
12167 * record-full.c (set_record_full_command)
12168 (show_record_full_command): Remove.
12169 (_initialize_record_full): Use add_basic_prefix_cmd,
12170 add_show_prefix_cmd.
12171 * record-btrace.c (cmd_set_record_btrace)
12172 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12173 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12174 (cmd_show_record_btrace_pt): Remove.
12175 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12176 add_show_prefix_cmd.
12177 * ravenscar-thread.c (set_ravenscar_command)
12178 (show_ravenscar_command): Remove.
12179 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12180 add_show_prefix_cmd.
12181 * mips-tdep.c (show_mips_command, set_mips_command)
12182 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12183 add_show_prefix_cmd.
12184 * maint.c (maintenance_command, maintenance_info_command)
12185 (maintenance_check_command, maintenance_print_command)
12186 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12187 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12188 add_show_prefix_cmd.
12189 (show_per_command_cmd): Remove.
12190 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12191 Remove.
12192 (maintenance_show_test_settings_cmd): Remove.
12193 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12194 add_show_prefix_cmd.
12195 * maint-test-options.c (maintenance_test_options_command):
12196 Remove.
12197 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12198 * macrocmd.c (macro_command): Remove
12199 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12200 * language.c (set_check, show_check): Remove.
12201 (_initialize_language): Use add_basic_prefix_cmd,
12202 add_show_prefix_cmd.
12203 * infcmd.c (unset_command): Remove.
12204 (_initialize_infcmd): Use add_basic_prefix_cmd.
12205 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12206 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12207 add_show_prefix_cmd.
12208 * go32-nat.c (go32_info_dos_command): Remove.
12209 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12210 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12211 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12212 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12213 (_initialize_frame): Use add_basic_prefix_cmd,
12214 add_show_prefix_cmd.
12215 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12216 (_initialize_dcache): Use add_basic_prefix_cmd,
12217 add_show_prefix_cmd.
12218 * cp-support.c (maint_cplus_command): Remove.
12219 (_initialize_cp_support): Use add_basic_prefix_cmd.
12220 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12221 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12222 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12223 add_basic_prefix_cmd, add_show_prefix_cmd.
12224 * breakpoint.c (save_command): Remove.
12225 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12226 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12227 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12228 add_show_prefix_cmd.
12229 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12230 (set_ada_command, show_ada_command): Remove.
12231 (_initialize_ada_language): Use add_basic_prefix_cmd,
12232 add_show_prefix_cmd.
12233 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12234
12235 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12236
12237 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12238 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12239
12240 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12241
12242 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12243 warning messages.
12244
12245 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12246
12247 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12248 import table is not at beginning of .idata section.
12249
12250 2020-04-16 Pedro Alves <palves@redhat.com>
12251
12252 * inferior.c (delete_inferior): Use delete operator directly
12253 instead of delete_program_space.
12254 * progspace.c (add_program_space): New, factored out from
12255 program_space::program_space.
12256 (remove_program_space): New, factored out from
12257 delete_program_space.
12258 (program_space::program_space): Remove intro comment. Rewrite.
12259 (program_space::~program_space): Remove intro comment. Call
12260 remove_program_space.
12261 (delete_program_space): Delete.
12262 * progspace.h (program_space::program_space): Make explicit. Move
12263 intro comment here, adjusted.
12264 (program_space::~program_space): Move intro comment here,
12265 adjusted.
12266 (delete_program_space): Remove.
12267
12268 2020-04-16 Tom Tromey <tromey@adacore.com>
12269
12270 * windows-nat.c (windows_nat::handle_access_violation): New
12271 function.
12272 * nat/windows-nat.h (handle_access_violation): Declare.
12273 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12274 windows-nat.c. Call handle_access_violation.
12275
12276 2020-04-16 Tom de Vries <tdevries@suse.de>
12277
12278 PR symtab/25791
12279 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12280 CUs without psymtab.
12281
12282 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12283
12284 * python/python.c (do_start_initialization): Don't call
12285 PyEval_InitThreads for Python 3.9 and beyond.
12286
12287 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12288
12289 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12290 thread functions.
12291 (obsd_nat_target::wait): Likewise.
12292
12293 2020-04-15 Tom Tromey <tromey@adacore.com>
12294
12295 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12296 (DEBUG_EXCEPT): Use debug_printf.
12297
12298 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12299
12300 * completer.c (class completion_tracker::completion_hash_entry)
12301 <hash_name>: New member function.
12302 (completion_tracker::discard_completions): New callback to hash a
12303 completion_hash_entry, pass this to htab_create_alloc.
12304
12305 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12306
12307 * windows-nat.c (windows_make_so): Warn rather than stopping with
12308 an error if realpath() fails.
12309
12310 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12311
12312 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12313 (nbsd_nat_target::info_proc): Add do_status.
12314
12315 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12316 Tom de Vries <tdevries@suse.de>
12317
12318 PR symtab/25718
12319 * psympriv.h (struct partial_symtab::read_symtab)
12320 (struct partial_symtab::expand_psymtab)
12321 (struct partial_symtab::read_dependencies): Update comments.
12322 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12323 read_symtab for includer.
12324 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12325 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12326 (struct dwarf2_include_psymtab::m_readin): Remove.
12327 (struct dwarf2_include_psymtab::includer): New member function.
12328 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12329
12330 2020-04-14 Tom de Vries <tdevries@suse.de>
12331
12332 PR symtab/25720
12333 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12334 with NULL symbol_matcher and lookup_name.
12335 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12336 and lookup_name.
12337 * dwarf2/read.c (dw2_expand_symtabs_matching)
12338 (dw2_debug_names_expand_symtabs_matching): Same.
12339 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12340 Make lookup_name a pointer. Update comment.
12341 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12342 lookup_name being a pointer.
12343 * symfile.c (expand_symtabs_matching): Same.
12344 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12345 * linespec.c (iterate_over_all_matching_symtabs): Same.
12346
12347 2020-04-13 Tom Tromey <tom@tromey.com>
12348
12349 * run-on-main-thread.c: Update include.
12350 * unittests/main-thread-selftests.c: Update include.
12351 * tui/tui-win.c: Update include.
12352 * tui/tui-io.c: Update include.
12353 * tui/tui-interp.c: Update include.
12354 * tui/tui-hooks.c: Update include.
12355 * top.h: Update include.
12356 * top.c: Update include.
12357 * ser-base.c: Update include.
12358 * remote.c: Update include.
12359 * remote-notif.c: Update include.
12360 * remote-fileio.c: Update include.
12361 * record-full.c: Update include.
12362 * record-btrace.c: Update include.
12363 * python/python.c: Update include.
12364 * posix-hdep.c: Update include.
12365 * mingw-hdep.c: Update include.
12366 * mi/mi-main.c: Update include.
12367 * mi/mi-interp.c: Update include.
12368 * main.c: Update include.
12369 * linux-nat.c: Update include.
12370 * interps.c: Update include.
12371 * infrun.c: Update include.
12372 * inf-loop.c: Update include.
12373 * event-top.c: Update include.
12374 * event-loop.c: Move to ../gdbsupport/.
12375 * event-loop.h: Move to ../gdbsupport/.
12376 * async-event.h: Update include.
12377 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12378
12379 2020-04-13 Tom Tromey <tom@tromey.com>
12380
12381 * tui/tui-win.c: Include async-event.h.
12382 * remote.c: Include async-event.h.
12383 * remote-notif.c: Include async-event.h.
12384 * record-full.c: Include async-event.h.
12385 * record-btrace.c: Include async-event.h.
12386 * infrun.c: Include async-event.h.
12387 * event-top.c: Include async-event.h.
12388 * event-loop.h: Move some declarations to async-event.h.
12389 * event-loop.c: Don't include ser-event.h or top.h. Move some
12390 code to async-event.c.
12391 * async-event.h: New file.
12392 * async-event.c: New file.
12393 * Makefile.in (COMMON_SFILES): Add async-event.c.
12394 (HFILES_NO_SRCDIR): Add async-event.h.
12395
12396 2020-04-13 Tom Tromey <tom@tromey.com>
12397
12398 * utils.c (flush_streams): New function.
12399 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12400
12401 2020-04-13 Tom Tromey <tom@tromey.com>
12402
12403 * event-loop.c (handle_file_event): Use warning, not
12404 printf_unfiltered.
12405
12406 2020-04-13 Tom Tromey <tom@tromey.com>
12407
12408 * event-loop.c: Include <chrono>.
12409
12410 2020-04-13 Tom Tromey <tom@tromey.com>
12411
12412 * gdb_select.h: Move to ../gdbsupport/.
12413 * event-loop.c: Update include path.
12414 * top.c: Update include path.
12415 * ser-base.c: Update include path.
12416 * ui-file.c: Update include path.
12417 * ser-tcp.c: Update include path.
12418 * guile/scm-ports.c: Update include path.
12419 * posix-hdep.c: Update include path.
12420 * ser-unix.c: Update include path.
12421 * gdb_usleep.c: Update include path.
12422 * mingw-hdep.c: Update include path.
12423 * inflow.c: Update include path.
12424 * infrun.c: Update include path.
12425 * event-top.c: Update include path.
12426
12427 2020-04-13 Tom Tromey <tom@tromey.com>
12428
12429 * configure: Rebuild.
12430 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12431
12432 2020-04-13 Tom Tromey <tom@tromey.com>
12433
12434 * event-loop.h (start_event_loop): Don't declare.
12435 * event-loop.c (start_event_loop): Move...
12436 * main.c (start_event_loop): ...here. Now static.
12437
12438 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12439
12440 * MAINTAINERS: Update my email address.
12441
12442 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12443
12444 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12445 IP_ALL.
12446
12447 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12448
12449 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12450 (nbsd_nat_target::info_proc): Add do_cmdline.
12451
12452 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12453
12454 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12455 (nbsd_nat_target::info_proc): Add do_cwd.
12456
12457 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12458
12459 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12460
12461 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12462
12463 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12464 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12465 (nbsd_nat_target::info_proc): New functions.
12466 * nbsd-nat.c (kinfo_get_vmmap): New function.
12467 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12468 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12469 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12470 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12471 functions.
12472 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12473 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12474 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12475 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12476 (KINFO_VME_FLAG_GROWS_DOWN): New.
12477
12478 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12479
12480 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12481 bit shift.
12482
12483 2020-04-10 Tom Tromey <tromey@adacore.com>
12484
12485 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12486
12487 2020-04-10 Tom Tromey <tromey@adacore.com>
12488
12489 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12490 separate debug files.
12491
12492 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12493
12494 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12495 Move to...
12496 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12497 ... here.
12498 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12499 Check for STATUS_WX86_BREAKPOINT.
12500 (windows_nat_target::wait): Same.
12501
12502 2020-04-10 Tom de Vries <tdevries@suse.de>
12503
12504 PR cli/25808
12505 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12506
12507 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12508
12509 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12510 (Write After Approval): Remove Tom de Vries.
12511
12512 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12513
12514 revert partially:
12515 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12516
12517 * buildsym.c (record_line): Fix undefined behavior and preserve
12518 lines at eof.
12519
12520 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12521
12522 * auxv.h (svr4_auxv_parse): New.
12523 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12524 and generic_auxv_parse.
12525 (svr4_auxv_parse): Add.
12526 * obsd-tdep.c: Include "auxv.h".
12527 (obsd_auxv_parse): Remove.
12528 (obsd_init_abi): Remove comment.
12529 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12530 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12531 * nbsd-tdep.c: Include "auxv.h".
12532 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12533
12534 2020-04-08 Tom Tromey <tromey@adacore.com>
12535
12536 * nat/windows-nat.h (last_wait_event): Don't declare.
12537 (wait_for_debug_event): Update comment.
12538 * nat/windows-nat.c (last_wait_event): Now static.
12539
12540 2020-04-08 Tom Tromey <tromey@adacore.com>
12541
12542 * windows-nat.c (wait_for_debug_event): Move to
12543 nat/windows-nat.c.
12544 * nat/windows-nat.h (wait_for_debug_event): Declare.
12545 * nat/windows-nat.c (wait_for_debug_event): Move from
12546 windows-nat.c. No longer static.
12547
12548 2020-04-08 Tom Tromey <tromey@adacore.com>
12549
12550 * windows-nat.c (get_windows_debug_event): Use
12551 fetch_pending_stop.
12552 * nat/windows-nat.h (fetch_pending_stop): Declare.
12553 * nat/windows-nat.c (fetch_pending_stop): New function.
12554
12555 2020-04-08 Tom Tromey <tromey@adacore.com>
12556
12557 * windows-nat.c (windows_continue): Use matching_pending_stop and
12558 continue_last_debug_event.
12559 * nat/windows-nat.h (matching_pending_stop)
12560 (continue_last_debug_event): Declare.
12561 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12562 (matching_pending_stop, continue_last_debug_event): New
12563 functions.
12564
12565 2020-04-08 Tom Tromey <tromey@adacore.com>
12566
12567 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12568 (handle_exception_result): Move to nat/windows-nat.h.
12569 (DEBUG_EXCEPTION_SIMPLE): Remove.
12570 (windows_nat::handle_ms_vc_exception): New function.
12571 (handle_exception): Move to nat/windows-nat.c.
12572 (get_windows_debug_event): Update.
12573 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12574 nat/windows-nat.c.
12575 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12576 (handle_exception_result): Move from windows-nat.c.
12577 (handle_exception): Declare.
12578 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12579 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12580 windows-nat.c.
12581
12582 2020-04-08 Tom Tromey <tromey@adacore.com>
12583
12584 * windows-nat.c (exception_count, event_count): Remove.
12585 (handle_exception, get_windows_debug_event)
12586 (do_initial_windows_stuff): Update.
12587
12588 2020-04-08 Tom Tromey <tromey@adacore.com>
12589
12590 * windows-nat.c (windows_nat::handle_load_dll)
12591 (windows_nat::handle_unload_dll): Rename. No longer static.
12592 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12593 Declare.
12594
12595 2020-04-08 Tom Tromey <tromey@adacore.com>
12596
12597 * complaints.h (stop_whining): Declare at top-level.
12598 (complaint): Don't declare stop_whining.
12599
12600 2020-04-08 Tom Tromey <tromey@adacore.com>
12601
12602 * windows-nat.c (windows_nat::handle_output_debug_string):
12603 Rename. No longer static.
12604 * nat/windows-nat.h (handle_output_debug_string): Declare.
12605
12606 2020-04-08 Tom Tromey <tromey@adacore.com>
12607
12608 * windows-nat.c (current_process_handle, current_process_id)
12609 (main_thread_id, last_sig, current_event, last_wait_event)
12610 (current_windows_thread, desired_stop_thread_id, pending_stops)
12611 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12612 (display_selectors, fake_create_process)
12613 (get_windows_debug_event): Update.
12614 * nat/windows-nat.h (current_process_handle, current_process_id)
12615 (main_thread_id, last_sig, current_event, last_wait_event)
12616 (current_windows_thread, desired_stop_thread_id, pending_stops)
12617 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12618 * nat/windows-nat.c (current_process_handle, current_process_id)
12619 (main_thread_id, last_sig, current_event, last_wait_event)
12620 (current_windows_thread, desired_stop_thread_id, pending_stops)
12621 (siginfo_er): New globals. Move from windows-nat.c.
12622
12623 2020-04-08 Tom Tromey <tromey@adacore.com>
12624
12625 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12626 (handle_load_dll): Update.
12627 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12628
12629 2020-04-08 Tom Tromey <tromey@adacore.com>
12630
12631 * windows-nat.c (enum thread_disposition_type): Move to
12632 nat/windows-nat.h.
12633 (windows_nat::thread_rec): Rename from thread_rec. No longer
12634 static.
12635 (windows_add_thread, windows_nat_target::fetch_registers)
12636 (windows_nat_target::store_registers, handle_exception)
12637 (windows_nat_target::resume, get_windows_debug_event)
12638 (windows_nat_target::get_tib_address)
12639 (windows_nat_target::thread_name)
12640 (windows_nat_target::thread_alive): Update.
12641 * nat/windows-nat.h (enum thread_disposition_type): Move from
12642 windows-nat.c.
12643 (thread_rec): Declare.
12644
12645 2020-04-08 Tom Tromey <tromey@adacore.com>
12646
12647 * windows-nat.c: Add "using namespace".
12648 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12649 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12650
12651 2020-04-08 Tom Tromey <tromey@adacore.com>
12652
12653 * nat/windows-nat.h (struct windows_thread_info): Declare
12654 destructor.
12655 * nat/windows-nat.c (~windows_thread_info): New.
12656
12657 2020-04-08 Tom Tromey <tromey@adacore.com>
12658
12659 PR gdb/22992
12660 * windows-nat.c (current_event): Update comment.
12661 (last_wait_event, desired_stop_thread_id): New globals.
12662 (struct pending_stop): New.
12663 (pending_stops): New global.
12664 (windows_nat_target) <stopped_by_sw_breakpoint>
12665 <supports_stopped_by_sw_breakpoint>: New methods.
12666 (windows_fetch_one_register): Add assertions. Adjust PC.
12667 (windows_continue): Handle pending stops. Suspend other threads
12668 when stepping. Use last_wait_event
12669 (wait_for_debug_event): New function.
12670 (get_windows_debug_event): Use wait_for_debug_event. Handle
12671 pending stops. Queue spurious stops.
12672 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12673 (windows_nat_target::kill): Use wait_for_debug_event.
12674 * nat/windows-nat.h (struct windows_thread_info)
12675 <stopped_at_software_breakpoint>: New field.
12676 * nat/windows-nat.c (windows_thread_info::resume): Clear
12677 stopped_at_software_breakpoint.
12678
12679 2020-04-08 Tom Tromey <tromey@adacore.com>
12680
12681 * windows-nat.c (enum thread_disposition_type): New.
12682 (thread_rec): Replace "get_context" parameter with "disposition";
12683 change type.
12684 (windows_add_thread, windows_nat_target::fetch_registers)
12685 (windows_nat_target::store_registers, handle_exception)
12686 (windows_nat_target::resume, get_windows_debug_event)
12687 (windows_nat_target::get_tib_address)
12688 (windows_nat_target::thread_name)
12689 (windows_nat_target::thread_alive): Update.
12690
12691 2020-04-08 Tom Tromey <tromey@adacore.com>
12692
12693 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12694 (windows_continue): Use windows_continue::resume.
12695 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12696 resume>: Declare new methods.
12697 * nat/windows-nat.c: New file.
12698 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12699
12700 2020-04-08 Tom Tromey <tromey@adacore.com>
12701
12702 * windows-nat.c (windows_add_thread, windows_delete_thread)
12703 (windows_nat_target::fetch_registers)
12704 (windows_nat_target::store_registers, fake_create_process)
12705 (windows_nat_target::resume, windows_nat_target::resume)
12706 (get_windows_debug_event, windows_nat_target::wait)
12707 (windows_nat_target::pid_to_str)
12708 (windows_nat_target::get_tib_address)
12709 (windows_nat_target::get_ada_task_ptid)
12710 (windows_nat_target::thread_name)
12711 (windows_nat_target::thread_alive): Use lwp, not tid.
12712
12713 2020-04-08 Tom Tromey <tromey@adacore.com>
12714
12715 * windows-nat.c (handle_exception)
12716 (windows_nat_target::thread_name): Update.
12717 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12718 <name>: Now unique_xmalloc_ptr.
12719
12720 2020-04-08 Tom Tromey <tromey@adacore.com>
12721
12722 * windows-nat.c (thread_rec)
12723 (windows_nat_target::fetch_registers): Update.
12724 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12725 Update comment.
12726 <debug_registers_changed, reload_context>: Now bool.
12727
12728 2020-04-08 Tom Tromey <tromey@adacore.com>
12729
12730 * windows-nat.c (windows_add_thread): Use new.
12731 (windows_init_thread_list, windows_delete_thread): Use delete.
12732 (get_windows_debug_event): Update.
12733 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12734 destructor, and initializers.
12735
12736 2020-04-08 Tom Tromey <tromey@adacore.com>
12737
12738 * windows-nat.c (struct windows_thread_info): Remove.
12739 * nat/windows-nat.h: New file.
12740
12741 2020-04-08 Tom Tromey <tromey@adacore.com>
12742
12743 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12744 (thread_rec, windows_add_thread, windows_delete_thread)
12745 (windows_continue): Update.
12746
12747 2020-04-08 Tom Tromey <tromey@adacore.com>
12748
12749 * windows-nat.c (struct windows_thread_info): Remove typedef.
12750 (thread_head): Remove.
12751 (thread_list): New global.
12752 (thread_rec, windows_add_thread, windows_init_thread_list)
12753 (windows_delete_thread, windows_continue): Update.
12754
12755 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12756
12757 * windows-tdep.h (windows_init_abi): Add comment.
12758 (cygwin_init_abi): New declaration.
12759 * windows-tdep.c: Split signal enumeration in two, one for
12760 Windows and one for Cygwin.
12761 (windows_gdb_signal_to_target): Only deal with signal of the
12762 Windows OS ABI.
12763 (cygwin_gdb_signal_to_target): New function.
12764 (windows_init_abi): Rename to windows_init_abi_common, don't set
12765 gdb_signal_to_target gdbarch method. Add new new function with
12766 this name.
12767 (cygwin_init_abi): New function.
12768 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12769 comment. Don't call windows_init_abi.
12770 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12771 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12772 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12773 i386_windows_init_abi_common, don't call windows_init_abi. Add
12774 a new function of this name.
12775 (i386_cygwin_init_abi): New function.
12776 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12777 OS ABI Cygwin.
12778
12779 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12780
12781 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12782 parameter.c.
12783 (dwarf2_read_gdb_index): Update.
12784
12785 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12786
12787 * nbsd-tdep.c: Include "objfiles.h".
12788 (nbsd_skip_solib_resolver): New.
12789 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12790
12791 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12792
12793 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12794 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12795 with DW_LLE_base_addressx are being emitted in DWARFv5.
12796 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12797 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12798 unsigned integer.
12799
12800 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12801
12802 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12803 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12804 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12805 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12806 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12807 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12808 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12809
12810
12811 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12812
12813 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12814 (read_loclist_index): New function definition.
12815 (lookup_loclist_base): New function definition.
12816 (read_loclist_header): New function definition.
12817 (dwarf2_cu): Add loclist_base and loclist_header field.
12818 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12819 (read_full_die_1): Read the value of DW_AT_loclists_base.
12820 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12821 (read_attribute_value): Handle DW_FORM_loclistx.
12822 (skip_one_die): Handle DW_FORM_loclistx.
12823 (loclist_header): New structure declaration.
12824 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12825
12826 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12827
12828 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12829 constructor. Remove `addr` parameter from other constructor and
12830 add `per_cu` parameter.
12831 * dwarf2/read.c (create_partial_symtab): Update.
12832
12833 2020-04-07 Tom de Vries <tdevries@suse.de>
12834
12835 PR symtab/25796
12836 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12837 (partial_die_info::fixup): Inherit has_const_value.
12838
12839 2020-04-07 Tom de Vries <tdevries@suse.de>
12840
12841 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12842 symbols without address.
12843
12844 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12845
12846 * nbsd-nat.h (struct thread_info): Add forward declaration.
12847 (nbsd_nat_target::thread_alive): Add.
12848 (nbsd_nat_target::thread_name): Likewise.
12849 (nbsd_nat_target::update_thread_list): Likewise.
12850 (update_thread_list::post_attach): Likewise.
12851 (post_attach::pid_to_str): Likewise.
12852 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12853 (nbsd_thread_lister): Add.
12854 (nbsd_nat_target::thread_alive): Likewise.
12855 (nbsd_nat_target::thread_name): Likewise.
12856 (nbsd_add_threads): Likewise.
12857 (update_thread_list::post_attach): Likewise.
12858 (nbsd_nat_target::update_thread_list): Likewise.
12859 (post_attach::pid_to_str): Likewise.
12860
12861 2020-04-06 Tom Tromey <tromey@adacore.com>
12862
12863 * ada-valprint.c (print_variant_part): Extract the variant field.
12864 (print_field_values): Use the field as the outer value when
12865 recursing.
12866
12867 2020-04-06 Tom Tromey <tromey@adacore.com>
12868
12869 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12870 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12871 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12872 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12873 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12874
12875 2020-04-06 Tom Tromey <tromey@adacore.com>
12876
12877 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12878 TYPE_CODE_ERROR.
12879
12880 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12881
12882 * nbsd-tdep.c: Include "gdbarch.h".
12883 Define enum with NetBSD signal numbers.
12884 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12885 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12886 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12887 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12888 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12889 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12890 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12891 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12892 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12893 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12894 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12895 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12896
12897 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12898
12899 PR gdb/25325
12900 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12901
12902 2020-04-03 Tom Tromey <tromey@adacore.com>
12903
12904 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12905 Read constant block.
12906
12907 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12908
12909 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12910 (gdb_bfd_get_full_section_contents): New declaration.
12911 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12912 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12913 gdb_bfd_get_full_section_contents.
12914
12915 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12916
12917 * exec.c (build_section_table): Replace internal_error with
12918 gdb_assert.
12919 (section_table_xfer_memory_partial): Likewise.
12920 * mdebugread.c (parse_partial_symbols): Likewise.
12921 * psymtab.c (lookup_partial_symbol): Likewise.
12922 * utils.c (wrap_here): Likewise.
12923
12924 2020-04-02 Tom Tromey <tromey@adacore.com>
12925
12926 * f-lang.c (build_fortran_types): Use arch_type to initialize
12927 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12928
12929 2020-04-02 Tom Tromey <tromey@adacore.com>
12930
12931 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12932 of attributes.
12933
12934 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12935 Bernd Edlinger <bernd.edlinger@hotmail.de>
12936 Tom Tromey <tromey@adacore.com>
12937
12938 * buildsym.c (buildsym_compunit::record_line): Remove
12939 deduplication code.
12940
12941 2020-04-02 Tom de Vries <tdevries@suse.de>
12942
12943 PR ada/24671
12944 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12945
12946 2020-04-02 Tom de Vries <tdevries@suse.de>
12947
12948 * dwarf2/read.c (dwarf2_gdb_index_functions,
12949 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12950 NULL.
12951 * psymtab.c (psym_lookup_global_symbol_language): New function.
12952 (psym_functions): Init psym_lookup_global_symbol_language with
12953 psym_lookup_global_symbol_language.
12954 * symfile-debug.c (debug_sym_quick_functions): Init
12955 lookup_global_symbol_language with NULL.
12956 * symfile.c (set_initial_language): Remove fixme comment.
12957 * symfile.h (struct quick_symbol_functions): Add
12958 lookup_global_symbol_language.
12959 * symtab.c (find_quick_global_symbol_language): New function.
12960 (find_main_name): Use find_quick_global_symbol_language.
12961
12962 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12963
12964 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12965
12966 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12967
12968 * buildsym.c (record_line): Fix undefined behavior and preserve
12969 lines at eof.
12970
12971 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12972
12973 * buildsym.c (record_line): Fix the resizing condition.
12974
12975 2020-04-01 Tom Tromey <tom@tromey.com>
12976
12977 * value.h (value_literal_complex): Add comment.
12978 * valops.c (value_literal_complex): Refer to value.h.
12979
12980 2020-04-01 Tom Tromey <tom@tromey.com>
12981
12982 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12983 (scalar_type): New rule, from typebase.
12984 (typebase): Use scalar_type. Recognize complex types.
12985 (field_name): Handle FLOAT_KEYWORD.
12986 (ident_tokens): Add _Complex and __complex__.
12987
12988 2020-04-01 Tom Tromey <tom@tromey.com>
12989
12990 PR exp/25299:
12991 * valarith.c (promotion_type, complex_binop): New functions.
12992 (scalar_binop): Handle complex numbers. Use promotion_type.
12993 (value_pos, value_neg, value_complement): Handle complex numbers.
12994
12995 2020-04-01 Tom Tromey <tom@tromey.com>
12996
12997 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12998 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12999 (parse_number): Handle complex numbers.
13000
13001 2020-04-01 Tom Tromey <tom@tromey.com>
13002
13003 * c-valprint.c (c_decorations): Change complex suffix to "i".
13004
13005 2020-04-01 Tom Tromey <tom@tromey.com>
13006
13007 * valprint.c (generic_value_print_complex): Use accessors.
13008 * value.h (value_real_part, value_imaginary_part): Declare.
13009 * valops.c (value_real_part, value_imaginary_part): New
13010 functions.
13011 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13012
13013 2020-04-01 Tom Tromey <tom@tromey.com>
13014
13015 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13016 (read_range_type): Update.
13017 * mdebugread.c (basic_type): Update.
13018 * go-lang.c (build_go_types): Use init_complex_type.
13019 * gdbtypes.h (struct main_type) <complex_type>: New member.
13020 (init_complex_type): Update.
13021 (arch_complex_type): Don't declare.
13022 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13023 Make name if none given. Use alloc_type_copy. Look for cached
13024 complex type.
13025 (arch_complex_type): Remove.
13026 (gdbtypes_post_init): Use init_complex_type.
13027 * f-lang.c (build_fortran_types): Use init_complex_type.
13028 * dwarf2/read.c (read_base_type): Update.
13029 * d-lang.c (build_d_types): Use init_complex_type.
13030 * ctfread.c (read_base_type): Update.
13031
13032 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13033
13034 * infrun.c (stop_all_threads): Update assertion, plus when
13035 stopping threads, take into account that we might be trying
13036 to stop an all-stop target.
13037 (stop_waiting): Call 'stop_all_threads' if there exists a
13038 non-stop target.
13039
13040 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13041
13042 * target.h (exists_non_stop_target): New function declaration.
13043 * target.c (exists_non_stop_target): New function.
13044
13045 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13046
13047 PR gdb/24789
13048 * eval.c (is_integral_or_integral_reference): New function.
13049 (evaluate_subexp_standard): Allow integer references in
13050 pointer arithmetic.
13051
13052 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13053
13054 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13055 check for no ptid in the stop reply when the target is non-stop.
13056
13057 2020-04-01 Tom Tromey <tromey@adacore.com>
13058
13059 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13060 "name" parameter to rvalue reference. Initialize m_name_holder.
13061 <lookup_name_info>: New overloads.
13062 <name>: Return gdb::string_view.
13063 <c_str>: New method.
13064 <make_ignore_params>: Update.
13065 <search_name_hash>: Update.
13066 <language_lookup_name>: Return const char *.
13067 <m_name>: Change type.
13068 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13069 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13070 (lookup_name_info::match_any): Update.
13071 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13072 Update.
13073 * minsyms.c (linkage_name_str): Update.
13074 * language.c (default_symbol_name_matcher): Update.
13075 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13076 Update.
13077 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13078 (ada_lookup_name_info::ada_lookup_name_info): Update.
13079 (literal_symbol_name_matcher): Update.
13080
13081 2020-04-01 Tom Tromey <tromey@adacore.com>
13082
13083 * psymtab.c (psymtab_search_name): Remove function.
13084 (psym_lookup_symbol): Create search name and lookup name here.
13085 (lookup_partial_symbol): Remove "name" parameter; add
13086 lookup_name.
13087 (psym_expand_symtabs_for_function): Update.
13088
13089 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13090
13091 PR tui/25597:
13092 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13093
13094 2020-03-31 Tom Tromey <tromey@adacore.com>
13095
13096 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13097 memcpy.
13098
13099 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13100
13101 * features/riscv/32bit-csr.xml: Regenerated.
13102 * features/riscv/64bit-csr.xml: Regenerated.
13103
13104 2020-03-30 Tom Tromey <tromey@adacore.com>
13105
13106 * ada-valprint.c (print_variant_part): Update.
13107 * ada-lang.h (ada_which_variant_applies): Update.
13108 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13109 outer_valaddr parameters; replace with "outer" value parameter.
13110 (to_fixed_variant_branch_type): Update.
13111
13112 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13113
13114 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13115 <list>. Remove inclusion of observable.h.
13116 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13117 (struct arch_lwp_info): New struct.
13118 (class ppc_linux_dreg_interface): New class.
13119 (struct ppc_linux_process_info): New struct.
13120 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13121 <low_new_clone, low_forget_process, low_prepare_to_resume>
13122 <copy_thread_dreg_state, mark_thread_stale>
13123 <mark_debug_registers_changed, register_hw_breakpoint>
13124 <clear_hw_breakpoint, register_wp, clear_wp>
13125 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13126 <num_memory_accesses, get_trigger_type>
13127 <create_watchpoint_request, hwdebug_point_cmp>
13128 <init_arch_lwp_info, get_arch_lwp_info>
13129 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13130 methods.
13131 <struct ptid_hash>: New inner struct.
13132 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13133 members.
13134 (saved_dabr_value, hwdebug_info, max_slots_number)
13135 (struct hw_break_tuple, struct thread_points, ppc_threads)
13136 (have_ptrace_hwdebug_interface)
13137 (hwdebug_find_thread_points_by_tid)
13138 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13139 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13140 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13141 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13142 use m_dreg_interface.
13143 (hwdebug_point_cmp): Change to...
13144 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13145 reference arguments instead of pointers.
13146 (ppc_linux_nat_target::ranged_break_num_registers): Use
13147 m_dreg_interface.
13148 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13149 m_dreg_interface. Call register_hw_breakpoint.
13150 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13151 m_dreg_interface. Call clear_hw_breakpoint.
13152 (get_trigger_type): Change to...
13153 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13154 comment.
13155 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13156 use m_dreg_interface. Call register_hw_breakpoint.
13157 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13158 use m_dreg_interface. Call clear_hw_breakpoint.
13159 (can_use_watchpoint_cond_accel): Change to...
13160 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13161 method. Update comment, use m_dreg_interface and
13162 m_process_info.
13163 (calculate_dvc): Change to...
13164 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13165 m_dreg_interface.
13166 (num_memory_accesses): Change to...
13167 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13168 (check_condition): Change to...
13169 (ppc_linux_nat_target::check_condition): ...this method.
13170 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13171 comment, use m_dreg_interface.
13172 (create_watchpoint_request): Change to...
13173 (ppc_linux_nat_target::create_watchpoint_request): ...this
13174 method. Use m_dreg_interface.
13175 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13176 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13177 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13178 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13179 (ppc_linux_nat_target::low_forget_process)
13180 (ppc_linux_nat_target::low_new_fork)
13181 (ppc_linux_nat_target::low_new_clone)
13182 (ppc_linux_nat_target::low_delete_thread)
13183 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13184 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13185 only call mark_thread_stale.
13186 (ppc_linux_thread_exit): Remove.
13187 (ppc_linux_nat_target::stopped_data_address): Change to...
13188 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13189 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13190 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13191 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13192 comment. Call low_stopped_data_address.
13193 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13194 m_dreg_interface.
13195 (ppc_linux_nat_target::masked_watch_num_registers): Use
13196 m_dreg_interface.
13197 (ppc_linux_nat_target::copy_thread_dreg_state)
13198 (ppc_linux_nat_target::mark_thread_stale)
13199 (ppc_linux_nat_target::mark_debug_registers_changed)
13200 (ppc_linux_nat_target::register_hw_breakpoint)
13201 (ppc_linux_nat_target::clear_hw_breakpoint)
13202 (ppc_linux_nat_target::register_wp)
13203 (ppc_linux_nat_target::clear_wp)
13204 (ppc_linux_nat_target::init_arch_lwp_info)
13205 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13206 (_initialize_ppc_linux_nat): Remove observer callback.
13207
13208 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13209
13210 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13211 (ppc_linux_nat_target::auxv_parse)
13212 (ppc_linux_nat_target::read_description)
13213 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13214 Move up.
13215
13216 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13217
13218 * linux-nat.h (low_new_clone): New method.
13219 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13220
13221 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13222
13223 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13224 (dbx_expand_psymtab): ... this.
13225 (start_psymtab): Update.
13226 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13227 (mdebug_expand_psymtab): ... this.
13228 (parse_partial_symbols): Update.
13229 (new_psymtab): Update.
13230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13231 (xcoff_expand_psymtab): ... this.
13232 (xcoff_start_psymtab): Update.
13233
13234 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13235
13236 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13237 <expand_dependencies>: ... this.
13238 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13239 (partial_symtab::expand_dependencies): ... this.
13240 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13241 Update.
13242 (dwarf2_psymtab::expand_psymtab): Update.
13243 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13244 * mdebugread.c (psymtab_to_symtab_1): Update.
13245 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13246
13247 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * psympriv.h (discard_psymtab): Remove.
13250 * dbxread.c (dbx_end_psymtab): Update.
13251 * xcoffread.c (xcoff_end_psymtab): Update.
13252
13253 2020-03-28 Tom Tromey <tom@tromey.com>
13254
13255 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13256 comment.
13257
13258 2020-03-28 Tom Tromey <tom@tromey.com>
13259
13260 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13261
13262 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13263
13264 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13265
13266 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13267
13268 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13269
13270 2020-03-26 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13273 (mark_common_block_symbol_computed, read_tag_string_type)
13274 (attr_to_dynamic_prop, read_subrange_type): Update.
13275 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13276 to be methods on struct attribute.
13277 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13278 (read_call_site_scope, partial_die_info::read)
13279 (partial_die_info::read, lookup_die_type, follow_die_ref):
13280 Update.
13281 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13282 from dwarf2_get_ref_die_offset.
13283 (attribute::constant_value): New method, from
13284 dwarf2_get_attr_constant_value.
13285 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13286 Declare method.
13287 <constant_value>: New method.
13288
13289 2020-03-26 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13292 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13293 (dwarf_type_encoding_name): Move to stringify.c.
13294 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13295 * dwarf2/stringify.c: New file.
13296 * dwarf2/stringify.h: New file.
13297
13298 2020-03-26 Tom Tromey <tom@tromey.com>
13299
13300 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13301 Rewrite.
13302
13303 2020-03-26 Tom Tromey <tom@tromey.com>
13304
13305 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13306 methods.
13307 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13308 (lookup_ranges_base): Likewise.
13309 (read_cutu_die_from_dwo, read_full_die_1): Update.
13310
13311 2020-03-26 Tom Tromey <tom@tromey.com>
13312
13313 * dwarf2/read.c (read_import_statement, read_file_scope)
13314 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13315 (read_lexical_block_scope, read_call_site_scope)
13316 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13317 (handle_struct_member_die, process_structure_scope)
13318 (update_enumeration_type_from_children)
13319 (process_enumeration_scope, read_array_type, read_common_block)
13320 (read_namespace, read_module, read_subroutine_type): Update.
13321 (sibling_die): Remove.
13322
13323 2020-03-26 Tom Tromey <tom@tromey.com>
13324
13325 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13326 (build_type_psymtabs_reader, read_structure_type)
13327 (read_enumeration_type, read_full_die_1): Update.
13328 (dwarf2_attr_no_follow): Move to die.h.
13329 * dwarf2/die.h (struct die_info) <attr>: New method.
13330
13331 2020-03-26 Tom Tromey <tom@tromey.com>
13332
13333 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13334 <base_address>: Now an optional.
13335 (dwarf2_find_base_address, dwarf2_rnglists_process)
13336 (dwarf2_ranges_process, fill_in_loclist_baton)
13337 (dwarf2_symbol_mark_computed): Update.
13338
13339 2020-03-26 Tom Tromey <tom@tromey.com>
13340
13341 * dwarf2/read.c (struct die_info): Move to die.h.
13342 * dwarf2/die.h: New file.
13343
13344 2020-03-26 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13347 * dwarf2/read.c
13348 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13349 Move to line-header.c.
13350 (read_checked_initial_length_and_offset, read_formatted_entries):
13351 Likewise.
13352 (dwarf_decode_line_header): Split into two.
13353 * dwarf2/line-header.c
13354 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13355 Move from read.c.
13356 (read_checked_initial_length_and_offset, read_formatted_entries):
13357 Likewise.
13358 (dwarf_decode_line_header): New function, split from read.c.
13359
13360 2020-03-26 Tom Tromey <tom@tromey.com>
13361
13362 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13363 Declare method.
13364 * dwarf2/read.c (read_attribute_value): Update.
13365 (dwarf2_per_objfile::read_line_string): Rename from
13366 read_indirect_line_string.
13367 (read_formatted_entries): Update.
13368
13369 2020-03-26 Tom Tromey <tom@tromey.com>
13370
13371 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13372 variable.
13373
13374 2020-03-26 Tom Tromey <tom@tromey.com>
13375
13376 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13377 const.
13378 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13379 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13380 parameter const.
13381
13382 2020-03-26 Tom Tromey <tom@tromey.com>
13383
13384 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13385 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13386 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13387 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13388
13389 2020-03-26 Tom Tromey <tom@tromey.com>
13390
13391 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13392 file_names_size, file_full_name, file_file_name>: Use const.
13393 <file_name_at, file_names>: Add const overload.
13394 * dwarf2/line-header.c (line_header::file_file_name)
13395 (line_header::file_full_name): Update.
13396
13397 2020-03-26 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13400 (macro_start_file, consume_improper_spaces)
13401 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13402 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13403 (dwarf_decode_macros): Move to macro.c.
13404 * dwarf2/macro.c: New file.
13405 * dwarf2/macro.h: New file.
13406 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13407
13408 2020-03-26 Tom Tromey <tom@tromey.com>
13409
13410 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13411 method.
13412 * dwarf2/section.c: New method. From
13413 read_indirect_string_at_offset_from.
13414 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13415 (read_indirect_string_at_offset_from): Move to section.c.
13416 (read_indirect_string_at_offset): Rewrite.
13417 (read_indirect_line_string_at_offset): Remove.
13418 (read_indirect_string, read_indirect_line_string)
13419 (dwarf_decode_macro_bytes): Update.
13420
13421 2020-03-26 Tom Tromey <tom@tromey.com>
13422
13423 * dwarf2/section.h (struct dwarf2_section_info)
13424 <overload_complaint>: Declare.
13425 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13426 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13427 Rename from dwarf2_section_buffer_overflow_complaint.
13428 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13429 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13430
13431 2020-03-26 Tom Tromey <tom@tromey.com>
13432
13433 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13434 Declare.
13435 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13436 Move from read.c.
13437 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13438 to section.c.
13439
13440 2020-03-26 Tom Tromey <tom@tromey.com>
13441
13442 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13443
13444 2020-03-26 Tom Tromey <tom@tromey.com>
13445
13446 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13447 "builder".
13448 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13449 parameter.
13450 (dwarf_decode_macros): Update.
13451
13452 2020-03-26 Tom Tromey <tom@tromey.com>
13453
13454 * dwarf2/read.c (read_attribute_value): Update.
13455 (read_indirect_string_from_dwz): Move to dwz.c; change into
13456 method.
13457 (dwarf_decode_macro_bytes): Update.
13458 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13459 * dwarf2/dwz.c: New file.
13460 * Makefile.in (COMMON_SFILES): Add dwz.c.
13461
13462 2020-03-26 Tom Tromey <tom@tromey.com>
13463
13464 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13465 * dwarf2/read.c: Add include.
13466 * dwarf2/index-write.c: Add include.
13467 * dwarf2/index-cache.c: Add include.
13468 * dwarf2/dwz.h: New file.
13469
13470 2020-03-25 Tom Tromey <tom@tromey.com>
13471
13472 * compile/compile-object-load.c (get_out_value_type): Mention
13473 correct symbol name in error message.
13474
13475 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13476
13477 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13478
13479 2020-03-25 Tom de Vries <tdevries@suse.de>
13480
13481 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13482 * symmisc.c (dump_symtab_1): Print user and includes fields.
13483 (maintenance_info_symtabs): Same.
13484
13485 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 PR gdb/25534
13488 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13489 (riscv_regcache_cooked_write): New function.
13490 (riscv_push_dummy_call): Use new function.
13491 (riscv_return_value): Likewise.
13492
13493 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13494
13495 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13496 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13497 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13498 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13499 * infrun.c (follow_fork): Likewise.
13500 (follow_fork_inferior): Likewise.
13501 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13502 * linux-nat.h (class linux_nat_target): Likewise.
13503 * remote.c (class remote_target) <follow_fork>: Likewise.
13504 (remote_target::follow_fork): Likewise.
13505 * target-delegates.c: Re-generate.
13506 * target.c (default_follow_fork): Likewise.
13507 (target_follow_fork): Likewise.
13508 * target.h (struct target_ops) <follow_fork>: Likewise.
13509 (target_follow_fork): Likewise.
13510
13511 2020-03-24 Tom de Vries <tdevries@suse.de>
13512
13513 * psymtab.c (maintenance_info_psymtabs): Print user field.
13514
13515 2020-03-20 Tom Tromey <tromey@adacore.com>
13516
13517 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13518 const.
13519 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13520 const.
13521
13522 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13523
13524 * ptrace.m4: Don't check for ptrace declaration.
13525 * config.in: Re-generate.
13526 * configure: Re-generate.
13527 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13528 not defined.
13529
13530 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13531
13532 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13533 `PTRACE_TYPE_RET'.
13534 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13535 * sparc-nat.c (gdb_ptrace): Likewise.
13536 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13537
13538 2020-03-20 Tom Tromey <tromey@adacore.com>
13539
13540 * c-exp.y (lex_one_token): Fix assert.
13541
13542 2020-03-20 Tom Tromey <tromey@adacore.com>
13543
13544 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13545 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13546 strncpy call.
13547
13548 2020-03-20 Tom Tromey <tromey@adacore.com>
13549
13550 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13551
13552 2020-03-20 Tom Tromey <tromey@adacore.com>
13553
13554 * ada-valprint.c (print_variant_part): Remove parameters; switch
13555 to value-based API.
13556 (print_field_values): Likewise.
13557 (ada_val_print_struct_union): Likewise.
13558 (ada_value_print_1): Update.
13559
13560 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13561
13562 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13563 nbsd_nat_target instead of inf_ptrace_target.
13564 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13565 nbsd_nat_target.
13566
13567 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13568
13569 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13570 it to the ptrace call.
13571 * (store_registers): Likewise.
13572
13573 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13574
13575 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13576 it to the ptrace call.
13577 * (store_registers): Likewise.
13578
13579 2020-03-19 Luis Machado <luis.machado@linaro.org>
13580
13581 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13582 valid, fetch vg value from ptrace.
13583
13584 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13585 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13586 * inf-ptrace.c: Likewise.
13587 * (gdb_ptrace): Add.
13588 * (inf_ptrace_target::resume): Update.
13589 * (inf_ptrace_target::xfer_partial): Likewise.
13590 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13591 * (inf_ptrace_peek_poke): Update.
13592
13593 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13594
13595 * x86-bsd-nat.c (gdb_ptrace): New.
13596 * (x86bsd_dr_set): Add new argument `ptid'.
13597 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13598 x86bsd_dr_set_addr): Update.
13599
13600 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13601
13602 * remote.c (remote_target::process_stop_reply): Handle events for
13603 all threads differently.
13604
13605 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13606
13607 * completer.c (completion_tracker::remove_completion): Define new
13608 function.
13609 * completer.h (completion_tracker::remove_completion): Declare new
13610 function.
13611 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13612 when adding a C++ function symbol.
13613
13614 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * completer.c (completion_tracker::completion_hash_entry): Define
13617 new class.
13618 (advance_to_filename_complete_word_point): Call
13619 recompute_lowest_common_denominator.
13620 (completion_tracker::completion_tracker): Call discard_completions
13621 to setup the hash table.
13622 (completion_tracker::discard_completions): Allow for being called
13623 from the constructor, pass new equal function, and element deleter
13624 when constructing the hash table. Initialise new class member
13625 variables.
13626 (completion_tracker::maybe_add_completion): Remove use of
13627 m_entries_vec, and store more information into m_entries_hash.
13628 (completion_tracker::recompute_lcd_visitor): New function, most
13629 content taken from...
13630 (completion_tracker::recompute_lowest_common_denominator):
13631 ...here, this now just visits each item in the hash calling the
13632 above visitor.
13633 (completion_tracker::build_completion_result): Remove use of
13634 m_entries_vec, call recompute_lowest_common_denominator.
13635 * completer.h (completion_tracker::have_completions): Remove use
13636 of m_entries_vec.
13637 (completion_tracker::completion_hash_entry): Declare new class.
13638 (completion_tracker::recompute_lowest_common_denominator): Change
13639 function signature.
13640 (completion_tracker::recompute_lcd_visitor): Declare new function.
13641 (completion_tracker::m_entries_vec): Delete.
13642 (completion_tracker::m_entries_hash): Initialize to NULL.
13643 (completion_tracker::m_lowest_common_denominator_valid): New
13644 member variable.
13645 (completion_tracker::m_lowest_common_denominator_max_length): New
13646 member variable.
13647
13648 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13649
13650 * regformats/regdef.h: Put reg in gdb namespace.
13651
13652 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13653
13654 * i386-bsd-nat.c (gdb_ptrace): New.
13655 * (i386bsd_fetch_inferior_registers,
13656 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13657 * (i386bsd_fetch_inferior_registers,
13658 i386bsd_store_inferior_registers) Use gdb_ptrace.
13659
13660 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13661
13662 * amd64-bsd-nat.c (gdb_ptrace): New.
13663 * (amd64bsd_fetch_inferior_registers,
13664 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13665 * (amd64bsd_fetch_inferior_registers,
13666 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13667
13668 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13669
13670 * user-regs.c (user_reg::read): Rename to...
13671 (user_reg::xread): ...this.
13672 * (append_user_reg): Rename argument `read' to `xread'.
13673 * (user_reg_add_builtin): Likewise.
13674 * (user_reg_add): Likewise.
13675 * (value_of_user_reg): Likewise.
13676
13677 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13678
13679 * sparc-nat.c (gdb_ptrace): New.
13680 * sparc-nat.c (sparc_fetch_inferior_registers)
13681 (sparc_store_inferior_registers) Remove obsolete comment.
13682 * sparc-nat.c (sparc_fetch_inferior_registers)
13683 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13684 * sparc-nat.c (sparc_fetch_inferior_registers)
13685 (sparc_store_inferior_registers) Use gdb_ptrace.
13686
13687 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13688
13689 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13690 it to the ptrace call.
13691 * sh-nbsd-nat.c (store_registers): Likewise.
13692
13693 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13694
13695 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13696 nbsd_nat_target instead of inf_ptrace_target.
13697 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13698 nbsd_nat_target.
13699
13700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13701
13702 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13703
13704 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13705
13706 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13707 <sys/sysctl.h>.
13708 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13709
13710 2020-03-17 Tom de Vries <tdevries@suse.de>
13711
13712 PR gdb/23710
13713 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13714 fields.
13715 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13716 fields.
13717 (process_imported_unit_die): Skip import of c++ CUs.
13718
13719 2020-03-16 Tom Tromey <tom@tromey.com>
13720
13721 * p-valprint.c (pascal_object_print_value): Initialize
13722 base_value.
13723
13724 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13725 Shahab Vahedi <shahab@synopsys.com>
13726
13727 * Makefile.in: Add arch/arc.o
13728 * configure.tgt: Likewise.
13729 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13730 (_initialize_arc_tdep): Don't initialize old target descriptions.
13731 (arc_read_description): New function to cache target descriptions.
13732 * arc-tdep.h (arc_read_description): Add proto type.
13733 * arch/arc.c: New file.
13734 * arch/arc.h: Likewise.
13735 * features/Makefile: Replace old target descriptions with new.
13736 * features/arc-arcompact.c: Remove.
13737 * features/arc-arcompact.xml: Likewise.
13738 * features/arc-v2.c: Likewise
13739 * features/arc-v2.xml: Likewise
13740 * features/arc/aux-arcompact.xml: New file.
13741 * features/arc/aux-v2.xml: Likewise.
13742 * features/arc/core-arcompact.xml: Likewise.
13743 * features/arc/core-v2.xml: Likewise.
13744 * features/arc/aux-arcompact.c: Generate.
13745 * features/arc/aux-v2.c: Likewise.
13746 * features/arc/core-arcompact.c: Likewise.
13747 * features/arc/core-v2.c: Likewise.
13748 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13749
13750 2020-03-16 Tom Tromey <tromey@adacore.com>
13751
13752 PR gdb/25663:
13753 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13754 putting value into bcache.
13755
13756 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13757
13758 PR gdb/21500
13759 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13760 to...
13761 (amd64_windows_init_abi_common): ... this. Don't set size of
13762 long type.
13763 (amd64_windows_init_abi): New function.
13764 (amd64_cygwin_init_abi): New function.
13765 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13766 the Cygwin OS ABI.
13767 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13768 comment.
13769
13770 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13771
13772 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13773 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13774 (pe_import_directory_entry): New struct type.
13775 (is_linked_with_cygwin_dll): New function.
13776 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13777 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13778 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13779
13780 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13781
13782 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13783 i386_cygwin_core_osabi_sniffer.
13784
13785 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13786
13787 * i386-cygwin-tdep.c: Rename to...
13788 * i386-windows-tdep.c: ... this.
13789 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13790 i386-windows-tdep.c.
13791 * configure.tgt: Likewise.
13792
13793 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13794
13795 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13796 * osabi.c (gdb_osabi_names): Add "Windows".
13797 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13798 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13799 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13800 i386_cygwin_osabi_sniffer.
13801 (_initialize_i386_cygwin_tdep): Register OS ABI
13802 GDB_OSABI_WINDOWS for i386.
13803 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13804 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13805 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13806 for x86-64.
13807 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13808 when the target matches '*-*-mingw*'.
13809
13810 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13811
13812 * defs.h (enum gdb_osabi): Move to...
13813 * osabi.h (enum gdb_osabi): ... here.
13814 * gdbarch.sh: Include osabi.h in gdbarch.h.
13815 * gdbarch.h: Re-generate.
13816
13817 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13818
13819 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13820 function.
13821 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13822
13823 2020-03-14 Tom Tromey <tom@tromey.com>
13824
13825 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13826 for C++.
13827 (c_type_print_modifier): Likewise. Add "language" parameter.
13828 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13829 (c_type_print_base_1): Update.
13830 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13831 constants.
13832 * type-stack.c (type_stack::insert): Handle tp_atomic and
13833 tp_restrict.
13834 (type_stack::follow_type_instance_flags): Likewise.
13835 (type_stack::follow_types): Likewise. Merge type-following code.
13836 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13837 (space_identifier, cv_with_space_id)
13838 (const_or_volatile_or_space_identifier_noopt)
13839 (const_or_volatile_or_space_identifier): Remove.
13840 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13841 rules.
13842 (ptr_operator, typebase): Update.
13843 (enum token_flag) <FLAG_C>: New constant.
13844 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13845 "_Atomic".
13846 (lex_one_token): Handle FLAG_C.
13847
13848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13849
13850 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13851 it to the ptrace call.
13852 * m68k-bsd-nat.c (store_registers): Likewise.
13853
13854 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13855
13856 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13857 gdb_byte *.
13858 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13859 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13860 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13861
13862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13863
13864 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13865 nbsd_nat_target instead of inf_ptrace_target.
13866 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13867 nbsd_nat_target.
13868
13869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13870
13871 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13872 register_t.
13873
13874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13875
13876 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13877 it to the ptrace call.
13878 * alpha-bsd-nat.c (store_registers): Likewise.
13879
13880 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13881
13882 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13883 includes.
13884 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13885 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13886 fill_fpregset): Likewise.
13887
13888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13889
13890 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13891 nbsd_nat_target instead of inf_ptrace_target.
13892 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13893 nbsd_nat_target.
13894
13895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13896
13897 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13898 register_t.
13899
13900 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13901
13902 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13903 it to the ptrace call.
13904 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13905 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13906 * arm-nbsd-nat.c (store_register): Likewise.
13907 * arm-nbsd-nat.c (store_regs): Likewise.
13908 * arm-nbsd-nat.c (store_fp_register): Likewise.
13909 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13910
13911 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13912
13913 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13914 nbsd_nat_target instead of inf_ptrace_target.
13915 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13916 nbsd_nat_target.
13917
13918 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13919
13920 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13921 it to the ptrace call.
13922 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13923
13924 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13925
13926 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13927 it to the ptrace call.
13928 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13929
13930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13931
13932 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13933 gdb_byte *.
13934 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13935
13936 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13937
13938 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13939 instead of inf_ptrace_target.
13940 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13941 nbsd_nat_target.
13942
13943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13944
13945 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13946 register_t.
13947
13948 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13949
13950 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13951 register_t.
13952
13953 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13954
13955 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13956 register_t.
13957
13958 2020-03-13 Tom Tromey <tom@tromey.com>
13959
13960 * value.h (val_print): Don't declare.
13961 * valprint.h (val_print_array_elements)
13962 (val_print_scalar_formatted, generic_val_print): Don't declare.
13963 * valprint.c (generic_val_print_array): Take a struct value.
13964 (generic_val_print_ptr, generic_val_print_memberptr)
13965 (generic_val_print_bool, generic_val_print_int)
13966 (generic_val_print_char, generic_val_print_complex)
13967 (generic_val_print): Remove.
13968 (generic_value_print): Update.
13969 (do_val_print): Remove unused parameters. Don't call
13970 la_val_print.
13971 (val_print): Remove.
13972 (common_val_print): Update. Don't call value_check_printable.
13973 (val_print_scalar_formatted, val_print_array_elements): Remove.
13974 * rust-lang.c (rust_val_print): Remove.
13975 (rust_language_defn): Update.
13976 * p-valprint.c (pascal_val_print): Remove.
13977 (pascal_value_print_inner): Update.
13978 (pascal_object_print_val_fields, pascal_object_print_val):
13979 Remove.
13980 (pascal_object_print_static_field): Update.
13981 * p-lang.h (pascal_val_print): Don't declare.
13982 * p-lang.c (pascal_language_defn): Update.
13983 * opencl-lang.c (opencl_language_defn): Update.
13984 * objc-lang.c (objc_language_defn): Update.
13985 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13986 * m2-lang.h (m2_val_print): Don't declare.
13987 * m2-lang.c (m2_language_defn): Update.
13988 * language.h (struct language_defn) <la_val_print>: Remove.
13989 * language.c (unk_lang_value_print_inner): Rename. Change
13990 argument types.
13991 (unknown_language_defn, auto_language_defn): Update.
13992 * go-valprint.c (go_val_print): Remove.
13993 * go-lang.h (go_val_print): Don't declare.
13994 * go-lang.c (go_language_defn): Update.
13995 * f-valprint.c (f_val_print): Remove.
13996 * f-lang.h (f_value_print): Don't declare.
13997 * f-lang.c (f_language_defn): Update.
13998 * d-valprint.c (d_val_print): Remove.
13999 * d-lang.h (d_value_print): Don't declare.
14000 * d-lang.c (d_language_defn): Update.
14001 * cp-valprint.c (cp_print_value_fields)
14002 (cp_print_value_fields_rtti, cp_print_value): Remove.
14003 (cp_print_static_field): Update.
14004 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14005 (c_val_print_struct, c_val_print_union, c_val_print_int)
14006 (c_val_print_memberptr, c_val_print): Remove.
14007 * c-lang.h (c_val_print_array, cp_print_value_fields)
14008 (cp_print_value_fields_rtti): Don't declare.
14009 * c-lang.c (c_language_defn, cplus_language_defn)
14010 (asm_language_defn, minimal_language_defn): Update.
14011 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14012 (ada_val_print_enum): Take a struct value.
14013 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14014 (ada_val_print): Remove.
14015 (ada_value_print_1): Update.
14016 (printable_val_type): Remove.
14017 * ada-lang.h (ada_val_print): Don't declare.
14018 * ada-lang.c (ada_language_defn): Update.
14019
14020 2020-03-13 Tom Tromey <tom@tromey.com>
14021
14022 * valprint.c (do_val_print): Update.
14023 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14024 a struct value.
14025 (value_to_value_object_no_release): Declare.
14026 * python/py-value.c (value_to_value_object_no_release): New
14027 function.
14028 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14029 struct value.
14030 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14031 function.
14032 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14033 a struct value.
14034 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14035 Declare.
14036 (gdbscm_apply_val_pretty_printer): Take a struct value.
14037 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14038 value.
14039 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14040 value.
14041 * extension-priv.h (struct extension_language_ops)
14042 <apply_val_pretty_printer>: Take a struct value.
14043 * cp-valprint.c (cp_print_value): Create a struct value.
14044 (cp_print_value): Update.
14045
14046 2020-03-13 Tom Tromey <tom@tromey.com>
14047
14048 * ada-valprint.c (print_field_values): Call common_val_print.
14049
14050 2020-03-13 Tom Tromey <tom@tromey.com>
14051
14052 * ada-valprint.c (val_print_packed_array_elements): Remove
14053 bitoffset and val parameters. Call common_val_print.
14054 (ada_val_print_string): Remove offset, address, and original_value
14055 parameters.
14056 (ada_val_print_array): Update.
14057 (ada_value_print_array): New function.
14058 (ada_value_print_1): Call it.
14059
14060 2020-03-13 Tom Tromey <tom@tromey.com>
14061
14062 * ada-valprint.c (ada_value_print): Use common_val_print.
14063
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14065
14066 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14067
14068 2020-03-13 Tom Tromey <tom@tromey.com>
14069
14070 * ada-valprint.c (ada_value_print_num): New function.
14071 (ada_value_print_1): Use it.
14072
14073 2020-03-13 Tom Tromey <tom@tromey.com>
14074
14075 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14076
14077 2020-03-13 Tom Tromey <tom@tromey.com>
14078
14079 * ada-valprint.c (ada_value_print_ptr): New function.
14080 (ada_value_print_1): Use it.
14081
14082 2020-03-13 Tom Tromey <tom@tromey.com>
14083
14084 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14085 call common_val_print.
14086 (ada_val_print_1): Update.
14087 (ada_value_print_1): New function.
14088 (ada_value_print_inner): Rewrite.
14089
14090 2020-03-13 Tom Tromey <tom@tromey.com>
14091
14092 * cp-valprint.c (cp_print_value_fields): Update.
14093 (cp_print_value): New function.
14094
14095 2020-03-13 Tom Tromey <tom@tromey.com>
14096
14097 * m2-valprint.c (m2_value_print_inner): Use
14098 cp_print_value_fields.
14099 * cp-valprint.c (cp_print_value_fields): New function.
14100 * c-valprint.c (c_value_print_struct): New function.
14101 (c_value_print_inner): Use c_value_print_struct.
14102 * c-lang.h (cp_print_value_fields): Declare.
14103
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * c-valprint.c (c_value_print_array): New function.
14107 (c_value_print_inner): Use it.
14108
14109 2020-03-13 Tom Tromey <tom@tromey.com>
14110
14111 * c-valprint.c (c_value_print_memberptr): New function.
14112 (c_value_print_inner): Use it.
14113
14114 2020-03-13 Tom Tromey <tom@tromey.com>
14115
14116 * c-valprint.c (c_value_print_int): New function.
14117 (c_value_print_inner): Use it.
14118
14119 2020-03-13 Tom Tromey <tom@tromey.com>
14120
14121 * c-valprint.c (c_value_print_ptr): New function.
14122 (c_value_print_inner): Use it.
14123
14124 2020-03-13 Tom Tromey <tom@tromey.com>
14125
14126 * c-valprint.c (c_value_print_inner): Rewrite.
14127
14128 2020-03-13 Tom Tromey <tom@tromey.com>
14129
14130 * valprint.c (generic_value_print_complex): New function.
14131 (generic_value_print): Use it.
14132
14133 2020-03-13 Tom Tromey <tom@tromey.com>
14134
14135 * valprint.c (generic_val_print_float): Don't call
14136 val_print_scalar_formatted.
14137 (generic_val_print, generic_value_print): Update.
14138
14139 2020-03-13 Tom Tromey <tom@tromey.com>
14140
14141 * valprint.c (generic_value_print_char): New function
14142 (generic_value_print): Use it.
14143
14144 2020-03-13 Tom Tromey <tom@tromey.com>
14145
14146 * valprint.c (generic_value_print_int): New function.
14147 (generic_value_print): Use it.
14148
14149 2020-03-13 Tom Tromey <tom@tromey.com>
14150
14151 * valprint.c (generic_value_print_bool): New function.
14152 (generic_value_print): Use it.
14153
14154 2020-03-13 Tom Tromey <tom@tromey.com>
14155
14156 * valprint.c (generic_val_print_func): Simplify.
14157 (generic_val_print, generic_value_print): Update.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * valprint.c (generic_val_print_flags): Remove.
14162 (generic_val_print, generic_value_print): Update.
14163 (val_print_type_code_flags): Add original_value parameter.
14164
14165 2020-03-13 Tom Tromey <tom@tromey.com>
14166
14167 * valprint.c (generic_val_print): Update.
14168 (generic_value_print): Update.
14169 * valprint.c (generic_val_print_enum): Don't call
14170 val_print_scalar_formatted.
14171
14172 2020-03-13 Tom Tromey <tom@tromey.com>
14173
14174 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14175 * valprint.c (generic_value_print_ptr): New function.
14176
14177 2020-03-13 Tom Tromey <tom@tromey.com>
14178
14179 * valprint.c (generic_value_print): Rewrite.
14180
14181 2020-03-13 Tom Tromey <tom@tromey.com>
14182
14183 * p-valprint.c (pascal_object_print_value_fields)
14184 (pascal_object_print_value): New functions.
14185
14186 2020-03-13 Tom Tromey <tom@tromey.com>
14187
14188 * p-valprint.c (pascal_value_print_inner): Rewrite.
14189
14190 2020-03-13 Tom Tromey <tom@tromey.com>
14191
14192 * f-valprint.c (f_value_print_innner): Rewrite.
14193
14194 2020-03-13 Tom Tromey <tom@tromey.com>
14195
14196 * m2-valprint.c (m2_print_unbounded_array): New overload.
14197 (m2_print_unbounded_array): Update.
14198 (m2_print_array_contents): Take a struct value.
14199 (m2_value_print_inner): Rewrite.
14200
14201 2020-03-13 Tom Tromey <tom@tromey.com>
14202
14203 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14204 (d_value_print_inner): New function.
14205 * d-lang.h (d_value_print_inner): Declare.
14206 * d-lang.c (d_language_defn): Use d_value_print_inner.
14207
14208 2020-03-13 Tom Tromey <tom@tromey.com>
14209
14210 * go-valprint.c (go_value_print_inner): New function.
14211 * go-lang.h (go_value_print_inner): Declare.
14212 * go-lang.c (go_language_defn): Use go_value_print_inner.
14213
14214 2020-03-13 Tom Tromey <tom@tromey.com>
14215
14216 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14217 API.
14218 (rust_val_print): Rewrite.
14219 (rust_value_print_inner): New function, from rust_val_print.
14220 (rust_language_defn): Use rust_value_print_inner.
14221
14222 2020-03-13 Tom Tromey <tom@tromey.com>
14223
14224 * ada-valprint.c (ada_value_print_inner): New function.
14225 * ada-lang.h (ada_value_print_inner): Declare.
14226 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14227
14228 2020-03-13 Tom Tromey <tom@tromey.com>
14229
14230 * f-valprint.c (f_value_print_innner): New function.
14231 * f-lang.h (f_value_print_innner): Declare.
14232 * f-lang.c (f_language_defn): Use f_value_print_innner.
14233
14234 2020-03-13 Tom Tromey <tom@tromey.com>
14235
14236 * p-valprint.c (pascal_value_print_inner): New function.
14237 * p-lang.h (pascal_value_print_inner): Declare.
14238 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14239
14240 2020-03-13 Tom Tromey <tom@tromey.com>
14241
14242 * m2-valprint.c (m2_value_print_inner): New function.
14243 * m2-lang.h (m2_value_print_inner): Declare.
14244 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14245
14246 2020-03-13 Tom Tromey <tom@tromey.com>
14247
14248 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14249 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14250 * c-valprint.c (c_value_print_inner): New function.
14251 * c-lang.h (c_value_print_inner): Declare.
14252 * c-lang.c (c_language_defn, cplus_language_defn)
14253 (asm_language_defn, minimal_language_defn): Use
14254 c_value_print_inner.
14255
14256 2020-03-13 Tom Tromey <tom@tromey.com>
14257
14258 * p-valprint.c (pascal_object_print_value_fields): Now static.
14259 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14260
14261 2020-03-13 Tom Tromey <tom@tromey.com>
14262
14263 * c-valprint.c (c_val_print_array): Simplify.
14264
14265 2020-03-13 Tom Tromey <tom@tromey.com>
14266
14267 * valprint.c (value_print_array_elements): New function.
14268 * valprint.h (value_print_array_elements): Declare.
14269
14270 2020-03-13 Tom Tromey <tom@tromey.com>
14271
14272 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14273 * mips-tdep.c (mips_print_register): Use
14274 value_print_scalar_formatted.
14275
14276 2020-03-13 Tom Tromey <tom@tromey.com>
14277
14278 * valprint.h (value_print_scalar_formatted): Declare.
14279 * valprint.c (value_print_scalar_formatted): New function.
14280
14281 2020-03-13 Tom Tromey <tom@tromey.com>
14282
14283 * valprint.h (generic_value_print): Declare.
14284 * valprint.c (generic_value_print): New function.
14285
14286 2020-03-13 Tom Tromey <tom@tromey.com>
14287
14288 * valprint.c (do_val_print): Call la_value_print_inner, if
14289 available.
14290 * rust-lang.c (rust_language_defn): Update.
14291 * p-lang.c (pascal_language_defn): Update.
14292 * opencl-lang.c (opencl_language_defn): Update.
14293 * objc-lang.c (objc_language_defn): Update.
14294 * m2-lang.c (m2_language_defn): Update.
14295 * language.h (struct language_defn) <la_value_print_inner>: New
14296 member.
14297 * language.c (unknown_language_defn, auto_language_defn): Update.
14298 * go-lang.c (go_language_defn): Update.
14299 * f-lang.c (f_language_defn): Update.
14300 * d-lang.c (d_language_defn): Update.
14301 * c-lang.c (c_language_defn, cplus_language_defn)
14302 (asm_language_defn, minimal_language_defn): Update.
14303 * ada-lang.c (ada_language_defn): Update.
14304
14305 2020-03-13 Tom Tromey <tom@tromey.com>
14306
14307 * c-valprint.c (c_value_print): Use common_val_print.
14308
14309 2020-03-13 Tom Tromey <tom@tromey.com>
14310
14311 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14312
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14314
14315 * f-valprint.c (f77_print_array_1, f_val_print): Use
14316 common_val_print.
14317
14318 2020-03-13 Tom Tromey <tom@tromey.com>
14319
14320 * riscv-tdep.c (riscv_print_one_register_info): Use
14321 common_val_print.
14322
14323 2020-03-13 Tom Tromey <tom@tromey.com>
14324
14325 * mi/mi-main.c (output_register): Use common_val_print.
14326
14327 2020-03-13 Tom Tromey <tom@tromey.com>
14328
14329 * infcmd.c (default_print_one_register_info): Use
14330 common_val_print.
14331
14332 2020-03-13 Tom Tromey <tom@tromey.com>
14333
14334 * valprint.h (common_val_print_checked): Declare.
14335 * valprint.c (common_val_print_checked): New function.
14336 * stack.c (print_frame_arg): Use common_val_print_checked.
14337
14338 2020-03-13 Tom Tromey <tom@tromey.com>
14339
14340 * valprint.c (do_val_print): New function, from val_print.
14341 (val_print): Use do_val_print.
14342 (common_val_print): Use do_val_print.
14343
14344 2020-03-13 Tom Tromey <tom@tromey.com>
14345
14346 * valprint.c (value_print): Use scoped_value_mark.
14347
14348 2020-03-13 Tom de Vries <tdevries@suse.de>
14349
14350 PR symtab/25646
14351 * psymtab.c (partial_symtab::partial_symtab): Don't set
14352 globals_offset and statics_offset. Push element onto
14353 current_global_psymbols and current_static_psymbols stacks.
14354 (concat): New function.
14355 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14356 element from current_global_psymbols and current_static_psymbols
14357 stacks. Concat popped elements to global_psymbols and
14358 static_symbols.
14359 (add_psymbol_to_list): Use current_global_psymbols and
14360 current_static_psymbols stacks.
14361 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14362 current_static_psymbols fields.
14363
14364 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14365
14366 * corelow.c (sniff_core_bfd): Remove.
14367 (class core_target) <m_core_vec>: Remove.
14368 (core_target::core_target): Update.
14369 (core_file_fns): Remove.
14370 (deprecated_add_core_fns): Remove.
14371 (default_core_sniffer): Remove.
14372 (sniff_core_bfd): Remove.
14373 (default_check_format): Remove.
14374 (gdb_check_format): Remove.
14375 (core_target_open): Update.
14376 (core_target::get_core_register_section): Update.
14377 (get_core_registers_cb): Update.
14378 (core_target::fetch_registers): Update.
14379 * gdbcore.h (struct core_fns): Remove.
14380 (deprecated_add_core_fns): Remove.
14381 (default_core_sniffer): Remove.
14382 (default_check_format): Remove.
14383
14384 2020-03-12 Tom Tromey <tom@tromey.com>
14385
14386 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14387 CORE_ADDR.
14388 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14389
14390 2020-03-12 Tom Tromey <tom@tromey.com>
14391
14392 * remote.c (remote_target::download_tracepoint)
14393 (remote_target::enable_tracepoint)
14394 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14395 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14396 sprintf_vma.
14397
14398 2020-03-12 Tom Tromey <tom@tromey.com>
14399
14400 * symfile-mem.c: Update CORE_ADDR size assert.
14401
14402 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14403
14404 * selftest.m4: Move to gdbsupport/.
14405 * acinclude.m4: Update path to selftest.m4.
14406
14407 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14408
14409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14410 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14411 gdbarch-selfselftests.c and selftest-arch.c.
14412 (SUBDIR_UNITTESTS_OBS): Rename to...
14413 (SELFTESTS_OBS): ... this.
14414 (COMMON_SFILES): Remove disasm-selftests.c and
14415 gdbarch-selftests.c.
14416 * configure.ac: Don't add selftest-arch.{c,o} to
14417 CONFIG_{SRCS,OBS}.
14418 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14419 preprocessor conditions.
14420
14421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14422
14423 * configure.ac: Don't source bfd/development.sh.
14424 * selftest.m4: Modify comment.
14425 * configure: Re-generate.
14426
14427 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14428
14429 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14430 not "true" or "false".
14431 * configure: Re-generate.
14432
14433 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14434
14435 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14436 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14437 renamed to arm_nbsd_supply_gregset.
14438 (fetch_register): Update to call arm_nbsd_supply_gregset.
14439 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14440 (arm_netbsd_nat_target::fetch_registers): Update.
14441 (fetch_elfcore_registers): Removed.
14442 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14443 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14444 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14445 not require NetBSD system headers.
14446 (arm_nbsd_regset): New struct.
14447 (arm_nbsd_iterate_over_regset_sections): New function.
14448 (arm_netbsd_init_abi_common): Updated to call
14449 set_gdbarch_iterate_over_regset_sections.
14450 * arm-nbsd-tdep.h: New file.
14451
14452 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14453
14454 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14455 recursion.
14456
14457 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14458
14459 * configure: Re-generate.
14460
14461 2020-03-11 Tom Tromey <tromey@adacore.com>
14462
14463 * ada-typeprint.c (print_choices): Fix comment.
14464
14465 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14466
14467 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14468 previous item in the list, when the list has no items.
14469
14470 2020-03-11 Tom de Vries <tdevries@suse.de>
14471
14472 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14473 PROP_LOCLIST handling code.
14474
14475 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14476
14477 * buildsym-legacy.c (record_line): Pass extra parameter to
14478 record_line.
14479 * buildsym.c (buildsym_compunit::record_line): Take an extra
14480 parameter, reduce duplication in the line table, and record the
14481 is_stmt flag in the line table.
14482 * buildsym.h (buildsym_compunit::record_line): Add extra
14483 parameter.
14484 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14485 non-statement lines.
14486 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14487 this to the symtab builder.
14488 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14489 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14490 through to dwarf_record_line_1.
14491 * infrun.c (process_event_stop_test): When stepping, don't stop at
14492 a non-statement instruction, and only refresh the step info when
14493 we land in the middle of a line's range. Also add an extra
14494 comment.
14495 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14496 field.
14497 * record-btrace.c (btrace_find_line_range): Only record lines
14498 marked as is-statement.
14499 * stack.c (frame_show_address): Show the frame address if we are
14500 in a non-statement sal.
14501 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14502 (maintenance_print_one_line_table): Print a header for the is_stmt
14503 column, and include is_stmt information in the output.
14504 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14505 preference to non-statements.
14506 (find_pcs_for_symtab_line): Prefer is-statement entries.
14507 (find_line_common): Likewise.
14508 * symtab.h (struct linetable_entry): Add is_stmt field.
14509 (struct symtab_and_line): Likewise.
14510 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14511 arranging the line table.
14512
14513 2020-03-07 Tom de Vries <tdevries@suse.de>
14514
14515 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14516 DIE.
14517
14518 2020-03-07 Tom Tromey <tom@tromey.com>
14519
14520 * valops.c (value_literal_complex): Remove obsolete comment.
14521 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14522 comment.
14523
14524 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14525
14526 * infrun.h: Forward-declare thread_info.
14527 (set_step_info): Add thread_info parameter, add doc.
14528 * infrun.c (set_step_info): Add thread_info parameter, move doc
14529 to header.
14530 * infrun.c (process_event_stop_test): Pass thread to
14531 set_step_info call.
14532 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14533 set_step_info.
14534 (prepare_one_step): Add thread_info parameter, pass it to
14535 set_step_frame and prepare_one_step (recursive) call.
14536 (step_1): Pass thread to prepare_one_step call.
14537 (step_command_fsm::should_stop): Pass thread to
14538 prepare_one_step.
14539 (until_next_fsm): Pass thread to set_step_frame call.
14540 (finish_command): Pass thread to set_step_info call.
14541
14542 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14543
14544 * windows-tdep.c (windows_solib_create_inferior_hook):
14545 Check if inferior is running.
14546
14547 2020-03-06 Tom de Vries <tdevries@suse.de>
14548
14549 * NEWS: Fix "the the".
14550 * ctfread.c: Same.
14551
14552 2020-03-06 Tom de Vries <tdevries@suse.de>
14553
14554 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14555
14556 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14557
14558 * .dir-locals.el: Add a comment referencing the other copies of
14559 this file.
14560
14561 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14562
14563 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14564 psargs.
14565
14566 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14567
14568 * .gitattributes: New file.
14569
14570 2020-03-04 Tom Tromey <tom@tromey.com>
14571
14572 * symmisc.c (print_symbol_bcache_statistics)
14573 (print_objfile_statistics): Update.
14574 * symfile.c (allocate_symtab): Use intern.
14575 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14576 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14577 macro_cache>: Remove.
14578 <string_cache>: New member.
14579 (struct objfile) <intern>: New methods.
14580 * elfread.c (elf_symtab_read): Use intern.
14581 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14582 (dwarf2_compute_name, dwarf2_physname)
14583 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14584 names.
14585 (guess_partial_die_structure_name): Update.
14586 (partial_die_info::fixup): Intern name.
14587 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14588 name.
14589 (dwarf2_name): Intern name. Update.
14590 * buildsym.c (buildsym_compunit::get_macro_table): Use
14591 string_cache.
14592
14593 2020-03-04 Tom Tromey <tom@tromey.com>
14594
14595 * jit.c (bfd_open_from_target_memory): Make "target" const.
14596 * corefile.c (gnutarget): Now const.
14597 * gdbcore.h (gnutarget): Now const.
14598
14599 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14600
14601 * NEWS: Mention support for WOW64 processes.
14602 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14603 (amd64_windows_segment_register_p): Remove static.
14604 (_initialize_amd64_windows_nat): Update.
14605 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14606 * i386-windows-nat.c (context_offset): Update.
14607 (i386_mappings): Rename and remove static.
14608 (i386_windows_segment_register_p): Remove static.
14609 (_initialize_i386_windows_nat): Update.
14610 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14611 (STATUS_WX86_SINGLE_STEP): New macro.
14612 (EnumProcessModulesEx): New macro.
14613 (Wow64SuspendThread): New macro.
14614 (Wow64GetThreadContext): New macro.
14615 (Wow64SetThreadContext): New macro.
14616 (Wow64GetThreadSelectorEntry): New macro.
14617 (windows_set_context_register_offsets): Add static.
14618 (windows_set_segment_register_p): Likewise.
14619 (windows_add_thread): Adapt for WOW64 processes.
14620 (windows_fetch_one_register): Likewise.
14621 (windows_nat_target::fetch_registers): Likewise.
14622 (windows_store_one_register): Likewise.
14623 (display_selector): Likewise.
14624 (display_selectors): Likewise.
14625 (handle_exception): Likewise.
14626 (windows_continue): Likewise.
14627 (windows_nat_target::resume): Likewise.
14628 (windows_add_all_dlls): Likewise.
14629 (do_initial_windows_stuff): Likewise.
14630 (windows_nat_target::attach): Likewise.
14631 (windows_get_exec_module_filename): Likewise.
14632 (windows_nat_target::create_inferior): Likewise.
14633 (windows_xfer_siginfo): Likewise.
14634 (_initialize_loadable): Initialize Wow64SuspendThread,
14635 Wow64GetThreadContext, Wow64SetThreadContext,
14636 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14637 * windows-nat.h (windows_set_context_register_offsets):
14638 Remove declaration.
14639 (windows_set_segment_register_p): Likewise.
14640 (i386_windows_segment_register_p): Add declaration.
14641 (amd64_windows_segment_register_p): Likewise.
14642
14643 2020-03-04 Luis Machado <luis.machado@linaro.org>
14644
14645 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14646 in "info registers" for AArch64/ARM.
14647
14648 The change caused "info registers" to not print GPR's.
14649
14650 gdb/ChangeLog:
14651
14652 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14653
14654 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14655 when reg->group is empty and reggroup is not.
14656
14657 2020-03-03 Tom Tromey <tromey@adacore.com>
14658
14659 * dwarf2/frame.c (struct dwarf2_frame_cache)
14660 <checked_tailcall_bottom, entry_cfa_sp_offset,
14661 entry_cfa_sp_offset_p>: Remove members.
14662 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14663 (dwarf2_frame_prev_register): Don't call
14664 dwarf2_tailcall_sniffer_first.
14665 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14666 * frame-unwind.c (add_unwinder): New fuction.
14667 (frame_unwind_init): Use it. Add tailcall unwinder.
14668
14669 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14670 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14671
14672 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14673 value should be printed as true.
14674
14675 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14676
14677 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14678 (windows_init_abi): Set and use windows_so_ops.
14679
14680 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14681
14682 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14683 when verifying if dealing with a convenience variable.
14684
14685 2020-03-03 Luis Machado <luis.machado@linaro.org>
14686
14687 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14688
14689 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14690
14691 * infrun.c (gdbarch_supports_displaced_stepping): New.
14692 (use_displaced_stepping): Break up conditions in smaller pieces.
14693 Use gdbarch_supports_displaced_stepping.
14694 (displaced_step_prepare_throw): Use
14695 gdbarch_supports_displaced_stepping.
14696
14697 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14698
14699 * NEWS: Mention new behaviour of the history filename.
14700 * top.c (write_history_p): Add comment.
14701 (show_write_history_p): Add header comment, give a different
14702 message when history writing is on, but the history filename is
14703 empty.
14704 (history_filename): Add comment.
14705 (history_filename_empty): New function.
14706 (show_history_filename): Add header comment, give a different
14707 message when the filename is empty.
14708 (init_history): Compare history_filename against nullptr, and only
14709 read history if the filename is not empty.
14710 (set_history_filename): Add header comment, and only make
14711 non-empty filenames absolute.
14712 (init_main): Make the filename argument to 'set history filename'
14713 optional.
14714
14715 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14716
14717 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14718 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14719 (fetch_fp_register): Update.
14720 (fetch_fp_regs): Update.
14721 (store_fp_register): Update.
14722 (store_fp_regs): Update.
14723 (arm_netbsd_nat_target::read_description): New function.
14724 (fetch_elfcore_registers): Update.
14725
14726 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14727
14728 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14729 general_thread if the stop reply is missing a thread-id.
14730 (remote_target::process_stop_reply): Use the first non-exited
14731 thread if the target didn't pass a thread-id.
14732 * infrun.c (do_target_wait): Move call to
14733 switch_to_inferior_no_thread to ....
14734 (do_target_wait_1): ... here.
14735
14736 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14737
14738 * debuginfod-support.c: Include defs.h first.
14739
14740 2020-02-28 Tom de Vries <tdevries@suse.de>
14741
14742 * symfile.c (set_initial_language): Use default language for lookup.
14743
14744 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14745
14746 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14747 reader variable, pass `this` to read_cutu_die_from_dwo.
14748
14749 2020-02-27 Aaron Merey <amerey@redhat.com>
14750
14751 * source.c (open_source_file): Check for nullptr when computing
14752 srcpath.
14753
14754 2020-02-27 Tom Tromey <tromey@adacore.com>
14755
14756 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14757 member.
14758 (dwarf2_add_field): Don't update nfields.
14759 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14760
14761 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14762
14763 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14764 abs.
14765
14766 2020-02-26 Tom Tromey <tom@tromey.com>
14767
14768 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14769 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14770 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14771 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14772 per_cu_data.
14773
14774 2020-02-26 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2/index-write.c (psym_index_map): Change type.
14777 (add_address_entry_worker, write_one_signatured_type)
14778 (recursively_count_psymbols, recursively_write_psymbols)
14779 (class debug_names, psyms_seen_size, write_gdbindex)
14780 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14781
14782 2020-02-26 Aaron Merey <amerey@redhat.com>
14783
14784 * Makefile.in: Handle optional debuginfod support.
14785 * NEWS: Update.
14786 * README: Add --with-debuginfod summary.
14787 * config.in: Regenerate.
14788 * configure: Regenerate.
14789 * configure.ac: Handle optional debuginfod support.
14790 * debuginfod-support.c: debuginfod helper functions.
14791 * debuginfod-support.h: Ditto.
14792 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14793 summary.
14794 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14795 when a dwz file cannot be found.
14796 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14797 debuginfo file cannot be found.
14798 * source.c (open_source_file): Query debuginfod servers when a
14799 source file cannot be found.
14800 * top.c (print_gdb_configuration): Include
14801 --{with,without}-debuginfod in the output.
14802
14803 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14804
14805 * thread.c (thr_try_catch_cmd): Print thread name.
14806
14807 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14808
14809 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14810 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14811 dwarf2_fetch_die_type_sect_off): Move to...
14812 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14813 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14814 dwarf2_fetch_die_type_sect_off): ... here.
14815 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14816 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14817 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14818
14819 2020-02-26 Tom de Vries <tdevries@suse.de>
14820
14821 PR gdb/25603
14822 * symfile.c (set_initial_language): Exit-early if
14823 language_mode == language_mode_manual.
14824
14825 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14826
14827 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14828 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14829 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14830
14831 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14832
14833 * gdbtypes.c (create_array_type_with_stride): Handle negative
14834 array strides.
14835 * valarith.c (value_subscripted_rvalue): Likewise.
14836
14837 2020-02-25 Luis Machado <luis.machado@linaro.org>
14838
14839 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14840
14841 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14842
14843 * loc.h (dwarf2_get_die_type): Move to...
14844 * read.h (dwarf2_get_die_type): ... here.
14845 * read.c (dwarf2_get_die_type): Move doc to header.
14846
14847 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14848
14849 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14850 'gnulib/Makefile.in' to the list.
14851
14852 2020-02-24 Tom Tromey <tom@tromey.com>
14853
14854 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14855 Remove.
14856 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14857 XOBNEWVEC.
14858
14859 2020-02-24 Tom Tromey <tom@tromey.com>
14860
14861 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14862 New method.
14863 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14864 (dw2_do_instantiate_symtab, dw2_get_file_names)
14865 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14866
14867 2020-02-24 Tom Tromey <tom@tromey.com>
14868
14869 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14870 make_scoped_restore.
14871 (dwarf2_psymtab::read_symtab): Don't clear
14872 reading_partial_symbols.
14873
14874 2020-02-24 Tom de Vries <tdevries@suse.de>
14875
14876 PR gdb/25592
14877 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14878
14879 2020-02-24 Tom de Vries <tdevries@suse.de>
14880
14881 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14882 commands layout next/prev/regs.
14883
14884 2020-02-22 Tom Tromey <tom@tromey.com>
14885
14886 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14887 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14888
14889 2020-02-22 Tom Tromey <tom@tromey.com>
14890
14891 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14892
14893 2020-02-22 Tom Tromey <tom@tromey.com>
14894
14895 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14896 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14897 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14898 * tui/tui.c (_initialize_tui): Add usage text.
14899
14900 2020-02-22 Tom Tromey <tom@tromey.com>
14901
14902 * tui/tui-win.c (tui_set_focus_command)
14903 (tui_set_win_height_command): Use error_no_arg.
14904 (_initialize_tui_win): Update help text.
14905 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14906
14907 2020-02-22 Tom Tromey <tom@tromey.com>
14908
14909 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14910 * tui/tui-disasm.h (struct tui_disasm_window)
14911 <display_start_addr>: Declare.
14912 * tui/tui-source.h (struct tui_source_window)
14913 <display_start_addr>: Declare.
14914 * tui/tui-winsource.h (struct tui_source_window_base)
14915 <show_source_line, display_start_addr>: New methods.
14916 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14917 Rename and move to protected section.
14918 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14919 (tui_source_window_base::do_erase_source_content): Update.
14920 (tui_source_window_base::show_source_line): Now a method.
14921 (tui_source_window_base::show_source_content)
14922 (tui_source_window_base::tui_source_window_base)
14923 (tui_source_window_base::rerender)
14924 (tui_source_window_base::refill)
14925 (tui_source_window_base::do_scroll_horizontal)
14926 (tui_source_window_base::set_is_exec_point_at)
14927 (tui_source_window_base::update_breakpoint_info)
14928 (tui_source_window_base::update_exec_info): Update.
14929 * tui/tui-source.c (tui_source_window::set_contents)
14930 (tui_source_window::showing_source_p)
14931 (tui_source_window::do_scroll_vertical)
14932 (tui_source_window::location_matches_p)
14933 (tui_source_window::line_is_displayed): Update.
14934 (tui_source_window::display_start_addr): New method.
14935 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14936 (tui_disasm_window::do_scroll_vertical)
14937 (tui_disasm_window::location_matches_p): Update.
14938 (tui_disasm_window::display_start_addr): New method.
14939
14940 2020-02-22 Tom Tromey <tom@tromey.com>
14941
14942 * NEWS: Add entry for gdb.register_window_type.
14943 * tui/tui-layout.h (window_factory): New typedef.
14944 (tui_register_window): Declare.
14945 * tui/tui-layout.c (saved_tui_windows): New global.
14946 (tui_apply_current_layout): Use it.
14947 (tui_register_window): New function.
14948 * python/python.c (do_start_initialization): Call
14949 gdbpy_initialize_tui.
14950 (python_GdbMethods): Add "register_window_type" function.
14951 * python/python-internal.h (gdbpy_register_tui_window)
14952 (gdbpy_initialize_tui): Declare.
14953 * python/py-tui.c: New file.
14954 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14955
14956 2020-02-22 Tom Tromey <tom@tromey.com>
14957
14958 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14959
14960 2020-02-22 Tom Tromey <tom@tromey.com>
14961
14962 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14963 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14964 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14965 (tui_set_win_focus_to): Move from tui-win.c.
14966
14967 2020-02-22 Tom Tromey <tom@tromey.com>
14968
14969 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14970 functions.
14971 (known_window_types): New global.
14972 (tui_get_window_by_name): Reimplement.
14973 (initialize_known_windows): New function.
14974 (validate_window_name): Rewrite.
14975 (_initialize_tui_layout): Call initialize_known_windows.
14976
14977 2020-02-22 Tom Tromey <tom@tromey.com>
14978
14979 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14980 Remove constants.
14981 * tui/tui-winsource.h (struct tui_source_window_base)
14982 <tui_source_window_base>: Remove parameter.
14983 * tui/tui-winsource.c
14984 (tui_source_window_base::tui_source_window_base): Remove
14985 parameter.
14986 (tui_source_window_base::refill): Update.
14987 * tui/tui-stack.h (struct tui_locator_window)
14988 <tui_locator_window>: Update.
14989 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14990 Default the constructor.
14991 * tui/tui-regs.h (struct tui_data_item_window)
14992 <tui_data_item_window>: Default the constructor.
14993 (struct tui_data_window) <tui_data_window>: Likewise.
14994 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14995 Default the constructor.
14996 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14997 Default the constructor.
14998 <type>: Remove.
14999 (struct tui_win_info) <tui_win_info>: Default the constructor.
15000 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15001 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15002 Default the constructor.
15003
15004 2020-02-22 Tom Tromey <tom@tromey.com>
15005
15006 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15007 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15008 * tui/tui-win.c (tui_resize_all): Don't call
15009 tui_delete_invisible_windows.
15010 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15011 done.
15012 (tui_set_layout): Update.
15013 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15014 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15015 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15016
15017 2020-02-22 Tom Tromey <tom@tromey.com>
15018
15019 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15020 correctly.
15021
15022 2020-02-22 Tom Tromey <tom@tromey.com>
15023
15024 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15025
15026 2020-02-22 Tom Tromey <tom@tromey.com>
15027
15028 * tui/tui-winsource.h (struct tui_source_window_iterator)
15029 <inner_iterator>: New etytypedef.
15030 <tui_source_window_iterator>: Take "end" parameter.
15031 <tui_source_window_iterator>: Take iterator.
15032 <operator*, advance>: Update.
15033 <m_iter>: Change type.
15034 <m_end>: New field.
15035 (struct tui_source_windows) <begin, end>: Update.
15036 * tui/tui-layout.c (tui_windows): New global.
15037 (tui_apply_current_layout): Clear tui_windows.
15038 (tui_layout_window::apply): Update tui_windows.
15039 * tui/tui-data.h (tui_windows): Declare.
15040 (all_tui_windows): Now inline function.
15041 (class tui_window_iterator, struct all_tui_windows): Remove.
15042
15043 2020-02-22 Tom Tromey <tom@tromey.com>
15044
15045 PR tui/17850:
15046 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15047 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15048 "height" argument.
15049 (class tui_layout_window) <get_sizes>: Likewise.
15050 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15051 argument.
15052 <get_sizes>: Add "height" argument.
15053 <m_vertical>: New field.
15054 * tui/tui-layout.c (tui_layout_split::clone): Update.
15055 (tui_layout_split::get_sizes): Add "height" argument.
15056 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15057 (tui_new_layout_command): Parse "-horizontal".
15058 (_initialize_tui_layout): Update help string.
15059 (tui_layout_split::specification): Add "-horizontal" when needed.
15060 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15061 argument.
15062 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15063 New methods.
15064
15065 2020-02-22 Tom Tromey <tom@tromey.com>
15066
15067 * tui/tui-layout.h (enum tui_adjust_result): New.
15068 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15069 (class tui_layout_window) <adjust_size>: Return
15070 tui_adjust_result. Rewrite.
15071 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15072 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15073
15074 2020-02-22 Tom Tromey <tom@tromey.com>
15075
15076 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15077 parameter and return types.
15078 (class tui_layout_base) <specification>: Add "depth".
15079 (class tui_layout_window) <specification>: Add "depth".
15080 (class tui_layout_split) <specification>: Add "depth".
15081 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15082 and return types.
15083 (tui_new_layout_command): Parse sub-layouts.
15084 (_initialize_tui_layout): Update help string.
15085 (tui_layout_window::specification): Add "depth".
15086 (add_layout_command): Update.
15087
15088 2020-02-22 Tom Tromey <tom@tromey.com>
15089
15090 * NEWS: Add "tui new-layout" item.
15091 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15092 Add new-layout command to help text.
15093 (validate_window_name): New function.
15094 (tui_new_layout_command): New function.
15095 (_initialize_tui_layout): Register "new-layout".
15096 (tui_layout_window::specification): New method.
15097 (tui_layout_window::specification): New method.
15098 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15099 method.
15100 (class tui_layout_window) <specification>: New method.
15101 (class tui_layout_split) <specification>: New method.
15102
15103 2020-02-22 Tom Tromey <tom@tromey.com>
15104
15105 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15106 * tui/tui-win.c (window_name_completer): Update comment.
15107 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15108 Declare method.
15109 (class tui_layout_window) <replace_window>: Likewise.
15110 (class tui_layout_split) <replace_window>: Likewise.
15111 (tui_set_layout): Don't declare.
15112 (tui_set_initial_layout): Declare function.
15113 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15114 (asm_regs_layout): New globals.
15115 (tui_current_layout, show_layout): Remove.
15116 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15117 (find_layout, tui_apply_layout): New function.
15118 (layout_completer): Remove.
15119 (tui_next_layout): Reimplement.
15120 (tui_next_layout_command): New function.
15121 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15122 (tui_regs_layout): Reimplement.
15123 (tui_regs_layout_command): New function.
15124 (extract_display_start_addr): Rewrite.
15125 (next_layout, prev_layout): Remove.
15126 (tui_layout_window::replace_window): New method.
15127 (tui_layout_split::replace_window): New method.
15128 (destroy_layout): New function.
15129 (layout_list): New global.
15130 (add_layout_command): New function.
15131 (initialize_layouts): Update.
15132 (tui_layout_command): New function.
15133 (_initialize_tui_layout): Install "layout" commands.
15134 * tui/tui-data.h (enum tui_layout_type): Remove.
15135 (tui_current_layout): Don't declare.
15136
15137 2020-02-22 Tom Tromey <tom@tromey.com>
15138
15139 * tui/tui-regs.c (tui_reg_layout): Remove.
15140 (tui_reg_command): Use tui_regs_layout.
15141 * tui/tui-layout.h (tui_reg_command): Declare.
15142 * tui/tui-layout.c (tui_reg_command): New function.
15143
15144 2020-02-22 Tom Tromey <tom@tromey.com>
15145
15146 * tui/tui.c (tui_rl_delete_other_windows): Call
15147 tui_remove_some_windows.
15148 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15149 Declare method.
15150 (class tui_layout_window) <remove_windows>: New method.
15151 (class tui_layout_split) <remove_windows>: Declare.
15152 (tui_remove_some_windows): Declare.
15153 * tui/tui-layout.c (tui_remove_some_windows): New function.
15154 (tui_layout_split::remove_windows): New method.
15155
15156 2020-02-22 Tom Tromey <tom@tromey.com>
15157
15158 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15159 * tui/tui-layout.h (tui_next_layout): Declare.
15160 * tui/tui-layout.c (tui_next_layout): New function.
15161
15162 2020-02-22 Tom Tromey <tom@tromey.com>
15163
15164 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15165 correct coordinates.
15166
15167 2020-02-22 Tom Tromey <tom@tromey.com>
15168
15169 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15170 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15171 DATA_WIN case.
15172
15173 2020-02-22 Tom Tromey <tom@tromey.com>
15174
15175 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15176 TUI_DISASM_WIN, not tui_win_list.
15177
15178 2020-02-22 Tom Tromey <tom@tromey.com>
15179
15180 * valprint.c (generic_val_print_enum_1)
15181 (val_print_type_code_flags): Style member names.
15182 * rust-lang.c (val_print_struct, rust_print_enum)
15183 (rust_print_struct_def, rust_internal_print_type): Style member
15184 names.
15185 * p-valprint.c (pascal_object_print_value_fields): Style member
15186 names. Only call fprintf_symbol_filtered for static members.
15187 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15188 * f-valprint.c (f_val_print): Style member names.
15189 * f-typeprint.c (f_type_print_base): Style member names.
15190 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15191 call fprintf_symbol_filtered for static members.
15192 (cp_print_class_member): Style member names.
15193 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15194 member names.
15195 * ada-valprint.c (ada_print_scalar): Style enum names.
15196 (ada_val_print_enum): Likewise.
15197 * ada-typeprint.c (print_enum_type): Style enum names.
15198
15199 2020-02-21 Tom Tromey <tom@tromey.com>
15200
15201 * psympriv.h (struct partial_symtab): Update comment.
15202
15203 2020-02-21 Tom Tromey <tromey@adacore.com>
15204
15205 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15206 type is CORE_ADDR.
15207
15208 2020-02-21 Tom de Vries <tdevries@suse.de>
15209
15210 PR gdb/25534
15211 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15212 if dependencies[i]->user != NULL.
15213
15214 2020-02-21 Ali Tamur <tamur@google.com>
15215
15216 * dwarf2/read.c (dwarf2_name): Add null check.
15217
15218 2020-02-20 Tom Tromey <tom@tromey.com>
15219
15220 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15221 ">=", in binary search.
15222 (dwarf2_find_containing_comp_unit): New overload.
15223 (run_test): New self-test.
15224 (_initialize_dwarf2_read): Register new test.
15225
15226 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15227
15228 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15229 * riscv-tdep.h: Likewise.
15230 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15231 rv32-only CSR.
15232 * features/riscv/64bit-csr.xml: Regenerated.
15233
15234 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15235 Tom Tromey <tom@tromey.com>
15236
15237 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15238 of 'fputc_unfiltered'.
15239 (putchar_unfiltered): Call 'fputc_unfiltered'.
15240 (fputc_unfiltered): Call 'fputs_unfiltered'.
15241
15242 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15243
15244 * config.in: Regenerate.
15245 * configure: Regenerate.
15246 * configure.ac: Add --with-python-libdir option.
15247 * main.c: Use WITH_PYTHON_LIBDIR.
15248
15249 2020-02-19 Tom Tromey <tom@tromey.com>
15250
15251 * symtab.c (general_symbol_info::compute_and_set_names): Use
15252 obstack_strndup. Simplify call to symbol_set_demangled_name.
15253
15254 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15255
15256 * dwarf2/read.c (allocate_signatured_type_table,
15257 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15258 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15259 Remove objfile parameter, update all callers.
15260
15261 2020-02-19 Doug Evans <dje@google.com>
15262
15263 PR rust/25535
15264 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15265 rust_enum_variant calculation.
15266
15267 2020-02-19 Tom Tromey <tromey@adacore.com>
15268
15269 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15270
15271 2020-02-19 Tom Tromey <tromey@adacore.com>
15272
15273 * ada-lang.c (cache_symbol): Use obstack_strdup.
15274
15275 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15276
15277 * configure: Regenerate.
15278
15279 2020-02-19 Tom Tromey <tromey@adacore.com>
15280
15281 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15282 NULL check.
15283
15284 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15285
15286 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15287
15288 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15289
15290 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15291 if GDBSERVER is not defined.
15292 (riscv_tdesc_cache): Likewise, also store const target_desc.
15293 (STATIC_IN_GDB): Define.
15294 (riscv_create_target_description): Update declaration with
15295 STATIC_IN_GDB.
15296 (riscv_lookup_target_description): New function, only define if
15297 GDBSERVER is not defined.
15298 * arch/riscv.h (riscv_create_target_description): Declare only
15299 when GDBSERVER is defined.
15300 (riscv_lookup_target_description): New declaration when GDBSERVER
15301 is not defined.
15302 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15303 (riscv_linux_read_features): ...this, and return
15304 riscv_gdbarch_features instead of target_desc.
15305 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15306 (riscv_linux_read_description): Rename to...
15307 (riscv_linux_read_features): ...this.
15308 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15309 Update to use riscv_gdbarch_features and
15310 riscv_lookup_target_description.
15311 * riscv-tdep.c (riscv_find_default_target_description): Use
15312 riscv_lookup_target_description instead of
15313 riscv_create_target_description.
15314
15315 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15316
15317 * valprint.c (generic_val_print_enum_1): When printing a flag
15318 enum with value 0 and there is no enumerator with value 0, print
15319 just "0" instead of "(unknown: 0x0)".
15320
15321 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15322
15323 * valprint.c (generic_val_print_enum_1): Print unknown part of
15324 flag enum in hex.
15325
15326 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15327
15328 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15329 flag enums to contain duplicate enumerators.
15330 * valprint.c (generic_val_print_enum_1): Update comment.
15331
15332 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15333
15334 * dwarf2/read.c: Include "count-one-bits.h".
15335 (update_enumeration_type_from_children): If an enumerator has
15336 multiple bits set, don't treat the enumeration as a "flag enum".
15337 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15338 of flag enums have 0 or 1 bit set.
15339
15340 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15341
15342 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15343 conversion.
15344 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15345 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15346 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15347 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15348 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15349
15350 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15351
15352 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15353
15354 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15355
15356 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15357 displaced_step_closure_up.
15358 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15359 (struct displaced_step_closure_up):
15360 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15361 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15362 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15363 Likewise.
15364 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15365 * gdbarch.c, gdbarch.h: Re-generate.
15366 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15367 displaced_step_closure_up.
15368 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15369 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15370 * infrun.h (displaced_step_closure_up): New type alias.
15371 (struct displaced_step_inferior_state) <step_closure>: Change
15372 type to displaced_step_closure_up.
15373 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15374 displaced_step_closure_up.
15375 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15376
15377 2020-02-14 Tom Tromey <tom@tromey.com>
15378
15379 * minidebug.c (gnu_debug_key): New global.
15380 (find_separate_debug_file_in_section): Use it.
15381
15382 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15383
15384 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15385 std::unique_ptr.
15386 * gdbarch.c: Re-generate.
15387 * gdbarch.h: Re-generate.
15388 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15389 change.
15390 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15391 type to std::unique_ptr.
15392 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15393 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15394 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15395 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15396 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15397 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15398 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15399 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15400 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15401
15402 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15403
15404 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15405 std::unique_ptr.
15406 (displaced_step_clear): Rename to...
15407 (displaced_step_reset): ... this. Just call displaced->reset ().
15408 (displaced_step_clear_cleanup): Rename to...
15409 (displaced_step_reset_cleanup): ... this.
15410 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15411 (displaced_step_fixup): Likewise.
15412 (resume_1): Likewise.
15413 (handle_inferior_event): Restore child's memory before calling
15414 displaced_step_fixup on the parent.
15415 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15416 to std::unique_ptr.
15417 <step_closure>: Change type to std::unique_ptr.
15418
15419 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15420
15421 * arm-tdep.c: Include count-one-bits.h.
15422 (cleanup_block_store_pc): Use count_one_bits.
15423 (cleanup_block_load_pc): Use count_one_bits.
15424 (arm_copy_block_xfer): Use count_one_bits.
15425 (thumb2_copy_block_xfer): Use count_one_bits.
15426 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15427 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15428 (thumb_get_next_pcs_raw): Use count_one_bits.
15429 (arm_get_next_pcs_raw): Use count_one_bits_l.
15430 * arch/arm.c (bitcount): Remove.
15431 * arch/arm.h (bitcount): Remove.
15432
15433 2020-02-14 Tom Tromey <tromey@adacore.com>
15434
15435 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15436 Update.
15437 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15438 * dwarf2/loc.c (call_site_find_chain_1): Return
15439 unique_xmalloc_ptr.
15440 (call_site_find_chain): Likewise.
15441
15442 2020-02-14 Richard Biener <rguenther@suse.de>
15443
15444 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15445 on expression with division operators.
15446
15447 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15448
15449 * MAINTAINERS (Write After Approval): Adding myself.
15450
15451 2020-02-12 Tom Tromey <tom@tromey.com>
15452
15453 * event-loop.c (event_data, gdb_event, event_handler_func):
15454 Remove.
15455
15456 2020-02-12 Tom Tromey <tom@tromey.com>
15457
15458 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15459 (dwarf2_frame_objfile_data): Add comment.
15460 (find_comp_unit, set_comp_unit): New functions.
15461 (dwarf2_frame_find_fde): Use find_comp_unit.
15462 (dwarf2_build_frame_info): Use set_comp_unit.
15463
15464 2020-02-12 Tom Tromey <tom@tromey.com>
15465
15466 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15467 (comp_unit): Don't initialize objfile.
15468 (execute_cfa_program): Add text_offset parameter.
15469 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15470 (dwarf2_frame_cache): Update.
15471 (dwarf2_build_frame_info): Don't set "objfile" member.
15472
15473 2020-02-12 Tom Tromey <tom@tromey.com>
15474
15475 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15476 (decode_frame_entry): Likewise.
15477 (dwarf2_build_frame_info): Update.
15478
15479 2020-02-12 Tom Tromey <tom@tromey.com>
15480
15481 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15482 (decode_frame_entry_1): Use the comp_unit obstack.
15483
15484 2020-02-12 Tom Tromey <tom@tromey.com>
15485
15486 * dwarf2/frame.c (struct comp_unit): Add initializers and
15487 constructor.
15488 (dwarf2_frame_objfile_data): Store a comp_unit.
15489 (dwarf2_frame_find_fde): Update.
15490 (dwarf2_build_frame_info): Use "new".
15491
15492 2020-02-12 Tom Tromey <tom@tromey.com>
15493
15494 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15495 (dwarf2_fde_table): Typedef for std::vector.
15496 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15497 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15498 (decode_frame_entry): Update.
15499 (dwarf2_build_frame_info): Use "new".
15500
15501 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15502
15503 * arm-tdep.c (arm_gdbarch_init): Update.
15504 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15505 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15506 have_neon, is_m>: Change to bool.
15507
15508 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15509
15510 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15511
15512 2020-02-12 Tom Tromey <tom@tromey.com>
15513
15514 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15515
15516 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15517
15518 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15519 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15520
15521 2020-02-11 Tom Tromey <tom@tromey.com>
15522
15523 * psymtab.h: Update comment.
15524
15525 2020-02-11 Tom Tromey <tom@tromey.com>
15526
15527 * gdb_obstack.h (struct auto_obstack): Use
15528 DISABLE_COPY_AND_ASSIGN.
15529
15530 2020-02-11 Tom Tromey <tom@tromey.com>
15531
15532 * dwarf2/frame.h (struct objfile): Don't forward declare.
15533
15534 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15535
15536 * cris-tdep.c (cris_supply_gregset): Change signature to match
15537 what struct regset expects.
15538 (cris_regset): New struct.
15539 (fetch_core_registers): Remove.
15540 (cris_iterate_over_regset_sections): New function.
15541 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15542 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15543
15544 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15545
15546 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15547 registers.
15548
15549 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15550
15551 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15552
15553 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15554
15555 * configure: Re-generate.
15556
15557 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15558
15559 * configure: Re-generate.
15560
15561 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * acinclude: Update warning.m4 path.
15564 * warning.m4: Move to gdbsupport.
15565
15566 2020-02-11 Tom Tromey <tromey@adacore.com>
15567
15568 * remote.c (remote_console_output): Update.
15569 * printcmd.c (printf_command): Update.
15570 * event-loop.c (gdb_wait_for_event): Update.
15571 * linux-nat.c (sigchld_handler): Update.
15572 * remote-sim.c (gdb_os_write_stdout): Update.
15573 (gdb_os_flush_stdout): Update.
15574 (gdb_os_flush_stderr): Update.
15575 (gdb_os_write_stderr): Update.
15576 * exceptions.c (print_exception): Update.
15577 * remote-fileio.c (remote_fileio_func_read): Update.
15578 (remote_fileio_func_write): Update.
15579 * tui/tui.c (tui_enable): Update.
15580 * tui/tui-interp.c (tui_interp::init): Update.
15581 * utils.c (init_page_info): Update.
15582 (putchar_unfiltered, fputc_unfiltered): Update.
15583 (gdb_flush): Update.
15584 (emit_style_escape): Update.
15585 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15586 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15587 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15588 (stderr_file::write): Update.
15589 (stderr_file::puts): Update.
15590 * ui-file.h (ui_file_isatty, ui_file_write)
15591 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15592 (ui_file_puts): Don't declare.
15593
15594 2020-02-10 Tom de Vries <tdevries@suse.de>
15595
15596 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15597 sentinel to char *.
15598
15599 2020-02-09 Tom de Vries <tdevries@suse.de>
15600
15601 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15602 filename if it matches "<artificial>".
15603
15604 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15605
15606 * windows-tdep.c (struct enum_value_name): New struct.
15607 (create_enum): New function.
15608 (windows_get_siginfo_type): Create and use enum types.
15609
15610 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15611
15612 * NEWS: Mention $_siginfo support for Windows.
15613 * windows-nat.c (handle_exception): Set siginfo_er.
15614 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15615 (windows_xfer_siginfo): New function.
15616 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15617 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15618 (init_windows_gdbarch_data): New function.
15619 (get_windows_gdbarch_data): New function.
15620 (windows_get_siginfo_type): New function.
15621 (windows_init_abi): Register windows_get_siginfo_type.
15622 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15623
15624 2020-02-08 Tom Tromey <tom@tromey.com>
15625
15626 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15627 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15628 <keep>: Declare method.
15629 <m_keep>: Remove member.
15630 <~cutu_reader>: Remove.
15631 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15632 (cutu_reader::cutu_reader): Update.
15633 (cutu_reader::keep): Rename from ~cutu_reader.
15634 (process_psymtab_comp_unit, build_type_psymtabs_1)
15635 (process_skeletonless_type_unit, load_partial_comp_unit)
15636 (load_full_comp_unit, dwarf2_read_addr_index)
15637 (read_signatured_type): Update.
15638
15639 2020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15642 "want_partial_unit" parameter.
15643 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15644 Inline check for DW_TAG_partial_unit.
15645 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15646
15647 2020-02-08 Tom Tromey <tom@tromey.com>
15648
15649 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15650 read.c.
15651 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15652 read.c.
15653
15654 2020-02-08 Tom Tromey <tom@tromey.com>
15655
15656 * dwarf2/read.c (read_address): Move to comp-unit.c.
15657 (dwarf2_rnglists_process, dwarf2_ranges_process)
15658 (read_attribute_value, dwarf_decode_lines_1)
15659 (var_decode_location, decode_locdesc): Update.
15660 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15661 read.c. Remove "cu" parameter.
15662 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15663 method.
15664
15665 2020-02-08 Tom Tromey <tom@tromey.com>
15666
15667 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15668 (read_indirect_line_string): Update.
15669 * dwarf2/comp-unit.c (read_offset): Remove.
15670 (read_comp_unit_head): Update.
15671 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15672 method.
15673 (read_offset): Don't declare.
15674
15675 2020-02-08 Tom Tromey <tom@tromey.com>
15676
15677 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15678 * dwarf2/read.c (struct comp_unit_head): Move to
15679 dwarf2/comp-unit.h.
15680 (enum class rcuh_kind): Move to comp-unit.h.
15681 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15682 (read_comp_unit_head, error_check_comp_unit_head)
15683 (read_and_check_comp_unit_head): Move to comp-unit.c.
15684 (read_offset, dwarf_unit_type_name): Likewise.
15685 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15686 (cutu_reader::cutu_reader, read_call_site_scope)
15687 (find_partial_die, follow_die_offset): Update.
15688 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15689
15690 2020-02-08 Tom Tromey <tom@tromey.com>
15691
15692 * dwarf2/read.c (read_offset_1): Move to leb.c.
15693 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15694 (dwarf_decode_macro_bytes): Update.
15695 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15696 * dwarf2/leb.h (read_offset): Declare.
15697
15698 2020-02-08 Tom Tromey <tom@tromey.com>
15699
15700 * dwarf2/read.c (dwarf2_section_size): Remove.
15701 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15702 Update.
15703 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15704
15705 2020-02-08 Tom Tromey <tom@tromey.com>
15706
15707 * dwarf2/read.c (read_initial_length): Move to leb.c.
15708 * dwarf2/leb.h (read_initial_length): Declare.
15709 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15710 handle_nonstd parameter.
15711 * dwarf2/frame.c (read_initial_length): Remove.
15712 (decode_frame_entry_1): Update.
15713
15714 2020-02-08 Tom Tromey <tom@tromey.com>
15715
15716 * dwarf2/loc.c (dwarf2_find_location_expression)
15717 (dwarf_evaluate_loc_desc::get_tls_address)
15718 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15719 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15720 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15721 (dwarf2_compile_property_to_c)
15722 (dwarf2_loc_desc_get_symbol_read_needs)
15723 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15724 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15725 (loclist_describe_location, loclist_tracepoint_var_ref)
15726 (loclist_generate_c_location): Update.
15727 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15728 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15729 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15730 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15731 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15732 (dwarf2_per_cu_data::addr_size)
15733 (dwarf2_per_cu_data::ref_addr_size)
15734 (dwarf2_per_cu_data::text_offset)
15735 (dwarf2_per_cu_data::addr_type): Now methods.
15736 (per_cu_header_read_in): Make per_cu "const".
15737 (dwarf2_version): Remove.
15738 (dwarf2_per_cu_data::int_type): Now a method.
15739 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15740 (set_die_type, read_array_type, read_subrange_index_type)
15741 (read_tag_string_type, read_subrange_type): Update.
15742 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15743 offset_size, ref_addr_size, text_offset, addr_type, version,
15744 objfile, int_type, addr_sized_int_type>: Declare methods.
15745
15746 2020-02-08 Tom Tromey <tom@tromey.com>
15747
15748 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15749 Move earlier.
15750
15751 2020-02-08 Tom Tromey <tom@tromey.com>
15752
15753 * dwarf2/read.h (dwarf_line_debug): Declare.
15754 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15755 * dwarf2/read.c: Move line_header code to new files.
15756 (dwarf_line_debug): No longer static.
15757 * dwarf2/line-header.c: New file.
15758 * dwarf2/line-header.h: New file.
15759
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15761
15762 * dwarf2/read.c (struct line_header) <file_full_name,
15763 file_file_name>: Return unique_xmalloc_ptr.
15764 (line_header::file_file_name): Update.
15765 (line_header::file_full_name): Update.
15766 (dw2_get_file_names_reader): Update.
15767 (macro_start_file): Update.
15768
15769 2020-02-08 Tom Tromey <tom@tromey.com>
15770
15771 * dwarf2/read.c (struct line_header) <file_full_name,
15772 file_file_name>: Declare methods.
15773 (dw2_get_file_names_reader): Update.
15774 (file_file_name): Now a method.
15775 (file_full_name): Likewise.
15776 (macro_start_file): Update.
15777
15778 2020-02-08 Tom Tromey <tom@tromey.com>
15779
15780 * dwarf2/read.c (dwarf_always_disassemble)
15781 (show_dwarf_always_disassemble): Move to loc.c.
15782 (_initialize_dwarf2_read): Move "always-disassemble" registration
15783 to loc.c.
15784 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15785 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15786 static.
15787 (show_dwarf_always_disassemble): Move from read.c.
15788 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15789
15790 2020-02-08 Tom Tromey <tom@tromey.com>
15791
15792 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15793 (create_quick_file_names_table): Return htab_up.
15794 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15795 Update.
15796 * dwarf2/read.h (struct dwarf2_per_objfile)
15797 <quick_file_names_table>: Now htab_up.
15798
15799 2020-02-08 Tom Tromey <tom@tromey.com>
15800
15801 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15802
15803 2020-02-08 Tom Tromey <tom@tromey.com>
15804
15805 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15806 Rewrite.
15807 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15808 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15809 (abbrev_table::abbrev_table): No longer inline.
15810 (ABBREV_HASH_SIZE): Remove.
15811 (abbrev_table::m_abbrevs): Now an htab_up.
15812
15813 2020-02-08 Tom Tromey <tom@tromey.com>
15814
15815 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15816 (cutu_reader): Update.
15817 (build_type_psymtabs_1): Update.
15818 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15819 (abbrev_table::alloc_abbrev): Update.
15820 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15821 (abbrev_table::read): New static method, renamed from
15822 abbrev_table_read_table.
15823 (abbrev_table::alloc_abbrev)
15824 (abbrev_table::add_abbrev): Now private.
15825 (abbrev_table::abbrev_table): Now private.
15826 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15827
15828 2020-02-08 Tom Tromey <tom@tromey.com>
15829
15830 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15831 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15832 htab_up.
15833
15834 2020-02-08 Tom Tromey <tom@tromey.com>
15835
15836 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15837 htab_up.
15838 (lookup_dwo_unit_in_dwp): Update.
15839 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15840 on obstack.
15841
15842 2020-02-08 Tom Tromey <tom@tromey.com>
15843
15844 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15845 obstack.
15846
15847 2020-02-08 Tom Tromey <tom@tromey.com>
15848
15849 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15850 line_header_hash.
15851 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15852 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15853 Change type to htab_up.
15854
15855 2020-02-08 Tom Tromey <tom@tromey.com>
15856
15857 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15858 htab_up. Don't allocate on obstack.
15859 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15860 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15861 Change type to htab_up.
15862
15863 2020-02-08 Tom Tromey <tom@tromey.com>
15864
15865 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15866 Change type to htab_up.
15867 * dwarf2/read.c (create_signatured_type_table_from_index)
15868 (create_signatured_type_table_from_debug_names)
15869 (create_all_type_units, add_type_unit)
15870 (lookup_dwo_signatured_type, lookup_signatured_type)
15871 (process_skeletonless_type_unit): Update.
15872 (create_debug_type_hash_table, create_debug_types_hash_table):
15873 Change type of types_htab.
15874 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15875 htab_up. Don't allocate on obstack.
15876 (create_cus_hash_table): Change type of cus_htab parameter.
15877 (struct dwo_file) <cus, tus>: Now htab_up.
15878 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15879 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15880 (queue_and_load_all_dwo_tus): Update.
15881 * dwarf2/index-write.c (write_gdbindex): Update.
15882 (write_debug_names): Update.
15883
15884 2020-02-08 Tom Tromey <tom@tromey.com>
15885
15886 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15887 dwarf2/read.c. Remove "next" member. Add constructor ntad
15888 destructor.
15889 (struct dwarf2_per_objfile) <queue>: New member.
15890 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15891 dwarf2/read.h.
15892 (dwarf2_queue, dwarf2_queue_tail): Remove.
15893 (class dwarf2_queue_guard): Add parameter to constructor. Use
15894 DISABLE_COPY_AND_ASSIGN.
15895 <m_per_objfile>: New member.
15896 <~dwarf2_queue_guard>: Rewrite.
15897 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15898 Update.
15899 (~dwarf2_queue_item): New.
15900
15901 2020-02-08 Tom Tromey <tom@tromey.com>
15902
15903 * dwarf2/read.c (struct die_info) <has_children>: New member.
15904 (dw2_get_file_names_reader): Remove has_children.
15905 (dw2_get_file_names): Update.
15906 (read_cutu_die_from_dwo): Remove has_children.
15907 (cutu_reader::init_tu_and_read_dwo_dies)
15908 (cutu_reader::cutu_reader): Update.
15909 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15910 Remove has_children.
15911 (build_type_psymtabs_1, process_skeletonless_type_unit)
15912 (load_partial_comp_unit, load_full_comp_unit): Update.
15913 (create_dwo_cu_reader): Remove has_children.
15914 (create_cus_hash_table, read_die_and_children): Update.
15915 (read_full_die_1,read_full_die): Remove has_children.
15916 (read_signatured_type): Update.
15917 (class cutu_reader) <has_children>: Remove.
15918
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2/expr.c: Rename from dwarf2expr.c.
15922 * dwarf2/expr.h: Rename from dwarf2expr.h.
15923 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15924 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15925 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15926 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15927 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15928 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15929 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15930 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15931 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15932 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15933 * dwarf2/loc.c: Rename from dwarf2loc.c.
15934 * dwarf2/loc.h: Rename from dwarf2loc.h.
15935 * dwarf2/read.c: Rename from dwarf2read.c.
15936 * dwarf2/read.h: Rename from dwarf2read.h.
15937 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15938 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15939 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15940 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15941 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15942 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15943 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15944 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15945 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15946 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15947 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15948 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15949 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15950 Update.
15951 * Makefile.in (COMMON_SFILES): Update.
15952 (HFILES_NO_SRCDIR): Update.
15953
15954 2020-02-08 Tom Tromey <tom@tromey.com>
15955
15956 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15957 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15958
15959 2020-02-08 Tom Tromey <tom@tromey.com>
15960
15961 * dwarf2read.h (struct die_info): Don't declare.
15962
15963 2020-02-08 Tom Tromey <tom@tromey.com>
15964
15965 * dwarf2read.h (die_info_ptr): Remove typedef.
15966
15967 2020-02-08 Tom Tromey <tom@tromey.com>
15968
15969 * dwarf2read.c (read_call_site_scope)
15970 (handle_data_member_location, dwarf2_add_member_fn)
15971 (mark_common_block_symbol_computed, read_common_block)
15972 (attr_to_dynamic_prop, partial_die_info::read)
15973 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15974 (dwarf2_symbol_mark_computed, set_die_type): Update.
15975 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15976 method.
15977 (attr_form_is_block): Don't declare.
15978 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15979
15980 2020-02-08 Tom Tromey <tom@tromey.com>
15981
15982 * dwarf2read.c (dwarf2_find_base_address, )
15983 (read_call_site_scope, rust_containing_type)
15984 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15985 (handle_data_member_location, dwarf2_add_member_fn)
15986 (get_alignment, read_structure_type, process_structure_scope)
15987 (mark_common_block_symbol_computed, read_common_block)
15988 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15989 (partial_die_info::read, read_attribute_value, new_symbol)
15990 (lookup_die_type, dwarf2_get_ref_die_offset)
15991 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15992 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15993 (dwarf2_symbol_mark_computed): Update.
15994 * dwarf2/attribute.h (struct attribute) <value_as_address,
15995 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15996 methods.
15997 (value_as_address, attr_form_is_section_offset)
15998 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15999 * dwarf2/attribute.c (attribute::value_as_address)
16000 (attribute::form_is_section_offset, attribute::form_is_constant)
16001 (attribute::form_is_ref): Now methods.
16002
16003 2020-02-08 Tom Tromey <tom@tromey.com>
16004
16005 * dwarf2read.c (struct attribute, DW_STRING)
16006 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16007 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16008 (attr_form_is_block, attr_form_is_section_offset)
16009 (attr_form_is_constant, attr_form_is_ref): Move.
16010 * dwarf2/attribute.h: New file.
16011 * dwarf2/attribute.c: New file, from dwarf2read.c.
16012 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16013
16014 2020-02-08 Tom Tromey <tom@tromey.com>
16015
16016 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16017 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16018 Move.
16019 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16020 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16021 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16022 abbrev.c.
16023 * dwarf2/abbrev.h: New file.
16024 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16025 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16026
16027 2020-02-08 Tom Tromey <tom@tromey.com>
16028
16029 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16030 (dwarf2_section_size, dwarf2_get_section_info)
16031 (create_signatured_type_table_from_debug_names)
16032 (create_addrmap_from_aranges, read_debug_names_from_section)
16033 (get_gdb_index_contents_from_section, read_comp_unit_head)
16034 (error_check_comp_unit_head, read_abbrev_offset)
16035 (create_debug_type_hash_table, init_cu_die_reader)
16036 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16037 (read_comp_units_from_section, create_cus_hash_table)
16038 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16039 (create_dwp_v2_section, dwarf2_rnglists_process)
16040 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16041 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16042 (read_indirect_string_from_dwz, read_addr_index_1)
16043 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16044 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16045 (fill_in_loclist_baton): Update.
16046 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16047 get_containing_section, get_bfd_owner, get_bfd_section,
16048 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16049 (dwarf2_read_section, get_section_name, get_section_file_name)
16050 (get_containing_section, get_section_bfd_owner)
16051 (get_section_bfd_section, get_section_name, get_section_file_name)
16052 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16053 declare.
16054 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16055 (dwarf2_section_info::get_bfd_owner)
16056 (dwarf2_section_info::get_bfd_section)
16057 (dwarf2_section_info::get_name)
16058 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16059 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16060 (dwarf2_section_info::read): Now methods.
16061 * dwarf-index-write.c (class debug_names): Update.
16062
16063 2020-02-08 Tom Tromey <tom@tromey.com>
16064
16065 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16066 Move to dwarf2/section.h.
16067 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16068 (get_section_bfd_section, get_section_name)
16069 (get_section_file_name, get_section_id, get_section_flags)
16070 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16071 dwarf2/section.c.
16072 * dwarf2/section.h: New file.
16073 * dwarf2/section.c: New file, from dwarf2read.c.
16074 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16075
16076 2020-02-08 Tom Tromey <tom@tromey.com>
16077
16078 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16079 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16080 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16081 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16082 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16083 * dwarf2/leb.h: New file, from dwarf2read.c.
16084 * dwarf2/leb.c: New file, from dwarf2read.c.
16085 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16086 Remove.
16087 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16088 (COMMON_SFILES): Add dwarf2/leb.c.
16089
16090 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16091
16092 GDB 9.1 released.
16093
16094 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16095
16096 PR gdb/25190:
16097 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16098 * gdb/remote.c (remote_console_output): Update.
16099 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16100 (ui_file_puts): ...this.
16101 * gdb/ui-file.h (ui_file_puts): Add declaration.
16102 * gdb/utils.c (emit_style_escape): Update.
16103 (flush_wrap_buffer): Update.
16104 (fputs_maybe_filtered): Update.
16105 (fputs_unfiltered): Add function.
16106
16107 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16108
16109 * gdb/event-loop.c (gdb_wait_for_event): Update.
16110 * gdb/printcmd.c (printf_command): Update.
16111 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16112 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16113 (gdb_os_flush_stderr): Update.
16114 * gdb/remote.c (remote_console_output): Update.
16115 * gdb/ui-file.c (gdb_flush): Rename to...
16116 (ui_file_flush): ...this.
16117 (stderr_file::write): Update.
16118 (stderr_file::puts): Update.
16119 * gdb/ui-file.h (gdb_flush): Rename to...
16120 (ui_file_flush): ...this.
16121 * gdb/utils.c (gdb_flush): Add function.
16122 * gdb/utils.h (gdb_flush): Add declaration.
16123
16124 2020-02-07 Tom Tromey <tromey@adacore.com>
16125
16126 PR breakpoints/24915:
16127 * source.c (find_and_open_source): Do not check basenames_may_differ.
16128
16129 2020-02-07 Tom Tromey <tom@tromey.com>
16130
16131 * README: Update gdbserver documentation.
16132 * gdbserver: Move to top level.
16133 * configure.tgt (build_gdbserver): Remove.
16134 * configure.ac: Remove --enable-gdbserver.
16135 * configure: Rebuild.
16136 * Makefile.in (distclean): Don't mention gdbserver.
16137
16138 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16139
16140 * source-cache.c (source_cache::ensure): Surround
16141 get_plain_source_lines with a try/catch.
16142 (source_cache::get_line_charpos): Get rid of try/catch
16143 and only check for the return value of "ensure".
16144 * tui/tui-source.c (tui_source_window::set_contents):
16145 Simplify "nlines" calculation.
16146
16147 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16148
16149 * MAINTAINERS (Write After Approval): Add myself.
16150
16151 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16152
16153 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16154 function call.
16155
16156 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16157
16158 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16159
16160 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16161
16162 * nat/riscv-linux-tdesc.h: New file.
16163 * nat/riscv-linux-tdesc.c: New file, taking code from...
16164 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16165 ... here.
16166 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16167 NATDEPFILES.
16168
16169 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16170
16171 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16172 we don't set the fake simulator ptid to the null_ptid.
16173
16174 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16175
16176 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16177 * gdbthread.h (class thread_info) <resumed>: Likewise.
16178 * infrun.c (resume_1): Likewise.
16179 (proceed): Likewise.
16180 (infrun_thread_stop_requested): Likewise.
16181 (stop_all_threads): Likewise.
16182 (handle_inferior_event): Likewise.
16183 (restart_threads): Likewise.
16184 (finish_step_over): Likewise.
16185 (keep_going_stepped_thread): Likewise.
16186 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16187 (linux_handle_extended_wait): Likewise.
16188 * record-btrace.c (get_thread_current_frame_id): Likewise.
16189 * record-full.c (record_full_wait_1): Likewise.
16190 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16191 * target.c (target_resume): Likewise.
16192 * thread.c (set_running_thread): Likewise.
16193
16194 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16195
16196 * f-valprint.c (f77_print_array_1): Changed datatype of index
16197 variable to LONGEST from int to enable it to contain bound
16198 values correctly.
16199
16200 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16201
16202 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16203 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16204 offsets according to FLEN determined.
16205 (riscv_linux_nat_target::read_description): Determine FLEN
16206 dynamically.
16207 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16208 according to FLEN determined.
16209 (riscv_linux_nat_target::store_registers): Likewise.
16210
16211 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16212
16213 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16214 when reg->group is empty and reggroup is not.
16215
16216 2020-01-31 Tom Tromey <tromey@adacore.com>
16217
16218 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16219 Call beneath target's mourn_inferior after unpushing.
16220
16221 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16222
16223 PR tui/9765
16224 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16225 have enough lines to fill the screen, still return the lowest
16226 address we found.
16227
16228 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16229
16230 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16231 '-', '<', and '>' commands.
16232
16233 2020-01-29 Pedro Alves <palves@redhat.com>
16234 Sergio Durigan Junior <sergiodj@redhat.com>
16235
16236 * infcmd.c (construct_inferior_arguments): Assert that
16237 'argc' is greater than 0.
16238
16239 2020-01-29 Luis Machado <luis.machado@linaro.org>
16240
16241 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16242 (BRK_INSN_MASK): Define to 0xd4200000.
16243 (aarch64_program_breakpoint_here_p): New function.
16244 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16245 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16246 breakpoint.c.
16247 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16248 breakpoint.h
16249 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16250 call gdbarch_program_breakpoint_here_p.
16251 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16252 default_program_breakpoint_here_p, changed return type to bool and
16253 simplified.
16254 * breakpoint.h (program_breakpoint_here): Moved prototype to
16255 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16256 return type to bool.
16257 * gdbarch.c: Regenerate.
16258 * gdbarch.h: Regenerate.
16259 * gdbarch.sh (program_breakpoint_here_p): New method.
16260 * infrun.c (handle_signal_stop): Call
16261 gdbarch_program_breakpoint_here_p.
16262
16263 2020-01-26 Tom Tromey <tom@tromey.com>
16264
16265 * ctfread.c (struct ctf_fp_info): Reindent.
16266 (_initialize_ctfread): Remove.
16267
16268 2020-01-26 Tom Tromey <tom@tromey.com>
16269
16270 * psymtab.c (partial_map_expand_apply)
16271 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16272 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16273 (psym_print_stats, psym_expand_symtabs_for_function)
16274 (psym_map_symbol_filenames, psym_map_matching_symbols)
16275 (psym_expand_symtabs_matching)
16276 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16277 (maintenance_check_psymtabs): Use new methods.
16278 * psympriv.h (struct partial_symtab) <readin_p,
16279 get_compunit_symtab>: New methods.
16280 <readin, compunit_symtab>: Remove members.
16281 (struct standard_psymtab): New.
16282 (struct legacy_psymtab): Derive from standard_psymtab.
16283 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16284 standard_psymtab.
16285 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16286
16287 2020-01-26 Tom Tromey <tom@tromey.com>
16288
16289 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16290 read_dependencies. Add assert.
16291 * psymtab.c (partial_symtab::read_dependencies): New method.
16292 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16293 method.
16294 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16295 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16296 read_dependencies.
16297 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16298 Add assert.
16299
16300 2020-01-26 Tom Tromey <tom@tromey.com>
16301
16302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16303 Call expand_psymtab.
16304 (xcoff_read_symtab): Call expand_psymtab.
16305 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16306 legacy_expand_psymtab.
16307 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16308 method.
16309 (struct legacy_psymtab) <expand_psymtab>: Implement.
16310 <legacy_expand_psymtab>: New member.
16311 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16312 (parse_partial_symbols): Set legacy_expand_psymtab.
16313 (psymtab_to_symtab_1): Change argument order. Call
16314 expand_psymtab.
16315 (new_psymtab): Set legacy_expand_psymtab.
16316 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16317 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16318 expand_psymtab.
16319 (dwarf2_psymtab::expand_psymtab): Rename from
16320 psymtab_to_symtab_1. Call expand_psymtab.
16321 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16322 (dbx_end_psymtab): Likewise.
16323 (dbx_psymtab_to_symtab_1): Change argument order. Call
16324 expand_psymtab.
16325 (dbx_read_symtab): Call expand_psymtab.
16326 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16327 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16328 (ctf_psymtab::read_symtab): Call expand_psymtab.
16329
16330 2020-01-26 Tom Tromey <tom@tromey.com>
16331
16332 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16333 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16334 messages.
16335 * mdebugread.c (mdebug_read_symtab): Remove prints.
16336 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16337 assert.
16338 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16339
16340 2020-01-26 Tom Tromey <tom@tromey.com>
16341
16342 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16343 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16344 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16345 legacy_symtab.
16346 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16347 * psymtab.c (psymtab_to_symtab): Call method.
16348 (dump_psymtab): Update.
16349 * psympriv.h (struct partial_symtab): Add virtual destructor.
16350 <read_symtab>: New method.
16351 (struct legacy_symtab): New.
16352 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16353 (struct pst_map) <pst>: Now a legacy_psymtab.
16354 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16355 (new_psymtab): Use legacy_psymtab.
16356 * dwarf2read.h (struct dwarf2_psymtab): New.
16357 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16358 * dwarf2read.c (dwarf2_create_include_psymtab)
16359 (dwarf2_build_include_psymtabs, create_type_unit_group)
16360 (create_partial_symtab, process_psymtab_comp_unit_reader)
16361 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16362 (set_partial_user): Use dwarf2_psymtab.
16363 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16364 (psymtab_to_symtab_1, process_full_comp_unit)
16365 (process_full_type_unit, dwarf2_ranges_read)
16366 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16367 (dwarf_decode_lines): Use dwarf2_psymtab.
16368 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16369 (add_address_entry_worker, write_one_signatured_type)
16370 (recursively_count_psymbols, recursively_write_psymbols)
16371 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16372 (write_debug_names): Likewise.
16373 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16374 <pst>: Now a legacy_psymtab.
16375 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16376 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16377 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16378 * ctfread.c (struct ctf_psymtab): New.
16379 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16380 ctf_psymtab.
16381 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16382 (create_partial_symtab): Return a ctf_psymtab.
16383 (scan_partial_symbols): Update.
16384
16385 2020-01-26 Tom Tromey <tom@tromey.com>
16386
16387 * xcoffread.c (xcoff_start_psymtab): Use new.
16388 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16389 renamed from start_psymtab_common.
16390 * psympriv.h (struct partial_symtab): Add new constructor.
16391 (start_psymtab_common): Don't declare.
16392 * mdebugread.c (parse_partial_symbols): Use new.
16393 * dwarf2read.c (create_partial_symtab): Use new.
16394 * dbxread.c (start_psymtab): Use new.
16395 * ctfread.c (create_partial_symtab): Use new.
16396
16397 2020-01-26 Tom Tromey <tom@tromey.com>
16398
16399 * xcoffread.c (xcoff_end_psymtab): Use new.
16400 * psymtab.c (start_psymtab_common): Use new.
16401 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16402 Update.
16403 * psympriv.h (struct partial_symtab): Add parameters to
16404 constructor. Don't inline.
16405 (allocate_psymtab): Don't declare.
16406 * mdebugread.c (new_psymtab): Use new.
16407 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16408 * dbxread.c (dbx_end_psymtab): Use new.
16409
16410 2020-01-26 Tom Tromey <tom@tromey.com>
16411
16412 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16413 allocate_psymtab. Update documentation.
16414 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16415 allocate_psymtab. Do not use new.
16416 (allocate_psymtab): Use new. Update.
16417
16418 2020-01-26 Tom Tromey <tom@tromey.com>
16419
16420 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16421 * psymtab.c (psym_print_stats): Update.
16422 * psympriv.h (struct partial_symtab) <readin,
16423 psymtabs_addrmap_supported, anonymous>: Now bool.
16424 * mdebugread.c (psymtab_to_symtab_1): Update.
16425 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16426 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16427 (process_full_comp_unit, process_full_type_unit): Update.
16428 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16429 * ctfread.c (psymtab_to_symtab): Update.
16430
16431 2020-01-26 Tom Tromey <tom@tromey.com>
16432
16433 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16434 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16435 * psymtab.c (psymtab_storage): Delete psymtabs.
16436 (psymtab_storage::allocate_psymtab): Use new.
16437 (psymtab_storage::discard_psymtab): Use delete.
16438 * psympriv.h (struct partial_symtab): Add constructor and
16439 initializers.
16440
16441 2020-01-26 Tom Tromey <tom@tromey.com>
16442
16443 * machoread.c: Do not include psympriv.h.
16444
16445 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16446
16447 * NEWS: Mention the new option and the set/show commands.
16448
16449 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16450
16451 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16452 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16453 (validate_exec_file): New variables, enums, functions.
16454 (exec_file_locate_attach, print_section_info): Style the filenames.
16455 (_initialize_exec): Install show_exec_file_mismatch_command and
16456 set_exec_file_mismatch_command.
16457 * gdbcore.h (validate_exec_file): Declare.
16458 * infcmd.c (attach_command): Call validate_exec_file.
16459 * remote.c ( remote_target::remote_add_inferior): Likewise.
16460
16461 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16462
16463 * frame.c (find_frame_sal): Move call to get_next_frame into more
16464 inner scope.
16465 * inline-frame.c (inilne_state) <inline_state>: Update argument
16466 types.
16467 (inilne_state) <skipped_symbol>: Rename to...
16468 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16469 (skip_inline_frames): Build vector of skipped symbols and use this
16470 to reate the inline_state.
16471 (inline_skipped_symbol): Add a comment and some assertions, fetch
16472 skipped symbol from the list.
16473
16474 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16475
16476 * buildsym.c (lte_is_less_than): Delete.
16477 (buildsym_compunit::end_symtab_with_blockvector): Create local
16478 lambda function to sort line table entries, and use
16479 std::stable_sort instead of std::sort.
16480 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16481 markers when looking for a previous line.
16482
16483 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16484
16485 * dwarf2read.c (lnp_state_machine::record_line): Include
16486 end_sequence parameter in debug print out. Record the line if we
16487 are at an end_sequence marker even if it's not the start of a
16488 statement.
16489 * symmisc.c (maintenance_print_one_line_table): Print end of
16490 sequence markers with 'END' not '0'.
16491
16492 2020-01-24 Pedro Alves <palves@redhat.com>
16493
16494 PR gdb/25410
16495 * thread.c (scoped_restore_current_thread::restore): Use
16496 switch_to_inferior_no_thread.
16497 * exec.c: Include "progspace-and-thread.h".
16498 (add_target_sections, remove_target_sections):
16499 scoped_restore_current_pspace_and_thread instead of
16500 scoped_restore_current_thread.
16501 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16502 and aspace to the inferior before calling clone_program_space.
16503 Remove stale comment.
16504
16505 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16506
16507 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16508 (arm_netbsd_nat_target::fetch_registers): ...this.
16509 (arm_nbsd_nat_target::store_registers): Rename to...
16510 (arm_netbsd_nat_target::store_registers): ...this.
16511
16512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16513
16514 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16515 register_t.
16516
16517 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16518
16519 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16520 Update comment.
16521 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16522 Likewise.
16523 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16524 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16525 the correct replacement (iterate_over_regset_sections).
16526 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16527 Update comment.
16528
16529 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16530
16531 PR gdb/23718
16532 * gdb/python/python.c (execute_gdb_command): Call
16533 async_enable_stdin in catch block.
16534
16535 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16536
16537 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16538 SWITCH_THRU_ALL_UIS.
16539
16540 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16541
16542 PR tui/9765
16543 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16544 comment, add extra parameter, and update to store previous symbol
16545 when appropriate.
16546 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16547 add extra parameter.
16548 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16549 remove unneeded parameter, add try/catch around gdb_print_insn,
16550 rewrite to add items to asm_lines vector.
16551 (tui_find_backward_disassembly_start_address): New function.
16552 (tui_find_disassembly_address): Updated throughout.
16553 (tui_disasm_window::set_contents): Update for changes to
16554 tui_disassemble.
16555 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16556 number of lines to scroll.
16557
16558 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16559
16560 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16561 (SECT_OFF_DATA): Likewise.
16562 (SECT_OFF_RODATA): Likewise.
16563 (SECT_OFF_TEXT): Likewise.
16564 (SECT_OFF_BSS): Likewise.
16565 (struct objfile) <text_section_offset, data_section_offset>: New
16566 methods.
16567 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16568 objfile::text_section_offset.
16569 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16570 * coffread.c (coff_symtab_read): Likewise.
16571 (enter_linenos): Likewise.
16572 (process_coff_symbol): Likewise.
16573 * ctfread.c (get_objfile_text_range): Likewise.
16574 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16575 Use objfile::data_section_offset.
16576 * dwarf2-frame.c (execute_cfa_program): Use
16577 objfile::text_section_offset.
16578 (dwarf2_frame_find_fde): Likewise.
16579 * dwarf2read.c (create_addrmap_from_index): Likewise.
16580 (create_addrmap_from_aranges): Likewise.
16581 (dw2_find_pc_sect_compunit_symtab): Likewise.
16582 (process_psymtab_comp_unit_reader): Likewise.
16583 (add_partial_symbol): Likewise.
16584 (add_partial_subprogram): Likewise.
16585 (process_full_comp_unit): Likewise.
16586 (read_file_scope): Likewise.
16587 (read_func_scope): Likewise.
16588 (read_lexical_block_scope): Likewise.
16589 (read_call_site_scope): Likewise.
16590 (dwarf2_rnglists_process): Likewise.
16591 (dwarf2_ranges_process): Likewise.
16592 (dwarf2_ranges_read): Likewise.
16593 (dwarf_decode_lines_1): Likewise.
16594 (new_symbol): Likewise.
16595 (dwarf2_fetch_die_loc_sect_off): Likewise.
16596 (dwarf2_per_cu_text_offset): Likewise.
16597 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16598 * hppa-tdep.c (read_unwind_info): Likewise.
16599 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16600 * psympriv.h (struct partial_symtab): Likewise.
16601 * psymtab.c (find_pc_sect_psymtab): Likewise.
16602 * solib-svr4.c (enable_break): Likewise.
16603 * stap-probe.c (relocate_address): Use
16604 objfile::data_section_offset.
16605 * xcoffread.c (enter_line_range): Use
16606 objfile::text_section_offset.
16607 (read_xcoff_symtab): Likewise.
16608
16609 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16610
16611 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16612 declaration to narrower scopes.
16613
16614 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16615
16616 * darwin-nat.h (struct darwin_exception_msg, enum
16617 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16618 Move up.
16619 (class darwin_nat_target) <wait_1, check_new_threads,
16620 decode_exception_message, decode_message, stop_inferior,
16621 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16622 * darwin-nat.c (darwin_check_new_threads): Rename to...
16623 (darwin_nat_target::check_new_threads): ... this.
16624 (darwin_suspend_inferior_it): Remove.
16625 (darwin_decode_exception_message): Rename to...
16626 (darwin_nat_target::decode_exception_message): ... this.
16627 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16628 (darwin_decode_message): Rename to...
16629 (darwin_nat_target::decode_message): ... this.
16630 (cancel_breakpoint): Rename to...
16631 (darwin_nat_target::cancel_breakpoint): ... this.
16632 (darwin_wait): Rename to...
16633 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16634 instead of iterate_over_inferiors.
16635 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16636 (darwin_stop_inferior): Rename to...
16637 (darwin_nat_target::stop_inferior): ... this.
16638 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16639 (darwin_init_thread_list): Rename to...
16640 (darwin_nat_target::init_thread_list): ... this.
16641 (darwin_ptrace_him): Rename to...
16642 (darwin_nat_target::ptrace_him): ... this.
16643 (darwin_nat_target::create_inferior): Pass lambda function to
16644 fork_inferior.
16645 (darwin_nat_target::detach): Call stop_inferior instead of
16646 darwin_stop_inferior.
16647 * fork-inferior.h (fork_inferior): Change init_trace_fun
16648 parameter to gdb::function_view.
16649 * fork-inferior.c (fork_inferior): Likewise.
16650
16651 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16652
16653 * i386-cygwin-tdep.c (core_process_module_section): Update.
16654 * windows-nat.c (struct lm_info_windows): Add text_offset.
16655 (windows_xfer_shared_libraries): Update.
16656 * windows-tdep.c (windows_xfer_shared_library):
16657 Add text_offset_cached argument.
16658 * windows-tdep.h (windows_xfer_shared_library): Update.
16659
16660 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16661
16662 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16663
16664 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16665
16666 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16667 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16668 replace with range-based for.
16669 (gdbsim_interrupt_inferior): Remove.
16670 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16671 with a range-based for. Inline code from
16672 gdbsim_interrupt_inferior.
16673
16674 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16675
16676 * infrun.c (proceed): Fix indentation.
16677
16678 2020-01-21 Tom Tromey <tromey@adacore.com>
16679
16680 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16681 * python/python.c (python_extension_ops): Update.
16682 (gdbpy_colorize): New function.
16683 * python/lib/gdb/__init__.py (colorize): New function.
16684 * extension.h (ext_lang_colorize): Declare.
16685 * extension.c (ext_lang_colorize): New function.
16686 * extension-priv.h (struct extension_language_ops) <colorize>: New
16687 member.
16688 * cli/cli-style.c (_initialize_cli_style): Update help text.
16689
16690 2020-01-21 Luis Machado <luis.machado@linaro.org>
16691
16692 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16693 <cond>: Change type to bool.
16694 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16695 (aarch64_displaced_step_cb): Likewise.
16696 (aarch64_displaced_step_tb): Likewise.
16697
16698 2020-01-21 Luis Machado <luis.machado@linaro.org>
16699
16700 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16701 output.
16702
16703 2020-01-21 Luis Machado <luis.machado@linaro.org>
16704
16705 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16706 <pc_adjust>: Adjust the documentation.
16707 (aarch64_displaced_step_fixup): Check if PC really moved before
16708 adjusting it.
16709
16710 2020-01-19 Tom Tromey <tom@tromey.com>
16711
16712 * disasm.c (~gdb_disassembler): New destructor.
16713 (gdb_buffered_insn_length): Call disassemble_free_target.
16714 * disasm.h (class gdb_disassembler): Declare destructor. Use
16715 DISABLE_COPY_AND_ASSIGN.
16716
16717 2020-01-19 Tom Tromey <tom@tromey.com>
16718
16719 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16720 (die_reader_func_ftype): Remove.
16721 (cutu_reader): New class.
16722 (dw2_get_file_names_reader): Remove "data" parameter.
16723 (dw2_get_file_names): Use cutu_reader.
16724 (create_debug_type_hash_table): Update.
16725 (read_cutu_die_from_dwo): Update comment.
16726 (lookup_dwo_unit): Add dwo_name parameter.
16727 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16728 die_reader_func_ftype and data parameters.
16729 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16730 Remove die_reader_func_ftype and data parameters.
16731 (~cutu_reader): New; from init_cutu_and_read_dies.
16732 (cutu_reader::cutu_reader): Rename from
16733 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16734 and data parameters.
16735 (init_cutu_and_read_dies_simple): Remove.
16736 (struct process_psymtab_comp_unit_data): Remove.
16737 (process_psymtab_comp_unit_reader): Remove data parameter; add
16738 want_partial_unit and pretend_language parameters.
16739 (process_psymtab_comp_unit): Use cutu_reader.
16740 (build_type_psymtabs_reader): Remove data parameter.
16741 (build_type_psymtabs_1): Use cutu_reader.
16742 (process_skeletonless_type_unit): Likewise.
16743 (load_partial_comp_unit_reader): Remove.
16744 (load_partial_comp_unit): Use cutu_reader.
16745 (load_full_comp_unit_reader): Remove.
16746 (load_full_comp_unit): Use cutu_reader.
16747 (struct create_dwo_cu_data): Remove.
16748 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16749 dwo_unit parameters.
16750 (create_cus_hash_table): Use cutu_reader.
16751 (struct dwarf2_read_addr_index_data): Remove.
16752 (dwarf2_read_addr_index_reader): Remove.
16753 (dwarf2_read_addr_index): Use cutu_reader.
16754 (read_signatured_type_reader): Remove.
16755 (read_signatured_type): Use cutu_reader.
16756
16757 2020-01-19 Tom Tromey <tom@tromey.com>
16758
16759 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16760 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16761 (tui_wrefresh): Declare.
16762 * tui/tui-wingeneral.c (suppress_output): New global.
16763 (tui_suppress_output, ~tui_suppress_output): New constructor and
16764 destructor.
16765 (tui_wrefresh): New function.
16766 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16767 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16768 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16769 method.
16770 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16771 tui_wrefresh.
16772 (tui_data_window::no_refresh): New method.
16773 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16774 (tui_reg_command): Use tui_suppress_output
16775 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16776 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16777 method.
16778 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16779
16780 2020-01-19 Tom Tromey <tom@tromey.com>
16781
16782 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16783 Handle case where symtab is null.
16784
16785 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16786
16787 * linux-fork.c (one_fork_p): Simplify.
16788
16789 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16790
16791 * top.c (struct qt_args): Remove.
16792 (kill_or_detach): Change return type to void, replace `void *`
16793 parameter with a proper one.
16794 (print_inferior_quit_action): Likewise.
16795 (quit_confirm): Use range-based for loop to iterate over inferiors.
16796 (quit_force): Likewise.
16797
16798 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16799
16800 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16801 `void *` parameter with proper parameters.
16802 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16803 (print_one_inferior): Change return type to void, replace `void *`
16804 parameter with proper parameters.
16805 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16806 inferiors.
16807 (get_other_inferior): Remove.
16808 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16809 inferiors.
16810
16811 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16812
16813 * mi/mi-interp.c (report_initial_inferior): Remove.
16814 (mi_interp::init): Use range-based for to iterate over inferiors.
16815
16816 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16817
16818 * python/py-inferior.c (build_inferior_list): Remove.
16819 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16820
16821 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16822
16823 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16824 (btrace_stitch_trace): Likewise.
16825 * charset.c (intermediate_encoding): Likewise (vaild).
16826 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16827 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16828 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16829
16830 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16831
16832 * windows-tdep.c (windows_get_tlb_type):
16833 Add rtl_user_process_parameters type.
16834
16835 2020-01-16 Pedro Alves <palves@redhat.com>
16836 Norbert Lange <nolange79@gmail.com>
16837
16838 PR build/24805
16839 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16840 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16841 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16842 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16843 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16844 (ps_plog): Redeclare exported functions with default visibility.
16845
16846 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16847
16848 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16849 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16850
16851 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16852
16853 * infcmd.c (post_create_inferior): Use get_thread_regcache
16854 instead of get_current_regcache.
16855
16856 2020-01-14 Tom Tromey <tom@tromey.com>
16857
16858 PR symtab/12535:
16859 * python/python.c (gdbpy_decode_line): Treat empty string the same
16860 as no argument.
16861
16862 2020-01-14 Tom Tromey <tom@tromey.com>
16863
16864 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16865
16866 2020-01-14 Tom Tromey <tom@tromey.com>
16867
16868 * nat/linux-btrace.c: Don't include <config.h>.
16869 * nat/linux-ptrace.c: Don't include <config.h>.
16870 * nat/x86-linux-dregs.c: Don't include <config.h>.
16871
16872 2020-01-14 Tom Tromey <tom@tromey.com>
16873
16874 * configure: Rebuild.
16875 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16876
16877 2020-01-14 Tom Tromey <tom@tromey.com>
16878
16879 * nat/x86-linux-dregs.c: Include configh.h.
16880 * nat/linux-ptrace.c: Include configh.h.
16881 * nat/linux-btrace.c: Include configh.h.
16882 * defs.h: Include config.h, bfd.h.
16883 * configure.ac: Don't source common.host.
16884 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16885 * configure: Rebuild.
16886 * acinclude.m4: Update path.
16887 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16888 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16889 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16890 (CLIBS): Add LIBSUPPORT.
16891 (CDEPS): Likewise.
16892 (COMMON_SFILES): Remove gdbsupport files.
16893 (HFILES_NO_SRCDIR): Likewise.
16894 (stamp-version): Update path to create-version.sh.
16895 (ALLDEPFILES): Remove gdbsupport files.
16896
16897 2020-01-14 Tom Tromey <tom@tromey.com>
16898
16899 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16900 USE_WIN32API when needed.
16901 * configure.ac (USE_WIN32API): Don't define.
16902 (WIN32LIBS): Use WIN32APILIBS.
16903 * configure: Rebuild.
16904
16905 2020-01-14 Tom Tromey <tom@tromey.com>
16906
16907 * configure: Rebuild.
16908 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16909
16910 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16911
16912 * skip.c (skip_function_command): Make skip w/o arguments use the
16913 name of the inlined function if pc is inside any inlined function.
16914
16915 2020-01-14 Luis Machado <luis.machado@linaro.org>
16916
16917 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16918 * infrun.c (resume_1): Likewise.
16919 (handle_inferior_event): Remove stale comment.
16920 * linux-nat.c (linux_nat_target::resume): Update comments.
16921 (save_stop_reason): Likewise.
16922 (linux_nat_filter_event): Likewise.
16923 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16924
16925 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16926
16927 * elfread.c (record_minimal_symbol): Set section index to 0 for
16928 non-allocatable sections.
16929
16930
16931 2020-01-13 Ali Tamur <tamur@google.com>
16932
16933 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16934 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16935 to gdb::optional. Update comments.
16936 (dwo_file): Update comments.
16937 (read_attribute): Update API to take an additional out parameter,
16938 need_reprocess. This is used to mark attributes that need other
16939 attributes (e.g. str_offsets_base) for correct computation which may not
16940 have been read yet.
16941 (read_attribute_reprocess): New function declaration.
16942 (read_addr_index): Likewise.
16943 (read_dwo_str_index): Likewise.
16944 (read_stub_str_index): Likewise.
16945 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16946 (lookup_addr_base): New function definition.
16947 (lookup_ranges_base): Likewise.
16948 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16949 lookup_ranges_base.
16950 (init_cutu_and_read_dies): Update comments.
16951 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16952 unit. This is used to inherit parent's str_offsets_base and addr_base.
16953 Update comments.
16954 (init_cutu_and_read_dies_simple): Reflect API changes.
16955 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16956 (create_cus_hash_table): Change API to take parent compile unit.
16957 Reflect API changes.
16958 (open_and_init_dwo_file): Reflect API changes.
16959 (dwarf2_get_pc_bounds): Update comments.
16960 (dwarf2_record_block_ranges): Likewise.
16961 (read_full_die_1): Change implementation to reprocess attributes that
16962 need str_offsets_base and addr_base.
16963 (partial_die_info::read): Likewise.
16964 (read_attribute_reprocess): New function definition.
16965 (read_attribute_value): Change API to take an additional out parameter,
16966 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16967 when a non-dwo compile unit has index based attributes.
16968 (read_attribute): Reflect API changes.
16969 (read_addr_index_1): Reflect API changes. Update comments.
16970 (dwarf2_read_addr_index_data): Reflect API changes.
16971 (dwarf2_read_addr_index): Likewise.
16972 (read_str_index): Change API and implementation. This becomes a helper
16973 to be used by the new string index related methods. Update error
16974 message and comments.
16975 (read_dwo_str_index): New function definition.
16976 (read_stub_str_index): Likewise.
16977 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16978 * symfile.h (dwarf2_debug_sections): Likewise.
16979 * xcoffread.c (dwarf2_debug_sections): Likewise.
16980
16981 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16982
16983 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16984 core_reg_sect type to gdb_byte *.
16985 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16986 * cris-tdep.c (fetch_core_registers): Likewise.
16987 * corelow.c (core_target::get_core_register_section): Change
16988 type of `contents` to gdb::byte_vector.
16989
16990 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16991
16992 * tui/tui-wingeneral.c (box_win): Position the title in the center
16993 of the border.
16994
16995 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16996
16997 * corelow.c (core_target::get_core_register_section): Use
16998 std::vector instead of alloca.
16999
17000 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17001
17002 * warning.m4: Add -Wmissing-declarations to build_warnings.
17003 * configure: Re-generate.
17004
17005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17006
17007 * python/python.c (init__gdb_module): Add declaration.
17008
17009 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17010
17011 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17012 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17013 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17014 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17015 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17016 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17017 * ada-exp.y (_initialize_ada_exp): Add declaration.
17018 * ada-lang.c (_initialize_ada_language): Add declaration.
17019 * ada-tasks.c (_initialize_tasks): Add declaration.
17020 * agent.c (_initialize_agent): Add declaration.
17021 * aix-thread.c (_initialize_aix_thread): Add declaration.
17022 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17023 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17024 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17025 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17026 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17027 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17028 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17029 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17030 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17031 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17032 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17033 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17034 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17035 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17036 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17037 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17038 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17039 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17040 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17041 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17042 * annotate.c (_initialize_annotate): Add declaration.
17043 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17044 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17045 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17046 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17047 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17048 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17049 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17050 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17051 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17052 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17053 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17054 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17055 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17056 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17057 * auto-load.c (_initialize_auto_load): Add declaration.
17058 * auxv.c (_initialize_auxv): Add declaration.
17059 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17060 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17061 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17062 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17063 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17064 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17065 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17066 * breakpoint.c (_initialize_breakpoint): Add declaration.
17067 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17068 * btrace.c (_initialize_btrace): Add declaration.
17069 * charset.c (_initialize_charset): Add declaration.
17070 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17071 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17072 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17073 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17074 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17075 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17076 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17077 * coffread.c (_initialize_coffread): Add declaration.
17078 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17079 * compile/compile.c (_initialize_compile): Add declaration.
17080 * complaints.c (_initialize_complaints): Add declaration.
17081 * completer.c (_initialize_completer): Add declaration.
17082 * copying.c (_initialize_copying): Add declaration.
17083 * corefile.c (_initialize_core): Add declaration.
17084 * corelow.c (_initialize_corelow): Add declaration.
17085 * cp-abi.c (_initialize_cp_abi): Add declaration.
17086 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17087 * cp-support.c (_initialize_cp_support): Add declaration.
17088 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17089 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17090 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17091 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17092 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17093 * ctfread.c (_initialize_ctfread): Add declaration.
17094 * d-lang.c (_initialize_d_language): Add declaration.
17095 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17096 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17097 * dbxread.c (_initialize_dbxread): Add declaration.
17098 * dcache.c (_initialize_dcache): Add declaration.
17099 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17100 * disasm.c (_initialize_disasm): Add declaration.
17101 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17102 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17103 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17104 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17105 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17106 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17107 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17108 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17109 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17110 * elfread.c (_initialize_elfread): Add declaration.
17111 * exec.c (_initialize_exec): Add declaration.
17112 * extension.c (_initialize_extension): Add declaration.
17113 * f-lang.c (_initialize_f_language): Add declaration.
17114 * f-valprint.c (_initialize_f_valprint): Add declaration.
17115 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17116 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17117 * filesystem.c (_initialize_filesystem): Add declaration.
17118 * findcmd.c (_initialize_mem_search): Add declaration.
17119 * findvar.c (_initialize_findvar): Add declaration.
17120 * fork-child.c (_initialize_fork_child): Add declaration.
17121 * frame-base.c (_initialize_frame_base): Add declaration.
17122 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17123 * frame.c (_initialize_frame): Add declaration.
17124 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17125 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17126 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17127 * gcore.c (_initialize_gcore): Add declaration.
17128 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17129 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17130 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17131 * gdbarch.c (_initialize_gdbarch): Add declaration.
17132 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17133 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17134 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17135 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17136 * go-lang.c (_initialize_go_language): Add declaration.
17137 * go32-nat.c (_initialize_go32_nat): Add declaration.
17138 * guile/guile.c (_initialize_guile): Add declaration.
17139 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17140 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17141 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17142 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17143 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17144 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17145 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17146 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17147 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17148 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17149 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17150 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17151 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17152 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17153 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17154 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17155 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17156 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17157 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17158 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17159 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17160 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17161 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17162 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17163 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17164 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17165 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17166 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17167 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17168 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17169 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17170 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17171 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17172 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17173 * infcall.c (_initialize_infcall): Add declaration.
17174 * infcmd.c (_initialize_infcmd): Add declaration.
17175 * inflow.c (_initialize_inflow): Add declaration.
17176 * infrun.c (_initialize_infrun): Add declaration.
17177 * interps.c (_initialize_interpreter): Add declaration.
17178 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17179 * jit.c (_initialize_jit): Add declaration.
17180 * language.c (_initialize_language): Add declaration.
17181 * linux-fork.c (_initialize_linux_fork): Add declaration.
17182 * linux-nat.c (_initialize_linux_nat): Add declaration.
17183 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17184 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17185 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17186 * m2-lang.c (_initialize_m2_language): Add declaration.
17187 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17188 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17189 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17190 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17191 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17192 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17193 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17194 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17195 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17196 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17197 * machoread.c (_initialize_machoread): Add declaration.
17198 * macrocmd.c (_initialize_macrocmd): Add declaration.
17199 * macroscope.c (_initialize_macroscope): Add declaration.
17200 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17201 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17202 * maint.c (_initialize_maint_cmds): Add declaration.
17203 * mdebugread.c (_initialize_mdebugread): Add declaration.
17204 * memattr.c (_initialize_mem): Add declaration.
17205 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17206 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17207 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17208 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17209 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17210 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17211 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17212 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17213 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17214 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17215 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17216 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17217 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17218 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17219 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17220 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17221 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17222 * mipsread.c (_initialize_mipsread): Add declaration.
17223 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17224 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17225 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17226 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17227 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17228 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17229 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17230 * nto-procfs.c (_initialize_procfs): Add declaration.
17231 * objc-lang.c (_initialize_objc_language): Add declaration.
17232 * observable.c (_initialize_observer): Add declaration.
17233 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17234 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17235 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17236 * osabi.c (_initialize_gdb_osabi): Add declaration.
17237 * osdata.c (_initialize_osdata): Add declaration.
17238 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17239 * parse.c (_initialize_parse): Add declaration.
17240 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17241 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17242 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17243 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17244 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17245 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17246 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17247 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17248 * printcmd.c (_initialize_printcmd): Add declaration.
17249 * probe.c (_initialize_probe): Add declaration.
17250 * proc-api.c (_initialize_proc_api): Add declaration.
17251 * proc-events.c (_initialize_proc_events): Add declaration.
17252 * proc-service.c (_initialize_proc_service): Add declaration.
17253 * procfs.c (_initialize_procfs): Add declaration.
17254 * producer.c (_initialize_producer): Add declaration.
17255 * psymtab.c (_initialize_psymtab): Add declaration.
17256 * python/python.c (_initialize_python): Add declaration.
17257 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17258 * record-btrace.c (_initialize_record_btrace): Add declaration.
17259 * record-full.c (_initialize_record_full): Add declaration.
17260 * record.c (_initialize_record): Add declaration.
17261 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17262 * regcache.c (_initialize_regcache): Add declaration.
17263 * reggroups.c (_initialize_reggroup): Add declaration.
17264 * remote-notif.c (_initialize_notif): Add declaration.
17265 * remote-sim.c (_initialize_remote_sim): Add declaration.
17266 * remote.c (_initialize_remote): Add declaration.
17267 * reverse.c (_initialize_reverse): Add declaration.
17268 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17269 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17270 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17271 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17272 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17273 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17274 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17275 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17276 Add declaration.
17277 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17278 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17279 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17280 * rust-exp.y (_initialize_rust_exp): Add declaration.
17281 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17282 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17283 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17284 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17285 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17286 * score-tdep.c (_initialize_score_tdep): Add declaration.
17287 * ser-go32.c (_initialize_ser_dos): Add declaration.
17288 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17289 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17290 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17291 * ser-uds.c (_initialize_ser_socket): Add declaration.
17292 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17293 * serial.c (_initialize_serial): Add declaration.
17294 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17295 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17296 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17297 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17298 * skip.c (_initialize_step_skip): Add declaration.
17299 * sol-thread.c (_initialize_sol_thread): Add declaration.
17300 * solib-aix.c (_initialize_solib_aix): Add declaration.
17301 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17302 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17303 * solib-frv.c (_initialize_frv_solib): Add declaration.
17304 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17305 * solib-target.c (_initialize_solib_target): Add declaration.
17306 * solib.c (_initialize_solib): Add declaration.
17307 * source-cache.c (_initialize_source_cache): Add declaration.
17308 * source.c (_initialize_source): Add declaration.
17309 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17310 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17311 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17312 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17313 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17314 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17315 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17316 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17317 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17318 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17319 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17320 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17321 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17322 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17323 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17324 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17325 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17326 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17327 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17328 * stabsread.c (_initialize_stabsread): Add declaration.
17329 * stack.c (_initialize_stack): Add declaration.
17330 * stap-probe.c (_initialize_stap_probe): Add declaration.
17331 * std-regs.c (_initialize_frame_reg): Add declaration.
17332 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17333 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17334 * symfile.c (_initialize_symfile): Add declaration.
17335 * symmisc.c (_initialize_symmisc): Add declaration.
17336 * symtab.c (_initialize_symtab): Add declaration.
17337 * target.c (_initialize_target): Add declaration.
17338 * target-connection.c (_initialize_target_connection): Add
17339 declaration.
17340 * target-dcache.c (_initialize_target_dcache): Add declaration.
17341 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17342 * thread.c (_initialize_thread): Add declaration.
17343 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17344 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17345 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17346 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17347 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17348 * tracectf.c (_initialize_ctf): Add declaration.
17349 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17350 * tracefile.c (_initialize_tracefile): Add declaration.
17351 * tracepoint.c (_initialize_tracepoint): Add declaration.
17352 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17353 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17354 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17355 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17356 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17357 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17358 * tui/tui.c (_initialize_tui): Add declaration.
17359 * typeprint.c (_initialize_typeprint): Add declaration.
17360 * ui-style.c (_initialize_ui_style): Add declaration.
17361 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17362 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17363 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17364 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17365 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17366 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17367 * unittests/filtered_iterator-selftests.c
17368 (_initialize_filtered_iterator_selftests): Add declaration.
17369 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17370 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17371 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17372 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17373 * unittests/main-thread-selftests.c
17374 (_initialize_main_thread_selftests): Add declaration.
17375 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17376 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17377 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17378 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17379 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17380 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17381 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17382 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17383 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17384 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17385 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17386 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17387 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17388 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17389 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17390 declaration.
17391 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17392 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17393 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17394 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17395 * user-regs.c (_initialize_user_regs): Add declaration.
17396 * utils.c (_initialize_utils): Add declaration.
17397 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17398 * valops.c (_initialize_valops): Add declaration.
17399 * valprint.c (_initialize_valprint): Add declaration.
17400 * value.c (_initialize_values): Add declaration.
17401 * varobj.c (_initialize_varobj): Add declaration.
17402 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17403 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17404 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17405 * windows-nat.c (_initialize_windows_nat): Add declaration.
17406 (_initialize_check_for_gdb_ini): Add declaration.
17407 (_initialize_loadable): Add declaration.
17408 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17409 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17410 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17411 * xcoffread.c (_initialize_xcoffread): Add declaration.
17412 * xml-support.c (_initialize_xml_support): Add declaration.
17413 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17414 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17415 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17416 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17417
17418 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17419
17420 * regformats/regdat.sh: Generate declaration for init function.
17421
17422 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17423
17424 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17425 up.
17426 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17427 close_one_inferior>: New methods.
17428 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17429 pass down target to find_inferior_pid.
17430 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17431 Pass down target to find_inferior_ptid.
17432 (gdbsim_target::create_inferior): Pass down target to
17433 add_thread_silent.
17434 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17435 target down to find_inferior_ptid and switch_to_thread.
17436 (gdbsim_target::close): Update to call close_one_inferior.
17437 (struct resume_data): Remove.
17438 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17439 directly, rather than through a void pointer.
17440 (gdbsim_target::resume): Update to call resume_one_inferior.
17441
17442 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17443
17444 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17445
17446 2020-01-12 Pedro Alves <palves@redhat.com>
17447
17448 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17449 directly for the current inferior instead of
17450 discard_all_inferiors.
17451 (discard_all_inferiors): Delete.
17452
17453 2020-01-11 Tom Tromey <tom@tromey.com>
17454
17455 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17456 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17457 deprecated_safe_get_selected_frame.
17458
17459 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17460
17461 * inferior.c (print_inferior): Switch inferior before printing it.
17462
17463 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17464 Pedro Alves <palves@redhat.com>
17465
17466 * progspace-and-thread.c (switch_to_program_space_and_thread):
17467 Assert there's an inferior for PSPACE. Use
17468 switch_to_inferior_no_thread to switch the inferior too.
17469 * progspace.c (program_space::~program_space): Call
17470 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17471 (program_space::free_all_objfiles): Don't call clear_symtab_users
17472 here.
17473 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17474
17475 2020-01-10 Pedro Alves <palves@redhat.com>
17476
17477 * NEWS: Mention multi-target debugging, "info connections", and
17478 "add-inferior -no-connection".
17479
17480 2020-01-10 Pedro Alves <palves@redhat.com>
17481
17482 * infrun.c: Include "target-connection.h".
17483 (check_multi_target_resumption): New.
17484 (proceed): Call it.
17485 * target-connection.c (make_target_connection_string): Make
17486 extern.
17487 * target-connection.h (make_target_connection_string): Declare.
17488
17489 2020-01-10 Pedro Alves <palves@redhat.com>
17490
17491 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17492 * inferior.c (uiout_field_connection): New function.
17493 (print_inferior): Add new "connection-id" column.
17494 (add_inferior_command): Show connection number/string of added
17495 inferior.
17496 * process-stratum-target.h
17497 (process_stratum_target::connection_string): New virtual method.
17498 (process_stratum_target::connection_number): New field.
17499 * remote.c (remote_target::connection_string): New override.
17500 * target-connection.c: New file.
17501 * target-connection.h: New file.
17502 * target.c (decref_target): Remove process_stratum targets from
17503 the connection list.
17504 (target_stack::push): Add process_stratum targets to the
17505 connection list.
17506
17507 2020-01-10 Pedro Alves <palves@redhat.com>
17508
17509 Revert:
17510 2016-04-12 Pedro Alves <palves@redhat.com>
17511 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17512 Remove references to name.
17513 * serial.h (struct serial) <name>: Delete.
17514
17515 2020-01-10 Pedro Alves <palves@redhat.com>
17516
17517 * gdbarch-selftests.c (register_to_value_test): Remove "target
17518 already pushed" check.
17519
17520 2020-01-10 Pedro Alves <palves@redhat.com>
17521 John Baldwin <jhb@FreeBSD.org>
17522
17523 * aarch64-linux-nat.c
17524 (aarch64_linux_nat_target::thread_architecture): Adjust.
17525 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17526 (task_command_1): Likewise.
17527 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17528 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17529 (aix_thread_target::store_registers)
17530 (aix_thread_target::thread_alive): Adjust.
17531 * amd64-fbsd-tdep.c: Include "inferior.h".
17532 (amd64fbsd_get_thread_local_address): Pass down target.
17533 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17534 thread's gdbarch instead of target_gdbarch.
17535 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17536 get_last_target_status.
17537 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17538 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17539 inferiors.
17540 (update_inserted_breakpoint_locations): Skip if inferiors with no
17541 execution.
17542 (update_global_location_list): When handling moribund locations,
17543 find representative inferior for location's pspace, and use thread
17544 count of its process_stratum target.
17545 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17546 * bsd-uthread.c (bsd_uthread_target::wait): Use
17547 as_process_stratum_target and adjust thread_change_ptid and
17548 add_thread calls.
17549 (bsd_uthread_target::update_thread_list): Use
17550 as_process_stratum_target and adjust find_thread_ptid,
17551 thread_change_ptid and add_thread calls.
17552 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17553 find_thread_ptid call.
17554 * corelow.c (add_to_thread_list): Adjust add_thread call.
17555 (core_target_open): Adjust add_thread_silent and thread_count
17556 calls.
17557 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17558 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17559 * event-top.c (async_disconnect): Pop targets from all inferiors.
17560 * exec.c (add_target_sections): Push exec target on all inferiors
17561 sharing the program space.
17562 (remove_target_sections): Remove the exec target from all
17563 inferiors sharing the program space.
17564 (exec_on_vfork): New.
17565 * exec.h (exec_on_vfork): Declare.
17566 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17567 Pass it down.
17568 (fbsd_nat_target::update_thread_list): Adjust.
17569 (fbsd_nat_target::resume): Adjust.
17570 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17571 down.
17572 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17573 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17574 get_thread_arch_regcache call.
17575 * fork-child.c (gdb_startup_inferior): Pass target down to
17576 startup_inferior and set_executing.
17577 * gdbthread.h (struct process_stratum_target): Forward declare.
17578 (add_thread, add_thread_silent, add_thread_with_info)
17579 (in_thread_list): Add process_stratum_target parameter.
17580 (find_thread_ptid(inferior*, ptid_t)): New overload.
17581 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17582 parameter.
17583 (all_threads()): Delete overload.
17584 (all_threads, all_non_exited_threads): Add process_stratum_target
17585 parameter.
17586 (all_threads_safe): Use brace initialization.
17587 (thread_count): Add process_stratum_target parameter.
17588 (set_resumed, set_running, set_stop_requested, set_executing)
17589 (threads_are_executing, finish_thread_state): Add
17590 process_stratum_target parameter.
17591 (switch_to_thread): Use is_current_thread.
17592 * i386-fbsd-tdep.c: Include "inferior.h".
17593 (i386fbsd_get_thread_local_address): Pass down target.
17594 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17595 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17596 have_inferiors check.
17597 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17598 (inf_ptrace_target::attach): Adjust.
17599 * infcall.c (run_inferior_call): Adjust.
17600 * infcmd.c (run_command_1): Pass target to
17601 scoped_finish_thread_state.
17602 (proceed_thread_callback): Skip inferiors with no execution.
17603 (continue_command): Rename 'all_threads' local to avoid hiding
17604 'all_threads' function. Adjust get_last_target_status call.
17605 (prepare_one_step): Adjust set_running call.
17606 (signal_command): Use user_visible_resume_target. Compare thread
17607 pointers instead of inferior_ptid.
17608 (info_program_command): Adjust to pass down target.
17609 (attach_command): Mark target's 'thread_executing' flag.
17610 (stop_current_target_threads_ns): New, factored out from ...
17611 (interrupt_target_1): ... this. Switch inferior before making
17612 target calls.
17613 * inferior-iter.h
17614 (struct all_inferiors_iterator, struct all_inferiors_range)
17615 (struct all_inferiors_safe_range)
17616 (struct all_non_exited_inferiors_range): Filter on
17617 process_stratum_target too. Remove explicit.
17618 * inferior.c (inferior::inferior): Push dummy target on target
17619 stack.
17620 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17621 Add process_stratum_target parameter, and pass it down.
17622 (have_live_inferiors): Adjust.
17623 (switch_to_inferior_and_push_target): New.
17624 (add_inferior_command, clone_inferior_command): Handle
17625 "-no-connection" parameter. Use
17626 switch_to_inferior_and_push_target.
17627 (_initialize_inferior): Mention "-no-connection" option in
17628 the help of "add-inferior" and "clone-inferior" commands.
17629 * inferior.h: Include "process-stratum-target.h".
17630 (interrupt_target_1): Use bool.
17631 (struct inferior) <push_target, unpush_target, target_is_pushed,
17632 find_target_beneath, top_target, process_target, target_at,
17633 m_stack>: New.
17634 (discard_all_inferiors): Delete.
17635 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17636 (all_inferiors, all_non_exited_inferiors): Add
17637 process_stratum_target parameter.
17638 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17639 (target_last_proc_target): New global.
17640 (follow_fork_inferior): Push target on new inferior. Pass target
17641 to add_thread_silent. Call exec_on_vfork. Handle target's
17642 reference count.
17643 (follow_fork): Adjust get_last_target_status call. Also consider
17644 target.
17645 (follow_exec): Push target on new inferior.
17646 (struct execution_control_state) <target>: New field.
17647 (user_visible_resume_target): New.
17648 (do_target_resume): Call target_async.
17649 (resume_1): Set target's threads_executing flag. Consider resume
17650 target.
17651 (commit_resume_all_targets): New.
17652 (proceed): Also consider resume target. Skip threads of inferiors
17653 with no execution. Commit resumtion in all targets.
17654 (start_remote): Pass current inferior to wait_for_inferior.
17655 (infrun_thread_stop_requested): Consider target as well. Pass
17656 thread_info pointer to clear_inline_frame_state instead of ptid.
17657 (infrun_thread_thread_exit): Consider target as well.
17658 (random_pending_event_thread): New inferior parameter. Use it.
17659 (do_target_wait): Rename to ...
17660 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17661 down.
17662 (threads_are_resumed_pending_p, do_target_wait): New.
17663 (prepare_for_detach): Adjust calls.
17664 (wait_for_inferior): New inferior parameter. Handle it. Use
17665 do_target_wait_1 instead of do_target_wait.
17666 (fetch_inferior_event): Adjust. Switch to representative
17667 inferior. Pass target down.
17668 (set_last_target_status): Add process_stratum_target parameter.
17669 Save target in global.
17670 (get_last_target_status): Add process_stratum_target parameter and
17671 handle it.
17672 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17673 (context_switch): Check inferior_ptid == null_ptid before calling
17674 inferior_thread().
17675 (get_inferior_stop_soon): Pass down target.
17676 (wait_one): Rename to ...
17677 (poll_one_curr_target): ... this.
17678 (struct wait_one_event): New.
17679 (wait_one): New.
17680 (stop_all_threads): Adjust.
17681 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17682 event's target.
17683 (switch_back_to_stepped_thread): Also consider target.
17684 (print_stop_event): Update.
17685 (normal_stop): Update. Also consider the resume target.
17686 * infrun.h (wait_for_inferior): Remove declaration.
17687 (user_visible_resume_target): New declaration.
17688 (get_last_target_status, set_last_target_status): New
17689 process_stratum_target parameter.
17690 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17691 process_stratum_target parameter, and use it.
17692 (clear_inline_frame_state (thread_info*)): New.
17693 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17694 process_stratum_target parameter.
17695 (clear_inline_frame_state (thread_info*)): Declare.
17696 * linux-fork.c (delete_checkpoint_command): Pass target down to
17697 find_thread_ptid.
17698 (checkpoint_command): Adjust.
17699 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17700 instead of just tweaking inferior_ptid.
17701 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17702 (exit_lwp): Pass target down to find_thread_ptid.
17703 (attach_proc_task_lwp_callback): Pass target down to
17704 add_thread/set_running/set_executing.
17705 (linux_nat_target::attach): Pass target down to
17706 thread_change_ptid.
17707 (get_detach_signal): Pass target down to find_thread_ptid.
17708 Consider last target status's target.
17709 (linux_resume_one_lwp_throw, resume_lwp)
17710 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17711 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17712 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17713 (linux_nat_target::async_wait_fd): New.
17714 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17715 target down.
17716 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17717 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17718 * linux-thread-db.c (struct thread_db_info::process_target): New
17719 field.
17720 (add_thread_db_info): Save target.
17721 (get_thread_db_info): New process_stratum_target parameter. Also
17722 match target.
17723 (delete_thread_db_info): New process_stratum_target parameter.
17724 Also match target.
17725 (thread_from_lwp): Adjust to pass down target.
17726 (thread_db_notice_clone): Pass down target.
17727 (check_thread_db_callback): Pass down target.
17728 (try_thread_db_load_1): Always push the thread_db target.
17729 (try_thread_db_load, record_thread): Pass target down.
17730 (thread_db_target::detach): Pass target down. Always unpush the
17731 thread_db target.
17732 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17733 target down. Always unpush the thread_db target.
17734 (find_new_threads_callback, thread_db_find_new_threads_2)
17735 (thread_db_target::update_thread_list): Pass target down.
17736 (thread_db_target::pid_to_str): Pass current inferior down.
17737 (thread_db_target::get_thread_local_address): Pass target down.
17738 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17739 target down.
17740 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17741 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17742 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17743 (procfs_init_inferior): Rename to ...
17744 (procfs_target::procfs_init_inferior): ... this and adjust.
17745 (procfs_target::create_inferior, procfs_notice_thread)
17746 (procfs_do_thread_registers): Adjust.
17747 * ppc-fbsd-tdep.c: Include "inferior.h".
17748 (ppcfbsd_get_thread_local_address): Pass down target.
17749 * proc-service.c (ps_xfer_memory): Switch current inferior and
17750 program space as well.
17751 (get_ps_regcache): Pass target down.
17752 * process-stratum-target.c
17753 (process_stratum_target::thread_address_space)
17754 (process_stratum_target::thread_architecture): Pass target down.
17755 * process-stratum-target.h
17756 (process_stratum_target::threads_executing): New field.
17757 (as_process_stratum_target): New.
17758 * ravenscar-thread.c
17759 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17760 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17761 down.
17762 * record-btrace.c (record_btrace_target::info_record): Adjust.
17763 (record_btrace_target::record_method)
17764 (record_btrace_target::record_is_replaying)
17765 (record_btrace_target::fetch_registers)
17766 (get_thread_current_frame_id, record_btrace_target::resume)
17767 (record_btrace_target::wait, record_btrace_target::stop): Pass
17768 target down.
17769 * record-full.c (record_full_wait_1): Switch to event thread.
17770 Pass target down.
17771 * regcache.c (regcache::regcache)
17772 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17773 process_stratum_target parameter and handle it.
17774 (current_thread_target): New global.
17775 (get_thread_regcache): Add process_stratum_target parameter and
17776 handle it. Switch inferior before calling target method.
17777 (get_thread_regcache): Pass target down.
17778 (get_thread_regcache_for_ptid): Pass target down.
17779 (registers_changed_ptid): Add process_stratum_target parameter and
17780 handle it.
17781 (registers_changed_thread, registers_changed): Pass target down.
17782 (test_get_thread_arch_aspace_regcache): New.
17783 (current_regcache_test): Define a couple local test_target_ops
17784 instances and use them for testing.
17785 (readwrite_regcache): Pass process_stratum_target parameter.
17786 (cooked_read_test, cooked_write_test): Pass mock_target down.
17787 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17788 (get_thread_arch_aspace_regcache): Add process_stratum_target
17789 parameter.
17790 (regcache::target): New method.
17791 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17792 (regcache::registers_changed_ptid): Add process_stratum_target
17793 parameter.
17794 (regcache::m_target): New field.
17795 (registers_changed_ptid): Add process_stratum_target parameter.
17796 * remote.c (remote_state::supports_vCont_probed): New field.
17797 (remote_target::async_wait_fd): New method.
17798 (remote_unpush_and_throw): Add remote_target parameter.
17799 (get_current_remote_target): Adjust.
17800 (remote_target::remote_add_inferior): Push target.
17801 (remote_target::remote_add_thread)
17802 (remote_target::remote_notice_new_inferior)
17803 (get_remote_thread_info): Pass target down.
17804 (remote_target::update_thread_list): Skip threads of inferiors
17805 bound to other targets. (remote_target::close): Don't discard
17806 inferiors. (remote_target::add_current_inferior_and_thread)
17807 (remote_target::process_initial_stop_replies)
17808 (remote_target::start_remote)
17809 (remote_target::remote_serial_quit_handler): Pass down target.
17810 (remote_target::remote_unpush_target): New remote_target
17811 parameter. Unpush the target from all inferiors.
17812 (remote_target::remote_unpush_and_throw): New remote_target
17813 parameter. Pass it down.
17814 (remote_target::open_1): Check whether the current inferior has
17815 execution instead of checking whether any inferior is live. Pass
17816 target down.
17817 (remote_target::remote_detach_1): Pass down target. Use
17818 remote_unpush_target.
17819 (extended_remote_target::attach): Pass down target.
17820 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17821 (remote_target::append_resumption): Pass down target.
17822 (remote_target::append_pending_thread_resumptions)
17823 (remote_target::remote_resume_with_hc, remote_target::resume)
17824 (remote_target::commit_resume): Pass down target.
17825 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17826 (remote_target::interrupt_query)
17827 (remote_target::remove_new_fork_children)
17828 (remote_target::check_pending_events_prevent_wildcard_vcont)
17829 (remote_target::remote_parse_stop_reply)
17830 (remote_target::process_stop_reply): Pass down target.
17831 (first_remote_resumed_thread): New remote_target parameter. Pass
17832 it down.
17833 (remote_target::wait_as): Pass down target.
17834 (unpush_and_perror): New remote_target parameter. Pass it down.
17835 (remote_target::readchar, remote_target::remote_serial_write)
17836 (remote_target::getpkt_or_notif_sane_1)
17837 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17838 down target.
17839 (remote_target::mourn_inferior): Pass down target. Use
17840 remote_unpush_target.
17841 (remote_target::core_of_thread)
17842 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17843 (remote_target::pid_to_exec_file)
17844 (remote_target::thread_handle_to_thread_info): Pass down target.
17845 (remote_target::async_wait_fd): New.
17846 * riscv-fbsd-tdep.c: Include "inferior.h".
17847 (riscv_fbsd_get_thread_local_address): Pass down target.
17848 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17849 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17850 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17851 Adjust.
17852 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17853 * solib-svr4.c (enable_break): Pass down target.
17854 * spu-multiarch.c (parse_spufs_run): Pass down target.
17855 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17856 * target-delegates.c: Regenerate.
17857 * target.c (g_target_stack): Delete.
17858 (current_top_target): Return the current inferior's top target.
17859 (target_has_execution_1): Refer to the passed-in inferior's top
17860 target.
17861 (target_supports_terminal_ours): Check whether the initial
17862 inferior was already created.
17863 (decref_target): New.
17864 (target_stack::push): Incref/decref the target.
17865 (push_target, push_target, unpush_target): Adjust.
17866 (target_stack::unpush): Defref target.
17867 (target_is_pushed): Return bool. Adjust to refer to the current
17868 inferior's target stack.
17869 (dispose_inferior): Delete, and inline parts ...
17870 (target_preopen): ... here. Only dispose of the current inferior.
17871 (target_detach): Hold strong target reference while detaching.
17872 Pass target down.
17873 (target_thread_name): Add assertion.
17874 (target_resume): Pass down target.
17875 (target_ops::beneath, find_target_at): Adjust to refer to the
17876 current inferior's target stack.
17877 (get_dummy_target): New.
17878 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17879 has a thread running.
17880 (initialize_targets): Rename to ...
17881 (_initialize_target): ... this.
17882 * target.h: Include "gdbsupport/refcounted-object.h".
17883 (struct target_ops): Inherit refcounted_object.
17884 (target_ops::shortname, target_ops::longname): Make const.
17885 (target_ops::async_wait_fd): New method.
17886 (decref_target): Declare.
17887 (struct target_ops_ref_policy): New.
17888 (target_ops_ref): New typedef.
17889 (get_dummy_target): Declare function.
17890 (target_is_pushed): Return bool.
17891 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17892 (all_matching_threads_iterator::all_matching_threads_iterator):
17893 Handle filter target.
17894 * thread-iter.h (struct all_matching_threads_iterator, struct
17895 all_matching_threads_range, class all_non_exited_threads_range):
17896 Filter by target too. Remove explicit.
17897 * thread.c (threads_executing): Delete.
17898 (inferior_thread): Pass down current inferior.
17899 (clear_thread_inferior_resources): Pass down thread pointer
17900 instead of ptid_t.
17901 (add_thread_silent, add_thread_with_info, add_thread): Add
17902 process_stratum_target parameter. Use it for thread and inferior
17903 searches.
17904 (is_current_thread): New.
17905 (thread_info::deletable): Use it.
17906 (find_thread_ptid, thread_count, in_thread_list)
17907 (thread_change_ptid, set_resumed, set_running): New
17908 process_stratum_target parameter. Pass it down.
17909 (set_executing): New process_stratum_target parameter. Pass it
17910 down. Adjust reference to 'threads_executing'.
17911 (threads_are_executing): New process_stratum_target parameter.
17912 Adjust reference to 'threads_executing'.
17913 (set_stop_requested, finish_thread_state): New
17914 process_stratum_target parameter. Pass it down.
17915 (switch_to_thread): Also match inferior.
17916 (switch_to_thread): New process_stratum_target parameter. Pass it
17917 down.
17918 (update_threads_executing): Reimplement.
17919 * top.c (quit_force): Pop targets from all inferior.
17920 (gdb_init): Don't call initialize_targets.
17921 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17922 Declare.
17923 (windows_add_thread, windows_delete_thread): Adjust.
17924 (get_windows_debug_event): Rename to ...
17925 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17926 * tracefile-tfile.c (tfile_target_open): Pass down target.
17927 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17928 Forward declare.
17929 (switch_to_thread): Add process_stratum_target parameter.
17930 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17931 parameter. Use it.
17932 (mi_on_resume): Pass target down.
17933 * nat/fork-inferior.c (startup_inferior): Add
17934 process_stratum_target parameter. Pass it down.
17935 * nat/fork-inferior.h (startup_inferior): Add
17936 process_stratum_target parameter.
17937 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17938
17939 2020-01-10 Pedro Alves <palves@redhat.com>
17940
17941 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17942 directly. Instead find the first thread in the thread list and
17943 use switch_to_thread.
17944
17945 2020-01-10 Pedro Alves <palves@redhat.com>
17946
17947 * remote.c (remote_target::remote_add_inferior): Don't bind a
17948 process to the current inferior if the current inferior is already
17949 bound to a process.
17950
17951 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17952 Pedro Alves <palves@redhat.com>
17953
17954 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17955 If no process is specified, return null_ptid instead of
17956 inferior_ptid.
17957 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17958 TARGET_WAITKIND_SIGNALLED with no pid.
17959
17960 2020-01-10 Pedro Alves <palves@redhat.com>
17961
17962 * remote.c (first_remote_resumed_thread): New.
17963 (remote_target::wait_as): Use it as default event_ptid instead of
17964 inferior_ptid.
17965
17966 2020-01-10 Pedro Alves <palves@redhat.com>
17967
17968 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17969
17970 2020-01-10 Pedro Alves <palves@redhat.com>
17971
17972 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17973 not -1.
17974
17975 2020-01-10 Pedro Alves <palves@redhat.com>
17976
17977 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17978 ptid to get_last_target_status.
17979 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17980 ptid to get_last_target_status.
17981 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17982 get_last_target_status.
17983 (info_program_command): Don't pass a target_waitstatus to
17984 get_last_target_status.
17985 * infrun.c (init_wait_for_inferior): Use
17986 nullify_last_target_wait_ptid.
17987 (get_last_target_status): Handle nullptr arguments.
17988 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17989 (print_stop_event): Don't pass a ptid to get_last_target_status.
17990 (normal_stop): Don't pass a ptid to get_last_target_status.
17991 * infrun.h (get_last_target_status, set_last_target_status): Move
17992 comments here and update.
17993 (nullify_last_target_wait_ptid): Declare.
17994 * linux-fork.c (fork_load_infrun_state): Remove local extern
17995 declaration of nullify_last_target_wait_ptid.
17996 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17997 to get_last_target_status.
17998
17999 2020-01-10 Pedro Alves <palves@redhat.com>
18000
18001 * gdbthread.h (scoped_restore_current_thread)
18002 <dont_restore, restore, m_dont_restore>: Declare.
18003 * thread.c (thread_alive): Add assertion. Return bool.
18004 (switch_to_thread_if_alive): New.
18005 (prune_threads): Switch inferior/thread.
18006 (print_thread_info_1): Switch thread before calling target methods.
18007 (scoped_restore_current_thread::restore): New, factored out from
18008 ...
18009 (scoped_restore_current_thread::~scoped_restore_current_thread):
18010 ... this.
18011 (scoped_restore_current_thread::scoped_restore_current_thread):
18012 Add assertion.
18013 (thread_apply_all_command, thread_select): Use
18014 switch_to_thread_if_alive.
18015 * infrun.c (proceed, restart_threads, handle_signal_stop)
18016 (switch_back_to_stepped_thread): Switch current thread before
18017 calling target methods.
18018
18019 2020-01-10 Pedro Alves <palves@redhat.com>
18020
18021 * inferior.c (switch_to_inferior_no_thread): New function,
18022 factored out from ...
18023 (inferior_command): ... here.
18024 * inferior.h (switch_to_inferior_no_thread): Declare.
18025 * mi/mi-main.c (run_one_inferior): Use
18026 switch_to_inferior_no_thread.
18027
18028 2020-01-10 Pedro Alves <palves@redhat.com>
18029
18030 * infcmd.c (kill_command): Remove dead code.
18031
18032 2020-01-10 Pedro Alves <palves@redhat.com>
18033
18034 * remote.c (remote_target::mourn_inferior): No longer check
18035 whether the target is running.
18036
18037 2020-01-10 Pedro Alves <palves@redhat.com>
18038
18039 * corelow.c (core_target::has_execution): Change parameter type to
18040 inferior pointer.
18041 * inferior.c (number_of_live_inferiors): Use
18042 inferior::has_execution instead of target_has_execution_1.
18043 * inferior.h (inferior::has_execution): New.
18044 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18045 inferior::has_execution instead of target_has_execution_1.
18046 * process-stratum-target.c
18047 (process_stratum_target::has_execution): Change parameter type to
18048 inferior pointer. Check the inferior's PID instead of
18049 inferior_ptid.
18050 * process-stratum-target.h
18051 (process_stratum_target::has_execution): Change parameter type to
18052 inferior pointer.
18053 * record-full.c (record_full_core_target::has_execution): Change
18054 parameter type to inferior pointer.
18055 * target.c (target_has_execution_1): Change parameter type to
18056 inferior pointer.
18057 (target_has_execution_current): Adjust.
18058 * target.h (target_ops::has_execution): Change parameter type to
18059 inferior pointer.
18060 (target_has_execution_1): Change parameter type to inferior
18061 pointer. Change return type to bool.
18062 * tracefile.h (tracefile_target::has_execution): Change parameter
18063 type to inferior pointer.
18064
18065 2020-01-10 Pedro Alves <palves@redhat.com>
18066
18067 * exceptions.c (print_flush): Remove current_top_target() check.
18068
18069 2020-01-10 Pedro Alves <palves@redhat.com>
18070
18071 * remote.c (show_remote_exec_file): Show the current inferior's
18072 exec-file instead of the command variable's value.
18073
18074 2020-01-10 Pedro Alves <palves@redhat.com>
18075
18076 * record-full.c (record_full_resume_ptid): New global.
18077 (record_full_target::resume): Set it.
18078 (record_full_wait_1): Use record_full_resume_ptid instead of
18079 inferior_ptid.
18080
18081 2020-01-10 Pedro Alves <palves@redhat.com>
18082
18083 * gdbthread.h (scoped_restore_current_thread)
18084 <dont_restore, restore, m_dont_restore>: Declare.
18085 * thread.c (thread_alive): Add assertion. Return bool.
18086 (switch_to_thread_if_alive): New.
18087 (prune_threads): Switch inferior/thread.
18088 (print_thread_info_1): Switch thread before calling target methods.
18089 (scoped_restore_current_thread::restore): New, factored out from
18090 ...
18091 (scoped_restore_current_thread::~scoped_restore_current_thread):
18092 ... this.
18093 (scoped_restore_current_thread::scoped_restore_current_thread):
18094 Add assertion.
18095 (thread_apply_all_command, thread_select): Use
18096 switch_to_thread_if_alive.
18097
18098 2020-01-10 George Barrett <bob@bob131.so>
18099
18100 * stap-probe.c (stap_modify_semaphore): Don't check for null
18101 semaphores.
18102 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18103 for null semaphores.
18104
18105 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18106
18107 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18108 all source windows, and maintain horizontal scroll status while
18109 doing so.
18110
18111 2020-01-09 Tom Tromey <tom@tromey.com>
18112
18113 PR tui/18932:
18114 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18115 update_source_window, not print_source_lines.
18116
18117 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18118
18119 * tui/tui.c (tui_enable): Register tui hooks after calling
18120 tui_display_main.
18121
18122 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18123
18124 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18125
18126 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18127
18128 * thread.c (print_thread_info_1): Fix indentation.
18129
18130 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18131
18132 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18133 unique_xmalloc_ptr outside the if to always free the demangled name.
18134
18135 2020-01-08 Tom Tromey <tromey@adacore.com>
18136
18137 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18138 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18139 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18140 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18141 Remove.
18142 (section_offsets): New typedef.
18143 * symtab.c (fixup_section, get_msymbol_address): Update.
18144 * symmisc.c (dump_msymbols): Update.
18145 * symfile.h (relative_addr_info_to_section_offsets)
18146 (symfile_map_offsets_to_segments): Update.
18147 * symfile.c (build_section_addr_info_from_objfile)
18148 (init_objfile_sect_indices): Update.
18149 (struct place_section_arg): Change type of "offsets".
18150 (place_section): Update.
18151 (relative_addr_info_to_section_offsets): Change type of
18152 "section_offsets". Remove "num_sections" parameter.
18153 (default_symfile_offsets, syms_from_objfile_1)
18154 (set_objfile_default_section_offset): Update.
18155 (reread_symbols): No need to preserve section offsets by hand.
18156 (symfile_map_offsets_to_segments): Change type of "offsets".
18157 * stap-probe.c (relocate_address): Update.
18158 * stabsread.h (process_one_symbol): Update.
18159 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18160 (solib_target_relocate_section_addresses): Update.
18161 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18162 Update.
18163 * solib-frv.c (frv_relocate_main_executable): Update.
18164 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18165 * solib-aix.c (solib_aix_get_section_offsets): Change return
18166 type.
18167 (solib_aix_solib_create_inferior_hook): Update.
18168 * remote.c (remote_target::get_offsets): Update.
18169 * psymtab.c (find_pc_sect_psymtab): Update.
18170 * psympriv.h (struct partial_symbol) <address, text_low,
18171 text_high>: Update.
18172 * objfiles.h (obj_section_offset): Update.
18173 (struct objfile) <section_offsets>: Change type.
18174 <num_sections>: Remove.
18175 (objfile_relocate): Update.
18176 * objfiles.c (entry_point_address_query): Update
18177 (relocate_one_symbol): Change type of "section_offsets".
18178 (objfile_relocate1, objfile_relocate1): Change type of
18179 "new_offsets".
18180 (objfile_rebase1): Update.
18181 * mipsread.c (mipscoff_symfile_read): Update.
18182 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18183 parameter.
18184 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18185 (parse_external, psymtab_to_symtab_1): Update.
18186 * machoread.c (macho_symfile_offsets): Update.
18187 * ia64-tdep.c (ia64_find_unwind_table): Update.
18188 * hppa-tdep.c (read_unwind_info): Update.
18189 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18190 * dwarf2read.c (create_addrmap_from_index)
18191 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18192 (process_psymtab_comp_unit_reader, add_partial_symbol)
18193 (add_partial_subprogram, process_full_comp_unit)
18194 (read_file_scope, read_func_scope, read_lexical_block_scope)
18195 (read_call_site_scope, dwarf2_rnglists_process)
18196 (dwarf2_ranges_process, dwarf2_ranges_read)
18197 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18198 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18199 Update.
18200 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18201 Update.
18202 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18203 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18204 (process_one_symbol): Change type of "section_offsets".
18205 * ctfread.c (get_objfile_text_range): Update.
18206 * coffread.c (coff_symtab_read, enter_linenos)
18207 (process_coff_symbol): Update.
18208 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18209 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18210
18211 2020-01-08 Tom Tromey <tromey@adacore.com>
18212
18213 * dwarf2read.c (parse_macro_definition): Use std::string.
18214 (parse_macro_definition): Likewise.
18215
18216 2020-01-08 Tom Tromey <tromey@adacore.com>
18217
18218 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18219 (ATTR_ALLOC_CHUNK): Remove.
18220
18221 2020-01-08 Tom Tromey <tromey@adacore.com>
18222
18223 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18224
18225 2020-01-08 Tom Tromey <tromey@adacore.com>
18226
18227 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18228 (dwarf2_compute_name, open_dwo_file): Likewise.
18229 (process_enumeration_scope): Use std::vector.
18230 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18231 (partial_die_info::fixup, dwarf2_start_subfile)
18232 (guess_full_die_structure_name, dwarf2_name): Likewise.
18233 (determine_prefix): Update.
18234 (guess_full_die_structure_name): Make return type const.
18235 (partial_die_full_name): Return unique_xmalloc_ptr.
18236 (DW_FIELD_ALLOC_CHUNK): Remove.
18237
18238 2020-01-07 Tom Tromey <tromey@adacore.com>
18239
18240 PR build/24937:
18241 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18242
18243 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18244
18245 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18246
18247 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18248
18249 * stack.c (print_frame_info): Move disassemble_next_line code
18250 inside source_print block.
18251
18252 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18253
18254 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18255 gdb/signals.h, as we are now using native signal symbols.
18256
18257 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18258
18259 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18260 overflow by an early check of content vs threshold.
18261 * tui/tui-source.c (tui_source_window::line_is_displayed):
18262 Likewise.
18263
18264 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18265
18266 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18267
18268 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18269
18270 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18271 export table if no section contains it's RVA.
18272
18273 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18274
18275 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18276
18277 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18278
18279 * source.c (print_source_lines_base): Set last_line_listed.
18280
18281 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18282
18283 * tui/tui-disasm.c: Remove trailing spaces.
18284
18285 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18286 Pedro Alves <palves@redhat.com>
18287
18288 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18289 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18290 (windows_gdb_signal_to_target): New function, uses the above
18291 enumeration to convert GDB internal signal codes to equivalent
18292 Windows codes.
18293 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18294 * windows-nat.c: Include "gdb_wait.h".
18295 (get_windows_debug_event): Extract the fatal exception from the
18296 exit status and convert to the equivalent Posix signal number.
18297 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18298 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18299 * gdbsupport/gdb_wait.c: New file, implements
18300 windows_status_to_termsig.
18301 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18302 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18303
18304 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18305
18306 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18307 show_layout.
18308
18309 2020-01-05 Luis Machado <luis.machado@linaro.org>
18310
18311 * aarch64-linux-nat.c
18312 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18313 and bfd_mach_aarch64.
18314
18315 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18316
18317 * ui-file.c (stdio_file::can_emit_style_escape)
18318 (tee_file::can_emit_style_escape): Ensure style is used also on
18319 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18320 to gdb_stdout.
18321 * main.c (set_gdb_data_directory): Use file style to output the
18322 warning that the given pathname is not a directory.
18323 * top.c (show_history_filename, gdb_safe_append_history)
18324 (show_gdb_datadir): Use file style.
18325
18326 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18327
18328 * solib-target.c (struct lm_info_target):
18329 Change offsets to be a unique_xmalloc_ptr.
18330 (solib_target_relocate_section_addresses): Update.
18331
18332 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18333
18334 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18335
18336 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18337
18338 * MAINTAINERS (Write After Approval): Add myself.
18339
18340 2020-01-02 Luis Machado <luis.machado@linaro.org>
18341
18342 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18343 Cell BE architecture.
18344 * target.h (struct target_ops) <thread_architecture>: Likewise.
18345
18346 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18347
18348 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18349
18350 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18351
18352 * MAINTAINERS (Write After Approval): Add myself.
18353
18354 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18355
18356 * gdbarch.sh: Update copyright year range of generated files.
18357
18358 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18359
18360 Update copyright year range in all GDB files.
18361
18362 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18363
18364 * copyright.py: Convert to Python 3.
18365
18366 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18367
18368 * copyright.py: Adapt after move of gnulib directory from gdb
18369 directory to toplevel directory.
18370
18371 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18372
18373 * copyright.py (main): Exit if run from the wrong directory.
18374
18375 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18376
18377 * top.c (print_gdb_version): Change copyright year to 2020.
18378
18379 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18380
18381 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18382
18383 For older changes see ChangeLog-2019.
18384 \f
18385 Local Variables:
18386 mode: change-log
18387 left-margin: 8
18388 fill-column: 74
18389 version-control: never
18390 coding: utf-8
18391 End:
This page took 0.37578 seconds and 5 git commands to generate.