Do not manually dissect OP_TYPE operations
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-14 Tom Tromey <tom@tromey.com>
2
3 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
4 * typeprint.c (whatis_exp): Always use evaluate_type.
5 (maintenance_print_type): Likewise. Simplify.
6
7 2020-12-14 Tom Tromey <tromey@adacore.com>
8
9 * dictionary.c (language_defn::search_name_hash): Ignore "B".
10 * ada-lang.c (advance_wild_match): Ignore "B".
11 (full_match): Remove.
12 (do_full_match): Rewrite.
13
14 2020-12-14 Tom Tromey <tromey@adacore.com>
15
16 * ada-lang.c (get_var_value): Only consider exact matches.
17
18 2020-12-14 Tom Tromey <tromey@adacore.com>
19
20 * dwarf2/read.c (rewrite_array_type): New function.
21 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
22
23 2020-12-14 Tom Tromey <tromey@adacore.com>
24
25 * valarith.c (fixed_point_binop): Call error on division by zero.
26
27 2020-12-13 Tom Tromey <tom@tromey.com>
28
29 * gdbtypes.c (safe_parse_type): Make argument const.
30 * value.h (parse_and_eval_type): Make argument const.
31 * eval.c (parse_and_eval_type): Make argument const.
32
33 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * NEWS: Mention new commands.
36 * target-dcache.c: Add 'cli/cli-cmds.h' include.
37 (maint_flush_dcache_command): New function.
38 (_initialize_target_dcache): Create new 'maint flush dcache'
39 command.
40
41 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * NEWS: Mention new commands, and that the old commands are now
44 deprecated.
45 * cli/cli-cmds.c (maintenanceflushlist): Define.
46 * cli/cli-cmds.h (maintenanceflushlist): Declare.
47 * maint.c (_initialize_maint_cmds): Initialise
48 maintenanceflushlist.
49 * regcache.c: Add 'cli/cli-cmds.h' include.
50 (reg_flush_command): Add header comment.
51 (_initialize_regcache): Create new 'maint flush register-cache'
52 command, make 'flushregs' an alias.
53 * symtab.c: Add 'cli/cli-cmds.h' include.
54 (_initialize_symtab): Create new 'maint flush symbol-cache'
55 command, make old command an alias.
56
57 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
60 result from lookup_cmd_composition_1, use the prefixes from both
61 the command and the alias instead.
62 (lookup_cmd_composition_1): Initial prefix command is the based on
63 the search list being passed in. Simplify the logic for tracking
64 the prefix command. Replace a use of alloca with a local
65 std::string.
66
67 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
70 of NULL. Don't print message piece by piece, but sentence at a
71 time to allow internationalisation. Some whitespace cleanup.
72
73 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 PR cli/15104
76 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
77 deprecated_cmd_warning.
78 (deprecated_cmd_warning): Take extra parameter, call
79 lookup_cmd_composition_1 and pass new parameter through.
80 (lookup_cmd_composition_1): New function, takes implementation of
81 lookup_cmd_composition but with extra parameter.
82 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
83 passing in cmdlist.
84 * command.h (deprecated_cmd_warning): Add extra parameter to
85 declaration.
86 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
87
88 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
91 command.h, add extra parameter, and use this to guard giving a
92 warning.
93 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
94 include argument names in declaration, add new argument.
95 * completer.c (complete_line_internal_1): Remove unneeded
96 brackets, pass extra argument to lookup_cmd_1.
97
98 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * infrun.h (debug_infrun): Make a bool.
101 * infrun.c (debug_infrun): Make a bool.
102 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
103 debug infrun".
104
105 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * displaced-stepping.h (displaced_debug_printf): Use
108 debug_prefixed_printf_cond.
109 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
110 (dwarf_read_debug_printf_v): Likewise.
111 * infrun.h (infrun_debug_printf): Likewise.
112 * linux-nat.c (linux_nat_debug_printf): Likewise.
113
114 2020-12-11 Tom Tromey <tom@tromey.com>
115
116 * p-exp.y (intvar): Remove global.
117 (DOLLAR_VARIABLE): Change type.
118 (start): Update.
119 (exp): Call write_dollar_variable here...
120 (yylex): ... not here.
121 * m2-exp.y (DOLLAR_VARIABLE): Change type.
122 (variable): Call write_dollar_variable here...
123 (yylex): ... not here.
124 * f-exp.y (DOLLAR_VARIABLE): Change type.
125 (exp): Call write_dollar_variable here...
126 (yylex): ... not here.
127
128 2020-12-11 Tom Tromey <tom@tromey.com>
129
130 * varobj.c (varobj_create): Update.
131 (install_variable): Return void.
132
133 2020-12-11 Tom Tromey <tom@tromey.com>
134
135 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
136
137 2020-12-11 Tom Tromey <tom@tromey.com>
138
139 * varobj.c (varobj_clear_saved_item): Remove.
140 (update_dynamic_varobj_children): Update.
141 (varobj::~varobj): Don't call varobj_clear_saved_item.
142
143 2020-12-11 Tom Tromey <tom@tromey.com>
144
145 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
146 (update_dynamic_varobj_children, create_child)
147 (create_child_with_value): Update.
148 * varobj-iter.h (struct varobj_item) <value>: Now a
149 value_ref_ptr.
150 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
151
152 2020-12-11 Tom Tromey <tom@tromey.com>
153
154 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
155 (varobj_get_iterator): Return unique_ptr.
156 (update_dynamic_varobj_children, install_visualizer)
157 (varobj::~varobj): Update.
158 * python/python-internal.h (py_varobj_get_iterator): Return
159 unique_ptr.
160 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
161
162 2020-12-11 Tom Tromey <tom@tromey.com>
163
164 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
165 (varobj_clear_saved_item, update_dynamic_varobj_children):
166 Update.
167
168 2020-12-11 Tom Tromey <tom@tromey.com>
169
170 * varobj.c (update_dynamic_varobj_children): Update.
171 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
172 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
173 type.
174 (py_varobj_iter::next): Likewise.
175
176 2020-12-11 Tom Tromey <tom@tromey.com>
177
178 * varobj.c (update_dynamic_varobj_children, install_visualizer)
179 (varobj::~varobj): Update.
180 * varobj-iter.h (struct varobj_iter): Change to interface class.
181 (struct varobj_iter_ops): Remove.
182 (varobj_iter_next, varobj_iter_delete): Remove.
183 * python/py-varobj.c (struct py_varobj_iter): Derive from
184 varobj_iter. Add constructor, destructor. Rename members.
185 (py_varobj_iter::~py_varobj_iter): Rename from
186 py_varobj_iter_dtor.
187 (py_varobj_iter::next): Rename from py_varobj_iter_next.
188 (py_varobj_iter_ops): Remove.
189 (py_varobj_iter): Rename from py_varobj_iter_ctor.
190 (py_varobj_iter_new): Remove.
191 (py_varobj_get_iterator): Update.
192
193 2020-12-11 Tom Tromey <tom@tromey.com>
194
195 * varobj.h (all_root_varobjs): Take a function_view.
196 * varobj.c (all_root_varobjs): Take a function_view.
197 (varobj_invalidate_iter): Remove unused parameter.
198 (varobj_invalidate): Update.
199 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
200 (mi_cmd_var_update_iter): Change parameters.
201
202 2020-12-11 Tom Tromey <tom@tromey.com>
203
204 * varobj.c (struct varobj_root) <next>: Remove.
205 (struct vlist): Remove.
206 (rootlist): Now a std::list.
207 (install_variable, uninstall_variable, all_root_varobjs): Update.
208
209 2020-12-11 Tom Tromey <tom@tromey.com>
210
211 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
212 (varobj_table): Now htab_t.
213 (varobj_get_handle, install_variable, uninstall_variable):
214 Update.
215 (hash_varobj, eq_varobj_and_string): New functions.
216 (hash_varobj): Update.
217
218 2020-12-11 Tom Tromey <tom@tromey.com>
219
220 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
221 * ada-lang.c (check_status_exception): Update.
222 * breakpoint.c (free_bp_location): Remove.
223 (decref_bp_location): Use bp_location_ref_policy.
224 (bpstats::bpstats): Don't call incref_bp_location.
225 (bpstats::~bpstats): Remove.
226 (bpstats::bpstats): Update.
227 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
228 (bp_location::bp_location): Update.
229 (incref_bp_location): Remove.
230 (bkpt_print_it): Update.
231 * breakpoint.h (class bp_location): Derive from
232 refcounted_object.
233 (struct bpstats): Remove destructor.
234 <bp_location_at>: Now a bp_location_ref_ptr.
235 <refc>: Remove.
236 (bp_location_ref_ptr): New typedef.
237 (struct bp_location_ref_policy): New.
238
239 2020-12-11 Tom Tromey <tom@tromey.com>
240
241 * thread.c (class scoped_inc_dec_ref): Remove.
242 (tp_array_compar_ascending, tp_array_compar_descending): Change
243 parameter types.
244 (thread_apply_all_command): Use thread_info_ref.
245
246 2020-12-11 Tom Tromey <tom@tromey.com>
247
248 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
249 (stop_context::stop_context): Update.
250 (stop_context::~stop_context): Remove.
251
252 2020-12-11 Tom Tromey <tom@tromey.com>
253
254 * inferior.c (current_inferior_): Change type.
255 (current_inferior, set_current_inferior, initialize_inferiors):
256 Update.
257
258 2020-12-11 Tom Tromey <tom@tromey.com>
259
260 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
261 Change type.
262
263 2020-12-11 Tom Tromey <tromey@adacore.com>
264
265 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
266 field.
267 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
268 (read_atcb): Use cpu_id_offset.
269
270 2020-12-10 Kevin Buettner <kevinb@redhat.com>
271
272 * ada-lang.c (ada_fold_name): Fix off-by-one error.
273
274 2020-12-10 Luis Machado <luis.machado@linaro.org>
275
276 * breakpoint.c (should_be_inserted): Don't output newline.
277
278 2020-12-10 Luis Machado <luis.machado@linaro.org>
279
280 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
281 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
282 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
283 * arch/aarch64.h: ... here.
284 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
285 (aarch64_maybe_swab128): New function.
286 (aarch64_sve_regs_copy_to_reg_buf)
287 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
288 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
289 the data field.
290 (TF_REG_VALUE_BYTES): New enum value.
291 (trad_frame_value_bytes_p): New function.
292 (trad_frame_set_value_bytes): New function.
293 (trad_frame_set_reg_value_bytes): New function.
294 (trad_frame_get_prev_register): Handle register values saved as bytes.
295 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
296 (struct trad_frame_saved_reg) <data>: New field.
297 (trad_frame_set_value_bytes): New prototype.
298 (trad_frame_value_bytes_p): New prototype.
299
300 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
301
302 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
303 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
304 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
305
306 2020-12-09 Tom Tromey <tromey@adacore.com>
307
308 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
309
310 2020-12-09 Tom Tromey <tromey@adacore.com>
311
312 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
313 and "denominator" to gdb_mpz. Handle block forms.
314 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
315 "denominator" to gdb_mpz.
316 (finish_fixed_point_type): Update.
317 (has_zero_over_zero_small_attribute): Update.
318
319 2020-12-09 Tom Tromey <tromey@adacore.com>
320
321 * expprint.c (op_name): Update.
322 * expression.h (enum exp_opcode): Update.
323 * std-operator.def: Add more opcodes.
324 * ada-operator.def, fortran-operator.def: Remove, moving contents
325 into std-operator.def.
326
327 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
330 Return {} instead of false.
331 (get_discrete_bounds): Compute high bound only if low bound is
332 valid.
333
334 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
335
336 PR 26875, PR 26901
337 * gdbtypes.c (get_discrete_low_bound): Make non-static.
338 (get_discrete_high_bound): Make non-static.
339 * gdbtypes.h (get_discrete_low_bound): New declaration.
340 (get_discrete_high_bound): New declaration.
341 * valarith.c (value_subscript): Only fetch high bound if
342 necessary.
343
344 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
345
346 * gdbtypes.c (get_discrete_bounds): Implement with
347 get_discrete_low_bound and get_discrete_high_bound.
348 (get_discrete_low_bound): New.
349 (get_discrete_high_bound): New.
350
351 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
352
353 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
354 callers.
355 * gdbtypes.c (get_discrete_bounds): Return bool.
356
357 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
358
359 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
360 (ada_value_slice): Adjust.
361 (pos_atr): Adjust.
362 * gdbtypes.c (get_discrete_bounds): Adjust.
363 (discrete_position): Return optional.
364 * gdbtypes.h (discrete_position): Return optional.
365
366 2020-12-07 Tom Tromey <tromey@adacore.com>
367
368 * maint.c (_initialize_maint_cmds): Use expression command
369 completer for "maint print type".
370
371 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
372
373 * completer.c (complete_explicit_location): Also add keywords
374 that start with '-' to the completion list.
375
376 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377
378 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
379 keyword may be followed by any keyword.
380 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
381 'toklen' in the case for "-force-condition".
382
383 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
384
385 * main.c (catch_command_errors): Add a flag parameter; invoke
386 `bpstat_do_actions` if the flag is set.
387 (execute_cmdargs): Update a call to `catch_command_errors`.
388
389 2020-12-07 Tom de Vries <tdevries@suse.de>
390
391 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
392
393 2020-12-06 Tom Tromey <tom@tromey.com>
394
395 PR ada/26999
396 * ada-lang.c (replace_operator_with_call): Rewrite.
397
398 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
399
400 PR breakpoints/27009
401 * s390-tdep.h (op_bc): Correct BC opcode value.
402
403 2020-12-06 Joel Brobecker <brobecker@adacore.com>
404
405 * gmp-utils.h (gdb_mpz::safe_export): New private method.
406 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
407 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
408 (gdb_mpz::safe_export): New method.
409 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
410 Update function description.
411 (check_as_integer_raises_out_of_range_error): New function.
412 (gdb_mpz_as_integer_out_of_range): New function.
413 (_initialize_gmp_utils_selftests): Register
414 gdb_mpz_as_integer_out_of_range as a selftest.
415
416 2020-12-05 Joel Brobecker <brobecker@adacore.com>
417
418 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
419 TARGET_CHAR_BIT.
420 (gdb_mpz::write): Likewise.
421
422 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
423
424 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
425 number of displaced step buffers.
426
427 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
428
429 * displaced-stepping.h (struct displaced_step_buffer): Rename
430 to...
431 (struct displaced_step_buffers): ... this.
432 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
433 <struct displaced_step_buffer>: New inner class.
434 <m_buffers>: New.
435 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
436 to...
437 (displaced_step_buffers::prepare): ... this, adjust for multiple
438 buffers.
439 (displaced_step_buffer::finish): Rename to...
440 (displaced_step_buffers::finish): ... this, adjust for multiple
441 buffers.
442 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
443 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
444 adjust for multiple buffers.
445 (displaced_step_buffer::restore_in_ptid): Rename to...
446 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
447 multiple buffers.
448 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
449 for num_disp_step_buffers.
450 * linux-tdep.c (struct linux_gdbarch_data)
451 <num_disp_step_buffers>: New field.
452 (struct linux_info) <disp_step_buf>: Rename to...
453 <disp_step_bufs>: ... this, change type to
454 displaced_step_buffers.
455 (linux_displaced_step_prepare): Use
456 linux_gdbarch_data::num_disp_step_buffers to create that number
457 of buffers.
458 (linux_displaced_step_finish): Adjust.
459 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
460 (linux_displaced_step_restore_all_in_ptid): Adjust.
461 (linux_init_abi): Change supports_displaced_step parameter for
462 num_disp_step_buffers, save it in linux_gdbarch_data.
463 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
464 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
465 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
466 supports_displaced_step parameter for num_disp_step_buffers.
467 (amd64_linux_init_abi): Adjust.
468 (amd64_x32_linux_init_abi): Adjust.
469 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
470 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
471 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
472 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
473 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
474 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
475 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
476 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
477 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
478 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
479 * m68k-linux-tdep.c (m68k_linux_init_abi):
480 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
481 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
482 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
483 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
484 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
485 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
486 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
487 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
488 Change type to displaced_step_buffers.
489 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
490 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
491 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
492 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
493 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
494 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
495 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
496
497 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
498
499 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
500 obkstack.
501 (_initialize_linux_tdep): Register pre-init gdb data instead of
502 post-init.
503
504 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
505
506 * displaced-stepping.h (struct
507 displaced_step_copy_insn_closure): Adjust comments.
508 (struct displaced_step_inferior_state) <step_thread,
509 step_gdbarch, step_closure, step_original, step_copy,
510 step_saved_copy>: Remove fields.
511 (struct displaced_step_thread_state): New.
512 (struct displaced_step_buffer): New.
513 * displaced-stepping.c (displaced_step_buffer::prepare): New.
514 (write_memory_ptid): Move from infrun.c.
515 (displaced_step_instruction_executed_successfully): New,
516 factored out of displaced_step_finish.
517 (displaced_step_buffer::finish): New.
518 (displaced_step_buffer::copy_insn_closure_by_addr): New.
519 (displaced_step_buffer::restore_in_ptid): New.
520 * gdbarch.sh (displaced_step_location): Remove.
521 (displaced_step_prepare, displaced_step_finish,
522 displaced_step_copy_insn_closure_by_addr,
523 displaced_step_restore_all_in_ptid): New.
524 * gdbarch.c: Re-generate.
525 * gdbarch.h: Re-generate.
526 * gdbthread.h (class thread_info) <displaced_step_state>: New
527 field.
528 (thread_step_over_chain_remove): New declaration.
529 (thread_step_over_chain_next): New declaration.
530 (thread_step_over_chain_length): New declaration.
531 * thread.c (thread_step_over_chain_remove): Make non-static.
532 (thread_step_over_chain_next): New.
533 (global_thread_step_over_chain_next): Use
534 thread_step_over_chain_next.
535 (thread_step_over_chain_length): New.
536 (global_thread_step_over_chain_enqueue): Add debug print.
537 (global_thread_step_over_chain_remove): Add debug print.
538 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
539 Remove.
540 * infrun.c (get_displaced_stepping_state): New.
541 (displaced_step_in_progress_any_inferior): Remove.
542 (displaced_step_in_progress_thread): Adjust.
543 (displaced_step_in_progress): Adjust.
544 (displaced_step_in_progress_any_thread): New.
545 (get_displaced_step_copy_insn_closure_by_addr): Remove.
546 (gdbarch_supports_displaced_stepping): Use
547 gdbarch_displaced_step_prepare_p.
548 (displaced_step_reset): Change parameter from inferior to
549 thread.
550 (displaced_step_prepare_throw): Implement using
551 gdbarch_displaced_step_prepare.
552 (write_memory_ptid): Move to displaced-step.c.
553 (displaced_step_restore): Remove.
554 (displaced_step_finish): Implement using
555 gdbarch_displaced_step_finish.
556 (start_step_over): Allow starting more than one displaced step.
557 (prepare_for_detach): Handle possibly multiple threads doing
558 displaced steps.
559 (handle_inferior_event): Handle possibility that fork event
560 happens while another thread displaced steps.
561 * linux-tdep.h (linux_displaced_step_prepare): New.
562 (linux_displaced_step_finish): New.
563 (linux_displaced_step_copy_insn_closure_by_addr): New.
564 (linux_displaced_step_restore_all_in_ptid): New.
565 (linux_init_abi): Add supports_displaced_step parameter.
566 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
567 (linux_displaced_step_prepare): New.
568 (linux_displaced_step_finish): New.
569 (linux_displaced_step_copy_insn_closure_by_addr): New.
570 (linux_displaced_step_restore_all_in_ptid): New.
571 (linux_init_abi): Add supports_displaced_step parameter,
572 register displaced step methods if true.
573 (_initialize_linux_tdep): Register inferior_execd observer.
574 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
575 supports_displaced_step parameter, adjust call to
576 linux_init_abi. Remove call to
577 set_gdbarch_displaced_step_location.
578 (amd64_linux_init_abi): Adjust call to
579 amd64_linux_init_abi_common.
580 (amd64_x32_linux_init_abi): Likewise.
581 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
582 linux_init_abi. Remove call to
583 set_gdbarch_displaced_step_location.
584 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
585 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
586 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
587 linux_init_abi.
588 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
589 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
590 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
591 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
592 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
593 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
594 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
595 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
596 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
597 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
598 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
599 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
600 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
601 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
602 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
603 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
604 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
605 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
606 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
607 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
608 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
609 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
610 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
611 linux_init_abi. Remove call to
612 set_gdbarch_displaced_step_location.
613 * arm-tdep.c (arm_pc_is_thumb): Call
614 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
615 get_displaced_step_copy_insn_closure_by_addr.
616 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
617 clear gdbarch methods.
618 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
619 (get_ppc_per_inferior): New function.
620 (ppc_displaced_step_prepare): New function.
621 (ppc_displaced_step_finish): New function.
622 (ppc_displaced_step_restore_all_in_ptid): New function.
623 (rs6000_gdbarch_init): Register new gdbarch methods.
624 * s390-tdep.c (s390_gdbarch_init): Don't call
625 set_gdbarch_displaced_step_location, set new gdbarch methods.
626
627 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
628
629 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
630 * aarch64-tdep.h: Include displaced-stepping.h.
631 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
632 Move here.
633 (displaced_step_copy_insn_closure_up): Move here.
634 (struct buf_displaced_step_copy_insn_closure): Move here.
635 (struct displaced_step_inferior_state): Move here.
636 (debug_displaced): Move here.
637 (displaced_debug_printf_1): Move here.
638 (displaced_debug_printf): Move here.
639 * displaced-stepping.c: New file.
640 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
641 * gdbarch.h: Re-generate.
642 * inferior.h: Include displaced-stepping.h.
643 * infrun.h (debug_displaced): Move to displaced-stepping.h.
644 (displaced_debug_printf_1): Likewise.
645 (displaced_debug_printf): Likewise.
646 (struct displaced_step_copy_insn_closure): Likewise.
647 (displaced_step_copy_insn_closure_up): Likewise.
648 (struct buf_displaced_step_copy_insn_closure): Likewise.
649 (struct displaced_step_inferior_state): Likewise.
650 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
651 (displaced_debug_printf_1): Likewise.
652 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
653 Likewise.
654 (_initialize_infrun): Don't register "set/show debug displaced".
655
656 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
657
658 * linux-tdep.c (get_linux_inferior_data): Add inferior
659 parameter.
660 (linux_vsyscall_range): Pass current inferior.
661
662 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
663
664 * infrun.c (displaced_step_prepare_throw): Change return type to
665 displaced_step_prepare_status.
666 (displaced_step_prepare): Likewise.
667 (displaced_step_finish): Change return type to
668 displaced_step_finish_status.
669 (resume_1): Adjust.
670 (stop_all_threads): Adjust.
671 * displaced-stepping.h: New file.
672
673 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
674
675 * infrun.c (displaced_step_fixup): Rename to...
676 (displaced_step_finish): ... this, update all callers.
677
678 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
679
680 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
681 (get_displaced_step_copy_insn_closure_by_addr): ... this.
682 Update all users.
683 (displaced_step_closure): Rename to...
684 (displaced_step_copy_insn_closure): ... this. Update all users.
685 (displaced_step_closure_up): Rename to...
686 (displaced_step_copy_insn_closure_up). ... this. Update all
687 users.
688 (buf_displaced_step_closure): Rename to...
689 (buf_displaced_step_copy_insn_closure): ... this. Update all
690 users.
691 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
692 (get_displaced_step_copy_insn_closure_by_addr): ... this.
693 Update all users.
694 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
695 (aarch64_displaced_step_copy_insn_closure): ... this. Update
696 all users.
697 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
698 (amd64_displaced_step_copy_insn_closure): ... this. Update all
699 users.
700 * arm-tdep.h (arm_displaced_step_closure): Rename to...
701 (arm_displaced_step_copy_insn_closure): ... this. Update all
702 users.
703 * i386-tdep.h (i386_displaced_step_closure): Rename to...
704 (i386_displaced_step_copy_insn_closure): ... this. Update all
705 users.
706 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
707 (ppc_displaced_step_copy_insn_closure): ... this. Update all
708 users.
709 * s390-tdep.c (s390_displaced_step_closure): Rename to...
710 (s390_displaced_step_copy_insn_closure): ... this. Update all
711 users.
712 * gdbarch.h: Re-generate.
713 * gdbarch.c: Re-generate.
714
715 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
716
717 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
718 (global_thread_step_over_chain_enqueue): ... this. Update all
719 users.
720 (thread_step_over_chain_remove): Rename to...
721 (global_thread_step_over_chain_remove): ... this. Update all
722 users.
723 (thread_step_over_chain_next): Rename to...
724 (global_thread_step_over_chain_next): ... this. Update all
725 users.
726 * infrun.h (step_over_queue_head): Rename to...
727 (global_thread_step_over_chain_head): ... this. Update all
728 users.
729 * infrun.c (step_over_queue_head): Rename to...
730 (global_thread_step_over_chain_head): ... this. Update all
731 users.
732 * thread.c (step_over_chain_remove): Rename to...
733 (thread_step_over_chain_remove): ... this. Update all users.
734 (thread_step_over_chain_next): Rename to...
735 (global_thread_step_over_chain_next): ... this. Update all
736 users.
737 (thread_step_over_chain_enqueue): Rename to...
738 (global_thread_step_over_chain_enqueue): ... this. Update all
739 users.
740 (thread_step_over_chain_remove): Rename to...
741 (global_thread_step_over_chain_remove): ... this. Update all
742 users.
743
744 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * infrun.c (get_displaced_stepping_state): Remove, change
747 callers to access the field directly.
748
749 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * infrun.c (handle_inferior_event): Restore displaced step
752 buffer bytes in child process when handling fork, even if fork
753 happened in another thread than the displaced-stepping one.
754
755 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
756
757 * infrun.c (infrun_inferior_execd): New function.
758 (_initialize_infrun): Attach inferior_execd observer.
759
760 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
761
762 * observable.h (inferior_execd): Declare new observable.
763 * observable.c (inferior_execd): Declare new observable.
764 * infrun.c (follow_exec): Notify inferior_execd observer.
765 * jit.c (jit_inferior_created_hook): Make static.
766 (_initialize_jit): Register inferior_execd observer.
767 * jit.h (jit_inferior_created_hook): Remove declaration.
768 * solib.c (_initialize_solib): Register inferior_execd observer.
769
770 2020-12-04 Tom de Vries <tdevries@suse.de>
771
772 PR gdb/27003
773 * completer.c (completion_tracker::build_completion_result): Don't
774 access match_list[0][-1].
775
776 2020-12-04 Tom Tromey <tromey@adacore.com>
777
778 * linespec.c (struct linespec_token): Rename; remove typedef.
779 * guile/scm-block.c (struct block_smob): Remove typedef.
780 (struct block_syms_progress_smob): Likewise.
781 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
782 * guile/scm-symtab.c (symtab_smob): Remove typedef.
783 (struct sal_smob): Remove typedef.
784 * guile/scm-param.c (struct param_smob): Remove typedef.
785 * guile/scm-progspace.c (struct pspace_smob): Rename.
786 * guile/scm-objfile.c (struct objfile_smob): Rename.
787 * guile/scm-iterator.c (struct iterator_smob): Rename.
788 * guile/scm-frame.c (struct frame_smob): Rename.
789 * guile/scm-arch.c (struct arch_smob): Rename.
790 * guile/scm-type.c (struct field_smob): Remove typedef.
791 (struct type_smob): Rename.
792 * guile/scm-cmd.c (struct command_smob): Remove typedef.
793 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
794 * guile/scm-value.c (struct value_smob): Remove typedef.
795 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
796 * guile/guile-internal.h (struct scheme_variable)
797 (struct scheme_function, struct scheme_integer_constant)
798 (struct gdb_smob, struct chained_gdb_smob)
799 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
800 (objfile_smob, pspace_smob, type_smob): Remove typedef.
801 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
802 (struct pretty_printer_worker_smob): Remove typedef.
803 * guile/scm-exception.c (struct exception_smob): Remove typedef.
804 * python/py-block.c (struct block_object): Remove typedef.
805 (block_syms_iterator_object): Update.
806 (set_block): Update.
807 (block_syms_iterator_object): Remove typedef.
808 * python/py-inferior.c (struct membuf_object): Remove typedef.
809 * python/py-symtab.c (struct symtab_object): Remove typedef.
810 (set_symtab): Update.
811 (sal_object): Remove typedef.
812 (set_sal): Update.
813 * python/py-frame.c (frame_object): Remove typedef.
814 * python/py-record-btrace.c (struct btpy_list_object): Remove
815 typedef.
816 * python/py-arch.c (struct arch_object): Remove typedef.
817 * python/py-linetable.c (struct linetable_entry_object)
818 (linetable_object, struct ltpy_iterator_object): Remove typedef.
819 * python/py-events.h (eventregistry_object): Remove typedef.
820 (struct events_object): Remove typedef.
821 * python/python-internal.h (gdbpy_breakpoint_object): Remove
822 typedef.
823 (thread_object): Remove typedef.
824 * python/py-progspace.c (pspace_object): Remove typedef.
825 * python/py-value.c (struct value_object): Remove typedef.
826 * python/py-record.h (recpy_record_object): Remove typedef.
827 (struct recpy_element_object): Remove typedef.
828 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
829 * python/py-objfile.c (objfile_object): Remove typedef.
830 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
831 * python/py-type.c (type_object): Remove typedef.
832 (typy_iterator_object): Update.
833 (set_type): Update.
834 (field_object): Remove typedef.
835 (typy_iterator_object): Remove typedef.
836 * python/py-registers.c (register_descriptor_iterator_object):
837 Remove typedef.
838 (struct register_descriptor_object)
839 (struct reggroup_iterator_object, struct reggroup_object): Remove
840 typedef.
841 * python/py-record.c (recpy_gap_object): Remove typedef.
842 * python/py-symbol.c (symbol_object): Remove typedef.
843 (set_symbol): Update.
844 * python/py-event.h (event_object): Remove typedef.
845 * python/py-param.c (parmpy_object): Remove typedef.
846 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
847 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
848 (unwind_info_object, struct cached_frame_info): Likewise.
849
850 2020-12-04 Tom Tromey <tromey@adacore.com>
851
852 * value.c (value_internal_function_name): Make return type const.
853 * value.h (value_internal_function_name): Make return type const.
854
855 2020-12-04 Luis Machado <luis.machado@linaro.org>
856
857 * aarch64-tdep.c (submask, bit, bits): Remove.
858 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
859 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
860 (aarch64_decode_cb, aarch64_decode_tb)
861 (aarch64_decode_ldr_literal): Use sbits to extract a signed
862 immediate.
863 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
864
865 2020-12-04 Tom de Vries <tdevries@suse.de>
866
867 PR tdep/27007
868 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
869
870 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
871
872 PR gdb/26876
873 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
874 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
875
876 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
877
878 * arch/riscv.c: Include 'rv32e-xregs.c'.
879 (riscv_create_target_description): Update to handle rv32e.
880 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
881 member variable.
882 <operator==>: Update to account for new field.
883 <hash>: Likewise.
884 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
885 * features/riscv/rv32e-xregs.c: Generated.
886 * features/riscv/rv32e-xregs.xml: New file.
887 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
888 file.
889 (riscv_debug_infcall): Likewise.
890 (riscv_debug_unwinder): Likewise.
891 (riscv_debug_gdbarch): Likewise.
892 (enum riscv_register_required_status): Delete.
893 (struct riscv_register_feature): Add constructor, delete default
894 constructor, copy, and assign constructors.
895 (struct riscv_register_feature::register_info) <required>: Delete.
896 <check>: Update comment and arguments.
897 (struct riscv_register_feature) <name>: Change to member function.
898 <prefer_first_name>: Delete.
899 <tdesc_feature>: New member function.
900 <registers>: Rename to...
901 <m_registers>: ...this.
902 <m_feature_name>: New member variable.
903 (riscv_register_feature::register_info::check): Update arguments.
904 (riscv_xreg_feature): Rewrite as class, create a single static
905 instance of the class.
906 (riscv_freg_feature): Likewise.
907 (riscv_virtual_feature): Likewise.
908 (riscv_csr_feature): Likewise.
909 (riscv_create_csr_aliases): Has become a member function inside
910 riscv_csr_feature class.
911 (riscv_abi_embedded): New function definition.
912 (riscv_register_name): Adjust to use new feature objects.
913 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
914 and adjust available argument registers.
915 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
916 (riscv_check_tdesc_feature): Delete.
917 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
918 (riscv_gdbarch_init): Delete target description checking code, and
919 instead call to the new feature objects to perform the checks.
920 Reorder handling of no abi information case, allows small code
921 simplification.
922 (_initialize_riscv_tdep): Remove call, this is now done in the
923 riscv_csr_feature constructor.
924 * riscv-tdep.h (riscv_abi_embedded): Declare.
925
926 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
929 DECLARE_CSR_ALIAS.
930
931 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * riscv-tdep.c (riscv_is_unknown_csr): New function,
934 implementation moved from riscv_register_reggroup_p.
935 (riscv_register_reggroup_p): Update group handling for unknown
936 CSRs.
937
938 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
939
940 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
941 (dwarf2_get_dwz_file): Convert 'filename' to a
942 std::string. Use dwz_search_other_debugdirs to search for DWZ
943 files in the debug-file-directories provided by the user as well.
944
945 2020-12-01 Tom Tromey <tom@tromey.com>
946
947 * parse.c (expr_builder::expr_builder): Initialize expout.
948 (expr_builder::release): Use expression::resize.
949 (expression::expression, expression::~expression)
950 (expression::resize): New methods.
951 (write_exp_elt): Use expression::resize.
952 (prefixify_expression): Update.
953 (increase_expout_size): Use expression::resize.
954 * expression.h (struct expression): Add constructor, destructor.
955 <resize>: New method.
956 (expression_up): Change type.
957
958 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
959 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
960 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
961 set region.
962
963 2020-11-30 Tom de Vries <tdevries@suse.de>
964
965 PR symtab/26905
966 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
967 is_reference parameter.
968 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
969
970 2020-11-30 Tom Tromey <tom@tromey.com>
971
972 * rust-lang.c (rust_op_name): Remove.
973 (exp_descriptor_rust): Update.
974 * parser-defs.h (op_name_standard): Don't declare.
975 (struct exp_descriptor) <op_name>: Remove.
976 * parse.c (exp_descriptor_standard): Update.
977 * opencl-lang.c (exp_descriptor_opencl): Update.
978 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
979 * f-lang.c (op_name_f): Remove.
980 (f_language::exp_descriptor_tab): Update.
981 * expression.h (op_name): Update.
982 * expprint.c (op_name): Rewrite.
983 (op_name_standard): Remove.
984 (dump_raw_expression, dump_subexp): Update.
985 * c-lang.c (exp_descriptor_c): Update.
986 * ax-gdb.c (gen_expr): Update.
987 * ada-lang.c (ada_op_name): Remove.
988 (ada_exp_descriptor): Update.
989
990 2020-11-30 Tom Tromey <tom@tromey.com>
991
992 * eval.c (init_array_element): Remove.
993 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
994
995 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
996
997 PR tui/26973
998 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
999 static locator win info.
1000
1001 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1002
1003 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1004 program.
1005
1006 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1007
1008 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1009 is always initialized.
1010
1011 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1012 * MAINTAINERS (Write After Approval): Add myself.
1013
1014 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1015
1016 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1017 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1018
1019 2020-11-25 Tom Tromey <tom@tromey.com>
1020
1021 * eval.c (evaluate_subexp_standard): Remove unnecessary
1022 variables.
1023
1024 2020-11-25 Tom Tromey <tom@tromey.com>
1025
1026 * d-lang.c: Include parser-defs.h.
1027 * rust-lang.c: Include parser-defs.h.
1028 * c-lang.h: Do not include parser-defs.h.
1029
1030 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * regcache.h (struct cached_reg): Remove typedef.
1033
1034 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1035
1036 * README: Fix the URL of the MPFR library.
1037
1038 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1039
1040 * README: Document the --with-libgmp-prefix configure option.
1041
1042 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1043
1044 * NEWS: Add entry documenting support for DWARF-based fixed
1045 point types.
1046
1047 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1048
1049 * NEWS: Document that building GDB now requires GMP.
1050
1051 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1052
1053 * typeprint.c (print_type_scalar): Add handling of
1054 TYPE_CODE_FIXED_POINT.
1055
1056 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1057
1058 * valarith.c (fixed_point_binop): Replace the
1059 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1060 users accordingly.
1061
1062 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1063
1064 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1065 replacing fixed_point_scaling_factor. All callers updated
1066 throughout this project.
1067 (fixed_point_scaling_factor): Delete declaration.
1068 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1069 fixed_point_scaling_factor. Adjust implementation accordingly.
1070
1071 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1072
1073 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1074 replacing the fixed_point_type_base_type function. All callers
1075 updated throughout this project.
1076 (fixed_point_type_base_type): Remove declaration.
1077 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1078 fixed_point_type_base_type. Adjust implementation accordingly.
1079
1080 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1081
1082 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1083 New methods.
1084 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1085 (TYPE_FIXED_POINT_INFO): Delete macro.
1086 (allocate_fixed_point_type_info): Change return type to void.
1087 * gdbtypes.c (copy_type_recursive): Replace the use of
1088 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1089 (fixed_point_scaling_factor): Likewise.
1090 (allocate_fixed_point_type_info): Change return type to void.
1091 Adjust implementation accordingly.
1092 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1093 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1094
1095 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1096
1097 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1098 into one single gdb::array_view parameter.
1099 (gdb_mpz::write): Likewise.
1100 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1101 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1102 into one single gdb::array_view parameter.
1103 Adjust implementation accordingly.
1104 (gdb_mpz::write): Likewise.
1105 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1106 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1107 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1108
1109 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1110
1111 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1112 Change return type to std::string. Update all callers.
1113 * gmp-utils.c (gmp_string_printf): Likewise.
1114
1115 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1116
1117 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1118 instead of mpq_set_ui to initialize our GMP rational.
1119
1120 2020-11-23 Tom de Vries <tdevries@suse.de>
1121
1122 * debuginfod-support.c (debuginfod_source_query)
1123 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1124
1125 2020-11-21 Tom Tromey <tom@tromey.com>
1126
1127 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1128
1129 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1132 Pass 2.0 to pow.
1133 (gdb_mpz_write_all_from_small): Likewise.
1134
1135 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1138 of abs.
1139
1140 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1141
1142 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1143 ctf_arc_open_by_name.
1144
1145 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1146
1147 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1148 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1149
1150 2020-11-20 Pedro Alves <pedro@palves.net>
1151
1152 * language.c (language_arch_info::lookup_primitive_type): Use
1153 gdb::function_view instead of gdb::function.
1154 (template language_lookup_primitive_type): Rename to ...
1155 (language_lookup_primitive_type_1): ... this, and make static.
1156 (language_lookup_primitive_type(const struct language_defn *,
1157 struct gdbarch *, const char *): Make non-template.
1158 (language_lookup_primitive_type(const struct language_defn *,
1159 struct gdbarch *, std::function<bool (struct type *)>): Make
1160 non-template and use gdb::function_view.
1161 * language.h (language_arch_info::lookup_primitive_type): Use
1162 gdb::function_view instead of std::function.
1163 (language_lookup_primitive_type): No longer template.
1164 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1165 lambda instead of a std::function.
1166
1167 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1168
1169 PR tdep/26916
1170 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1171 and STOCFH.
1172
1173 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1176
1177 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1180 in `loop_cb` parameter.
1181 * gdbarch.c: Re-generate.
1182 * gdbarch.h: Re-generate.
1183 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1184 parameter.
1185 * arch-utils.h (default_read_core_file_mappings): Likewise.
1186 * corelow.c (core_target::build_file_mappings): Likewise.
1187 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1188 (linux_core_info_proc_mappings): Likewise.
1189
1190 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1193 * NEWS: Mention new options.
1194 * f-array-walker.h: New file.
1195 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1196 (repack_array_slices): New static global.
1197 (show_repack_array_slices): New function.
1198 (fortran_array_slicing_debug): New static global.
1199 (show_fortran_array_slicing_debug): New function.
1200 (value_f90_subarray): Delete.
1201 (skip_undetermined_arglist): Delete.
1202 (class fortran_array_repacker_base_impl): New class.
1203 (class fortran_lazy_array_repacker_impl): New class.
1204 (class fortran_array_repacker_impl): New class.
1205 (fortran_value_subarray): Complete rewrite.
1206 (set_fortran_list): New static global.
1207 (show_fortran_list): Likewise.
1208 (_initialize_f_language): Register new commands.
1209 (fortran_adjust_dynamic_array_base_address_hack): New function.
1210 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1211 Declare.
1212 * f-valprint.c: Include 'f-array-walker.h'.
1213 (class fortran_array_printer_impl): New class.
1214 (f77_print_array_1): Delete.
1215 (f77_print_array): Delete.
1216 (fortran_print_array): New.
1217 (f_value_print_inner): Update to call fortran_print_array.
1218 * gdbtypes.c: Include 'f-lang.h'.
1219 (resolve_dynamic_type_internal): Call
1220 fortran_adjust_dynamic_array_base_address_hack.
1221
1222 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * breakpoint.c (struct watch_options): New struct.
1225 (watch_option_defs): New static global.
1226 (make_watch_options_def_group): New function.
1227 (watch_maybe_just_location): Convert option parsing.
1228 (watch_command_completer): New function.
1229 (_initialize_breakpoint): Build help text using options mechanism.
1230
1231 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1234 (watch_command_1): Update parameter types. Convert locals to
1235 bool.
1236 (watch_command_wrapper): Change parameter type.
1237 (watch_maybe_just_location): Change locals to bool.
1238 (rwatch_command_wrapper): Update parameter type.
1239 (awatch_command_wrapper): Update parameter type.
1240 * breakpoint.h (watch_command_wrapper): Change parameter type.
1241 (rwatch_command_wrapper): Update parameter type.
1242 (awatch_command_wrapper): Update parameter type.
1243 * eval.c (fetch_subexp_value): Change parameter type.
1244 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1245 'false' not '0'.
1246 * value.h (fetch_subexp_value): Change parameter type in
1247 declaration.
1248
1249 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1252 skip_spaces.
1253
1254 2020-11-18 Keith Seitz <keiths@redhat.com>
1255
1256 * linux-tdep.c (dump_note_entry_p): Return true instead of
1257 checking `filename'.
1258
1259 2020-11-18 Tom de Vries <tdevries@suse.de>
1260
1261 * debuginfod-support.c (debuginfod_source_query)
1262 (debuginfod_debuginfo_query): Also do early exit if
1263 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1264
1265 2020-11-18 Tom de Vries <tdevries@suse.de>
1266
1267 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1268 warning.
1269
1270 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1273 callers. Move doc here.
1274 * gdbtypes.c (get_array_bounds): Return bool
1275
1276 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1279 assert.
1280 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1281 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1282 case to the default.
1283
1284 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * printcmd.c: Include 'safe-ctype.c'.
1287 (skip_over_slash_fmt): New function.
1288 (print_command_completer): Call skip_over_slash_fmt.
1289 (display_and_x_command_completer): New function.
1290 (_initialize_printcmd): Add command completion for 'x' and
1291 'display'.
1292
1293 2020-11-16 Pedro Alves <pedro@palves.net>
1294
1295 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1296 (get_prev_frame_always_1): ... to here.
1297 * inline-frame.c (inline_frame_this_id): Mention
1298 get_prev_frame_always_1 in comment.
1299
1300 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1301
1302 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1303 handling.
1304 (value_less): Add fixed-point handling.
1305
1306 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1307
1308 * eval.c (binop_promote): Add fixed-point type handling.
1309 * valarith.c (fixed_point_binop): New function.
1310 (scalar_binop): Add fixed-point type handling.
1311 (value_neg): Add fixed-point type handling.
1312 * valops.c (value_cast_to_fixed_point): New function.
1313 (value_cast): Add fixed-point type handling.
1314
1315 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1316
1317 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1318 range types.
1319 * c-typeprint.c (c_type_print_varspec_prefix)
1320 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1321 TYPE_CODE_FIXED_POINT handling.
1322 * p-typeprint.c (pascal_type_print_varspec_prefix)
1323 (pascal_type_print_varspec_suffix): Likewise.
1324 * typeprint.c (print_type_fixed_point): New function.
1325 * typeprint.h (print_type_fixed_point): Add declaration.
1326
1327 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1328
1329 * printcmd.c (print_scalar_formatted): Add fixed-point type
1330 handling when options->format is set.
1331
1332 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1333
1334 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1335 * dwarf2/read.c (get_dwarf2_rational_constant)
1336 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1337 (has_zero_over_zero_small_attribute): New functions.
1338 read_base_type, set_die_type): Add fixed-point type handling.
1339 * gdb-gdb.py.in: Add fixed-point type handling.
1340 * gdbtypes.c: #include "gmp-utils.h".
1341 (create_range_type, set_type_code): Add fixed-point type handling.
1342 (init_fixed_point_type): New function.
1343 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1344 (print_fixed_point_type_info): New function.
1345 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1346 handling.
1347 (fixed_point_type_storage): New typedef.
1348 (fixed_point_objfile_key): New static global.
1349 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1350 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1351 functions.
1352 * gdbtypes.h: #include "gmp-utils.h".
1353 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1354 (union type_specific) <fixed_point_info>: New field.
1355 (struct fixed_point_type_info): New struct.
1356 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1357 (init_fixed_point_type, is_fixed_point_type)
1358 (fixed_point_type_base_type, fixed_point_scaling_factor)
1359 (allocate_fixed_point_type_info): Add declarations.
1360 * valprint.c (generic_val_print_fixed_point): New function.
1361 (generic_value_print): Add fixed-point type handling.
1362 * value.c (value_as_address, unpack_long): Add fixed-point type
1363 handling.
1364
1365 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1366
1367 * utils.h (uinteger_pow): Add declaration.
1368 * utils.c (uinteger_pow): Moved here (without changes)...
1369 * valarith.c (uinteger_pow): ... from here.
1370
1371 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1372
1373 * gmp-utils.h, gmp-utils.c: New file.
1374 * unittests/gmp-utils-selftests.c: New file.
1375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1376 unittests/gmp-utils-selftests.c.
1377 (COMMON_SFILES) Add gmp-utils.c.
1378 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1379
1380 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1381
1382 * configure.ac: Generate an error if a usable GMP library
1383 could not be found.
1384 * configure: Regenerate.
1385
1386 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1387
1388 * configure.ac: Add support for --with-libgmp-prefix.
1389 * Makefile.in (LIBGMP): New variable.
1390 (CLIBS): Include $(LIBGMP).
1391 * configure, config.in: Regenerate
1392
1393 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 PR cli/26879
1396 * f-exp.y (COMPLETE): New token.
1397 (exp): Two new rules for tab-completion.
1398 (saw_name_at_eof): New static global.
1399 (last_was_structop): Likewise.
1400 (yylex): Set new variables, and return COMPLETE token at the end
1401 of the input stream in some cases.
1402
1403 2020-11-14 Tom Tromey <tom@tromey.com>
1404
1405 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1406
1407 2020-11-14 Tom Tromey <tom@tromey.com>
1408
1409 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1410
1411 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1414
1415 2020-11-13 Tom Tromey <tom@tromey.com>
1416
1417 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1418 (convert_escape, parse_one_string): Constify.
1419
1420 2020-11-13 Keith Seitz <keiths@redhat.com>
1421
1422 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1423 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1424 outside of ELF segments" warning for debugin
1425
1426 2020-11-13 Keith Seitz <keiths@redhat.com>
1427
1428 PR gdb/23034
1429 * elfread.c (elf_symfile_segments): Output a BFD file name
1430 for the "Loadable section ... outside of ELF segments" warning.
1431
1432 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 PR gdb/26835
1435 * arm-tdep.c (class arm_instruction_reader): New.
1436 (target_arm_instruction_reader): New.
1437 (arm_analyze_prologue): Add instruction reader parameter and use
1438 it. Use arm_expand_immediate.
1439 (class target_arm_instruction_reader): Adjust.
1440 (arm_skip_prologue): Adjust.
1441 (arm_expand_immediate): New.
1442 (arm_scan_prologue): Adjust.
1443 (arm_analyze_prologue_test): New.
1444 (class test_arm_instruction_reader): New.
1445
1446 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * f-lang.c (fortran_argument_convert): Add declaration. Add
1449 header comment, taken from f-lang.h. Make static.
1450 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1451 (fortran_argument_convert): Delete declaration.
1452
1453 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * ada-exp.y (find_primitive_type): Make parameter const.
1456 * ada-lang.c (enum ada_primitive_types): Delete.
1457 (ada_language::language_arch_info): Update.
1458 * c-lang.c (enum c_primitive_types): Delete.
1459 (c_language_arch_info): Update.
1460 (enum cplus_primitive_types): Delete.
1461 (cplus_language::language_arch_info): Update.
1462 * d-lang.c (enum d_primitive_types): Delete.
1463 (d_language::language_arch_info): Update.
1464 * f-lang.c (enum f_primitive_types): Delete.
1465 (f_language::language_arch_info): Update.
1466 * go-lang.c (enum go_primitive_types): Delete.
1467 (go_language::language_arch_info): Update.
1468 * language.c (auto_or_unknown_language::language_arch_info):
1469 Update.
1470 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1471 (language_string_char_type): Add header comment, call function in
1472 language_arch_info.
1473 (language_bool_type): Likewise
1474 (language_arch_info::bool_type): Define.
1475 (language_lookup_primitive_type_1): Delete.
1476 (language_lookup_primitive_type): Rewrite as a templated function
1477 to call function in language_arch_info, then instantiate twice.
1478 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1479 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1480 (language_arch_info::lookup_primitive_type): Define twice with
1481 different signatures.
1482 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1483 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1484 member function in language_arch_info.
1485 * language.h (language_arch_info): Complete rewrite.
1486 (language_lookup_primitive_type): Make templated.
1487 * m2-lang.c (enum m2_primitive_types): Delete.
1488 (m2_language::language_arch_info): Update.
1489 * opencl-lang.c (OCL_P_TYPE): Delete.
1490 (enum opencl_primitive_types): Delete.
1491 (opencl_type_data): Delete.
1492 (builtin_opencl_type): Delete.
1493 (lookup_opencl_vector_type): Update.
1494 (opencl_language::language_arch_info): Update, lots of content
1495 moved from...
1496 (build_opencl_types): ...here. This function is now deleted.
1497 (_initialize_opencl_language): Delete.
1498 * p-lang.c (enum pascal_primitive_types): Delete.
1499 (pascal_language::language_arch_info): Update.
1500 * rust-lang.c (enum rust_primitive_types): Delete.
1501 (rust_language::language_arch_info): Update.
1502
1503 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1506 dwarf2_queue_guard.
1507
1508 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1511 comment.
1512
1513 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * dwarf2/read.c (dwarf_read_debug_printf,
1516 dwarf_read_debug_printf_v): New macros, use throughout the file.
1517
1518 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1519
1520 PR tdep/27015
1521 * arc-linux-tdep.c (collect_register): Populate "eret" by
1522 "pc" value from the regcache when asked for "pc" value.
1523
1524 2020-11-12 Tom Tromey <tom@tromey.com>
1525
1526 PR rust/26799:
1527 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1528 exist.
1529
1530 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * features/Makefile (XMLTOC): Add rx.xml.
1533 (FEATURE_XMLFILES): Remove rx.xml.
1534 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1535 * features/rx.c: Regenerate.
1536 * features/rx.xml: Wrap in `target` tags, and reindent.
1537 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1538 structure.
1539 (maint_print_c_tdesc_opt_def): New typedef.
1540 (maint_print_c_tdesc_opt_defs): New static global.
1541 (make_maint_print_c_tdesc_options_def_group): New function.
1542 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1543 print single feature C file for target descriptions containing a
1544 single feature.
1545 (maint_print_c_tdesc_cmd_completer): New function.
1546 (_initialize_target_descriptions): Update call to register command
1547 completer, and include command line flag in help text.
1548
1549 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1552 numbers.
1553 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1554 enum values.
1555
1556 2020-11-10 Tom Tromey <tom@tromey.com>
1557
1558 * value.h (internalvar_name): Update.
1559 * value.c (internalvar_name): Make return type const.
1560
1561 2020-11-10 Tom Tromey <tom@tromey.com>
1562
1563 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1564 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1565 const.
1566
1567 2020-11-10 Tom Tromey <tom@tromey.com>
1568
1569 * objc-lang.h (value_nsstring): Update.
1570 * objc-lang.c (value_nsstring): Make "ptr" const.
1571
1572 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * expprint.c (print_subexp_funcall): Increment expression position
1575 after reading argument count.
1576 * f-lang.c (print_subexp_f): Skip over opcode before calling
1577 common function.
1578 (dump_subexp_body_f): Likewise.
1579
1580 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1581
1582 PR python/26832
1583 * configure: Regenerate.
1584 * configure.ac: Check for python modules ctypes instead of
1585 itertools.
1586
1587 2020-11-06 Pedro Alves <pedro@palves.net>
1588
1589 * macroexp.c (struct macro_buffer): Split in two classes. Add
1590 uses adjusted.
1591 (struct shared_macro_buffer): New, factored out from struct
1592 macro_buffer.
1593 (struct growable_macro_buffer): New, factored out from struct
1594 macro_buffer.
1595 (set_token, get_comment, get_identifier, get_pp_number)
1596 (get_character_constant, get_string_literal, get_punctuator)
1597 (get_next_token_for_substitution): Constify parameters.
1598 (substitute_args): Constify locals.
1599
1600 2020-11-05 Tom Tromey <tom@tromey.com>
1601
1602 * dwarf2/read.c (read_cutu_die_from_dwo)
1603 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1604 (build_type_psymtabs_1): Update.
1605 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1606 parameter.
1607 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1608 Don't read section. Add assert.
1609
1610 2020-11-04 Tom Tromey <tromey@adacore.com>
1611
1612 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1613
1614 2020-11-04 Tom Tromey <tromey@adacore.com>
1615
1616 * ada-typeprint.c (ada_print_type): Handle __T types.
1617
1618 2020-11-04 Tom Tromey <tromey@adacore.com>
1619
1620 * dwarf2/read.c (add_partial_symbol, process_die):
1621 Handle DW_TAG_array_type.
1622 (is_type_tag_for_partial): Add "lang" parameter.
1623 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1624
1625 2020-11-04 Tom Tromey <tromey@adacore.com>
1626
1627 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1628
1629 2020-11-04 Tom Tromey <tromey@adacore.com>
1630
1631 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1632 array.
1633
1634 2020-11-04 Tom Tromey <tromey@adacore.com>
1635
1636 * gdbtypes.c (update_static_array_size): Handle bit stride.
1637
1638 2020-11-04 Tom Tromey <tromey@adacore.com>
1639
1640 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1641
1642 2020-11-04 Tom Tromey <tromey@adacore.com>
1643
1644 * ada-lang.c (ada_is_any_packed_array_type): New function.
1645 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1646
1647 2020-11-04 Tom Tromey <tromey@adacore.com>
1648
1649 * dwarf2/read.c (recognize_bound_expression)
1650 (quirk_ada_thick_pointer): New functions.
1651 (read_array_type): Call quirk_ada_thick_pointer.
1652 (set_die_type): Add "skip_data_location" parameter.
1653 (quirk_ada_thick_pointer): New function.
1654 (process_structure_scope): Call quirk_ada_thick_pointer.
1655 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1656 (decode_packed_array_bitsize): Handle thick pointers without
1657 parallel types.
1658 (ada_is_gnat_encoded_packed_array_type): Rename from
1659 ada_is_packed_array_type.
1660 (ada_is_constrained_packed_array_type): Update.
1661 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1662 (ada_value_print_1): Use ada_get_decoded_value.
1663
1664 2020-11-04 Tom Tromey <tromey@adacore.com>
1665
1666 * ada-lang.c (recursively_update_array_bitsize): New function.
1667 (decode_constrained_packed_array_type): Call it.
1668
1669 2020-11-04 Tom Tromey <tromey@adacore.com>
1670
1671 * ada-lang.c (to_fixed_array_type): Error if
1672 decode_constrained_packed_array_type returns NULL.
1673
1674 2020-11-04 Tom Tromey <tromey@adacore.com>
1675
1676 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1677
1678 2020-11-02 Tom Tromey <tromey@adacore.com>
1679
1680 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1681 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1682 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1683 * amd64-ravenscar-thread.c: New file.
1684 * amd64-ravenscar-thread.h: New file.
1685 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1686 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1687
1688 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * main.c (execute_cmdargs): New function.
1691 (captured_main_1): Make use of execute_cmdargs.
1692
1693 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * NEWS: Mention changes to config file search path.
1696 * main.c
1697
1698 2020-11-02 Tom Tromey <tromey@adacore.com>
1699
1700 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1701 (python_GdbModuleDef): Move earlier. Now static.
1702 (do_start_initialization): Consolidate some IS_PY3K blocks.
1703
1704 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1705
1706 * aarch64-linux-tdep.c: Fix indentation.
1707 * aarch64-ravenscar-thread.c: Fix indentation.
1708 * aarch64-tdep.c: Fix indentation.
1709 * aarch64-tdep.h: Fix indentation.
1710 * ada-lang.c: Fix indentation.
1711 * ada-lang.h: Fix indentation.
1712 * ada-tasks.c: Fix indentation.
1713 * ada-typeprint.c: Fix indentation.
1714 * ada-valprint.c: Fix indentation.
1715 * ada-varobj.c: Fix indentation.
1716 * addrmap.c: Fix indentation.
1717 * addrmap.h: Fix indentation.
1718 * agent.c: Fix indentation.
1719 * aix-thread.c: Fix indentation.
1720 * alpha-bsd-nat.c: Fix indentation.
1721 * alpha-linux-tdep.c: Fix indentation.
1722 * alpha-mdebug-tdep.c: Fix indentation.
1723 * alpha-nbsd-tdep.c: Fix indentation.
1724 * alpha-obsd-tdep.c: Fix indentation.
1725 * alpha-tdep.c: Fix indentation.
1726 * amd64-bsd-nat.c: Fix indentation.
1727 * amd64-darwin-tdep.c: Fix indentation.
1728 * amd64-linux-nat.c: Fix indentation.
1729 * amd64-linux-tdep.c: Fix indentation.
1730 * amd64-nat.c: Fix indentation.
1731 * amd64-obsd-tdep.c: Fix indentation.
1732 * amd64-tdep.c: Fix indentation.
1733 * amd64-windows-tdep.c: Fix indentation.
1734 * annotate.c: Fix indentation.
1735 * arc-tdep.c: Fix indentation.
1736 * arch-utils.c: Fix indentation.
1737 * arch/arm-get-next-pcs.c: Fix indentation.
1738 * arch/arm.c: Fix indentation.
1739 * arm-linux-nat.c: Fix indentation.
1740 * arm-linux-tdep.c: Fix indentation.
1741 * arm-nbsd-tdep.c: Fix indentation.
1742 * arm-pikeos-tdep.c: Fix indentation.
1743 * arm-tdep.c: Fix indentation.
1744 * arm-tdep.h: Fix indentation.
1745 * arm-wince-tdep.c: Fix indentation.
1746 * auto-load.c: Fix indentation.
1747 * auxv.c: Fix indentation.
1748 * avr-tdep.c: Fix indentation.
1749 * ax-gdb.c: Fix indentation.
1750 * ax-general.c: Fix indentation.
1751 * bfin-linux-tdep.c: Fix indentation.
1752 * block.c: Fix indentation.
1753 * block.h: Fix indentation.
1754 * blockframe.c: Fix indentation.
1755 * bpf-tdep.c: Fix indentation.
1756 * break-catch-sig.c: Fix indentation.
1757 * break-catch-syscall.c: Fix indentation.
1758 * break-catch-throw.c: Fix indentation.
1759 * breakpoint.c: Fix indentation.
1760 * breakpoint.h: Fix indentation.
1761 * bsd-uthread.c: Fix indentation.
1762 * btrace.c: Fix indentation.
1763 * build-id.c: Fix indentation.
1764 * buildsym-legacy.h: Fix indentation.
1765 * buildsym.c: Fix indentation.
1766 * c-typeprint.c: Fix indentation.
1767 * c-valprint.c: Fix indentation.
1768 * c-varobj.c: Fix indentation.
1769 * charset.c: Fix indentation.
1770 * cli/cli-cmds.c: Fix indentation.
1771 * cli/cli-decode.c: Fix indentation.
1772 * cli/cli-decode.h: Fix indentation.
1773 * cli/cli-script.c: Fix indentation.
1774 * cli/cli-setshow.c: Fix indentation.
1775 * coff-pe-read.c: Fix indentation.
1776 * coffread.c: Fix indentation.
1777 * compile/compile-cplus-types.c: Fix indentation.
1778 * compile/compile-object-load.c: Fix indentation.
1779 * compile/compile-object-run.c: Fix indentation.
1780 * completer.c: Fix indentation.
1781 * corefile.c: Fix indentation.
1782 * corelow.c: Fix indentation.
1783 * cp-abi.h: Fix indentation.
1784 * cp-namespace.c: Fix indentation.
1785 * cp-support.c: Fix indentation.
1786 * cp-valprint.c: Fix indentation.
1787 * cris-linux-tdep.c: Fix indentation.
1788 * cris-tdep.c: Fix indentation.
1789 * darwin-nat-info.c: Fix indentation.
1790 * darwin-nat.c: Fix indentation.
1791 * darwin-nat.h: Fix indentation.
1792 * dbxread.c: Fix indentation.
1793 * dcache.c: Fix indentation.
1794 * disasm.c: Fix indentation.
1795 * dtrace-probe.c: Fix indentation.
1796 * dwarf2/abbrev.c: Fix indentation.
1797 * dwarf2/attribute.c: Fix indentation.
1798 * dwarf2/expr.c: Fix indentation.
1799 * dwarf2/frame.c: Fix indentation.
1800 * dwarf2/index-cache.c: Fix indentation.
1801 * dwarf2/index-write.c: Fix indentation.
1802 * dwarf2/line-header.c: Fix indentation.
1803 * dwarf2/loc.c: Fix indentation.
1804 * dwarf2/macro.c: Fix indentation.
1805 * dwarf2/read.c: Fix indentation.
1806 * dwarf2/read.h: Fix indentation.
1807 * elfread.c: Fix indentation.
1808 * eval.c: Fix indentation.
1809 * event-top.c: Fix indentation.
1810 * exec.c: Fix indentation.
1811 * exec.h: Fix indentation.
1812 * expprint.c: Fix indentation.
1813 * f-lang.c: Fix indentation.
1814 * f-typeprint.c: Fix indentation.
1815 * f-valprint.c: Fix indentation.
1816 * fbsd-nat.c: Fix indentation.
1817 * fbsd-tdep.c: Fix indentation.
1818 * findvar.c: Fix indentation.
1819 * fork-child.c: Fix indentation.
1820 * frame-unwind.c: Fix indentation.
1821 * frame-unwind.h: Fix indentation.
1822 * frame.c: Fix indentation.
1823 * frv-linux-tdep.c: Fix indentation.
1824 * frv-tdep.c: Fix indentation.
1825 * frv-tdep.h: Fix indentation.
1826 * ft32-tdep.c: Fix indentation.
1827 * gcore.c: Fix indentation.
1828 * gdb_bfd.c: Fix indentation.
1829 * gdbarch.sh: Fix indentation.
1830 * gdbarch.c: Re-generate
1831 * gdbarch.h: Re-generate.
1832 * gdbcore.h: Fix indentation.
1833 * gdbthread.h: Fix indentation.
1834 * gdbtypes.c: Fix indentation.
1835 * gdbtypes.h: Fix indentation.
1836 * glibc-tdep.c: Fix indentation.
1837 * gnu-nat.c: Fix indentation.
1838 * gnu-nat.h: Fix indentation.
1839 * gnu-v2-abi.c: Fix indentation.
1840 * gnu-v3-abi.c: Fix indentation.
1841 * go32-nat.c: Fix indentation.
1842 * guile/guile-internal.h: Fix indentation.
1843 * guile/scm-cmd.c: Fix indentation.
1844 * guile/scm-frame.c: Fix indentation.
1845 * guile/scm-iterator.c: Fix indentation.
1846 * guile/scm-math.c: Fix indentation.
1847 * guile/scm-ports.c: Fix indentation.
1848 * guile/scm-pretty-print.c: Fix indentation.
1849 * guile/scm-value.c: Fix indentation.
1850 * h8300-tdep.c: Fix indentation.
1851 * hppa-linux-nat.c: Fix indentation.
1852 * hppa-linux-tdep.c: Fix indentation.
1853 * hppa-nbsd-nat.c: Fix indentation.
1854 * hppa-nbsd-tdep.c: Fix indentation.
1855 * hppa-obsd-nat.c: Fix indentation.
1856 * hppa-tdep.c: Fix indentation.
1857 * hppa-tdep.h: Fix indentation.
1858 * i386-bsd-nat.c: Fix indentation.
1859 * i386-darwin-nat.c: Fix indentation.
1860 * i386-darwin-tdep.c: Fix indentation.
1861 * i386-dicos-tdep.c: Fix indentation.
1862 * i386-gnu-nat.c: Fix indentation.
1863 * i386-linux-nat.c: Fix indentation.
1864 * i386-linux-tdep.c: Fix indentation.
1865 * i386-nto-tdep.c: Fix indentation.
1866 * i386-obsd-tdep.c: Fix indentation.
1867 * i386-sol2-nat.c: Fix indentation.
1868 * i386-tdep.c: Fix indentation.
1869 * i386-tdep.h: Fix indentation.
1870 * i386-windows-tdep.c: Fix indentation.
1871 * i387-tdep.c: Fix indentation.
1872 * i387-tdep.h: Fix indentation.
1873 * ia64-libunwind-tdep.c: Fix indentation.
1874 * ia64-libunwind-tdep.h: Fix indentation.
1875 * ia64-linux-nat.c: Fix indentation.
1876 * ia64-linux-tdep.c: Fix indentation.
1877 * ia64-tdep.c: Fix indentation.
1878 * ia64-tdep.h: Fix indentation.
1879 * ia64-vms-tdep.c: Fix indentation.
1880 * infcall.c: Fix indentation.
1881 * infcmd.c: Fix indentation.
1882 * inferior.c: Fix indentation.
1883 * infrun.c: Fix indentation.
1884 * iq2000-tdep.c: Fix indentation.
1885 * language.c: Fix indentation.
1886 * linespec.c: Fix indentation.
1887 * linux-fork.c: Fix indentation.
1888 * linux-nat.c: Fix indentation.
1889 * linux-tdep.c: Fix indentation.
1890 * linux-thread-db.c: Fix indentation.
1891 * lm32-tdep.c: Fix indentation.
1892 * m2-lang.c: Fix indentation.
1893 * m2-typeprint.c: Fix indentation.
1894 * m2-valprint.c: Fix indentation.
1895 * m32c-tdep.c: Fix indentation.
1896 * m32r-linux-tdep.c: Fix indentation.
1897 * m32r-tdep.c: Fix indentation.
1898 * m68hc11-tdep.c: Fix indentation.
1899 * m68k-bsd-nat.c: Fix indentation.
1900 * m68k-linux-nat.c: Fix indentation.
1901 * m68k-linux-tdep.c: Fix indentation.
1902 * m68k-tdep.c: Fix indentation.
1903 * machoread.c: Fix indentation.
1904 * macrocmd.c: Fix indentation.
1905 * macroexp.c: Fix indentation.
1906 * macroscope.c: Fix indentation.
1907 * macrotab.c: Fix indentation.
1908 * macrotab.h: Fix indentation.
1909 * main.c: Fix indentation.
1910 * mdebugread.c: Fix indentation.
1911 * mep-tdep.c: Fix indentation.
1912 * mi/mi-cmd-catch.c: Fix indentation.
1913 * mi/mi-cmd-disas.c: Fix indentation.
1914 * mi/mi-cmd-env.c: Fix indentation.
1915 * mi/mi-cmd-stack.c: Fix indentation.
1916 * mi/mi-cmd-var.c: Fix indentation.
1917 * mi/mi-cmds.c: Fix indentation.
1918 * mi/mi-main.c: Fix indentation.
1919 * mi/mi-parse.c: Fix indentation.
1920 * microblaze-tdep.c: Fix indentation.
1921 * minidebug.c: Fix indentation.
1922 * minsyms.c: Fix indentation.
1923 * mips-linux-nat.c: Fix indentation.
1924 * mips-linux-tdep.c: Fix indentation.
1925 * mips-nbsd-tdep.c: Fix indentation.
1926 * mips-tdep.c: Fix indentation.
1927 * mn10300-linux-tdep.c: Fix indentation.
1928 * mn10300-tdep.c: Fix indentation.
1929 * moxie-tdep.c: Fix indentation.
1930 * msp430-tdep.c: Fix indentation.
1931 * namespace.h: Fix indentation.
1932 * nat/fork-inferior.c: Fix indentation.
1933 * nat/gdb_ptrace.h: Fix indentation.
1934 * nat/linux-namespaces.c: Fix indentation.
1935 * nat/linux-osdata.c: Fix indentation.
1936 * nat/netbsd-nat.c: Fix indentation.
1937 * nat/x86-dregs.c: Fix indentation.
1938 * nbsd-nat.c: Fix indentation.
1939 * nbsd-tdep.c: Fix indentation.
1940 * nios2-linux-tdep.c: Fix indentation.
1941 * nios2-tdep.c: Fix indentation.
1942 * nto-procfs.c: Fix indentation.
1943 * nto-tdep.c: Fix indentation.
1944 * objfiles.c: Fix indentation.
1945 * objfiles.h: Fix indentation.
1946 * opencl-lang.c: Fix indentation.
1947 * or1k-tdep.c: Fix indentation.
1948 * osabi.c: Fix indentation.
1949 * osabi.h: Fix indentation.
1950 * osdata.c: Fix indentation.
1951 * p-lang.c: Fix indentation.
1952 * p-typeprint.c: Fix indentation.
1953 * p-valprint.c: Fix indentation.
1954 * parse.c: Fix indentation.
1955 * ppc-linux-nat.c: Fix indentation.
1956 * ppc-linux-tdep.c: Fix indentation.
1957 * ppc-nbsd-nat.c: Fix indentation.
1958 * ppc-nbsd-tdep.c: Fix indentation.
1959 * ppc-obsd-nat.c: Fix indentation.
1960 * ppc-ravenscar-thread.c: Fix indentation.
1961 * ppc-sysv-tdep.c: Fix indentation.
1962 * ppc64-tdep.c: Fix indentation.
1963 * printcmd.c: Fix indentation.
1964 * proc-api.c: Fix indentation.
1965 * producer.c: Fix indentation.
1966 * producer.h: Fix indentation.
1967 * prologue-value.c: Fix indentation.
1968 * prologue-value.h: Fix indentation.
1969 * psymtab.c: Fix indentation.
1970 * python/py-arch.c: Fix indentation.
1971 * python/py-bpevent.c: Fix indentation.
1972 * python/py-event.c: Fix indentation.
1973 * python/py-event.h: Fix indentation.
1974 * python/py-finishbreakpoint.c: Fix indentation.
1975 * python/py-frame.c: Fix indentation.
1976 * python/py-framefilter.c: Fix indentation.
1977 * python/py-inferior.c: Fix indentation.
1978 * python/py-infthread.c: Fix indentation.
1979 * python/py-objfile.c: Fix indentation.
1980 * python/py-prettyprint.c: Fix indentation.
1981 * python/py-registers.c: Fix indentation.
1982 * python/py-signalevent.c: Fix indentation.
1983 * python/py-stopevent.c: Fix indentation.
1984 * python/py-stopevent.h: Fix indentation.
1985 * python/py-threadevent.c: Fix indentation.
1986 * python/py-tui.c: Fix indentation.
1987 * python/py-unwind.c: Fix indentation.
1988 * python/py-value.c: Fix indentation.
1989 * python/py-xmethods.c: Fix indentation.
1990 * python/python-internal.h: Fix indentation.
1991 * python/python.c: Fix indentation.
1992 * ravenscar-thread.c: Fix indentation.
1993 * record-btrace.c: Fix indentation.
1994 * record-full.c: Fix indentation.
1995 * record.c: Fix indentation.
1996 * reggroups.c: Fix indentation.
1997 * regset.h: Fix indentation.
1998 * remote-fileio.c: Fix indentation.
1999 * remote.c: Fix indentation.
2000 * reverse.c: Fix indentation.
2001 * riscv-linux-tdep.c: Fix indentation.
2002 * riscv-ravenscar-thread.c: Fix indentation.
2003 * riscv-tdep.c: Fix indentation.
2004 * rl78-tdep.c: Fix indentation.
2005 * rs6000-aix-tdep.c: Fix indentation.
2006 * rs6000-lynx178-tdep.c: Fix indentation.
2007 * rs6000-nat.c: Fix indentation.
2008 * rs6000-tdep.c: Fix indentation.
2009 * rust-lang.c: Fix indentation.
2010 * rx-tdep.c: Fix indentation.
2011 * s12z-tdep.c: Fix indentation.
2012 * s390-linux-tdep.c: Fix indentation.
2013 * score-tdep.c: Fix indentation.
2014 * ser-base.c: Fix indentation.
2015 * ser-mingw.c: Fix indentation.
2016 * ser-uds.c: Fix indentation.
2017 * ser-unix.c: Fix indentation.
2018 * serial.c: Fix indentation.
2019 * sh-linux-tdep.c: Fix indentation.
2020 * sh-nbsd-tdep.c: Fix indentation.
2021 * sh-tdep.c: Fix indentation.
2022 * skip.c: Fix indentation.
2023 * sol-thread.c: Fix indentation.
2024 * solib-aix.c: Fix indentation.
2025 * solib-darwin.c: Fix indentation.
2026 * solib-frv.c: Fix indentation.
2027 * solib-svr4.c: Fix indentation.
2028 * solib.c: Fix indentation.
2029 * source.c: Fix indentation.
2030 * sparc-linux-tdep.c: Fix indentation.
2031 * sparc-nbsd-tdep.c: Fix indentation.
2032 * sparc-obsd-tdep.c: Fix indentation.
2033 * sparc-ravenscar-thread.c: Fix indentation.
2034 * sparc-tdep.c: Fix indentation.
2035 * sparc64-linux-tdep.c: Fix indentation.
2036 * sparc64-nbsd-tdep.c: Fix indentation.
2037 * sparc64-obsd-tdep.c: Fix indentation.
2038 * sparc64-tdep.c: Fix indentation.
2039 * stabsread.c: Fix indentation.
2040 * stack.c: Fix indentation.
2041 * stap-probe.c: Fix indentation.
2042 * stubs/ia64vms-stub.c: Fix indentation.
2043 * stubs/m32r-stub.c: Fix indentation.
2044 * stubs/m68k-stub.c: Fix indentation.
2045 * stubs/sh-stub.c: Fix indentation.
2046 * stubs/sparc-stub.c: Fix indentation.
2047 * symfile-mem.c: Fix indentation.
2048 * symfile.c: Fix indentation.
2049 * symfile.h: Fix indentation.
2050 * symmisc.c: Fix indentation.
2051 * symtab.c: Fix indentation.
2052 * symtab.h: Fix indentation.
2053 * target-float.c: Fix indentation.
2054 * target.c: Fix indentation.
2055 * target.h: Fix indentation.
2056 * tic6x-tdep.c: Fix indentation.
2057 * tilegx-linux-tdep.c: Fix indentation.
2058 * tilegx-tdep.c: Fix indentation.
2059 * top.c: Fix indentation.
2060 * tracefile-tfile.c: Fix indentation.
2061 * tracepoint.c: Fix indentation.
2062 * tui/tui-disasm.c: Fix indentation.
2063 * tui/tui-io.c: Fix indentation.
2064 * tui/tui-regs.c: Fix indentation.
2065 * tui/tui-stack.c: Fix indentation.
2066 * tui/tui-win.c: Fix indentation.
2067 * tui/tui-winsource.c: Fix indentation.
2068 * tui/tui.c: Fix indentation.
2069 * typeprint.c: Fix indentation.
2070 * ui-out.h: Fix indentation.
2071 * unittests/copy_bitwise-selftests.c: Fix indentation.
2072 * unittests/memory-map-selftests.c: Fix indentation.
2073 * utils.c: Fix indentation.
2074 * v850-tdep.c: Fix indentation.
2075 * valarith.c: Fix indentation.
2076 * valops.c: Fix indentation.
2077 * valprint.c: Fix indentation.
2078 * valprint.h: Fix indentation.
2079 * value.c: Fix indentation.
2080 * value.h: Fix indentation.
2081 * varobj.c: Fix indentation.
2082 * vax-tdep.c: Fix indentation.
2083 * windows-nat.c: Fix indentation.
2084 * windows-tdep.c: Fix indentation.
2085 * xcoffread.c: Fix indentation.
2086 * xml-syscall.c: Fix indentation.
2087 * xml-tdesc.c: Fix indentation.
2088 * xstormy16-tdep.c: Fix indentation.
2089 * xtensa-config.c: Fix indentation.
2090 * xtensa-linux-nat.c: Fix indentation.
2091 * xtensa-linux-tdep.c: Fix indentation.
2092 * xtensa-tdep.c: Fix indentation.
2093
2094 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2095 Craig Blackmore <craig.blackmore@embecosm.com>
2096
2097 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2098 as an unsigned value.
2099
2100 2020-11-01 Tom Tromey <tom@tromey.com>
2101
2102 * dbxread.c (dbx_end_psymtab): Update.
2103 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2104 (build_type_psymtabs_reader): Update.
2105 * xcoffread.c (xcoff_end_psymtab): Update.
2106 * ctfread.c (scan_partial_symbols): Update.
2107 * psymtab.c (sort_pst_symbols): Remove.
2108 (partial_symtab::end): Rename from end_psymtab_common. Inline
2109 sort_pst_symbols.
2110 * psympriv.h (struct partial_symtab) <end>: New method.
2111 (end_psymtab_common): Don't declare.
2112
2113 2020-11-01 Tom Tromey <tom@tromey.com>
2114
2115 * symmisc.c (count_psyms): New function.
2116 (print_objfile_statistics): Use it.
2117 * psymtab.c (append_psymbol_to_list): Remove.
2118 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2119 * objfiles.h (struct objstats) <n_psyms>: Remove.
2120
2121 2020-11-01 Tom Tromey <tom@tromey.com>
2122
2123 * dbxread.c (dbx_end_psymtab): Update.
2124 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2125 (build_type_psymtabs_reader): Update.
2126 * xcoffread.c (xcoff_end_psymtab): Update.
2127 * ctfread.c (scan_partial_symbols): Update.
2128 * psympriv.h (end_psymtab_common): Update.
2129 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2130 (sort_pst_symbols): Likewise.
2131
2132 2020-11-01 Tom Tromey <tom@tromey.com>
2133
2134 * dbxread.c (dbx_symfile_read): Update.
2135 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2136 * xcoffread.c (xcoff_initial_scan): Update.
2137 * psympriv.h (init_psymbol_list): Don't declare.
2138 * psymtab.c (init_psymbol_list): Remove.
2139
2140 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2141
2142 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2143 gnat_encoded_fixed_type_info. Update all callers.
2144
2145 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2146
2147 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2148 line too long.
2149
2150 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2151
2152 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2153 cast_from_fixed. Update all callers.
2154 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2155 Update all callers.
2156 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2157 Update all callers.
2158 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2159 ada_scaling_factor.
2160 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2161 to print_gnat_encoded_fixed_point_type.
2162 * ada-valprint.c: Likewise.
2163
2164 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2167 (debug_prefixed_printf): Add check of debug_displaced flag.
2168 * linux-nat.c (linux_nat_debug_printf): Add check of
2169 debug_linux_nat flag.
2170
2171 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2172
2173 * infrun.c (infrun_debug_printf_1): Remove.
2174 (displaced_debug_printf_1): Remove.
2175 (stop_all_threads): Use debug_prefixed_printf.
2176 * infrun.h (infrun_debug_printf_1): Remove.
2177 (infrun_debug_printf): Use debug_prefixed_printf.
2178 (displaced_debug_printf_1): Remove.
2179 (displaced_debug_printf): Use debug_prefixed_printf.
2180 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2181 (linux_nat_debug_printf): Use debug_prefixed_printf.
2182
2183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * configure: Re-generate.
2186 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2187 AC_LANG_PROGRAM.
2188
2189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 * configure: Re-generate.
2192
2193 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * configure: Re-generate.
2196
2197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * configure: Re-generate.
2200
2201 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * configure: Re-generate.
2204
2205 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2206
2207 * acinclude.m4: Modernize.
2208 * configure: Re-generate.
2209
2210 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * configure.ac: Modernize.
2213 * configure: Re-generate.
2214
2215 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2218 * configure: Re-generate.
2219 * configure.ac: Remove AM_PROG_CC_STDC.
2220
2221 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2224 AC_CANONICAL_SYSTEM.
2225 * configure: Re-generate.
2226
2227 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * infrun.h (displaced_debug_printf): New macro. Replace
2230 displaced debug prints throughout to use it.
2231 (displaced_debug_printf_1): New declaration.
2232 (displaced_step_dump_bytes): Return string, remove ui_file
2233 parameter, update all callers.
2234 * infrun.c (displaced_debug_printf_1): New function.
2235 (displaced_step_dump_bytes): Return string, remove ui_file
2236 parameter
2237
2238 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2239
2240 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2241
2242 2020-10-30 Tom Tromey <tromey@adacore.com>
2243
2244 * Makefile.in (stamp-init): Depend on config.status.
2245
2246 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2247
2248 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2249
2250 2020-10-30 Pedro Alves <pedro@palves.net>
2251
2252 * thread.c (lookup_selected_frame): Move ...
2253 * frame.c (lookup_selected_frame): ... here.
2254
2255 2020-10-30 Pedro Alves <pedro@palves.net>
2256
2257 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2258 * frame.c
2259 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2260 Use save_selected_frame. Save language as well.
2261 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2262 Use restore_selected_frame, and restore language as well.
2263 (selected_frame_id, selected_frame_level): New.
2264 (selected_frame): Update comments.
2265 (save_selected_frame, restore_selected_frame): New.
2266 (get_selected_frame): Use lookup_selected_frame.
2267 (get_selected_frame_if_set): Delete.
2268 (select_frame): Record selected_frame_level and selected_frame_id.
2269 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2270 fields.
2271 (get_selected_frame): Make 'message' parameter optional.
2272 (get_selected_frame_if_set): Delete declaration.
2273 (select_frame): Update comments.
2274 (save_selected_frame, restore_selected_frame)
2275 (lookup_selected_frame): Declare.
2276 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2277 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2278 New field.
2279 (save_infcall_control_state): Use save_selected_frame.
2280 (restore_selected_frame): Delete.
2281 (restore_infcall_control_state): Use restore_selected_frame.
2282 * stack.c (select_frame_command_core, frame_command_core): Use
2283 get_selected_frame.
2284 * thread.c (restore_selected_frame): Rename to ...
2285 (lookup_selected_frame): ... this and make extern. Select the
2286 current frame if the frame level is -1.
2287 (scoped_restore_current_thread::restore): Also restore the
2288 language.
2289 (scoped_restore_current_thread::~scoped_restore_current_thread):
2290 Don't try/catch.
2291 (scoped_restore_current_thread::scoped_restore_current_thread):
2292 Save the language as well. Use save_selected_frame.
2293
2294 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2297 documentation.
2298 * gdbarch.h: Re-generate.
2299
2300 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2303 parameter.
2304 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2305 Likewise.
2306 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2307 Likewise.
2308 * arch-utils.c (default_displaced_step_hw_singlestep):
2309 Likewise.
2310 * arch-utils.h (default_displaced_step_hw_singlestep):
2311 Likewise.
2312 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2313 Likewise.
2314 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2315 Likewise.
2316 * gdbarch.c: Re-generate.
2317 * gdbarch.h: Re-generate.
2318 * infrun.c (resume_1): Adjust.
2319
2320 2020-10-29 Tom Tromey <tom@tromey.com>
2321
2322 * progspace.c (program_space::~program_space): Don't call
2323 exec_close.
2324
2325 2020-10-29 Tom Tromey <tom@tromey.com>
2326
2327 * exec.c (exec_target::close): Don't change current program
2328 space.
2329
2330 2020-10-29 Tom Tromey <tom@tromey.com>
2331
2332 * symfile.c (add_symbol_file_command): Update.
2333 * exec.c (program_space::add_target_sections): Rename.
2334 * symfile-mem.c (symbol_file_add_from_memory): Update.
2335 * progspace.h (struct program_space) <add_target_sections>:
2336 Declare new overload.
2337 * exec.h (add_target_sections_of_objfile): Don't declare.
2338
2339 2020-10-29 Tom Tromey <tom@tromey.com>
2340
2341 * solib.c (solib_map_sections): Update.
2342 * exec.c (program_space::add_target_sections): Now a method.
2343 (exec_file_attach): Update.
2344 * exec.h (add_target_sections): Don't declare.
2345 * progspace.h (struct program_space) <add_target_sections>:
2346 Declare.
2347
2348 2020-10-29 Tom Tromey <tom@tromey.com>
2349
2350 * progspace.h (struct program_space) <remove_target_sections>:
2351 Declare.
2352 * exec.c (program_space::remove_target_sections): Now a method.
2353 * exec.h (remove_target_sections): Don't declare.
2354
2355 2020-10-29 Tom Tromey <tom@tromey.com>
2356
2357 * inferior.c (delete_inferior): Update.
2358 * progspace.c (program_space::empty): Rename from
2359 program_space_empty_p. Return bool.
2360 * progspace.h (struct program_space) <empty>: New method.
2361 (program_space_empty_p): Don't declare.
2362
2363 2020-10-29 Tom Tromey <tom@tromey.com>
2364
2365 * progspace.c (program_space::~program_space): Don't call
2366 clear_program_space_solib_cache.
2367 (program_space::clear_solib_cache): Rename from
2368 clear_solib_cache.
2369 * solib.c (handle_solib_event): Update.
2370 * progspace.h (struct program_space) <clear_solib_cache>: New
2371 method.
2372 (clear_program_space_solib_cache): Don't declare.
2373
2374 2020-10-29 Tom Tromey <tom@tromey.com>
2375
2376 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2377 * target.c (info_target_command): Update.
2378 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2379 (symbol_file_clear, reread_symbols): Update.
2380 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2381 * stabsread.c (scan_file_globals): Update.
2382 * solib.c (update_solib_list): Update.
2383 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2384 (svr4_fetch_objfile_link_map, enable_break)
2385 (svr4_relocate_main_executable)
2386 (svr4_iterate_over_objfiles_in_search_order): Update.
2387 * solib-frv.c (lm_base, enable_break)
2388 (frv_relocate_main_executable): Update.
2389 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2390 (frv_fetch_objfile_link_map): Update.
2391 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2392 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2393 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2394 * remote.c (remote_target::get_offsets): Update.
2395 (remote_target::start_remote)
2396 (extended_remote_target::post_attach): Update.
2397 * objfiles.c (entry_point_address_query): Update.
2398 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2399 * minsyms.c (get_symbol_leading_char): Update.
2400 * frame.c (inside_main_func): Update.
2401 * progspace.h (symfile_objfile): Remove macro.
2402
2403 2020-10-29 Tom Tromey <tom@tromey.com>
2404
2405 * exec.c (exec_file_attach): Update.
2406 * progspace.c (program_space::exec_close): Update.
2407 * progspace.h (struct program_space) <ebfd>: Now a
2408 gdb_bfd_ref_ptr.
2409 <set_exec_bfd>: Change argument type.
2410 <exec_bfd>: Update.
2411
2412 2020-10-29 Tom Tromey <tom@tromey.com>
2413
2414 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2415 * symfile.c (reread_symbols): Update.
2416 * symfile-mem.c (add_symbol_file_from_memory_command)
2417 (add_vsyscall_page): Update.
2418 * source-cache.c (source_cache::get_plain_source_lines): Update.
2419 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2420 (svr4_current_sos_direct, svr4_exec_displacement)
2421 (svr4_relocate_main_executable): Update.
2422 (svr4_iterate_over_objfiles_in_search_order): Update.
2423 * solib-frv.c (enable_break2, enable_break): Update.
2424 * solib-dsbt.c (lm_base, enable_break): Update.
2425 * solib-darwin.c (find_program_interpreter)
2426 (darwin_solib_create_inferior_hook): Update.
2427 * sol-thread.c (rw_common, ps_pdmodel): Update.
2428 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2429 * remote.c (compare_sections_command)
2430 (remote_target::trace_set_readonly_regions): Update.
2431 * remote-sim.c (get_sim_inferior_data)
2432 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2433 (gdbsim_target_open, gdbsim_target::files_info): Update.
2434 * exec.h (exec_bfd): Remove macro.
2435 * progspace.c (initialize_progspace): Update.
2436 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2437 Update.
2438 * nto-procfs.c (nto_procfs_target::post_attach)
2439 (nto_procfs_target::create_inferior): Update.
2440 * maint.c (maintenance_info_sections): Update.
2441 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2442 Update.
2443 * infcmd.c (post_create_inferior): Update.
2444 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2445 (objfile_find_memory_regions): Update.
2446 * exec.c (validate_exec_file, exec_file_attach)
2447 (exec_read_partial_read_only, print_section_info): Update.
2448 * corelow.c (core_target_open): Update.
2449 * corefile.c (reopen_exec_file, validate_files): Update.
2450 * arm-tdep.c (gdb_print_insn_arm): Update.
2451 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2452 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2453 methods.
2454
2455 2020-10-29 Tom Tromey <tom@tromey.com>
2456
2457 * progspace.h (current_target_sections): Remove macro.
2458 * solib-svr4.c (scan_dyntag): Update.
2459 * solib-dsbt.c (scan_dyntag): Update.
2460 * exec.c (exec_target::close): Update.
2461 (add_target_sections, add_target_sections_of_objfile)
2462 (remove_target_sections, exec_target::get_section_table)
2463 (exec_target::files_info, set_section_command)
2464 (exec_set_section_address, exec_target::has_memory)
2465 (exec_target::has_memory): Update.
2466
2467 2020-10-29 Tom Tromey <tom@tromey.com>
2468
2469 * source-cache.c (source_cache::get_plain_source_lines): Use
2470 current_program_space.
2471 * corefile.c (reopen_exec_file): Use current_program_space.
2472 * exec.c (exec_file_attach): Use current_program_space.
2473 * exec.h (exec_bfd_mtime): Remove.
2474
2475 2020-10-29 Tom Tromey <tom@tromey.com>
2476
2477 * gcore.c (default_gcore_mach): Remove.
2478 (create_gcore_bfd): Update.
2479
2480 2020-10-29 Tom Tromey <tom@tromey.com>
2481
2482 * progspace.c (program_space::exec_close): New method, from
2483 exec_close in exec.c.
2484 * exec.c (exec_close): Move to progspace.c.
2485 (exec_target::close, exec_file_attach): Update.
2486 * progspace.h (struct program_space) <exec_close>: Declare
2487 method.
2488
2489 2020-10-29 Tom Tromey <tom@tromey.com>
2490
2491 * progspace.h (struct program_space) <exec_filename>: Rename from
2492 pspace_exec_filename. Now a unique_xmalloc_ptr.
2493 * inferior.c (print_selected_inferior): Update.
2494 (print_inferior): Update.
2495 * mi/mi-main.c (print_one_inferior): Update.
2496 * exec.h (exec_filename): Remove macro.
2497 * corefile.c (get_exec_file): Update.
2498 * exec.c (exec_close): Update.
2499 (exec_file_attach): Update.
2500 * progspace.c (clone_program_space): Update.
2501 (print_program_space): Update.
2502
2503 2020-10-29 Tom Tromey <tom@tromey.com>
2504
2505 * target-section.h (struct target_section): Add constructor.
2506 * exec.c (build_section_table, add_target_sections_of_objfile):
2507 Update.
2508 * corelow.c (core_target::build_file_mappings): Update.
2509
2510 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2511
2512 PR gdb/19318
2513 * inferior.c (detach_inferior_command): Restore the current thread.
2514 (kill_inferior_command): Ditto.
2515
2516 2020-10-28 Tom de Vries <tdevries@suse.de>
2517
2518 PR symtab/26772
2519 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2520 map, check it in the "best match" loop.
2521
2522 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2523
2524 * m32c-tdep.c: Remove unused includes.
2525
2526 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * xtensa-tdep.c: Remove includes.
2529
2530 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2531
2532 * breakpoint.c (struct condition_command_opts): New struct.
2533 (condition_command_option_defs): New static global.
2534 (make_condition_command_options_def_group): New function.
2535 (condition_completer): Update to consider the '-force' flag.
2536 (condition_command): Use gdb::option for the '-force' flag.
2537
2538 2020-10-27 Tom de Vries <tdevries@suse.de>
2539
2540 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2541 symbols in section check.
2542
2543 2020-10-27 Tom de Vries <tdevries@suse.de>
2544
2545 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2546
2547 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2548
2549 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2550 * breakpoint.c: Update the help text of the 'condition' and 'break'
2551 commands.
2552 (set_breakpoint_condition): Take a new bool parameter
2553 to control whether condition definition should be forced even when
2554 the condition expression is invalid in all of the current locations.
2555 (condition_command): Update the call to 'set_breakpoint_condition'.
2556 (find_condition_and_thread): Take the "-force-condition" flag into
2557 account.
2558 * linespec.c (linespec_keywords): Add "-force-condition" as an
2559 element.
2560 (FORCE_KEYWORD_INDEX): New #define.
2561 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2562 as a keyword.
2563 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2564 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2565 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2566 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2567
2568 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2569
2570 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2571 * breakpoint.c (set_breakpoint_location_condition): New function.
2572 (set_breakpoint_condition): Disable a breakpoint location if parsing
2573 the condition string gives an error.
2574 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2575 (build_target_condition_list): Ditto.
2576 (build_target_command_list): Ditto.
2577 (build_bpstat_chain): Ditto.
2578 (print_one_breakpoint_location): Ditto.
2579 (print_one_breakpoint): Ditto.
2580 (breakpoint_1): Ditto.
2581 (bp_location::bp_location): Ditto.
2582 (locations_are_equal): Ditto.
2583 (update_breakpoint_locations): Ditto.
2584 (enable_disable_bp_num_loc): Ditto.
2585 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2586 (find_condition_and_thread_for_sals): New static function.
2587 (create_breakpoint): Call find_condition_and_thread_for_sals.
2588 (location_to_sals): Call find_condition_and_thread_for_sals instead
2589 of find_condition_and_thread.
2590
2591 2020-10-26 Tom de Vries <tdevries@suse.de>
2592
2593 * dwarf2/read.c (process_full_comp_unit): Call
2594 dwarf2_find_base_address.
2595
2596 2020-10-26 Tom Tromey <tromey@adacore.com>
2597
2598 * gdbtypes.c (create_range_type): Revert previous patch. Add
2599 comment.
2600
2601 2020-10-26 Pedro Alves <pedro@palves.net>
2602
2603 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2604 (my_waitpid): Use gdb::handle_eintr.
2605
2606 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * acinclude.m4: Update ptrace.m4 path.
2609 * ptrace.m4: Moved to gdbsupport.
2610
2611 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2614 instead of target_gdbarch.
2615
2616 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * jit.c (jit_reader_load_command): Pass current inferior.
2619 (jit_inferior_init): Change parameter type to inferior, use it.
2620 (jit_inferior_created): Remove.
2621 (jit_inferior_created_hook): Pass inferior parameter down.
2622 (_initialize_jit): Use jit_inferior_created_hook instead of
2623 jit_inferior_created.
2624 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2625 * infrun.c (follow_exec): Pass inferior to
2626 jit_inferior_created_hook.
2627
2628 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2631 parameter and use it.
2632 (thread_db_inferior_created): Pass inferior argument.
2633
2634 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * aix-thread.c (aix_thread_inferior_created): Add inferior
2637 parameter.
2638 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2639 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2640 * jit.c (jit_inferior_created): Likewise.
2641 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2642 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2643 * observable.h (inferior_created): Likewise.
2644 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2645 * symfile-mem.c (add_vsyscall_page): Likewise.
2646 * infcmd.c (post_create_inferior): Pass inferior argument.
2647
2648 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2649
2650 GDB 10.1 released.
2651
2652 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2653
2654 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2655 to ada_check_typedef.
2656
2657 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * f-exp.y (f_parse): Rename to...
2660 (f_language::parser): ...this.
2661 * f-lang.c (f_get_encoding): Rename to...
2662 (f_language::get_encoding): ...this.
2663 (f_op_print_tab): Rename to...
2664 (f_language::op_print_tab): ...this.
2665 (exp_descriptor_f): Rename to...
2666 (f_language::exp_descriptor_tab): ...this.
2667 (class f_language): Moved to f-lang.h.
2668 (f_language::language_arch_info): New function, moved out of class
2669 declaration.
2670 (f_language::search_name_hash): Likewise.
2671 (f_language::lookup_symbol_nonlocal): Likewise.
2672 (f_language::get_symbol_name_matcher_inner): Likewise.
2673 * f-lang.h: Add 'valprint.h' include.
2674 (class f_language): Moved here from f-lang.c.
2675 * f-typeprint.c (f_type_print_args): Delete commented out
2676 declaration.
2677 (f_print_typedef): Rename to...
2678 (f_language::print_typedef): ...this.
2679 (f_print_type): Rename to...
2680 (f_language::print_type): ...this.
2681 (f_type_print_varspec_prefix): Delete declaration and rename to...
2682 (f_language::f_type_print_varspec_prefix): ...this.
2683 (f_type_print_varspec_suffix): Delete declaration and rename to...
2684 (f_language::f_type_print_varspec_suffix): ...this.
2685 (f_type_print_base): Delete declaration and rename to...
2686 (f_language::f_type_print_base): ...this.
2687 * f-valprint.c (f_value_print_inner): Rename to...
2688 (f_language::value_print_inner): ...this.
2689 * parse.c: Delete 'f-lang.h' include.
2690
2691 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * language.h (language_defn::print_type): Add variable names in
2694 declaration, and update header comment.
2695
2696 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ada-lang.c (ada_language::demangle): Rename to...
2699 (ada_language::demangle_symbol): ...this.
2700 * c-lang.c (cplus_language::demangle): Rename to...
2701 (cplus_language::demangle_symbol): ...this.
2702 * d-lang.c (d_language::demangle): Rename to...
2703 (d_language::demangle_symbol): ...this.
2704 * f-lang.c (f_language::demangle): Rename to...
2705 (f_language::demangle_symbol): ...this.
2706 * go-lang.c (go_language::demangle): Rename to...
2707 (go_language::demangle_symbol): ...this.
2708 * language.c (language_demangle): Update call to demangle_symbol.
2709 (auto_or_unknown_language::demangle): Rename to...
2710 (auto_or_unknown_language::demangle_symbol): ...this.
2711 * language.h (language_defn::demangle): Rename to...
2712 (language_defn::demangle_symbol): ...this.
2713 * objc-lang.c (objc_language::demangle): Rename to...
2714 (objc_language::demangle_symbol): ...this.
2715 * rust-lang.c (rust_language::demangle): Rename to...
2716 (rust_language::demangle_symbol): ...this.
2717
2718 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2721 (iterate_over_file_blocks): Replace use of macro with the macros
2722 definition.
2723
2724 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2727 * valprint.c (maybe_print_array_index): Replace use of macro with
2728 the macros definition.
2729
2730 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * ada-lang.c (ada_language::print_array_index): Call value_print
2733 directly.
2734 * language.c (language_defn::print_array_index): Likewise.
2735 * language.h (LA_VALUE_PRINT): Delete.
2736 * valprint.c (value_print): Call value_print on the
2737 current_language directly.
2738
2739 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * language.h (LA_PRINT_TYPEDEF): Delete.
2742 * typeprint.c (typedef_print): Call print_typedef directly on the
2743 current_language object.
2744
2745 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * m2-exp.y (m2_parse): Rename to...
2748 (m2_language::parser): ...this. Update function signature.
2749 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2750 (m2_op_print): Rename to...
2751 (m2_language::op_print_tab): ...this, and make const.
2752 (exp_descriptor_modula2): Rename to...
2753 (m2_language::exp_descriptor_modula2): ...this.
2754 (class m2_language): Move to m2-lang.h.
2755 (m2_language::language_arch_info): New function, moved out of
2756 class declaration.
2757 (m2_language::printchar): New function, body from m2_printchar.
2758 (m2_language::printstr): New function, moved out of class
2759 declaration.
2760 (m2_language::emitchar): Likewise.
2761 * m2-lang.h (m2_parse): Delete declaration.
2762 (m2_print_typedef): Delete declaration.
2763 (m2_value_print_inner): Delete declaration.
2764 (class m2_language): Class declaration moved from m2-lang.c,
2765 larger functions are left in m2-lang.c.
2766 * m2-typeprint.c (m2_print_typedef): Rename to...
2767 (m2_language::print_typedef): ...this, and update function
2768 signature.
2769 * m2-valprint.c (m2_value_print_inner): Rename to...
2770 (m2_language::value_print_inner): ...this, replace use of
2771 LA_PRINT_STRING with a direct call to printstr member function,
2772 and update recursive call.
2773
2774 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * language.c (default_is_string_type_p): Delete, implementation
2777 moved into auto_or_unknown_language::is_string_type_p.
2778 (unk_op_print_tab): Moved into
2779 auto_or_unknown_language::opcode_print_table.
2780 (unknown_language_arch_info): Delete, implementation moved into
2781 auto_or_unknown_language::language_arch_info.
2782 (class auto_or_unknown_language): New class, member functions
2783 copied from unknown_language class, with some updates.
2784 (class unknown_language): Most member functions moved into
2785 auto_or_unknown_language class. Inherit from
2786 auto_or_unknown_language class.
2787 (class auto_language): Inherit from auto_or_unknown_language.
2788 Delete most member functions.
2789
2790 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2791
2792 * stabsread.c (read_member_functions): Remove gdb_assert.
2793
2794 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2795
2796 * gdbtypes.c (init_complex_type): Check target type name.
2797
2798 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2799
2800 * target-debug.h (target_debug_print_struct_target_ops_p):
2801 Remove.
2802 (target_debug_print_async_callback_ftype_p): Remove.
2803 (target_debug_print_struct_trace_state_variable_p): Remove.
2804 (target_debug_print_struct_traceframe_info_p): Remove.
2805 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2806 (target_debug_print_enum_btrace_format): Remove.
2807 (target_debug_print_enum_info_proc_what): Remove.
2808 (target_debug_print_thread_info_pp): Remove.
2809
2810 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * target.h (struct target_ops) <make_corefile_notes>:
2813 Change return type to unique pointer.
2814 * target.c (dummy_make_corefile_notes): Likewise.
2815 * exec.c (struct exec_target) <make_corefile_notes>:
2816 Likewise.
2817 (exec_target::make_corefile_notes): Likewise.
2818 * procfs.c (class procfs_target) <make_corefile_notes>:
2819 Likewise.
2820 (procfs_do_thread_registers): Adjust to unique pointer.
2821 (struct procfs_corefile_thread_data): Add constructor.
2822 <note_data>: Change type to unique pointer.
2823 (procfs_corefile_thread_callback): Adjust to unique pointer.
2824 (procfs_target::make_corefile_notes): Change return type to
2825 unique pointer.
2826 * target-delegates.c: Re-generate.
2827 * gcore.c (write_gcore_file_1): Adjust.
2828 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2829 New.
2830
2831 2020-10-22 Tom de Vries <tdevries@suse.de>
2832
2833 * block.c (find_block_in_blockvector): Make sure the returned block
2834 contains pc.
2835
2836 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 PR gdb/26693
2839 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2840 parameter.
2841 (load_cu): Pass existing CU.
2842 (process_imported_unit_die): Likewise.
2843 (follow_die_offset): Likewise.
2844
2845 2020-10-22 Luis Machado <luis.machado@linaro.org>
2846
2847 * corelow.c (core_target::xfer_partial): Also check for an empty
2848 m_core_unavailable_mappings vector.
2849
2850 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2853 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2854 * f-exp.y (arglist): Allow for a series of subranges.
2855 (subrange): Add cases for subranges with strides.
2856 * f-lang.c (value_f90_subarray): Catch use of array strides and
2857 throw an error.
2858 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2859
2860 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2861
2862 * expprint.c (print_subexp_standard): Change enum range_type to
2863 range_flag and rename variables to match.
2864 (dump_subexp_body_standard): Likewise.
2865 * expression.h (enum range_type): Rename to...
2866 (enum range_flag): ...this.
2867 (range_types): Rename to...
2868 (range_flags): ...this.
2869 * f-lang.c (value_f90_subarray): Change enum range_type to
2870 range_flag and rename variables to match.
2871 * parse.c (operator_length_standard): Likewise.
2872 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2873 range_type to range_flag.
2874 * rust-lang.c (rust_evaluate_funcall): Likewise.
2875 (rust_range): Likewise.
2876 (rust_compute_range): Likewise.
2877 (rust_subscript): Likewise.
2878
2879 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * expprint.c (print_subexp_standard): Update to reflect changes to
2882 enum range_type.
2883 (dump_subexp_body_standard): Likewise.
2884 * expression.h (enum range_type): Convert to a bit field enum, and
2885 make the enum unsigned.
2886 * f-exp.y (subrange): Update to reflect changes to enum
2887 range_type.
2888 * f-lang.c (value_f90_subarray): Likewise.
2889 * parse.c (operator_length_standard): Likewise.
2890 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2891 * rust-lang.c (rust_range): Likewise.
2892 (rust_compute_range): Likewise.
2893 (rust_subscript): Likewise.
2894
2895 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2898 (displaced_step_in_progress): Fix comment.
2899
2900 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2903 * gdbarch.c: Re-generate.
2904 * gdbarch.h: Re-generate.
2905 * gcore.c (write_gcore_file_1): Adjust.
2906 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2907 constructor.
2908 <note_data>: Change type to unique pointer.
2909 <abort_iteration>: Change type to bool.
2910 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2911 (fbsd_collect_thread_registers): Return void, adjust.
2912 (struct fbsd_corefile_thread_data): Add construtor.
2913 <note_data>: Change type to unique pointer.
2914 (fbsd_corefile_thread): Adjust.
2915 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2916 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2917 to unique pointer, adjust.
2918 (struct linux_collect_regset_section_cb_data): Add constructor.
2919 <note_data>: Change type to unique pointer.
2920 <abort_iteration>: Change type to bool.
2921 (linux_collect_thread_registers): Return void, adjust.
2922 (struct linux_corefile_thread_data): Add constructor.
2923 <note_data>: Change type to unique pointer.
2924 (linux_corefile_thread): Adjust.
2925 (linux_make_corefile_notes): Return unique pointer, adjust.
2926
2927 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2930 * gdbarch.c: Re-generate.
2931 * gdbarch.h: Re-generate.
2932 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2933 bool.
2934 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2935 Likewise.
2936 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2937 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2938 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2939 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2940
2941 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * gdbarch.sh: Make generated predicates return bool.
2944 * gdbarch.c: Re-generate.
2945 * gdbarch.h: Re-generate.
2946
2947 2020-10-20 Tom Tromey <tom@tromey.com>
2948
2949 * varobj-iter.h (struct varobj_item): Remove typedef.
2950
2951 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * infrun.c (currently_stepping): Change int to bool
2954 (maybe_software_singlestep): Likewise.
2955 (show_stop_on_solib_events): Likewise.
2956 (stepping_past_nonsteppable_watchpoint): Likewise.
2957 (displaced_step_in_progress_any_inferior): Likewise.
2958 (displaced_step_in_progress_thread): Likewise.
2959 (keep_going_stepped_thread): Likewise.
2960 (thread_still_needs_step_over): Likewise.
2961 (start_step_over): Likewise.
2962 (do_target_resume): Likewise.
2963 (resume_1): Likewise.
2964 (clear_proceed_status): Likewise.
2965 (thread_still_needs_step_over_bp): Likewise.
2966 (proceed): Likewise.
2967 (switch_back_to_stepped_thread): Likewise.
2968 (adjust_pc_after_break): Likewise.
2969 (stepped_in_from): Likewise.
2970 (handle_stop_requested): Likewise.
2971 (handle_syscall_event): Likewise.
2972 (handle_no_resumed): Likewise.
2973 (handle_inferior_event): Likewise.
2974 (finish_step_over): Likewise.
2975 (handle_signal_stop): Likewise.
2976 (process_event_stop_test): Likewise.
2977
2978 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * infrun.c (get_displaced_stepping_state): Fix comment.
2981
2982 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2983
2984 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2985
2986 2020-10-19 Tom Tromey <tromey@adacore.com>
2987
2988 PR tui/26719
2989 * tui/tui-winsource.h (struct tui_source_window_base)
2990 <refresh_window>: Rename from refresh_pad.
2991 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2992 Rename from refresh_pad.
2993 (tui_source_window_base::show_source_content)
2994 (tui_source_window_base::do_scroll_horizontal): Update.
2995
2996 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2997
2998 * thread.c (_initialize_thread): Fine-tune the help text of
2999 'info threads'.
3000
3001 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3002
3003 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3004
3005 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3006
3007 * breakpoint.c (handle_jit_event): Add an argument, change how
3008 `jit_event_handler` is called.
3009
3010 2020-10-17 Tom Tromey <tom@tromey.com>
3011
3012 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3013 (scan_xcoff_symtab): Update.
3014 * psymtab.h (class psymtab_storage) <global_psymbols,
3015 static_psymbols, current_global_psymbols,
3016 current_static_psymbols>: Remove.
3017 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3018 (match_partial_symbol, lookup_partial_symbol): Update.
3019 (print_partial_symbols): Change parameters.
3020 (dump_psymtab, recursively_search_psymtabs)
3021 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3022 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3023 (concat): Remove.
3024 (end_psymtab_common): Simplify.
3025 (append_psymbol_to_list): Change parameters.
3026 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3027 (init_psymbol_list): Simplify.
3028 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3029 * psympriv.h (struct partial_symtab) <empty>: New method.
3030 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3031 Remove.
3032 <global_psymbols, static_psymbols>: New members.
3033 <add_psymbol>: New methods.
3034 (add_psymbol_to_list): Don't declare.
3035 (psymbol_placement): Move earlier.
3036 * mdebugread.c (parse_partial_symbols): Update.
3037 (handle_psymbol_enumerators): Change parameters.
3038 (mdebug_expand_psymtab): Update.
3039 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3040 (add_partial_symbol): Update.
3041 * dwarf2/index-write.c (write_psymbols): Change parameters.
3042 (write_one_signatured_type): Update.
3043 (recursively_count_psymbols): Update.
3044 (recursively_write_psymbols): Update.
3045 (class debug_names) <recursively_write_psymbols>: Update.
3046 <write_psymbols>: Change parameters.
3047 <write_one_signatured_type>: Update.
3048 * dbxread.c (read_dbx_symtab): Update.
3049 (dbx_end_psymtab): Use partial_symtab::empty.
3050 * ctfread.c (struct ctf_context) <pst>: New member.
3051 (create_partial_symtab): Set it.
3052 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3053 (scan_partial_symbols): Use the psymtab's context. Update.
3054
3055 2020-10-17 Tom Tromey <tom@tromey.com>
3056
3057 * valprint.c (generic_value_print): Remove comment.
3058 * m2-valprint.c (m2_value_print_inner): Remove comment.
3059 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3060 type.
3061
3062 2020-10-17 Tom de Vries <tdevries@suse.de>
3063
3064 PR symtab/26317
3065 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3066 symbol main.
3067
3068 2020-10-14 Tom de Vries <tdevries@suse.de>
3069
3070 PR gdb/26733
3071 * solib.c (solib_contains_address_p): Handle
3072 'solib->sections == nullptr'.
3073
3074 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3075
3076 PR gdb/26642
3077 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3078 target can't do async.
3079 * target.c (target_wait): Assert that we don't pass
3080 TARGET_WNOHANG to a target that can't async.
3081
3082 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3083
3084 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3085 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3086 * alpha-bsd-nat.c: Adjust include.
3087 * alpha-bsd-tdep.h: Adjust comment.
3088 * alpha-nbsd-tdep.c: Rename to ...
3089 * alpha-netbsd-tdep.c: ... this, adjust include.
3090 * amd64-nbsd-nat.c: Rename to ...
3091 * amd64-netbsd-nat.c: ... this, adjust include.
3092 * amd64-nbsd-tdep.c: Rename to ...
3093 * amd64-netbsd-tdep.c: ... this, adjust include.
3094 * amd64-tdep.h: Adjust include.
3095 * arm-nbsd-nat.c: Rename to ...
3096 * arm-netbsd-nat.c: ... this, adjust include.
3097 * arm-nbsd-tdep.c: Rename to ...
3098 * arm-netbsd-tdep.c: ... this, adjust include.
3099 * arm-nbsd-tdep.h: Rename to ...
3100 * arm-netbsd-tdep.h: ... this, adjust include.
3101 * configure.nat: Adjust file lists.
3102 * configure.tgt: Likewise.
3103 * hppa-nbsd-nat.c: Rename to ...
3104 * hppa-netbsd-nat.c: ... this, adjust include.
3105 * hppa-nbsd-tdep.c: Rename to ...
3106 * hppa-netbsd-tdep.c: ... this, adjust include.
3107 * i386-nbsd-nat.c: Rename to ...
3108 * i386-netbsd-nat.c: ... this, adjust include.
3109 * i386-nbsd-tdep.c: Rename to ...
3110 * i386-netbsd-tdep.c: ... this, adjust include.
3111 * m68k-bsd-nat.c: Adjust include.
3112 * mips-nbsd-nat.c: Rename to ...
3113 * mips-netbsd-nat.c: ... this, adjust include.
3114 * mips-nbsd-tdep.c: Rename to ...
3115 * mips-netbsd-tdep.c: ... this, adjust include.
3116 * mips-nbsd-tdep.h: Rename to ...
3117 * mips-netbsd-tdep.h: ... this.
3118 * nbsd-nat.c: Rename to ...
3119 * netbsd-nat.c: ... this, adjust include.
3120 * nbsd-nat.h: Rename to ...
3121 * netbsd-nat.h: ... this, adjust include.
3122 * nbsd-tdep.c: Rename to ...
3123 * netbsd-tdep.c: ... this, adjust include.
3124 * nbsd-tdep.h: Rename to ...
3125 * netbsd-tdep.h: ... this.
3126 * ppc-nbsd-nat.c: Rename to ...
3127 * ppc-netbsd-nat.c: ... this, adjust include.
3128 * ppc-nbsd-tdep.c: Rename to ...
3129 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3130 * ppc-nbsd-tdep.h: Rename to ...
3131 * ppc-netbsd-tdep.h: ... this.
3132 * sh-nbsd-nat.c: Rename to ...
3133 * sh-netbsd-nat.c: ... this, adjust include.
3134 * sh-nbsd-tdep.c: Rename to ...
3135 * sh-netbsd-tdep.c: ... this, adjust include.
3136 * sparc-nbsd-nat.c: Rename to ...
3137 * sparc-netbsd-nat.c: ... this.
3138 * sparc-nbsd-tdep.c: Rename to ...
3139 * sparc-netbsd-tdep.c: ... this, adjust include.
3140 * sparc64-nbsd-nat.c: Rename to ...
3141 * sparc64-netbsd-nat.c: ... this.
3142 * sparc64-nbsd-tdep.c: Rename to ...
3143 * sparc64-netbsd-tdep.c: ... this, adjust include.
3144 * sparc64-tdep.h: Adjust comment.
3145 * vax-bsd-nat.c: Adjust include.
3146 * vax-nbsd-tdep.c: Rename to ...
3147 * vax-netbsd-tdep.c: ... this, adjust include.
3148
3149 2020-10-12 Tom Tromey <tom@tromey.com>
3150
3151 * target.h (struct target_ops) <get_section_table>: Update.
3152 (target_get_section_table): Update.
3153 * target.c (target_get_section_table, target_section_by_addr)
3154 (memory_xfer_partial_1): Update.
3155 * target-section.h (target_section_table): Now an alias.
3156 * target-delegates.c: Rebuild.
3157 * target-debug.h (target_debug_print_target_section_table_p):
3158 Rename from target_debug_print_struct_target_section_table_p.
3159 * symfile.c (build_section_addr_info_from_section_table): Update.
3160 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3161 * solib-svr4.c (scan_dyntag): Update.
3162 * solib-dsbt.c (scan_dyntag): Update.
3163 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3164 Update.
3165 * record-full.c (record_full_core_target::xfer_partial): Update.
3166 * progspace.h (struct program_space) <target_sections>: Update.
3167 * exec.h (print_section_info): Update.
3168 * exec.c (exec_target::close, build_section_table)
3169 (add_target_sections, add_target_sections_of_objfile)
3170 (remove_target_sections, exec_on_vfork)
3171 (section_table_available_memory)
3172 (section_table_xfer_memory_partial)
3173 (exec_target::get_section_table, exec_target::xfer_partial)
3174 (print_section_info, set_section_command)
3175 (exec_set_section_address, exec_target::has_memory): Update.
3176 * corelow.c (core_target::build_file_mappings)
3177 (core_target::xfer_partial, core_target::info_proc_mappings)
3178 (core_target::info_proc_mappings): Update.
3179 * bfd-target.c (class target_bfd): Update
3180
3181 2020-10-12 Tom Tromey <tom@tromey.com>
3182
3183 * progspace.c (program_space::~program_space): Don't call
3184 clear_section_table.
3185 * exec.h (clear_section_table): Don't declare.
3186 * exec.c (exec_target::close): Update.
3187 (clear_section_table): Remove.
3188
3189 2020-10-12 Tom Tromey <tom@tromey.com>
3190
3191 * exec.c (add_target_sections_of_objfile): Simplify.
3192
3193 2020-10-12 Tom Tromey <tom@tromey.com>
3194
3195 * solib.c (solib_map_sections): Update.
3196 * record-full.c (record_full_core_open_1): Update.
3197 * exec.h (build_section_table): Return a target_section_table.
3198 * exec.c (exec_file_attach): Update.
3199 (build_section_table): Return a target_section_table.
3200 * corelow.c (core_target::core_target): Update.
3201 * bfd-target.c (target_bfd::target_bfd): Update.
3202
3203 2020-10-12 Tom Tromey <tom@tromey.com>
3204
3205 * target.c (target_section_by_addr, memory_xfer_partial_1):
3206 Update.
3207 * target-section.h (struct target_section_table): Use
3208 std::vector.
3209 * symfile.h (build_section_addr_info_from_section_table): Take a
3210 target_section_table.
3211 * symfile.c (build_section_addr_info_from_section_table): Take a
3212 target_section_table.
3213 * solist.h (struct so_list) <sections>: Change type.
3214 <sections_end>: Remove.
3215 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3216 (solib_contains_address_p): Update.
3217 * solib-svr4.c (scan_dyntag): Update.
3218 * solib-dsbt.c (scan_dyntag): Update.
3219 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3220 Update.
3221 * record-full.c (record_full_core_start, record_full_core_end):
3222 Remove.
3223 (record_full_core_sections): New global.
3224 (record_full_core_open_1, record_full_core_target::xfer_partial):
3225 Update.
3226 * exec.h (build_section_table, section_table_xfer_memory_partial)
3227 (add_target_sections): Take a target_section_table.
3228 * exec.c (exec_file_attach, clear_section_table): Update.
3229 (resize_section_table): Remove.
3230 (build_section_table, add_target_sections): Take a
3231 target_section_table.
3232 (add_target_sections_of_objfile, remove_target_sections)
3233 (exec_on_vfork): Update.
3234 (section_table_available_memory): Take a target_section_table.
3235 (section_table_read_available_memory): Update.
3236 (section_table_xfer_memory_partial): Take a target_section_table.
3237 (print_section_info, set_section_command)
3238 (exec_set_section_address, exec_target::has_memory): Update.
3239 * corelow.c (class core_target) <m_core_section_table,
3240 m_core_file_mappings>: Remove braces.
3241 <~core_target>: Remove.
3242 (core_target::core_target): Update.
3243 (core_target::~core_target): Remove.
3244 (core_target::build_file_mappings)
3245 (core_target::xfer_memory_via_mappings)
3246 (core_target::xfer_partial, core_target::info_proc_mappings):
3247 Update.
3248 * bfd-target.c (target_bfd::xfer_partial): Update.
3249 (target_bfd::target_bfd): Update.
3250 (target_bfd::~target_bfd): Remove.
3251
3252 2020-10-12 Tom Tromey <tom@tromey.com>
3253
3254 * target.h (struct target_section, struct target_section_table):
3255 Move to target-section.h.
3256 * target-section.h: New file.
3257
3258 2020-10-12 Pedro Alves <pedro@palves.net>
3259
3260 PR exp/26602
3261 * valops.c (struct struct_field_searcher): New.
3262 (update_search_result): Rename to ...
3263 (struct_field_searcher::update_result): ... this. Simplify
3264 prototype. Record all found fields.
3265 (do_search_struct_field): Rename to ...
3266 (struct_field_searcher::search): ... this. Simplify prototype.
3267 Maintain stack of visited baseclass path. Call update_result for
3268 fields too. Keep searching fields in baseclasses instead of
3269 stopping at the first found field.
3270 (search_struct_field): Use struct_field_searcher. When looking
3271 for fields, report ambiguous access attempts.
3272
3273 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * frame.c (inside_main_func): Check full symbols as well as
3276 minimal symbols.
3277
3278 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3279
3280 * ada-lang.c (advance_wild_match): Rewrite the function's
3281 description. Change the type of target0, t0 and t1 to char.
3282
3283 2020-10-09 Tom Tromey <tromey@adacore.com>
3284
3285 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3286
3287 2020-10-09 Tom Tromey <tromey@adacore.com>
3288
3289 * ada-lang.h (ada_encode): Return std::string.
3290 * ada-lang.c (ada_encode_1): Return std::string.
3291 (ada_encode): Likewise.
3292 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3293 Update.
3294 * ada-exp.y (block_lookup, write_var_or_type): Update.
3295
3296 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3297
3298 PR exp/26714
3299 * printcmd.c (print_formatted): Handle void results as
3300 unformatted prints.
3301
3302 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3303
3304 * arch/aarch32.c (aarch32_create_target_description): Release the
3305 target_desc_up as late as possible.
3306 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3307 * arch/amd64.c (amd64_create_target_description): Likewise.
3308 * arch/arc.c (arc_create_target_description): Return a
3309 target_desc_up, don't release it.
3310 * arch/arc.h (arc_create_target_description): Update declaration.
3311 (arc_lookup_target_description): Move target_desc_up into the
3312 cache, and return a borrowed pointer.
3313 * arch/arm.c (arm_create_target_description): Release the
3314 target_desc_up as late as possible.
3315 * arch/i386.c (i386_create_target_description): Likewise.
3316 * arch/riscv.h (riscv_create_target_description): Update
3317 declaration to match definition.
3318 * arch/tic6x.c (tic6x_create_target_description): Release the
3319 target_desc_up as late as possible.
3320
3321 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3322
3323 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3324 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3325
3326 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3327
3328 * source.c (directory_command): Notify observers that "directories"
3329 parameter has changed.
3330
3331 2020-10-08 Tom Tromey <tom@tromey.com>
3332
3333 * cli/cli-cmds.c (print_disassembly): Style function name and
3334 addresses. Add _() wrappers.
3335
3336 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3337
3338 * NEWS: Mention ARC support in GDBserver.
3339
3340 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * arch/aarch32.c (aarch32_create_target_description): Release
3343 unique_ptr returned from allocate_target_description.
3344 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3345 * arch/amd64.c (amd64_create_target_description): Likewise.
3346 * arch/arc.c (arc_create_target_description): Likewise.
3347 * arch/arm.c (arm_create_target_description): Likewise.
3348 * arch/i386.c (i386_create_target_description): Likewise.
3349 * arch/riscv.c (riscv_create_target_description): Update return
3350 type. Handle allocate_target_description returning a unique_ptr.
3351 (riscv_lookup_target_description): Update to handle unique_ptr.
3352 * arch/tic6x.c (tic6x_create_target_description): Release
3353 unique_ptr returned from allocate_target_description.
3354 * features/microblaze-with-stack-protect.c: Regenerate.
3355 * features/microblaze.c: Regenerate.
3356 * features/mips-dsp-linux.c: Regenerate.
3357 * features/mips-linux.c: Regenerate.
3358 * features/mips64-dsp-linux.c: Regenerate.
3359 * features/mips64-linux.c: Regenerate.
3360 * features/nds32.c: Regenerate.
3361 * features/nios2.c: Regenerate.
3362 * features/or1k.c: Regenerate.
3363 * features/rs6000/powerpc-32.c: Regenerate.
3364 * features/rs6000/powerpc-32l.c: Regenerate.
3365 * features/rs6000/powerpc-403.c: Regenerate.
3366 * features/rs6000/powerpc-403gc.c: Regenerate.
3367 * features/rs6000/powerpc-405.c: Regenerate.
3368 * features/rs6000/powerpc-505.c: Regenerate.
3369 * features/rs6000/powerpc-601.c: Regenerate.
3370 * features/rs6000/powerpc-602.c: Regenerate.
3371 * features/rs6000/powerpc-603.c: Regenerate.
3372 * features/rs6000/powerpc-604.c: Regenerate.
3373 * features/rs6000/powerpc-64.c: Regenerate.
3374 * features/rs6000/powerpc-64l.c: Regenerate.
3375 * features/rs6000/powerpc-7400.c: Regenerate.
3376 * features/rs6000/powerpc-750.c: Regenerate.
3377 * features/rs6000/powerpc-860.c: Regenerate.
3378 * features/rs6000/powerpc-altivec32.c: Regenerate.
3379 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3380 * features/rs6000/powerpc-altivec64.c: Regenerate.
3381 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3382 * features/rs6000/powerpc-e500.c: Regenerate.
3383 * features/rs6000/powerpc-e500l.c: Regenerate.
3384 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3385 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3386 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3387 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3388 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3389 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3390 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3391 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3392 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3393 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3394 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3395 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3396 * features/rs6000/powerpc-vsx32.c: Regenerate.
3397 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3398 * features/rs6000/powerpc-vsx64.c: Regenerate.
3399 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3400 * features/rs6000/rs6000.c: Regenerate.
3401 * features/rx.c: Regenerate.
3402 * features/s390-gs-linux64.c: Regenerate.
3403 * features/s390-linux32.c: Regenerate.
3404 * features/s390-linux32v1.c: Regenerate.
3405 * features/s390-linux32v2.c: Regenerate.
3406 * features/s390-linux64.c: Regenerate.
3407 * features/s390-linux64v1.c: Regenerate.
3408 * features/s390-linux64v2.c: Regenerate.
3409 * features/s390-te-linux64.c: Regenerate.
3410 * features/s390-tevx-linux64.c: Regenerate.
3411 * features/s390-vx-linux64.c: Regenerate.
3412 * features/s390x-gs-linux64.c: Regenerate.
3413 * features/s390x-linux64.c: Regenerate.
3414 * features/s390x-linux64v1.c: Regenerate.
3415 * features/s390x-linux64v2.c: Regenerate.
3416 * features/s390x-te-linux64.c: Regenerate.
3417 * features/s390x-tevx-linux64.c: Regenerate.
3418 * features/s390x-vx-linux64.c: Regenerate.
3419 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3420 from allocate_target_description.
3421 * target-descriptions.c (allocate_target_description): Update
3422 return type.
3423 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3424 allocate_target_description.
3425
3426 2020-10-07 Tom Tromey <tromey@adacore.com>
3427
3428 * unittests/search-memory-selftests.c: New file.
3429 * Makefile.in (SELFTESTS_SRCS): Add
3430 unittests/search-memory-selftests.c.
3431
3432 2020-10-07 Tom Tromey <tromey@adacore.com>
3433
3434 PR gdb/16930:
3435 * findcmd.c (_initialize_mem_search): Mention that the range is
3436 inclusive.
3437
3438 2020-10-07 Tom Tromey <tromey@adacore.com>
3439
3440 * target.h (simple_search_memory): Don't declare.
3441 * target.c (simple_search_memory): Move to gdbsupport.
3442 (default_search_memory): Update.
3443 * remote.c (remote_target::search_memory): Update.
3444
3445 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * Makefile.in (COMPILE): Add CXXFLAGS.
3448 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3449 (check-headers): Add CXXFLAGS.
3450
3451 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3452
3453 * arc-linux-tdep.h: New file.
3454 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3455 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3456 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3457 arc_linux_gregset, arc_linux_v2_regset,
3458 arc_linux_iterate_over_regset_sections,
3459 arc_linux_core_read_description): Implement.
3460 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3461 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3462 (arc_gdbarch_features_create): Add.
3463 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3464
3465 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3466
3467 * arch/arc.h: Rename "arc_gdbarch_features" to
3468 "arc_arch_features".
3469 * arc-tdep.h: Likewise.
3470 * arc-tdep.c: Likewise.
3471
3472 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 * infcmd.c (attach_command): Remove the redundant call to
3475 `clear_proceed_status`.
3476
3477 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3478
3479 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3480
3481 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3482
3483 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3484 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3485 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3486
3487 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3490 (_initialize_break_catch_sig): Don't allocate array.
3491
3492 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * symtab.c (find_pc_line): Return unmapped addresses when the
3495 requested address is also unmapped.
3496
3497 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3500 tui/tui-out.h.
3501
3502 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3505 type::is_vector instead of TYPE_VECTOR.
3506
3507 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * auto-load.c (auto_load_objfile_script_1): Don't use
3510 debugfile_holder as temporary variable when stripping drive
3511 letter.
3512
3513 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3514
3515 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3516 Add TYPE_CODE_COMPLEX.
3517 (amd64_windows_return_value): Fix types returned via XMM0.
3518
3519 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3520
3521 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3522 AArch64/ARM maintainers.
3523
3524 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 * NEWS: Mention set/show debug event-loop.
3527
3528 2020-10-02 Tom Tromey <tromey@adacore.com>
3529
3530 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3531 REG_EXTENDED.
3532
3533 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3536 * procfs.c (procfs_inferior_created): Remove.
3537 (_initialize_procfs): Don't register procfs_inferior_created.
3538
3539 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * async-event.c (invoke_async_signal_handlers): Add debug
3542 print.
3543 (check_async_event_handlers): Likewise.
3544 * event-top.c (show_debug_event_loop): New function.
3545 (_initialize_event_top): Register "set debug event-loop"
3546 setting.
3547
3548 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3551 * debug.h: Remove.
3552 * infrun.c: Include gdbsupport/common-debug.h.
3553 * linux-nat.c: Likewise.
3554
3555 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * async-event.h (create_async_signal_handler): Add name
3558 parameter.
3559 (create_async_event_handler): Likewise.
3560 * async-event.c (struct async_signal_handler) <name>: New field.
3561 (struct async_event_handler) <name>: New field.
3562 (create_async_signal_handler): Assign name.
3563 (create_async_event_handler): Assign name.
3564 * event-top.c (async_init_signals): Pass name when creating
3565 handler.
3566 * infrun.c (_initialize_infrun): Likewise.
3567 * record-btrace.c (record_btrace_push_target): Likewise.
3568 * record-full.c (record_full_open): Likewise.
3569 * remote-notif.c (remote_notif_state_allocate): Likewise.
3570 * remote.c (remote_target::open_1): Likewise.
3571 * tui/tui-win.c (tui_initialize_win): Likewise.
3572
3573 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3574
3575 * async-event.c (initialize_async_signal_handlers): Pass name to
3576 add_file_handler
3577 * event-top.c (ui_register_input_event_handler): Likewise.
3578 * linux-nat.c (linux_nat_target::async): Likewise.
3579 * run-on-main-thread.c (_initialize_run_on_main_thread):
3580 Likewise
3581 * ser-base.c (reschedule): Likewise.
3582 (ser_base_async): Likewise.
3583 * tui/tui-io.c: Likewise.
3584 * top.h (struct ui) <num>: New field.
3585 * top.c (highest_ui_num): New variable.
3586 (ui::ui): Initialize num.
3587
3588 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * observable.h <inferior_created>: Remove parameters. Update all
3591 listeners.
3592 * inferior.h (post_create_inferior): Remove target parameter.
3593 Update all callers.
3594
3595 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3596
3597 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3598 and DW_MACRO_undef_strx.
3599 (dwarf_decode_macros): Likewise
3600 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3601 which is the value of DW_AT_str_offsets_base.
3602 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3603 str_offsets_base.
3604
3605 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3606
3607 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3608
3609 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3610
3611 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3612 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3613
3614 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3615
3616 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3617
3618 2020-09-30 Tom de Vries <tdevries@suse.de>
3619
3620 PR symtab/26683
3621 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3622
3623 2020-09-30 Tom Tromey <tromey@adacore.com>
3624
3625 * dwarf2/read.c (handle_variant): Use constant_value.
3626
3627 2020-09-29 Tom Tromey <tom@tromey.com>
3628
3629 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3630 (read_file_scope, dwarf2_get_pc_bounds)
3631 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3632 (read_structure_type, handle_struct_member_die)
3633 (read_enumeration_type, read_array_type, read_set_type)
3634 (read_tag_pointer_type, read_tag_reference_type)
3635 (read_subroutine_type, read_base_type, read_subrange_type)
3636 (read_full_die_1, partial_die_info::read)
3637 (partial_die_info::read, by, new_symbol)
3638 (dwarf2_const_value_data, dwarf2_const_value_attr)
3639 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3640 (prepare_one_comp_unit): Update.
3641 * dwarf2/attribute.h (DW_UNSND): Remove.
3642
3643 2020-09-29 Tom Tromey <tom@tromey.com>
3644
3645 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3646 (read_subroutine_type, partial_die_info::read)
3647 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3648 (dwarf2_add_member_fn): Update.
3649 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3650 * dwarf2/attribute.c (attribute::as_boolean): New method.
3651
3652 2020-09-29 Tom Tromey <tom@tromey.com>
3653
3654 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3655 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3656 method.
3657 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3658
3659 2020-09-29 Tom Tromey <tom@tromey.com>
3660
3661 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3662 the attribute's form.
3663
3664 2020-09-29 Tom Tromey <tom@tromey.com>
3665
3666 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3667 (dwarf2_add_member_fn): Update.
3668 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3669 * dwarf2/attribute.c (attribute::defaulted): New method, from
3670 is_valid_DW_AT_defaulted.
3671
3672 2020-09-29 Tom Tromey <tom@tromey.com>
3673
3674 * dwarf2/read.c (dw2_get_file_names_reader)
3675 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3676 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3677 (dwarf2_symbol_mark_computed): Use as_unsigned.
3678 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3679 method.
3680 <form_is_section_offset>: Update comment.
3681
3682 2020-09-29 Tom Tromey <tom@tromey.com>
3683
3684 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3685 dwarf2_default_access_attribute. Look up attribute.
3686 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3687 Update.
3688
3689 2020-09-29 Tom Tromey <tom@tromey.com>
3690
3691 * dwarf2/read.c (skip_one_die): Update.
3692 (read_full_die_1): Change how reprocessing is done.
3693 (partial_die_info::read): Update.
3694 (read_attribute_value): Remove need_reprocess parameter.
3695 (read_attribute): Likewise.
3696 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3697 New method.
3698
3699 2020-09-29 Tom Tromey <tom@tromey.com>
3700
3701 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3702 (dwarf2_const_value_attr, dump_die_shallow)
3703 (dwarf2_fetch_constant_bytes): Update.
3704 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3705 comment.
3706 <set_address>: New method.
3707 (DW_ADDR): Remove.
3708 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3709 (attribute::as_string, attribute::as_address): Add assert.
3710
3711 2020-09-29 Tom Tromey <tom@tromey.com>
3712
3713 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3714 (read_attribute_reprocess, read_attribute_value): Update.
3715 (read_attribute): Clear requires_reprocessing.
3716 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3717 form_requires_reprocessing>: New methods.
3718 <string_init>: Clear requires_reprocessing.
3719 <set_unsigned_reprocess>: New method.
3720 <name>: Shrink by one bit.
3721 <requires_reprocessing>: New member.
3722 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3723 method.
3724
3725 2020-09-29 Tom Tromey <tom@tromey.com>
3726
3727 * dwarf2/read.c (read_attribute_value): Update.
3728 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3729 set_unsigned>: New methods.
3730 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3731
3732 2020-09-29 Tom Tromey <tom@tromey.com>
3733
3734 * dwarf2/read.c (get_alignment, read_array_order)
3735 (read_attribute_value, dwarf2_const_value_attr)
3736 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3737 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3738 New methods.
3739 (DW_SND): Remove.
3740
3741 2020-09-29 Tom Tromey <tom@tromey.com>
3742
3743 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3744 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3745 Update.
3746 * dwarf2/attribute.h (struct attribute) <as_signature,
3747 set_signature>: New methods.
3748 (DW_SIGNATURE): Remove.
3749
3750 2020-09-29 Tom Tromey <tom@tromey.com>
3751
3752 * dwarf2/read.c (read_call_site_scope)
3753 (handle_data_member_location, dwarf2_add_member_fn)
3754 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3755 (partial_die_info::read, read_attribute_value)
3756 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3757 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3758 (dwarf2_symbol_mark_computed): Update.
3759 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3760 methods.
3761 (DW_BLOCK): Remove.
3762 * dwarf2/attribute.c (attribute::form_is_block): Add
3763 DW_FORM_data16.
3764
3765 2020-09-29 Tom Tromey <tom@tromey.com>
3766
3767 * dwarf2/read.c (read_cutu_die_from_dwo)
3768 (read_attribute_reprocess, read_attribute_value, read_attribute)
3769 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3770 (dwarf2_fetch_constant_bytes): Update.
3771 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3772 <set_string_noncanonical, set_string_canonical>: New methods.
3773 <string_is_canonical>: Update comment.
3774 <canonical_string_p>: Add assert.
3775 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3776 * dwarf2/attribute.c (attribute::form_is_string): New method.
3777 (attribute::string): Use it.
3778
3779 2020-09-29 Tom Tromey <tom@tromey.com>
3780
3781 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3782 (dump_die_shallow): Use canonical_string_p.
3783 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3784 method.
3785
3786 2020-09-29 Tom Tromey <tom@tromey.com>
3787
3788 * dwarf2/read.c (partial_die_info::read)
3789 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3790 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3791 attribute::as_string.
3792
3793 2020-09-29 Tom Tromey <tom@tromey.com>
3794
3795 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3796 DW_ADDR.
3797 (attribute::string): Don't use DW_STRING.
3798 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3799 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3800
3801 2020-09-29 Tom Tromey <tom@tromey.com>
3802
3803 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3804 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3805 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3806 * dwarf2/attribute.h (struct attribute): Rename methods.
3807 * dwarf2/attribute.c (attribute::as_address): Rename from
3808 value_as_address.
3809 (attribute::as_string): Rename from value_as_string.
3810
3811 2020-09-29 Tom Tromey <tom@tromey.com>
3812
3813 * dwarf2/read.c (partial_die_info::read) <case
3814 DW_AT_linkage_name>: Use value_as_string.
3815 (dwarf2_string_attr): Use value_as_string.
3816 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3817 method.
3818 * dwarf2/attribute.c (attribute::value_as_string): New method.
3819
3820 2020-09-29 Pedro Alves <pedro@palves.net>
3821
3822 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3823 defined before using '#pragma GCC diagnostic' instead of checking
3824 __clang__.
3825
3826 2020-09-28 Tom Tromey <tom@tromey.com>
3827
3828 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3829 (handle_signal_stop): Update.
3830 * procfs.c (procfs_target::insert_watchpoint): Update.
3831 * target.h (target_have_steppable_watchpoint): Now a function.
3832
3833 2020-09-28 Tom Tromey <tom@tromey.com>
3834
3835 * infrun.c (set_schedlock_func): Update.
3836 * target.h (target_can_lock_scheduler): Now a function.
3837
3838 2020-09-28 Tom Tromey <tom@tromey.com>
3839
3840 * inferior.h (class inferior) <has_execution>: Update.
3841 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3842 * valops.c (find_function_in_inferior)
3843 (value_allocate_space_in_inferior): Update.
3844 * top.c (kill_or_detach): Update.
3845 * target.c (target_preopen, set_target_permissions): Update.
3846 (target_has_execution_current): Remove.
3847 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3848 Update.
3849 * solib.c (update_solib_list, reload_shared_libraries): Update.
3850 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3851 * solib-dsbt.c (enable_break): Update.
3852 * score-tdep.c (score7_fetch_inst): Update.
3853 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3854 Update.
3855 * remote.c (remote_target::start_remote)
3856 (remote_target::remote_check_symbols, remote_target::open_1)
3857 (remote_target::remote_detach_1, remote_target::verify_memory)
3858 (remote_target::xfer_partial, remote_target::read_description)
3859 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3860 * record-full.c (record_full_open_1): Update.
3861 * record-btrace.c (record_btrace_target_open): Update.
3862 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3863 (value_nsstring): Update.
3864 * linux-thread-db.c (add_thread_db_info)
3865 (thread_db_find_new_threads_silently, check_thread_db_callback)
3866 (try_thread_db_load_1, record_thread): Update.
3867 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3868 Update.
3869 * linux-fork.c (checkpoint_command): Update.
3870 * infrun.c (set_non_stop, set_observer_mode)
3871 (check_multi_target_resumption, for_each_just_stopped_thread)
3872 (maybe_remove_breakpoints, normal_stop)
3873 (class infcall_suspend_state): Update.
3874 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3875 (info_program_command, attach_command): Update.
3876 * infcall.c (call_function_by_hand_dummy): Update.
3877 * inf-loop.c (inferior_event_handler): Update.
3878 * gcore.c (gcore_command, derive_heap_segment): Update.
3879 * exec.c (exec_file_command): Update.
3880 * eval.c (evaluate_subexp): Update.
3881 * compile/compile.c (compile_to_object): Update.
3882 * cli/cli-dump.c (restore_command): Update.
3883 * breakpoint.c (update_watchpoint)
3884 (update_inserted_breakpoint_locations)
3885 (insert_breakpoint_locations, get_bpstat_thread): Update.
3886 * target.h (target_has_execution): Remove macro.
3887 (target_has_execution_current): Don't declare.
3888 (target_has_execution): Rename from target_has_execution_1. Add
3889 argument default.
3890
3891 2020-09-28 Tom Tromey <tom@tromey.com>
3892
3893 * mi/mi-main.c (exec_reverse_continue)
3894 (mi_cmd_list_target_features): Update.
3895 * infrun.c (set_exec_direction_func): Update.
3896 * target.c (default_execution_direction): Update.
3897 * reverse.c (exec_reverse_once): Update.
3898 * target.h (target_can_execute_reverse): Now a function.
3899
3900 2020-09-28 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-regs.c (tui_get_register)
3903 (tui_data_window::show_registers): Update.
3904 * thread.c (scoped_restore_current_thread::restore)
3905 (scoped_restore_current_thread::scoped_restore_current_thread):
3906 Update.
3907 * regcache-dump.c (regcache_print): Update.
3908 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3909 Update.
3910 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3911 * mep-tdep.c (current_me_module, current_options): Update.
3912 * linux-thread-db.c (thread_db_load): Update.
3913 * infcmd.c (registers_info, info_vector_command)
3914 (info_float_command): Update.
3915 * ia64-tdep.c (ia64_frame_prev_register)
3916 (ia64_sigtramp_frame_prev_register): Update.
3917 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3918 * gcore.c (derive_stack_segment): Update.
3919 * frame.c (get_current_frame, has_stack_frames): Update.
3920 * findvar.c (language_defn::read_var_value): Update.
3921 * arm-tdep.c (arm_pc_is_thumb): Update.
3922 * target.c (target_has_registers): Rename from
3923 target_has_registers_1.
3924 * target.h (target_has_registers): Remove macro.
3925 (target_has_registers): Rename from target_has_registers_1.
3926
3927 2020-09-28 Tom Tromey <tom@tromey.com>
3928
3929 * windows-tdep.c (tlb_make_value): Update.
3930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3931 * thread.c (scoped_restore_current_thread::restore)
3932 (scoped_restore_current_thread::scoped_restore_current_thread)
3933 (thread_command): Update.
3934 * stack.c (backtrace_command_1, frame_apply_level_command)
3935 (frame_apply_all_command, frame_apply_command): Update.
3936 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3937 Update.
3938 * gcore.c (derive_stack_segment): Update.
3939 * frame.c (get_current_frame, has_stack_frames): Update.
3940 * auxv.c (info_auxv_command): Update.
3941 * ada-tasks.c (ada_build_task_list): Update.
3942 * target.c (target_has_stack): Rename from target_has_stack_1.
3943 * target.h (target_has_stack): Remove macro.
3944 (target_has_stack): Rename from target_has_stack_1.
3945
3946 2020-09-28 Tom Tromey <tom@tromey.com>
3947
3948 * target.c (target_has_memory): Rename from target_has_memory_1.
3949 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3950 * thread.c (scoped_restore_current_thread::restore)
3951 (scoped_restore_current_thread::scoped_restore_current_thread):
3952 Update.
3953 * frame.c (get_current_frame, has_stack_frames): Update.
3954 * target.h (target_has_memory): Remove macro.
3955 (target_has_memory): Rename from target_has_memory_1.
3956
3957 2020-09-28 Tom Tromey <tom@tromey.com>
3958
3959 * target.c (target_has_all_memory_1): Remove.
3960 * target.h (target_has_all_memory): Remove define.
3961 (target_has_all_memory_1): Don't declare.
3962
3963 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3964
3965 * ser-base.c: Adjust comments formatting.
3966
3967 2020-09-27 Tom Tromey <tom@tromey.com>
3968
3969 PR tui/25342:
3970 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3971
3972 2020-09-27 Tom Tromey <tom@tromey.com>
3973
3974 PR tui/25342:
3975 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3976
3977 2020-09-27 Tom Tromey <tom@tromey.com>
3978
3979 * unittests/tui-selftests.c: Update.
3980 * tui/tui-winsource.h (struct tui_source_window_base)
3981 <extra_margin, show_line_number, refresh_pad>: New methods.
3982 <m_max_length, m_pad>: New members.
3983 (tui_copy_source_line): Update.
3984 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3985 first_col, line_width, ndigits parameters. Add length.
3986 (tui_source_window_base::show_source_line): Write to pad. Line
3987 number now 0-based.
3988 (tui_source_window_base::refresh_pad): New method.
3989 (tui_source_window_base::show_source_content): Write to pad. Call
3990 refresh_pad.
3991 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3992 not refill.
3993 (tui_source_window_base::update_exec_info): Call
3994 show_line_number.
3995 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3996 method.
3997 <m_digits>: New member.
3998 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3999 and m_max_length.
4000 (tui_source_window::show_line_number): New method.
4001 * tui/tui-io.h (tui_puts): Fix comment.
4002 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4003 m_max_length.
4004
4005 2020-09-27 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-winsource.c
4008 (tui_source_window_base::set_is_exec_point_at): Don't call
4009 show_source_line.
4010
4011 2020-09-27 Tom Tromey <tom@tromey.com>
4012
4013 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4014 method.
4015 <erase>: Update.
4016 <cursor_x, cursor_y>: Remove.
4017 <m_inner_window>: New member.
4018 (tui_py_window::rerender): Create inner window.
4019 (tui_py_window::output): Write to inner window.
4020
4021 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4022
4023 PR python/26586
4024 * cli/cli-script.c (execute_control_commands): don't set
4025 instream to nullptr here as this breaks the from_tty argument
4026 to gdb.execute in Python.
4027 (execute_user_command): set instream to nullptr here instead.
4028
4029 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * infrun.h (infrun_debug_printf): Fix formatting.
4032 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4033
4034 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4035
4036 * compile/compile-object-load.h (struct munmap_list): Add
4037 explicitly-defined move constructor.
4038
4039 2020-09-24 Tom Tromey <tromey@adacore.com>
4040
4041 PR tui/26638:
4042 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4043 method.
4044 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4045 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4046 (tui_prev_win): Rewrite.
4047
4048 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4049
4050 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4051 in WOW64 processes as SIGINT.
4052 * nat/windows-nat.h: Make wow64_process a shared variable.
4053 * windows-nat.c: Remove static wow64_process variable.
4054
4055 2020-09-23 Tom Tromey <tom@tromey.com>
4056
4057 PR symtab/25470:
4058 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4059 offset and bit size.
4060 * printcmd.c (print_scalar_formatted): Handle zero-length
4061 integer.
4062 (print_scalar_formatted): Use bit_size_differs_p.
4063 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4064 constant.
4065 (union type_specific): <int_stuff>: New member.
4066 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4067 methods.
4068 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4069 TYPE_SPECIFIC_FIELD.
4070 (recursive_dump_type, copy_type_recursive): Update.
4071 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4072 DW_AT_data_bit_offset.
4073
4074 2020-09-23 Tom Tromey <tom@tromey.com>
4075
4076 * utils.h (class gdb_argv): Add move operators.
4077 <append>: New methods.
4078 * compile/compile.c (build_argc_argv): Remove.
4079 (compile_args_argc): Remove.
4080 (compile_args_argv): Change type.
4081 (set_compile_args): Simplify.
4082 (append_args): Remove.
4083 (filter_args): Remove argcp parameter.
4084 (get_args): Return gdb_argv. Simplify.
4085 (compile_to_object): Update.
4086
4087 2020-09-23 Tom Tromey <tom@tromey.com>
4088
4089 * compile/compile-object-run.c (do_module_cleanup)
4090 <~do_module_cleanup> :Remove.
4091 (do_module_cleanup): Update.
4092 * compile/compile-object-load.h (struct munmap_list): Add move
4093 assignment operator.
4094 <source_file>: Now a std::string.
4095 <munmap_list>: Rename. No longer a pointer.
4096 * compile/compile-object-load.c (struct setup_sections_data): Add
4097 constructor.
4098 <setup_one_section>: Declare.
4099 <munmap_list>: Move earlier.
4100 <m_bfd>: New member.
4101 <m_last_size, m_last_section_first, m_last_prot,
4102 m_last_max_alignment>: Rename, add initializers where needed.
4103 (setup_sections_data::setup_one_section): Rename from
4104 setup_sections. Update.
4105 (compile_object_load): Update. Don't use bfd_map_over_sections.
4106
4107 2020-09-23 Tom Tromey <tom@tromey.com>
4108
4109 * compile/compile-object-run.c (struct do_module_cleanup): Add
4110 parameters to constructor. Update destructor.
4111 <source_file, scope, scope_data, out_value_type, out_value_addr,
4112 munmap_list_head, objfile_name_string>: Remove.
4113 <module>: New member.
4114 (do_module_cleanup): Update.
4115 (compile_object_run): Update.
4116
4117 2020-09-23 Tom Tromey <tom@tromey.com>
4118
4119 * compile/compile.c (eval_compile_command): Update.
4120 * compile/compile-object-run.h (compile_object_run): Take a
4121 compile_module_up.
4122 * compile/compile-object-run.c (compile_object_run): Take a
4123 compile_module_up.
4124 * compile/compile-object-load.h (struct compile_module): Add
4125 constructor, destructor.
4126 (compile_module_up): New typedef.
4127 (compile_object_load): Return compile_object_up.
4128 * compile/compile-object-load.c (compile_object_load): Return
4129 compile_module_up.
4130
4131 2020-09-23 Tom Tromey <tom@tromey.com>
4132
4133 * compile/compile-object-run.c (struct do_module_cleanup): Add
4134 constructor, destructor.
4135 <objfile_name_string>: Don't use struct hack.
4136 (do_module_cleanup): Use delete.
4137 (compile_object_run): Use new.
4138
4139 2020-09-23 Tom Tromey <tom@tromey.com>
4140
4141 * compile/compile-cplus-types.c
4142 (compile_cplus_convert_struct_or_union): Use std::vector.
4143 (compile_cplus_convert_func): Likewise.
4144 * compile/compile-c-types.c (convert_func): Use std::vector.
4145
4146 2020-09-21 Tom Tromey <tromey@adacore.com>
4147
4148 * sparc-tdep.c (sparc32_skip_prologue): Use
4149 skip_prologue_using_sal.
4150
4151 2020-09-19 Tom Tromey <tom@tromey.com>
4152
4153 * symfile.c (add_section_size_callback): Remove.
4154 (load_one_section): Rename from load_section_callback. Change
4155 parameters.
4156 (generic_load): Use foreach.
4157
4158 2020-09-19 Tom Tromey <tom@tromey.com>
4159
4160 * exec.c (add_to_section_table): Remove.
4161 (build_section_table): Use foreach.
4162
4163 2020-09-19 Tom Tromey <tom@tromey.com>
4164
4165 * elfread.c (elf_locate_sections): Change parameters.
4166 (elf_symfile_read): Use foreach.
4167
4168 2020-09-19 Tom Tromey <tom@tromey.com>
4169
4170 * cli/cli-dump.c (struct callback_data): Remove.
4171 (restore_one_section): Rename from restore_section_callback.
4172 Change parameters.
4173 (restore_binary_file): Change parameters.
4174 (restore_command): Use foreach.
4175
4176 2020-09-19 Tom Tromey <tom@tromey.com>
4177
4178 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4179 (gcore_copy_callback): Likewise.
4180 (gcore_memory_sections): Use foreach.
4181
4182 2020-09-19 Tom Tromey <tom@tromey.com>
4183
4184 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4185 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4186 parameters.
4187 (generic_elf_osabi_sniffer): Use foreach.
4188 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4189 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4190
4191 2020-09-19 Tom Tromey <tom@tromey.com>
4192
4193 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4194 (dwarf2_get_dwz_file): Use foreach.
4195 (dwarf2_locate_dwo_sections): Change parameters.
4196 (open_and_init_dwo_file): Use foreach.
4197 (dwarf2_locate_common_dwp_sections): Change parameters.
4198 (open_and_init_dwp_file): Use foreach.
4199
4200 2020-09-19 Tom Tromey <tom@tromey.com>
4201
4202 * symfile.h: (find_lowest_section): Don't declare.
4203 * symfile.c (find_lowest_section): Now static. Change
4204 parameters.
4205 (struct place_section_arg): Remove.
4206 (place_section): Change parameters.
4207 (addr_info_make_relative): Use foreach.
4208 (symfile_dummy_outputs): Remove.
4209 (default_symfile_relocate): Use foreach.
4210
4211 2020-09-19 Tom Tromey <tom@tromey.com>
4212
4213 * objfiles.c (add_to_objfile_sections): Rename from
4214 add_to_objfile_sections_full.
4215 (add_to_objfile_sections): Remove.
4216 (build_objfile_section_table): Use foreach.
4217
4218 2020-09-19 Tom Tromey <tom@tromey.com>
4219
4220 * stap-probe.c (get_stap_base_address_1): Remove.
4221 (get_stap_base_address): Use foreach.
4222
4223 2020-09-19 Tom Tromey <tom@tromey.com>
4224
4225 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4226 parameters.
4227 (gdb_bfd_close_or_warn): Use foreach.
4228
4229 2020-09-19 Tom Tromey <tom@tromey.com>
4230
4231 * corelow.c (add_to_thread_list): Change parameters.
4232 (core_target_open): Use foreach.
4233
4234 2020-09-19 Tom Tromey <tom@tromey.com>
4235
4236 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4237 existing function.
4238
4239 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4242 for arrays.
4243
4244 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * eval.c: Remove 'f-lang.h' include.
4247 (value_f90_subarray): Moved to f-lang.c.
4248 (eval_call): Renamed to...
4249 (evaluate_subexp_do_call): ...this, is no longer static, header
4250 comment moved into header file.
4251 (evaluate_funcall): Update call to eval_call.
4252 (skip_undetermined_arglist): Moved to f-lang.c.
4253 (fortran_value_subarray): Likewise.
4254 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4255 moved to evaluate_subexp_f.
4256 (calc_f77_array_dims): Moved to f-lang.c
4257 * expprint.c (print_subexp_funcall): New function.
4258 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4259 moved to print_subexp_f, OP_FUNCALL uses new function.
4260 (dump_subexp_body_funcall): New function.
4261 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4262 moved to dump_subexp_f, OP_FUNCALL uses new function.
4263 * expression.h (evaluate_subexp_do_call): Declare.
4264 * f-lang.c (value_f90_subarray): Moved from eval.c.
4265 (skip_undetermined_arglist): Likewise.
4266 (calc_f77_array_dims): Likewise.
4267 (fortran_value_subarray): Likewise.
4268 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4269 (operator_length_f): Likewise.
4270 (print_subexp_f): Likewise.
4271 (dump_subexp_body_f): Likewise.
4272 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4273 declaration of this operation to here.
4274 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4275 support moved to operator_length_f.
4276 * parser-defs.h (dump_subexp_body_funcall): Declare.
4277 (print_subexp_funcall): Declare.
4278 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4279 fortran-operator.def.
4280
4281 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4282
4283 * eval.c (fortran_value_subarray): New function, content is taken
4284 from...
4285 (evaluate_subexp_standard): ...here, in two places. Now arrays
4286 and strings both call the new function.
4287 (calc_f77_array_dims): Add header comment, handle strings.
4288
4289 2020-09-18 Victor Collod <vcollod@nvidia.com>
4290
4291 PR gdb/26635
4292 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4293 (i386_analyze_prologue): Call i386_skip_endbr.
4294
4295 2020-09-18 Tom Tromey <tromey@adacore.com>
4296
4297 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4298 (windows_nat_target::wait): Update.
4299 * target/wait.h (enum target_wait_flag): New. Use
4300 DEF_ENUM_FLAGS_TYPE.
4301 * target/target.h (target_wait): Change type of options.
4302 * target.h (target_options_to_string, default_target_wait):
4303 Update.
4304 (struct target_ops) <wait>: Change type of options.
4305 * target.c (target_wait, default_target_wait, do_option): Change
4306 type of "options".
4307 (target_options_to_string): Likewise.
4308 * target-delegates.c: Rebuild.
4309 * target-debug.h (target_debug_print_target_wait_flags): Rename
4310 from target_debug_print_options.
4311 * sol-thread.c (class sol_thread_target) <wait>: Update.
4312 (sol_thread_target::wait): Update.
4313 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4314 (rs6000_nat_target::wait): Update.
4315 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4316 Update.
4317 (remote_target::wait_ns, remote_target::wait_as): Change type of
4318 "options".
4319 (remote_target::wait): Update.
4320 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4321 (gdbsim_target::wait): Update.
4322 * record-full.c (class record_full_base_target) <wait>: Update.
4323 (record_full_wait_1): Change type of "options".
4324 (record_full_base_target::wait): Update.
4325 * record-btrace.c (class record_btrace_target) <wait>: Update.
4326 (record_btrace_target::wait): Update.
4327 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4328 Update.
4329 (ravenscar_thread_target::wait): Update.
4330 * procfs.c (class procfs_target) <wait>: Update.
4331 (procfs_target::wait): Update.
4332 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4333 * obsd-nat.c (obsd_nat_target::wait): Update.
4334 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4335 (nto_procfs_target::wait): Update.
4336 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4337 * nbsd-nat.c (nbsd_wait): Change type of "options".
4338 (nbsd_nat_target::wait): Update.
4339 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4340 (thread_db_target::wait): Update.
4341 * linux-nat.h (class linux_nat_target) <wait>: Update.
4342 * linux-nat.c (linux_nat_target::wait): Update.
4343 (linux_nat_wait_1): Update.
4344 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4345 "options".
4346 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4347 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4348 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4349 (go32_nat_target::wait): Update.
4350 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4351 * gnu-nat.c (gnu_nat_target::wait): Update.
4352 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4353 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4354 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4355 * darwin-nat.c (darwin_nat_target::wait): Update.
4356 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4357 (bsd_uthread_target::wait): Update.
4358 * aix-thread.c (class aix_thread_target) <wait>: Update.
4359 (aix_thread_target::wait): Update.
4360
4361 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * compile/compile-object-run.c (create_copied_type_recursive): New
4364 function.
4365 (compile_object_run): Use new function.
4366
4367 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4368
4369 * NEWS: Mention x86_64 Cygwin core file support.
4370
4371 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4372
4373 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4374 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4375
4376 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4377
4378 * windows-tdep.h: Add prototypes.
4379 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4380 (i386_windows_core_pid_to_str): Move and rename ...
4381 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4382 (windows_core_pid_to_str): ... and here.
4383 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4384
4385 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4386 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4387 (amd64_windows_init_abi_common): ... and register.
4388
4389 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4390
4391 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4392 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4393
4394 2020-09-18 Pedro Alves <pedro@palves.net>
4395
4396 PR gdb/26631
4397 * thread.c (thread_find_command): Switch inferior before calling
4398 target methods.
4399
4400 2020-09-17 Tom Tromey <tromey@adacore.com>
4401
4402 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4403 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4404 (tdesc_arch_data_up): New typedef.
4405 (tdesc_use_registers, tdesc_data_alloc): Update.
4406 (tdesc_data_cleanup): Don't declare.
4407 * target-descriptions.c (tdesc_data_alloc): Return a
4408 tdesc_arch_data_up.
4409 (tdesc_arch_data_deleter::operator()): Rename from
4410 tdesc_data_cleanup. Change argument type.
4411 (tdesc_use_registers): Change early_data to an rvalue reference.
4412 (tdesc_use_registers): Don't use delete.
4413 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4414 * s390-tdep.c (s390_gdbarch_init): Update.
4415 * rx-tdep.c (rx_gdbarch_init): Update.
4416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4417 * riscv-tdep.c (riscv_gdbarch_init): Update.
4418 * or1k-tdep.c (or1k_gdbarch_init): Update.
4419 * nios2-tdep.c (nios2_gdbarch_init): Update.
4420 * nds32-tdep.c (nds32_gdbarch_init): Update.
4421 * mips-tdep.c (mips_gdbarch_init): Update.
4422 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4423 * m68k-tdep.c (m68k_gdbarch_init): Update.
4424 * i386-tdep.c (i386_gdbarch_init): Update.
4425 * arm-tdep.c (arm_gdbarch_init): Update.
4426 * arc-tdep.c (arc_tdesc_init): Update.
4427 (arc_gdbarch_init): Update.
4428 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4429
4430 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4431
4432 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4433 for WOW64 processes.
4434
4435 2020-09-17 Tom Tromey <tom@tromey.com>
4436
4437 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4438
4439 2020-09-17 Tom Tromey <tom@tromey.com>
4440
4441 * value.c (preserve_values): Update.
4442 * python/py-type.c (save_objfile_types): Update.
4443 * guile/scm-type.c (save_objfile_types): Update.
4444 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4445 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4446 * compile/compile-object-run.c (compile_object_run): Update.
4447
4448 2020-09-17 Tom Tromey <tom@tromey.com>
4449
4450 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4451 Remove.
4452 <m_table>: Now htab_up.
4453 * typeprint.c (typedef_hash_table::recursively_update)
4454 (typedef_hash_table::add_template_parameters)
4455 (typedef_hash_table::typedef_hash_table): Update.
4456 (typedef_hash_table::~typedef_hash_table): Remove.
4457 (typedef_hash_table::typedef_hash_table)
4458 (typedef_hash_table::find_global_typedef)
4459 (typedef_hash_table::find_typedef): Update.
4460
4461 2020-09-17 Tom Tromey <tom@tromey.com>
4462
4463 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4464
4465 2020-09-17 Tom Tromey <tom@tromey.com>
4466
4467 * linespec.c (class decode_compound_collector)
4468 <~decode_compound_collector>: Remove.
4469 <m_unique_syms>: Now htab_up.
4470 (decode_compound_collector::operator ()): Update.
4471 (class symtab_collector) <~symtab_collector>: Remove.
4472 <m_symtab_table>: Now htab_up.
4473 (symtab_collector::operator ()): Update.
4474
4475 2020-09-17 Tom Tromey <tom@tromey.com>
4476
4477 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4478 (filename_seen_cache::clear): Update.
4479 (~filename_seen_cache): Remove.
4480 (filename_seen_cache::seen): Update.
4481 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4482 htab_up.
4483 <~filename_seen_cache>: Remove.
4484 <traverse>: Update.
4485
4486 2020-09-17 Tom Tromey <tom@tromey.com>
4487
4488 * completer.c (completion_tracker::discard_completions)
4489 (completion_tracker::~completion_tracker)
4490 (completion_tracker::maybe_add_completion)
4491 (completion_tracker::remove_completion)
4492 (completion_tracker::recompute_lowest_common_denominator)
4493 (completion_tracker::build_completion_result): Update.
4494 * completer.h (class completion_tracker) <have_completions>:
4495 Update.
4496 <m_entries_hash>: Now htab_up.
4497
4498 2020-09-17 Tom Tromey <tom@tromey.com>
4499
4500 * breakpoint.c (ambiguous_names_p): Use htab_up.
4501
4502 2020-09-17 Tom Tromey <tom@tromey.com>
4503
4504 * auto-load.c (struct auto_load_pspace_info)
4505 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4506 <loaded_script_files, loaded_script_texts>: Change type to
4507 htab_up.
4508 (~auto_load_pspace_info) Remove.
4509 (init_loaded_scripts_info, maybe_add_script_file)
4510 (maybe_add_script_text, auto_load_info_scripts): Update.
4511
4512 2020-09-17 Tom Tromey <tromey@adacore.com>
4513
4514 * c-exp.y (name_obstack): Now static.
4515
4516 2020-09-17 Chungyi Chi <demonic@csie.io>
4517
4518 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4519
4520 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4523 (add_solib_catchpoint): Likewise.
4524 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4525 to bool.
4526 (add_solib_catchpoint): Change int parameter/variable to bool.
4527 (catch_load_or_unload): Likewise.
4528 (init_catchpoint): Likewise.
4529 (create_fork_vfork_event_catchpoint): Likewise.
4530 (catch_fork_command_1): Likewise.
4531 (catch_exec_command_1): Likewise.
4532
4533 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4536 Change instance_flags to m_instance_flags.
4537
4538 2020-09-16 Tom Tromey <tromey@adacore.com>
4539
4540 PR gdb/26598:
4541 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4542
4543 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4544
4545 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4546 PL_FLAG_EXEC.
4547 (fbsd_nat_target::insert_exec_catchpoint)
4548 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4549 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4550 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4551
4552 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4553
4554 * configure.ac: Remove check for kinfo_getvmmap().
4555 * configure, config.in: Regenerate.
4556 * fbsd-nat.c (fbsd_read_mapping): Remove
4557 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4558 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4559 kinfo_get_vmmap() are always present.
4560
4561 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4562
4563 * fbsd-nat.c: Always include support for
4564 TARGET_OBJECT_SIGNAL_INFO.
4565
4566 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4567
4568 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4569 sysctl and remove procfs fallback.
4570
4571 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4572
4573 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4574 * fbsd-nat.h: Likewise.
4575
4576 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4577
4578 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4579 argument.
4580
4581 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4582
4583 * ada-lang.c (ada_language_data): Delete.
4584 (ada_language): Remove references to ada_language_data.
4585 * c-lang.c (c_language_data): Delete.
4586 (c_language): Remove references to c_language_data.
4587 (cplus_language_data): Delete.
4588 (cplus_language): Remove references to cplus_language_data.
4589 (asm_language_data): Delete.
4590 (asm_language): Remove references to asm_language_data.
4591 (minimal_language_data): Delete.
4592 (minimal_language): Remove references to minimal_language_data.
4593 * d-lang.c (d_language_data): Delete.
4594 (d_language): Remove references to d_language_data.
4595 * f-lang.c (f_language_data): Delete.
4596 (f_language): Remove references to f_language_data.
4597 * go-lang.c (go_language_data): Delete.
4598 (go_language): Remove references to go_language_data.
4599 * language.c (unknown_language_data): Delete.
4600 (unknown_language): Remove references to unknown_language_data.
4601 (auto_language_data): Delete.
4602 (auto_language): Remove references to auto_language_data.
4603 * language.h (language_data): Delete struct.
4604 (language_defn): No longer inherit from language_data.
4605 * m2-lang.c (m2_language_data): Delete.
4606 (m2_language): Remove references to m2_language_data.
4607 * objc-lang.c (objc_language_data): Delete.
4608 (objc_language): Remove references to objc_language_data.
4609 * opencl-lang.c (opencl_language_data): Delete.
4610 (opencl_language): Remove references to opencl_language_data.
4611 * p-lang.c (pascal_language_data): Delete.
4612 (pascal_language): Remove references to pascal_language_data.
4613 * rust-lang.c (rust_language_data): Delete.
4614 (rust_language): Remove references to rust_language_data.
4615
4616 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4619 initializer.
4620 (ada_language::opcode_print_table): New member function.
4621 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4622 (c_language::opcode_print_table): New member function.
4623 (cplus_language_data): Remove la_op_print_tab initializer.
4624 (cplus_language::opcode_print_table): New member function.
4625 (asm_language_data): Remove la_op_print_tab initializer.
4626 (asm_language::opcode_print_table): New member function.
4627 (minimal_language_data): Remove la_op_print_tab initializer.
4628 (minimal_language::opcode_print_table): New member function.
4629 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4630 (d_language::opcode_print_table): New member function.
4631 * expprint.c (print_subexp_standard): Update call to
4632 opcode_print_table.
4633 (op_string): Likewise.
4634 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4635 (f_language::opcode_print_table): New member function.
4636 * go-lang.c (go_language_data): Remove la_op_print_tab
4637 initializer.
4638 (go_language::opcode_print_table): New member function.
4639 * language.c (unknown_language_data): Remove la_op_print_tab
4640 initializer.
4641 (unknown_language::opcode_print_table): New member function.
4642 (auto_language_data): Remove la_op_print_tab initializer.
4643 (auto_language::opcode_print_table): New member function.
4644 * language.h (language_data): Remove la_op_print_tab field.
4645 (language_defn::opcode_print_table): Declare new member function.
4646 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4647 initializer.
4648 (m2_language::opcode_print_table): New member function.
4649 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4650 initializer.
4651 (objc_language::opcode_print_table): New member function.
4652 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4653 initializer.
4654 (opencl_language::opcode_print_table): New member function.
4655 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4656 initializer.
4657 (pascal_language::opcode_print_table): New member function.
4658 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4659 initializer.
4660 (rust_language::opcode_print_table): New member function.
4661
4662 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4665 (ada_language::expression_ops): New member function.
4666 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4667 (c_language::expression_ops): New member function.
4668 (cplus_language_data): Remove la_exp_desc initializer.
4669 (cplus_language::expression_ops): New member function.
4670 (asm_language_data): Remove la_exp_desc initializer.
4671 (asm_language::expression_ops): New member function.
4672 (minimal_language_data): Remove la_exp_desc initializer.
4673 (minimal_language::expression_ops): New member function.
4674 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4675 (d_language::expression_ops): New member function.
4676 * eval.c (evaluate_subexp): Update call to expression_ops.
4677 * expprint.c (print_subexp): Likewise.
4678 (op_name): Likewise.
4679 (dump_subexp_body): Likewise.
4680 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4681 (f_language::expression_ops): New member function.
4682 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4683 (go_language::expression_ops): New member function.
4684 * language.c (language_defn::expression_ops): New function.
4685 (unknown_language_data): Remove la_exp_desc initializer.
4686 (auto_language_data): Likewise.
4687 * language.h (language_data): Remove la_exp_desc field.
4688 (language_defn::expression_ops): Declare new member function.
4689 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4690 (m2_language::expression_ops): New member function.
4691 * objc-lang.c (objc_language_data): Remove la_exp_desc
4692 initializer.
4693 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4694 initializer.
4695 (opencl_language::expression_ops): New member function.
4696 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4697 * parse.c (operator_length): Update call to expression_ops.
4698 (exp_iterate): Likewise.
4699 * rust-lang.c (rust_language_data): Remove la_exp_desc
4700 initializer.
4701 (ruse_language::expression_ops): New member function.
4702
4703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4704
4705 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4706 initializer.
4707 (ada_language::varobj_ops): New member function.
4708 * c-lang.c (c_language_data): Remove la_varobj_ops
4709 initializer.
4710 (cplus_language_data): Likewise.
4711 (cplus_language::varobj_ops): New member function.
4712 (asm_language_data): Remove la_varobj_ops initializer.
4713 (minimal_language_data): Likewise.
4714 * d-lang.c (d_language_data): Likewise.
4715 * f-lang.c (f_language_data): Likewise.
4716 * go-lang.c (go_language_data): Likewise.
4717 * language.c (language_defn::varobj_ops): New function.
4718 (unknown_language_data): Remove la_varobj_ops
4719 initializer.
4720 (auto_language_data): Likewise.
4721 * language.h (language_data): Remove la_varobj_ops field.
4722 (language_defn::varobj_ops): Declare new member function.
4723 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4724 * objc-lang.c (objc_language_data): Likewise.
4725 * opencl-lang.c (opencl_language_data): Likewise.
4726 * p-lang.c (pascal_language_data): Likewise.
4727 * rust-lang.c (rust_language_data): Likewise.
4728 * varobj.c (varobj_create): Update call to varobj_ops.
4729 * varobj.h (default_varobj_ops): Delete define.
4730
4731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4734 initializer.
4735 * c-lang.c (c_language_data): Likewise.
4736 (c_language::macro_expansion): New member function.
4737 (cplus_language_data): Likewise.
4738 (cplus_language::macro_expansion): New member function.
4739 (asm_language_data): Likewise.
4740 (asm_language::macro_expansion): New member function.
4741 (minimal_language_data): Likewise.
4742 (minimal_language::macro_expansion): New member function.
4743 * d-lang.c (d_language_data): Remove la_macro_expansion
4744 initializer.
4745 * f-lang.c (f_language_data): Likewise.
4746 * go-lang.c (go_language_data): Likewise.
4747 * language.c (unknown_language_data): Likewise.
4748 (auto_language_data): Likewise.
4749 * language.h (language_data): Remove la_macro_expansion field.
4750 (language_defn::macro_expansion): New member function.
4751 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4752 initializer.
4753 * objc-lang.c (objc_language_data): Likewise.
4754 (objc_language::macro_expansion): New member function.
4755 * opencl-lang.c (opencl_language_data): Likewise.
4756 (opencl_language::macro_expansion): New member function.
4757 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4758 initializer.
4759 * rust-lang.c (rust_language_data): Likewise.
4760 * symtab.c (default_collect_symbol_completion_matches_break_on):
4761 Update call to macro_expansion.
4762
4763 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4764
4765 * ada-lang.c (ada_language_data): Remove la_array_ordering
4766 initializer.
4767 * c-lang.c (c_language_data): Likewise.
4768 (cplus_language_data): Likewise.
4769 (asm_language_data): Likewise.
4770 (minimal_language_data): Likewise.
4771 * d-lang.c (d_language_data): Likewise.
4772 * dwarf2/read.c (read_array_order): Update for call to
4773 array_ordering.
4774 * f-lang.c (f_language_data): Remove la_array_ordering
4775 initializer.
4776 (f_language::array_ordering): New member function.
4777 * go-lang.c (go_language_data): Remove la_array_ordering
4778 initializer.
4779 * language.c (unknown_language_data): Likewise.
4780 (auto_language_data): Likewise.
4781 * language.h (language_data): Delete la_array_ordering field.
4782 (language_defn::array_ordering): New member function.
4783 * m2-lang.c (m2_language_data): Remove la_array_ordering
4784 initializer.
4785 * objc-lang.c (objc_language_data): Likewise.
4786 * opencl-lang.c (opencl_language_data): Likewise.
4787 * p-lang.c (pascal_language_data): Likewise.
4788 * rust-lang.c (rust_language_data): Likewise.
4789
4790 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4791
4792 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4793 initializer.
4794 * c-lang.c (c_language_data): Likewise.
4795 (cplus_language_data): Likewise.
4796 (asm_language_data): Likewise.
4797 (minimal_language_data): Likewise.
4798 * d-lang.c (d_language_data): Likewise.
4799 * f-lang.c (f_language_data): Likewise.
4800 (f_language::case_sensitivity): New member function.
4801 * go-lang.c (go_language_data): Remove la_case_sensitivity
4802 initializer.
4803 * language.c (enum case_mode): Moved here from language.h.
4804 (case_mode): Make static.
4805 (show_case_command): Update for case_sensitivity being a method.
4806 (set_case_command): Likewise.
4807 (set_range_case): Likewise.
4808 (unknown_language_data): Remove la_case_sensitivity initializer.
4809 (auto_language_data): Likewise.
4810 * language.h (case_mode): Delete, move enum declaration to
4811 language.c.
4812 (language_data): Delete la_case_sensitivity field.
4813 (language_defn::case_sensitivity): New member function.
4814 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4815 initializer.
4816 * objc-lang.c (objc_language_data): Likewise.
4817 * opencl-lang.c (opencl_language_data): Likewise.
4818 * p-lang.c (pascal_language_data): Likewise.
4819 * rust-lang.c (rust_language_data): Likewise.
4820
4821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4822
4823 * ada-lang.c (ada_language_data): Remove la_range_check
4824 initializer.
4825 * c-lang.c (c_language_data): Likewise.
4826 (cplus_language_data): Likewise.
4827 (asm_language_data): Likewise.
4828 (minimal_language_data): Likewise.
4829 * d-lang.c (d_language_data): Likewise.
4830 * f-lang.c (f_language_data): Likewise.
4831 (f_language::range_checking_on_by_default): New member function.
4832 * go-lang.c (go_language_data): Remove la_range_check initializer.
4833 * language.c (enum range_mode): Moved here from language.h.
4834 (range_mode): Made static.
4835 (show_range_command): Update to use
4836 range_checking_on_by_default.
4837 (set_range_command): Likewise.
4838 (set_range_case): Likewise.
4839 (unknown_language_data): Remove la_range_check initializer.
4840 (auto_language_data): Likewise.
4841 * language.h (range_mode): Delete. Enum definition moved to
4842 language.c.
4843 (language_data): Remove la_range_check field.
4844 (language_defn::range_checking_on_by_default): New member
4845 function.
4846 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4847 (m2_language::range_checking_on_by_default): New member function.
4848 * objc-lang.c (objc_language_data): Remove la_range_check
4849 initializer.
4850 * opencl-lang.c (opencl_language_data): Likewise.
4851 * p-lang.c (pascal_language_data): Likewise.
4852 (pascal_language::range_checking_on_by_default): New member
4853 function.
4854 * rust-lang.c (rust_language_data): Remove la_range_check
4855 initializer.
4856 (rust_language::range_checking_on_by_default): New member
4857 function.
4858
4859 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4860
4861 * dwarf2/read.c (dwarf2_physname): Remove special case for
4862 language_go.
4863 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4864 member function.
4865
4866 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4867
4868 * ada-lang.c (ada_language_data): Remove
4869 la_store_sym_names_in_linkage_form_p initializer.
4870 (ada_language::store_sym_names_in_linkage_form_p): New member
4871 function.
4872 * c-lang.c (c_language_data): Remove
4873 la_store_sym_names_in_linkage_form_p initializer.
4874 (c_language::store_sym_names_in_linkage_form_p): New member
4875 function.
4876 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4877 initializer.
4878 (asm_language_data): Likewise.
4879 (asm_language::store_sym_names_in_linkage_form_p): New member
4880 function.
4881 (minimal_language_data): Remove
4882 la_store_sym_names_in_linkage_form_p initializer.
4883 (minimal_language::store_sym_names_in_linkage_form_p): New member
4884 function.
4885 * d-lang.c (d_language_data): Remove
4886 la_store_sym_names_in_linkage_form_p initializer.
4887 * dwarf2/read.c (dwarf2_physname): Update call to
4888 store_sym_names_in_linkage_form_p.
4889 * f-lang.c (f_language_data): Remove
4890 la_store_sym_names_in_linkage_form_p initializer.
4891 * go-lang.c (go_language_data): Remove
4892 la_store_sym_names_in_linkage_form_p initializer.
4893 * language.c (unknown_language_data): Remove
4894 la_store_sym_names_in_linkage_form_p initializer.
4895 (unknown_language::store_sym_names_in_linkage_form_p): New member
4896 function.
4897 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4898 initializer.
4899 (auto_language::store_sym_names_in_linkage_form_p): New member
4900 function.
4901 * language.h (language_data): Remove
4902 la_store_sym_names_in_linkage_form_p member variable.
4903 (language_defn::store_sym_names_in_linkage_form_p): New member
4904 function.
4905 * m2-lang.c (m2_language_data): Remove
4906 la_store_sym_names_in_linkage_form_p initializer.
4907 * objc-lang.c (objc_language_data): Likewise.
4908 * opencl-lang.c (opencl_language_data): Likewise.
4909 * p-lang.c (pascal_language_data): Likewise.
4910 * rust-lang.c (rust_language_data): Likewise.
4911
4912 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * ada-lang.c (ada_language_data): Remove string_lower_bound
4915 initializer.
4916 * c-lang.c (c_language_data): Likewise.
4917 (cplus_language_data): Likewise.
4918 (asm_language_data): Likewise.
4919 (minimal_language_data): Likewise.
4920 * d-lang.c (d_language_data): Likewise.
4921 * f-lang.c (f_language_data): Likewise.
4922 * go-lang.c (go_language_data): Likewise.
4923 * language.c (unknown_language_data): Likewise.
4924 (auto_language_data): Likewise.
4925 * language.h (language_data): Remove string_lower_bound field.
4926 (language_defn::string_lower_bound): New member function.
4927 * m2-lang.c (m2_language_data): Remove string_lower_bound
4928 initializer.
4929 (m2_language::string_lower_bound): New member function.
4930 * objc-lang.c (objc_language_data): Remove string_lower_bound
4931 initializer.
4932 * opencl-lang.c (opencl_language_data): Likewise.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 * rust-lang.c (rust_language_data): Likewise.
4935 * valops.c (value_cstring): Update call to string_lower_bound.
4936 (value_string): Likewise.
4937 * value.c (allocate_repeated_value): Likewise.
4938
4939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * valops.c (value_repeat): Fix incorrect argument name in comment.
4942
4943 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * ada-lang.c (ada_language_data): Remove c_style_arrays
4946 initializer.
4947 (ada_language::c_style_arrays_p): New member fuction.
4948 * c-lang.c (c_language_data): Remove c_style_arrays
4949 initializer.
4950 (cplus_language_data): Likewise.
4951 (asm_language_data): Likewise.
4952 (minimal_language_data): Likewise.
4953 * d-lang.c (d_language_data): Likewise.
4954 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4955 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4956 (f_language::c_style_arrays_p): New member function.
4957 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4958 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4959 * language.c (unknown_language_data): Remove c_style_arrays
4960 initializer.
4961 (auto_language_data): Likewise.
4962 * language.h (language_data): Remove c_style_arrays field.
4963 (language_defn::c_style_arrays_p): New member function.
4964 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4965 (m2_language::c_style_arrays_p): New member function.
4966 * objc-lang.c (objc_language_data): Remove c_style_arrays
4967 initializer.
4968 * opencl-lang.c (opencl_language_data): Likewise.
4969 * p-lang.c (pascal_language_data): Likewise.
4970 * rust-lang.c (rust_language_data): Likewise.
4971 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4972 and update local variable to a bool.
4973 * valops.c (value_cast): Update call to c_style_arrays_p.
4974 (value_array): Likewise.
4975 * value.c (coerce_array): Likewise.
4976
4977 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * ada-lang.c (ada_language_data): Remove la_language initializer.
4980 * c-lang.c (c_language_data): Likewise.
4981 (cplus_language_data): Likewise.
4982 (asm_language_data): Likewise.
4983 (minimal_language_data): Likewise.
4984 * d-lang.c (d_language_data): Likewise.
4985 * f-lang.c (f_language_data): Likewise.
4986 * go-lang.c (go_language_data): Likewise.
4987 * language.c (unknown_language_data): Likewise.
4988 (auto_language_data): Likewise.
4989 * language.h (language_data): Remove la_language field.
4990 (language_defn::language_defn): Initialise la_language field.
4991 (language_defn::la_language): New member variable.
4992 * m2-lang.c (m2_language_data): Remove la_language field.
4993 * objc-lang.c (objc_language_data): Likewise.
4994 * opencl-lang.c (opencl_language_data): Likewise.
4995 * p-lang.c (pascal_language_data): Likewise.
4996 * rust-lang.c (rust_language_data): Likewise.
4997
4998 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * ada-lang.c (ada_extensions): Delete, moved into
5001 ada_language::filename_extensions.
5002 (ada_language_data): Remove la_filename_extensions initializer.
5003 (ada_language::filename_extensions): New member function.
5004 * c-lang.c (c_extensions): Delete, moved into
5005 c_language::filename_extensions.
5006 (c_language_data): Remove la_filename_extensions initializer.
5007 (c_language::filename_extensions): New member function.
5008 (cplus_extensions): Delete, moved into
5009 cplus_language::filename_extensions.
5010 (cplus_language_data): Remove la_filename_extensions initializer.
5011 (cplus_language::filename_extensions): New member function.
5012 (asm_extensions): Delete, moved into
5013 asm_language::filename_extensions.
5014 (asm_language_data): Remove la_filename_extensions initializer.
5015 (asm_language::filename_extensions): New member function.
5016 (minimal_language_data): Remove la_filename_extensions
5017 initializer.
5018 * d-lang.c (d_extensions): Delete, moved into
5019 d_language::filename_extensions.
5020 (d_language_data): Remove la_filename_extensions initializer.
5021 (d_language::filename_extensions): New member function.
5022 * f-lang.c (f_extensions): Delete, moved into
5023 f_language::filename_extensions.
5024 (f_language_data): Remove la_filename_extensions initializer.
5025 (f_language::filename_extensions): New member function.
5026 * go-lang.c (go_language_data): Remove la_filename_extensions
5027 initializer.
5028 * language.c (add_set_language_command): Update now that
5029 filename_extensions returns a vector.
5030 (unknown_language_data): Remove la_filename_extensions
5031 initializer.
5032 (auto_language_data): Likewise.
5033 * language.h (language_data): Remove la_filename_extensions field.
5034 (language_defn::filename_extensions): New member function.
5035 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5036 initializer.
5037 * objc-lang.c (objc_extensions): Delete, moved into
5038 objc_language::filename_extensions.
5039 (objc_language_data): Remove la_filename_extensions initializer.
5040 (objc_language::filename_extensions): New member function.
5041 * opencl-lang.c (opencl_language_data): Remove
5042 la_filename_extensions initializer.
5043 * p-lang.c (pascal_extensions): Delete, moved into
5044 pascal_language::filename_extensions.
5045 (pascal_language_data): Remove la_filename_extensions initializer.
5046 (pascal_language::filename_extensions): New member function.
5047 * rust-lang.c (rust_extensions): Delete, moved into
5048 rust_language::filename_extensions.
5049 (rust_language_data): Remove la_filename_extensions initializer.
5050 (rust_language::filename_extensions): New member function.
5051 * symfile.c (add_filename_language): Add new assert.
5052
5053 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * ada-lang.c (ada_language_data): Remove la_name and
5056 la_natural_name initializers.
5057 (ada_language::name): New member function.
5058 (ada_language::natural_name): New member function.
5059 * c-lang.c (c_language_data): Remove la_name and
5060 la_natural_name initializers.
5061 (c_language::name): New member function.
5062 (c_language::natural_name): New member function.
5063 (cplus_language_data): Remove la_name and
5064 la_natural_name initializers.
5065 (cplus_language::name): New member function.
5066 (cplus_language::natural_name): New member function.
5067 (asm_language_data): Remove la_name and
5068 la_natural_name initializers.
5069 (asm_language::name): New member function.
5070 (asm_language::natural_name): New member function.
5071 (minimal_language_data): Remove la_name and
5072 la_natural_name initializers.
5073 (minimal_language::name): New member function.
5074 (minimal_language::natural_name): New member function.
5075 * compile/compile.c (compile_to_object): Update call to
5076 lanugage_defn::name.
5077 * d-lang.c (d_language_data): Remove la_name and
5078 la_natural_name initializers.
5079 (d_language::name): New member function.
5080 (d_language::natural_name): New member function.
5081 * expprint.c (print_subexp_standard): Update call to
5082 language_defn::name.
5083 (dump_raw_expression): Likewise
5084 (dump_prefix_expression): Likewise.
5085 * f-lang.c (f_language_data): Remove la_name and
5086 la_natural_name initializers.
5087 (f_language::name): New member function.
5088 (f_language::natural_name): New member function.
5089 * go-lang.c (go_language_data): Remove la_name and
5090 la_natural_name initializers.
5091 (go_language::name): New member function.
5092 (go_language::natural_name): New member function.
5093 * language.c (show_language_command): Update call to
5094 language_defn::name.
5095 (set_language_command): Likewise.
5096 (language_enum): Likewise.
5097 (language_str): Likewise.
5098 (add_set_language_command): Likewise, use
5099 language_defn::natural_name in the doc string.
5100 (unknown_language_data): Remove la_name and
5101 la_natural_name initializers.
5102 (unknown_language::name): New member function.
5103 (unknown_language::natural_name): New member function.
5104 (auto_language_data): Remove la_name and
5105 la_natural_name initializers.
5106 (auto_language::name): New member function.
5107 (auto_language::natural_name): New member function.
5108 (language_lookup_primitive_type_as_symbol): Update call to
5109 language_defn::name.
5110 * language.h (language_data): Remove la_name and la_natural_name
5111 member variables.
5112 (language_defn::name): New member function.
5113 (language_defn::natural_name): New member function.
5114 * m2-lang.c (m2_language_data): Remove la_name and
5115 la_natural_name initializers.
5116 (m2_language::name): New member function.
5117 (m2_language::natural_name): New member function.
5118 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5119 language_defn::natural_name.
5120 * objc-lang.c (objc_language_data): Remove la_name and
5121 la_natural_name initializers.
5122 (objc_language::name): New member function.
5123 (objc_language::natural_name): New member function.
5124 * opencl-lang.c (opencl_language_data): Remove la_name and
5125 la_natural_name initializers.
5126 (opencl_language::name): New member function.
5127 (opencl_language::natural_name): New member function.
5128 * p-lang.c (pascal_language_data): Remove la_name and
5129 la_natural_name initializers.
5130 (pascal_language::name): New member function.
5131 (pascal_language::natural_name): New member function.
5132 * rust-lang.c (rust_language_data): Remove la_name and
5133 la_natural_name initializers.
5134 (rust_language::name): New member function.
5135 (rust_language::natural_name): New member function.
5136 * symtab.c (lookup_language_this): Update call to
5137 language_defn::name.
5138
5139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * ada-lang.c (ada_language_data): Remove la_name_of_this
5142 initializer.
5143 * ax-gdb.c (gen_expr): Update call to name_of_this.
5144 * c-exp.y (classify_name): Likewise.
5145 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5146 (cplus_language_data): Likewise.
5147 (cplus_language::name_of_this): New member function.
5148 (asm_language_data): Remove la_name_of_this initializer.
5149 (minimal_language_data): Likewise.
5150 * d-lang.c (d_language_data): Likewise.
5151 (d_language::name_of_this): New member function.
5152 * expprint.c (print_subexp_standard): Update call to name_of_this.
5153 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5154 * go-lang.c (go_language_data): Likewise.
5155 * language.c (unknown_language_data): Likewise.
5156 (unknown_language::name_of_this): New member function.
5157 (auto_language_data): Remove la_name_of_this initializer.
5158 (auto_language::name_of_this): New member function.
5159 * language.h (language_data): Delete la_name_of_this member
5160 variable.
5161 (language_defn::name_of_this): New member function.
5162 * m2-lang.c (m2_language_data): Remove la_name_of_this
5163 initializer.
5164 * objc-lang.c (objc_language_data): Likewise.
5165 (objc_language::name_of_this): New member function.
5166 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5167 initializer.
5168 * p-lang.c (pascal_language_data): Likewise.
5169 (pascal_language::name_of_this): New member function.
5170 * rust-lang.c (rust_language_data): Remove la_name_of_this
5171 initializer.
5172 * symtab.c (lookup_language_this): Update call to name_of_this.
5173 (lookup_symbol_aux): Likewise.
5174 * valops.c (value_of_this): Likewise.
5175
5176 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 * ada-lang.c (ada_language_data): Remove
5179 la_struct_too_deep_ellipsis initializer.
5180 (ada_language::struct_too_deep_ellipsis): New member function.
5181 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5182 initializer.
5183 (cplus_language_data): Likewise.
5184 (asm_language_data): Likewise.
5185 (minimal_language_data): Likewise.
5186 * cp-valprint.c (cp_print_value): Update call to
5187 struct_too_deep_ellipsis.
5188 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5189 initializer.
5190 * f-lang.c (f_language_data): Likewise.
5191 (f_language::struct_too_deep_ellipsis): New member function.
5192 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5193 initializer.
5194 * language.c (unknown_language_data): Likewise.
5195 (auto_language_data): Likewise.
5196 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5197 member variable.
5198 (language_defn::struct_too_deep_ellipsis): New member function.
5199 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5200 initializer.Q
5201 * objc-lang.c (objc_language_data): Likewise.
5202 * opencl-lang.c (opencl_language_data): Likewise.
5203 * p-lang.c (pascal_language_data): Likewise.
5204 * rust-lang.c (rust_language_data): Likewise.
5205 * valprint.c (val_print_check_max_depth): Update call to
5206 struct_too_deep_ellipsis.
5207
5208 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5209
5210 * MAINTAINERS (Write After Approval): Add myself.
5211
5212 2020-09-15 Tom Tromey <tom@tromey.com>
5213
5214 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5215 Remove.
5216
5217 2020-09-15 Tom Tromey <tom@tromey.com>
5218
5219 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5220 and TYPE_CODE_METHODPTR cases.
5221 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5222 (c_value_print_inner): Update.
5223 * valprint.c (generic_value_print_memberptr): New function, from
5224 c_value_print_memberptr.
5225 (generic_value_print): Use it. Call cplus_print_method_ptr.
5226
5227 2020-09-15 Tom Tromey <tromey@adacore.com>
5228
5229 * python/python-internal.h (PyInt_FromLong): Remove define.
5230 * python/py-value.c (convert_value_from_python): Use
5231 gdb_py_object_from_longest.
5232 * python/py-type.c (typy_get_code): Use
5233 gdb_py_object_from_longest.
5234 * python/py-symtab.c (salpy_get_line): Use
5235 gdb_py_object_from_longest.
5236 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5237 gdb_py_object_from_longest.
5238 * python/py-record.c (recpy_gap_reason_code): Use
5239 gdb_py_object_from_longest.
5240 * python/py-record-btrace.c (recpy_bt_insn_size)
5241 (recpy_bt_func_level, btpy_list_count): Use
5242 gdb_py_object_from_longest.
5243 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5244 gdb_py_object_from_longest. Fix error handling.
5245 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5246 gdb_py_object_from_longest.
5247 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5248 gdb_py_object_from_longest.
5249 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5250 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5251 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5252
5253 2020-09-15 Tom Tromey <tromey@adacore.com>
5254
5255 * python/python.c (gdbpy_parameter_value): Use
5256 gdb_py_object_from_ulongest.
5257
5258 2020-09-15 Tom Tromey <tromey@adacore.com>
5259
5260 * python/py-infevents.c (create_register_changed_event_object):
5261 Use gdb_py_object_from_longest.
5262 * python/py-exitedevent.c (create_exited_event_object): Use
5263 gdb_py_object_from_longest.
5264
5265 2020-09-15 Tom Tromey <tromey@adacore.com>
5266
5267 * python/python.c (gdbpy_parameter_value): Use
5268 gdb_py_object_from_longest.
5269 * python/py-type.c (convert_field, typy_range): Use
5270 gdb_py_object_from_longest.
5271 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5272 gdb_py_object_from_longest.
5273 * python/py-lazy-string.c (stpy_get_length): Use
5274 gdb_py_object_from_longest.
5275 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5276 gdb_py_object_from_longest.
5277 * python/py-infevents.c (create_memory_changed_event_object): Use
5278 gdb_py_object_from_longest.
5279 * python/py-inferior.c (infpy_get_num): Use
5280 gdb_py_object_from_longest.
5281 (infpy_get_pid): Likewise.
5282
5283 2020-09-15 Tom Tromey <tromey@adacore.com>
5284
5285 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5286 defines.
5287 * python/py-value.c (valpy_long): Use
5288 gdb_py_object_from_ulongest.
5289 * python/py-symtab.c (salpy_get_pc): Use
5290 gdb_py_object_from_ulongest.
5291 (salpy_get_last): Likewise.
5292 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5293 gdb_py_object_from_ulongest.
5294 * python/py-lazy-string.c (stpy_get_address): Use
5295 gdb_py_object_from_ulongest.
5296 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5297 * python/py-arch.c (archpy_disassemble): Use
5298 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5299 error handling.
5300
5301 2020-09-15 Tom Tromey <tromey@adacore.com>
5302
5303 * python/python-internal.h (gdb_py_long_from_longest): Remove
5304 defines.
5305 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5306 * python/py-type.c (convert_field, typy_get_sizeof): Use
5307 gdb_py_object_from_longest.
5308 * python/py-record-btrace.c (btpy_list_index): Use
5309 gdb_py_object_from_longest.
5310
5311 2020-09-15 Tom Tromey <tromey@adacore.com>
5312
5313 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5314 * python/py-record.c (recpy_element_number): Use
5315 gdb_py_object_from_longest.
5316 (recpy_gap_number): Likewise.
5317
5318 2020-09-15 Tom Tromey <tromey@adacore.com>
5319
5320 * top.c (ui::ui): Update.
5321 (highest_ui_num): Remove.
5322 * top.h (struct ui) <num>: Remove.
5323
5324 2020-09-15 Tom Tromey <tromey@adacore.com>
5325
5326 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5327 * ui-style.c (ansi_regex_text): Now array.
5328 * rust-exp.y (number_regex_text): Now array.
5329 * linespec.c (linespec_quote_characters): Now array.
5330 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5331 Now arrays.
5332
5333 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5334
5335 * debuginfod-support.c (debuginfod_client_deleter): New.
5336 (debuginfod_client_up): New.
5337 (debuginfod_init): Return debuginfod_client_up.
5338 (debuginfod_source_query): Adjust.
5339 (debuginfod_debuginfo_query): Adjust.
5340
5341 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * debuginfod-support.c (debuginfod_source_query): Use
5344 make_unique_xstrdup.
5345
5346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5349 with `type::instance_flags`.
5350
5351 2020-09-14 Michael Mullin <masmullin@gmail.com>
5352
5353 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5354 Remove baton parameter.
5355
5356 2020-09-14 Pedro Alves <pedro@palves.net>
5357
5358 * Makefile.in (SELFTESTS_SRCS): Add
5359 unittests/enum-flags-selftests.c.
5360 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5361 btrace_function_flags instead of enum btrace_function_flag.
5362 * compile/compile-c-types.c (convert_qualified): Use
5363 enum_flags::raw.
5364 * compile/compile-cplus-symbols.c (convert_one_symbol)
5365 (convert_symbol_bmsym):
5366 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5367 (compile_cplus_convert_struct_or_union_methods)
5368 (compile_cplus_instance::convert_qualified_base):
5369 * go-exp.y (parse_string_or_char): Add cast to int.
5370 * unittests/enum-flags-selftests.c: New file.
5371 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5372 type to btrace_thread_flags from btrace_thread_flag.
5373 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5374 local's type to btrace_thread_flags from btrace_thread_flag. Add
5375 cast in DEBUG call.
5376
5377 2020-09-14 Pedro Alves <pedro@palves.net>
5378
5379 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5380 * gdbtypes.c (address_space_name_to_int): Rename to ...
5381 (address_space_name_to_type_instance_flags): ... this.
5382 (address_space_int_to_name): Rename to ...
5383 (address_space_type_instance_flags_to_name): ... this.
5384 * gdbtypes.h (address_space_name_to_int): Rename to ...
5385 (address_space_name_to_type_instance_flags): ... this.
5386 (address_space_int_to_name): Rename to ...
5387 (address_space_type_instance_flags_to_name): ... this.
5388 * type-stack.c (type_stack::insert): Adjust to rename.
5389 * type-stack.h (type_stack::insert): Likewise.
5390
5391 2020-09-14 Pedro Alves <pedro@palves.net>
5392 Andrew Burgess <andrew.burgess@embecosm.com>
5393
5394 * avr-tdep.c (avr_address_class_type_flags): Return
5395 type_instance_flags.
5396 (avr_address_class_type_flags_to_name): Take a
5397 type_instance_flags.
5398 (avr_address_class_name_to_type_flags): Return bool and take a
5399 type_instance_flags.
5400 * d-lang.c (build_d_types): Use type::set_instance_flags.
5401 * ft32-tdep.c (ft32_address_class_type_flags): Return
5402 type_instance_flags.
5403 (ft32_address_class_type_flags_to_name): Take a
5404 type_instance_flags.
5405 (ft32_address_class_name_to_type_flags): Return bool and take a
5406 type_instance_flags.
5407 (ft32_gdbarch_init): Use type::set_instance_flags.
5408 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5409 * gdbarch.h, gdbarch.c: Regenerate.
5410 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5411 (address_class_name_to_type_flags): Use type_instance_flags and
5412 bool.
5413 * gdbtypes.c (address_space_name_to_int)
5414 (address_space_int_to_name, make_qualified_type): Use
5415 type_instance_flags.
5416 (make_qualified_type): Use type_instance_flags and
5417 type::set_instance_flags.
5418 (make_type_with_address_space, make_cv_type, make_vector_type)
5419 (check_typedef): Use type_instance_flags.
5420 (recursive_dump_type): Cast type_instance_flags to unsigned for
5421 printing.
5422 (copy_type_recursive): Use type::set_instance_flags.
5423 (gdbtypes_post_init): Use type::set_instance_flags.
5424 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5425 <m_instance_flags>: ... this.
5426 <instance_flags, set_instance_flags>: New methods.
5427 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5428 (SET_TYPE_INSTANCE_FLAGS): New.
5429 (address_space_name_to_int, address_space_int_to_name)
5430 (make_type_with_address_space): Pass flags using
5431 type_instance_flags instead of int.
5432 * stabsread.c (cleanup_undefined_types_noname): Use
5433 type::set_instance_flags.
5434 * s390-tdep.c (s390_address_class_type_flags): Return
5435 type_instance_flags.
5436 (s390_address_class_type_flags_to_name): Take a
5437 type_instance_flags.
5438 (s390_address_class_name_to_type_flags): Return bool and take a
5439 type_instance_flags.
5440 * type-stack.c (type_stack::follow_types): Use
5441 type_instance_flags.
5442 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5443
5444 2020-09-14 Tom Tromey <tromey@adacore.com>
5445
5446 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5447 * x86-tdep.c (x86_is_thunk_register_name)
5448 (x86_in_indirect_branch_thunk): Update.
5449 * sparc64-tdep.c (sparc64_fpu_register_names)
5450 (sparc64_cp0_register_names, sparc64_register_names)
5451 (sparc64_pseudo_register_names): Now const.
5452 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5453 cp0_registers_num>: Now const.
5454 * sparc-tdep.c (sparc_core_register_names)
5455 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5456 (sparc32_pseudo_register_names): Now const.
5457 (validate_tdesc_registers): Update.
5458 * rust-lang.c (rust_extensions): Now const.
5459 * p-lang.c (p_extensions): Now const.
5460 * objc-lang.c (objc_extensions): Now const.
5461 * nto-tdep.c (nto_thread_state_str): Now const.
5462 * moxie-tdep.c (moxie_register_names): Now const.
5463 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5464 Now const.
5465 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5466 (mips_linux_reg_names): Now const.
5467 (mips_gdbarch_init): Update.
5468 * microblaze-tdep.c (microblaze_register_names): Now const.
5469 * m68k-tdep.c (m68k_register_names): Now const.
5470 * m32r-tdep.c (m32r_register_names): Now const.
5471 * ia64-tdep.c (ia64_register_names): Now const.
5472 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5473 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5474 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5475 ymm_avx512_register_names, pkeys_register_names>: Now const.
5476 * i386-tdep.c (i386_register_names, i386_zmm_names)
5477 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5478 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5479 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5480 * f-lang.c (f_extensions): Now const.
5481 * d-lang.c (d_extensions): Now const.
5482 * csky-tdep.c (csky_register_names): Now const.
5483 * charset.c (default_charset_names, charset_enum): Now const.
5484 (_initialize_charset): Update.
5485 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5486 const.
5487 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5488 (bsd_uthread_solib_loaded): Update.
5489 (bsd_uthread_state): Now const.
5490 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5491 (amd64_ymm_avx512_names, amd64_ymmh_names)
5492 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5493 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5494 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5495 (amd64_dword_names): Now const.
5496 * agent.c (can_use_agent_enum): Now const.
5497 * ada-tasks.c (task_states, long_task_states): Now const.
5498 * ada-lang.c (known_runtime_file_name_patterns)
5499 (known_auxiliary_function_name_patterns, attribute_names)
5500 (standard_exc, ada_extensions): Now const.
5501
5502 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * bcache.h (struct bcache) <bcache>: Remove constructor.
5505 <m_hash_function, m_compare_function>: Remove.
5506 <~bcache>: Make virtual.
5507 <compare>: Remove static method, introduce virtual method.
5508 <default_hash>: Remove.
5509 <hash>: New virtual method.
5510 * bcache.c (bcache::expand_hash_table): Update.
5511 (bcache::insert): Update.
5512 (bcache::hash): New.
5513 (bcache::compare): Update comment and parameter names.
5514 * gdbtypes.c (types_deeply_equal): Update.
5515 * psymtab.h (struct psymbol_bcache): New struct.
5516 (class psymtab_storage) <psymtab_storage>: Make default.
5517 <psymbol_cache>: Change type to psymbol_bcache.
5518 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5519 (psymbol_hash): Change to...
5520 (psymbol_bcache::hash): ... this.
5521 (psymbol_compare): Change to...
5522 (psymbol_bcache::compare): ... this.
5523
5524 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5527 checking for initial lwp.
5528
5529 2020-09-14 Tom Tromey <tromey@adacore.com>
5530
5531 * m68k-tdep.c (m68k_extract_return_value): Use
5532 pointer_result_regnum.
5533 (m68k_store_return_value): Likewise.
5534 (m68k_reg_struct_return_p): Handle vectors and arrays.
5535 (m68k_return_value): Handle arrays.
5536 (m68k_svr4_return_value): Fix single-element aggregate handling.
5537 Handle long double. Adjust for embedded ABI.
5538 (m68k_svr4_init_abi): Set pointer_result_regnum.
5539 (m68k_embedded_init_abi): New function.
5540 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5541 (m68k_osabi_sniffer): New function.
5542 (_initialize_m68k_tdep): Register osabi sniffer.
5543 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5544 member.
5545
5546 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5547
5548 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5549 with gdb::unique_xmalloc_ptr<char>.
5550
5551 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * xml-support.h (xml_fetch_another): Change type to be a
5554 function_view.
5555 (xml_process_xincludes): Remove baton parameter.
5556 (xml_fetch_content_from_file): Change baton parameter to
5557 dirname.
5558 * xml-support.c (struct xinclude_parsing_data)
5559 <xinclude_parsing_data>: Remove baton parameter.
5560 <fetcher_baton>: Remove.
5561 (xinclude_start_include): Adjust.
5562 (xml_process_xincludes): Adjust.
5563 (xml_fetch_content_from_file): Replace baton parameter with
5564 dirname.
5565 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5566 (xml_init_syscalls_info): Use a lambda.
5567 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5568 (file_read_description_xml): Use a lambda.
5569 (fetch_available_features_from_target): Change baton parameter
5570 to target_ops.
5571 (target_read_description_xml): Use a lambda.
5572 (target_fetch_description_xml): Use a lambda.
5573 (string_read_description_xml): Update.
5574
5575 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5578 uses with type::endianity_is_not_default.
5579
5580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (struct type) <endianity_is_not_default,
5583 set_endianity_is_not_default>: New methods.
5584 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5585 type::endianity_is_not_default, change all write call sites to
5586 use type::set_endianity_is_not_default.
5587
5588 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5591 uses with type::is_fixed_instance.
5592
5593 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * gdbtypes.h (struct type) <is_fixed_instance,
5596 set_is_fixed_instance>: New methods.
5597 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5598 write call sites to use type::set_is_fixed_instance.
5599
5600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5603 uses with type::is_gnu_ifunc.
5604
5605 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5608 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5609 use type::set_is_gnu_ifunc.
5610
5611 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5614 uses with type::stub_is_supported.
5615
5616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5619 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5620 use type::set_stub_is_supported.
5621
5622 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5625 uses with type::is_vector.
5626
5627 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5630 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5631 use type::set_is_vector.
5632
5633 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5634
5635 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5636 uses with type::has_varargs.
5637
5638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5641 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5642 use type::set_has_varargs.
5643
5644 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5647 uses with type::is_prototyped.
5648
5649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5652 New methods.
5653 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5654 call sites to use type::set_is_prototyped.
5655
5656 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5659 uses with type::target_is_stub.
5660
5661 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5662
5663 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5664 New methods.
5665 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5666 sites to use type::set_target_is_stub.
5667
5668 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * gdbtypes.h (TYPE_STUB): Remove, replace all
5671 uses with type::is_stub.
5672
5673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5676 (TYPE_STUB): Use type::is_stub, change all write call sites to
5677 use type::set_is_stub.
5678
5679 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5682 type::has_no_signedness.
5683
5684 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * gdbtypes.h (struct type) <has_no_signedness,
5687 set_has_no_signedness>: New methods.
5688 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5689 call sites to use type::set_has_no_signedness.
5690
5691 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5694 type::is_unsigned.
5695
5696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5699 methods.
5700 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5701 sites to use type::set_is_unsigned.
5702
5703 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5704 Adam Renquinha <arenquinha@cimeq.qc.ca>
5705
5706 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5707 pointer and stack frame offset when unwinding.
5708
5709 2020-09-13 Pedro Alves <pedro@palves.net>
5710
5711 * NEWS: Document "-break-insert --qualified".
5712 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5713
5714 2020-09-13 Pedro Alves <pedro@palves.net>
5715
5716 * linespec.c (classify_mtype, compare_msyms): Delete.
5717 (search_minsyms_for_name): Remove classification logic. Instead
5718 filter out trampoline symbols if we also found an external
5719 function of the same name.
5720
5721 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5722
5723 * NEWS: Create a new section for the next release branch.
5724 Rename the section of the current branch, now that it has
5725 been cut.
5726
5727 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5728
5729 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5730 * version.in: Bump version to 11.0.50.DATE-git.
5731
5732 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5733
5734 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5735
5736 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5737 Felix Willgerodt <Felix.Willgerodt@intel.com>
5738
5739 * gdbarch.sh: Added bfloat16 type.
5740 * gdbarch.c: Regenerated.
5741 * gdbarch.h: Regenerated.
5742 * gdbtypes.c (floatformats_bfloat16): New struct.
5743 (gdbtypes_post_init): Add builtin_bfloat16.
5744 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5745 (floatformats_bfloat16): New struct.
5746 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5747 (i386_ymm_type): Add field "v16_bfloat16"
5748 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5749 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5750 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5751 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5752 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5753 * features/i386/64bit-avx512.c: Regenerated.
5754 * features/i386/64bit-sse.xml: Add bfloat16 type.
5755 * features/i386/64bit-sse.c: Regenerated.
5756
5757 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5758
5759 * i386-tdep.c (i386_zmm_type): Fix field names.
5760 (i386_ymm_type): Fix field names.
5761
5762 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5763
5764 * breakpoint.c: Fix typo in the help message of the
5765 "set breakpoint condition-evaluation" command.
5766
5767 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5768
5769 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5770 * (nbsd_nat_target::pid_to_exec_file)
5771 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5772 (nbsd_nat_target::post_startup_inferior)
5773 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5774 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5775 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5776 * (nbsd_thread_lister): Remove.
5777
5778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5779
5780 * fork-inferior.c (startup_inferior): Avoid double free.
5781
5782 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5783
5784 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5785 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5786
5787 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5788
5789 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5790 * netbsd-nat.c: Include <sys/ptrace.h>.
5791 * (netbsd_nat::enable_proc_events): Add.
5792
5793 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5794
5795 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5796 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5797 (netbsd_nat::for_each_thread): Add.
5798 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5799 "gdbsupport/common-debug.h".
5800 * (netbsd_nat::netbsd_thread_lister)
5801 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5802 (netbsd_nat::for_each_thread): Add.
5803
5804 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5805
5806 * netbsd-nat.h: Include <unistd.h>.
5807 * (netbsd_nat::pid_to_exec_file): Add.
5808 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5809 * (netbsd_nat::pid_to_exec_file) Add.
5810
5811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5812
5813 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5814
5815 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5816
5817 * netbsd-nat.h: New file.
5818 * netbsd-nat.c: Likewise.
5819
5820 2020-09-09 Tom Tromey <tromey@adacore.com>
5821
5822 * ada-lang.c (remove_extra_symbols): Do not increment when
5823 removing an element
5824
5825 2020-09-08 Tom Tromey <tromey@adacore.com>
5826
5827 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5828
5829 2020-09-08 Tom Tromey <tromey@adacore.com>
5830
5831 PR win32/25302:
5832 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5833 (gdb_bfd_init_data): New function.
5834 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5835
5836 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5837
5838 * infrun.c (fetch_inferior_event): Use
5839 `switch_to_target_no_thread` to switch the target.
5840
5841 2020-09-06 Tom Tromey <tom@tromey.com>
5842
5843 * symfile.h (dwarf2_free_objfile): Don't declare.
5844
5845 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5846
5847 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5848 to match 16 byte real/complex type generated by Flang compiler.
5849
5850 2020-09-03 Tom de Vries <tdevries@suse.de>
5851
5852 PR breakpoint/26546
5853 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5854 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5855
5856 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * maint.c (index_digits): New function.
5859 (struct maint_print_section_data): Remove.
5860 (print_bfd_section_info): Remove print_data parameter, add arg
5861 and index_digits.
5862 (print_objfile_section_info): Likewise.
5863 (print_bfd_section_info_maybe_relocated): Likewise (plus
5864 objfile).
5865 (maintenance_info_sections): Adjust calls.
5866
5867 2020-09-02 Tom Tromey <tromey@adacore.com>
5868
5869 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5870 for null pointers.
5871 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5872
5873 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * bcache.h (struct bcache) <insert>: Change type of `added` to
5876 pointer to bool.
5877 * bcache.c (bcache::insert): Likewise.
5878 * gdbtypes.c (check_types_worklist): Adjust.
5879 * psymtab.c (add_psymbol_to_bcache): Adjust.
5880
5881 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5882
5883 * corelow.c (unordered_set): Include.
5884 (class core_target): Add field 'm_core_unavailable_mappings'.
5885 (core_target::build_file_mappings): Print only one warning
5886 per inaccessible file. Add unavailable/broken mappings
5887 to m_core_unavailable_mappings.
5888 (core_target::xfer_partial): Call...
5889 (core_target::xfer_memory_via_mappings): New method.
5890
5891 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5892
5893 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5894 type to bool.
5895
5896 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * dwarf2/read.c (struct field_info): Fix indentation.
5899
5900 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5901
5902 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5903 ordering in comment.
5904 * frame.c (frame_id_eq): Fix indentation.
5905
5906 2020-08-31 Scott Linder <scott@scottlinder.com>
5907 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5910 inline frame ids in outer frame.
5911
5912 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5915 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5916 (outer_frame_id): Use FID_STACK_OUTER instead of
5917 FID_STACK_INVALID.
5918 (frame_id_p): Don't check for outer_frame_id.
5919
5920 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5923 regnum/frame in value. Call allocate_value_lazy.
5924 * frame.c (frame_unwind_register_value): Use
5925 val_print_not_saved.
5926
5927 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5928
5929 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5930
5931 2020-08-29 Pedro Alves <pedro@palves.net>
5932
5933 * progspace.c (print_program_space): Use all_inferiors. Switch to
5934 the inferior before calling target_pid_to_str.
5935
5936 2020-08-28 Tom Tromey <tom@tromey.com>
5937
5938 * xcoffread.c (xcoff_end_psymtab): Update comment.
5939 * dbxread.c (dbx_end_psymtab): Update comment.
5940
5941 2020-08-28 Tom de Vries <tdevries@suse.de>
5942
5943 PR breakpoint/26544
5944 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5945 event_location.
5946 (create_breakpoint): Same.
5947 (base_breakpoint_decode_location): Same.
5948 (bkpt_create_sals_from_location): Same.
5949 (bkpt_decode_location): Same.
5950 (bkpt_probe_create_sals_from_location): Same.
5951 (bkpt_probe_decode_location): Same.
5952 (tracepoint_create_sals_from_location): Same.
5953 (tracepoint_decode_location): Same.
5954 (tracepoint_probe_decode_location): Same.
5955 (strace_marker_create_sals_from_location): Same.
5956 (strace_marker_decode_location): Same.
5957 (create_sals_from_location_default): Same.
5958 (decode_location_default): Same.
5959 * breakpoint.h (struct breakpoint_ops): Same.
5960 (create_breakpoint): Same.
5961 * linespec.h (decode_line_full): Same.
5962 * linespec.c (decode_line_full): Same. Throw error if
5963 result.size () == 0.
5964
5965 2020-08-27 Pedro Alves <pedro@palves.net>
5966
5967 PR gdb/26524
5968 * breakpoint.c (until_break_fsm) <location_breakpoint,
5969 caller_breakpoint>: Delete fields.
5970 <breakpoints>: New field.
5971 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5972 two individual breakpoints.
5973 (until_break_fsm::should_stop): Loop over breakpoints in the
5974 breakpoint vector.
5975 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5976 vector.
5977 (until_break_command): Handle location expanding into multiple
5978 sals.
5979
5980 2020-08-27 Pedro Alves <pedro@palves.net>
5981
5982 PR gdb/26523
5983 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5984 bp_until breakpoints user-specified locations. Update intro
5985 comment.
5986
5987 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5988
5989 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5990 gdb_bfd_sections): New.
5991 * maint.c (print_bfd_section_info): Change param type to
5992 maint_print_section_data.
5993 (print_objfile_section_info): Likewise.
5994 (print_bfd_section_info_maybe_relocated): Likewise.
5995 (maintenance_info_sections): Use gdb_bfd_sections.
5996
5997 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5998
5999 * MAINTAINERS: Add ARC target and maintainer.
6000
6001 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6002
6003 * configure.tgt: ARC support for GNU/Linux.
6004 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6005 * arc-linux-tdep.c: New file.
6006 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6007 * arc-tdep.c (arc_write_pc): Use it.
6008
6009 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6010
6011 * arc-tdep.c (arc_check_for_hardware_loop): New.
6012 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6013
6014 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6015
6016 * arc-tdep.h: Include "gdbarch.h".
6017
6018 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6019
6020 * arch/arc.h
6021 (arc_gdbarch_features): New class to stir the selection of target XML.
6022 (arc_create_target_description): Use FEATURES to choose XML target.
6023 (arc_lookup_target_description): Use arc_create_target_description
6024 to create _new_ target descriptions or return the already created
6025 ones if the FEATURES is the same.
6026 * arch/arc.c: Implementation of prototypes described above.
6027 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6028 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6029 * arc-tdep.c (*_feature_name): Make feature names consistent.
6030 (arc_register_feature): A new struct to hold information about
6031 registers of a particular target/feature.
6032 (arc_check_tdesc_feature): Check if XML provides registers in
6033 compliance with ARC_REGISTER_FEATURE structs.
6034 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6035 (determine_*_reg_feature_set): Which feature name to look for.
6036 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6037 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6038 to expected ISA enums to be used in arc_gdbarch_features structs.
6039 * features/Makefile (FEATURE_XMLFILES): Add new files.
6040 * gdb/features/arc/v1-aux.c: New file.
6041 * gdb/features/arc/v1-aux.xml: Likewise.
6042 * gdb/features/arc/v1-core.c: Likewise.
6043 * gdb/features/arc/v1-core.xml: Likewise.
6044 * gdb/features/arc/v2-aux.c: Likewise.
6045 * gdb/features/arc/v2-aux.xml: Likewise.
6046 * gdb/features/arc/v2-core.c: Likewise.
6047 * gdb/features/arc/v2-core.xml: Likewise.
6048 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6049
6050 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6051 Andrew Burgess <andrew.burgess@embecosm.com>
6052
6053 PR m2/26372
6054 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6055 an assert. Remove single element array indexing pattern as the
6056 MULTI_SUBSCRIPT support will handle this case too.
6057
6058 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 * value.h (valprint_check_validity): Move declaration from
6061 here...
6062 * valprint.h (valprint_check_validity): ... to here.
6063
6064 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * debug.h: New file.
6067 * debug.c (debug_prefixed_vprintf): New function.
6068 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6069 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6070
6071 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * infrun.h (infrun_debug_printf_1): New function declaration.
6074 (infrun_debug_printf): New macro.
6075 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6076 throughout.
6077 (infrun_debug_printf): New function.
6078 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6079 (handle_jit_event): Likewise.
6080
6081 2020-08-21 Mark Wielaard <mark@klomp.org>
6082
6083 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6084
6085 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * frame.c (enum class frame_id_status): New.
6088 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6089 (fprintf_frame): Update.
6090 (compute_frame_id): Set frame id status to "computing" on entry.
6091 Set it back to "not_computed" on failure and to "computed" on
6092 success.
6093 (get_frame_id): Assert the frame id is not being computed.
6094 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6095 (create_new_frame): Likewise.
6096 (frame_cleanup_after_sniffer): Update assert.
6097
6098 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6099
6100 * regcache.c (pid_ptid_regcache_map): New type.
6101 (target_ptid_regcache_map): Remove.
6102 (target_pid_ptid_regcache_map): New type.
6103 (regcaches): Change type to target_pid_ptid_regcache_map.
6104 (get_thread_arch_aspace_regcache): Update.
6105 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6106 case.
6107 (regcaches_size): Update.
6108 (regcache_count): Update.
6109 (registers_changed_ptid_target_pid_test): New.
6110 (_initialize_regcache): Register new test.
6111
6112 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * regcache.c (regcache_count): New.
6115 (struct regcache_test_data): New.
6116 (regcache_test_data_up): New.
6117 (populate_regcaches_for_test): New.
6118 (regcaches_test): Remove.
6119 (get_thread_arch_aspace_regcache_test): New.
6120 (registers_changed_ptid_all_test): New.
6121 (registers_changed_ptid_target_test): New.
6122 (registers_changed_ptid_target_ptid_test): New.
6123 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6124 (_initialize_regcache): Register new tests.
6125
6126 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6127
6128 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6129 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6130 gdbarch and aspace parameter. Use current inferior's aspace.
6131 Validate regcache's arch value.
6132 (regcaches_test): Update.
6133
6134 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * regcache.c (regcaches_test): Call registers_changed.
6137
6138 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6139
6140 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6141
6142 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6143
6144 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6145 to find the end of prologue for flang compiled binaries.
6146 * arm-tdep.c (arm_skip_prologue): Likewise.
6147 * i386-tdep.c (i386_skip_prologue): Likewise.
6148 * producer.c (producer_is_llvm): New function.
6149 (producer_parsing_tests): Added new tests for clang/flang.
6150 * producer.h (producer_is_llvm): New declaration.
6151
6152 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * linux-nat.c (linux_nat_debug_printf): New function.
6155 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6156
6157 2020-08-18 Aaron Merey <amerey@redhat.com>
6158
6159 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6160 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6161 (CLIBS): Add DEBUGINFOD_LIBS.
6162
6163 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6164
6165 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6166 'gdbarch_num_regs'.
6167
6168 2020-08-17 Tom Tromey <tromey@adacore.com>
6169
6170 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6171 ada_get_decoded_value returns NULL.
6172
6173 2020-08-17 Tom Tromey <tromey@adacore.com>
6174
6175 * python/py-inferior.c (infpy_search_memory): Use
6176 gdb_py_object_from_ulongest.
6177 * python/py-infevents.c (create_inferior_call_event_object)
6178 (create_memory_changed_event_object): Use
6179 gdb_py_object_from_ulongest.
6180 * python/py-linetable.c (ltpy_entry_get_pc): Use
6181 gdb_py_object_from_ulongest.
6182
6183 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6184
6185 * loc.c (class symbol_needs_eval_context): Fix indentation.
6186
6187 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6190 bool.
6191
6192 2020-08-17 Tom de Vries <tdevries@suse.de>
6193
6194 PR gdb/26393
6195 * gdbtypes.c (dump_dynamic_prop): New function.
6196 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6197
6198 2020-08-15 Tom de Vries <tdevries@suse.de>
6199
6200 PR backtrace/26390
6201 * stack.c (print_frame_args): Temporarily set the selected
6202 frame to FRAME while printing the frame's arguments.
6203
6204 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6205
6206 PR breakpoints/26385
6207 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6208 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6209
6210 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6211
6212 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6213 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6214 and >= to check return value instead of == -1 and != -1.
6215
6216 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * utils.h (class gdb_argv) <as_array_view>: New method.
6219 * utils.c (gdb_argv_as_array_view_test): New.
6220 (_initialize_utils): Register selftest.
6221 * maint.c (maintenance_selftest): Use the new method.
6222
6223 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6224
6225 * target.h (supports_dumpcore, dumpcore): New
6226 function declarations.
6227 * target.c (supports_dumpcore, dumpcore): New
6228 functions.
6229 * target-delegates.c: Rebuild.
6230 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6231 and target_dumpcore ().
6232
6233 2020-08-13 Aaron Merey <amerey@redhat.com>
6234
6235 * debuginfod-support.c: Replace global variables with user_data.
6236
6237 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * maint.c (maintenance_selftest): Split args and pass array_view
6240 to run_tests.
6241
6242 2020-08-12 Luis Machado <luis.machado@linaro.org>
6243
6244 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6245 type's length.
6246 Use %s and pulongest to print the length.
6247
6248 2020-08-12 Pedro Alves <palves@redhat.com>
6249
6250 * NEWS: Move "Multi-target debugging support" item to the
6251 "Changes since GDB 9" section.
6252
6253 2020-08-12 Pedro Alves <palves@redhat.com>
6254
6255 PR gdb/26336
6256 * progspace.c (program_space::remove_objfile): Invalidate the
6257 frame cache.
6258
6259 2020-08-11 Tom de Vries <tdevries@suse.de>
6260
6261 * MAINTAINERS: Mark ms1 as deleted.
6262
6263 2020-08-10 Luis Machado <luis.machado@linaro.org>
6264
6265 PR gdb/26310
6266
6267 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6268 act accordingly.
6269 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6270 movz/str/stur/stp skipping behavior.
6271
6272 2020-08-10 Luis Machado <luis.machado@linaro.org>
6273
6274 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6275 struct user_sve_header instead of struct sve_context.
6276
6277 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * read.h (dwarf2_fetch_die_loc_sect_off,
6280 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6281 `void *` parameter with function_view.
6282 * read.c (dwarf2_fetch_die_loc_sect_off,
6283 dwarf2_fetch_die_loc_cu_off): Likewise.
6284 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6285 (per_cu_dwarf_call): Adjust.
6286 (get_frame_address_in_block_wrapper): Remove.
6287 (indirect_synthetic_pointer): Adjust.
6288 (get_ax_pc): Remove.
6289 (dwarf2_compile_expr_to_ax): Adjust.
6290
6291 2020-08-08 Tom de Vries <tdevries@suse.de>
6292
6293 PR build/26344
6294 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6295 constructor.
6296 * regcache.c (get_thread_arch_aspace_regcache): Same.
6297
6298 2020-08-07 Tom Tromey <tromey@adacore.com>
6299
6300 * ravenscar-thread.c
6301 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6302 New method.
6303 (ravenscar_thread_target::wait): Check
6304 runtime_initialized.
6305 (ravenscar_thread_target::prepare_to_store)
6306 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6307 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6308 (ravenscar_thread_target::stopped_by_watchpoint)
6309 (ravenscar_thread_target::stopped_data_address)
6310 (ravenscar_thread_target::core_of_thread): Use
6311 scoped_restore_current_thread and
6312 set_base_thread_from_ravenscar_task.
6313
6314 2020-08-07 Tom Tromey <tromey@adacore.com>
6315
6316 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6317
6318 2020-08-07 Tom Tromey <tromey@adacore.com>
6319
6320 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6321 update_inferior_ptid before update_thread_list.
6322 (temporarily_change_regcache_ptid): New class.
6323 (ravenscar_thread_target::fetch_registers)
6324 (ravenscar_thread_target::store_registers)
6325 (ravenscar_thread_target::prepare_to_store): Use base thread when
6326 forwarding operation.
6327
6328 2020-08-07 Tom Tromey <tromey@adacore.com>
6329
6330 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6331 "is_pid" case.
6332
6333 2020-08-07 Tom Tromey <tromey@adacore.com>
6334
6335 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6336 New methods.
6337 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6338 first.
6339 (ravenscar_thread_target::add_thread): Rename from
6340 ravenscar_add_thread.
6341 (ravenscar_thread_target::update_thread_list): Use a lambda.
6342 (ravenscar_thread_target::xfer_partial): New method.
6343
6344 2020-08-07 Tom Tromey <tromey@adacore.com>
6345
6346 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6347 gdb::function_view.
6348 (iterate_over_live_ada_tasks): Change type of argument.
6349 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6350 of argument.
6351
6352 2020-08-07 Tom Tromey <tromey@adacore.com>
6353
6354 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6355 Remove.
6356 (ravenscar_thread_target::extra_thread_info): Remove.
6357 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6358 defer to target beneath for non-Ravenscar threads.
6359
6360 2020-08-07 Tom Tromey <tromey@adacore.com>
6361
6362 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6363 get_base_thread_from_ravenscar_task>: Now methods.
6364 <m_cpu_map>: New member.
6365 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6366 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6367 (ravenscar_thread_target::task_is_currently_active): Update.
6368 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6369 Now a method.
6370 (ravenscar_thread_target::add_active_thread): Put initial thread
6371 into the m_cpu_map.
6372
6373 2020-08-07 Tom Tromey <tromey@adacore.com>
6374
6375 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6376 event_ptid.
6377
6378 2020-08-07 Tom Tromey <tromey@adacore.com>
6379
6380 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6381 runtime_initialized.
6382
6383 2020-08-07 Tom Tromey <tromey@adacore.com>
6384
6385 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6386 add_active_thread.
6387 (ravenscar_thread_target::add_active_thread): Now public.
6388 (ravenscar_inferior_created): Call add_active_thread after pushing
6389 the target.
6390
6391 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 * regcache.c (ptid_regcache_map): New type.
6394 (target_ptid_regcache_map): New type.
6395 (regcaches): Change type to target_ptid_regcache_map.
6396 (get_thread_arch_aspace_regcache): Update to regcaches' new
6397 type.
6398 (regcache_thread_ptid_changed): Likewise.
6399 (registers_changed_ptid): Likewise.
6400 (regcaches_size): Likewise.
6401 (regcaches_test): Update.
6402 (regcache_thread_ptid_changed): Update.
6403 * regcache.h (regcache_up): New type.
6404 * gdbsupport/ptid.h (hash_ptid): New struct.
6405
6406 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6407
6408 * observable.h (thread_ptid_changed): Add parameter
6409 `process_stratum_target *`.
6410 * infrun.c (infrun_thread_ptid_changed): Add parameter
6411 `process_stratum_target *` and use it.
6412 (selftests): New namespace.
6413 (infrun_thread_ptid_changed): New function.
6414 (_initialize_infrun): Register selftest.
6415 * regcache.c (regcache_thread_ptid_changed): Add parameter
6416 `process_stratum_target *` and use it.
6417 (regcache_thread_ptid_changed): New function.
6418 (_initialize_regcache): Register selftest.
6419 * thread.c (thread_change_ptid): Pass target to
6420 thread_ptid_changed observable.
6421
6422 2020-08-06 Caroline Tice <cmtice@google.com>
6423
6424 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6425 (struct dwp_sections): Update field comments. Add loclists and
6426 rnglists fields.
6427 (struct virtual_v2_dwo_sections): Rename struct to
6428 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6429 size & offset fields for loclists and rnglists.
6430 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6431 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6432 skipping dummy type units.
6433 (create_dwp_hash_table): Update the large comment above the function to
6434 discuss Version 5 DWP files as well, with references. Update all the
6435 version checks in the function to check for version 5 as well. Add new
6436 section at the end to create dwp hash table for version 5.
6437 (create_dwp_v2_section): Rename function to
6438 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6439 Add V5 to error message text.
6440 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6441 into calls to create_dwp_v2_or_v5_section.
6442 (create_dwo_unit_in_dwp_v5): New function.
6443 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6444 check for version2; add else clause to handle version 5.
6445 (open_and_init_dwo_file): Add code to check dwarf version & only call
6446 create_debug_types_hash_table (with sections.types) if version is not 5;
6447 else call create_debug_type_hash_table, with sections.info.
6448 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6449 version 5.
6450 (dwarf2_locate_v5_dwp_sections): New function.
6451 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6452 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6453
6454 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * regcache.h (class regcache): Remove friend
6457 registers_changed_ptid.
6458 <regcache_thread_ptid_changed>: Remove.
6459 <regcaches>: Remove.
6460 * regcache.c (regcache::regcaches): Rename to...
6461 (regcaches): ... this. Make static.
6462 (get_thread_arch_aspace_regcache): Update.
6463 (regcache::regcache_thread_ptid_changed): Rename to...
6464 (regcache_thread_ptid_changed): ... this. Update.
6465 (class regcache_access): Remove.
6466 (regcaches_test): Update.
6467 (_initialize_regcache): Update.
6468 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6469 <forward_list>.
6470
6471 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * regcache.h (class regcache) <current_regcache>: Rename to...
6474 <regcaches>: ... this. Move doc here.
6475 * regcache.c (regcache::current_regcache) Rename to...
6476 (regcache::regcaches): ... this. Move doc to header.
6477 (get_thread_arch_aspace_regcache): Update.
6478 (regcache::regcache_thread_ptid_changed): Update.
6479 (registers_changed_ptid): Update.
6480 (class regcache_access) <current_regcache_size>: Rename to...
6481 <regcaches_size>: ... this.
6482 (current_regcache_test): Rename to...
6483 (regcaches_test): ... this.
6484 (_initialize_regcache): Update.
6485
6486 2020-08-06 Victor Collod <vcollod@nvidia.com>
6487
6488 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6489
6490 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6491
6492 * corelow.c (core_target::build_file_mappings): Don't output
6493 null pathname in warning.
6494
6495 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6498 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6499 gdb.dwarf2/dw2-single-line-discriminators.exp,
6500 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6501
6502 2020-08-05 Tom Tromey <tromey@adacore.com>
6503
6504 PR rust/26197:
6505 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6506 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6507 Fix off-by-one and type size errors in ordinary case.
6508
6509 2020-08-05 Tom de Vries <tdevries@suse.de>
6510
6511 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6512 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6513
6514 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6515
6516 * frame.h (frame_id_p): Return bool.
6517 (frame_id_artificial_p): Return bool.
6518 (frame_id_eq): Return bool.
6519 (has_stack_frames): Return bool.
6520 (get_selected_frame): Fix typo in comment.
6521 (get_frame_pc_if_available): Return bool.
6522 (get_frame_address_in_block_if_available): Return bool.
6523 (get_frame_func_if_available): Return bool.
6524 (read_frame_register_unsigned): Return bool.
6525 (get_frame_register_bytes): Return bool.
6526 (safe_frame_unwind_memory): Return bool.
6527 (deprecated_frame_register_read): Return bool.
6528 (frame_unwinder_is): Return bool.
6529 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6530 bool.
6531 <this_id::p>: Likewise.
6532 <prev_p>: Likewise.
6533 (frame_stash_add): Return bool.
6534 (get_frame_id): Use bool.
6535 (frame_id_build_special) Use bool.
6536 (frame_id_build_unavailable_stack): Use bool.
6537 (frame_id_build): Use bool.
6538 (frame_id_p): Return bool, use true/false instead of 1/0.
6539 (frame_id_artificial_p): Likewise.
6540 (frame_id_eq): Likewise.
6541 (frame_id_inner): Likewise.
6542 (get_frame_func_if_available): Likewise.
6543 (read_frame_register_unsigned): Likewise.
6544 (deprecated_frame_register_read): Likewise.
6545 (get_frame_register_bytes): Likewise.
6546 (has_stack_frames): Likewise.
6547 (inside_main_func): Likewise.
6548 (inside_entry_func): Likewise.
6549 (get_frame_pc_if_available): Likewise.
6550 (get_frame_address_in_block_if_available): Likewise.
6551 (frame_unwinder_is): Likewise.
6552 (safe_frame_unwind_memory): Likewise.
6553 (frame_unwind_arch): Likewise.
6554
6555 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6558 type to cached_copy_status.
6559 (fprintf_frame): Adjust.
6560 (get_frame_func_if_available): Adjust.
6561 (frame_cleanup_after_sniffer): Adjust.
6562
6563 2020-08-04 Mark Wielaard <mark@klomp.org>
6564
6565 * MAINTAINERS (Write After Approval): Update email address.
6566
6567 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6570 dynamic_prop::const_val.
6571
6572 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6575 dynamic_prop::kind.
6576
6577 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6580
6581 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6582
6583 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6584
6585 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6586 Jose E. Marchesi <jose.marchesi@oracle.com>
6587
6588 * configure.tgt: Add entry for bpf-*-*.
6589 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6590 (ALLDEPFILES): Add bpf-tdep.c.
6591 * bpf-tdep.c: New file.
6592 * MAINTAINERS: Add bpf target and maintainer.
6593 * NEWS: Mention the support for the new target.
6594
6595 2020-08-04 Tom de Vries <tdevries@suse.de>
6596
6597 PR symtab/23270
6598 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6599 Error.
6600
6601 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6602
6603 * syscalls/freebsd.xml: Regenerate.
6604
6605 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6606
6607 * syscalls/update-freebsd.sh: Fix usage and year range.
6608
6609 2020-08-03 Tom de Vries <tdevries@suse.de>
6610
6611 PR symtab/26333
6612 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6613 DW_LNE_lo_user/DW_LNE_hi_user range.
6614
6615 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 PR ada/26318
6618 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6619 kind.
6620
6621 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6622
6623 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6624
6625 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6626
6627 * breakpoint.c (set_breakpoint_condition): Update the condition
6628 expressions after checking that the input condition string parses
6629 successfully and does not contain junk at the end.
6630
6631 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6632
6633 * breakpoint.c (set_breakpoint_condition): Update the
6634 condition string after parsing the new condition successfully.
6635
6636 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6637
6638 * proc-api.c (_STRUCTURED_PROC): Don't define.
6639 * proc-events.c: Likewise.
6640 * proc-flags.c: Likewise.
6641 * proc-why.c: Likewise.
6642 * procfs.c: Likewise.
6643
6644 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6645 * configure, config.in: Regenerate.
6646
6647 2020-07-30 Tom de Vries <tdevries@suse.de>
6648
6649 PR build/26320
6650 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6651 m_red/m_green/m_blue in a union.
6652
6653 2020-07-29 Tom de Vries <tdevries@suse.de>
6654
6655 PR tdep/26280
6656 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6657
6658 2020-07-28 Tom Tromey <tromey@adacore.com>
6659
6660 PR symtab/26270:
6661 * symtab.h (find_pc_partial_function_sym): Declare.
6662 * cli/cli-cmds.c (disassemble_command): Use
6663 find_pc_partial_function_sym. Check asm_demangle.
6664 * blockframe.c (cache_pc_function_sym): New global.
6665 (cache_pc_function_name): Remove.
6666 (clear_pc_function_cache): Update.
6667 (find_pc_partial_function_sym): New function, from
6668 find_pc_partial_function.
6669 (find_pc_partial_function): Rewrite using
6670 find_pc_partial_function_sym.
6671
6672 2020-07-28 Tom Tromey <tromey@adacore.com>
6673
6674 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6675 help. Add usage.
6676
6677 2020-07-28 Tom Tromey <tromey@adacore.com>
6678
6679 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6680 <DW_OP_GNU_variable_value>: Cast to address type.
6681
6682 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6683
6684 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6685 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6686 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6687 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6688 (nbsd_get_siginfo_type): New.
6689 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6690 (_initialize_nbsd_tdep): New.
6691
6692 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6693
6694 PR binutils/26301
6695 * configure: Regenerated.
6696
6697 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6698
6699 PR binutils/26301
6700 * configure: Regenerated.
6701
6702 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * python/py-frame.c: Remove 'user-regs.h' include.
6705 (frapy_read_register): Rewrite to make use of
6706 gdbpy_parse_register_id.
6707 * python/py-registers.c (gdbpy_parse_register_id): New function,
6708 moved here from python/py-unwind.c. Updated the return type, and
6709 also accepts register descriptor objects.
6710 * python/py-unwind.c: Remove 'user-regs.h' include.
6711 (pyuw_parse_register_id): Moved to python/py-registers.c.
6712 (unwind_infopy_add_saved_register): Update to use
6713 gdbpy_parse_register_id.
6714 (pending_framepy_read_register): Likewise.
6715 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6716
6717 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * python/py-registers.c: Add 'user-regs.h' include.
6720 (register_descriptor_iter_find): New function.
6721 (register_descriptor_iterator_object_methods): New static global
6722 methods array.
6723 (register_descriptor_iterator_object_type): Add pointer to methods
6724 array.
6725
6726 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6727
6728 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6729 for all architectures on FreeBSD 11.3 and later.
6730
6731 2020-07-27 Tom Tromey <tromey@adacore.com>
6732
6733 * gcore.h (load_corefile): Don't declare.
6734
6735 2020-07-27 Tom de Vries <tdevries@suse.de>
6736
6737 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6738 * config.in: Regenerate.
6739 * configure: Regenerate.
6740
6741 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6742
6743 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6744 ws2tcpip.h. When checking whether socklen_t type is defined, use
6745 ws2tcpip.h if it is available and sys/socket.h isn't.
6746 * configure: Regenerate.
6747 * config.in: Regenerate.
6748
6749 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 PR fortran/23051
6752 PR fortran/26139
6753 * valops.c (value_ind): Pass address to
6754 readjust_indirect_value_type.
6755 * value.c (readjust_indirect_value_type): Make parameter
6756 non-const, and add extra address parameter. Resolve original type
6757 before using it.
6758 * value.h (readjust_indirect_value_type): Update function
6759 signature and comment.
6760
6761 2020-07-25 Tom de Vries <tdevries@suse.de>
6762
6763 PR symtab/26243
6764 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6765 entries.
6766
6767 2020-07-24 Aaron Merey <amerey@redhat.com>
6768
6769 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6770 * configure: Rebuild.
6771
6772 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6773
6774 PR corefiles/26294
6775 * corelow.c (_initialize_corelow): Add period to help text
6776 for "maintenance print core-file-backed-mappings".
6777
6778 2020-07-23 Pedro Alves <pedro@palves.net>
6779
6780 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6781 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6782 meanwhile.
6783 * frame.c (frame_cache_generation, get_frame_cache_generation):
6784 New.
6785 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6786 (get_prev_frame_if_no_cycle): On exception, don't touch
6787 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6788 * frame.h (get_frame_cache_generation): Declare.
6789
6790 2020-07-23 Tom de Vries <tdevries@suse.de>
6791
6792 PR tui/26282
6793 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6794 New default constructor.
6795
6796 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6797
6798 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6799 exclude non-statement entries.
6800
6801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6802
6803 * NEWS (New commands): Mention new command
6804 "maintenance print core-file-backed-mappings".
6805
6806 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6807
6808 * corelow.c (gdbcmd.h): Include.
6809 (core_target::info_proc_mappings): New method.
6810 (get_current_core_target): New function.
6811 (maintenance_print_core_file_backed_mappings): New function.
6812 (_initialize_corelow): Add core-file-backed-mappings to
6813 "maint print" commands.
6814
6815 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6816
6817 * linux-tdep.c (dump_note_entry_p): New function.
6818 (linux_dump_mapping_p_ftype): New typedef.
6819 (linux_find_memory_regions_full): Add new parameter,
6820 should_dump_mapping_p.
6821 (linux_find_memory_regions): Adjust call to
6822 linux_find_memory_regions_full.
6823 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6824 call to linux_find_memory_regions_full.
6825
6826 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6827
6828 * corelow.c (solist.h, unordered_map): Include.
6829 (class core_target): Add field m_core_file_mappings and
6830 method build_file_mappings.
6831 (core_target::core_target): Call build_file_mappings.
6832 (core_target::~core_target): Free memory associated with
6833 m_core_file_mappings.
6834 (core_target::build_file_mappings): New method.
6835 (core_target::xfer_partial): Use m_core_file_mappings
6836 for memory transfers.
6837 * linux-tdep.c (linux_read_core_file_mappings): New
6838 function.
6839 (linux_core_info_proc_mappings): Rewrite to use
6840 linux_read_core_file_mappings.
6841 (linux_init_abi): Register linux_read_core_file_mappings.
6842
6843 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6844
6845 * arch-utils.c (default_read_core_file_mappings): New function.
6846 * arch-utils.c (default_read_core_file_mappings): Declare.
6847 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6848 * gdbarch.h, gdbarch.c: Regenerate.
6849
6850 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6851
6852 PR corefiles/25631
6853 * corelow.c (core_target:xfer_partial): Revise
6854 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6855 case after first checking the stratum beneath the core
6856 target.
6857 (has_all_memory): Return true.
6858 * target.c (raw_memory_xfer_partial): Revise comment
6859 regarding use of has_all_memory.
6860
6861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6862
6863 * exec.h (section_table_xfer_memory): Revise declaration,
6864 replacing section name parameter with an optional callback
6865 predicate.
6866 * exec.c (section_table_xfer_memory): Likewise.
6867 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6868 of section_table_xfer_memory.
6869
6870 2020-07-22 Tom Tromey <tromey@adacore.com>
6871
6872 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6873 lookup_symbol_search_name.
6874
6875 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6878 redundant local variable.
6879 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6880 reference, not pointer, update code accordingly.
6881
6882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6883 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6884
6885 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6886 * jit.c (jit_breakpoint_re_set_internal): Use the
6887 `skip_jit_symbol_lookup` field.
6888
6889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6890 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6891
6892 * jit.c (jit_read_descriptor): Define the descriptor address once,
6893 use twice.
6894 (jit_breakpoint_deleted): Move the declaration of the loop variable
6895 `iter` into the loop header.
6896 (jit_breakpoint_re_set_internal): Move the declaration of the local
6897 variable `objf_data` to the first point of definition.
6898 (jit_event_handler): Move the declaration of local variables
6899 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6900 Rename `objf` to `jited`.
6901
6902 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6905 Remove.
6906 * jit.c (get_jiter_objfile_data): Update.
6907
6908 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6909 Simon Marchi <simon.marchi@polymtl.ca>
6910
6911 * jit.c (struct jit_program_space_data): Remove.
6912 (jit_program_space_key): Remove.
6913 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6914 stuff.
6915 (get_jit_program_space_data): Remove.
6916 (jit_breakpoint_deleted): Iterate on all of the program space's
6917 objfiles.
6918 (jit_inferior_init): Likewise.
6919 (jit_breakpoint_re_set_internal): Likewise. Also change return
6920 type to void.
6921 (jit_breakpoint_re_set): Pass current_program_space to
6922 jit_breakpoint_re_set_internal.
6923
6924 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6925
6926 * jit.h (struct jiter_objfile_data) <cached_code_address,
6927 jit_breakpoint>: Move to here from ...
6928 * jit.c (jit_program_space_data): ... here.
6929 (jiter_objfile_data::~jiter_objfile_data): Update.
6930 (jit_breakpoint_deleted): Update.
6931 (jit_breakpoint_re_set_internal): Update.
6932
6933 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6934
6935 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6936 checks.
6937 (jit_read_descriptor): Remove NULL check.
6938 (jit_event_handler): Add an assertion.
6939
6940 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6941
6942 * jit.h (struct jit_objfile_data): Split into...
6943 (struct jiter_objfile_data): ... this ...
6944 (struct jited_objfile_data): ... and this.
6945 * objfiles.h (struct objfile) <jit_data>: Remove.
6946 <jiter_data, jited_data>: New fields.
6947 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6948 (jiter_objfile_data::~jiter_objfile_data): ... this.
6949 (get_jit_objfile_data): Rename to ...
6950 (get_jiter_objfile_data): ... this.
6951 (add_objfile_entry): Update.
6952 (jit_read_descriptor): Use get_jiter_objfile_data.
6953 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6954 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6955 (jit_inferior_exit_hook): Use objfile's jited_data field.
6956
6957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6958
6959 * jit.h: Forward-declare `struct minimal_symbol`.
6960 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6961 constructor, destructor, and an objfile* field.
6962 * jit.c (jit_objfile_data): Remove.
6963 (struct jit_objfile_data): Migrate from here to jit.h.
6964 (jit_objfile_data::~jit_objfile_data): New destructor
6965 implementation with code moved from free_objfile_data.
6966 (free_objfile_data): Delete.
6967 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6968 (jit_find_objf_with_entry_addr): Ditto.
6969 (jit_inferior_exit_hook): Ditto.
6970 (_initialize_jit): Remove the call to
6971 register_objfile_data_with_cleanup.
6972 * objfiles.h (struct objfile) <jit_data>: New field.
6973
6974 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6975
6976 * jit.h: Forward-declare `struct objfile`.
6977 (jit_event_handler): Add a second parameter, the JITer objfile.
6978 * jit.c (jit_read_descriptor): Change the signature to take the
6979 JITer objfile as an argument instead of the jit_program_space_data.
6980 (jit_inferior_init): Update the call to jit_read_descriptor.
6981 (jit_event_handler): Use the new JITer objfile argument when calling
6982 jit_read_descriptor.
6983 * breakpoint.c (handle_jit_event): Update the call to
6984 jit_event_handler to pass the JITer objfile.
6985
6986 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6987
6988 * gdbarch.c: Regenerate.
6989 * gdbarch.h: Regenerate.
6990 * gdbarch.sh (handle_segmentation_fault): Remove method.
6991 * infrun.c (handle_segmentation_fault): Remove.
6992 (print_signal_received_reason): Remove call to
6993 handle_segmentation_fault.
6994
6995 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6996
6997 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6998 Rename to sparc64_linux_report_signal_info and add siggnal
6999 argument.
7000 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7001 instead of sparc64_linux_handle_segmentation_fault.
7002
7003 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7004
7005 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7006 i386_linux_report_signal_info instead of
7007 i386_linux_handle_segmentation_fault.
7008 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7009 to i386_linux_report_signal_info and add siggnal argument.
7010 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7011 of i386_linux_handle_segmentation_fault.
7012 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7013 to i386_linux_report_signal_info and add siggnal argument.
7014
7015 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7016
7017 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7018 hook if present.
7019
7020 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7021
7022 * gdbarch.c: Regenerate.
7023 * gdbarch.h: Regenerate.
7024 * gdbarch.sh (report_signal_info): New method.
7025 * infrun.c (print_signal_received_reason): Invoke gdbarch
7026 report_signal_info hook if present.
7027
7028 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * python/py-registers.c : Add 'unordered_map' include.
7031 (gdbpy_new_reggroup): Renamed to...
7032 (gdbpy_get_reggroup): ...this. Update to only create register
7033 group descriptors when needed.
7034 (gdbpy_reggroup_iter_next): Update.
7035
7036 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * python/py-registers.c (gdbpy_register_object_data): New static
7039 global.
7040 (gdbpy_register_object_data_init): New function.
7041 (gdbpy_new_register_descriptor): Renamed to...
7042 (gdbpy_get_register_descriptor): ...this, and update to reuse
7043 existing register descriptors where possible.
7044 (gdbpy_register_descriptor_iter_next): Update.
7045 (gdbpy_initialize_registers): Register new gdbarch data.
7046
7047 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * linux-nat.c (stopped_pids): Make static.
7050
7051 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 PR ada/26235
7054 * gdbtypes.c (ada_discrete_type_low_bound,
7055 ada_discrete_type_high_bound): Handle undefined bounds.
7056
7057 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7058
7059 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7060 declaration.
7061 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7062 function.
7063
7064 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7065
7066 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7067 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7068 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7069 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7070 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7071 method.
7072
7073 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7074
7075 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7076 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7077 which are deprecated in Guile 3.0.
7078 * configure.ac (try_guile_versions): Add "guile-3.0".
7079 * configure (try_guile_versions): Regenerate.
7080 * NEWS: Update entry.
7081
7082 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7083 Doug Evans <dje@google.com>
7084
7085 PR gdb/21104
7086 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7087 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7088 USING_GUILE_BEFORE_2_2.
7089 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7090 Change type to 'scm_t_port_type *'.
7091 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7092 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7093 parameter and honor it. Update callers.
7094 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7095 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7096 functions.
7097 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7098 USING_GUILE_BEFORE_2_2.
7099 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7100 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7101 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7102 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7103 and 'SCM_PORT_TYPE'.
7104 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7105 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7106 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7107 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7108 [!USING_GUILE_BEFORE_2_2]: New functions.
7109 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7110 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7111 'gdbscm_memory_port_read'.
7112 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7113 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7114 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7115 function.
7116 (ioscm_init_memory_port): Remove.
7117 (ioscm_init_memory_port_stream): New function
7118 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7119 function.
7120 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7121 Return scm_from_uint (0).
7122 (gdbscm_set_memory_port_read_buffer_size_x)
7123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7124 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7125 Return scm_from_uint (0).
7126 (gdbscm_set_memory_port_write_buffer_size_x)
7127 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7128 * configure.ac (try_guile_versions): Add "guile-2.2".
7129 * configure: Regenerate.
7130 * NEWS: Add entry.
7131
7132 2020-07-18 Tom Tromey <tom@tromey.com>
7133
7134 * linux-nat.c (linux_multi_process): Remove.
7135 (linux_nat_target::supports_multi_process): Return true.
7136
7137 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7140 (riscv_lookup_target_description): Return pointer out of
7141 unique_ptr.
7142 * target-descriptions.c (allocate_target_description): Add
7143 comment.
7144 (target_desc_deleter::operator()): Likewise.
7145 * target-descriptions.h (struct target_desc_deleter): Moved to
7146 gdbsupport/tdesc.h.
7147 (target_desc_up): Likewise.
7148
7149 2020-07-17 Tom Tromey <tromey@adacore.com>
7150
7151 * linux-nat.c (linux_nat_target::supports_non_stop)
7152 (linux_nat_target::always_non_stop_p): Use "true".
7153 (linux_nat_target::supports_disable_randomization): Use "true" and
7154 "false".
7155
7156 2020-07-16 Caroline Tice <cmtice@google.com>
7157
7158 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7159 (RNGLIST_HEADER_SIZE64): New constant definition.
7160 (struct dwop_section_names): Add rnglists_dwo.
7161 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7162 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7163 (struct dwo_sections): Add rnglists field.
7164 (read_attribut_reprocess): Add tag parameter.
7165 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7166 (cu_debug_rnglists_section): New function (decl & definition).
7167 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7168 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7169 die whose range is being checked; get rnglist section from
7170 cu_debug_rnglists_section, to get from either objfile or dwo file as
7171 appropriate. Add cases for DW_RLE_base_addressx,
7172 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7173 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7174 test inside if-condition and updating complaint message.
7175 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7176 dwarf2_rnglists_process.
7177 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7178 dwarf2_ranges_process.
7179 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7180 need_ranges_base and update comment appropriately. Also pass die tag
7181 to dwarf2_ranges_read.
7182 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7183 need_ranges_base and update comment appropriately. Also pass die tag
7184 to dwarf2_ranges_process.
7185 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7186 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7187 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7188 need_ranges_base and update comment appropriately. Also pass die tag
7189 to read_attribute_reprocess and dwarf2_ranges_read.
7190 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7191 and update function comment appropriately.
7192 (read_loclist_index): Call read_loclists_rnglists_header instead of
7193 read_loclist_header.
7194 (read_rnglist_index): New function.
7195 (read_attribute_reprocess): Add tag parameter. Add code for
7196 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7197 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7198
7199 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7200
7201 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7202 being resolved.
7203
7204 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7205
7206 * arch-utils.c (show_architecture): Update formatting of messages.
7207
7208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * gdbtypes.h (struct type) <bounds>: Handle array and string
7211 types.
7212 * ada-lang.c (assign_aggregate): Use type::bounds on
7213 array/string type.
7214 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7215 * c-varobj.c (c_number_of_children): Likewise.
7216 (c_describe_child): Likewise.
7217 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7218 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7219 (f_type_print_base): Likewise.
7220 * f-valprint.c (f77_array_offset_tbl): Likewise.
7221 (f77_get_upperbound): Likewise.
7222 (f77_print_array_1): Likewise.
7223 * guile/scm-type.c (gdbscm_type_range): Likewise.
7224 * m2-typeprint.c (m2_array): Likewise.
7225 (m2_is_long_set_of_type): Likewise.
7226 * m2-valprint.c (get_long_set_bounds): Likewise.
7227 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7228 * python/py-type.c (typy_range): Likewise.
7229 * rust-lang.c (rust_internal_print_type): Likewise.
7230 * type-stack.c (type_stack::follow_types): Likewise.
7231 * valarith.c (value_subscripted_rvalue): Likewise.
7232 * valops.c (value_cast): Likewise.
7233
7234 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7237 callers to use the equivalent accessor methods.
7238
7239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7242 (struct type) <bit_stride>: New method.
7243 (TYPE_BIT_STRIDE): Remove.
7244 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7245
7246 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7249 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7250 callers to use the equivalent accessor methods instead.
7251
7252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7255 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7256 callers to use the equivalent accessor methods instead.
7257
7258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7261 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7262 to use dynamic_prop::kind.
7263
7264 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7267 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7268 to get the bound property's kind and check against
7269 PROP_UNDEFINED.
7270
7271 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7274 all callers to use type::range_bounds followed by
7275 dynamic_prop::{low,high}.
7276
7277 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7278
7279 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7280 const_val, set_const_val, baton, set_locexpr, set_loclist,
7281 set_addr_offset, variant_parts, set_variant_parts,
7282 original_type, set_original_type>: New methods.
7283 <kind>: Rename to...
7284 <m_kind>: ... this. Update all users to use the new methods
7285 instead.
7286 <data>: Rename to...
7287 <m_data>: ... this. Update all users to use the new methods
7288 instead.
7289
7290 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * gdbtypes.c (get_discrete_bounds): Return failure if
7293 the range type's bounds are not both defined and constant
7294 values.
7295 (get_array_bounds): Update comment. Remove undefined bound check.
7296
7297 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7300 the type::bounds method directly.
7301
7302 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7305 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7306 are used to set the range type's bounds to use set_bounds.
7307
7308 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7309
7310 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7311
7312 2020-07-10 Pedro Alves <pedro@palves.net>
7313
7314 * gdbthread.h (inferior_ref): Define.
7315 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7316 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7317 * thread.c
7318 (scoped_restore_current_thread::restore):
7319 Adjust to gdb::ref_ptr.
7320 (scoped_restore_current_thread::~scoped_restore_current_thread):
7321 Remove manual decref handling.
7322 (scoped_restore_current_thread::scoped_restore_current_thread):
7323 Adjust to use
7324 inferior_ref::new_reference/thread_info_ref::new_reference.
7325 Incref the thread before calling get_frame_id instead of after.
7326 Let TARGET_CLOSE_ERROR propagate.
7327
7328 2020-07-10 Pedro Alves <pedro@palves.net>
7329
7330 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7331 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7332 NOT_AVAILABLE_ERROR.
7333 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7334 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7335
7336 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7337 Pedro Alves <pedro@palves.net>
7338
7339 PR gdb/26199
7340 * infrun.c (threads_are_resumed_pending_p): Delete.
7341 (do_target_wait): Remove threads_are_executing and
7342 threads_are_resumed_pending_p checks from the inferior_matches
7343 lambda. Update comments.
7344
7345 2020-07-10 Pedro Alves <pedro@palves.net>
7346
7347 PR gdb/26199
7348 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7349 executing threads.
7350
7351 2020-07-10 Pedro Alves <pedro@palves.net>
7352
7353 PR gdb/26199
7354 * infrun.c (handle_no_resumed): Handle multiple targets.
7355
7356 2020-07-10 Pedro Alves <pedro@palves.net>
7357
7358 PR gdb/26199
7359 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7360 target_is_async_p.
7361
7362 2020-07-10 Pedro Alves <pedro@palves.net>
7363
7364 PR gdb/26199
7365 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7366 threads, not all threads.
7367
7368 2020-07-10 Pedro Alves <pedro@palves.net>
7369
7370 PR gdb/26199
7371 * remote.c (remote_target::open_1): Pass remote target pointer as
7372 data to create_async_event_handler.
7373 (remote_async_inferior_event_handler): Mark async event handler
7374 before returning if the remote target still has either pending
7375 events or unacknowledged notifications.
7376
7377 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7378
7379 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7380 declaration.
7381 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7382 function.
7383
7384 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7385
7386 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7387 inferior_ptid.
7388
7389 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7390
7391 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7392 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7393 AT_FREEBSD_PS_STRINGS.
7394
7395 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7396
7397 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7398 of debugfile path on Windows.
7399
7400 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7401
7402 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7403 argument to 'data'.
7404
7405 2020-07-08 Tom Tromey <tromey@adacore.com>
7406
7407 * ada-lang.c (ada_exception_message_1): Use read_memory.
7408
7409 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 PR python/22748
7412 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7413 special handling for inline frames.
7414 * findvar.c (value_of_register_lazy): Skip inline frames when
7415 creating lazy register values.
7416 * frame.c (frame_id_computed_p): Delete definition.
7417 * frame.h (frame_id_computed_p): Delete declaration.
7418
7419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7420
7421 * NEWS: Mention additions to Python API.
7422 * python/py-arch.c (archpy_register_groups): New function.
7423 (arch_object_methods): Add 'register_groups' method.
7424 * python/py-registers.c (reggroup_iterator_object): New struct.
7425 (reggroup_object): New struct.
7426 (gdbpy_new_reggroup): New function.
7427 (gdbpy_reggroup_to_string): New function.
7428 (gdbpy_reggroup_name): New function.
7429 (gdbpy_reggroup_iter): New function.
7430 (gdbpy_reggroup_iter_next): New function.
7431 (gdbpy_new_reggroup_iterator): New function
7432 (gdbpy_initialize_registers): Register new types.
7433 (reggroup_iterator_object_type): Define new Python type.
7434 (gdbpy_reggroup_getset): New static global.
7435 (reggroup_object_type): Define new Python type.
7436 * python/python-internal.h
7437
7438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7441 * python/py-arch.c (archpy_registers): New function.
7442 (arch_object_methods): Add 'registers' method.
7443 * python/py-registers.c: New file.
7444 * python/python-internal.h
7445 (gdbpy_new_register_descriptor_iterator): Declare.
7446 (gdbpy_initialize_registers): Declare.
7447 * python/python.c (do_start_initialization): Call
7448 gdbpy_initialize_registers.
7449 * NEWS: Mention additions to the Python API.
7450
7451 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 * NEWS: Mention new Python API method.
7454 * python/py-unwind.c (pending_framepy_architecture): New function.
7455 (pending_frame_object_methods): Add architecture method.
7456
7457 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7458
7459 * gdbarch.c: Regenerate.
7460 * gdbarch.h: Regenerate.
7461 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7462 (gdbarch_data): Use internal_error for the case where
7463 deprecated_set_gdbarch_data was originally needed.
7464 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7465 and use passed in obstack.
7466 (libunwind_frame_set_descr): Should no longer get back NULL from
7467 gdbarch_data.
7468 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7469 type.
7470 * user-regs.c (user_regs_init): Update parameters, and use passed
7471 in obstack.
7472 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7473 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7474
7475 2020-07-06 Tom de Vries <tdevries@suse.de>
7476
7477 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7478 End-Of-Sequence in lte_is_less_than.
7479 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7480 "gdb: Don't reorder line table entries too much when sorting".
7481
7482 2020-07-06 Tom de Vries <tdevries@suse.de>
7483
7484 PR tui/26205
7485 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7486
7487 2020-07-05 Tom de Vries <tdevries@suse.de>
7488
7489 PR build/26187
7490 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7491 std::uncaught_exceptions instead of deprecated
7492 std::uncaught_exception.
7493
7494 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * macroexp.h (macro_stringify): Return
7497 gdb::unique_xmalloc_ptr<char>.
7498 * macroexp.c (macro_stringify): Likewise.
7499 * macrotab.c (fixup_definition): Update.
7500
7501 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7502
7503 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7504 (lex_one_token): Update.
7505 * macroexp.c (struct macro_buffer) <release>: Return
7506 gdb::unique_xmalloc_ptr<char>.
7507 (macro_stringify): Update.
7508 (macro_expand): Update.
7509 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7510 * macroexp.h (macro_expand_next): Likewise.
7511
7512 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * macroexp.h (macro_lookup_ftype): Remove.
7515 (macro_expand, macro_expand_once, macro_expand_next): Remove
7516 lookup function parameters, add scope parameter.
7517 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7518 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7519 * macroscope.h (standard_macro_lookup): Change parameter type
7520 to macro_scope.
7521 * macroscope.c (standard_macro_lookup): Likewise.
7522 * c-exp.y (lex_one_token): Update.
7523 * macrocmd.c (macro_expand_command): Likewise.
7524 (macro_expand_once_command): Likewise.
7525
7526 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7527
7528 * inf-loop.c (inferior_event_handler): Remove client_data param.
7529 * inf-loop.h (inferior_event_handler): Likewise.
7530 * infcmd.c (step_1): Adjust.
7531 * infrun.c (proceed): Adjust.
7532 (fetch_inferior_event): Remove client_data param.
7533 (infrun_async_inferior_event_handler): Adjust.
7534 * infrun.h (fetch_inferior_event): Remove `void *` param.
7535 * linux-nat.c (handle_target_event): Adjust.
7536 * record-btrace.c (record_btrace_handle_async_inferior_event):
7537 Adjust.
7538 * record-full.c (record_full_async_inferior_event_handler):
7539 Adjust.
7540 * remote.c (remote_async_inferior_event_handler): Adjust.
7541
7542 2020-07-01 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7545 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7546
7547 2020-07-01 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7550 tui_gen_win_info.
7551 (tui_win_info::make_window): Merge with
7552 tui_gen_win_info::make_window.
7553 (tui_win_info::make_visible): Move from tui_gen_win_info.
7554 * tui/tui-win.c (tui_win_info::max_width): Move from
7555 tui_gen_win_info.
7556 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7557 type.
7558 <window_factory>: Likewise.
7559 * tui/tui-layout.c (tui_win_info::resize): Move from
7560 tui_gen_win_info.
7561 (make_standard_window): Change return type.
7562 (get_locator_window, tui_get_window_by_name): Likewise.
7563 (tui_layout_window::apply): Remove a cast.
7564 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7565 (struct tui_win_info): Merge with tui_gen_win_info.
7566 (struct tui_gen_win_info): Remove.
7567
7568 2020-07-01 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-stack.h (struct tui_locator_window): Derive from
7571 tui_win_info.
7572 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7573 <can_box>: New method.
7574
7575 2020-07-01 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7578
7579 2020-07-01 Tom Tromey <tom@tromey.com>
7580
7581 * tui/tui-regs.c (tui_data_window::display_registers_from)
7582 (tui_data_window::display_registers_from)
7583 (tui_data_window::first_data_item_displayed)
7584 (tui_data_window::delete_data_content_windows): Update.
7585 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7586 Remove.
7587 (tui_data_window::check_register_values): Update.
7588 (tui_data_item_window::rerender): Add parameters. Update.
7589 (tui_data_item_window::refresh_window): Remove.
7590 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7591 virtual.
7592 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7593 tui_gen_win_info.
7594 <refresh_window, max_height, min_height>: Remove.
7595 <rerender>: Add parameters.
7596 <x, y, visible>: New members.
7597 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7598 <m_item_width>: New member.
7599
7600 2020-07-01 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-regs.c (tui_data_window::show_register_group)
7603 (tui_data_window::check_register_values): Update.
7604 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7605 from item_no.
7606
7607 2020-07-01 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7610 useless "if".
7611
7612 2020-07-01 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7615 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7616
7617 2020-07-01 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7620 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7621 (struct tui_line_or_address): Move from tui-data.h.
7622 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7623 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7624 (tui_cmd_window, tui_source_window_base, tui_source_window)
7625 (tui_disasm_window): Don't declare.
7626 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7627 to tui-winsource.h.
7628 (SINGLE_KEY): Move to tui-stack.c.
7629
7630 2020-07-01 Tom Tromey <tom@tromey.com>
7631
7632 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7633 std::string.
7634 * tui/tui-regs.c (class tab_expansion_file): New.
7635 (tab_expansion_file::write): New method.
7636 (tui_register_format): Change return type. Use
7637 tab_expansion_file.
7638 (tui_get_register, tui_data_window::display_registers_from)
7639 (tui_data_item_window::rerender): Update.
7640 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7641 * tui/tui-io.c (tui_expand_tabs): Remove.
7642
7643 2020-07-01 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7646
7647 2020-07-01 Fangrui Song <maskray@google.com>
7648
7649 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7650
7651 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7652
7653 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7654 forms for DW_AT_associated and DW_AT_allocated attributes,
7655 which is already checked in function attr_to_dynamic_prop.
7656
7657 2020-06-30 Tom Tromey <tromey@adacore.com>
7658
7659 * dwarf2/read.c (quirk_rust_enum): Correctly call
7660 alloc_rust_variant for default-less enum.
7661
7662 2020-06-30 Tom Tromey <tromey@adacore.com>
7663
7664 PR build/26183:
7665 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7666 gdb::to_string.
7667
7668 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7671 * gdbarch.h: Re-generate.
7672
7673 2020-06-28 Tom Tromey <tom@tromey.com>
7674
7675 * command.h (cmd_types): Remove.
7676 (cmd_type): Don't declare.
7677 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7678 typedef.
7679 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7680 * cli/cli-decode.c (cmd_type): Remove.
7681
7682 2020-06-27 Pedro Alves <palves@redhat.com>
7683
7684 * fork-child.c (prefork_hook): Adjust.
7685 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7686 Delete.
7687 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7688 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7689 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7690 Remove declarations.
7691 (struct inferior) <set_tty, tty>: New methods.
7692 (struct inferior) <terminal>: Rename to ...
7693 (struct inferior) <m_terminal>: ... this and make private.
7694 * main.c (captured_main_1): Adjust.
7695 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7696 (mi_cmd_inferior_tty_show): Adjust.
7697 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7698 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7699
7700 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7701
7702 * configure.ac: Add --enable-libctf: handle --disable-static
7703 properly.
7704 * acinclude.m4: sinclude ../config/enable.m4.
7705 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7706 (LIBCTF): Substitute in.
7707 (CTF_DEPS): New, likewise.
7708 (CLIBS): libctf needs symbols from libbfd: move earlier.
7709 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7710 flags.
7711 * ctfread.c: Surround in ENABLE_LIBCTF.
7712 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7713 * configure: Regenerate.
7714 * config.in: Likewise.
7715
7716 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7717
7718 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7719
7720 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7721
7722 * inferior.h (struct inferior) <terminal>: Change type to
7723 gdb::unique_xmalloc_ptr<char>.
7724 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7725 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7726 field, adjust to unique pointer.
7727 (get_inferior_io_terminal): Adjust to unique pointer.
7728
7729 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7732 registers, not just the known core set of registers.
7733
7734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7737 fflags, frm, and fcsr registers.
7738 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7739 restore groups.
7740 (riscv_tdesc_unknown_reg): New function.
7741 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7742 tdesc_use_registers.
7743 * riscv-tdep.h (struct gdbarch_tdep): Add
7744 unknown_csrs_first_regnum, unknown_csrs_count,
7745 duplicate_fflags_regnum, duplicate_frm_regnum, and
7746 duplicate_fcsr_regnum fields.
7747
7748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7751 callback, use the callback (when not null) to help number unknown
7752 registers.
7753 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7754 (tdesc_use_registers): Add extra parameter to declaration.
7755
7756 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7757
7758 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7759 in the file.
7760 (class riscv_pending_register_alias): Likewise.
7761 (riscv_register_feature::register_info): Change 'required_p' field
7762 to 'required', and change its type. Add 'check' member function.
7763 (riscv_register_feature::register_info::check): Define new member
7764 function.
7765 (riscv_xreg_feature): Change initialisation of 'required' field.
7766 (riscv_freg_feature): Likewise.
7767 (riscv_virtual_feature): Likewise.
7768 (riscv_csr_feature): Likewise.
7769 (riscv_check_tdesc_feature): Take extra parameter, the csr
7770 tdesc_feature, rewrite the function to use the new
7771 riscv_register_feature::register_info::check function.
7772 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7773
7774 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * features/Makefile: Remove all references to the deleted files
7777 below.
7778 * features/riscv/32bit-csr.c: Deleted.
7779 * features/riscv/32bit-csr.xml: Deleted.
7780 * features/riscv/64bit-csr.c: Deleted.
7781 * features/riscv/64bit-csr.xml: Deleted.
7782 * features/riscv/rebuild-csr-xml.sh: Deleted.
7783
7784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7787 whitespace error for declaration of names member variable.
7788 (struct riscv_register_feature): Add new prefer_first_name member
7789 variable, and fix whitespace error in declaration of registers.
7790 (riscv_xreg_feature): Initialize prefer_first_name field.
7791 (riscv_freg_feature): Likewise.
7792 (riscv_virtual_feature): Likewise.
7793 (riscv_csr_feature): Likewise.
7794 (riscv_register_name): Expand on comments. Remove register name
7795 modifications for CSR and virtual registers.
7796
7797 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7800 errors.
7801
7802 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7805 riscv-opc.h.
7806 (class riscv_pending_register_alias): New class.
7807 (riscv_check_tdesc_feature): Take vector of pending aliases and
7808 populate it as appropriate.
7809 (riscv_setup_register_aliases): Delete.
7810 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7811 to riscv_check_tdesc_feature in all cases. Use the vector to
7812 create the register aliases.
7813
7814 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7815
7816 * sol2-tdep.c (sol2_static_transform_name): Remove.
7817 (sol2_init_abi): Don't register it.
7818 * gdbarch.sh (static_transform_name): Remove.
7819 * gdbarch.c, gdbarch.h: Regenerate.
7820
7821 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7822 gdbarch_static_transform_name.
7823 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7824 * stabsread.c (define_symbol) <'X'>: Remove.
7825 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7826 handling.
7827 <'V'>: Likewise.
7828 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7829 <'S'>: Remove call to gdbarch_static_transform_name.
7830
7831 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7832
7833 * procfs.c (procfs_pre_trace): New function.
7834 (procfs_target::create_inferior): Pass it to fork_inferior.
7835
7836 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7837
7838 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7839 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7840 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7841 sol2-tdep.o, sparc-sol2-tdep.o.
7842 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7843 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7844 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7845 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7846
7847 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7848
7849 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7850 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7851 Call sol2_init_abi.
7852 Remove calls to set_gdbarch_skip_solib_resolver,
7853 set_gdbarch_core_pid_to_str.
7854 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7855 (i386_sol2_static_transform_name): Remove.
7856 (i386_sol2_init_abi): Call sol2_init_abi.
7857 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7858 set_gdbarch_static_transform_name,
7859 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7860 Use sol2_sigtramp_p.
7861 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7862 (sol2_sigtramp_p): New function.
7863 (sol2_static_transform_name): New function.
7864 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7865 (sol2_init_abi): New function.
7866 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7867 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7868 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7869 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7870 (sparc_sol2_static_transform_name): Remove.
7871 (sparc32_sol2_init_abi): Call sol2_init_abi.
7872 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7873 set_gdbarch_static_transform_name,
7874 set_gdbarch_skip_solib_resolver,
7875 set_gdbarch_core_pid_to_str.
7876 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7877 (sparc_sol2_static_transform_name): Remove
7878 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7879 call sol2_sigtramp_p.
7880 (sparc64_sol2_init_abi): Call sol2_init_abi.
7881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7882 set_gdbarch_static_transform_name,
7883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7884
7885 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7886
7887 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7888 * exec.c (validate_exec_file): If from_tty, set both
7889 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7890 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7891 and from_tty, unconditionally ask a confirmation.
7892
7893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * target-descriptions.c (tdesc_architecture_name): Protect against
7896 NULL pointer dereference.
7897 (maint_print_xml_tdesc_cmd): New function.
7898 (_initialize_target_descriptions): Register new 'maint print
7899 xml-tdesc' command and give it the filename completer.
7900 * NEWS: Mention new 'maint print xml-tdesc' command.
7901
7902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * target-descriptions.c (class tdesc_compatible_info): New class.
7905 (struct target_desc): Change type of compatible vector.
7906 (tdesc_compatible_p): Update for change in type of
7907 target_desc::compatible.
7908 (tdesc_compatible_info_list): New function.
7909 (tdesc_compatible_info_arch_name): New function.
7910 (tdesc_add_compatible): Update for change in type of
7911 target_desc::compatible.
7912 (print_c_tdesc::visit_pre): Likewise.
7913
7914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7917 whitespace to underscore.
7918 (maint_print_c_tdesc_cmd): Use fake filename for target
7919 descriptions that came from the target.
7920 (_initialize_target_descriptions): Add filename command completion
7921 for 'maint print c-tdesc'.
7922
7923 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7926 lines.
7927
7928 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7931 lines.
7932 (dwarf2_find_location_expression): Likewise.
7933 (call_site_parameter_matches): Likewise.
7934 (dwarf2_compile_expr_to_ax): Likewise.
7935 (disassemble_dwarf_expression): Likewise.
7936 (loclist_describe_location): Likewise.
7937
7938 2020-06-23 Pedro Alves <palves@redhat.com>
7939
7940 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7941 progspace-and-thread.h. Include scoped-mock-context.h instead.
7942 (register_to_value_test): Use scoped_mock_context.
7943 * regcache.c: Include "scoped-mock-context.h".
7944 (cooked_read_test): Don't error out if a target is already pushed.
7945 Use scoped_mock_context. Adjust.
7946 * scoped-mock-context.h: New file.
7947
7948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7951 initializer.
7952 (ada_language::is_string_type_p): New member function.
7953 * c-lang.c (c_language_data): Delete la_is_string_type_p
7954 initializer.
7955 (cplus_language_data): Likewise.
7956 (asm_language_data): Likewise.
7957 (minimal_language_data): Likewise.
7958 * d-lang.c (d_language_data): Likewise.
7959 * f-lang.c (f_is_string_type_p): Delete function, implementation
7960 moved to f_language::is_string_type_p.
7961 (f_language_data): Delete la_is_string_type_p initializer.
7962 (f_language::is_string_type_p): New member function,
7963 implementation from f_is_string_type_p.
7964 * go-lang.c (go_is_string_type_p): Delete function, implementation
7965 moved to go_language::is_string_type_p.
7966 (go_language_data): Delete la_is_string_type_p initializer.
7967 (go_language::is_string_type_p): New member function,
7968 implementation from go_is_string_type_p.
7969 * language.c (language_defn::is_string_type_p): Define new member
7970 function.
7971 (default_is_string_type_p): Make static, add comment copied from
7972 header file.
7973 (unknown_language_data): Delete la_is_string_type_p initializer.
7974 (unknown_language::is_string_type_p): New member function.
7975 (auto_language_data): Delete la_is_string_type_p initializer.
7976 (auto_language::is_string_type_p): New member function.
7977 * language.h (language_data): Delete la_is_string_type_p field.
7978 (language_defn::is_string_type_p): Declare new function.
7979 (default_is_string_type_p): Delete desclaration, move comment to
7980 definition.
7981 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7982 moved to m2_language::is_string_type_p.
7983 (m2_language_data): Delete la_is_string_type_p initializer.
7984 (m2_language::is_string_type_p): New member function,
7985 implementation from m2_is_string_type_p.
7986 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7987 initializer.
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_is_string_type_p): Delete function,
7990 implementation moved to pascal_language::is_string_type_p.
7991 (pascal_language_data): Delete la_is_string_type_p initializer.
7992 (pascal_language::is_string_type_p): New member function,
7993 implementation from pascal_is_string_type_p.
7994 * rust-lang.c (rust_is_string_type_p): Delete function,
7995 implementation moved to rust_language::is_string_type_p.
7996 (rust_language_data): Delete la_is_string_type_p initializer.
7997 (rust_language::is_string_type_p): New member function,
7998 implementation from rust_is_string_type_p.
7999 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8000 is_string_type_p.
8001
8002 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * ada-lang.c (ada_language_data): Delete la_print_typedef
8005 initializer.
8006 (ada_language::print_typedef): New member function.
8007 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8008 (cplus_language_data): Likewise.
8009 (asm_language_data): Likewise.
8010 (minimal_language_data): Likewise.
8011 * d-lang.c (d_language_data): Likewise.
8012 * f-lang.c (f_language_data): Likewise.
8013 (f_language::print_typedef): New member function.
8014 * go-lang.c (go_language_data): Delete la_print_typedef
8015 initializer.
8016 * language.c (language_defn::print_typedef): Define member
8017 function.
8018 (unknown_language_data): Delete la_print_typedef initializer.
8019 (unknown_language::print_typedef): New member function.
8020 (auto_language_data): Delete la_print_typedef initializer.
8021 (auto_language::print_typedef): New member function.
8022 * language.h (language_data): Delete la_print_typedef field.
8023 (language_defn::print_typedef): Declare new member function.
8024 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8025 (default_print_typedef): Delete declaration.
8026 * m2-lang.c (m2_language_data): Delete la_print_typedef
8027 initializer.
8028 (m2_language::print_typedef): New member function.
8029 * objc-lang.c (objc_language_data): Delete la_print_typedef
8030 initializer.
8031 * opencl-lang.c (opencl_language_data): Likewise.
8032 * p-lang.c (pascal_language_data): Likewise.
8033 (pascal_language::print_typedef): New member function.
8034 * rust-lang.c (rust_print_typedef): Delete function,
8035 implementation moved to rust_language::print_typedef.
8036 (rust_language): Delete la_print_typedef initializer.
8037 (rust_language::print_typedef): New member function,
8038 implementation from rust_print_typedef.
8039 * typeprint.c (default_print_typedef): Delete.
8040
8041 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8042
8043 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8044 (ada_language::printstr): New member function.
8045 * c-lang.c (c_language_data): Delete la_printstr initializer.
8046 (cplus_language_data): Likewise.
8047 (asm_language_data): Likewise.
8048 (minimal_language_data): Likewise.
8049 * d-lang.c (d_language_data): Likewise.
8050 * f-lang.c (f_printstr): Rename to f_language::printstr.
8051 (f_language_data): Delete la_printstr initializer.
8052 (f_language::printstr): New member function, implementation from
8053 f_printstr.
8054 * go-lang.c (go_language_data): Delete la_printstr initializer.
8055 * language.c (language_defn::printstr): Define new member
8056 function.
8057 (unk_lang_printstr): Delete.
8058 (unknown_language_data): Delete la_printstr initializer.
8059 (unknown_language::printstr): New member function.
8060 (auto_language_data): Delete la_printstr initializer.
8061 (auto_language::printstr): New member function.
8062 * language.h (language_data): Delete la_printstr field.
8063 (language_defn::printstr): Declare new member function.
8064 (LA_PRINT_STRING): Update call to printstr.
8065 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8066 (m2_language_data): Delete la_printstr initializer.
8067 (m2_language::printstr): New member function, implementation from
8068 m2_printstr.
8069 * objc-lang.c (objc_language_data): Delete la_printstr
8070 initializer.
8071 * opencl-lang.c (opencl_language_data): Likewise.
8072 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8073 (pascal_language_data): Delete la_printstr initializer.
8074 (pascal_language::printstr): New member function, implementation
8075 from pascal_printstr.
8076 * p-lang.h (pascal_printstr): Delete declaration.
8077 * rust-lang.c (rust_printstr): Update header comment.
8078 (rust_language_data): Delete la_printstr initializer.
8079 (rust_language::printstr): New member function.
8080
8081 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8084 (ada_language::printchar): New member function.
8085 * c-lang.c (c_language_data): Delete la_printchar initializer.
8086 (cplus_language_data): Likewise.
8087 (asm_language_data): Likewise.
8088 (minimal_language_data): Likewise.
8089 * d-lang.c (d_language_data): Likewise.
8090 * f-lang.c (f_printchar): Rename to f_language::printchar.
8091 (f_language_data): Delete la_printchar initializer.
8092 (f_language::printchar): New member function, implementation from
8093 f_printchar.
8094 * go-lang.c (go_language_data): Delete la_printchar initializer.
8095 * language.c (unk_lang_printchar): Delete.
8096 (language_defn::printchar): Define new member function.
8097 (unknown_language_data): Delete la_printchar initializer.
8098 (unknown_language::printchar): New member function.
8099 (auto_language_data): Delete la_printchar initializer.
8100 (auto_language::printchar): New member function.
8101 * language.h (language_data): Delete la_printchar field.
8102 (language_defn::printchar): Declare new member function.
8103 (LA_PRINT_CHAR): Update call to printchar.
8104 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8105 (m2_language::printchar): New member function.
8106 * objc-lang.c (objc_language_data): Delete la_printchar
8107 initializer.
8108 * opencl-lang.c (opencl_language_data): Likewise.
8109 * p-lang.c (pascal_language_data): Delete la_printchar
8110 initializer.
8111 (pascal_language::printchar): New member function.
8112 * rust-lang.c (rust_printchar): Rename to
8113 rust_language::printchar.
8114 (rust_language_data): Delete la_printchar initializer.
8115 (rust_language::printchar): New member function, implementation
8116 from rust_printchar.
8117
8118 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8121 (ada_language_data): Delete la_emitchar initializer.
8122 (ada_language::emitchar): New member function, implementation from
8123 emit_char.
8124 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8125 (cplus_language_data): Likewise.
8126 (asm_language_data): Likewise.
8127 (minimal_language_data): Likewise.
8128 * d-lang.c (d_language_data): Likewise.
8129 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8130 (f_language_data): Delete la_emitchar initializer.
8131 (f_language::emitchar): New member function, implementation from
8132 f_emit_char.
8133 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8134 * language.c (unk_lang_emit_char): Delete.
8135 (language_defn::emitchar): New member function definition.
8136 (unknown_language_data): Delete la_emitchar initializer.
8137 (unknown_language::emitchar): New member function.
8138 (auto_language_data): Delete la_emitchar initializer.
8139 (auto_language::emitchar): New member function.
8140 * language.h (language_data): Delete la_emitchar field.
8141 (language_defn::emitchar): New member field declaration.
8142 (LA_EMIT_CHAR): Update call to emitchar.
8143 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8144 (m2_language_data): Delete la_emitchar initializer.
8145 (m2_language::emitchar): New member function, implementation from
8146 m2_emit_char.
8147 * objc-lang.c (objc_language_data): Delete la_emitchar
8148 initializer.
8149 * opencl-lang.c (opencl_language_data): Likewise.
8150 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8151 (pascal_language_data): Delete la_emitchar initializer.
8152 (pascal_language::emitchar): New member function, implementation
8153 from pascal_emit_char.
8154 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8155 (rust_language_data): Delete la_emitchar initializer.
8156 (rust_language::emitchar): New member function, implementation
8157 from rust_emitchar.
8158
8159 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8160
8161 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8162 (ada_language_data): Delete la_post_parser initializer.
8163 (ada_language::post_parser): New member function.
8164 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8165 (cplus_language_data): Likewise.
8166 (asm_language_data): Likewise.
8167 (minimal_language_data): Likewise.
8168 * d-lang.c (d_language_data): Likewise.
8169 * f-lang.c (f_language_data): Likewise.
8170 * go-lang.c (go_language_data): Likewise.
8171 * language.c (unknown_language_data): Likewise.
8172 (auto_language_data): Likewise.
8173 * language.h (language_data): Delete la_post_parser field.
8174 (language_defn::post_parser): New member function.
8175 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8176 * objc-lang.c (objc_language_data): Likewise.
8177 * opencl-lang.c (opencl_language_data): Likewise.
8178 * p-lang.c (pascal_language_data): Likewise.
8179 * parse.c (parse_exp_in_context): Update call to post_parser.
8180 (null_post_parser): Delete definition.
8181 * parser-defs.h (null_post_parser): Delete declaration.
8182 * rust-lang.c (rust_language_data): Delete la_post_parser
8183 initializer.
8184
8185 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8186
8187 * ada-lang.c (parse): Rename to ada_language::parser.
8188 (ada_language_data): Delete la_parser initializer.
8189 (ada_language::parser): New member function, implementation from
8190 parse.
8191 * c-lang.c (c_language_data): Delete la_parser initializer.
8192 (cplus_language_data): Likewise.
8193 (asm_language_data): Likewise.
8194 (minimal_language_data): Likewise.
8195 * d-lang.c (d_language_data): Likewise.
8196 (d_language::parser): New member function.
8197 * f-lang.c (f_language_data): Delete la_parser initializer.
8198 (f_language::parser): New member function.
8199 * go-lang.c (go_language_data): Delete la_parser initializer.
8200 (go_language::parser): New member function.
8201 * language.c (unk_lang_parser): Delete.
8202 (language_defn::parser): Define new member function.
8203 (unknown_language_data): Delete la_parser initializer.
8204 (unknown_language::parser): New member function.
8205 (auto_language_data): Delete la_parser initializer.
8206 (auto_language::parser): New member function.
8207 * language.h (language_data): Delete la_parser field.
8208 (language_defn::parser): Declare new member function.
8209 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8210 (m2_language::parser): New member function.
8211 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 (pascal_language::parser): New member function.
8215 * parse.c (parse_exp_in_context): Update call to parser.
8216 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8217 (rust_language::parser): New member function.
8218
8219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * top.c (print_gdb_configuration): Print --with-python-libdir
8222 configuration value.
8223
8224 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8225
8226 * NEWS: Mention change to the alias command.
8227
8228 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8229
8230 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8231 (alias_command_completer)
8232 (make_alias_options_def_group): New functions.
8233 (alias_opts, alias_option_defs): New struct and array.
8234 (alias_usage_error): Update usage.
8235 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8236 Use option framework.
8237 (_initialize_cli_cmds): Update alias command help.
8238 Update aliases command help.
8239 (show_user):
8240 Add NULL for new default_args lookup_cmd argument.
8241 (valid_command_p): Rename to validate_aliased_command.
8242 Add NULL for new default_args lookup_cmd argument. Verify that the
8243 aliased_command has no default args.
8244 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8245 (lookup_cmd_1, lookup_cmd): New argument default_args.
8246 (add_alias_cmd):
8247 Add NULL for new default_args lookup_cmd argument.
8248 (print_help_for_command): Show default args under the layout
8249 alias some_alias = some_aliased_cmd some_alias_default_arg.
8250 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8251 xfree default_args in destructor.
8252 * cli/cli-script.c (process_next_line, do_define_command):
8253 Add NULL for new default_args lookup_cmd argument.
8254 * command.h: Declare new default_args argument in lookup_cmd
8255 and lookup_cmd_1.
8256 * completer.c (complete_line_internal_1):
8257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8258 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8259 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8260 Likewise.
8261 * infcmd.c (_initialize_infcmd): Likewise.
8262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8263 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8264 * python/py-param.c (add_setshow_generic): Likewise.
8265 * remote.c (_initialize_remote): Likewise.
8266 * top.c (execute_command): Prepend default_args if command has some.
8267 (set_verbose):
8268 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8269 * tracepoint.c (validate_actionline, encode_actions_1):
8270 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8271
8272 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8273
8274 * jit.c (jit_read_descriptor): Use bool as the return type.
8275 (jit_breakpoint_re_set_internal): Use bool as the return type.
8276 Invert the return value logic; return true if the jit breakpoint
8277 has been successfully initialized.
8278 (jit_inferior_init): Update the call to
8279 jit_breakpoint_re_set_internal.
8280
8281 2020-06-22 Pedro Alves <palves@redhat.com>
8282
8283 PR gdb/25939
8284 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8285 Use the current inferior instead. Don't return
8286 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8287 wait again.
8288 * sol-thread.c (sol_thread_target::wait): Don't reference
8289 inferior_ptid.
8290 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8291 (sol_update_thread_list_callback): Use the current inferior's pid
8292 instead of inferior_ptid.
8293
8294 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8295
8296 * procfs.c: Cleanup many comments.
8297
8298 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8299 (AFTER_WATCHFLAG): Replace by value.
8300
8301 (MAIN_PROC_NAME_FORMAT): Inline ...
8302 (create_procinfo): ... here.
8303
8304 (procfs_debug_inferior): Remove SYS_exec handling.
8305 (syscall_is_exec): Likewise.
8306 (procfs_set_exec_trap): Likewise.
8307
8308 (syscall_is_lwp_exit): Inline in callers.
8309 (syscall_is_exit): Likewise.
8310 (syscall_is_exec): Likewise.
8311 (syscall_is_lwp_create): Likewise.
8312
8313 (invalidate_cache): Remove #if 0 code.
8314
8315 (make_signal_thread_runnable): Remove.
8316 (procfs_target::resume): Remove #if 0 code.
8317
8318 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8319
8320 PR gdb/25939
8321 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8322 call ...
8323 (procfs_target::create_inferior): ... here.
8324
8325 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8326
8327 * exec.c (validate_exec_file): Ensure the build-id is up to
8328 date by calling reopen_exec_file (that checks file timestamp
8329 to decide to re-read the file).
8330
8331 2020-06-18 Pedro Alves <palves@redhat.com>
8332
8333 PR gdb/25412
8334 * gdbthread.h (delete_thread, delete_thread_silent)
8335 (find_thread_ptid): Update comments.
8336 * thread.c (current_thread_): New global.
8337 (is_current_thread): Move higher, and reimplement.
8338 (inferior_thread): Reimplement.
8339 (set_thread_exited): Use bool. Add assertions.
8340 (add_thread_silent): Simplify thread-reuse handling by always
8341 calling delete_thread.
8342 (delete_thread): Remove intro comment.
8343 (find_thread_ptid): Skip exited threads.
8344 (switch_to_thread_no_regs): Write to current_thread_.
8345 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8346 INFERIOR_PTID. Clear current_thread_.
8347
8348 2020-06-18 Pedro Alves <palves@redhat.com>
8349
8350 * aix-thread.c (pd_update): Use switch_to_thread.
8351
8352 2020-06-18 Pedro Alves <palves@redhat.com>
8353
8354 * ravenscar-thread.c (ravenscar_thread_target): Update.
8355 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8356 (ravenscar_thread_target::add_active_thread): ... this. Don't
8357 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8358 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8359
8360 2020-06-18 Pedro Alves <palves@redhat.com>
8361
8362 * nat/windows-nat.c (current_windows_thread): Remove.
8363 * nat/windows-nat.h (current_windows_thread): Remove.
8364 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8365 Adjust.
8366 (display_selectors): Adjust to fetch the current
8367 windows_thread_info based on inferior_ptid.
8368 (fake_create_process): No longer write to current_windows_thread.
8369 (windows_nat_target::get_windows_debug_event):
8370 Don't set inferior_ptid or current_windows_thread.
8371 (windows_nat_target::wait): Adjust to not rely on
8372 current_windows_thread.
8373 (do_initial_windows_stuff): Now a method of windows_nat_target.
8374 Switch to the last_ptid thread.
8375 (windows_nat_target::attach): Adjust.
8376 (windows_nat_target::detach): Use switch_to_no_thread instead of
8377 writing to inferior_ptid directly.
8378 (windows_nat_target::create_inferior): Adjust.
8379
8380 2020-06-18 Pedro Alves <palves@redhat.com>
8381
8382 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8383
8384 2020-06-18 Pedro Alves <palves@redhat.com>
8385
8386 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8387 after creating it, instead of writing to inferior_ptid. Don't
8388 write to inferior_ptid.
8389
8390 2020-06-18 Pedro Alves <palves@redhat.com>
8391
8392 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8393
8394 2020-06-18 Pedro Alves <palves@redhat.com>
8395
8396 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8397 it, instead of writing to inferior_ptid.
8398
8399 2020-06-18 Pedro Alves <palves@redhat.com>
8400
8401 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8402 to inferior_ptid.
8403
8404 2020-06-18 Pedro Alves <palves@redhat.com>
8405
8406 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8407 instead of writing to inferior_ptid directly.
8408
8409 2020-06-18 Pedro Alves <palves@redhat.com>
8410
8411 * corelow.c (core_target::close): Use switch_to_no_thread instead
8412 of writing to inferior_ptid directly.
8413 (add_to_thread_list, core_target_open): Use switch_to_thread
8414 instead of writing to inferior_ptid directly.
8415
8416 2020-06-18 Pedro Alves <palves@redhat.com>
8417
8418 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8419 inferior_ptid.
8420 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8421 inferior_ptid.
8422 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8423 inferior_ptid directly.
8424 (darwin_nat_target::init_thread_list): Switch to thread, instead
8425 of writing to inferior_ptid.
8426 (darwin_nat_target::attach): Don't write to inferior_ptid.
8427 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8428
8429 2020-06-18 Pedro Alves <palves@redhat.com>
8430
8431 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8432 thread.
8433 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8434 Instead use switch_to_thread.
8435 (gnu_nat_target::detach): Use switch_to_no_thread
8436 instead of writing to inferior_ptid directly. Used passed-in
8437 inferior instead of looking up the inferior by pid.
8438
8439 2020-06-18 Pedro Alves <palves@redhat.com>
8440
8441 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8442 inferior_ptid.
8443
8444 2020-06-18 Pedro Alves <palves@redhat.com>
8445
8446 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8447 inferior_ptid.
8448 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8449 thread.
8450 (nto_procfs_target::detach): Avoid referencing
8451 inferior_ptid. Use switch_to_no_thread instead of writing to
8452 inferior_ptid directly.
8453 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8454 instead of writing to inferior_ptid directly.
8455 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8456 to thread.
8457
8458 2020-06-18 Pedro Alves <palves@redhat.com>
8459
8460 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8461 after creating it, instead of writing to inferior_ptid.
8462 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8463 to inferior_ptid directly.
8464 (gdbsim_target::wait): Don't write to inferior_ptid.
8465
8466 2020-06-18 Pedro Alves <palves@redhat.com>
8467
8468 * remote.c (remote_target::remote_notice_new_inferior): Use
8469 switch_to_thread instead of writing to inferior_ptid directly.
8470 (remote_target::add_current_inferior_and_thread): Use
8471 switch_to_no_thread instead of writing to inferior_ptid directly.
8472 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8473 and switch_to_thread instead of using set_current_inferior or
8474 writing to inferior_ptid directly.
8475
8476 2020-06-18 Pedro Alves <palves@redhat.com>
8477
8478 * tracectf.c (ctf_target_open): Switch to added thread instead of
8479 writing to inferior_ptid directly.
8480 (ctf_target::close): Use switch_to_no_thread instead of writing to
8481 inferior_ptid directly.
8482
8483 2020-06-18 Pedro Alves <palves@redhat.com>
8484
8485 * tracefile-tfile.c (tfile_target_open): Don't write to
8486 inferior_ptid directly, instead switch to added thread.
8487 (tfile_target::close): Use switch_to_no_thread instead of writing
8488 to inferior_ptid directly.
8489
8490 2020-06-18 Pedro Alves <palves@redhat.com>
8491
8492 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8493 (procfs_target::detach): Use switch_to_no_thread
8494 instead of writing to inferior_ptid directly.
8495 (do_attach): Change return type to void. Switch to the added
8496 thread.
8497 (procfs_target::create_inferior): Switch to the added thread.
8498 (procfs_do_thread_registers): Don't write to inferior_ptid.
8499
8500 2020-06-18 Pedro Alves <palves@redhat.com>
8501
8502 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8503 of writing to inferior_ptid.
8504 (scoped_restore_exited_inferior): Delete.
8505 (handle_vfork_child_exec_or_exit): Simplify using
8506 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8507 instead of writing to inferior_ptid.
8508 (THREAD_STOPPED_BY): Delete.
8509 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8510 (thread_stopped_by_hw_breakpoint): Delete.
8511 (save_waitstatus): Use
8512 scoped_restore_current_thread+switch_to_thread, and call
8513 target_stopped_by_watchpoint instead of
8514 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8515 instead of thread_stopped_by_sw_breakpoint, and
8516 target_stopped_by_hw_breakpoint instead of
8517 thread_stopped_by_hw_breakpoint.
8518 (handle_inferior_event)
8519 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8520 inferior_ptid directly, nor
8521 set_current_inferior/set_current_program_space. Use
8522 switch_to_thread / switch_to_inferior_no_thread instead.
8523
8524 2020-06-18 Pedro Alves <palves@redhat.com>
8525
8526 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8527 instead of writing to inferior_ptid.
8528
8529 2020-06-18 Pedro Alves <palves@redhat.com>
8530
8531 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8532 added thread.
8533 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8534 to the added thread.
8535 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8536 instead of writing to inferior_ptid.
8537
8538 2020-06-18 Pedro Alves <palves@redhat.com>
8539
8540 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8541 (register_to_value_test): Mock a program_space too. Heap-allocate
8542 the address space. Don't write to inferior_ptid. Use
8543 switch_to_thread instead.
8544
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8546
8547 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8548 Delete.
8549 (find_signalled_thread()): New, factored out from
8550 linux_make_corefile_notes and adjusted to handle exited threads.
8551 (linux_make_corefile_notes): Adjust to use the new
8552 find_signalled_thread.
8553
8554 2020-06-18 Pedro Alves <palves@redhat.com>
8555
8556 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8557 of saving/restoring inferior_ptid.
8558
8559 2020-06-17 Tom Tromey <tom@tromey.com>
8560
8561 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8562 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8563 declare.
8564 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8565
8566 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8567
8568 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8569 of partial symtabs.
8570
8571 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * regformats/reg-arm.dat: Remove.
8574 * regformats/reg-bfin.dat: Remove.
8575 * regformats/reg-cris.dat: Remove.
8576 * regformats/reg-crisv32.dat: Remove.
8577 * regformats/reg-m32r.dat: Remove.
8578 * regformats/reg-tilegx.dat: Remove.
8579 * regformats/reg-tilegx32.dat: Remove.
8580
8581 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * features/Makefile (WHICH): Remove arm files.
8584 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8585 * regformats/arm/arm-with-neon.dat: Remove.
8586 * regformats/arm/arm-with-vfpv2.dat: Remove.
8587 * regformats/arm/arm-with-vfpv3.dat: Remove.
8588
8589 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * features/Makefile (XMLTOC): Remove rx.xml.
8592
8593 2020-06-17 Pedro Alves <palves@redhat.com>
8594
8595 * gdbthread.h (thread_control_state) <trap_expected> Update
8596 comments.
8597
8598 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8601 ada_language::lookup_symbol_nonlocal.
8602 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8603 (ada_language::lookup_symbol_nonlocal): New member function,
8604 implementation from ada_lookup_symbol_nonlocal.
8605 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8606 initializer.
8607 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8608 initializer.
8609 (cplus_language::lookup_symbol_nonlocal): New member function.
8610 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8611 (minimal_language_data) Likewise.
8612 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8613 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8614 initializer.
8615 (d_language::lookup_symbol_nonlocal): New member function.
8616 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8617 initializer.
8618 (f_language::lookup_symbol_nonlocal): New member function.
8619 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8620 initializer.
8621 * language.c (unknown_language_data): Likewise.
8622 (auto_language_data): Likewise.
8623 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8624 field.
8625 (language_defn::lookup_symbol_nonlocal): New member function.
8626 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8627 initializer.
8628 * objc-lang.c (objc_language_data): Likewise.
8629 * opencl-lang.c (opencl_language_data): Likewise.
8630 * p-lang.c (pascal_language_data): Likewise.
8631 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8632 rust_language::lookup_symbol_nonlocal.
8633 (rust_language_data): Delete la_lookup_symbol_nonlocal
8634 initializer.
8635 (rust_language::lookup_symbol_nonlocal): New member function,
8636 implementation from rust_lookup_symbol_nonlocal.
8637 * symtab.c (lookup_symbol_aux): Update call to
8638 lookup_symbol_nonlocal.
8639 (basic_lookup_symbol_nonlocal): Rename to...
8640 (language_defn::lookup_symbol_nonlocal): ...this, and update
8641 header comment. Remove language_defn parameter, and replace with
8642 uses of `this'.
8643 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8644
8645 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8648 initializer.
8649 (ada_language::value_print_inner): New member function.
8650 * c-lang.c (c_language_data): Delete la_value_print_inner
8651 initializer.
8652 (cplus_language_data): Likewise.
8653 (asm_language_data): Likewise.
8654 (minimal_language_data): Likewise.
8655 * d-lang.c (d_language_data): Likewise.
8656 (d_language::value_print_inner): New member function.
8657 * f-lang.c (f_language_data): Delete la_value_print_inner
8658 initializer.
8659 (f_language::value_print_inner): New member function.
8660 * f-lang.h (f_value_print_innner): Rename to...
8661 (f_value_print_inner): ...this (note spelling of 'inner').
8662 * f-valprint.c (f_value_print_innner): Rename to...
8663 (f_value_print_inner): ...this (note spelling of 'inner').
8664 * go-lang.c (go_language_data): Delete la_value_print_inner
8665 initializer.
8666 (go_language::value_print_inner): New member function.
8667 * language.c (language_defn::value_print_inner): Define new member
8668 function.
8669 (unk_lang_value_print_inner): Delete.
8670 (unknown_language_data): Delete la_value_print_inner initializer.
8671 (unknown_language::value_print_inner): New member function.
8672 (auto_language_data): Delete la_value_print_inner initializer.
8673 (auto_language::value_print_inner): New member function.
8674 * language.h (language_data): Delete la_value_print_inner field.
8675 (language_defn::value_print_inner): Delcare new member function.
8676 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8677 initializer.
8678 (m2_language::value_print_inner): New member function.
8679 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8680 initializer.
8681 * opencl-lang.c (opencl_language_data): Likewise.
8682 * p-lang.c (pascal_language_data): Likewise.
8683 (pascal_language::value_print_inner): New member function.
8684 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8685 initializer.
8686 (rust_language::value_print_inner): New member function.
8687 * valprint.c (do_val_print): Update call to value_print_inner.
8688
8689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * ada-lang.c (ada_language_data): Delete la_value_print
8692 initializer.
8693 (ada_language::value_print): New member function.
8694 * c-lang.c (c_language_data): Delete la_value_print initializer.
8695 (cplus_language_data): Likewise.
8696 (asm_language_data): Likewise.
8697 (minimal_language_data): Likewise.
8698 * d-lang.c (d_language_data): Likewise.
8699 * f-lang.c (f_language_data): Likewise.
8700 * go-lang.c (go_language_data): Likewise.
8701 * language.c (unk_lang_value_print): Delete.
8702 (language_defn::value_print): Define new member function.
8703 (unknown_language_data): Delete la_value_print initializer.
8704 (unknown_language::value_print): New member function.
8705 (auto_language_data): Delete la_value_print initializer.
8706 (auto_language::value_print): New member function.
8707 * language.h (language_data): Delete la_value_print field.
8708 (language_defn::value_print): Declare new member function.
8709 (LA_VALUE_PRINT): Update call to value_print.
8710 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8711 * objc-lang.c (objc_language_data): Likewise.
8712 * opencl-lang.c (opencl_language_data): Likewise.
8713 * p-lang.c (pascal_language_data): Likewise.
8714 (pascal_language::value_print): New member function.
8715 * rust-lang.c (rust_language_data): Delete la_value_print
8716 initializer.
8717
8718 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * ada-lang.c (ada_watch_location_expression): Rename to
8721 ada_language::watch_location_expression.
8722 (ada_language_data): Delete la_watch_location_expression
8723 initializer.
8724 (ada_language::watch_location_expression): New member function,
8725 implementation from ada_watch_location_expression.
8726 * breakpoint.c (watch_command_1): Update call to
8727 watch_location_expression.
8728 * c-lang.c (c_watch_location_expression): Rename to
8729 language_defn::watch_location_expression.
8730 (c_language_data): Delete la_watch_location_expression
8731 initializer.
8732 (cplus_language_data): Likewise.
8733 (asm_language_data): Likewise.
8734 (minimal_language_data): Likewise.
8735 * c-lang.h (c_watch_location_expression): Delete declaration.
8736 * d-lang.c (d_language_data): Delete la_watch_location_expression
8737 initializer.
8738 * f-lang.c (f_language_data): Likewise.
8739 * go-lang.c (go_language_data): Likewise.
8740 * language.c (language_defn::watch_location_expression): Member
8741 function implementation from c_watch_location_expression.
8742 (unknown_language_data): Delete la_watch_location_expression
8743 initializer.
8744 (auto_language_data): Likewise.
8745 * language.h (language_data): Delete la_watch_location_expression
8746 field.
8747 (language_defn::watch_location_expression): Declare new member
8748 function.
8749 * m2-lang.c (m2_language_data): Delete
8750 la_watch_location_expression initializer.
8751 * objc-lang.c (objc_language_data): Likewise.
8752 * opencl-lang.c (opencl_language_data): Likewise.
8753 * p-lang.c (pascal_language_data): Likewise.
8754 * rust-lang.c (rust_watch_location_expression): Rename to
8755 rust_language::watch_location_expression.
8756 (rust_language_data): Delete la_watch_location_expression
8757 initializer.
8758 (rust_language::watch_location_expression): New member function,
8759 implementation from rust_watch_location_expression.
8760
8761 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8762
8763 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8764 ada_language::collect_symbol_completion_matches.
8765 (ada_language_data): Delete la_collect_symbol_completion_matches
8766 initializer.
8767 (ada_language::collect_symbol_completion_matches): New member
8768 function, implementation from
8769 ada_collect_symbol_completion_matches.
8770 * c-lang.c (c_language_data): Delete
8771 la_collect_symbol_completion_matches initializer.
8772 (cplus_language_data): Likewise.
8773 (asm_language_data): Likewise.
8774 (minimal_language_data): Likewise.
8775 * d-lang.c (d_language_data): Likewise.
8776 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8777 f_language::collect_symbol_completion_matches.
8778 (f_language_data): Delete la_collect_symbol_completion_matches
8779 initializer.
8780 (f_language::collect_symbol_completion_matches) New member
8781 function, implementation from f_collect_symbol_completion_matches.
8782 * go-lang.c (go_language_data): Delete
8783 la_collect_symbol_completion_matches initializer.
8784 * language.c (unknown_language_data): Likewise.
8785 (auto_language_data): Likewise.
8786 * language.h (language_data): Delete
8787 la_collect_symbol_completion_matches field.
8788 (language_defn::collect_symbol_completion_matches): New member
8789 function.
8790 * m2-lang.c (m2_language_data): Delete
8791 la_collect_symbol_completion_matches initializer.
8792 * objc-lang.c (objc_language_data): Likewise.
8793 * opencl-lang.c (opencl_language_data): Likewise.
8794 * p-lang.c (pascal_language_data): Likewise.
8795 * rust-lang.c (rust_language_data): Likewise.
8796 * symtab.c (default_collect_symbol_completion_matches): Delete.
8797 (collect_symbol_completion_matches): Update call to
8798 collect_symbol_completion_matches.
8799 (collect_symbol_completion_matches_type): Likewise.
8800 * symtab.h (default_collect_symbol_completion_matches): Delete
8801 declaration.
8802
8803 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8806 (ada_language_data): Delete la_word_break_characters initializer.
8807 (ada_language::word_break_characters): New member function.
8808 * c-lang.c (c_language_data): Delete la_word_break_characters
8809 initializer.
8810 (cplus_language_data): Likewise.
8811 (asm_language_data): Likewise.
8812 (minimal_language_data): Likewise.
8813 * completer.c: Update global comment.
8814 (advance_to_expression_complete_word_point): Update call to
8815 word_break_characters.
8816 (complete_files_symbols): Likewise.
8817 (complete_line_internal_1): Likewise.
8818 (default_completer_handle_brkchars): Likewise.
8819 (skip_quoted_chars): Likewise.
8820 * d-lang.c (d_language_data): Delete la_word_break_characters
8821 initializer.
8822 * f-lang.c (f_word_break_characters): Delete.
8823 (f_language_data): Delete la_word_break_characters initializer.
8824 (f_language::word_break_characters): New member function.
8825 * go-lang.c (go_language_data): Delete la_word_break_characters
8826 initializer.
8827 * language.c (unknown_language_data): Likewise.
8828 (auto_language_data): Likewise.
8829 * language.h (default_word_break_characters): Move declaration to
8830 earlier in the file.
8831 (language_data): Delete la_word_break_characters field.
8832 (language_defn::word_break_characters): New member function.
8833 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8834 initializer.
8835 * objc-lang.c (objc_language_data): Likewise.
8836 * opencl-lang.c (opencl_language_data): Likewise.
8837 * p-lang.c (pascal_language_data): Likewise.
8838 * rust-lang.c (rust_language_data): Likewise.
8839
8840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8841
8842 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8843 (ada_language_data): Delete la_get_symbol_name_matcher
8844 initializer.
8845 (language_defn::get_symbol_name_matcher_inner): New member
8846 function.
8847 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8848 initializer.
8849 (cplus_language_data): Likewise.
8850 (cplus_language::get_symbol_name_matcher_inner): New member
8851 function.
8852 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8853 (minimal_language_data): Likewise.
8854 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8855 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8856 initializer.
8857 * dictionary.c (iter_match_first_hashed): Update call to
8858 get_symbol_name_matcher.
8859 (iter_match_next_hashed): Likewise.
8860 (iter_match_next_linear): Likewise.
8861 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8862 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8863 initializer.
8864 (f_language::get_symbol_name_matcher_inner): New member function.
8865 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8866 initializer.
8867 * language.c (default_symbol_name_matcher): Update header comment,
8868 make static.
8869 (language_defn::get_symbol_name_matcher): New definition.
8870 (language_defn::get_symbol_name_matcher_inner): Likewise.
8871 (get_symbol_name_matcher): Delete.
8872 (unknown_language_data): Delete la_get_symbol_name_matcher
8873 initializer.
8874 (auto_language_data): Likewise.
8875 * language.h (language_data): Delete la_get_symbol_name_matcher
8876 field.
8877 (language_defn::get_symbol_name_matcher): New member function.
8878 (language_defn::get_symbol_name_matcher_inner): Likewise.
8879 (default_symbol_name_matcher): Delete declaration.
8880 * linespec.c (find_methods): Update call to
8881 get_symbol_name_matcher.
8882 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8883 initializer.
8884 * minsyms.c (lookup_minimal_symbol): Update call to
8885 get_symbol_name_matcher.
8886 (iterate_over_minimal_symbols): Likewise.
8887 * objc-lang.c (objc_language_data): Delete
8888 la_get_symbol_name_matcher initializer.
8889 * opencl-lang.c (opencl_language_data): Likewise.
8890 * p-lang.c (pascal_language_data): Likewise.
8891 * psymtab.c (psymbol_name_matches): Update call to
8892 get_symbol_name_matcher.
8893 * rust-lang.c (rust_language_data): Delete
8894 la_get_symbol_name_matcher initializer.
8895 * symtab.c (symbol_matches_search_name): Update call to
8896 get_symbol_name_matcher.
8897 (compare_symbol_name): Likewise.
8898
8899 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8900
8901 * ada-lang.c (ada_language_data): Delete la_compute_program
8902 initializer.
8903 * c-lang.c (c_language_data): Likewise.
8904 (c_language::compute_program): New member function.
8905 (cplus_language_data): Delete la_compute_program initializer.
8906 (cplus_language::compute_program): New member function.
8907 (asm_language_data): Delete la_compute_program initializer.
8908 (minimal_language_data): Likewise.
8909 * c-lang.h (c_compute_program): Update comment.
8910 (cplus_compute_program): Likewise.
8911 * compile/compile-c-support.c (c_compute_program): Likewise.
8912 (cplus_compute_program): Likewise.
8913 * compile/compile.c (compile_to_object): Update call to
8914 la_compute_program.
8915 * d-lang.c (d_language_data): Delete la_compute_program
8916 initializer.
8917 * f-lang.c (f_language_data): Likewise.
8918 * go-lang.c (go_language_data): Likewise.
8919 * language.c (unknown_language_data): Likewise.
8920 (auto_language_data): Likewise.
8921 * language.h (language_data): Delete la_compute_program field.
8922 (language_defn::compute_program): New member function.
8923 * m2-lang.c (m2_language_data): Delete la_compute_program
8924 initializer.
8925 * objc-lang.c (objc_language_data): Likewise.
8926 * opencl-lang.c (opencl_language_data): Likewise.
8927 * p-lang.c (pascal_language_data): Likewise.
8928 * rust-lang.c (rust_language_data): Likewise.
8929
8930 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * ada-lang.c (ada_language_data) Delete
8933 la_class_name_from_physname initializer.
8934 * c-lang.c (c_language_data): Likewise.
8935 (cplus_language_data): Likewise.
8936 (cplus_language::class_name_from_physname): New member function.
8937 (asm_language_data): Delete la_class_name_from_physname
8938 initializer.
8939 (minimal_language_data): Likewise.
8940 * d-lang.c (d_language_data): Likewise.
8941 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8942 method on language_defn class.
8943 (guess_full_die_structure_name): Likewise.
8944 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8945 initializer.
8946 * go-lang.c (go_language_data): Likewise.
8947 * language.c (language_class_name_from_physname): Delete.
8948 (unk_lang_class_name): Delete.
8949 (unknown_language_data): Delete la_class_name_from_physname
8950 initializer.
8951 (auto_language_data): Likewise.
8952 * language.h (language_data): Delete la_class_name_from_physname
8953 field.
8954 (language_defn::class_name_from_physname): New function.
8955 (language_class_name_from_physname): Delete declaration.
8956 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8957 initializer.
8958 * objc-lang.c (objc_language_data): Likewise.
8959 * opencl-lang.c (opencl_language_data): Likewise.
8960 * p-lang.c (pascal_language_data): Likewise.
8961 * rust-lang.c (rust_language_data): Likewise.
8962
8963 2020-06-16 Tom Tromey <tom@tromey.com>
8964
8965 * tui/tui-data.h (STATUS_NAME): New macro.
8966 * tui/tui-layout.c (tui_remove_some_windows)
8967 (initialize_known_windows, tui_register_window)
8968 (tui_layout_split::remove_windows, initialize_layouts)
8969 (tui_new_layout_command): Don't use hard-coded window names.
8970
8971 2020-06-16 Tom Tromey <tom@tromey.com>
8972
8973 PR tui/25348:
8974 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8975 tui_initialize_readline. Only run once. Call rl_initialize.
8976 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8977 tui_initialize_readline.
8978 * tui/tui-io.c (tui_setup_io): Call
8979 tui_ensure_readline_initialized.
8980 * tui/tui-interp.c (tui_interp::init): Update.
8981
8982 2020-06-16 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8985 Also preserve the status window.
8986
8987 2020-06-16 Tom Tromey <tom@tromey.com>
8988
8989 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8990 where m_window==nullptr.
8991
8992 2020-06-15 Tom Tromey <tromey@adacore.com>
8993
8994 * windows-nat.c (windows_nat::handle_output_debug_string):
8995 Update.
8996 (windows_nat::handle_ms_vc_exception): Update.
8997 * target.h (target_read_string): Change API.
8998 * target.c (target_read_string): Change API.
8999 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9000 Update.
9001 * solib-frv.c (frv_current_sos): Update.
9002 * solib-dsbt.c (dsbt_current_sos): Update.
9003 * solib-darwin.c (darwin_current_sos): Update.
9004 * linux-thread-db.c (inferior_has_bug): Update.
9005 * expprint.c (print_subexp_standard): Update.
9006 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9007 (ada_exception_message_1): Update.
9008
9009 2020-06-15 Tom Tromey <tromey@adacore.com>
9010
9011 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9012
9013 2020-06-15 Tom Tromey <tromey@adacore.com>
9014
9015 * valprint.c (read_string): Update comment.
9016 * target.c (MIN): Remove.
9017 (target_read_string): Rewrite.
9018
9019 2020-06-15 Tom Tromey <tromey@adacore.com>
9020
9021 * corefile.c (read_memory_string): Remove.
9022 * ada-valprint.c (ada_value_print_ptr): Update.
9023 * ada-lang.h (ada_tag_name): Change return type.
9024 * ada-lang.c (type_from_tag): Update.
9025 (ada_tag_name_from_tsd): Change return type. Use
9026 target_read_string.
9027 (ada_tag_name): Likewise.
9028 * gdbcore.h (read_memory_string): Don't declare.
9029
9030 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9031
9032 * symtab.c (rbreak_command): Ignore Windows drive colon.
9033
9034 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * NEWS: Mention removed GDBserver host support.
9037
9038 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9039
9040 * features/riscv/rebuild-csr-xml.sh: Updated.
9041
9042 2020-06-11 Tom Tromey <tom@tromey.com>
9043
9044 PR gdb/18318:
9045 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9046
9047 2020-06-09 Jonny Grant <jg@jguk.org>
9048 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9049
9050 * main.c (captured_main_1): Don't print new line after help.
9051 (print_gdb_help): add mailing list and IRC channel information
9052 to --help. Add new lines between items in the footer. Remove
9053 quotes around bug url.
9054
9055 2020-06-11 Keith Seitz <keiths@redhat.com>
9056
9057 PR gdb/21356
9058 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9059 Resolve typedefs for type length calculations.
9060
9061 2020-06-10 Tom de Vries <tdevries@suse.de>
9062
9063 PR ada/24713
9064 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9065 (write_psymbols): Enable .gdb_index for ada.
9066 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9067 ada.
9068
9069 2020-06-10 Tom de Vries <tdevries@suse.de>
9070
9071 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9072 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9073 namei" instead of "const char *name" argument.
9074 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9075 dw2_symtab_iter_init.
9076
9077 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9080 to use type::field and field::type instead.
9081
9082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9083
9084 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9085 to use field::type instead.
9086
9087 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9088
9089 * gdbtypes.h (struct field) <type, set_type>: New methods.
9090 Rename `type` field to...
9091 <m_type>: ... this. Change references throughout to use type or
9092 set_type methods.
9093 (FIELD_TYPE): Use field::type. Change call sites that modify
9094 the field's type to use field::set_type instead.
9095
9096 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9099 to use type::index_type instead.
9100
9101 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9104 methods.
9105 (TYPE_INDEX_TYPE): Use type::index_type.
9106 * gdbtypes.c (create_array_type_with_stride): Likewise.
9107
9108 2020-06-07 Tom Tromey <tom@tromey.com>
9109
9110 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9111 parameter.
9112 (generic_value_print): Update.
9113
9114 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 Revert commit 982a38f60b0.
9117 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9118
9119 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9122 avoid use after free.
9123
9124 2020-06-05 Tom de Vries <tdevries@suse.de>
9125
9126 * NEWS: Fix typos.
9127
9128 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9131 the per_bfd object.
9132 (dwarf2_read_debug_names): Likewise.
9133 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9134 object when re-using a per_bfd object with an index.
9135
9136 2020-06-03 Tom de Vries <tdevries@suse.de>
9137
9138 PR symtab/26046
9139 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9140 children for C++.
9141 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9142 DW_TAG_subprogram.
9143
9144 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9145
9146 * ada-lang.c (ada_language_data): Delete skip_trampoline
9147 initializer.
9148 * c-lang.c (c_language_data): Likewise.
9149 (cplus_language_data): Likewise.
9150 (cplus_language::skip_trampoline): New member function.
9151 (asm_language_data): Delete skip_trampoline initializer.
9152 (minimal_language_data): Likewise.
9153 * d-lang.c (d_language_data): Likewise.
9154 * f-lang.c (f_language_data): Likewise.
9155 * go-lang.c (go_language_data): Likewise.
9156 * language.c (unk_lang_trampoline): Delete function.
9157 (skip_language_trampoline): Update.
9158 (unknown_language_data): Delete skip_trampoline initializer.
9159 (auto_language_data): Likewise.
9160 * language.h (language_data): Delete skip_trampoline field.
9161 (language_defn::skip_trampoline): New function.
9162 * m2-lang.c (m2_language_data): Delete skip_trampoline
9163 initializer.
9164 * objc-lang.c (objc_skip_trampoline): Delete function, move
9165 implementation to objc_language::skip_trampoline.
9166 (objc_language_data): Delete skip_trampoline initializer.
9167 (objc_language::skip_trampoline): New member function with
9168 implementation from objc_skip_trampoline.
9169 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9170 initializer.
9171 * p-lang.c (pascal_language_data): Likewise.
9172 * rust-lang.c (rust_language_data): Likewise.
9173
9174 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9177 (ada_language::demangle): New member function.
9178 * c-lang.c (c_language_data): Delete la_demangle initializer.
9179 (cplus_language_data): Delete la_demangle initializer.
9180 (cplus_language::demangle): New member function.
9181 (asm_language_data): Delete la_demangle initializer.
9182 (minimal_language_data): Delete la_demangle initializer.
9183 * d-lang.c (d_language_data): Delete la_demangle initializer.
9184 (d_language::demangle): New member function.
9185 * f-lang.c (f_language_data): Delete la_demangle initializer.
9186 (f_language::demangle): New member function.
9187 * go-lang.c (go_language_data): Delete la_demangle initializer.
9188 (go_language::demangle): New member function.
9189 * language.c (language_demangle): Update.
9190 (unk_lang_demangle): Delete.
9191 (unknown_language_data): Delete la_demangle initializer.
9192 (unknown_language::demangle): New member function.
9193 (auto_language_data): Delete la_demangle initializer.
9194 (auto_language::demangle): New member function.
9195 * language.h (language_data): Delete la_demangle field.
9196 (language_defn::demangle): New function.
9197 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9198 * objc-lang.c (objc_language_data): Delete la_demangle
9199 initializer.
9200 (objc_language::demangle): New member function.
9201 * opencl-lang.c (opencl_language_data): Delete la_demangle
9202 initializer.
9203 * p-lang.c (pascal_language_data): Likewise.
9204 * rust-lang.c (rust_language_data): Likewise.
9205 (rust_language::demangle): New member function.
9206
9207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 * ada-lang.c (ada_language_data): Delete la_print_type
9210 initializer.
9211 (ada_language::print_type): New member function.
9212 * c-lang.c (c_language_data): Delete la_print_type initializer.
9213 (c_language::print_type): New member function.
9214 (cplus_language_data): Delete la_print_type initializer.
9215 (cplus_language::print_type): New member function.
9216 (asm_language_data): Delete la_print_type initializer.
9217 (asm_language::print_type): New member function.
9218 (minimal_language_data): Delete la_print_type initializer.
9219 (minimal_language::print_type): New member function.
9220 * d-lang.c (d_language_data): Delete la_print_type initializer.
9221 (d_language::print_type): New member function.
9222 * f-lang.c (f_language_data): Delete la_print_type initializer.
9223 (f_language::print_type): New member function.
9224 * go-lang.c (go_language_data): Delete la_print_type initializer.
9225 (go_language::print_type): New member function.
9226 * language.c (unk_lang_print_type): Delete.
9227 (unknown_language_data): Delete la_print_type initializer.
9228 (unknown_language::print_type): New member function.
9229 (auto_language_data): Delete la_print_type initializer.
9230 (auto_language::print_type): New member function.
9231 * language.h (language_data): Delete la_print_type field.
9232 (language_defn::print_type): New function.
9233 (LA_PRINT_TYPE): Update.
9234 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9235 (m2_language::print_type): New member function.
9236 * objc-lang.c (objc_language_data): Delete la_print_type
9237 initializer.
9238 (objc_language::print_type): New member function.
9239 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9240 to opencl_language::print_type.
9241 (opencl_language_data): Delete la_print_type initializer.
9242 (opencl_language::print_type): New member function, implementation
9243 from opencl_print_type.
9244 * p-lang.c (pascal_language_data): Delete la_print_type
9245 initializer.
9246 (pascal_language::print_type): New member function.
9247 * rust-lang.c (rust_print_type): Delete, implementation moved to
9248 rust_language::print_type.
9249 (rust_language_data): Delete la_print_type initializer.
9250 (rust_language::print_type): New member function, implementation
9251 from rust_print_type.
9252
9253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9254
9255 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9256 implementation moves to...
9257 (ada_language::sniff_from_mangled_name): ...here. Update return
9258 type.
9259 (ada_language_data): Delete la_sniff_from_mangled_name
9260 initializer.
9261 * c-lang.c (c_language_data): Likewise.
9262 (cplus_language_data): Likewise.
9263 (cplus_language::sniff_from_mangled_name): New member function,
9264 implementation taken from gdb_sniff_from_mangled_name.
9265 (asm_language_data): Delete la_sniff_from_mangled_name
9266 initializer.
9267 (minimal_language_data): Likewise.
9268 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9269 implementation moves to cplus_language::sniff_from_mangled_name.
9270 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9271 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9272 moves to...
9273 (d_language::sniff_from_mangled_name): ...here.
9274 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9275 * f-lang.c (f_language_data): Likewise.
9276 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9277 moves to...
9278 (go_language::sniff_from_mangled_name): ...here.
9279 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9280 * language.c (language_sniff_from_mangled_name): Delete.
9281 (unknown_language_data): Delete la_sniff_from_mangled_name
9282 initializer.
9283 (auto_language_data): Likewise.
9284 * language.h (language_data): Delete la_sniff_from_mangled_name
9285 field.
9286 (language_defn::sniff_from_mangled_name): New function.
9287 (language_sniff_from_mangled_name): Delete declaration.
9288 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9289 field.
9290 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9291 implementation moves to...
9292 (objc_language::sniff_from_mangled_name): ...here.
9293 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9294 * opencl-lang.c (opencl_language_data): Likewise.
9295 * p-lang.c (pascal_language_data): Likewise.
9296 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9297 implementation moves to...
9298 (rust_language::sniff_from_mangled_name): ...here.
9299 (rust_language_data): Delete la_sniff_from_mangled_name
9300 initializer.
9301 * symtab.c (symbol_find_demangled_name): Call
9302 sniff_from_mangled_name member function.
9303
9304 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9305
9306 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9307 initializer.
9308 * c-lang.c (c_language_data): Likewise.
9309 (cplus_language_data): Likewise.
9310 (cplus_language::search_name_hash): New member function.
9311 (asm_language_data): Delete la_search_name_hash initializer.
9312 (minimal_language_data): Likewise.
9313 * d-lang.c (d_language_data): Likewise.
9314 * dictionary.c (default_search_name_hash): Rename to...
9315 (language_defn::search_name_hash): ...this.
9316 * f-lang.c (f_language_data): Likewise.
9317 (f_language::search_name_hash): New member function.
9318 * go-lang.c (go_language_data): Delete la_search_name_hash
9319 initializer.
9320 * language.c (unknown_language_data): Likewise.
9321 (auto_language_data): Likewise.
9322 * language.h (struct language_data): Delete la_search_name_hash
9323 field.
9324 (language_defn::search_name_hash): Declare new member function.
9325 (default_search_name_hash): Delete declaration.
9326 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9327 initializer.
9328 * objc-lang.c (objc_language_data): Likewise.
9329 * opencl-lang.c (opencl_language_data): Likewise.
9330 * p-lang.c (pascal_language_data): Likewise.
9331 * rust-lang.c (rust_language_data): Likewise.
9332 * symtab.c (search_name_hash): Update call.
9333
9334 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9335
9336 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9337 initializer.
9338 * c-lang.c (class compile_instance): Declare.
9339 (c_language_data): Delete la_get_compile_instance initializer.
9340 (c_language::get_compile_instance): New member function.
9341 (cplus_language_data): Delete la_get_compile_instance initializer.
9342 (cplus_language::get_compile_instance): New member function.
9343 (asm_language_data): Delete la_get_compile_instance initializer.
9344 (minimal_language_data): Likewise.
9345 * c-lang.h (c_get_compile_context): Update comment.
9346 (cplus_get_compile_context): Update comment.
9347 * compile/compile.c (compile_to_object): Update calls, don't rely
9348 on function pointer being NULL.
9349 * d-lang.c (d_language_data): Delete la_get_compile_instance
9350 initializer.
9351 * f-lang.c (f_language_data): Likewise.
9352 * go-lang.c (go_language_data): Likewise.
9353 * language.c (unknown_language_data): Likewise.
9354 (auto_language_data): Likewise.
9355 * language.h (language_data): Delete la_get_compile_instance field.
9356 (language_defn::get_compile_instance): New member function.
9357 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9358 initializer.
9359 * objc-lang.c (objc_language_data): Likewise.
9360 * opencl-lang.c (opencl_language_data): Likewise.
9361 * p-lang.c (pascal_language_data): Likewise.
9362 * rust-lang.c (rust_language_data): Likewise.
9363
9364 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9365
9366 * ada-lang.c (ada_add_all_symbols): Update comment.
9367 (ada_iterate_over_symbols): Delete, move implementation to...
9368 (ada_language::iterate_over_symbols): ...here, a new member
9369 function, rewrite to use range based for loop.
9370 (ada_language_data): Delete la_iterate_over_symbols initializer.
9371 * c-lang.c (c_language_data): Likewise.
9372 (cplus_language_data): Likewise.
9373 (asm_language_data): Likewise.
9374 (minimal_language_data): Likewise.
9375 * d-lang.c (d_language_data): Likewise.
9376 * f-lang.c (f_language_data): Likewise.
9377 * go-lang.c (go_language_data): Likewise.
9378 * language.c (unknown_language_data): Likewise.
9379 (auto_language_data): Likewise.
9380 * language.h (language_data): Delete la_iterate_over_symbols field.
9381 (language_defn::iterate_over_symbols): New member function.
9382 (LA_ITERATE_OVER_SYMBOLS): Update.
9383 * linespec.c (iterate_over_all_matching_symtabs): Update.
9384 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9385 initializer.
9386 * objc-lang.c (objc_language_data): Likewise.
9387 * opencl-lang.c (opencl_language_data): Likewise.
9388 * p-lang.c (pascal_language_data): Likewise.
9389 * rust-lang.c (rust_language_data): Likewise.
9390
9391 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9392
9393 * ada-lang.c (ada_language_data): Delete
9394 la_lookup_transparent_type initializer.
9395 * c-lang.c (c_language_data): Likewise.
9396 (cplus_language_data): Likewise.
9397 (cplus_language::lookup_transparent_type): New member function.
9398 (asm_language_data): Delete la_lookup_transparent_type
9399 initializer.
9400 (minimal_language_data): Likewise.
9401 * d-lang.c (d_language_data): Likewise.
9402 * f-lang.c (f_language_data): Likewise.
9403 * go-lang.c (go_language_data): Likewise.
9404 * language.c (unknown_language_data): Likewise.
9405 (auto_language_data): Likewise.
9406 * language.h (struct language_data): Delete
9407 la_lookup_transparent_type field.
9408 (language_defn::lookup_transparent_type): New member function.
9409 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9410 initializer.
9411 * objc-lang.c (objc_language_data): Likewise.
9412 * opencl-lang.c (opencl_language_data): Likewise.
9413 * p-lang.c (pascal_language_data): Likewise.
9414 * rust-lang.c (rust_language_data): Likewise.
9415 * symtab.c (symbol_matches_domain): Update call.
9416
9417 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9418
9419 * ada-lang.c (ada_language_arch_info): Delete function, move
9420 implementation to...
9421 (ada_language::language_arch_info): ...here, a new member
9422 function.
9423 (ada_language_data): Delete la_language_arch_info.
9424 * c-lang.c (c_language_data): Likewise.
9425 (c_language::language_arch_info): New member function.
9426 (cplus_language_arch_info): Delete function, move
9427 implementation to...
9428 (cplus_language::language_arch_info): ...here, a new member
9429 function.
9430 (cplus_language_data): Delete la_language_arch_info.
9431 (asm_language_data): Likewise.
9432 (asm_language::language_arch_info): New member function.
9433 (minimal_language_data): Delete la_language_arch_info.
9434 (minimal_language::language_arch_info): New member function.
9435 * d-lang.c (d_language_arch_info): Delete function, move
9436 implementation to...
9437 (d_language::language_arch_info): ...here, a new member
9438 function.
9439 (d_language_data): Delete la_language_arch_info.
9440 * f-lang.c (f_language_arch_info): Delete function, move
9441 implementation to...
9442 (f_language::language_arch_info): ...here, a new member
9443 function.
9444 (f_language_data): Delete la_language_arch_info.
9445 * go-lang.c (go_language_arch_info): Delete function, move
9446 implementation to...
9447 (go_language::language_arch_info): ...here, a new member
9448 function.
9449 (go_language_data): Delete la_language_arch_info.
9450 * language.c (unknown_language_data): Likewise.
9451 (unknown_language::language_arch_info): New member function.
9452 (auto_language_data): Delete la_language_arch_info.
9453 (auto_language::language_arch_info): New member function.
9454 (language_gdbarch_post_init): Update call to
9455 la_language_arch_info.
9456 * language.h (language_data): Delete la_language_arch_info
9457 function pointer.
9458 (language_defn::language_arch_info): New function.
9459 * m2-lang.c (m2_language_arch_info): Delete function, move
9460 implementation to...
9461 (m2_language::language_arch_info): ...here, a new member
9462 function.
9463 (m2_language_data): Delete la_language_arch_info.
9464 * objc-lang.c (objc_language_arch_info): Delete function, move
9465 implementation to...
9466 (objc_language::language_arch_info): ...here, a new member
9467 function.
9468 (objc_language_data): Delete la_language_arch_info.
9469 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9470 implementation to...
9471 (opencl_language::language_arch_info): ...here, a new member
9472 function.
9473 (opencl_language_data): Delete la_language_arch_info.
9474 * p-lang.c (pascal_language_arch_info): Delete function, move
9475 implementation to...
9476 (pascal_language::language_arch_info): ...here, a new member
9477 function.
9478 (pascal_language_data): Delete la_language_arch_info.
9479 * rust-lang.c (rust_language_arch_info): Delete function, move
9480 implementation to...
9481 (rust_language::language_arch_info): ...here, a new member
9482 function.
9483 (rust_language_data): Delete la_language_arch_info.
9484
9485 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9488 initializer.
9489 * c-lang.c (c_language_data): Likewise.
9490 (cplus_language_data): Likewise.
9491 (cplus_language::pass_by_reference_info): New method.
9492 (asm_language_data): Delete la_pass_by_reference initializer.
9493 (minimal_language_data): Likewise.
9494 * cp-abi.c (cp_pass_by_reference): Remove use of
9495 default_pass_by_reference.
9496 * d-lang.c (d_language_data): Likewise.
9497 * f-lang.c (f_language_data): Likewise.
9498 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9499 default_pass_by_reference.
9500 * go-lang.c (go_language_data): Likewise.
9501 * language.c (language_pass_by_reference): Update.
9502 (default_pass_by_reference): Delete.
9503 (unknown_language_data): Delete la_pass_by_reference
9504 initializer.
9505 (auto_language_data): Likewise.
9506 * language.h (struct language_data): Delete la_pass_by_reference
9507 field.
9508 (language_defn::pass_by_reference_info): New member function.
9509 (default_pass_by_reference): Delete declaration.
9510 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9511 initializer.
9512 * objc-lang.c (objc_language_data): Likewise.
9513 * opencl-lang.c (opencl_language_data): Likewise.
9514 * p-lang.c (pascal_language_data): Likewise.
9515 * rust-lang.c (rust_language_data): Likewise.
9516
9517 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9518
9519 * ada-lang.c (ada_read_var_value): Delete function, move
9520 implementation to...
9521 (ada_language::read_var_value): ...here.
9522 (ada_language_data): Delete la_read_var_value initializer.
9523 * c-lang.c (c_language_data): Likewise.
9524 (cplus_language_data): Likewise.
9525 (minimal_language_data): Likewise.
9526 * d-lang.c (d_language_data): Likewise.
9527 * f-lang.c (f_language_data): Likewise.
9528 * findvar.c (default_read_var_value): Rename to...
9529 (language_defn::read_var_value): ...this.
9530 * findvar.c (read_var_value): Update header comment, and change to
9531 call member function instead of function pointer.
9532 * go-lang.c (go_language_data): Likewise.
9533 * language.c (unknown_language_data): Delete la_read_var_value
9534 initializer.
9535 (auto_language_data): Likewise.
9536 * language.h (struct language_data): Delete la_read_var_value
9537 field.
9538 (language_defn::read_var_value): New member function.
9539 (default_read_var_value): Delete declaration.
9540 * m2-lang.c (m2_language_data): Delete la_read_var_value
9541 initializer.
9542 * objc-lang.c (objc_language_data): Likewise.
9543 * opencl-lang.c (opencl_language_data): Likewise.
9544 * p-lang.c (pascal_language_data): Likewise.
9545 * rust-lang.c (rust_language_data): Likewise.
9546 * value.h (default_read_var_value): Delete declaration.
9547
9548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * ada-lang.c (ada_print_array_index): Delete function, move
9551 implementation to...
9552 (ada_language::print_array_index): ...here.
9553 (ada_language_data): Delete la_print_array_index initializer.
9554 * c-lang.c (c_language_data): Likewise.
9555 (cplus_language_data): Likewise.
9556 (minimal_language_data): Likewise.
9557 * d-lang.c (d_language_data): Likewise.
9558 * f-lang.c (f_language_data): Likewise.
9559 * go-lang.c (go_language_data): Likewise.
9560 * language.c (default_print_array_index): Delete function, move
9561 implementation to...
9562 (language_defn::print_array_index): ...here.
9563 (unknown_language_data): Delete la_print_array_index initializer.
9564 (auto_language_data): Likewise.
9565 * language.h (struct language_data): Delete la_print_array_index
9566 field.
9567 (language_defn::print_array_index): New member function.
9568 (LA_PRINT_ARRAY_INDEX): Update.
9569 (default_print_array_index): Delete declaration.
9570 * m2-lang.c (m2_language_data): Delete la_print_array_index
9571 initializer.
9572 * objc-lang.c (objc_language_data): Likewise.
9573 * opencl-lang.c (opencl_language_data): Likewise.
9574 * p-lang.c (pascal_language_data): Likewise.
9575 * rust-lang.c (rust_language_data): Likewise.
9576
9577 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * gdb/ada-lang.c (ada_language_defn): Convert to...
9580 (ada_language_data): ...this.
9581 (class ada_language): New class.
9582 (ada_language_defn): New static global.
9583 * gdb/c-lang.c (c_language_defn): Convert to...
9584 (c_language_data): ...this.
9585 (class c_language): New class.
9586 (c_language_defn): New static global.
9587 (cplus_language_defn): Convert to...
9588 (cplus_language_data): ...this.
9589 (class cplus_language): New class.
9590 (cplus_language_defn): New static global.
9591 (asm_language_defn): Convert to...
9592 (asm_language_data): ...this.
9593 (class asm_language): New class.
9594 (asm_language_defn): New static global.
9595 (minimal_language_defn): Convert to...
9596 (minimal_language_data): ...this.
9597 (class minimal_language): New class.
9598 (minimal_language_defn): New static global.
9599 * gdb/d-lang.c (d_language_defn): Convert to...
9600 (d_language_data): ...this.
9601 (class d_language): New class.
9602 (d_language_defn): New static global.
9603 * gdb/f-lang.c (f_language_defn): Convert to...
9604 (f_language_data): ...this.
9605 (class f_language): New class.
9606 (f_language_defn): New static global.
9607 * gdb/go-lang.c (go_language_defn): Convert to...
9608 (go_language_data): ...this.
9609 (class go_language): New class.
9610 (go_language_defn): New static global.
9611 * gdb/language.c (unknown_language_defn): Remove declaration.
9612 (current_language): Initialize to nullptr, real initialization is
9613 moved to _initialize_language.
9614 (languages): Delete global.
9615 (language_defn::languages): Define.
9616 (set_language_command): Use language_defn::languages.
9617 (set_language): Likewise.
9618 (range_error): Likewise.
9619 (language_enum): Likewise.
9620 (language_def): Likewise.
9621 (add_set_language_command): Use language_def::languages for the
9622 language list, and language_def to lookup language pointers.
9623 (skip_language_trampoline): Use language_defn::languages.
9624 (unknown_language_defn): Convert to...
9625 (unknown_language_data): ...this.
9626 (class unknown_language): New class.
9627 (unknown_language_defn): New static global.
9628 (auto_language_defn): Convert to...
9629 (auto_language_data): ...this.
9630 (class auto_language): New class.
9631 (auto_language_defn): New static global.
9632 (language_gdbarch_post_init): Use language_defn::languages.
9633 (_initialize_language): Initialize current_language.
9634 * gdb/language.h (struct language_defn): Rename to...
9635 (struct language_data): ...this.
9636 (struct language_defn): New.
9637 (auto_language_defn): Delete.
9638 (unknown_language_defn): Delete.
9639 (minimal_language_defn): Delete.
9640 (ada_language_defn): Delete.
9641 (asm_language_defn): Delete.
9642 (c_language_defn): Delete.
9643 (cplus_language_defn): Delete.
9644 (d_language_defn): Delete.
9645 (f_language_defn): Delete.
9646 (go_language_defn): Delete.
9647 (m2_language_defn): Delete.
9648 (objc_language_defn): Delete.
9649 (opencl_language_defn): Delete.
9650 (pascal_language_defn): Delete.
9651 (rust_language_defn): Delete.
9652 * gdb/m2-lang.c (m2_language_defn): Convert to...
9653 (m2_language_data): ...this.
9654 (class m2_language): New class.
9655 (m2_language_defn): New static global.
9656 * gdb/objc-lang.c (objc_language_defn): Convert to...
9657 (objc_language_data): ...this.
9658 (class objc_language): New class.
9659 (objc_language_defn): New static global.
9660 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9661 (opencl_language_data): ...this.
9662 (class opencl_language): New class.
9663 (opencl_language_defn): New static global.
9664 * gdb/p-lang.c (pascal_language_defn): Convert to...
9665 (pascal_language_data): ...this.
9666 (class pascal_language): New class.
9667 (pascal_language_defn): New static global.
9668 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9669 language pointer, update comment format.
9670 * gdb/rust-lang.c (rust_language_defn): Convert to...
9671 (rust_language_data): ...this.
9672 (class rust_language): New class.
9673 (rust_language_defn): New static global.
9674
9675 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9678 member variable.
9679 <m_stmt_at_address>: New member variable.
9680 (lnp_state_machine::record_line): Don't record some lines, update
9681 tracking of is_stmt at the same address.
9682 (lnp_state_machine::lnp_state_machine): Initialise new member
9683 variables.
9684
9685 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9686
9687 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9688 "-include gnu-nat-mig.h".
9689 * gnu-nat-mig.h: New file.
9690 * gnu-nat.c: Include "gnu-nat-mig.h".
9691 (exc_server, msg_reply_server, notify_server,
9692 process_reply_server): Remove declarations.
9693
9694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9695
9696 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9697 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9698 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9699 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9700 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9701 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9702 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9703 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9704 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9705 to gnu_nat_target class.
9706 * gnu-nat.c: Likewise.
9707 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9708 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9709 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9710 object.
9711 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9712 instead of `gnu_target'.
9713
9714 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9715
9716 * i386-gnu-tdep.c: Include "gdbcore.h"
9717 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9718 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9719 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9720 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9721 i386_gnu_sigcontext_addr): New functions
9722 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9723 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9724 tdep.
9725
9726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9727
9728 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9729 before fork_inferior call. Avoid calling it if target_is_pushed returns
9730 true.
9731
9732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9733
9734 * gnu-nat.h (gnu_target): New variable declaration.
9735 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9736 gnu_target.
9737 * gnu-nat.c (gnu_target): New variable.
9738 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9739 add_thread_silent, and add_thread calls.
9740 (gnu_nat_target::create_inferior): Pass gnu_target to
9741 add_thread_silent, thread_change_ptid call.
9742 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9743 call.
9744
9745 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9746
9747 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9748 (gnu_nat_target::find_memory_regions): Remove unused
9749 `old_address' variable.
9750
9751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9752
9753 * gnu-nat.c: Include "gdbarch.h".
9754
9755 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9756
9757 * reply_mig_hack.awk (Error return): Cast function through
9758 void *, to bypass compiler function call check.
9759
9760 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9761
9762 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9763 $(srcdir)/reply_mig_hack.awk.
9764
9765 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9766
9767 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9768
9769 2020-05-30 Jonny Grant <jg@jguk.org>
9770
9771 * configure.ac (ACX_BUGURL): change bug URL to https.
9772
9773 2020-05-30 Pedro Alves <palves@redhat.com>
9774
9775 * cp-support.c (replace_typedefs_template): New.
9776 (replace_typedefs_qualified_name): Handle
9777 DEMANGLE_COMPONENT_TEMPLATE.
9778
9779 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9782 dwarf2/index-cache.h, dwarf2/index-write.c,
9783 dwarf2/index-write.h, dwarf2/line-header.c,
9784 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9785 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9786 variables and fields from `dwarf2_per_objfile` to just
9787 `per_objfile` throughout.
9788
9789 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9790
9791 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9792 <push_dwarf_reg_entry_value>: Add comment.
9793
9794 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9795 Keith Seitz <keiths@redhat.com>
9796
9797 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9798 instead of PyEval_ReleaseLock.
9799 (class gdbpy_gil): Move to earlier in file.
9800 (finalize_python): Set gdb_python_initialized.
9801 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9802 when not initialized.
9803
9804 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9807 <push_dwarf_reg_entry_value>: Remove assert. Override
9808 per_objfile with caller_per_objfile.
9809
9810 2020-05-28 Tom de Vries <tdevries@suse.de>
9811
9812 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9813 PR gold/15646 workaround to symbol kind "type".
9814
9815 2020-05-27 Tom Tromey <tromey@adacore.com>
9816
9817 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9818
9819 2020-05-27 Tom Tromey <tromey@adacore.com>
9820
9821 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9822 Use htab_find_with_hash.
9823 <add_abbrev>: Remove "abbrev_number" parameter.
9824 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9825 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9826 (hash_abbrev): Add comment.
9827 (abbrev_table::lookup_abbrev): Move to header file.
9828 (abbrev_table::read): Update.
9829
9830 2020-05-27 Tom Tromey <tromey@adacore.com>
9831
9832 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9833 method.
9834 <canonical_name>: New member.
9835 <raw_name>: Rename from "name".
9836 (partial_die_info): Initialize canonical_name.
9837 (scan_partial_symbols): Check raw_name.
9838 (partial_die_parent_scope, partial_die_full_name)
9839 (add_partial_symbol, add_partial_subprogram)
9840 (add_partial_enumeration, load_partial_dies): Use "name" method.
9841 (partial_die_info::name): New method.
9842 (partial_die_info::read, guess_partial_die_structure_name)
9843 (partial_die_info::fixup): Update.
9844
9845 2020-05-27 Tom Tromey <tromey@adacore.com>
9846
9847 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9848 <get_ref_die_offset>: Inline.
9849 <get_ref_die_offset_complaint>: New method.
9850 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9851 (attribute::get_ref_die_offset_complaint): Rename from
9852 get_ref_die_offset. Just issue complaint.
9853
9854 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9855
9856 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9857
9858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9859
9860 * exec.c (exec_file_attach): Use errno value of first openp failure.
9861
9862 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9863
9864 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9865 Don't close thread handle.
9866
9867 2020-05-27 Tom Tromey <tom@tromey.com>
9868 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9871 shared_ptr.
9872 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9873 member.
9874 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9875 dwarf2_per_bfd_objfile_data_key>: New globals.
9876 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9877 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9878 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9879 shared.
9880 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9881 short-circuit when sharing.
9882 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9883 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9884
9885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9886
9887 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9888 to...
9889 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9890 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9891
9892 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9895 build_name_components, find_name_components_bounds>:
9896 Add per_objfile parameter.
9897 (struct mapped_index) <symbol_name_at>: Likewise.
9898 (struct mapped_debug_names): Remove constructor.
9899 <dwarf2_per_objfile>: Remove field.
9900 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9901 (mapped_index_base::find_name_components_bounds,
9902 mapped_index_base::build_name_components,
9903 dw2_expand_symtabs_matching_symbol): Likewise.
9904 (class mock_mapped_index) <symbol_name_at>: Likewise.
9905 (check_match): Likewise.
9906 (check_find_bounds_finds): Likewise.
9907 (test_mapped_index_find_name_component_bounds): Update.
9908 (CHECK_MATCH): Update.
9909 (dw2_expand_symtabs_matching): Update.
9910 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9911 per_objfile parameter.
9912 <find_vec_in_debug_names>: Likewise.
9913 <m_per_objfile>: New field.
9914 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9915 parameter.
9916 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9917 (dw2_debug_names_iterator::next): Update.
9918 (dw2_debug_names_lookup_symbol): Update.
9919 (dw2_debug_names_expand_symtabs_for_function): Update.
9920 (dw2_debug_names_map_matching_symbols): Update.
9921 (dw2_debug_names_expand_symtabs_matching): Update.
9922 (dwarf2_read_debug_names): Update.
9923
9924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9927 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9928 move to dwarf2_per_objfile.
9929 <read_in_chain>: Remove.
9930 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9931 remove_all_cus, age_comp_units>: New methods.
9932 <m_dwarf2_cus>: New member.
9933 (struct dwarf2_per_cu_data) <cu>: Remove.
9934 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9935 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9936 moved to methods of dwarf2_per_objfile.
9937 (dwarf2_clear_marks): Remove.
9938 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9939 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9940 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9941 (dwarf2_per_objfile::remove_all_cus): New.
9942 (class free_cached_comp_units) <~free_cached_comp_units>:
9943 Update.
9944 (load_cu): Update.
9945 (dw2_do_instantiate_symtab): Adjust.
9946 (fill_in_sig_entry_from_dwo_entry): Adjust.
9947 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9948 (cutu_reader::cutu_reader): Likewise.
9949 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9950 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9951 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9952 and dwarf2_per_objfile::age_comp_units.
9953 (load_partial_comp_unit): Update.
9954 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9955 (process_queue): Likewise.
9956 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9957 backlink.
9958 (dwarf2_read_addr_index): Likewise.
9959 (follow_die_offset): Likewise.
9960 (dwarf2_fetch_die_loc_sect_off): Likewise.
9961 (dwarf2_fetch_constant_bytes): Likewise.
9962 (dwarf2_fetch_die_type_sect_off): Likewise.
9963 (follow_die_sig_1): Likewise.
9964 (load_full_type_unit): Likewise.
9965 (read_signatured_type): Likewise.
9966 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9967 (dwarf2_cu::~dwarf2_cu): Remove.
9968 (dwarf2_per_objfile::get_cu): New.
9969 (dwarf2_per_objfile::set_cu): New.
9970 (age_cached_comp_units): Rename to...
9971 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9972 to std::unordered_map.
9973 (free_one_cached_comp_unit): Rename to...
9974 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9975 to std::unordered_map.
9976 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9977 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9978 a dwarf2_per_objfile in data.
9979 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9980 (dwarf2_clear_marks): Remove.
9981
9982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9985 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9986 (init_tu_and_read_dwo_dies): Likewise.
9987 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9988 (cutu_reader::cutu_reader): Likewise.
9989 (load_partial_comp_unit): Likewise.
9990 (process_psymtab_comp_unit): Update.
9991 (build_type_psymtabs_1): Update.
9992 (process_skeletonless_type_unit): Update.
9993 (load_full_comp_unit): Update.
9994 (find_partial_die): Update.
9995 (dwarf2_read_addr_index): Update.
9996 (read_signatured_type): Update.
9997
9998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10001 m_header_read_in>: New fields.
10002 <get_header>: New method.
10003 * dwarf2/read.c (per_cu_header_read_in): Remove.
10004 (dwarf2_per_cu_data::get_header): New.
10005 (dwarf2_per_cu_data::addr_size): Update.
10006 (dwarf2_per_cu_data::offset_size): Update.
10007 (dwarf2_per_cu_data::ref_addr_size): Update.
10008
10009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10010
10011 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10012 (dw2_do_instantiate_symtab): Update.
10013 (queue_and_load_all_dwo_tus): Change parameter from
10014 dwarf2_per_cu_data to dwarf2_cu.
10015 (dwarf2_fetch_die_loc_sect_off): Update.
10016 (dwarf2_fetch_constant_bytes): Update.
10017 (dwarf2_fetch_die_type_sect_off): Update.
10018
10019 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * dwarf2/read.c (process_full_comp_unit,
10022 process_full_type_unit): Remove per_cu, per_objfile paramters.
10023 Add dwarf2_cu parameter.
10024 (process_queue): Update.
10025
10026 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * dwarf2/read.c (create_cu_from_index_list): Replace
10029 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10030 (create_cus_from_index_list): Likewise.
10031 (create_cus_from_index): Likewise.
10032 (create_signatured_type_table_from_index): Likewise.
10033 (create_cus_from_debug_names_list): Likewise.
10034 (create_cus_from_debug_names): Likewise.
10035 (dwarf2_read_gdb_index): Update.
10036 (dwarf2_read_debug_names): Update.
10037
10038 2020-05-27 Tom Tromey <tom@tromey.com>
10039 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * dwarf2/read.h (struct dwarf2_per_objfile)
10042 <get_type_for_signatured_type, set_type_for_signatured_type>:
10043 New methods.
10044 <m_type_map>: New member.
10045 (struct signatured_type) <type>: Remove.
10046 * dwarf2/read.c
10047 (dwarf2_per_objfile::get_type_for_signatured_type,
10048 dwarf2_per_objfile::set_type_for_signatured_type): New.
10049 (get_signatured_type): Use new methods.
10050
10051 2020-05-27 Tom Tromey <tom@tromey.com>
10052 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10055 (struct dwarf2_per_objfile) <type_units>: New member.
10056 <get_type_unit_group_unshareable>: New method.
10057 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10058 num_symtabs, symtabs>: Remove; move to
10059 type_unit_group_unshareable.
10060 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10061 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10062 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10063
10064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * dwarf2/read.h (struct dwarf2_per_cu_data):
10067 <dwarf2_per_objfile>: Remove.
10068 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10069 dwarf2_per_objfile.
10070 (create_signatured_type_table_from_index): Likewise.
10071 (create_signatured_type_table_from_debug_names): Likewise.
10072 (create_debug_type_hash_table): Likewise.
10073 (fill_in_sig_entry_from_dwo_entry): Likewise.
10074 (create_type_unit_group): Likewise.
10075 (read_comp_units_from_section): Likewise.
10076 (create_cus_hash_table): Likewise.
10077
10078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10079
10080 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10081 dwarf2_per_cu_data::dwarf2_per_objfile.
10082 (compute_compunit_symtab_includes): Likewise.
10083 (dwarf2_cu::start_symtab): Likewise.
10084
10085 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10086
10087 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10088 parameter.
10089 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10090 (read_namespace_alias): Update.
10091 (lookup_die_type): Update.
10092 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10093 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10094 Update.
10095 (disassemble_dwarf_expression): Update.
10096
10097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * dwarf2/read.h (struct dwarf2_queue_item): Add
10100 dwarf2_per_objfile parameter, assign new parameter.
10101 <per_objfile>: New field.
10102 * dwarf2/read.c (free_one_cached_comp_unit): Add
10103 dwarf2_per_objfile parameter.
10104 (queue_comp_unit): Likewise.
10105 (dw2_do_instantiate_symtab): Update.
10106 (process_psymtab_comp_unit): Update.
10107 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10108 (process_imported_unit_die): Update.
10109 (queue_and_load_dwo_tu): Update.
10110 (follow_die_offset): Update.
10111 (follow_die_sig_1): Update.
10112
10113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10114
10115 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10116 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10117 (read_call_site_scope): Assign per_objfile.
10118 (dwarf2_per_cu_data::objfile): Remove.
10119 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10120 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10121 dwarf2_per_objfile parameter.
10122 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10123 dwarf2_per_objfile parameter.
10124 (dwarf_expr_reg_to_entry_parameter): Add output
10125 dwarf2_per_objfile parameter.
10126 (locexpr_get_frame_base): Update.
10127 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10128 <push_dwarf_reg_entry_value>: Update.
10129 <call_site_to_target_addr>: Update.
10130 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10131 parameter.
10132 (value_of_dwarf_reg_entry): Update.
10133 (rw_pieced_value): Update.
10134 (indirect_synthetic_pointer): Update.
10135 (dwarf2_evaluate_property): Update.
10136 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10137 parameter.
10138 (locexpr_read_variable): Update.
10139 (locexpr_get_symbol_read_needs): Update.
10140 (loclist_read_variable): Update.
10141
10142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10143
10144 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10147 parameter.
10148 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10149 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10150 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10151 parameter.
10152 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10153 sect_variable_value): Add dwarf2_per_objfile parameter.
10154 (class dwarf_evaluate_loc_desc) <dwarf_call,
10155 dwarf_variable_value>: Update.
10156 (fetch_const_value_from_synthetic_pointer): Add
10157 dwarf2_per_objfile parameter.
10158 (fetch_const_value_from_synthetic_pointer): Update.
10159 (coerced_pieced_ref): Update.
10160 (class symbol_needs_eval_context) <dwarf_call,
10161 dwarf_variable_value>: Update.
10162 (dwarf2_compile_expr_to_ax): Update.
10163
10164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10165
10166 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10167 parameter.
10168 (dwarf2_evaluate_loc_desc_full): Update.
10169
10170 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10171
10172 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10173 parameter.
10174 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10175 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10176 dwarf2_per_objfile parameter.
10177 (decode_debug_loc_dwo_addresses): Likewise.
10178 (dwarf2_find_location_expression): Update.
10179 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10180 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10181 parameter.
10182 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10183 parameter.
10184 (locexpr_describe_location_1): Likewise.
10185 (locexpr_describe_location): Update.
10186
10187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10190 Remove.
10191 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10192 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10193 (dwarf2_compile_property_to_c): Update.
10194 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10195 use text offset from objfile.
10196 (locexpr_tracepoint_var_ref): Update.
10197 (locexpr_generate_c_location): Update.
10198 (loclist_describe_location): Update.
10199 (loclist_tracepoint_var_ref): Update.
10200 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10201 dwarf2_per_objfile parameter.
10202 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10203 use text offset from objfile.
10204 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10205
10206 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * dwarf2/expr.h (struct dwarf_expr_context)
10209 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10210 <offset>: Remove.
10211 <per_objfile>: New member.
10212 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10213 dwarf2_per_objfile parameter. Don't set offset, set
10214 per_objfile.
10215 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10216 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10217 a dwarf2_per_objfile object instead of an offset.
10218 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10219 constructor.
10220 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10221 to dwarf2_expr_executor constructor. Don't set offset.
10222 (dwarf2_fetch_cfa_info): Update.
10223 (struct dwarf2_frame_cache) <text_offset>: Remove.
10224 <per_objfile>: New field.
10225 (dwarf2_frame_cache): Update.
10226 (dwarf2_frame_prev_register): Update.
10227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10228 <dwarf_evaluate_loc_desc>: Add constructor.
10229 (dwarf2_evaluate_loc_desc_full): Update.
10230 (dwarf2_locexpr_baton_eval): Update.
10231 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10232 Add constructor.
10233 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10234
10235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10238 addr_sized_int_type>: Move to dwarf2_cu.
10239 <int_type>: Move to dwarf2_per_objfile.
10240 (struct dwarf2_per_objfile) <int_type>: Move here.
10241 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10242 addr_sized_int_type>: Move here.
10243 (read_func_scope): Update.
10244 (read_array_type): Update.
10245 (read_tag_string_type): Update.
10246 (attr_to_dynamic_prop): Update.
10247 (dwarf2_per_cu_data::int_type): Rename to...
10248 (dwarf2_per_objfile::int_type): ... this.
10249 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10250 (dwarf2_cu::addr_sized_int_type): ... this.
10251 (read_subrange_type): Update.
10252 (dwarf2_per_cu_data::addr_type): Rename to...
10253 (dwarf2_cu::addr_type): ... this.
10254 (set_die_type): Update.
10255
10256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10257
10258 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10259 data through per_cu->cu.
10260
10261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10264 dwarf2_per_cu_data parameter fo dwarf2_cu.
10265 (lookup_dwo_type_unit): Likewise.
10266 (read_cutu_die_from_dwo): Likewise.
10267 (lookup_dwo_unit): Likewise.
10268 (open_and_init_dwo_file): Likewise.
10269 (lookup_dwo_cutu): Likewise.
10270 (lookup_dwo_comp_unit): Likewise.
10271 (lookup_dwo_type_unit): Likewise.
10272 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10273 (cutu_reader::cutu_reader): Update.
10274
10275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10278 parameter.
10279 (process_full_type_unit): Likewise.
10280 (process_queue): Update.
10281
10282 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * dwarf2/read.c (recursively_compute_inclusions): Add
10285 dwarf2_per_objfile parameter.
10286 (compute_compunit_symtab_includes): Likewise.
10287 (process_cu_includes): Update.
10288
10289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10290
10291 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10292 parameter.
10293 (create_type_unit_group): Update.
10294 (process_psymtab_comp_unit_reader): Update.
10295 (build_type_psymtabs_reader): Update.
10296
10297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10298
10299 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10300 object through m_this_cu->cu.
10301
10302 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10303
10304 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10305 the info parameter.
10306 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10307
10308 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10309
10310 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10311 per_objfile parameter.
10312 (load_full_type_unit): Add per_objfile parameter.
10313 (read_signatured_type): Likewise.
10314 (load_full_comp_unit): Likewise.
10315 (load_cu): Likewise.
10316 (dw2_do_instantiate_symtab): Likewise.
10317 (dw2_get_file_names): Likewise.
10318 (dw2_map_symtabs_matching_filename): Update.
10319 (dw_expand_symtabs_matching_file_matcher): Update.
10320 (dw2_map_symbol_filenames): Update.
10321 (process_psymtab_comp_unit): Add per_objfile parameter.
10322 (build_type_psymtabs_1): Update.
10323 (process_skeletonless_type_unit): Update.
10324 (dwarf2_build_psymtabs_hard): Update.
10325 (load_partial_comp_unit): Add per_objfile parameter.
10326 (scan_partial_symbols): Update.
10327 (load_full_comp_unit): Add per_objfile parameter.
10328 (process_imported_unit_die): Update.
10329 (create_cus_hash_table): Update.
10330 (find_partial_die): Update.
10331 (dwarf2_read_addr_index): Update.
10332 (follow_die_offset): Update.
10333 (dwarf2_fetch_die_loc_sect_off): Update.
10334 (dwarf2_fetch_constant_bytes): Update.
10335 (dwarf2_fetch_die_type_sect_off): Update.
10336 (follow_die_sig_1): Update.
10337 (load_full_type_unit): Add per_objfile parameter.
10338 (read_signatured_type): Likewise.
10339
10340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10341
10342 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10343 of objfile_name.
10344
10345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10346
10347 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10348 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10349 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10350 field.
10351 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10352 (create_cus_from_index): Update.
10353 (dwarf2_read_gdb_index): Update.
10354 (create_cus_from_debug_names): Update.
10355 (dwarf2_read_debug_names): Update.
10356 (get_abbrev_section_for_cu): Update.
10357 (create_all_comp_units): Update.
10358 (read_attribute_value): Update.
10359 (get_debug_line_section): Update.
10360 * dwarf2/index-cache.c (index_cache::store): Update.
10361 * dwarf2/index-write.c (save_gdb_index_command): Update.
10362 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10363
10364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10365
10366 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10367 member.
10368 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10369 dwarf2_per_cu_data::per_bfd.
10370 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10371 (create_type_unit_group): Likewise.
10372 (queue_comp_unit): Remove reference to
10373 per_cu->dwarf2_per_objfile.
10374 (maybe_queue_comp_unit): Likewise.
10375 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10376 (create_cus_hash_table): Assign new field.
10377
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * dwarf2/read.c: Replace
10381 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10382 dwarf2_cu->per_objfile throughout.
10383
10384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10387 parameter, don't use per_cu->dwarf2_per_objfile.
10388 (dw2_instantiate_symtab): Likewise.
10389 (dw2_find_last_source_symtab): Update.
10390 (dw2_map_expand_apply): Update.
10391 (dw2_lookup_symbol): Update.
10392 (dw2_expand_symtabs_for_function): Update.
10393 (dw2_expand_all_symtabs): Update.
10394 (dw2_expand_symtabs_with_fullname): Update.
10395 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10396 don't use per_cu->dwarf2_per_objfile.
10397 (dw2_expand_marked_cus): Update.
10398 (dw2_find_pc_sect_compunit_symtab): Update.
10399 (dw2_debug_names_lookup_symbol): Update.
10400 (dw2_debug_names_expand_symtabs_for_function): Update.
10401 (dw2_debug_names_map_matching_symbols): Update.
10402 (dwarf2_psymtab::expand_psymtab): Update.
10403
10404 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10407 <per_objfile>: New member.
10408 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10409 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10410 call to dwarf2_cu.
10411 (cutu_reader::cutu_reader): Update.
10412 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10413
10414 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10417 struct dwarf2_per_objfile.
10418 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10419 dwarf2_per_bfd.
10420 * dwarf2/read.c (set_die_type): Update.
10421 (get_die_type_at_offset): Update.
10422
10423 2020-05-27 Tom Tromey <tom@tromey.com>
10424 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10427 method.
10428 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10429 get_symtab, set_symtab>: New methods.
10430 <m_symtabs>: New field.
10431 (struct dwarf2_psymtab): Derive from partial_symtab.
10432 <readin_p, get_compunit_symtab>: Declare methods.
10433 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10434 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10435 New methods.
10436 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10437 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10438 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10439 (dw2_symtab_iter_next, dw2_print_stats)
10440 (dw2_expand_symtabs_with_fullname)
10441 (dw2_expand_symtabs_matching_one)
10442 (dw_expand_symtabs_matching_file_matcher)
10443 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10444 (dw2_debug_names_iterator::next)
10445 (dw2_debug_names_map_matching_symbols)
10446 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10447 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10448 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10449 New methods.
10450 (get_compunit_symtab, process_full_comp_unit)
10451 (process_full_type_unit): Update.
10452 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10453
10454 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10457 then introduce a new dwarf2_per_objfile type.
10458 <read_line_string>: Move to the new dwarf2_per_objfile type.
10459 <objfile>: Likewise.
10460 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10461 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10462 dwarf2_per_objfile->per_bfd.
10463 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10464 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10465 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10466 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10467 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10468 (dwarf2_per_objfile::locate_sections): Rename to...
10469 (dwarf2_per_bfd::locate_sections): ... this.
10470 (dwarf2_per_objfile::get_cutu): Rename to...
10471 (dwarf2_per_bfd::get_cutu): ... this.
10472 (dwarf2_per_objfile::get_cu): Rename to...
10473 (dwarf2_per_bfd::get_cu): ... this.
10474 (dwarf2_per_objfile::get_tu): Rename to...
10475 (dwarf2_per_bfd::get_tu): ... this.
10476 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10477 (dwarf2_per_bfd::allocate_per_cu): ... this.
10478 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10479 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10480 (get_gdb_index_contents_ftype): Change parameter from
10481 dwarf2_per_objfile to dwarf2_per_bfd.
10482 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10483 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10484
10485 2020-05-27 Tom Tromey <tom@tromey.com>
10486 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10489 (allocate_piece_closure): Set "per_objfile" member.
10490 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10491 (locexpr_describe_location, loclist_describe_location): Use new
10492 member.
10493 * dwarf2/read.c (read_call_site_scope)
10494 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10495 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10496 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10497 handle_data_member_location): Set per_objfile member.
10498 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10499 member.
10500 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10501
10502 2020-05-27 Tom Tromey <tom@tromey.com>
10503
10504 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10505 allocate_signatured_type>: Declare new methods.
10506 <m_num_psymtabs>: New member.
10507 (struct dwarf2_per_cu_data) <index>: New member.
10508 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10509 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10510 (create_cu_from_index_list): Use allocate_per_cu.
10511 (create_signatured_type_table_from_index)
10512 (create_signatured_type_table_from_debug_names)
10513 (create_debug_type_hash_table, add_type_unit)
10514 (read_comp_units_from_section): Use allocate_signatured_type.
10515
10516 2020-05-27 Tom Tromey <tom@tromey.com>
10517
10518 * psymtab.c (partial_map_expand_apply)
10519 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10520 (psym_lookup_global_symbol_language)
10521 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10522 (psym_print_stats, psym_expand_symtabs_for_function)
10523 (psym_map_symbol_filenames, psym_map_matching_symbols)
10524 (psym_expand_symtabs_matching)
10525 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10526 (maintenance_check_psymtabs): Update.
10527 * psympriv.h (struct partial_symtab) <readin_p,
10528 get_compunit_symtab>: Add objfile parameter.
10529 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10530 Likewise.
10531 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10532 get_compunit_symtab>: Likewise.
10533 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10534
10535 2020-05-27 Tom Tromey <tom@tromey.com>
10536
10537 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10538 member.
10539 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10540 (create_cu_from_index_list)
10541 (create_signatured_type_table_from_index)
10542 (create_signatured_type_table_from_debug_names)
10543 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10544 (dwarf2_create_include_psymtab)
10545 (create_debug_type_hash_table, add_type_unit)
10546 (create_type_unit_group, read_comp_units_from_section)
10547 (dwarf2_compute_name, create_cus_hash_table)
10548 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10549 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10550 obstack.
10551 (dw2_get_real_path): Likewise. Change argument to
10552 dwarf2_per_objfile.
10553
10554 2020-05-27 Luis Machado <luis.machado@linaro.org>
10555
10556 PR tdep/26000
10557 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10558 for ldrd (immediate).
10559
10560 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10561
10562 * command.h: Add comment giving the name of class_tui.
10563 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10564 create the fake command for the help for class_tui.
10565
10566 2020-05-26 Tom Tromey <tromey@adacore.com>
10567
10568 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10569 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10570 (val_atr): New function.
10571 (value_val_atr): Use it.
10572 * ada-valprint.c (print_optional_low_bound): Change low bound
10573 handling for enums.
10574 (val_print_packed_array_elements): Don't call discrete_position.
10575 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10576 discrete_position for enum types.
10577 * language.c (default_print_array_index): Change type.
10578 * language.h (struct language_defn) <la_print_array_index>: Add
10579 index_type parameter, change type of index_value.
10580 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10581 (default_print_array_index): Update.
10582 * valprint.c (maybe_print_array_index): Don't call
10583 value_from_longest. Update.
10584 (value_print_array_elements): Don't call discrete_position.
10585
10586 2020-05-26 Tom Tromey <tromey@adacore.com>
10587
10588 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10589 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10590
10591 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10592
10593 PR gdb/13519
10594 * avr-tdep.c (avr_integer_to_address): Return data or code
10595 address accordingly to the second 'type' argument of the
10596 function.
10597
10598 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10599
10600 * infcmd.c, inferior.h: (construct_inferior_arguments):
10601 Moved function from here to gdbsupport/common-inferior.{h,cc}
10602
10603 2020-05-23 Tom Tromey <tom@tromey.com>
10604
10605 Revert commit eca1f90c:
10606 * NEWS: Remove entry for completion styling.
10607 * completer.c (_rl_completion_prefix_display_length): Move
10608 declaration later.
10609 (gdb_fnprint): Revert.
10610 (gdb_display_match_list_1): Likewise.
10611 * cli/cli-style.c (completion_prefix_style)
10612 (completion_difference_style, completion_suffix_style): Remove.
10613 (_initialize_cli_style): Revert.
10614 * cli/cli-style.h (completion_prefix_style)
10615 (completion_difference_style, completion_suffix_style): Don't
10616 declare.
10617
10618 2020-05-24 Pedro Alves <palves@redhat.com>
10619
10620 * symtab.c (completion_list_add_name): Return boolean indication
10621 of whether the symbol matched.
10622 (completion_list_add_symbol): Don't try to remove C++ aliases if
10623 the symbol didn't match in the first place.
10624 * symtab.h (completion_list_add_name): Return bool.
10625
10626 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10627
10628 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10629 type::field.
10630
10631 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10632
10633 GDB 9.2 released.
10634
10635 2020-05-23 Tom Tromey <tom@tromey.com>
10636
10637 * NEWS: Add entry for completion styling.
10638 * completer.c (_rl_completion_prefix_display_length): Move
10639 declaration earlier.
10640 (gdb_fnprint): Use completion_style.
10641 (gdb_display_match_list_1): Likewise.
10642 * cli/cli-style.c (completion_prefix_style)
10643 (completion_difference_style, completion_suffix_style): New
10644 globals.
10645 (_initialize_cli_style): Register new globals.
10646 * cli/cli-style.h (completion_prefix_style)
10647 (completion_difference_style, completion_suffix_style): Declare.
10648
10649 2020-05-23 Pedro Alves <palves@redhat.com>
10650
10651 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10652 (parse_escape): Use ISDIGIT instead of isdigit.
10653 (puts_debug): Use gdb_isprint instead of isprint.
10654 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10655 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10656 ISSPACE instead of isspace.
10657 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10658 instead of isspace.
10659 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10660 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10661 instead of isxdigit and ISDIGIT instead of isdigit.
10662
10663 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * gdbtypes.h (struct type) <field>: New method.
10666 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10667 or type::field.
10668
10669 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10672 (TYPE_FIELDS): Use type::fields. Change all call sites that
10673 modify the propery to use type::set_fields instead.
10674
10675 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10676
10677 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10678 type::num_fields instead.
10679
10680 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10683 methods.
10684 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10685 that modify the number of fields to use type::set_num_fields
10686 instead.
10687
10688 2020-05-22 Tom Tromey <tromey@adacore.com>
10689
10690 * compile/compile-object-load.h (munmap_list_free): Don't
10691 declare.
10692
10693 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * annotate.c (annotate_source_line): Update return type, add call
10696 to update current symtab and line.
10697 * annotate.h (annotate_source_line): Update return type, and
10698 extend header comment.
10699 * source.c (info_line_command): Check annotation_level before
10700 calling annotate_source_line.
10701 * stack.c (print_frame_info): If calling annotate_source_line
10702 returns true, then don't print any other source line information.
10703
10704 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10705
10706 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10707
10708 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10709
10710 * coffread.c (patch_type): Remove NULL check before xfree.
10711 * corefile.c (set_gnutarget): Likewise.
10712 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10713 * exec.c (build_section_table): Likewise.
10714 * remote.c (remote_target::pass_signals): Likewise.
10715 * utils.c (n_spaces): Likewise.
10716 * cli/cli-script.c (document_command): Likewise.
10717 * i386-windows-tdep.c (core_process_module_section): Likewise.
10718 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10719
10720 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10721
10722 * symfile.c (reread_symbols): Clear objfile's section_offsets
10723 vector and section indices, re-compute them by calling
10724 sym_offsets.
10725
10726 2020-05-20 Tom Tromey <tromey@adacore.com>
10727
10728 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10729 (desc_one_bound, desc_index_type): Compute field name.
10730
10731 2020-05-20 Tom de Vries <tdevries@suse.de>
10732
10733 PR symtab/25833
10734 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10735
10736 2020-05-20 Alan Modra <amodra@gmail.com>
10737
10738 PR 25993
10739 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10740 bfd_set_filename.
10741 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10742 passed to bfd_set_filename.
10743 * symfile-mem.c (add_vsyscall_page): Likewise for string
10744 passed to symbol_file_add_from_memory.
10745 (symbol_file_add_from_memory): Make name param a const char* and
10746 don't strdup.
10747
10748 2020-05-20 Alan Modra <amodra@gmail.com>
10749
10750 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10751 rather than accessing bfd->filename directly.
10752 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10753 and use bfd_section_name.
10754 * dwarf2/frame.c (decode_frame_entry): Likewise.
10755 * exec.c (exec_set_section_address): Likewise.
10756 * solib-aix.c (solib_aix_bfd_open): Likewise.
10757 * stap-probe.c (get_stap_base_address): Likewise.
10758 * symfile.c (reread_symbols): Likewise.
10759
10760 2020-05-19 Tom Tromey <tromey@adacore.com>
10761
10762 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10763
10764 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10765
10766 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10767
10768 2020-05-19 Pedro Alves <palves@redhat.com>
10769
10770 * NEWS (set exec-file-mismatch): Adjust entry.
10771 * exec.c: Include "build-id.h".
10772 (validate_exec_file): Try to match build IDs instead of filenames.
10773 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10774 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10775 and pass down 'warn_if_slow'.
10776 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10777 gdb_bfd_open_closure to pass it down.
10778 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10779
10780 2020-05-19 Pedro Alves <palves@redhat.com>
10781
10782 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10783 * target.c (target_fileio_open_1): Rename to target_fileio_open
10784 and make extern. Use bool.
10785 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10786 (target_fileio_read_alloc_1): Adjust.
10787 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10788 (target_fileio_open_warn_if_slow): Delete declaration.
10789
10790 2020-05-19 Pedro Alves <palves@redhat.com>
10791
10792 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10793 Adjust all callers.
10794
10795 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10796
10797 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10798 whether disp is negative.
10799
10800 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * symfile.h (struct symfile_segment_data)
10803 <~symfile_segment_data>: Remove.
10804 <segment_info>: Change to std::vector.
10805 * symfile.c (default_symfile_segments): Update.
10806 * elfread.c (elf_symfile_segments): Update.
10807
10808 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10811 <segments>: New.
10812 <segment_bases, segment_sizes>: Remove.
10813 * symfile.c (default_symfile_segments): Update.
10814 * elfread.c (elf_symfile_segments): Update.
10815 * remote.c (remote_target::get_offsets): Update.
10816 * solib-target.c (solib_target_relocate_section_addresses):
10817 Update.
10818
10819 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * symfile.h (struct symfile_segment_data): Initialize fields.
10822 <~symfile_segment_data>: Add.
10823 (symfile_segment_data_up): New.
10824 (struct sym_fns) <sym_segments>: Return a
10825 symfile_segment_data_up.
10826 (default_symfile_segments): Return a symfile_segment_data_up.
10827 (free_symfile_segment_data): Remove.
10828 (get_symfile_segment_data): Return a symfile_segment_data_up.
10829 * symfile.c (default_symfile_segments): Likewise.
10830 (get_symfile_segment_data): Likewise.
10831 (free_symfile_segment_data): Remove.
10832 (symfile_find_segment_sections): Update.
10833 * elfread.c (elf_symfile_segments): Return a
10834 symfile_segment_data_up.
10835 * remote.c (remote_target::get_offsets): Update.
10836 * solib-target.c (solib_target_relocate_section_addresses):
10837 Update.
10838 * symfile-debug.c (debug_sym_segments): Return a
10839 symfile_segment_data_up.
10840
10841 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10842
10843 PR build/25981
10844 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10845 Hardcode register numbers.
10846
10847 PR build/25981
10848 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10849 procfs_find_LDT_entry): Remove.
10850 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10851 procfs_find_LDT_entry): Remove.
10852 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10853 Remove.
10854
10855 2020-05-17 Pedro Alves <palves@redhat.com>
10856 Andrew Burgess <andrew.burgess@embecosm.com>
10857 Keno Fischer <keno@juliacomputing.com>
10858
10859 PR gdb/25741
10860 * breakpoint.c (build_target_condition_list): Update comments.
10861 (build_target_command_list): Update comments and skip matching
10862 locations.
10863 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10864 a separate function. Simplify "set breakpoint auto-hw off"
10865 handling.
10866 (insert_breakpoints): Update comment.
10867 (tracepoint_locations_match): New parameter. For breakpoints,
10868 compare location types too, if the caller wants to.
10869 (handle_automatic_hardware_breakpoints): New functions.
10870 (bp_location_is_less_than): Also sort by location type and
10871 hardware breakpoint length.
10872 (update_global_location_list): Handle "set breakpoint auto-hw on"
10873 here.
10874 (update_breakpoint_locations): Ask breakpoint_locations_match to
10875 ignore location types.
10876
10877 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10880 type::name instead.
10881
10882 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * gdbtypes.h (struct type) <name, set_name>: New methods.
10885 (TYPE_CODE): Use type::name. Change all call sites used to set
10886 the name to use type::set_name instead.
10887
10888 2020-05-16 Tom Tromey <tom@tromey.com>
10889
10890 * top.c (quit_force): Update.
10891 * infrun.c (handle_no_resumed): Update.
10892 * top.h (all_uis): New function.
10893 (ALL_UIS): Remove.
10894
10895 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10896
10897 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10898
10899 2020-05-16 Pedro Alves <palves@redhat.com>
10900
10901 * ia64-linux-nat.c
10902 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10903 Declare method.
10904 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10905
10906 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10907
10908 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10909 (sparc64_adi_info): Likewise.
10910
10911 2020-05-15 Tom Tromey <tom@tromey.com>
10912
10913 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10914 block_objfile.
10915 (lookup_objfile_from_block): Remove.
10916 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10917 (lookup_global_symbol): Use block_objfile.
10918 * symtab.h (lookup_objfile_from_block): Don't declare.
10919 * printcmd.c (clear_dangling_display_expressions): Use
10920 block_objfile.
10921 * parse.c (operator_check_standard): Use block_objfile.
10922
10923 2020-05-15 Tom Tromey <tom@tromey.com>
10924
10925 * language.c (language_alloc_type_symbol): Set
10926 SYMBOL_SECTION.
10927 * symtab.c (initialize_objfile_symbol): Remove.
10928 (allocate_symbol): Remove.
10929 (allocate_template_symbol): Remove.
10930 * dwarf2/read.c (fixup_go_packaging): Use "new".
10931 (new_symbol): Use "new".
10932 (read_variable): Don't call initialize_objfile_symbol. Use
10933 "new".
10934 (read_func_scope): Use "new".
10935 * xcoffread.c (process_xcoff_symbol): Don't call
10936 initialize_objfile_symbol.
10937 (SYMBOL_DUP): Remove.
10938 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10939 "new".
10940 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10941 (allocate_template_symbol): Don't declare.
10942 (struct symbol): Add copy constructor. Change defaults.
10943 * jit.c (finalize_symtab): Use "new".
10944 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10945 Use "new".
10946 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10947 (common_block_end): Use "new".
10948 * mdebugread.c (parse_symbol): Use "new".
10949 (new_symbol): Likewise.
10950
10951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10952
10953 * NEWS: Mention changes to help and apropos.
10954
10955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10956
10957 * command.h (enum command_class): Improve comments, document
10958 that class_alias is for user-defined aliases, give the class
10959 name for each class, remove unused class_xdb.
10960 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10961 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10962 by a precise class.
10963 * infcmd.c (_initialize_infcmd): Likewise.
10964 * reverse.c (_initialize_reverse): Likewise.
10965 * stack.c (_initialize_stack): Likewise.
10966 * symfile.c (_initialize_symfile): Likewise.
10967 * tracepoint.c (_initialize_tracepoint): Likewise.
10968
10969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10970
10971 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10972 when their aliased command is traversed.
10973 (help_cmd): Add fput_command_names_styled call to
10974 output command name and aliases when command has an alias.
10975
10976 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10977
10978 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10979 * cli/cli-decode.c (help_cmd_list): Declare as static,
10980 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10981 a command together with the command.
10982 (fput_command_name_styled, fput_command_names_styled): New functions.
10983 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10984 fput_command_name_styled.
10985 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10986 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10987
10988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10989
10990 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10991 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10992 * command.h (cmd_show_list): Likewise.
10993 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10994 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10995
10996 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997
10998 * unittests/command-def-selftests.c (traverse_command_structure):
10999 Verify all commands of a list have the same prefix command and
11000 that only the top cmdlist commands have a null prefix.
11001
11002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11003
11004 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11005 as prefix, not one of its aliases.
11006 (set_cmd_prefix): Remove.
11007 (do_add_cmd): Centralize the setting of the prefix of a command, when
11008 command is defined after its full chain of prefix commands.
11009 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11010 (add_setshow_cmd_full): Likewise.
11011 (update_prefix_field_of_prefixed_commands): New function.
11012 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11013 update_prefix_field_of_prefixed_commands.
11014 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11015 addresses of remote_set_cmdlist and remote_show_cmdlist given
11016 as argument, not the address of an argument.
11017 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11018 * gdb/remote.c (_initialize_remote): Likewise.
11019
11020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11021
11022 * cli/cli-cmds.c (alias_command): Check for an existing alias
11023 using lookup_cmd_composition, as valid_command_p is too strict
11024 and forbids aliases that are the prefix of an existing alias
11025 or command.
11026 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11027 command is properly recognised as a valid command.
11028
11029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11030
11031 * unittests/help-doc-selftests.c: Rename to
11032 unittests/command-def-selftests.c
11033 * unittests/command-def-selftests.c (help_doc_tests): Update some
11034 comments.
11035 (command_structure_tests, traverse_command_structure): New namespace
11036 and function.
11037 (command_structure_invariants_tests): New function.
11038 (_initialize_command_def_selftests) Renamed from
11039 _initialize_help_doc_selftests, register command_structure_invariants
11040 selftest.
11041
11042 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11043
11044 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11045 an alias of 'show'.
11046
11047 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11048
11049 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11050 ada_is_fixed_point_type. Update all callers.
11051 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11052 all callers.
11053 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11054 Update all callers.
11055 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11056 print_fixed_point_type. Update all callers.
11057 * ada-valprint.c (ada_value_print_num): Replace call to
11058 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11059
11060 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11061
11062 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11063 processors.
11064 (cpu_supports_bts): Add CV_AMD case.
11065
11066 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11067 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * infrun.c (stop_all_threads): Collect multiple wait events at
11070 each pass.
11071
11072 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11073
11074 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11075 type::code instead.
11076
11077 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbtypes.h (struct type) <code, set_code>: New methods.
11080 (TYPE_CODE): Use type::code. Change all call sites used to set
11081 the code to use type::set_code instead.
11082
11083 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11084 Tom de Vries <tdevries@suse.de>
11085 Pedro Alves <palves@redhat.com>
11086
11087 PR threads/25478
11088 * infrun.c (stop_all_threads): Do NOT ignore
11089 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11090 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11091 received.
11092 (handle_no_resumed): Remove code handling a live inferior with no
11093 threads.
11094 * remote.c (has_single_non_exited_thread): New.
11095 (remote_target::update_thread_list): Do not delete a thread if is
11096 the last thread of the process.
11097 * thread.c (thread_select): Call delete_exited_threads instead of
11098 prune_threads.
11099
11100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11101
11102 * infrun.c (stop_all_threads): Enable/disable thread events of all
11103 targets. Move a debug message denoting the end of the function
11104 into the SCOPED_EXIT block.
11105
11106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11107
11108 * process-stratum-target.h: Include <set>.
11109 (all_non_exited_process_targets, switch_to_target_no_thread): New
11110 function declarations.
11111 * process-stratum-target.c (all_non_exited_process_targets)
11112 (switch_to_target_no_thread): New function implementations.
11113
11114 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11115
11116 * infrun.c (handle_inferior_event): Extract out a piece of code
11117 into...
11118 (mark_non_executing_threads): ...this new function.
11119
11120 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11121
11122 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11123 use.
11124
11125 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11126
11127 * regcache.c (regcache_read_pc_protected): New function
11128 implementation that returns 0 if the PC cannot read via
11129 'regcache_read_pc'.
11130 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11131 instead of 'regcache_read_pc'.
11132 (keep_going_pass_signal): Ditto.
11133
11134 2020-05-13 Tom Tromey <tromey@adacore.com>
11135
11136 * ada-lang.c (align_value): Remove.
11137 (ada_template_to_fixed_record_type_1): Use align_up.
11138
11139 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11140
11141 * async-event.c: Update the copyright year.
11142 * async-event.h: Update the copyright year.
11143
11144 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11145
11146 * objfiles.h (is_addr_in_objfile,
11147 shared_objfile_contains_address_p): Return bool.
11148 * objfile.c (is_addr_in_objfile,
11149 shared_objfile_contains_address_p): Return bool.
11150
11151 2020-05-11 Tom Tromey <tromey@adacore.com>
11152
11153 * cli/cli-cmds.c (info_command): Restore.
11154 (_initialize_cli_cmds): Use add_prefix_command for "info".
11155 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11156
11157 2020-05-11 Tom Tromey <tromey@adacore.com>
11158
11159 * ada-lang.c (ada_value_primitive_field): Now public.
11160 * ada-lang.h (ada_value_primitive_field): Declare.
11161 * ada-valprint.c (print_field_values): Use
11162 ada_value_primitive_field for wrapper fields.
11163
11164 2020-05-11 Tom de Vries <tdevries@suse.de>
11165
11166 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11167 MODULE_DOMAIN.
11168
11169 2020-05-11 Tom de Vries <tdevries@suse.de>
11170
11171 PR symtab/25941
11172 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11173 with length 0, if not gdb-produced.
11174 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11175
11176 2020-05-09 Tom de Vries <tdevries@suse.de>
11177
11178 PR gdb/25955
11179 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11180 calculation.
11181
11182 2020-05-09 Tom Tromey <tom@tromey.com>
11183
11184 * top.c (server_command): Now bool.
11185 * top.h (server_command): Now bool.
11186
11187 2020-05-08 Tom Tromey <tromey@adacore.com>
11188
11189 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11190 already being processed.
11191
11192 2020-05-08 Tom Tromey <tom@tromey.com>
11193
11194 * printcmd.c (struct display) <next>: Remove.
11195 <display>: New constructor.
11196 <exp_string>: Now a std::string.
11197 <enabled_p>: Now a bool.
11198 (display_number): Move definition earlier.
11199 (displays): Rename from display_chain. Now a std::vector.
11200 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11201 (display_command): Update.
11202 (do_one_display, disable_display)
11203 (enable_disable_display_command, do_enable_disable_display):
11204 Update.
11205 (free_display): Remove.
11206 (clear_displays): Rewrite.
11207 (delete_display): Update.
11208 (map_display_numbers): Use function_view. Remove "data"
11209 parameter. Update.
11210 (do_delete_display): Remove.
11211 (undisplay_command): Update.
11212 (do_one_display, do_displays, disable_display)
11213 (info_display_command): Update.
11214 (do_enable_disable_display): Remove.
11215 (enable_disable_display_command)
11216 (clear_dangling_display_expressions): Update.
11217
11218 2020-05-08 Tom Tromey <tom@tromey.com>
11219
11220 * symtab.c (set_symbol_cache_size)
11221 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11222 (maintenance_print_symbol_cache_statistics): Update.
11223 * symmisc.c (print_symbol_bcache_statistics)
11224 (print_objfile_statistics, maintenance_print_objfiles)
11225 (maintenance_info_symtabs, maintenance_check_symtabs)
11226 (maintenance_expand_symtabs, maintenance_info_line_tables):
11227 Update.
11228 * symfile-debug.c (set_debug_symfile): Update.
11229 * source.c (forget_cached_source_info): Update.
11230 * python/python.c (gdbpy_progspaces): Update.
11231 * psymtab.c (maintenance_info_psymtabs): Update.
11232 * probe.c (parse_probes): Update.
11233 * linespec.c (iterate_over_all_matching_symtabs)
11234 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11235 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11236 * exec.c (exec_target::close): Update.
11237 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11238 * breakpoint.c (print_one_breakpoint_location)
11239 (create_longjmp_master_breakpoint)
11240 (create_std_terminate_master_breakpoint): Update.
11241 * progspace.c (program_spaces): Now a std::vector.
11242 (maybe_new_address_space): Update.
11243 (add_program_space): Remove.
11244 (program_space::program_space): Update.
11245 (remove_program_space): Update.
11246 (number_of_program_spaces): Remove.
11247 (print_program_space, update_address_spaces): Update.
11248 * progspace.h (program_spaces): Change type.
11249 (ALL_PSPACES): Remove.
11250 (number_of_program_spaces): Don't declare.
11251 (struct program_space) <next>: Remove.
11252
11253 2020-05-08 Tom Tromey <tom@tromey.com>
11254
11255 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11256 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11257 (enable_break): Update.
11258 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11259 (frv_fdpic_find_canonical_descriptor): Update.
11260 (frv_fetch_objfile_link_map): Update.
11261 * progspace.c (program_space::free_all_objfiles): Update.
11262 (program_space::solibs): New method.
11263 * progspace.h (struct program_space) <solibs>: New method.
11264 * solist.h (master_so_list): Don't declare.
11265 (ALL_SO_LIBS): Remove.
11266 * solib.h (so_list_head): Remove.
11267 (update_solib_list): Update comment.
11268 * solib.c (master_so_list): Remove.
11269 (solib_used, update_solib_list, solib_add)
11270 (info_sharedlibrary_command, clear_solib)
11271 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11272
11273 2020-05-08 Tom Tromey <tom@tromey.com>
11274
11275 * extension.c (extension_languages): Now a std::array.
11276 (ALL_EXTENSION_LANGUAGES): Remove.
11277 (get_ext_lang_defn, get_ext_lang_of_file)
11278 (eval_ext_lang_from_control_command): Update.
11279 (finish_ext_lang_initialization)
11280 (auto_load_ext_lang_scripts_for_objfile)
11281 (ext_lang_type_printers::ext_lang_type_printers)
11282 (apply_ext_lang_type_printers)
11283 (ext_lang_type_printers::~ext_lang_type_printers)
11284 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11285 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11286 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11287 (get_matching_xmethod_workers, ext_lang_colorize)
11288 (ext_lang_before_prompt): Update.
11289 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11290
11291 2020-05-08 Tom Tromey <tom@tromey.com>
11292
11293 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11294 overload.
11295 <swap_string, m_string>: Remove.
11296 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11297 Update.
11298 * stabsread.c (define_symbol, read_type): Update.
11299 * linespec.c (find_linespec_symbols): Update.
11300 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11301 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11302 * dbxread.c (read_dbx_symtab): Update.
11303 * cp-support.h (cp_canonicalize_string_full)
11304 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11305 Return unique_xmalloc_ptr.
11306 * cp-support.c (inspect_type): Update.
11307 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11308 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11309 Likewise.
11310 * c-typeprint.c (print_name_maybe_canonical): Update.
11311 * break-catch-throw.c (check_status_exception_catchpoint):
11312 Update.
11313
11314 2020-05-08 Tom de Vries <tdevries@suse.de>
11315
11316 * infrun.c (follow_fork): Copy current_line and current_symtab to
11317 child thread.
11318
11319 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11320
11321 * async-event.c (struct async_signal_handler, struct
11322 async_event_handler): Reformat, remove typedef.
11323
11324 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11325
11326 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11327 access thistype->main_type->dyn_prop_list directly.
11328
11329 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11330
11331 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11332 (remove_dyn_prop): Remove. Update all users to use
11333 type::remove_dyn_prop.
11334 * gdbtypes.c (remove_dyn_prop): Rename to...
11335 (type::remove_dyn_prop): ... this.
11336
11337 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11338
11339 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11340 (add_dyn_prop): Remove. Update all users to use
11341 type::add_dyn_prop.
11342 * gdbtypes.c (add_dyn_prop): Rename to...
11343 (type::add_dyn_prop): ... this.
11344
11345 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11348 (get_dyn_prop): Remove. Update all users to use
11349 type::dyn_prop.
11350 * gdbtypes.c (get_dyn_prop): Rename to...
11351 (type::dyn_prop): ... this.
11352
11353 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11356
11357 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11360 instruction, skip it if it's there.
11361
11362 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11363
11364 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11365
11366 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11369 * gdbtypes.c (recursive_dump_type): Remove use of
11370 TYPE_INCOMPLETE.
11371
11372 2020-05-03 Tom Tromey <tom@tromey.com>
11373
11374 * breakpoint.c (catch_command, tcatch_command): Remove.
11375 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11376 add_show_prefix_cmd.
11377 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11378 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11379 Remove.
11380 (add_internal_problem_command): Use add_basic_prefix_cmd,
11381 add_show_prefix_cmd.
11382 * mips-tdep.c (set_mipsfpu_command): Remove.
11383 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11384 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11385 (_initialize_index_cache): Use add_basic_prefix_cmd.
11386 * memattr.c (dummy_cmd): Remove.
11387 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11388 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11389 (_initialize_tui_win): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 * cli/cli-logging.c (set_logging_command): Remove.
11392 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 (show_logging_command): Remove.
11395 * target.c (target_command): Remove.
11396 (add_target): Use add_basic_prefix_cmd.
11397
11398 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11399
11400 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11401
11402 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11403
11404 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11405 info_command.
11406
11407 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11408
11409 * nbsd-nat.c (nbsd_enable_proc_events)
11410 (nbsd_nat_target::post_startup_inferior): Add.
11411 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11412 (nbsd_nat_target::update_thread_list): Rewrite.
11413 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11414 "PTRACE_LWP_CREATE".
11415 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11416
11417 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11418
11419 * stack.c (_initialize_stack): Remove duplicated creation
11420 of "frame" command and "f" alias.
11421
11422 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11423
11424 PR gdb/18706
11425 * gdbtypes.c (check_typedef): Calculate size of array of
11426 stubbed type.
11427
11428 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11429
11430 PR gdb/15559
11431 * i386-tdep.c (i386_push_dummy_call): Call
11432 i386_thiscall_push_dummy_call.
11433 (i386_thiscall_push_dummy_call): New function.
11434 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11435 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11436 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11437
11438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11439
11440 * gdbarch.sh (do_read): Add shellcheck disable directive for
11441 warning SC2162.
11442
11443 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11444
11445 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11446 "referenced but not assigned" warning.
11447
11448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * gdbarch.sh: Remove code that sets fallbackdefault.
11451
11452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11453
11454 * gdbarch.sh: Use shell operators && and || instead of
11455 -a and -o.
11456
11457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11458
11459 * gdbarch.sh: Use $(...) instead of `...`.
11460
11461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11462
11463 * gdbarch.sh: Use double quotes around variables.
11464
11465 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11466
11467 * gdbarch.sh: Use %s with printf, instead of variables in the
11468 format string.
11469
11470 2020-04-29 Tom Tromey <tromey@adacore.com>
11471
11472 PR ada/25875:
11473 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11474 type fields here.
11475 (read_enumeration_type): Call
11476 update_enumeration_type_from_children later. Update comments.
11477 (process_enumeration_scope): Don't create type fields.
11478
11479 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11480
11481 * nbsd-tdep.c: Include "xml-syscall.h".
11482 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11483
11484 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11485
11486 * nbsd-nat.c: Include "sys/wait.h".
11487 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11488 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11489 (nbsd_nat_target::remove_exec_catchpoint)
11490 (nbsd_nat_target::set_syscall_catchpoint): Add.
11491 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11492 (nbsd_nat_target::insert_exec_catchpoint)
11493 (nbsd_nat_target::remove_exec_catchpoint)
11494 (nbsd_nat_target::set_syscall_catchpoint): Add.
11495 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11496 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11497 `nbsd_get_syscall_number'.
11498
11499 2020-04-29 Tom Tromey <tom@tromey.com>
11500
11501 * stack.c (print_block_frame_labels): Remove.
11502
11503 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11504
11505 PR gdb/17320
11506 * ada-valprint.c (val_print_packed_array_elements): Move array
11507 end bracket to new line.
11508 (ada_val_print_string): Remove extra spaces before first array
11509 element.
11510 * c-valprint.c (c_value_print_array): Likewise.
11511 * m2-valprint.c (m2_print_array_contents): Likewise.
11512 (m2_value_print_inner): Likewise.
11513 * p-valprint.c (pascal_value_print_inner): Likewise.
11514 * valprint.c (generic_val_print_array): Likewise.
11515 (value_print_array_elements): Move first array element and array
11516 end bracket to new line.
11517
11518 2020-04-29 Tom de Vries <tdevries@suse.de>
11519
11520 PR symtab/25889
11521 * linespec.c (find_method): Fix ix calculation.
11522
11523 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11524
11525 * syscalls/update-netbsd.sh: New file.
11526 * syscalls/netbsd.xml: Regenerate.
11527 * data-directory/Makefile.in: Register `netbsd.xml' in
11528 `SYSCALLS_FILES'.
11529
11530 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11531
11532 * syscalls/update-freebsd.sh: Add double quotes.
11533
11534 2020-04-28 Tom Tromey <tom@tromey.com>
11535
11536 * NEWS: Update.
11537 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11538 (cmdpy_init): Allow class_tui.
11539
11540 2020-04-28 Mark Williams <mark@myosotissp.com>
11541
11542 PR gdb/24480
11543 * dwarf2read.c: Add missing assingments to list_in_scope when
11544 start_symtab was already called.
11545
11546 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11547
11548 PR gdb/25881
11549 * dwarf2/read.c (offset_map_type): Use
11550 gdb:hash_enum<sect_offset> as hash function.
11551
11552 2020-04-28 Tom de Vries <tdevries@suse.de>
11553
11554 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11555 with DW_AT_signature.
11556
11557 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11558
11559 * configure.ac: Remove check for fs_base/gs_base in
11560 user_regs_struct.
11561 * configure: Re-generate.
11562 * config.in: Re-generate.
11563 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11564 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11565 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11566
11567 2020-04-27 Luis Machado <luis.machado@linaro.org>
11568
11569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11570 problematic inline frame unwinding situation.
11571 * frame.c (frame_id_computed_p): New function.
11572 * frame.h (frame_id_computed_p): New prototype.
11573
11574 2020-04-26 Tom Tromey <tom@tromey.com>
11575
11576 * command.h (enum command_class) <class_pseudo>: Remove.
11577
11578 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11579
11580 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11581 and whitespace.
11582
11583 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11584
11585 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11586 `PT_GET_PROCESS_STATE' block.
11587
11588 2020-04-24 Tom Tromey <tom@tromey.com>
11589
11590 * symtab.h (symbol_get_demangled_name): Don't declare.
11591 * symtab.c (symbol_get_demangled_name): Remove.
11592 (general_symbol_info::natural_name)
11593 (general_symbol_info::demangled_name): Update.
11594
11595 2020-04-24 Tom Tromey <tom@tromey.com>
11596
11597 PR rust/25025:
11598 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11599
11600 2020-04-24 Tom Tromey <tom@tromey.com>
11601
11602 PR symtab/12707:
11603 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11604 exists.
11605 (new_symbol): Likewise.
11606 * compile/compile-object-load.c (get_out_value_type): Use
11607 symbol_matches_search_name.
11608
11609 2020-04-24 Tom Tromey <tom@tromey.com>
11610
11611 * dwarf2/read.c (add_partial_symbol): Do not call
11612 compute_and_set_names.
11613
11614 2020-04-24 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11617 overload.
11618
11619 2020-04-24 Tom Tromey <tom@tromey.com>
11620
11621 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11622 (add_psymbol_to_list): New overload. Make old overload call new
11623 one.
11624 * psympriv.h (add_psymbol_to_list): New overload.
11625
11626 2020-04-24 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/read.c (partial_die_info::read) <case
11629 DW_AT_linkage_name>: Use value_as_string.
11630 (dwarf2_string_attr): Use value_as_string.
11631 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11632 method.
11633 * dwarf2/attribute.c (attribute::value_as_string): New method.
11634
11635 2020-04-24 Tom Tromey <tom@tromey.com>
11636
11637 * symtab.c (general_symbol_info::natural_name)
11638 (general_symbol_info::demangled_name): Check for language_rust.
11639
11640 2020-04-24 Tom Tromey <tom@tromey.com>
11641
11642 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11643 (dwarf2_physname): ... from here.
11644 (partial_die_info::read): Add Rust "{" hack.
11645
11646 2020-04-24 Tom Tromey <tom@tromey.com>
11647
11648 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11649 method.
11650 (symbol_set_demangled_name): Don't declare.
11651 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11652 symbol_set_demangled_name.
11653 (general_symbol_info::set_language)
11654 (general_symbol_info::compute_and_set_names): Update.
11655 * minsyms.c (minimal_symbol_reader::install): Update.
11656 * dwarf2/read.c (new_symbol): Update.
11657
11658 2020-04-24 Tom Tromey <tromey@adacore.com>
11659
11660 PR python/23662:
11661 * python/py-type.c (convert_field): Handle
11662 FIELD_LOC_KIND_DWARF_BLOCK.
11663 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11664 (typy_get_dynamic): Nw function.
11665 (type_object_getset): Add "dynamic".
11666 * NEWS: Add entry.
11667
11668 2020-04-24 Tom Tromey <tromey@adacore.com>
11669
11670 * ada-typeprint.c (print_choices, print_variant_part)
11671 (print_record_field_types_dynamic): New functions.
11672 (print_record_field_types): Use print_record_field_types_dynamic.
11673
11674 2020-04-24 Tom Tromey <tromey@adacore.com>
11675
11676 * dwarf2/read.c (handle_data_member_location): New overload.
11677 (dwarf2_add_field): Use it.
11678 (decode_locdesc): Add "computed" parameter. Update comment.
11679 * gdbtypes.c (is_dynamic_type_internal): Also look for
11680 FIELD_LOC_KIND_DWARF_BLOCK.
11681 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11682 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11683 virtual base classes.
11684 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11685 FIELD_LOC_KIND_DWARF_BLOCK.
11686
11687 2020-04-24 Tom Tromey <tromey@adacore.com>
11688
11689 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11690 * gdbtypes.c (is_dynamic_type_internal): Check
11691 TYPE_HAS_DYNAMIC_LENGTH.
11692 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11693 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11694 New macros.
11695 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11696 constant.
11697
11698 2020-04-24 Tom Tromey <tromey@adacore.com>
11699
11700 * dwarf2/read.c (struct variant_field): Rewrite.
11701 (struct variant_part_builder): New.
11702 (struct nextfield): Remove "variant" field. Add "offset".
11703 (struct field_info): Add "current_variant_part" and
11704 "variant_parts".
11705 (alloc_discriminant_info): Remove.
11706 (alloc_rust_variant): New function.
11707 (quirk_rust_enum): Update.
11708 (dwarf2_add_field): Set "offset" member. Don't handle
11709 DW_TAG_variant_part.
11710 (offset_map_type): New typedef.
11711 (convert_variant_range, create_one_variant)
11712 (create_one_variant_part, create_variant_parts)
11713 (add_variant_property): New functions.
11714 (dwarf2_attach_fields_to_type): Call add_variant_property.
11715 (read_structure_type): Don't handle DW_TAG_variant_part.
11716 (handle_variant_part, handle_variant): New functions.
11717 (handle_struct_member_die): Use them.
11718 (process_structure_scope): Don't handle variant parts.
11719 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11720 (struct discriminant_info): Remove.
11721 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11722 (struct main_type) <flag_discriminated_union>: Remove.
11723 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11724 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11725 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11726 Update.
11727 * valops.c (value_union_variant): Remove.
11728 * value.h (value_union_variant): Don't declare.
11729
11730 2020-04-24 Tom Tromey <tromey@adacore.com>
11731
11732 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11733 (ada_value_primitive_packed_val): Update.
11734 * ada-valprint.c (ada_value_print_1): Update.
11735 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11736 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11737 just an address. Use evaluate_for_locexpr_baton.
11738 (dwarf2_evaluate_property): Update.
11739 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11740 array_view.
11741 * findvar.c (default_read_var_value): Update.
11742 * gdbtypes.c (compute_variant_fields_inner)
11743 (resolve_dynamic_type_internal): Update.
11744 (resolve_dynamic_type): Change type of valaddr parameter.
11745 * gdbtypes.h (resolve_dynamic_type): Update.
11746 * valarith.c (value_subscripted_rvalue): Update.
11747 * value.c (value_from_contents_and_address): Update.
11748
11749 2020-04-24 Tom Tromey <tromey@adacore.com>
11750
11751 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11752 "push_initial_value" parameter.
11753 (dwarf2_evaluate_property): Likewise.
11754 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11755
11756 2020-04-24 Tom Tromey <tromey@adacore.com>
11757
11758 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11759 (variant::matches, compute_variant_fields_recurse)
11760 (compute_variant_fields_inner, compute_variant_fields): New
11761 functions.
11762 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11763 Use resolved_type after type is made.
11764 (operator==): Add new cases.
11765 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11766 (struct discriminant_range, struct variant, struct variant_part):
11767 New.
11768 (union dynamic_prop_data) <variant_parts, original_type>: New
11769 members.
11770 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11771 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11772 constants.
11773 * value.c (unpack_bits_as_long): Now public.
11774 * value.h (unpack_bits_as_long): Declare.
11775
11776 2020-04-24 Tom Tromey <tromey@adacore.com>
11777
11778 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11779 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11780
11781 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11782
11783 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11784
11785 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11786
11787 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11788 (remove_fork_catchpoint, post_startup_inferior)
11789 (post_attach): Move...
11790 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11791 (remove_fork_catchpoint, post_startup_inferior)
11792 (post_attach): ...here.
11793 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11794 (remove_fork_catchpoint, post_startup_inferior)
11795 (post_attach): Move...
11796 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11797 (remove_fork_catchpoint, post_startup_inferior)
11798 (post_attach): ...here.
11799
11800 2020-04-24 Tom Tromey <tromey@adacore.com>
11801
11802 * nat/windows-nat.h (struct windows_thread_info)
11803 <pc_adjusted>: New member.
11804 * windows-nat.c (windows_fetch_one_register): Check
11805 pc_adjusted.
11806 (windows_nat_target::get_windows_debug_event)
11807 (windows_nat_target::wait): Set pc_adjusted.
11808
11809 2020-04-24 Tom de Vries <tdevries@suse.de>
11810
11811 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11812 Run gdb-add-index inside temp dir.
11813
11814 2020-04-23 Tom Tromey <tromey@adacore.com>
11815
11816 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11817 in loop.
11818
11819 2020-04-23 Luis Machado <luis.machado@linaro.org>
11820
11821 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11822 get_frame_register instead of gdbarch_unwind_pc.
11823
11824 2020-04-23 Tom de Vries <tdevries@suse.de>
11825
11826 * symtab.c (lookup_global_symbol): Prefer def over decl.
11827
11828 2020-04-23 Tom de Vries <tdevries@suse.de>
11829
11830 PR symtab/25807
11831 * block.c (best_symbol, better_symbol): Promote to external.
11832 * block.h (best_symbol, better_symbol): Declare.
11833 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11834 decl.
11835
11836 2020-04-23 Tom Tromey <tromey@adacore.com>
11837
11838 PR ada/25837:
11839 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11840 "const char *", not a "const std::string &".
11841 <name_and_matcher::operator==>: Update.
11842 * unittests/lookup_name_info-selftests.c: Change type of
11843 "result".
11844
11845 2020-04-23 Tom Tromey <tom@tromey.com>
11846
11847 * inferior.h (iterate_over_inferiors): Don't declare.
11848 * inferior.c (iterate_over_inferiors): Remove.
11849 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11850 Remove.
11851 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11852 use iterate_over_inferiors.
11853 (darwin_resume_inferior_it)
11854 (struct resume_inferior_threads_param)
11855 (darwin_resume_inferior_threads_it): Remove.
11856 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11857
11858 2020-04-23 Tom de Vries <tdevries@suse.de>
11859
11860 * blockframe.c (find_pc_partial_function): Use
11861 find_pc_sect_compunit_symtab rather than
11862 objfile->sf->qf->find_pc_sect_compunit_symtab.
11863
11864 2020-04-22 Tom de Vries <tdevries@suse.de>
11865
11866 PR symtab/25764
11867 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11868 in psymtabs.
11869
11870 2020-04-22 Tom de Vries <tdevries@suse.de>
11871
11872 PR symtab/25801
11873 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11874 symtabs.
11875
11876 2020-04-22 Tom de Vries <tdevries@suse.de>
11877
11878 PR symtab/25700
11879 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11880 CU if already created.
11881
11882 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11883
11884 * infrun.c (displaced_step_fixup): Switch to the event_thread
11885 before calling displaced_step_restore, not after.
11886
11887 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11888
11889 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11890 its inferior is not recorded by us.
11891 (record_btrace_target_open): Replace call to
11892 all_non_exited_threads () with call to current_inferior
11893 ()->non_exited_threads ().
11894 (record_btrace_target::stop_recording): Likewise.
11895 (record_btrace_target::close): Likewise.
11896 (record_btrace_target::wait): Likewise.
11897 (record_btrace_target::record_stop_replaying): Likewise.
11898
11899 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11900
11901 * btrace.c (btrace_enable): Throw an error on double enables and
11902 when enabling recording fails.
11903 (btrace_disable): Throw an error if the thread is not recorded.
11904
11905 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11906
11907 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11908 request if we do not have a thread_info.
11909
11910 2020-04-21 Tom de Vries <tdevries@suse.de>
11911
11912 PR gdb/25471
11913 * thread.c
11914 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11915 exception in get_frame_id.
11916
11917 2020-04-20 Tom Tromey <tromey@adacore.com>
11918
11919 * python/python.c (struct gdbpy_event): Mark move constructor as
11920 noexcept.
11921 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11922 constructor as noexcept.
11923 * completer.h (struct completion_result): Mark move constructor as
11924 noexcept.
11925 * completer.c (completion_result::completion_result): Use
11926 initialization style. Don't call reset_match_list.
11927
11928 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11929
11930 * MAINTAINERS (Write After Approval): Add myself.
11931
11932 2020-04-18 Tom Tromey <tom@tromey.com>
11933
11934 * windows-tdep.c (init_w32_command_list)
11935 (w32_prefix_command_valid): Restore.
11936 (_initialize_windows_tdep): Call init_w32_command_list.
11937
11938 2020-04-18 Tom Tromey <tom@tromey.com>
11939
11940 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11941 * value.c (value_fn_field): Update.
11942 * valops.c (find_function_in_inferior)
11943 (value_allocate_space_in_inferior): Update.
11944 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11945 Update.
11946 * tui/tui-source.c (tui_source_window::set_contents): Update.
11947 * symtab.c (lookup_global_or_static_symbol)
11948 (find_function_start_sal_1, skip_prologue_sal)
11949 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11950 * symmisc.c (dump_msymbols, dump_symtab_1)
11951 (maintenance_print_one_line_table): Update.
11952 * symfile.c (init_entry_point_info, section_is_mapped)
11953 (list_overlays_command, simple_read_overlay_table)
11954 (simple_overlay_update_1): Update.
11955 * stap-probe.c (handle_stap_probe): Update.
11956 * stabsread.c (dbx_init_float_type, define_symbol)
11957 (read_one_struct_field, read_enum_type, read_range_type): Update.
11958 * source.c (info_line_command): Update.
11959 * python/python.c (gdbpy_source_objfile_script)
11960 (gdbpy_execute_objfile_script): Update.
11961 * python/py-type.c (save_objfile_types): Update.
11962 * python/py-objfile.c (py_free_objfile): Update.
11963 * python/py-inferior.c (python_new_objfile): Update.
11964 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11965 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11966 (maintenance_check_psymtabs): Update.
11967 * printcmd.c (info_address_command): Update.
11968 * objfiles.h (struct objfile) <arch>: New method, from
11969 get_objfile_arch.
11970 (get_objfile_arch): Don't declare.
11971 * objfiles.c (get_objfile_arch): Remove.
11972 (filter_overlapping_sections): Update.
11973 * minsyms.c (msymbol_is_function): Update.
11974 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11975 (output_nondebug_symbol): Update.
11976 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11977 (mdebug_expand_psymtab): Update.
11978 * machoread.c (macho_add_oso_symfile): Update.
11979 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11980 Update.
11981 * linux-fork.c (checkpoint_command): Update.
11982 * linespec.c (convert_linespec_to_sals): Update.
11983 * jit.c (finalize_symtab): Update.
11984 * infrun.c (insert_exception_resume_from_probe): Update.
11985 * ia64-tdep.c (ia64_find_unwind_table): Update.
11986 * hppa-tdep.c (internalize_unwinds): Update.
11987 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11988 Update.
11989 * gcore.c (call_target_sbrk): Update.
11990 * elfread.c (record_minimal_symbol, elf_symtab_read)
11991 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11992 (elf_gnu_ifunc_resolve_by_got): Update.
11993 * dwarf2/read.c (create_addrmap_from_index)
11994 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11995 (read_debug_names_from_section)
11996 (process_psymtab_comp_unit_reader, add_partial_symbol)
11997 (add_partial_subprogram, process_full_comp_unit)
11998 (read_file_scope, read_func_scope, read_lexical_block_scope)
11999 (read_call_site_scope, dwarf2_ranges_read)
12000 (dwarf2_record_block_ranges, dwarf2_add_field)
12001 (mark_common_block_symbol_computed, read_tag_pointer_type)
12002 (read_tag_string_type, dwarf2_init_float_type)
12003 (dwarf2_init_complex_target_type, read_base_type)
12004 (partial_die_info::read, partial_die_info::read)
12005 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12006 (dwarf2_fetch_die_loc_sect_off): Update.
12007 * dwarf2/loc.c (dwarf2_find_location_expression)
12008 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12009 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12010 (dwarf2_loc_desc_get_symbol_read_needs)
12011 (locexpr_describe_location_piece, locexpr_describe_location_1)
12012 (loclist_describe_location): Update.
12013 * dwarf2/index-write.c (write_debug_names): Update.
12014 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12015 * dtrace-probe.c (dtrace_process_dof): Update.
12016 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12017 (process_one_symbol): Update.
12018 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12019 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12020 (coff_read_enum_type): Update.
12021 * cli/cli-cmds.c (edit_command, list_command): Update.
12022 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12023 * breakpoint.c (create_overlay_event_breakpoint)
12024 (create_longjmp_master_breakpoint)
12025 (create_std_terminate_master_breakpoint)
12026 (create_exception_master_breakpoint, get_sal_arch): Update.
12027 * block.c (block_gdbarch): Update.
12028 * annotate.c (annotate_source_line): Update.
12029
12030 2020-04-17 Tom Tromey <tromey@adacore.com>
12031
12032 * auto-load.c (show_auto_load_cmd): Remove.
12033 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12034 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12035 (maintenance_print_arc_command): Remove.
12036 * tui/tui-win.c (tui_command): Remove.
12037 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12038 * tui/tui-layout.c (tui_layout_command): Remove.
12039 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12040 * python/python.c (user_set_python, user_show_python): Remove.
12041 (_initialize_python): Use add_basic_prefix_cmd,
12042 add_show_prefix_cmd.
12043 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12044 (install_gdb_commands): Use add_basic_prefix_cmd,
12045 add_show_prefix_cmd.
12046 (info_guile_command): Remove.
12047 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12048 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12051 Remove do_set and do_show parameters.
12052 * cli/cli-style.c (set_style, show_style): Remove.
12053 (_initialize_cli_style): Use add_basic_prefix_cmd,
12054 add_show_prefix_cmd.
12055 (cli_style_option::add_setshow_commands): Remove do_set and
12056 do_show parameters.
12057 (cli_style_option::add_setshow_commands): Use
12058 add_basic_prefix_cmd, add_show_prefix_cmd.
12059 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12060 (set_style_name): Remove.
12061 * cli/cli-dump.c (dump_command, append_command): Remove.
12062 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12063 (tekhex_dump_command, binary_dump_command)
12064 (binary_append_command): Remove.
12065 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12066 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12067 (init_w32_command_list): Remove; move into ...
12068 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12069 * valprint.c (set_print, show_print, set_print_raw)
12070 (show_print_raw): Remove.
12071 (_initialize_valprint): Use add_basic_prefix_cmd,
12072 add_show_prefix_cmd.
12073 * typeprint.c (set_print_type, show_print_type): Remove.
12074 (_initialize_typeprint): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * record.c (set_record_command, show_record_command): Remove.
12077 (_initialize_record): Use add_basic_prefix_cmd,
12078 add_show_prefix_cmd.
12079 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12080 add_show_prefix_cmd.
12081 (info_command, show_command, set_debug, show_debug): Remove.
12082 * top.h (set_history, show_history): Don't declare.
12083 * top.c (set_history, show_history): Remove.
12084 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12085 (unset_tdesc_cmd): Remove.
12086 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12087 add_show_prefix_cmd.
12088 * symtab.c (info_module_command): Remove.
12089 (_initialize_symtab): Use add_basic_prefix_cmd.
12090 * symfile.c (overlay_command): Remove.
12091 (_initialize_symfile): Use add_basic_prefix_cmd.
12092 * sparc64-tdep.c (info_adi_command): Remove.
12093 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12094 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12095 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12098 (_initialize_serial): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12101 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12102 add_show_prefix_cmd.
12103 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12104 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12105 add_show_prefix_cmd.
12106 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12107 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12108 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12109 add_show_prefix_cmd.
12110 * remote.c (remote_command, set_remote_cmd): Remove.
12111 (_initialize_remote): Use add_basic_prefix_cmd.
12112 * record-full.c (set_record_full_command)
12113 (show_record_full_command): Remove.
12114 (_initialize_record_full): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * record-btrace.c (cmd_set_record_btrace)
12117 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12118 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12119 (cmd_show_record_btrace_pt): Remove.
12120 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12121 add_show_prefix_cmd.
12122 * ravenscar-thread.c (set_ravenscar_command)
12123 (show_ravenscar_command): Remove.
12124 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12125 add_show_prefix_cmd.
12126 * mips-tdep.c (show_mips_command, set_mips_command)
12127 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12128 add_show_prefix_cmd.
12129 * maint.c (maintenance_command, maintenance_info_command)
12130 (maintenance_check_command, maintenance_print_command)
12131 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12132 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 (show_per_command_cmd): Remove.
12135 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12136 Remove.
12137 (maintenance_show_test_settings_cmd): Remove.
12138 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12139 add_show_prefix_cmd.
12140 * maint-test-options.c (maintenance_test_options_command):
12141 Remove.
12142 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12143 * macrocmd.c (macro_command): Remove
12144 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12145 * language.c (set_check, show_check): Remove.
12146 (_initialize_language): Use add_basic_prefix_cmd,
12147 add_show_prefix_cmd.
12148 * infcmd.c (unset_command): Remove.
12149 (_initialize_infcmd): Use add_basic_prefix_cmd.
12150 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12151 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12152 add_show_prefix_cmd.
12153 * go32-nat.c (go32_info_dos_command): Remove.
12154 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12155 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12156 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12157 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12158 (_initialize_frame): Use add_basic_prefix_cmd,
12159 add_show_prefix_cmd.
12160 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12161 (_initialize_dcache): Use add_basic_prefix_cmd,
12162 add_show_prefix_cmd.
12163 * cp-support.c (maint_cplus_command): Remove.
12164 (_initialize_cp_support): Use add_basic_prefix_cmd.
12165 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12166 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12167 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12168 add_basic_prefix_cmd, add_show_prefix_cmd.
12169 * breakpoint.c (save_command): Remove.
12170 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12171 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12172 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12173 add_show_prefix_cmd.
12174 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12175 (set_ada_command, show_ada_command): Remove.
12176 (_initialize_ada_language): Use add_basic_prefix_cmd,
12177 add_show_prefix_cmd.
12178 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12179
12180 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12181
12182 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12183 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12184
12185 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12186
12187 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12188 warning messages.
12189
12190 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12191
12192 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12193 import table is not at beginning of .idata section.
12194
12195 2020-04-16 Pedro Alves <palves@redhat.com>
12196
12197 * inferior.c (delete_inferior): Use delete operator directly
12198 instead of delete_program_space.
12199 * progspace.c (add_program_space): New, factored out from
12200 program_space::program_space.
12201 (remove_program_space): New, factored out from
12202 delete_program_space.
12203 (program_space::program_space): Remove intro comment. Rewrite.
12204 (program_space::~program_space): Remove intro comment. Call
12205 remove_program_space.
12206 (delete_program_space): Delete.
12207 * progspace.h (program_space::program_space): Make explicit. Move
12208 intro comment here, adjusted.
12209 (program_space::~program_space): Move intro comment here,
12210 adjusted.
12211 (delete_program_space): Remove.
12212
12213 2020-04-16 Tom Tromey <tromey@adacore.com>
12214
12215 * windows-nat.c (windows_nat::handle_access_violation): New
12216 function.
12217 * nat/windows-nat.h (handle_access_violation): Declare.
12218 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12219 windows-nat.c. Call handle_access_violation.
12220
12221 2020-04-16 Tom de Vries <tdevries@suse.de>
12222
12223 PR symtab/25791
12224 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12225 CUs without psymtab.
12226
12227 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12228
12229 * python/python.c (do_start_initialization): Don't call
12230 PyEval_InitThreads for Python 3.9 and beyond.
12231
12232 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12233
12234 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12235 thread functions.
12236 (obsd_nat_target::wait): Likewise.
12237
12238 2020-04-15 Tom Tromey <tromey@adacore.com>
12239
12240 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12241 (DEBUG_EXCEPT): Use debug_printf.
12242
12243 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12244
12245 * completer.c (class completion_tracker::completion_hash_entry)
12246 <hash_name>: New member function.
12247 (completion_tracker::discard_completions): New callback to hash a
12248 completion_hash_entry, pass this to htab_create_alloc.
12249
12250 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12251
12252 * windows-nat.c (windows_make_so): Warn rather than stopping with
12253 an error if realpath() fails.
12254
12255 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12256
12257 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12258 (nbsd_nat_target::info_proc): Add do_status.
12259
12260 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12261 Tom de Vries <tdevries@suse.de>
12262
12263 PR symtab/25718
12264 * psympriv.h (struct partial_symtab::read_symtab)
12265 (struct partial_symtab::expand_psymtab)
12266 (struct partial_symtab::read_dependencies): Update comments.
12267 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12268 read_symtab for includer.
12269 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12270 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12271 (struct dwarf2_include_psymtab::m_readin): Remove.
12272 (struct dwarf2_include_psymtab::includer): New member function.
12273 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12274
12275 2020-04-14 Tom de Vries <tdevries@suse.de>
12276
12277 PR symtab/25720
12278 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12279 with NULL symbol_matcher and lookup_name.
12280 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12281 and lookup_name.
12282 * dwarf2/read.c (dw2_expand_symtabs_matching)
12283 (dw2_debug_names_expand_symtabs_matching): Same.
12284 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12285 Make lookup_name a pointer. Update comment.
12286 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12287 lookup_name being a pointer.
12288 * symfile.c (expand_symtabs_matching): Same.
12289 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12290 * linespec.c (iterate_over_all_matching_symtabs): Same.
12291
12292 2020-04-13 Tom Tromey <tom@tromey.com>
12293
12294 * run-on-main-thread.c: Update include.
12295 * unittests/main-thread-selftests.c: Update include.
12296 * tui/tui-win.c: Update include.
12297 * tui/tui-io.c: Update include.
12298 * tui/tui-interp.c: Update include.
12299 * tui/tui-hooks.c: Update include.
12300 * top.h: Update include.
12301 * top.c: Update include.
12302 * ser-base.c: Update include.
12303 * remote.c: Update include.
12304 * remote-notif.c: Update include.
12305 * remote-fileio.c: Update include.
12306 * record-full.c: Update include.
12307 * record-btrace.c: Update include.
12308 * python/python.c: Update include.
12309 * posix-hdep.c: Update include.
12310 * mingw-hdep.c: Update include.
12311 * mi/mi-main.c: Update include.
12312 * mi/mi-interp.c: Update include.
12313 * main.c: Update include.
12314 * linux-nat.c: Update include.
12315 * interps.c: Update include.
12316 * infrun.c: Update include.
12317 * inf-loop.c: Update include.
12318 * event-top.c: Update include.
12319 * event-loop.c: Move to ../gdbsupport/.
12320 * event-loop.h: Move to ../gdbsupport/.
12321 * async-event.h: Update include.
12322 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12323
12324 2020-04-13 Tom Tromey <tom@tromey.com>
12325
12326 * tui/tui-win.c: Include async-event.h.
12327 * remote.c: Include async-event.h.
12328 * remote-notif.c: Include async-event.h.
12329 * record-full.c: Include async-event.h.
12330 * record-btrace.c: Include async-event.h.
12331 * infrun.c: Include async-event.h.
12332 * event-top.c: Include async-event.h.
12333 * event-loop.h: Move some declarations to async-event.h.
12334 * event-loop.c: Don't include ser-event.h or top.h. Move some
12335 code to async-event.c.
12336 * async-event.h: New file.
12337 * async-event.c: New file.
12338 * Makefile.in (COMMON_SFILES): Add async-event.c.
12339 (HFILES_NO_SRCDIR): Add async-event.h.
12340
12341 2020-04-13 Tom Tromey <tom@tromey.com>
12342
12343 * utils.c (flush_streams): New function.
12344 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12345
12346 2020-04-13 Tom Tromey <tom@tromey.com>
12347
12348 * event-loop.c (handle_file_event): Use warning, not
12349 printf_unfiltered.
12350
12351 2020-04-13 Tom Tromey <tom@tromey.com>
12352
12353 * event-loop.c: Include <chrono>.
12354
12355 2020-04-13 Tom Tromey <tom@tromey.com>
12356
12357 * gdb_select.h: Move to ../gdbsupport/.
12358 * event-loop.c: Update include path.
12359 * top.c: Update include path.
12360 * ser-base.c: Update include path.
12361 * ui-file.c: Update include path.
12362 * ser-tcp.c: Update include path.
12363 * guile/scm-ports.c: Update include path.
12364 * posix-hdep.c: Update include path.
12365 * ser-unix.c: Update include path.
12366 * gdb_usleep.c: Update include path.
12367 * mingw-hdep.c: Update include path.
12368 * inflow.c: Update include path.
12369 * infrun.c: Update include path.
12370 * event-top.c: Update include path.
12371
12372 2020-04-13 Tom Tromey <tom@tromey.com>
12373
12374 * configure: Rebuild.
12375 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12376
12377 2020-04-13 Tom Tromey <tom@tromey.com>
12378
12379 * event-loop.h (start_event_loop): Don't declare.
12380 * event-loop.c (start_event_loop): Move...
12381 * main.c (start_event_loop): ...here. Now static.
12382
12383 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12384
12385 * MAINTAINERS: Update my email address.
12386
12387 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12388
12389 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12390 IP_ALL.
12391
12392 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12393
12394 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12395 (nbsd_nat_target::info_proc): Add do_cmdline.
12396
12397 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12398
12399 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12400 (nbsd_nat_target::info_proc): Add do_cwd.
12401
12402 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12403
12404 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12405
12406 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12407
12408 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12409 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12410 (nbsd_nat_target::info_proc): New functions.
12411 * nbsd-nat.c (kinfo_get_vmmap): New function.
12412 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12413 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12414 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12415 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12416 functions.
12417 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12418 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12419 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12420 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12421 (KINFO_VME_FLAG_GROWS_DOWN): New.
12422
12423 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12424
12425 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12426 bit shift.
12427
12428 2020-04-10 Tom Tromey <tromey@adacore.com>
12429
12430 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12431
12432 2020-04-10 Tom Tromey <tromey@adacore.com>
12433
12434 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12435 separate debug files.
12436
12437 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12438
12439 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12440 Move to...
12441 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12442 ... here.
12443 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12444 Check for STATUS_WX86_BREAKPOINT.
12445 (windows_nat_target::wait): Same.
12446
12447 2020-04-10 Tom de Vries <tdevries@suse.de>
12448
12449 PR cli/25808
12450 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12451
12452 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12453
12454 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12455 (Write After Approval): Remove Tom de Vries.
12456
12457 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12458
12459 revert partially:
12460 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12461
12462 * buildsym.c (record_line): Fix undefined behavior and preserve
12463 lines at eof.
12464
12465 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12466
12467 * auxv.h (svr4_auxv_parse): New.
12468 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12469 and generic_auxv_parse.
12470 (svr4_auxv_parse): Add.
12471 * obsd-tdep.c: Include "auxv.h".
12472 (obsd_auxv_parse): Remove.
12473 (obsd_init_abi): Remove comment.
12474 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12475 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12476 * nbsd-tdep.c: Include "auxv.h".
12477 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12478
12479 2020-04-08 Tom Tromey <tromey@adacore.com>
12480
12481 * nat/windows-nat.h (last_wait_event): Don't declare.
12482 (wait_for_debug_event): Update comment.
12483 * nat/windows-nat.c (last_wait_event): Now static.
12484
12485 2020-04-08 Tom Tromey <tromey@adacore.com>
12486
12487 * windows-nat.c (wait_for_debug_event): Move to
12488 nat/windows-nat.c.
12489 * nat/windows-nat.h (wait_for_debug_event): Declare.
12490 * nat/windows-nat.c (wait_for_debug_event): Move from
12491 windows-nat.c. No longer static.
12492
12493 2020-04-08 Tom Tromey <tromey@adacore.com>
12494
12495 * windows-nat.c (get_windows_debug_event): Use
12496 fetch_pending_stop.
12497 * nat/windows-nat.h (fetch_pending_stop): Declare.
12498 * nat/windows-nat.c (fetch_pending_stop): New function.
12499
12500 2020-04-08 Tom Tromey <tromey@adacore.com>
12501
12502 * windows-nat.c (windows_continue): Use matching_pending_stop and
12503 continue_last_debug_event.
12504 * nat/windows-nat.h (matching_pending_stop)
12505 (continue_last_debug_event): Declare.
12506 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12507 (matching_pending_stop, continue_last_debug_event): New
12508 functions.
12509
12510 2020-04-08 Tom Tromey <tromey@adacore.com>
12511
12512 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12513 (handle_exception_result): Move to nat/windows-nat.h.
12514 (DEBUG_EXCEPTION_SIMPLE): Remove.
12515 (windows_nat::handle_ms_vc_exception): New function.
12516 (handle_exception): Move to nat/windows-nat.c.
12517 (get_windows_debug_event): Update.
12518 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12519 nat/windows-nat.c.
12520 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12521 (handle_exception_result): Move from windows-nat.c.
12522 (handle_exception): Declare.
12523 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12524 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12525 windows-nat.c.
12526
12527 2020-04-08 Tom Tromey <tromey@adacore.com>
12528
12529 * windows-nat.c (exception_count, event_count): Remove.
12530 (handle_exception, get_windows_debug_event)
12531 (do_initial_windows_stuff): Update.
12532
12533 2020-04-08 Tom Tromey <tromey@adacore.com>
12534
12535 * windows-nat.c (windows_nat::handle_load_dll)
12536 (windows_nat::handle_unload_dll): Rename. No longer static.
12537 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12538 Declare.
12539
12540 2020-04-08 Tom Tromey <tromey@adacore.com>
12541
12542 * complaints.h (stop_whining): Declare at top-level.
12543 (complaint): Don't declare stop_whining.
12544
12545 2020-04-08 Tom Tromey <tromey@adacore.com>
12546
12547 * windows-nat.c (windows_nat::handle_output_debug_string):
12548 Rename. No longer static.
12549 * nat/windows-nat.h (handle_output_debug_string): Declare.
12550
12551 2020-04-08 Tom Tromey <tromey@adacore.com>
12552
12553 * windows-nat.c (current_process_handle, current_process_id)
12554 (main_thread_id, last_sig, current_event, last_wait_event)
12555 (current_windows_thread, desired_stop_thread_id, pending_stops)
12556 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12557 (display_selectors, fake_create_process)
12558 (get_windows_debug_event): Update.
12559 * nat/windows-nat.h (current_process_handle, current_process_id)
12560 (main_thread_id, last_sig, current_event, last_wait_event)
12561 (current_windows_thread, desired_stop_thread_id, pending_stops)
12562 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12563 * nat/windows-nat.c (current_process_handle, current_process_id)
12564 (main_thread_id, last_sig, current_event, last_wait_event)
12565 (current_windows_thread, desired_stop_thread_id, pending_stops)
12566 (siginfo_er): New globals. Move from windows-nat.c.
12567
12568 2020-04-08 Tom Tromey <tromey@adacore.com>
12569
12570 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12571 (handle_load_dll): Update.
12572 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12573
12574 2020-04-08 Tom Tromey <tromey@adacore.com>
12575
12576 * windows-nat.c (enum thread_disposition_type): Move to
12577 nat/windows-nat.h.
12578 (windows_nat::thread_rec): Rename from thread_rec. No longer
12579 static.
12580 (windows_add_thread, windows_nat_target::fetch_registers)
12581 (windows_nat_target::store_registers, handle_exception)
12582 (windows_nat_target::resume, get_windows_debug_event)
12583 (windows_nat_target::get_tib_address)
12584 (windows_nat_target::thread_name)
12585 (windows_nat_target::thread_alive): Update.
12586 * nat/windows-nat.h (enum thread_disposition_type): Move from
12587 windows-nat.c.
12588 (thread_rec): Declare.
12589
12590 2020-04-08 Tom Tromey <tromey@adacore.com>
12591
12592 * windows-nat.c: Add "using namespace".
12593 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12594 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12595
12596 2020-04-08 Tom Tromey <tromey@adacore.com>
12597
12598 * nat/windows-nat.h (struct windows_thread_info): Declare
12599 destructor.
12600 * nat/windows-nat.c (~windows_thread_info): New.
12601
12602 2020-04-08 Tom Tromey <tromey@adacore.com>
12603
12604 PR gdb/22992
12605 * windows-nat.c (current_event): Update comment.
12606 (last_wait_event, desired_stop_thread_id): New globals.
12607 (struct pending_stop): New.
12608 (pending_stops): New global.
12609 (windows_nat_target) <stopped_by_sw_breakpoint>
12610 <supports_stopped_by_sw_breakpoint>: New methods.
12611 (windows_fetch_one_register): Add assertions. Adjust PC.
12612 (windows_continue): Handle pending stops. Suspend other threads
12613 when stepping. Use last_wait_event
12614 (wait_for_debug_event): New function.
12615 (get_windows_debug_event): Use wait_for_debug_event. Handle
12616 pending stops. Queue spurious stops.
12617 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12618 (windows_nat_target::kill): Use wait_for_debug_event.
12619 * nat/windows-nat.h (struct windows_thread_info)
12620 <stopped_at_software_breakpoint>: New field.
12621 * nat/windows-nat.c (windows_thread_info::resume): Clear
12622 stopped_at_software_breakpoint.
12623
12624 2020-04-08 Tom Tromey <tromey@adacore.com>
12625
12626 * windows-nat.c (enum thread_disposition_type): New.
12627 (thread_rec): Replace "get_context" parameter with "disposition";
12628 change type.
12629 (windows_add_thread, windows_nat_target::fetch_registers)
12630 (windows_nat_target::store_registers, handle_exception)
12631 (windows_nat_target::resume, get_windows_debug_event)
12632 (windows_nat_target::get_tib_address)
12633 (windows_nat_target::thread_name)
12634 (windows_nat_target::thread_alive): Update.
12635
12636 2020-04-08 Tom Tromey <tromey@adacore.com>
12637
12638 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12639 (windows_continue): Use windows_continue::resume.
12640 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12641 resume>: Declare new methods.
12642 * nat/windows-nat.c: New file.
12643 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12644
12645 2020-04-08 Tom Tromey <tromey@adacore.com>
12646
12647 * windows-nat.c (windows_add_thread, windows_delete_thread)
12648 (windows_nat_target::fetch_registers)
12649 (windows_nat_target::store_registers, fake_create_process)
12650 (windows_nat_target::resume, windows_nat_target::resume)
12651 (get_windows_debug_event, windows_nat_target::wait)
12652 (windows_nat_target::pid_to_str)
12653 (windows_nat_target::get_tib_address)
12654 (windows_nat_target::get_ada_task_ptid)
12655 (windows_nat_target::thread_name)
12656 (windows_nat_target::thread_alive): Use lwp, not tid.
12657
12658 2020-04-08 Tom Tromey <tromey@adacore.com>
12659
12660 * windows-nat.c (handle_exception)
12661 (windows_nat_target::thread_name): Update.
12662 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12663 <name>: Now unique_xmalloc_ptr.
12664
12665 2020-04-08 Tom Tromey <tromey@adacore.com>
12666
12667 * windows-nat.c (thread_rec)
12668 (windows_nat_target::fetch_registers): Update.
12669 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12670 Update comment.
12671 <debug_registers_changed, reload_context>: Now bool.
12672
12673 2020-04-08 Tom Tromey <tromey@adacore.com>
12674
12675 * windows-nat.c (windows_add_thread): Use new.
12676 (windows_init_thread_list, windows_delete_thread): Use delete.
12677 (get_windows_debug_event): Update.
12678 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12679 destructor, and initializers.
12680
12681 2020-04-08 Tom Tromey <tromey@adacore.com>
12682
12683 * windows-nat.c (struct windows_thread_info): Remove.
12684 * nat/windows-nat.h: New file.
12685
12686 2020-04-08 Tom Tromey <tromey@adacore.com>
12687
12688 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12689 (thread_rec, windows_add_thread, windows_delete_thread)
12690 (windows_continue): Update.
12691
12692 2020-04-08 Tom Tromey <tromey@adacore.com>
12693
12694 * windows-nat.c (struct windows_thread_info): Remove typedef.
12695 (thread_head): Remove.
12696 (thread_list): New global.
12697 (thread_rec, windows_add_thread, windows_init_thread_list)
12698 (windows_delete_thread, windows_continue): Update.
12699
12700 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12701
12702 * windows-tdep.h (windows_init_abi): Add comment.
12703 (cygwin_init_abi): New declaration.
12704 * windows-tdep.c: Split signal enumeration in two, one for
12705 Windows and one for Cygwin.
12706 (windows_gdb_signal_to_target): Only deal with signal of the
12707 Windows OS ABI.
12708 (cygwin_gdb_signal_to_target): New function.
12709 (windows_init_abi): Rename to windows_init_abi_common, don't set
12710 gdb_signal_to_target gdbarch method. Add new new function with
12711 this name.
12712 (cygwin_init_abi): New function.
12713 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12714 comment. Don't call windows_init_abi.
12715 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12716 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12717 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12718 i386_windows_init_abi_common, don't call windows_init_abi. Add
12719 a new function of this name.
12720 (i386_cygwin_init_abi): New function.
12721 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12722 OS ABI Cygwin.
12723
12724 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12725
12726 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12727 parameter.c.
12728 (dwarf2_read_gdb_index): Update.
12729
12730 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12731
12732 * nbsd-tdep.c: Include "objfiles.h".
12733 (nbsd_skip_solib_resolver): New.
12734 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12735
12736 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12737
12738 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12739 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12740 with DW_LLE_base_addressx are being emitted in DWARFv5.
12741 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12742 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12743 unsigned integer.
12744
12745 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12746
12747 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12748 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12749 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12750 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12751 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12752 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12753 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12754
12755
12756 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12757
12758 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12759 (read_loclist_index): New function definition.
12760 (lookup_loclist_base): New function definition.
12761 (read_loclist_header): New function definition.
12762 (dwarf2_cu): Add loclist_base and loclist_header field.
12763 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12764 (read_full_die_1): Read the value of DW_AT_loclists_base.
12765 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12766 (read_attribute_value): Handle DW_FORM_loclistx.
12767 (skip_one_die): Handle DW_FORM_loclistx.
12768 (loclist_header): New structure declaration.
12769 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12770
12771 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12772
12773 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12774 constructor. Remove `addr` parameter from other constructor and
12775 add `per_cu` parameter.
12776 * dwarf2/read.c (create_partial_symtab): Update.
12777
12778 2020-04-07 Tom de Vries <tdevries@suse.de>
12779
12780 PR symtab/25796
12781 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12782 (partial_die_info::fixup): Inherit has_const_value.
12783
12784 2020-04-07 Tom de Vries <tdevries@suse.de>
12785
12786 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12787 symbols without address.
12788
12789 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12790
12791 * nbsd-nat.h (struct thread_info): Add forward declaration.
12792 (nbsd_nat_target::thread_alive): Add.
12793 (nbsd_nat_target::thread_name): Likewise.
12794 (nbsd_nat_target::update_thread_list): Likewise.
12795 (update_thread_list::post_attach): Likewise.
12796 (post_attach::pid_to_str): Likewise.
12797 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12798 (nbsd_thread_lister): Add.
12799 (nbsd_nat_target::thread_alive): Likewise.
12800 (nbsd_nat_target::thread_name): Likewise.
12801 (nbsd_add_threads): Likewise.
12802 (update_thread_list::post_attach): Likewise.
12803 (nbsd_nat_target::update_thread_list): Likewise.
12804 (post_attach::pid_to_str): Likewise.
12805
12806 2020-04-06 Tom Tromey <tromey@adacore.com>
12807
12808 * ada-valprint.c (print_variant_part): Extract the variant field.
12809 (print_field_values): Use the field as the outer value when
12810 recursing.
12811
12812 2020-04-06 Tom Tromey <tromey@adacore.com>
12813
12814 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12815 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12816 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12817 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12818 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12819
12820 2020-04-06 Tom Tromey <tromey@adacore.com>
12821
12822 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12823 TYPE_CODE_ERROR.
12824
12825 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12826
12827 * nbsd-tdep.c: Include "gdbarch.h".
12828 Define enum with NetBSD signal numbers.
12829 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12830 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12831 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12832 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12833 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12834 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12835 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12836 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12837 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12838 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12839 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12840 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12841
12842 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12843
12844 PR gdb/25325
12845 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12846
12847 2020-04-03 Tom Tromey <tromey@adacore.com>
12848
12849 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12850 Read constant block.
12851
12852 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12853
12854 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12855 (gdb_bfd_get_full_section_contents): New declaration.
12856 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12857 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12858 gdb_bfd_get_full_section_contents.
12859
12860 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12861
12862 * exec.c (build_section_table): Replace internal_error with
12863 gdb_assert.
12864 (section_table_xfer_memory_partial): Likewise.
12865 * mdebugread.c (parse_partial_symbols): Likewise.
12866 * psymtab.c (lookup_partial_symbol): Likewise.
12867 * utils.c (wrap_here): Likewise.
12868
12869 2020-04-02 Tom Tromey <tromey@adacore.com>
12870
12871 * f-lang.c (build_fortran_types): Use arch_type to initialize
12872 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12873
12874 2020-04-02 Tom Tromey <tromey@adacore.com>
12875
12876 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12877 of attributes.
12878
12879 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12880 Bernd Edlinger <bernd.edlinger@hotmail.de>
12881 Tom Tromey <tromey@adacore.com>
12882
12883 * buildsym.c (buildsym_compunit::record_line): Remove
12884 deduplication code.
12885
12886 2020-04-02 Tom de Vries <tdevries@suse.de>
12887
12888 PR ada/24671
12889 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12890
12891 2020-04-02 Tom de Vries <tdevries@suse.de>
12892
12893 * dwarf2/read.c (dwarf2_gdb_index_functions,
12894 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12895 NULL.
12896 * psymtab.c (psym_lookup_global_symbol_language): New function.
12897 (psym_functions): Init psym_lookup_global_symbol_language with
12898 psym_lookup_global_symbol_language.
12899 * symfile-debug.c (debug_sym_quick_functions): Init
12900 lookup_global_symbol_language with NULL.
12901 * symfile.c (set_initial_language): Remove fixme comment.
12902 * symfile.h (struct quick_symbol_functions): Add
12903 lookup_global_symbol_language.
12904 * symtab.c (find_quick_global_symbol_language): New function.
12905 (find_main_name): Use find_quick_global_symbol_language.
12906
12907 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12908
12909 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12910
12911 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12912
12913 * buildsym.c (record_line): Fix undefined behavior and preserve
12914 lines at eof.
12915
12916 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12917
12918 * buildsym.c (record_line): Fix the resizing condition.
12919
12920 2020-04-01 Tom Tromey <tom@tromey.com>
12921
12922 * value.h (value_literal_complex): Add comment.
12923 * valops.c (value_literal_complex): Refer to value.h.
12924
12925 2020-04-01 Tom Tromey <tom@tromey.com>
12926
12927 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12928 (scalar_type): New rule, from typebase.
12929 (typebase): Use scalar_type. Recognize complex types.
12930 (field_name): Handle FLOAT_KEYWORD.
12931 (ident_tokens): Add _Complex and __complex__.
12932
12933 2020-04-01 Tom Tromey <tom@tromey.com>
12934
12935 PR exp/25299:
12936 * valarith.c (promotion_type, complex_binop): New functions.
12937 (scalar_binop): Handle complex numbers. Use promotion_type.
12938 (value_pos, value_neg, value_complement): Handle complex numbers.
12939
12940 2020-04-01 Tom Tromey <tom@tromey.com>
12941
12942 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12943 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12944 (parse_number): Handle complex numbers.
12945
12946 2020-04-01 Tom Tromey <tom@tromey.com>
12947
12948 * c-valprint.c (c_decorations): Change complex suffix to "i".
12949
12950 2020-04-01 Tom Tromey <tom@tromey.com>
12951
12952 * valprint.c (generic_value_print_complex): Use accessors.
12953 * value.h (value_real_part, value_imaginary_part): Declare.
12954 * valops.c (value_real_part, value_imaginary_part): New
12955 functions.
12956 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12957
12958 2020-04-01 Tom Tromey <tom@tromey.com>
12959
12960 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12961 (read_range_type): Update.
12962 * mdebugread.c (basic_type): Update.
12963 * go-lang.c (build_go_types): Use init_complex_type.
12964 * gdbtypes.h (struct main_type) <complex_type>: New member.
12965 (init_complex_type): Update.
12966 (arch_complex_type): Don't declare.
12967 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12968 Make name if none given. Use alloc_type_copy. Look for cached
12969 complex type.
12970 (arch_complex_type): Remove.
12971 (gdbtypes_post_init): Use init_complex_type.
12972 * f-lang.c (build_fortran_types): Use init_complex_type.
12973 * dwarf2/read.c (read_base_type): Update.
12974 * d-lang.c (build_d_types): Use init_complex_type.
12975 * ctfread.c (read_base_type): Update.
12976
12977 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12978
12979 * infrun.c (stop_all_threads): Update assertion, plus when
12980 stopping threads, take into account that we might be trying
12981 to stop an all-stop target.
12982 (stop_waiting): Call 'stop_all_threads' if there exists a
12983 non-stop target.
12984
12985 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12986
12987 * target.h (exists_non_stop_target): New function declaration.
12988 * target.c (exists_non_stop_target): New function.
12989
12990 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12991
12992 PR gdb/24789
12993 * eval.c (is_integral_or_integral_reference): New function.
12994 (evaluate_subexp_standard): Allow integer references in
12995 pointer arithmetic.
12996
12997 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12998
12999 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13000 check for no ptid in the stop reply when the target is non-stop.
13001
13002 2020-04-01 Tom Tromey <tromey@adacore.com>
13003
13004 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13005 "name" parameter to rvalue reference. Initialize m_name_holder.
13006 <lookup_name_info>: New overloads.
13007 <name>: Return gdb::string_view.
13008 <c_str>: New method.
13009 <make_ignore_params>: Update.
13010 <search_name_hash>: Update.
13011 <language_lookup_name>: Return const char *.
13012 <m_name>: Change type.
13013 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13014 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13015 (lookup_name_info::match_any): Update.
13016 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13017 Update.
13018 * minsyms.c (linkage_name_str): Update.
13019 * language.c (default_symbol_name_matcher): Update.
13020 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13021 Update.
13022 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13023 (ada_lookup_name_info::ada_lookup_name_info): Update.
13024 (literal_symbol_name_matcher): Update.
13025
13026 2020-04-01 Tom Tromey <tromey@adacore.com>
13027
13028 * psymtab.c (psymtab_search_name): Remove function.
13029 (psym_lookup_symbol): Create search name and lookup name here.
13030 (lookup_partial_symbol): Remove "name" parameter; add
13031 lookup_name.
13032 (psym_expand_symtabs_for_function): Update.
13033
13034 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13035
13036 PR tui/25597:
13037 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13038
13039 2020-03-31 Tom Tromey <tromey@adacore.com>
13040
13041 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13042 memcpy.
13043
13044 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13045
13046 * features/riscv/32bit-csr.xml: Regenerated.
13047 * features/riscv/64bit-csr.xml: Regenerated.
13048
13049 2020-03-30 Tom Tromey <tromey@adacore.com>
13050
13051 * ada-valprint.c (print_variant_part): Update.
13052 * ada-lang.h (ada_which_variant_applies): Update.
13053 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13054 outer_valaddr parameters; replace with "outer" value parameter.
13055 (to_fixed_variant_branch_type): Update.
13056
13057 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13058
13059 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13060 <list>. Remove inclusion of observable.h.
13061 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13062 (struct arch_lwp_info): New struct.
13063 (class ppc_linux_dreg_interface): New class.
13064 (struct ppc_linux_process_info): New struct.
13065 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13066 <low_new_clone, low_forget_process, low_prepare_to_resume>
13067 <copy_thread_dreg_state, mark_thread_stale>
13068 <mark_debug_registers_changed, register_hw_breakpoint>
13069 <clear_hw_breakpoint, register_wp, clear_wp>
13070 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13071 <num_memory_accesses, get_trigger_type>
13072 <create_watchpoint_request, hwdebug_point_cmp>
13073 <init_arch_lwp_info, get_arch_lwp_info>
13074 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13075 methods.
13076 <struct ptid_hash>: New inner struct.
13077 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13078 members.
13079 (saved_dabr_value, hwdebug_info, max_slots_number)
13080 (struct hw_break_tuple, struct thread_points, ppc_threads)
13081 (have_ptrace_hwdebug_interface)
13082 (hwdebug_find_thread_points_by_tid)
13083 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13084 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13085 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13086 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13087 use m_dreg_interface.
13088 (hwdebug_point_cmp): Change to...
13089 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13090 reference arguments instead of pointers.
13091 (ppc_linux_nat_target::ranged_break_num_registers): Use
13092 m_dreg_interface.
13093 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13094 m_dreg_interface. Call register_hw_breakpoint.
13095 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13096 m_dreg_interface. Call clear_hw_breakpoint.
13097 (get_trigger_type): Change to...
13098 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13099 comment.
13100 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13101 use m_dreg_interface. Call register_hw_breakpoint.
13102 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13103 use m_dreg_interface. Call clear_hw_breakpoint.
13104 (can_use_watchpoint_cond_accel): Change to...
13105 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13106 method. Update comment, use m_dreg_interface and
13107 m_process_info.
13108 (calculate_dvc): Change to...
13109 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13110 m_dreg_interface.
13111 (num_memory_accesses): Change to...
13112 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13113 (check_condition): Change to...
13114 (ppc_linux_nat_target::check_condition): ...this method.
13115 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13116 comment, use m_dreg_interface.
13117 (create_watchpoint_request): Change to...
13118 (ppc_linux_nat_target::create_watchpoint_request): ...this
13119 method. Use m_dreg_interface.
13120 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13121 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13122 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13123 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13124 (ppc_linux_nat_target::low_forget_process)
13125 (ppc_linux_nat_target::low_new_fork)
13126 (ppc_linux_nat_target::low_new_clone)
13127 (ppc_linux_nat_target::low_delete_thread)
13128 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13129 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13130 only call mark_thread_stale.
13131 (ppc_linux_thread_exit): Remove.
13132 (ppc_linux_nat_target::stopped_data_address): Change to...
13133 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13134 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13135 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13136 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13137 comment. Call low_stopped_data_address.
13138 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13139 m_dreg_interface.
13140 (ppc_linux_nat_target::masked_watch_num_registers): Use
13141 m_dreg_interface.
13142 (ppc_linux_nat_target::copy_thread_dreg_state)
13143 (ppc_linux_nat_target::mark_thread_stale)
13144 (ppc_linux_nat_target::mark_debug_registers_changed)
13145 (ppc_linux_nat_target::register_hw_breakpoint)
13146 (ppc_linux_nat_target::clear_hw_breakpoint)
13147 (ppc_linux_nat_target::register_wp)
13148 (ppc_linux_nat_target::clear_wp)
13149 (ppc_linux_nat_target::init_arch_lwp_info)
13150 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13151 (_initialize_ppc_linux_nat): Remove observer callback.
13152
13153 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13154
13155 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13156 (ppc_linux_nat_target::auxv_parse)
13157 (ppc_linux_nat_target::read_description)
13158 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13159 Move up.
13160
13161 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13162
13163 * linux-nat.h (low_new_clone): New method.
13164 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13165
13166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13167
13168 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13169 (dbx_expand_psymtab): ... this.
13170 (start_psymtab): Update.
13171 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13172 (mdebug_expand_psymtab): ... this.
13173 (parse_partial_symbols): Update.
13174 (new_psymtab): Update.
13175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13176 (xcoff_expand_psymtab): ... this.
13177 (xcoff_start_psymtab): Update.
13178
13179 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13180
13181 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13182 <expand_dependencies>: ... this.
13183 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13184 (partial_symtab::expand_dependencies): ... this.
13185 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13186 Update.
13187 (dwarf2_psymtab::expand_psymtab): Update.
13188 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13189 * mdebugread.c (psymtab_to_symtab_1): Update.
13190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13191
13192 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13193
13194 * psympriv.h (discard_psymtab): Remove.
13195 * dbxread.c (dbx_end_psymtab): Update.
13196 * xcoffread.c (xcoff_end_psymtab): Update.
13197
13198 2020-03-28 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13201 comment.
13202
13203 2020-03-28 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13206
13207 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13208
13209 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13210
13211 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13212
13213 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13214
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13218 (mark_common_block_symbol_computed, read_tag_string_type)
13219 (attr_to_dynamic_prop, read_subrange_type): Update.
13220 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13221 to be methods on struct attribute.
13222 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13223 (read_call_site_scope, partial_die_info::read)
13224 (partial_die_info::read, lookup_die_type, follow_die_ref):
13225 Update.
13226 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13227 from dwarf2_get_ref_die_offset.
13228 (attribute::constant_value): New method, from
13229 dwarf2_get_attr_constant_value.
13230 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13231 Declare method.
13232 <constant_value>: New method.
13233
13234 2020-03-26 Tom Tromey <tom@tromey.com>
13235
13236 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13237 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13238 (dwarf_type_encoding_name): Move to stringify.c.
13239 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13240 * dwarf2/stringify.c: New file.
13241 * dwarf2/stringify.h: New file.
13242
13243 2020-03-26 Tom Tromey <tom@tromey.com>
13244
13245 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13246 Rewrite.
13247
13248 2020-03-26 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13251 methods.
13252 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13253 (lookup_ranges_base): Likewise.
13254 (read_cutu_die_from_dwo, read_full_die_1): Update.
13255
13256 2020-03-26 Tom Tromey <tom@tromey.com>
13257
13258 * dwarf2/read.c (read_import_statement, read_file_scope)
13259 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13260 (read_lexical_block_scope, read_call_site_scope)
13261 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13262 (handle_struct_member_die, process_structure_scope)
13263 (update_enumeration_type_from_children)
13264 (process_enumeration_scope, read_array_type, read_common_block)
13265 (read_namespace, read_module, read_subroutine_type): Update.
13266 (sibling_die): Remove.
13267
13268 2020-03-26 Tom Tromey <tom@tromey.com>
13269
13270 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13271 (build_type_psymtabs_reader, read_structure_type)
13272 (read_enumeration_type, read_full_die_1): Update.
13273 (dwarf2_attr_no_follow): Move to die.h.
13274 * dwarf2/die.h (struct die_info) <attr>: New method.
13275
13276 2020-03-26 Tom Tromey <tom@tromey.com>
13277
13278 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13279 <base_address>: Now an optional.
13280 (dwarf2_find_base_address, dwarf2_rnglists_process)
13281 (dwarf2_ranges_process, fill_in_loclist_baton)
13282 (dwarf2_symbol_mark_computed): Update.
13283
13284 2020-03-26 Tom Tromey <tom@tromey.com>
13285
13286 * dwarf2/read.c (struct die_info): Move to die.h.
13287 * dwarf2/die.h: New file.
13288
13289 2020-03-26 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13292 * dwarf2/read.c
13293 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13294 Move to line-header.c.
13295 (read_checked_initial_length_and_offset, read_formatted_entries):
13296 Likewise.
13297 (dwarf_decode_line_header): Split into two.
13298 * dwarf2/line-header.c
13299 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13300 Move from read.c.
13301 (read_checked_initial_length_and_offset, read_formatted_entries):
13302 Likewise.
13303 (dwarf_decode_line_header): New function, split from read.c.
13304
13305 2020-03-26 Tom Tromey <tom@tromey.com>
13306
13307 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13308 Declare method.
13309 * dwarf2/read.c (read_attribute_value): Update.
13310 (dwarf2_per_objfile::read_line_string): Rename from
13311 read_indirect_line_string.
13312 (read_formatted_entries): Update.
13313
13314 2020-03-26 Tom Tromey <tom@tromey.com>
13315
13316 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13317 variable.
13318
13319 2020-03-26 Tom Tromey <tom@tromey.com>
13320
13321 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13322 const.
13323 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13325 parameter const.
13326
13327 2020-03-26 Tom Tromey <tom@tromey.com>
13328
13329 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13330 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13331 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13333
13334 2020-03-26 Tom Tromey <tom@tromey.com>
13335
13336 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13337 file_names_size, file_full_name, file_file_name>: Use const.
13338 <file_name_at, file_names>: Add const overload.
13339 * dwarf2/line-header.c (line_header::file_file_name)
13340 (line_header::file_full_name): Update.
13341
13342 2020-03-26 Tom Tromey <tom@tromey.com>
13343
13344 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13345 (macro_start_file, consume_improper_spaces)
13346 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13347 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13348 (dwarf_decode_macros): Move to macro.c.
13349 * dwarf2/macro.c: New file.
13350 * dwarf2/macro.h: New file.
13351 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13352
13353 2020-03-26 Tom Tromey <tom@tromey.com>
13354
13355 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13356 method.
13357 * dwarf2/section.c: New method. From
13358 read_indirect_string_at_offset_from.
13359 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13360 (read_indirect_string_at_offset_from): Move to section.c.
13361 (read_indirect_string_at_offset): Rewrite.
13362 (read_indirect_line_string_at_offset): Remove.
13363 (read_indirect_string, read_indirect_line_string)
13364 (dwarf_decode_macro_bytes): Update.
13365
13366 2020-03-26 Tom Tromey <tom@tromey.com>
13367
13368 * dwarf2/section.h (struct dwarf2_section_info)
13369 <overload_complaint>: Declare.
13370 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13371 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13372 Rename from dwarf2_section_buffer_overflow_complaint.
13373 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13374 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13375
13376 2020-03-26 Tom Tromey <tom@tromey.com>
13377
13378 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13379 Declare.
13380 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13381 Move from read.c.
13382 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13383 to section.c.
13384
13385 2020-03-26 Tom Tromey <tom@tromey.com>
13386
13387 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13388
13389 2020-03-26 Tom Tromey <tom@tromey.com>
13390
13391 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13392 "builder".
13393 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13394 parameter.
13395 (dwarf_decode_macros): Update.
13396
13397 2020-03-26 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2/read.c (read_attribute_value): Update.
13400 (read_indirect_string_from_dwz): Move to dwz.c; change into
13401 method.
13402 (dwarf_decode_macro_bytes): Update.
13403 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13404 * dwarf2/dwz.c: New file.
13405 * Makefile.in (COMMON_SFILES): Add dwz.c.
13406
13407 2020-03-26 Tom Tromey <tom@tromey.com>
13408
13409 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13410 * dwarf2/read.c: Add include.
13411 * dwarf2/index-write.c: Add include.
13412 * dwarf2/index-cache.c: Add include.
13413 * dwarf2/dwz.h: New file.
13414
13415 2020-03-25 Tom Tromey <tom@tromey.com>
13416
13417 * compile/compile-object-load.c (get_out_value_type): Mention
13418 correct symbol name in error message.
13419
13420 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13421
13422 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13423
13424 2020-03-25 Tom de Vries <tdevries@suse.de>
13425
13426 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13427 * symmisc.c (dump_symtab_1): Print user and includes fields.
13428 (maintenance_info_symtabs): Same.
13429
13430 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13431
13432 PR gdb/25534
13433 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13434 (riscv_regcache_cooked_write): New function.
13435 (riscv_push_dummy_call): Use new function.
13436 (riscv_return_value): Likewise.
13437
13438 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13439
13440 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13441 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13442 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13443 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13444 * infrun.c (follow_fork): Likewise.
13445 (follow_fork_inferior): Likewise.
13446 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13447 * linux-nat.h (class linux_nat_target): Likewise.
13448 * remote.c (class remote_target) <follow_fork>: Likewise.
13449 (remote_target::follow_fork): Likewise.
13450 * target-delegates.c: Re-generate.
13451 * target.c (default_follow_fork): Likewise.
13452 (target_follow_fork): Likewise.
13453 * target.h (struct target_ops) <follow_fork>: Likewise.
13454 (target_follow_fork): Likewise.
13455
13456 2020-03-24 Tom de Vries <tdevries@suse.de>
13457
13458 * psymtab.c (maintenance_info_psymtabs): Print user field.
13459
13460 2020-03-20 Tom Tromey <tromey@adacore.com>
13461
13462 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13463 const.
13464 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13465 const.
13466
13467 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13468
13469 * ptrace.m4: Don't check for ptrace declaration.
13470 * config.in: Re-generate.
13471 * configure: Re-generate.
13472 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13473 not defined.
13474
13475 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13476
13477 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13478 `PTRACE_TYPE_RET'.
13479 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13480 * sparc-nat.c (gdb_ptrace): Likewise.
13481 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13482
13483 2020-03-20 Tom Tromey <tromey@adacore.com>
13484
13485 * c-exp.y (lex_one_token): Fix assert.
13486
13487 2020-03-20 Tom Tromey <tromey@adacore.com>
13488
13489 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13490 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13491 strncpy call.
13492
13493 2020-03-20 Tom Tromey <tromey@adacore.com>
13494
13495 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13496
13497 2020-03-20 Tom Tromey <tromey@adacore.com>
13498
13499 * ada-valprint.c (print_variant_part): Remove parameters; switch
13500 to value-based API.
13501 (print_field_values): Likewise.
13502 (ada_val_print_struct_union): Likewise.
13503 (ada_value_print_1): Update.
13504
13505 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13506
13507 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13508 nbsd_nat_target instead of inf_ptrace_target.
13509 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13510 nbsd_nat_target.
13511
13512 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13513
13514 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13515 it to the ptrace call.
13516 * (store_registers): Likewise.
13517
13518 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13519
13520 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13521 it to the ptrace call.
13522 * (store_registers): Likewise.
13523
13524 2020-03-19 Luis Machado <luis.machado@linaro.org>
13525
13526 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13527 valid, fetch vg value from ptrace.
13528
13529 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13530 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13531 * inf-ptrace.c: Likewise.
13532 * (gdb_ptrace): Add.
13533 * (inf_ptrace_target::resume): Update.
13534 * (inf_ptrace_target::xfer_partial): Likewise.
13535 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13536 * (inf_ptrace_peek_poke): Update.
13537
13538 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13539
13540 * x86-bsd-nat.c (gdb_ptrace): New.
13541 * (x86bsd_dr_set): Add new argument `ptid'.
13542 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13543 x86bsd_dr_set_addr): Update.
13544
13545 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13546
13547 * remote.c (remote_target::process_stop_reply): Handle events for
13548 all threads differently.
13549
13550 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13551
13552 * completer.c (completion_tracker::remove_completion): Define new
13553 function.
13554 * completer.h (completion_tracker::remove_completion): Declare new
13555 function.
13556 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13557 when adding a C++ function symbol.
13558
13559 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13560
13561 * completer.c (completion_tracker::completion_hash_entry): Define
13562 new class.
13563 (advance_to_filename_complete_word_point): Call
13564 recompute_lowest_common_denominator.
13565 (completion_tracker::completion_tracker): Call discard_completions
13566 to setup the hash table.
13567 (completion_tracker::discard_completions): Allow for being called
13568 from the constructor, pass new equal function, and element deleter
13569 when constructing the hash table. Initialise new class member
13570 variables.
13571 (completion_tracker::maybe_add_completion): Remove use of
13572 m_entries_vec, and store more information into m_entries_hash.
13573 (completion_tracker::recompute_lcd_visitor): New function, most
13574 content taken from...
13575 (completion_tracker::recompute_lowest_common_denominator):
13576 ...here, this now just visits each item in the hash calling the
13577 above visitor.
13578 (completion_tracker::build_completion_result): Remove use of
13579 m_entries_vec, call recompute_lowest_common_denominator.
13580 * completer.h (completion_tracker::have_completions): Remove use
13581 of m_entries_vec.
13582 (completion_tracker::completion_hash_entry): Declare new class.
13583 (completion_tracker::recompute_lowest_common_denominator): Change
13584 function signature.
13585 (completion_tracker::recompute_lcd_visitor): Declare new function.
13586 (completion_tracker::m_entries_vec): Delete.
13587 (completion_tracker::m_entries_hash): Initialize to NULL.
13588 (completion_tracker::m_lowest_common_denominator_valid): New
13589 member variable.
13590 (completion_tracker::m_lowest_common_denominator_max_length): New
13591 member variable.
13592
13593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13594
13595 * regformats/regdef.h: Put reg in gdb namespace.
13596
13597 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13598
13599 * i386-bsd-nat.c (gdb_ptrace): New.
13600 * (i386bsd_fetch_inferior_registers,
13601 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13602 * (i386bsd_fetch_inferior_registers,
13603 i386bsd_store_inferior_registers) Use gdb_ptrace.
13604
13605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13606
13607 * amd64-bsd-nat.c (gdb_ptrace): New.
13608 * (amd64bsd_fetch_inferior_registers,
13609 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13610 * (amd64bsd_fetch_inferior_registers,
13611 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13612
13613 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13614
13615 * user-regs.c (user_reg::read): Rename to...
13616 (user_reg::xread): ...this.
13617 * (append_user_reg): Rename argument `read' to `xread'.
13618 * (user_reg_add_builtin): Likewise.
13619 * (user_reg_add): Likewise.
13620 * (value_of_user_reg): Likewise.
13621
13622 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13623
13624 * sparc-nat.c (gdb_ptrace): New.
13625 * sparc-nat.c (sparc_fetch_inferior_registers)
13626 (sparc_store_inferior_registers) Remove obsolete comment.
13627 * sparc-nat.c (sparc_fetch_inferior_registers)
13628 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13629 * sparc-nat.c (sparc_fetch_inferior_registers)
13630 (sparc_store_inferior_registers) Use gdb_ptrace.
13631
13632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13633
13634 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13635 it to the ptrace call.
13636 * sh-nbsd-nat.c (store_registers): Likewise.
13637
13638 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13639
13640 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13641 nbsd_nat_target instead of inf_ptrace_target.
13642 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13643 nbsd_nat_target.
13644
13645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13646
13647 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13648
13649 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13650
13651 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13652 <sys/sysctl.h>.
13653 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13654
13655 2020-03-17 Tom de Vries <tdevries@suse.de>
13656
13657 PR gdb/23710
13658 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13659 fields.
13660 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13661 fields.
13662 (process_imported_unit_die): Skip import of c++ CUs.
13663
13664 2020-03-16 Tom Tromey <tom@tromey.com>
13665
13666 * p-valprint.c (pascal_object_print_value): Initialize
13667 base_value.
13668
13669 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13670 Shahab Vahedi <shahab@synopsys.com>
13671
13672 * Makefile.in: Add arch/arc.o
13673 * configure.tgt: Likewise.
13674 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13675 (_initialize_arc_tdep): Don't initialize old target descriptions.
13676 (arc_read_description): New function to cache target descriptions.
13677 * arc-tdep.h (arc_read_description): Add proto type.
13678 * arch/arc.c: New file.
13679 * arch/arc.h: Likewise.
13680 * features/Makefile: Replace old target descriptions with new.
13681 * features/arc-arcompact.c: Remove.
13682 * features/arc-arcompact.xml: Likewise.
13683 * features/arc-v2.c: Likewise
13684 * features/arc-v2.xml: Likewise
13685 * features/arc/aux-arcompact.xml: New file.
13686 * features/arc/aux-v2.xml: Likewise.
13687 * features/arc/core-arcompact.xml: Likewise.
13688 * features/arc/core-v2.xml: Likewise.
13689 * features/arc/aux-arcompact.c: Generate.
13690 * features/arc/aux-v2.c: Likewise.
13691 * features/arc/core-arcompact.c: Likewise.
13692 * features/arc/core-v2.c: Likewise.
13693 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13694
13695 2020-03-16 Tom Tromey <tromey@adacore.com>
13696
13697 PR gdb/25663:
13698 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13699 putting value into bcache.
13700
13701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13702
13703 PR gdb/21500
13704 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13705 to...
13706 (amd64_windows_init_abi_common): ... this. Don't set size of
13707 long type.
13708 (amd64_windows_init_abi): New function.
13709 (amd64_cygwin_init_abi): New function.
13710 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13711 the Cygwin OS ABI.
13712 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13713 comment.
13714
13715 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13716
13717 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13718 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13719 (pe_import_directory_entry): New struct type.
13720 (is_linked_with_cygwin_dll): New function.
13721 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13722 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13723 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13724
13725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13726
13727 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13728 i386_cygwin_core_osabi_sniffer.
13729
13730 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * i386-cygwin-tdep.c: Rename to...
13733 * i386-windows-tdep.c: ... this.
13734 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13735 i386-windows-tdep.c.
13736 * configure.tgt: Likewise.
13737
13738 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13739
13740 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13741 * osabi.c (gdb_osabi_names): Add "Windows".
13742 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13743 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13744 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13745 i386_cygwin_osabi_sniffer.
13746 (_initialize_i386_cygwin_tdep): Register OS ABI
13747 GDB_OSABI_WINDOWS for i386.
13748 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13749 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13750 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13751 for x86-64.
13752 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13753 when the target matches '*-*-mingw*'.
13754
13755 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13756
13757 * defs.h (enum gdb_osabi): Move to...
13758 * osabi.h (enum gdb_osabi): ... here.
13759 * gdbarch.sh: Include osabi.h in gdbarch.h.
13760 * gdbarch.h: Re-generate.
13761
13762 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13765 function.
13766 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13767
13768 2020-03-14 Tom Tromey <tom@tromey.com>
13769
13770 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13771 for C++.
13772 (c_type_print_modifier): Likewise. Add "language" parameter.
13773 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13774 (c_type_print_base_1): Update.
13775 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13776 constants.
13777 * type-stack.c (type_stack::insert): Handle tp_atomic and
13778 tp_restrict.
13779 (type_stack::follow_type_instance_flags): Likewise.
13780 (type_stack::follow_types): Likewise. Merge type-following code.
13781 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13782 (space_identifier, cv_with_space_id)
13783 (const_or_volatile_or_space_identifier_noopt)
13784 (const_or_volatile_or_space_identifier): Remove.
13785 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13786 rules.
13787 (ptr_operator, typebase): Update.
13788 (enum token_flag) <FLAG_C>: New constant.
13789 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13790 "_Atomic".
13791 (lex_one_token): Handle FLAG_C.
13792
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13794
13795 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13796 it to the ptrace call.
13797 * m68k-bsd-nat.c (store_registers): Likewise.
13798
13799 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13800
13801 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13802 gdb_byte *.
13803 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13804 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13805 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13806
13807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13808
13809 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13810 nbsd_nat_target instead of inf_ptrace_target.
13811 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13812 nbsd_nat_target.
13813
13814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13815
13816 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13817 register_t.
13818
13819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13820
13821 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13822 it to the ptrace call.
13823 * alpha-bsd-nat.c (store_registers): Likewise.
13824
13825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13826
13827 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13828 includes.
13829 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13830 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13831 fill_fpregset): Likewise.
13832
13833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13834
13835 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13836 nbsd_nat_target instead of inf_ptrace_target.
13837 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13838 nbsd_nat_target.
13839
13840 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13841
13842 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13843 register_t.
13844
13845 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13846
13847 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13848 it to the ptrace call.
13849 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13850 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13851 * arm-nbsd-nat.c (store_register): Likewise.
13852 * arm-nbsd-nat.c (store_regs): Likewise.
13853 * arm-nbsd-nat.c (store_fp_register): Likewise.
13854 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13855
13856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13857
13858 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13859 nbsd_nat_target instead of inf_ptrace_target.
13860 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13861 nbsd_nat_target.
13862
13863 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13864
13865 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13866 it to the ptrace call.
13867 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13868
13869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13870
13871 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13872 it to the ptrace call.
13873 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13874
13875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13876
13877 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13878 gdb_byte *.
13879 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13880
13881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13882
13883 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13884 instead of inf_ptrace_target.
13885 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13886 nbsd_nat_target.
13887
13888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13889
13890 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13891 register_t.
13892
13893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13894
13895 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13896 register_t.
13897
13898 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13899
13900 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13901 register_t.
13902
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13904
13905 * value.h (val_print): Don't declare.
13906 * valprint.h (val_print_array_elements)
13907 (val_print_scalar_formatted, generic_val_print): Don't declare.
13908 * valprint.c (generic_val_print_array): Take a struct value.
13909 (generic_val_print_ptr, generic_val_print_memberptr)
13910 (generic_val_print_bool, generic_val_print_int)
13911 (generic_val_print_char, generic_val_print_complex)
13912 (generic_val_print): Remove.
13913 (generic_value_print): Update.
13914 (do_val_print): Remove unused parameters. Don't call
13915 la_val_print.
13916 (val_print): Remove.
13917 (common_val_print): Update. Don't call value_check_printable.
13918 (val_print_scalar_formatted, val_print_array_elements): Remove.
13919 * rust-lang.c (rust_val_print): Remove.
13920 (rust_language_defn): Update.
13921 * p-valprint.c (pascal_val_print): Remove.
13922 (pascal_value_print_inner): Update.
13923 (pascal_object_print_val_fields, pascal_object_print_val):
13924 Remove.
13925 (pascal_object_print_static_field): Update.
13926 * p-lang.h (pascal_val_print): Don't declare.
13927 * p-lang.c (pascal_language_defn): Update.
13928 * opencl-lang.c (opencl_language_defn): Update.
13929 * objc-lang.c (objc_language_defn): Update.
13930 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13931 * m2-lang.h (m2_val_print): Don't declare.
13932 * m2-lang.c (m2_language_defn): Update.
13933 * language.h (struct language_defn) <la_val_print>: Remove.
13934 * language.c (unk_lang_value_print_inner): Rename. Change
13935 argument types.
13936 (unknown_language_defn, auto_language_defn): Update.
13937 * go-valprint.c (go_val_print): Remove.
13938 * go-lang.h (go_val_print): Don't declare.
13939 * go-lang.c (go_language_defn): Update.
13940 * f-valprint.c (f_val_print): Remove.
13941 * f-lang.h (f_value_print): Don't declare.
13942 * f-lang.c (f_language_defn): Update.
13943 * d-valprint.c (d_val_print): Remove.
13944 * d-lang.h (d_value_print): Don't declare.
13945 * d-lang.c (d_language_defn): Update.
13946 * cp-valprint.c (cp_print_value_fields)
13947 (cp_print_value_fields_rtti, cp_print_value): Remove.
13948 (cp_print_static_field): Update.
13949 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13950 (c_val_print_struct, c_val_print_union, c_val_print_int)
13951 (c_val_print_memberptr, c_val_print): Remove.
13952 * c-lang.h (c_val_print_array, cp_print_value_fields)
13953 (cp_print_value_fields_rtti): Don't declare.
13954 * c-lang.c (c_language_defn, cplus_language_defn)
13955 (asm_language_defn, minimal_language_defn): Update.
13956 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13957 (ada_val_print_enum): Take a struct value.
13958 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13959 (ada_val_print): Remove.
13960 (ada_value_print_1): Update.
13961 (printable_val_type): Remove.
13962 * ada-lang.h (ada_val_print): Don't declare.
13963 * ada-lang.c (ada_language_defn): Update.
13964
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13966
13967 * valprint.c (do_val_print): Update.
13968 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13969 a struct value.
13970 (value_to_value_object_no_release): Declare.
13971 * python/py-value.c (value_to_value_object_no_release): New
13972 function.
13973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13974 struct value.
13975 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13976 function.
13977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13978 a struct value.
13979 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13980 Declare.
13981 (gdbscm_apply_val_pretty_printer): Take a struct value.
13982 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13983 value.
13984 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13985 value.
13986 * extension-priv.h (struct extension_language_ops)
13987 <apply_val_pretty_printer>: Take a struct value.
13988 * cp-valprint.c (cp_print_value): Create a struct value.
13989 (cp_print_value): Update.
13990
13991 2020-03-13 Tom Tromey <tom@tromey.com>
13992
13993 * ada-valprint.c (print_field_values): Call common_val_print.
13994
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * ada-valprint.c (val_print_packed_array_elements): Remove
13998 bitoffset and val parameters. Call common_val_print.
13999 (ada_val_print_string): Remove offset, address, and original_value
14000 parameters.
14001 (ada_val_print_array): Update.
14002 (ada_value_print_array): New function.
14003 (ada_value_print_1): Call it.
14004
14005 2020-03-13 Tom Tromey <tom@tromey.com>
14006
14007 * ada-valprint.c (ada_value_print): Use common_val_print.
14008
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14010
14011 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14012
14013 2020-03-13 Tom Tromey <tom@tromey.com>
14014
14015 * ada-valprint.c (ada_value_print_num): New function.
14016 (ada_value_print_1): Use it.
14017
14018 2020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14021
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14023
14024 * ada-valprint.c (ada_value_print_ptr): New function.
14025 (ada_value_print_1): Use it.
14026
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14030 call common_val_print.
14031 (ada_val_print_1): Update.
14032 (ada_value_print_1): New function.
14033 (ada_value_print_inner): Rewrite.
14034
14035 2020-03-13 Tom Tromey <tom@tromey.com>
14036
14037 * cp-valprint.c (cp_print_value_fields): Update.
14038 (cp_print_value): New function.
14039
14040 2020-03-13 Tom Tromey <tom@tromey.com>
14041
14042 * m2-valprint.c (m2_value_print_inner): Use
14043 cp_print_value_fields.
14044 * cp-valprint.c (cp_print_value_fields): New function.
14045 * c-valprint.c (c_value_print_struct): New function.
14046 (c_value_print_inner): Use c_value_print_struct.
14047 * c-lang.h (cp_print_value_fields): Declare.
14048
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * c-valprint.c (c_value_print_array): New function.
14052 (c_value_print_inner): Use it.
14053
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14055
14056 * c-valprint.c (c_value_print_memberptr): New function.
14057 (c_value_print_inner): Use it.
14058
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14060
14061 * c-valprint.c (c_value_print_int): New function.
14062 (c_value_print_inner): Use it.
14063
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14065
14066 * c-valprint.c (c_value_print_ptr): New function.
14067 (c_value_print_inner): Use it.
14068
14069 2020-03-13 Tom Tromey <tom@tromey.com>
14070
14071 * c-valprint.c (c_value_print_inner): Rewrite.
14072
14073 2020-03-13 Tom Tromey <tom@tromey.com>
14074
14075 * valprint.c (generic_value_print_complex): New function.
14076 (generic_value_print): Use it.
14077
14078 2020-03-13 Tom Tromey <tom@tromey.com>
14079
14080 * valprint.c (generic_val_print_float): Don't call
14081 val_print_scalar_formatted.
14082 (generic_val_print, generic_value_print): Update.
14083
14084 2020-03-13 Tom Tromey <tom@tromey.com>
14085
14086 * valprint.c (generic_value_print_char): New function
14087 (generic_value_print): Use it.
14088
14089 2020-03-13 Tom Tromey <tom@tromey.com>
14090
14091 * valprint.c (generic_value_print_int): New function.
14092 (generic_value_print): Use it.
14093
14094 2020-03-13 Tom Tromey <tom@tromey.com>
14095
14096 * valprint.c (generic_value_print_bool): New function.
14097 (generic_value_print): Use it.
14098
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14100
14101 * valprint.c (generic_val_print_func): Simplify.
14102 (generic_val_print, generic_value_print): Update.
14103
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (generic_val_print_flags): Remove.
14107 (generic_val_print, generic_value_print): Update.
14108 (val_print_type_code_flags): Add original_value parameter.
14109
14110 2020-03-13 Tom Tromey <tom@tromey.com>
14111
14112 * valprint.c (generic_val_print): Update.
14113 (generic_value_print): Update.
14114 * valprint.c (generic_val_print_enum): Don't call
14115 val_print_scalar_formatted.
14116
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14118
14119 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14120 * valprint.c (generic_value_print_ptr): New function.
14121
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * valprint.c (generic_value_print): Rewrite.
14125
14126 2020-03-13 Tom Tromey <tom@tromey.com>
14127
14128 * p-valprint.c (pascal_object_print_value_fields)
14129 (pascal_object_print_value): New functions.
14130
14131 2020-03-13 Tom Tromey <tom@tromey.com>
14132
14133 * p-valprint.c (pascal_value_print_inner): Rewrite.
14134
14135 2020-03-13 Tom Tromey <tom@tromey.com>
14136
14137 * f-valprint.c (f_value_print_innner): Rewrite.
14138
14139 2020-03-13 Tom Tromey <tom@tromey.com>
14140
14141 * m2-valprint.c (m2_print_unbounded_array): New overload.
14142 (m2_print_unbounded_array): Update.
14143 (m2_print_array_contents): Take a struct value.
14144 (m2_value_print_inner): Rewrite.
14145
14146 2020-03-13 Tom Tromey <tom@tromey.com>
14147
14148 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14149 (d_value_print_inner): New function.
14150 * d-lang.h (d_value_print_inner): Declare.
14151 * d-lang.c (d_language_defn): Use d_value_print_inner.
14152
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14154
14155 * go-valprint.c (go_value_print_inner): New function.
14156 * go-lang.h (go_value_print_inner): Declare.
14157 * go-lang.c (go_language_defn): Use go_value_print_inner.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14162 API.
14163 (rust_val_print): Rewrite.
14164 (rust_value_print_inner): New function, from rust_val_print.
14165 (rust_language_defn): Use rust_value_print_inner.
14166
14167 2020-03-13 Tom Tromey <tom@tromey.com>
14168
14169 * ada-valprint.c (ada_value_print_inner): New function.
14170 * ada-lang.h (ada_value_print_inner): Declare.
14171 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14172
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14174
14175 * f-valprint.c (f_value_print_innner): New function.
14176 * f-lang.h (f_value_print_innner): Declare.
14177 * f-lang.c (f_language_defn): Use f_value_print_innner.
14178
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14180
14181 * p-valprint.c (pascal_value_print_inner): New function.
14182 * p-lang.h (pascal_value_print_inner): Declare.
14183 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14184
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14186
14187 * m2-valprint.c (m2_value_print_inner): New function.
14188 * m2-lang.h (m2_value_print_inner): Declare.
14189 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14190
14191 2020-03-13 Tom Tromey <tom@tromey.com>
14192
14193 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14194 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14195 * c-valprint.c (c_value_print_inner): New function.
14196 * c-lang.h (c_value_print_inner): Declare.
14197 * c-lang.c (c_language_defn, cplus_language_defn)
14198 (asm_language_defn, minimal_language_defn): Use
14199 c_value_print_inner.
14200
14201 2020-03-13 Tom Tromey <tom@tromey.com>
14202
14203 * p-valprint.c (pascal_object_print_value_fields): Now static.
14204 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14205
14206 2020-03-13 Tom Tromey <tom@tromey.com>
14207
14208 * c-valprint.c (c_val_print_array): Simplify.
14209
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14211
14212 * valprint.c (value_print_array_elements): New function.
14213 * valprint.h (value_print_array_elements): Declare.
14214
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14218 * mips-tdep.c (mips_print_register): Use
14219 value_print_scalar_formatted.
14220
14221 2020-03-13 Tom Tromey <tom@tromey.com>
14222
14223 * valprint.h (value_print_scalar_formatted): Declare.
14224 * valprint.c (value_print_scalar_formatted): New function.
14225
14226 2020-03-13 Tom Tromey <tom@tromey.com>
14227
14228 * valprint.h (generic_value_print): Declare.
14229 * valprint.c (generic_value_print): New function.
14230
14231 2020-03-13 Tom Tromey <tom@tromey.com>
14232
14233 * valprint.c (do_val_print): Call la_value_print_inner, if
14234 available.
14235 * rust-lang.c (rust_language_defn): Update.
14236 * p-lang.c (pascal_language_defn): Update.
14237 * opencl-lang.c (opencl_language_defn): Update.
14238 * objc-lang.c (objc_language_defn): Update.
14239 * m2-lang.c (m2_language_defn): Update.
14240 * language.h (struct language_defn) <la_value_print_inner>: New
14241 member.
14242 * language.c (unknown_language_defn, auto_language_defn): Update.
14243 * go-lang.c (go_language_defn): Update.
14244 * f-lang.c (f_language_defn): Update.
14245 * d-lang.c (d_language_defn): Update.
14246 * c-lang.c (c_language_defn, cplus_language_defn)
14247 (asm_language_defn, minimal_language_defn): Update.
14248 * ada-lang.c (ada_language_defn): Update.
14249
14250 2020-03-13 Tom Tromey <tom@tromey.com>
14251
14252 * c-valprint.c (c_value_print): Use common_val_print.
14253
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14255
14256 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14257
14258 2020-03-13 Tom Tromey <tom@tromey.com>
14259
14260 * f-valprint.c (f77_print_array_1, f_val_print): Use
14261 common_val_print.
14262
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14264
14265 * riscv-tdep.c (riscv_print_one_register_info): Use
14266 common_val_print.
14267
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14269
14270 * mi/mi-main.c (output_register): Use common_val_print.
14271
14272 2020-03-13 Tom Tromey <tom@tromey.com>
14273
14274 * infcmd.c (default_print_one_register_info): Use
14275 common_val_print.
14276
14277 2020-03-13 Tom Tromey <tom@tromey.com>
14278
14279 * valprint.h (common_val_print_checked): Declare.
14280 * valprint.c (common_val_print_checked): New function.
14281 * stack.c (print_frame_arg): Use common_val_print_checked.
14282
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * valprint.c (do_val_print): New function, from val_print.
14286 (val_print): Use do_val_print.
14287 (common_val_print): Use do_val_print.
14288
14289 2020-03-13 Tom Tromey <tom@tromey.com>
14290
14291 * valprint.c (value_print): Use scoped_value_mark.
14292
14293 2020-03-13 Tom de Vries <tdevries@suse.de>
14294
14295 PR symtab/25646
14296 * psymtab.c (partial_symtab::partial_symtab): Don't set
14297 globals_offset and statics_offset. Push element onto
14298 current_global_psymbols and current_static_psymbols stacks.
14299 (concat): New function.
14300 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14301 element from current_global_psymbols and current_static_psymbols
14302 stacks. Concat popped elements to global_psymbols and
14303 static_symbols.
14304 (add_psymbol_to_list): Use current_global_psymbols and
14305 current_static_psymbols stacks.
14306 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14307 current_static_psymbols fields.
14308
14309 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14310
14311 * corelow.c (sniff_core_bfd): Remove.
14312 (class core_target) <m_core_vec>: Remove.
14313 (core_target::core_target): Update.
14314 (core_file_fns): Remove.
14315 (deprecated_add_core_fns): Remove.
14316 (default_core_sniffer): Remove.
14317 (sniff_core_bfd): Remove.
14318 (default_check_format): Remove.
14319 (gdb_check_format): Remove.
14320 (core_target_open): Update.
14321 (core_target::get_core_register_section): Update.
14322 (get_core_registers_cb): Update.
14323 (core_target::fetch_registers): Update.
14324 * gdbcore.h (struct core_fns): Remove.
14325 (deprecated_add_core_fns): Remove.
14326 (default_core_sniffer): Remove.
14327 (default_check_format): Remove.
14328
14329 2020-03-12 Tom Tromey <tom@tromey.com>
14330
14331 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14332 CORE_ADDR.
14333 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14334
14335 2020-03-12 Tom Tromey <tom@tromey.com>
14336
14337 * remote.c (remote_target::download_tracepoint)
14338 (remote_target::enable_tracepoint)
14339 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14340 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14341 sprintf_vma.
14342
14343 2020-03-12 Tom Tromey <tom@tromey.com>
14344
14345 * symfile-mem.c: Update CORE_ADDR size assert.
14346
14347 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14348
14349 * selftest.m4: Move to gdbsupport/.
14350 * acinclude.m4: Update path to selftest.m4.
14351
14352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14353
14354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14355 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14356 gdbarch-selfselftests.c and selftest-arch.c.
14357 (SUBDIR_UNITTESTS_OBS): Rename to...
14358 (SELFTESTS_OBS): ... this.
14359 (COMMON_SFILES): Remove disasm-selftests.c and
14360 gdbarch-selftests.c.
14361 * configure.ac: Don't add selftest-arch.{c,o} to
14362 CONFIG_{SRCS,OBS}.
14363 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14364 preprocessor conditions.
14365
14366 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * configure.ac: Don't source bfd/development.sh.
14369 * selftest.m4: Modify comment.
14370 * configure: Re-generate.
14371
14372 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14373
14374 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14375 not "true" or "false".
14376 * configure: Re-generate.
14377
14378 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14379
14380 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14381 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14382 renamed to arm_nbsd_supply_gregset.
14383 (fetch_register): Update to call arm_nbsd_supply_gregset.
14384 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14385 (arm_netbsd_nat_target::fetch_registers): Update.
14386 (fetch_elfcore_registers): Removed.
14387 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14388 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14389 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14390 not require NetBSD system headers.
14391 (arm_nbsd_regset): New struct.
14392 (arm_nbsd_iterate_over_regset_sections): New function.
14393 (arm_netbsd_init_abi_common): Updated to call
14394 set_gdbarch_iterate_over_regset_sections.
14395 * arm-nbsd-tdep.h: New file.
14396
14397 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14398
14399 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14400 recursion.
14401
14402 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14403
14404 * configure: Re-generate.
14405
14406 2020-03-11 Tom Tromey <tromey@adacore.com>
14407
14408 * ada-typeprint.c (print_choices): Fix comment.
14409
14410 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14411
14412 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14413 previous item in the list, when the list has no items.
14414
14415 2020-03-11 Tom de Vries <tdevries@suse.de>
14416
14417 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14418 PROP_LOCLIST handling code.
14419
14420 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14421
14422 * buildsym-legacy.c (record_line): Pass extra parameter to
14423 record_line.
14424 * buildsym.c (buildsym_compunit::record_line): Take an extra
14425 parameter, reduce duplication in the line table, and record the
14426 is_stmt flag in the line table.
14427 * buildsym.h (buildsym_compunit::record_line): Add extra
14428 parameter.
14429 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14430 non-statement lines.
14431 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14432 this to the symtab builder.
14433 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14434 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14435 through to dwarf_record_line_1.
14436 * infrun.c (process_event_stop_test): When stepping, don't stop at
14437 a non-statement instruction, and only refresh the step info when
14438 we land in the middle of a line's range. Also add an extra
14439 comment.
14440 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14441 field.
14442 * record-btrace.c (btrace_find_line_range): Only record lines
14443 marked as is-statement.
14444 * stack.c (frame_show_address): Show the frame address if we are
14445 in a non-statement sal.
14446 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14447 (maintenance_print_one_line_table): Print a header for the is_stmt
14448 column, and include is_stmt information in the output.
14449 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14450 preference to non-statements.
14451 (find_pcs_for_symtab_line): Prefer is-statement entries.
14452 (find_line_common): Likewise.
14453 * symtab.h (struct linetable_entry): Add is_stmt field.
14454 (struct symtab_and_line): Likewise.
14455 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14456 arranging the line table.
14457
14458 2020-03-07 Tom de Vries <tdevries@suse.de>
14459
14460 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14461 DIE.
14462
14463 2020-03-07 Tom Tromey <tom@tromey.com>
14464
14465 * valops.c (value_literal_complex): Remove obsolete comment.
14466 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14467 comment.
14468
14469 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14470
14471 * infrun.h: Forward-declare thread_info.
14472 (set_step_info): Add thread_info parameter, add doc.
14473 * infrun.c (set_step_info): Add thread_info parameter, move doc
14474 to header.
14475 * infrun.c (process_event_stop_test): Pass thread to
14476 set_step_info call.
14477 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14478 set_step_info.
14479 (prepare_one_step): Add thread_info parameter, pass it to
14480 set_step_frame and prepare_one_step (recursive) call.
14481 (step_1): Pass thread to prepare_one_step call.
14482 (step_command_fsm::should_stop): Pass thread to
14483 prepare_one_step.
14484 (until_next_fsm): Pass thread to set_step_frame call.
14485 (finish_command): Pass thread to set_step_info call.
14486
14487 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14488
14489 * windows-tdep.c (windows_solib_create_inferior_hook):
14490 Check if inferior is running.
14491
14492 2020-03-06 Tom de Vries <tdevries@suse.de>
14493
14494 * NEWS: Fix "the the".
14495 * ctfread.c: Same.
14496
14497 2020-03-06 Tom de Vries <tdevries@suse.de>
14498
14499 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14500
14501 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14502
14503 * .dir-locals.el: Add a comment referencing the other copies of
14504 this file.
14505
14506 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14507
14508 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14509 psargs.
14510
14511 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14512
14513 * .gitattributes: New file.
14514
14515 2020-03-04 Tom Tromey <tom@tromey.com>
14516
14517 * symmisc.c (print_symbol_bcache_statistics)
14518 (print_objfile_statistics): Update.
14519 * symfile.c (allocate_symtab): Use intern.
14520 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14521 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14522 macro_cache>: Remove.
14523 <string_cache>: New member.
14524 (struct objfile) <intern>: New methods.
14525 * elfread.c (elf_symtab_read): Use intern.
14526 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14527 (dwarf2_compute_name, dwarf2_physname)
14528 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14529 names.
14530 (guess_partial_die_structure_name): Update.
14531 (partial_die_info::fixup): Intern name.
14532 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14533 name.
14534 (dwarf2_name): Intern name. Update.
14535 * buildsym.c (buildsym_compunit::get_macro_table): Use
14536 string_cache.
14537
14538 2020-03-04 Tom Tromey <tom@tromey.com>
14539
14540 * jit.c (bfd_open_from_target_memory): Make "target" const.
14541 * corefile.c (gnutarget): Now const.
14542 * gdbcore.h (gnutarget): Now const.
14543
14544 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14545
14546 * NEWS: Mention support for WOW64 processes.
14547 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14548 (amd64_windows_segment_register_p): Remove static.
14549 (_initialize_amd64_windows_nat): Update.
14550 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14551 * i386-windows-nat.c (context_offset): Update.
14552 (i386_mappings): Rename and remove static.
14553 (i386_windows_segment_register_p): Remove static.
14554 (_initialize_i386_windows_nat): Update.
14555 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14556 (STATUS_WX86_SINGLE_STEP): New macro.
14557 (EnumProcessModulesEx): New macro.
14558 (Wow64SuspendThread): New macro.
14559 (Wow64GetThreadContext): New macro.
14560 (Wow64SetThreadContext): New macro.
14561 (Wow64GetThreadSelectorEntry): New macro.
14562 (windows_set_context_register_offsets): Add static.
14563 (windows_set_segment_register_p): Likewise.
14564 (windows_add_thread): Adapt for WOW64 processes.
14565 (windows_fetch_one_register): Likewise.
14566 (windows_nat_target::fetch_registers): Likewise.
14567 (windows_store_one_register): Likewise.
14568 (display_selector): Likewise.
14569 (display_selectors): Likewise.
14570 (handle_exception): Likewise.
14571 (windows_continue): Likewise.
14572 (windows_nat_target::resume): Likewise.
14573 (windows_add_all_dlls): Likewise.
14574 (do_initial_windows_stuff): Likewise.
14575 (windows_nat_target::attach): Likewise.
14576 (windows_get_exec_module_filename): Likewise.
14577 (windows_nat_target::create_inferior): Likewise.
14578 (windows_xfer_siginfo): Likewise.
14579 (_initialize_loadable): Initialize Wow64SuspendThread,
14580 Wow64GetThreadContext, Wow64SetThreadContext,
14581 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14582 * windows-nat.h (windows_set_context_register_offsets):
14583 Remove declaration.
14584 (windows_set_segment_register_p): Likewise.
14585 (i386_windows_segment_register_p): Add declaration.
14586 (amd64_windows_segment_register_p): Likewise.
14587
14588 2020-03-04 Luis Machado <luis.machado@linaro.org>
14589
14590 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14591 in "info registers" for AArch64/ARM.
14592
14593 The change caused "info registers" to not print GPR's.
14594
14595 gdb/ChangeLog:
14596
14597 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14598
14599 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14600 when reg->group is empty and reggroup is not.
14601
14602 2020-03-03 Tom Tromey <tromey@adacore.com>
14603
14604 * dwarf2/frame.c (struct dwarf2_frame_cache)
14605 <checked_tailcall_bottom, entry_cfa_sp_offset,
14606 entry_cfa_sp_offset_p>: Remove members.
14607 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14608 (dwarf2_frame_prev_register): Don't call
14609 dwarf2_tailcall_sniffer_first.
14610 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14611 * frame-unwind.c (add_unwinder): New fuction.
14612 (frame_unwind_init): Use it. Add tailcall unwinder.
14613
14614 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14615 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14616
14617 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14618 value should be printed as true.
14619
14620 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14621
14622 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14623 (windows_init_abi): Set and use windows_so_ops.
14624
14625 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14626
14627 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14628 when verifying if dealing with a convenience variable.
14629
14630 2020-03-03 Luis Machado <luis.machado@linaro.org>
14631
14632 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14633
14634 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14635
14636 * infrun.c (gdbarch_supports_displaced_stepping): New.
14637 (use_displaced_stepping): Break up conditions in smaller pieces.
14638 Use gdbarch_supports_displaced_stepping.
14639 (displaced_step_prepare_throw): Use
14640 gdbarch_supports_displaced_stepping.
14641
14642 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14643
14644 * NEWS: Mention new behaviour of the history filename.
14645 * top.c (write_history_p): Add comment.
14646 (show_write_history_p): Add header comment, give a different
14647 message when history writing is on, but the history filename is
14648 empty.
14649 (history_filename): Add comment.
14650 (history_filename_empty): New function.
14651 (show_history_filename): Add header comment, give a different
14652 message when the filename is empty.
14653 (init_history): Compare history_filename against nullptr, and only
14654 read history if the filename is not empty.
14655 (set_history_filename): Add header comment, and only make
14656 non-empty filenames absolute.
14657 (init_main): Make the filename argument to 'set history filename'
14658 optional.
14659
14660 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14661
14662 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14663 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14664 (fetch_fp_register): Update.
14665 (fetch_fp_regs): Update.
14666 (store_fp_register): Update.
14667 (store_fp_regs): Update.
14668 (arm_netbsd_nat_target::read_description): New function.
14669 (fetch_elfcore_registers): Update.
14670
14671 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14672
14673 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14674 general_thread if the stop reply is missing a thread-id.
14675 (remote_target::process_stop_reply): Use the first non-exited
14676 thread if the target didn't pass a thread-id.
14677 * infrun.c (do_target_wait): Move call to
14678 switch_to_inferior_no_thread to ....
14679 (do_target_wait_1): ... here.
14680
14681 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14682
14683 * debuginfod-support.c: Include defs.h first.
14684
14685 2020-02-28 Tom de Vries <tdevries@suse.de>
14686
14687 * symfile.c (set_initial_language): Use default language for lookup.
14688
14689 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14690
14691 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14692 reader variable, pass `this` to read_cutu_die_from_dwo.
14693
14694 2020-02-27 Aaron Merey <amerey@redhat.com>
14695
14696 * source.c (open_source_file): Check for nullptr when computing
14697 srcpath.
14698
14699 2020-02-27 Tom Tromey <tromey@adacore.com>
14700
14701 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14702 member.
14703 (dwarf2_add_field): Don't update nfields.
14704 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14705
14706 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14707
14708 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14709 abs.
14710
14711 2020-02-26 Tom Tromey <tom@tromey.com>
14712
14713 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14714 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14715 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14716 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14717 per_cu_data.
14718
14719 2020-02-26 Tom Tromey <tom@tromey.com>
14720
14721 * dwarf2/index-write.c (psym_index_map): Change type.
14722 (add_address_entry_worker, write_one_signatured_type)
14723 (recursively_count_psymbols, recursively_write_psymbols)
14724 (class debug_names, psyms_seen_size, write_gdbindex)
14725 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14726
14727 2020-02-26 Aaron Merey <amerey@redhat.com>
14728
14729 * Makefile.in: Handle optional debuginfod support.
14730 * NEWS: Update.
14731 * README: Add --with-debuginfod summary.
14732 * config.in: Regenerate.
14733 * configure: Regenerate.
14734 * configure.ac: Handle optional debuginfod support.
14735 * debuginfod-support.c: debuginfod helper functions.
14736 * debuginfod-support.h: Ditto.
14737 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14738 summary.
14739 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14740 when a dwz file cannot be found.
14741 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14742 debuginfo file cannot be found.
14743 * source.c (open_source_file): Query debuginfod servers when a
14744 source file cannot be found.
14745 * top.c (print_gdb_configuration): Include
14746 --{with,without}-debuginfod in the output.
14747
14748 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14749
14750 * thread.c (thr_try_catch_cmd): Print thread name.
14751
14752 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14753
14754 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14756 dwarf2_fetch_die_type_sect_off): Move to...
14757 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14758 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14759 dwarf2_fetch_die_type_sect_off): ... here.
14760 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14762 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14763
14764 2020-02-26 Tom de Vries <tdevries@suse.de>
14765
14766 PR gdb/25603
14767 * symfile.c (set_initial_language): Exit-early if
14768 language_mode == language_mode_manual.
14769
14770 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14771
14772 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14773 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14774 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14775
14776 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14777
14778 * gdbtypes.c (create_array_type_with_stride): Handle negative
14779 array strides.
14780 * valarith.c (value_subscripted_rvalue): Likewise.
14781
14782 2020-02-25 Luis Machado <luis.machado@linaro.org>
14783
14784 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14785
14786 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14787
14788 * loc.h (dwarf2_get_die_type): Move to...
14789 * read.h (dwarf2_get_die_type): ... here.
14790 * read.c (dwarf2_get_die_type): Move doc to header.
14791
14792 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14793
14794 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14795 'gnulib/Makefile.in' to the list.
14796
14797 2020-02-24 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14800 Remove.
14801 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14802 XOBNEWVEC.
14803
14804 2020-02-24 Tom Tromey <tom@tromey.com>
14805
14806 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14807 New method.
14808 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14809 (dw2_do_instantiate_symtab, dw2_get_file_names)
14810 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14811
14812 2020-02-24 Tom Tromey <tom@tromey.com>
14813
14814 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14815 make_scoped_restore.
14816 (dwarf2_psymtab::read_symtab): Don't clear
14817 reading_partial_symbols.
14818
14819 2020-02-24 Tom de Vries <tdevries@suse.de>
14820
14821 PR gdb/25592
14822 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14823
14824 2020-02-24 Tom de Vries <tdevries@suse.de>
14825
14826 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14827 commands layout next/prev/regs.
14828
14829 2020-02-22 Tom Tromey <tom@tromey.com>
14830
14831 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14832 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14833
14834 2020-02-22 Tom Tromey <tom@tromey.com>
14835
14836 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14837
14838 2020-02-22 Tom Tromey <tom@tromey.com>
14839
14840 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14841 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14842 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14843 * tui/tui.c (_initialize_tui): Add usage text.
14844
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14846
14847 * tui/tui-win.c (tui_set_focus_command)
14848 (tui_set_win_height_command): Use error_no_arg.
14849 (_initialize_tui_win): Update help text.
14850 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14851
14852 2020-02-22 Tom Tromey <tom@tromey.com>
14853
14854 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14855 * tui/tui-disasm.h (struct tui_disasm_window)
14856 <display_start_addr>: Declare.
14857 * tui/tui-source.h (struct tui_source_window)
14858 <display_start_addr>: Declare.
14859 * tui/tui-winsource.h (struct tui_source_window_base)
14860 <show_source_line, display_start_addr>: New methods.
14861 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14862 Rename and move to protected section.
14863 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14864 (tui_source_window_base::do_erase_source_content): Update.
14865 (tui_source_window_base::show_source_line): Now a method.
14866 (tui_source_window_base::show_source_content)
14867 (tui_source_window_base::tui_source_window_base)
14868 (tui_source_window_base::rerender)
14869 (tui_source_window_base::refill)
14870 (tui_source_window_base::do_scroll_horizontal)
14871 (tui_source_window_base::set_is_exec_point_at)
14872 (tui_source_window_base::update_breakpoint_info)
14873 (tui_source_window_base::update_exec_info): Update.
14874 * tui/tui-source.c (tui_source_window::set_contents)
14875 (tui_source_window::showing_source_p)
14876 (tui_source_window::do_scroll_vertical)
14877 (tui_source_window::location_matches_p)
14878 (tui_source_window::line_is_displayed): Update.
14879 (tui_source_window::display_start_addr): New method.
14880 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14881 (tui_disasm_window::do_scroll_vertical)
14882 (tui_disasm_window::location_matches_p): Update.
14883 (tui_disasm_window::display_start_addr): New method.
14884
14885 2020-02-22 Tom Tromey <tom@tromey.com>
14886
14887 * NEWS: Add entry for gdb.register_window_type.
14888 * tui/tui-layout.h (window_factory): New typedef.
14889 (tui_register_window): Declare.
14890 * tui/tui-layout.c (saved_tui_windows): New global.
14891 (tui_apply_current_layout): Use it.
14892 (tui_register_window): New function.
14893 * python/python.c (do_start_initialization): Call
14894 gdbpy_initialize_tui.
14895 (python_GdbMethods): Add "register_window_type" function.
14896 * python/python-internal.h (gdbpy_register_tui_window)
14897 (gdbpy_initialize_tui): Declare.
14898 * python/py-tui.c: New file.
14899 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14900
14901 2020-02-22 Tom Tromey <tom@tromey.com>
14902
14903 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14904
14905 2020-02-22 Tom Tromey <tom@tromey.com>
14906
14907 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14908 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14909 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14910 (tui_set_win_focus_to): Move from tui-win.c.
14911
14912 2020-02-22 Tom Tromey <tom@tromey.com>
14913
14914 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14915 functions.
14916 (known_window_types): New global.
14917 (tui_get_window_by_name): Reimplement.
14918 (initialize_known_windows): New function.
14919 (validate_window_name): Rewrite.
14920 (_initialize_tui_layout): Call initialize_known_windows.
14921
14922 2020-02-22 Tom Tromey <tom@tromey.com>
14923
14924 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14925 Remove constants.
14926 * tui/tui-winsource.h (struct tui_source_window_base)
14927 <tui_source_window_base>: Remove parameter.
14928 * tui/tui-winsource.c
14929 (tui_source_window_base::tui_source_window_base): Remove
14930 parameter.
14931 (tui_source_window_base::refill): Update.
14932 * tui/tui-stack.h (struct tui_locator_window)
14933 <tui_locator_window>: Update.
14934 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14935 Default the constructor.
14936 * tui/tui-regs.h (struct tui_data_item_window)
14937 <tui_data_item_window>: Default the constructor.
14938 (struct tui_data_window) <tui_data_window>: Likewise.
14939 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14940 Default the constructor.
14941 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14942 Default the constructor.
14943 <type>: Remove.
14944 (struct tui_win_info) <tui_win_info>: Default the constructor.
14945 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14946 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14947 Default the constructor.
14948
14949 2020-02-22 Tom Tromey <tom@tromey.com>
14950
14951 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14952 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14953 * tui/tui-win.c (tui_resize_all): Don't call
14954 tui_delete_invisible_windows.
14955 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14956 done.
14957 (tui_set_layout): Update.
14958 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14959 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14960 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14961
14962 2020-02-22 Tom Tromey <tom@tromey.com>
14963
14964 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14965 correctly.
14966
14967 2020-02-22 Tom Tromey <tom@tromey.com>
14968
14969 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14970
14971 2020-02-22 Tom Tromey <tom@tromey.com>
14972
14973 * tui/tui-winsource.h (struct tui_source_window_iterator)
14974 <inner_iterator>: New etytypedef.
14975 <tui_source_window_iterator>: Take "end" parameter.
14976 <tui_source_window_iterator>: Take iterator.
14977 <operator*, advance>: Update.
14978 <m_iter>: Change type.
14979 <m_end>: New field.
14980 (struct tui_source_windows) <begin, end>: Update.
14981 * tui/tui-layout.c (tui_windows): New global.
14982 (tui_apply_current_layout): Clear tui_windows.
14983 (tui_layout_window::apply): Update tui_windows.
14984 * tui/tui-data.h (tui_windows): Declare.
14985 (all_tui_windows): Now inline function.
14986 (class tui_window_iterator, struct all_tui_windows): Remove.
14987
14988 2020-02-22 Tom Tromey <tom@tromey.com>
14989
14990 PR tui/17850:
14991 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14992 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14993 "height" argument.
14994 (class tui_layout_window) <get_sizes>: Likewise.
14995 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14996 argument.
14997 <get_sizes>: Add "height" argument.
14998 <m_vertical>: New field.
14999 * tui/tui-layout.c (tui_layout_split::clone): Update.
15000 (tui_layout_split::get_sizes): Add "height" argument.
15001 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15002 (tui_new_layout_command): Parse "-horizontal".
15003 (_initialize_tui_layout): Update help string.
15004 (tui_layout_split::specification): Add "-horizontal" when needed.
15005 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15006 argument.
15007 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15008 New methods.
15009
15010 2020-02-22 Tom Tromey <tom@tromey.com>
15011
15012 * tui/tui-layout.h (enum tui_adjust_result): New.
15013 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15014 (class tui_layout_window) <adjust_size>: Return
15015 tui_adjust_result. Rewrite.
15016 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15017 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15018
15019 2020-02-22 Tom Tromey <tom@tromey.com>
15020
15021 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15022 parameter and return types.
15023 (class tui_layout_base) <specification>: Add "depth".
15024 (class tui_layout_window) <specification>: Add "depth".
15025 (class tui_layout_split) <specification>: Add "depth".
15026 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15027 and return types.
15028 (tui_new_layout_command): Parse sub-layouts.
15029 (_initialize_tui_layout): Update help string.
15030 (tui_layout_window::specification): Add "depth".
15031 (add_layout_command): Update.
15032
15033 2020-02-22 Tom Tromey <tom@tromey.com>
15034
15035 * NEWS: Add "tui new-layout" item.
15036 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15037 Add new-layout command to help text.
15038 (validate_window_name): New function.
15039 (tui_new_layout_command): New function.
15040 (_initialize_tui_layout): Register "new-layout".
15041 (tui_layout_window::specification): New method.
15042 (tui_layout_window::specification): New method.
15043 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15044 method.
15045 (class tui_layout_window) <specification>: New method.
15046 (class tui_layout_split) <specification>: New method.
15047
15048 2020-02-22 Tom Tromey <tom@tromey.com>
15049
15050 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15051 * tui/tui-win.c (window_name_completer): Update comment.
15052 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15053 Declare method.
15054 (class tui_layout_window) <replace_window>: Likewise.
15055 (class tui_layout_split) <replace_window>: Likewise.
15056 (tui_set_layout): Don't declare.
15057 (tui_set_initial_layout): Declare function.
15058 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15059 (asm_regs_layout): New globals.
15060 (tui_current_layout, show_layout): Remove.
15061 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15062 (find_layout, tui_apply_layout): New function.
15063 (layout_completer): Remove.
15064 (tui_next_layout): Reimplement.
15065 (tui_next_layout_command): New function.
15066 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15067 (tui_regs_layout): Reimplement.
15068 (tui_regs_layout_command): New function.
15069 (extract_display_start_addr): Rewrite.
15070 (next_layout, prev_layout): Remove.
15071 (tui_layout_window::replace_window): New method.
15072 (tui_layout_split::replace_window): New method.
15073 (destroy_layout): New function.
15074 (layout_list): New global.
15075 (add_layout_command): New function.
15076 (initialize_layouts): Update.
15077 (tui_layout_command): New function.
15078 (_initialize_tui_layout): Install "layout" commands.
15079 * tui/tui-data.h (enum tui_layout_type): Remove.
15080 (tui_current_layout): Don't declare.
15081
15082 2020-02-22 Tom Tromey <tom@tromey.com>
15083
15084 * tui/tui-regs.c (tui_reg_layout): Remove.
15085 (tui_reg_command): Use tui_regs_layout.
15086 * tui/tui-layout.h (tui_reg_command): Declare.
15087 * tui/tui-layout.c (tui_reg_command): New function.
15088
15089 2020-02-22 Tom Tromey <tom@tromey.com>
15090
15091 * tui/tui.c (tui_rl_delete_other_windows): Call
15092 tui_remove_some_windows.
15093 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15094 Declare method.
15095 (class tui_layout_window) <remove_windows>: New method.
15096 (class tui_layout_split) <remove_windows>: Declare.
15097 (tui_remove_some_windows): Declare.
15098 * tui/tui-layout.c (tui_remove_some_windows): New function.
15099 (tui_layout_split::remove_windows): New method.
15100
15101 2020-02-22 Tom Tromey <tom@tromey.com>
15102
15103 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15104 * tui/tui-layout.h (tui_next_layout): Declare.
15105 * tui/tui-layout.c (tui_next_layout): New function.
15106
15107 2020-02-22 Tom Tromey <tom@tromey.com>
15108
15109 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15110 correct coordinates.
15111
15112 2020-02-22 Tom Tromey <tom@tromey.com>
15113
15114 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15115 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15116 DATA_WIN case.
15117
15118 2020-02-22 Tom Tromey <tom@tromey.com>
15119
15120 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15121 TUI_DISASM_WIN, not tui_win_list.
15122
15123 2020-02-22 Tom Tromey <tom@tromey.com>
15124
15125 * valprint.c (generic_val_print_enum_1)
15126 (val_print_type_code_flags): Style member names.
15127 * rust-lang.c (val_print_struct, rust_print_enum)
15128 (rust_print_struct_def, rust_internal_print_type): Style member
15129 names.
15130 * p-valprint.c (pascal_object_print_value_fields): Style member
15131 names. Only call fprintf_symbol_filtered for static members.
15132 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15133 * f-valprint.c (f_val_print): Style member names.
15134 * f-typeprint.c (f_type_print_base): Style member names.
15135 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15136 call fprintf_symbol_filtered for static members.
15137 (cp_print_class_member): Style member names.
15138 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15139 member names.
15140 * ada-valprint.c (ada_print_scalar): Style enum names.
15141 (ada_val_print_enum): Likewise.
15142 * ada-typeprint.c (print_enum_type): Style enum names.
15143
15144 2020-02-21 Tom Tromey <tom@tromey.com>
15145
15146 * psympriv.h (struct partial_symtab): Update comment.
15147
15148 2020-02-21 Tom Tromey <tromey@adacore.com>
15149
15150 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15151 type is CORE_ADDR.
15152
15153 2020-02-21 Tom de Vries <tdevries@suse.de>
15154
15155 PR gdb/25534
15156 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15157 if dependencies[i]->user != NULL.
15158
15159 2020-02-21 Ali Tamur <tamur@google.com>
15160
15161 * dwarf2/read.c (dwarf2_name): Add null check.
15162
15163 2020-02-20 Tom Tromey <tom@tromey.com>
15164
15165 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15166 ">=", in binary search.
15167 (dwarf2_find_containing_comp_unit): New overload.
15168 (run_test): New self-test.
15169 (_initialize_dwarf2_read): Register new test.
15170
15171 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15172
15173 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15174 * riscv-tdep.h: Likewise.
15175 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15176 rv32-only CSR.
15177 * features/riscv/64bit-csr.xml: Regenerated.
15178
15179 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15180 Tom Tromey <tom@tromey.com>
15181
15182 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15183 of 'fputc_unfiltered'.
15184 (putchar_unfiltered): Call 'fputc_unfiltered'.
15185 (fputc_unfiltered): Call 'fputs_unfiltered'.
15186
15187 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15188
15189 * config.in: Regenerate.
15190 * configure: Regenerate.
15191 * configure.ac: Add --with-python-libdir option.
15192 * main.c: Use WITH_PYTHON_LIBDIR.
15193
15194 2020-02-19 Tom Tromey <tom@tromey.com>
15195
15196 * symtab.c (general_symbol_info::compute_and_set_names): Use
15197 obstack_strndup. Simplify call to symbol_set_demangled_name.
15198
15199 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15200
15201 * dwarf2/read.c (allocate_signatured_type_table,
15202 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15203 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15204 Remove objfile parameter, update all callers.
15205
15206 2020-02-19 Doug Evans <dje@google.com>
15207
15208 PR rust/25535
15209 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15210 rust_enum_variant calculation.
15211
15212 2020-02-19 Tom Tromey <tromey@adacore.com>
15213
15214 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15215
15216 2020-02-19 Tom Tromey <tromey@adacore.com>
15217
15218 * ada-lang.c (cache_symbol): Use obstack_strdup.
15219
15220 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15221
15222 * configure: Regenerate.
15223
15224 2020-02-19 Tom Tromey <tromey@adacore.com>
15225
15226 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15227 NULL check.
15228
15229 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15230
15231 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15232
15233 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15234
15235 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15236 if GDBSERVER is not defined.
15237 (riscv_tdesc_cache): Likewise, also store const target_desc.
15238 (STATIC_IN_GDB): Define.
15239 (riscv_create_target_description): Update declaration with
15240 STATIC_IN_GDB.
15241 (riscv_lookup_target_description): New function, only define if
15242 GDBSERVER is not defined.
15243 * arch/riscv.h (riscv_create_target_description): Declare only
15244 when GDBSERVER is defined.
15245 (riscv_lookup_target_description): New declaration when GDBSERVER
15246 is not defined.
15247 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15248 (riscv_linux_read_features): ...this, and return
15249 riscv_gdbarch_features instead of target_desc.
15250 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15251 (riscv_linux_read_description): Rename to...
15252 (riscv_linux_read_features): ...this.
15253 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15254 Update to use riscv_gdbarch_features and
15255 riscv_lookup_target_description.
15256 * riscv-tdep.c (riscv_find_default_target_description): Use
15257 riscv_lookup_target_description instead of
15258 riscv_create_target_description.
15259
15260 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15261
15262 * valprint.c (generic_val_print_enum_1): When printing a flag
15263 enum with value 0 and there is no enumerator with value 0, print
15264 just "0" instead of "(unknown: 0x0)".
15265
15266 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15267
15268 * valprint.c (generic_val_print_enum_1): Print unknown part of
15269 flag enum in hex.
15270
15271 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15272
15273 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15274 flag enums to contain duplicate enumerators.
15275 * valprint.c (generic_val_print_enum_1): Update comment.
15276
15277 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15278
15279 * dwarf2/read.c: Include "count-one-bits.h".
15280 (update_enumeration_type_from_children): If an enumerator has
15281 multiple bits set, don't treat the enumeration as a "flag enum".
15282 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15283 of flag enums have 0 or 1 bit set.
15284
15285 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15286
15287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15288 conversion.
15289 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15291 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15293 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15294
15295 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15296
15297 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15298
15299 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15300
15301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15302 displaced_step_closure_up.
15303 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15304 (struct displaced_step_closure_up):
15305 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15306 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15307 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15308 Likewise.
15309 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15310 * gdbarch.c, gdbarch.h: Re-generate.
15311 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15312 displaced_step_closure_up.
15313 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15314 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15315 * infrun.h (displaced_step_closure_up): New type alias.
15316 (struct displaced_step_inferior_state) <step_closure>: Change
15317 type to displaced_step_closure_up.
15318 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15319 displaced_step_closure_up.
15320 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15321
15322 2020-02-14 Tom Tromey <tom@tromey.com>
15323
15324 * minidebug.c (gnu_debug_key): New global.
15325 (find_separate_debug_file_in_section): Use it.
15326
15327 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15328
15329 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15330 std::unique_ptr.
15331 * gdbarch.c: Re-generate.
15332 * gdbarch.h: Re-generate.
15333 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15334 change.
15335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15336 type to std::unique_ptr.
15337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15338 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15339 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15340 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15341 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15342 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15343 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15344 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15345 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15346
15347 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15348
15349 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15350 std::unique_ptr.
15351 (displaced_step_clear): Rename to...
15352 (displaced_step_reset): ... this. Just call displaced->reset ().
15353 (displaced_step_clear_cleanup): Rename to...
15354 (displaced_step_reset_cleanup): ... this.
15355 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15356 (displaced_step_fixup): Likewise.
15357 (resume_1): Likewise.
15358 (handle_inferior_event): Restore child's memory before calling
15359 displaced_step_fixup on the parent.
15360 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15361 to std::unique_ptr.
15362 <step_closure>: Change type to std::unique_ptr.
15363
15364 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15365
15366 * arm-tdep.c: Include count-one-bits.h.
15367 (cleanup_block_store_pc): Use count_one_bits.
15368 (cleanup_block_load_pc): Use count_one_bits.
15369 (arm_copy_block_xfer): Use count_one_bits.
15370 (thumb2_copy_block_xfer): Use count_one_bits.
15371 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15372 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15373 (thumb_get_next_pcs_raw): Use count_one_bits.
15374 (arm_get_next_pcs_raw): Use count_one_bits_l.
15375 * arch/arm.c (bitcount): Remove.
15376 * arch/arm.h (bitcount): Remove.
15377
15378 2020-02-14 Tom Tromey <tromey@adacore.com>
15379
15380 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15381 Update.
15382 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15383 * dwarf2/loc.c (call_site_find_chain_1): Return
15384 unique_xmalloc_ptr.
15385 (call_site_find_chain): Likewise.
15386
15387 2020-02-14 Richard Biener <rguenther@suse.de>
15388
15389 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15390 on expression with division operators.
15391
15392 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15393
15394 * MAINTAINERS (Write After Approval): Adding myself.
15395
15396 2020-02-12 Tom Tromey <tom@tromey.com>
15397
15398 * event-loop.c (event_data, gdb_event, event_handler_func):
15399 Remove.
15400
15401 2020-02-12 Tom Tromey <tom@tromey.com>
15402
15403 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15404 (dwarf2_frame_objfile_data): Add comment.
15405 (find_comp_unit, set_comp_unit): New functions.
15406 (dwarf2_frame_find_fde): Use find_comp_unit.
15407 (dwarf2_build_frame_info): Use set_comp_unit.
15408
15409 2020-02-12 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15412 (comp_unit): Don't initialize objfile.
15413 (execute_cfa_program): Add text_offset parameter.
15414 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15415 (dwarf2_frame_cache): Update.
15416 (dwarf2_build_frame_info): Don't set "objfile" member.
15417
15418 2020-02-12 Tom Tromey <tom@tromey.com>
15419
15420 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15421 (decode_frame_entry): Likewise.
15422 (dwarf2_build_frame_info): Update.
15423
15424 2020-02-12 Tom Tromey <tom@tromey.com>
15425
15426 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15427 (decode_frame_entry_1): Use the comp_unit obstack.
15428
15429 2020-02-12 Tom Tromey <tom@tromey.com>
15430
15431 * dwarf2/frame.c (struct comp_unit): Add initializers and
15432 constructor.
15433 (dwarf2_frame_objfile_data): Store a comp_unit.
15434 (dwarf2_frame_find_fde): Update.
15435 (dwarf2_build_frame_info): Use "new".
15436
15437 2020-02-12 Tom Tromey <tom@tromey.com>
15438
15439 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15440 (dwarf2_fde_table): Typedef for std::vector.
15441 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15442 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15443 (decode_frame_entry): Update.
15444 (dwarf2_build_frame_info): Use "new".
15445
15446 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15447
15448 * arm-tdep.c (arm_gdbarch_init): Update.
15449 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15450 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15451 have_neon, is_m>: Change to bool.
15452
15453 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15454
15455 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15456
15457 2020-02-12 Tom Tromey <tom@tromey.com>
15458
15459 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15460
15461 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15462
15463 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15464 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15465
15466 2020-02-11 Tom Tromey <tom@tromey.com>
15467
15468 * psymtab.h: Update comment.
15469
15470 2020-02-11 Tom Tromey <tom@tromey.com>
15471
15472 * gdb_obstack.h (struct auto_obstack): Use
15473 DISABLE_COPY_AND_ASSIGN.
15474
15475 2020-02-11 Tom Tromey <tom@tromey.com>
15476
15477 * dwarf2/frame.h (struct objfile): Don't forward declare.
15478
15479 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15480
15481 * cris-tdep.c (cris_supply_gregset): Change signature to match
15482 what struct regset expects.
15483 (cris_regset): New struct.
15484 (fetch_core_registers): Remove.
15485 (cris_iterate_over_regset_sections): New function.
15486 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15487 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15488
15489 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15490
15491 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15492 registers.
15493
15494 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15495
15496 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15497
15498 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15499
15500 * configure: Re-generate.
15501
15502 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15503
15504 * configure: Re-generate.
15505
15506 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15507
15508 * acinclude: Update warning.m4 path.
15509 * warning.m4: Move to gdbsupport.
15510
15511 2020-02-11 Tom Tromey <tromey@adacore.com>
15512
15513 * remote.c (remote_console_output): Update.
15514 * printcmd.c (printf_command): Update.
15515 * event-loop.c (gdb_wait_for_event): Update.
15516 * linux-nat.c (sigchld_handler): Update.
15517 * remote-sim.c (gdb_os_write_stdout): Update.
15518 (gdb_os_flush_stdout): Update.
15519 (gdb_os_flush_stderr): Update.
15520 (gdb_os_write_stderr): Update.
15521 * exceptions.c (print_exception): Update.
15522 * remote-fileio.c (remote_fileio_func_read): Update.
15523 (remote_fileio_func_write): Update.
15524 * tui/tui.c (tui_enable): Update.
15525 * tui/tui-interp.c (tui_interp::init): Update.
15526 * utils.c (init_page_info): Update.
15527 (putchar_unfiltered, fputc_unfiltered): Update.
15528 (gdb_flush): Update.
15529 (emit_style_escape): Update.
15530 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15531 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15532 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15533 (stderr_file::write): Update.
15534 (stderr_file::puts): Update.
15535 * ui-file.h (ui_file_isatty, ui_file_write)
15536 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15537 (ui_file_puts): Don't declare.
15538
15539 2020-02-10 Tom de Vries <tdevries@suse.de>
15540
15541 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15542 sentinel to char *.
15543
15544 2020-02-09 Tom de Vries <tdevries@suse.de>
15545
15546 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15547 filename if it matches "<artificial>".
15548
15549 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15550
15551 * windows-tdep.c (struct enum_value_name): New struct.
15552 (create_enum): New function.
15553 (windows_get_siginfo_type): Create and use enum types.
15554
15555 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15556
15557 * NEWS: Mention $_siginfo support for Windows.
15558 * windows-nat.c (handle_exception): Set siginfo_er.
15559 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15560 (windows_xfer_siginfo): New function.
15561 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15562 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15563 (init_windows_gdbarch_data): New function.
15564 (get_windows_gdbarch_data): New function.
15565 (windows_get_siginfo_type): New function.
15566 (windows_init_abi): Register windows_get_siginfo_type.
15567 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15568
15569 2020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15572 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15573 <keep>: Declare method.
15574 <m_keep>: Remove member.
15575 <~cutu_reader>: Remove.
15576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15577 (cutu_reader::cutu_reader): Update.
15578 (cutu_reader::keep): Rename from ~cutu_reader.
15579 (process_psymtab_comp_unit, build_type_psymtabs_1)
15580 (process_skeletonless_type_unit, load_partial_comp_unit)
15581 (load_full_comp_unit, dwarf2_read_addr_index)
15582 (read_signatured_type): Update.
15583
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15587 "want_partial_unit" parameter.
15588 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15589 Inline check for DW_TAG_partial_unit.
15590 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15591
15592 2020-02-08 Tom Tromey <tom@tromey.com>
15593
15594 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15595 read.c.
15596 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15597 read.c.
15598
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2/read.c (read_address): Move to comp-unit.c.
15602 (dwarf2_rnglists_process, dwarf2_ranges_process)
15603 (read_attribute_value, dwarf_decode_lines_1)
15604 (var_decode_location, decode_locdesc): Update.
15605 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15606 read.c. Remove "cu" parameter.
15607 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15608 method.
15609
15610 2020-02-08 Tom Tromey <tom@tromey.com>
15611
15612 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15613 (read_indirect_line_string): Update.
15614 * dwarf2/comp-unit.c (read_offset): Remove.
15615 (read_comp_unit_head): Update.
15616 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15617 method.
15618 (read_offset): Don't declare.
15619
15620 2020-02-08 Tom Tromey <tom@tromey.com>
15621
15622 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15623 * dwarf2/read.c (struct comp_unit_head): Move to
15624 dwarf2/comp-unit.h.
15625 (enum class rcuh_kind): Move to comp-unit.h.
15626 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15627 (read_comp_unit_head, error_check_comp_unit_head)
15628 (read_and_check_comp_unit_head): Move to comp-unit.c.
15629 (read_offset, dwarf_unit_type_name): Likewise.
15630 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15631 (cutu_reader::cutu_reader, read_call_site_scope)
15632 (find_partial_die, follow_die_offset): Update.
15633 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15634
15635 2020-02-08 Tom Tromey <tom@tromey.com>
15636
15637 * dwarf2/read.c (read_offset_1): Move to leb.c.
15638 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15639 (dwarf_decode_macro_bytes): Update.
15640 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15641 * dwarf2/leb.h (read_offset): Declare.
15642
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2/read.c (dwarf2_section_size): Remove.
15646 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15647 Update.
15648 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15649
15650 2020-02-08 Tom Tromey <tom@tromey.com>
15651
15652 * dwarf2/read.c (read_initial_length): Move to leb.c.
15653 * dwarf2/leb.h (read_initial_length): Declare.
15654 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15655 handle_nonstd parameter.
15656 * dwarf2/frame.c (read_initial_length): Remove.
15657 (decode_frame_entry_1): Update.
15658
15659 2020-02-08 Tom Tromey <tom@tromey.com>
15660
15661 * dwarf2/loc.c (dwarf2_find_location_expression)
15662 (dwarf_evaluate_loc_desc::get_tls_address)
15663 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15664 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15665 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15666 (dwarf2_compile_property_to_c)
15667 (dwarf2_loc_desc_get_symbol_read_needs)
15668 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15669 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15670 (loclist_describe_location, loclist_tracepoint_var_ref)
15671 (loclist_generate_c_location): Update.
15672 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15673 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15674 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15675 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15676 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15677 (dwarf2_per_cu_data::addr_size)
15678 (dwarf2_per_cu_data::ref_addr_size)
15679 (dwarf2_per_cu_data::text_offset)
15680 (dwarf2_per_cu_data::addr_type): Now methods.
15681 (per_cu_header_read_in): Make per_cu "const".
15682 (dwarf2_version): Remove.
15683 (dwarf2_per_cu_data::int_type): Now a method.
15684 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15685 (set_die_type, read_array_type, read_subrange_index_type)
15686 (read_tag_string_type, read_subrange_type): Update.
15687 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15688 offset_size, ref_addr_size, text_offset, addr_type, version,
15689 objfile, int_type, addr_sized_int_type>: Declare methods.
15690
15691 2020-02-08 Tom Tromey <tom@tromey.com>
15692
15693 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15694 Move earlier.
15695
15696 2020-02-08 Tom Tromey <tom@tromey.com>
15697
15698 * dwarf2/read.h (dwarf_line_debug): Declare.
15699 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15700 * dwarf2/read.c: Move line_header code to new files.
15701 (dwarf_line_debug): No longer static.
15702 * dwarf2/line-header.c: New file.
15703 * dwarf2/line-header.h: New file.
15704
15705 2020-02-08 Tom Tromey <tom@tromey.com>
15706
15707 * dwarf2/read.c (struct line_header) <file_full_name,
15708 file_file_name>: Return unique_xmalloc_ptr.
15709 (line_header::file_file_name): Update.
15710 (line_header::file_full_name): Update.
15711 (dw2_get_file_names_reader): Update.
15712 (macro_start_file): Update.
15713
15714 2020-02-08 Tom Tromey <tom@tromey.com>
15715
15716 * dwarf2/read.c (struct line_header) <file_full_name,
15717 file_file_name>: Declare methods.
15718 (dw2_get_file_names_reader): Update.
15719 (file_file_name): Now a method.
15720 (file_full_name): Likewise.
15721 (macro_start_file): Update.
15722
15723 2020-02-08 Tom Tromey <tom@tromey.com>
15724
15725 * dwarf2/read.c (dwarf_always_disassemble)
15726 (show_dwarf_always_disassemble): Move to loc.c.
15727 (_initialize_dwarf2_read): Move "always-disassemble" registration
15728 to loc.c.
15729 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15730 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15731 static.
15732 (show_dwarf_always_disassemble): Move from read.c.
15733 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15734
15735 2020-02-08 Tom Tromey <tom@tromey.com>
15736
15737 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15738 (create_quick_file_names_table): Return htab_up.
15739 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15740 Update.
15741 * dwarf2/read.h (struct dwarf2_per_objfile)
15742 <quick_file_names_table>: Now htab_up.
15743
15744 2020-02-08 Tom Tromey <tom@tromey.com>
15745
15746 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15747
15748 2020-02-08 Tom Tromey <tom@tromey.com>
15749
15750 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15751 Rewrite.
15752 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15753 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15754 (abbrev_table::abbrev_table): No longer inline.
15755 (ABBREV_HASH_SIZE): Remove.
15756 (abbrev_table::m_abbrevs): Now an htab_up.
15757
15758 2020-02-08 Tom Tromey <tom@tromey.com>
15759
15760 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15761 (cutu_reader): Update.
15762 (build_type_psymtabs_1): Update.
15763 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15764 (abbrev_table::alloc_abbrev): Update.
15765 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15766 (abbrev_table::read): New static method, renamed from
15767 abbrev_table_read_table.
15768 (abbrev_table::alloc_abbrev)
15769 (abbrev_table::add_abbrev): Now private.
15770 (abbrev_table::abbrev_table): Now private.
15771 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15772
15773 2020-02-08 Tom Tromey <tom@tromey.com>
15774
15775 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15776 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15777 htab_up.
15778
15779 2020-02-08 Tom Tromey <tom@tromey.com>
15780
15781 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15782 htab_up.
15783 (lookup_dwo_unit_in_dwp): Update.
15784 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15785 on obstack.
15786
15787 2020-02-08 Tom Tromey <tom@tromey.com>
15788
15789 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15790 obstack.
15791
15792 2020-02-08 Tom Tromey <tom@tromey.com>
15793
15794 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15795 line_header_hash.
15796 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15797 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15798 Change type to htab_up.
15799
15800 2020-02-08 Tom Tromey <tom@tromey.com>
15801
15802 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15803 htab_up. Don't allocate on obstack.
15804 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15805 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15806 Change type to htab_up.
15807
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15811 Change type to htab_up.
15812 * dwarf2/read.c (create_signatured_type_table_from_index)
15813 (create_signatured_type_table_from_debug_names)
15814 (create_all_type_units, add_type_unit)
15815 (lookup_dwo_signatured_type, lookup_signatured_type)
15816 (process_skeletonless_type_unit): Update.
15817 (create_debug_type_hash_table, create_debug_types_hash_table):
15818 Change type of types_htab.
15819 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15820 htab_up. Don't allocate on obstack.
15821 (create_cus_hash_table): Change type of cus_htab parameter.
15822 (struct dwo_file) <cus, tus>: Now htab_up.
15823 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15824 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15825 (queue_and_load_all_dwo_tus): Update.
15826 * dwarf2/index-write.c (write_gdbindex): Update.
15827 (write_debug_names): Update.
15828
15829 2020-02-08 Tom Tromey <tom@tromey.com>
15830
15831 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15832 dwarf2/read.c. Remove "next" member. Add constructor ntad
15833 destructor.
15834 (struct dwarf2_per_objfile) <queue>: New member.
15835 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15836 dwarf2/read.h.
15837 (dwarf2_queue, dwarf2_queue_tail): Remove.
15838 (class dwarf2_queue_guard): Add parameter to constructor. Use
15839 DISABLE_COPY_AND_ASSIGN.
15840 <m_per_objfile>: New member.
15841 <~dwarf2_queue_guard>: Rewrite.
15842 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15843 Update.
15844 (~dwarf2_queue_item): New.
15845
15846 2020-02-08 Tom Tromey <tom@tromey.com>
15847
15848 * dwarf2/read.c (struct die_info) <has_children>: New member.
15849 (dw2_get_file_names_reader): Remove has_children.
15850 (dw2_get_file_names): Update.
15851 (read_cutu_die_from_dwo): Remove has_children.
15852 (cutu_reader::init_tu_and_read_dwo_dies)
15853 (cutu_reader::cutu_reader): Update.
15854 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15855 Remove has_children.
15856 (build_type_psymtabs_1, process_skeletonless_type_unit)
15857 (load_partial_comp_unit, load_full_comp_unit): Update.
15858 (create_dwo_cu_reader): Remove has_children.
15859 (create_cus_hash_table, read_die_and_children): Update.
15860 (read_full_die_1,read_full_die): Remove has_children.
15861 (read_signatured_type): Update.
15862 (class cutu_reader) <has_children>: Remove.
15863
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15865
15866 * dwarf2/expr.c: Rename from dwarf2expr.c.
15867 * dwarf2/expr.h: Rename from dwarf2expr.h.
15868 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15869 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15870 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15871 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15872 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15873 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15874 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15875 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15876 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15877 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15878 * dwarf2/loc.c: Rename from dwarf2loc.c.
15879 * dwarf2/loc.h: Rename from dwarf2loc.h.
15880 * dwarf2/read.c: Rename from dwarf2read.c.
15881 * dwarf2/read.h: Rename from dwarf2read.h.
15882 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15883 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15884 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15885 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15886 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15887 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15888 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15889 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15890 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15891 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15892 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15893 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15894 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15895 Update.
15896 * Makefile.in (COMMON_SFILES): Update.
15897 (HFILES_NO_SRCDIR): Update.
15898
15899 2020-02-08 Tom Tromey <tom@tromey.com>
15900
15901 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15902 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15903
15904 2020-02-08 Tom Tromey <tom@tromey.com>
15905
15906 * dwarf2read.h (struct die_info): Don't declare.
15907
15908 2020-02-08 Tom Tromey <tom@tromey.com>
15909
15910 * dwarf2read.h (die_info_ptr): Remove typedef.
15911
15912 2020-02-08 Tom Tromey <tom@tromey.com>
15913
15914 * dwarf2read.c (read_call_site_scope)
15915 (handle_data_member_location, dwarf2_add_member_fn)
15916 (mark_common_block_symbol_computed, read_common_block)
15917 (attr_to_dynamic_prop, partial_die_info::read)
15918 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15919 (dwarf2_symbol_mark_computed, set_die_type): Update.
15920 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15921 method.
15922 (attr_form_is_block): Don't declare.
15923 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15924
15925 2020-02-08 Tom Tromey <tom@tromey.com>
15926
15927 * dwarf2read.c (dwarf2_find_base_address, )
15928 (read_call_site_scope, rust_containing_type)
15929 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15930 (handle_data_member_location, dwarf2_add_member_fn)
15931 (get_alignment, read_structure_type, process_structure_scope)
15932 (mark_common_block_symbol_computed, read_common_block)
15933 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15934 (partial_die_info::read, read_attribute_value, new_symbol)
15935 (lookup_die_type, dwarf2_get_ref_die_offset)
15936 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15937 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15938 (dwarf2_symbol_mark_computed): Update.
15939 * dwarf2/attribute.h (struct attribute) <value_as_address,
15940 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15941 methods.
15942 (value_as_address, attr_form_is_section_offset)
15943 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15944 * dwarf2/attribute.c (attribute::value_as_address)
15945 (attribute::form_is_section_offset, attribute::form_is_constant)
15946 (attribute::form_is_ref): Now methods.
15947
15948 2020-02-08 Tom Tromey <tom@tromey.com>
15949
15950 * dwarf2read.c (struct attribute, DW_STRING)
15951 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15952 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15953 (attr_form_is_block, attr_form_is_section_offset)
15954 (attr_form_is_constant, attr_form_is_ref): Move.
15955 * dwarf2/attribute.h: New file.
15956 * dwarf2/attribute.c: New file, from dwarf2read.c.
15957 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15958
15959 2020-02-08 Tom Tromey <tom@tromey.com>
15960
15961 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15962 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15963 Move.
15964 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15965 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15966 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15967 abbrev.c.
15968 * dwarf2/abbrev.h: New file.
15969 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15970 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15971
15972 2020-02-08 Tom Tromey <tom@tromey.com>
15973
15974 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15975 (dwarf2_section_size, dwarf2_get_section_info)
15976 (create_signatured_type_table_from_debug_names)
15977 (create_addrmap_from_aranges, read_debug_names_from_section)
15978 (get_gdb_index_contents_from_section, read_comp_unit_head)
15979 (error_check_comp_unit_head, read_abbrev_offset)
15980 (create_debug_type_hash_table, init_cu_die_reader)
15981 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15982 (read_comp_units_from_section, create_cus_hash_table)
15983 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15984 (create_dwp_v2_section, dwarf2_rnglists_process)
15985 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15986 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15987 (read_indirect_string_from_dwz, read_addr_index_1)
15988 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15989 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15990 (fill_in_loclist_baton): Update.
15991 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15992 get_containing_section, get_bfd_owner, get_bfd_section,
15993 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15994 (dwarf2_read_section, get_section_name, get_section_file_name)
15995 (get_containing_section, get_section_bfd_owner)
15996 (get_section_bfd_section, get_section_name, get_section_file_name)
15997 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15998 declare.
15999 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16000 (dwarf2_section_info::get_bfd_owner)
16001 (dwarf2_section_info::get_bfd_section)
16002 (dwarf2_section_info::get_name)
16003 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16004 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16005 (dwarf2_section_info::read): Now methods.
16006 * dwarf-index-write.c (class debug_names): Update.
16007
16008 2020-02-08 Tom Tromey <tom@tromey.com>
16009
16010 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16011 Move to dwarf2/section.h.
16012 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16013 (get_section_bfd_section, get_section_name)
16014 (get_section_file_name, get_section_id, get_section_flags)
16015 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16016 dwarf2/section.c.
16017 * dwarf2/section.h: New file.
16018 * dwarf2/section.c: New file, from dwarf2read.c.
16019 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16020
16021 2020-02-08 Tom Tromey <tom@tromey.com>
16022
16023 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16024 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16025 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16026 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16027 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16028 * dwarf2/leb.h: New file, from dwarf2read.c.
16029 * dwarf2/leb.c: New file, from dwarf2read.c.
16030 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16031 Remove.
16032 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16033 (COMMON_SFILES): Add dwarf2/leb.c.
16034
16035 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16036
16037 GDB 9.1 released.
16038
16039 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16040
16041 PR gdb/25190:
16042 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16043 * gdb/remote.c (remote_console_output): Update.
16044 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16045 (ui_file_puts): ...this.
16046 * gdb/ui-file.h (ui_file_puts): Add declaration.
16047 * gdb/utils.c (emit_style_escape): Update.
16048 (flush_wrap_buffer): Update.
16049 (fputs_maybe_filtered): Update.
16050 (fputs_unfiltered): Add function.
16051
16052 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16053
16054 * gdb/event-loop.c (gdb_wait_for_event): Update.
16055 * gdb/printcmd.c (printf_command): Update.
16056 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16057 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16058 (gdb_os_flush_stderr): Update.
16059 * gdb/remote.c (remote_console_output): Update.
16060 * gdb/ui-file.c (gdb_flush): Rename to...
16061 (ui_file_flush): ...this.
16062 (stderr_file::write): Update.
16063 (stderr_file::puts): Update.
16064 * gdb/ui-file.h (gdb_flush): Rename to...
16065 (ui_file_flush): ...this.
16066 * gdb/utils.c (gdb_flush): Add function.
16067 * gdb/utils.h (gdb_flush): Add declaration.
16068
16069 2020-02-07 Tom Tromey <tromey@adacore.com>
16070
16071 PR breakpoints/24915:
16072 * source.c (find_and_open_source): Do not check basenames_may_differ.
16073
16074 2020-02-07 Tom Tromey <tom@tromey.com>
16075
16076 * README: Update gdbserver documentation.
16077 * gdbserver: Move to top level.
16078 * configure.tgt (build_gdbserver): Remove.
16079 * configure.ac: Remove --enable-gdbserver.
16080 * configure: Rebuild.
16081 * Makefile.in (distclean): Don't mention gdbserver.
16082
16083 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16084
16085 * source-cache.c (source_cache::ensure): Surround
16086 get_plain_source_lines with a try/catch.
16087 (source_cache::get_line_charpos): Get rid of try/catch
16088 and only check for the return value of "ensure".
16089 * tui/tui-source.c (tui_source_window::set_contents):
16090 Simplify "nlines" calculation.
16091
16092 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16093
16094 * MAINTAINERS (Write After Approval): Add myself.
16095
16096 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16097
16098 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16099 function call.
16100
16101 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16102
16103 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16104
16105 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16106
16107 * nat/riscv-linux-tdesc.h: New file.
16108 * nat/riscv-linux-tdesc.c: New file, taking code from...
16109 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16110 ... here.
16111 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16112 NATDEPFILES.
16113
16114 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16115
16116 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16117 we don't set the fake simulator ptid to the null_ptid.
16118
16119 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16120
16121 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16122 * gdbthread.h (class thread_info) <resumed>: Likewise.
16123 * infrun.c (resume_1): Likewise.
16124 (proceed): Likewise.
16125 (infrun_thread_stop_requested): Likewise.
16126 (stop_all_threads): Likewise.
16127 (handle_inferior_event): Likewise.
16128 (restart_threads): Likewise.
16129 (finish_step_over): Likewise.
16130 (keep_going_stepped_thread): Likewise.
16131 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16132 (linux_handle_extended_wait): Likewise.
16133 * record-btrace.c (get_thread_current_frame_id): Likewise.
16134 * record-full.c (record_full_wait_1): Likewise.
16135 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16136 * target.c (target_resume): Likewise.
16137 * thread.c (set_running_thread): Likewise.
16138
16139 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16140
16141 * f-valprint.c (f77_print_array_1): Changed datatype of index
16142 variable to LONGEST from int to enable it to contain bound
16143 values correctly.
16144
16145 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16146
16147 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16148 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16149 offsets according to FLEN determined.
16150 (riscv_linux_nat_target::read_description): Determine FLEN
16151 dynamically.
16152 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16153 according to FLEN determined.
16154 (riscv_linux_nat_target::store_registers): Likewise.
16155
16156 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16157
16158 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16159 when reg->group is empty and reggroup is not.
16160
16161 2020-01-31 Tom Tromey <tromey@adacore.com>
16162
16163 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16164 Call beneath target's mourn_inferior after unpushing.
16165
16166 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16167
16168 PR tui/9765
16169 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16170 have enough lines to fill the screen, still return the lowest
16171 address we found.
16172
16173 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16174
16175 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16176 '-', '<', and '>' commands.
16177
16178 2020-01-29 Pedro Alves <palves@redhat.com>
16179 Sergio Durigan Junior <sergiodj@redhat.com>
16180
16181 * infcmd.c (construct_inferior_arguments): Assert that
16182 'argc' is greater than 0.
16183
16184 2020-01-29 Luis Machado <luis.machado@linaro.org>
16185
16186 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16187 (BRK_INSN_MASK): Define to 0xd4200000.
16188 (aarch64_program_breakpoint_here_p): New function.
16189 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16190 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16191 breakpoint.c.
16192 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16193 breakpoint.h
16194 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16195 call gdbarch_program_breakpoint_here_p.
16196 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16197 default_program_breakpoint_here_p, changed return type to bool and
16198 simplified.
16199 * breakpoint.h (program_breakpoint_here): Moved prototype to
16200 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16201 return type to bool.
16202 * gdbarch.c: Regenerate.
16203 * gdbarch.h: Regenerate.
16204 * gdbarch.sh (program_breakpoint_here_p): New method.
16205 * infrun.c (handle_signal_stop): Call
16206 gdbarch_program_breakpoint_here_p.
16207
16208 2020-01-26 Tom Tromey <tom@tromey.com>
16209
16210 * ctfread.c (struct ctf_fp_info): Reindent.
16211 (_initialize_ctfread): Remove.
16212
16213 2020-01-26 Tom Tromey <tom@tromey.com>
16214
16215 * psymtab.c (partial_map_expand_apply)
16216 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16217 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16218 (psym_print_stats, psym_expand_symtabs_for_function)
16219 (psym_map_symbol_filenames, psym_map_matching_symbols)
16220 (psym_expand_symtabs_matching)
16221 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16222 (maintenance_check_psymtabs): Use new methods.
16223 * psympriv.h (struct partial_symtab) <readin_p,
16224 get_compunit_symtab>: New methods.
16225 <readin, compunit_symtab>: Remove members.
16226 (struct standard_psymtab): New.
16227 (struct legacy_psymtab): Derive from standard_psymtab.
16228 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16229 standard_psymtab.
16230 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16231
16232 2020-01-26 Tom Tromey <tom@tromey.com>
16233
16234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16235 read_dependencies. Add assert.
16236 * psymtab.c (partial_symtab::read_dependencies): New method.
16237 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16238 method.
16239 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16240 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16241 read_dependencies.
16242 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16243 Add assert.
16244
16245 2020-01-26 Tom Tromey <tom@tromey.com>
16246
16247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16248 Call expand_psymtab.
16249 (xcoff_read_symtab): Call expand_psymtab.
16250 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16251 legacy_expand_psymtab.
16252 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16253 method.
16254 (struct legacy_psymtab) <expand_psymtab>: Implement.
16255 <legacy_expand_psymtab>: New member.
16256 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16257 (parse_partial_symbols): Set legacy_expand_psymtab.
16258 (psymtab_to_symtab_1): Change argument order. Call
16259 expand_psymtab.
16260 (new_psymtab): Set legacy_expand_psymtab.
16261 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16262 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16263 expand_psymtab.
16264 (dwarf2_psymtab::expand_psymtab): Rename from
16265 psymtab_to_symtab_1. Call expand_psymtab.
16266 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16267 (dbx_end_psymtab): Likewise.
16268 (dbx_psymtab_to_symtab_1): Change argument order. Call
16269 expand_psymtab.
16270 (dbx_read_symtab): Call expand_psymtab.
16271 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16272 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16273 (ctf_psymtab::read_symtab): Call expand_psymtab.
16274
16275 2020-01-26 Tom Tromey <tom@tromey.com>
16276
16277 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16278 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16279 messages.
16280 * mdebugread.c (mdebug_read_symtab): Remove prints.
16281 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16282 assert.
16283 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16284
16285 2020-01-26 Tom Tromey <tom@tromey.com>
16286
16287 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16288 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16289 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16290 legacy_symtab.
16291 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16292 * psymtab.c (psymtab_to_symtab): Call method.
16293 (dump_psymtab): Update.
16294 * psympriv.h (struct partial_symtab): Add virtual destructor.
16295 <read_symtab>: New method.
16296 (struct legacy_symtab): New.
16297 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16298 (struct pst_map) <pst>: Now a legacy_psymtab.
16299 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16300 (new_psymtab): Use legacy_psymtab.
16301 * dwarf2read.h (struct dwarf2_psymtab): New.
16302 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16303 * dwarf2read.c (dwarf2_create_include_psymtab)
16304 (dwarf2_build_include_psymtabs, create_type_unit_group)
16305 (create_partial_symtab, process_psymtab_comp_unit_reader)
16306 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16307 (set_partial_user): Use dwarf2_psymtab.
16308 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16309 (psymtab_to_symtab_1, process_full_comp_unit)
16310 (process_full_type_unit, dwarf2_ranges_read)
16311 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16312 (dwarf_decode_lines): Use dwarf2_psymtab.
16313 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16314 (add_address_entry_worker, write_one_signatured_type)
16315 (recursively_count_psymbols, recursively_write_psymbols)
16316 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16317 (write_debug_names): Likewise.
16318 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16319 <pst>: Now a legacy_psymtab.
16320 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16321 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16322 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16323 * ctfread.c (struct ctf_psymtab): New.
16324 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16325 ctf_psymtab.
16326 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16327 (create_partial_symtab): Return a ctf_psymtab.
16328 (scan_partial_symbols): Update.
16329
16330 2020-01-26 Tom Tromey <tom@tromey.com>
16331
16332 * xcoffread.c (xcoff_start_psymtab): Use new.
16333 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16334 renamed from start_psymtab_common.
16335 * psympriv.h (struct partial_symtab): Add new constructor.
16336 (start_psymtab_common): Don't declare.
16337 * mdebugread.c (parse_partial_symbols): Use new.
16338 * dwarf2read.c (create_partial_symtab): Use new.
16339 * dbxread.c (start_psymtab): Use new.
16340 * ctfread.c (create_partial_symtab): Use new.
16341
16342 2020-01-26 Tom Tromey <tom@tromey.com>
16343
16344 * xcoffread.c (xcoff_end_psymtab): Use new.
16345 * psymtab.c (start_psymtab_common): Use new.
16346 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16347 Update.
16348 * psympriv.h (struct partial_symtab): Add parameters to
16349 constructor. Don't inline.
16350 (allocate_psymtab): Don't declare.
16351 * mdebugread.c (new_psymtab): Use new.
16352 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16353 * dbxread.c (dbx_end_psymtab): Use new.
16354
16355 2020-01-26 Tom Tromey <tom@tromey.com>
16356
16357 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16358 allocate_psymtab. Update documentation.
16359 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16360 allocate_psymtab. Do not use new.
16361 (allocate_psymtab): Use new. Update.
16362
16363 2020-01-26 Tom Tromey <tom@tromey.com>
16364
16365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16366 * psymtab.c (psym_print_stats): Update.
16367 * psympriv.h (struct partial_symtab) <readin,
16368 psymtabs_addrmap_supported, anonymous>: Now bool.
16369 * mdebugread.c (psymtab_to_symtab_1): Update.
16370 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16371 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16372 (process_full_comp_unit, process_full_type_unit): Update.
16373 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16374 * ctfread.c (psymtab_to_symtab): Update.
16375
16376 2020-01-26 Tom Tromey <tom@tromey.com>
16377
16378 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16379 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16380 * psymtab.c (psymtab_storage): Delete psymtabs.
16381 (psymtab_storage::allocate_psymtab): Use new.
16382 (psymtab_storage::discard_psymtab): Use delete.
16383 * psympriv.h (struct partial_symtab): Add constructor and
16384 initializers.
16385
16386 2020-01-26 Tom Tromey <tom@tromey.com>
16387
16388 * machoread.c: Do not include psympriv.h.
16389
16390 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16391
16392 * NEWS: Mention the new option and the set/show commands.
16393
16394 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16395
16396 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16397 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16398 (validate_exec_file): New variables, enums, functions.
16399 (exec_file_locate_attach, print_section_info): Style the filenames.
16400 (_initialize_exec): Install show_exec_file_mismatch_command and
16401 set_exec_file_mismatch_command.
16402 * gdbcore.h (validate_exec_file): Declare.
16403 * infcmd.c (attach_command): Call validate_exec_file.
16404 * remote.c ( remote_target::remote_add_inferior): Likewise.
16405
16406 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16407
16408 * frame.c (find_frame_sal): Move call to get_next_frame into more
16409 inner scope.
16410 * inline-frame.c (inilne_state) <inline_state>: Update argument
16411 types.
16412 (inilne_state) <skipped_symbol>: Rename to...
16413 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16414 (skip_inline_frames): Build vector of skipped symbols and use this
16415 to reate the inline_state.
16416 (inline_skipped_symbol): Add a comment and some assertions, fetch
16417 skipped symbol from the list.
16418
16419 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16420
16421 * buildsym.c (lte_is_less_than): Delete.
16422 (buildsym_compunit::end_symtab_with_blockvector): Create local
16423 lambda function to sort line table entries, and use
16424 std::stable_sort instead of std::sort.
16425 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16426 markers when looking for a previous line.
16427
16428 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16429
16430 * dwarf2read.c (lnp_state_machine::record_line): Include
16431 end_sequence parameter in debug print out. Record the line if we
16432 are at an end_sequence marker even if it's not the start of a
16433 statement.
16434 * symmisc.c (maintenance_print_one_line_table): Print end of
16435 sequence markers with 'END' not '0'.
16436
16437 2020-01-24 Pedro Alves <palves@redhat.com>
16438
16439 PR gdb/25410
16440 * thread.c (scoped_restore_current_thread::restore): Use
16441 switch_to_inferior_no_thread.
16442 * exec.c: Include "progspace-and-thread.h".
16443 (add_target_sections, remove_target_sections):
16444 scoped_restore_current_pspace_and_thread instead of
16445 scoped_restore_current_thread.
16446 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16447 and aspace to the inferior before calling clone_program_space.
16448 Remove stale comment.
16449
16450 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16451
16452 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16453 (arm_netbsd_nat_target::fetch_registers): ...this.
16454 (arm_nbsd_nat_target::store_registers): Rename to...
16455 (arm_netbsd_nat_target::store_registers): ...this.
16456
16457 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16458
16459 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16460 register_t.
16461
16462 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16463
16464 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16465 Update comment.
16466 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16467 Likewise.
16468 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16469 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16470 the correct replacement (iterate_over_regset_sections).
16471 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16472 Update comment.
16473
16474 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16475
16476 PR gdb/23718
16477 * gdb/python/python.c (execute_gdb_command): Call
16478 async_enable_stdin in catch block.
16479
16480 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16481
16482 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16483 SWITCH_THRU_ALL_UIS.
16484
16485 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16486
16487 PR tui/9765
16488 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16489 comment, add extra parameter, and update to store previous symbol
16490 when appropriate.
16491 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16492 add extra parameter.
16493 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16494 remove unneeded parameter, add try/catch around gdb_print_insn,
16495 rewrite to add items to asm_lines vector.
16496 (tui_find_backward_disassembly_start_address): New function.
16497 (tui_find_disassembly_address): Updated throughout.
16498 (tui_disasm_window::set_contents): Update for changes to
16499 tui_disassemble.
16500 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16501 number of lines to scroll.
16502
16503 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16504
16505 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16506 (SECT_OFF_DATA): Likewise.
16507 (SECT_OFF_RODATA): Likewise.
16508 (SECT_OFF_TEXT): Likewise.
16509 (SECT_OFF_BSS): Likewise.
16510 (struct objfile) <text_section_offset, data_section_offset>: New
16511 methods.
16512 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16513 objfile::text_section_offset.
16514 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16515 * coffread.c (coff_symtab_read): Likewise.
16516 (enter_linenos): Likewise.
16517 (process_coff_symbol): Likewise.
16518 * ctfread.c (get_objfile_text_range): Likewise.
16519 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16520 Use objfile::data_section_offset.
16521 * dwarf2-frame.c (execute_cfa_program): Use
16522 objfile::text_section_offset.
16523 (dwarf2_frame_find_fde): Likewise.
16524 * dwarf2read.c (create_addrmap_from_index): Likewise.
16525 (create_addrmap_from_aranges): Likewise.
16526 (dw2_find_pc_sect_compunit_symtab): Likewise.
16527 (process_psymtab_comp_unit_reader): Likewise.
16528 (add_partial_symbol): Likewise.
16529 (add_partial_subprogram): Likewise.
16530 (process_full_comp_unit): Likewise.
16531 (read_file_scope): Likewise.
16532 (read_func_scope): Likewise.
16533 (read_lexical_block_scope): Likewise.
16534 (read_call_site_scope): Likewise.
16535 (dwarf2_rnglists_process): Likewise.
16536 (dwarf2_ranges_process): Likewise.
16537 (dwarf2_ranges_read): Likewise.
16538 (dwarf_decode_lines_1): Likewise.
16539 (new_symbol): Likewise.
16540 (dwarf2_fetch_die_loc_sect_off): Likewise.
16541 (dwarf2_per_cu_text_offset): Likewise.
16542 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16543 * hppa-tdep.c (read_unwind_info): Likewise.
16544 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16545 * psympriv.h (struct partial_symtab): Likewise.
16546 * psymtab.c (find_pc_sect_psymtab): Likewise.
16547 * solib-svr4.c (enable_break): Likewise.
16548 * stap-probe.c (relocate_address): Use
16549 objfile::data_section_offset.
16550 * xcoffread.c (enter_line_range): Use
16551 objfile::text_section_offset.
16552 (read_xcoff_symtab): Likewise.
16553
16554 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16555
16556 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16557 declaration to narrower scopes.
16558
16559 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16560
16561 * darwin-nat.h (struct darwin_exception_msg, enum
16562 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16563 Move up.
16564 (class darwin_nat_target) <wait_1, check_new_threads,
16565 decode_exception_message, decode_message, stop_inferior,
16566 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16567 * darwin-nat.c (darwin_check_new_threads): Rename to...
16568 (darwin_nat_target::check_new_threads): ... this.
16569 (darwin_suspend_inferior_it): Remove.
16570 (darwin_decode_exception_message): Rename to...
16571 (darwin_nat_target::decode_exception_message): ... this.
16572 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16573 (darwin_decode_message): Rename to...
16574 (darwin_nat_target::decode_message): ... this.
16575 (cancel_breakpoint): Rename to...
16576 (darwin_nat_target::cancel_breakpoint): ... this.
16577 (darwin_wait): Rename to...
16578 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16579 instead of iterate_over_inferiors.
16580 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16581 (darwin_stop_inferior): Rename to...
16582 (darwin_nat_target::stop_inferior): ... this.
16583 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16584 (darwin_init_thread_list): Rename to...
16585 (darwin_nat_target::init_thread_list): ... this.
16586 (darwin_ptrace_him): Rename to...
16587 (darwin_nat_target::ptrace_him): ... this.
16588 (darwin_nat_target::create_inferior): Pass lambda function to
16589 fork_inferior.
16590 (darwin_nat_target::detach): Call stop_inferior instead of
16591 darwin_stop_inferior.
16592 * fork-inferior.h (fork_inferior): Change init_trace_fun
16593 parameter to gdb::function_view.
16594 * fork-inferior.c (fork_inferior): Likewise.
16595
16596 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16597
16598 * i386-cygwin-tdep.c (core_process_module_section): Update.
16599 * windows-nat.c (struct lm_info_windows): Add text_offset.
16600 (windows_xfer_shared_libraries): Update.
16601 * windows-tdep.c (windows_xfer_shared_library):
16602 Add text_offset_cached argument.
16603 * windows-tdep.h (windows_xfer_shared_library): Update.
16604
16605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16606
16607 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16608
16609 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16610
16611 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16612 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16613 replace with range-based for.
16614 (gdbsim_interrupt_inferior): Remove.
16615 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16616 with a range-based for. Inline code from
16617 gdbsim_interrupt_inferior.
16618
16619 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16620
16621 * infrun.c (proceed): Fix indentation.
16622
16623 2020-01-21 Tom Tromey <tromey@adacore.com>
16624
16625 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16626 * python/python.c (python_extension_ops): Update.
16627 (gdbpy_colorize): New function.
16628 * python/lib/gdb/__init__.py (colorize): New function.
16629 * extension.h (ext_lang_colorize): Declare.
16630 * extension.c (ext_lang_colorize): New function.
16631 * extension-priv.h (struct extension_language_ops) <colorize>: New
16632 member.
16633 * cli/cli-style.c (_initialize_cli_style): Update help text.
16634
16635 2020-01-21 Luis Machado <luis.machado@linaro.org>
16636
16637 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16638 <cond>: Change type to bool.
16639 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16640 (aarch64_displaced_step_cb): Likewise.
16641 (aarch64_displaced_step_tb): Likewise.
16642
16643 2020-01-21 Luis Machado <luis.machado@linaro.org>
16644
16645 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16646 output.
16647
16648 2020-01-21 Luis Machado <luis.machado@linaro.org>
16649
16650 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16651 <pc_adjust>: Adjust the documentation.
16652 (aarch64_displaced_step_fixup): Check if PC really moved before
16653 adjusting it.
16654
16655 2020-01-19 Tom Tromey <tom@tromey.com>
16656
16657 * disasm.c (~gdb_disassembler): New destructor.
16658 (gdb_buffered_insn_length): Call disassemble_free_target.
16659 * disasm.h (class gdb_disassembler): Declare destructor. Use
16660 DISABLE_COPY_AND_ASSIGN.
16661
16662 2020-01-19 Tom Tromey <tom@tromey.com>
16663
16664 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16665 (die_reader_func_ftype): Remove.
16666 (cutu_reader): New class.
16667 (dw2_get_file_names_reader): Remove "data" parameter.
16668 (dw2_get_file_names): Use cutu_reader.
16669 (create_debug_type_hash_table): Update.
16670 (read_cutu_die_from_dwo): Update comment.
16671 (lookup_dwo_unit): Add dwo_name parameter.
16672 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16673 die_reader_func_ftype and data parameters.
16674 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16675 Remove die_reader_func_ftype and data parameters.
16676 (~cutu_reader): New; from init_cutu_and_read_dies.
16677 (cutu_reader::cutu_reader): Rename from
16678 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16679 and data parameters.
16680 (init_cutu_and_read_dies_simple): Remove.
16681 (struct process_psymtab_comp_unit_data): Remove.
16682 (process_psymtab_comp_unit_reader): Remove data parameter; add
16683 want_partial_unit and pretend_language parameters.
16684 (process_psymtab_comp_unit): Use cutu_reader.
16685 (build_type_psymtabs_reader): Remove data parameter.
16686 (build_type_psymtabs_1): Use cutu_reader.
16687 (process_skeletonless_type_unit): Likewise.
16688 (load_partial_comp_unit_reader): Remove.
16689 (load_partial_comp_unit): Use cutu_reader.
16690 (load_full_comp_unit_reader): Remove.
16691 (load_full_comp_unit): Use cutu_reader.
16692 (struct create_dwo_cu_data): Remove.
16693 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16694 dwo_unit parameters.
16695 (create_cus_hash_table): Use cutu_reader.
16696 (struct dwarf2_read_addr_index_data): Remove.
16697 (dwarf2_read_addr_index_reader): Remove.
16698 (dwarf2_read_addr_index): Use cutu_reader.
16699 (read_signatured_type_reader): Remove.
16700 (read_signatured_type): Use cutu_reader.
16701
16702 2020-01-19 Tom Tromey <tom@tromey.com>
16703
16704 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16705 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16706 (tui_wrefresh): Declare.
16707 * tui/tui-wingeneral.c (suppress_output): New global.
16708 (tui_suppress_output, ~tui_suppress_output): New constructor and
16709 destructor.
16710 (tui_wrefresh): New function.
16711 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16712 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16713 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16714 method.
16715 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16716 tui_wrefresh.
16717 (tui_data_window::no_refresh): New method.
16718 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16719 (tui_reg_command): Use tui_suppress_output
16720 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16721 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16722 method.
16723 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16724
16725 2020-01-19 Tom Tromey <tom@tromey.com>
16726
16727 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16728 Handle case where symtab is null.
16729
16730 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16731
16732 * linux-fork.c (one_fork_p): Simplify.
16733
16734 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16735
16736 * top.c (struct qt_args): Remove.
16737 (kill_or_detach): Change return type to void, replace `void *`
16738 parameter with a proper one.
16739 (print_inferior_quit_action): Likewise.
16740 (quit_confirm): Use range-based for loop to iterate over inferiors.
16741 (quit_force): Likewise.
16742
16743 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16744
16745 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16746 `void *` parameter with proper parameters.
16747 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16748 (print_one_inferior): Change return type to void, replace `void *`
16749 parameter with proper parameters.
16750 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16751 inferiors.
16752 (get_other_inferior): Remove.
16753 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16754 inferiors.
16755
16756 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16757
16758 * mi/mi-interp.c (report_initial_inferior): Remove.
16759 (mi_interp::init): Use range-based for to iterate over inferiors.
16760
16761 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16762
16763 * python/py-inferior.c (build_inferior_list): Remove.
16764 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16765
16766 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16767
16768 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16769 (btrace_stitch_trace): Likewise.
16770 * charset.c (intermediate_encoding): Likewise (vaild).
16771 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16772 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16773 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16774
16775 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16776
16777 * windows-tdep.c (windows_get_tlb_type):
16778 Add rtl_user_process_parameters type.
16779
16780 2020-01-16 Pedro Alves <palves@redhat.com>
16781 Norbert Lange <nolange79@gmail.com>
16782
16783 PR build/24805
16784 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16785 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16786 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16787 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16788 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16789 (ps_plog): Redeclare exported functions with default visibility.
16790
16791 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16792
16793 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16794 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16795
16796 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16797
16798 * infcmd.c (post_create_inferior): Use get_thread_regcache
16799 instead of get_current_regcache.
16800
16801 2020-01-14 Tom Tromey <tom@tromey.com>
16802
16803 PR symtab/12535:
16804 * python/python.c (gdbpy_decode_line): Treat empty string the same
16805 as no argument.
16806
16807 2020-01-14 Tom Tromey <tom@tromey.com>
16808
16809 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16810
16811 2020-01-14 Tom Tromey <tom@tromey.com>
16812
16813 * nat/linux-btrace.c: Don't include <config.h>.
16814 * nat/linux-ptrace.c: Don't include <config.h>.
16815 * nat/x86-linux-dregs.c: Don't include <config.h>.
16816
16817 2020-01-14 Tom Tromey <tom@tromey.com>
16818
16819 * configure: Rebuild.
16820 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16821
16822 2020-01-14 Tom Tromey <tom@tromey.com>
16823
16824 * nat/x86-linux-dregs.c: Include configh.h.
16825 * nat/linux-ptrace.c: Include configh.h.
16826 * nat/linux-btrace.c: Include configh.h.
16827 * defs.h: Include config.h, bfd.h.
16828 * configure.ac: Don't source common.host.
16829 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16830 * configure: Rebuild.
16831 * acinclude.m4: Update path.
16832 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16833 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16834 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16835 (CLIBS): Add LIBSUPPORT.
16836 (CDEPS): Likewise.
16837 (COMMON_SFILES): Remove gdbsupport files.
16838 (HFILES_NO_SRCDIR): Likewise.
16839 (stamp-version): Update path to create-version.sh.
16840 (ALLDEPFILES): Remove gdbsupport files.
16841
16842 2020-01-14 Tom Tromey <tom@tromey.com>
16843
16844 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16845 USE_WIN32API when needed.
16846 * configure.ac (USE_WIN32API): Don't define.
16847 (WIN32LIBS): Use WIN32APILIBS.
16848 * configure: Rebuild.
16849
16850 2020-01-14 Tom Tromey <tom@tromey.com>
16851
16852 * configure: Rebuild.
16853 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16854
16855 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16856
16857 * skip.c (skip_function_command): Make skip w/o arguments use the
16858 name of the inlined function if pc is inside any inlined function.
16859
16860 2020-01-14 Luis Machado <luis.machado@linaro.org>
16861
16862 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16863 * infrun.c (resume_1): Likewise.
16864 (handle_inferior_event): Remove stale comment.
16865 * linux-nat.c (linux_nat_target::resume): Update comments.
16866 (save_stop_reason): Likewise.
16867 (linux_nat_filter_event): Likewise.
16868 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16869
16870 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16871
16872 * elfread.c (record_minimal_symbol): Set section index to 0 for
16873 non-allocatable sections.
16874
16875
16876 2020-01-13 Ali Tamur <tamur@google.com>
16877
16878 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16879 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16880 to gdb::optional. Update comments.
16881 (dwo_file): Update comments.
16882 (read_attribute): Update API to take an additional out parameter,
16883 need_reprocess. This is used to mark attributes that need other
16884 attributes (e.g. str_offsets_base) for correct computation which may not
16885 have been read yet.
16886 (read_attribute_reprocess): New function declaration.
16887 (read_addr_index): Likewise.
16888 (read_dwo_str_index): Likewise.
16889 (read_stub_str_index): Likewise.
16890 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16891 (lookup_addr_base): New function definition.
16892 (lookup_ranges_base): Likewise.
16893 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16894 lookup_ranges_base.
16895 (init_cutu_and_read_dies): Update comments.
16896 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16897 unit. This is used to inherit parent's str_offsets_base and addr_base.
16898 Update comments.
16899 (init_cutu_and_read_dies_simple): Reflect API changes.
16900 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16901 (create_cus_hash_table): Change API to take parent compile unit.
16902 Reflect API changes.
16903 (open_and_init_dwo_file): Reflect API changes.
16904 (dwarf2_get_pc_bounds): Update comments.
16905 (dwarf2_record_block_ranges): Likewise.
16906 (read_full_die_1): Change implementation to reprocess attributes that
16907 need str_offsets_base and addr_base.
16908 (partial_die_info::read): Likewise.
16909 (read_attribute_reprocess): New function definition.
16910 (read_attribute_value): Change API to take an additional out parameter,
16911 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16912 when a non-dwo compile unit has index based attributes.
16913 (read_attribute): Reflect API changes.
16914 (read_addr_index_1): Reflect API changes. Update comments.
16915 (dwarf2_read_addr_index_data): Reflect API changes.
16916 (dwarf2_read_addr_index): Likewise.
16917 (read_str_index): Change API and implementation. This becomes a helper
16918 to be used by the new string index related methods. Update error
16919 message and comments.
16920 (read_dwo_str_index): New function definition.
16921 (read_stub_str_index): Likewise.
16922 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16923 * symfile.h (dwarf2_debug_sections): Likewise.
16924 * xcoffread.c (dwarf2_debug_sections): Likewise.
16925
16926 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16927
16928 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16929 core_reg_sect type to gdb_byte *.
16930 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16931 * cris-tdep.c (fetch_core_registers): Likewise.
16932 * corelow.c (core_target::get_core_register_section): Change
16933 type of `contents` to gdb::byte_vector.
16934
16935 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16936
16937 * tui/tui-wingeneral.c (box_win): Position the title in the center
16938 of the border.
16939
16940 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16941
16942 * corelow.c (core_target::get_core_register_section): Use
16943 std::vector instead of alloca.
16944
16945 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16946
16947 * warning.m4: Add -Wmissing-declarations to build_warnings.
16948 * configure: Re-generate.
16949
16950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16951
16952 * python/python.c (init__gdb_module): Add declaration.
16953
16954 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16955
16956 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16957 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16958 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16959 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16960 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16961 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16962 * ada-exp.y (_initialize_ada_exp): Add declaration.
16963 * ada-lang.c (_initialize_ada_language): Add declaration.
16964 * ada-tasks.c (_initialize_tasks): Add declaration.
16965 * agent.c (_initialize_agent): Add declaration.
16966 * aix-thread.c (_initialize_aix_thread): Add declaration.
16967 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16968 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16969 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16970 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16971 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16972 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16973 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16974 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16975 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16976 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16977 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16978 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16979 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16980 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16981 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16982 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16983 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16984 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16985 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16986 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16987 * annotate.c (_initialize_annotate): Add declaration.
16988 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16989 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16990 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16991 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16992 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16993 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16994 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16995 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16996 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16997 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16998 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16999 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17000 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17001 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17002 * auto-load.c (_initialize_auto_load): Add declaration.
17003 * auxv.c (_initialize_auxv): Add declaration.
17004 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17005 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17006 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17007 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17008 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17009 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17010 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17011 * breakpoint.c (_initialize_breakpoint): Add declaration.
17012 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17013 * btrace.c (_initialize_btrace): Add declaration.
17014 * charset.c (_initialize_charset): Add declaration.
17015 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17016 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17017 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17018 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17019 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17020 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17021 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17022 * coffread.c (_initialize_coffread): Add declaration.
17023 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17024 * compile/compile.c (_initialize_compile): Add declaration.
17025 * complaints.c (_initialize_complaints): Add declaration.
17026 * completer.c (_initialize_completer): Add declaration.
17027 * copying.c (_initialize_copying): Add declaration.
17028 * corefile.c (_initialize_core): Add declaration.
17029 * corelow.c (_initialize_corelow): Add declaration.
17030 * cp-abi.c (_initialize_cp_abi): Add declaration.
17031 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17032 * cp-support.c (_initialize_cp_support): Add declaration.
17033 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17034 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17035 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17036 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17037 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17038 * ctfread.c (_initialize_ctfread): Add declaration.
17039 * d-lang.c (_initialize_d_language): Add declaration.
17040 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17041 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17042 * dbxread.c (_initialize_dbxread): Add declaration.
17043 * dcache.c (_initialize_dcache): Add declaration.
17044 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17045 * disasm.c (_initialize_disasm): Add declaration.
17046 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17047 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17048 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17049 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17050 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17051 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17052 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17053 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17054 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17055 * elfread.c (_initialize_elfread): Add declaration.
17056 * exec.c (_initialize_exec): Add declaration.
17057 * extension.c (_initialize_extension): Add declaration.
17058 * f-lang.c (_initialize_f_language): Add declaration.
17059 * f-valprint.c (_initialize_f_valprint): Add declaration.
17060 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17061 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17062 * filesystem.c (_initialize_filesystem): Add declaration.
17063 * findcmd.c (_initialize_mem_search): Add declaration.
17064 * findvar.c (_initialize_findvar): Add declaration.
17065 * fork-child.c (_initialize_fork_child): Add declaration.
17066 * frame-base.c (_initialize_frame_base): Add declaration.
17067 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17068 * frame.c (_initialize_frame): Add declaration.
17069 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17070 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17071 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17072 * gcore.c (_initialize_gcore): Add declaration.
17073 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17074 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17075 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17076 * gdbarch.c (_initialize_gdbarch): Add declaration.
17077 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17078 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17079 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17080 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17081 * go-lang.c (_initialize_go_language): Add declaration.
17082 * go32-nat.c (_initialize_go32_nat): Add declaration.
17083 * guile/guile.c (_initialize_guile): Add declaration.
17084 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17085 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17086 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17087 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17088 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17089 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17090 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17091 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17092 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17093 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17095 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17096 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17097 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17098 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17099 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17100 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17101 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17102 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17103 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17104 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17105 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17106 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17107 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17108 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17109 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17110 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17111 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17112 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17113 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17114 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17115 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17116 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17118 * infcall.c (_initialize_infcall): Add declaration.
17119 * infcmd.c (_initialize_infcmd): Add declaration.
17120 * inflow.c (_initialize_inflow): Add declaration.
17121 * infrun.c (_initialize_infrun): Add declaration.
17122 * interps.c (_initialize_interpreter): Add declaration.
17123 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17124 * jit.c (_initialize_jit): Add declaration.
17125 * language.c (_initialize_language): Add declaration.
17126 * linux-fork.c (_initialize_linux_fork): Add declaration.
17127 * linux-nat.c (_initialize_linux_nat): Add declaration.
17128 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17129 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17130 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17131 * m2-lang.c (_initialize_m2_language): Add declaration.
17132 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17133 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17134 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17135 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17136 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17137 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17138 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17139 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17140 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17141 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17142 * machoread.c (_initialize_machoread): Add declaration.
17143 * macrocmd.c (_initialize_macrocmd): Add declaration.
17144 * macroscope.c (_initialize_macroscope): Add declaration.
17145 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17146 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17147 * maint.c (_initialize_maint_cmds): Add declaration.
17148 * mdebugread.c (_initialize_mdebugread): Add declaration.
17149 * memattr.c (_initialize_mem): Add declaration.
17150 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17151 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17152 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17153 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17154 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17155 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17156 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17157 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17158 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17159 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17160 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17161 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17162 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17163 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17164 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17165 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17166 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17167 * mipsread.c (_initialize_mipsread): Add declaration.
17168 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17169 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17170 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17171 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17172 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17173 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17174 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17175 * nto-procfs.c (_initialize_procfs): Add declaration.
17176 * objc-lang.c (_initialize_objc_language): Add declaration.
17177 * observable.c (_initialize_observer): Add declaration.
17178 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17179 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17180 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17181 * osabi.c (_initialize_gdb_osabi): Add declaration.
17182 * osdata.c (_initialize_osdata): Add declaration.
17183 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17184 * parse.c (_initialize_parse): Add declaration.
17185 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17186 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17187 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17188 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17189 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17190 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17191 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17192 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17193 * printcmd.c (_initialize_printcmd): Add declaration.
17194 * probe.c (_initialize_probe): Add declaration.
17195 * proc-api.c (_initialize_proc_api): Add declaration.
17196 * proc-events.c (_initialize_proc_events): Add declaration.
17197 * proc-service.c (_initialize_proc_service): Add declaration.
17198 * procfs.c (_initialize_procfs): Add declaration.
17199 * producer.c (_initialize_producer): Add declaration.
17200 * psymtab.c (_initialize_psymtab): Add declaration.
17201 * python/python.c (_initialize_python): Add declaration.
17202 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17203 * record-btrace.c (_initialize_record_btrace): Add declaration.
17204 * record-full.c (_initialize_record_full): Add declaration.
17205 * record.c (_initialize_record): Add declaration.
17206 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17207 * regcache.c (_initialize_regcache): Add declaration.
17208 * reggroups.c (_initialize_reggroup): Add declaration.
17209 * remote-notif.c (_initialize_notif): Add declaration.
17210 * remote-sim.c (_initialize_remote_sim): Add declaration.
17211 * remote.c (_initialize_remote): Add declaration.
17212 * reverse.c (_initialize_reverse): Add declaration.
17213 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17214 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17215 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17216 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17217 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17218 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17219 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17220 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17221 Add declaration.
17222 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17223 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17224 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17225 * rust-exp.y (_initialize_rust_exp): Add declaration.
17226 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17227 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17228 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17229 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17230 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17231 * score-tdep.c (_initialize_score_tdep): Add declaration.
17232 * ser-go32.c (_initialize_ser_dos): Add declaration.
17233 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17234 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17235 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17236 * ser-uds.c (_initialize_ser_socket): Add declaration.
17237 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17238 * serial.c (_initialize_serial): Add declaration.
17239 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17240 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17241 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17242 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17243 * skip.c (_initialize_step_skip): Add declaration.
17244 * sol-thread.c (_initialize_sol_thread): Add declaration.
17245 * solib-aix.c (_initialize_solib_aix): Add declaration.
17246 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17247 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17248 * solib-frv.c (_initialize_frv_solib): Add declaration.
17249 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17250 * solib-target.c (_initialize_solib_target): Add declaration.
17251 * solib.c (_initialize_solib): Add declaration.
17252 * source-cache.c (_initialize_source_cache): Add declaration.
17253 * source.c (_initialize_source): Add declaration.
17254 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17255 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17256 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17257 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17258 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17259 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17260 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17261 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17262 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17263 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17264 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17265 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17266 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17267 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17268 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17269 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17270 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17271 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17272 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17273 * stabsread.c (_initialize_stabsread): Add declaration.
17274 * stack.c (_initialize_stack): Add declaration.
17275 * stap-probe.c (_initialize_stap_probe): Add declaration.
17276 * std-regs.c (_initialize_frame_reg): Add declaration.
17277 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17278 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17279 * symfile.c (_initialize_symfile): Add declaration.
17280 * symmisc.c (_initialize_symmisc): Add declaration.
17281 * symtab.c (_initialize_symtab): Add declaration.
17282 * target.c (_initialize_target): Add declaration.
17283 * target-connection.c (_initialize_target_connection): Add
17284 declaration.
17285 * target-dcache.c (_initialize_target_dcache): Add declaration.
17286 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17287 * thread.c (_initialize_thread): Add declaration.
17288 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17289 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17290 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17291 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17292 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17293 * tracectf.c (_initialize_ctf): Add declaration.
17294 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17295 * tracefile.c (_initialize_tracefile): Add declaration.
17296 * tracepoint.c (_initialize_tracepoint): Add declaration.
17297 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17298 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17299 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17300 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17301 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17302 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17303 * tui/tui.c (_initialize_tui): Add declaration.
17304 * typeprint.c (_initialize_typeprint): Add declaration.
17305 * ui-style.c (_initialize_ui_style): Add declaration.
17306 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17307 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17308 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17309 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17310 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17311 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17312 * unittests/filtered_iterator-selftests.c
17313 (_initialize_filtered_iterator_selftests): Add declaration.
17314 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17315 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17316 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17317 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17318 * unittests/main-thread-selftests.c
17319 (_initialize_main_thread_selftests): Add declaration.
17320 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17321 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17322 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17323 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17324 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17325 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17326 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17327 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17328 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17329 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17330 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17331 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17332 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17333 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17334 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17335 declaration.
17336 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17337 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17338 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17339 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17340 * user-regs.c (_initialize_user_regs): Add declaration.
17341 * utils.c (_initialize_utils): Add declaration.
17342 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17343 * valops.c (_initialize_valops): Add declaration.
17344 * valprint.c (_initialize_valprint): Add declaration.
17345 * value.c (_initialize_values): Add declaration.
17346 * varobj.c (_initialize_varobj): Add declaration.
17347 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17348 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17350 * windows-nat.c (_initialize_windows_nat): Add declaration.
17351 (_initialize_check_for_gdb_ini): Add declaration.
17352 (_initialize_loadable): Add declaration.
17353 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17354 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17355 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17356 * xcoffread.c (_initialize_xcoffread): Add declaration.
17357 * xml-support.c (_initialize_xml_support): Add declaration.
17358 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17359 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17360 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17361 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17362
17363 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17364
17365 * regformats/regdat.sh: Generate declaration for init function.
17366
17367 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17368
17369 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17370 up.
17371 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17372 close_one_inferior>: New methods.
17373 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17374 pass down target to find_inferior_pid.
17375 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17376 Pass down target to find_inferior_ptid.
17377 (gdbsim_target::create_inferior): Pass down target to
17378 add_thread_silent.
17379 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17380 target down to find_inferior_ptid and switch_to_thread.
17381 (gdbsim_target::close): Update to call close_one_inferior.
17382 (struct resume_data): Remove.
17383 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17384 directly, rather than through a void pointer.
17385 (gdbsim_target::resume): Update to call resume_one_inferior.
17386
17387 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17388
17389 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17390
17391 2020-01-12 Pedro Alves <palves@redhat.com>
17392
17393 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17394 directly for the current inferior instead of
17395 discard_all_inferiors.
17396 (discard_all_inferiors): Delete.
17397
17398 2020-01-11 Tom Tromey <tom@tromey.com>
17399
17400 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17401 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17402 deprecated_safe_get_selected_frame.
17403
17404 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17405
17406 * inferior.c (print_inferior): Switch inferior before printing it.
17407
17408 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17409 Pedro Alves <palves@redhat.com>
17410
17411 * progspace-and-thread.c (switch_to_program_space_and_thread):
17412 Assert there's an inferior for PSPACE. Use
17413 switch_to_inferior_no_thread to switch the inferior too.
17414 * progspace.c (program_space::~program_space): Call
17415 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17416 (program_space::free_all_objfiles): Don't call clear_symtab_users
17417 here.
17418 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17419
17420 2020-01-10 Pedro Alves <palves@redhat.com>
17421
17422 * NEWS: Mention multi-target debugging, "info connections", and
17423 "add-inferior -no-connection".
17424
17425 2020-01-10 Pedro Alves <palves@redhat.com>
17426
17427 * infrun.c: Include "target-connection.h".
17428 (check_multi_target_resumption): New.
17429 (proceed): Call it.
17430 * target-connection.c (make_target_connection_string): Make
17431 extern.
17432 * target-connection.h (make_target_connection_string): Declare.
17433
17434 2020-01-10 Pedro Alves <palves@redhat.com>
17435
17436 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17437 * inferior.c (uiout_field_connection): New function.
17438 (print_inferior): Add new "connection-id" column.
17439 (add_inferior_command): Show connection number/string of added
17440 inferior.
17441 * process-stratum-target.h
17442 (process_stratum_target::connection_string): New virtual method.
17443 (process_stratum_target::connection_number): New field.
17444 * remote.c (remote_target::connection_string): New override.
17445 * target-connection.c: New file.
17446 * target-connection.h: New file.
17447 * target.c (decref_target): Remove process_stratum targets from
17448 the connection list.
17449 (target_stack::push): Add process_stratum targets to the
17450 connection list.
17451
17452 2020-01-10 Pedro Alves <palves@redhat.com>
17453
17454 Revert:
17455 2016-04-12 Pedro Alves <palves@redhat.com>
17456 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17457 Remove references to name.
17458 * serial.h (struct serial) <name>: Delete.
17459
17460 2020-01-10 Pedro Alves <palves@redhat.com>
17461
17462 * gdbarch-selftests.c (register_to_value_test): Remove "target
17463 already pushed" check.
17464
17465 2020-01-10 Pedro Alves <palves@redhat.com>
17466 John Baldwin <jhb@FreeBSD.org>
17467
17468 * aarch64-linux-nat.c
17469 (aarch64_linux_nat_target::thread_architecture): Adjust.
17470 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17471 (task_command_1): Likewise.
17472 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17473 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17474 (aix_thread_target::store_registers)
17475 (aix_thread_target::thread_alive): Adjust.
17476 * amd64-fbsd-tdep.c: Include "inferior.h".
17477 (amd64fbsd_get_thread_local_address): Pass down target.
17478 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17479 thread's gdbarch instead of target_gdbarch.
17480 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17481 get_last_target_status.
17482 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17483 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17484 inferiors.
17485 (update_inserted_breakpoint_locations): Skip if inferiors with no
17486 execution.
17487 (update_global_location_list): When handling moribund locations,
17488 find representative inferior for location's pspace, and use thread
17489 count of its process_stratum target.
17490 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17491 * bsd-uthread.c (bsd_uthread_target::wait): Use
17492 as_process_stratum_target and adjust thread_change_ptid and
17493 add_thread calls.
17494 (bsd_uthread_target::update_thread_list): Use
17495 as_process_stratum_target and adjust find_thread_ptid,
17496 thread_change_ptid and add_thread calls.
17497 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17498 find_thread_ptid call.
17499 * corelow.c (add_to_thread_list): Adjust add_thread call.
17500 (core_target_open): Adjust add_thread_silent and thread_count
17501 calls.
17502 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17503 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17504 * event-top.c (async_disconnect): Pop targets from all inferiors.
17505 * exec.c (add_target_sections): Push exec target on all inferiors
17506 sharing the program space.
17507 (remove_target_sections): Remove the exec target from all
17508 inferiors sharing the program space.
17509 (exec_on_vfork): New.
17510 * exec.h (exec_on_vfork): Declare.
17511 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17512 Pass it down.
17513 (fbsd_nat_target::update_thread_list): Adjust.
17514 (fbsd_nat_target::resume): Adjust.
17515 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17516 down.
17517 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17518 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17519 get_thread_arch_regcache call.
17520 * fork-child.c (gdb_startup_inferior): Pass target down to
17521 startup_inferior and set_executing.
17522 * gdbthread.h (struct process_stratum_target): Forward declare.
17523 (add_thread, add_thread_silent, add_thread_with_info)
17524 (in_thread_list): Add process_stratum_target parameter.
17525 (find_thread_ptid(inferior*, ptid_t)): New overload.
17526 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17527 parameter.
17528 (all_threads()): Delete overload.
17529 (all_threads, all_non_exited_threads): Add process_stratum_target
17530 parameter.
17531 (all_threads_safe): Use brace initialization.
17532 (thread_count): Add process_stratum_target parameter.
17533 (set_resumed, set_running, set_stop_requested, set_executing)
17534 (threads_are_executing, finish_thread_state): Add
17535 process_stratum_target parameter.
17536 (switch_to_thread): Use is_current_thread.
17537 * i386-fbsd-tdep.c: Include "inferior.h".
17538 (i386fbsd_get_thread_local_address): Pass down target.
17539 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17540 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17541 have_inferiors check.
17542 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17543 (inf_ptrace_target::attach): Adjust.
17544 * infcall.c (run_inferior_call): Adjust.
17545 * infcmd.c (run_command_1): Pass target to
17546 scoped_finish_thread_state.
17547 (proceed_thread_callback): Skip inferiors with no execution.
17548 (continue_command): Rename 'all_threads' local to avoid hiding
17549 'all_threads' function. Adjust get_last_target_status call.
17550 (prepare_one_step): Adjust set_running call.
17551 (signal_command): Use user_visible_resume_target. Compare thread
17552 pointers instead of inferior_ptid.
17553 (info_program_command): Adjust to pass down target.
17554 (attach_command): Mark target's 'thread_executing' flag.
17555 (stop_current_target_threads_ns): New, factored out from ...
17556 (interrupt_target_1): ... this. Switch inferior before making
17557 target calls.
17558 * inferior-iter.h
17559 (struct all_inferiors_iterator, struct all_inferiors_range)
17560 (struct all_inferiors_safe_range)
17561 (struct all_non_exited_inferiors_range): Filter on
17562 process_stratum_target too. Remove explicit.
17563 * inferior.c (inferior::inferior): Push dummy target on target
17564 stack.
17565 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17566 Add process_stratum_target parameter, and pass it down.
17567 (have_live_inferiors): Adjust.
17568 (switch_to_inferior_and_push_target): New.
17569 (add_inferior_command, clone_inferior_command): Handle
17570 "-no-connection" parameter. Use
17571 switch_to_inferior_and_push_target.
17572 (_initialize_inferior): Mention "-no-connection" option in
17573 the help of "add-inferior" and "clone-inferior" commands.
17574 * inferior.h: Include "process-stratum-target.h".
17575 (interrupt_target_1): Use bool.
17576 (struct inferior) <push_target, unpush_target, target_is_pushed,
17577 find_target_beneath, top_target, process_target, target_at,
17578 m_stack>: New.
17579 (discard_all_inferiors): Delete.
17580 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17581 (all_inferiors, all_non_exited_inferiors): Add
17582 process_stratum_target parameter.
17583 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17584 (target_last_proc_target): New global.
17585 (follow_fork_inferior): Push target on new inferior. Pass target
17586 to add_thread_silent. Call exec_on_vfork. Handle target's
17587 reference count.
17588 (follow_fork): Adjust get_last_target_status call. Also consider
17589 target.
17590 (follow_exec): Push target on new inferior.
17591 (struct execution_control_state) <target>: New field.
17592 (user_visible_resume_target): New.
17593 (do_target_resume): Call target_async.
17594 (resume_1): Set target's threads_executing flag. Consider resume
17595 target.
17596 (commit_resume_all_targets): New.
17597 (proceed): Also consider resume target. Skip threads of inferiors
17598 with no execution. Commit resumtion in all targets.
17599 (start_remote): Pass current inferior to wait_for_inferior.
17600 (infrun_thread_stop_requested): Consider target as well. Pass
17601 thread_info pointer to clear_inline_frame_state instead of ptid.
17602 (infrun_thread_thread_exit): Consider target as well.
17603 (random_pending_event_thread): New inferior parameter. Use it.
17604 (do_target_wait): Rename to ...
17605 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17606 down.
17607 (threads_are_resumed_pending_p, do_target_wait): New.
17608 (prepare_for_detach): Adjust calls.
17609 (wait_for_inferior): New inferior parameter. Handle it. Use
17610 do_target_wait_1 instead of do_target_wait.
17611 (fetch_inferior_event): Adjust. Switch to representative
17612 inferior. Pass target down.
17613 (set_last_target_status): Add process_stratum_target parameter.
17614 Save target in global.
17615 (get_last_target_status): Add process_stratum_target parameter and
17616 handle it.
17617 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17618 (context_switch): Check inferior_ptid == null_ptid before calling
17619 inferior_thread().
17620 (get_inferior_stop_soon): Pass down target.
17621 (wait_one): Rename to ...
17622 (poll_one_curr_target): ... this.
17623 (struct wait_one_event): New.
17624 (wait_one): New.
17625 (stop_all_threads): Adjust.
17626 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17627 event's target.
17628 (switch_back_to_stepped_thread): Also consider target.
17629 (print_stop_event): Update.
17630 (normal_stop): Update. Also consider the resume target.
17631 * infrun.h (wait_for_inferior): Remove declaration.
17632 (user_visible_resume_target): New declaration.
17633 (get_last_target_status, set_last_target_status): New
17634 process_stratum_target parameter.
17635 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17636 process_stratum_target parameter, and use it.
17637 (clear_inline_frame_state (thread_info*)): New.
17638 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17639 process_stratum_target parameter.
17640 (clear_inline_frame_state (thread_info*)): Declare.
17641 * linux-fork.c (delete_checkpoint_command): Pass target down to
17642 find_thread_ptid.
17643 (checkpoint_command): Adjust.
17644 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17645 instead of just tweaking inferior_ptid.
17646 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17647 (exit_lwp): Pass target down to find_thread_ptid.
17648 (attach_proc_task_lwp_callback): Pass target down to
17649 add_thread/set_running/set_executing.
17650 (linux_nat_target::attach): Pass target down to
17651 thread_change_ptid.
17652 (get_detach_signal): Pass target down to find_thread_ptid.
17653 Consider last target status's target.
17654 (linux_resume_one_lwp_throw, resume_lwp)
17655 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17656 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17657 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17658 (linux_nat_target::async_wait_fd): New.
17659 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17660 target down.
17661 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17662 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17663 * linux-thread-db.c (struct thread_db_info::process_target): New
17664 field.
17665 (add_thread_db_info): Save target.
17666 (get_thread_db_info): New process_stratum_target parameter. Also
17667 match target.
17668 (delete_thread_db_info): New process_stratum_target parameter.
17669 Also match target.
17670 (thread_from_lwp): Adjust to pass down target.
17671 (thread_db_notice_clone): Pass down target.
17672 (check_thread_db_callback): Pass down target.
17673 (try_thread_db_load_1): Always push the thread_db target.
17674 (try_thread_db_load, record_thread): Pass target down.
17675 (thread_db_target::detach): Pass target down. Always unpush the
17676 thread_db target.
17677 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17678 target down. Always unpush the thread_db target.
17679 (find_new_threads_callback, thread_db_find_new_threads_2)
17680 (thread_db_target::update_thread_list): Pass target down.
17681 (thread_db_target::pid_to_str): Pass current inferior down.
17682 (thread_db_target::get_thread_local_address): Pass target down.
17683 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17684 target down.
17685 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17686 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17687 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17688 (procfs_init_inferior): Rename to ...
17689 (procfs_target::procfs_init_inferior): ... this and adjust.
17690 (procfs_target::create_inferior, procfs_notice_thread)
17691 (procfs_do_thread_registers): Adjust.
17692 * ppc-fbsd-tdep.c: Include "inferior.h".
17693 (ppcfbsd_get_thread_local_address): Pass down target.
17694 * proc-service.c (ps_xfer_memory): Switch current inferior and
17695 program space as well.
17696 (get_ps_regcache): Pass target down.
17697 * process-stratum-target.c
17698 (process_stratum_target::thread_address_space)
17699 (process_stratum_target::thread_architecture): Pass target down.
17700 * process-stratum-target.h
17701 (process_stratum_target::threads_executing): New field.
17702 (as_process_stratum_target): New.
17703 * ravenscar-thread.c
17704 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17705 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17706 down.
17707 * record-btrace.c (record_btrace_target::info_record): Adjust.
17708 (record_btrace_target::record_method)
17709 (record_btrace_target::record_is_replaying)
17710 (record_btrace_target::fetch_registers)
17711 (get_thread_current_frame_id, record_btrace_target::resume)
17712 (record_btrace_target::wait, record_btrace_target::stop): Pass
17713 target down.
17714 * record-full.c (record_full_wait_1): Switch to event thread.
17715 Pass target down.
17716 * regcache.c (regcache::regcache)
17717 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17718 process_stratum_target parameter and handle it.
17719 (current_thread_target): New global.
17720 (get_thread_regcache): Add process_stratum_target parameter and
17721 handle it. Switch inferior before calling target method.
17722 (get_thread_regcache): Pass target down.
17723 (get_thread_regcache_for_ptid): Pass target down.
17724 (registers_changed_ptid): Add process_stratum_target parameter and
17725 handle it.
17726 (registers_changed_thread, registers_changed): Pass target down.
17727 (test_get_thread_arch_aspace_regcache): New.
17728 (current_regcache_test): Define a couple local test_target_ops
17729 instances and use them for testing.
17730 (readwrite_regcache): Pass process_stratum_target parameter.
17731 (cooked_read_test, cooked_write_test): Pass mock_target down.
17732 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17733 (get_thread_arch_aspace_regcache): Add process_stratum_target
17734 parameter.
17735 (regcache::target): New method.
17736 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17737 (regcache::registers_changed_ptid): Add process_stratum_target
17738 parameter.
17739 (regcache::m_target): New field.
17740 (registers_changed_ptid): Add process_stratum_target parameter.
17741 * remote.c (remote_state::supports_vCont_probed): New field.
17742 (remote_target::async_wait_fd): New method.
17743 (remote_unpush_and_throw): Add remote_target parameter.
17744 (get_current_remote_target): Adjust.
17745 (remote_target::remote_add_inferior): Push target.
17746 (remote_target::remote_add_thread)
17747 (remote_target::remote_notice_new_inferior)
17748 (get_remote_thread_info): Pass target down.
17749 (remote_target::update_thread_list): Skip threads of inferiors
17750 bound to other targets. (remote_target::close): Don't discard
17751 inferiors. (remote_target::add_current_inferior_and_thread)
17752 (remote_target::process_initial_stop_replies)
17753 (remote_target::start_remote)
17754 (remote_target::remote_serial_quit_handler): Pass down target.
17755 (remote_target::remote_unpush_target): New remote_target
17756 parameter. Unpush the target from all inferiors.
17757 (remote_target::remote_unpush_and_throw): New remote_target
17758 parameter. Pass it down.
17759 (remote_target::open_1): Check whether the current inferior has
17760 execution instead of checking whether any inferior is live. Pass
17761 target down.
17762 (remote_target::remote_detach_1): Pass down target. Use
17763 remote_unpush_target.
17764 (extended_remote_target::attach): Pass down target.
17765 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17766 (remote_target::append_resumption): Pass down target.
17767 (remote_target::append_pending_thread_resumptions)
17768 (remote_target::remote_resume_with_hc, remote_target::resume)
17769 (remote_target::commit_resume): Pass down target.
17770 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17771 (remote_target::interrupt_query)
17772 (remote_target::remove_new_fork_children)
17773 (remote_target::check_pending_events_prevent_wildcard_vcont)
17774 (remote_target::remote_parse_stop_reply)
17775 (remote_target::process_stop_reply): Pass down target.
17776 (first_remote_resumed_thread): New remote_target parameter. Pass
17777 it down.
17778 (remote_target::wait_as): Pass down target.
17779 (unpush_and_perror): New remote_target parameter. Pass it down.
17780 (remote_target::readchar, remote_target::remote_serial_write)
17781 (remote_target::getpkt_or_notif_sane_1)
17782 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17783 down target.
17784 (remote_target::mourn_inferior): Pass down target. Use
17785 remote_unpush_target.
17786 (remote_target::core_of_thread)
17787 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17788 (remote_target::pid_to_exec_file)
17789 (remote_target::thread_handle_to_thread_info): Pass down target.
17790 (remote_target::async_wait_fd): New.
17791 * riscv-fbsd-tdep.c: Include "inferior.h".
17792 (riscv_fbsd_get_thread_local_address): Pass down target.
17793 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17794 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17795 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17796 Adjust.
17797 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17798 * solib-svr4.c (enable_break): Pass down target.
17799 * spu-multiarch.c (parse_spufs_run): Pass down target.
17800 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17801 * target-delegates.c: Regenerate.
17802 * target.c (g_target_stack): Delete.
17803 (current_top_target): Return the current inferior's top target.
17804 (target_has_execution_1): Refer to the passed-in inferior's top
17805 target.
17806 (target_supports_terminal_ours): Check whether the initial
17807 inferior was already created.
17808 (decref_target): New.
17809 (target_stack::push): Incref/decref the target.
17810 (push_target, push_target, unpush_target): Adjust.
17811 (target_stack::unpush): Defref target.
17812 (target_is_pushed): Return bool. Adjust to refer to the current
17813 inferior's target stack.
17814 (dispose_inferior): Delete, and inline parts ...
17815 (target_preopen): ... here. Only dispose of the current inferior.
17816 (target_detach): Hold strong target reference while detaching.
17817 Pass target down.
17818 (target_thread_name): Add assertion.
17819 (target_resume): Pass down target.
17820 (target_ops::beneath, find_target_at): Adjust to refer to the
17821 current inferior's target stack.
17822 (get_dummy_target): New.
17823 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17824 has a thread running.
17825 (initialize_targets): Rename to ...
17826 (_initialize_target): ... this.
17827 * target.h: Include "gdbsupport/refcounted-object.h".
17828 (struct target_ops): Inherit refcounted_object.
17829 (target_ops::shortname, target_ops::longname): Make const.
17830 (target_ops::async_wait_fd): New method.
17831 (decref_target): Declare.
17832 (struct target_ops_ref_policy): New.
17833 (target_ops_ref): New typedef.
17834 (get_dummy_target): Declare function.
17835 (target_is_pushed): Return bool.
17836 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17837 (all_matching_threads_iterator::all_matching_threads_iterator):
17838 Handle filter target.
17839 * thread-iter.h (struct all_matching_threads_iterator, struct
17840 all_matching_threads_range, class all_non_exited_threads_range):
17841 Filter by target too. Remove explicit.
17842 * thread.c (threads_executing): Delete.
17843 (inferior_thread): Pass down current inferior.
17844 (clear_thread_inferior_resources): Pass down thread pointer
17845 instead of ptid_t.
17846 (add_thread_silent, add_thread_with_info, add_thread): Add
17847 process_stratum_target parameter. Use it for thread and inferior
17848 searches.
17849 (is_current_thread): New.
17850 (thread_info::deletable): Use it.
17851 (find_thread_ptid, thread_count, in_thread_list)
17852 (thread_change_ptid, set_resumed, set_running): New
17853 process_stratum_target parameter. Pass it down.
17854 (set_executing): New process_stratum_target parameter. Pass it
17855 down. Adjust reference to 'threads_executing'.
17856 (threads_are_executing): New process_stratum_target parameter.
17857 Adjust reference to 'threads_executing'.
17858 (set_stop_requested, finish_thread_state): New
17859 process_stratum_target parameter. Pass it down.
17860 (switch_to_thread): Also match inferior.
17861 (switch_to_thread): New process_stratum_target parameter. Pass it
17862 down.
17863 (update_threads_executing): Reimplement.
17864 * top.c (quit_force): Pop targets from all inferior.
17865 (gdb_init): Don't call initialize_targets.
17866 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17867 Declare.
17868 (windows_add_thread, windows_delete_thread): Adjust.
17869 (get_windows_debug_event): Rename to ...
17870 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17871 * tracefile-tfile.c (tfile_target_open): Pass down target.
17872 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17873 Forward declare.
17874 (switch_to_thread): Add process_stratum_target parameter.
17875 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17876 parameter. Use it.
17877 (mi_on_resume): Pass target down.
17878 * nat/fork-inferior.c (startup_inferior): Add
17879 process_stratum_target parameter. Pass it down.
17880 * nat/fork-inferior.h (startup_inferior): Add
17881 process_stratum_target parameter.
17882 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17883
17884 2020-01-10 Pedro Alves <palves@redhat.com>
17885
17886 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17887 directly. Instead find the first thread in the thread list and
17888 use switch_to_thread.
17889
17890 2020-01-10 Pedro Alves <palves@redhat.com>
17891
17892 * remote.c (remote_target::remote_add_inferior): Don't bind a
17893 process to the current inferior if the current inferior is already
17894 bound to a process.
17895
17896 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17897 Pedro Alves <palves@redhat.com>
17898
17899 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17900 If no process is specified, return null_ptid instead of
17901 inferior_ptid.
17902 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17903 TARGET_WAITKIND_SIGNALLED with no pid.
17904
17905 2020-01-10 Pedro Alves <palves@redhat.com>
17906
17907 * remote.c (first_remote_resumed_thread): New.
17908 (remote_target::wait_as): Use it as default event_ptid instead of
17909 inferior_ptid.
17910
17911 2020-01-10 Pedro Alves <palves@redhat.com>
17912
17913 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17914
17915 2020-01-10 Pedro Alves <palves@redhat.com>
17916
17917 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17918 not -1.
17919
17920 2020-01-10 Pedro Alves <palves@redhat.com>
17921
17922 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17923 ptid to get_last_target_status.
17924 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17925 ptid to get_last_target_status.
17926 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17927 get_last_target_status.
17928 (info_program_command): Don't pass a target_waitstatus to
17929 get_last_target_status.
17930 * infrun.c (init_wait_for_inferior): Use
17931 nullify_last_target_wait_ptid.
17932 (get_last_target_status): Handle nullptr arguments.
17933 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17934 (print_stop_event): Don't pass a ptid to get_last_target_status.
17935 (normal_stop): Don't pass a ptid to get_last_target_status.
17936 * infrun.h (get_last_target_status, set_last_target_status): Move
17937 comments here and update.
17938 (nullify_last_target_wait_ptid): Declare.
17939 * linux-fork.c (fork_load_infrun_state): Remove local extern
17940 declaration of nullify_last_target_wait_ptid.
17941 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17942 to get_last_target_status.
17943
17944 2020-01-10 Pedro Alves <palves@redhat.com>
17945
17946 * gdbthread.h (scoped_restore_current_thread)
17947 <dont_restore, restore, m_dont_restore>: Declare.
17948 * thread.c (thread_alive): Add assertion. Return bool.
17949 (switch_to_thread_if_alive): New.
17950 (prune_threads): Switch inferior/thread.
17951 (print_thread_info_1): Switch thread before calling target methods.
17952 (scoped_restore_current_thread::restore): New, factored out from
17953 ...
17954 (scoped_restore_current_thread::~scoped_restore_current_thread):
17955 ... this.
17956 (scoped_restore_current_thread::scoped_restore_current_thread):
17957 Add assertion.
17958 (thread_apply_all_command, thread_select): Use
17959 switch_to_thread_if_alive.
17960 * infrun.c (proceed, restart_threads, handle_signal_stop)
17961 (switch_back_to_stepped_thread): Switch current thread before
17962 calling target methods.
17963
17964 2020-01-10 Pedro Alves <palves@redhat.com>
17965
17966 * inferior.c (switch_to_inferior_no_thread): New function,
17967 factored out from ...
17968 (inferior_command): ... here.
17969 * inferior.h (switch_to_inferior_no_thread): Declare.
17970 * mi/mi-main.c (run_one_inferior): Use
17971 switch_to_inferior_no_thread.
17972
17973 2020-01-10 Pedro Alves <palves@redhat.com>
17974
17975 * infcmd.c (kill_command): Remove dead code.
17976
17977 2020-01-10 Pedro Alves <palves@redhat.com>
17978
17979 * remote.c (remote_target::mourn_inferior): No longer check
17980 whether the target is running.
17981
17982 2020-01-10 Pedro Alves <palves@redhat.com>
17983
17984 * corelow.c (core_target::has_execution): Change parameter type to
17985 inferior pointer.
17986 * inferior.c (number_of_live_inferiors): Use
17987 inferior::has_execution instead of target_has_execution_1.
17988 * inferior.h (inferior::has_execution): New.
17989 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17990 inferior::has_execution instead of target_has_execution_1.
17991 * process-stratum-target.c
17992 (process_stratum_target::has_execution): Change parameter type to
17993 inferior pointer. Check the inferior's PID instead of
17994 inferior_ptid.
17995 * process-stratum-target.h
17996 (process_stratum_target::has_execution): Change parameter type to
17997 inferior pointer.
17998 * record-full.c (record_full_core_target::has_execution): Change
17999 parameter type to inferior pointer.
18000 * target.c (target_has_execution_1): Change parameter type to
18001 inferior pointer.
18002 (target_has_execution_current): Adjust.
18003 * target.h (target_ops::has_execution): Change parameter type to
18004 inferior pointer.
18005 (target_has_execution_1): Change parameter type to inferior
18006 pointer. Change return type to bool.
18007 * tracefile.h (tracefile_target::has_execution): Change parameter
18008 type to inferior pointer.
18009
18010 2020-01-10 Pedro Alves <palves@redhat.com>
18011
18012 * exceptions.c (print_flush): Remove current_top_target() check.
18013
18014 2020-01-10 Pedro Alves <palves@redhat.com>
18015
18016 * remote.c (show_remote_exec_file): Show the current inferior's
18017 exec-file instead of the command variable's value.
18018
18019 2020-01-10 Pedro Alves <palves@redhat.com>
18020
18021 * record-full.c (record_full_resume_ptid): New global.
18022 (record_full_target::resume): Set it.
18023 (record_full_wait_1): Use record_full_resume_ptid instead of
18024 inferior_ptid.
18025
18026 2020-01-10 Pedro Alves <palves@redhat.com>
18027
18028 * gdbthread.h (scoped_restore_current_thread)
18029 <dont_restore, restore, m_dont_restore>: Declare.
18030 * thread.c (thread_alive): Add assertion. Return bool.
18031 (switch_to_thread_if_alive): New.
18032 (prune_threads): Switch inferior/thread.
18033 (print_thread_info_1): Switch thread before calling target methods.
18034 (scoped_restore_current_thread::restore): New, factored out from
18035 ...
18036 (scoped_restore_current_thread::~scoped_restore_current_thread):
18037 ... this.
18038 (scoped_restore_current_thread::scoped_restore_current_thread):
18039 Add assertion.
18040 (thread_apply_all_command, thread_select): Use
18041 switch_to_thread_if_alive.
18042
18043 2020-01-10 George Barrett <bob@bob131.so>
18044
18045 * stap-probe.c (stap_modify_semaphore): Don't check for null
18046 semaphores.
18047 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18048 for null semaphores.
18049
18050 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18051
18052 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18053 all source windows, and maintain horizontal scroll status while
18054 doing so.
18055
18056 2020-01-09 Tom Tromey <tom@tromey.com>
18057
18058 PR tui/18932:
18059 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18060 update_source_window, not print_source_lines.
18061
18062 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18063
18064 * tui/tui.c (tui_enable): Register tui hooks after calling
18065 tui_display_main.
18066
18067 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18068
18069 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18070
18071 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18072
18073 * thread.c (print_thread_info_1): Fix indentation.
18074
18075 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18076
18077 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18078 unique_xmalloc_ptr outside the if to always free the demangled name.
18079
18080 2020-01-08 Tom Tromey <tromey@adacore.com>
18081
18082 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18083 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18084 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18085 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18086 Remove.
18087 (section_offsets): New typedef.
18088 * symtab.c (fixup_section, get_msymbol_address): Update.
18089 * symmisc.c (dump_msymbols): Update.
18090 * symfile.h (relative_addr_info_to_section_offsets)
18091 (symfile_map_offsets_to_segments): Update.
18092 * symfile.c (build_section_addr_info_from_objfile)
18093 (init_objfile_sect_indices): Update.
18094 (struct place_section_arg): Change type of "offsets".
18095 (place_section): Update.
18096 (relative_addr_info_to_section_offsets): Change type of
18097 "section_offsets". Remove "num_sections" parameter.
18098 (default_symfile_offsets, syms_from_objfile_1)
18099 (set_objfile_default_section_offset): Update.
18100 (reread_symbols): No need to preserve section offsets by hand.
18101 (symfile_map_offsets_to_segments): Change type of "offsets".
18102 * stap-probe.c (relocate_address): Update.
18103 * stabsread.h (process_one_symbol): Update.
18104 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18105 (solib_target_relocate_section_addresses): Update.
18106 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18107 Update.
18108 * solib-frv.c (frv_relocate_main_executable): Update.
18109 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18110 * solib-aix.c (solib_aix_get_section_offsets): Change return
18111 type.
18112 (solib_aix_solib_create_inferior_hook): Update.
18113 * remote.c (remote_target::get_offsets): Update.
18114 * psymtab.c (find_pc_sect_psymtab): Update.
18115 * psympriv.h (struct partial_symbol) <address, text_low,
18116 text_high>: Update.
18117 * objfiles.h (obj_section_offset): Update.
18118 (struct objfile) <section_offsets>: Change type.
18119 <num_sections>: Remove.
18120 (objfile_relocate): Update.
18121 * objfiles.c (entry_point_address_query): Update
18122 (relocate_one_symbol): Change type of "section_offsets".
18123 (objfile_relocate1, objfile_relocate1): Change type of
18124 "new_offsets".
18125 (objfile_rebase1): Update.
18126 * mipsread.c (mipscoff_symfile_read): Update.
18127 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18128 parameter.
18129 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18130 (parse_external, psymtab_to_symtab_1): Update.
18131 * machoread.c (macho_symfile_offsets): Update.
18132 * ia64-tdep.c (ia64_find_unwind_table): Update.
18133 * hppa-tdep.c (read_unwind_info): Update.
18134 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18135 * dwarf2read.c (create_addrmap_from_index)
18136 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18137 (process_psymtab_comp_unit_reader, add_partial_symbol)
18138 (add_partial_subprogram, process_full_comp_unit)
18139 (read_file_scope, read_func_scope, read_lexical_block_scope)
18140 (read_call_site_scope, dwarf2_rnglists_process)
18141 (dwarf2_ranges_process, dwarf2_ranges_read)
18142 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18143 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18144 Update.
18145 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18146 Update.
18147 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18148 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18149 (process_one_symbol): Change type of "section_offsets".
18150 * ctfread.c (get_objfile_text_range): Update.
18151 * coffread.c (coff_symtab_read, enter_linenos)
18152 (process_coff_symbol): Update.
18153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18154 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18155
18156 2020-01-08 Tom Tromey <tromey@adacore.com>
18157
18158 * dwarf2read.c (parse_macro_definition): Use std::string.
18159 (parse_macro_definition): Likewise.
18160
18161 2020-01-08 Tom Tromey <tromey@adacore.com>
18162
18163 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18164 (ATTR_ALLOC_CHUNK): Remove.
18165
18166 2020-01-08 Tom Tromey <tromey@adacore.com>
18167
18168 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18169
18170 2020-01-08 Tom Tromey <tromey@adacore.com>
18171
18172 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18173 (dwarf2_compute_name, open_dwo_file): Likewise.
18174 (process_enumeration_scope): Use std::vector.
18175 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18176 (partial_die_info::fixup, dwarf2_start_subfile)
18177 (guess_full_die_structure_name, dwarf2_name): Likewise.
18178 (determine_prefix): Update.
18179 (guess_full_die_structure_name): Make return type const.
18180 (partial_die_full_name): Return unique_xmalloc_ptr.
18181 (DW_FIELD_ALLOC_CHUNK): Remove.
18182
18183 2020-01-07 Tom Tromey <tromey@adacore.com>
18184
18185 PR build/24937:
18186 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18187
18188 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18189
18190 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18191
18192 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18193
18194 * stack.c (print_frame_info): Move disassemble_next_line code
18195 inside source_print block.
18196
18197 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18198
18199 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18200 gdb/signals.h, as we are now using native signal symbols.
18201
18202 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18203
18204 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18205 overflow by an early check of content vs threshold.
18206 * tui/tui-source.c (tui_source_window::line_is_displayed):
18207 Likewise.
18208
18209 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18210
18211 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18212
18213 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18214
18215 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18216 export table if no section contains it's RVA.
18217
18218 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18219
18220 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18221
18222 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18223
18224 * source.c (print_source_lines_base): Set last_line_listed.
18225
18226 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18227
18228 * tui/tui-disasm.c: Remove trailing spaces.
18229
18230 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18231 Pedro Alves <palves@redhat.com>
18232
18233 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18234 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18235 (windows_gdb_signal_to_target): New function, uses the above
18236 enumeration to convert GDB internal signal codes to equivalent
18237 Windows codes.
18238 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18239 * windows-nat.c: Include "gdb_wait.h".
18240 (get_windows_debug_event): Extract the fatal exception from the
18241 exit status and convert to the equivalent Posix signal number.
18242 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18243 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18244 * gdbsupport/gdb_wait.c: New file, implements
18245 windows_status_to_termsig.
18246 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18247 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18248
18249 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18250
18251 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18252 show_layout.
18253
18254 2020-01-05 Luis Machado <luis.machado@linaro.org>
18255
18256 * aarch64-linux-nat.c
18257 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18258 and bfd_mach_aarch64.
18259
18260 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18261
18262 * ui-file.c (stdio_file::can_emit_style_escape)
18263 (tee_file::can_emit_style_escape): Ensure style is used also on
18264 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18265 to gdb_stdout.
18266 * main.c (set_gdb_data_directory): Use file style to output the
18267 warning that the given pathname is not a directory.
18268 * top.c (show_history_filename, gdb_safe_append_history)
18269 (show_gdb_datadir): Use file style.
18270
18271 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18272
18273 * solib-target.c (struct lm_info_target):
18274 Change offsets to be a unique_xmalloc_ptr.
18275 (solib_target_relocate_section_addresses): Update.
18276
18277 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18278
18279 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18280
18281 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18282
18283 * MAINTAINERS (Write After Approval): Add myself.
18284
18285 2020-01-02 Luis Machado <luis.machado@linaro.org>
18286
18287 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18288 Cell BE architecture.
18289 * target.h (struct target_ops) <thread_architecture>: Likewise.
18290
18291 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18292
18293 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18294
18295 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18296
18297 * MAINTAINERS (Write After Approval): Add myself.
18298
18299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18300
18301 * gdbarch.sh: Update copyright year range of generated files.
18302
18303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18304
18305 Update copyright year range in all GDB files.
18306
18307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18308
18309 * copyright.py: Convert to Python 3.
18310
18311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18312
18313 * copyright.py: Adapt after move of gnulib directory from gdb
18314 directory to toplevel directory.
18315
18316 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18317
18318 * copyright.py (main): Exit if run from the wrong directory.
18319
18320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18321
18322 * top.c (print_gdb_version): Change copyright year to 2020.
18323
18324 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18325
18326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18327
18328 For older changes see ChangeLog-2019.
18329 \f
18330 Local Variables:
18331 mode: change-log
18332 left-margin: 8
18333 fill-column: 74
18334 version-control: never
18335 coding: utf-8
18336 End:
This page took 0.643767 seconds and 5 git commands to generate.