]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Clean up arguments to evaluate_subexp_do_call
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1ab8280d
TT
12020-12-15 Tom Tromey <tom@tromey.com>
2
3 * f-lang.c (evaluate_subexp_f): Update.
4 * expression.h (evaluate_subexp_do_call): Update.
5 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
6 nargs, argvec with array_view.
7 (evaluate_funcall): Update.
8
cf608cc4
TT
92020-12-15 Tom Tromey <tom@tromey.com>
10
11 * ada-lang.c (num_component_specs): Remove.
12 (assign_aggregate): Update.
13 (aggregate_assign_positional, aggregate_assign_from_choices)
14 (aggregate_assign_others, add_component_interval): Change
15 arguments.
16
0e5ad442
TT
172020-12-15 Tom Tromey <tromey@adacore.com>
18
19 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
20 command names.
21
a6f3c8a1
TT
222020-12-14 Tom Tromey <tom@tromey.com>
23
24 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
25 * typeprint.c (whatis_exp): Always use evaluate_type.
26 (maintenance_print_type): Likewise. Simplify.
27
86b44259
TT
282020-12-14 Tom Tromey <tromey@adacore.com>
29
30 * dictionary.c (language_defn::search_name_hash): Ignore "B".
31 * ada-lang.c (advance_wild_match): Ignore "B".
32 (full_match): Remove.
33 (do_full_match): Rewrite.
34
25a1127b
TT
352020-12-14 Tom Tromey <tromey@adacore.com>
36
37 * ada-lang.c (get_var_value): Only consider exact matches.
38
e26624c6
TT
392020-12-14 Tom Tromey <tromey@adacore.com>
40
41 * dwarf2/read.c (rewrite_array_type): New function.
42 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
43
a3bdae4e
TT
442020-12-14 Tom Tromey <tromey@adacore.com>
45
46 * valarith.c (fixed_point_binop): Call error on division by zero.
47
f5756acc
TT
482020-12-13 Tom Tromey <tom@tromey.com>
49
50 * gdbtypes.c (safe_parse_type): Make argument const.
51 * value.h (parse_and_eval_type): Make argument const.
52 * eval.c (parse_and_eval_type): Make argument const.
53
ee9812a0
AB
542020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * NEWS: Mention new commands.
57 * target-dcache.c: Add 'cli/cli-cmds.h' include.
58 (maint_flush_dcache_command): New function.
59 (_initialize_target_dcache): Create new 'maint flush dcache'
60 command.
61
50a5f187
AB
622020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * NEWS: Mention new commands, and that the old commands are now
65 deprecated.
66 * cli/cli-cmds.c (maintenanceflushlist): Define.
67 * cli/cli-cmds.h (maintenanceflushlist): Declare.
68 * maint.c (_initialize_maint_cmds): Initialise
69 maintenanceflushlist.
70 * regcache.c: Add 'cli/cli-cmds.h' include.
71 (reg_flush_command): Add header comment.
72 (_initialize_regcache): Create new 'maint flush register-cache'
73 command, make 'flushregs' an alias.
74 * symtab.c: Add 'cli/cli-cmds.h' include.
75 (_initialize_symtab): Create new 'maint flush symbol-cache'
76 command, make old command an alias.
77
19c659f1
AB
782020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
81 result from lookup_cmd_composition_1, use the prefixes from both
82 the command and the alias instead.
83 (lookup_cmd_composition_1): Initial prefix command is the based on
84 the search list being passed in. Simplify the logic for tracking
85 the prefix command. Replace a use of alloca with a local
86 std::string.
87
44c77c32
AB
882020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
91 of NULL. Don't print message piece by piece, but sentence at a
92 time to allow internationalisation. Some whitespace cleanup.
93
9ef6d4a1
AB
942020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 PR cli/15104
97 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
98 deprecated_cmd_warning.
99 (deprecated_cmd_warning): Take extra parameter, call
100 lookup_cmd_composition_1 and pass new parameter through.
101 (lookup_cmd_composition_1): New function, takes implementation of
102 lookup_cmd_composition but with extra parameter.
103 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
104 passing in cmdlist.
105 * command.h (deprecated_cmd_warning): Add extra parameter to
106 declaration.
107 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
108
1536146f
AB
1092020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
112 command.h, add extra parameter, and use this to guard giving a
113 warning.
114 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
115 include argument names in declaration, add new argument.
116 * completer.c (complete_line_internal_1): Remove unneeded
117 brackets, pass extra argument to lookup_cmd_1.
118
94ba44a6
SM
1192020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * infrun.h (debug_infrun): Make a bool.
122 * infrun.c (debug_infrun): Make a bool.
123 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
124 debug infrun".
125
74b773fc
SM
1262020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * displaced-stepping.h (displaced_debug_printf): Use
129 debug_prefixed_printf_cond.
130 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
131 (dwarf_read_debug_printf_v): Likewise.
132 * infrun.h (infrun_debug_printf): Likewise.
133 * linux-nat.c (linux_nat_debug_printf): Likewise.
134
02c72701
TT
1352020-12-11 Tom Tromey <tom@tromey.com>
136
137 * p-exp.y (intvar): Remove global.
138 (DOLLAR_VARIABLE): Change type.
139 (start): Update.
140 (exp): Call write_dollar_variable here...
141 (yylex): ... not here.
142 * m2-exp.y (DOLLAR_VARIABLE): Change type.
143 (variable): Call write_dollar_variable here...
144 (yylex): ... not here.
145 * f-exp.y (DOLLAR_VARIABLE): Change type.
146 (exp): Call write_dollar_variable here...
147 (yylex): ... not here.
148
07d9937a
TT
1492020-12-11 Tom Tromey <tom@tromey.com>
150
151 * varobj.c (varobj_create): Update.
152 (install_variable): Return void.
153
1345dee2
TT
1542020-12-11 Tom Tromey <tom@tromey.com>
155
156 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
157
446d2c03
TT
1582020-12-11 Tom Tromey <tom@tromey.com>
159
160 * varobj.c (varobj_clear_saved_item): Remove.
161 (update_dynamic_varobj_children): Update.
162 (varobj::~varobj): Don't call varobj_clear_saved_item.
163
11106495
TT
1642020-12-11 Tom Tromey <tom@tromey.com>
165
166 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
167 (update_dynamic_varobj_children, create_child)
168 (create_child_with_value): Update.
169 * varobj-iter.h (struct varobj_item) <value>: Now a
170 value_ref_ptr.
171 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
172
24fd95b4
TT
1732020-12-11 Tom Tromey <tom@tromey.com>
174
175 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
176 (varobj_get_iterator): Return unique_ptr.
177 (update_dynamic_varobj_children, install_visualizer)
178 (varobj::~varobj): Update.
179 * python/python-internal.h (py_varobj_get_iterator): Return
180 unique_ptr.
181 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
182
74462664
TT
1832020-12-11 Tom Tromey <tom@tromey.com>
184
185 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
186 (varobj_clear_saved_item, update_dynamic_varobj_children):
187 Update.
188
60ee72f6
TT
1892020-12-11 Tom Tromey <tom@tromey.com>
190
191 * varobj.c (update_dynamic_varobj_children): Update.
192 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
193 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
194 type.
195 (py_varobj_iter::next): Likewise.
196
54746ce3
TT
1972020-12-11 Tom Tromey <tom@tromey.com>
198
199 * varobj.c (update_dynamic_varobj_children, install_visualizer)
200 (varobj::~varobj): Update.
201 * varobj-iter.h (struct varobj_iter): Change to interface class.
202 (struct varobj_iter_ops): Remove.
203 (varobj_iter_next, varobj_iter_delete): Remove.
204 * python/py-varobj.c (struct py_varobj_iter): Derive from
205 varobj_iter. Add constructor, destructor. Rename members.
206 (py_varobj_iter::~py_varobj_iter): Rename from
207 py_varobj_iter_dtor.
208 (py_varobj_iter::next): Rename from py_varobj_iter_next.
209 (py_varobj_iter_ops): Remove.
210 (py_varobj_iter): Rename from py_varobj_iter_ctor.
211 (py_varobj_iter_new): Remove.
212 (py_varobj_get_iterator): Update.
213
d8f168dd
TT
2142020-12-11 Tom Tromey <tom@tromey.com>
215
216 * varobj.h (all_root_varobjs): Take a function_view.
217 * varobj.c (all_root_varobjs): Take a function_view.
218 (varobj_invalidate_iter): Remove unused parameter.
219 (varobj_invalidate): Update.
220 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
221 (mi_cmd_var_update_iter): Change parameters.
222
76deb5d9
TT
2232020-12-11 Tom Tromey <tom@tromey.com>
224
225 * varobj.c (struct varobj_root) <next>: Remove.
226 (struct vlist): Remove.
227 (rootlist): Now a std::list.
228 (install_variable, uninstall_variable, all_root_varobjs): Update.
229
2c1413a9
TT
2302020-12-11 Tom Tromey <tom@tromey.com>
231
232 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
233 (varobj_table): Now htab_t.
234 (varobj_get_handle, install_variable, uninstall_variable):
235 Update.
236 (hash_varobj, eq_varobj_and_string): New functions.
237 (hash_varobj): Update.
238
b6433ede
TT
2392020-12-11 Tom Tromey <tom@tromey.com>
240
241 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
242 * ada-lang.c (check_status_exception): Update.
243 * breakpoint.c (free_bp_location): Remove.
244 (decref_bp_location): Use bp_location_ref_policy.
245 (bpstats::bpstats): Don't call incref_bp_location.
246 (bpstats::~bpstats): Remove.
247 (bpstats::bpstats): Update.
248 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
249 (bp_location::bp_location): Update.
250 (incref_bp_location): Remove.
251 (bkpt_print_it): Update.
252 * breakpoint.h (class bp_location): Derive from
253 refcounted_object.
254 (struct bpstats): Remove destructor.
255 <bp_location_at>: Now a bp_location_ref_ptr.
256 <refc>: Remove.
257 (bp_location_ref_ptr): New typedef.
258 (struct bp_location_ref_policy): New.
259
bfcb9db8
TT
2602020-12-11 Tom Tromey <tom@tromey.com>
261
262 * thread.c (class scoped_inc_dec_ref): Remove.
263 (tp_array_compar_ascending, tp_array_compar_descending): Change
264 parameter types.
265 (thread_apply_all_command): Use thread_info_ref.
266
d634cd0b
TT
2672020-12-11 Tom Tromey <tom@tromey.com>
268
269 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
270 (stop_context::stop_context): Update.
271 (stop_context::~stop_context): Remove.
272
51107df5
TT
2732020-12-11 Tom Tromey <tom@tromey.com>
274
275 * inferior.c (current_inferior_): Change type.
276 (current_inferior, set_current_inferior, initialize_inferiors):
277 Update.
278
15f4dddd
TT
2792020-12-11 Tom Tromey <tom@tromey.com>
280
281 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
282 Change type.
283
a9f14fa5
TT
2842020-12-11 Tom Tromey <tromey@adacore.com>
285
286 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
287 field.
288 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
289 (read_atcb): Use cpu_id_offset.
290
2ccee230
KB
2912020-12-10 Kevin Buettner <kevinb@redhat.com>
292
293 * ada-lang.c (ada_fold_name): Fix off-by-one error.
294
ae1f4d2d
LM
2952020-12-10 Luis Machado <luis.machado@linaro.org>
296
297 * breakpoint.c (should_be_inserted): Don't output newline.
298
6afcd2d4
LM
2992020-12-10 Luis Machado <luis.machado@linaro.org>
300
301 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
302 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
303 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
304 * arch/aarch64.h: ... here.
305 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
306 (aarch64_maybe_swab128): New function.
307 (aarch64_sve_regs_copy_to_reg_buf)
308 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
309 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
310 the data field.
311 (TF_REG_VALUE_BYTES): New enum value.
312 (trad_frame_value_bytes_p): New function.
313 (trad_frame_set_value_bytes): New function.
314 (trad_frame_set_reg_value_bytes): New function.
315 (trad_frame_get_prev_register): Handle register values saved as bytes.
316 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
317 (struct trad_frame_saved_reg) <data>: New field.
318 (trad_frame_set_value_bytes): New prototype.
319 (trad_frame_value_bytes_p): New prototype.
320
15cc148f
MS
3212020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
322
323 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
324 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
325 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
326
12932e2c
TT
3272020-12-09 Tom Tromey <tromey@adacore.com>
328
329 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
330
5cde1d82
TT
3312020-12-09 Tom Tromey <tromey@adacore.com>
332
333 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
334 and "denominator" to gdb_mpz. Handle block forms.
335 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
336 "denominator" to gdb_mpz.
337 (finish_fixed_point_type): Update.
338 (has_zero_over_zero_small_attribute): Update.
339
d9c3a9c0
TT
3402020-12-09 Tom Tromey <tromey@adacore.com>
341
342 * expprint.c (op_name): Update.
343 * expression.h (enum exp_opcode): Update.
344 * std-operator.def: Add more opcodes.
345 * ada-operator.def, fortran-operator.def: Remove, moving contents
346 into std-operator.def.
347
6ad368b8
SM
3482020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
351 Return {} instead of false.
352 (get_discrete_bounds): Compute high bound only if low bound is
353 valid.
354
5b56203a
SM
3552020-12-09 Simon Marchi <simon.marchi@efficios.com>
356
357 PR 26875, PR 26901
358 * gdbtypes.c (get_discrete_low_bound): Make non-static.
359 (get_discrete_high_bound): Make non-static.
360 * gdbtypes.h (get_discrete_low_bound): New declaration.
361 (get_discrete_high_bound): New declaration.
362 * valarith.c (value_subscript): Only fetch high bound if
363 necessary.
364
14c09924
SM
3652020-12-09 Simon Marchi <simon.marchi@efficios.com>
366
367 * gdbtypes.c (get_discrete_bounds): Implement with
368 get_discrete_low_bound and get_discrete_high_bound.
369 (get_discrete_low_bound): New.
370 (get_discrete_high_bound): New.
371
1f8d2881
SM
3722020-12-09 Simon Marchi <simon.marchi@efficios.com>
373
374 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
375 callers.
376 * gdbtypes.c (get_discrete_bounds): Return bool.
377
6244c119
SM
3782020-12-09 Simon Marchi <simon.marchi@efficios.com>
379
380 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
381 (ada_value_slice): Adjust.
382 (pos_atr): Adjust.
383 * gdbtypes.c (get_discrete_bounds): Adjust.
384 (discrete_position): Return optional.
385 * gdbtypes.h (discrete_position): Return optional.
386
a4915e8d
TT
3872020-12-07 Tom Tromey <tromey@adacore.com>
388
389 * maint.c (_initialize_maint_cmds): Use expression command
390 completer for "maint print type".
391
1f58f6c2
TBA
3922020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
393
394 * completer.c (complete_explicit_location): Also add keywords
395 that start with '-' to the completion list.
396
5759831a
TBA
3972020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398
399 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
400 keyword may be followed by any keyword.
401 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
402 'toklen' in the case for "-force-condition".
403
21e051b3
TBA
4042020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
405
406 * main.c (catch_command_errors): Add a flag parameter; invoke
407 `bpstat_do_actions` if the flag is set.
408 (execute_cmdargs): Update a call to `catch_command_errors`.
409
f51f9f1d
TV
4102020-12-07 Tom de Vries <tdevries@suse.de>
411
412 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
413
00158a68
TT
4142020-12-06 Tom Tromey <tom@tromey.com>
415
416 PR ada/26999
417 * ada-lang.c (replace_operator_with_call): Rewrite.
418
296cfb88
GF
4192020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
420
421 PR breakpoints/27009
422 * s390-tdep.h (op_bc): Correct BC opcode value.
423
63c457b9
JB
4242020-12-06 Joel Brobecker <brobecker@adacore.com>
425
426 * gmp-utils.h (gdb_mpz::safe_export): New private method.
427 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
428 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
429 (gdb_mpz::safe_export): New method.
430 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
431 Update function description.
432 (check_as_integer_raises_out_of_range_error): New function.
433 (gdb_mpz_as_integer_out_of_range): New function.
434 (_initialize_gmp_utils_selftests): Register
435 gdb_mpz_as_integer_out_of_range as a selftest.
436
3c7ba803
JB
4372020-12-05 Joel Brobecker <brobecker@adacore.com>
438
439 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
440 TARGET_CHAR_BIT.
441 (gdb_mpz::write): Likewise.
442
372ff58f
SM
4432020-12-04 Simon Marchi <simon.marchi@efficios.com>
444
445 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
446 number of displaced step buffers.
447
480af54c
SM
4482020-12-04 Simon Marchi <simon.marchi@efficios.com>
449
450 * displaced-stepping.h (struct displaced_step_buffer): Rename
451 to...
452 (struct displaced_step_buffers): ... this.
453 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
454 <struct displaced_step_buffer>: New inner class.
455 <m_buffers>: New.
456 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
457 to...
458 (displaced_step_buffers::prepare): ... this, adjust for multiple
459 buffers.
460 (displaced_step_buffer::finish): Rename to...
461 (displaced_step_buffers::finish): ... this, adjust for multiple
462 buffers.
463 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
464 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
465 adjust for multiple buffers.
466 (displaced_step_buffer::restore_in_ptid): Rename to...
467 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
468 multiple buffers.
469 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
470 for num_disp_step_buffers.
471 * linux-tdep.c (struct linux_gdbarch_data)
472 <num_disp_step_buffers>: New field.
473 (struct linux_info) <disp_step_buf>: Rename to...
474 <disp_step_bufs>: ... this, change type to
475 displaced_step_buffers.
476 (linux_displaced_step_prepare): Use
477 linux_gdbarch_data::num_disp_step_buffers to create that number
478 of buffers.
479 (linux_displaced_step_finish): Adjust.
480 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
481 (linux_displaced_step_restore_all_in_ptid): Adjust.
482 (linux_init_abi): Change supports_displaced_step parameter for
483 num_disp_step_buffers, save it in linux_gdbarch_data.
484 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
485 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
486 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
487 supports_displaced_step parameter for num_disp_step_buffers.
488 (amd64_linux_init_abi): Adjust.
489 (amd64_x32_linux_init_abi): Adjust.
490 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
491 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
492 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
493 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
494 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
495 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
496 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
497 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
498 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
499 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
500 * m68k-linux-tdep.c (m68k_linux_init_abi):
501 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
502 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
503 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
504 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
505 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
506 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
507 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
508 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
509 Change type to displaced_step_buffers.
510 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
511 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
512 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
513 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
514 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
515 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
516 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
517
d9655058
SM
5182020-12-04 Simon Marchi <simon.marchi@efficios.com>
519
520 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
521 obkstack.
522 (_initialize_linux_tdep): Register pre-init gdb data instead of
523 post-init.
524
187b041e
SM
5252020-12-04 Simon Marchi <simon.marchi@efficios.com>
526
527 * displaced-stepping.h (struct
528 displaced_step_copy_insn_closure): Adjust comments.
529 (struct displaced_step_inferior_state) <step_thread,
530 step_gdbarch, step_closure, step_original, step_copy,
531 step_saved_copy>: Remove fields.
532 (struct displaced_step_thread_state): New.
533 (struct displaced_step_buffer): New.
534 * displaced-stepping.c (displaced_step_buffer::prepare): New.
535 (write_memory_ptid): Move from infrun.c.
536 (displaced_step_instruction_executed_successfully): New,
537 factored out of displaced_step_finish.
538 (displaced_step_buffer::finish): New.
539 (displaced_step_buffer::copy_insn_closure_by_addr): New.
540 (displaced_step_buffer::restore_in_ptid): New.
541 * gdbarch.sh (displaced_step_location): Remove.
542 (displaced_step_prepare, displaced_step_finish,
543 displaced_step_copy_insn_closure_by_addr,
544 displaced_step_restore_all_in_ptid): New.
545 * gdbarch.c: Re-generate.
546 * gdbarch.h: Re-generate.
547 * gdbthread.h (class thread_info) <displaced_step_state>: New
548 field.
549 (thread_step_over_chain_remove): New declaration.
550 (thread_step_over_chain_next): New declaration.
551 (thread_step_over_chain_length): New declaration.
552 * thread.c (thread_step_over_chain_remove): Make non-static.
553 (thread_step_over_chain_next): New.
554 (global_thread_step_over_chain_next): Use
555 thread_step_over_chain_next.
556 (thread_step_over_chain_length): New.
557 (global_thread_step_over_chain_enqueue): Add debug print.
558 (global_thread_step_over_chain_remove): Add debug print.
559 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
560 Remove.
561 * infrun.c (get_displaced_stepping_state): New.
562 (displaced_step_in_progress_any_inferior): Remove.
563 (displaced_step_in_progress_thread): Adjust.
564 (displaced_step_in_progress): Adjust.
565 (displaced_step_in_progress_any_thread): New.
566 (get_displaced_step_copy_insn_closure_by_addr): Remove.
567 (gdbarch_supports_displaced_stepping): Use
568 gdbarch_displaced_step_prepare_p.
569 (displaced_step_reset): Change parameter from inferior to
570 thread.
571 (displaced_step_prepare_throw): Implement using
572 gdbarch_displaced_step_prepare.
573 (write_memory_ptid): Move to displaced-step.c.
574 (displaced_step_restore): Remove.
575 (displaced_step_finish): Implement using
576 gdbarch_displaced_step_finish.
577 (start_step_over): Allow starting more than one displaced step.
578 (prepare_for_detach): Handle possibly multiple threads doing
579 displaced steps.
580 (handle_inferior_event): Handle possibility that fork event
581 happens while another thread displaced steps.
582 * linux-tdep.h (linux_displaced_step_prepare): New.
583 (linux_displaced_step_finish): New.
584 (linux_displaced_step_copy_insn_closure_by_addr): New.
585 (linux_displaced_step_restore_all_in_ptid): New.
586 (linux_init_abi): Add supports_displaced_step parameter.
587 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
588 (linux_displaced_step_prepare): New.
589 (linux_displaced_step_finish): New.
590 (linux_displaced_step_copy_insn_closure_by_addr): New.
591 (linux_displaced_step_restore_all_in_ptid): New.
592 (linux_init_abi): Add supports_displaced_step parameter,
593 register displaced step methods if true.
594 (_initialize_linux_tdep): Register inferior_execd observer.
595 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
596 supports_displaced_step parameter, adjust call to
597 linux_init_abi. Remove call to
598 set_gdbarch_displaced_step_location.
599 (amd64_linux_init_abi): Adjust call to
600 amd64_linux_init_abi_common.
601 (amd64_x32_linux_init_abi): Likewise.
602 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
603 linux_init_abi. Remove call to
604 set_gdbarch_displaced_step_location.
605 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
606 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
607 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
608 linux_init_abi.
609 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
610 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
611 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
612 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
613 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
614 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
615 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
616 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
617 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
618 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
619 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
620 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
621 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
622 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
623 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
624 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
625 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
626 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
627 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
628 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
629 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
630 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
631 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
632 linux_init_abi. Remove call to
633 set_gdbarch_displaced_step_location.
634 * arm-tdep.c (arm_pc_is_thumb): Call
635 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
636 get_displaced_step_copy_insn_closure_by_addr.
637 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
638 clear gdbarch methods.
639 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
640 (get_ppc_per_inferior): New function.
641 (ppc_displaced_step_prepare): New function.
642 (ppc_displaced_step_finish): New function.
643 (ppc_displaced_step_restore_all_in_ptid): New function.
644 (rs6000_gdbarch_init): Register new gdbarch methods.
645 * s390-tdep.c (s390_gdbarch_init): Don't call
646 set_gdbarch_displaced_step_location, set new gdbarch methods.
647
c7acb87b
SM
6482020-12-04 Simon Marchi <simon.marchi@efficios.com>
649
650 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
651 * aarch64-tdep.h: Include displaced-stepping.h.
652 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
653 Move here.
654 (displaced_step_copy_insn_closure_up): Move here.
655 (struct buf_displaced_step_copy_insn_closure): Move here.
656 (struct displaced_step_inferior_state): Move here.
657 (debug_displaced): Move here.
658 (displaced_debug_printf_1): Move here.
659 (displaced_debug_printf): Move here.
660 * displaced-stepping.c: New file.
661 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
662 * gdbarch.h: Re-generate.
663 * inferior.h: Include displaced-stepping.h.
664 * infrun.h (debug_displaced): Move to displaced-stepping.h.
665 (displaced_debug_printf_1): Likewise.
666 (displaced_debug_printf): Likewise.
667 (struct displaced_step_copy_insn_closure): Likewise.
668 (displaced_step_copy_insn_closure_up): Likewise.
669 (struct buf_displaced_step_copy_insn_closure): Likewise.
670 (struct displaced_step_inferior_state): Likewise.
671 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
672 (displaced_debug_printf_1): Likewise.
673 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
674 Likewise.
675 (_initialize_infrun): Don't register "set/show debug displaced".
676
94b24c74
SM
6772020-12-04 Simon Marchi <simon.marchi@efficios.com>
678
679 * linux-tdep.c (get_linux_inferior_data): Add inferior
680 parameter.
681 (linux_vsyscall_range): Pass current inferior.
682
bab37966
SM
6832020-12-04 Simon Marchi <simon.marchi@efficios.com>
684
685 * infrun.c (displaced_step_prepare_throw): Change return type to
686 displaced_step_prepare_status.
687 (displaced_step_prepare): Likewise.
688 (displaced_step_finish): Change return type to
689 displaced_step_finish_status.
690 (resume_1): Adjust.
691 (stop_all_threads): Adjust.
692 * displaced-stepping.h: New file.
693
7def77a1
SM
6942020-12-04 Simon Marchi <simon.marchi@efficios.com>
695
696 * infrun.c (displaced_step_fixup): Rename to...
697 (displaced_step_finish): ... this, update all callers.
698
1152d984
SM
6992020-12-04 Simon Marchi <simon.marchi@efficios.com>
700
701 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
702 (get_displaced_step_copy_insn_closure_by_addr): ... this.
703 Update all users.
704 (displaced_step_closure): Rename to...
705 (displaced_step_copy_insn_closure): ... this. Update all users.
706 (displaced_step_closure_up): Rename to...
707 (displaced_step_copy_insn_closure_up). ... this. Update all
708 users.
709 (buf_displaced_step_closure): Rename to...
710 (buf_displaced_step_copy_insn_closure): ... this. Update all
711 users.
712 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
713 (get_displaced_step_copy_insn_closure_by_addr): ... this.
714 Update all users.
715 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
716 (aarch64_displaced_step_copy_insn_closure): ... this. Update
717 all users.
718 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
719 (amd64_displaced_step_copy_insn_closure): ... this. Update all
720 users.
721 * arm-tdep.h (arm_displaced_step_closure): Rename to...
722 (arm_displaced_step_copy_insn_closure): ... this. Update all
723 users.
724 * i386-tdep.h (i386_displaced_step_closure): Rename to...
725 (i386_displaced_step_copy_insn_closure): ... this. Update all
726 users.
727 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
728 (ppc_displaced_step_copy_insn_closure): ... this. Update all
729 users.
730 * s390-tdep.c (s390_displaced_step_closure): Rename to...
731 (s390_displaced_step_copy_insn_closure): ... this. Update all
732 users.
733 * gdbarch.h: Re-generate.
734 * gdbarch.c: Re-generate.
735
28d5518b
SM
7362020-12-04 Simon Marchi <simon.marchi@efficios.com>
737
738 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
739 (global_thread_step_over_chain_enqueue): ... this. Update all
740 users.
741 (thread_step_over_chain_remove): Rename to...
742 (global_thread_step_over_chain_remove): ... this. Update all
743 users.
744 (thread_step_over_chain_next): Rename to...
745 (global_thread_step_over_chain_next): ... this. Update all
746 users.
747 * infrun.h (step_over_queue_head): Rename to...
748 (global_thread_step_over_chain_head): ... this. Update all
749 users.
750 * infrun.c (step_over_queue_head): Rename to...
751 (global_thread_step_over_chain_head): ... this. Update all
752 users.
753 * thread.c (step_over_chain_remove): Rename to...
754 (thread_step_over_chain_remove): ... this. Update all users.
755 (thread_step_over_chain_next): Rename to...
756 (global_thread_step_over_chain_next): ... this. Update all
757 users.
758 (thread_step_over_chain_enqueue): Rename to...
759 (global_thread_step_over_chain_enqueue): ... this. Update all
760 users.
761 (thread_step_over_chain_remove): Rename to...
762 (global_thread_step_over_chain_remove): ... this. Update all
763 users.
764
f5f01699
SM
7652020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * infrun.c (get_displaced_stepping_state): Remove, change
768 callers to access the field directly.
769
c0aba012
SM
7702020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * infrun.c (handle_inferior_event): Restore displaced step
773 buffer bytes in child process when handling fork, even if fork
774 happened in another thread than the displaced-stepping one.
775
3b7a962d
SM
7762020-12-04 Simon Marchi <simon.marchi@efficios.com>
777
778 * infrun.c (infrun_inferior_execd): New function.
779 (_initialize_infrun): Attach inferior_execd observer.
780
42a4fec5
SM
7812020-12-04 Simon Marchi <simon.marchi@efficios.com>
782
783 * observable.h (inferior_execd): Declare new observable.
784 * observable.c (inferior_execd): Declare new observable.
785 * infrun.c (follow_exec): Notify inferior_execd observer.
786 * jit.c (jit_inferior_created_hook): Make static.
787 (_initialize_jit): Register inferior_execd observer.
788 * jit.h (jit_inferior_created_hook): Remove declaration.
789 * solib.c (_initialize_solib): Register inferior_execd observer.
790
aafdfb4e
TV
7912020-12-04 Tom de Vries <tdevries@suse.de>
792
793 PR gdb/27003
794 * completer.c (completion_tracker::build_completion_result): Don't
795 access match_list[0][-1].
796
f99b5177
TT
7972020-12-04 Tom Tromey <tromey@adacore.com>
798
799 * linespec.c (struct linespec_token): Rename; remove typedef.
800 * guile/scm-block.c (struct block_smob): Remove typedef.
801 (struct block_syms_progress_smob): Likewise.
802 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
803 * guile/scm-symtab.c (symtab_smob): Remove typedef.
804 (struct sal_smob): Remove typedef.
805 * guile/scm-param.c (struct param_smob): Remove typedef.
806 * guile/scm-progspace.c (struct pspace_smob): Rename.
807 * guile/scm-objfile.c (struct objfile_smob): Rename.
808 * guile/scm-iterator.c (struct iterator_smob): Rename.
809 * guile/scm-frame.c (struct frame_smob): Rename.
810 * guile/scm-arch.c (struct arch_smob): Rename.
811 * guile/scm-type.c (struct field_smob): Remove typedef.
812 (struct type_smob): Rename.
813 * guile/scm-cmd.c (struct command_smob): Remove typedef.
814 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
815 * guile/scm-value.c (struct value_smob): Remove typedef.
816 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
817 * guile/guile-internal.h (struct scheme_variable)
818 (struct scheme_function, struct scheme_integer_constant)
819 (struct gdb_smob, struct chained_gdb_smob)
820 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
821 (objfile_smob, pspace_smob, type_smob): Remove typedef.
822 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
823 (struct pretty_printer_worker_smob): Remove typedef.
824 * guile/scm-exception.c (struct exception_smob): Remove typedef.
825 * python/py-block.c (struct block_object): Remove typedef.
826 (block_syms_iterator_object): Update.
827 (set_block): Update.
828 (block_syms_iterator_object): Remove typedef.
829 * python/py-inferior.c (struct membuf_object): Remove typedef.
830 * python/py-symtab.c (struct symtab_object): Remove typedef.
831 (set_symtab): Update.
832 (sal_object): Remove typedef.
833 (set_sal): Update.
834 * python/py-frame.c (frame_object): Remove typedef.
835 * python/py-record-btrace.c (struct btpy_list_object): Remove
836 typedef.
837 * python/py-arch.c (struct arch_object): Remove typedef.
838 * python/py-linetable.c (struct linetable_entry_object)
839 (linetable_object, struct ltpy_iterator_object): Remove typedef.
840 * python/py-events.h (eventregistry_object): Remove typedef.
841 (struct events_object): Remove typedef.
842 * python/python-internal.h (gdbpy_breakpoint_object): Remove
843 typedef.
844 (thread_object): Remove typedef.
845 * python/py-progspace.c (pspace_object): Remove typedef.
846 * python/py-value.c (struct value_object): Remove typedef.
847 * python/py-record.h (recpy_record_object): Remove typedef.
848 (struct recpy_element_object): Remove typedef.
849 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
850 * python/py-objfile.c (objfile_object): Remove typedef.
851 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
852 * python/py-type.c (type_object): Remove typedef.
853 (typy_iterator_object): Update.
854 (set_type): Update.
855 (field_object): Remove typedef.
856 (typy_iterator_object): Remove typedef.
857 * python/py-registers.c (register_descriptor_iterator_object):
858 Remove typedef.
859 (struct register_descriptor_object)
860 (struct reggroup_iterator_object, struct reggroup_object): Remove
861 typedef.
862 * python/py-record.c (recpy_gap_object): Remove typedef.
863 * python/py-symbol.c (symbol_object): Remove typedef.
864 (set_symbol): Update.
865 * python/py-event.h (event_object): Remove typedef.
866 * python/py-param.c (parmpy_object): Remove typedef.
867 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
868 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
869 (unwind_info_object, struct cached_frame_info): Likewise.
870
91f87213
TT
8712020-12-04 Tom Tromey <tromey@adacore.com>
872
873 * value.c (value_internal_function_name): Make return type const.
874 * value.h (value_internal_function_name): Make return type const.
875
5382f971
LM
8762020-12-04 Luis Machado <luis.machado@linaro.org>
877
878 * aarch64-tdep.c (submask, bit, bits): Remove.
879 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
880 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
881 (aarch64_decode_cb, aarch64_decode_tb)
882 (aarch64_decode_ldr_literal): Use sbits to extract a signed
883 immediate.
884 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
885
b6a6aa07
TV
8862020-12-04 Tom de Vries <tdevries@suse.de>
887
888 PR tdep/27007
889 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
890
0bc2e38d
SM
8912020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
892
893 PR gdb/26876
894 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
895 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
896
25428040
AB
8972020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * arch/riscv.c: Include 'rv32e-xregs.c'.
900 (riscv_create_target_description): Update to handle rv32e.
901 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
902 member variable.
903 <operator==>: Update to account for new field.
904 <hash>: Likewise.
905 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
906 * features/riscv/rv32e-xregs.c: Generated.
907 * features/riscv/rv32e-xregs.xml: New file.
908 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
909 file.
910 (riscv_debug_infcall): Likewise.
911 (riscv_debug_unwinder): Likewise.
912 (riscv_debug_gdbarch): Likewise.
913 (enum riscv_register_required_status): Delete.
914 (struct riscv_register_feature): Add constructor, delete default
915 constructor, copy, and assign constructors.
916 (struct riscv_register_feature::register_info) <required>: Delete.
917 <check>: Update comment and arguments.
918 (struct riscv_register_feature) <name>: Change to member function.
919 <prefer_first_name>: Delete.
920 <tdesc_feature>: New member function.
921 <registers>: Rename to...
922 <m_registers>: ...this.
923 <m_feature_name>: New member variable.
924 (riscv_register_feature::register_info::check): Update arguments.
925 (riscv_xreg_feature): Rewrite as class, create a single static
926 instance of the class.
927 (riscv_freg_feature): Likewise.
928 (riscv_virtual_feature): Likewise.
929 (riscv_csr_feature): Likewise.
930 (riscv_create_csr_aliases): Has become a member function inside
931 riscv_csr_feature class.
932 (riscv_abi_embedded): New function definition.
933 (riscv_register_name): Adjust to use new feature objects.
934 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
935 and adjust available argument registers.
936 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
937 (riscv_check_tdesc_feature): Delete.
938 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
939 (riscv_gdbarch_init): Delete target description checking code, and
940 instead call to the new feature objects to perform the checks.
941 Reorder handling of no abi information case, allows small code
942 simplification.
943 (_initialize_riscv_tdep): Remove call, this is now done in the
944 riscv_csr_feature constructor.
945 * riscv-tdep.h (riscv_abi_embedded): Declare.
946
533b2ae0
AB
9472020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
948
949 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
950 DECLARE_CSR_ALIAS.
951
e4502042
AB
9522020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * riscv-tdep.c (riscv_is_unknown_csr): New function,
955 implementation moved from riscv_register_reggroup_p.
956 (riscv_register_reggroup_p): Update group handling for unknown
957 CSRs.
958
2bf3b79d
SDJ
9592020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
960
961 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
962 (dwarf2_get_dwz_file): Convert 'filename' to a
963 std::string. Use dwz_search_other_debugdirs to search for DWZ
964 files in the debug-file-directories provided by the user as well.
965
77bf7e99
TT
9662020-12-01 Tom Tromey <tom@tromey.com>
967
968 * parse.c (expr_builder::expr_builder): Initialize expout.
969 (expr_builder::release): Use expression::resize.
970 (expression::expression, expression::~expression)
971 (expression::resize): New methods.
972 (write_exp_elt): Use expression::resize.
973 (prefixify_expression): Update.
974 (increase_expout_size): Use expression::resize.
975 * expression.h (struct expression): Add constructor, destructor.
976 <resize>: New method.
977 (expression_up): Change type.
978
539d71e8
RA
9792020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
980 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
981 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
982 set region.
983
7ce05d21
TV
9842020-11-30 Tom de Vries <tdevries@suse.de>
985
986 PR symtab/26905
987 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
988 is_reference parameter.
989 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
990
88b91969
TT
9912020-11-30 Tom Tromey <tom@tromey.com>
992
993 * rust-lang.c (rust_op_name): Remove.
994 (exp_descriptor_rust): Update.
995 * parser-defs.h (op_name_standard): Don't declare.
996 (struct exp_descriptor) <op_name>: Remove.
997 * parse.c (exp_descriptor_standard): Update.
998 * opencl-lang.c (exp_descriptor_opencl): Update.
999 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1000 * f-lang.c (op_name_f): Remove.
1001 (f_language::exp_descriptor_tab): Update.
1002 * expression.h (op_name): Update.
1003 * expprint.c (op_name): Rewrite.
1004 (op_name_standard): Remove.
1005 (dump_raw_expression, dump_subexp): Update.
1006 * c-lang.c (exp_descriptor_c): Update.
1007 * ax-gdb.c (gen_expr): Update.
1008 * ada-lang.c (ada_op_name): Remove.
1009 (ada_exp_descriptor): Update.
1010
1cd49c43
TT
10112020-11-30 Tom Tromey <tom@tromey.com>
1012
1013 * eval.c (init_array_element): Remove.
1014 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1015
96fb9086
HD
10162020-11-29 Hannes Domani <ssbssa@yahoo.de>
1017
1018 PR tui/26973
1019 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1020 static locator win info.
1021
b4132322
AR
10222020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1023
1024 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1025 program.
1026
3df8c6af
AB
10272020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1030 is always initialized.
1031
0ae45769
RA
10322020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1033 * MAINTAINERS (Write After Approval): Add myself.
1034
239ca5e4
PW
10352020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1036
1037 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1038 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1039
cbfa382a
TT
10402020-11-25 Tom Tromey <tom@tromey.com>
1041
1042 * eval.c (evaluate_subexp_standard): Remove unnecessary
1043 variables.
1044
af30c400
TT
10452020-11-25 Tom Tromey <tom@tromey.com>
1046
1047 * d-lang.c: Include parser-defs.h.
1048 * rust-lang.c: Include parser-defs.h.
1049 * c-lang.h: Do not include parser-defs.h.
1050
1c64f6cb
SM
10512020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * regcache.h (struct cached_reg): Remove typedef.
1054
2c20a601
JB
10552020-11-24 Joel Brobecker <brobecker@adacore.com>
1056
1057 * README: Fix the URL of the MPFR library.
1058
c609df64
JB
10592020-11-24 Joel Brobecker <brobecker@adacore.com>
1060
1061 * README: Document the --with-libgmp-prefix configure option.
1062
fa123c32
JB
10632020-11-24 Joel Brobecker <brobecker@adacore.com>
1064
1065 * NEWS: Add entry documenting support for DWARF-based fixed
1066 point types.
1067
0fb8bb02
JB
10682020-11-24 Joel Brobecker <brobecker@adacore.com>
1069
1070 * NEWS: Document that building GDB now requires GMP.
1071
4afa9fd9
JB
10722020-11-24 Joel Brobecker <brobecker@adacore.com>
1073
1074 * typeprint.c (print_type_scalar): Add handling of
1075 TYPE_CODE_FIXED_POINT.
1076
af619ce9
JB
10772020-11-24 Joel Brobecker <brobecker@adacore.com>
1078
1079 * valarith.c (fixed_point_binop): Replace the
1080 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1081 users accordingly.
1082
e6fcee3a
JB
10832020-11-24 Joel Brobecker <brobecker@adacore.com>
1084
1085 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1086 replacing fixed_point_scaling_factor. All callers updated
1087 throughout this project.
1088 (fixed_point_scaling_factor): Delete declaration.
1089 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1090 fixed_point_scaling_factor. Adjust implementation accordingly.
1091
d19937a7
JB
10922020-11-24 Joel Brobecker <brobecker@adacore.com>
1093
1094 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1095 replacing the fixed_point_type_base_type function. All callers
1096 updated throughout this project.
1097 (fixed_point_type_base_type): Remove declaration.
1098 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1099 fixed_point_type_base_type. Adjust implementation accordingly.
1100
2a12c336
JB
11012020-11-24 Joel Brobecker <brobecker@adacore.com>
1102
1103 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1104 New methods.
1105 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1106 (TYPE_FIXED_POINT_INFO): Delete macro.
1107 (allocate_fixed_point_type_info): Change return type to void.
1108 * gdbtypes.c (copy_type_recursive): Replace the use of
1109 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1110 (fixed_point_scaling_factor): Likewise.
1111 (allocate_fixed_point_type_info): Change return type to void.
1112 Adjust implementation accordingly.
1113 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1114 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1115
c9f0b43f
JB
11162020-11-24 Joel Brobecker <brobecker@adacore.com>
1117
1118 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1119 into one single gdb::array_view parameter.
1120 (gdb_mpz::write): Likewise.
1121 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1122 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1123 into one single gdb::array_view parameter.
1124 Adjust implementation accordingly.
1125 (gdb_mpz::write): Likewise.
1126 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1127 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1128 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1129
987b6703
JB
11302020-11-24 Joel Brobecker <brobecker@adacore.com>
1131
1132 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1133 Change return type to std::string. Update all callers.
1134 * gmp-utils.c (gmp_string_printf): Likewise.
1135
4fbb7cce
JB
11362020-11-24 Joel Brobecker <brobecker@adacore.com>
1137
1138 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1139 instead of mpq_set_ui to initialize our GMP rational.
1140
d6ab69dd
TV
11412020-11-23 Tom de Vries <tdevries@suse.de>
1142
1143 * debuginfod-support.c (debuginfod_source_query)
1144 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1145
dab72643
TT
11462020-11-21 Tom Tromey <tom@tromey.com>
1147
1148 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1149
c0ad05d5
SM
11502020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1153 Pass 2.0 to pow.
1154 (gdb_mpz_write_all_from_small): Likewise.
1155
a43b29c9
SM
11562020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1159 of abs.
1160
ae41200b
NA
11612020-11-20 Nick Alcock <nick.alcock@oracle.com>
1162
1163 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1164 ctf_arc_open_by_name.
1165
139633c3
NA
11662020-11-20 Nick Alcock <nick.alcock@oracle.com>
1167
1168 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1169 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1170
cbbcd7a7
PA
11712020-11-20 Pedro Alves <pedro@palves.net>
1172
1173 * language.c (language_arch_info::lookup_primitive_type): Use
1174 gdb::function_view instead of gdb::function.
1175 (template language_lookup_primitive_type): Rename to ...
1176 (language_lookup_primitive_type_1): ... this, and make static.
1177 (language_lookup_primitive_type(const struct language_defn *,
1178 struct gdbarch *, const char *): Make non-template.
1179 (language_lookup_primitive_type(const struct language_defn *,
1180 struct gdbarch *, std::function<bool (struct type *)>): Make
1181 non-template and use gdb::function_view.
1182 * language.h (language_arch_info::lookup_primitive_type): Use
1183 gdb::function_view instead of std::function.
1184 (language_lookup_primitive_type): No longer template.
1185 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1186 lambda instead of a std::function.
1187
d5ef21c3
AA
11882020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1189
1190 PR tdep/26916
1191 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1192 and STOCFH.
1193
a5adb8f3
SM
11942020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1197
70125a45
SM
11982020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1199
1200 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1201 in `loop_cb` parameter.
1202 * gdbarch.c: Re-generate.
1203 * gdbarch.h: Re-generate.
1204 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1205 parameter.
1206 * arch-utils.h (default_read_core_file_mappings): Likewise.
1207 * corelow.c (core_target::build_file_mappings): Likewise.
1208 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1209 (linux_core_info_proc_mappings): Likewise.
1210
a5c641b5
AB
12112020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1214 * NEWS: Mention new options.
1215 * f-array-walker.h: New file.
1216 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1217 (repack_array_slices): New static global.
1218 (show_repack_array_slices): New function.
1219 (fortran_array_slicing_debug): New static global.
1220 (show_fortran_array_slicing_debug): New function.
1221 (value_f90_subarray): Delete.
1222 (skip_undetermined_arglist): Delete.
1223 (class fortran_array_repacker_base_impl): New class.
1224 (class fortran_lazy_array_repacker_impl): New class.
1225 (class fortran_array_repacker_impl): New class.
1226 (fortran_value_subarray): Complete rewrite.
1227 (set_fortran_list): New static global.
1228 (show_fortran_list): Likewise.
1229 (_initialize_f_language): Register new commands.
1230 (fortran_adjust_dynamic_array_base_address_hack): New function.
1231 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1232 Declare.
1233 * f-valprint.c: Include 'f-array-walker.h'.
1234 (class fortran_array_printer_impl): New class.
1235 (f77_print_array_1): Delete.
1236 (f77_print_array): Delete.
1237 (fortran_print_array): New.
1238 (f_value_print_inner): Update to call fortran_print_array.
1239 * gdbtypes.c: Include 'f-lang.h'.
1240 (resolve_dynamic_type_internal): Call
1241 fortran_adjust_dynamic_array_base_address_hack.
1242
a15a5258
AB
12432020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * breakpoint.c (struct watch_options): New struct.
1246 (watch_option_defs): New static global.
1247 (make_watch_options_def_group): New function.
1248 (watch_maybe_just_location): Convert option parsing.
1249 (watch_command_completer): New function.
1250 (_initialize_breakpoint): Build help text using options mechanism.
1251
2e362716
AB
12522020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1255 (watch_command_1): Update parameter types. Convert locals to
1256 bool.
1257 (watch_command_wrapper): Change parameter type.
1258 (watch_maybe_just_location): Change locals to bool.
1259 (rwatch_command_wrapper): Update parameter type.
1260 (awatch_command_wrapper): Update parameter type.
1261 * breakpoint.h (watch_command_wrapper): Change parameter type.
1262 (rwatch_command_wrapper): Update parameter type.
1263 (awatch_command_wrapper): Update parameter type.
1264 * eval.c (fetch_subexp_value): Change parameter type.
1265 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1266 'false' not '0'.
1267 * value.h (fetch_subexp_value): Change parameter type in
1268 declaration.
1269
b3ff61f8
AB
12702020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1273 skip_spaces.
1274
5b7d45d3
KS
12752020-11-18 Keith Seitz <keiths@redhat.com>
1276
1277 * linux-tdep.c (dump_note_entry_p): Return true instead of
1278 checking `filename'.
1279
c44191f8
TV
12802020-11-18 Tom de Vries <tdevries@suse.de>
1281
1282 * debuginfod-support.c (debuginfod_source_query)
1283 (debuginfod_debuginfo_query): Also do early exit if
1284 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1285
5d8254e1
TV
12862020-11-18 Tom de Vries <tdevries@suse.de>
1287
1288 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1289 warning.
1290
584903d3
SM
12912020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1294 callers. Move doc here.
1295 * gdbtypes.c (get_array_bounds): Return bool
1296
6f2643db
AB
12972020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1298
1299 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1300 assert.
1301 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1302 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1303 case to the default.
1304
037d7135
AB
13052020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * printcmd.c: Include 'safe-ctype.c'.
1308 (skip_over_slash_fmt): New function.
1309 (print_command_completer): Call skip_over_slash_fmt.
1310 (display_and_x_command_completer): New function.
1311 (_initialize_printcmd): Add command completion for 'x' and
1312 'display'.
1313
2b3cb400
PA
13142020-11-16 Pedro Alves <pedro@palves.net>
1315
1316 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1317 (get_prev_frame_always_1): ... to here.
1318 * inline-frame.c (inline_frame_this_id): Mention
1319 get_prev_frame_always_1 in comment.
1320
b74dbc20
JB
13212020-11-15 Joel Brobecker <brobecker@adacore.com>
1322
1323 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1324 handling.
1325 (value_less): Add fixed-point handling.
1326
0a12719e
JB
13272020-11-15 Joel Brobecker <brobecker@adacore.com>
1328
1329 * eval.c (binop_promote): Add fixed-point type handling.
1330 * valarith.c (fixed_point_binop): New function.
1331 (scalar_binop): Add fixed-point type handling.
1332 (value_neg): Add fixed-point type handling.
1333 * valops.c (value_cast_to_fixed_point): New function.
1334 (value_cast): Add fixed-point type handling.
1335
0c9150e4
JB
13362020-11-15 Joel Brobecker <brobecker@adacore.com>
1337
1338 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1339 range types.
1340 * c-typeprint.c (c_type_print_varspec_prefix)
1341 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1342 TYPE_CODE_FIXED_POINT handling.
1343 * p-typeprint.c (pascal_type_print_varspec_prefix)
1344 (pascal_type_print_varspec_suffix): Likewise.
1345 * typeprint.c (print_type_fixed_point): New function.
1346 * typeprint.h (print_type_fixed_point): Add declaration.
1347
b26daff9
JB
13482020-11-15 Joel Brobecker <brobecker@adacore.com>
1349
1350 * printcmd.c (print_scalar_formatted): Add fixed-point type
1351 handling when options->format is set.
1352
09584414
JB
13532020-11-15 Joel Brobecker <brobecker@adacore.com>
1354
1355 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1356 * dwarf2/read.c (get_dwarf2_rational_constant)
1357 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1358 (has_zero_over_zero_small_attribute): New functions.
1359 read_base_type, set_die_type): Add fixed-point type handling.
1360 * gdb-gdb.py.in: Add fixed-point type handling.
1361 * gdbtypes.c: #include "gmp-utils.h".
1362 (create_range_type, set_type_code): Add fixed-point type handling.
1363 (init_fixed_point_type): New function.
1364 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1365 (print_fixed_point_type_info): New function.
1366 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1367 handling.
1368 (fixed_point_type_storage): New typedef.
1369 (fixed_point_objfile_key): New static global.
1370 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1371 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1372 functions.
1373 * gdbtypes.h: #include "gmp-utils.h".
1374 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1375 (union type_specific) <fixed_point_info>: New field.
1376 (struct fixed_point_type_info): New struct.
1377 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1378 (init_fixed_point_type, is_fixed_point_type)
1379 (fixed_point_type_base_type, fixed_point_scaling_factor)
1380 (allocate_fixed_point_type_info): Add declarations.
1381 * valprint.c (generic_val_print_fixed_point): New function.
1382 (generic_value_print): Add fixed-point type handling.
1383 * value.c (value_as_address, unpack_long): Add fixed-point type
1384 handling.
1385
e55c6530
JB
13862020-11-15 Joel Brobecker <brobecker@adacore.com>
1387
1388 * utils.h (uinteger_pow): Add declaration.
1389 * utils.c (uinteger_pow): Moved here (without changes)...
1390 * valarith.c (uinteger_pow): ... from here.
1391
b34c74ab
JB
13922020-11-15 Joel Brobecker <brobecker@adacore.com>
1393
40d9d2fd 1394 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1395 * unittests/gmp-utils-selftests.c: New file.
1396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1397 unittests/gmp-utils-selftests.c.
1398 (COMMON_SFILES) Add gmp-utils.c.
1399 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1400
1b4ac058
JB
14012020-11-15 Joel Brobecker <brobecker@adacore.com>
1402
1403 * configure.ac: Generate an error if a usable GMP library
1404 could not be found.
1405 * configure: Regenerate.
1406
2c947d9b
JB
14072020-11-15 Joel Brobecker <brobecker@adacore.com>
1408
1409 * configure.ac: Add support for --with-libgmp-prefix.
1410 * Makefile.in (LIBGMP): New variable.
1411 (CLIBS): Include $(LIBGMP).
1412 * configure, config.in: Regenerate
1413
9dd02fc0
AB
14142020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 PR cli/26879
1417 * f-exp.y (COMPLETE): New token.
1418 (exp): Two new rules for tab-completion.
1419 (saw_name_at_eof): New static global.
1420 (last_was_structop): Likewise.
1421 (yylex): Set new variables, and return COMPLETE token at the end
1422 of the input stream in some cases.
1423
758cb810
TT
14242020-11-14 Tom Tromey <tom@tromey.com>
1425
1426 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1427
749065b7
TT
14282020-11-14 Tom Tromey <tom@tromey.com>
1429
1430 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1431
2c5b1849
SM
14322020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1435
e8b2f0d9
TT
14362020-11-13 Tom Tromey <tom@tromey.com>
1437
1438 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1439 (convert_escape, parse_one_string): Constify.
1440
25f4c262
KS
14412020-11-13 Keith Seitz <keiths@redhat.com>
1442
1443 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1444 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1445 outside of ELF segments" warning for debugin
1446
9d3ab915
KS
14472020-11-13 Keith Seitz <keiths@redhat.com>
1448
1449 PR gdb/23034
1450 * elfread.c (elf_symfile_segments): Output a BFD file name
1451 for the "Loadable section ... outside of ELF segments" warning.
1452
9ecab40c
SM
14532020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 PR gdb/26835
1456 * arm-tdep.c (class arm_instruction_reader): New.
1457 (target_arm_instruction_reader): New.
1458 (arm_analyze_prologue): Add instruction reader parameter and use
1459 it. Use arm_expand_immediate.
1460 (class target_arm_instruction_reader): Adjust.
1461 (arm_skip_prologue): Adjust.
1462 (arm_expand_immediate): New.
1463 (arm_scan_prologue): Adjust.
1464 (arm_analyze_prologue_test): New.
1465 (class test_arm_instruction_reader): New.
1466
5a7cf527
AB
14672020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1468
1469 * f-lang.c (fortran_argument_convert): Add declaration. Add
1470 header comment, taken from f-lang.h. Make static.
1471 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1472 (fortran_argument_convert): Delete declaration.
1473
7bea47f0
AB
14742020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * ada-exp.y (find_primitive_type): Make parameter const.
1477 * ada-lang.c (enum ada_primitive_types): Delete.
1478 (ada_language::language_arch_info): Update.
1479 * c-lang.c (enum c_primitive_types): Delete.
1480 (c_language_arch_info): Update.
1481 (enum cplus_primitive_types): Delete.
1482 (cplus_language::language_arch_info): Update.
1483 * d-lang.c (enum d_primitive_types): Delete.
1484 (d_language::language_arch_info): Update.
1485 * f-lang.c (enum f_primitive_types): Delete.
1486 (f_language::language_arch_info): Update.
1487 * go-lang.c (enum go_primitive_types): Delete.
1488 (go_language::language_arch_info): Update.
1489 * language.c (auto_or_unknown_language::language_arch_info):
1490 Update.
1491 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1492 (language_string_char_type): Add header comment, call function in
1493 language_arch_info.
1494 (language_bool_type): Likewise
1495 (language_arch_info::bool_type): Define.
1496 (language_lookup_primitive_type_1): Delete.
1497 (language_lookup_primitive_type): Rewrite as a templated function
1498 to call function in language_arch_info, then instantiate twice.
1499 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1500 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1501 (language_arch_info::lookup_primitive_type): Define twice with
1502 different signatures.
1503 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1504 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1505 member function in language_arch_info.
1506 * language.h (language_arch_info): Complete rewrite.
1507 (language_lookup_primitive_type): Make templated.
1508 * m2-lang.c (enum m2_primitive_types): Delete.
1509 (m2_language::language_arch_info): Update.
1510 * opencl-lang.c (OCL_P_TYPE): Delete.
1511 (enum opencl_primitive_types): Delete.
1512 (opencl_type_data): Delete.
1513 (builtin_opencl_type): Delete.
1514 (lookup_opencl_vector_type): Update.
1515 (opencl_language::language_arch_info): Update, lots of content
1516 moved from...
1517 (build_opencl_types): ...here. This function is now deleted.
1518 (_initialize_opencl_language): Delete.
1519 * p-lang.c (enum pascal_primitive_types): Delete.
1520 (pascal_language::language_arch_info): Update.
1521 * rust-lang.c (enum rust_primitive_types): Delete.
1522 (rust_language::language_arch_info): Update.
1523
bf6e5d01
SM
15242020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1527 dwarf2_queue_guard.
1528
1350c3b4
SM
15292020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1530
1531 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1532 comment.
1533
6f738b01
SM
15342020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1535
1536 * dwarf2/read.c (dwarf_read_debug_printf,
1537 dwarf_read_debug_printf_v): New macros, use throughout the file.
1538
10c19fad
SV
15392020-11-12 Shahab Vahedi <shahab@synopsys.com>
1540
10806efd 1541 PR tdep/27015
10c19fad
SV
1542 * arc-linux-tdep.c (collect_register): Populate "eret" by
1543 "pc" value from the regcache when asked for "pc" value.
1544
1f2624a3
TT
15452020-11-12 Tom Tromey <tom@tromey.com>
1546
1547 PR rust/26799:
1548 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1549 exist.
1550
ab33b152
AB
15512020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * features/Makefile (XMLTOC): Add rx.xml.
1554 (FEATURE_XMLFILES): Remove rx.xml.
1555 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1556 * features/rx.c: Regenerate.
1557 * features/rx.xml: Wrap in `target` tags, and reindent.
1558 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1559 structure.
1560 (maint_print_c_tdesc_opt_def): New typedef.
1561 (maint_print_c_tdesc_opt_defs): New static global.
1562 (make_maint_print_c_tdesc_options_def_group): New function.
1563 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1564 print single feature C file for target descriptions containing a
1565 single feature.
1566 (maint_print_c_tdesc_cmd_completer): New function.
1567 (_initialize_target_descriptions): Update call to register command
1568 completer, and include command line flag in help text.
1569
550820e1
AB
15702020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1573 numbers.
1574 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1575 enum values.
1576
baf20f76
TT
15772020-11-10 Tom Tromey <tom@tromey.com>
1578
1579 * value.h (internalvar_name): Update.
1580 * value.c (internalvar_name): Make return type const.
1581
caaece0e
TT
15822020-11-10 Tom Tromey <tom@tromey.com>
1583
1584 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1585 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1586 const.
1587
8e20b4be
TT
15882020-11-10 Tom Tromey <tom@tromey.com>
1589
1590 * objc-lang.h (value_nsstring): Update.
1591 * objc-lang.c (value_nsstring): Make "ptr" const.
1592
86775fab
AB
15932020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * expprint.c (print_subexp_funcall): Increment expression position
1596 after reading argument count.
1597 * f-lang.c (print_subexp_f): Skip over opcode before calling
1598 common function.
1599 (dump_subexp_body_f): Likewise.
1600
3fed4c0b
RG
16012020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1602
1603 PR python/26832
1604 * configure: Regenerate.
1605 * configure.ac: Check for python modules ctypes instead of
1606 itertools.
1607
ac3d4064
PA
16082020-11-06 Pedro Alves <pedro@palves.net>
1609
1610 * macroexp.c (struct macro_buffer): Split in two classes. Add
1611 uses adjusted.
1612 (struct shared_macro_buffer): New, factored out from struct
1613 macro_buffer.
1614 (struct growable_macro_buffer): New, factored out from struct
1615 macro_buffer.
1616 (set_token, get_comment, get_identifier, get_pp_number)
1617 (get_character_constant, get_string_literal, get_punctuator)
1618 (get_next_token_for_substitution): Constify parameters.
1619 (substitute_args): Constify locals.
1620
606decb2
TT
16212020-11-05 Tom Tromey <tom@tromey.com>
1622
1623 * dwarf2/read.c (read_cutu_die_from_dwo)
1624 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1625 (build_type_psymtabs_1): Update.
1626 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1627 parameter.
1628 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1629 Don't read section. Add assert.
1630
9c91c725
TT
16312020-11-04 Tom Tromey <tromey@adacore.com>
1632
1633 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1634
8d9fd3a1
TT
16352020-11-04 Tom Tromey <tromey@adacore.com>
1636
1637 * ada-typeprint.c (ada_print_type): Handle __T types.
1638
d8f62e84
TT
16392020-11-04 Tom Tromey <tromey@adacore.com>
1640
1641 * dwarf2/read.c (add_partial_symbol, process_die):
1642 Handle DW_TAG_array_type.
1643 (is_type_tag_for_partial): Add "lang" parameter.
1644 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1645
7ff5b937
TT
16462020-11-04 Tom Tromey <tromey@adacore.com>
1647
1648 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1649
10f6a3ad
TT
16502020-11-04 Tom Tromey <tromey@adacore.com>
1651
1652 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1653 array.
1654
b72795a8
TT
16552020-11-04 Tom Tromey <tromey@adacore.com>
1656
1657 * gdbtypes.c (update_static_array_size): Handle bit stride.
1658
24aa1b02
TT
16592020-11-04 Tom Tromey <tromey@adacore.com>
1660
1661 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1662
c9a28cbe
TT
16632020-11-04 Tom Tromey <tromey@adacore.com>
1664
1665 * ada-lang.c (ada_is_any_packed_array_type): New function.
1666 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1667
57567375
TT
16682020-11-04 Tom Tromey <tromey@adacore.com>
1669
1670 * dwarf2/read.c (recognize_bound_expression)
1671 (quirk_ada_thick_pointer): New functions.
1672 (read_array_type): Call quirk_ada_thick_pointer.
1673 (set_die_type): Add "skip_data_location" parameter.
1674 (quirk_ada_thick_pointer): New function.
1675 (process_structure_scope): Call quirk_ada_thick_pointer.
1676 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1677 (decode_packed_array_bitsize): Handle thick pointers without
1678 parallel types.
1679 (ada_is_gnat_encoded_packed_array_type): Rename from
1680 ada_is_packed_array_type.
1681 (ada_is_constrained_packed_array_type): Update.
1682 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1683 (ada_value_print_1): Use ada_get_decoded_value.
1684
a7400e44
TT
16852020-11-04 Tom Tromey <tromey@adacore.com>
1686
1687 * ada-lang.c (recursively_update_array_bitsize): New function.
1688 (decode_constrained_packed_array_type): Call it.
1689
75fd6a26
TT
16902020-11-04 Tom Tromey <tromey@adacore.com>
1691
1692 * ada-lang.c (to_fixed_array_type): Error if
1693 decode_constrained_packed_array_type returns NULL.
1694
93f9561e
TT
16952020-11-04 Tom Tromey <tromey@adacore.com>
1696
1697 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1698
257e02d8
TT
16992020-11-02 Tom Tromey <tromey@adacore.com>
1700
1701 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1702 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1703 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1704 * amd64-ravenscar-thread.c: New file.
1705 * amd64-ravenscar-thread.h: New file.
1706 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1707 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1708
74d877e5
AB
17092020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * main.c (execute_cmdargs): New function.
1712 (captured_main_1): Make use of execute_cmdargs.
1713
64aaad63
AB
17142020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * NEWS: Mention changes to config file search path.
1717 * main.c
1718
5b3d3560
TT
17192020-11-02 Tom Tromey <tromey@adacore.com>
1720
1721 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1722 (python_GdbModuleDef): Move earlier. Now static.
1723 (do_start_initialization): Consolidate some IS_PY3K blocks.
1724
dda83cd7
SM
17252020-11-02 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * aarch64-linux-tdep.c: Fix indentation.
1728 * aarch64-ravenscar-thread.c: Fix indentation.
1729 * aarch64-tdep.c: Fix indentation.
1730 * aarch64-tdep.h: Fix indentation.
1731 * ada-lang.c: Fix indentation.
1732 * ada-lang.h: Fix indentation.
1733 * ada-tasks.c: Fix indentation.
1734 * ada-typeprint.c: Fix indentation.
1735 * ada-valprint.c: Fix indentation.
1736 * ada-varobj.c: Fix indentation.
1737 * addrmap.c: Fix indentation.
1738 * addrmap.h: Fix indentation.
1739 * agent.c: Fix indentation.
1740 * aix-thread.c: Fix indentation.
1741 * alpha-bsd-nat.c: Fix indentation.
1742 * alpha-linux-tdep.c: Fix indentation.
1743 * alpha-mdebug-tdep.c: Fix indentation.
1744 * alpha-nbsd-tdep.c: Fix indentation.
1745 * alpha-obsd-tdep.c: Fix indentation.
1746 * alpha-tdep.c: Fix indentation.
1747 * amd64-bsd-nat.c: Fix indentation.
1748 * amd64-darwin-tdep.c: Fix indentation.
1749 * amd64-linux-nat.c: Fix indentation.
1750 * amd64-linux-tdep.c: Fix indentation.
1751 * amd64-nat.c: Fix indentation.
1752 * amd64-obsd-tdep.c: Fix indentation.
1753 * amd64-tdep.c: Fix indentation.
1754 * amd64-windows-tdep.c: Fix indentation.
1755 * annotate.c: Fix indentation.
1756 * arc-tdep.c: Fix indentation.
1757 * arch-utils.c: Fix indentation.
1758 * arch/arm-get-next-pcs.c: Fix indentation.
1759 * arch/arm.c: Fix indentation.
1760 * arm-linux-nat.c: Fix indentation.
1761 * arm-linux-tdep.c: Fix indentation.
1762 * arm-nbsd-tdep.c: Fix indentation.
1763 * arm-pikeos-tdep.c: Fix indentation.
1764 * arm-tdep.c: Fix indentation.
1765 * arm-tdep.h: Fix indentation.
1766 * arm-wince-tdep.c: Fix indentation.
1767 * auto-load.c: Fix indentation.
1768 * auxv.c: Fix indentation.
1769 * avr-tdep.c: Fix indentation.
1770 * ax-gdb.c: Fix indentation.
1771 * ax-general.c: Fix indentation.
1772 * bfin-linux-tdep.c: Fix indentation.
1773 * block.c: Fix indentation.
1774 * block.h: Fix indentation.
1775 * blockframe.c: Fix indentation.
1776 * bpf-tdep.c: Fix indentation.
1777 * break-catch-sig.c: Fix indentation.
1778 * break-catch-syscall.c: Fix indentation.
1779 * break-catch-throw.c: Fix indentation.
1780 * breakpoint.c: Fix indentation.
1781 * breakpoint.h: Fix indentation.
1782 * bsd-uthread.c: Fix indentation.
1783 * btrace.c: Fix indentation.
1784 * build-id.c: Fix indentation.
1785 * buildsym-legacy.h: Fix indentation.
1786 * buildsym.c: Fix indentation.
1787 * c-typeprint.c: Fix indentation.
1788 * c-valprint.c: Fix indentation.
1789 * c-varobj.c: Fix indentation.
1790 * charset.c: Fix indentation.
1791 * cli/cli-cmds.c: Fix indentation.
1792 * cli/cli-decode.c: Fix indentation.
1793 * cli/cli-decode.h: Fix indentation.
1794 * cli/cli-script.c: Fix indentation.
1795 * cli/cli-setshow.c: Fix indentation.
1796 * coff-pe-read.c: Fix indentation.
1797 * coffread.c: Fix indentation.
1798 * compile/compile-cplus-types.c: Fix indentation.
1799 * compile/compile-object-load.c: Fix indentation.
1800 * compile/compile-object-run.c: Fix indentation.
1801 * completer.c: Fix indentation.
1802 * corefile.c: Fix indentation.
1803 * corelow.c: Fix indentation.
1804 * cp-abi.h: Fix indentation.
1805 * cp-namespace.c: Fix indentation.
1806 * cp-support.c: Fix indentation.
1807 * cp-valprint.c: Fix indentation.
1808 * cris-linux-tdep.c: Fix indentation.
1809 * cris-tdep.c: Fix indentation.
1810 * darwin-nat-info.c: Fix indentation.
1811 * darwin-nat.c: Fix indentation.
1812 * darwin-nat.h: Fix indentation.
1813 * dbxread.c: Fix indentation.
1814 * dcache.c: Fix indentation.
1815 * disasm.c: Fix indentation.
1816 * dtrace-probe.c: Fix indentation.
1817 * dwarf2/abbrev.c: Fix indentation.
1818 * dwarf2/attribute.c: Fix indentation.
1819 * dwarf2/expr.c: Fix indentation.
1820 * dwarf2/frame.c: Fix indentation.
1821 * dwarf2/index-cache.c: Fix indentation.
1822 * dwarf2/index-write.c: Fix indentation.
1823 * dwarf2/line-header.c: Fix indentation.
1824 * dwarf2/loc.c: Fix indentation.
1825 * dwarf2/macro.c: Fix indentation.
1826 * dwarf2/read.c: Fix indentation.
1827 * dwarf2/read.h: Fix indentation.
1828 * elfread.c: Fix indentation.
1829 * eval.c: Fix indentation.
1830 * event-top.c: Fix indentation.
1831 * exec.c: Fix indentation.
1832 * exec.h: Fix indentation.
1833 * expprint.c: Fix indentation.
1834 * f-lang.c: Fix indentation.
1835 * f-typeprint.c: Fix indentation.
1836 * f-valprint.c: Fix indentation.
1837 * fbsd-nat.c: Fix indentation.
1838 * fbsd-tdep.c: Fix indentation.
1839 * findvar.c: Fix indentation.
1840 * fork-child.c: Fix indentation.
1841 * frame-unwind.c: Fix indentation.
1842 * frame-unwind.h: Fix indentation.
1843 * frame.c: Fix indentation.
1844 * frv-linux-tdep.c: Fix indentation.
1845 * frv-tdep.c: Fix indentation.
1846 * frv-tdep.h: Fix indentation.
1847 * ft32-tdep.c: Fix indentation.
1848 * gcore.c: Fix indentation.
1849 * gdb_bfd.c: Fix indentation.
1850 * gdbarch.sh: Fix indentation.
1851 * gdbarch.c: Re-generate
1852 * gdbarch.h: Re-generate.
1853 * gdbcore.h: Fix indentation.
1854 * gdbthread.h: Fix indentation.
1855 * gdbtypes.c: Fix indentation.
1856 * gdbtypes.h: Fix indentation.
1857 * glibc-tdep.c: Fix indentation.
1858 * gnu-nat.c: Fix indentation.
1859 * gnu-nat.h: Fix indentation.
1860 * gnu-v2-abi.c: Fix indentation.
1861 * gnu-v3-abi.c: Fix indentation.
1862 * go32-nat.c: Fix indentation.
1863 * guile/guile-internal.h: Fix indentation.
1864 * guile/scm-cmd.c: Fix indentation.
1865 * guile/scm-frame.c: Fix indentation.
1866 * guile/scm-iterator.c: Fix indentation.
1867 * guile/scm-math.c: Fix indentation.
1868 * guile/scm-ports.c: Fix indentation.
1869 * guile/scm-pretty-print.c: Fix indentation.
1870 * guile/scm-value.c: Fix indentation.
1871 * h8300-tdep.c: Fix indentation.
1872 * hppa-linux-nat.c: Fix indentation.
1873 * hppa-linux-tdep.c: Fix indentation.
1874 * hppa-nbsd-nat.c: Fix indentation.
1875 * hppa-nbsd-tdep.c: Fix indentation.
1876 * hppa-obsd-nat.c: Fix indentation.
1877 * hppa-tdep.c: Fix indentation.
1878 * hppa-tdep.h: Fix indentation.
1879 * i386-bsd-nat.c: Fix indentation.
1880 * i386-darwin-nat.c: Fix indentation.
1881 * i386-darwin-tdep.c: Fix indentation.
1882 * i386-dicos-tdep.c: Fix indentation.
1883 * i386-gnu-nat.c: Fix indentation.
1884 * i386-linux-nat.c: Fix indentation.
1885 * i386-linux-tdep.c: Fix indentation.
1886 * i386-nto-tdep.c: Fix indentation.
1887 * i386-obsd-tdep.c: Fix indentation.
1888 * i386-sol2-nat.c: Fix indentation.
1889 * i386-tdep.c: Fix indentation.
1890 * i386-tdep.h: Fix indentation.
1891 * i386-windows-tdep.c: Fix indentation.
1892 * i387-tdep.c: Fix indentation.
1893 * i387-tdep.h: Fix indentation.
1894 * ia64-libunwind-tdep.c: Fix indentation.
1895 * ia64-libunwind-tdep.h: Fix indentation.
1896 * ia64-linux-nat.c: Fix indentation.
1897 * ia64-linux-tdep.c: Fix indentation.
1898 * ia64-tdep.c: Fix indentation.
1899 * ia64-tdep.h: Fix indentation.
1900 * ia64-vms-tdep.c: Fix indentation.
1901 * infcall.c: Fix indentation.
1902 * infcmd.c: Fix indentation.
1903 * inferior.c: Fix indentation.
1904 * infrun.c: Fix indentation.
1905 * iq2000-tdep.c: Fix indentation.
1906 * language.c: Fix indentation.
1907 * linespec.c: Fix indentation.
1908 * linux-fork.c: Fix indentation.
1909 * linux-nat.c: Fix indentation.
1910 * linux-tdep.c: Fix indentation.
1911 * linux-thread-db.c: Fix indentation.
1912 * lm32-tdep.c: Fix indentation.
1913 * m2-lang.c: Fix indentation.
1914 * m2-typeprint.c: Fix indentation.
1915 * m2-valprint.c: Fix indentation.
1916 * m32c-tdep.c: Fix indentation.
1917 * m32r-linux-tdep.c: Fix indentation.
1918 * m32r-tdep.c: Fix indentation.
1919 * m68hc11-tdep.c: Fix indentation.
1920 * m68k-bsd-nat.c: Fix indentation.
1921 * m68k-linux-nat.c: Fix indentation.
1922 * m68k-linux-tdep.c: Fix indentation.
1923 * m68k-tdep.c: Fix indentation.
1924 * machoread.c: Fix indentation.
1925 * macrocmd.c: Fix indentation.
1926 * macroexp.c: Fix indentation.
1927 * macroscope.c: Fix indentation.
1928 * macrotab.c: Fix indentation.
1929 * macrotab.h: Fix indentation.
1930 * main.c: Fix indentation.
1931 * mdebugread.c: Fix indentation.
1932 * mep-tdep.c: Fix indentation.
1933 * mi/mi-cmd-catch.c: Fix indentation.
1934 * mi/mi-cmd-disas.c: Fix indentation.
1935 * mi/mi-cmd-env.c: Fix indentation.
1936 * mi/mi-cmd-stack.c: Fix indentation.
1937 * mi/mi-cmd-var.c: Fix indentation.
1938 * mi/mi-cmds.c: Fix indentation.
1939 * mi/mi-main.c: Fix indentation.
1940 * mi/mi-parse.c: Fix indentation.
1941 * microblaze-tdep.c: Fix indentation.
1942 * minidebug.c: Fix indentation.
1943 * minsyms.c: Fix indentation.
1944 * mips-linux-nat.c: Fix indentation.
1945 * mips-linux-tdep.c: Fix indentation.
1946 * mips-nbsd-tdep.c: Fix indentation.
1947 * mips-tdep.c: Fix indentation.
1948 * mn10300-linux-tdep.c: Fix indentation.
1949 * mn10300-tdep.c: Fix indentation.
1950 * moxie-tdep.c: Fix indentation.
1951 * msp430-tdep.c: Fix indentation.
1952 * namespace.h: Fix indentation.
1953 * nat/fork-inferior.c: Fix indentation.
1954 * nat/gdb_ptrace.h: Fix indentation.
1955 * nat/linux-namespaces.c: Fix indentation.
1956 * nat/linux-osdata.c: Fix indentation.
1957 * nat/netbsd-nat.c: Fix indentation.
1958 * nat/x86-dregs.c: Fix indentation.
1959 * nbsd-nat.c: Fix indentation.
1960 * nbsd-tdep.c: Fix indentation.
1961 * nios2-linux-tdep.c: Fix indentation.
1962 * nios2-tdep.c: Fix indentation.
1963 * nto-procfs.c: Fix indentation.
1964 * nto-tdep.c: Fix indentation.
1965 * objfiles.c: Fix indentation.
1966 * objfiles.h: Fix indentation.
1967 * opencl-lang.c: Fix indentation.
1968 * or1k-tdep.c: Fix indentation.
1969 * osabi.c: Fix indentation.
1970 * osabi.h: Fix indentation.
1971 * osdata.c: Fix indentation.
1972 * p-lang.c: Fix indentation.
1973 * p-typeprint.c: Fix indentation.
1974 * p-valprint.c: Fix indentation.
1975 * parse.c: Fix indentation.
1976 * ppc-linux-nat.c: Fix indentation.
1977 * ppc-linux-tdep.c: Fix indentation.
1978 * ppc-nbsd-nat.c: Fix indentation.
1979 * ppc-nbsd-tdep.c: Fix indentation.
1980 * ppc-obsd-nat.c: Fix indentation.
1981 * ppc-ravenscar-thread.c: Fix indentation.
1982 * ppc-sysv-tdep.c: Fix indentation.
1983 * ppc64-tdep.c: Fix indentation.
1984 * printcmd.c: Fix indentation.
1985 * proc-api.c: Fix indentation.
1986 * producer.c: Fix indentation.
1987 * producer.h: Fix indentation.
1988 * prologue-value.c: Fix indentation.
1989 * prologue-value.h: Fix indentation.
1990 * psymtab.c: Fix indentation.
1991 * python/py-arch.c: Fix indentation.
1992 * python/py-bpevent.c: Fix indentation.
1993 * python/py-event.c: Fix indentation.
1994 * python/py-event.h: Fix indentation.
1995 * python/py-finishbreakpoint.c: Fix indentation.
1996 * python/py-frame.c: Fix indentation.
1997 * python/py-framefilter.c: Fix indentation.
1998 * python/py-inferior.c: Fix indentation.
1999 * python/py-infthread.c: Fix indentation.
2000 * python/py-objfile.c: Fix indentation.
2001 * python/py-prettyprint.c: Fix indentation.
2002 * python/py-registers.c: Fix indentation.
2003 * python/py-signalevent.c: Fix indentation.
2004 * python/py-stopevent.c: Fix indentation.
2005 * python/py-stopevent.h: Fix indentation.
2006 * python/py-threadevent.c: Fix indentation.
2007 * python/py-tui.c: Fix indentation.
2008 * python/py-unwind.c: Fix indentation.
2009 * python/py-value.c: Fix indentation.
2010 * python/py-xmethods.c: Fix indentation.
2011 * python/python-internal.h: Fix indentation.
2012 * python/python.c: Fix indentation.
2013 * ravenscar-thread.c: Fix indentation.
2014 * record-btrace.c: Fix indentation.
2015 * record-full.c: Fix indentation.
2016 * record.c: Fix indentation.
2017 * reggroups.c: Fix indentation.
2018 * regset.h: Fix indentation.
2019 * remote-fileio.c: Fix indentation.
2020 * remote.c: Fix indentation.
2021 * reverse.c: Fix indentation.
2022 * riscv-linux-tdep.c: Fix indentation.
2023 * riscv-ravenscar-thread.c: Fix indentation.
2024 * riscv-tdep.c: Fix indentation.
2025 * rl78-tdep.c: Fix indentation.
2026 * rs6000-aix-tdep.c: Fix indentation.
2027 * rs6000-lynx178-tdep.c: Fix indentation.
2028 * rs6000-nat.c: Fix indentation.
2029 * rs6000-tdep.c: Fix indentation.
2030 * rust-lang.c: Fix indentation.
2031 * rx-tdep.c: Fix indentation.
2032 * s12z-tdep.c: Fix indentation.
2033 * s390-linux-tdep.c: Fix indentation.
2034 * score-tdep.c: Fix indentation.
2035 * ser-base.c: Fix indentation.
2036 * ser-mingw.c: Fix indentation.
2037 * ser-uds.c: Fix indentation.
2038 * ser-unix.c: Fix indentation.
2039 * serial.c: Fix indentation.
2040 * sh-linux-tdep.c: Fix indentation.
2041 * sh-nbsd-tdep.c: Fix indentation.
2042 * sh-tdep.c: Fix indentation.
2043 * skip.c: Fix indentation.
2044 * sol-thread.c: Fix indentation.
2045 * solib-aix.c: Fix indentation.
2046 * solib-darwin.c: Fix indentation.
2047 * solib-frv.c: Fix indentation.
2048 * solib-svr4.c: Fix indentation.
2049 * solib.c: Fix indentation.
2050 * source.c: Fix indentation.
2051 * sparc-linux-tdep.c: Fix indentation.
2052 * sparc-nbsd-tdep.c: Fix indentation.
2053 * sparc-obsd-tdep.c: Fix indentation.
2054 * sparc-ravenscar-thread.c: Fix indentation.
2055 * sparc-tdep.c: Fix indentation.
2056 * sparc64-linux-tdep.c: Fix indentation.
2057 * sparc64-nbsd-tdep.c: Fix indentation.
2058 * sparc64-obsd-tdep.c: Fix indentation.
2059 * sparc64-tdep.c: Fix indentation.
2060 * stabsread.c: Fix indentation.
2061 * stack.c: Fix indentation.
2062 * stap-probe.c: Fix indentation.
2063 * stubs/ia64vms-stub.c: Fix indentation.
2064 * stubs/m32r-stub.c: Fix indentation.
2065 * stubs/m68k-stub.c: Fix indentation.
2066 * stubs/sh-stub.c: Fix indentation.
2067 * stubs/sparc-stub.c: Fix indentation.
2068 * symfile-mem.c: Fix indentation.
2069 * symfile.c: Fix indentation.
2070 * symfile.h: Fix indentation.
2071 * symmisc.c: Fix indentation.
2072 * symtab.c: Fix indentation.
2073 * symtab.h: Fix indentation.
2074 * target-float.c: Fix indentation.
2075 * target.c: Fix indentation.
2076 * target.h: Fix indentation.
2077 * tic6x-tdep.c: Fix indentation.
2078 * tilegx-linux-tdep.c: Fix indentation.
2079 * tilegx-tdep.c: Fix indentation.
2080 * top.c: Fix indentation.
2081 * tracefile-tfile.c: Fix indentation.
2082 * tracepoint.c: Fix indentation.
2083 * tui/tui-disasm.c: Fix indentation.
2084 * tui/tui-io.c: Fix indentation.
2085 * tui/tui-regs.c: Fix indentation.
2086 * tui/tui-stack.c: Fix indentation.
2087 * tui/tui-win.c: Fix indentation.
2088 * tui/tui-winsource.c: Fix indentation.
2089 * tui/tui.c: Fix indentation.
2090 * typeprint.c: Fix indentation.
2091 * ui-out.h: Fix indentation.
2092 * unittests/copy_bitwise-selftests.c: Fix indentation.
2093 * unittests/memory-map-selftests.c: Fix indentation.
2094 * utils.c: Fix indentation.
2095 * v850-tdep.c: Fix indentation.
2096 * valarith.c: Fix indentation.
2097 * valops.c: Fix indentation.
2098 * valprint.c: Fix indentation.
2099 * valprint.h: Fix indentation.
2100 * value.c: Fix indentation.
2101 * value.h: Fix indentation.
2102 * varobj.c: Fix indentation.
2103 * vax-tdep.c: Fix indentation.
2104 * windows-nat.c: Fix indentation.
2105 * windows-tdep.c: Fix indentation.
2106 * xcoffread.c: Fix indentation.
2107 * xml-syscall.c: Fix indentation.
2108 * xml-tdesc.c: Fix indentation.
2109 * xstormy16-tdep.c: Fix indentation.
2110 * xtensa-config.c: Fix indentation.
2111 * xtensa-linux-nat.c: Fix indentation.
2112 * xtensa-linux-tdep.c: Fix indentation.
2113 * xtensa-tdep.c: Fix indentation.
2114
e1f57067
AB
21152020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2116 Craig Blackmore <craig.blackmore@embecosm.com>
2117
2118 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2119 as an unsigned value.
2120
ae7754b2
TT
21212020-11-01 Tom Tromey <tom@tromey.com>
2122
2123 * dbxread.c (dbx_end_psymtab): Update.
2124 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2125 (build_type_psymtabs_reader): Update.
2126 * xcoffread.c (xcoff_end_psymtab): Update.
2127 * ctfread.c (scan_partial_symbols): Update.
2128 * psymtab.c (sort_pst_symbols): Remove.
2129 (partial_symtab::end): Rename from end_psymtab_common. Inline
2130 sort_pst_symbols.
2131 * psympriv.h (struct partial_symtab) <end>: New method.
2132 (end_psymtab_common): Don't declare.
2133
0684bb51
TT
21342020-11-01 Tom Tromey <tom@tromey.com>
2135
2136 * symmisc.c (count_psyms): New function.
2137 (print_objfile_statistics): Use it.
2138 * psymtab.c (append_psymbol_to_list): Remove.
2139 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2140 * objfiles.h (struct objstats) <n_psyms>: Remove.
2141
089002bb
TT
21422020-11-01 Tom Tromey <tom@tromey.com>
2143
2144 * dbxread.c (dbx_end_psymtab): Update.
2145 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2146 (build_type_psymtabs_reader): Update.
2147 * xcoffread.c (xcoff_end_psymtab): Update.
2148 * ctfread.c (scan_partial_symbols): Update.
2149 * psympriv.h (end_psymtab_common): Update.
2150 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2151 (sort_pst_symbols): Likewise.
2152
525454d6
TT
21532020-11-01 Tom Tromey <tom@tromey.com>
2154
2155 * dbxread.c (dbx_symfile_read): Update.
2156 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2157 * xcoffread.c (xcoff_initial_scan): Update.
2158 * psympriv.h (init_psymbol_list): Don't declare.
2159 * psymtab.c (init_psymbol_list): Remove.
2160
60bd1d53
JB
21612020-11-01 Joel Brobecker <brobecker@adacore.com>
2162
2163 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2164 gnat_encoded_fixed_type_info. Update all callers.
2165
db99d0d0
JB
21662020-11-01 Joel Brobecker <brobecker@adacore.com>
2167
2168 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2169 line too long.
2170
75f24e86
JB
21712020-11-01 Joel Brobecker <brobecker@adacore.com>
2172
2173 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2174 cast_from_fixed. Update all callers.
2175 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2176 Update all callers.
2177 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2178 Update all callers.
2179 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2180 ada_scaling_factor.
2181 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2182 to print_gnat_encoded_fixed_point_type.
2183 * ada-valprint.c: Likewise.
2184
4f0469cd
AB
21852020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2188 (debug_prefixed_printf): Add check of debug_displaced flag.
2189 * linux-nat.c (linux_nat_debug_printf): Add check of
2190 debug_linux_nat flag.
2191
17417fb0
SM
21922020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * infrun.c (infrun_debug_printf_1): Remove.
2195 (displaced_debug_printf_1): Remove.
2196 (stop_all_threads): Use debug_prefixed_printf.
2197 * infrun.h (infrun_debug_printf_1): Remove.
2198 (infrun_debug_printf): Use debug_prefixed_printf.
2199 (displaced_debug_printf_1): Remove.
2200 (displaced_debug_printf): Use debug_prefixed_printf.
2201 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2202 (linux_nat_debug_printf): Use debug_prefixed_printf.
2203
ad6dba1c
SM
22042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * configure: Re-generate.
2207 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2208 AC_LANG_PROGRAM.
2209
b6fb30ed
SM
22102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * configure: Re-generate.
2213
5164c117
SM
22142020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * configure: Re-generate.
2217
864ca435
SM
22182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * configure: Re-generate.
2221
b9442ec1
SM
22222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * configure: Re-generate.
2225
294f2697
SM
22262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * acinclude.m4: Modernize.
2229 * configure: Re-generate.
2230
5593a99a
SM
22312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * configure.ac: Modernize.
2234 * configure: Re-generate.
2235
e41fda1d
SM
22362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2239 * configure: Re-generate.
2240 * configure.ac: Remove AM_PROG_CC_STDC.
2241
91e1a0ed
SM
22422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2245 AC_CANONICAL_SYSTEM.
2246 * configure: Re-generate.
2247
136821d9
SM
22482020-10-30 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * infrun.h (displaced_debug_printf): New macro. Replace
2251 displaced debug prints throughout to use it.
2252 (displaced_debug_printf_1): New declaration.
2253 (displaced_step_dump_bytes): Return string, remove ui_file
2254 parameter, update all callers.
2255 * infrun.c (displaced_debug_printf_1): New function.
2256 (displaced_step_dump_bytes): Return string, remove ui_file
2257 parameter
2258
aa2045e7
SM
22592020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2260
2261 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2262
b1ec2735
TT
22632020-10-30 Tom Tromey <tromey@adacore.com>
2264
2265 * Makefile.in (stamp-init): Depend on config.status.
2266
b78b3a29
TBA
22672020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2268
2269 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2270
d70bdd3c
PA
22712020-10-30 Pedro Alves <pedro@palves.net>
2272
2273 * thread.c (lookup_selected_frame): Move ...
2274 * frame.c (lookup_selected_frame): ... here.
2275
79952e69
PA
22762020-10-30 Pedro Alves <pedro@palves.net>
2277
2278 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2279 * frame.c
2280 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2281 Use save_selected_frame. Save language as well.
2282 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2283 Use restore_selected_frame, and restore language as well.
2284 (selected_frame_id, selected_frame_level): New.
2285 (selected_frame): Update comments.
2286 (save_selected_frame, restore_selected_frame): New.
2287 (get_selected_frame): Use lookup_selected_frame.
2288 (get_selected_frame_if_set): Delete.
2289 (select_frame): Record selected_frame_level and selected_frame_id.
2290 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2291 fields.
2292 (get_selected_frame): Make 'message' parameter optional.
2293 (get_selected_frame_if_set): Delete declaration.
2294 (select_frame): Update comments.
2295 (save_selected_frame, restore_selected_frame)
2296 (lookup_selected_frame): Declare.
2297 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2298 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2299 New field.
2300 (save_infcall_control_state): Use save_selected_frame.
2301 (restore_selected_frame): Delete.
2302 (restore_infcall_control_state): Use restore_selected_frame.
2303 * stack.c (select_frame_command_core, frame_command_core): Use
2304 get_selected_frame.
2305 * thread.c (restore_selected_frame): Rename to ...
2306 (lookup_selected_frame): ... this and make extern. Select the
2307 current frame if the frame level is -1.
2308 (scoped_restore_current_thread::restore): Also restore the
2309 language.
2310 (scoped_restore_current_thread::~scoped_restore_current_thread):
2311 Don't try/catch.
2312 (scoped_restore_current_thread::scoped_restore_current_thread):
2313 Save the language as well. Use save_selected_frame.
2314
58103c33
SM
23152020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2318 documentation.
2319 * gdbarch.h: Re-generate.
2320
40a53766
SM
23212020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2324 parameter.
2325 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2326 Likewise.
2327 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2328 Likewise.
2329 * arch-utils.c (default_displaced_step_hw_singlestep):
2330 Likewise.
2331 * arch-utils.h (default_displaced_step_hw_singlestep):
2332 Likewise.
2333 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2334 Likewise.
2335 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2336 Likewise.
2337 * gdbarch.c: Re-generate.
2338 * gdbarch.h: Re-generate.
2339 * infrun.c (resume_1): Adjust.
2340
8407f91b
TT
23412020-10-29 Tom Tromey <tom@tromey.com>
2342
2343 * progspace.c (program_space::~program_space): Don't call
2344 exec_close.
2345
5008b3b2
TT
23462020-10-29 Tom Tromey <tom@tromey.com>
2347
2348 * exec.c (exec_target::close): Don't change current program
2349 space.
2350
d9eebde0
TT
23512020-10-29 Tom Tromey <tom@tromey.com>
2352
2353 * symfile.c (add_symbol_file_command): Update.
2354 * exec.c (program_space::add_target_sections): Rename.
2355 * symfile-mem.c (symbol_file_add_from_memory): Update.
2356 * progspace.h (struct program_space) <add_target_sections>:
2357 Declare new overload.
2358 * exec.h (add_target_sections_of_objfile): Don't declare.
2359
3769e227
TT
23602020-10-29 Tom Tromey <tom@tromey.com>
2361
2362 * solib.c (solib_map_sections): Update.
2363 * exec.c (program_space::add_target_sections): Now a method.
2364 (exec_file_attach): Update.
2365 * exec.h (add_target_sections): Don't declare.
2366 * progspace.h (struct program_space) <add_target_sections>:
2367 Declare.
2368
2a3f84af
TT
23692020-10-29 Tom Tromey <tom@tromey.com>
2370
2371 * progspace.h (struct program_space) <remove_target_sections>:
2372 Declare.
2373 * exec.c (program_space::remove_target_sections): Now a method.
2374 * exec.h (remove_target_sections): Don't declare.
2375
004eecfd
TT
23762020-10-29 Tom Tromey <tom@tromey.com>
2377
2378 * inferior.c (delete_inferior): Update.
2379 * progspace.c (program_space::empty): Rename from
2380 program_space_empty_p. Return bool.
2381 * progspace.h (struct program_space) <empty>: New method.
2382 (program_space_empty_p): Don't declare.
2383
e39fb971
TT
23842020-10-29 Tom Tromey <tom@tromey.com>
2385
2386 * progspace.c (program_space::~program_space): Don't call
2387 clear_program_space_solib_cache.
2388 (program_space::clear_solib_cache): Rename from
2389 clear_solib_cache.
2390 * solib.c (handle_solib_event): Update.
2391 * progspace.h (struct program_space) <clear_solib_cache>: New
2392 method.
2393 (clear_program_space_solib_cache): Don't declare.
2394
a42d7dd8
TT
23952020-10-29 Tom Tromey <tom@tromey.com>
2396
2397 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2398 * target.c (info_target_command): Update.
2399 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2400 (symbol_file_clear, reread_symbols): Update.
2401 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2402 * stabsread.c (scan_file_globals): Update.
2403 * solib.c (update_solib_list): Update.
2404 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2405 (svr4_fetch_objfile_link_map, enable_break)
2406 (svr4_relocate_main_executable)
2407 (svr4_iterate_over_objfiles_in_search_order): Update.
2408 * solib-frv.c (lm_base, enable_break)
2409 (frv_relocate_main_executable): Update.
2410 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2411 (frv_fetch_objfile_link_map): Update.
2412 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2413 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2414 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2415 * remote.c (remote_target::get_offsets): Update.
2416 (remote_target::start_remote)
2417 (extended_remote_target::post_attach): Update.
2418 * objfiles.c (entry_point_address_query): Update.
2419 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2420 * minsyms.c (get_symbol_leading_char): Update.
2421 * frame.c (inside_main_func): Update.
2422 * progspace.h (symfile_objfile): Remove macro.
2423
19f6550e
TT
24242020-10-29 Tom Tromey <tom@tromey.com>
2425
2426 * exec.c (exec_file_attach): Update.
2427 * progspace.c (program_space::exec_close): Update.
2428 * progspace.h (struct program_space) <ebfd>: Now a
2429 gdb_bfd_ref_ptr.
2430 <set_exec_bfd>: Change argument type.
2431 <exec_bfd>: Update.
2432
7e10abd1
TT
24332020-10-29 Tom Tromey <tom@tromey.com>
2434
2435 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2436 * symfile.c (reread_symbols): Update.
2437 * symfile-mem.c (add_symbol_file_from_memory_command)
2438 (add_vsyscall_page): Update.
2439 * source-cache.c (source_cache::get_plain_source_lines): Update.
2440 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2441 (svr4_current_sos_direct, svr4_exec_displacement)
2442 (svr4_relocate_main_executable): Update.
2443 (svr4_iterate_over_objfiles_in_search_order): Update.
2444 * solib-frv.c (enable_break2, enable_break): Update.
2445 * solib-dsbt.c (lm_base, enable_break): Update.
2446 * solib-darwin.c (find_program_interpreter)
2447 (darwin_solib_create_inferior_hook): Update.
2448 * sol-thread.c (rw_common, ps_pdmodel): Update.
2449 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2450 * remote.c (compare_sections_command)
2451 (remote_target::trace_set_readonly_regions): Update.
2452 * remote-sim.c (get_sim_inferior_data)
2453 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2454 (gdbsim_target_open, gdbsim_target::files_info): Update.
2455 * exec.h (exec_bfd): Remove macro.
2456 * progspace.c (initialize_progspace): Update.
2457 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2458 Update.
2459 * nto-procfs.c (nto_procfs_target::post_attach)
2460 (nto_procfs_target::create_inferior): Update.
2461 * maint.c (maintenance_info_sections): Update.
2462 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2463 Update.
2464 * infcmd.c (post_create_inferior): Update.
2465 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2466 (objfile_find_memory_regions): Update.
2467 * exec.c (validate_exec_file, exec_file_attach)
2468 (exec_read_partial_read_only, print_section_info): Update.
2469 * corelow.c (core_target_open): Update.
2470 * corefile.c (reopen_exec_file, validate_files): Update.
2471 * arm-tdep.c (gdb_print_insn_arm): Update.
2472 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2473 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2474 methods.
2475
b55221ab
TT
24762020-10-29 Tom Tromey <tom@tromey.com>
2477
2478 * progspace.h (current_target_sections): Remove macro.
2479 * solib-svr4.c (scan_dyntag): Update.
2480 * solib-dsbt.c (scan_dyntag): Update.
2481 * exec.c (exec_target::close): Update.
2482 (add_target_sections, add_target_sections_of_objfile)
2483 (remove_target_sections, exec_target::get_section_table)
2484 (exec_target::files_info, set_section_command)
2485 (exec_set_section_address, exec_target::has_memory)
2486 (exec_target::has_memory): Update.
2487
5a36e715
TT
24882020-10-29 Tom Tromey <tom@tromey.com>
2489
2490 * source-cache.c (source_cache::get_plain_source_lines): Use
2491 current_program_space.
2492 * corefile.c (reopen_exec_file): Use current_program_space.
2493 * exec.c (exec_file_attach): Use current_program_space.
2494 * exec.h (exec_bfd_mtime): Remove.
2495
784c8592
TT
24962020-10-29 Tom Tromey <tom@tromey.com>
2497
2498 * gcore.c (default_gcore_mach): Remove.
2499 (create_gcore_bfd): Update.
2500
8a4f1402
TT
25012020-10-29 Tom Tromey <tom@tromey.com>
2502
2503 * progspace.c (program_space::exec_close): New method, from
2504 exec_close in exec.c.
2505 * exec.c (exec_close): Move to progspace.c.
2506 (exec_target::close, exec_file_attach): Update.
2507 * progspace.h (struct program_space) <exec_close>: Declare
2508 method.
2509
c20cb686
TT
25102020-10-29 Tom Tromey <tom@tromey.com>
2511
2512 * progspace.h (struct program_space) <exec_filename>: Rename from
2513 pspace_exec_filename. Now a unique_xmalloc_ptr.
2514 * inferior.c (print_selected_inferior): Update.
2515 (print_inferior): Update.
2516 * mi/mi-main.c (print_one_inferior): Update.
2517 * exec.h (exec_filename): Remove macro.
2518 * corefile.c (get_exec_file): Update.
2519 * exec.c (exec_close): Update.
2520 (exec_file_attach): Update.
2521 * progspace.c (clone_program_space): Update.
2522 (print_program_space): Update.
2523
6be2a9ab
TT
25242020-10-29 Tom Tromey <tom@tromey.com>
2525
2526 * target-section.h (struct target_section): Add constructor.
2527 * exec.c (build_section_table, add_target_sections_of_objfile):
2528 Update.
2529 * corelow.c (core_target::build_file_mappings): Update.
2530
cfaa8f76
TBA
25312020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2532
2533 PR gdb/19318
2534 * inferior.c (detach_inferior_command): Restore the current thread.
2535 (kill_inferior_command): Ditto.
2536
1b00ef06
TV
25372020-10-28 Tom de Vries <tdevries@suse.de>
2538
2539 PR symtab/26772
2540 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2541 map, check it in the "best match" loop.
2542
7f40ce1a
SM
25432020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * m32c-tdep.c: Remove unused includes.
2546
5eb9e3f5
SM
25472020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * xtensa-tdep.c: Remove includes.
2550
b1d4d8d1
TBA
25512020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552
2553 * breakpoint.c (struct condition_command_opts): New struct.
2554 (condition_command_option_defs): New static global.
2555 (make_condition_command_options_def_group): New function.
2556 (condition_completer): Update to consider the '-force' flag.
2557 (condition_command): Use gdb::option for the '-force' flag.
2558
bd24c5d6
TV
25592020-10-27 Tom de Vries <tdevries@suse.de>
2560
2561 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2562 symbols in section check.
2563
61eb46a4
TV
25642020-10-27 Tom de Vries <tdevries@suse.de>
2565
2566 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2567
733d554a
TBA
25682020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2569
2570 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2571 * breakpoint.c: Update the help text of the 'condition' and 'break'
2572 commands.
2573 (set_breakpoint_condition): Take a new bool parameter
2574 to control whether condition definition should be forced even when
2575 the condition expression is invalid in all of the current locations.
2576 (condition_command): Update the call to 'set_breakpoint_condition'.
2577 (find_condition_and_thread): Take the "-force-condition" flag into
2578 account.
2579 * linespec.c (linespec_keywords): Add "-force-condition" as an
2580 element.
2581 (FORCE_KEYWORD_INDEX): New #define.
2582 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2583 as a keyword.
2584 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2585 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2586 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2587 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2588
b5fa468f
TBA
25892020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2590
2591 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2592 * breakpoint.c (set_breakpoint_location_condition): New function.
2593 (set_breakpoint_condition): Disable a breakpoint location if parsing
2594 the condition string gives an error.
2595 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2596 (build_target_condition_list): Ditto.
2597 (build_target_command_list): Ditto.
2598 (build_bpstat_chain): Ditto.
2599 (print_one_breakpoint_location): Ditto.
2600 (print_one_breakpoint): Ditto.
2601 (breakpoint_1): Ditto.
2602 (bp_location::bp_location): Ditto.
2603 (locations_are_equal): Ditto.
2604 (update_breakpoint_locations): Ditto.
2605 (enable_disable_bp_num_loc): Ditto.
2606 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2607 (find_condition_and_thread_for_sals): New static function.
2608 (create_breakpoint): Call find_condition_and_thread_for_sals.
2609 (location_to_sals): Call find_condition_and_thread_for_sals instead
2610 of find_condition_and_thread.
2611
1c47ec3e
TV
26122020-10-26 Tom de Vries <tdevries@suse.de>
2613
2614 * dwarf2/read.c (process_full_comp_unit): Call
2615 dwarf2_find_base_address.
2616
6390859c
TT
26172020-10-26 Tom Tromey <tromey@adacore.com>
2618
2619 * gdbtypes.c (create_range_type): Revert previous patch. Add
2620 comment.
2621
d744f0f9
PA
26222020-10-26 Pedro Alves <pedro@palves.net>
2623
2624 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2625 (my_waitpid): Use gdb::handle_eintr.
2626
006811bc
SM
26272020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * acinclude.m4: Update ptrace.m4 path.
2630 * ptrace.m4: Moved to gdbsupport.
2631
c75e31a1
SM
26322020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2633
2634 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2635 instead of target_gdbarch.
2636
32495661
SM
26372020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2638
2639 * jit.c (jit_reader_load_command): Pass current inferior.
2640 (jit_inferior_init): Change parameter type to inferior, use it.
2641 (jit_inferior_created): Remove.
2642 (jit_inferior_created_hook): Pass inferior parameter down.
2643 (_initialize_jit): Use jit_inferior_created_hook instead of
2644 jit_inferior_created.
2645 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2646 * infrun.c (follow_exec): Pass inferior to
2647 jit_inferior_created_hook.
2648
3f66685e
SM
26492020-10-24 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2652 parameter and use it.
2653 (thread_db_inferior_created): Pass inferior argument.
2654
a0ff652f
SM
26552020-10-24 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * aix-thread.c (aix_thread_inferior_created): Add inferior
2658 parameter.
2659 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2660 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2661 * jit.c (jit_inferior_created): Likewise.
2662 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2663 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2664 * observable.h (inferior_created): Likewise.
2665 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2666 * symfile-mem.c (add_vsyscall_page): Likewise.
2667 * infcmd.c (post_create_inferior): Pass inferior argument.
2668
3c67532c
JB
26692020-10-24 Joel Brobecker <brobecker@adacore.com>
2670
2671 GDB 10.1 released.
2672
8747316e
JB
26732020-10-23 Joel Brobecker <brobecker@adacore.com>
2674
2675 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2676 to ada_check_typedef.
2677
1a0ea399
AB
26782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * f-exp.y (f_parse): Rename to...
2681 (f_language::parser): ...this.
2682 * f-lang.c (f_get_encoding): Rename to...
2683 (f_language::get_encoding): ...this.
2684 (f_op_print_tab): Rename to...
2685 (f_language::op_print_tab): ...this.
2686 (exp_descriptor_f): Rename to...
2687 (f_language::exp_descriptor_tab): ...this.
2688 (class f_language): Moved to f-lang.h.
2689 (f_language::language_arch_info): New function, moved out of class
2690 declaration.
2691 (f_language::search_name_hash): Likewise.
2692 (f_language::lookup_symbol_nonlocal): Likewise.
2693 (f_language::get_symbol_name_matcher_inner): Likewise.
2694 * f-lang.h: Add 'valprint.h' include.
2695 (class f_language): Moved here from f-lang.c.
2696 * f-typeprint.c (f_type_print_args): Delete commented out
2697 declaration.
2698 (f_print_typedef): Rename to...
2699 (f_language::print_typedef): ...this.
2700 (f_print_type): Rename to...
2701 (f_language::print_type): ...this.
2702 (f_type_print_varspec_prefix): Delete declaration and rename to...
2703 (f_language::f_type_print_varspec_prefix): ...this.
2704 (f_type_print_varspec_suffix): Delete declaration and rename to...
2705 (f_language::f_type_print_varspec_suffix): ...this.
2706 (f_type_print_base): Delete declaration and rename to...
2707 (f_language::f_type_print_base): ...this.
2708 * f-valprint.c (f_value_print_inner): Rename to...
2709 (f_language::value_print_inner): ...this.
2710 * parse.c: Delete 'f-lang.h' include.
2711
88cefd9b
AB
27122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * language.h (language_defn::print_type): Add variable names in
2715 declaration, and update header comment.
2716
5399db93
AB
27172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * ada-lang.c (ada_language::demangle): Rename to...
2720 (ada_language::demangle_symbol): ...this.
2721 * c-lang.c (cplus_language::demangle): Rename to...
2722 (cplus_language::demangle_symbol): ...this.
2723 * d-lang.c (d_language::demangle): Rename to...
2724 (d_language::demangle_symbol): ...this.
2725 * f-lang.c (f_language::demangle): Rename to...
2726 (f_language::demangle_symbol): ...this.
2727 * go-lang.c (go_language::demangle): Rename to...
2728 (go_language::demangle_symbol): ...this.
2729 * language.c (language_demangle): Update call to demangle_symbol.
2730 (auto_or_unknown_language::demangle): Rename to...
2731 (auto_or_unknown_language::demangle_symbol): ...this.
2732 * language.h (language_defn::demangle): Rename to...
2733 (language_defn::demangle_symbol): ...this.
2734 * objc-lang.c (objc_language::demangle): Rename to...
2735 (objc_language::demangle_symbol): ...this.
2736 * rust-lang.c (rust_language::demangle): Rename to...
2737 (rust_language::demangle_symbol): ...this.
2738
4b2f86ef
AB
27392020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2742 (iterate_over_file_blocks): Replace use of macro with the macros
2743 definition.
2744
e74b39de
AB
27452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2748 * valprint.c (maybe_print_array_index): Replace use of macro with
2749 the macros definition.
2750
00c696a6
AB
27512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * ada-lang.c (ada_language::print_array_index): Call value_print
2754 directly.
2755 * language.c (language_defn::print_array_index): Likewise.
2756 * language.h (LA_VALUE_PRINT): Delete.
2757 * valprint.c (value_print): Call value_print on the
2758 current_language directly.
2759
d3b67c56
AB
27602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * language.h (LA_PRINT_TYPEDEF): Delete.
2763 * typeprint.c (typedef_print): Call print_typedef directly on the
2764 current_language object.
2765
790e2a12
AB
27662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * m2-exp.y (m2_parse): Rename to...
2769 (m2_language::parser): ...this. Update function signature.
2770 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2771 (m2_op_print): Rename to...
2772 (m2_language::op_print_tab): ...this, and make const.
2773 (exp_descriptor_modula2): Rename to...
2774 (m2_language::exp_descriptor_modula2): ...this.
2775 (class m2_language): Move to m2-lang.h.
2776 (m2_language::language_arch_info): New function, moved out of
2777 class declaration.
2778 (m2_language::printchar): New function, body from m2_printchar.
2779 (m2_language::printstr): New function, moved out of class
2780 declaration.
2781 (m2_language::emitchar): Likewise.
2782 * m2-lang.h (m2_parse): Delete declaration.
2783 (m2_print_typedef): Delete declaration.
2784 (m2_value_print_inner): Delete declaration.
2785 (class m2_language): Class declaration moved from m2-lang.c,
2786 larger functions are left in m2-lang.c.
2787 * m2-typeprint.c (m2_print_typedef): Rename to...
2788 (m2_language::print_typedef): ...this, and update function
2789 signature.
2790 * m2-valprint.c (m2_value_print_inner): Rename to...
2791 (m2_language::value_print_inner): ...this, replace use of
2792 LA_PRINT_STRING with a direct call to printstr member function,
2793 and update recursive call.
2794
b01175fc
AB
27952020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * language.c (default_is_string_type_p): Delete, implementation
2798 moved into auto_or_unknown_language::is_string_type_p.
2799 (unk_op_print_tab): Moved into
2800 auto_or_unknown_language::opcode_print_table.
2801 (unknown_language_arch_info): Delete, implementation moved into
2802 auto_or_unknown_language::language_arch_info.
2803 (class auto_or_unknown_language): New class, member functions
2804 copied from unknown_language class, with some updates.
2805 (class unknown_language): Most member functions moved into
2806 auto_or_unknown_language class. Inherit from
2807 auto_or_unknown_language class.
2808 (class auto_language): Inherit from auto_or_unknown_language.
2809 Delete most member functions.
2810
1a97fe8c
HD
28112020-10-22 Hannes Domani <ssbssa@yahoo.de>
2812
2813 * stabsread.c (read_member_functions): Remove gdb_assert.
2814
6b9d0dfd
HD
28152020-10-22 Hannes Domani <ssbssa@yahoo.de>
2816
2817 * gdbtypes.c (init_complex_type): Check target type name.
2818
4b4bb603
SM
28192020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * target-debug.h (target_debug_print_struct_target_ops_p):
2822 Remove.
2823 (target_debug_print_async_callback_ftype_p): Remove.
2824 (target_debug_print_struct_trace_state_variable_p): Remove.
2825 (target_debug_print_struct_traceframe_info_p): Remove.
2826 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2827 (target_debug_print_enum_btrace_format): Remove.
2828 (target_debug_print_enum_info_proc_what): Remove.
2829 (target_debug_print_thread_info_pp): Remove.
2830
24f5300a
SM
28312020-10-22 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * target.h (struct target_ops) <make_corefile_notes>:
2834 Change return type to unique pointer.
2835 * target.c (dummy_make_corefile_notes): Likewise.
2836 * exec.c (struct exec_target) <make_corefile_notes>:
2837 Likewise.
2838 (exec_target::make_corefile_notes): Likewise.
2839 * procfs.c (class procfs_target) <make_corefile_notes>:
2840 Likewise.
2841 (procfs_do_thread_registers): Adjust to unique pointer.
2842 (struct procfs_corefile_thread_data): Add constructor.
2843 <note_data>: Change type to unique pointer.
2844 (procfs_corefile_thread_callback): Adjust to unique pointer.
2845 (procfs_target::make_corefile_notes): Change return type to
2846 unique pointer.
2847 * target-delegates.c: Re-generate.
2848 * gcore.c (write_gcore_file_1): Adjust.
2849 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2850 New.
2851
5fb4027f
TV
28522020-10-22 Tom de Vries <tdevries@suse.de>
2853
2854 * block.c (find_block_in_blockvector): Make sure the returned block
2855 contains pc.
2856
4a636814
SM
28572020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 PR gdb/26693
2860 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2861 parameter.
2862 (load_cu): Pass existing CU.
2863 (process_imported_unit_die): Likewise.
2864 (follow_die_offset): Likewise.
2865
1bd57575
LM
28662020-10-22 Luis Machado <luis.machado@linaro.org>
2867
2868 * corelow.c (core_target::xfer_partial): Also check for an empty
2869 m_core_unavailable_mappings vector.
2870
6b4c676c
AB
28712020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2874 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2875 * f-exp.y (arglist): Allow for a series of subranges.
2876 (subrange): Add cases for subranges with strides.
2877 * f-lang.c (value_f90_subarray): Catch use of array strides and
2878 throw an error.
2879 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2880
f2d8e4c5
AB
28812020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * expprint.c (print_subexp_standard): Change enum range_type to
2884 range_flag and rename variables to match.
2885 (dump_subexp_body_standard): Likewise.
2886 * expression.h (enum range_type): Rename to...
2887 (enum range_flag): ...this.
2888 (range_types): Rename to...
2889 (range_flags): ...this.
2890 * f-lang.c (value_f90_subarray): Change enum range_type to
2891 range_flag and rename variables to match.
2892 * parse.c (operator_length_standard): Likewise.
2893 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2894 range_type to range_flag.
2895 * rust-lang.c (rust_evaluate_funcall): Likewise.
2896 (rust_range): Likewise.
2897 (rust_compute_range): Likewise.
2898 (rust_subscript): Likewise.
2899
2f1b18db
AB
29002020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * expprint.c (print_subexp_standard): Update to reflect changes to
2903 enum range_type.
2904 (dump_subexp_body_standard): Likewise.
2905 * expression.h (enum range_type): Convert to a bit field enum, and
2906 make the enum unsigned.
2907 * f-exp.y (subrange): Update to reflect changes to enum
2908 range_type.
2909 * f-lang.c (value_f90_subarray): Likewise.
2910 * parse.c (operator_length_standard): Likewise.
2911 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2912 * rust-lang.c (rust_range): Likewise.
2913 (rust_compute_range): Likewise.
2914 (rust_subscript): Likewise.
2915
a46d1843
SM
29162020-10-21 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2919 (displaced_step_in_progress): Fix comment.
2920
c21f37a8
SM
29212020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2924 * gdbarch.c: Re-generate.
2925 * gdbarch.h: Re-generate.
2926 * gcore.c (write_gcore_file_1): Adjust.
2927 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2928 constructor.
2929 <note_data>: Change type to unique pointer.
2930 <abort_iteration>: Change type to bool.
2931 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2932 (fbsd_collect_thread_registers): Return void, adjust.
2933 (struct fbsd_corefile_thread_data): Add construtor.
2934 <note_data>: Change type to unique pointer.
2935 (fbsd_corefile_thread): Adjust.
2936 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2937 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2938 to unique pointer, adjust.
2939 (struct linux_collect_regset_section_cb_data): Add constructor.
2940 <note_data>: Change type to unique pointer.
2941 <abort_iteration>: Change type to bool.
2942 (linux_collect_thread_registers): Return void, adjust.
2943 (struct linux_corefile_thread_data): Add constructor.
2944 <note_data>: Change type to unique pointer.
2945 (linux_corefile_thread): Adjust.
2946 (linux_make_corefile_notes): Return unique pointer, adjust.
2947
07fbbd01
SM
29482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2951 * gdbarch.c: Re-generate.
2952 * gdbarch.h: Re-generate.
2953 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2954 bool.
2955 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2956 Likewise.
2957 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2958 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2959 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2960 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2961
39535193
SM
29622020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2963
2964 * gdbarch.sh: Make generated predicates return bool.
2965 * gdbarch.c: Re-generate.
2966 * gdbarch.h: Re-generate.
2967
ad523d01
TT
29682020-10-20 Tom Tromey <tom@tromey.com>
2969
2970 * varobj-iter.h (struct varobj_item): Remove typedef.
2971
c4464ade
SM
29722020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2973
2974 * infrun.c (currently_stepping): Change int to bool
2975 (maybe_software_singlestep): Likewise.
2976 (show_stop_on_solib_events): Likewise.
2977 (stepping_past_nonsteppable_watchpoint): Likewise.
2978 (displaced_step_in_progress_any_inferior): Likewise.
2979 (displaced_step_in_progress_thread): Likewise.
2980 (keep_going_stepped_thread): Likewise.
2981 (thread_still_needs_step_over): Likewise.
2982 (start_step_over): Likewise.
2983 (do_target_resume): Likewise.
2984 (resume_1): Likewise.
2985 (clear_proceed_status): Likewise.
2986 (thread_still_needs_step_over_bp): Likewise.
2987 (proceed): Likewise.
2988 (switch_back_to_stepped_thread): Likewise.
2989 (adjust_pc_after_break): Likewise.
2990 (stepped_in_from): Likewise.
2991 (handle_stop_requested): Likewise.
2992 (handle_syscall_event): Likewise.
2993 (handle_no_resumed): Likewise.
2994 (handle_inferior_event): Likewise.
2995 (finish_step_over): Likewise.
2996 (handle_signal_stop): Likewise.
2997 (process_event_stop_test): Likewise.
2998
2eb20436
SM
29992020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3000
3001 * infrun.c (get_displaced_stepping_state): Fix comment.
3002
e0c45ded
AS
30032020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3004
3005 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3006
22cc388e
TT
30072020-10-19 Tom Tromey <tromey@adacore.com>
3008
3009 PR tui/26719
3010 * tui/tui-winsource.h (struct tui_source_window_base)
3011 <refresh_window>: Rename from refresh_pad.
3012 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3013 Rename from refresh_pad.
3014 (tui_source_window_base::show_source_content)
3015 (tui_source_window_base::do_scroll_horizontal): Update.
3016
3c6eb4d4
TBA
30172020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018
3019 * thread.c (_initialize_thread): Fine-tune the help text of
3020 'info threads'.
3021
26703721
TBA
30222020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3023
3024 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3025
61c26be8
MS
30262020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3027
3028 * breakpoint.c (handle_jit_event): Add an argument, change how
3029 `jit_event_handler` is called.
3030
932539d7
TT
30312020-10-17 Tom Tromey <tom@tromey.com>
3032
3033 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3034 (scan_xcoff_symtab): Update.
3035 * psymtab.h (class psymtab_storage) <global_psymbols,
3036 static_psymbols, current_global_psymbols,
3037 current_static_psymbols>: Remove.
3038 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3039 (match_partial_symbol, lookup_partial_symbol): Update.
3040 (print_partial_symbols): Change parameters.
3041 (dump_psymtab, recursively_search_psymtabs)
3042 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3043 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3044 (concat): Remove.
3045 (end_psymtab_common): Simplify.
3046 (append_psymbol_to_list): Change parameters.
3047 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3048 (init_psymbol_list): Simplify.
3049 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3050 * psympriv.h (struct partial_symtab) <empty>: New method.
3051 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3052 Remove.
3053 <global_psymbols, static_psymbols>: New members.
3054 <add_psymbol>: New methods.
3055 (add_psymbol_to_list): Don't declare.
3056 (psymbol_placement): Move earlier.
3057 * mdebugread.c (parse_partial_symbols): Update.
3058 (handle_psymbol_enumerators): Change parameters.
3059 (mdebug_expand_psymtab): Update.
3060 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3061 (add_partial_symbol): Update.
3062 * dwarf2/index-write.c (write_psymbols): Change parameters.
3063 (write_one_signatured_type): Update.
3064 (recursively_count_psymbols): Update.
3065 (recursively_write_psymbols): Update.
3066 (class debug_names) <recursively_write_psymbols>: Update.
3067 <write_psymbols>: Change parameters.
3068 <write_one_signatured_type>: Update.
3069 * dbxread.c (read_dbx_symtab): Update.
3070 (dbx_end_psymtab): Use partial_symtab::empty.
3071 * ctfread.c (struct ctf_context) <pst>: New member.
3072 (create_partial_symtab): Set it.
3073 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3074 (scan_partial_symbols): Use the psymtab's context. Update.
3075
cfabbd35
TT
30762020-10-17 Tom Tromey <tom@tromey.com>
3077
3078 * valprint.c (generic_value_print): Remove comment.
3079 * m2-valprint.c (m2_value_print_inner): Remove comment.
3080 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3081 type.
3082
520596f2
TV
30832020-10-17 Tom de Vries <tdevries@suse.de>
3084
3085 PR symtab/26317
3086 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3087 symbol main.
3088
76547ab3
TV
30892020-10-14 Tom de Vries <tdevries@suse.de>
3090
3091 PR gdb/26733
3092 * solib.c (solib_contains_address_p): Handle
3093 'solib->sections == nullptr'.
3094
d3a07122
SM
30952020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 PR gdb/26642
3098 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3099 target can't do async.
3100 * target.c (target_wait): Assert that we don't pass
3101 TARGET_WNOHANG to a target that can't async.
3102
1b71cfcf
KR
31032020-10-13 Kamil Rytarowski <n54@gmx.com>
3104
3105 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3106 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3107 * alpha-bsd-nat.c: Adjust include.
3108 * alpha-bsd-tdep.h: Adjust comment.
3109 * alpha-nbsd-tdep.c: Rename to ...
3110 * alpha-netbsd-tdep.c: ... this, adjust include.
3111 * amd64-nbsd-nat.c: Rename to ...
3112 * amd64-netbsd-nat.c: ... this, adjust include.
3113 * amd64-nbsd-tdep.c: Rename to ...
3114 * amd64-netbsd-tdep.c: ... this, adjust include.
3115 * amd64-tdep.h: Adjust include.
3116 * arm-nbsd-nat.c: Rename to ...
3117 * arm-netbsd-nat.c: ... this, adjust include.
3118 * arm-nbsd-tdep.c: Rename to ...
3119 * arm-netbsd-tdep.c: ... this, adjust include.
3120 * arm-nbsd-tdep.h: Rename to ...
3121 * arm-netbsd-tdep.h: ... this, adjust include.
3122 * configure.nat: Adjust file lists.
3123 * configure.tgt: Likewise.
3124 * hppa-nbsd-nat.c: Rename to ...
3125 * hppa-netbsd-nat.c: ... this, adjust include.
3126 * hppa-nbsd-tdep.c: Rename to ...
3127 * hppa-netbsd-tdep.c: ... this, adjust include.
3128 * i386-nbsd-nat.c: Rename to ...
3129 * i386-netbsd-nat.c: ... this, adjust include.
3130 * i386-nbsd-tdep.c: Rename to ...
3131 * i386-netbsd-tdep.c: ... this, adjust include.
3132 * m68k-bsd-nat.c: Adjust include.
3133 * mips-nbsd-nat.c: Rename to ...
3134 * mips-netbsd-nat.c: ... this, adjust include.
3135 * mips-nbsd-tdep.c: Rename to ...
3136 * mips-netbsd-tdep.c: ... this, adjust include.
3137 * mips-nbsd-tdep.h: Rename to ...
3138 * mips-netbsd-tdep.h: ... this.
3139 * nbsd-nat.c: Rename to ...
3140 * netbsd-nat.c: ... this, adjust include.
3141 * nbsd-nat.h: Rename to ...
3142 * netbsd-nat.h: ... this, adjust include.
3143 * nbsd-tdep.c: Rename to ...
3144 * netbsd-tdep.c: ... this, adjust include.
3145 * nbsd-tdep.h: Rename to ...
3146 * netbsd-tdep.h: ... this.
3147 * ppc-nbsd-nat.c: Rename to ...
3148 * ppc-netbsd-nat.c: ... this, adjust include.
3149 * ppc-nbsd-tdep.c: Rename to ...
3150 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3151 * ppc-nbsd-tdep.h: Rename to ...
3152 * ppc-netbsd-tdep.h: ... this.
3153 * sh-nbsd-nat.c: Rename to ...
3154 * sh-netbsd-nat.c: ... this, adjust include.
3155 * sh-nbsd-tdep.c: Rename to ...
3156 * sh-netbsd-tdep.c: ... this, adjust include.
3157 * sparc-nbsd-nat.c: Rename to ...
3158 * sparc-netbsd-nat.c: ... this.
3159 * sparc-nbsd-tdep.c: Rename to ...
3160 * sparc-netbsd-tdep.c: ... this, adjust include.
3161 * sparc64-nbsd-nat.c: Rename to ...
3162 * sparc64-netbsd-nat.c: ... this.
3163 * sparc64-nbsd-tdep.c: Rename to ...
3164 * sparc64-netbsd-tdep.c: ... this, adjust include.
3165 * sparc64-tdep.h: Adjust comment.
3166 * vax-bsd-nat.c: Adjust include.
3167 * vax-nbsd-tdep.c: Rename to ...
3168 * vax-netbsd-tdep.c: ... this, adjust include.
3169
d7a78e5c
TT
31702020-10-12 Tom Tromey <tom@tromey.com>
3171
3172 * target.h (struct target_ops) <get_section_table>: Update.
3173 (target_get_section_table): Update.
3174 * target.c (target_get_section_table, target_section_by_addr)
3175 (memory_xfer_partial_1): Update.
3176 * target-section.h (target_section_table): Now an alias.
3177 * target-delegates.c: Rebuild.
3178 * target-debug.h (target_debug_print_target_section_table_p):
3179 Rename from target_debug_print_struct_target_section_table_p.
3180 * symfile.c (build_section_addr_info_from_section_table): Update.
3181 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3182 * solib-svr4.c (scan_dyntag): Update.
3183 * solib-dsbt.c (scan_dyntag): Update.
3184 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3185 Update.
3186 * record-full.c (record_full_core_target::xfer_partial): Update.
3187 * progspace.h (struct program_space) <target_sections>: Update.
3188 * exec.h (print_section_info): Update.
3189 * exec.c (exec_target::close, build_section_table)
3190 (add_target_sections, add_target_sections_of_objfile)
3191 (remove_target_sections, exec_on_vfork)
3192 (section_table_available_memory)
3193 (section_table_xfer_memory_partial)
3194 (exec_target::get_section_table, exec_target::xfer_partial)
3195 (print_section_info, set_section_command)
3196 (exec_set_section_address, exec_target::has_memory): Update.
3197 * corelow.c (core_target::build_file_mappings)
3198 (core_target::xfer_partial, core_target::info_proc_mappings)
3199 (core_target::info_proc_mappings): Update.
3200 * bfd-target.c (class target_bfd): Update
3201
eda214ce
TT
32022020-10-12 Tom Tromey <tom@tromey.com>
3203
3204 * progspace.c (program_space::~program_space): Don't call
3205 clear_section_table.
3206 * exec.h (clear_section_table): Don't declare.
3207 * exec.c (exec_target::close): Update.
3208 (clear_section_table): Remove.
3209
91840ee3
TT
32102020-10-12 Tom Tromey <tom@tromey.com>
3211
3212 * exec.c (add_target_sections_of_objfile): Simplify.
3213
2d128614
TT
32142020-10-12 Tom Tromey <tom@tromey.com>
3215
3216 * solib.c (solib_map_sections): Update.
3217 * record-full.c (record_full_core_open_1): Update.
3218 * exec.h (build_section_table): Return a target_section_table.
3219 * exec.c (exec_file_attach): Update.
3220 (build_section_table): Return a target_section_table.
3221 * corelow.c (core_target::core_target): Update.
3222 * bfd-target.c (target_bfd::target_bfd): Update.
3223
bb2a6777
TT
32242020-10-12 Tom Tromey <tom@tromey.com>
3225
3226 * target.c (target_section_by_addr, memory_xfer_partial_1):
3227 Update.
3228 * target-section.h (struct target_section_table): Use
3229 std::vector.
3230 * symfile.h (build_section_addr_info_from_section_table): Take a
3231 target_section_table.
3232 * symfile.c (build_section_addr_info_from_section_table): Take a
3233 target_section_table.
3234 * solist.h (struct so_list) <sections>: Change type.
3235 <sections_end>: Remove.
3236 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3237 (solib_contains_address_p): Update.
3238 * solib-svr4.c (scan_dyntag): Update.
3239 * solib-dsbt.c (scan_dyntag): Update.
3240 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3241 Update.
3242 * record-full.c (record_full_core_start, record_full_core_end):
3243 Remove.
3244 (record_full_core_sections): New global.
3245 (record_full_core_open_1, record_full_core_target::xfer_partial):
3246 Update.
3247 * exec.h (build_section_table, section_table_xfer_memory_partial)
3248 (add_target_sections): Take a target_section_table.
3249 * exec.c (exec_file_attach, clear_section_table): Update.
3250 (resize_section_table): Remove.
3251 (build_section_table, add_target_sections): Take a
3252 target_section_table.
3253 (add_target_sections_of_objfile, remove_target_sections)
3254 (exec_on_vfork): Update.
3255 (section_table_available_memory): Take a target_section_table.
3256 (section_table_read_available_memory): Update.
3257 (section_table_xfer_memory_partial): Take a target_section_table.
3258 (print_section_info, set_section_command)
3259 (exec_set_section_address, exec_target::has_memory): Update.
3260 * corelow.c (class core_target) <m_core_section_table,
3261 m_core_file_mappings>: Remove braces.
3262 <~core_target>: Remove.
3263 (core_target::core_target): Update.
3264 (core_target::~core_target): Remove.
3265 (core_target::build_file_mappings)
3266 (core_target::xfer_memory_via_mappings)
3267 (core_target::xfer_partial, core_target::info_proc_mappings):
3268 Update.
3269 * bfd-target.c (target_bfd::xfer_partial): Update.
3270 (target_bfd::target_bfd): Update.
3271 (target_bfd::~target_bfd): Remove.
3272
7b466b10
TT
32732020-10-12 Tom Tromey <tom@tromey.com>
3274
3275 * target.h (struct target_section, struct target_section_table):
3276 Move to target-section.h.
3277 * target-section.h: New file.
3278
87a37e5e
PA
32792020-10-12 Pedro Alves <pedro@palves.net>
3280
3281 PR exp/26602
3282 * valops.c (struct struct_field_searcher): New.
3283 (update_search_result): Rename to ...
3284 (struct_field_searcher::update_result): ... this. Simplify
3285 prototype. Record all found fields.
3286 (do_search_struct_field): Rename to ...
3287 (struct_field_searcher::search): ... this. Simplify prototype.
3288 Maintain stack of visited baseclass path. Call update_result for
3289 fields too. Keep searching fields in baseclasses instead of
3290 stopping at the first found field.
3291 (search_struct_field): Use struct_field_searcher. When looking
3292 for fields, report ambiguous access attempts.
3293
9370fd51
AB
32942020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * frame.c (inside_main_func): Check full symbols as well as
3297 minimal symbols.
3298
59c8a30b
JB
32992020-10-09 Joel Brobecker <brobecker@adacore.com>
3300
3301 * ada-lang.c (advance_wild_match): Rewrite the function's
3302 description. Change the type of target0, t0 and t1 to char.
3303
7c184d33
TT
33042020-10-09 Tom Tromey <tromey@adacore.com>
3305
3306 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3307
5c4258f4
TT
33082020-10-09 Tom Tromey <tromey@adacore.com>
3309
3310 * ada-lang.h (ada_encode): Return std::string.
3311 * ada-lang.c (ada_encode_1): Return std::string.
3312 (ada_encode): Likewise.
3313 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3314 Update.
3315 * ada-exp.y (block_lookup, write_var_or_type): Update.
3316
3d87245c
HD
33172020-10-09 Hannes Domani <ssbssa@yahoo.de>
3318
3319 PR exp/26714
3320 * printcmd.c (print_formatted): Handle void results as
3321 unformatted prints.
3322
bbb826f5
AB
33232020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * arch/aarch32.c (aarch32_create_target_description): Release the
3326 target_desc_up as late as possible.
3327 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3328 * arch/amd64.c (amd64_create_target_description): Likewise.
3329 * arch/arc.c (arc_create_target_description): Return a
3330 target_desc_up, don't release it.
3331 * arch/arc.h (arc_create_target_description): Update declaration.
3332 (arc_lookup_target_description): Move target_desc_up into the
3333 cache, and return a borrowed pointer.
3334 * arch/arm.c (arm_create_target_description): Release the
3335 target_desc_up as late as possible.
3336 * arch/i386.c (i386_create_target_description): Likewise.
3337 * arch/riscv.h (riscv_create_target_description): Update
3338 declaration to match definition.
3339 * arch/tic6x.c (tic6x_create_target_description): Release the
3340 target_desc_up as late as possible.
3341
361cb219
AB
33422020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3345 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3346
f5c4b229
JV
33472020-10-09 Jan Vrany <jan.vrany@labware.com>
3348
3349 * source.c (directory_command): Notify observers that "directories"
3350 parameter has changed.
3351
b2701685
TT
33522020-10-08 Tom Tromey <tom@tromey.com>
3353
3354 * cli/cli-cmds.c (print_disassembly): Style function name and
3355 addresses. Add _() wrappers.
3356
ada508b6
SV
33572020-10-08 Shahab Vahedi <shahab@synopsys.com>
3358
3359 * NEWS: Mention ARC support in GDBserver.
3360
51a948fd
AB
33612020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * arch/aarch32.c (aarch32_create_target_description): Release
3364 unique_ptr returned from allocate_target_description.
3365 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3366 * arch/amd64.c (amd64_create_target_description): Likewise.
3367 * arch/arc.c (arc_create_target_description): Likewise.
3368 * arch/arm.c (arm_create_target_description): Likewise.
3369 * arch/i386.c (i386_create_target_description): Likewise.
3370 * arch/riscv.c (riscv_create_target_description): Update return
3371 type. Handle allocate_target_description returning a unique_ptr.
3372 (riscv_lookup_target_description): Update to handle unique_ptr.
3373 * arch/tic6x.c (tic6x_create_target_description): Release
3374 unique_ptr returned from allocate_target_description.
3375 * features/microblaze-with-stack-protect.c: Regenerate.
3376 * features/microblaze.c: Regenerate.
3377 * features/mips-dsp-linux.c: Regenerate.
3378 * features/mips-linux.c: Regenerate.
3379 * features/mips64-dsp-linux.c: Regenerate.
3380 * features/mips64-linux.c: Regenerate.
3381 * features/nds32.c: Regenerate.
3382 * features/nios2.c: Regenerate.
3383 * features/or1k.c: Regenerate.
3384 * features/rs6000/powerpc-32.c: Regenerate.
3385 * features/rs6000/powerpc-32l.c: Regenerate.
3386 * features/rs6000/powerpc-403.c: Regenerate.
3387 * features/rs6000/powerpc-403gc.c: Regenerate.
3388 * features/rs6000/powerpc-405.c: Regenerate.
3389 * features/rs6000/powerpc-505.c: Regenerate.
3390 * features/rs6000/powerpc-601.c: Regenerate.
3391 * features/rs6000/powerpc-602.c: Regenerate.
3392 * features/rs6000/powerpc-603.c: Regenerate.
3393 * features/rs6000/powerpc-604.c: Regenerate.
3394 * features/rs6000/powerpc-64.c: Regenerate.
3395 * features/rs6000/powerpc-64l.c: Regenerate.
3396 * features/rs6000/powerpc-7400.c: Regenerate.
3397 * features/rs6000/powerpc-750.c: Regenerate.
3398 * features/rs6000/powerpc-860.c: Regenerate.
3399 * features/rs6000/powerpc-altivec32.c: Regenerate.
3400 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3401 * features/rs6000/powerpc-altivec64.c: Regenerate.
3402 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3403 * features/rs6000/powerpc-e500.c: Regenerate.
3404 * features/rs6000/powerpc-e500l.c: Regenerate.
3405 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3406 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3407 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3408 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3409 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3410 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3411 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3412 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3413 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3414 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3415 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3416 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3417 * features/rs6000/powerpc-vsx32.c: Regenerate.
3418 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3419 * features/rs6000/powerpc-vsx64.c: Regenerate.
3420 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3421 * features/rs6000/rs6000.c: Regenerate.
3422 * features/rx.c: Regenerate.
3423 * features/s390-gs-linux64.c: Regenerate.
3424 * features/s390-linux32.c: Regenerate.
3425 * features/s390-linux32v1.c: Regenerate.
3426 * features/s390-linux32v2.c: Regenerate.
3427 * features/s390-linux64.c: Regenerate.
3428 * features/s390-linux64v1.c: Regenerate.
3429 * features/s390-linux64v2.c: Regenerate.
3430 * features/s390-te-linux64.c: Regenerate.
3431 * features/s390-tevx-linux64.c: Regenerate.
3432 * features/s390-vx-linux64.c: Regenerate.
3433 * features/s390x-gs-linux64.c: Regenerate.
3434 * features/s390x-linux64.c: Regenerate.
3435 * features/s390x-linux64v1.c: Regenerate.
3436 * features/s390x-linux64v2.c: Regenerate.
3437 * features/s390x-te-linux64.c: Regenerate.
3438 * features/s390x-tevx-linux64.c: Regenerate.
3439 * features/s390x-vx-linux64.c: Regenerate.
3440 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3441 from allocate_target_description.
3442 * target-descriptions.c (allocate_target_description): Update
3443 return type.
3444 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3445 allocate_target_description.
3446
485c47e5
TT
34472020-10-07 Tom Tromey <tromey@adacore.com>
3448
3449 * unittests/search-memory-selftests.c: New file.
3450 * Makefile.in (SELFTESTS_SRCS): Add
3451 unittests/search-memory-selftests.c.
3452
3a135a91
TT
34532020-10-07 Tom Tromey <tromey@adacore.com>
3454
3455 PR gdb/16930:
3456 * findcmd.c (_initialize_mem_search): Mention that the range is
3457 inclusive.
3458
4a72de73
TT
34592020-10-07 Tom Tromey <tromey@adacore.com>
3460
3461 * target.h (simple_search_memory): Don't declare.
3462 * target.c (simple_search_memory): Move to gdbsupport.
3463 (default_search_memory): Update.
3464 * remote.c (remote_target::search_memory): Update.
3465
a038ffd8
SM
34662020-10-07 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * Makefile.in (COMPILE): Add CXXFLAGS.
3469 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3470 (check-headers): Add CXXFLAGS.
3471
cc463201
AK
34722020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3473
3474 * arc-linux-tdep.h: New file.
3475 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3476 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3477 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3478 arc_linux_gregset, arc_linux_v2_regset,
3479 arc_linux_iterate_over_regset_sections,
3480 arc_linux_core_read_description): Implement.
3481 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3482 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3483 (arc_gdbarch_features_create): Add.
3484 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3485
e4bd363f
SV
34862020-10-07 Shahab Vahedi <shahab@synopsys.com>
3487
3488 * arch/arc.h: Rename "arc_gdbarch_features" to
3489 "arc_arch_features".
3490 * arc-tdep.h: Likewise.
3491 * arc-tdep.c: Likewise.
3492
b68bef99
TBA
34932020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3494
3495 * infcmd.c (attach_command): Remove the redundant call to
3496 `clear_proceed_status`.
3497
4641551a
KR
34982020-10-07 Kamil Rytarowski <n54@gmx.com>
3499
3500 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3501
91e5e8db
KR
35022020-10-07 Kamil Rytarowski <n54@gmx.com>
3503
3504 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3505 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3506 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3507
64c03bdb
SM
35082020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3511 (_initialize_break_catch_sig): Don't allocate array.
3512
31a8f60f
AB
35132020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * symtab.c (find_pc_line): Return unmapped addresses when the
3516 requested address is also unmapped.
3517
9e6dbd8b
SM
35182020-10-05 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3521 tui/tui-out.h.
3522
a1d217e8
SM
35232020-10-05 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3526 type::is_vector instead of TYPE_VECTOR.
3527
7d144117
SM
35282020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 * auto-load.c (auto_load_objfile_script_1): Don't use
3531 debugfile_holder as temporary variable when stripping drive
3532 letter.
3533
cd096ec8
HD
35342020-10-05 Hannes Domani <ssbssa@yahoo.de>
3535
3536 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3537 Add TYPE_CODE_COMPLEX.
3538 (amd64_windows_return_value): Fix types returned via XMM0.
3539
b58e7f72
AH
35402020-10-05 Alan Hayward <alan.hayward@arm.com>
3541
3542 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3543 AArch64/ARM maintainers.
3544
8d378f27
SM
35452020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * NEWS: Mention set/show debug event-loop.
3548
d5519913
TT
35492020-10-02 Tom Tromey <tromey@adacore.com>
3550
3551 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3552 REG_EXTENDED.
3553
18b67edc
SM
35542020-10-02 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3557 * procfs.c (procfs_inferior_created): Remove.
3558 (_initialize_procfs): Don't register procfs_inferior_created.
3559
6b01403b
SM
35602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * async-event.c (invoke_async_signal_handlers): Add debug
3563 print.
3564 (check_async_event_handlers): Likewise.
3565 * event-top.c (show_debug_event_loop): New function.
3566 (_initialize_event_top): Register "set debug event-loop"
3567 setting.
3568
ba988419
SM
35692020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3572 * debug.h: Remove.
3573 * infrun.c: Include gdbsupport/common-debug.h.
3574 * linux-nat.c: Likewise.
3575
db20ebdf
SM
35762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3577
3578 * async-event.h (create_async_signal_handler): Add name
3579 parameter.
3580 (create_async_event_handler): Likewise.
3581 * async-event.c (struct async_signal_handler) <name>: New field.
3582 (struct async_event_handler) <name>: New field.
3583 (create_async_signal_handler): Assign name.
3584 (create_async_event_handler): Assign name.
3585 * event-top.c (async_init_signals): Pass name when creating
3586 handler.
3587 * infrun.c (_initialize_infrun): Likewise.
3588 * record-btrace.c (record_btrace_push_target): Likewise.
3589 * record-full.c (record_full_open): Likewise.
3590 * remote-notif.c (remote_notif_state_allocate): Likewise.
3591 * remote.c (remote_target::open_1): Likewise.
3592 * tui/tui-win.c (tui_initialize_win): Likewise.
3593
2554f6f5
SM
35942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * async-event.c (initialize_async_signal_handlers): Pass name to
3597 add_file_handler
3598 * event-top.c (ui_register_input_event_handler): Likewise.
3599 * linux-nat.c (linux_nat_target::async): Likewise.
3600 * run-on-main-thread.c (_initialize_run_on_main_thread):
3601 Likewise
3602 * ser-base.c (reschedule): Likewise.
3603 (ser_base_async): Likewise.
3604 * tui/tui-io.c: Likewise.
3605 * top.h (struct ui) <num>: New field.
3606 * top.c (highest_ui_num): New variable.
3607 (ui::ui): Initialize num.
3608
a7aba266
SM
36092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3610
3611 * observable.h <inferior_created>: Remove parameters. Update all
3612 listeners.
3613 * inferior.h (post_create_inferior): Remove target parameter.
3614 Update all callers.
3615
048fde1e 36162020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3617
3618 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3619 and DW_MACRO_undef_strx.
3620 (dwarf_decode_macros): Likewise
3621 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3622 which is the value of DW_AT_str_offsets_base.
3623 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3624 str_offsets_base.
3625
064280be
KR
36262020-10-01 Kamil Rytarowski <n54@gmx.com>
3627
3628 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3629
6ff33035
KR
36302020-10-01 Kamil Rytarowski <n54@gmx.com>
3631
3632 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3633 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3634
1eb6eb79
KR
36352020-10-01 Kamil Rytarowski <n54@gmx.com>
3636
3637 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3638
95eb9e54
TV
36392020-09-30 Tom de Vries <tdevries@suse.de>
3640
3641 PR symtab/26683
3642 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3643
cae21f8e
TT
36442020-09-30 Tom Tromey <tromey@adacore.com>
3645
3646 * dwarf2/read.c (handle_variant): Use constant_value.
3647
529908cb
TT
36482020-09-29 Tom Tromey <tom@tromey.com>
3649
3650 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3651 (read_file_scope, dwarf2_get_pc_bounds)
3652 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3653 (read_structure_type, handle_struct_member_die)
3654 (read_enumeration_type, read_array_type, read_set_type)
3655 (read_tag_pointer_type, read_tag_reference_type)
3656 (read_subroutine_type, read_base_type, read_subrange_type)
3657 (read_full_die_1, partial_die_info::read)
3658 (partial_die_info::read, by, new_symbol)
3659 (dwarf2_const_value_data, dwarf2_const_value_attr)
3660 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3661 (prepare_one_comp_unit): Update.
3662 * dwarf2/attribute.h (DW_UNSND): Remove.
3663
c45bc3f8
TT
36642020-09-29 Tom Tromey <tom@tromey.com>
3665
3666 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3667 (read_subroutine_type, partial_die_info::read)
3668 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3669 (dwarf2_add_member_fn): Update.
3670 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3671 * dwarf2/attribute.c (attribute::as_boolean): New method.
3672
23dca5c3
TT
36732020-09-29 Tom Tromey <tom@tromey.com>
3674
3675 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3676 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3677 method.
3678 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3679
52c14d11
TT
36802020-09-29 Tom Tromey <tom@tromey.com>
3681
3682 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3683 the attribute's form.
3684
e8e5c158
TT
36852020-09-29 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3688 (dwarf2_add_member_fn): Update.
3689 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3690 * dwarf2/attribute.c (attribute::defaulted): New method, from
3691 is_valid_DW_AT_defaulted.
3692
d4df075e
TT
36932020-09-29 Tom Tromey <tom@tromey.com>
3694
3695 * dwarf2/read.c (dw2_get_file_names_reader)
3696 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3697 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3698 (dwarf2_symbol_mark_computed): Use as_unsigned.
3699 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3700 method.
3701 <form_is_section_offset>: Update comment.
3702
bf23a268
TT
37032020-09-29 Tom Tromey <tom@tromey.com>
3704
3705 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3706 dwarf2_default_access_attribute. Look up attribute.
3707 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3708 Update.
3709
7a5f294d
TT
37102020-09-29 Tom Tromey <tom@tromey.com>
3711
3712 * dwarf2/read.c (skip_one_die): Update.
3713 (read_full_die_1): Change how reprocessing is done.
3714 (partial_die_info::read): Update.
3715 (read_attribute_value): Remove need_reprocess parameter.
3716 (read_attribute): Likewise.
3717 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3718 New method.
3719
36d378cf
TT
37202020-09-29 Tom Tromey <tom@tromey.com>
3721
3722 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3723 (dwarf2_const_value_attr, dump_die_shallow)
3724 (dwarf2_fetch_constant_bytes): Update.
3725 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3726 comment.
3727 <set_address>: New method.
3728 (DW_ADDR): Remove.
3729 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3730 (attribute::as_string, attribute::as_address): Add assert.
3731
fe56917a
TT
37322020-09-29 Tom Tromey <tom@tromey.com>
3733
3734 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3735 (read_attribute_reprocess, read_attribute_value): Update.
3736 (read_attribute): Clear requires_reprocessing.
3737 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3738 form_requires_reprocessing>: New methods.
3739 <string_init>: Clear requires_reprocessing.
3740 <set_unsigned_reprocess>: New method.
3741 <name>: Shrink by one bit.
3742 <requires_reprocessing>: New member.
3743 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3744 method.
3745
414ad644
TT
37462020-09-29 Tom Tromey <tom@tromey.com>
3747
3748 * dwarf2/read.c (read_attribute_value): Update.
3749 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3750 set_unsigned>: New methods.
3751 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3752
1bc397c5
TT
37532020-09-29 Tom Tromey <tom@tromey.com>
3754
3755 * dwarf2/read.c (get_alignment, read_array_order)
3756 (read_attribute_value, dwarf2_const_value_attr)
3757 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3758 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3759 New methods.
3760 (DW_SND): Remove.
3761
630ed6b9
TT
37622020-09-29 Tom Tromey <tom@tromey.com>
3763
3764 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3765 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3766 Update.
3767 * dwarf2/attribute.h (struct attribute) <as_signature,
3768 set_signature>: New methods.
3769 (DW_SIGNATURE): Remove.
3770
9d2246fc
TT
37712020-09-29 Tom Tromey <tom@tromey.com>
3772
3773 * dwarf2/read.c (read_call_site_scope)
3774 (handle_data_member_location, dwarf2_add_member_fn)
3775 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3776 (partial_die_info::read, read_attribute_value)
3777 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3778 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3779 (dwarf2_symbol_mark_computed): Update.
3780 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3781 methods.
3782 (DW_BLOCK): Remove.
3783 * dwarf2/attribute.c (attribute::form_is_block): Add
3784 DW_FORM_data16.
3785
c6481205
TT
37862020-09-29 Tom Tromey <tom@tromey.com>
3787
3788 * dwarf2/read.c (read_cutu_die_from_dwo)
3789 (read_attribute_reprocess, read_attribute_value, read_attribute)
3790 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3791 (dwarf2_fetch_constant_bytes): Update.
3792 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3793 <set_string_noncanonical, set_string_canonical>: New methods.
3794 <string_is_canonical>: Update comment.
3795 <canonical_string_p>: Add assert.
3796 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3797 * dwarf2/attribute.c (attribute::form_is_string): New method.
3798 (attribute::string): Use it.
3799
3b64bf15
TT
38002020-09-29 Tom Tromey <tom@tromey.com>
3801
3802 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3803 (dump_die_shallow): Use canonical_string_p.
3804 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3805 method.
3806
2c830f54
TT
38072020-09-29 Tom Tromey <tom@tromey.com>
3808
3809 * dwarf2/read.c (partial_die_info::read)
3810 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3811 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3812 attribute::as_string.
3813
6c412691
TT
38142020-09-29 Tom Tromey <tom@tromey.com>
3815
3816 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3817 DW_ADDR.
3818 (attribute::string): Don't use DW_STRING.
3819 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3820 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3821
95f982e5
TT
38222020-09-29 Tom Tromey <tom@tromey.com>
3823
3824 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3825 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3826 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3827 * dwarf2/attribute.h (struct attribute): Rename methods.
3828 * dwarf2/attribute.c (attribute::as_address): Rename from
3829 value_as_address.
3830 (attribute::as_string): Rename from value_as_string.
3831
f800b00e
TT
38322020-09-29 Tom Tromey <tom@tromey.com>
3833
3834 * dwarf2/read.c (partial_die_info::read) <case
3835 DW_AT_linkage_name>: Use value_as_string.
3836 (dwarf2_string_attr): Use value_as_string.
3837 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3838 method.
3839 * dwarf2/attribute.c (attribute::value_as_string): New method.
3840
de38d64a
PA
38412020-09-29 Pedro Alves <pedro@palves.net>
3842
3843 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3844 defined before using '#pragma GCC diagnostic' instead of checking
3845 __clang__.
3846
9aed480c
TT
38472020-09-28 Tom Tromey <tom@tromey.com>
3848
3849 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3850 (handle_signal_stop): Update.
3851 * procfs.c (procfs_target::insert_watchpoint): Update.
3852 * target.h (target_have_steppable_watchpoint): Now a function.
3853
8a3ecb79
TT
38542020-09-28 Tom Tromey <tom@tromey.com>
3855
3856 * infrun.c (set_schedlock_func): Update.
3857 * target.h (target_can_lock_scheduler): Now a function.
3858
55f6301a
TT
38592020-09-28 Tom Tromey <tom@tromey.com>
3860
3861 * inferior.h (class inferior) <has_execution>: Update.
3862 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3863 * valops.c (find_function_in_inferior)
3864 (value_allocate_space_in_inferior): Update.
3865 * top.c (kill_or_detach): Update.
3866 * target.c (target_preopen, set_target_permissions): Update.
3867 (target_has_execution_current): Remove.
3868 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3869 Update.
3870 * solib.c (update_solib_list, reload_shared_libraries): Update.
3871 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3872 * solib-dsbt.c (enable_break): Update.
3873 * score-tdep.c (score7_fetch_inst): Update.
3874 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3875 Update.
3876 * remote.c (remote_target::start_remote)
3877 (remote_target::remote_check_symbols, remote_target::open_1)
3878 (remote_target::remote_detach_1, remote_target::verify_memory)
3879 (remote_target::xfer_partial, remote_target::read_description)
3880 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3881 * record-full.c (record_full_open_1): Update.
3882 * record-btrace.c (record_btrace_target_open): Update.
3883 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3884 (value_nsstring): Update.
3885 * linux-thread-db.c (add_thread_db_info)
3886 (thread_db_find_new_threads_silently, check_thread_db_callback)
3887 (try_thread_db_load_1, record_thread): Update.
3888 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3889 Update.
3890 * linux-fork.c (checkpoint_command): Update.
3891 * infrun.c (set_non_stop, set_observer_mode)
3892 (check_multi_target_resumption, for_each_just_stopped_thread)
3893 (maybe_remove_breakpoints, normal_stop)
3894 (class infcall_suspend_state): Update.
3895 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3896 (info_program_command, attach_command): Update.
3897 * infcall.c (call_function_by_hand_dummy): Update.
3898 * inf-loop.c (inferior_event_handler): Update.
3899 * gcore.c (gcore_command, derive_heap_segment): Update.
3900 * exec.c (exec_file_command): Update.
3901 * eval.c (evaluate_subexp): Update.
3902 * compile/compile.c (compile_to_object): Update.
3903 * cli/cli-dump.c (restore_command): Update.
3904 * breakpoint.c (update_watchpoint)
3905 (update_inserted_breakpoint_locations)
3906 (insert_breakpoint_locations, get_bpstat_thread): Update.
3907 * target.h (target_has_execution): Remove macro.
3908 (target_has_execution_current): Don't declare.
3909 (target_has_execution): Rename from target_has_execution_1. Add
3910 argument default.
3911
05374cfd
TT
39122020-09-28 Tom Tromey <tom@tromey.com>
3913
3914 * mi/mi-main.c (exec_reverse_continue)
3915 (mi_cmd_list_target_features): Update.
3916 * infrun.c (set_exec_direction_func): Update.
3917 * target.c (default_execution_direction): Update.
3918 * reverse.c (exec_reverse_once): Update.
3919 * target.h (target_can_execute_reverse): Now a function.
3920
9dccd06e
TT
39212020-09-28 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-regs.c (tui_get_register)
3924 (tui_data_window::show_registers): Update.
3925 * thread.c (scoped_restore_current_thread::restore)
3926 (scoped_restore_current_thread::scoped_restore_current_thread):
3927 Update.
3928 * regcache-dump.c (regcache_print): Update.
3929 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3930 Update.
3931 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3932 * mep-tdep.c (current_me_module, current_options): Update.
3933 * linux-thread-db.c (thread_db_load): Update.
3934 * infcmd.c (registers_info, info_vector_command)
3935 (info_float_command): Update.
3936 * ia64-tdep.c (ia64_frame_prev_register)
3937 (ia64_sigtramp_frame_prev_register): Update.
3938 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3939 * gcore.c (derive_stack_segment): Update.
3940 * frame.c (get_current_frame, has_stack_frames): Update.
3941 * findvar.c (language_defn::read_var_value): Update.
3942 * arm-tdep.c (arm_pc_is_thumb): Update.
3943 * target.c (target_has_registers): Rename from
3944 target_has_registers_1.
3945 * target.h (target_has_registers): Remove macro.
3946 (target_has_registers): Rename from target_has_registers_1.
3947
841de120
TT
39482020-09-28 Tom Tromey <tom@tromey.com>
3949
3950 * windows-tdep.c (tlb_make_value): Update.
3951 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3952 * thread.c (scoped_restore_current_thread::restore)
3953 (scoped_restore_current_thread::scoped_restore_current_thread)
3954 (thread_command): Update.
3955 * stack.c (backtrace_command_1, frame_apply_level_command)
3956 (frame_apply_all_command, frame_apply_command): Update.
3957 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3958 Update.
3959 * gcore.c (derive_stack_segment): Update.
3960 * frame.c (get_current_frame, has_stack_frames): Update.
3961 * auxv.c (info_auxv_command): Update.
3962 * ada-tasks.c (ada_build_task_list): Update.
3963 * target.c (target_has_stack): Rename from target_has_stack_1.
3964 * target.h (target_has_stack): Remove macro.
3965 (target_has_stack): Rename from target_has_stack_1.
3966
a739972c
TT
39672020-09-28 Tom Tromey <tom@tromey.com>
3968
3969 * target.c (target_has_memory): Rename from target_has_memory_1.
3970 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3971 * thread.c (scoped_restore_current_thread::restore)
3972 (scoped_restore_current_thread::scoped_restore_current_thread):
3973 Update.
3974 * frame.c (get_current_frame, has_stack_frames): Update.
3975 * target.h (target_has_memory): Remove macro.
3976 (target_has_memory): Rename from target_has_memory_1.
3977
5b8a4776
TT
39782020-09-28 Tom Tromey <tom@tromey.com>
3979
3980 * target.c (target_has_all_memory_1): Remove.
3981 * target.h (target_has_all_memory): Remove define.
3982 (target_has_all_memory_1): Don't declare.
3983
bd356ec6
SM
39842020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 * ser-base.c: Adjust comments formatting.
3987
2c72d5e5
TT
39882020-09-27 Tom Tromey <tom@tromey.com>
3989
3990 PR tui/25342:
3991 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3992
35a98237
TT
39932020-09-27 Tom Tromey <tom@tromey.com>
3994
3995 PR tui/25342:
3996 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3997
9e820dec
TT
39982020-09-27 Tom Tromey <tom@tromey.com>
3999
4000 * unittests/tui-selftests.c: Update.
4001 * tui/tui-winsource.h (struct tui_source_window_base)
4002 <extra_margin, show_line_number, refresh_pad>: New methods.
4003 <m_max_length, m_pad>: New members.
4004 (tui_copy_source_line): Update.
4005 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4006 first_col, line_width, ndigits parameters. Add length.
4007 (tui_source_window_base::show_source_line): Write to pad. Line
4008 number now 0-based.
4009 (tui_source_window_base::refresh_pad): New method.
4010 (tui_source_window_base::show_source_content): Write to pad. Call
4011 refresh_pad.
4012 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4013 not refill.
4014 (tui_source_window_base::update_exec_info): Call
4015 show_line_number.
4016 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4017 method.
4018 <m_digits>: New member.
4019 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4020 and m_max_length.
4021 (tui_source_window::show_line_number): New method.
4022 * tui/tui-io.h (tui_puts): Fix comment.
4023 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4024 m_max_length.
4025
c15c15c8
TT
40262020-09-27 Tom Tromey <tom@tromey.com>
4027
4028 * tui/tui-winsource.c
4029 (tui_source_window_base::set_is_exec_point_at): Don't call
4030 show_source_line.
4031
149830c1
TT
40322020-09-27 Tom Tromey <tom@tromey.com>
4033
4034 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4035 method.
4036 <erase>: Update.
4037 <cursor_x, cursor_y>: Remove.
4038 <m_inner_window>: New member.
4039 (tui_py_window::rerender): Create inner window.
4040 (tui_py_window::output): Write to inner window.
4041
8f9929bb
GR
40422020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4043
4044 PR python/26586
4045 * cli/cli-script.c (execute_control_commands): don't set
4046 instream to nullptr here as this breaks the from_tty argument
4047 to gdb.execute in Python.
4048 (execute_user_command): set instream to nullptr here instead.
4049
956bdb59
SM
40502020-09-25 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * infrun.h (infrun_debug_printf): Fix formatting.
4053 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4054
3b93626b
SJ
40552020-09-25 Saagar Jha <saagar@saagarjha.com>
4056
4057 * compile/compile-object-load.h (struct munmap_list): Add
4058 explicitly-defined move constructor.
4059
b551a89f
TT
40602020-09-24 Tom Tromey <tromey@adacore.com>
4061
4062 PR tui/26638:
4063 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4064 method.
4065 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4066 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4067 (tui_prev_win): Rewrite.
4068
99bb393f
HD
40692020-09-23 Hannes Domani <ssbssa@yahoo.de>
4070
4071 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4072 in WOW64 processes as SIGINT.
4073 * nat/windows-nat.h: Make wow64_process a shared variable.
4074 * windows-nat.c: Remove static wow64_process variable.
4075
20a5fcbd
TT
40762020-09-23 Tom Tromey <tom@tromey.com>
4077
4078 PR symtab/25470:
4079 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4080 offset and bit size.
4081 * printcmd.c (print_scalar_formatted): Handle zero-length
4082 integer.
4083 (print_scalar_formatted): Use bit_size_differs_p.
4084 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4085 constant.
4086 (union type_specific): <int_stuff>: New member.
4087 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4088 methods.
4089 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4090 TYPE_SPECIFIC_FIELD.
4091 (recursive_dump_type, copy_type_recursive): Update.
4092 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4093 DW_AT_data_bit_offset.
4094
bac51ab7
TT
40952020-09-23 Tom Tromey <tom@tromey.com>
4096
4097 * utils.h (class gdb_argv): Add move operators.
4098 <append>: New methods.
4099 * compile/compile.c (build_argc_argv): Remove.
4100 (compile_args_argc): Remove.
4101 (compile_args_argv): Change type.
4102 (set_compile_args): Simplify.
4103 (append_args): Remove.
4104 (filter_args): Remove argcp parameter.
4105 (get_args): Return gdb_argv. Simplify.
4106 (compile_to_object): Update.
4107
92677124
TT
41082020-09-23 Tom Tromey <tom@tromey.com>
4109
4110 * compile/compile-object-run.c (do_module_cleanup)
4111 <~do_module_cleanup> :Remove.
4112 (do_module_cleanup): Update.
4113 * compile/compile-object-load.h (struct munmap_list): Add move
4114 assignment operator.
4115 <source_file>: Now a std::string.
4116 <munmap_list>: Rename. No longer a pointer.
4117 * compile/compile-object-load.c (struct setup_sections_data): Add
4118 constructor.
4119 <setup_one_section>: Declare.
4120 <munmap_list>: Move earlier.
4121 <m_bfd>: New member.
4122 <m_last_size, m_last_section_first, m_last_prot,
4123 m_last_max_alignment>: Rename, add initializers where needed.
4124 (setup_sections_data::setup_one_section): Rename from
4125 setup_sections. Update.
4126 (compile_object_load): Update. Don't use bfd_map_over_sections.
4127
e616f60a
TT
41282020-09-23 Tom Tromey <tom@tromey.com>
4129
4130 * compile/compile-object-run.c (struct do_module_cleanup): Add
4131 parameters to constructor. Update destructor.
4132 <source_file, scope, scope_data, out_value_type, out_value_addr,
4133 munmap_list_head, objfile_name_string>: Remove.
4134 <module>: New member.
4135 (do_module_cleanup): Update.
4136 (compile_object_run): Update.
4137
e947a848
TT
41382020-09-23 Tom Tromey <tom@tromey.com>
4139
4140 * compile/compile.c (eval_compile_command): Update.
4141 * compile/compile-object-run.h (compile_object_run): Take a
4142 compile_module_up.
4143 * compile/compile-object-run.c (compile_object_run): Take a
4144 compile_module_up.
4145 * compile/compile-object-load.h (struct compile_module): Add
4146 constructor, destructor.
4147 (compile_module_up): New typedef.
4148 (compile_object_load): Return compile_object_up.
4149 * compile/compile-object-load.c (compile_object_load): Return
4150 compile_module_up.
4151
0dbf6ee6
TT
41522020-09-23 Tom Tromey <tom@tromey.com>
4153
4154 * compile/compile-object-run.c (struct do_module_cleanup): Add
4155 constructor, destructor.
4156 <objfile_name_string>: Don't use struct hack.
4157 (do_module_cleanup): Use delete.
4158 (compile_object_run): Use new.
4159
ebe824f5
TT
41602020-09-23 Tom Tromey <tom@tromey.com>
4161
4162 * compile/compile-cplus-types.c
4163 (compile_cplus_convert_struct_or_union): Use std::vector.
4164 (compile_cplus_convert_func): Likewise.
4165 * compile/compile-c-types.c (convert_func): Use std::vector.
4166
5dd918d9
TT
41672020-09-21 Tom Tromey <tromey@adacore.com>
4168
4169 * sparc-tdep.c (sparc32_skip_prologue): Use
4170 skip_prologue_using_sal.
4171
5486c517
TT
41722020-09-19 Tom Tromey <tom@tromey.com>
4173
4174 * symfile.c (add_section_size_callback): Remove.
4175 (load_one_section): Rename from load_section_callback. Change
4176 parameters.
4177 (generic_load): Use foreach.
4178
8a6bb1d1
TT
41792020-09-19 Tom Tromey <tom@tromey.com>
4180
4181 * exec.c (add_to_section_table): Remove.
4182 (build_section_table): Use foreach.
4183
08f93a1a
TT
41842020-09-19 Tom Tromey <tom@tromey.com>
4185
4186 * elfread.c (elf_locate_sections): Change parameters.
4187 (elf_symfile_read): Use foreach.
4188
03cd72b8
TT
41892020-09-19 Tom Tromey <tom@tromey.com>
4190
4191 * cli/cli-dump.c (struct callback_data): Remove.
4192 (restore_one_section): Rename from restore_section_callback.
4193 Change parameters.
4194 (restore_binary_file): Change parameters.
4195 (restore_command): Use foreach.
4196
f4f2b85f
TT
41972020-09-19 Tom Tromey <tom@tromey.com>
4198
4199 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4200 (gcore_copy_callback): Likewise.
4201 (gcore_memory_sections): Use foreach.
4202
b35c1d1c
TT
42032020-09-19 Tom Tromey <tom@tromey.com>
4204
4205 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4206 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4207 parameters.
4208 (generic_elf_osabi_sniffer): Use foreach.
4209 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4210 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4211
5bb6e9dd
TT
42122020-09-19 Tom Tromey <tom@tromey.com>
4213
4214 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4215 (dwarf2_get_dwz_file): Use foreach.
4216 (dwarf2_locate_dwo_sections): Change parameters.
4217 (open_and_init_dwo_file): Use foreach.
4218 (dwarf2_locate_common_dwp_sections): Change parameters.
4219 (open_and_init_dwp_file): Use foreach.
4220
ad7277da
TT
42212020-09-19 Tom Tromey <tom@tromey.com>
4222
4223 * symfile.h: (find_lowest_section): Don't declare.
4224 * symfile.c (find_lowest_section): Now static. Change
4225 parameters.
4226 (struct place_section_arg): Remove.
4227 (place_section): Change parameters.
4228 (addr_info_make_relative): Use foreach.
4229 (symfile_dummy_outputs): Remove.
4230 (default_symfile_relocate): Use foreach.
4231
cb814f2e
TT
42322020-09-19 Tom Tromey <tom@tromey.com>
4233
4234 * objfiles.c (add_to_objfile_sections): Rename from
4235 add_to_objfile_sections_full.
4236 (add_to_objfile_sections): Remove.
4237 (build_objfile_section_table): Use foreach.
4238
3cabfd26
TT
42392020-09-19 Tom Tromey <tom@tromey.com>
4240
4241 * stap-probe.c (get_stap_base_address_1): Remove.
4242 (get_stap_base_address): Use foreach.
4243
1ce51eb5
TT
42442020-09-19 Tom Tromey <tom@tromey.com>
4245
4246 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4247 parameters.
4248 (gdb_bfd_close_or_warn): Use foreach.
4249
a190fabb
TT
42502020-09-19 Tom Tromey <tom@tromey.com>
4251
4252 * corelow.c (add_to_thread_list): Change parameters.
4253 (core_target_open): Use foreach.
4254
cafb0d81
TT
42552020-09-19 Tom Tromey <tom@tromey.com>
4256
4257 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4258 existing function.
4259
c8d5abea
AB
42602020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4263 for arrays.
4264
6d816919
AB
42652020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * eval.c: Remove 'f-lang.h' include.
4268 (value_f90_subarray): Moved to f-lang.c.
4269 (eval_call): Renamed to...
4270 (evaluate_subexp_do_call): ...this, is no longer static, header
4271 comment moved into header file.
4272 (evaluate_funcall): Update call to eval_call.
4273 (skip_undetermined_arglist): Moved to f-lang.c.
4274 (fortran_value_subarray): Likewise.
4275 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4276 moved to evaluate_subexp_f.
4277 (calc_f77_array_dims): Moved to f-lang.c
4278 * expprint.c (print_subexp_funcall): New function.
4279 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4280 moved to print_subexp_f, OP_FUNCALL uses new function.
4281 (dump_subexp_body_funcall): New function.
4282 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4283 moved to dump_subexp_f, OP_FUNCALL uses new function.
4284 * expression.h (evaluate_subexp_do_call): Declare.
4285 * f-lang.c (value_f90_subarray): Moved from eval.c.
4286 (skip_undetermined_arglist): Likewise.
4287 (calc_f77_array_dims): Likewise.
4288 (fortran_value_subarray): Likewise.
4289 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4290 (operator_length_f): Likewise.
4291 (print_subexp_f): Likewise.
4292 (dump_subexp_body_f): Likewise.
4293 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4294 declaration of this operation to here.
4295 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4296 support moved to operator_length_f.
4297 * parser-defs.h (dump_subexp_body_funcall): Declare.
4298 (print_subexp_funcall): Declare.
4299 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4300 fortran-operator.def.
4301
8c37706a
AB
43022020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4303
4304 * eval.c (fortran_value_subarray): New function, content is taken
4305 from...
4306 (evaluate_subexp_standard): ...here, in two places. Now arrays
4307 and strings both call the new function.
4308 (calc_f77_array_dims): Add header comment, handle strings.
4309
14f9473c
VC
43102020-09-18 Victor Collod <vcollod@nvidia.com>
4311
4312 PR gdb/26635
4313 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4314 (i386_analyze_prologue): Call i386_skip_endbr.
4315
b60cea74
TT
43162020-09-18 Tom Tromey <tromey@adacore.com>
4317
4318 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4319 (windows_nat_target::wait): Update.
4320 * target/wait.h (enum target_wait_flag): New. Use
4321 DEF_ENUM_FLAGS_TYPE.
4322 * target/target.h (target_wait): Change type of options.
4323 * target.h (target_options_to_string, default_target_wait):
4324 Update.
4325 (struct target_ops) <wait>: Change type of options.
4326 * target.c (target_wait, default_target_wait, do_option): Change
4327 type of "options".
4328 (target_options_to_string): Likewise.
4329 * target-delegates.c: Rebuild.
4330 * target-debug.h (target_debug_print_target_wait_flags): Rename
4331 from target_debug_print_options.
4332 * sol-thread.c (class sol_thread_target) <wait>: Update.
4333 (sol_thread_target::wait): Update.
4334 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4335 (rs6000_nat_target::wait): Update.
4336 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4337 Update.
4338 (remote_target::wait_ns, remote_target::wait_as): Change type of
4339 "options".
4340 (remote_target::wait): Update.
4341 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4342 (gdbsim_target::wait): Update.
4343 * record-full.c (class record_full_base_target) <wait>: Update.
4344 (record_full_wait_1): Change type of "options".
4345 (record_full_base_target::wait): Update.
4346 * record-btrace.c (class record_btrace_target) <wait>: Update.
4347 (record_btrace_target::wait): Update.
4348 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4349 Update.
4350 (ravenscar_thread_target::wait): Update.
4351 * procfs.c (class procfs_target) <wait>: Update.
4352 (procfs_target::wait): Update.
4353 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4354 * obsd-nat.c (obsd_nat_target::wait): Update.
4355 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4356 (nto_procfs_target::wait): Update.
4357 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4358 * nbsd-nat.c (nbsd_wait): Change type of "options".
4359 (nbsd_nat_target::wait): Update.
4360 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4361 (thread_db_target::wait): Update.
4362 * linux-nat.h (class linux_nat_target) <wait>: Update.
4363 * linux-nat.c (linux_nat_target::wait): Update.
4364 (linux_nat_wait_1): Update.
4365 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4366 "options".
4367 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4368 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4369 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4370 (go32_nat_target::wait): Update.
4371 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4372 * gnu-nat.c (gnu_nat_target::wait): Update.
4373 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4374 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4375 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4376 * darwin-nat.c (darwin_nat_target::wait): Update.
4377 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4378 (bsd_uthread_target::wait): Update.
4379 * aix-thread.c (class aix_thread_target) <wait>: Update.
4380 (aix_thread_target::wait): Update.
4381
0295dde6
AB
43822020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4383
4384 * compile/compile-object-run.c (create_copied_type_recursive): New
4385 function.
4386 (compile_object_run): Use new function.
4387
d3483b43
JT
43882020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4389
4390 * NEWS: Mention x86_64 Cygwin core file support.
4391
e7d612ad
JT
43922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4393
4394 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4395 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4396
aff9d387
JT
43972020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4398
62a5151b
JT
4399 * windows-tdep.h: Add prototypes.
4400 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4401 (i386_windows_core_pid_to_str): Move and rename ...
4402 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4403 (windows_core_pid_to_str): ... and here.
4404 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4405
44062020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4407 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4408 (amd64_windows_init_abi_common): ... and register.
4409
7d155da3
JT
44102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4411
4412 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4413 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4414
e8ef12b9
PA
44152020-09-18 Pedro Alves <pedro@palves.net>
4416
4417 PR gdb/26631
4418 * thread.c (thread_find_command): Switch inferior before calling
4419 target methods.
4420
c1e1314d
TT
44212020-09-17 Tom Tromey <tromey@adacore.com>
4422
4423 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4424 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4425 (tdesc_arch_data_up): New typedef.
4426 (tdesc_use_registers, tdesc_data_alloc): Update.
4427 (tdesc_data_cleanup): Don't declare.
4428 * target-descriptions.c (tdesc_data_alloc): Return a
4429 tdesc_arch_data_up.
4430 (tdesc_arch_data_deleter::operator()): Rename from
4431 tdesc_data_cleanup. Change argument type.
4432 (tdesc_use_registers): Change early_data to an rvalue reference.
4433 (tdesc_use_registers): Don't use delete.
4434 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4435 * s390-tdep.c (s390_gdbarch_init): Update.
4436 * rx-tdep.c (rx_gdbarch_init): Update.
4437 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4438 * riscv-tdep.c (riscv_gdbarch_init): Update.
4439 * or1k-tdep.c (or1k_gdbarch_init): Update.
4440 * nios2-tdep.c (nios2_gdbarch_init): Update.
4441 * nds32-tdep.c (nds32_gdbarch_init): Update.
4442 * mips-tdep.c (mips_gdbarch_init): Update.
4443 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4444 * m68k-tdep.c (m68k_gdbarch_init): Update.
4445 * i386-tdep.c (i386_gdbarch_init): Update.
4446 * arm-tdep.c (arm_gdbarch_init): Update.
4447 * arc-tdep.c (arc_tdesc_init): Update.
4448 (arc_gdbarch_init): Update.
4449 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4450
0363df3d
HD
44512020-09-17 Hannes Domani <ssbssa@yahoo.de>
4452
4453 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4454 for WOW64 processes.
4455
280a9412
TT
44562020-09-17 Tom Tromey <tom@tromey.com>
4457
4458 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4459
6108fd18
TT
44602020-09-17 Tom Tromey <tom@tromey.com>
4461
4462 * value.c (preserve_values): Update.
4463 * python/py-type.c (save_objfile_types): Update.
4464 * guile/scm-type.c (save_objfile_types): Update.
4465 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4466 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4467 * compile/compile-object-run.c (compile_object_run): Update.
4468
fa9b1164
TT
44692020-09-17 Tom Tromey <tom@tromey.com>
4470
4471 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4472 Remove.
4473 <m_table>: Now htab_up.
4474 * typeprint.c (typedef_hash_table::recursively_update)
4475 (typedef_hash_table::add_template_parameters)
4476 (typedef_hash_table::typedef_hash_table): Update.
4477 (typedef_hash_table::~typedef_hash_table): Remove.
4478 (typedef_hash_table::typedef_hash_table)
4479 (typedef_hash_table::find_global_typedef)
4480 (typedef_hash_table::find_typedef): Update.
4481
eb53f105
TT
44822020-09-17 Tom Tromey <tom@tromey.com>
4483
4484 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4485
7a8a5d47
TT
44862020-09-17 Tom Tromey <tom@tromey.com>
4487
4488 * linespec.c (class decode_compound_collector)
4489 <~decode_compound_collector>: Remove.
4490 <m_unique_syms>: Now htab_up.
4491 (decode_compound_collector::operator ()): Update.
4492 (class symtab_collector) <~symtab_collector>: Remove.
4493 <m_symtab_table>: Now htab_up.
4494 (symtab_collector::operator ()): Update.
4495
99032cfc
TT
44962020-09-17 Tom Tromey <tom@tromey.com>
4497
4498 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4499 (filename_seen_cache::clear): Update.
4500 (~filename_seen_cache): Remove.
4501 (filename_seen_cache::seen): Update.
4502 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4503 htab_up.
4504 <~filename_seen_cache>: Remove.
4505 <traverse>: Update.
4506
32580f6d
TT
45072020-09-17 Tom Tromey <tom@tromey.com>
4508
4509 * completer.c (completion_tracker::discard_completions)
4510 (completion_tracker::~completion_tracker)
4511 (completion_tracker::maybe_add_completion)
4512 (completion_tracker::remove_completion)
4513 (completion_tracker::recompute_lowest_common_denominator)
4514 (completion_tracker::build_completion_result): Update.
4515 * completer.h (class completion_tracker) <have_completions>:
4516 Update.
4517 <m_entries_hash>: Now htab_up.
4518
c1fb9836
TT
45192020-09-17 Tom Tromey <tom@tromey.com>
4520
4521 * breakpoint.c (ambiguous_names_p): Use htab_up.
4522
88f07206
TT
45232020-09-17 Tom Tromey <tom@tromey.com>
4524
4525 * auto-load.c (struct auto_load_pspace_info)
4526 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4527 <loaded_script_files, loaded_script_texts>: Change type to
4528 htab_up.
4529 (~auto_load_pspace_info) Remove.
4530 (init_loaded_scripts_info, maybe_add_script_file)
4531 (maybe_add_script_text, auto_load_info_scripts): Update.
4532
9519b2ee
TT
45332020-09-17 Tom Tromey <tromey@adacore.com>
4534
4535 * c-exp.y (name_obstack): Now static.
4536
d2cd4113
CC
45372020-09-17 Chungyi Chi <demonic@csie.io>
4538
4539 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4540
b650a282
SM
45412020-09-16 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4544 (add_solib_catchpoint): Likewise.
4545 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4546 to bool.
4547 (add_solib_catchpoint): Change int parameter/variable to bool.
4548 (catch_load_or_unload): Likewise.
4549 (init_catchpoint): Likewise.
4550 (create_fork_vfork_event_catchpoint): Likewise.
4551 (catch_fork_command_1): Likewise.
4552 (catch_exec_command_1): Likewise.
4553
4d0bcfcf
SM
45542020-09-16 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4557 Change instance_flags to m_instance_flags.
4558
fe830662
TT
45592020-09-16 Tom Tromey <tromey@adacore.com>
4560
4561 PR gdb/26598:
4562 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4563
fe5ddfc3
JB
45642020-09-16 John Baldwin <jhb@FreeBSD.org>
4565
4566 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4567 PL_FLAG_EXEC.
4568 (fbsd_nat_target::insert_exec_catchpoint)
4569 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4570 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4571 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4572
e911c666
JB
45732020-09-16 John Baldwin <jhb@FreeBSD.org>
4574
4575 * configure.ac: Remove check for kinfo_getvmmap().
4576 * configure, config.in: Regenerate.
4577 * fbsd-nat.c (fbsd_read_mapping): Remove
4578 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4579 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4580 kinfo_get_vmmap() are always present.
4581
1f17d372
JB
45822020-09-16 John Baldwin <jhb@FreeBSD.org>
4583
4584 * fbsd-nat.c: Always include support for
4585 TARGET_OBJECT_SIGNAL_INFO.
4586
bcb1da7f
JB
45872020-09-16 John Baldwin <jhb@FreeBSD.org>
4588
4589 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4590 sysctl and remove procfs fallback.
4591
5515f729
JB
45922020-09-16 John Baldwin <jhb@FreeBSD.org>
4593
4594 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4595 * fbsd-nat.h: Likewise.
4596
da1df1db
TBA
45972020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4598
4599 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4600 argument.
4601
0e25e767
AB
46022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_language_data): Delete.
4605 (ada_language): Remove references to ada_language_data.
4606 * c-lang.c (c_language_data): Delete.
4607 (c_language): Remove references to c_language_data.
4608 (cplus_language_data): Delete.
4609 (cplus_language): Remove references to cplus_language_data.
4610 (asm_language_data): Delete.
4611 (asm_language): Remove references to asm_language_data.
4612 (minimal_language_data): Delete.
4613 (minimal_language): Remove references to minimal_language_data.
4614 * d-lang.c (d_language_data): Delete.
4615 (d_language): Remove references to d_language_data.
4616 * f-lang.c (f_language_data): Delete.
4617 (f_language): Remove references to f_language_data.
4618 * go-lang.c (go_language_data): Delete.
4619 (go_language): Remove references to go_language_data.
4620 * language.c (unknown_language_data): Delete.
4621 (unknown_language): Remove references to unknown_language_data.
4622 (auto_language_data): Delete.
4623 (auto_language): Remove references to auto_language_data.
4624 * language.h (language_data): Delete struct.
4625 (language_defn): No longer inherit from language_data.
4626 * m2-lang.c (m2_language_data): Delete.
4627 (m2_language): Remove references to m2_language_data.
4628 * objc-lang.c (objc_language_data): Delete.
4629 (objc_language): Remove references to objc_language_data.
4630 * opencl-lang.c (opencl_language_data): Delete.
4631 (opencl_language): Remove references to opencl_language_data.
4632 * p-lang.c (pascal_language_data): Delete.
4633 (pascal_language): Remove references to pascal_language_data.
4634 * rust-lang.c (rust_language_data): Delete.
4635 (rust_language): Remove references to rust_language_data.
4636
b7c6e27d
AB
46372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4640 initializer.
4641 (ada_language::opcode_print_table): New member function.
4642 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4643 (c_language::opcode_print_table): New member function.
4644 (cplus_language_data): Remove la_op_print_tab initializer.
4645 (cplus_language::opcode_print_table): New member function.
4646 (asm_language_data): Remove la_op_print_tab initializer.
4647 (asm_language::opcode_print_table): New member function.
4648 (minimal_language_data): Remove la_op_print_tab initializer.
4649 (minimal_language::opcode_print_table): New member function.
4650 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4651 (d_language::opcode_print_table): New member function.
4652 * expprint.c (print_subexp_standard): Update call to
4653 opcode_print_table.
4654 (op_string): Likewise.
4655 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4656 (f_language::opcode_print_table): New member function.
4657 * go-lang.c (go_language_data): Remove la_op_print_tab
4658 initializer.
4659 (go_language::opcode_print_table): New member function.
4660 * language.c (unknown_language_data): Remove la_op_print_tab
4661 initializer.
4662 (unknown_language::opcode_print_table): New member function.
4663 (auto_language_data): Remove la_op_print_tab initializer.
4664 (auto_language::opcode_print_table): New member function.
4665 * language.h (language_data): Remove la_op_print_tab field.
4666 (language_defn::opcode_print_table): Declare new member function.
4667 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4668 initializer.
4669 (m2_language::opcode_print_table): New member function.
4670 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4671 initializer.
4672 (objc_language::opcode_print_table): New member function.
4673 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4674 initializer.
4675 (opencl_language::opcode_print_table): New member function.
4676 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4677 initializer.
4678 (pascal_language::opcode_print_table): New member function.
4679 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4680 initializer.
4681 (rust_language::opcode_print_table): New member function.
4682
5aba6ebe
AB
46832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4686 (ada_language::expression_ops): New member function.
4687 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4688 (c_language::expression_ops): New member function.
4689 (cplus_language_data): Remove la_exp_desc initializer.
4690 (cplus_language::expression_ops): New member function.
4691 (asm_language_data): Remove la_exp_desc initializer.
4692 (asm_language::expression_ops): New member function.
4693 (minimal_language_data): Remove la_exp_desc initializer.
4694 (minimal_language::expression_ops): New member function.
4695 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4696 (d_language::expression_ops): New member function.
4697 * eval.c (evaluate_subexp): Update call to expression_ops.
4698 * expprint.c (print_subexp): Likewise.
4699 (op_name): Likewise.
4700 (dump_subexp_body): Likewise.
4701 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4702 (f_language::expression_ops): New member function.
4703 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4704 (go_language::expression_ops): New member function.
4705 * language.c (language_defn::expression_ops): New function.
4706 (unknown_language_data): Remove la_exp_desc initializer.
4707 (auto_language_data): Likewise.
4708 * language.h (language_data): Remove la_exp_desc field.
4709 (language_defn::expression_ops): Declare new member function.
4710 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4711 (m2_language::expression_ops): New member function.
4712 * objc-lang.c (objc_language_data): Remove la_exp_desc
4713 initializer.
4714 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4715 initializer.
4716 (opencl_language::expression_ops): New member function.
4717 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4718 * parse.c (operator_length): Update call to expression_ops.
4719 (exp_iterate): Likewise.
4720 * rust-lang.c (rust_language_data): Remove la_exp_desc
4721 initializer.
4722 (ruse_language::expression_ops): New member function.
4723
b63a3f3f
AB
47242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4725
4726 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4727 initializer.
4728 (ada_language::varobj_ops): New member function.
4729 * c-lang.c (c_language_data): Remove la_varobj_ops
4730 initializer.
4731 (cplus_language_data): Likewise.
4732 (cplus_language::varobj_ops): New member function.
4733 (asm_language_data): Remove la_varobj_ops initializer.
4734 (minimal_language_data): Likewise.
4735 * d-lang.c (d_language_data): Likewise.
4736 * f-lang.c (f_language_data): Likewise.
4737 * go-lang.c (go_language_data): Likewise.
4738 * language.c (language_defn::varobj_ops): New function.
4739 (unknown_language_data): Remove la_varobj_ops
4740 initializer.
4741 (auto_language_data): Likewise.
4742 * language.h (language_data): Remove la_varobj_ops field.
4743 (language_defn::varobj_ops): Declare new member function.
4744 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4745 * objc-lang.c (objc_language_data): Likewise.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 * rust-lang.c (rust_language_data): Likewise.
4749 * varobj.c (varobj_create): Update call to varobj_ops.
4750 * varobj.h (default_varobj_ops): Delete define.
4751
1ac14a04
AB
47522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4753
4754 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4755 initializer.
4756 * c-lang.c (c_language_data): Likewise.
4757 (c_language::macro_expansion): New member function.
4758 (cplus_language_data): Likewise.
4759 (cplus_language::macro_expansion): New member function.
4760 (asm_language_data): Likewise.
4761 (asm_language::macro_expansion): New member function.
4762 (minimal_language_data): Likewise.
4763 (minimal_language::macro_expansion): New member function.
4764 * d-lang.c (d_language_data): Remove la_macro_expansion
4765 initializer.
4766 * f-lang.c (f_language_data): Likewise.
4767 * go-lang.c (go_language_data): Likewise.
4768 * language.c (unknown_language_data): Likewise.
4769 (auto_language_data): Likewise.
4770 * language.h (language_data): Remove la_macro_expansion field.
4771 (language_defn::macro_expansion): New member function.
4772 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4773 initializer.
4774 * objc-lang.c (objc_language_data): Likewise.
4775 (objc_language::macro_expansion): New member function.
4776 * opencl-lang.c (opencl_language_data): Likewise.
4777 (opencl_language::macro_expansion): New member function.
4778 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4779 initializer.
4780 * rust-lang.c (rust_language_data): Likewise.
4781 * symtab.c (default_collect_symbol_completion_matches_break_on):
4782 Update call to macro_expansion.
4783
3a3440fb
AB
47842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * ada-lang.c (ada_language_data): Remove la_array_ordering
4787 initializer.
4788 * c-lang.c (c_language_data): Likewise.
4789 (cplus_language_data): Likewise.
4790 (asm_language_data): Likewise.
4791 (minimal_language_data): Likewise.
4792 * d-lang.c (d_language_data): Likewise.
4793 * dwarf2/read.c (read_array_order): Update for call to
4794 array_ordering.
4795 * f-lang.c (f_language_data): Remove la_array_ordering
4796 initializer.
4797 (f_language::array_ordering): New member function.
4798 * go-lang.c (go_language_data): Remove la_array_ordering
4799 initializer.
4800 * language.c (unknown_language_data): Likewise.
4801 (auto_language_data): Likewise.
4802 * language.h (language_data): Delete la_array_ordering field.
4803 (language_defn::array_ordering): New member function.
4804 * m2-lang.c (m2_language_data): Remove la_array_ordering
4805 initializer.
4806 * objc-lang.c (objc_language_data): Likewise.
4807 * opencl-lang.c (opencl_language_data): Likewise.
4808 * p-lang.c (pascal_language_data): Likewise.
4809 * rust-lang.c (rust_language_data): Likewise.
4810
0d201fa4
AB
48112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4812
4813 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4814 initializer.
4815 * c-lang.c (c_language_data): Likewise.
4816 (cplus_language_data): Likewise.
4817 (asm_language_data): Likewise.
4818 (minimal_language_data): Likewise.
4819 * d-lang.c (d_language_data): Likewise.
4820 * f-lang.c (f_language_data): Likewise.
4821 (f_language::case_sensitivity): New member function.
4822 * go-lang.c (go_language_data): Remove la_case_sensitivity
4823 initializer.
4824 * language.c (enum case_mode): Moved here from language.h.
4825 (case_mode): Make static.
4826 (show_case_command): Update for case_sensitivity being a method.
4827 (set_case_command): Likewise.
4828 (set_range_case): Likewise.
4829 (unknown_language_data): Remove la_case_sensitivity initializer.
4830 (auto_language_data): Likewise.
4831 * language.h (case_mode): Delete, move enum declaration to
4832 language.c.
4833 (language_data): Delete la_case_sensitivity field.
4834 (language_defn::case_sensitivity): New member function.
4835 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4836 initializer.
4837 * objc-lang.c (objc_language_data): Likewise.
4838 * opencl-lang.c (opencl_language_data): Likewise.
4839 * p-lang.c (pascal_language_data): Likewise.
4840 * rust-lang.c (rust_language_data): Likewise.
4841
efdf6a73
AB
48422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 * ada-lang.c (ada_language_data): Remove la_range_check
4845 initializer.
4846 * c-lang.c (c_language_data): Likewise.
4847 (cplus_language_data): Likewise.
4848 (asm_language_data): Likewise.
4849 (minimal_language_data): Likewise.
4850 * d-lang.c (d_language_data): Likewise.
4851 * f-lang.c (f_language_data): Likewise.
4852 (f_language::range_checking_on_by_default): New member function.
4853 * go-lang.c (go_language_data): Remove la_range_check initializer.
4854 * language.c (enum range_mode): Moved here from language.h.
4855 (range_mode): Made static.
4856 (show_range_command): Update to use
4857 range_checking_on_by_default.
4858 (set_range_command): Likewise.
4859 (set_range_case): Likewise.
4860 (unknown_language_data): Remove la_range_check initializer.
4861 (auto_language_data): Likewise.
4862 * language.h (range_mode): Delete. Enum definition moved to
4863 language.c.
4864 (language_data): Remove la_range_check field.
4865 (language_defn::range_checking_on_by_default): New member
4866 function.
4867 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4868 (m2_language::range_checking_on_by_default): New member function.
4869 * objc-lang.c (objc_language_data): Remove la_range_check
4870 initializer.
4871 * opencl-lang.c (opencl_language_data): Likewise.
4872 * p-lang.c (pascal_language_data): Likewise.
4873 (pascal_language::range_checking_on_by_default): New member
4874 function.
4875 * rust-lang.c (rust_language_data): Remove la_range_check
4876 initializer.
4877 (rust_language::range_checking_on_by_default): New member
4878 function.
4879
bf92aec5
AB
48802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * dwarf2/read.c (dwarf2_physname): Remove special case for
4883 language_go.
4884 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4885 member function.
4886
d3355e4d
AB
48872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (ada_language_data): Remove
4890 la_store_sym_names_in_linkage_form_p initializer.
4891 (ada_language::store_sym_names_in_linkage_form_p): New member
4892 function.
4893 * c-lang.c (c_language_data): Remove
4894 la_store_sym_names_in_linkage_form_p initializer.
4895 (c_language::store_sym_names_in_linkage_form_p): New member
4896 function.
4897 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4898 initializer.
4899 (asm_language_data): Likewise.
4900 (asm_language::store_sym_names_in_linkage_form_p): New member
4901 function.
4902 (minimal_language_data): Remove
4903 la_store_sym_names_in_linkage_form_p initializer.
4904 (minimal_language::store_sym_names_in_linkage_form_p): New member
4905 function.
4906 * d-lang.c (d_language_data): Remove
4907 la_store_sym_names_in_linkage_form_p initializer.
4908 * dwarf2/read.c (dwarf2_physname): Update call to
4909 store_sym_names_in_linkage_form_p.
4910 * f-lang.c (f_language_data): Remove
4911 la_store_sym_names_in_linkage_form_p initializer.
4912 * go-lang.c (go_language_data): Remove
4913 la_store_sym_names_in_linkage_form_p initializer.
4914 * language.c (unknown_language_data): Remove
4915 la_store_sym_names_in_linkage_form_p initializer.
4916 (unknown_language::store_sym_names_in_linkage_form_p): New member
4917 function.
4918 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4919 initializer.
4920 (auto_language::store_sym_names_in_linkage_form_p): New member
4921 function.
4922 * language.h (language_data): Remove
4923 la_store_sym_names_in_linkage_form_p member variable.
4924 (language_defn::store_sym_names_in_linkage_form_p): New member
4925 function.
4926 * m2-lang.c (m2_language_data): Remove
4927 la_store_sym_names_in_linkage_form_p initializer.
4928 * objc-lang.c (objc_language_data): Likewise.
4929 * opencl-lang.c (opencl_language_data): Likewise.
4930 * p-lang.c (pascal_language_data): Likewise.
4931 * rust-lang.c (rust_language_data): Likewise.
4932
22c12a6c
AB
49332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * ada-lang.c (ada_language_data): Remove string_lower_bound
4936 initializer.
4937 * c-lang.c (c_language_data): Likewise.
4938 (cplus_language_data): Likewise.
4939 (asm_language_data): Likewise.
4940 (minimal_language_data): Likewise.
4941 * d-lang.c (d_language_data): Likewise.
4942 * f-lang.c (f_language_data): Likewise.
4943 * go-lang.c (go_language_data): Likewise.
4944 * language.c (unknown_language_data): Likewise.
4945 (auto_language_data): Likewise.
4946 * language.h (language_data): Remove string_lower_bound field.
4947 (language_defn::string_lower_bound): New member function.
4948 * m2-lang.c (m2_language_data): Remove string_lower_bound
4949 initializer.
4950 (m2_language::string_lower_bound): New member function.
4951 * objc-lang.c (objc_language_data): Remove string_lower_bound
4952 initializer.
4953 * opencl-lang.c (opencl_language_data): Likewise.
4954 * p-lang.c (pascal_language_data): Likewise.
4955 * rust-lang.c (rust_language_data): Likewise.
4956 * valops.c (value_cstring): Update call to string_lower_bound.
4957 (value_string): Likewise.
4958 * value.c (allocate_repeated_value): Likewise.
4959
1c236ddd
AB
49602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4961
4962 * valops.c (value_repeat): Fix incorrect argument name in comment.
4963
67bd3fd5
AB
49642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * ada-lang.c (ada_language_data): Remove c_style_arrays
4967 initializer.
4968 (ada_language::c_style_arrays_p): New member fuction.
4969 * c-lang.c (c_language_data): Remove c_style_arrays
4970 initializer.
4971 (cplus_language_data): Likewise.
4972 (asm_language_data): Likewise.
4973 (minimal_language_data): Likewise.
4974 * d-lang.c (d_language_data): Likewise.
4975 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4976 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4977 (f_language::c_style_arrays_p): New member function.
4978 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4979 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4980 * language.c (unknown_language_data): Remove c_style_arrays
4981 initializer.
4982 (auto_language_data): Likewise.
4983 * language.h (language_data): Remove c_style_arrays field.
4984 (language_defn::c_style_arrays_p): New member function.
4985 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4986 (m2_language::c_style_arrays_p): New member function.
4987 * objc-lang.c (objc_language_data): Remove c_style_arrays
4988 initializer.
4989 * opencl-lang.c (opencl_language_data): Likewise.
4990 * p-lang.c (pascal_language_data): Likewise.
4991 * rust-lang.c (rust_language_data): Likewise.
4992 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4993 and update local variable to a bool.
4994 * valops.c (value_cast): Update call to c_style_arrays_p.
4995 (value_array): Likewise.
4996 * value.c (coerce_array): Likewise.
4997
85967615
AB
49982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * ada-lang.c (ada_language_data): Remove la_language initializer.
5001 * c-lang.c (c_language_data): Likewise.
5002 (cplus_language_data): Likewise.
5003 (asm_language_data): Likewise.
5004 (minimal_language_data): Likewise.
5005 * d-lang.c (d_language_data): Likewise.
5006 * f-lang.c (f_language_data): Likewise.
5007 * go-lang.c (go_language_data): Likewise.
5008 * language.c (unknown_language_data): Likewise.
5009 (auto_language_data): Likewise.
5010 * language.h (language_data): Remove la_language field.
5011 (language_defn::language_defn): Initialise la_language field.
5012 (language_defn::la_language): New member variable.
5013 * m2-lang.c (m2_language_data): Remove la_language field.
5014 * objc-lang.c (objc_language_data): Likewise.
5015 * opencl-lang.c (opencl_language_data): Likewise.
5016 * p-lang.c (pascal_language_data): Likewise.
5017 * rust-lang.c (rust_language_data): Likewise.
5018
e171d6f1
AB
50192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * ada-lang.c (ada_extensions): Delete, moved into
5022 ada_language::filename_extensions.
5023 (ada_language_data): Remove la_filename_extensions initializer.
5024 (ada_language::filename_extensions): New member function.
5025 * c-lang.c (c_extensions): Delete, moved into
5026 c_language::filename_extensions.
5027 (c_language_data): Remove la_filename_extensions initializer.
5028 (c_language::filename_extensions): New member function.
5029 (cplus_extensions): Delete, moved into
5030 cplus_language::filename_extensions.
5031 (cplus_language_data): Remove la_filename_extensions initializer.
5032 (cplus_language::filename_extensions): New member function.
5033 (asm_extensions): Delete, moved into
5034 asm_language::filename_extensions.
5035 (asm_language_data): Remove la_filename_extensions initializer.
5036 (asm_language::filename_extensions): New member function.
5037 (minimal_language_data): Remove la_filename_extensions
5038 initializer.
5039 * d-lang.c (d_extensions): Delete, moved into
5040 d_language::filename_extensions.
5041 (d_language_data): Remove la_filename_extensions initializer.
5042 (d_language::filename_extensions): New member function.
5043 * f-lang.c (f_extensions): Delete, moved into
5044 f_language::filename_extensions.
5045 (f_language_data): Remove la_filename_extensions initializer.
5046 (f_language::filename_extensions): New member function.
5047 * go-lang.c (go_language_data): Remove la_filename_extensions
5048 initializer.
5049 * language.c (add_set_language_command): Update now that
5050 filename_extensions returns a vector.
5051 (unknown_language_data): Remove la_filename_extensions
5052 initializer.
5053 (auto_language_data): Likewise.
5054 * language.h (language_data): Remove la_filename_extensions field.
5055 (language_defn::filename_extensions): New member function.
5056 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5057 initializer.
5058 * objc-lang.c (objc_extensions): Delete, moved into
5059 objc_language::filename_extensions.
5060 (objc_language_data): Remove la_filename_extensions initializer.
5061 (objc_language::filename_extensions): New member function.
5062 * opencl-lang.c (opencl_language_data): Remove
5063 la_filename_extensions initializer.
5064 * p-lang.c (pascal_extensions): Delete, moved into
5065 pascal_language::filename_extensions.
5066 (pascal_language_data): Remove la_filename_extensions initializer.
5067 (pascal_language::filename_extensions): New member function.
5068 * rust-lang.c (rust_extensions): Delete, moved into
5069 rust_language::filename_extensions.
5070 (rust_language_data): Remove la_filename_extensions initializer.
5071 (rust_language::filename_extensions): New member function.
5072 * symfile.c (add_filename_language): Add new assert.
5073
6f7664a9
AB
50742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * ada-lang.c (ada_language_data): Remove la_name and
5077 la_natural_name initializers.
5078 (ada_language::name): New member function.
5079 (ada_language::natural_name): New member function.
5080 * c-lang.c (c_language_data): Remove la_name and
5081 la_natural_name initializers.
5082 (c_language::name): New member function.
5083 (c_language::natural_name): New member function.
5084 (cplus_language_data): Remove la_name and
5085 la_natural_name initializers.
5086 (cplus_language::name): New member function.
5087 (cplus_language::natural_name): New member function.
5088 (asm_language_data): Remove la_name and
5089 la_natural_name initializers.
5090 (asm_language::name): New member function.
5091 (asm_language::natural_name): New member function.
5092 (minimal_language_data): Remove la_name and
5093 la_natural_name initializers.
5094 (minimal_language::name): New member function.
5095 (minimal_language::natural_name): New member function.
5096 * compile/compile.c (compile_to_object): Update call to
5097 lanugage_defn::name.
5098 * d-lang.c (d_language_data): Remove la_name and
5099 la_natural_name initializers.
5100 (d_language::name): New member function.
5101 (d_language::natural_name): New member function.
5102 * expprint.c (print_subexp_standard): Update call to
5103 language_defn::name.
5104 (dump_raw_expression): Likewise
5105 (dump_prefix_expression): Likewise.
5106 * f-lang.c (f_language_data): Remove la_name and
5107 la_natural_name initializers.
5108 (f_language::name): New member function.
5109 (f_language::natural_name): New member function.
5110 * go-lang.c (go_language_data): Remove la_name and
5111 la_natural_name initializers.
5112 (go_language::name): New member function.
5113 (go_language::natural_name): New member function.
5114 * language.c (show_language_command): Update call to
5115 language_defn::name.
5116 (set_language_command): Likewise.
5117 (language_enum): Likewise.
5118 (language_str): Likewise.
5119 (add_set_language_command): Likewise, use
5120 language_defn::natural_name in the doc string.
5121 (unknown_language_data): Remove la_name and
5122 la_natural_name initializers.
5123 (unknown_language::name): New member function.
5124 (unknown_language::natural_name): New member function.
5125 (auto_language_data): Remove la_name and
5126 la_natural_name initializers.
5127 (auto_language::name): New member function.
5128 (auto_language::natural_name): New member function.
5129 (language_lookup_primitive_type_as_symbol): Update call to
5130 language_defn::name.
5131 * language.h (language_data): Remove la_name and la_natural_name
5132 member variables.
5133 (language_defn::name): New member function.
5134 (language_defn::natural_name): New member function.
5135 * m2-lang.c (m2_language_data): Remove la_name and
5136 la_natural_name initializers.
5137 (m2_language::name): New member function.
5138 (m2_language::natural_name): New member function.
5139 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5140 language_defn::natural_name.
5141 * objc-lang.c (objc_language_data): Remove la_name and
5142 la_natural_name initializers.
5143 (objc_language::name): New member function.
5144 (objc_language::natural_name): New member function.
5145 * opencl-lang.c (opencl_language_data): Remove la_name and
5146 la_natural_name initializers.
5147 (opencl_language::name): New member function.
5148 (opencl_language::natural_name): New member function.
5149 * p-lang.c (pascal_language_data): Remove la_name and
5150 la_natural_name initializers.
5151 (pascal_language::name): New member function.
5152 (pascal_language::natural_name): New member function.
5153 * rust-lang.c (rust_language_data): Remove la_name and
5154 la_natural_name initializers.
5155 (rust_language::name): New member function.
5156 (rust_language::natural_name): New member function.
5157 * symtab.c (lookup_language_this): Update call to
5158 language_defn::name.
5159
5bae7c4e
AB
51602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 * ada-lang.c (ada_language_data): Remove la_name_of_this
5163 initializer.
5164 * ax-gdb.c (gen_expr): Update call to name_of_this.
5165 * c-exp.y (classify_name): Likewise.
5166 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5167 (cplus_language_data): Likewise.
5168 (cplus_language::name_of_this): New member function.
5169 (asm_language_data): Remove la_name_of_this initializer.
5170 (minimal_language_data): Likewise.
5171 * d-lang.c (d_language_data): Likewise.
5172 (d_language::name_of_this): New member function.
5173 * expprint.c (print_subexp_standard): Update call to name_of_this.
5174 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5175 * go-lang.c (go_language_data): Likewise.
5176 * language.c (unknown_language_data): Likewise.
5177 (unknown_language::name_of_this): New member function.
5178 (auto_language_data): Remove la_name_of_this initializer.
5179 (auto_language::name_of_this): New member function.
5180 * language.h (language_data): Delete la_name_of_this member
5181 variable.
5182 (language_defn::name_of_this): New member function.
5183 * m2-lang.c (m2_language_data): Remove la_name_of_this
5184 initializer.
5185 * objc-lang.c (objc_language_data): Likewise.
5186 (objc_language::name_of_this): New member function.
5187 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5188 initializer.
5189 * p-lang.c (pascal_language_data): Likewise.
5190 (pascal_language::name_of_this): New member function.
5191 * rust-lang.c (rust_language_data): Remove la_name_of_this
5192 initializer.
5193 * symtab.c (lookup_language_this): Update call to name_of_this.
5194 (lookup_symbol_aux): Likewise.
5195 * valops.c (value_of_this): Likewise.
5196
22e3f3ed
AB
51972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * ada-lang.c (ada_language_data): Remove
5200 la_struct_too_deep_ellipsis initializer.
5201 (ada_language::struct_too_deep_ellipsis): New member function.
5202 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5203 initializer.
5204 (cplus_language_data): Likewise.
5205 (asm_language_data): Likewise.
5206 (minimal_language_data): Likewise.
5207 * cp-valprint.c (cp_print_value): Update call to
5208 struct_too_deep_ellipsis.
5209 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5210 initializer.
5211 * f-lang.c (f_language_data): Likewise.
5212 (f_language::struct_too_deep_ellipsis): New member function.
5213 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5214 initializer.
5215 * language.c (unknown_language_data): Likewise.
5216 (auto_language_data): Likewise.
5217 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5218 member variable.
5219 (language_defn::struct_too_deep_ellipsis): New member function.
5220 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5221 initializer.Q
5222 * objc-lang.c (objc_language_data): Likewise.
5223 * opencl-lang.c (opencl_language_data): Likewise.
5224 * p-lang.c (pascal_language_data): Likewise.
5225 * rust-lang.c (rust_language_data): Likewise.
5226 * valprint.c (val_print_check_max_depth): Update call to
5227 struct_too_deep_ellipsis.
5228
ed29e1c7
FW
52292020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5230
5231 * MAINTAINERS (Write After Approval): Add myself.
5232
12d8f940
TT
52332020-09-15 Tom Tromey <tom@tromey.com>
5234
5235 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5236 Remove.
5237
6b5a7bc7
TT
52382020-09-15 Tom Tromey <tom@tromey.com>
5239
5240 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5241 and TYPE_CODE_METHODPTR cases.
5242 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5243 (c_value_print_inner): Update.
5244 * valprint.c (generic_value_print_memberptr): New function, from
5245 c_value_print_memberptr.
5246 (generic_value_print): Use it. Call cplus_print_method_ptr.
5247
47f0e2ff
TT
52482020-09-15 Tom Tromey <tromey@adacore.com>
5249
5250 * python/python-internal.h (PyInt_FromLong): Remove define.
5251 * python/py-value.c (convert_value_from_python): Use
5252 gdb_py_object_from_longest.
5253 * python/py-type.c (typy_get_code): Use
5254 gdb_py_object_from_longest.
5255 * python/py-symtab.c (salpy_get_line): Use
5256 gdb_py_object_from_longest.
5257 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5258 gdb_py_object_from_longest.
5259 * python/py-record.c (recpy_gap_reason_code): Use
5260 gdb_py_object_from_longest.
5261 * python/py-record-btrace.c (recpy_bt_insn_size)
5262 (recpy_bt_func_level, btpy_list_count): Use
5263 gdb_py_object_from_longest.
5264 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5265 gdb_py_object_from_longest. Fix error handling.
5266 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5267 gdb_py_object_from_longest.
5268 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5269 gdb_py_object_from_longest.
5270 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5271 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5272 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5273
512116ce
TT
52742020-09-15 Tom Tromey <tromey@adacore.com>
5275
5276 * python/python.c (gdbpy_parameter_value): Use
5277 gdb_py_object_from_ulongest.
5278
4ab1029c
TT
52792020-09-15 Tom Tromey <tromey@adacore.com>
5280
5281 * python/py-infevents.c (create_register_changed_event_object):
5282 Use gdb_py_object_from_longest.
5283 * python/py-exitedevent.c (create_exited_event_object): Use
5284 gdb_py_object_from_longest.
5285
062534d4
TT
52862020-09-15 Tom Tromey <tromey@adacore.com>
5287
5288 * python/python.c (gdbpy_parameter_value): Use
5289 gdb_py_object_from_longest.
5290 * python/py-type.c (convert_field, typy_range): Use
5291 gdb_py_object_from_longest.
5292 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5293 gdb_py_object_from_longest.
5294 * python/py-lazy-string.c (stpy_get_length): Use
5295 gdb_py_object_from_longest.
5296 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5297 gdb_py_object_from_longest.
5298 * python/py-infevents.c (create_memory_changed_event_object): Use
5299 gdb_py_object_from_longest.
5300 * python/py-inferior.c (infpy_get_num): Use
5301 gdb_py_object_from_longest.
5302 (infpy_get_pid): Likewise.
5303
d1cab987
TT
53042020-09-15 Tom Tromey <tromey@adacore.com>
5305
5306 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5307 defines.
5308 * python/py-value.c (valpy_long): Use
5309 gdb_py_object_from_ulongest.
5310 * python/py-symtab.c (salpy_get_pc): Use
5311 gdb_py_object_from_ulongest.
5312 (salpy_get_last): Likewise.
5313 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5314 gdb_py_object_from_ulongest.
5315 * python/py-lazy-string.c (stpy_get_address): Use
5316 gdb_py_object_from_ulongest.
5317 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5318 * python/py-arch.c (archpy_disassemble): Use
5319 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5320 error handling.
5321
4bde49dc
TT
53222020-09-15 Tom Tromey <tromey@adacore.com>
5323
5324 * python/python-internal.h (gdb_py_long_from_longest): Remove
5325 defines.
5326 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5327 * python/py-type.c (convert_field, typy_get_sizeof): Use
5328 gdb_py_object_from_longest.
5329 * python/py-record-btrace.c (btpy_list_index): Use
5330 gdb_py_object_from_longest.
5331
37431074
TT
53322020-09-15 Tom Tromey <tromey@adacore.com>
5333
5334 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5335 * python/py-record.c (recpy_element_number): Use
5336 gdb_py_object_from_longest.
5337 (recpy_gap_number): Likewise.
5338
cbe25684
TT
53392020-09-15 Tom Tromey <tromey@adacore.com>
5340
5341 * top.c (ui::ui): Update.
5342 (highest_ui_num): Remove.
5343 * top.h (struct ui) <num>: Remove.
5344
db92ac45
TT
53452020-09-15 Tom Tromey <tromey@adacore.com>
5346
5347 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5348 * ui-style.c (ansi_regex_text): Now array.
5349 * rust-exp.y (number_regex_text): Now array.
5350 * linespec.c (linespec_quote_characters): Now array.
5351 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5352 Now arrays.
5353
d2b31b67
SM
53542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * debuginfod-support.c (debuginfod_client_deleter): New.
5357 (debuginfod_client_up): New.
5358 (debuginfod_init): Return debuginfod_client_up.
5359 (debuginfod_source_query): Adjust.
5360 (debuginfod_debuginfo_query): Adjust.
5361
3246bd8e
SM
53622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * debuginfod-support.c (debuginfod_source_query): Use
5365 make_unique_xstrdup.
5366
10242f36
SM
53672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5370 with `type::instance_flags`.
5371
e1044e6a
MM
53722020-09-14 Michael Mullin <masmullin@gmail.com>
5373
5374 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5375 Remove baton parameter.
5376
04902b09
PA
53772020-09-14 Pedro Alves <pedro@palves.net>
5378
5379 * Makefile.in (SELFTESTS_SRCS): Add
5380 unittests/enum-flags-selftests.c.
5381 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5382 btrace_function_flags instead of enum btrace_function_flag.
5383 * compile/compile-c-types.c (convert_qualified): Use
5384 enum_flags::raw.
5385 * compile/compile-cplus-symbols.c (convert_one_symbol)
5386 (convert_symbol_bmsym):
5387 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5388 (compile_cplus_convert_struct_or_union_methods)
5389 (compile_cplus_instance::convert_qualified_base):
5390 * go-exp.y (parse_string_or_char): Add cast to int.
5391 * unittests/enum-flags-selftests.c: New file.
5392 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5393 type to btrace_thread_flags from btrace_thread_flag.
5394 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5395 local's type to btrace_thread_flags from btrace_thread_flag. Add
5396 cast in DEBUG call.
5397
69896a2c
PA
53982020-09-14 Pedro Alves <pedro@palves.net>
5399
5400 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5401 * gdbtypes.c (address_space_name_to_int): Rename to ...
5402 (address_space_name_to_type_instance_flags): ... this.
5403 (address_space_int_to_name): Rename to ...
5404 (address_space_type_instance_flags_to_name): ... this.
5405 * gdbtypes.h (address_space_name_to_int): Rename to ...
5406 (address_space_name_to_type_instance_flags): ... this.
5407 (address_space_int_to_name): Rename to ...
5408 (address_space_type_instance_flags_to_name): ... this.
5409 * type-stack.c (type_stack::insert): Adjust to rename.
5410 * type-stack.h (type_stack::insert): Likewise.
5411
314ad88d
PA
54122020-09-14 Pedro Alves <pedro@palves.net>
5413 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * avr-tdep.c (avr_address_class_type_flags): Return
5416 type_instance_flags.
5417 (avr_address_class_type_flags_to_name): Take a
5418 type_instance_flags.
5419 (avr_address_class_name_to_type_flags): Return bool and take a
5420 type_instance_flags.
5421 * d-lang.c (build_d_types): Use type::set_instance_flags.
5422 * ft32-tdep.c (ft32_address_class_type_flags): Return
5423 type_instance_flags.
5424 (ft32_address_class_type_flags_to_name): Take a
5425 type_instance_flags.
5426 (ft32_address_class_name_to_type_flags): Return bool and take a
5427 type_instance_flags.
5428 (ft32_gdbarch_init): Use type::set_instance_flags.
5429 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5430 * gdbarch.h, gdbarch.c: Regenerate.
5431 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5432 (address_class_name_to_type_flags): Use type_instance_flags and
5433 bool.
5434 * gdbtypes.c (address_space_name_to_int)
5435 (address_space_int_to_name, make_qualified_type): Use
5436 type_instance_flags.
5437 (make_qualified_type): Use type_instance_flags and
5438 type::set_instance_flags.
5439 (make_type_with_address_space, make_cv_type, make_vector_type)
5440 (check_typedef): Use type_instance_flags.
5441 (recursive_dump_type): Cast type_instance_flags to unsigned for
5442 printing.
5443 (copy_type_recursive): Use type::set_instance_flags.
5444 (gdbtypes_post_init): Use type::set_instance_flags.
5445 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5446 <m_instance_flags>: ... this.
5447 <instance_flags, set_instance_flags>: New methods.
5448 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5449 (SET_TYPE_INSTANCE_FLAGS): New.
5450 (address_space_name_to_int, address_space_int_to_name)
5451 (make_type_with_address_space): Pass flags using
5452 type_instance_flags instead of int.
5453 * stabsread.c (cleanup_undefined_types_noname): Use
5454 type::set_instance_flags.
5455 * s390-tdep.c (s390_address_class_type_flags): Return
5456 type_instance_flags.
5457 (s390_address_class_type_flags_to_name): Take a
5458 type_instance_flags.
5459 (s390_address_class_name_to_type_flags): Return bool and take a
5460 type_instance_flags.
5461 * type-stack.c (type_stack::follow_types): Use
5462 type_instance_flags.
5463 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5464
27087b7f
TT
54652020-09-14 Tom Tromey <tromey@adacore.com>
5466
5467 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5468 * x86-tdep.c (x86_is_thunk_register_name)
5469 (x86_in_indirect_branch_thunk): Update.
5470 * sparc64-tdep.c (sparc64_fpu_register_names)
5471 (sparc64_cp0_register_names, sparc64_register_names)
5472 (sparc64_pseudo_register_names): Now const.
5473 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5474 cp0_registers_num>: Now const.
5475 * sparc-tdep.c (sparc_core_register_names)
5476 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5477 (sparc32_pseudo_register_names): Now const.
5478 (validate_tdesc_registers): Update.
5479 * rust-lang.c (rust_extensions): Now const.
5480 * p-lang.c (p_extensions): Now const.
5481 * objc-lang.c (objc_extensions): Now const.
5482 * nto-tdep.c (nto_thread_state_str): Now const.
5483 * moxie-tdep.c (moxie_register_names): Now const.
5484 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5485 Now const.
5486 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5487 (mips_linux_reg_names): Now const.
5488 (mips_gdbarch_init): Update.
5489 * microblaze-tdep.c (microblaze_register_names): Now const.
5490 * m68k-tdep.c (m68k_register_names): Now const.
5491 * m32r-tdep.c (m32r_register_names): Now const.
5492 * ia64-tdep.c (ia64_register_names): Now const.
5493 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5494 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5495 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5496 ymm_avx512_register_names, pkeys_register_names>: Now const.
5497 * i386-tdep.c (i386_register_names, i386_zmm_names)
5498 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5499 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5500 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5501 * f-lang.c (f_extensions): Now const.
5502 * d-lang.c (d_extensions): Now const.
5503 * csky-tdep.c (csky_register_names): Now const.
5504 * charset.c (default_charset_names, charset_enum): Now const.
5505 (_initialize_charset): Update.
5506 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5507 const.
5508 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5509 (bsd_uthread_solib_loaded): Update.
5510 (bsd_uthread_state): Now const.
5511 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5512 (amd64_ymm_avx512_names, amd64_ymmh_names)
5513 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5514 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5515 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5516 (amd64_dword_names): Now const.
5517 * agent.c (can_use_agent_enum): Now const.
5518 * ada-tasks.c (task_states, long_task_states): Now const.
5519 * ada-lang.c (known_runtime_file_name_patterns)
5520 (known_auxiliary_function_name_patterns, attribute_names)
5521 (standard_exc, ada_extensions): Now const.
5522
89806626
SM
55232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5524
5525 * bcache.h (struct bcache) <bcache>: Remove constructor.
5526 <m_hash_function, m_compare_function>: Remove.
5527 <~bcache>: Make virtual.
5528 <compare>: Remove static method, introduce virtual method.
5529 <default_hash>: Remove.
5530 <hash>: New virtual method.
5531 * bcache.c (bcache::expand_hash_table): Update.
5532 (bcache::insert): Update.
5533 (bcache::hash): New.
5534 (bcache::compare): Update comment and parameter names.
5535 * gdbtypes.c (types_deeply_equal): Update.
5536 * psymtab.h (struct psymbol_bcache): New struct.
5537 (class psymtab_storage) <psymtab_storage>: Make default.
5538 <psymbol_cache>: Change type to psymbol_bcache.
5539 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5540 (psymbol_hash): Change to...
5541 (psymbol_bcache::hash): ... this.
5542 (psymbol_compare): Change to...
5543 (psymbol_bcache::compare): ... this.
5544
677c92fe
SM
55452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5548 checking for initial lwp.
5549
3eba3a01
TT
55502020-09-14 Tom Tromey <tromey@adacore.com>
5551
5552 * m68k-tdep.c (m68k_extract_return_value): Use
5553 pointer_result_regnum.
5554 (m68k_store_return_value): Likewise.
5555 (m68k_reg_struct_return_p): Handle vectors and arrays.
5556 (m68k_return_value): Handle arrays.
5557 (m68k_svr4_return_value): Fix single-element aggregate handling.
5558 Handle long double. Adjust for embedded ABI.
5559 (m68k_svr4_init_abi): Set pointer_result_regnum.
5560 (m68k_embedded_init_abi): New function.
5561 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5562 (m68k_osabi_sniffer): New function.
5563 (_initialize_m68k_tdep): Register osabi sniffer.
5564 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5565 member.
5566
33f4dd48
SM
55672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5568
5569 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5570 with gdb::unique_xmalloc_ptr<char>.
5571
8400a90d
SM
55722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * xml-support.h (xml_fetch_another): Change type to be a
5575 function_view.
5576 (xml_process_xincludes): Remove baton parameter.
5577 (xml_fetch_content_from_file): Change baton parameter to
5578 dirname.
5579 * xml-support.c (struct xinclude_parsing_data)
5580 <xinclude_parsing_data>: Remove baton parameter.
5581 <fetcher_baton>: Remove.
5582 (xinclude_start_include): Adjust.
5583 (xml_process_xincludes): Adjust.
5584 (xml_fetch_content_from_file): Replace baton parameter with
5585 dirname.
5586 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5587 (xml_init_syscalls_info): Use a lambda.
5588 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5589 (file_read_description_xml): Use a lambda.
5590 (fetch_available_features_from_target): Change baton parameter
5591 to target_ops.
5592 (target_read_description_xml): Use a lambda.
5593 (target_fetch_description_xml): Use a lambda.
5594 (string_read_description_xml): Update.
5595
04f5bab2
SM
55962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5599 uses with type::endianity_is_not_default.
5600
db558e34
SM
56012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (struct type) <endianity_is_not_default,
5604 set_endianity_is_not_default>: New methods.
5605 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5606 type::endianity_is_not_default, change all write call sites to
5607 use type::set_endianity_is_not_default.
5608
22c4c60c
SM
56092020-09-14 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5612 uses with type::is_fixed_instance.
5613
9cdd0d12
SM
56142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * gdbtypes.h (struct type) <is_fixed_instance,
5617 set_is_fixed_instance>: New methods.
5618 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5619 write call sites to use type::set_is_fixed_instance.
5620
0becda7a
SM
56212020-09-14 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5624 uses with type::is_gnu_ifunc.
5625
03cc7249
SM
56262020-09-14 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5629 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5630 use type::set_is_gnu_ifunc.
5631
3f46044c
SM
56322020-09-14 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5635 uses with type::stub_is_supported.
5636
9baccff6
SM
56372020-09-14 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5640 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5641 use type::set_stub_is_supported.
5642
bd63c870
SM
56432020-09-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5646 uses with type::is_vector.
5647
2062087b
SM
56482020-09-14 Simon Marchi <simon.marchi@efficios.com>
5649
5650 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5651 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5652 use type::set_is_vector.
5653
a409645d
SM
56542020-09-14 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5657 uses with type::has_varargs.
5658
1d6286ed
SM
56592020-09-14 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5662 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5663 use type::set_has_varargs.
5664
7f9f399b
SM
56652020-09-14 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5668 uses with type::is_prototyped.
5669
27e69b7a
SM
56702020-09-14 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5673 New methods.
5674 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5675 call sites to use type::set_is_prototyped.
5676
d2183968
SM
56772020-09-14 Simon Marchi <simon.marchi@efficios.com>
5678
5679 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5680 uses with type::target_is_stub.
5681
8f53807e
SM
56822020-09-14 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5685 New methods.
5686 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5687 sites to use type::set_target_is_stub.
5688
e46d3488
SM
56892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5690
5691 * gdbtypes.h (TYPE_STUB): Remove, replace all
5692 uses with type::is_stub.
5693
b4b73759
SM
56942020-09-14 Simon Marchi <simon.marchi@efficios.com>
5695
5696 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5697 (TYPE_STUB): Use type::is_stub, change all write call sites to
5698 use type::set_is_stub.
5699
20ce4123
SM
57002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5703 type::has_no_signedness.
5704
15152a54
SM
57052020-09-14 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * gdbtypes.h (struct type) <has_no_signedness,
5708 set_has_no_signedness>: New methods.
5709 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5710 call sites to use type::set_has_no_signedness.
5711
c6d940a9
SM
57122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5715 type::is_unsigned.
5716
653223d3
SM
57172020-09-14 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5720 methods.
5721 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5722 sites to use type::set_is_unsigned.
5723
55ea94da 57242020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5725 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5726
e851246a
SM
5727 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5728 pointer and stack frame offset when unwinding.
55ea94da 5729
6791b117
PA
57302020-09-13 Pedro Alves <pedro@palves.net>
5731
5732 * NEWS: Document "-break-insert --qualified".
5733 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5734
77f2120b
PA
57352020-09-13 Pedro Alves <pedro@palves.net>
5736
5737 * linespec.c (classify_mtype, compare_msyms): Delete.
5738 (search_minsyms_for_name): Remove classification logic. Instead
5739 filter out trampoline symbols if we also found an external
5740 function of the same name.
5741
ed6a896c
JB
57422020-09-13 Joel Brobecker <brobecker@adacore.com>
5743
5744 * NEWS: Create a new section for the next release branch.
5745 Rename the section of the current branch, now that it has
5746 been cut.
5747
32aea73e
JB
57482020-09-13 Joel Brobecker <brobecker@adacore.com>
5749
5750 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5751 * version.in: Bump version to 11.0.50.DATE-git.
5752
8087c3fa
JB
57532020-09-12 Joel Brobecker <brobecker@adacore.com>
5754
5755 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5756
2a67f09d
FW
57572020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5758 Felix Willgerodt <Felix.Willgerodt@intel.com>
5759
5760 * gdbarch.sh: Added bfloat16 type.
5761 * gdbarch.c: Regenerated.
5762 * gdbarch.h: Regenerated.
5763 * gdbtypes.c (floatformats_bfloat16): New struct.
5764 (gdbtypes_post_init): Add builtin_bfloat16.
5765 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5766 (floatformats_bfloat16): New struct.
5767 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5768 (i386_ymm_type): Add field "v16_bfloat16"
5769 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5770 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5771 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5772 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5773 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5774 * features/i386/64bit-avx512.c: Regenerated.
5775 * features/i386/64bit-sse.xml: Add bfloat16 type.
5776 * features/i386/64bit-sse.c: Regenerated.
5777
1347d111
FW
57782020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5779
5780 * i386-tdep.c (i386_zmm_type): Fix field names.
5781 (i386_ymm_type): Fix field names.
5782
7a4e8e7d
TBA
57832020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5784
5785 * breakpoint.c: Fix typo in the help message of the
5786 "set breakpoint condition-evaluation" command.
5787
cf4ac4be
KR
57882020-09-10 Kamil Rytarowski <n54@gmx.com>
5789
5790 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5791 * (nbsd_nat_target::pid_to_exec_file)
5792 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5793 (nbsd_nat_target::post_startup_inferior)
5794 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5795 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5796 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5797 * (nbsd_thread_lister): Remove.
5798
f404573e
KR
57992020-09-10 Kamil Rytarowski <n54@gmx.com>
5800
5801 * fork-inferior.c (startup_inferior): Avoid double free.
5802
1ccb2c17
KR
58032020-09-10 Kamil Rytarowski <n54@gmx.com>
5804
5805 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5806 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5807
feedfcc7
KR
58082020-09-10 Kamil Rytarowski <n54@gmx.com>
5809
5810 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5811 * netbsd-nat.c: Include <sys/ptrace.h>.
5812 * (netbsd_nat::enable_proc_events): Add.
5813
c489f8c6
KR
58142020-09-10 Kamil Rytarowski <n54@gmx.com>
5815
5816 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5817 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5818 (netbsd_nat::for_each_thread): Add.
5819 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5820 "gdbsupport/common-debug.h".
5821 * (netbsd_nat::netbsd_thread_lister)
5822 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5823 (netbsd_nat::for_each_thread): Add.
5824
330662f6
KR
58252020-09-10 Kamil Rytarowski <n54@gmx.com>
5826
5827 * netbsd-nat.h: Include <unistd.h>.
5828 * (netbsd_nat::pid_to_exec_file): Add.
5829 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5830 * (netbsd_nat::pid_to_exec_file) Add.
5831
70b67307
KR
58322020-09-10 Kamil Rytarowski <n54@gmx.com>
5833
5834 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5835
99cf6da6
KR
58362020-09-10 Kamil Rytarowski <n54@gmx.com>
5837
5838 * netbsd-nat.h: New file.
5839 * netbsd-nat.c: Likewise.
5840
1b788fb6
TT
58412020-09-09 Tom Tromey <tromey@adacore.com>
5842
5843 * ada-lang.c (remove_extra_symbols): Do not increment when
5844 removing an element
5845
03b0a45f
TT
58462020-09-08 Tom Tromey <tromey@adacore.com>
5847
5848 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5849
3cae4447
TT
58502020-09-08 Tom Tromey <tromey@adacore.com>
5851
5852 PR win32/25302:
5853 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5854 (gdb_bfd_init_data): New function.
5855 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5856
7f08fd51
TBA
58572020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5858
5859 * infrun.c (fetch_inferior_event): Use
5860 `switch_to_target_no_thread` to switch the target.
5861
3e6ff933
TT
58622020-09-06 Tom Tromey <tom@tromey.com>
5863
5864 * symfile.h (dwarf2_free_objfile): Don't declare.
5865
e56798df
AKS
58662020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5867
5868 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5869 to match 16 byte real/complex type generated by Flang compiler.
5870
8f5c6526
TV
58712020-09-03 Tom de Vries <tdevries@suse.de>
5872
5873 PR breakpoint/26546
5874 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5875 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5876
c5065df0
SM
58772020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * maint.c (index_digits): New function.
5880 (struct maint_print_section_data): Remove.
5881 (print_bfd_section_info): Remove print_data parameter, add arg
5882 and index_digits.
5883 (print_objfile_section_info): Likewise.
5884 (print_bfd_section_info_maybe_relocated): Likewise (plus
5885 objfile).
5886 (maintenance_info_sections): Adjust calls.
5887
02c6f3f1
TT
58882020-09-02 Tom Tromey <tromey@adacore.com>
5889
5890 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5891 for null pointers.
5892 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5893
ef5e5b0b
SM
58942020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * bcache.h (struct bcache) <insert>: Change type of `added` to
5897 pointer to bool.
5898 * bcache.c (bcache::insert): Likewise.
5899 * gdbtypes.c (check_types_worklist): Adjust.
5900 * psymtab.c (add_psymbol_to_bcache): Adjust.
5901
973695d6
KB
59022020-08-31 Kevin Buettner <kevinb@redhat.com>
5903
5904 * corelow.c (unordered_set): Include.
5905 (class core_target): Add field 'm_core_unavailable_mappings'.
5906 (core_target::build_file_mappings): Print only one warning
5907 per inaccessible file. Add unavailable/broken mappings
5908 to m_core_unavailable_mappings.
5909 (core_target::xfer_partial): Call...
5910 (core_target::xfer_memory_via_mappings): New method.
5911
264fc0e2
SM
59122020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5915 type to bool.
5916
2de01bdb
SM
59172020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * dwarf2/read.c (struct field_info): Fix indentation.
5920
f3bd50f1
SM
59212020-08-31 Simon Marchi <simon.marchi@efficios.com>
5922
5923 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5924 ordering in comment.
5925 * frame.c (frame_id_eq): Fix indentation.
5926
22b9b4b0
SL
59272020-08-31 Scott Linder <scott@scottlinder.com>
5928 Simon Marchi <simon.marchi@efficios.com>
5929
5930 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5931 inline frame ids in outer frame.
5932
84154d16
SM
59332020-08-31 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5936 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5937 (outer_frame_id): Use FID_STACK_OUTER instead of
5938 FID_STACK_INVALID.
5939 (frame_id_p): Don't check for outer_frame_id.
5940
8efaf6b3
SM
59412020-08-31 Simon Marchi <simon.marchi@efficios.com>
5942
5943 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5944 regnum/frame in value. Call allocate_value_lazy.
5945 * frame.c (frame_unwind_register_value): Use
5946 val_print_not_saved.
5947
fe1fe7ea
SM
59482020-08-31 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5951
f7c7700d
PA
59522020-08-29 Pedro Alves <pedro@palves.net>
5953
5954 * progspace.c (print_program_space): Use all_inferiors. Switch to
5955 the inferior before calling target_pid_to_str.
5956
e0814aae
TT
59572020-08-28 Tom Tromey <tom@tromey.com>
5958
5959 * xcoffread.c (xcoff_end_psymtab): Update comment.
5960 * dbxread.c (dbx_end_psymtab): Update comment.
5961
626d2320
TV
59622020-08-28 Tom de Vries <tdevries@suse.de>
5963
5964 PR breakpoint/26544
5965 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5966 event_location.
5967 (create_breakpoint): Same.
5968 (base_breakpoint_decode_location): Same.
5969 (bkpt_create_sals_from_location): Same.
5970 (bkpt_decode_location): Same.
5971 (bkpt_probe_create_sals_from_location): Same.
5972 (bkpt_probe_decode_location): Same.
5973 (tracepoint_create_sals_from_location): Same.
5974 (tracepoint_decode_location): Same.
5975 (tracepoint_probe_decode_location): Same.
5976 (strace_marker_create_sals_from_location): Same.
5977 (strace_marker_decode_location): Same.
5978 (create_sals_from_location_default): Same.
5979 (decode_location_default): Same.
5980 * breakpoint.h (struct breakpoint_ops): Same.
5981 (create_breakpoint): Same.
5982 * linespec.h (decode_line_full): Same.
5983 * linespec.c (decode_line_full): Same. Throw error if
5984 result.size () == 0.
5985
df631783
PA
59862020-08-27 Pedro Alves <pedro@palves.net>
5987
5988 PR gdb/26524
5989 * breakpoint.c (until_break_fsm) <location_breakpoint,
5990 caller_breakpoint>: Delete fields.
5991 <breakpoints>: New field.
5992 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5993 two individual breakpoints.
5994 (until_break_fsm::should_stop): Loop over breakpoints in the
5995 breakpoint vector.
5996 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5997 vector.
5998 (until_break_command): Handle location expanding into multiple
5999 sals.
6000
b2b38aa4
PA
60012020-08-27 Pedro Alves <pedro@palves.net>
6002
6003 PR gdb/26523
6004 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6005 bp_until breakpoints user-specified locations. Update intro
6006 comment.
6007
b886559f
SM
60082020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6011 gdb_bfd_sections): New.
6012 * maint.c (print_bfd_section_info): Change param type to
6013 maint_print_section_data.
6014 (print_objfile_section_info): Likewise.
6015 (print_bfd_section_info_maybe_relocated): Likewise.
6016 (maintenance_info_sections): Use gdb_bfd_sections.
6017
4c6e63bf
SV
60182020-08-25 Shahab Vahedi <shahab@synopsys.com>
6019
6020 * MAINTAINERS: Add ARC target and maintainer.
6021
8d7f0635
AK
60222020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6023
6024 * configure.tgt: ARC support for GNU/Linux.
6025 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6026 * arc-linux-tdep.c: New file.
6027 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6028 * arc-tdep.c (arc_write_pc): Use it.
6029
fdd8731b
SV
60302020-08-25 Shahab Vahedi <shahab@synopsys.com>
6031
6032 * arc-tdep.c (arc_check_for_hardware_loop): New.
6033 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6034
22459524
SV
60352020-08-25 Shahab Vahedi <shahab@synopsys.com>
6036
6037 * arc-tdep.h: Include "gdbarch.h".
6038
995d3a19
SV
60392020-08-25 Shahab Vahedi <shahab@synopsys.com>
6040
6041 * arch/arc.h
6042 (arc_gdbarch_features): New class to stir the selection of target XML.
6043 (arc_create_target_description): Use FEATURES to choose XML target.
6044 (arc_lookup_target_description): Use arc_create_target_description
6045 to create _new_ target descriptions or return the already created
6046 ones if the FEATURES is the same.
6047 * arch/arc.c: Implementation of prototypes described above.
6048 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6049 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6050 * arc-tdep.c (*_feature_name): Make feature names consistent.
6051 (arc_register_feature): A new struct to hold information about
6052 registers of a particular target/feature.
6053 (arc_check_tdesc_feature): Check if XML provides registers in
6054 compliance with ARC_REGISTER_FEATURE structs.
6055 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6056 (determine_*_reg_feature_set): Which feature name to look for.
6057 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6058 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6059 to expected ISA enums to be used in arc_gdbarch_features structs.
6060 * features/Makefile (FEATURE_XMLFILES): Add new files.
6061 * gdb/features/arc/v1-aux.c: New file.
6062 * gdb/features/arc/v1-aux.xml: Likewise.
6063 * gdb/features/arc/v1-core.c: Likewise.
6064 * gdb/features/arc/v1-core.xml: Likewise.
6065 * gdb/features/arc/v2-aux.c: Likewise.
6066 * gdb/features/arc/v2-aux.xml: Likewise.
6067 * gdb/features/arc/v2-core.c: Likewise.
6068 * gdb/features/arc/v2-core.xml: Likewise.
6069 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6070
3945d2d7
GM
60712020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6072 Andrew Burgess <andrew.burgess@embecosm.com>
6073
6074 PR m2/26372
fc5d6901 6075 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6076 an assert. Remove single element array indexing pattern as the
6077 MULTI_SUBSCRIPT support will handle this case too.
6078
2677f2d3
SM
60792020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * value.h (valprint_check_validity): Move declaration from
6082 here...
6083 * valprint.h (valprint_check_validity): ... to here.
6084
c426fddb
SM
60852020-08-24 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * debug.h: New file.
6088 * debug.c (debug_prefixed_vprintf): New function.
6089 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6090 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6091
1eb8556f
SM
60922020-08-24 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * infrun.h (infrun_debug_printf_1): New function declaration.
6095 (infrun_debug_printf): New macro.
6096 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6097 throughout.
6098 (infrun_debug_printf): New function.
6099 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6100 (handle_jit_event): Likewise.
6101
b8fff44e
MW
61022020-08-21 Mark Wielaard <mark@klomp.org>
6103
6104 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6105
d19c3068
SM
61062020-08-22 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * frame.c (enum class frame_id_status): New.
6109 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6110 (fprintf_frame): Update.
6111 (compute_frame_id): Set frame id status to "computing" on entry.
6112 Set it back to "not_computed" on failure and to "computed" on
6113 success.
6114 (get_frame_id): Assert the frame id is not being computed.
6115 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6116 (create_new_frame): Likewise.
6117 (frame_cleanup_after_sniffer): Update assert.
6118
b70e516e
SM
61192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 * regcache.c (pid_ptid_regcache_map): New type.
6122 (target_ptid_regcache_map): Remove.
6123 (target_pid_ptid_regcache_map): New type.
6124 (regcaches): Change type to target_pid_ptid_regcache_map.
6125 (get_thread_arch_aspace_regcache): Update.
6126 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6127 case.
6128 (regcaches_size): Update.
6129 (regcache_count): Update.
6130 (registers_changed_ptid_target_pid_test): New.
6131 (_initialize_regcache): Register new test.
6132
cdd9148a
SM
61332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * regcache.c (regcache_count): New.
6136 (struct regcache_test_data): New.
6137 (regcache_test_data_up): New.
6138 (populate_regcaches_for_test): New.
6139 (regcaches_test): Remove.
6140 (get_thread_arch_aspace_regcache_test): New.
6141 (registers_changed_ptid_all_test): New.
6142 (registers_changed_ptid_target_test): New.
6143 (registers_changed_ptid_target_ptid_test): New.
6144 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6145 (_initialize_regcache): Register new tests.
6146
dd125343
SM
61472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6150 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6151 gdbarch and aspace parameter. Use current inferior's aspace.
6152 Validate regcache's arch value.
6153 (regcaches_test): Update.
6154
3ee93972
SM
61552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * regcache.c (regcaches_test): Call registers_changed.
6158
33bf4c5c
TBA
61592020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6160
6161 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6162
c2fd7fae
AKS
61632020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6164
6165 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6166 to find the end of prologue for flang compiled binaries.
6167 * arm-tdep.c (arm_skip_prologue): Likewise.
6168 * i386-tdep.c (i386_skip_prologue): Likewise.
6169 * producer.c (producer_is_llvm): New function.
6170 (producer_parsing_tests): Added new tests for clang/flang.
6171 * producer.h (producer_is_llvm): New declaration.
6172
9327494e
SM
61732020-08-18 Simon Marchi <simon.marchi@efficios.com>
6174
6175 * linux-nat.c (linux_nat_debug_printf): New function.
6176 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6177
d138725a
AM
61782020-08-18 Aaron Merey <amerey@redhat.com>
6179
6180 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6181 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6182 (CLIBS): Add DEBUGINFOD_LIBS.
6183
f9b11e6b
ST
61842020-08-17 Sergei Trofimovich <siarheit@google.com>
6185
6186 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6187 'gdbarch_num_regs'.
6188
3ae7ab99
TT
61892020-08-17 Tom Tromey <tromey@adacore.com>
6190
6191 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6192 ada_get_decoded_value returns NULL.
6193
b017825f
TT
61942020-08-17 Tom Tromey <tromey@adacore.com>
6195
6196 * python/py-inferior.c (infpy_search_memory): Use
6197 gdb_py_object_from_ulongest.
6198 * python/py-infevents.c (create_inferior_call_event_object)
6199 (create_memory_changed_event_object): Use
6200 gdb_py_object_from_ulongest.
6201 * python/py-linetable.c (ltpy_entry_get_pc): Use
6202 gdb_py_object_from_ulongest.
6203
7635cf79
SM
62042020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * loc.c (class symbol_needs_eval_context): Fix indentation.
6207
f54be24b
SM
62082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6209
6210 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6211 bool.
6212
53d5a2a5
TV
62132020-08-17 Tom de Vries <tdevries@suse.de>
6214
6215 PR gdb/26393
6216 * gdbtypes.c (dump_dynamic_prop): New function.
6217 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6218
547ce8f0
TV
62192020-08-15 Tom de Vries <tdevries@suse.de>
6220
6221 PR backtrace/26390
6222 * stack.c (print_frame_args): Temporarily set the selected
6223 frame to FRAME while printing the frame's arguments.
6224
6ea815e7
PFC
62252020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6226
6227 PR breakpoints/26385
6228 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6229 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6230
6e562fa3
PFC
62312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6232
6233 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6234 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6235 and >= to check return value instead of == -1 and != -1.
6236
d369b608
SM
62372020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * utils.h (class gdb_argv) <as_array_view>: New method.
6240 * utils.c (gdb_argv_as_array_view_test): New.
6241 (_initialize_utils): Register selftest.
6242 * maint.c (maintenance_selftest): Use the new method.
6243
b31488a3
KR
62442020-08-13 Kamil Rytarowski <n54@gmx.com>
6245
6246 * target.h (supports_dumpcore, dumpcore): New
6247 function declarations.
6248 * target.c (supports_dumpcore, dumpcore): New
6249 functions.
6250 * target-delegates.c: Rebuild.
6251 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6252 and target_dumpcore ().
6253
002a3166
AM
62542020-08-13 Aaron Merey <amerey@redhat.com>
6255
6256 * debuginfod-support.c: Replace global variables with user_data.
6257
ece5bc8a
SM
62582020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * maint.c (maintenance_selftest): Split args and pass array_view
6261 to run_tests.
6262
6d8a0a5e
LM
62632020-08-12 Luis Machado <luis.machado@linaro.org>
6264
6265 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6266 type's length.
6267 Use %s and pulongest to print the length.
6268
7cf663a9
PA
62692020-08-12 Pedro Alves <palves@redhat.com>
6270
6271 * NEWS: Move "Multi-target debugging support" item to the
6272 "Changes since GDB 9" section.
6273
27c7b875
PA
62742020-08-12 Pedro Alves <palves@redhat.com>
6275
6276 PR gdb/26336
6277 * progspace.c (program_space::remove_objfile): Invalidate the
6278 frame cache.
6279
1796a2a1
TV
62802020-08-11 Tom de Vries <tdevries@suse.de>
6281
6282 * MAINTAINERS: Mark ms1 as deleted.
6283
f8e3fe0d
LM
62842020-08-10 Luis Machado <luis.machado@linaro.org>
6285
6286 PR gdb/26310
6287
6288 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6289 act accordingly.
6290 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6291 movz/str/stur/stp skipping behavior.
6292
cc308722
LM
62932020-08-10 Luis Machado <luis.machado@linaro.org>
6294
6295 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6296 struct user_sve_header instead of struct sve_context.
6297
041d9819
SM
62982020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * read.h (dwarf2_fetch_die_loc_sect_off,
6301 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6302 `void *` parameter with function_view.
6303 * read.c (dwarf2_fetch_die_loc_sect_off,
6304 dwarf2_fetch_die_loc_cu_off): Likewise.
6305 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6306 (per_cu_dwarf_call): Adjust.
6307 (get_frame_address_in_block_wrapper): Remove.
6308 (indirect_synthetic_pointer): Adjust.
6309 (get_ax_pc): Remove.
6310 (dwarf2_compile_expr_to_ax): Adjust.
6311
38f8aa06
TV
63122020-08-08 Tom de Vries <tdevries@suse.de>
6313
6314 PR build/26344
6315 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6316 constructor.
6317 * regcache.c (get_thread_arch_aspace_regcache): Same.
6318
a52b3ae2
TT
63192020-08-07 Tom Tromey <tromey@adacore.com>
6320
6321 * ravenscar-thread.c
6322 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6323 New method.
6324 (ravenscar_thread_target::wait): Check
6325 runtime_initialized.
6326 (ravenscar_thread_target::prepare_to_store)
6327 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6328 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6329 (ravenscar_thread_target::stopped_by_watchpoint)
6330 (ravenscar_thread_target::stopped_data_address)
6331 (ravenscar_thread_target::core_of_thread): Use
6332 scoped_restore_current_thread and
6333 set_base_thread_from_ravenscar_task.
6334
0e29517d
TT
63352020-08-07 Tom Tromey <tromey@adacore.com>
6336
6337 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6338
592f9bd7
TT
63392020-08-07 Tom Tromey <tromey@adacore.com>
6340
6341 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6342 update_inferior_ptid before update_thread_list.
6343 (temporarily_change_regcache_ptid): New class.
6344 (ravenscar_thread_target::fetch_registers)
6345 (ravenscar_thread_target::store_registers)
6346 (ravenscar_thread_target::prepare_to_store): Use base thread when
6347 forwarding operation.
6348
39e2018a
TT
63492020-08-07 Tom Tromey <tromey@adacore.com>
6350
6351 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6352 "is_pid" case.
6353
2080266b
TT
63542020-08-07 Tom Tromey <tromey@adacore.com>
6355
6356 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6357 New methods.
6358 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6359 first.
6360 (ravenscar_thread_target::add_thread): Rename from
6361 ravenscar_add_thread.
6362 (ravenscar_thread_target::update_thread_list): Use a lambda.
6363 (ravenscar_thread_target::xfer_partial): New method.
6364
78c02f21
TT
63652020-08-07 Tom Tromey <tromey@adacore.com>
6366
6367 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6368 gdb::function_view.
6369 (iterate_over_live_ada_tasks): Change type of argument.
6370 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6371 of argument.
6372
d5d833af
TT
63732020-08-07 Tom Tromey <tromey@adacore.com>
6374
6375 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6376 Remove.
6377 (ravenscar_thread_target::extra_thread_info): Remove.
6378 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6379 defer to target beneath for non-Ravenscar threads.
6380
a8ac85bb
TT
63812020-08-07 Tom Tromey <tromey@adacore.com>
6382
6383 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6384 get_base_thread_from_ravenscar_task>: Now methods.
6385 <m_cpu_map>: New member.
6386 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6387 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6388 (ravenscar_thread_target::task_is_currently_active): Update.
6389 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6390 Now a method.
6391 (ravenscar_thread_target::add_active_thread): Put initial thread
6392 into the m_cpu_map.
6393
550ab58d
TT
63942020-08-07 Tom Tromey <tromey@adacore.com>
6395
6396 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6397 event_ptid.
6398
e9546579
TT
63992020-08-07 Tom Tromey <tromey@adacore.com>
6400
6401 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6402 runtime_initialized.
6403
3d4470e5
TT
64042020-08-07 Tom Tromey <tromey@adacore.com>
6405
6406 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6407 add_active_thread.
6408 (ravenscar_thread_target::add_active_thread): Now public.
6409 (ravenscar_inferior_created): Call add_active_thread after pushing
6410 the target.
6411
888bdb2b
SM
64122020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6413
6414 * regcache.c (ptid_regcache_map): New type.
6415 (target_ptid_regcache_map): New type.
6416 (regcaches): Change type to target_ptid_regcache_map.
6417 (get_thread_arch_aspace_regcache): Update to regcaches' new
6418 type.
6419 (regcache_thread_ptid_changed): Likewise.
6420 (registers_changed_ptid): Likewise.
6421 (regcaches_size): Likewise.
6422 (regcaches_test): Update.
6423 (regcache_thread_ptid_changed): Update.
6424 * regcache.h (regcache_up): New type.
6425 * gdbsupport/ptid.h (hash_ptid): New struct.
6426
b161a60d
SM
64272020-08-07 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * observable.h (thread_ptid_changed): Add parameter
6430 `process_stratum_target *`.
6431 * infrun.c (infrun_thread_ptid_changed): Add parameter
6432 `process_stratum_target *` and use it.
6433 (selftests): New namespace.
6434 (infrun_thread_ptid_changed): New function.
6435 (_initialize_infrun): Register selftest.
6436 * regcache.c (regcache_thread_ptid_changed): Add parameter
6437 `process_stratum_target *` and use it.
6438 (regcache_thread_ptid_changed): New function.
6439 (_initialize_regcache): Register selftest.
6440 * thread.c (thread_change_ptid): Pass target to
6441 thread_ptid_changed observable.
6442
d2854d8d
CT
64432020-08-06 Caroline Tice <cmtice@google.com>
6444
fe4c3d43
SM
6445 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6446 (struct dwp_sections): Update field comments. Add loclists and
6447 rnglists fields.
6448 (struct virtual_v2_dwo_sections): Rename struct to
6449 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6450 size & offset fields for loclists and rnglists.
6451 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6452 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6453 skipping dummy type units.
6454 (create_dwp_hash_table): Update the large comment above the function to
6455 discuss Version 5 DWP files as well, with references. Update all the
6456 version checks in the function to check for version 5 as well. Add new
6457 section at the end to create dwp hash table for version 5.
6458 (create_dwp_v2_section): Rename function to
6459 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6460 Add V5 to error message text.
6461 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6462 into calls to create_dwp_v2_or_v5_section.
6463 (create_dwo_unit_in_dwp_v5): New function.
6464 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6465 check for version2; add else clause to handle version 5.
6466 (open_and_init_dwo_file): Add code to check dwarf version & only call
6467 create_debug_types_hash_table (with sections.types) if version is not 5;
6468 else call create_debug_type_hash_table, with sections.info.
6469 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6470 version 5.
6471 (dwarf2_locate_v5_dwp_sections): New function.
6472 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6473 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6474
159ed7d9
SM
64752020-08-06 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * regcache.h (class regcache): Remove friend
6478 registers_changed_ptid.
6479 <regcache_thread_ptid_changed>: Remove.
6480 <regcaches>: Remove.
6481 * regcache.c (regcache::regcaches): Rename to...
6482 (regcaches): ... this. Make static.
6483 (get_thread_arch_aspace_regcache): Update.
6484 (regcache::regcache_thread_ptid_changed): Rename to...
6485 (regcache_thread_ptid_changed): ... this. Update.
6486 (class regcache_access): Remove.
6487 (regcaches_test): Update.
6488 (_initialize_regcache): Update.
6489 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6490 <forward_list>.
6491
174981ae
SM
64922020-08-06 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * regcache.h (class regcache) <current_regcache>: Rename to...
6495 <regcaches>: ... this. Move doc here.
6496 * regcache.c (regcache::current_regcache) Rename to...
6497 (regcache::regcaches): ... this. Move doc to header.
6498 (get_thread_arch_aspace_regcache): Update.
6499 (regcache::regcache_thread_ptid_changed): Update.
6500 (registers_changed_ptid): Update.
6501 (class regcache_access) <current_regcache_size>: Rename to...
6502 <regcaches_size>: ... this.
6503 (current_regcache_test): Rename to...
6504 (regcaches_test): ... this.
6505 (_initialize_regcache): Update.
6506
ed908db6
VC
65072020-08-06 Victor Collod <vcollod@nvidia.com>
6508
6509 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6510
b5582ab7
KB
65112020-08-05 Kevin Buettner <kevinb@redhat.com>
6512
6513 * corelow.c (core_target::build_file_mappings): Don't output
6514 null pathname in warning.
6515
ea946b86
SM
65162020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6519 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6520 gdb.dwarf2/dw2-single-line-discriminators.exp,
6521 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6522
57d02173
TT
65232020-08-05 Tom Tromey <tromey@adacore.com>
6524
6525 PR rust/26197:
6526 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6527 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6528 Fix off-by-one and type size errors in ordinary case.
6529
5555c86d
TV
65302020-08-05 Tom de Vries <tdevries@suse.de>
6531
6532 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6533 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6534
97916bfe
SM
65352020-08-04 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * frame.h (frame_id_p): Return bool.
6538 (frame_id_artificial_p): Return bool.
6539 (frame_id_eq): Return bool.
6540 (has_stack_frames): Return bool.
6541 (get_selected_frame): Fix typo in comment.
6542 (get_frame_pc_if_available): Return bool.
6543 (get_frame_address_in_block_if_available): Return bool.
6544 (get_frame_func_if_available): Return bool.
6545 (read_frame_register_unsigned): Return bool.
6546 (get_frame_register_bytes): Return bool.
6547 (safe_frame_unwind_memory): Return bool.
6548 (deprecated_frame_register_read): Return bool.
6549 (frame_unwinder_is): Return bool.
6550 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6551 bool.
6552 <this_id::p>: Likewise.
6553 <prev_p>: Likewise.
6554 (frame_stash_add): Return bool.
6555 (get_frame_id): Use bool.
6556 (frame_id_build_special) Use bool.
6557 (frame_id_build_unavailable_stack): Use bool.
6558 (frame_id_build): Use bool.
6559 (frame_id_p): Return bool, use true/false instead of 1/0.
6560 (frame_id_artificial_p): Likewise.
6561 (frame_id_eq): Likewise.
6562 (frame_id_inner): Likewise.
6563 (get_frame_func_if_available): Likewise.
6564 (read_frame_register_unsigned): Likewise.
6565 (deprecated_frame_register_read): Likewise.
6566 (get_frame_register_bytes): Likewise.
6567 (has_stack_frames): Likewise.
6568 (inside_main_func): Likewise.
6569 (inside_entry_func): Likewise.
6570 (get_frame_pc_if_available): Likewise.
6571 (get_frame_address_in_block_if_available): Likewise.
6572 (frame_unwinder_is): Likewise.
6573 (safe_frame_unwind_memory): Likewise.
6574 (frame_unwind_arch): Likewise.
6575
fedfee88
SM
65762020-08-04 Simon Marchi <simon.marchi@efficios.com>
6577
6578 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6579 type to cached_copy_status.
6580 (fprintf_frame): Adjust.
6581 (get_frame_func_if_available): Adjust.
6582 (frame_cleanup_after_sniffer): Adjust.
6583
6cfa9b59
MW
65842020-08-04 Mark Wielaard <mark@klomp.org>
6585
6586 * MAINTAINERS (Write After Approval): Update email address.
6587
66d6346b
SM
65882020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6591 dynamic_prop::const_val.
6592
8a6d5e35
SM
65932020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6596 dynamic_prop::kind.
6597
51d6067d
SM
65982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6601
b26e2ae7
JM
66022020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6603
6604 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6605
39791af2
JM
66062020-08-04 Weimin Pan <weimin.pan@oracle.com>
6607 Jose E. Marchesi <jose.marchesi@oracle.com>
6608
6609 * configure.tgt: Add entry for bpf-*-*.
6610 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6611 (ALLDEPFILES): Add bpf-tdep.c.
6612 * bpf-tdep.c: New file.
6613 * MAINTAINERS: Add bpf target and maintainer.
6614 * NEWS: Mention the support for the new target.
6615
521894aa
TV
66162020-08-04 Tom de Vries <tdevries@suse.de>
6617
6618 PR symtab/23270
6619 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6620 Error.
6621
5d6356e9
JB
66222020-08-03 John Baldwin <jhb@FreeBSD.org>
6623
6624 * syscalls/freebsd.xml: Regenerate.
6625
0cf82b81
JB
66262020-08-03 John Baldwin <jhb@FreeBSD.org>
6627
6628 * syscalls/update-freebsd.sh: Fix usage and year range.
6629
8f34b746
TV
66302020-08-03 Tom de Vries <tdevries@suse.de>
6631
6632 PR symtab/26333
6633 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6634 DW_LNE_lo_user/DW_LNE_hi_user range.
6635
5e500d33
SM
66362020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6637
6638 PR ada/26318
6639 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6640 kind.
6641
78319c15
TBA
66422020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6643
6644 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6645
4c55e970
TBA
66462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6647
6648 * breakpoint.c (set_breakpoint_condition): Update the condition
6649 expressions after checking that the input condition string parses
6650 successfully and does not contain junk at the end.
6651
1e620590
TBA
66522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6653
6654 * breakpoint.c (set_breakpoint_condition): Update the
6655 condition string after parsing the new condition successfully.
6656
c8693053
RO
66572020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6658
6659 * proc-api.c (_STRUCTURED_PROC): Don't define.
6660 * proc-events.c: Likewise.
6661 * proc-flags.c: Likewise.
6662 * proc-why.c: Likewise.
6663 * procfs.c: Likewise.
6664
6665 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6666 * configure, config.in: Regenerate.
6667
5a99adb8
TV
66682020-07-30 Tom de Vries <tdevries@suse.de>
6669
6670 PR build/26320
6671 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6672 m_red/m_green/m_blue in a union.
6673
8ba83e91
TV
66742020-07-29 Tom de Vries <tdevries@suse.de>
6675
6676 PR tdep/26280
6677 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6678
f75a0693
AB
66792020-07-28 Tom Tromey <tromey@adacore.com>
6680
6681 PR symtab/26270:
6682 * symtab.h (find_pc_partial_function_sym): Declare.
6683 * cli/cli-cmds.c (disassemble_command): Use
6684 find_pc_partial_function_sym. Check asm_demangle.
6685 * blockframe.c (cache_pc_function_sym): New global.
6686 (cache_pc_function_name): Remove.
6687 (clear_pc_function_cache): Update.
6688 (find_pc_partial_function_sym): New function, from
6689 find_pc_partial_function.
6690 (find_pc_partial_function): Rewrite using
6691 find_pc_partial_function_sym.
6692
16f3242c
TT
66932020-07-28 Tom Tromey <tromey@adacore.com>
6694
6695 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6696 help. Add usage.
6697
4888741a
TT
66982020-07-28 Tom Tromey <tromey@adacore.com>
6699
6700 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6701 <DW_OP_GNU_variable_value>: Cast to address type.
6702
4d46f402
KR
67032020-07-28 Kamil Rytarowski <n54@gmx.com>
6704
6705 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6706 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6707 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6708 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6709 (nbsd_get_siginfo_type): New.
6710 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6711 (_initialize_nbsd_tdep): New.
6712
d70f978b
L
67132020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6714
6715 PR binutils/26301
6716 * configure: Regenerated.
6717
377170fa
L
67182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6719
6720 PR binutils/26301
6721 * configure: Regenerated.
6722
43d5901d
AB
67232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 * python/py-frame.c: Remove 'user-regs.h' include.
6726 (frapy_read_register): Rewrite to make use of
6727 gdbpy_parse_register_id.
6728 * python/py-registers.c (gdbpy_parse_register_id): New function,
6729 moved here from python/py-unwind.c. Updated the return type, and
6730 also accepts register descriptor objects.
6731 * python/py-unwind.c: Remove 'user-regs.h' include.
6732 (pyuw_parse_register_id): Moved to python/py-registers.c.
6733 (unwind_infopy_add_saved_register): Update to use
6734 gdbpy_parse_register_id.
6735 (pending_framepy_read_register): Likewise.
6736 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6737
14fa8fb3
AB
67382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6739
6740 * python/py-registers.c: Add 'user-regs.h' include.
6741 (register_descriptor_iter_find): New function.
6742 (register_descriptor_iterator_object_methods): New static global
6743 methods array.
6744 (register_descriptor_iterator_object_type): Add pointer to methods
6745 array.
6746
ddce1758
JB
67472020-07-27 John Baldwin <jhb@FreeBSD.org>
6748
6749 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6750 for all architectures on FreeBSD 11.3 and later.
6751
a4089f52
TT
67522020-07-27 Tom Tromey <tromey@adacore.com>
6753
6754 * gcore.h (load_corefile): Don't declare.
6755
95420d30
TV
67562020-07-27 Tom de Vries <tdevries@suse.de>
6757
6758 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6759 * config.in: Regenerate.
6760 * configure: Regenerate.
6761
05a6b8c2
EZ
67622020-07-26 Eli Zaretskii <eliz@gnu.org>
6763
6764 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6765 ws2tcpip.h. When checking whether socklen_t type is defined, use
6766 ws2tcpip.h if it is available and sys/socket.h isn't.
6767 * configure: Regenerate.
6768 * config.in: Regenerate.
6769
e79eb02f
AB
67702020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 PR fortran/23051
6773 PR fortran/26139
6774 * valops.c (value_ind): Pass address to
6775 readjust_indirect_value_type.
6776 * value.c (readjust_indirect_value_type): Make parameter
6777 non-const, and add extra address parameter. Resolve original type
6778 before using it.
6779 * value.h (readjust_indirect_value_type): Update function
6780 signature and comment.
6781
876518dd
TV
67822020-07-25 Tom de Vries <tdevries@suse.de>
6783
6784 PR symtab/26243
6785 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6786 entries.
6787
f6720b1c
AM
67882020-07-24 Aaron Merey <amerey@redhat.com>
6789
6790 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6791 * configure: Rebuild.
6792
513487e1
KB
67932020-07-23 Kevin Buettner <kevinb@redhat.com>
6794
6795 PR corefiles/26294
6796 * corelow.c (_initialize_corelow): Add period to help text
6797 for "maintenance print core-file-backed-mappings".
6798
e7bc9db8
PA
67992020-07-23 Pedro Alves <pedro@palves.net>
6800
6801 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6802 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6803 meanwhile.
6804 * frame.c (frame_cache_generation, get_frame_cache_generation):
6805 New.
6806 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6807 (get_prev_frame_if_no_cycle): On exception, don't touch
6808 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6809 * frame.h (get_frame_cache_generation): Declare.
6810
90fcc466
TV
68112020-07-23 Tom de Vries <tdevries@suse.de>
6812
6813 PR tui/26282
6814 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6815 New default constructor.
6816
78344df7
AB
68172020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6820 exclude non-statement entries.
6821
b089853a
KB
68222020-07-22 Kevin Buettner <kevinb@redhat.com>
6823
6824 * NEWS (New commands): Mention new command
6825 "maintenance print core-file-backed-mappings".
6826
09c2f5d4
KB
68272020-07-22 Kevin Buettner <kevinb@redhat.com>
6828
6829 * corelow.c (gdbcmd.h): Include.
6830 (core_target::info_proc_mappings): New method.
6831 (get_current_core_target): New function.
6832 (maintenance_print_core_file_backed_mappings): New function.
6833 (_initialize_corelow): Add core-file-backed-mappings to
6834 "maint print" commands.
6835
9c5ec5c2 68362020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6837
9c5ec5c2
KB
6838 * linux-tdep.c (dump_note_entry_p): New function.
6839 (linux_dump_mapping_p_ftype): New typedef.
6840 (linux_find_memory_regions_full): Add new parameter,
6841 should_dump_mapping_p.
6842 (linux_find_memory_regions): Adjust call to
6843 linux_find_memory_regions_full.
6844 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6845 call to linux_find_memory_regions_full.
6846
db082f59
KB
68472020-07-22 Kevin Buettner <kevinb@redhat.com>
6848
6849 * corelow.c (solist.h, unordered_map): Include.
6850 (class core_target): Add field m_core_file_mappings and
6851 method build_file_mappings.
6852 (core_target::core_target): Call build_file_mappings.
6853 (core_target::~core_target): Free memory associated with
6854 m_core_file_mappings.
6855 (core_target::build_file_mappings): New method.
6856 (core_target::xfer_partial): Use m_core_file_mappings
6857 for memory transfers.
6858 * linux-tdep.c (linux_read_core_file_mappings): New
6859 function.
6860 (linux_core_info_proc_mappings): Rewrite to use
6861 linux_read_core_file_mappings.
6862 (linux_init_abi): Register linux_read_core_file_mappings.
6863
7e183d27
KB
68642020-07-22 Kevin Buettner <kevinb@redhat.com>
6865
6866 * arch-utils.c (default_read_core_file_mappings): New function.
6867 * arch-utils.c (default_read_core_file_mappings): Declare.
6868 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6869 * gdbarch.h, gdbarch.c: Regenerate.
6870
2735d421
KB
68712020-07-22 Kevin Buettner <kevinb@redhat.com>
6872
6873 PR corefiles/25631
6874 * corelow.c (core_target:xfer_partial): Revise
6875 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6876 case after first checking the stratum beneath the core
6877 target.
6878 (has_all_memory): Return true.
6879 * target.c (raw_memory_xfer_partial): Revise comment
6880 regarding use of has_all_memory.
6881
e56cb451
KB
68822020-07-22 Kevin Buettner <kevinb@redhat.com>
6883
6884 * exec.h (section_table_xfer_memory): Revise declaration,
6885 replacing section name parameter with an optional callback
6886 predicate.
6887 * exec.c (section_table_xfer_memory): Likewise.
6888 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6889 of section_table_xfer_memory.
6890
32fa152e
TT
68912020-07-22 Tom Tromey <tromey@adacore.com>
6892
6893 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6894 lookup_symbol_search_name.
6895
a67a1c41
AB
68962020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6897
6898 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6899 redundant local variable.
6900 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6901 reference, not pointer, update code accordingly.
6902
a7b4ff4f
SM
69032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6904 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6905
6906 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6907 * jit.c (jit_breakpoint_re_set_internal): Use the
6908 `skip_jit_symbol_lookup` field.
6909
2340e834
SM
69102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6911 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6912
6913 * jit.c (jit_read_descriptor): Define the descriptor address once,
6914 use twice.
6915 (jit_breakpoint_deleted): Move the declaration of the loop variable
6916 `iter` into the loop header.
6917 (jit_breakpoint_re_set_internal): Move the declaration of the local
6918 variable `objf_data` to the first point of definition.
6919 (jit_event_handler): Move the declaration of local variables
6920 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6921 Rename `objf` to `jited`.
6922
c1072906
SM
69232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6926 Remove.
6927 * jit.c (get_jiter_objfile_data): Update.
6928
c8474dc3
TBA
69292020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6930 Simon Marchi <simon.marchi@polymtl.ca>
6931
6932 * jit.c (struct jit_program_space_data): Remove.
6933 (jit_program_space_key): Remove.
6934 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6935 stuff.
6936 (get_jit_program_space_data): Remove.
6937 (jit_breakpoint_deleted): Iterate on all of the program space's
6938 objfiles.
6939 (jit_inferior_init): Likewise.
6940 (jit_breakpoint_re_set_internal): Likewise. Also change return
6941 type to void.
6942 (jit_breakpoint_re_set): Pass current_program_space to
6943 jit_breakpoint_re_set_internal.
6944
77208eb7
SM
69452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * jit.h (struct jiter_objfile_data) <cached_code_address,
6948 jit_breakpoint>: Move to here from ...
6949 * jit.c (jit_program_space_data): ... here.
6950 (jiter_objfile_data::~jiter_objfile_data): Update.
6951 (jit_breakpoint_deleted): Update.
6952 (jit_breakpoint_re_set_internal): Update.
6953
8c1c720f
SM
69542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6955
6956 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6957 checks.
6958 (jit_read_descriptor): Remove NULL check.
6959 (jit_event_handler): Add an assertion.
6960
0e74a041
SM
69612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6962
6963 * jit.h (struct jit_objfile_data): Split into...
6964 (struct jiter_objfile_data): ... this ...
6965 (struct jited_objfile_data): ... and this.
6966 * objfiles.h (struct objfile) <jit_data>: Remove.
6967 <jiter_data, jited_data>: New fields.
6968 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6969 (jiter_objfile_data::~jiter_objfile_data): ... this.
6970 (get_jit_objfile_data): Rename to ...
6971 (get_jiter_objfile_data): ... this.
6972 (add_objfile_entry): Update.
6973 (jit_read_descriptor): Use get_jiter_objfile_data.
6974 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6975 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6976 (jit_inferior_exit_hook): Use objfile's jited_data field.
6977
238b5c9f
SM
69782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6979
6980 * jit.h: Forward-declare `struct minimal_symbol`.
6981 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6982 constructor, destructor, and an objfile* field.
6983 * jit.c (jit_objfile_data): Remove.
6984 (struct jit_objfile_data): Migrate from here to jit.h.
6985 (jit_objfile_data::~jit_objfile_data): New destructor
6986 implementation with code moved from free_objfile_data.
6987 (free_objfile_data): Delete.
6988 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6989 (jit_find_objf_with_entry_addr): Ditto.
6990 (jit_inferior_exit_hook): Ditto.
6991 (_initialize_jit): Remove the call to
6992 register_objfile_data_with_cleanup.
6993 * objfiles.h (struct objfile) <jit_data>: New field.
6994
fe053b9e
TBA
69952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6996
6997 * jit.h: Forward-declare `struct objfile`.
6998 (jit_event_handler): Add a second parameter, the JITer objfile.
6999 * jit.c (jit_read_descriptor): Change the signature to take the
7000 JITer objfile as an argument instead of the jit_program_space_data.
7001 (jit_inferior_init): Update the call to jit_read_descriptor.
7002 (jit_event_handler): Use the new JITer objfile argument when calling
7003 jit_read_descriptor.
7004 * breakpoint.c (handle_jit_event): Update the call to
7005 jit_event_handler to pass the JITer objfile.
7006
4cec0c66
JB
70072020-07-21 John Baldwin <jhb@FreeBSD.org>
7008
7009 * gdbarch.c: Regenerate.
7010 * gdbarch.h: Regenerate.
7011 * gdbarch.sh (handle_segmentation_fault): Remove method.
7012 * infrun.c (handle_segmentation_fault): Remove.
7013 (print_signal_received_reason): Remove call to
7014 handle_segmentation_fault.
7015
0e42f66a
JB
70162020-07-21 John Baldwin <jhb@FreeBSD.org>
7017
7018 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7019 Rename to sparc64_linux_report_signal_info and add siggnal
7020 argument.
7021 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7022 instead of sparc64_linux_handle_segmentation_fault.
7023
77bdfeb2
JB
70242020-07-21 John Baldwin <jhb@FreeBSD.org>
7025
7026 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7027 i386_linux_report_signal_info instead of
7028 i386_linux_handle_segmentation_fault.
7029 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7030 to i386_linux_report_signal_info and add siggnal argument.
7031 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7032 of i386_linux_handle_segmentation_fault.
7033 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7034 to i386_linux_report_signal_info and add siggnal argument.
7035
ad97bfc5
JB
70362020-07-21 John Baldwin <jhb@FreeBSD.org>
7037
7038 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7039 hook if present.
7040
272bb05c
JB
70412020-07-21 John Baldwin <jhb@FreeBSD.org>
7042
7043 * gdbarch.c: Regenerate.
7044 * gdbarch.h: Regenerate.
7045 * gdbarch.sh (report_signal_info): New method.
7046 * infrun.c (print_signal_received_reason): Invoke gdbarch
7047 report_signal_info hook if present.
7048
baf8791e
AB
70492020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * python/py-registers.c : Add 'unordered_map' include.
7052 (gdbpy_new_reggroup): Renamed to...
7053 (gdbpy_get_reggroup): ...this. Update to only create register
7054 group descriptors when needed.
7055 (gdbpy_reggroup_iter_next): Update.
7056
f7306dac
AB
70572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * python/py-registers.c (gdbpy_register_object_data): New static
7060 global.
7061 (gdbpy_register_object_data_init): New function.
7062 (gdbpy_new_register_descriptor): Renamed to...
7063 (gdbpy_get_register_descriptor): ...this, and update to reuse
7064 existing register descriptors where possible.
7065 (gdbpy_register_descriptor_iter_next): Update.
7066 (gdbpy_initialize_registers): Register new gdbarch data.
7067
05c309a8
SM
70682020-07-21 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * linux-nat.c (stopped_pids): Make static.
7071
d1fd641e
SM
70722020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 PR ada/26235
7075 * gdbtypes.c (ada_discrete_type_low_bound,
7076 ada_discrete_type_high_bound): Handle undefined bounds.
7077
1de14d77
KR
70782020-07-21 Kamil Rytarowski <n54@gmx.com>
7079
7080 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7081 declaration.
7082 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7083 function.
7084
ed810cc7
JB
70852020-07-20 John Baldwin <jhb@FreeBSD.org>
7086
7087 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7088 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7089 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7090 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7091 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7092 method.
7093
ae5369e7
LC
70942020-07-20 Ludovic Courtès <ludo@gnu.org>
7095
7096 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7097 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7098 which are deprecated in Guile 3.0.
7099 * configure.ac (try_guile_versions): Add "guile-3.0".
7100 * configure (try_guile_versions): Regenerate.
7101 * NEWS: Update entry.
7102
68cf161c
LC
71032020-07-20 Ludovic Courtès <ludo@gnu.org>
7104 Doug Evans <dje@google.com>
7105
7106 PR gdb/21104
7107 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7108 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7109 USING_GUILE_BEFORE_2_2.
7110 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7111 Change type to 'scm_t_port_type *'.
7112 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7113 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7114 parameter and honor it. Update callers.
7115 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7116 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7117 functions.
7118 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7119 USING_GUILE_BEFORE_2_2.
7120 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7121 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7122 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7123 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7124 and 'SCM_PORT_TYPE'.
7125 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7126 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7127 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7128 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7129 [!USING_GUILE_BEFORE_2_2]: New functions.
7130 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7131 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7132 'gdbscm_memory_port_read'.
7133 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7134 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7135 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7136 function.
7137 (ioscm_init_memory_port): Remove.
7138 (ioscm_init_memory_port_stream): New function
7139 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7140 function.
7141 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7142 Return scm_from_uint (0).
7143 (gdbscm_set_memory_port_read_buffer_size_x)
7144 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7145 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7146 Return scm_from_uint (0).
7147 (gdbscm_set_memory_port_write_buffer_size_x)
7148 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7149 * configure.ac (try_guile_versions): Add "guile-2.2".
7150 * configure: Regenerate.
7151 * NEWS: Add entry.
7152
aee91db3
TT
71532020-07-18 Tom Tromey <tom@tromey.com>
7154
7155 * linux-nat.c (linux_multi_process): Remove.
7156 (linux_nat_target::supports_multi_process): Return true.
7157
0e267416
AB
71582020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7159
7160 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7161 (riscv_lookup_target_description): Return pointer out of
7162 unique_ptr.
7163 * target-descriptions.c (allocate_target_description): Add
7164 comment.
7165 (target_desc_deleter::operator()): Likewise.
7166 * target-descriptions.h (struct target_desc_deleter): Moved to
7167 gdbsupport/tdesc.h.
7168 (target_desc_up): Likewise.
7169
f80c8ec4
TT
71702020-07-17 Tom Tromey <tromey@adacore.com>
7171
7172 * linux-nat.c (linux_nat_target::supports_non_stop)
7173 (linux_nat_target::always_non_stop_p): Use "true".
7174 (linux_nat_target::supports_disable_randomization): Use "true" and
7175 "false".
7176
d0ce17d8
CT
71772020-07-16 Caroline Tice <cmtice@google.com>
7178
7179 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7180 (RNGLIST_HEADER_SIZE64): New constant definition.
7181 (struct dwop_section_names): Add rnglists_dwo.
7182 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7183 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7184 (struct dwo_sections): Add rnglists field.
7185 (read_attribut_reprocess): Add tag parameter.
7186 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7187 (cu_debug_rnglists_section): New function (decl & definition).
7188 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7189 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7190 die whose range is being checked; get rnglist section from
7191 cu_debug_rnglists_section, to get from either objfile or dwo file as
7192 appropriate. Add cases for DW_RLE_base_addressx,
7193 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7194 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7195 test inside if-condition and updating complaint message.
7196 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7197 dwarf2_rnglists_process.
7198 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7199 dwarf2_ranges_process.
7200 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7201 need_ranges_base and update comment appropriately. Also pass die tag
7202 to dwarf2_ranges_read.
7203 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7204 need_ranges_base and update comment appropriately. Also pass die tag
7205 to dwarf2_ranges_process.
7206 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7207 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7208 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7209 need_ranges_base and update comment appropriately. Also pass die tag
7210 to read_attribute_reprocess and dwarf2_ranges_read.
7211 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7212 and update function comment appropriately.
7213 (read_loclist_index): Call read_loclists_rnglists_header instead of
7214 read_loclist_header.
7215 (read_rnglist_index): New function.
7216 (read_attribute_reprocess): Add tag parameter. Add code for
7217 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7218 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7219
3dcc261c
AB
72202020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7221
7222 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7223 being resolved.
7224
ccb9eba6
AB
72252020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * arch-utils.c (show_architecture): Update formatting of messages.
7228
cf88be68
SM
72292020-07-12 Simon Marchi <simon.marchi@efficios.com>
7230
7231 * gdbtypes.h (struct type) <bounds>: Handle array and string
7232 types.
7233 * ada-lang.c (assign_aggregate): Use type::bounds on
7234 array/string type.
7235 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7236 * c-varobj.c (c_number_of_children): Likewise.
7237 (c_describe_child): Likewise.
7238 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7239 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7240 (f_type_print_base): Likewise.
7241 * f-valprint.c (f77_array_offset_tbl): Likewise.
7242 (f77_get_upperbound): Likewise.
7243 (f77_print_array_1): Likewise.
7244 * guile/scm-type.c (gdbscm_type_range): Likewise.
7245 * m2-typeprint.c (m2_array): Likewise.
7246 (m2_is_long_set_of_type): Likewise.
7247 * m2-valprint.c (get_long_set_bounds): Likewise.
7248 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7249 * python/py-type.c (typy_range): Likewise.
7250 * rust-lang.c (rust_internal_print_type): Likewise.
7251 * type-stack.c (type_stack::follow_types): Likewise.
7252 * valarith.c (value_subscripted_rvalue): Likewise.
7253 * valops.c (value_cast): Likewise.
7254
509971ae
SM
72552020-07-12 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7258 callers to use the equivalent accessor methods.
7259
107406b7
SM
72602020-07-12 Simon Marchi <simon.marchi@efficios.com>
7261
7262 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7263 (struct type) <bit_stride>: New method.
7264 (TYPE_BIT_STRIDE): Remove.
7265 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7266
bb789949
SM
72672020-07-12 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7270 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7271 callers to use the equivalent accessor methods instead.
7272
39498edb
SM
72732020-07-12 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7276 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7277 callers to use the equivalent accessor methods instead.
7278
3b606f38
SM
72792020-07-12 Simon Marchi <simon.marchi@efficios.com>
7280
7281 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7282 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7283 to use dynamic_prop::kind.
7284
064d9cb9
SM
72852020-07-12 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7288 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7289 to get the bound property's kind and check against
7290 PROP_UNDEFINED.
7291
5537ddd0
SM
72922020-07-12 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7295 all callers to use type::range_bounds followed by
7296 dynamic_prop::{low,high}.
7297
8c2e4e06
SM
72982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7299
7300 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7301 const_val, set_const_val, baton, set_locexpr, set_loclist,
7302 set_addr_offset, variant_parts, set_variant_parts,
7303 original_type, set_original_type>: New methods.
7304 <kind>: Rename to...
7305 <m_kind>: ... this. Update all users to use the new methods
7306 instead.
7307 <data>: Rename to...
7308 <m_data>: ... this. Update all users to use the new methods
7309 instead.
7310
7c6f2712
SM
73112020-07-12 Simon Marchi <simon.marchi@efficios.com>
7312
7313 * gdbtypes.c (get_discrete_bounds): Return failure if
7314 the range type's bounds are not both defined and constant
7315 values.
7316 (get_array_bounds): Update comment. Remove undefined bound check.
7317
599088e3
SM
73182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7319
7320 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7321 the type::bounds method directly.
7322
c4dfcb36
SM
73232020-07-12 Simon Marchi <simon.marchi@efficios.com>
7324
7325 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7326 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7327 are used to set the range type's bounds to use set_bounds.
7328
0a278aa7
PW
73292020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7330
7331 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7332
cce20f10
PA
73332020-07-10 Pedro Alves <pedro@palves.net>
7334
7335 * gdbthread.h (inferior_ref): Define.
7336 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7337 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7338 * thread.c
7339 (scoped_restore_current_thread::restore):
7340 Adjust to gdb::ref_ptr.
7341 (scoped_restore_current_thread::~scoped_restore_current_thread):
7342 Remove manual decref handling.
7343 (scoped_restore_current_thread::scoped_restore_current_thread):
7344 Adjust to use
7345 inferior_ref::new_reference/thread_info_ref::new_reference.
7346 Incref the thread before calling get_frame_id instead of after.
7347 Let TARGET_CLOSE_ERROR propagate.
7348
6d7aa592
PA
73492020-07-10 Pedro Alves <pedro@palves.net>
7350
7351 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7352 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7353 NOT_AVAILABLE_ERROR.
7354 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7355 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7356
b3e3a4c1
SM
73572020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7358 Pedro Alves <pedro@palves.net>
7359
7360 PR gdb/26199
7361 * infrun.c (threads_are_resumed_pending_p): Delete.
7362 (do_target_wait): Remove threads_are_executing and
7363 threads_are_resumed_pending_p checks from the inferior_matches
7364 lambda. Update comments.
7365
d6cc5d98
PA
73662020-07-10 Pedro Alves <pedro@palves.net>
7367
7368 PR gdb/26199
7369 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7370 executing threads.
7371
7d3badc6
PA
73722020-07-10 Pedro Alves <pedro@palves.net>
7373
7374 PR gdb/26199
7375 * infrun.c (handle_no_resumed): Handle multiple targets.
7376
42bd97a6
PA
73772020-07-10 Pedro Alves <pedro@palves.net>
7378
7379 PR gdb/26199
7380 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7381 target_is_async_p.
7382
43667cc6
PA
73832020-07-10 Pedro Alves <pedro@palves.net>
7384
7385 PR gdb/26199
7386 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7387 threads, not all threads.
7388
96118d11
PA
73892020-07-10 Pedro Alves <pedro@palves.net>
7390
7391 PR gdb/26199
7392 * remote.c (remote_target::open_1): Pass remote target pointer as
7393 data to create_async_event_handler.
7394 (remote_async_inferior_event_handler): Mark async event handler
7395 before returning if the remote target still has either pending
7396 events or unacknowledged notifications.
7397
54904d81
JB
73982020-07-10 John Baldwin <jhb@FreeBSD.org>
7399
7400 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7401 declaration.
7402 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7403 function.
7404
f37e5866
JB
74052020-07-09 John Baldwin <jhb@FreeBSD.org>
7406
7407 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7408 inferior_ptid.
7409
fc238d4a
JB
74102020-07-09 John Baldwin <jhb@FreeBSD.org>
7411
7412 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7413 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7414 AT_FREEBSD_PS_STRINGS.
7415
6e2469ff
HD
74162020-07-08 Hannes Domani <ssbssa@yahoo.de>
7417
7418 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7419 of debugfile path on Windows.
7420
d1076c41
JB
74212020-07-08 John Baldwin <jhb@FreeBSD.org>
7422
7423 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7424 argument to 'data'.
7425
15f3b077
TT
74262020-07-08 Tom Tromey <tromey@adacore.com>
7427
7428 * ada-lang.c (ada_exception_message_1): Use read_memory.
7429
9fc501fd
AB
74302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 PR python/22748
7433 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7434 special handling for inline frames.
7435 * findvar.c (value_of_register_lazy): Skip inline frames when
7436 creating lazy register values.
7437 * frame.c (frame_id_computed_p): Delete definition.
7438 * frame.h (frame_id_computed_p): Delete declaration.
7439
64cb3757
AB
74402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7441
7442 * NEWS: Mention additions to Python API.
7443 * python/py-arch.c (archpy_register_groups): New function.
7444 (arch_object_methods): Add 'register_groups' method.
7445 * python/py-registers.c (reggroup_iterator_object): New struct.
7446 (reggroup_object): New struct.
7447 (gdbpy_new_reggroup): New function.
7448 (gdbpy_reggroup_to_string): New function.
7449 (gdbpy_reggroup_name): New function.
7450 (gdbpy_reggroup_iter): New function.
7451 (gdbpy_reggroup_iter_next): New function.
7452 (gdbpy_new_reggroup_iterator): New function
7453 (gdbpy_initialize_registers): Register new types.
7454 (reggroup_iterator_object_type): Define new Python type.
7455 (gdbpy_reggroup_getset): New static global.
7456 (reggroup_object_type): Define new Python type.
7457 * python/python-internal.h
7458
0f767f94
AB
74592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7460
7461 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7462 * python/py-arch.c (archpy_registers): New function.
7463 (arch_object_methods): Add 'registers' method.
7464 * python/py-registers.c: New file.
7465 * python/python-internal.h
7466 (gdbpy_new_register_descriptor_iterator): Declare.
7467 (gdbpy_initialize_registers): Declare.
7468 * python/python.c (do_start_initialization): Call
7469 gdbpy_initialize_registers.
7470 * NEWS: Mention additions to the Python API.
7471
87dbc774
AB
74722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * NEWS: Mention new Python API method.
7475 * python/py-unwind.c (pending_framepy_architecture): New function.
7476 (pending_frame_object_methods): Add architecture method.
7477
3bc98c0c
AB
74782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7479
7480 * gdbarch.c: Regenerate.
7481 * gdbarch.h: Regenerate.
7482 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7483 (gdbarch_data): Use internal_error for the case where
7484 deprecated_set_gdbarch_data was originally needed.
7485 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7486 and use passed in obstack.
7487 (libunwind_frame_set_descr): Should no longer get back NULL from
7488 gdbarch_data.
7489 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7490 type.
7491 * user-regs.c (user_regs_init): Update parameters, and use passed
7492 in obstack.
7493 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7494 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7495
d8cc8af6
TV
74962020-07-06 Tom de Vries <tdevries@suse.de>
7497
7498 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7499 End-Of-Sequence in lte_is_less_than.
7500 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7501 "gdb: Don't reorder line table entries too much when sorting".
7502
947f7597
TV
75032020-07-06 Tom de Vries <tdevries@suse.de>
7504
7505 PR tui/26205
7506 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7507
1e7c1b22
TV
75082020-07-05 Tom de Vries <tdevries@suse.de>
7509
7510 PR build/26187
7511 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7512 std::uncaught_exceptions instead of deprecated
7513 std::uncaught_exception.
7514
a36158ec
SM
75152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7516
7517 * macroexp.h (macro_stringify): Return
7518 gdb::unique_xmalloc_ptr<char>.
7519 * macroexp.c (macro_stringify): Likewise.
7520 * macrotab.c (fixup_definition): Update.
7521
14d960c8
SM
75222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7523
7524 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7525 (lex_one_token): Update.
7526 * macroexp.c (struct macro_buffer) <release>: Return
7527 gdb::unique_xmalloc_ptr<char>.
7528 (macro_stringify): Update.
7529 (macro_expand): Update.
7530 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7531 * macroexp.h (macro_expand_next): Likewise.
7532
211d5b1c
SM
75332020-07-02 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * macroexp.h (macro_lookup_ftype): Remove.
7536 (macro_expand, macro_expand_once, macro_expand_next): Remove
7537 lookup function parameters, add scope parameter.
7538 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7539 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7540 * macroscope.h (standard_macro_lookup): Change parameter type
7541 to macro_scope.
7542 * macroscope.c (standard_macro_lookup): Likewise.
7543 * c-exp.y (lex_one_token): Update.
7544 * macrocmd.c (macro_expand_command): Likewise.
7545 (macro_expand_once_command): Likewise.
7546
b1a35af2
SM
75472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * inf-loop.c (inferior_event_handler): Remove client_data param.
7550 * inf-loop.h (inferior_event_handler): Likewise.
7551 * infcmd.c (step_1): Adjust.
7552 * infrun.c (proceed): Adjust.
7553 (fetch_inferior_event): Remove client_data param.
7554 (infrun_async_inferior_event_handler): Adjust.
7555 * infrun.h (fetch_inferior_event): Remove `void *` param.
7556 * linux-nat.c (handle_target_event): Adjust.
7557 * record-btrace.c (record_btrace_handle_async_inferior_event):
7558 Adjust.
7559 * record-full.c (record_full_async_inferior_event_handler):
7560 Adjust.
7561 * remote.c (remote_async_inferior_event_handler): Adjust.
7562
1cdf9e33
TT
75632020-07-01 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7566 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7567
32c1e210
TT
75682020-07-01 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7571 tui_gen_win_info.
7572 (tui_win_info::make_window): Merge with
7573 tui_gen_win_info::make_window.
7574 (tui_win_info::make_visible): Move from tui_gen_win_info.
7575 * tui/tui-win.c (tui_win_info::max_width): Move from
7576 tui_gen_win_info.
7577 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7578 type.
7579 <window_factory>: Likewise.
7580 * tui/tui-layout.c (tui_win_info::resize): Move from
7581 tui_gen_win_info.
7582 (make_standard_window): Change return type.
7583 (get_locator_window, tui_get_window_by_name): Likewise.
7584 (tui_layout_window::apply): Remove a cast.
7585 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7586 (struct tui_win_info): Merge with tui_gen_win_info.
7587 (struct tui_gen_win_info): Remove.
7588
a30cb6da
TT
75892020-07-01 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-stack.h (struct tui_locator_window): Derive from
7592 tui_win_info.
7593 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7594 <can_box>: New method.
7595
1eb2161f
TT
75962020-07-01 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7599
7134f2eb
TT
76002020-07-01 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-regs.c (tui_data_window::display_registers_from)
7603 (tui_data_window::display_registers_from)
7604 (tui_data_window::first_data_item_displayed)
7605 (tui_data_window::delete_data_content_windows): Update.
7606 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7607 Remove.
7608 (tui_data_window::check_register_values): Update.
7609 (tui_data_item_window::rerender): Add parameters. Update.
7610 (tui_data_item_window::refresh_window): Remove.
7611 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7612 virtual.
7613 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7614 tui_gen_win_info.
7615 <refresh_window, max_height, min_height>: Remove.
7616 <rerender>: Add parameters.
7617 <x, y, visible>: New members.
7618 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7619 <m_item_width>: New member.
7620
22b7b041
TT
76212020-07-01 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-regs.c (tui_data_window::show_register_group)
7624 (tui_data_window::check_register_values): Update.
7625 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7626 from item_no.
7627
c9753adb
TT
76282020-07-01 Tom Tromey <tom@tromey.com>
7629
7630 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7631 useless "if".
7632
9ab26b4a
TT
76332020-07-01 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7636 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7637
e555083f
TT
76382020-07-01 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7641 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7642 (struct tui_line_or_address): Move from tui-data.h.
7643 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7644 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7645 (tui_cmd_window, tui_source_window_base, tui_source_window)
7646 (tui_disasm_window): Don't declare.
7647 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7648 to tui-winsource.h.
7649 (SINGLE_KEY): Move to tui-stack.c.
7650
7a02bab7
TT
76512020-07-01 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7654 std::string.
7655 * tui/tui-regs.c (class tab_expansion_file): New.
7656 (tab_expansion_file::write): New method.
7657 (tui_register_format): Change return type. Use
7658 tab_expansion_file.
7659 (tui_get_register, tui_data_window::display_registers_from)
7660 (tui_data_item_window::rerender): Update.
7661 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7662 * tui/tui-io.c (tui_expand_tabs): Remove.
7663
ea68593b
TT
76642020-07-01 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7667
a8caed5d
FS
76682020-07-01 Fangrui Song <maskray@google.com>
7669
7670 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7671
9cdf9820
AKS
76722020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7673
7674 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7675 forms for DW_AT_associated and DW_AT_allocated attributes,
7676 which is already checked in function attr_to_dynamic_prop.
7677
a1520ad8
TT
76782020-06-30 Tom Tromey <tromey@adacore.com>
7679
7680 * dwarf2/read.c (quirk_rust_enum): Correctly call
7681 alloc_rust_variant for default-less enum.
7682
5ac58899
TT
76832020-06-30 Tom Tromey <tromey@adacore.com>
7684
7685 PR build/26183:
7686 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7687 gdb::to_string.
7688
19b187a9
SM
76892020-06-29 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7692 * gdbarch.h: Re-generate.
7693
cd4c4c07
TT
76942020-06-28 Tom Tromey <tom@tromey.com>
7695
7696 * command.h (cmd_types): Remove.
7697 (cmd_type): Don't declare.
7698 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7699 typedef.
7700 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7701 * cli/cli-decode.c (cmd_type): Remove.
7702
05779d57
PA
77032020-06-27 Pedro Alves <palves@redhat.com>
7704
7705 * fork-child.c (prefork_hook): Adjust.
7706 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7707 Delete.
7708 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7709 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7710 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7711 Remove declarations.
7712 (struct inferior) <set_tty, tty>: New methods.
7713 (struct inferior) <terminal>: Rename to ...
7714 (struct inferior) <m_terminal>: ... this and make private.
7715 * main.c (captured_main_1): Adjust.
7716 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7717 (mi_cmd_inferior_tty_show): Adjust.
7718 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7719 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7720
1776e3e5
NA
77212020-06-26 Nick Alcock <nick.alcock@oracle.com>
7722
7723 * configure.ac: Add --enable-libctf: handle --disable-static
7724 properly.
7725 * acinclude.m4: sinclude ../config/enable.m4.
7726 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7727 (LIBCTF): Substitute in.
7728 (CTF_DEPS): New, likewise.
7729 (CLIBS): libctf needs symbols from libbfd: move earlier.
7730 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7731 flags.
7732 * ctfread.c: Surround in ENABLE_LIBCTF.
7733 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7734 * configure: Regenerate.
7735 * config.in: Likewise.
7736
58373b80
SM
77372020-06-25 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7740
277474ee
SM
77412020-06-25 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * inferior.h (struct inferior) <terminal>: Change type to
7744 gdb::unique_xmalloc_ptr<char>.
7745 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7746 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7747 field, adjust to unique pointer.
7748 (get_inferior_io_terminal): Adjust to unique pointer.
7749
6d74da72
AB
77502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7753 registers, not just the known core set of registers.
7754
2e52d038
AB
77552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7758 fflags, frm, and fcsr registers.
7759 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7760 restore groups.
7761 (riscv_tdesc_unknown_reg): New function.
7762 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7763 tdesc_use_registers.
7764 * riscv-tdep.h (struct gdbarch_tdep): Add
7765 unknown_csrs_first_regnum, unknown_csrs_count,
7766 duplicate_fflags_regnum, duplicate_frm_regnum, and
7767 duplicate_fcsr_regnum fields.
7768
be64fd07
AB
77692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7772 callback, use the callback (when not null) to help number unknown
7773 registers.
7774 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7775 (tdesc_use_registers): Add extra parameter to declaration.
7776
3b9fce96
AB
77772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7778
7779 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7780 in the file.
7781 (class riscv_pending_register_alias): Likewise.
7782 (riscv_register_feature::register_info): Change 'required_p' field
7783 to 'required', and change its type. Add 'check' member function.
7784 (riscv_register_feature::register_info::check): Define new member
7785 function.
7786 (riscv_xreg_feature): Change initialisation of 'required' field.
7787 (riscv_freg_feature): Likewise.
7788 (riscv_virtual_feature): Likewise.
7789 (riscv_csr_feature): Likewise.
7790 (riscv_check_tdesc_feature): Take extra parameter, the csr
7791 tdesc_feature, rewrite the function to use the new
7792 riscv_register_feature::register_info::check function.
7793 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7794
865bad26
AB
77952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 * features/Makefile: Remove all references to the deleted files
7798 below.
7799 * features/riscv/32bit-csr.c: Deleted.
7800 * features/riscv/32bit-csr.xml: Deleted.
7801 * features/riscv/64bit-csr.c: Deleted.
7802 * features/riscv/64bit-csr.xml: Deleted.
7803 * features/riscv/rebuild-csr-xml.sh: Deleted.
7804
ed69cbc8
AB
78052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7808 whitespace error for declaration of names member variable.
7809 (struct riscv_register_feature): Add new prefer_first_name member
7810 variable, and fix whitespace error in declaration of registers.
7811 (riscv_xreg_feature): Initialize prefer_first_name field.
7812 (riscv_freg_feature): Likewise.
7813 (riscv_virtual_feature): Likewise.
7814 (riscv_csr_feature): Likewise.
7815 (riscv_register_name): Expand on comments. Remove register name
7816 modifications for CSR and virtual registers.
7817
4445e8f5
AB
78182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7821 errors.
7822
767a879e
AB
78232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7824
7825 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7826 riscv-opc.h.
7827 (class riscv_pending_register_alias): New class.
7828 (riscv_check_tdesc_feature): Take vector of pending aliases and
7829 populate it as appropriate.
7830 (riscv_setup_register_aliases): Delete.
7831 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7832 to riscv_check_tdesc_feature in all cases. Use the vector to
7833 create the register aliases.
7834
bb6e55f3
RO
78352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7836
7837 * sol2-tdep.c (sol2_static_transform_name): Remove.
7838 (sol2_init_abi): Don't register it.
7839 * gdbarch.sh (static_transform_name): Remove.
7840 * gdbarch.c, gdbarch.h: Regenerate.
7841
7842 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7843 gdbarch_static_transform_name.
7844 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7845 * stabsread.c (define_symbol) <'X'>: Remove.
7846 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7847 handling.
7848 <'V'>: Likewise.
7849 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7850 <'S'>: Remove call to gdbarch_static_transform_name.
7851
c6d36836
RO
78522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7853
7854 * procfs.c (procfs_pre_trace): New function.
7855 (procfs_target::create_inferior): Pass it to fork_inferior.
7856
a7e6196b
RO
78572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7858
7859 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7860 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7861 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7862 sol2-tdep.o, sparc-sol2-tdep.o.
7863 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7864 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7865 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7866 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7867
d412e696
RO
78682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7869
7870 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7871 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7872 Call sol2_init_abi.
7873 Remove calls to set_gdbarch_skip_solib_resolver,
7874 set_gdbarch_core_pid_to_str.
7875 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7876 (i386_sol2_static_transform_name): Remove.
7877 (i386_sol2_init_abi): Call sol2_init_abi.
7878 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7879 set_gdbarch_static_transform_name,
7880 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7881 Use sol2_sigtramp_p.
7882 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7883 (sol2_sigtramp_p): New function.
7884 (sol2_static_transform_name): New function.
7885 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7886 (sol2_init_abi): New function.
7887 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7888 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7889 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7890 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7891 (sparc_sol2_static_transform_name): Remove.
7892 (sparc32_sol2_init_abi): Call sol2_init_abi.
7893 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7894 set_gdbarch_static_transform_name,
7895 set_gdbarch_skip_solib_resolver,
7896 set_gdbarch_core_pid_to_str.
7897 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7898 (sparc_sol2_static_transform_name): Remove
7899 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7900 call sol2_sigtramp_p.
7901 (sparc64_sol2_init_abi): Call sol2_init_abi.
7902 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7903 set_gdbarch_static_transform_name,
7904 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7905
a8654e7d
PW
79062020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7907
7908 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7909 * exec.c (validate_exec_file): If from_tty, set both
7910 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7911 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7912 and from_tty, unconditionally ask a confirmation.
7913
caa7fd04
AB
79142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * target-descriptions.c (tdesc_architecture_name): Protect against
7917 NULL pointer dereference.
7918 (maint_print_xml_tdesc_cmd): New function.
7919 (_initialize_target_descriptions): Register new 'maint print
7920 xml-tdesc' command and give it the filename completer.
7921 * NEWS: Mention new 'maint print xml-tdesc' command.
7922
fbf42f4e
AB
79232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * target-descriptions.c (class tdesc_compatible_info): New class.
7926 (struct target_desc): Change type of compatible vector.
7927 (tdesc_compatible_p): Update for change in type of
7928 target_desc::compatible.
7929 (tdesc_compatible_info_list): New function.
7930 (tdesc_compatible_info_arch_name): New function.
7931 (tdesc_add_compatible): Update for change in type of
7932 target_desc::compatible.
7933 (print_c_tdesc::visit_pre): Likewise.
7934
20821f4e
AB
79352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7938 whitespace to underscore.
7939 (maint_print_c_tdesc_cmd): Use fake filename for target
7940 descriptions that came from the target.
7941 (_initialize_target_descriptions): Add filename command completion
7942 for 'maint print c-tdesc'.
7943
1fb5ee62
SM
79442020-06-23 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7947 lines.
7948
fc3ecb3e
SM
79492020-06-23 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7952 lines.
7953 (dwarf2_find_location_expression): Likewise.
7954 (call_site_parameter_matches): Likewise.
7955 (dwarf2_compile_expr_to_ax): Likewise.
7956 (disassemble_dwarf_expression): Likewise.
7957 (loclist_describe_location): Likewise.
7958
236ef034
PA
79592020-06-23 Pedro Alves <palves@redhat.com>
7960
7961 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7962 progspace-and-thread.h. Include scoped-mock-context.h instead.
7963 (register_to_value_test): Use scoped_mock_context.
7964 * regcache.c: Include "scoped-mock-context.h".
7965 (cooked_read_test): Don't error out if a target is already pushed.
7966 Use scoped_mock_context. Adjust.
7967 * scoped-mock-context.h: New file.
7968
39e7ecca
AB
79692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7972 initializer.
7973 (ada_language::is_string_type_p): New member function.
7974 * c-lang.c (c_language_data): Delete la_is_string_type_p
7975 initializer.
7976 (cplus_language_data): Likewise.
7977 (asm_language_data): Likewise.
7978 (minimal_language_data): Likewise.
7979 * d-lang.c (d_language_data): Likewise.
7980 * f-lang.c (f_is_string_type_p): Delete function, implementation
7981 moved to f_language::is_string_type_p.
7982 (f_language_data): Delete la_is_string_type_p initializer.
7983 (f_language::is_string_type_p): New member function,
7984 implementation from f_is_string_type_p.
7985 * go-lang.c (go_is_string_type_p): Delete function, implementation
7986 moved to go_language::is_string_type_p.
7987 (go_language_data): Delete la_is_string_type_p initializer.
7988 (go_language::is_string_type_p): New member function,
7989 implementation from go_is_string_type_p.
7990 * language.c (language_defn::is_string_type_p): Define new member
7991 function.
7992 (default_is_string_type_p): Make static, add comment copied from
7993 header file.
7994 (unknown_language_data): Delete la_is_string_type_p initializer.
7995 (unknown_language::is_string_type_p): New member function.
7996 (auto_language_data): Delete la_is_string_type_p initializer.
7997 (auto_language::is_string_type_p): New member function.
7998 * language.h (language_data): Delete la_is_string_type_p field.
7999 (language_defn::is_string_type_p): Declare new function.
8000 (default_is_string_type_p): Delete desclaration, move comment to
8001 definition.
8002 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8003 moved to m2_language::is_string_type_p.
8004 (m2_language_data): Delete la_is_string_type_p initializer.
8005 (m2_language::is_string_type_p): New member function,
8006 implementation from m2_is_string_type_p.
8007 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8008 initializer.
8009 * opencl-lang.c (opencl_language_data): Likewise.
8010 * p-lang.c (pascal_is_string_type_p): Delete function,
8011 implementation moved to pascal_language::is_string_type_p.
8012 (pascal_language_data): Delete la_is_string_type_p initializer.
8013 (pascal_language::is_string_type_p): New member function,
8014 implementation from pascal_is_string_type_p.
8015 * rust-lang.c (rust_is_string_type_p): Delete function,
8016 implementation moved to rust_language::is_string_type_p.
8017 (rust_language_data): Delete la_is_string_type_p initializer.
8018 (rust_language::is_string_type_p): New member function,
8019 implementation from rust_is_string_type_p.
8020 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8021 is_string_type_p.
8022
4ffc13fb
AB
80232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * ada-lang.c (ada_language_data): Delete la_print_typedef
8026 initializer.
8027 (ada_language::print_typedef): New member function.
8028 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8029 (cplus_language_data): Likewise.
8030 (asm_language_data): Likewise.
8031 (minimal_language_data): Likewise.
8032 * d-lang.c (d_language_data): Likewise.
8033 * f-lang.c (f_language_data): Likewise.
8034 (f_language::print_typedef): New member function.
8035 * go-lang.c (go_language_data): Delete la_print_typedef
8036 initializer.
8037 * language.c (language_defn::print_typedef): Define member
8038 function.
8039 (unknown_language_data): Delete la_print_typedef initializer.
8040 (unknown_language::print_typedef): New member function.
8041 (auto_language_data): Delete la_print_typedef initializer.
8042 (auto_language::print_typedef): New member function.
8043 * language.h (language_data): Delete la_print_typedef field.
8044 (language_defn::print_typedef): Declare new member function.
8045 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8046 (default_print_typedef): Delete declaration.
8047 * m2-lang.c (m2_language_data): Delete la_print_typedef
8048 initializer.
8049 (m2_language::print_typedef): New member function.
8050 * objc-lang.c (objc_language_data): Delete la_print_typedef
8051 initializer.
8052 * opencl-lang.c (opencl_language_data): Likewise.
8053 * p-lang.c (pascal_language_data): Likewise.
8054 (pascal_language::print_typedef): New member function.
8055 * rust-lang.c (rust_print_typedef): Delete function,
8056 implementation moved to rust_language::print_typedef.
8057 (rust_language): Delete la_print_typedef initializer.
8058 (rust_language::print_typedef): New member function,
8059 implementation from rust_print_typedef.
8060 * typeprint.c (default_print_typedef): Delete.
8061
d711ee67
AB
80622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8065 (ada_language::printstr): New member function.
8066 * c-lang.c (c_language_data): Delete la_printstr initializer.
8067 (cplus_language_data): Likewise.
8068 (asm_language_data): Likewise.
8069 (minimal_language_data): Likewise.
8070 * d-lang.c (d_language_data): Likewise.
8071 * f-lang.c (f_printstr): Rename to f_language::printstr.
8072 (f_language_data): Delete la_printstr initializer.
8073 (f_language::printstr): New member function, implementation from
8074 f_printstr.
8075 * go-lang.c (go_language_data): Delete la_printstr initializer.
8076 * language.c (language_defn::printstr): Define new member
8077 function.
8078 (unk_lang_printstr): Delete.
8079 (unknown_language_data): Delete la_printstr initializer.
8080 (unknown_language::printstr): New member function.
8081 (auto_language_data): Delete la_printstr initializer.
8082 (auto_language::printstr): New member function.
8083 * language.h (language_data): Delete la_printstr field.
8084 (language_defn::printstr): Declare new member function.
8085 (LA_PRINT_STRING): Update call to printstr.
8086 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8087 (m2_language_data): Delete la_printstr initializer.
8088 (m2_language::printstr): New member function, implementation from
8089 m2_printstr.
8090 * objc-lang.c (objc_language_data): Delete la_printstr
8091 initializer.
8092 * opencl-lang.c (opencl_language_data): Likewise.
8093 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8094 (pascal_language_data): Delete la_printstr initializer.
8095 (pascal_language::printstr): New member function, implementation
8096 from pascal_printstr.
8097 * p-lang.h (pascal_printstr): Delete declaration.
8098 * rust-lang.c (rust_printstr): Update header comment.
8099 (rust_language_data): Delete la_printstr initializer.
8100 (rust_language::printstr): New member function.
8101
52b50f2c
AB
81022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8105 (ada_language::printchar): New member function.
8106 * c-lang.c (c_language_data): Delete la_printchar initializer.
8107 (cplus_language_data): Likewise.
8108 (asm_language_data): Likewise.
8109 (minimal_language_data): Likewise.
8110 * d-lang.c (d_language_data): Likewise.
8111 * f-lang.c (f_printchar): Rename to f_language::printchar.
8112 (f_language_data): Delete la_printchar initializer.
8113 (f_language::printchar): New member function, implementation from
8114 f_printchar.
8115 * go-lang.c (go_language_data): Delete la_printchar initializer.
8116 * language.c (unk_lang_printchar): Delete.
8117 (language_defn::printchar): Define new member function.
8118 (unknown_language_data): Delete la_printchar initializer.
8119 (unknown_language::printchar): New member function.
8120 (auto_language_data): Delete la_printchar initializer.
8121 (auto_language::printchar): New member function.
8122 * language.h (language_data): Delete la_printchar field.
8123 (language_defn::printchar): Declare new member function.
8124 (LA_PRINT_CHAR): Update call to printchar.
8125 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8126 (m2_language::printchar): New member function.
8127 * objc-lang.c (objc_language_data): Delete la_printchar
8128 initializer.
8129 * opencl-lang.c (opencl_language_data): Likewise.
8130 * p-lang.c (pascal_language_data): Delete la_printchar
8131 initializer.
8132 (pascal_language::printchar): New member function.
8133 * rust-lang.c (rust_printchar): Rename to
8134 rust_language::printchar.
8135 (rust_language_data): Delete la_printchar initializer.
8136 (rust_language::printchar): New member function, implementation
8137 from rust_printchar.
8138
ec8cec5b
AB
81392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8140
8141 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8142 (ada_language_data): Delete la_emitchar initializer.
8143 (ada_language::emitchar): New member function, implementation from
8144 emit_char.
8145 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8146 (cplus_language_data): Likewise.
8147 (asm_language_data): Likewise.
8148 (minimal_language_data): Likewise.
8149 * d-lang.c (d_language_data): Likewise.
8150 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8151 (f_language_data): Delete la_emitchar initializer.
8152 (f_language::emitchar): New member function, implementation from
8153 f_emit_char.
8154 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8155 * language.c (unk_lang_emit_char): Delete.
8156 (language_defn::emitchar): New member function definition.
8157 (unknown_language_data): Delete la_emitchar initializer.
8158 (unknown_language::emitchar): New member function.
8159 (auto_language_data): Delete la_emitchar initializer.
8160 (auto_language::emitchar): New member function.
8161 * language.h (language_data): Delete la_emitchar field.
8162 (language_defn::emitchar): New member field declaration.
8163 (LA_EMIT_CHAR): Update call to emitchar.
8164 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8165 (m2_language_data): Delete la_emitchar initializer.
8166 (m2_language::emitchar): New member function, implementation from
8167 m2_emit_char.
8168 * objc-lang.c (objc_language_data): Delete la_emitchar
8169 initializer.
8170 * opencl-lang.c (opencl_language_data): Likewise.
8171 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8172 (pascal_language_data): Delete la_emitchar initializer.
8173 (pascal_language::emitchar): New member function, implementation
8174 from pascal_emit_char.
8175 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8176 (rust_language_data): Delete la_emitchar initializer.
8177 (rust_language::emitchar): New member function, implementation
8178 from rust_emitchar.
8179
1bf9c363
AB
81802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8181
8182 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8183 (ada_language_data): Delete la_post_parser initializer.
8184 (ada_language::post_parser): New member function.
8185 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8186 (cplus_language_data): Likewise.
8187 (asm_language_data): Likewise.
8188 (minimal_language_data): Likewise.
8189 * d-lang.c (d_language_data): Likewise.
8190 * f-lang.c (f_language_data): Likewise.
8191 * go-lang.c (go_language_data): Likewise.
8192 * language.c (unknown_language_data): Likewise.
8193 (auto_language_data): Likewise.
8194 * language.h (language_data): Delete la_post_parser field.
8195 (language_defn::post_parser): New member function.
8196 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8197 * objc-lang.c (objc_language_data): Likewise.
8198 * opencl-lang.c (opencl_language_data): Likewise.
8199 * p-lang.c (pascal_language_data): Likewise.
8200 * parse.c (parse_exp_in_context): Update call to post_parser.
8201 (null_post_parser): Delete definition.
8202 * parser-defs.h (null_post_parser): Delete declaration.
8203 * rust-lang.c (rust_language_data): Delete la_post_parser
8204 initializer.
8205
87afa652
AB
82062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * ada-lang.c (parse): Rename to ada_language::parser.
8209 (ada_language_data): Delete la_parser initializer.
8210 (ada_language::parser): New member function, implementation from
8211 parse.
8212 * c-lang.c (c_language_data): Delete la_parser initializer.
8213 (cplus_language_data): Likewise.
8214 (asm_language_data): Likewise.
8215 (minimal_language_data): Likewise.
8216 * d-lang.c (d_language_data): Likewise.
8217 (d_language::parser): New member function.
8218 * f-lang.c (f_language_data): Delete la_parser initializer.
8219 (f_language::parser): New member function.
8220 * go-lang.c (go_language_data): Delete la_parser initializer.
8221 (go_language::parser): New member function.
8222 * language.c (unk_lang_parser): Delete.
8223 (language_defn::parser): Define new member function.
8224 (unknown_language_data): Delete la_parser initializer.
8225 (unknown_language::parser): New member function.
8226 (auto_language_data): Delete la_parser initializer.
8227 (auto_language::parser): New member function.
8228 * language.h (language_data): Delete la_parser field.
8229 (language_defn::parser): Declare new member function.
8230 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8231 (m2_language::parser): New member function.
8232 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8233 * opencl-lang.c (opencl_language_data): Likewise.
8234 * p-lang.c (pascal_language_data): Likewise.
8235 (pascal_language::parser): New member function.
8236 * parse.c (parse_exp_in_context): Update call to parser.
8237 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8238 (rust_language::parser): New member function.
8239
37825800
AB
82402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * top.c (print_gdb_configuration): Print --with-python-libdir
8243 configuration value.
8244
5b860c93
PW
82452020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8246
8247 * NEWS: Mention change to the alias command.
8248
cf00cd6f
PW
82492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8250
8251 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8252 (alias_command_completer)
8253 (make_alias_options_def_group): New functions.
8254 (alias_opts, alias_option_defs): New struct and array.
8255 (alias_usage_error): Update usage.
8256 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8257 Use option framework.
8258 (_initialize_cli_cmds): Update alias command help.
8259 Update aliases command help.
8260 (show_user):
8261 Add NULL for new default_args lookup_cmd argument.
8262 (valid_command_p): Rename to validate_aliased_command.
8263 Add NULL for new default_args lookup_cmd argument. Verify that the
8264 aliased_command has no default args.
8265 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8266 (lookup_cmd_1, lookup_cmd): New argument default_args.
8267 (add_alias_cmd):
8268 Add NULL for new default_args lookup_cmd argument.
8269 (print_help_for_command): Show default args under the layout
8270 alias some_alias = some_aliased_cmd some_alias_default_arg.
8271 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8272 xfree default_args in destructor.
8273 * cli/cli-script.c (process_next_line, do_define_command):
8274 Add NULL for new default_args lookup_cmd argument.
8275 * command.h: Declare new default_args argument in lookup_cmd
8276 and lookup_cmd_1.
8277 * completer.c (complete_line_internal_1):
8278 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8279 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8280 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8281 Likewise.
8282 * infcmd.c (_initialize_infcmd): Likewise.
8283 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8284 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8285 * python/py-param.c (add_setshow_generic): Likewise.
8286 * remote.c (_initialize_remote): Likewise.
8287 * top.c (execute_command): Prepend default_args if command has some.
8288 (set_verbose):
8289 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8290 * tracepoint.c (validate_actionline, encode_actions_1):
8291 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8292
bd920864
TBA
82932020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8294
8295 * jit.c (jit_read_descriptor): Use bool as the return type.
8296 (jit_breakpoint_re_set_internal): Use bool as the return type.
8297 Invert the return value logic; return true if the jit breakpoint
8298 has been successfully initialized.
8299 (jit_inferior_init): Update the call to
8300 jit_breakpoint_re_set_internal.
8301
f8098322
PA
83022020-06-22 Pedro Alves <palves@redhat.com>
8303
8304 PR gdb/25939
8305 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8306 Use the current inferior instead. Don't return
8307 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8308 wait again.
8309 * sol-thread.c (sol_thread_target::wait): Don't reference
8310 inferior_ptid.
8311 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8312 (sol_update_thread_list_callback): Use the current inferior's pid
8313 instead of inferior_ptid.
8314
196535a6
RO
83152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8316
8317 * procfs.c: Cleanup many comments.
8318
8319 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8320 (AFTER_WATCHFLAG): Replace by value.
8321
8322 (MAIN_PROC_NAME_FORMAT): Inline ...
8323 (create_procinfo): ... here.
8324
8325 (procfs_debug_inferior): Remove SYS_exec handling.
8326 (syscall_is_exec): Likewise.
8327 (procfs_set_exec_trap): Likewise.
8328
8329 (syscall_is_lwp_exit): Inline in callers.
8330 (syscall_is_exit): Likewise.
8331 (syscall_is_exec): Likewise.
8332 (syscall_is_lwp_create): Likewise.
8333
8334 (invalidate_cache): Remove #if 0 code.
8335
8336 (make_signal_thread_runnable): Remove.
8337 (procfs_target::resume): Remove #if 0 code.
8338
cf6f3e86
RO
83392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8340
8341 PR gdb/25939
8342 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8343 call ...
8344 (procfs_target::create_inferior): ... here.
8345
48e9cc84
PW
83462020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8347
8348 * exec.c (validate_exec_file): Ensure the build-id is up to
8349 date by calling reopen_exec_file (that checks file timestamp
8350 to decide to re-read the file).
8351
3922b302
PA
83522020-06-18 Pedro Alves <palves@redhat.com>
8353
8354 PR gdb/25412
8355 * gdbthread.h (delete_thread, delete_thread_silent)
8356 (find_thread_ptid): Update comments.
8357 * thread.c (current_thread_): New global.
8358 (is_current_thread): Move higher, and reimplement.
8359 (inferior_thread): Reimplement.
8360 (set_thread_exited): Use bool. Add assertions.
8361 (add_thread_silent): Simplify thread-reuse handling by always
8362 calling delete_thread.
8363 (delete_thread): Remove intro comment.
8364 (find_thread_ptid): Skip exited threads.
8365 (switch_to_thread_no_regs): Write to current_thread_.
8366 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8367 INFERIOR_PTID. Clear current_thread_.
8368
6dbdab44
PA
83692020-06-18 Pedro Alves <palves@redhat.com>
8370
8371 * aix-thread.c (pd_update): Use switch_to_thread.
8372
2da4b788
PA
83732020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * ravenscar-thread.c (ravenscar_thread_target): Update.
8376 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8377 (ravenscar_thread_target::add_active_thread): ... this. Don't
8378 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8379 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8380
50838d1b
PA
83812020-06-18 Pedro Alves <palves@redhat.com>
8382
8383 * nat/windows-nat.c (current_windows_thread): Remove.
8384 * nat/windows-nat.h (current_windows_thread): Remove.
8385 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8386 Adjust.
8387 (display_selectors): Adjust to fetch the current
8388 windows_thread_info based on inferior_ptid.
8389 (fake_create_process): No longer write to current_windows_thread.
8390 (windows_nat_target::get_windows_debug_event):
8391 Don't set inferior_ptid or current_windows_thread.
8392 (windows_nat_target::wait): Adjust to not rely on
8393 current_windows_thread.
8394 (do_initial_windows_stuff): Now a method of windows_nat_target.
8395 Switch to the last_ptid thread.
8396 (windows_nat_target::attach): Adjust.
8397 (windows_nat_target::detach): Use switch_to_no_thread instead of
8398 writing to inferior_ptid directly.
8399 (windows_nat_target::create_inferior): Adjust.
8400
31ce04e9
PA
84012020-06-18 Pedro Alves <palves@redhat.com>
8402
8403 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8404
1ee1a363
PA
84052020-06-18 Pedro Alves <palves@redhat.com>
8406
8407 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8408 after creating it, instead of writing to inferior_ptid. Don't
8409 write to inferior_ptid.
8410
6d350754
PA
84112020-06-18 Pedro Alves <palves@redhat.com>
8412
8413 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8414
5d971d48
PA
84152020-06-18 Pedro Alves <palves@redhat.com>
8416
8417 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8418 it, instead of writing to inferior_ptid.
8419
86e57d1b
PA
84202020-06-18 Pedro Alves <palves@redhat.com>
8421
8422 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8423 to inferior_ptid.
8424
f2e1c129
PA
84252020-06-18 Pedro Alves <palves@redhat.com>
8426
8427 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8428 instead of writing to inferior_ptid directly.
8429
60db1b85
PA
84302020-06-18 Pedro Alves <palves@redhat.com>
8431
8432 * corelow.c (core_target::close): Use switch_to_no_thread instead
8433 of writing to inferior_ptid directly.
8434 (add_to_thread_list, core_target_open): Use switch_to_thread
8435 instead of writing to inferior_ptid directly.
8436
fe7d6a8d
PA
84372020-06-18 Pedro Alves <palves@redhat.com>
8438
8439 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8440 inferior_ptid.
8441 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8442 inferior_ptid.
8443 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8444 inferior_ptid directly.
8445 (darwin_nat_target::init_thread_list): Switch to thread, instead
8446 of writing to inferior_ptid.
8447 (darwin_nat_target::attach): Don't write to inferior_ptid.
8448 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8449
975f8708
PA
84502020-06-18 Pedro Alves <palves@redhat.com>
8451
8452 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8453 thread.
8454 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8455 Instead use switch_to_thread.
8456 (gnu_nat_target::detach): Use switch_to_no_thread
8457 instead of writing to inferior_ptid directly. Used passed-in
8458 inferior instead of looking up the inferior by pid.
8459
1a204730
PA
84602020-06-18 Pedro Alves <palves@redhat.com>
8461
8462 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8463 inferior_ptid.
8464
ebe84f23
PA
84652020-06-18 Pedro Alves <palves@redhat.com>
8466
8467 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8468 inferior_ptid.
8469 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8470 thread.
8471 (nto_procfs_target::detach): Avoid referencing
8472 inferior_ptid. Use switch_to_no_thread instead of writing to
8473 inferior_ptid directly.
8474 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8475 instead of writing to inferior_ptid directly.
8476 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8477 to thread.
8478
191f02e5
PA
84792020-06-18 Pedro Alves <palves@redhat.com>
8480
8481 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8482 after creating it, instead of writing to inferior_ptid.
8483 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8484 to inferior_ptid directly.
8485 (gdbsim_target::wait): Don't write to inferior_ptid.
8486
0ac55310
PA
84872020-06-18 Pedro Alves <palves@redhat.com>
8488
8489 * remote.c (remote_target::remote_notice_new_inferior): Use
8490 switch_to_thread instead of writing to inferior_ptid directly.
8491 (remote_target::add_current_inferior_and_thread): Use
8492 switch_to_no_thread instead of writing to inferior_ptid directly.
8493 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8494 and switch_to_thread instead of using set_current_inferior or
8495 writing to inferior_ptid directly.
8496
5233f39b
PA
84972020-06-18 Pedro Alves <palves@redhat.com>
8498
8499 * tracectf.c (ctf_target_open): Switch to added thread instead of
8500 writing to inferior_ptid directly.
8501 (ctf_target::close): Use switch_to_no_thread instead of writing to
8502 inferior_ptid directly.
8503
087e161b
PA
85042020-06-18 Pedro Alves <palves@redhat.com>
8505
8506 * tracefile-tfile.c (tfile_target_open): Don't write to
8507 inferior_ptid directly, instead switch to added thread.
8508 (tfile_target::close): Use switch_to_no_thread instead of writing
8509 to inferior_ptid directly.
8510
7fb43e53
PA
85112020-06-18 Pedro Alves <palves@redhat.com>
8512
8513 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8514 (procfs_target::detach): Use switch_to_no_thread
8515 instead of writing to inferior_ptid directly.
8516 (do_attach): Change return type to void. Switch to the added
8517 thread.
8518 (procfs_target::create_inferior): Switch to the added thread.
8519 (procfs_do_thread_registers): Don't write to inferior_ptid.
8520
18493a00
PA
85212020-06-18 Pedro Alves <palves@redhat.com>
8522
8523 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8524 of writing to inferior_ptid.
8525 (scoped_restore_exited_inferior): Delete.
8526 (handle_vfork_child_exec_or_exit): Simplify using
8527 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8528 instead of writing to inferior_ptid.
8529 (THREAD_STOPPED_BY): Delete.
8530 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8531 (thread_stopped_by_hw_breakpoint): Delete.
8532 (save_waitstatus): Use
8533 scoped_restore_current_thread+switch_to_thread, and call
8534 target_stopped_by_watchpoint instead of
8535 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8536 instead of thread_stopped_by_sw_breakpoint, and
8537 target_stopped_by_hw_breakpoint instead of
8538 thread_stopped_by_hw_breakpoint.
8539 (handle_inferior_event)
8540 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8541 inferior_ptid directly, nor
8542 set_current_inferior/set_current_program_space. Use
8543 switch_to_thread / switch_to_inferior_no_thread instead.
8544
a0776b13
PA
85452020-06-18 Pedro Alves <palves@redhat.com>
8546
8547 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8548 instead of writing to inferior_ptid.
8549
6155c136
PA
85502020-06-18 Pedro Alves <palves@redhat.com>
8551
8552 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8553 added thread.
8554 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8555 to the added thread.
8556 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8557 instead of writing to inferior_ptid.
8558
c5316fc6
PA
85592020-06-18 Pedro Alves <palves@redhat.com>
8560
8561 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8562 (register_to_value_test): Mock a program_space too. Heap-allocate
8563 the address space. Don't write to inferior_ptid. Use
8564 switch_to_thread instead.
8565
8df01799
PA
85662020-06-18 Pedro Alves <palves@redhat.com>
8567
8568 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8569 Delete.
8570 (find_signalled_thread()): New, factored out from
8571 linux_make_corefile_notes and adjusted to handle exited threads.
8572 (linux_make_corefile_notes): Adjust to use the new
8573 find_signalled_thread.
8574
41792d68
PA
85752020-06-18 Pedro Alves <palves@redhat.com>
8576
8577 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8578 of saving/restoring inferior_ptid.
8579
612f258a
TT
85802020-06-17 Tom Tromey <tom@tromey.com>
8581
8582 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8583 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8584 declare.
8585 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8586
efb763a5
SM
85872020-06-15 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8590 of partial symtabs.
8591
2951f6c0
SM
85922020-06-17 Simon Marchi <simon.marchi@efficios.com>
8593
8594 * regformats/reg-arm.dat: Remove.
8595 * regformats/reg-bfin.dat: Remove.
8596 * regformats/reg-cris.dat: Remove.
8597 * regformats/reg-crisv32.dat: Remove.
8598 * regformats/reg-m32r.dat: Remove.
8599 * regformats/reg-tilegx.dat: Remove.
8600 * regformats/reg-tilegx32.dat: Remove.
8601
7d458ea5
SM
86022020-06-17 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * features/Makefile (WHICH): Remove arm files.
8605 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8606 * regformats/arm/arm-with-neon.dat: Remove.
8607 * regformats/arm/arm-with-vfpv2.dat: Remove.
8608 * regformats/arm/arm-with-vfpv3.dat: Remove.
8609
3af96c0d
SM
86102020-06-17 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * features/Makefile (XMLTOC): Remove rx.xml.
8613
b25e22fd
PA
86142020-06-17 Pedro Alves <palves@redhat.com>
8615
8616 * gdbthread.h (thread_control_state) <trap_expected> Update
8617 comments.
8618
a78a19b1
AB
86192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8622 ada_language::lookup_symbol_nonlocal.
8623 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8624 (ada_language::lookup_symbol_nonlocal): New member function,
8625 implementation from ada_lookup_symbol_nonlocal.
8626 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8627 initializer.
8628 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8629 initializer.
8630 (cplus_language::lookup_symbol_nonlocal): New member function.
8631 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8632 (minimal_language_data) Likewise.
8633 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8634 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8635 initializer.
8636 (d_language::lookup_symbol_nonlocal): New member function.
8637 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8638 initializer.
8639 (f_language::lookup_symbol_nonlocal): New member function.
8640 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8641 initializer.
8642 * language.c (unknown_language_data): Likewise.
8643 (auto_language_data): Likewise.
8644 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8645 field.
8646 (language_defn::lookup_symbol_nonlocal): New member function.
8647 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8648 initializer.
8649 * objc-lang.c (objc_language_data): Likewise.
8650 * opencl-lang.c (opencl_language_data): Likewise.
8651 * p-lang.c (pascal_language_data): Likewise.
8652 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8653 rust_language::lookup_symbol_nonlocal.
8654 (rust_language_data): Delete la_lookup_symbol_nonlocal
8655 initializer.
8656 (rust_language::lookup_symbol_nonlocal): New member function,
8657 implementation from rust_lookup_symbol_nonlocal.
8658 * symtab.c (lookup_symbol_aux): Update call to
8659 lookup_symbol_nonlocal.
8660 (basic_lookup_symbol_nonlocal): Rename to...
8661 (language_defn::lookup_symbol_nonlocal): ...this, and update
8662 header comment. Remove language_defn parameter, and replace with
8663 uses of `this'.
8664 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8665
ebe2334e
AB
86662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8667
8668 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8669 initializer.
8670 (ada_language::value_print_inner): New member function.
8671 * c-lang.c (c_language_data): Delete la_value_print_inner
8672 initializer.
8673 (cplus_language_data): Likewise.
8674 (asm_language_data): Likewise.
8675 (minimal_language_data): Likewise.
8676 * d-lang.c (d_language_data): Likewise.
8677 (d_language::value_print_inner): New member function.
8678 * f-lang.c (f_language_data): Delete la_value_print_inner
8679 initializer.
8680 (f_language::value_print_inner): New member function.
8681 * f-lang.h (f_value_print_innner): Rename to...
8682 (f_value_print_inner): ...this (note spelling of 'inner').
8683 * f-valprint.c (f_value_print_innner): Rename to...
8684 (f_value_print_inner): ...this (note spelling of 'inner').
8685 * go-lang.c (go_language_data): Delete la_value_print_inner
8686 initializer.
8687 (go_language::value_print_inner): New member function.
8688 * language.c (language_defn::value_print_inner): Define new member
8689 function.
8690 (unk_lang_value_print_inner): Delete.
8691 (unknown_language_data): Delete la_value_print_inner initializer.
8692 (unknown_language::value_print_inner): New member function.
8693 (auto_language_data): Delete la_value_print_inner initializer.
8694 (auto_language::value_print_inner): New member function.
8695 * language.h (language_data): Delete la_value_print_inner field.
8696 (language_defn::value_print_inner): Delcare new member function.
8697 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8698 initializer.
8699 (m2_language::value_print_inner): New member function.
8700 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8701 initializer.
8702 * opencl-lang.c (opencl_language_data): Likewise.
8703 * p-lang.c (pascal_language_data): Likewise.
8704 (pascal_language::value_print_inner): New member function.
8705 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8706 initializer.
8707 (rust_language::value_print_inner): New member function.
8708 * valprint.c (do_val_print): Update call to value_print_inner.
8709
a1d1fa3e
AB
87102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * ada-lang.c (ada_language_data): Delete la_value_print
8713 initializer.
8714 (ada_language::value_print): New member function.
8715 * c-lang.c (c_language_data): Delete la_value_print initializer.
8716 (cplus_language_data): Likewise.
8717 (asm_language_data): Likewise.
8718 (minimal_language_data): Likewise.
8719 * d-lang.c (d_language_data): Likewise.
8720 * f-lang.c (f_language_data): Likewise.
8721 * go-lang.c (go_language_data): Likewise.
8722 * language.c (unk_lang_value_print): Delete.
8723 (language_defn::value_print): Define new member function.
8724 (unknown_language_data): Delete la_value_print initializer.
8725 (unknown_language::value_print): New member function.
8726 (auto_language_data): Delete la_value_print initializer.
8727 (auto_language::value_print): New member function.
8728 * language.h (language_data): Delete la_value_print field.
8729 (language_defn::value_print): Declare new member function.
8730 (LA_VALUE_PRINT): Update call to value_print.
8731 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8732 * objc-lang.c (objc_language_data): Likewise.
8733 * opencl-lang.c (opencl_language_data): Likewise.
8734 * p-lang.c (pascal_language_data): Likewise.
8735 (pascal_language::value_print): New member function.
8736 * rust-lang.c (rust_language_data): Delete la_value_print
8737 initializer.
8738
f16a9f57
AB
87392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 * ada-lang.c (ada_watch_location_expression): Rename to
8742 ada_language::watch_location_expression.
8743 (ada_language_data): Delete la_watch_location_expression
8744 initializer.
8745 (ada_language::watch_location_expression): New member function,
8746 implementation from ada_watch_location_expression.
8747 * breakpoint.c (watch_command_1): Update call to
8748 watch_location_expression.
8749 * c-lang.c (c_watch_location_expression): Rename to
8750 language_defn::watch_location_expression.
8751 (c_language_data): Delete la_watch_location_expression
8752 initializer.
8753 (cplus_language_data): Likewise.
8754 (asm_language_data): Likewise.
8755 (minimal_language_data): Likewise.
8756 * c-lang.h (c_watch_location_expression): Delete declaration.
8757 * d-lang.c (d_language_data): Delete la_watch_location_expression
8758 initializer.
8759 * f-lang.c (f_language_data): Likewise.
8760 * go-lang.c (go_language_data): Likewise.
8761 * language.c (language_defn::watch_location_expression): Member
8762 function implementation from c_watch_location_expression.
8763 (unknown_language_data): Delete la_watch_location_expression
8764 initializer.
8765 (auto_language_data): Likewise.
8766 * language.h (language_data): Delete la_watch_location_expression
8767 field.
8768 (language_defn::watch_location_expression): Declare new member
8769 function.
8770 * m2-lang.c (m2_language_data): Delete
8771 la_watch_location_expression initializer.
8772 * objc-lang.c (objc_language_data): Likewise.
8773 * opencl-lang.c (opencl_language_data): Likewise.
8774 * p-lang.c (pascal_language_data): Likewise.
8775 * rust-lang.c (rust_watch_location_expression): Rename to
8776 rust_language::watch_location_expression.
8777 (rust_language_data): Delete la_watch_location_expression
8778 initializer.
8779 (rust_language::watch_location_expression): New member function,
8780 implementation from rust_watch_location_expression.
8781
7e56227d
AB
87822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8783
8784 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8785 ada_language::collect_symbol_completion_matches.
8786 (ada_language_data): Delete la_collect_symbol_completion_matches
8787 initializer.
8788 (ada_language::collect_symbol_completion_matches): New member
8789 function, implementation from
8790 ada_collect_symbol_completion_matches.
8791 * c-lang.c (c_language_data): Delete
8792 la_collect_symbol_completion_matches initializer.
8793 (cplus_language_data): Likewise.
8794 (asm_language_data): Likewise.
8795 (minimal_language_data): Likewise.
8796 * d-lang.c (d_language_data): Likewise.
8797 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8798 f_language::collect_symbol_completion_matches.
8799 (f_language_data): Delete la_collect_symbol_completion_matches
8800 initializer.
8801 (f_language::collect_symbol_completion_matches) New member
8802 function, implementation from f_collect_symbol_completion_matches.
8803 * go-lang.c (go_language_data): Delete
8804 la_collect_symbol_completion_matches initializer.
8805 * language.c (unknown_language_data): Likewise.
8806 (auto_language_data): Likewise.
8807 * language.h (language_data): Delete
8808 la_collect_symbol_completion_matches field.
8809 (language_defn::collect_symbol_completion_matches): New member
8810 function.
8811 * m2-lang.c (m2_language_data): Delete
8812 la_collect_symbol_completion_matches initializer.
8813 * objc-lang.c (objc_language_data): Likewise.
8814 * opencl-lang.c (opencl_language_data): Likewise.
8815 * p-lang.c (pascal_language_data): Likewise.
8816 * rust-lang.c (rust_language_data): Likewise.
8817 * symtab.c (default_collect_symbol_completion_matches): Delete.
8818 (collect_symbol_completion_matches): Update call to
8819 collect_symbol_completion_matches.
8820 (collect_symbol_completion_matches_type): Likewise.
8821 * symtab.h (default_collect_symbol_completion_matches): Delete
8822 declaration.
8823
53fc67f8
AB
88242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8825
8826 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8827 (ada_language_data): Delete la_word_break_characters initializer.
8828 (ada_language::word_break_characters): New member function.
8829 * c-lang.c (c_language_data): Delete la_word_break_characters
8830 initializer.
8831 (cplus_language_data): Likewise.
8832 (asm_language_data): Likewise.
8833 (minimal_language_data): Likewise.
8834 * completer.c: Update global comment.
8835 (advance_to_expression_complete_word_point): Update call to
8836 word_break_characters.
8837 (complete_files_symbols): Likewise.
8838 (complete_line_internal_1): Likewise.
8839 (default_completer_handle_brkchars): Likewise.
8840 (skip_quoted_chars): Likewise.
8841 * d-lang.c (d_language_data): Delete la_word_break_characters
8842 initializer.
8843 * f-lang.c (f_word_break_characters): Delete.
8844 (f_language_data): Delete la_word_break_characters initializer.
8845 (f_language::word_break_characters): New member function.
8846 * go-lang.c (go_language_data): Delete la_word_break_characters
8847 initializer.
8848 * language.c (unknown_language_data): Likewise.
8849 (auto_language_data): Likewise.
8850 * language.h (default_word_break_characters): Move declaration to
8851 earlier in the file.
8852 (language_data): Delete la_word_break_characters field.
8853 (language_defn::word_break_characters): New member function.
8854 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8855 initializer.
8856 * objc-lang.c (objc_language_data): Likewise.
8857 * opencl-lang.c (opencl_language_data): Likewise.
8858 * p-lang.c (pascal_language_data): Likewise.
8859 * rust-lang.c (rust_language_data): Likewise.
8860
c9debfb9
AB
88612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8862
8863 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8864 (ada_language_data): Delete la_get_symbol_name_matcher
8865 initializer.
8866 (language_defn::get_symbol_name_matcher_inner): New member
8867 function.
8868 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8869 initializer.
8870 (cplus_language_data): Likewise.
8871 (cplus_language::get_symbol_name_matcher_inner): New member
8872 function.
8873 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8874 (minimal_language_data): Likewise.
8875 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8876 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8877 initializer.
8878 * dictionary.c (iter_match_first_hashed): Update call to
8879 get_symbol_name_matcher.
8880 (iter_match_next_hashed): Likewise.
8881 (iter_match_next_linear): Likewise.
8882 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8883 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8884 initializer.
8885 (f_language::get_symbol_name_matcher_inner): New member function.
8886 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8887 initializer.
8888 * language.c (default_symbol_name_matcher): Update header comment,
8889 make static.
8890 (language_defn::get_symbol_name_matcher): New definition.
8891 (language_defn::get_symbol_name_matcher_inner): Likewise.
8892 (get_symbol_name_matcher): Delete.
8893 (unknown_language_data): Delete la_get_symbol_name_matcher
8894 initializer.
8895 (auto_language_data): Likewise.
8896 * language.h (language_data): Delete la_get_symbol_name_matcher
8897 field.
8898 (language_defn::get_symbol_name_matcher): New member function.
8899 (language_defn::get_symbol_name_matcher_inner): Likewise.
8900 (default_symbol_name_matcher): Delete declaration.
8901 * linespec.c (find_methods): Update call to
8902 get_symbol_name_matcher.
8903 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8904 initializer.
8905 * minsyms.c (lookup_minimal_symbol): Update call to
8906 get_symbol_name_matcher.
8907 (iterate_over_minimal_symbols): Likewise.
8908 * objc-lang.c (objc_language_data): Delete
8909 la_get_symbol_name_matcher initializer.
8910 * opencl-lang.c (opencl_language_data): Likewise.
8911 * p-lang.c (pascal_language_data): Likewise.
8912 * psymtab.c (psymbol_name_matches): Update call to
8913 get_symbol_name_matcher.
8914 * rust-lang.c (rust_language_data): Delete
8915 la_get_symbol_name_matcher initializer.
8916 * symtab.c (symbol_matches_search_name): Update call to
8917 get_symbol_name_matcher.
8918 (compare_symbol_name): Likewise.
8919
9a49ad8c
AB
89202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8921
8922 * ada-lang.c (ada_language_data): Delete la_compute_program
8923 initializer.
8924 * c-lang.c (c_language_data): Likewise.
8925 (c_language::compute_program): New member function.
8926 (cplus_language_data): Delete la_compute_program initializer.
8927 (cplus_language::compute_program): New member function.
8928 (asm_language_data): Delete la_compute_program initializer.
8929 (minimal_language_data): Likewise.
8930 * c-lang.h (c_compute_program): Update comment.
8931 (cplus_compute_program): Likewise.
8932 * compile/compile-c-support.c (c_compute_program): Likewise.
8933 (cplus_compute_program): Likewise.
8934 * compile/compile.c (compile_to_object): Update call to
8935 la_compute_program.
8936 * d-lang.c (d_language_data): Delete la_compute_program
8937 initializer.
8938 * f-lang.c (f_language_data): Likewise.
8939 * go-lang.c (go_language_data): Likewise.
8940 * language.c (unknown_language_data): Likewise.
8941 (auto_language_data): Likewise.
8942 * language.h (language_data): Delete la_compute_program field.
8943 (language_defn::compute_program): New member function.
8944 * m2-lang.c (m2_language_data): Delete la_compute_program
8945 initializer.
8946 * objc-lang.c (objc_language_data): Likewise.
8947 * opencl-lang.c (opencl_language_data): Likewise.
8948 * p-lang.c (pascal_language_data): Likewise.
8949 * rust-lang.c (rust_language_data): Likewise.
8950
eff93b4d
AB
89512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8952
8953 * ada-lang.c (ada_language_data) Delete
8954 la_class_name_from_physname initializer.
8955 * c-lang.c (c_language_data): Likewise.
8956 (cplus_language_data): Likewise.
8957 (cplus_language::class_name_from_physname): New member function.
8958 (asm_language_data): Delete la_class_name_from_physname
8959 initializer.
8960 (minimal_language_data): Likewise.
8961 * d-lang.c (d_language_data): Likewise.
8962 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8963 method on language_defn class.
8964 (guess_full_die_structure_name): Likewise.
8965 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8966 initializer.
8967 * go-lang.c (go_language_data): Likewise.
8968 * language.c (language_class_name_from_physname): Delete.
8969 (unk_lang_class_name): Delete.
8970 (unknown_language_data): Delete la_class_name_from_physname
8971 initializer.
8972 (auto_language_data): Likewise.
8973 * language.h (language_data): Delete la_class_name_from_physname
8974 field.
8975 (language_defn::class_name_from_physname): New function.
8976 (language_class_name_from_physname): Delete declaration.
8977 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8978 initializer.
8979 * objc-lang.c (objc_language_data): Likewise.
8980 * opencl-lang.c (opencl_language_data): Likewise.
8981 * p-lang.c (pascal_language_data): Likewise.
8982 * rust-lang.c (rust_language_data): Likewise.
8983
de543742
TT
89842020-06-16 Tom Tromey <tom@tromey.com>
8985
8986 * tui/tui-data.h (STATUS_NAME): New macro.
8987 * tui/tui-layout.c (tui_remove_some_windows)
8988 (initialize_known_windows, tui_register_window)
8989 (tui_layout_split::remove_windows, initialize_layouts)
8990 (tui_new_layout_command): Don't use hard-coded window names.
8991
a350efd4
TT
89922020-06-16 Tom Tromey <tom@tromey.com>
8993
8994 PR tui/25348:
8995 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8996 tui_initialize_readline. Only run once. Call rl_initialize.
8997 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8998 tui_initialize_readline.
8999 * tui/tui-io.c (tui_setup_io): Call
9000 tui_ensure_readline_initialized.
9001 * tui/tui-interp.c (tui_interp::init): Update.
9002
39ec0490
TT
90032020-06-16 Tom Tromey <tom@tromey.com>
9004
9005 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9006 Also preserve the status window.
9007
d2d1ea20
TT
90082020-06-16 Tom Tromey <tom@tromey.com>
9009
9010 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9011 where m_window==nullptr.
9012
66920317
TT
90132020-06-15 Tom Tromey <tromey@adacore.com>
9014
9015 * windows-nat.c (windows_nat::handle_output_debug_string):
9016 Update.
9017 (windows_nat::handle_ms_vc_exception): Update.
9018 * target.h (target_read_string): Change API.
9019 * target.c (target_read_string): Change API.
9020 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9021 Update.
9022 * solib-frv.c (frv_current_sos): Update.
9023 * solib-dsbt.c (dsbt_current_sos): Update.
9024 * solib-darwin.c (darwin_current_sos): Update.
9025 * linux-thread-db.c (inferior_has_bug): Update.
9026 * expprint.c (print_subexp_standard): Update.
9027 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9028 (ada_exception_message_1): Update.
9029
a5d871dd
TT
90302020-06-15 Tom Tromey <tromey@adacore.com>
9031
9032 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9033
670e35fa
TT
90342020-06-15 Tom Tromey <tromey@adacore.com>
9035
9036 * valprint.c (read_string): Update comment.
9037 * target.c (MIN): Remove.
9038 (target_read_string): Rewrite.
9039
f5272a3b
TT
90402020-06-15 Tom Tromey <tromey@adacore.com>
9041
9042 * corefile.c (read_memory_string): Remove.
9043 * ada-valprint.c (ada_value_print_ptr): Update.
9044 * ada-lang.h (ada_tag_name): Change return type.
9045 * ada-lang.c (type_from_tag): Update.
9046 (ada_tag_name_from_tsd): Change return type. Use
9047 target_read_string.
9048 (ada_tag_name): Likewise.
9049 * gdbcore.h (read_memory_string): Don't declare.
9050
2c074f49
HD
90512020-06-14 Hannes Domani <ssbssa@yahoo.de>
9052
9053 * symtab.c (rbreak_command): Ignore Windows drive colon.
9054
6a17d503
SM
90552020-06-12 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * NEWS: Mention removed GDBserver host support.
9058
453c733f
NC
90592020-06-12 Nelson Chu <nelson.chu@sifive.com>
9060
9061 * features/riscv/rebuild-csr-xml.sh: Updated.
9062
2b4e6a3f
TT
90632020-06-11 Tom Tromey <tom@tromey.com>
9064
9065 PR gdb/18318:
9066 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9067
4412332f
JG
90682020-06-09 Jonny Grant <jg@jguk.org>
90692020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9070
9071 * main.c (captured_main_1): Don't print new line after help.
9072 (print_gdb_help): add mailing list and IRC channel information
9073 to --help. Add new lines between items in the footer. Remove
9074 quotes around bug url.
9075
2f33032a
KS
90762020-06-11 Keith Seitz <keiths@redhat.com>
9077
9078 PR gdb/21356
9079 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9080 Resolve typedefs for type length calculations.
9081
7ab96794
TV
90822020-06-10 Tom de Vries <tdevries@suse.de>
9083
9084 PR ada/24713
9085 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9086 (write_psymbols): Enable .gdb_index for ada.
9087 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9088 ada.
9089
e5f3ece2
TV
90902020-06-10 Tom de Vries <tdevries@suse.de>
9091
9092 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9093 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9094 namei" instead of "const char *name" argument.
9095 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9096 dw2_symtab_iter_init.
9097
940da03e
SM
90982020-06-08 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9101 to use type::field and field::type instead.
9102
b6cdac4b
SM
91032020-06-08 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9106 to use field::type instead.
9107
5d14b6e5
SM
91082020-06-08 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * gdbtypes.h (struct field) <type, set_type>: New methods.
9111 Rename `type` field to...
9112 <m_type>: ... this. Change references throughout to use type or
9113 set_type methods.
9114 (FIELD_TYPE): Use field::type. Change call sites that modify
9115 the field's type to use field::set_type instead.
9116
3d967001
SM
91172020-06-08 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9120 to use type::index_type instead.
9121
262abc0d
SM
91222020-06-08 Simon Marchi <simon.marchi@efficios.com>
9123
9124 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9125 methods.
9126 (TYPE_INDEX_TYPE): Use type::index_type.
9127 * gdbtypes.c (create_array_type_with_stride): Likewise.
9128
82836c92
TT
91292020-06-07 Tom Tromey <tom@tromey.com>
9130
9131 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9132 parameter.
9133 (generic_value_print): Update.
9134
940dace9
AB
91352020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9136
9137 Revert commit 982a38f60b0.
9138 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9139
982a38f6
AB
91402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9141
9142 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9143 avoid use after free.
9144
82f06518
TV
91452020-06-05 Tom de Vries <tdevries@suse.de>
9146
9147 * NEWS: Fix typos.
9148
f8c41851
SM
91492020-06-04 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9152 the per_bfd object.
9153 (dwarf2_read_debug_names): Likewise.
9154 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9155 object when re-using a per_bfd object with an index.
9156
f9b5d5ea
TV
91572020-06-03 Tom de Vries <tdevries@suse.de>
9158
9159 PR symtab/26046
9160 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9161 children for C++.
9162 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9163 DW_TAG_subprogram.
9164
f6eee2d0
AB
91652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9166
9167 * ada-lang.c (ada_language_data): Delete skip_trampoline
9168 initializer.
9169 * c-lang.c (c_language_data): Likewise.
9170 (cplus_language_data): Likewise.
9171 (cplus_language::skip_trampoline): New member function.
9172 (asm_language_data): Delete skip_trampoline initializer.
9173 (minimal_language_data): Likewise.
9174 * d-lang.c (d_language_data): Likewise.
9175 * f-lang.c (f_language_data): Likewise.
9176 * go-lang.c (go_language_data): Likewise.
9177 * language.c (unk_lang_trampoline): Delete function.
9178 (skip_language_trampoline): Update.
9179 (unknown_language_data): Delete skip_trampoline initializer.
9180 (auto_language_data): Likewise.
9181 * language.h (language_data): Delete skip_trampoline field.
9182 (language_defn::skip_trampoline): New function.
9183 * m2-lang.c (m2_language_data): Delete skip_trampoline
9184 initializer.
9185 * objc-lang.c (objc_skip_trampoline): Delete function, move
9186 implementation to objc_language::skip_trampoline.
9187 (objc_language_data): Delete skip_trampoline initializer.
9188 (objc_language::skip_trampoline): New member function with
9189 implementation from objc_skip_trampoline.
9190 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9191 initializer.
9192 * p-lang.c (pascal_language_data): Likewise.
9193 * rust-lang.c (rust_language_data): Likewise.
9194
0a50df5d
AB
91952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9198 (ada_language::demangle): New member function.
9199 * c-lang.c (c_language_data): Delete la_demangle initializer.
9200 (cplus_language_data): Delete la_demangle initializer.
9201 (cplus_language::demangle): New member function.
9202 (asm_language_data): Delete la_demangle initializer.
9203 (minimal_language_data): Delete la_demangle initializer.
9204 * d-lang.c (d_language_data): Delete la_demangle initializer.
9205 (d_language::demangle): New member function.
9206 * f-lang.c (f_language_data): Delete la_demangle initializer.
9207 (f_language::demangle): New member function.
9208 * go-lang.c (go_language_data): Delete la_demangle initializer.
9209 (go_language::demangle): New member function.
9210 * language.c (language_demangle): Update.
9211 (unk_lang_demangle): Delete.
9212 (unknown_language_data): Delete la_demangle initializer.
9213 (unknown_language::demangle): New member function.
9214 (auto_language_data): Delete la_demangle initializer.
9215 (auto_language::demangle): New member function.
9216 * language.h (language_data): Delete la_demangle field.
9217 (language_defn::demangle): New function.
9218 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9219 * objc-lang.c (objc_language_data): Delete la_demangle
9220 initializer.
9221 (objc_language::demangle): New member function.
9222 * opencl-lang.c (opencl_language_data): Delete la_demangle
9223 initializer.
9224 * p-lang.c (pascal_language_data): Likewise.
9225 * rust-lang.c (rust_language_data): Likewise.
9226 (rust_language::demangle): New member function.
9227
fbfb0a46
AB
92282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229
9230 * ada-lang.c (ada_language_data): Delete la_print_type
9231 initializer.
9232 (ada_language::print_type): New member function.
9233 * c-lang.c (c_language_data): Delete la_print_type initializer.
9234 (c_language::print_type): New member function.
9235 (cplus_language_data): Delete la_print_type initializer.
9236 (cplus_language::print_type): New member function.
9237 (asm_language_data): Delete la_print_type initializer.
9238 (asm_language::print_type): New member function.
9239 (minimal_language_data): Delete la_print_type initializer.
9240 (minimal_language::print_type): New member function.
9241 * d-lang.c (d_language_data): Delete la_print_type initializer.
9242 (d_language::print_type): New member function.
9243 * f-lang.c (f_language_data): Delete la_print_type initializer.
9244 (f_language::print_type): New member function.
9245 * go-lang.c (go_language_data): Delete la_print_type initializer.
9246 (go_language::print_type): New member function.
9247 * language.c (unk_lang_print_type): Delete.
9248 (unknown_language_data): Delete la_print_type initializer.
9249 (unknown_language::print_type): New member function.
9250 (auto_language_data): Delete la_print_type initializer.
9251 (auto_language::print_type): New member function.
9252 * language.h (language_data): Delete la_print_type field.
9253 (language_defn::print_type): New function.
9254 (LA_PRINT_TYPE): Update.
9255 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9256 (m2_language::print_type): New member function.
9257 * objc-lang.c (objc_language_data): Delete la_print_type
9258 initializer.
9259 (objc_language::print_type): New member function.
9260 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9261 to opencl_language::print_type.
9262 (opencl_language_data): Delete la_print_type initializer.
9263 (opencl_language::print_type): New member function, implementation
9264 from opencl_print_type.
9265 * p-lang.c (pascal_language_data): Delete la_print_type
9266 initializer.
9267 (pascal_language::print_type): New member function.
9268 * rust-lang.c (rust_print_type): Delete, implementation moved to
9269 rust_language::print_type.
9270 (rust_language_data): Delete la_print_type initializer.
9271 (rust_language::print_type): New member function, implementation
9272 from rust_print_type.
9273
6f827019
AB
92742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9275
9276 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9277 implementation moves to...
9278 (ada_language::sniff_from_mangled_name): ...here. Update return
9279 type.
9280 (ada_language_data): Delete la_sniff_from_mangled_name
9281 initializer.
9282 * c-lang.c (c_language_data): Likewise.
9283 (cplus_language_data): Likewise.
9284 (cplus_language::sniff_from_mangled_name): New member function,
9285 implementation taken from gdb_sniff_from_mangled_name.
9286 (asm_language_data): Delete la_sniff_from_mangled_name
9287 initializer.
9288 (minimal_language_data): Likewise.
9289 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9290 implementation moves to cplus_language::sniff_from_mangled_name.
9291 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9292 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9293 moves to...
9294 (d_language::sniff_from_mangled_name): ...here.
9295 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9296 * f-lang.c (f_language_data): Likewise.
9297 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9298 moves to...
9299 (go_language::sniff_from_mangled_name): ...here.
9300 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9301 * language.c (language_sniff_from_mangled_name): Delete.
9302 (unknown_language_data): Delete la_sniff_from_mangled_name
9303 initializer.
9304 (auto_language_data): Likewise.
9305 * language.h (language_data): Delete la_sniff_from_mangled_name
9306 field.
9307 (language_defn::sniff_from_mangled_name): New function.
9308 (language_sniff_from_mangled_name): Delete declaration.
9309 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9310 field.
9311 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9312 implementation moves to...
9313 (objc_language::sniff_from_mangled_name): ...here.
9314 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9315 * opencl-lang.c (opencl_language_data): Likewise.
9316 * p-lang.c (pascal_language_data): Likewise.
9317 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9318 implementation moves to...
9319 (rust_language::sniff_from_mangled_name): ...here.
9320 (rust_language_data): Delete la_sniff_from_mangled_name
9321 initializer.
9322 * symtab.c (symbol_find_demangled_name): Call
9323 sniff_from_mangled_name member function.
9324
fb8006fd
AB
93252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9328 initializer.
9329 * c-lang.c (c_language_data): Likewise.
9330 (cplus_language_data): Likewise.
9331 (cplus_language::search_name_hash): New member function.
9332 (asm_language_data): Delete la_search_name_hash initializer.
9333 (minimal_language_data): Likewise.
9334 * d-lang.c (d_language_data): Likewise.
9335 * dictionary.c (default_search_name_hash): Rename to...
9336 (language_defn::search_name_hash): ...this.
9337 * f-lang.c (f_language_data): Likewise.
9338 (f_language::search_name_hash): New member function.
9339 * go-lang.c (go_language_data): Delete la_search_name_hash
9340 initializer.
9341 * language.c (unknown_language_data): Likewise.
9342 (auto_language_data): Likewise.
9343 * language.h (struct language_data): Delete la_search_name_hash
9344 field.
9345 (language_defn::search_name_hash): Declare new member function.
9346 (default_search_name_hash): Delete declaration.
9347 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9348 initializer.
9349 * objc-lang.c (objc_language_data): Likewise.
9350 * opencl-lang.c (opencl_language_data): Likewise.
9351 * p-lang.c (pascal_language_data): Likewise.
9352 * rust-lang.c (rust_language_data): Likewise.
9353 * symtab.c (search_name_hash): Update call.
9354
8e25bafe
AB
93552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9356
9357 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9358 initializer.
9359 * c-lang.c (class compile_instance): Declare.
9360 (c_language_data): Delete la_get_compile_instance initializer.
9361 (c_language::get_compile_instance): New member function.
9362 (cplus_language_data): Delete la_get_compile_instance initializer.
9363 (cplus_language::get_compile_instance): New member function.
9364 (asm_language_data): Delete la_get_compile_instance initializer.
9365 (minimal_language_data): Likewise.
9366 * c-lang.h (c_get_compile_context): Update comment.
9367 (cplus_get_compile_context): Update comment.
9368 * compile/compile.c (compile_to_object): Update calls, don't rely
9369 on function pointer being NULL.
9370 * d-lang.c (d_language_data): Delete la_get_compile_instance
9371 initializer.
9372 * f-lang.c (f_language_data): Likewise.
9373 * go-lang.c (go_language_data): Likewise.
9374 * language.c (unknown_language_data): Likewise.
9375 (auto_language_data): Likewise.
9376 * language.h (language_data): Delete la_get_compile_instance field.
9377 (language_defn::get_compile_instance): New member function.
9378 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9379 initializer.
9380 * objc-lang.c (objc_language_data): Likewise.
9381 * opencl-lang.c (opencl_language_data): Likewise.
9382 * p-lang.c (pascal_language_data): Likewise.
9383 * rust-lang.c (rust_language_data): Likewise.
9384
4009ee92
AB
93852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9386
9387 * ada-lang.c (ada_add_all_symbols): Update comment.
9388 (ada_iterate_over_symbols): Delete, move implementation to...
9389 (ada_language::iterate_over_symbols): ...here, a new member
9390 function, rewrite to use range based for loop.
9391 (ada_language_data): Delete la_iterate_over_symbols initializer.
9392 * c-lang.c (c_language_data): Likewise.
9393 (cplus_language_data): Likewise.
9394 (asm_language_data): Likewise.
9395 (minimal_language_data): Likewise.
9396 * d-lang.c (d_language_data): Likewise.
9397 * f-lang.c (f_language_data): Likewise.
9398 * go-lang.c (go_language_data): Likewise.
9399 * language.c (unknown_language_data): Likewise.
9400 (auto_language_data): Likewise.
9401 * language.h (language_data): Delete la_iterate_over_symbols field.
9402 (language_defn::iterate_over_symbols): New member function.
9403 (LA_ITERATE_OVER_SYMBOLS): Update.
9404 * linespec.c (iterate_over_all_matching_symtabs): Update.
9405 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9406 initializer.
9407 * objc-lang.c (objc_language_data): Likewise.
9408 * opencl-lang.c (opencl_language_data): Likewise.
9409 * p-lang.c (pascal_language_data): Likewise.
9410 * rust-lang.c (rust_language_data): Likewise.
9411
54f4ca46
AB
94122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * ada-lang.c (ada_language_data): Delete
9415 la_lookup_transparent_type initializer.
9416 * c-lang.c (c_language_data): Likewise.
9417 (cplus_language_data): Likewise.
9418 (cplus_language::lookup_transparent_type): New member function.
9419 (asm_language_data): Delete la_lookup_transparent_type
9420 initializer.
9421 (minimal_language_data): Likewise.
9422 * d-lang.c (d_language_data): Likewise.
9423 * f-lang.c (f_language_data): Likewise.
9424 * go-lang.c (go_language_data): Likewise.
9425 * language.c (unknown_language_data): Likewise.
9426 (auto_language_data): Likewise.
9427 * language.h (struct language_data): Delete
9428 la_lookup_transparent_type field.
9429 (language_defn::lookup_transparent_type): New member function.
9430 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9431 initializer.
9432 * objc-lang.c (objc_language_data): Likewise.
9433 * opencl-lang.c (opencl_language_data): Likewise.
9434 * p-lang.c (pascal_language_data): Likewise.
9435 * rust-lang.c (rust_language_data): Likewise.
9436 * symtab.c (symbol_matches_domain): Update call.
9437
1fb314aa
AB
94382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * ada-lang.c (ada_language_arch_info): Delete function, move
9441 implementation to...
9442 (ada_language::language_arch_info): ...here, a new member
9443 function.
9444 (ada_language_data): Delete la_language_arch_info.
9445 * c-lang.c (c_language_data): Likewise.
9446 (c_language::language_arch_info): New member function.
9447 (cplus_language_arch_info): Delete function, move
9448 implementation to...
9449 (cplus_language::language_arch_info): ...here, a new member
9450 function.
9451 (cplus_language_data): Delete la_language_arch_info.
9452 (asm_language_data): Likewise.
9453 (asm_language::language_arch_info): New member function.
9454 (minimal_language_data): Delete la_language_arch_info.
9455 (minimal_language::language_arch_info): New member function.
9456 * d-lang.c (d_language_arch_info): Delete function, move
9457 implementation to...
9458 (d_language::language_arch_info): ...here, a new member
9459 function.
9460 (d_language_data): Delete la_language_arch_info.
9461 * f-lang.c (f_language_arch_info): Delete function, move
9462 implementation to...
9463 (f_language::language_arch_info): ...here, a new member
9464 function.
9465 (f_language_data): Delete la_language_arch_info.
9466 * go-lang.c (go_language_arch_info): Delete function, move
9467 implementation to...
9468 (go_language::language_arch_info): ...here, a new member
9469 function.
9470 (go_language_data): Delete la_language_arch_info.
9471 * language.c (unknown_language_data): Likewise.
9472 (unknown_language::language_arch_info): New member function.
9473 (auto_language_data): Delete la_language_arch_info.
9474 (auto_language::language_arch_info): New member function.
9475 (language_gdbarch_post_init): Update call to
9476 la_language_arch_info.
9477 * language.h (language_data): Delete la_language_arch_info
9478 function pointer.
9479 (language_defn::language_arch_info): New function.
9480 * m2-lang.c (m2_language_arch_info): Delete function, move
9481 implementation to...
9482 (m2_language::language_arch_info): ...here, a new member
9483 function.
9484 (m2_language_data): Delete la_language_arch_info.
9485 * objc-lang.c (objc_language_arch_info): Delete function, move
9486 implementation to...
9487 (objc_language::language_arch_info): ...here, a new member
9488 function.
9489 (objc_language_data): Delete la_language_arch_info.
9490 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9491 implementation to...
9492 (opencl_language::language_arch_info): ...here, a new member
9493 function.
9494 (opencl_language_data): Delete la_language_arch_info.
9495 * p-lang.c (pascal_language_arch_info): Delete function, move
9496 implementation to...
9497 (pascal_language::language_arch_info): ...here, a new member
9498 function.
9499 (pascal_language_data): Delete la_language_arch_info.
9500 * rust-lang.c (rust_language_arch_info): Delete function, move
9501 implementation to...
9502 (rust_language::language_arch_info): ...here, a new member
9503 function.
9504 (rust_language_data): Delete la_language_arch_info.
9505
48448202
AB
95062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9507
9508 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9509 initializer.
9510 * c-lang.c (c_language_data): Likewise.
9511 (cplus_language_data): Likewise.
9512 (cplus_language::pass_by_reference_info): New method.
9513 (asm_language_data): Delete la_pass_by_reference initializer.
9514 (minimal_language_data): Likewise.
9515 * cp-abi.c (cp_pass_by_reference): Remove use of
9516 default_pass_by_reference.
9517 * d-lang.c (d_language_data): Likewise.
9518 * f-lang.c (f_language_data): Likewise.
9519 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9520 default_pass_by_reference.
9521 * go-lang.c (go_language_data): Likewise.
9522 * language.c (language_pass_by_reference): Update.
9523 (default_pass_by_reference): Delete.
9524 (unknown_language_data): Delete la_pass_by_reference
9525 initializer.
9526 (auto_language_data): Likewise.
9527 * language.h (struct language_data): Delete la_pass_by_reference
9528 field.
9529 (language_defn::pass_by_reference_info): New member function.
9530 (default_pass_by_reference): Delete declaration.
9531 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9532 initializer.
9533 * objc-lang.c (objc_language_data): Likewise.
9534 * opencl-lang.c (opencl_language_data): Likewise.
9535 * p-lang.c (pascal_language_data): Likewise.
9536 * rust-lang.c (rust_language_data): Likewise.
9537
15e5fd35
AB
95382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * ada-lang.c (ada_read_var_value): Delete function, move
9541 implementation to...
9542 (ada_language::read_var_value): ...here.
9543 (ada_language_data): Delete la_read_var_value initializer.
9544 * c-lang.c (c_language_data): Likewise.
9545 (cplus_language_data): Likewise.
9546 (minimal_language_data): Likewise.
9547 * d-lang.c (d_language_data): Likewise.
9548 * f-lang.c (f_language_data): Likewise.
9549 * findvar.c (default_read_var_value): Rename to...
9550 (language_defn::read_var_value): ...this.
9551 * findvar.c (read_var_value): Update header comment, and change to
9552 call member function instead of function pointer.
9553 * go-lang.c (go_language_data): Likewise.
9554 * language.c (unknown_language_data): Delete la_read_var_value
9555 initializer.
9556 (auto_language_data): Likewise.
9557 * language.h (struct language_data): Delete la_read_var_value
9558 field.
9559 (language_defn::read_var_value): New member function.
9560 (default_read_var_value): Delete declaration.
9561 * m2-lang.c (m2_language_data): Delete la_read_var_value
9562 initializer.
9563 * objc-lang.c (objc_language_data): Likewise.
9564 * opencl-lang.c (opencl_language_data): Likewise.
9565 * p-lang.c (pascal_language_data): Likewise.
9566 * rust-lang.c (rust_language_data): Likewise.
9567 * value.h (default_read_var_value): Delete declaration.
9568
5bd40f2a
AB
95692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * ada-lang.c (ada_print_array_index): Delete function, move
9572 implementation to...
9573 (ada_language::print_array_index): ...here.
9574 (ada_language_data): Delete la_print_array_index initializer.
9575 * c-lang.c (c_language_data): Likewise.
9576 (cplus_language_data): Likewise.
9577 (minimal_language_data): Likewise.
9578 * d-lang.c (d_language_data): Likewise.
9579 * f-lang.c (f_language_data): Likewise.
9580 * go-lang.c (go_language_data): Likewise.
9581 * language.c (default_print_array_index): Delete function, move
9582 implementation to...
9583 (language_defn::print_array_index): ...here.
9584 (unknown_language_data): Delete la_print_array_index initializer.
9585 (auto_language_data): Likewise.
9586 * language.h (struct language_data): Delete la_print_array_index
9587 field.
9588 (language_defn::print_array_index): New member function.
9589 (LA_PRINT_ARRAY_INDEX): Update.
9590 (default_print_array_index): Delete declaration.
9591 * m2-lang.c (m2_language_data): Delete la_print_array_index
9592 initializer.
9593 * objc-lang.c (objc_language_data): Likewise.
9594 * opencl-lang.c (opencl_language_data): Likewise.
9595 * p-lang.c (pascal_language_data): Likewise.
9596 * rust-lang.c (rust_language_data): Likewise.
9597
0874fd07
AB
95982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9599
9600 * gdb/ada-lang.c (ada_language_defn): Convert to...
9601 (ada_language_data): ...this.
9602 (class ada_language): New class.
9603 (ada_language_defn): New static global.
9604 * gdb/c-lang.c (c_language_defn): Convert to...
9605 (c_language_data): ...this.
9606 (class c_language): New class.
9607 (c_language_defn): New static global.
9608 (cplus_language_defn): Convert to...
9609 (cplus_language_data): ...this.
9610 (class cplus_language): New class.
9611 (cplus_language_defn): New static global.
9612 (asm_language_defn): Convert to...
9613 (asm_language_data): ...this.
9614 (class asm_language): New class.
9615 (asm_language_defn): New static global.
9616 (minimal_language_defn): Convert to...
9617 (minimal_language_data): ...this.
9618 (class minimal_language): New class.
9619 (minimal_language_defn): New static global.
9620 * gdb/d-lang.c (d_language_defn): Convert to...
9621 (d_language_data): ...this.
9622 (class d_language): New class.
9623 (d_language_defn): New static global.
9624 * gdb/f-lang.c (f_language_defn): Convert to...
9625 (f_language_data): ...this.
9626 (class f_language): New class.
9627 (f_language_defn): New static global.
9628 * gdb/go-lang.c (go_language_defn): Convert to...
9629 (go_language_data): ...this.
9630 (class go_language): New class.
9631 (go_language_defn): New static global.
9632 * gdb/language.c (unknown_language_defn): Remove declaration.
9633 (current_language): Initialize to nullptr, real initialization is
9634 moved to _initialize_language.
9635 (languages): Delete global.
9636 (language_defn::languages): Define.
9637 (set_language_command): Use language_defn::languages.
9638 (set_language): Likewise.
9639 (range_error): Likewise.
9640 (language_enum): Likewise.
9641 (language_def): Likewise.
9642 (add_set_language_command): Use language_def::languages for the
9643 language list, and language_def to lookup language pointers.
9644 (skip_language_trampoline): Use language_defn::languages.
9645 (unknown_language_defn): Convert to...
9646 (unknown_language_data): ...this.
9647 (class unknown_language): New class.
9648 (unknown_language_defn): New static global.
9649 (auto_language_defn): Convert to...
9650 (auto_language_data): ...this.
9651 (class auto_language): New class.
9652 (auto_language_defn): New static global.
9653 (language_gdbarch_post_init): Use language_defn::languages.
9654 (_initialize_language): Initialize current_language.
9655 * gdb/language.h (struct language_defn): Rename to...
9656 (struct language_data): ...this.
9657 (struct language_defn): New.
9658 (auto_language_defn): Delete.
9659 (unknown_language_defn): Delete.
9660 (minimal_language_defn): Delete.
9661 (ada_language_defn): Delete.
9662 (asm_language_defn): Delete.
9663 (c_language_defn): Delete.
9664 (cplus_language_defn): Delete.
9665 (d_language_defn): Delete.
9666 (f_language_defn): Delete.
9667 (go_language_defn): Delete.
9668 (m2_language_defn): Delete.
9669 (objc_language_defn): Delete.
9670 (opencl_language_defn): Delete.
9671 (pascal_language_defn): Delete.
9672 (rust_language_defn): Delete.
9673 * gdb/m2-lang.c (m2_language_defn): Convert to...
9674 (m2_language_data): ...this.
9675 (class m2_language): New class.
9676 (m2_language_defn): New static global.
9677 * gdb/objc-lang.c (objc_language_defn): Convert to...
9678 (objc_language_data): ...this.
9679 (class objc_language): New class.
9680 (objc_language_defn): New static global.
9681 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9682 (opencl_language_data): ...this.
9683 (class opencl_language): New class.
9684 (opencl_language_defn): New static global.
9685 * gdb/p-lang.c (pascal_language_defn): Convert to...
9686 (pascal_language_data): ...this.
9687 (class pascal_language): New class.
9688 (pascal_language_defn): New static global.
9689 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9690 language pointer, update comment format.
9691 * gdb/rust-lang.c (rust_language_defn): Convert to...
9692 (rust_language_data): ...this.
9693 (class rust_language): New class.
9694 (rust_language_defn): New static global.
9695
1313c56e
AB
96962020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9699 member variable.
9700 <m_stmt_at_address>: New member variable.
9701 (lnp_state_machine::record_line): Don't record some lines, update
9702 tracking of is_stmt at the same address.
9703 (lnp_state_machine::lnp_state_machine): Initialise new member
9704 variables.
9705
b7ed9f3d
ST
97062020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9707
9708 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9709 "-include gnu-nat-mig.h".
9710 * gnu-nat-mig.h: New file.
9711 * gnu-nat.c: Include "gnu-nat-mig.h".
9712 (exc_server, msg_reply_server, notify_server,
9713 process_reply_server): Remove declarations.
9714
14a8ad62
ST
97152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9716
9717 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9718 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9719 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9720 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9721 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9722 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9723 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9724 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9725 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9726 to gnu_nat_target class.
9727 * gnu-nat.c: Likewise.
9728 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9729 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9730 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9731 object.
9732 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9733 instead of `gnu_target'.
9734
0af5e106
ST
97352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9736
9737 * i386-gnu-tdep.c: Include "gdbcore.h"
9738 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9739 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9740 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9741 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9742 i386_gnu_sigcontext_addr): New functions
9743 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9744 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9745 tdep.
9746
078f2fc9
ST
97472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9748
9749 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9750 before fork_inferior call. Avoid calling it if target_is_pushed returns
9751 true.
9752
53dff92c
ST
97532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9754
9755 * gnu-nat.h (gnu_target): New variable declaration.
9756 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9757 gnu_target.
9758 * gnu-nat.c (gnu_target): New variable.
9759 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9760 add_thread_silent, and add_thread calls.
9761 (gnu_nat_target::create_inferior): Pass gnu_target to
9762 add_thread_silent, thread_change_ptid call.
9763 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9764 call.
9765
5a8b8627
ST
97662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9767
9768 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9769 (gnu_nat_target::find_memory_regions): Remove unused
9770 `old_address' variable.
9771
366f550a
ST
97722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9773
9774 * gnu-nat.c: Include "gdbarch.h".
9775
f14871bf
ST
97762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9777
9778 * reply_mig_hack.awk (Error return): Cast function through
9779 void *, to bypass compiler function call check.
9780
c6887cfb
ST
97812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9782
9783 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9784 $(srcdir)/reply_mig_hack.awk.
9785
6930bffe
ST
97862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9787
9788 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9789
112c22ed
JG
97902020-05-30 Jonny Grant <jg@jguk.org>
9791
9792 * configure.ac (ACX_BUGURL): change bug URL to https.
9793
f68f85b5
PA
97942020-05-30 Pedro Alves <palves@redhat.com>
9795
9796 * cp-support.c (replace_typedefs_template): New.
9797 (replace_typedefs_qualified_name): Handle
9798 DEMANGLE_COMPONENT_TEMPLATE.
9799
976ca316
SM
98002020-05-29 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9803 dwarf2/index-cache.h, dwarf2/index-write.c,
9804 dwarf2/index-write.h, dwarf2/line-header.c,
9805 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9806 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9807 variables and fields from `dwarf2_per_objfile` to just
9808 `per_objfile` throughout.
9809
989ade05
SM
98102020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9811
9812 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9813 <push_dwarf_reg_entry_value>: Add comment.
9814
c47bae85
KB
98152020-05-28 Kevin Buettner <kevinb@redhat.com>
9816 Keith Seitz <keiths@redhat.com>
9817
9818 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9819 instead of PyEval_ReleaseLock.
9820 (class gdbpy_gil): Move to earlier in file.
9821 (finalize_python): Set gdb_python_initialized.
9822 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9823 when not initialized.
9824
44486dcf
SM
98252020-05-28 Simon Marchi <simon.marchi@efficios.com>
9826
9827 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9828 <push_dwarf_reg_entry_value>: Remove assert. Override
9829 per_objfile with caller_per_objfile.
9830
f030440d
TV
98312020-05-28 Tom de Vries <tdevries@suse.de>
9832
9833 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9834 PR gold/15646 workaround to symbol kind "type".
9835
f0fbb768
TT
98362020-05-27 Tom Tromey <tromey@adacore.com>
9837
9838 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9839
af0b2a3e
TT
98402020-05-27 Tom Tromey <tromey@adacore.com>
9841
9842 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9843 Use htab_find_with_hash.
9844 <add_abbrev>: Remove "abbrev_number" parameter.
9845 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9846 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9847 (hash_abbrev): Add comment.
9848 (abbrev_table::lookup_abbrev): Move to header file.
9849 (abbrev_table::read): Update.
9850
7d00ffec
TT
98512020-05-27 Tom Tromey <tromey@adacore.com>
9852
9853 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9854 method.
9855 <canonical_name>: New member.
9856 <raw_name>: Rename from "name".
9857 (partial_die_info): Initialize canonical_name.
9858 (scan_partial_symbols): Check raw_name.
9859 (partial_die_parent_scope, partial_die_full_name)
9860 (add_partial_symbol, add_partial_subprogram)
9861 (add_partial_enumeration, load_partial_dies): Use "name" method.
9862 (partial_die_info::name): New method.
9863 (partial_die_info::read, guess_partial_die_structure_name)
9864 (partial_die_info::fixup): Update.
9865
697bba18
TT
98662020-05-27 Tom Tromey <tromey@adacore.com>
9867
9868 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9869 <get_ref_die_offset>: Inline.
9870 <get_ref_die_offset_complaint>: New method.
9871 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9872 (attribute::get_ref_die_offset_complaint): Rename from
9873 get_ref_die_offset. Just issue complaint.
9874
c17ace43
HD
98752020-05-27 Hannes Domani <ssbssa@yahoo.de>
9876
9877 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9878
96445f0b
HD
98792020-05-27 Hannes Domani <ssbssa@yahoo.de>
9880
9881 * exec.c (exec_file_attach): Use errno value of first openp failure.
9882
ac637ec3
HD
98832020-05-27 Hannes Domani <ssbssa@yahoo.de>
9884
9885 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9886 Don't close thread handle.
9887
17ee85fc
TT
98882020-05-27 Tom Tromey <tom@tromey.com>
9889 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9892 shared_ptr.
9893 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9894 member.
9895 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9896 dwarf2_per_bfd_objfile_data_key>: New globals.
9897 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9898 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9899 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9900 shared.
9901 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9902 short-circuit when sharing.
9903 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9904 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9905
39b16f87
SM
99062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9909 to...
9910 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9911 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9912
fcf23d5b
SM
99132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9916 build_name_components, find_name_components_bounds>:
9917 Add per_objfile parameter.
9918 (struct mapped_index) <symbol_name_at>: Likewise.
9919 (struct mapped_debug_names): Remove constructor.
9920 <dwarf2_per_objfile>: Remove field.
9921 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9922 (mapped_index_base::find_name_components_bounds,
9923 mapped_index_base::build_name_components,
9924 dw2_expand_symtabs_matching_symbol): Likewise.
9925 (class mock_mapped_index) <symbol_name_at>: Likewise.
9926 (check_match): Likewise.
9927 (check_find_bounds_finds): Likewise.
9928 (test_mapped_index_find_name_component_bounds): Update.
9929 (CHECK_MATCH): Update.
9930 (dw2_expand_symtabs_matching): Update.
9931 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9932 per_objfile parameter.
9933 <find_vec_in_debug_names>: Likewise.
9934 <m_per_objfile>: New field.
9935 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9936 parameter.
9937 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9938 (dw2_debug_names_iterator::next): Update.
9939 (dw2_debug_names_lookup_symbol): Update.
9940 (dw2_debug_names_expand_symtabs_for_function): Update.
9941 (dw2_debug_names_map_matching_symbols): Update.
9942 (dw2_debug_names_expand_symtabs_matching): Update.
9943 (dwarf2_read_debug_names): Update.
9944
7188ed02
SM
99452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9948 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9949 move to dwarf2_per_objfile.
9950 <read_in_chain>: Remove.
9951 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9952 remove_all_cus, age_comp_units>: New methods.
9953 <m_dwarf2_cus>: New member.
9954 (struct dwarf2_per_cu_data) <cu>: Remove.
9955 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9956 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9957 moved to methods of dwarf2_per_objfile.
9958 (dwarf2_clear_marks): Remove.
9959 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9960 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9961 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9962 (dwarf2_per_objfile::remove_all_cus): New.
9963 (class free_cached_comp_units) <~free_cached_comp_units>:
9964 Update.
9965 (load_cu): Update.
9966 (dw2_do_instantiate_symtab): Adjust.
9967 (fill_in_sig_entry_from_dwo_entry): Adjust.
9968 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9969 (cutu_reader::cutu_reader): Likewise.
9970 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9971 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9972 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9973 and dwarf2_per_objfile::age_comp_units.
9974 (load_partial_comp_unit): Update.
9975 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9976 (process_queue): Likewise.
9977 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9978 backlink.
9979 (dwarf2_read_addr_index): Likewise.
9980 (follow_die_offset): Likewise.
9981 (dwarf2_fetch_die_loc_sect_off): Likewise.
9982 (dwarf2_fetch_constant_bytes): Likewise.
9983 (dwarf2_fetch_die_type_sect_off): Likewise.
9984 (follow_die_sig_1): Likewise.
9985 (load_full_type_unit): Likewise.
9986 (read_signatured_type): Likewise.
9987 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9988 (dwarf2_cu::~dwarf2_cu): Remove.
9989 (dwarf2_per_objfile::get_cu): New.
9990 (dwarf2_per_objfile::set_cu): New.
9991 (age_cached_comp_units): Rename to...
9992 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9993 to std::unordered_map.
9994 (free_one_cached_comp_unit): Rename to...
9995 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9996 to std::unordered_map.
9997 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9998 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9999 a dwarf2_per_objfile in data.
10000 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10001 (dwarf2_clear_marks): Remove.
10002
2e671100
SM
100032020-05-27 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10006 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10007 (init_tu_and_read_dwo_dies): Likewise.
10008 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10009 (cutu_reader::cutu_reader): Likewise.
10010 (load_partial_comp_unit): Likewise.
10011 (process_psymtab_comp_unit): Update.
10012 (build_type_psymtabs_1): Update.
10013 (process_skeletonless_type_unit): Update.
10014 (load_full_comp_unit): Update.
10015 (find_partial_die): Update.
10016 (dwarf2_read_addr_index): Update.
10017 (read_signatured_type): Update.
10018
2e6a9f79
SM
100192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10022 m_header_read_in>: New fields.
10023 <get_header>: New method.
10024 * dwarf2/read.c (per_cu_header_read_in): Remove.
10025 (dwarf2_per_cu_data::get_header): New.
10026 (dwarf2_per_cu_data::addr_size): Update.
10027 (dwarf2_per_cu_data::offset_size): Update.
10028 (dwarf2_per_cu_data::ref_addr_size): Update.
10029
1b555f17
SM
100302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10031
10032 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10033 (dw2_do_instantiate_symtab): Update.
10034 (queue_and_load_all_dwo_tus): Change parameter from
10035 dwarf2_per_cu_data to dwarf2_cu.
10036 (dwarf2_fetch_die_loc_sect_off): Update.
10037 (dwarf2_fetch_constant_bytes): Update.
10038 (dwarf2_fetch_die_type_sect_off): Update.
10039
8fc0b21d
SM
100402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2/read.c (process_full_comp_unit,
10043 process_full_type_unit): Remove per_cu, per_objfile paramters.
10044 Add dwarf2_cu parameter.
10045 (process_queue): Update.
10046
168c9250
SM
100472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10048
10049 * dwarf2/read.c (create_cu_from_index_list): Replace
10050 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10051 (create_cus_from_index_list): Likewise.
10052 (create_cus_from_index): Likewise.
10053 (create_signatured_type_table_from_index): Likewise.
10054 (create_cus_from_debug_names_list): Likewise.
10055 (create_cus_from_debug_names): Likewise.
10056 (dwarf2_read_gdb_index): Update.
10057 (dwarf2_read_debug_names): Update.
10058
e286671b
TT
100592020-05-27 Tom Tromey <tom@tromey.com>
10060 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/read.h (struct dwarf2_per_objfile)
10063 <get_type_for_signatured_type, set_type_for_signatured_type>:
10064 New methods.
10065 <m_type_map>: New member.
10066 (struct signatured_type) <type>: Remove.
10067 * dwarf2/read.c
10068 (dwarf2_per_objfile::get_type_for_signatured_type,
10069 dwarf2_per_objfile::set_type_for_signatured_type): New.
10070 (get_signatured_type): Use new methods.
10071
8adb8487
TT
100722020-05-27 Tom Tromey <tom@tromey.com>
10073 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10076 (struct dwarf2_per_objfile) <type_units>: New member.
10077 <get_type_unit_group_unshareable>: New method.
10078 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10079 num_symtabs, symtabs>: Remove; move to
10080 type_unit_group_unshareable.
10081 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10082 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10083 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10084
127bbf4b
SM
100852020-05-27 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * dwarf2/read.h (struct dwarf2_per_cu_data):
10088 <dwarf2_per_objfile>: Remove.
10089 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10090 dwarf2_per_objfile.
10091 (create_signatured_type_table_from_index): Likewise.
10092 (create_signatured_type_table_from_debug_names): Likewise.
10093 (create_debug_type_hash_table): Likewise.
10094 (fill_in_sig_entry_from_dwo_entry): Likewise.
10095 (create_type_unit_group): Likewise.
10096 (read_comp_units_from_section): Likewise.
10097 (create_cus_hash_table): Likewise.
10098
f6e649dd
SM
100992020-05-27 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10102 dwarf2_per_cu_data::dwarf2_per_objfile.
10103 (compute_compunit_symtab_includes): Likewise.
10104 (dwarf2_cu::start_symtab): Likewise.
10105
aa66c379
SM
101062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10107
10108 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10109 parameter.
10110 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10111 (read_namespace_alias): Update.
10112 (lookup_die_type): Update.
10113 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10114 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10115 Update.
10116 (disassemble_dwarf_expression): Update.
10117
120ce1b5
SM
101182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10119
10120 * dwarf2/read.h (struct dwarf2_queue_item): Add
10121 dwarf2_per_objfile parameter, assign new parameter.
10122 <per_objfile>: New field.
10123 * dwarf2/read.c (free_one_cached_comp_unit): Add
10124 dwarf2_per_objfile parameter.
10125 (queue_comp_unit): Likewise.
10126 (dw2_do_instantiate_symtab): Update.
10127 (process_psymtab_comp_unit): Update.
10128 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10129 (process_imported_unit_die): Update.
10130 (queue_and_load_dwo_tu): Update.
10131 (follow_die_offset): Update.
10132 (follow_die_sig_1): Update.
10133
9f47c707
SM
101342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10137 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10138 (read_call_site_scope): Assign per_objfile.
10139 (dwarf2_per_cu_data::objfile): Remove.
10140 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10141 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10142 dwarf2_per_objfile parameter.
10143 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10144 dwarf2_per_objfile parameter.
10145 (dwarf_expr_reg_to_entry_parameter): Add output
10146 dwarf2_per_objfile parameter.
10147 (locexpr_get_frame_base): Update.
10148 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10149 <push_dwarf_reg_entry_value>: Update.
10150 <call_site_to_target_addr>: Update.
10151 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10152 parameter.
10153 (value_of_dwarf_reg_entry): Update.
10154 (rw_pieced_value): Update.
10155 (indirect_synthetic_pointer): Update.
10156 (dwarf2_evaluate_property): Update.
10157 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10158 parameter.
10159 (locexpr_read_variable): Update.
10160 (locexpr_get_symbol_read_needs): Update.
10161 (loclist_read_variable): Update.
10162
14095eb3
SM
101632020-05-27 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10166 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10167 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10168 parameter.
10169 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10170 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10171 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10172 parameter.
10173 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10174 sect_variable_value): Add dwarf2_per_objfile parameter.
10175 (class dwarf_evaluate_loc_desc) <dwarf_call,
10176 dwarf_variable_value>: Update.
10177 (fetch_const_value_from_synthetic_pointer): Add
10178 dwarf2_per_objfile parameter.
10179 (fetch_const_value_from_synthetic_pointer): Update.
10180 (coerced_pieced_ref): Update.
10181 (class symbol_needs_eval_context) <dwarf_call,
10182 dwarf_variable_value>: Update.
10183 (dwarf2_compile_expr_to_ax): Update.
10184
3c3cd3d4
SM
101852020-05-27 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10188 parameter.
10189 (dwarf2_evaluate_loc_desc_full): Update.
10190
82ca3f51
SM
101912020-05-27 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10194 parameter.
10195 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10196 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10197 dwarf2_per_objfile parameter.
10198 (decode_debug_loc_dwo_addresses): Likewise.
10199 (dwarf2_find_location_expression): Update.
10200 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10201 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10202 parameter.
10203 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10204 parameter.
10205 (locexpr_describe_location_1): Likewise.
10206 (locexpr_describe_location): Update.
10207
4b167ea1
SM
102082020-05-27 Simon Marchi <simon.marchi@efficios.com>
10209
10210 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10211 Remove.
10212 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10213 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10214 (dwarf2_compile_property_to_c): Update.
10215 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10216 use text offset from objfile.
10217 (locexpr_tracepoint_var_ref): Update.
10218 (locexpr_generate_c_location): Update.
10219 (loclist_describe_location): Update.
10220 (loclist_tracepoint_var_ref): Update.
10221 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10222 dwarf2_per_objfile parameter.
10223 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10224 use text offset from objfile.
10225 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10226
89b07335
SM
102272020-05-27 Simon Marchi <simon.marchi@efficios.com>
10228
10229 * dwarf2/expr.h (struct dwarf_expr_context)
10230 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10231 <offset>: Remove.
10232 <per_objfile>: New member.
10233 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10234 dwarf2_per_objfile parameter. Don't set offset, set
10235 per_objfile.
10236 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10237 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10238 a dwarf2_per_objfile object instead of an offset.
10239 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10240 constructor.
10241 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10242 to dwarf2_expr_executor constructor. Don't set offset.
10243 (dwarf2_fetch_cfa_info): Update.
10244 (struct dwarf2_frame_cache) <text_offset>: Remove.
10245 <per_objfile>: New field.
10246 (dwarf2_frame_cache): Update.
10247 (dwarf2_frame_prev_register): Update.
10248 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10249 <dwarf_evaluate_loc_desc>: Add constructor.
10250 (dwarf2_evaluate_loc_desc_full): Update.
10251 (dwarf2_locexpr_baton_eval): Update.
10252 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10253 Add constructor.
10254 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10255
293e7e51
SM
102562020-05-27 Simon Marchi <simon.marchi@efficios.com>
10257
10258 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10259 addr_sized_int_type>: Move to dwarf2_cu.
10260 <int_type>: Move to dwarf2_per_objfile.
10261 (struct dwarf2_per_objfile) <int_type>: Move here.
10262 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10263 addr_sized_int_type>: Move here.
10264 (read_func_scope): Update.
10265 (read_array_type): Update.
10266 (read_tag_string_type): Update.
10267 (attr_to_dynamic_prop): Update.
10268 (dwarf2_per_cu_data::int_type): Rename to...
10269 (dwarf2_per_objfile::int_type): ... this.
10270 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10271 (dwarf2_cu::addr_sized_int_type): ... this.
10272 (read_subrange_type): Update.
10273 (dwarf2_per_cu_data::addr_type): Rename to...
10274 (dwarf2_cu::addr_type): ... this.
10275 (set_die_type): Update.
10276
64874a40
SM
102772020-05-27 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10280 data through per_cu->cu.
10281
4ab09049
SM
102822020-05-27 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10285 dwarf2_per_cu_data parameter fo dwarf2_cu.
10286 (lookup_dwo_type_unit): Likewise.
10287 (read_cutu_die_from_dwo): Likewise.
10288 (lookup_dwo_unit): Likewise.
10289 (open_and_init_dwo_file): Likewise.
10290 (lookup_dwo_cutu): Likewise.
10291 (lookup_dwo_comp_unit): Likewise.
10292 (lookup_dwo_type_unit): Likewise.
10293 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10294 (cutu_reader::cutu_reader): Update.
10295
47b14e86
SM
102962020-05-27 Simon Marchi <simon.marchi@efficios.com>
10297
10298 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10299 parameter.
10300 (process_full_type_unit): Likewise.
10301 (process_queue): Update.
10302
43182c09
SM
103032020-05-27 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * dwarf2/read.c (recursively_compute_inclusions): Add
10306 dwarf2_per_objfile parameter.
10307 (compute_compunit_symtab_includes): Likewise.
10308 (process_cu_includes): Update.
10309
7aa104c4
SM
103102020-05-27 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10313 parameter.
10314 (create_type_unit_group): Update.
10315 (process_psymtab_comp_unit_reader): Update.
10316 (build_type_psymtabs_reader): Update.
10317
e3beb21d
SM
103182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10321 object through m_this_cu->cu.
10322
d460f660
SM
103232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10324
10325 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10326 the info parameter.
10327 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10328
ab432490
SM
103292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10330
10331 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10332 per_objfile parameter.
10333 (load_full_type_unit): Add per_objfile parameter.
10334 (read_signatured_type): Likewise.
10335 (load_full_comp_unit): Likewise.
10336 (load_cu): Likewise.
10337 (dw2_do_instantiate_symtab): Likewise.
10338 (dw2_get_file_names): Likewise.
10339 (dw2_map_symtabs_matching_filename): Update.
10340 (dw_expand_symtabs_matching_file_matcher): Update.
10341 (dw2_map_symbol_filenames): Update.
10342 (process_psymtab_comp_unit): Add per_objfile parameter.
10343 (build_type_psymtabs_1): Update.
10344 (process_skeletonless_type_unit): Update.
10345 (dwarf2_build_psymtabs_hard): Update.
10346 (load_partial_comp_unit): Add per_objfile parameter.
10347 (scan_partial_symbols): Update.
10348 (load_full_comp_unit): Add per_objfile parameter.
10349 (process_imported_unit_die): Update.
10350 (create_cus_hash_table): Update.
10351 (find_partial_die): Update.
10352 (dwarf2_read_addr_index): Update.
10353 (follow_die_offset): Update.
10354 (dwarf2_fetch_die_loc_sect_off): Update.
10355 (dwarf2_fetch_constant_bytes): Update.
10356 (dwarf2_fetch_die_type_sect_off): Update.
10357 (follow_die_sig_1): Update.
10358 (load_full_type_unit): Add per_objfile parameter.
10359 (read_signatured_type): Likewise.
10360
313bad1b
SM
103612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10364 of objfile_name.
10365
c3699833
SM
103662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10367
10368 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10369 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10370 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10371 field.
10372 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10373 (create_cus_from_index): Update.
10374 (dwarf2_read_gdb_index): Update.
10375 (create_cus_from_debug_names): Update.
10376 (dwarf2_read_debug_names): Update.
10377 (get_abbrev_section_for_cu): Update.
10378 (create_all_comp_units): Update.
10379 (read_attribute_value): Update.
10380 (get_debug_line_section): Update.
10381 * dwarf2/index-cache.c (index_cache::store): Update.
10382 * dwarf2/index-write.c (save_gdb_index_command): Update.
10383 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10384
1859c670
SM
103852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10386
10387 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10388 member.
10389 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10390 dwarf2_per_cu_data::per_bfd.
10391 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10392 (create_type_unit_group): Likewise.
10393 (queue_comp_unit): Remove reference to
10394 per_cu->dwarf2_per_objfile.
10395 (maybe_queue_comp_unit): Likewise.
10396 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10397 (create_cus_hash_table): Assign new field.
10398
5e22e966
SM
103992020-05-27 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * dwarf2/read.c: Replace
10402 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10403 dwarf2_cu->per_objfile throughout.
10404
97a1449a
SM
104052020-05-27 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10408 parameter, don't use per_cu->dwarf2_per_objfile.
10409 (dw2_instantiate_symtab): Likewise.
10410 (dw2_find_last_source_symtab): Update.
10411 (dw2_map_expand_apply): Update.
10412 (dw2_lookup_symbol): Update.
10413 (dw2_expand_symtabs_for_function): Update.
10414 (dw2_expand_all_symtabs): Update.
10415 (dw2_expand_symtabs_with_fullname): Update.
10416 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10417 don't use per_cu->dwarf2_per_objfile.
10418 (dw2_expand_marked_cus): Update.
10419 (dw2_find_pc_sect_compunit_symtab): Update.
10420 (dw2_debug_names_lookup_symbol): Update.
10421 (dw2_debug_names_expand_symtabs_for_function): Update.
10422 (dw2_debug_names_map_matching_symbols): Update.
10423 (dwarf2_psymtab::expand_psymtab): Update.
10424
9e021579
SM
104252020-05-27 Simon Marchi <simon.marchi@efficios.com>
10426
10427 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10428 <per_objfile>: New member.
10429 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10430 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10431 call to dwarf2_cu.
10432 (cutu_reader::cutu_reader): Update.
10433 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10434
ae090bdb
SM
104352020-05-27 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10438 struct dwarf2_per_objfile.
10439 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10440 dwarf2_per_bfd.
10441 * dwarf2/read.c (set_die_type): Update.
10442 (get_die_type_at_offset): Update.
10443
af758d11
SM
104442020-05-27 Tom Tromey <tom@tromey.com>
10445 Simon Marchi <simon.marchi@efficios.com>
10446
10447 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10448 method.
10449 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10450 get_symtab, set_symtab>: New methods.
10451 <m_symtabs>: New field.
10452 (struct dwarf2_psymtab): Derive from partial_symtab.
10453 <readin_p, get_compunit_symtab>: Declare methods.
10454 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10455 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10456 New methods.
10457 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10458 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10459 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10460 (dw2_symtab_iter_next, dw2_print_stats)
10461 (dw2_expand_symtabs_with_fullname)
10462 (dw2_expand_symtabs_matching_one)
10463 (dw_expand_symtabs_matching_file_matcher)
10464 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10465 (dw2_debug_names_iterator::next)
10466 (dw2_debug_names_map_matching_symbols)
10467 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10468 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10469 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10470 New methods.
10471 (get_compunit_symtab, process_full_comp_unit)
10472 (process_full_type_unit): Update.
10473 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10474
5989a64e
SM
104752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10476
10477 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10478 then introduce a new dwarf2_per_objfile type.
10479 <read_line_string>: Move to the new dwarf2_per_objfile type.
10480 <objfile>: Likewise.
10481 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10482 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10483 dwarf2_per_objfile->per_bfd.
10484 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10485 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10486 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10487 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10488 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10489 (dwarf2_per_objfile::locate_sections): Rename to...
10490 (dwarf2_per_bfd::locate_sections): ... this.
10491 (dwarf2_per_objfile::get_cutu): Rename to...
10492 (dwarf2_per_bfd::get_cutu): ... this.
10493 (dwarf2_per_objfile::get_cu): Rename to...
10494 (dwarf2_per_bfd::get_cu): ... this.
10495 (dwarf2_per_objfile::get_tu): Rename to...
10496 (dwarf2_per_bfd::get_tu): ... this.
10497 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10498 (dwarf2_per_bfd::allocate_per_cu): ... this.
10499 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10500 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10501 (get_gdb_index_contents_ftype): Change parameter from
10502 dwarf2_per_objfile to dwarf2_per_bfd.
10503 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10504 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10505
a50264ba
TT
105062020-05-27 Tom Tromey <tom@tromey.com>
10507 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10510 (allocate_piece_closure): Set "per_objfile" member.
10511 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10512 (locexpr_describe_location, loclist_describe_location): Use new
10513 member.
10514 * dwarf2/read.c (read_call_site_scope)
10515 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10516 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10517 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10518 handle_data_member_location): Set per_objfile member.
10519 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10520 member.
10521 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10522
d3473f0c
TT
105232020-05-27 Tom Tromey <tom@tromey.com>
10524
10525 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10526 allocate_signatured_type>: Declare new methods.
10527 <m_num_psymtabs>: New member.
10528 (struct dwarf2_per_cu_data) <index>: New member.
10529 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10530 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10531 (create_cu_from_index_list): Use allocate_per_cu.
10532 (create_signatured_type_table_from_index)
10533 (create_signatured_type_table_from_debug_names)
10534 (create_debug_type_hash_table, add_type_unit)
10535 (read_comp_units_from_section): Use allocate_signatured_type.
10536
5717c425
TT
105372020-05-27 Tom Tromey <tom@tromey.com>
10538
10539 * psymtab.c (partial_map_expand_apply)
10540 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10541 (psym_lookup_global_symbol_language)
10542 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10543 (psym_print_stats, psym_expand_symtabs_for_function)
10544 (psym_map_symbol_filenames, psym_map_matching_symbols)
10545 (psym_expand_symtabs_matching)
10546 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10547 (maintenance_check_psymtabs): Update.
10548 * psympriv.h (struct partial_symtab) <readin_p,
10549 get_compunit_symtab>: Add objfile parameter.
10550 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10551 Likewise.
10552 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10553 get_compunit_symtab>: Likewise.
10554 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10555
45940949
TT
105562020-05-27 Tom Tromey <tom@tromey.com>
10557
10558 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10559 member.
10560 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10561 (create_cu_from_index_list)
10562 (create_signatured_type_table_from_index)
10563 (create_signatured_type_table_from_debug_names)
10564 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10565 (dwarf2_create_include_psymtab)
10566 (create_debug_type_hash_table, add_type_unit)
10567 (create_type_unit_group, read_comp_units_from_section)
10568 (dwarf2_compute_name, create_cus_hash_table)
10569 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10570 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10571 obstack.
10572 (dw2_get_real_path): Likewise. Change argument to
10573 dwarf2_per_objfile.
10574
f8c6d152
LM
105752020-05-27 Luis Machado <luis.machado@linaro.org>
10576
10577 PR tdep/26000
10578 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10579 for ldrd (immediate).
10580
e98d2e6d
PW
105812020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10582
10583 * command.h: Add comment giving the name of class_tui.
10584 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10585 create the fake command for the help for class_tui.
10586
53a47a3e
TT
105872020-05-26 Tom Tromey <tromey@adacore.com>
10588
10589 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10590 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10591 (val_atr): New function.
10592 (value_val_atr): Use it.
10593 * ada-valprint.c (print_optional_low_bound): Change low bound
10594 handling for enums.
10595 (val_print_packed_array_elements): Don't call discrete_position.
10596 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10597 discrete_position for enum types.
10598 * language.c (default_print_array_index): Change type.
10599 * language.h (struct language_defn) <la_print_array_index>: Add
10600 index_type parameter, change type of index_value.
10601 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10602 (default_print_array_index): Update.
10603 * valprint.c (maybe_print_array_index): Don't call
10604 value_from_longest. Update.
10605 (value_print_array_elements): Don't call discrete_position.
10606
0bc2354b
TT
106072020-05-26 Tom Tromey <tromey@adacore.com>
10608
10609 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10610 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10611
1218a4bf
CDA
106122020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10613
10614 PR gdb/13519
10615 * avr-tdep.c (avr_integer_to_address): Return data or code
10616 address accordingly to the second 'type' argument of the
10617 function.
10618
92651b1d
MW
106192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10620
10621 * infcmd.c, inferior.h: (construct_inferior_arguments):
10622 Moved function from here to gdbsupport/common-inferior.{h,cc}
10623
0a4f5f8c
TT
106242020-05-23 Tom Tromey <tom@tromey.com>
10625
10626 Revert commit eca1f90c:
10627 * NEWS: Remove entry for completion styling.
10628 * completer.c (_rl_completion_prefix_display_length): Move
10629 declaration later.
10630 (gdb_fnprint): Revert.
10631 (gdb_display_match_list_1): Likewise.
10632 * cli/cli-style.c (completion_prefix_style)
10633 (completion_difference_style, completion_suffix_style): Remove.
10634 (_initialize_cli_style): Revert.
10635 * cli/cli-style.h (completion_prefix_style)
10636 (completion_difference_style, completion_suffix_style): Don't
10637 declare.
10638
e08bd6c5
PA
106392020-05-24 Pedro Alves <palves@redhat.com>
10640
10641 * symtab.c (completion_list_add_name): Return boolean indication
10642 of whether the symbol matched.
10643 (completion_list_add_symbol): Don't try to remove C++ aliases if
10644 the symbol didn't match in the first place.
10645 * symtab.h (completion_list_add_name): Return bool.
10646
ceacbf6e
SM
106472020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10648
10649 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10650 type::field.
10651
26f16254
JB
106522020-05-23 Joel Brobecker <brobecker@adacore.com>
10653
10654 GDB 9.2 released.
10655
eca1f90c
TT
106562020-05-23 Tom Tromey <tom@tromey.com>
10657
10658 * NEWS: Add entry for completion styling.
10659 * completer.c (_rl_completion_prefix_display_length): Move
10660 declaration earlier.
10661 (gdb_fnprint): Use completion_style.
10662 (gdb_display_match_list_1): Likewise.
10663 * cli/cli-style.c (completion_prefix_style)
10664 (completion_difference_style, completion_suffix_style): New
10665 globals.
10666 (_initialize_cli_style): Register new globals.
10667 * cli/cli-style.h (completion_prefix_style)
10668 (completion_difference_style, completion_suffix_style): Declare.
10669
51e2cfa2
PA
106702020-05-23 Pedro Alves <palves@redhat.com>
10671
10672 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10673 (parse_escape): Use ISDIGIT instead of isdigit.
10674 (puts_debug): Use gdb_isprint instead of isprint.
10675 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10676 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10677 ISSPACE instead of isspace.
10678 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10679 instead of isspace.
10680 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10681 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10682 instead of isxdigit and ISDIGIT instead of isdigit.
10683
80fc5e77
SM
106842020-05-22 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbtypes.h (struct type) <field>: New method.
10687 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10688 or type::field.
10689
3cabb6b0
SM
106902020-05-22 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10693 (TYPE_FIELDS): Use type::fields. Change all call sites that
10694 modify the propery to use type::set_fields instead.
10695
1f704f76
SM
106962020-05-22 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10699 type::num_fields instead.
10700
5e33d5f4
SM
107012020-05-22 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10704 methods.
10705 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10706 that modify the number of fields to use type::set_num_fields
10707 instead.
10708
9392ebb3
TT
107092020-05-22 Tom Tromey <tromey@adacore.com>
10710
10711 * compile/compile-object-load.h (munmap_list_free): Don't
10712 declare.
10713
7c13f4e8
AB
107142020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * annotate.c (annotate_source_line): Update return type, add call
10717 to update current symtab and line.
10718 * annotate.h (annotate_source_line): Update return type, and
10719 extend header comment.
10720 * source.c (info_line_command): Check annotation_level before
10721 calling annotate_source_line.
10722 * stack.c (print_frame_info): If calling annotate_source_line
10723 returns true, then don't print any other source line information.
10724
aa370940
SM
107252020-05-21 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10728
84d53fa9
SM
107292020-05-21 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * coffread.c (patch_type): Remove NULL check before xfree.
10732 * corefile.c (set_gnutarget): Likewise.
10733 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10734 * exec.c (build_section_table): Likewise.
10735 * remote.c (remote_target::pass_signals): Likewise.
10736 * utils.c (n_spaces): Likewise.
10737 * cli/cli-script.c (document_command): Likewise.
10738 * i386-windows-tdep.c (core_process_module_section): Likewise.
10739 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10740
9d428aae
SM
107412020-05-20 Simon Marchi <simon.marchi@efficios.com>
10742
10743 * symfile.c (reread_symbols): Clear objfile's section_offsets
10744 vector and section indices, re-compute them by calling
10745 sym_offsets.
10746
250106a7
TT
107472020-05-20 Tom Tromey <tromey@adacore.com>
10748
10749 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10750 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10751
9a0bacfb
TV
107522020-05-20 Tom de Vries <tdevries@suse.de>
10753
10754 PR symtab/25833
10755 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10756
7b958a48
AM
107572020-05-20 Alan Modra <amodra@gmail.com>
10758
10759 PR 25993
10760 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10761 bfd_set_filename.
10762 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10763 passed to bfd_set_filename.
10764 * symfile-mem.c (add_vsyscall_page): Likewise for string
10765 passed to symbol_file_add_from_memory.
10766 (symbol_file_add_from_memory): Make name param a const char* and
10767 don't strdup.
10768
c7e97679
AM
107692020-05-20 Alan Modra <amodra@gmail.com>
10770
10771 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10772 rather than accessing bfd->filename directly.
10773 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10774 and use bfd_section_name.
10775 * dwarf2/frame.c (decode_frame_entry): Likewise.
10776 * exec.c (exec_set_section_address): Likewise.
10777 * solib-aix.c (solib_aix_bfd_open): Likewise.
10778 * stap-probe.c (get_stap_base_address): Likewise.
10779 * symfile.c (reread_symbols): Likewise.
10780
563c591b
TT
107812020-05-19 Tom Tromey <tromey@adacore.com>
10782
10783 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10784
f408d82c
SM
107852020-05-19 Simon Marchi <simon.marchi@efficios.com>
10786
10787 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10788
98c59b52
PA
107892020-05-19 Pedro Alves <palves@redhat.com>
10790
10791 * NEWS (set exec-file-mismatch): Adjust entry.
10792 * exec.c: Include "build-id.h".
10793 (validate_exec_file): Try to match build IDs instead of filenames.
10794 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10795 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10796 and pass down 'warn_if_slow'.
10797 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10798 gdb_bfd_open_closure to pass it down.
10799 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10800
4111f652
PA
108012020-05-19 Pedro Alves <palves@redhat.com>
10802
10803 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10804 * target.c (target_fileio_open_1): Rename to target_fileio_open
10805 and make extern. Use bool.
10806 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10807 (target_fileio_read_alloc_1): Adjust.
10808 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10809 (target_fileio_open_warn_if_slow): Delete declaration.
10810
ad80db5b
PA
108112020-05-19 Pedro Alves <palves@redhat.com>
10812
10813 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10814 Adjust all callers.
10815
1d6ce4d3
YS
108162020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10817
10818 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10819 whether disp is negative.
10820
9005fbbb
SM
108212020-05-19 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * symfile.h (struct symfile_segment_data)
10824 <~symfile_segment_data>: Remove.
10825 <segment_info>: Change to std::vector.
10826 * symfile.c (default_symfile_segments): Update.
10827 * elfread.c (elf_symfile_segments): Update.
10828
68b888ff
SM
108292020-05-19 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10832 <segments>: New.
10833 <segment_bases, segment_sizes>: Remove.
10834 * symfile.c (default_symfile_segments): Update.
10835 * elfread.c (elf_symfile_segments): Update.
10836 * remote.c (remote_target::get_offsets): Update.
10837 * solib-target.c (solib_target_relocate_section_addresses):
10838 Update.
10839
62982abd
SM
108402020-05-19 Simon Marchi <simon.marchi@efficios.com>
10841
10842 * symfile.h (struct symfile_segment_data): Initialize fields.
10843 <~symfile_segment_data>: Add.
10844 (symfile_segment_data_up): New.
10845 (struct sym_fns) <sym_segments>: Return a
10846 symfile_segment_data_up.
10847 (default_symfile_segments): Return a symfile_segment_data_up.
10848 (free_symfile_segment_data): Remove.
10849 (get_symfile_segment_data): Return a symfile_segment_data_up.
10850 * symfile.c (default_symfile_segments): Likewise.
10851 (get_symfile_segment_data): Likewise.
10852 (free_symfile_segment_data): Remove.
10853 (symfile_find_segment_sections): Update.
10854 * elfread.c (elf_symfile_segments): Return a
10855 symfile_segment_data_up.
10856 * remote.c (remote_target::get_offsets): Update.
10857 * solib-target.c (solib_target_relocate_section_addresses):
10858 Update.
10859 * symfile-debug.c (debug_sym_segments): Return a
10860 symfile_segment_data_up.
10861
7f204339
RO
108622020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10863
e52a0f1b
RO
10864 PR build/25981
10865 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10866 Hardcode register numbers.
10867
7f204339
RO
10868 PR build/25981
10869 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10870 procfs_find_LDT_entry): Remove.
10871 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10872 procfs_find_LDT_entry): Remove.
10873 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10874 Remove.
10875
7f32a4d5
PA
108762020-05-17 Pedro Alves <palves@redhat.com>
10877 Andrew Burgess <andrew.burgess@embecosm.com>
10878 Keno Fischer <keno@juliacomputing.com>
10879
10880 PR gdb/25741
10881 * breakpoint.c (build_target_condition_list): Update comments.
10882 (build_target_command_list): Update comments and skip matching
10883 locations.
10884 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10885 a separate function. Simplify "set breakpoint auto-hw off"
10886 handling.
10887 (insert_breakpoints): Update comment.
10888 (tracepoint_locations_match): New parameter. For breakpoints,
10889 compare location types too, if the caller wants to.
10890 (handle_automatic_hardware_breakpoints): New functions.
10891 (bp_location_is_less_than): Also sort by location type and
10892 hardware breakpoint length.
10893 (update_global_location_list): Handle "set breakpoint auto-hw on"
10894 here.
10895 (update_breakpoint_locations): Ask breakpoint_locations_match to
10896 ignore location types.
10897
7d93a1e0
SM
108982020-05-16 Simon Marchi <simon.marchi@efficios.com>
10899
10900 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10901 type::name instead.
10902
d0e39ea2
SM
109032020-05-16 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * gdbtypes.h (struct type) <name, set_name>: New methods.
10906 (TYPE_CODE): Use type::name. Change all call sites used to set
10907 the name to use type::set_name instead.
10908
2dab0c7b
TT
109092020-05-16 Tom Tromey <tom@tromey.com>
10910
10911 * top.c (quit_force): Update.
10912 * infrun.c (handle_no_resumed): Update.
10913 * top.h (all_uis): New function.
10914 (ALL_UIS): Remove.
10915
59f7bd8d
SM
109162020-05-16 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10919
9bf058f0
PA
109202020-05-16 Pedro Alves <palves@redhat.com>
10921
10922 * ia64-linux-nat.c
10923 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10924 Declare method.
10925 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10926
8f86ae1a
SM
109272020-05-15 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10930 (sparc64_adi_info): Likewise.
10931
d6bc0792
TT
109322020-05-15 Tom Tromey <tom@tromey.com>
10933
10934 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10935 block_objfile.
10936 (lookup_objfile_from_block): Remove.
10937 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10938 (lookup_global_symbol): Use block_objfile.
10939 * symtab.h (lookup_objfile_from_block): Don't declare.
10940 * printcmd.c (clear_dangling_display_expressions): Use
10941 block_objfile.
10942 * parse.c (operator_check_standard): Use block_objfile.
10943
8c14c3a3
TT
109442020-05-15 Tom Tromey <tom@tromey.com>
10945
10946 * language.c (language_alloc_type_symbol): Set
10947 SYMBOL_SECTION.
10948 * symtab.c (initialize_objfile_symbol): Remove.
10949 (allocate_symbol): Remove.
10950 (allocate_template_symbol): Remove.
10951 * dwarf2/read.c (fixup_go_packaging): Use "new".
10952 (new_symbol): Use "new".
10953 (read_variable): Don't call initialize_objfile_symbol. Use
10954 "new".
10955 (read_func_scope): Use "new".
10956 * xcoffread.c (process_xcoff_symbol): Don't call
10957 initialize_objfile_symbol.
10958 (SYMBOL_DUP): Remove.
10959 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10960 "new".
10961 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10962 (allocate_template_symbol): Don't declare.
10963 (struct symbol): Add copy constructor. Change defaults.
10964 * jit.c (finalize_symtab): Use "new".
10965 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10966 Use "new".
10967 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10968 (common_block_end): Use "new".
10969 * mdebugread.c (parse_symbol): Use "new".
10970 (new_symbol): Likewise.
10971
5b4a1a8d
PW
109722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10973
10974 * NEWS: Mention changes to help and apropos.
10975
57b4f16e
PW
109762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10977
10978 * command.h (enum command_class): Improve comments, document
10979 that class_alias is for user-defined aliases, give the class
10980 name for each class, remove unused class_xdb.
10981 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10982 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10983 by a precise class.
10984 * infcmd.c (_initialize_infcmd): Likewise.
10985 * reverse.c (_initialize_reverse): Likewise.
10986 * stack.c (_initialize_stack): Likewise.
10987 * symfile.c (_initialize_symfile): Likewise.
10988 * tracepoint.c (_initialize_tracepoint): Likewise.
10989
7c05caf7
PW
109902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991
10992 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10993 when their aliased command is traversed.
10994 (help_cmd): Add fput_command_names_styled call to
10995 output command name and aliases when command has an alias.
10996
3b3aaacb
PW
109972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10998
10999 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11000 * cli/cli-decode.c (help_cmd_list): Declare as static,
11001 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11002 a command together with the command.
11003 (fput_command_name_styled, fput_command_names_styled): New functions.
11004 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11005 fput_command_name_styled.
11006 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11007 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11008
7aa1b46f
PW
110092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11010
11011 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11012 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11013 * command.h (cmd_show_list): Likewise.
11014 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11015 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11016
89bcba74
PW
110172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11018
11019 * unittests/command-def-selftests.c (traverse_command_structure):
11020 Verify all commands of a list have the same prefix command and
11021 that only the top cmdlist commands have a null prefix.
11022
3f4d92eb
PW
110232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11024
11025 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11026 as prefix, not one of its aliases.
11027 (set_cmd_prefix): Remove.
11028 (do_add_cmd): Centralize the setting of the prefix of a command, when
11029 command is defined after its full chain of prefix commands.
11030 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11031 (add_setshow_cmd_full): Likewise.
11032 (update_prefix_field_of_prefixed_commands): New function.
11033 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11034 update_prefix_field_of_prefixed_commands.
11035 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11036 addresses of remote_set_cmdlist and remote_show_cmdlist given
11037 as argument, not the address of an argument.
11038 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11039 * gdb/remote.c (_initialize_remote): Likewise.
11040
0605465f
PW
110412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11042
11043 * cli/cli-cmds.c (alias_command): Check for an existing alias
11044 using lookup_cmd_composition, as valid_command_p is too strict
11045 and forbids aliases that are the prefix of an existing alias
11046 or command.
11047 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11048 command is properly recognised as a valid command.
11049
58e6ac70
PW
110502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11051
11052 * unittests/help-doc-selftests.c: Rename to
11053 unittests/command-def-selftests.c
11054 * unittests/command-def-selftests.c (help_doc_tests): Update some
11055 comments.
11056 (command_structure_tests, traverse_command_structure): New namespace
11057 and function.
11058 (command_structure_invariants_tests): New function.
11059 (_initialize_command_def_selftests) Renamed from
11060 _initialize_help_doc_selftests, register command_structure_invariants
11061 selftest.
11062
a7b9ceb8
PW
110632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11064
11065 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11066 an alias of 'show'.
11067
b2188a06
JB
110682020-05-15 Joel Brobecker <brobecker@adacore.com>
11069
11070 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11071 ada_is_fixed_point_type. Update all callers.
11072 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11073 all callers.
11074 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11075 Update all callers.
11076 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11077 print_fixed_point_type. Update all callers.
11078 * ada-valprint.c (ada_value_print_num): Replace call to
11079 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11080
a51951c2
KB
110812020-05-14 Kevin Buettner <kevinb@redhat.com>
11082
11083 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11084 processors.
11085 (cpu_supports_bts): Add CV_AMD case.
11086
29d6859f
LM
110872020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11088 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * infrun.c (stop_all_threads): Collect multiple wait events at
11091 each pass.
11092
78134374
SM
110932020-05-14 Simon Marchi <simon.marchi@efficios.com>
11094
11095 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11096 type::code instead.
11097
67607e24
SM
110982020-05-14 Simon Marchi <simon.marchi@efficios.com>
11099
11100 * gdbtypes.h (struct type) <code, set_code>: New methods.
11101 (TYPE_CODE): Use type::code. Change all call sites used to set
11102 the code to use type::set_code instead.
11103
a05575d3
TBA
111042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11105 Tom de Vries <tdevries@suse.de>
11106 Pedro Alves <palves@redhat.com>
11107
11108 PR threads/25478
11109 * infrun.c (stop_all_threads): Do NOT ignore
11110 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11111 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11112 received.
11113 (handle_no_resumed): Remove code handling a live inferior with no
11114 threads.
11115 * remote.c (has_single_non_exited_thread): New.
11116 (remote_target::update_thread_list): Do not delete a thread if is
11117 the last thread of the process.
11118 * thread.c (thread_select): Call delete_exited_threads instead of
11119 prune_threads.
11120
6ad82919
TBA
111212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11122
11123 * infrun.c (stop_all_threads): Enable/disable thread events of all
11124 targets. Move a debug message denoting the end of the function
11125 into the SCOPED_EXIT block.
11126
d890404b
TBA
111272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11128
11129 * process-stratum-target.h: Include <set>.
11130 (all_non_exited_process_targets, switch_to_target_no_thread): New
11131 function declarations.
11132 * process-stratum-target.c (all_non_exited_process_targets)
11133 (switch_to_target_no_thread): New function implementations.
11134
293b3ebc
TBA
111352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11136
11137 * infrun.c (handle_inferior_event): Extract out a piece of code
11138 into...
11139 (mark_non_executing_threads): ...this new function.
11140
7ca9b62a
TBA
111412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11142
11143 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11144 use.
11145
fc75c28b
TBA
111462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11147
11148 * regcache.c (regcache_read_pc_protected): New function
11149 implementation that returns 0 if the PC cannot read via
11150 'regcache_read_pc'.
11151 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11152 instead of 'regcache_read_pc'.
11153 (keep_going_pass_signal): Ditto.
11154
a89febbd
TT
111552020-05-13 Tom Tromey <tromey@adacore.com>
11156
11157 * ada-lang.c (align_value): Remove.
11158 (ada_template_to_fixed_record_type_1): Use align_up.
11159
f7e23710
TBA
111602020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11161
11162 * async-event.c: Update the copyright year.
11163 * async-event.h: Update the copyright year.
11164
02ff80c2
SM
111652020-05-12 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * objfiles.h (is_addr_in_objfile,
11168 shared_objfile_contains_address_p): Return bool.
11169 * objfile.c (is_addr_in_objfile,
11170 shared_objfile_contains_address_p): Return bool.
11171
4fd6c7e8
TT
111722020-05-11 Tom Tromey <tromey@adacore.com>
11173
11174 * cli/cli-cmds.c (info_command): Restore.
11175 (_initialize_cli_cmds): Use add_prefix_command for "info".
11176 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11177
5eb68a39
TT
111782020-05-11 Tom Tromey <tromey@adacore.com>
11179
11180 * ada-lang.c (ada_value_primitive_field): Now public.
11181 * ada-lang.h (ada_value_primitive_field): Declare.
11182 * ada-valprint.c (print_field_values): Use
11183 ada_value_primitive_field for wrapper fields.
11184
7666722f
TV
111852020-05-11 Tom de Vries <tdevries@suse.de>
11186
11187 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11188 MODULE_DOMAIN.
11189
3ee6bb11
TV
111902020-05-11 Tom de Vries <tdevries@suse.de>
11191
11192 PR symtab/25941
11193 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11194 with length 0, if not gdb-produced.
11195 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11196
43434996
TV
111972020-05-09 Tom de Vries <tdevries@suse.de>
11198
11199 PR gdb/25955
11200 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11201 calculation.
11202
2f78cffc
TT
112032020-05-09 Tom Tromey <tom@tromey.com>
11204
11205 * top.c (server_command): Now bool.
11206 * top.h (server_command): Now bool.
11207
4f7bc5ed
TT
112082020-05-08 Tom Tromey <tromey@adacore.com>
11209
11210 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11211 already being processed.
11212
8be4b118
TT
112132020-05-08 Tom Tromey <tom@tromey.com>
11214
11215 * printcmd.c (struct display) <next>: Remove.
11216 <display>: New constructor.
11217 <exp_string>: Now a std::string.
11218 <enabled_p>: Now a bool.
11219 (display_number): Move definition earlier.
11220 (displays): Rename from display_chain. Now a std::vector.
11221 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11222 (display_command): Update.
11223 (do_one_display, disable_display)
11224 (enable_disable_display_command, do_enable_disable_display):
11225 Update.
11226 (free_display): Remove.
11227 (clear_displays): Rewrite.
11228 (delete_display): Update.
11229 (map_display_numbers): Use function_view. Remove "data"
11230 parameter. Update.
11231 (do_delete_display): Remove.
11232 (undisplay_command): Update.
11233 (do_one_display, do_displays, disable_display)
11234 (info_display_command): Update.
11235 (do_enable_disable_display): Remove.
11236 (enable_disable_display_command)
11237 (clear_dangling_display_expressions): Update.
11238
94c93c35
TT
112392020-05-08 Tom Tromey <tom@tromey.com>
11240
11241 * symtab.c (set_symbol_cache_size)
11242 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11243 (maintenance_print_symbol_cache_statistics): Update.
11244 * symmisc.c (print_symbol_bcache_statistics)
11245 (print_objfile_statistics, maintenance_print_objfiles)
11246 (maintenance_info_symtabs, maintenance_check_symtabs)
11247 (maintenance_expand_symtabs, maintenance_info_line_tables):
11248 Update.
11249 * symfile-debug.c (set_debug_symfile): Update.
11250 * source.c (forget_cached_source_info): Update.
11251 * python/python.c (gdbpy_progspaces): Update.
11252 * psymtab.c (maintenance_info_psymtabs): Update.
11253 * probe.c (parse_probes): Update.
11254 * linespec.c (iterate_over_all_matching_symtabs)
11255 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11256 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11257 * exec.c (exec_target::close): Update.
11258 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11259 * breakpoint.c (print_one_breakpoint_location)
11260 (create_longjmp_master_breakpoint)
11261 (create_std_terminate_master_breakpoint): Update.
11262 * progspace.c (program_spaces): Now a std::vector.
11263 (maybe_new_address_space): Update.
11264 (add_program_space): Remove.
11265 (program_space::program_space): Update.
11266 (remove_program_space): Update.
11267 (number_of_program_spaces): Remove.
11268 (print_program_space, update_address_spaces): Update.
11269 * progspace.h (program_spaces): Change type.
11270 (ALL_PSPACES): Remove.
11271 (number_of_program_spaces): Don't declare.
11272 (struct program_space) <next>: Remove.
11273
a1fd1ac9
TT
112742020-05-08 Tom Tromey <tom@tromey.com>
11275
11276 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11277 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11278 (enable_break): Update.
11279 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11280 (frv_fdpic_find_canonical_descriptor): Update.
11281 (frv_fetch_objfile_link_map): Update.
11282 * progspace.c (program_space::free_all_objfiles): Update.
11283 (program_space::solibs): New method.
11284 * progspace.h (struct program_space) <solibs>: New method.
11285 * solist.h (master_so_list): Don't declare.
11286 (ALL_SO_LIBS): Remove.
11287 * solib.h (so_list_head): Remove.
11288 (update_solib_list): Update comment.
11289 * solib.c (master_so_list): Remove.
11290 (solib_used, update_solib_list, solib_add)
11291 (info_sharedlibrary_command, clear_solib)
11292 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11293
38eae084
TT
112942020-05-08 Tom Tromey <tom@tromey.com>
11295
11296 * extension.c (extension_languages): Now a std::array.
11297 (ALL_EXTENSION_LANGUAGES): Remove.
11298 (get_ext_lang_defn, get_ext_lang_of_file)
11299 (eval_ext_lang_from_control_command): Update.
11300 (finish_ext_lang_initialization)
11301 (auto_load_ext_lang_scripts_for_objfile)
11302 (ext_lang_type_printers::ext_lang_type_printers)
11303 (apply_ext_lang_type_printers)
11304 (ext_lang_type_printers::~ext_lang_type_printers)
11305 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11306 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11307 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11308 (get_matching_xmethod_workers, ext_lang_colorize)
11309 (ext_lang_before_prompt): Update.
11310 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11311
596dc4ad
TT
113122020-05-08 Tom Tromey <tom@tromey.com>
11313
11314 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11315 overload.
11316 <swap_string, m_string>: Remove.
11317 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11318 Update.
11319 * stabsread.c (define_symbol, read_type): Update.
11320 * linespec.c (find_linespec_symbols): Update.
11321 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11322 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11323 * dbxread.c (read_dbx_symtab): Update.
11324 * cp-support.h (cp_canonicalize_string_full)
11325 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11326 Return unique_xmalloc_ptr.
11327 * cp-support.c (inspect_type): Update.
11328 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11329 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11330 Likewise.
11331 * c-typeprint.c (print_name_maybe_canonical): Update.
11332 * break-catch-throw.c (check_status_exception_catchpoint):
11333 Update.
11334
bf4cb9be
TV
113352020-05-08 Tom de Vries <tdevries@suse.de>
11336
11337 * infrun.c (follow_fork): Copy current_line and current_symtab to
11338 child thread.
11339
a1b68f28
SM
113402020-05-07 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * async-event.c (struct async_signal_handler, struct
11343 async_event_handler): Reformat, remove typedef.
11344
98d48915
SM
113452020-05-07 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11348 access thistype->main_type->dyn_prop_list directly.
11349
7aa91313
SM
113502020-05-07 Simon Marchi <simon.marchi@efficios.com>
11351
11352 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11353 (remove_dyn_prop): Remove. Update all users to use
11354 type::remove_dyn_prop.
11355 * gdbtypes.c (remove_dyn_prop): Rename to...
11356 (type::remove_dyn_prop): ... this.
11357
5c54719c
SM
113582020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11359
11360 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11361 (add_dyn_prop): Remove. Update all users to use
11362 type::add_dyn_prop.
11363 * gdbtypes.c (add_dyn_prop): Rename to...
11364 (type::add_dyn_prop): ... this.
11365
24e99c6c
SM
113662020-05-07 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11369 (get_dyn_prop): Remove. Update all users to use
11370 type::dyn_prop.
11371 * gdbtypes.c (get_dyn_prop): Rename to...
11372 (type::dyn_prop): ... this.
11373
0d4bf016
SM
113742020-05-06 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11377
ac4a4f1c
SM
113782020-05-06 Simon Marchi <simon.marchi@efficios.com>
11379
11380 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11381 instruction, skip it if it's there.
11382
a3bbacc1
SM
113832020-05-05 Simon Marchi <simon.marchi@efficios.com>
11384
11385 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11386
c3236f84
SM
113872020-05-04 Simon Marchi <simon.marchi@efficios.com>
11388
11389 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11390 * gdbtypes.c (recursive_dump_type): Remove use of
11391 TYPE_INCOMPLETE.
11392
3b6acaee
TT
113932020-05-03 Tom Tromey <tom@tromey.com>
11394
11395 * breakpoint.c (catch_command, tcatch_command): Remove.
11396 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11397 add_show_prefix_cmd.
11398 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11399 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11400 Remove.
11401 (add_internal_problem_command): Use add_basic_prefix_cmd,
11402 add_show_prefix_cmd.
11403 * mips-tdep.c (set_mipsfpu_command): Remove.
11404 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11405 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11406 (_initialize_index_cache): Use add_basic_prefix_cmd.
11407 * memattr.c (dummy_cmd): Remove.
11408 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11409 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11410 (_initialize_tui_win): Use add_basic_prefix_cmd,
11411 add_show_prefix_cmd.
11412 * cli/cli-logging.c (set_logging_command): Remove.
11413 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11414 add_show_prefix_cmd.
11415 (show_logging_command): Remove.
11416 * target.c (target_command): Remove.
11417 (add_target): Use add_basic_prefix_cmd.
11418
a51119cd
HD
114192020-05-02 Hannes Domani <ssbssa@yahoo.de>
11420
11421 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11422
652fc23a 114232020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11424
652fc23a
PW
11425 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11426 info_command.
11427
117539e6
KR
114282020-04-30 Kamil Rytarowski <n54@gmx.com>
11429
11430 * nbsd-nat.c (nbsd_enable_proc_events)
11431 (nbsd_nat_target::post_startup_inferior): Add.
11432 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11433 (nbsd_nat_target::update_thread_list): Rewrite.
11434 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11435 "PTRACE_LWP_CREATE".
11436 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11437
102e38eb 114382020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11439
102e38eb
PW
11440 * stack.c (_initialize_stack): Remove duplicated creation
11441 of "frame" command and "f" alias.
11442
ee9d1e5f
HD
114432020-04-30 Hannes Domani <ssbssa@yahoo.de>
11444
11445 PR gdb/18706
11446 * gdbtypes.c (check_typedef): Calculate size of array of
11447 stubbed type.
11448
627c7fb8
HD
114492020-04-30 Hannes Domani <ssbssa@yahoo.de>
11450
11451 PR gdb/15559
11452 * i386-tdep.c (i386_push_dummy_call): Call
11453 i386_thiscall_push_dummy_call.
11454 (i386_thiscall_push_dummy_call): New function.
11455 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11456 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11457 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11458
ffc2844e
SM
114592020-04-29 Simon Marchi <simon.marchi@efficios.com>
11460
11461 * gdbarch.sh (do_read): Add shellcheck disable directive for
11462 warning SC2162.
11463
1207375d
SM
114642020-04-29 Simon Marchi <simon.marchi@efficios.com>
11465
11466 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11467 "referenced but not assigned" warning.
11468
9fdb2916
SM
114692020-04-29 Simon Marchi <simon.marchi@efficios.com>
11470
11471 * gdbarch.sh: Remove code that sets fallbackdefault.
11472
759cea5e
SM
114732020-04-29 Simon Marchi <simon.marchi@efficios.com>
11474
11475 * gdbarch.sh: Use shell operators && and || instead of
11476 -a and -o.
11477
cb02ab24
SM
114782020-04-29 Simon Marchi <simon.marchi@efficios.com>
11479
11480 * gdbarch.sh: Use $(...) instead of `...`.
11481
a6fc5ffc
SM
114822020-04-29 Simon Marchi <simon.marchi@efficios.com>
11483
11484 * gdbarch.sh: Use double quotes around variables.
11485
8d113d13
SM
114862020-04-29 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * gdbarch.sh: Use %s with printf, instead of variables in the
11489 format string.
11490
ed6acedd
TT
114912020-04-29 Tom Tromey <tromey@adacore.com>
11492
11493 PR ada/25875:
11494 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11495 type fields here.
11496 (read_enumeration_type): Call
11497 update_enumeration_type_from_children later. Update comments.
11498 (process_enumeration_scope): Don't create type fields.
11499
b68b1b58
KR
115002020-04-29 Kamil Rytarowski <n54@gmx.com>
11501
11502 * nbsd-tdep.c: Include "xml-syscall.h".
11503 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11504
f94b2e03
KR
115052020-04-29 Kamil Rytarowski <n54@gmx.com>
11506
11507 * nbsd-nat.c: Include "sys/wait.h".
11508 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11509 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11510 (nbsd_nat_target::remove_exec_catchpoint)
11511 (nbsd_nat_target::set_syscall_catchpoint): Add.
11512 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11513 (nbsd_nat_target::insert_exec_catchpoint)
11514 (nbsd_nat_target::remove_exec_catchpoint)
11515 (nbsd_nat_target::set_syscall_catchpoint): Add.
11516 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11517 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11518 `nbsd_get_syscall_number'.
11519
fc49bc72
TT
115202020-04-29 Tom Tromey <tom@tromey.com>
11521
11522 * stack.c (print_block_frame_labels): Remove.
11523
d642b692
HD
115242020-04-29 Hannes Domani <ssbssa@yahoo.de>
11525
11526 PR gdb/17320
11527 * ada-valprint.c (val_print_packed_array_elements): Move array
11528 end bracket to new line.
11529 (ada_val_print_string): Remove extra spaces before first array
11530 element.
11531 * c-valprint.c (c_value_print_array): Likewise.
11532 * m2-valprint.c (m2_print_array_contents): Likewise.
11533 (m2_value_print_inner): Likewise.
11534 * p-valprint.c (pascal_value_print_inner): Likewise.
11535 * valprint.c (generic_val_print_array): Likewise.
11536 (value_print_array_elements): Move first array element and array
11537 end bracket to new line.
11538
ea90f227
TV
115392020-04-29 Tom de Vries <tdevries@suse.de>
11540
11541 PR symtab/25889
11542 * linespec.c (find_method): Fix ix calculation.
11543
4498ef4f
KR
115442020-04-28 Kamil Rytarowski <n54@gmx.com>
11545
11546 * syscalls/update-netbsd.sh: New file.
11547 * syscalls/netbsd.xml: Regenerate.
11548 * data-directory/Makefile.in: Register `netbsd.xml' in
11549 `SYSCALLS_FILES'.
11550
a55e30b5
SM
115512020-04-28 Simon Marchi <simon.marchi@efficios.com>
11552
11553 * syscalls/update-freebsd.sh: Add double quotes.
11554
2b2fbab8
TT
115552020-04-28 Tom Tromey <tom@tromey.com>
11556
11557 * NEWS: Update.
11558 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11559 (cmdpy_init): Allow class_tui.
11560
a65189c9
TV
115612020-04-28 Mark Williams <mark@myosotissp.com>
11562
11563 PR gdb/24480
11564 * dwarf2read.c: Add missing assingments to list_in_scope when
11565 start_symtab was already called.
11566
1b95cdb7
SM
115672020-04-28 Simon Marchi <simon.marchi@efficios.com>
11568
11569 PR gdb/25881
11570 * dwarf2/read.c (offset_map_type): Use
11571 gdb:hash_enum<sect_offset> as hash function.
11572
15cd93d0
TV
115732020-04-28 Tom de Vries <tdevries@suse.de>
11574
11575 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11576 with DW_AT_signature.
11577
1eb39914
SM
115782020-04-27 Simon Marchi <simon.marchi@efficios.com>
11579
11580 * configure.ac: Remove check for fs_base/gs_base in
11581 user_regs_struct.
11582 * configure: Re-generate.
11583 * config.in: Re-generate.
11584 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11585 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11586 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11587
991a3e2e
LM
115882020-04-27 Luis Machado <luis.machado@linaro.org>
11589
11590 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11591 problematic inline frame unwinding situation.
11592 * frame.c (frame_id_computed_p): New function.
11593 * frame.h (frame_id_computed_p): New prototype.
11594
361ba0e8
TT
115952020-04-26 Tom Tromey <tom@tromey.com>
11596
11597 * command.h (enum command_class) <class_pseudo>: Remove.
11598
bc3609fd
PW
115992020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11600
11601 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11602 and whitespace.
11603
b9771db7
KR
116042020-04-25 Kamil Rytarowski <n54@gmx.com>
11605
ec16513e
SM
11606 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11607 `PT_GET_PROCESS_STATE' block.
b9771db7 11608
7151c1af
TT
116092020-04-24 Tom Tromey <tom@tromey.com>
11610
11611 * symtab.h (symbol_get_demangled_name): Don't declare.
11612 * symtab.c (symbol_get_demangled_name): Remove.
11613 (general_symbol_info::natural_name)
11614 (general_symbol_info::demangled_name): Update.
11615
906bb4c5
TT
116162020-04-24 Tom Tromey <tom@tromey.com>
11617
11618 PR rust/25025:
11619 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11620
bcfe6157
TT
116212020-04-24 Tom Tromey <tom@tromey.com>
11622
11623 PR symtab/12707:
11624 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11625 exists.
11626 (new_symbol): Likewise.
11627 * compile/compile-object-load.c (get_out_value_type): Use
11628 symbol_matches_search_name.
11629
f049a313
TT
116302020-04-24 Tom Tromey <tom@tromey.com>
11631
11632 * dwarf2/read.c (add_partial_symbol): Do not call
11633 compute_and_set_names.
11634
76e288d1
TT
116352020-04-24 Tom Tromey <tom@tromey.com>
11636
11637 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11638 overload.
11639
2467f4f6
TT
116402020-04-24 Tom Tromey <tom@tromey.com>
11641
11642 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11643 (add_psymbol_to_list): New overload. Make old overload call new
11644 one.
11645 * psympriv.h (add_psymbol_to_list): New overload.
11646
e61108c9
TT
116472020-04-24 Tom Tromey <tom@tromey.com>
11648
11649 * dwarf2/read.c (partial_die_info::read) <case
11650 DW_AT_linkage_name>: Use value_as_string.
11651 (dwarf2_string_attr): Use value_as_string.
11652 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11653 method.
11654 * dwarf2/attribute.c (attribute::value_as_string): New method.
11655
8c87a452
TT
116562020-04-24 Tom Tromey <tom@tromey.com>
11657
11658 * symtab.c (general_symbol_info::natural_name)
11659 (general_symbol_info::demangled_name): Check for language_rust.
11660
787de330
TT
116612020-04-24 Tom Tromey <tom@tromey.com>
11662
11663 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11664 (dwarf2_physname): ... from here.
11665 (partial_die_info::read): Add Rust "{" hack.
11666
ff985671
TT
116672020-04-24 Tom Tromey <tom@tromey.com>
11668
11669 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11670 method.
11671 (symbol_set_demangled_name): Don't declare.
11672 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11673 symbol_set_demangled_name.
11674 (general_symbol_info::set_language)
11675 (general_symbol_info::compute_and_set_names): Update.
11676 * minsyms.c (minimal_symbol_reader::install): Update.
11677 * dwarf2/read.c (new_symbol): Update.
11678
1acda803
TT
116792020-04-24 Tom Tromey <tromey@adacore.com>
11680
11681 PR python/23662:
11682 * python/py-type.c (convert_field): Handle
11683 FIELD_LOC_KIND_DWARF_BLOCK.
11684 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11685 (typy_get_dynamic): Nw function.
11686 (type_object_getset): Add "dynamic".
11687 * NEWS: Add entry.
11688
d656f129
TT
116892020-04-24 Tom Tromey <tromey@adacore.com>
11690
11691 * ada-typeprint.c (print_choices, print_variant_part)
11692 (print_record_field_types_dynamic): New functions.
11693 (print_record_field_types): Use print_record_field_types_dynamic.
11694
7d79de9a
TT
116952020-04-24 Tom Tromey <tromey@adacore.com>
11696
11697 * dwarf2/read.c (handle_data_member_location): New overload.
11698 (dwarf2_add_field): Use it.
11699 (decode_locdesc): Add "computed" parameter. Update comment.
11700 * gdbtypes.c (is_dynamic_type_internal): Also look for
11701 FIELD_LOC_KIND_DWARF_BLOCK.
11702 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11703 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11704 virtual base classes.
11705 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11706 FIELD_LOC_KIND_DWARF_BLOCK.
11707
f8e89861
TT
117082020-04-24 Tom Tromey <tromey@adacore.com>
11709
11710 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11711 * gdbtypes.c (is_dynamic_type_internal): Check
11712 TYPE_HAS_DYNAMIC_LENGTH.
11713 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11714 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11715 New macros.
11716 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11717 constant.
11718
9c6a1327
TT
117192020-04-24 Tom Tromey <tromey@adacore.com>
11720
11721 * dwarf2/read.c (struct variant_field): Rewrite.
11722 (struct variant_part_builder): New.
11723 (struct nextfield): Remove "variant" field. Add "offset".
11724 (struct field_info): Add "current_variant_part" and
11725 "variant_parts".
11726 (alloc_discriminant_info): Remove.
11727 (alloc_rust_variant): New function.
11728 (quirk_rust_enum): Update.
11729 (dwarf2_add_field): Set "offset" member. Don't handle
11730 DW_TAG_variant_part.
11731 (offset_map_type): New typedef.
11732 (convert_variant_range, create_one_variant)
11733 (create_one_variant_part, create_variant_parts)
11734 (add_variant_property): New functions.
11735 (dwarf2_attach_fields_to_type): Call add_variant_property.
11736 (read_structure_type): Don't handle DW_TAG_variant_part.
11737 (handle_variant_part, handle_variant): New functions.
11738 (handle_struct_member_die): Use them.
11739 (process_structure_scope): Don't handle variant parts.
11740 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11741 (struct discriminant_info): Remove.
11742 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11743 (struct main_type) <flag_discriminated_union>: Remove.
11744 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11745 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11746 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11747 Update.
11748 * valops.c (value_union_variant): Remove.
11749 * value.h (value_union_variant): Don't declare.
11750
b249d2c2
TT
117512020-04-24 Tom Tromey <tromey@adacore.com>
11752
11753 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11754 (ada_value_primitive_packed_val): Update.
11755 * ada-valprint.c (ada_value_print_1): Update.
11756 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11757 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11758 just an address. Use evaluate_for_locexpr_baton.
11759 (dwarf2_evaluate_property): Update.
11760 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11761 array_view.
11762 * findvar.c (default_read_var_value): Update.
11763 * gdbtypes.c (compute_variant_fields_inner)
11764 (resolve_dynamic_type_internal): Update.
11765 (resolve_dynamic_type): Change type of valaddr parameter.
11766 * gdbtypes.h (resolve_dynamic_type): Update.
11767 * valarith.c (value_subscripted_rvalue): Update.
11768 * value.c (value_from_contents_and_address): Update.
11769
61122aa9
TT
117702020-04-24 Tom Tromey <tromey@adacore.com>
11771
11772 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11773 "push_initial_value" parameter.
11774 (dwarf2_evaluate_property): Likewise.
11775 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11776
ef83a141
TT
117772020-04-24 Tom Tromey <tromey@adacore.com>
11778
11779 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11780 (variant::matches, compute_variant_fields_recurse)
11781 (compute_variant_fields_inner, compute_variant_fields): New
11782 functions.
11783 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11784 Use resolved_type after type is made.
11785 (operator==): Add new cases.
11786 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11787 (struct discriminant_range, struct variant, struct variant_part):
11788 New.
11789 (union dynamic_prop_data) <variant_parts, original_type>: New
11790 members.
11791 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11792 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11793 constants.
11794 * value.c (unpack_bits_as_long): Now public.
11795 * value.h (unpack_bits_as_long): Declare.
11796
675127ec
TT
117972020-04-24 Tom Tromey <tromey@adacore.com>
11798
11799 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11800 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11801
9852ceef
HD
118022020-04-24 Hannes Domani <ssbssa@yahoo.de>
11803
11804 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11805
7632c6ce
KR
118062020-04-24 Kamil Rytarowski <n54@gmx.com>
11807
11808 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11809 (remove_fork_catchpoint, post_startup_inferior)
11810 (post_attach): Move...
11811 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11812 (remove_fork_catchpoint, post_startup_inferior)
11813 (post_attach): ...here.
11814 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11815 (remove_fork_catchpoint, post_startup_inferior)
11816 (post_attach): Move...
11817 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11818 (remove_fork_catchpoint, post_startup_inferior)
11819 (post_attach): ...here.
11820
7be2bb4f
TT
118212020-04-24 Tom Tromey <tromey@adacore.com>
11822
11823 * nat/windows-nat.h (struct windows_thread_info)
11824 <pc_adjusted>: New member.
11825 * windows-nat.c (windows_fetch_one_register): Check
11826 pc_adjusted.
11827 (windows_nat_target::get_windows_debug_event)
11828 (windows_nat_target::wait): Set pc_adjusted.
11829
f80cb3b4
TV
118302020-04-24 Tom de Vries <tdevries@suse.de>
11831
11832 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11833 Run gdb-add-index inside temp dir.
11834
29514b87
TT
118352020-04-23 Tom Tromey <tromey@adacore.com>
11836
11837 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11838 in loop.
11839
5939967b
LM
118402020-04-23 Luis Machado <luis.machado@linaro.org>
11841
11842 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11843 get_frame_register instead of gdbarch_unwind_pc.
11844
70bc38f5
TV
118452020-04-23 Tom de Vries <tdevries@suse.de>
11846
11847 * symtab.c (lookup_global_symbol): Prefer def over decl.
11848
de82891c
TV
118492020-04-23 Tom de Vries <tdevries@suse.de>
11850
11851 PR symtab/25807
11852 * block.c (best_symbol, better_symbol): Promote to external.
11853 * block.h (best_symbol, better_symbol): Declare.
11854 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11855 decl.
11856
ecc6c606
TT
118572020-04-23 Tom Tromey <tromey@adacore.com>
11858
11859 PR ada/25837:
11860 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11861 "const char *", not a "const std::string &".
11862 <name_and_matcher::operator==>: Update.
11863 * unittests/lookup_name_info-selftests.c: Change type of
11864 "result".
11865
740480b8
TT
118662020-04-23 Tom Tromey <tom@tromey.com>
11867
11868 * inferior.h (iterate_over_inferiors): Don't declare.
11869 * inferior.c (iterate_over_inferiors): Remove.
11870 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11871 Remove.
11872 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11873 use iterate_over_inferiors.
11874 (darwin_resume_inferior_it)
11875 (struct resume_inferior_threads_param)
11876 (darwin_resume_inferior_threads_it): Remove.
11877 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11878
ae3ab1f0
TV
118792020-04-23 Tom de Vries <tdevries@suse.de>
11880
11881 * blockframe.c (find_pc_partial_function): Use
11882 find_pc_sect_compunit_symtab rather than
11883 objfile->sf->qf->find_pc_sect_compunit_symtab.
11884
317d2668
TV
118852020-04-22 Tom de Vries <tdevries@suse.de>
11886
11887 PR symtab/25764
11888 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11889 in psymtabs.
11890
eea9e357
TV
118912020-04-22 Tom de Vries <tdevries@suse.de>
11892
11893 PR symtab/25801
11894 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11895 symtabs.
11896
3d5afab3
TV
118972020-04-22 Tom de Vries <tdevries@suse.de>
11898
11899 PR symtab/25700
11900 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11901 CU if already created.
11902
d43b7a2d
TBA
119032020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11904
11905 * infrun.c (displaced_step_fixup): Switch to the event_thread
11906 before calling displaced_step_restore, not after.
11907
d89edf9b
MM
119082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11909
11910 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11911 its inferior is not recorded by us.
11912 (record_btrace_target_open): Replace call to
11913 all_non_exited_threads () with call to current_inferior
11914 ()->non_exited_threads ().
11915 (record_btrace_target::stop_recording): Likewise.
11916 (record_btrace_target::close): Likewise.
11917 (record_btrace_target::wait): Likewise.
11918 (record_btrace_target::record_stop_replaying): Likewise.
11919
5897fd49
MM
119202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11921
11922 * btrace.c (btrace_enable): Throw an error on double enables and
11923 when enabling recording fails.
11924 (btrace_disable): Throw an error if the thread is not recorded.
11925
1a476b6d
MM
119262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11927
11928 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11929 request if we do not have a thread_info.
11930
4778a5f8
TV
119312020-04-21 Tom de Vries <tdevries@suse.de>
11932
11933 PR gdb/25471
11934 * thread.c
11935 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11936 exception in get_frame_id.
11937
0fa7617d
TT
119382020-04-20 Tom Tromey <tromey@adacore.com>
11939
11940 * python/python.c (struct gdbpy_event): Mark move constructor as
11941 noexcept.
11942 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11943 constructor as noexcept.
11944 * completer.h (struct completion_result): Mark move constructor as
11945 noexcept.
11946 * completer.c (completion_result::completion_result): Use
11947 initialization style. Don't call reset_match_list.
11948
ad23bda0
MS
119492020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11950
11951 * MAINTAINERS (Write After Approval): Add myself.
11952
45e1f031
TT
119532020-04-18 Tom Tromey <tom@tromey.com>
11954
11955 * windows-tdep.c (init_w32_command_list)
11956 (w32_prefix_command_valid): Restore.
11957 (_initialize_windows_tdep): Call init_w32_command_list.
11958
08feed99
TT
119592020-04-18 Tom Tromey <tom@tromey.com>
11960
11961 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11962 * value.c (value_fn_field): Update.
11963 * valops.c (find_function_in_inferior)
11964 (value_allocate_space_in_inferior): Update.
11965 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11966 Update.
11967 * tui/tui-source.c (tui_source_window::set_contents): Update.
11968 * symtab.c (lookup_global_or_static_symbol)
11969 (find_function_start_sal_1, skip_prologue_sal)
11970 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11971 * symmisc.c (dump_msymbols, dump_symtab_1)
11972 (maintenance_print_one_line_table): Update.
11973 * symfile.c (init_entry_point_info, section_is_mapped)
11974 (list_overlays_command, simple_read_overlay_table)
11975 (simple_overlay_update_1): Update.
11976 * stap-probe.c (handle_stap_probe): Update.
11977 * stabsread.c (dbx_init_float_type, define_symbol)
11978 (read_one_struct_field, read_enum_type, read_range_type): Update.
11979 * source.c (info_line_command): Update.
11980 * python/python.c (gdbpy_source_objfile_script)
11981 (gdbpy_execute_objfile_script): Update.
11982 * python/py-type.c (save_objfile_types): Update.
11983 * python/py-objfile.c (py_free_objfile): Update.
11984 * python/py-inferior.c (python_new_objfile): Update.
11985 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11986 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11987 (maintenance_check_psymtabs): Update.
11988 * printcmd.c (info_address_command): Update.
11989 * objfiles.h (struct objfile) <arch>: New method, from
11990 get_objfile_arch.
11991 (get_objfile_arch): Don't declare.
11992 * objfiles.c (get_objfile_arch): Remove.
11993 (filter_overlapping_sections): Update.
11994 * minsyms.c (msymbol_is_function): Update.
11995 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11996 (output_nondebug_symbol): Update.
11997 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11998 (mdebug_expand_psymtab): Update.
11999 * machoread.c (macho_add_oso_symfile): Update.
12000 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12001 Update.
12002 * linux-fork.c (checkpoint_command): Update.
12003 * linespec.c (convert_linespec_to_sals): Update.
12004 * jit.c (finalize_symtab): Update.
12005 * infrun.c (insert_exception_resume_from_probe): Update.
12006 * ia64-tdep.c (ia64_find_unwind_table): Update.
12007 * hppa-tdep.c (internalize_unwinds): Update.
12008 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12009 Update.
12010 * gcore.c (call_target_sbrk): Update.
12011 * elfread.c (record_minimal_symbol, elf_symtab_read)
12012 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12013 (elf_gnu_ifunc_resolve_by_got): Update.
12014 * dwarf2/read.c (create_addrmap_from_index)
12015 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12016 (read_debug_names_from_section)
12017 (process_psymtab_comp_unit_reader, add_partial_symbol)
12018 (add_partial_subprogram, process_full_comp_unit)
12019 (read_file_scope, read_func_scope, read_lexical_block_scope)
12020 (read_call_site_scope, dwarf2_ranges_read)
12021 (dwarf2_record_block_ranges, dwarf2_add_field)
12022 (mark_common_block_symbol_computed, read_tag_pointer_type)
12023 (read_tag_string_type, dwarf2_init_float_type)
12024 (dwarf2_init_complex_target_type, read_base_type)
12025 (partial_die_info::read, partial_die_info::read)
12026 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12027 (dwarf2_fetch_die_loc_sect_off): Update.
12028 * dwarf2/loc.c (dwarf2_find_location_expression)
12029 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12030 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12031 (dwarf2_loc_desc_get_symbol_read_needs)
12032 (locexpr_describe_location_piece, locexpr_describe_location_1)
12033 (loclist_describe_location): Update.
12034 * dwarf2/index-write.c (write_debug_names): Update.
12035 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12036 * dtrace-probe.c (dtrace_process_dof): Update.
12037 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12038 (process_one_symbol): Update.
12039 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12040 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12041 (coff_read_enum_type): Update.
12042 * cli/cli-cmds.c (edit_command, list_command): Update.
12043 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12044 * breakpoint.c (create_overlay_event_breakpoint)
12045 (create_longjmp_master_breakpoint)
12046 (create_std_terminate_master_breakpoint)
12047 (create_exception_master_breakpoint, get_sal_arch): Update.
12048 * block.c (block_gdbarch): Update.
12049 * annotate.c (annotate_source_line): Update.
12050
0743fc83
TT
120512020-04-17 Tom Tromey <tromey@adacore.com>
12052
12053 * auto-load.c (show_auto_load_cmd): Remove.
12054 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12055 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12056 (maintenance_print_arc_command): Remove.
12057 * tui/tui-win.c (tui_command): Remove.
12058 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12059 * tui/tui-layout.c (tui_layout_command): Remove.
12060 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12061 * python/python.c (user_set_python, user_show_python): Remove.
12062 (_initialize_python): Use add_basic_prefix_cmd,
12063 add_show_prefix_cmd.
12064 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12065 (install_gdb_commands): Use add_basic_prefix_cmd,
12066 add_show_prefix_cmd.
12067 (info_guile_command): Remove.
12068 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12069 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12070 add_show_prefix_cmd.
12071 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12072 Remove do_set and do_show parameters.
12073 * cli/cli-style.c (set_style, show_style): Remove.
12074 (_initialize_cli_style): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 (cli_style_option::add_setshow_commands): Remove do_set and
12077 do_show parameters.
12078 (cli_style_option::add_setshow_commands): Use
12079 add_basic_prefix_cmd, add_show_prefix_cmd.
12080 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12081 (set_style_name): Remove.
12082 * cli/cli-dump.c (dump_command, append_command): Remove.
12083 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12084 (tekhex_dump_command, binary_dump_command)
12085 (binary_append_command): Remove.
12086 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12087 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12088 (init_w32_command_list): Remove; move into ...
12089 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12090 * valprint.c (set_print, show_print, set_print_raw)
12091 (show_print_raw): Remove.
12092 (_initialize_valprint): Use add_basic_prefix_cmd,
12093 add_show_prefix_cmd.
12094 * typeprint.c (set_print_type, show_print_type): Remove.
12095 (_initialize_typeprint): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * record.c (set_record_command, show_record_command): Remove.
12098 (_initialize_record): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12101 add_show_prefix_cmd.
12102 (info_command, show_command, set_debug, show_debug): Remove.
12103 * top.h (set_history, show_history): Don't declare.
12104 * top.c (set_history, show_history): Remove.
12105 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12106 (unset_tdesc_cmd): Remove.
12107 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12108 add_show_prefix_cmd.
12109 * symtab.c (info_module_command): Remove.
12110 (_initialize_symtab): Use add_basic_prefix_cmd.
12111 * symfile.c (overlay_command): Remove.
12112 (_initialize_symfile): Use add_basic_prefix_cmd.
12113 * sparc64-tdep.c (info_adi_command): Remove.
12114 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12115 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12116 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12117 add_show_prefix_cmd.
12118 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12119 (_initialize_serial): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12122 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12123 add_show_prefix_cmd.
12124 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12125 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12126 add_show_prefix_cmd.
12127 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12128 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12129 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12130 add_show_prefix_cmd.
12131 * remote.c (remote_command, set_remote_cmd): Remove.
12132 (_initialize_remote): Use add_basic_prefix_cmd.
12133 * record-full.c (set_record_full_command)
12134 (show_record_full_command): Remove.
12135 (_initialize_record_full): Use add_basic_prefix_cmd,
12136 add_show_prefix_cmd.
12137 * record-btrace.c (cmd_set_record_btrace)
12138 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12139 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12140 (cmd_show_record_btrace_pt): Remove.
12141 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12142 add_show_prefix_cmd.
12143 * ravenscar-thread.c (set_ravenscar_command)
12144 (show_ravenscar_command): Remove.
12145 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12146 add_show_prefix_cmd.
12147 * mips-tdep.c (show_mips_command, set_mips_command)
12148 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12149 add_show_prefix_cmd.
12150 * maint.c (maintenance_command, maintenance_info_command)
12151 (maintenance_check_command, maintenance_print_command)
12152 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12153 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12154 add_show_prefix_cmd.
12155 (show_per_command_cmd): Remove.
12156 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12157 Remove.
12158 (maintenance_show_test_settings_cmd): Remove.
12159 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12160 add_show_prefix_cmd.
12161 * maint-test-options.c (maintenance_test_options_command):
12162 Remove.
12163 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12164 * macrocmd.c (macro_command): Remove
12165 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12166 * language.c (set_check, show_check): Remove.
12167 (_initialize_language): Use add_basic_prefix_cmd,
12168 add_show_prefix_cmd.
12169 * infcmd.c (unset_command): Remove.
12170 (_initialize_infcmd): Use add_basic_prefix_cmd.
12171 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12172 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12173 add_show_prefix_cmd.
12174 * go32-nat.c (go32_info_dos_command): Remove.
12175 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12176 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12177 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12178 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12179 (_initialize_frame): Use add_basic_prefix_cmd,
12180 add_show_prefix_cmd.
12181 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12182 (_initialize_dcache): Use add_basic_prefix_cmd,
12183 add_show_prefix_cmd.
12184 * cp-support.c (maint_cplus_command): Remove.
12185 (_initialize_cp_support): Use add_basic_prefix_cmd.
12186 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12187 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12188 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12189 add_basic_prefix_cmd, add_show_prefix_cmd.
12190 * breakpoint.c (save_command): Remove.
12191 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12192 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12193 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12194 add_show_prefix_cmd.
12195 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12196 (set_ada_command, show_ada_command): Remove.
12197 (_initialize_ada_language): Use add_basic_prefix_cmd,
12198 add_show_prefix_cmd.
12199 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12200
3557f442
KR
122012020-04-16 Kamil Rytarowski <n54@gmx.com>
12202
12203 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12204 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12205
16197208
SM
122062020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12207
12208 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12209 warning messages.
12210
00ac85d3
SM
122112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12212
12213 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12214 import table is not at beginning of .idata section.
12215
381ce63f
PA
122162020-04-16 Pedro Alves <palves@redhat.com>
12217
12218 * inferior.c (delete_inferior): Use delete operator directly
12219 instead of delete_program_space.
12220 * progspace.c (add_program_space): New, factored out from
12221 program_space::program_space.
12222 (remove_program_space): New, factored out from
12223 delete_program_space.
12224 (program_space::program_space): Remove intro comment. Rewrite.
12225 (program_space::~program_space): Remove intro comment. Call
12226 remove_program_space.
12227 (delete_program_space): Delete.
12228 * progspace.h (program_space::program_space): Make explicit. Move
12229 intro comment here, adjusted.
12230 (program_space::~program_space): Move intro comment here,
12231 adjusted.
12232 (delete_program_space): Remove.
12233
a010605f
TT
122342020-04-16 Tom Tromey <tromey@adacore.com>
12235
12236 * windows-nat.c (windows_nat::handle_access_violation): New
12237 function.
12238 * nat/windows-nat.h (handle_access_violation): Declare.
12239 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12240 windows-nat.c. Call handle_access_violation.
12241
efba5c23
TV
122422020-04-16 Tom de Vries <tdevries@suse.de>
12243
12244 PR symtab/25791
12245 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12246 CUs without psymtab.
12247
97ed802d
KB
122482020-04-16 Kevin Buettner <kevinb@redhat.com>
12249
12250 * python/python.c (do_start_initialization): Don't call
12251 PyEval_InitThreads for Python 3.9 and beyond.
12252
c7d64809
KR
122532020-04-15 Kamil Rytarowski <n54@gmx.com>
12254
12255 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12256 thread functions.
12257 (obsd_nat_target::wait): Likewise.
12258
ce127a96
TT
122592020-04-15 Tom Tromey <tromey@adacore.com>
12260
12261 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12262 (DEBUG_EXCEPT): Use debug_printf.
12263
99f1bc6a
AB
122642020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12265
12266 * completer.c (class completion_tracker::completion_hash_entry)
12267 <hash_name>: New member function.
12268 (completion_tracker::discard_completions): New callback to hash a
12269 completion_hash_entry, pass this to htab_create_alloc.
12270
a0e9b532
JT
122712016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12272
12273 * windows-nat.c (windows_make_so): Warn rather than stopping with
12274 an error if realpath() fails.
12275
06ca5dd4
KR
122762020-04-14 Kamil Rytarowski <n54@gmx.com>
12277
12278 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12279 (nbsd_nat_target::info_proc): Add do_status.
12280
194d088f
TV
122812020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12282 Tom de Vries <tdevries@suse.de>
12283
12284 PR symtab/25718
12285 * psympriv.h (struct partial_symtab::read_symtab)
12286 (struct partial_symtab::expand_psymtab)
12287 (struct partial_symtab::read_dependencies): Update comments.
12288 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12289 read_symtab for includer.
12290 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12291 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12292 (struct dwarf2_include_psymtab::m_readin): Remove.
12293 (struct dwarf2_include_psymtab::includer): New member function.
12294 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12295
c1a66c06
TV
122962020-04-14 Tom de Vries <tdevries@suse.de>
12297
12298 PR symtab/25720
12299 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12300 with NULL symbol_matcher and lookup_name.
12301 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12302 and lookup_name.
12303 * dwarf2/read.c (dw2_expand_symtabs_matching)
12304 (dw2_debug_names_expand_symtabs_matching): Same.
12305 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12306 Make lookup_name a pointer. Update comment.
12307 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12308 lookup_name being a pointer.
12309 * symfile.c (expand_symtabs_matching): Same.
12310 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12311 * linespec.c (iterate_over_all_matching_symtabs): Same.
12312
400b5eca
TT
123132020-04-13 Tom Tromey <tom@tromey.com>
12314
12315 * run-on-main-thread.c: Update include.
12316 * unittests/main-thread-selftests.c: Update include.
12317 * tui/tui-win.c: Update include.
12318 * tui/tui-io.c: Update include.
12319 * tui/tui-interp.c: Update include.
12320 * tui/tui-hooks.c: Update include.
12321 * top.h: Update include.
12322 * top.c: Update include.
12323 * ser-base.c: Update include.
12324 * remote.c: Update include.
12325 * remote-notif.c: Update include.
12326 * remote-fileio.c: Update include.
12327 * record-full.c: Update include.
12328 * record-btrace.c: Update include.
12329 * python/python.c: Update include.
12330 * posix-hdep.c: Update include.
12331 * mingw-hdep.c: Update include.
12332 * mi/mi-main.c: Update include.
12333 * mi/mi-interp.c: Update include.
12334 * main.c: Update include.
12335 * linux-nat.c: Update include.
12336 * interps.c: Update include.
12337 * infrun.c: Update include.
12338 * inf-loop.c: Update include.
12339 * event-top.c: Update include.
12340 * event-loop.c: Move to ../gdbsupport/.
12341 * event-loop.h: Move to ../gdbsupport/.
12342 * async-event.h: Update include.
12343 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12344
93b54c8e
TT
123452020-04-13 Tom Tromey <tom@tromey.com>
12346
12347 * tui/tui-win.c: Include async-event.h.
12348 * remote.c: Include async-event.h.
12349 * remote-notif.c: Include async-event.h.
12350 * record-full.c: Include async-event.h.
12351 * record-btrace.c: Include async-event.h.
12352 * infrun.c: Include async-event.h.
12353 * event-top.c: Include async-event.h.
12354 * event-loop.h: Move some declarations to async-event.h.
12355 * event-loop.c: Don't include ser-event.h or top.h. Move some
12356 code to async-event.c.
12357 * async-event.h: New file.
12358 * async-event.c: New file.
12359 * Makefile.in (COMMON_SFILES): Add async-event.c.
12360 (HFILES_NO_SRCDIR): Add async-event.h.
12361
c1cd3163
TT
123622020-04-13 Tom Tromey <tom@tromey.com>
12363
12364 * utils.c (flush_streams): New function.
12365 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12366
29f2bf4f
TT
123672020-04-13 Tom Tromey <tom@tromey.com>
12368
12369 * event-loop.c (handle_file_event): Use warning, not
12370 printf_unfiltered.
12371
98029d02
TT
123722020-04-13 Tom Tromey <tom@tromey.com>
12373
12374 * event-loop.c: Include <chrono>.
12375
06cc9596
TT
123762020-04-13 Tom Tromey <tom@tromey.com>
12377
12378 * gdb_select.h: Move to ../gdbsupport/.
12379 * event-loop.c: Update include path.
12380 * top.c: Update include path.
12381 * ser-base.c: Update include path.
12382 * ui-file.c: Update include path.
12383 * ser-tcp.c: Update include path.
12384 * guile/scm-ports.c: Update include path.
12385 * posix-hdep.c: Update include path.
12386 * ser-unix.c: Update include path.
12387 * gdb_usleep.c: Update include path.
12388 * mingw-hdep.c: Update include path.
12389 * inflow.c: Update include path.
12390 * infrun.c: Update include path.
12391 * event-top.c: Update include path.
12392
8ae8e197
TT
123932020-04-13 Tom Tromey <tom@tromey.com>
12394
12395 * configure: Rebuild.
12396 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12397
58cf28e8
TT
123982020-04-13 Tom Tromey <tom@tromey.com>
12399
12400 * event-loop.h (start_event_loop): Don't declare.
12401 * event-loop.c (start_event_loop): Move...
12402 * main.c (start_event_loop): ...here. Now static.
12403
b7f999ae
SDJ
124042020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12405
12406 * MAINTAINERS: Update my email address.
12407
1085dfd4
KR
124082020-04-12 Kamil Rytarowski <n54@gmx.com>
12409
12410 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12411 IP_ALL.
12412
49d1d1f5
KR
124132020-04-12 Kamil Rytarowski <n54@gmx.com>
12414
12415 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12416 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12417
b4848d2a
KR
124182020-04-12 Kamil Rytarowski <n54@gmx.com>
12419
12420 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12421 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12422
51c133d5
KR
124232020-04-12 Kamil Rytarowski <n54@gmx.com>
12424
12425 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12426
54b8cbd0
KR
124272020-04-11 Kamil Rytarowski <n54@gmx.com>
12428
12429 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12430 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12431 (nbsd_nat_target::info_proc): New functions.
12432 * nbsd-nat.c (kinfo_get_vmmap): New function.
12433 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12434 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12435 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12436 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12437 functions.
12438 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12439 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12440 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12441 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12442 (KINFO_VME_FLAG_GROWS_DOWN): New.
12443
cf83625d
AS
124442020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12445
12446 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12447 bit shift.
12448
0c4311ab
TT
124492020-04-10 Tom Tromey <tromey@adacore.com>
12450
12451 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12452
3e65b3e9
TT
124532020-04-10 Tom Tromey <tromey@adacore.com>
12454
12455 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12456 separate debug files.
12457
13302e95
HD
124582020-04-10 Hannes Domani <ssbssa@yahoo.de>
12459
12460 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12461 Move to...
12462 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12463 ... here.
12464 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12465 Check for STATUS_WX86_BREAKPOINT.
12466 (windows_nat_target::wait): Same.
12467
bdfc1e8a
TV
124682020-04-10 Tom de Vries <tdevries@suse.de>
12469
12470 PR cli/25808
12471 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12472
f4460aec
SM
124732020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12474
12475 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12476 (Write After Approval): Remove Tom de Vries.
12477
a25198bb
BE
124782020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12479
12480 revert partially:
12481 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12482
aac66a4c
SM
12483 * buildsym.c (record_line): Fix undefined behavior and preserve
12484 lines at eof.
a25198bb 12485
206c98a6
KR
124862020-04-09 Kamil Rytarowski <n54@gmx.com>
12487
12488 * auxv.h (svr4_auxv_parse): New.
12489 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12490 and generic_auxv_parse.
12491 (svr4_auxv_parse): Add.
12492 * obsd-tdep.c: Include "auxv.h".
12493 (obsd_auxv_parse): Remove.
12494 (obsd_init_abi): Remove comment.
12495 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12496 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12497 * nbsd-tdep.c: Include "auxv.h".
12498 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12499
71fbdbaf
TT
125002020-04-08 Tom Tromey <tromey@adacore.com>
12501
12502 * nat/windows-nat.h (last_wait_event): Don't declare.
12503 (wait_for_debug_event): Update comment.
12504 * nat/windows-nat.c (last_wait_event): Now static.
12505
2c1d95e8
TT
125062020-04-08 Tom Tromey <tromey@adacore.com>
12507
12508 * windows-nat.c (wait_for_debug_event): Move to
12509 nat/windows-nat.c.
12510 * nat/windows-nat.h (wait_for_debug_event): Declare.
12511 * nat/windows-nat.c (wait_for_debug_event): Move from
12512 windows-nat.c. No longer static.
12513
d2977bc4
TT
125142020-04-08 Tom Tromey <tromey@adacore.com>
12515
12516 * windows-nat.c (get_windows_debug_event): Use
12517 fetch_pending_stop.
12518 * nat/windows-nat.h (fetch_pending_stop): Declare.
12519 * nat/windows-nat.c (fetch_pending_stop): New function.
12520
e758e19c
TT
125212020-04-08 Tom Tromey <tromey@adacore.com>
12522
12523 * windows-nat.c (windows_continue): Use matching_pending_stop and
12524 continue_last_debug_event.
12525 * nat/windows-nat.h (matching_pending_stop)
12526 (continue_last_debug_event): Declare.
12527 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12528 (matching_pending_stop, continue_last_debug_event): New
12529 functions.
12530
8d30e395
TT
125312020-04-08 Tom Tromey <tromey@adacore.com>
12532
12533 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12534 (handle_exception_result): Move to nat/windows-nat.h.
12535 (DEBUG_EXCEPTION_SIMPLE): Remove.
12536 (windows_nat::handle_ms_vc_exception): New function.
12537 (handle_exception): Move to nat/windows-nat.c.
12538 (get_windows_debug_event): Update.
12539 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12540 nat/windows-nat.c.
12541 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12542 (handle_exception_result): Move from windows-nat.c.
12543 (handle_exception): Declare.
12544 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12545 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12546 windows-nat.c.
12547
29de418d
TT
125482020-04-08 Tom Tromey <tromey@adacore.com>
12549
12550 * windows-nat.c (exception_count, event_count): Remove.
12551 (handle_exception, get_windows_debug_event)
12552 (do_initial_windows_stuff): Update.
12553
a816ba18
TT
125542020-04-08 Tom Tromey <tromey@adacore.com>
12555
12556 * windows-nat.c (windows_nat::handle_load_dll)
12557 (windows_nat::handle_unload_dll): Rename. No longer static.
12558 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12559 Declare.
12560
a00caa12
TT
125612020-04-08 Tom Tromey <tromey@adacore.com>
12562
12563 * complaints.h (stop_whining): Declare at top-level.
12564 (complaint): Don't declare stop_whining.
12565
d41b524f
TT
125662020-04-08 Tom Tromey <tromey@adacore.com>
12567
12568 * windows-nat.c (windows_nat::handle_output_debug_string):
12569 Rename. No longer static.
12570 * nat/windows-nat.h (handle_output_debug_string): Declare.
12571
3c76026d
TT
125722020-04-08 Tom Tromey <tromey@adacore.com>
12573
12574 * windows-nat.c (current_process_handle, current_process_id)
12575 (main_thread_id, last_sig, current_event, last_wait_event)
12576 (current_windows_thread, desired_stop_thread_id, pending_stops)
12577 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12578 (display_selectors, fake_create_process)
12579 (get_windows_debug_event): Update.
12580 * nat/windows-nat.h (current_process_handle, current_process_id)
12581 (main_thread_id, last_sig, current_event, last_wait_event)
12582 (current_windows_thread, desired_stop_thread_id, pending_stops)
12583 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12584 * nat/windows-nat.c (current_process_handle, current_process_id)
12585 (main_thread_id, last_sig, current_event, last_wait_event)
12586 (current_windows_thread, desired_stop_thread_id, pending_stops)
12587 (siginfo_er): New globals. Move from windows-nat.c.
12588
9d8679cc
TT
125892020-04-08 Tom Tromey <tromey@adacore.com>
12590
12591 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12592 (handle_load_dll): Update.
12593 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12594
28688adf
TT
125952020-04-08 Tom Tromey <tromey@adacore.com>
12596
12597 * windows-nat.c (enum thread_disposition_type): Move to
12598 nat/windows-nat.h.
12599 (windows_nat::thread_rec): Rename from thread_rec. No longer
12600 static.
12601 (windows_add_thread, windows_nat_target::fetch_registers)
12602 (windows_nat_target::store_registers, handle_exception)
12603 (windows_nat_target::resume, get_windows_debug_event)
12604 (windows_nat_target::get_tib_address)
12605 (windows_nat_target::thread_name)
12606 (windows_nat_target::thread_alive): Update.
12607 * nat/windows-nat.h (enum thread_disposition_type): Move from
12608 windows-nat.c.
12609 (thread_rec): Declare.
12610
4834dad0
TT
126112020-04-08 Tom Tromey <tromey@adacore.com>
12612
12613 * windows-nat.c: Add "using namespace".
12614 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12615 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12616
65bafd5b
TT
126172020-04-08 Tom Tromey <tromey@adacore.com>
12618
12619 * nat/windows-nat.h (struct windows_thread_info): Declare
12620 destructor.
12621 * nat/windows-nat.c (~windows_thread_info): New.
12622
0a4afda3
TT
126232020-04-08 Tom Tromey <tromey@adacore.com>
12624
12625 PR gdb/22992
12626 * windows-nat.c (current_event): Update comment.
12627 (last_wait_event, desired_stop_thread_id): New globals.
12628 (struct pending_stop): New.
12629 (pending_stops): New global.
12630 (windows_nat_target) <stopped_by_sw_breakpoint>
12631 <supports_stopped_by_sw_breakpoint>: New methods.
12632 (windows_fetch_one_register): Add assertions. Adjust PC.
12633 (windows_continue): Handle pending stops. Suspend other threads
12634 when stepping. Use last_wait_event
12635 (wait_for_debug_event): New function.
12636 (get_windows_debug_event): Use wait_for_debug_event. Handle
12637 pending stops. Queue spurious stops.
12638 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12639 (windows_nat_target::kill): Use wait_for_debug_event.
12640 * nat/windows-nat.h (struct windows_thread_info)
12641 <stopped_at_software_breakpoint>: New field.
12642 * nat/windows-nat.c (windows_thread_info::resume): Clear
12643 stopped_at_software_breakpoint.
12644
8e61ebec
TT
126452020-04-08 Tom Tromey <tromey@adacore.com>
12646
12647 * windows-nat.c (enum thread_disposition_type): New.
12648 (thread_rec): Replace "get_context" parameter with "disposition";
12649 change type.
12650 (windows_add_thread, windows_nat_target::fetch_registers)
12651 (windows_nat_target::store_registers, handle_exception)
12652 (windows_nat_target::resume, get_windows_debug_event)
12653 (windows_nat_target::get_tib_address)
12654 (windows_nat_target::thread_name)
12655 (windows_nat_target::thread_alive): Update.
12656
98a03287
TT
126572020-04-08 Tom Tromey <tromey@adacore.com>
12658
12659 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12660 (windows_continue): Use windows_continue::resume.
12661 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12662 resume>: Declare new methods.
12663 * nat/windows-nat.c: New file.
12664 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12665
7c7411bc
TT
126662020-04-08 Tom Tromey <tromey@adacore.com>
12667
12668 * windows-nat.c (windows_add_thread, windows_delete_thread)
12669 (windows_nat_target::fetch_registers)
12670 (windows_nat_target::store_registers, fake_create_process)
12671 (windows_nat_target::resume, windows_nat_target::resume)
12672 (get_windows_debug_event, windows_nat_target::wait)
12673 (windows_nat_target::pid_to_str)
12674 (windows_nat_target::get_tib_address)
12675 (windows_nat_target::get_ada_task_ptid)
12676 (windows_nat_target::thread_name)
12677 (windows_nat_target::thread_alive): Use lwp, not tid.
12678
2950fdf7
TT
126792020-04-08 Tom Tromey <tromey@adacore.com>
12680
12681 * windows-nat.c (handle_exception)
12682 (windows_nat_target::thread_name): Update.
12683 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12684 <name>: Now unique_xmalloc_ptr.
12685
62fe396b
TT
126862020-04-08 Tom Tromey <tromey@adacore.com>
12687
12688 * windows-nat.c (thread_rec)
12689 (windows_nat_target::fetch_registers): Update.
12690 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12691 Update comment.
12692 <debug_registers_changed, reload_context>: Now bool.
12693
e9534bd2
TT
126942020-04-08 Tom Tromey <tromey@adacore.com>
12695
12696 * windows-nat.c (windows_add_thread): Use new.
12697 (windows_init_thread_list, windows_delete_thread): Use delete.
12698 (get_windows_debug_event): Update.
12699 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12700 destructor, and initializers.
12701
ae1f8880
TT
127022020-04-08 Tom Tromey <tromey@adacore.com>
12703
12704 * windows-nat.c (struct windows_thread_info): Remove.
12705 * nat/windows-nat.h: New file.
12706
55a1e039
TT
127072020-04-08 Tom Tromey <tromey@adacore.com>
12708
12709 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12710 (thread_rec, windows_add_thread, windows_delete_thread)
12711 (windows_continue): Update.
12712
93366324
TT
127132020-04-08 Tom Tromey <tromey@adacore.com>
12714
12715 * windows-nat.c (struct windows_thread_info): Remove typedef.
12716 (thread_head): Remove.
12717 (thread_list): New global.
12718 (thread_rec, windows_add_thread, windows_init_thread_list)
12719 (windows_delete_thread, windows_continue): Update.
12720
0f2265e2
SM
127212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12722
12723 * windows-tdep.h (windows_init_abi): Add comment.
12724 (cygwin_init_abi): New declaration.
12725 * windows-tdep.c: Split signal enumeration in two, one for
12726 Windows and one for Cygwin.
12727 (windows_gdb_signal_to_target): Only deal with signal of the
12728 Windows OS ABI.
12729 (cygwin_gdb_signal_to_target): New function.
12730 (windows_init_abi): Rename to windows_init_abi_common, don't set
12731 gdb_signal_to_target gdbarch method. Add new new function with
12732 this name.
12733 (cygwin_init_abi): New function.
12734 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12735 comment. Don't call windows_init_abi.
12736 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12737 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12738 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12739 i386_windows_init_abi_common, don't call windows_init_abi. Add
12740 a new function of this name.
12741 (i386_cygwin_init_abi): New function.
12742 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12743 OS ABI Cygwin.
12744
3810f182
SM
127452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12746
12747 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12748 parameter.c.
12749 (dwarf2_read_gdb_index): Update.
12750
063f8e80
KR
127512020-04-07 Kamil Rytarowski <n54@gmx.com>
12752
12753 * nbsd-tdep.c: Include "objfiles.h".
12754 (nbsd_skip_solib_resolver): New.
12755 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12756
85a9510c 127572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12758
12759 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12760 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12761 with DW_LLE_base_addressx are being emitted in DWARFv5.
12762 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12763 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12764 unsigned integer.
12765
9fc3eaae 127662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12767
12768 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12769 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12770 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12771 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12772 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12773 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12774 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12775
12776
41144253 127772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12778
12779 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12780 (read_loclist_index): New function definition.
12781 (lookup_loclist_base): New function definition.
12782 (read_loclist_header): New function definition.
12783 (dwarf2_cu): Add loclist_base and loclist_header field.
12784 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12785 (read_full_die_1): Read the value of DW_AT_loclists_base.
12786 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12787 (read_attribute_value): Handle DW_FORM_loclistx.
12788 (skip_one_die): Handle DW_FORM_loclistx.
12789 (loclist_header): New structure declaration.
12790 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12791
9f4e76a4
SM
127922020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12793
12794 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12795 constructor. Remove `addr` parameter from other constructor and
12796 add `per_cu` parameter.
12797 * dwarf2/read.c (create_partial_symtab): Update.
12798
25c11aca
TV
127992020-04-07 Tom de Vries <tdevries@suse.de>
12800
12801 PR symtab/25796
12802 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12803 (partial_die_info::fixup): Inherit has_const_value.
12804
5707e24b
TV
128052020-04-07 Tom de Vries <tdevries@suse.de>
12806
12807 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12808 symbols without address.
12809
05f00e22
KR
128102020-04-06 Kamil Rytarowski <n54@gmx.com>
12811
12812 * nbsd-nat.h (struct thread_info): Add forward declaration.
12813 (nbsd_nat_target::thread_alive): Add.
12814 (nbsd_nat_target::thread_name): Likewise.
12815 (nbsd_nat_target::update_thread_list): Likewise.
12816 (update_thread_list::post_attach): Likewise.
12817 (post_attach::pid_to_str): Likewise.
12818 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12819 (nbsd_thread_lister): Add.
12820 (nbsd_nat_target::thread_alive): Likewise.
12821 (nbsd_nat_target::thread_name): Likewise.
12822 (nbsd_add_threads): Likewise.
12823 (update_thread_list::post_attach): Likewise.
12824 (nbsd_nat_target::update_thread_list): Likewise.
12825 (post_attach::pid_to_str): Likewise.
12826
6ee448cc
TT
128272020-04-06 Tom Tromey <tromey@adacore.com>
12828
12829 * ada-valprint.c (print_variant_part): Extract the variant field.
12830 (print_field_values): Use the field as the outer value when
12831 recursing.
12832
dea34e8c
TT
128332020-04-06 Tom Tromey <tromey@adacore.com>
12834
12835 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12836 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12837 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12838 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12839 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12840
93689ce9
TT
128412020-04-06 Tom Tromey <tromey@adacore.com>
12842
12843 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12844 TYPE_CODE_ERROR.
12845
79743962
KR
128462020-04-06 Kamil Rytarowski <n54@gmx.com>
12847
12848 * nbsd-tdep.c: Include "gdbarch.h".
12849 Define enum with NetBSD signal numbers.
12850 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12851 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12852 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12853 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12854 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12855 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12856 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12857 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12858 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12859 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12860 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12861 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12862
9e7c9a03
HD
128632020-04-03 Hannes Domani <ssbssa@yahoo.de>
12864
12865 PR gdb/25325
12866 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12867
d9e49b61
TT
128682020-04-03 Tom Tromey <tromey@adacore.com>
12869
12870 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12871 Read constant block.
12872
e0fc5c3f
SM
128732020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12874
12875 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12876 (gdb_bfd_get_full_section_contents): New declaration.
12877 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12878 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12879 gdb_bfd_get_full_section_contents.
12880
e2ff18a0
SM
128812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12882
12883 * exec.c (build_section_table): Replace internal_error with
12884 gdb_assert.
12885 (section_table_xfer_memory_partial): Likewise.
12886 * mdebugread.c (parse_partial_symbols): Likewise.
12887 * psymtab.c (lookup_partial_symbol): Likewise.
12888 * utils.c (wrap_here): Likewise.
12889
0830d301
TT
128902020-04-02 Tom Tromey <tromey@adacore.com>
12891
12892 * f-lang.c (build_fortran_types): Use arch_type to initialize
12893 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12894
e7da7f8f
TT
128952020-04-02 Tom Tromey <tromey@adacore.com>
12896
12897 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12898 of attributes.
12899
c90d28ac
AB
129002020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12901 Bernd Edlinger <bernd.edlinger@hotmail.de>
12902 Tom Tromey <tromey@adacore.com>
12903
12904 * buildsym.c (buildsym_compunit::record_line): Remove
12905 deduplication code.
12906
1aa98955
TV
129072020-04-02 Tom de Vries <tdevries@suse.de>
12908
12909 PR ada/24671
12910 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12911
d3214198
TV
129122020-04-02 Tom de Vries <tdevries@suse.de>
12913
12914 * dwarf2/read.c (dwarf2_gdb_index_functions,
12915 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12916 NULL.
12917 * psymtab.c (psym_lookup_global_symbol_language): New function.
12918 (psym_functions): Init psym_lookup_global_symbol_language with
12919 psym_lookup_global_symbol_language.
12920 * symfile-debug.c (debug_sym_quick_functions): Init
12921 lookup_global_symbol_language with NULL.
12922 * symfile.c (set_initial_language): Remove fixme comment.
12923 * symfile.h (struct quick_symbol_functions): Add
12924 lookup_global_symbol_language.
12925 * symtab.c (find_quick_global_symbol_language): New function.
12926 (find_main_name): Use find_quick_global_symbol_language.
12927
2836752f
SM
129282020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12929
12930 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12931
64dc2d4b
BE
129322020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12933
12934 * buildsym.c (record_line): Fix undefined behavior and preserve
12935 lines at eof.
12936
bbe3dc41
BE
129372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12938
12939 * buildsym.c (record_line): Fix the resizing condition.
12940
6b4a335b
TT
129412020-04-01 Tom Tromey <tom@tromey.com>
12942
12943 * value.h (value_literal_complex): Add comment.
12944 * valops.c (value_literal_complex): Refer to value.h.
12945
3638a098
TT
129462020-04-01 Tom Tromey <tom@tromey.com>
12947
12948 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12949 (scalar_type): New rule, from typebase.
12950 (typebase): Use scalar_type. Recognize complex types.
12951 (field_name): Handle FLOAT_KEYWORD.
12952 (ident_tokens): Add _Complex and __complex__.
12953
c34e8714
TT
129542020-04-01 Tom Tromey <tom@tromey.com>
12955
12956 PR exp/25299:
12957 * valarith.c (promotion_type, complex_binop): New functions.
12958 (scalar_binop): Handle complex numbers. Use promotion_type.
12959 (value_pos, value_neg, value_complement): Handle complex numbers.
12960
fa649bb7
TT
129612020-04-01 Tom Tromey <tom@tromey.com>
12962
12963 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12964 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12965 (parse_number): Handle complex numbers.
12966
981c08ce
TT
129672020-04-01 Tom Tromey <tom@tromey.com>
12968
12969 * c-valprint.c (c_decorations): Change complex suffix to "i".
12970
4c99290d
TT
129712020-04-01 Tom Tromey <tom@tromey.com>
12972
12973 * valprint.c (generic_value_print_complex): Use accessors.
12974 * value.h (value_real_part, value_imaginary_part): Declare.
12975 * valops.c (value_real_part, value_imaginary_part): New
12976 functions.
12977 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12978
5b930b45
TT
129792020-04-01 Tom Tromey <tom@tromey.com>
12980
12981 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12982 (read_range_type): Update.
12983 * mdebugread.c (basic_type): Update.
12984 * go-lang.c (build_go_types): Use init_complex_type.
12985 * gdbtypes.h (struct main_type) <complex_type>: New member.
12986 (init_complex_type): Update.
12987 (arch_complex_type): Don't declare.
12988 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12989 Make name if none given. Use alloc_type_copy. Look for cached
12990 complex type.
12991 (arch_complex_type): Remove.
12992 (gdbtypes_post_init): Use init_complex_type.
12993 * f-lang.c (build_fortran_types): Use init_complex_type.
12994 * dwarf2/read.c (read_base_type): Update.
12995 * d-lang.c (build_d_types): Use init_complex_type.
12996 * ctfread.c (read_base_type): Update.
12997
53cccef1
TBA
129982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12999
13000 * infrun.c (stop_all_threads): Update assertion, plus when
13001 stopping threads, take into account that we might be trying
13002 to stop an all-stop target.
13003 (stop_waiting): Call 'stop_all_threads' if there exists a
13004 non-stop target.
13005
a0714d30
TBA
130062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13007
13008 * target.h (exists_non_stop_target): New function declaration.
13009 * target.c (exists_non_stop_target): New function.
13010
60e22c1e
HD
130112020-04-01 Hannes Domani <ssbssa@yahoo.de>
13012
13013 PR gdb/24789
13014 * eval.c (is_integral_or_integral_reference): New function.
13015 (evaluate_subexp_standard): Allow integer references in
13016 pointer arithmetic.
13017
e139a727
TBA
130182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13019
13020 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13021 check for no ptid in the stop reply when the target is non-stop.
13022
e0802d59
TT
130232020-04-01 Tom Tromey <tromey@adacore.com>
13024
13025 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13026 "name" parameter to rvalue reference. Initialize m_name_holder.
13027 <lookup_name_info>: New overloads.
13028 <name>: Return gdb::string_view.
13029 <c_str>: New method.
13030 <make_ignore_params>: Update.
13031 <search_name_hash>: Update.
13032 <language_lookup_name>: Return const char *.
13033 <m_name>: Change type.
13034 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13035 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13036 (lookup_name_info::match_any): Update.
13037 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13038 Update.
13039 * minsyms.c (linkage_name_str): Update.
13040 * language.c (default_symbol_name_matcher): Update.
13041 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13042 Update.
13043 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13044 (ada_lookup_name_info::ada_lookup_name_info): Update.
13045 (literal_symbol_name_matcher): Update.
13046
8c072cb6
TT
130472020-04-01 Tom Tromey <tromey@adacore.com>
13048
13049 * psymtab.c (psymtab_search_name): Remove function.
13050 (psym_lookup_symbol): Create search name and lookup name here.
13051 (lookup_partial_symbol): Remove "name" parameter; add
13052 lookup_name.
13053 (psym_expand_symtabs_for_function): Update.
13054
6f29a534
TT
130552020-03-31 Joel Jones <joelkevinjones@gmail.com>
13056
13057 PR tui/25597:
13058 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13059
af62665e
TT
130602020-03-31 Tom Tromey <tromey@adacore.com>
13061
13062 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13063 memcpy.
13064
d1a89da5
NC
130652020-03-30 Nelson Chu <nelson.chu@sifive.com>
13066
13067 * features/riscv/32bit-csr.xml: Regenerated.
13068 * features/riscv/64bit-csr.xml: Regenerated.
13069
d8af9068
TT
130702020-03-30 Tom Tromey <tromey@adacore.com>
13071
13072 * ada-valprint.c (print_variant_part): Update.
13073 * ada-lang.h (ada_which_variant_applies): Update.
13074 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13075 outer_valaddr parameters; replace with "outer" value parameter.
13076 (to_fixed_variant_branch_type): Update.
13077
227c0bf4
PFC
130782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13079
13080 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13081 <list>. Remove inclusion of observable.h.
13082 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13083 (struct arch_lwp_info): New struct.
13084 (class ppc_linux_dreg_interface): New class.
13085 (struct ppc_linux_process_info): New struct.
13086 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13087 <low_new_clone, low_forget_process, low_prepare_to_resume>
13088 <copy_thread_dreg_state, mark_thread_stale>
13089 <mark_debug_registers_changed, register_hw_breakpoint>
13090 <clear_hw_breakpoint, register_wp, clear_wp>
13091 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13092 <num_memory_accesses, get_trigger_type>
13093 <create_watchpoint_request, hwdebug_point_cmp>
13094 <init_arch_lwp_info, get_arch_lwp_info>
13095 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13096 methods.
13097 <struct ptid_hash>: New inner struct.
13098 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13099 members.
13100 (saved_dabr_value, hwdebug_info, max_slots_number)
13101 (struct hw_break_tuple, struct thread_points, ppc_threads)
13102 (have_ptrace_hwdebug_interface)
13103 (hwdebug_find_thread_points_by_tid)
13104 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13105 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13106 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13107 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13108 use m_dreg_interface.
13109 (hwdebug_point_cmp): Change to...
13110 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13111 reference arguments instead of pointers.
13112 (ppc_linux_nat_target::ranged_break_num_registers): Use
13113 m_dreg_interface.
13114 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13115 m_dreg_interface. Call register_hw_breakpoint.
13116 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13117 m_dreg_interface. Call clear_hw_breakpoint.
13118 (get_trigger_type): Change to...
13119 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13120 comment.
13121 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13122 use m_dreg_interface. Call register_hw_breakpoint.
13123 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13124 use m_dreg_interface. Call clear_hw_breakpoint.
13125 (can_use_watchpoint_cond_accel): Change to...
13126 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13127 method. Update comment, use m_dreg_interface and
13128 m_process_info.
13129 (calculate_dvc): Change to...
13130 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13131 m_dreg_interface.
13132 (num_memory_accesses): Change to...
13133 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13134 (check_condition): Change to...
13135 (ppc_linux_nat_target::check_condition): ...this method.
13136 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13137 comment, use m_dreg_interface.
13138 (create_watchpoint_request): Change to...
13139 (ppc_linux_nat_target::create_watchpoint_request): ...this
13140 method. Use m_dreg_interface.
13141 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13142 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13143 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13144 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13145 (ppc_linux_nat_target::low_forget_process)
13146 (ppc_linux_nat_target::low_new_fork)
13147 (ppc_linux_nat_target::low_new_clone)
13148 (ppc_linux_nat_target::low_delete_thread)
13149 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13150 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13151 only call mark_thread_stale.
13152 (ppc_linux_thread_exit): Remove.
13153 (ppc_linux_nat_target::stopped_data_address): Change to...
13154 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13155 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13156 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13157 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13158 comment. Call low_stopped_data_address.
13159 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13160 m_dreg_interface.
13161 (ppc_linux_nat_target::masked_watch_num_registers): Use
13162 m_dreg_interface.
13163 (ppc_linux_nat_target::copy_thread_dreg_state)
13164 (ppc_linux_nat_target::mark_thread_stale)
13165 (ppc_linux_nat_target::mark_debug_registers_changed)
13166 (ppc_linux_nat_target::register_hw_breakpoint)
13167 (ppc_linux_nat_target::clear_hw_breakpoint)
13168 (ppc_linux_nat_target::register_wp)
13169 (ppc_linux_nat_target::clear_wp)
13170 (ppc_linux_nat_target::init_arch_lwp_info)
13171 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13172 (_initialize_ppc_linux_nat): Remove observer callback.
13173
4db10d8f
PFC
131742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13175
13176 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13177 (ppc_linux_nat_target::auxv_parse)
13178 (ppc_linux_nat_target::read_description)
13179 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13180 Move up.
13181
1310c1b0
PFC
131822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13183
13184 * linux-nat.h (low_new_clone): New method.
13185 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13186
69b037c3
SM
131872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13188
13189 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13190 (dbx_expand_psymtab): ... this.
13191 (start_psymtab): Update.
13192 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13193 (mdebug_expand_psymtab): ... this.
13194 (parse_partial_symbols): Update.
13195 (new_psymtab): Update.
13196 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13197 (xcoff_expand_psymtab): ... this.
13198 (xcoff_start_psymtab): Update.
13199
48993951
SM
132002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13201
13202 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13203 <expand_dependencies>: ... this.
13204 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13205 (partial_symtab::expand_dependencies): ... this.
13206 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13207 Update.
13208 (dwarf2_psymtab::expand_psymtab): Update.
13209 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13210 * mdebugread.c (psymtab_to_symtab_1): Update.
13211 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13212
3ad83046
SM
132132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13214
13215 * psympriv.h (discard_psymtab): Remove.
13216 * dbxread.c (dbx_end_psymtab): Update.
13217 * xcoffread.c (xcoff_end_psymtab): Update.
13218
4d1b9ab6
TT
132192020-03-28 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13222 comment.
13223
f1749218
TT
132242020-03-28 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13227
ebea7626
HD
132282020-03-27 Hannes Domani <ssbssa@yahoo.de>
13229
13230 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13231
a879b4d5
JB
132322020-03-26 John Baldwin <jhb@FreeBSD.org>
13233
13234 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13235
0826b30a
TT
132362020-03-26 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13239 (mark_common_block_symbol_computed, read_tag_string_type)
13240 (attr_to_dynamic_prop, read_subrange_type): Update.
13241 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13242 to be methods on struct attribute.
13243 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13244 (read_call_site_scope, partial_die_info::read)
13245 (partial_die_info::read, lookup_die_type, follow_die_ref):
13246 Update.
13247 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13248 from dwarf2_get_ref_die_offset.
13249 (attribute::constant_value): New method, from
13250 dwarf2_get_attr_constant_value.
13251 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13252 Declare method.
13253 <constant_value>: New method.
13254
2b2558bf
TT
132552020-03-26 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13258 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13259 (dwarf_type_encoding_name): Move to stringify.c.
13260 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13261 * dwarf2/stringify.c: New file.
13262 * dwarf2/stringify.h: New file.
13263
eeb64781
TT
132642020-03-26 Tom Tromey <tom@tromey.com>
13265
13266 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13267 Rewrite.
13268
a39fdb41
TT
132692020-03-26 Tom Tromey <tom@tromey.com>
13270
13271 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13272 methods.
13273 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13274 (lookup_ranges_base): Likewise.
13275 (read_cutu_die_from_dwo, read_full_die_1): Update.
13276
436c571c
TT
132772020-03-26 Tom Tromey <tom@tromey.com>
13278
13279 * dwarf2/read.c (read_import_statement, read_file_scope)
13280 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13281 (read_lexical_block_scope, read_call_site_scope)
13282 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13283 (handle_struct_member_die, process_structure_scope)
13284 (update_enumeration_type_from_children)
13285 (process_enumeration_scope, read_array_type, read_common_block)
13286 (read_namespace, read_module, read_subroutine_type): Update.
13287 (sibling_die): Remove.
13288
052c8bb8
TT
132892020-03-26 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13292 (build_type_psymtabs_reader, read_structure_type)
13293 (read_enumeration_type, read_full_die_1): Update.
13294 (dwarf2_attr_no_follow): Move to die.h.
13295 * dwarf2/die.h (struct die_info) <attr>: New method.
13296
2b24b6e4
TT
132972020-03-26 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13300 <base_address>: Now an optional.
13301 (dwarf2_find_base_address, dwarf2_rnglists_process)
13302 (dwarf2_ranges_process, fill_in_loclist_baton)
13303 (dwarf2_symbol_mark_computed): Update.
13304
c2d50fd0
TT
133052020-03-26 Tom Tromey <tom@tromey.com>
13306
13307 * dwarf2/read.c (struct die_info): Move to die.h.
13308 * dwarf2/die.h: New file.
13309
0df7ad3a
TT
133102020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13313 * dwarf2/read.c
13314 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13315 Move to line-header.c.
13316 (read_checked_initial_length_and_offset, read_formatted_entries):
13317 Likewise.
13318 (dwarf_decode_line_header): Split into two.
13319 * dwarf2/line-header.c
13320 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13321 Move from read.c.
13322 (read_checked_initial_length_and_offset, read_formatted_entries):
13323 Likewise.
13324 (dwarf_decode_line_header): New function, split from read.c.
13325
86c0bb4c
TT
133262020-03-26 Tom Tromey <tom@tromey.com>
13327
13328 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13329 Declare method.
13330 * dwarf2/read.c (read_attribute_value): Update.
13331 (dwarf2_per_objfile::read_line_string): Rename from
13332 read_indirect_line_string.
13333 (read_formatted_entries): Update.
13334
2ef46c2f
TT
133352020-03-26 Tom Tromey <tom@tromey.com>
13336
13337 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13338 variable.
13339
4f9c1eda
TT
133402020-03-26 Tom Tromey <tom@tromey.com>
13341
13342 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13343 const.
13344 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13345 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13346 parameter const.
13347
5a0e026f
TT
133482020-03-26 Tom Tromey <tom@tromey.com>
13349
13350 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13351 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13352 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13353 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13354
8844c11b
TT
133552020-03-26 Tom Tromey <tom@tromey.com>
13356
13357 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13358 file_names_size, file_full_name, file_file_name>: Use const.
13359 <file_name_at, file_names>: Add const overload.
13360 * dwarf2/line-header.c (line_header::file_file_name)
13361 (line_header::file_full_name): Update.
13362
c90ec28a
TT
133632020-03-26 Tom Tromey <tom@tromey.com>
13364
13365 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13366 (macro_start_file, consume_improper_spaces)
13367 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13368 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13369 (dwarf_decode_macros): Move to macro.c.
13370 * dwarf2/macro.c: New file.
13371 * dwarf2/macro.h: New file.
13372 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13373
4f44ae6c
TT
133742020-03-26 Tom Tromey <tom@tromey.com>
13375
13376 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13377 method.
13378 * dwarf2/section.c: New method. From
13379 read_indirect_string_at_offset_from.
13380 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13381 (read_indirect_string_at_offset_from): Move to section.c.
13382 (read_indirect_string_at_offset): Rewrite.
13383 (read_indirect_line_string_at_offset): Remove.
13384 (read_indirect_string, read_indirect_line_string)
13385 (dwarf_decode_macro_bytes): Update.
13386
a0194fa8
TT
133872020-03-26 Tom Tromey <tom@tromey.com>
13388
13389 * dwarf2/section.h (struct dwarf2_section_info)
13390 <overload_complaint>: Declare.
13391 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13392 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13393 Rename from dwarf2_section_buffer_overflow_complaint.
13394 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13395 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13396
3d27bbdb
TT
133972020-03-26 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13400 Declare.
13401 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13402 Move from read.c.
13403 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13404 to section.c.
13405
9eac9650
TT
134062020-03-26 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13409
bf80d710
TT
134102020-03-26 Tom Tromey <tom@tromey.com>
13411
13412 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13413 "builder".
13414 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13415 parameter.
13416 (dwarf_decode_macros): Update.
13417
0314b390
TT
134182020-03-26 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2/read.c (read_attribute_value): Update.
13421 (read_indirect_string_from_dwz): Move to dwz.c; change into
13422 method.
13423 (dwarf_decode_macro_bytes): Update.
13424 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13425 * dwarf2/dwz.c: New file.
13426 * Makefile.in (COMMON_SFILES): Add dwz.c.
13427
9fda78b6
TT
134282020-03-26 Tom Tromey <tom@tromey.com>
13429
13430 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13431 * dwarf2/read.c: Add include.
13432 * dwarf2/index-write.c: Add include.
13433 * dwarf2/index-cache.c: Add include.
13434 * dwarf2/dwz.h: New file.
13435
33aa3c10
TT
134362020-03-25 Tom Tromey <tom@tromey.com>
13437
13438 * compile/compile-object-load.c (get_out_value_type): Mention
13439 correct symbol name in error message.
13440
d503b685
HD
134412020-03-25 Hannes Domani <ssbssa@yahoo.de>
13442
13443 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13444
7b1eff95
TV
134452020-03-25 Tom de Vries <tdevries@suse.de>
13446
13447 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13448 * symmisc.c (dump_symtab_1): Print user and includes fields.
13449 (maintenance_info_symtabs): Same.
13450
dd895392
AB
134512020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 PR gdb/25534
13454 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13455 (riscv_regcache_cooked_write): New function.
13456 (riscv_push_dummy_call): Use new function.
13457 (riscv_return_value): Likewise.
13458
5ab2fbf1
SM
134592020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13460
13461 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13462 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13463 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13464 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13465 * infrun.c (follow_fork): Likewise.
13466 (follow_fork_inferior): Likewise.
13467 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13468 * linux-nat.h (class linux_nat_target): Likewise.
13469 * remote.c (class remote_target) <follow_fork>: Likewise.
13470 (remote_target::follow_fork): Likewise.
13471 * target-delegates.c: Re-generate.
13472 * target.c (default_follow_fork): Likewise.
13473 (target_follow_fork): Likewise.
13474 * target.h (struct target_ops) <follow_fork>: Likewise.
13475 (target_follow_fork): Likewise.
13476
a64fafb5
TV
134772020-03-24 Tom de Vries <tdevries@suse.de>
13478
13479 * psymtab.c (maintenance_info_psymtabs): Print user field.
13480
fe26d3a3
TT
134812020-03-20 Tom Tromey <tromey@adacore.com>
13482
13483 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13484 const.
13485 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13486 const.
13487
c884cc46
SM
134882020-03-20 Simon Marchi <simon.marchi@efficios.com>
13489
13490 * ptrace.m4: Don't check for ptrace declaration.
13491 * config.in: Re-generate.
13492 * configure: Re-generate.
13493 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13494 not defined.
13495
1ff700c2
KR
134962020-03-20 Kamil Rytarowski <n54@gmx.com>
13497
13498 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13499 `PTRACE_TYPE_RET'.
13500 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13501 * sparc-nat.c (gdb_ptrace): Likewise.
13502 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13503
f7d4f0b1
TT
135042020-03-20 Tom Tromey <tromey@adacore.com>
13505
13506 * c-exp.y (lex_one_token): Fix assert.
13507
f67210ff
TT
135082020-03-20 Tom Tromey <tromey@adacore.com>
13509
13510 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13511 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13512 strncpy call.
13513
1773be9e
TT
135142020-03-20 Tom Tromey <tromey@adacore.com>
13515
13516 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13517
70304be9
TT
135182020-03-20 Tom Tromey <tromey@adacore.com>
13519
13520 * ada-valprint.c (print_variant_part): Remove parameters; switch
13521 to value-based API.
13522 (print_field_values): Likewise.
13523 (ada_val_print_struct_union): Likewise.
13524 (ada_value_print_1): Update.
13525
9faa006d
KR
135262020-03-20 Kamil Rytarowski <n54@gmx.com>
13527
13528 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13529 nbsd_nat_target instead of inf_ptrace_target.
13530 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13531 nbsd_nat_target.
13532
4a90f062
KR
135332020-03-20 Kamil Rytarowski <n54@gmx.com>
13534
13535 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13536 it to the ptrace call.
13537 * (store_registers): Likewise.
13538
135392020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13540
13541 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13542 it to the ptrace call.
13543 * (store_registers): Likewise.
13544
2d07da27
LM
135452020-03-19 Luis Machado <luis.machado@linaro.org>
13546
13547 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13548 valid, fetch vg value from ptrace.
13549
f09db380
KR
135502020-03-19 Kamil Rytarowski <n54@gmx.com>
13551 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13552 * inf-ptrace.c: Likewise.
13553 * (gdb_ptrace): Add.
13554 * (inf_ptrace_target::resume): Update.
13555 * (inf_ptrace_target::xfer_partial): Likewise.
13556 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13557 * (inf_ptrace_peek_poke): Update.
13558
fcc7376e
KR
135592020-03-19 Kamil Rytarowski <n54@gmx.com>
13560
13561 * x86-bsd-nat.c (gdb_ptrace): New.
13562 * (x86bsd_dr_set): Add new argument `ptid'.
13563 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13564 x86bsd_dr_set_addr): Update.
13565
cada5fc9
AB
135662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13567
13568 * remote.c (remote_target::process_stop_reply): Handle events for
13569 all threads differently.
13570
19a2740f
AB
135712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13572
13573 * completer.c (completion_tracker::remove_completion): Define new
13574 function.
13575 * completer.h (completion_tracker::remove_completion): Declare new
13576 function.
13577 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13578 when adding a C++ function symbol.
13579
724fd9ba
AB
135802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13581
13582 * completer.c (completion_tracker::completion_hash_entry): Define
13583 new class.
13584 (advance_to_filename_complete_word_point): Call
13585 recompute_lowest_common_denominator.
13586 (completion_tracker::completion_tracker): Call discard_completions
13587 to setup the hash table.
13588 (completion_tracker::discard_completions): Allow for being called
13589 from the constructor, pass new equal function, and element deleter
13590 when constructing the hash table. Initialise new class member
13591 variables.
13592 (completion_tracker::maybe_add_completion): Remove use of
13593 m_entries_vec, and store more information into m_entries_hash.
13594 (completion_tracker::recompute_lcd_visitor): New function, most
13595 content taken from...
13596 (completion_tracker::recompute_lowest_common_denominator):
13597 ...here, this now just visits each item in the hash calling the
13598 above visitor.
13599 (completion_tracker::build_completion_result): Remove use of
13600 m_entries_vec, call recompute_lowest_common_denominator.
13601 * completer.h (completion_tracker::have_completions): Remove use
13602 of m_entries_vec.
13603 (completion_tracker::completion_hash_entry): Declare new class.
13604 (completion_tracker::recompute_lowest_common_denominator): Change
13605 function signature.
13606 (completion_tracker::recompute_lcd_visitor): Declare new function.
13607 (completion_tracker::m_entries_vec): Delete.
13608 (completion_tracker::m_entries_hash): Initialize to NULL.
13609 (completion_tracker::m_lowest_common_denominator_valid): New
13610 member variable.
13611 (completion_tracker::m_lowest_common_denominator_max_length): New
13612 member variable.
13613
5a82b8a1
KR
136142020-03-17 Kamil Rytarowski <n54@gmx.com>
13615
13616 * regformats/regdef.h: Put reg in gdb namespace.
13617
fb516a69
KR
136182020-03-17 Kamil Rytarowski <n54@gmx.com>
13619
13620 * i386-bsd-nat.c (gdb_ptrace): New.
13621 * (i386bsd_fetch_inferior_registers,
13622 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13623 * (i386bsd_fetch_inferior_registers,
13624 i386bsd_store_inferior_registers) Use gdb_ptrace.
13625
1c0aa1fb
KR
136262020-03-17 Kamil Rytarowski <n54@gmx.com>
13627
13628 * amd64-bsd-nat.c (gdb_ptrace): New.
13629 * (amd64bsd_fetch_inferior_registers,
13630 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13631 * (amd64bsd_fetch_inferior_registers,
13632 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13633
5ccd2fb7
KR
136342020-03-17 Kamil Rytarowski <n54@gmx.com>
13635
13636 * user-regs.c (user_reg::read): Rename to...
13637 (user_reg::xread): ...this.
13638 * (append_user_reg): Rename argument `read' to `xread'.
13639 * (user_reg_add_builtin): Likewise.
13640 * (user_reg_add): Likewise.
13641 * (value_of_user_reg): Likewise.
13642
2108a63a
KR
136432020-03-17 Kamil Rytarowski <n54@gmx.com>
13644
13645 * sparc-nat.c (gdb_ptrace): New.
13646 * sparc-nat.c (sparc_fetch_inferior_registers)
13647 (sparc_store_inferior_registers) Remove obsolete comment.
13648 * sparc-nat.c (sparc_fetch_inferior_registers)
13649 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13650 * sparc-nat.c (sparc_fetch_inferior_registers)
13651 (sparc_store_inferior_registers) Use gdb_ptrace.
13652
a225c9a8
KR
136532020-03-17 Kamil Rytarowski <n54@gmx.com>
13654
13655 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13656 it to the ptrace call.
13657 * sh-nbsd-nat.c (store_registers): Likewise.
13658
98097623
KR
136592020-03-17 Kamil Rytarowski <n54@gmx.com>
13660
13661 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13662 nbsd_nat_target instead of inf_ptrace_target.
13663 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13664 nbsd_nat_target.
13665
9e38d619
KR
136662020-03-17 Kamil Rytarowski <n54@gmx.com>
13667
13668 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13669
a2ecbe9f
KR
136702020-03-17 Kamil Rytarowski <n54@gmx.com>
13671
13672 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13673 <sys/sysctl.h>.
13674 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13675
58990295
TV
136762020-03-17 Tom de Vries <tdevries@suse.de>
13677
13678 PR gdb/23710
13679 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13680 fields.
13681 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13682 fields.
13683 (process_imported_unit_die): Skip import of c++ CUs.
13684
771dd3a8
TT
136852020-03-16 Tom Tromey <tom@tromey.com>
13686
13687 * p-valprint.c (pascal_object_print_value): Initialize
13688 base_value.
13689
817a7585
AK
136902020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13691 Shahab Vahedi <shahab@synopsys.com>
13692
13693 * Makefile.in: Add arch/arc.o
13694 * configure.tgt: Likewise.
13695 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13696 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13697 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13698 * arc-tdep.h (arc_read_description): Add proto type.
13699 * arch/arc.c: New file.
13700 * arch/arc.h: Likewise.
13701 * features/Makefile: Replace old target descriptions with new.
13702 * features/arc-arcompact.c: Remove.
13703 * features/arc-arcompact.xml: Likewise.
13704 * features/arc-v2.c: Likewise
13705 * features/arc-v2.xml: Likewise
13706 * features/arc/aux-arcompact.xml: New file.
13707 * features/arc/aux-v2.xml: Likewise.
13708 * features/arc/core-arcompact.xml: Likewise.
13709 * features/arc/core-v2.xml: Likewise.
13710 * features/arc/aux-arcompact.c: Generate.
13711 * features/arc/aux-v2.c: Likewise.
13712 * features/arc/core-arcompact.c: Likewise.
13713 * features/arc/core-v2.c: Likewise.
13714 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13715
67430cd0
TT
137162020-03-16 Tom Tromey <tromey@adacore.com>
13717
13718 PR gdb/25663:
13719 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13720 putting value into bcache.
13721
30efb6c7
SM
137222020-03-16 Simon Marchi <simon.marchi@efficios.com>
13723
13724 PR gdb/21500
13725 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13726 to...
13727 (amd64_windows_init_abi_common): ... this. Don't set size of
13728 long type.
13729 (amd64_windows_init_abi): New function.
13730 (amd64_cygwin_init_abi): New function.
13731 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13732 the Cygwin OS ABI.
13733 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13734 comment.
13735
8db52437
SM
137362020-03-16 Simon Marchi <simon.marchi@efficios.com>
13737
13738 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13739 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13740 (pe_import_directory_entry): New struct type.
13741 (is_linked_with_cygwin_dll): New function.
13742 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13743 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13744 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13745
5982a56a
SM
137462020-03-16 Simon Marchi <simon.marchi@efficios.com>
13747
13748 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13749 i386_cygwin_core_osabi_sniffer.
13750
7a1998df
SM
137512020-03-16 Simon Marchi <simon.marchi@efficios.com>
13752
13753 * i386-cygwin-tdep.c: Rename to...
13754 * i386-windows-tdep.c: ... this.
13755 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13756 i386-windows-tdep.c.
13757 * configure.tgt: Likewise.
13758
053205cc
SM
137592020-03-16 Simon Marchi <simon.marchi@efficios.com>
13760
13761 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13762 * osabi.c (gdb_osabi_names): Add "Windows".
13763 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13764 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13765 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13766 i386_cygwin_osabi_sniffer.
13767 (_initialize_i386_cygwin_tdep): Register OS ABI
13768 GDB_OSABI_WINDOWS for i386.
13769 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13770 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13771 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13772 for x86-64.
13773 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13774 when the target matches '*-*-mingw*'.
13775
fe4b2ee6
SM
137762020-03-16 Simon Marchi <simon.marchi@efficios.com>
13777
13778 * defs.h (enum gdb_osabi): Move to...
13779 * osabi.h (enum gdb_osabi): ... here.
13780 * gdbarch.sh: Include osabi.h in gdbarch.h.
13781 * gdbarch.h: Re-generate.
13782
cb9b645d
SM
137832020-03-16 Simon Marchi <simon.marchi@efficios.com>
13784
13785 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13786 function.
13787 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13788
3293bbaf
TT
137892020-03-14 Tom Tromey <tom@tromey.com>
13790
13791 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13792 for C++.
13793 (c_type_print_modifier): Likewise. Add "language" parameter.
13794 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13795 (c_type_print_base_1): Update.
13796 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13797 constants.
13798 * type-stack.c (type_stack::insert): Handle tp_atomic and
13799 tp_restrict.
13800 (type_stack::follow_type_instance_flags): Likewise.
13801 (type_stack::follow_types): Likewise. Merge type-following code.
13802 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13803 (space_identifier, cv_with_space_id)
13804 (const_or_volatile_or_space_identifier_noopt)
13805 (const_or_volatile_or_space_identifier): Remove.
13806 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13807 rules.
13808 (ptr_operator, typebase): Update.
13809 (enum token_flag) <FLAG_C>: New constant.
13810 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13811 "_Atomic".
13812 (lex_one_token): Handle FLAG_C.
13813
154151a6
KR
138142020-03-14 Kamil Rytarowski <n54@gmx.com>
13815
13816 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13817 it to the ptrace call.
13818 * m68k-bsd-nat.c (store_registers): Likewise.
13819
bc107784
KR
138202020-03-14 Kamil Rytarowski <n54@gmx.com>
13821
13822 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13823 gdb_byte *.
13824 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13825 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13826 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13827
01a80117
KR
138282020-03-14 Kamil Rytarowski <n54@gmx.com>
13829
13830 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13831 nbsd_nat_target instead of inf_ptrace_target.
13832 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13833 nbsd_nat_target.
13834
f90280ca
KR
138352020-03-14 Kamil Rytarowski <n54@gmx.com>
13836
13837 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13838 register_t.
13839
6def66f1
KR
138402020-03-14 Kamil Rytarowski <n54@gmx.com>
13841
13842 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13843 it to the ptrace call.
13844 * alpha-bsd-nat.c (store_registers): Likewise.
13845
66eaca97
KR
138462020-03-14 Kamil Rytarowski <n54@gmx.com>
13847
13848 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13849 includes.
13850 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13851 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13852 fill_fpregset): Likewise.
13853
4fed520b
KR
138542020-03-14 Kamil Rytarowski <n54@gmx.com>
13855
13856 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13857 nbsd_nat_target instead of inf_ptrace_target.
13858 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13859 nbsd_nat_target.
13860
2190cf06
KR
138612020-03-14 Kamil Rytarowski <n54@gmx.com>
13862
13863 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13864 register_t.
13865
75c56d3d
KR
138662020-03-14 Kamil Rytarowski <n54@gmx.com>
13867
13868 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13869 it to the ptrace call.
13870 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13871 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13872 * arm-nbsd-nat.c (store_register): Likewise.
13873 * arm-nbsd-nat.c (store_regs): Likewise.
13874 * arm-nbsd-nat.c (store_fp_register): Likewise.
13875 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13876
6018d381
KR
138772020-03-14 Kamil Rytarowski <n54@gmx.com>
13878
13879 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13880 nbsd_nat_target instead of inf_ptrace_target.
13881 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13882 nbsd_nat_target.
13883
013f99f0
KR
138842020-03-14 Kamil Rytarowski <n54@gmx.com>
13885
13886 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13887 it to the ptrace call.
13888 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13889
12753073
KR
138902020-03-14 Kamil Rytarowski <n54@gmx.com>
13891
6227b330
KR
13892 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13893 it to the ptrace call.
13894 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13895
138962020-03-14 Kamil Rytarowski <n54@gmx.com>
13897
13898 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13899 gdb_byte *.
12753073
KR
13900 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13901
d5be5fa4
KR
139022020-03-14 Kamil Rytarowski <n54@gmx.com>
13903
13904 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13905 instead of inf_ptrace_target.
13906 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13907 nbsd_nat_target.
13908
8110f842
KR
139092020-03-14 Kamil Rytarowski <n54@gmx.com>
13910
13911 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13912 register_t.
13913
52feded7
KR
139142020-03-14 Kamil Rytarowski <n54@gmx.com>
13915
13916 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13917 register_t.
13918
25567eee
KR
139192020-03-14 Kamil Rytarowski <n54@gmx.com>
13920
13921 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13922 register_t.
13923
426a9c18
TT
139242020-03-13 Tom Tromey <tom@tromey.com>
13925
13926 * value.h (val_print): Don't declare.
13927 * valprint.h (val_print_array_elements)
13928 (val_print_scalar_formatted, generic_val_print): Don't declare.
13929 * valprint.c (generic_val_print_array): Take a struct value.
13930 (generic_val_print_ptr, generic_val_print_memberptr)
13931 (generic_val_print_bool, generic_val_print_int)
13932 (generic_val_print_char, generic_val_print_complex)
13933 (generic_val_print): Remove.
13934 (generic_value_print): Update.
13935 (do_val_print): Remove unused parameters. Don't call
13936 la_val_print.
13937 (val_print): Remove.
13938 (common_val_print): Update. Don't call value_check_printable.
13939 (val_print_scalar_formatted, val_print_array_elements): Remove.
13940 * rust-lang.c (rust_val_print): Remove.
13941 (rust_language_defn): Update.
13942 * p-valprint.c (pascal_val_print): Remove.
13943 (pascal_value_print_inner): Update.
13944 (pascal_object_print_val_fields, pascal_object_print_val):
13945 Remove.
13946 (pascal_object_print_static_field): Update.
13947 * p-lang.h (pascal_val_print): Don't declare.
13948 * p-lang.c (pascal_language_defn): Update.
13949 * opencl-lang.c (opencl_language_defn): Update.
13950 * objc-lang.c (objc_language_defn): Update.
13951 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13952 * m2-lang.h (m2_val_print): Don't declare.
13953 * m2-lang.c (m2_language_defn): Update.
13954 * language.h (struct language_defn) <la_val_print>: Remove.
13955 * language.c (unk_lang_value_print_inner): Rename. Change
13956 argument types.
13957 (unknown_language_defn, auto_language_defn): Update.
13958 * go-valprint.c (go_val_print): Remove.
13959 * go-lang.h (go_val_print): Don't declare.
13960 * go-lang.c (go_language_defn): Update.
13961 * f-valprint.c (f_val_print): Remove.
13962 * f-lang.h (f_value_print): Don't declare.
13963 * f-lang.c (f_language_defn): Update.
13964 * d-valprint.c (d_val_print): Remove.
13965 * d-lang.h (d_value_print): Don't declare.
13966 * d-lang.c (d_language_defn): Update.
13967 * cp-valprint.c (cp_print_value_fields)
13968 (cp_print_value_fields_rtti, cp_print_value): Remove.
13969 (cp_print_static_field): Update.
13970 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13971 (c_val_print_struct, c_val_print_union, c_val_print_int)
13972 (c_val_print_memberptr, c_val_print): Remove.
13973 * c-lang.h (c_val_print_array, cp_print_value_fields)
13974 (cp_print_value_fields_rtti): Don't declare.
13975 * c-lang.c (c_language_defn, cplus_language_defn)
13976 (asm_language_defn, minimal_language_defn): Update.
13977 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13978 (ada_val_print_enum): Take a struct value.
13979 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13980 (ada_val_print): Remove.
13981 (ada_value_print_1): Update.
13982 (printable_val_type): Remove.
13983 * ada-lang.h (ada_val_print): Don't declare.
13984 * ada-lang.c (ada_language_defn): Update.
13985
42331a1e
TT
139862020-03-13 Tom Tromey <tom@tromey.com>
13987
13988 * valprint.c (do_val_print): Update.
13989 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13990 a struct value.
13991 (value_to_value_object_no_release): Declare.
13992 * python/py-value.c (value_to_value_object_no_release): New
13993 function.
13994 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13995 struct value.
13996 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13997 function.
13998 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13999 a struct value.
14000 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14001 Declare.
14002 (gdbscm_apply_val_pretty_printer): Take a struct value.
14003 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14004 value.
14005 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14006 value.
14007 * extension-priv.h (struct extension_language_ops)
14008 <apply_val_pretty_printer>: Take a struct value.
14009 * cp-valprint.c (cp_print_value): Create a struct value.
14010 (cp_print_value): Update.
14011
3a916a97
TT
140122020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * ada-valprint.c (print_field_values): Call common_val_print.
14015
b59eac37
TT
140162020-03-13 Tom Tromey <tom@tromey.com>
14017
14018 * ada-valprint.c (val_print_packed_array_elements): Remove
14019 bitoffset and val parameters. Call common_val_print.
14020 (ada_val_print_string): Remove offset, address, and original_value
14021 parameters.
14022 (ada_val_print_array): Update.
14023 (ada_value_print_array): New function.
14024 (ada_value_print_1): Call it.
14025
03371129
TT
140262020-03-13 Tom Tromey <tom@tromey.com>
14027
14028 * ada-valprint.c (ada_value_print): Use common_val_print.
14029
2e088f8b
TT
140302020-03-13 Tom Tromey <tom@tromey.com>
14031
14032 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14033
39ef85a8
TT
140342020-03-13 Tom Tromey <tom@tromey.com>
14035
14036 * ada-valprint.c (ada_value_print_num): New function.
14037 (ada_value_print_1): Use it.
14038
b9fa6e07
TT
140392020-03-13 Tom Tromey <tom@tromey.com>
14040
14041 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14042
416595d6
TT
140432020-03-13 Tom Tromey <tom@tromey.com>
14044
14045 * ada-valprint.c (ada_value_print_ptr): New function.
14046 (ada_value_print_1): Use it.
14047
5b5e15ec
TT
140482020-03-13 Tom Tromey <tom@tromey.com>
14049
14050 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14051 call common_val_print.
14052 (ada_val_print_1): Update.
14053 (ada_value_print_1): New function.
14054 (ada_value_print_inner): Rewrite.
14055
fbf54e75
TT
140562020-03-13 Tom Tromey <tom@tromey.com>
14057
14058 * cp-valprint.c (cp_print_value_fields): Update.
14059 (cp_print_value): New function.
14060
64b653ca
TT
140612020-03-13 Tom Tromey <tom@tromey.com>
14062
14063 * m2-valprint.c (m2_value_print_inner): Use
14064 cp_print_value_fields.
14065 * cp-valprint.c (cp_print_value_fields): New function.
14066 * c-valprint.c (c_value_print_struct): New function.
14067 (c_value_print_inner): Use c_value_print_struct.
14068 * c-lang.h (cp_print_value_fields): Declare.
14069
6999f067
TT
140702020-03-13 Tom Tromey <tom@tromey.com>
14071
14072 * c-valprint.c (c_value_print_array): New function.
14073 (c_value_print_inner): Use it.
14074
ce80b8bd
TT
140752020-03-13 Tom Tromey <tom@tromey.com>
14076
14077 * c-valprint.c (c_value_print_memberptr): New function.
14078 (c_value_print_inner): Use it.
14079
2faac269
TT
140802020-03-13 Tom Tromey <tom@tromey.com>
14081
14082 * c-valprint.c (c_value_print_int): New function.
14083 (c_value_print_inner): Use it.
14084
da3e2c29
TT
140852020-03-13 Tom Tromey <tom@tromey.com>
14086
14087 * c-valprint.c (c_value_print_ptr): New function.
14088 (c_value_print_inner): Use it.
14089
50836231
TT
140902020-03-13 Tom Tromey <tom@tromey.com>
14091
14092 * c-valprint.c (c_value_print_inner): Rewrite.
14093
4f412b6e
TT
140942020-03-13 Tom Tromey <tom@tromey.com>
14095
14096 * valprint.c (generic_value_print_complex): New function.
14097 (generic_value_print): Use it.
14098
f5354008
TT
140992020-03-13 Tom Tromey <tom@tromey.com>
14100
14101 * valprint.c (generic_val_print_float): Don't call
14102 val_print_scalar_formatted.
14103 (generic_val_print, generic_value_print): Update.
14104
3eec3b05
TT
141052020-03-13 Tom Tromey <tom@tromey.com>
14106
14107 * valprint.c (generic_value_print_char): New function
14108 (generic_value_print): Use it.
14109
fdddfccb
TT
141102020-03-13 Tom Tromey <tom@tromey.com>
14111
14112 * valprint.c (generic_value_print_int): New function.
14113 (generic_value_print): Use it.
14114
6dde7521
TT
141152020-03-13 Tom Tromey <tom@tromey.com>
14116
14117 * valprint.c (generic_value_print_bool): New function.
14118 (generic_value_print): Use it.
14119
4112d2e6
TT
141202020-03-13 Tom Tromey <tom@tromey.com>
14121
14122 * valprint.c (generic_val_print_func): Simplify.
14123 (generic_val_print, generic_value_print): Update.
14124
65786af6
TT
141252020-03-13 Tom Tromey <tom@tromey.com>
14126
14127 * valprint.c (generic_val_print_flags): Remove.
14128 (generic_val_print, generic_value_print): Update.
14129 (val_print_type_code_flags): Add original_value parameter.
14130
40f3ce18
TT
141312020-03-13 Tom Tromey <tom@tromey.com>
14132
14133 * valprint.c (generic_val_print): Update.
14134 (generic_value_print): Update.
14135 * valprint.c (generic_val_print_enum): Don't call
14136 val_print_scalar_formatted.
14137
2a5b130b
TT
141382020-03-13 Tom Tromey <tom@tromey.com>
14139
14140 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14141 * valprint.c (generic_value_print_ptr): New function.
14142
abc66ce9
TT
141432020-03-13 Tom Tromey <tom@tromey.com>
14144
14145 * valprint.c (generic_value_print): Rewrite.
14146
07a32858
TT
141472020-03-13 Tom Tromey <tom@tromey.com>
14148
14149 * p-valprint.c (pascal_object_print_value_fields)
14150 (pascal_object_print_value): New functions.
14151
64d64d3a
TT
141522020-03-13 Tom Tromey <tom@tromey.com>
14153
14154 * p-valprint.c (pascal_value_print_inner): Rewrite.
14155
6a95a1f5
TT
141562020-03-13 Tom Tromey <tom@tromey.com>
14157
14158 * f-valprint.c (f_value_print_innner): Rewrite.
14159
59fcdac6
TT
141602020-03-13 Tom Tromey <tom@tromey.com>
14161
14162 * m2-valprint.c (m2_print_unbounded_array): New overload.
14163 (m2_print_unbounded_array): Update.
14164 (m2_print_array_contents): Take a struct value.
14165 (m2_value_print_inner): Rewrite.
14166
d133c3e1
TT
141672020-03-13 Tom Tromey <tom@tromey.com>
14168
14169 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14170 (d_value_print_inner): New function.
14171 * d-lang.h (d_value_print_inner): Declare.
14172 * d-lang.c (d_language_defn): Use d_value_print_inner.
14173
23b0f06b
TT
141742020-03-13 Tom Tromey <tom@tromey.com>
14175
14176 * go-valprint.c (go_value_print_inner): New function.
14177 * go-lang.h (go_value_print_inner): Declare.
14178 * go-lang.c (go_language_defn): Use go_value_print_inner.
14179
5f56f7cb
TT
141802020-03-13 Tom Tromey <tom@tromey.com>
14181
14182 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14183 API.
14184 (rust_val_print): Rewrite.
14185 (rust_value_print_inner): New function, from rust_val_print.
14186 (rust_language_defn): Use rust_value_print_inner.
14187
26792ee0
TT
141882020-03-13 Tom Tromey <tom@tromey.com>
14189
14190 * ada-valprint.c (ada_value_print_inner): New function.
14191 * ada-lang.h (ada_value_print_inner): Declare.
14192 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14193
24051bbe
TT
141942020-03-13 Tom Tromey <tom@tromey.com>
14195
14196 * f-valprint.c (f_value_print_innner): New function.
14197 * f-lang.h (f_value_print_innner): Declare.
14198 * f-lang.c (f_language_defn): Use f_value_print_innner.
14199
c0941be6
TT
142002020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * p-valprint.c (pascal_value_print_inner): New function.
14203 * p-lang.h (pascal_value_print_inner): Declare.
14204 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14205
62c4663d
TT
142062020-03-13 Tom Tromey <tom@tromey.com>
14207
14208 * m2-valprint.c (m2_value_print_inner): New function.
14209 * m2-lang.h (m2_value_print_inner): Declare.
14210 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14211
62182190
TT
142122020-03-13 Tom Tromey <tom@tromey.com>
14213
14214 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14215 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14216 * c-valprint.c (c_value_print_inner): New function.
14217 * c-lang.h (c_value_print_inner): Declare.
14218 * c-lang.c (c_language_defn, cplus_language_defn)
14219 (asm_language_defn, minimal_language_defn): Use
14220 c_value_print_inner.
14221
1e592a8a
TT
142222020-03-13 Tom Tromey <tom@tromey.com>
14223
14224 * p-valprint.c (pascal_object_print_value_fields): Now static.
14225 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14226
7fe471e9
TT
142272020-03-13 Tom Tromey <tom@tromey.com>
14228
14229 * c-valprint.c (c_val_print_array): Simplify.
14230
d121c6ce
TT
142312020-03-13 Tom Tromey <tom@tromey.com>
14232
14233 * valprint.c (value_print_array_elements): New function.
14234 * valprint.h (value_print_array_elements): Declare.
14235
4dba70ee
TT
142362020-03-13 Tom Tromey <tom@tromey.com>
14237
14238 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14239 * mips-tdep.c (mips_print_register): Use
14240 value_print_scalar_formatted.
14241
4f9ae810
TT
142422020-03-13 Tom Tromey <tom@tromey.com>
14243
14244 * valprint.h (value_print_scalar_formatted): Declare.
14245 * valprint.c (value_print_scalar_formatted): New function.
14246
156bfec9
TT
142472020-03-13 Tom Tromey <tom@tromey.com>
14248
14249 * valprint.h (generic_value_print): Declare.
14250 * valprint.c (generic_value_print): New function.
14251
2b4e573d
TT
142522020-03-13 Tom Tromey <tom@tromey.com>
14253
14254 * valprint.c (do_val_print): Call la_value_print_inner, if
14255 available.
14256 * rust-lang.c (rust_language_defn): Update.
14257 * p-lang.c (pascal_language_defn): Update.
14258 * opencl-lang.c (opencl_language_defn): Update.
14259 * objc-lang.c (objc_language_defn): Update.
14260 * m2-lang.c (m2_language_defn): Update.
14261 * language.h (struct language_defn) <la_value_print_inner>: New
14262 member.
14263 * language.c (unknown_language_defn, auto_language_defn): Update.
14264 * go-lang.c (go_language_defn): Update.
14265 * f-lang.c (f_language_defn): Update.
14266 * d-lang.c (d_language_defn): Update.
14267 * c-lang.c (c_language_defn, cplus_language_defn)
14268 (asm_language_defn, minimal_language_defn): Update.
14269 * ada-lang.c (ada_language_defn): Update.
14270
a1f6a07c
TT
142712020-03-13 Tom Tromey <tom@tromey.com>
14272
14273 * c-valprint.c (c_value_print): Use common_val_print.
14274
410cf315
TT
142752020-03-13 Tom Tromey <tom@tromey.com>
14276
14277 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14278
72a45c93
TT
142792020-03-13 Tom Tromey <tom@tromey.com>
14280
14281 * f-valprint.c (f77_print_array_1, f_val_print): Use
14282 common_val_print.
14283
040f66bd
TT
142842020-03-13 Tom Tromey <tom@tromey.com>
14285
14286 * riscv-tdep.c (riscv_print_one_register_info): Use
14287 common_val_print.
14288
a6e05a6c
TT
142892020-03-13 Tom Tromey <tom@tromey.com>
14290
14291 * mi/mi-main.c (output_register): Use common_val_print.
14292
3444c526
TT
142932020-03-13 Tom Tromey <tom@tromey.com>
14294
14295 * infcmd.c (default_print_one_register_info): Use
14296 common_val_print.
14297
c2a44efe
TT
142982020-03-13 Tom Tromey <tom@tromey.com>
14299
14300 * valprint.h (common_val_print_checked): Declare.
14301 * valprint.c (common_val_print_checked): New function.
14302 * stack.c (print_frame_arg): Use common_val_print_checked.
14303
b0c26e99
TT
143042020-03-13 Tom Tromey <tom@tromey.com>
14305
14306 * valprint.c (do_val_print): New function, from val_print.
14307 (val_print): Use do_val_print.
14308 (common_val_print): Use do_val_print.
14309
ce3acbe9
TT
143102020-03-13 Tom Tromey <tom@tromey.com>
14311
14312 * valprint.c (value_print): Use scoped_value_mark.
14313
96c7f873
TV
143142020-03-13 Tom de Vries <tdevries@suse.de>
14315
14316 PR symtab/25646
14317 * psymtab.c (partial_symtab::partial_symtab): Don't set
14318 globals_offset and statics_offset. Push element onto
14319 current_global_psymbols and current_static_psymbols stacks.
14320 (concat): New function.
14321 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14322 element from current_global_psymbols and current_static_psymbols
14323 stacks. Concat popped elements to global_psymbols and
14324 static_symbols.
14325 (add_psymbol_to_list): Use current_global_psymbols and
14326 current_static_psymbols stacks.
14327 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14328 current_static_psymbols fields.
14329
6ba0a321
CB
143302020-03-12 Christian Biesinger <cbiesinger@google.com>
14331
14332 * corelow.c (sniff_core_bfd): Remove.
14333 (class core_target) <m_core_vec>: Remove.
14334 (core_target::core_target): Update.
14335 (core_file_fns): Remove.
14336 (deprecated_add_core_fns): Remove.
14337 (default_core_sniffer): Remove.
14338 (sniff_core_bfd): Remove.
14339 (default_check_format): Remove.
14340 (gdb_check_format): Remove.
14341 (core_target_open): Update.
14342 (core_target::get_core_register_section): Update.
14343 (get_core_registers_cb): Update.
14344 (core_target::fetch_registers): Update.
14345 * gdbcore.h (struct core_fns): Remove.
14346 (deprecated_add_core_fns): Remove.
14347 (default_core_sniffer): Remove.
14348 (default_check_format): Remove.
14349
227031b2
TT
143502020-03-12 Tom Tromey <tom@tromey.com>
14351
14352 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14353 CORE_ADDR.
14354 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14355
53807e9f
TT
143562020-03-12 Tom Tromey <tom@tromey.com>
14357
14358 * remote.c (remote_target::download_tracepoint)
14359 (remote_target::enable_tracepoint)
14360 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14361 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14362 sprintf_vma.
14363
64f25102
TT
143642020-03-12 Tom Tromey <tom@tromey.com>
14365
14366 * symfile-mem.c: Update CORE_ADDR size assert.
14367
272cd5a3
SM
143682020-03-12 Simon Marchi <simon.marchi@efficios.com>
14369
14370 * selftest.m4: Move to gdbsupport/.
14371 * acinclude.m4: Update path to selftest.m4.
14372
74cd3f9d
SM
143732020-03-12 Simon Marchi <simon.marchi@efficios.com>
14374
14375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14376 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14377 gdbarch-selfselftests.c and selftest-arch.c.
14378 (SUBDIR_UNITTESTS_OBS): Rename to...
14379 (SELFTESTS_OBS): ... this.
14380 (COMMON_SFILES): Remove disasm-selftests.c and
14381 gdbarch-selftests.c.
14382 * configure.ac: Don't add selftest-arch.{c,o} to
14383 CONFIG_{SRCS,OBS}.
14384 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14385 preprocessor conditions.
14386
db6878ac
SM
143872020-03-12 Simon Marchi <simon.marchi@efficios.com>
14388
14389 * configure.ac: Don't source bfd/development.sh.
14390 * selftest.m4: Modify comment.
14391 * configure: Re-generate.
14392
4d696a5c
SM
143932020-03-12 Simon Marchi <simon.marchi@efficios.com>
14394
14395 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14396 not "true" or "false".
14397 * configure: Re-generate.
14398
8dd8e1c7
CB
143992020-03-12 Christian Biesinger <cbiesinger@google.com>
14400
14401 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14402 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14403 renamed to arm_nbsd_supply_gregset.
14404 (fetch_register): Update to call arm_nbsd_supply_gregset.
14405 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14406 (arm_netbsd_nat_target::fetch_registers): Update.
14407 (fetch_elfcore_registers): Removed.
14408 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14409 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14410 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14411 not require NetBSD system headers.
14412 (arm_nbsd_regset): New struct.
14413 (arm_nbsd_iterate_over_regset_sections): New function.
14414 (arm_netbsd_init_abi_common): Updated to call
14415 set_gdbarch_iterate_over_regset_sections.
14416 * arm-nbsd-tdep.h: New file.
14417
dd69bf7a
KB
144182020-03-11 Kevin Buettner <kevinb@redhat.com>
14419
14420 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14421 recursion.
14422
a0761e34
SM
144232020-03-11 Simon Marchi <simon.marchi@efficios.com>
14424
14425 * configure: Re-generate.
14426
e7a82140
TT
144272020-03-11 Tom Tromey <tromey@adacore.com>
14428
14429 * ada-typeprint.c (print_choices): Fix comment.
14430
dcc050c8
AB
144312020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14432
14433 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14434 previous item in the list, when the list has no items.
14435
1c33af77
TV
144362020-03-11 Tom de Vries <tdevries@suse.de>
14437
14438 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14439 PROP_LOCLIST handling code.
14440
8c95582d
AB
144412020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14442
14443 * buildsym-legacy.c (record_line): Pass extra parameter to
14444 record_line.
14445 * buildsym.c (buildsym_compunit::record_line): Take an extra
14446 parameter, reduce duplication in the line table, and record the
14447 is_stmt flag in the line table.
14448 * buildsym.h (buildsym_compunit::record_line): Add extra
14449 parameter.
14450 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14451 non-statement lines.
14452 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14453 this to the symtab builder.
14454 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14455 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14456 through to dwarf_record_line_1.
14457 * infrun.c (process_event_stop_test): When stepping, don't stop at
14458 a non-statement instruction, and only refresh the step info when
14459 we land in the middle of a line's range. Also add an extra
14460 comment.
14461 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14462 field.
14463 * record-btrace.c (btrace_find_line_range): Only record lines
14464 marked as is-statement.
14465 * stack.c (frame_show_address): Show the frame address if we are
14466 in a non-statement sal.
14467 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14468 (maintenance_print_one_line_table): Print a header for the is_stmt
14469 column, and include is_stmt information in the output.
14470 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14471 preference to non-statements.
14472 (find_pcs_for_symtab_line): Prefer is-statement entries.
14473 (find_line_common): Likewise.
14474 * symtab.h (struct linetable_entry): Add is_stmt field.
14475 (struct symtab_and_line): Likewise.
14476 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14477 arranging the line table.
14478
e4003a34
TV
144792020-03-07 Tom de Vries <tdevries@suse.de>
14480
14481 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14482 DIE.
14483
e8932576
TT
144842020-03-07 Tom Tromey <tom@tromey.com>
14485
14486 * valops.c (value_literal_complex): Remove obsolete comment.
14487 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14488 comment.
14489
29734269
SM
144902020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14491
14492 * infrun.h: Forward-declare thread_info.
14493 (set_step_info): Add thread_info parameter, add doc.
14494 * infrun.c (set_step_info): Add thread_info parameter, move doc
14495 to header.
14496 * infrun.c (process_event_stop_test): Pass thread to
14497 set_step_info call.
14498 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14499 set_step_info.
14500 (prepare_one_step): Add thread_info parameter, pass it to
14501 set_step_frame and prepare_one_step (recursive) call.
14502 (step_1): Pass thread to prepare_one_step call.
14503 (step_command_fsm::should_stop): Pass thread to
14504 prepare_one_step.
14505 (until_next_fsm): Pass thread to set_step_frame call.
14506 (finish_command): Pass thread to set_step_info call.
14507
b7d64b29
HD
145082020-03-06 Hannes Domani <ssbssa@yahoo.de>
14509
14510 * windows-tdep.c (windows_solib_create_inferior_hook):
14511 Check if inferior is running.
14512
09f2921c
TV
145132020-03-06 Tom de Vries <tdevries@suse.de>
14514
14515 * NEWS: Fix "the the".
14516 * ctfread.c: Same.
14517
fd760e79
TV
145182020-03-06 Tom de Vries <tdevries@suse.de>
14519
14520 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14521
20ea4a60
AB
145222020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14523
14524 * .dir-locals.el: Add a comment referencing the other copies of
14525 this file.
14526
0afbabf0
JB
145272020-03-05 John Baldwin <jhb@FreeBSD.org>
14528
14529 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14530 psargs.
14531
842806cb
TBA
145322020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14533
14534 * .gitattributes: New file.
14535
be1e3d3e
TT
145362020-03-04 Tom Tromey <tom@tromey.com>
14537
14538 * symmisc.c (print_symbol_bcache_statistics)
14539 (print_objfile_statistics): Update.
14540 * symfile.c (allocate_symtab): Use intern.
14541 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14542 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14543 macro_cache>: Remove.
14544 <string_cache>: New member.
14545 (struct objfile) <intern>: New methods.
14546 * elfread.c (elf_symtab_read): Use intern.
14547 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14548 (dwarf2_compute_name, dwarf2_physname)
14549 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14550 names.
14551 (guess_partial_die_structure_name): Update.
14552 (partial_die_info::fixup): Intern name.
14553 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14554 name.
14555 (dwarf2_name): Intern name. Update.
14556 * buildsym.c (buildsym_compunit::get_macro_table): Use
14557 string_cache.
14558
4e7625fd
TT
145592020-03-04 Tom Tromey <tom@tromey.com>
14560
14561 * jit.c (bfd_open_from_target_memory): Make "target" const.
14562 * corefile.c (gnutarget): Now const.
14563 * gdbcore.h (gnutarget): Now const.
14564
46f9f931
HD
145652020-03-04 Hannes Domani <ssbssa@yahoo.de>
14566
14567 * NEWS: Mention support for WOW64 processes.
14568 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14569 (amd64_windows_segment_register_p): Remove static.
14570 (_initialize_amd64_windows_nat): Update.
14571 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14572 * i386-windows-nat.c (context_offset): Update.
14573 (i386_mappings): Rename and remove static.
14574 (i386_windows_segment_register_p): Remove static.
14575 (_initialize_i386_windows_nat): Update.
14576 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14577 (STATUS_WX86_SINGLE_STEP): New macro.
14578 (EnumProcessModulesEx): New macro.
14579 (Wow64SuspendThread): New macro.
14580 (Wow64GetThreadContext): New macro.
14581 (Wow64SetThreadContext): New macro.
14582 (Wow64GetThreadSelectorEntry): New macro.
14583 (windows_set_context_register_offsets): Add static.
14584 (windows_set_segment_register_p): Likewise.
14585 (windows_add_thread): Adapt for WOW64 processes.
14586 (windows_fetch_one_register): Likewise.
14587 (windows_nat_target::fetch_registers): Likewise.
14588 (windows_store_one_register): Likewise.
14589 (display_selector): Likewise.
14590 (display_selectors): Likewise.
14591 (handle_exception): Likewise.
14592 (windows_continue): Likewise.
14593 (windows_nat_target::resume): Likewise.
14594 (windows_add_all_dlls): Likewise.
14595 (do_initial_windows_stuff): Likewise.
14596 (windows_nat_target::attach): Likewise.
14597 (windows_get_exec_module_filename): Likewise.
14598 (windows_nat_target::create_inferior): Likewise.
14599 (windows_xfer_siginfo): Likewise.
14600 (_initialize_loadable): Initialize Wow64SuspendThread,
14601 Wow64GetThreadContext, Wow64SetThreadContext,
14602 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14603 * windows-nat.h (windows_set_context_register_offsets):
14604 Remove declaration.
14605 (windows_set_segment_register_p): Likewise.
14606 (i386_windows_segment_register_p): Add declaration.
14607 (amd64_windows_segment_register_p): Likewise.
14608
440cf44e
LM
146092020-03-04 Luis Machado <luis.machado@linaro.org>
14610
14611 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14612 in "info registers" for AArch64/ARM.
14613
14614 The change caused "info registers" to not print GPR's.
14615
14616 gdb/ChangeLog:
14617
14618 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14619
14620 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14621 when reg->group is empty and reggroup is not.
14622
1009d92f
TT
146232020-03-03 Tom Tromey <tromey@adacore.com>
14624
14625 * dwarf2/frame.c (struct dwarf2_frame_cache)
14626 <checked_tailcall_bottom, entry_cfa_sp_offset,
14627 entry_cfa_sp_offset_p>: Remove members.
14628 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14629 (dwarf2_frame_prev_register): Don't call
14630 dwarf2_tailcall_sniffer_first.
14631 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14632 * frame-unwind.c (add_unwinder): New fuction.
14633 (frame_unwind_init): Use it. Add tailcall unwinder.
14634
5e5d66b6
AB
146352020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14636 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14637
14638 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14639 value should be printed as true.
14640
584cf46d
HD
146412020-03-03 Hannes Domani <ssbssa@yahoo.de>
14642
14643 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14644 (windows_init_abi): Set and use windows_so_ops.
14645
7b973adc
SDJ
146462020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14647
14648 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14649 when verifying if dealing with a convenience variable.
14650
bb7b70ab
LM
146512020-03-03 Luis Machado <luis.machado@linaro.org>
14652
14653 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14654
9822cb57
SM
146552020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14656
14657 * infrun.c (gdbarch_supports_displaced_stepping): New.
14658 (use_displaced_stepping): Break up conditions in smaller pieces.
14659 Use gdbarch_supports_displaced_stepping.
14660 (displaced_step_prepare_throw): Use
14661 gdbarch_supports_displaced_stepping.
14662
63e163f2
AB
146632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14664
14665 * NEWS: Mention new behaviour of the history filename.
14666 * top.c (write_history_p): Add comment.
14667 (show_write_history_p): Add header comment, give a different
14668 message when history writing is on, but the history filename is
14669 empty.
14670 (history_filename): Add comment.
14671 (history_filename_empty): New function.
14672 (show_history_filename): Add header comment, give a different
14673 message when the filename is empty.
14674 (init_history): Compare history_filename against nullptr, and only
14675 read history if the filename is not empty.
14676 (set_history_filename): Add header comment, and only make
14677 non-empty filenames absolute.
14678 (init_main): Make the filename argument to 'set history filename'
14679 optional.
14680
81b86b97
CB
146812020-03-02 Christian Biesinger <cbiesinger@google.com>
14682
14683 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14684 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14685 (fetch_fp_register): Update.
14686 (fetch_fp_regs): Update.
14687 (store_fp_register): Update.
14688 (store_fp_regs): Update.
14689 (arm_netbsd_nat_target::read_description): New function.
14690 (fetch_elfcore_registers): Update.
14691
24ed6739
AB
146922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14693
14694 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14695 general_thread if the stop reply is missing a thread-id.
14696 (remote_target::process_stop_reply): Use the first non-exited
14697 thread if the target didn't pass a thread-id.
14698 * infrun.c (do_target_wait): Move call to
14699 switch_to_inferior_no_thread to ....
14700 (do_target_wait_1): ... here.
14701
a84bb2a0
JT
147022020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14703
14704 * debuginfod-support.c: Include defs.h first.
14705
658dadf0
TV
147062020-02-28 Tom de Vries <tdevries@suse.de>
14707
14708 * symfile.c (set_initial_language): Use default language for lookup.
14709
4ebe4877
SM
147102020-02-28 Simon Marchi <simon.marchi@efficios.com>
14711
14712 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14713 reader variable, pass `this` to read_cutu_die_from_dwo.
14714
e5da1139
AM
147152020-02-27 Aaron Merey <amerey@redhat.com>
14716
14717 * source.c (open_source_file): Check for nullptr when computing
14718 srcpath.
14719
317f7127
TT
147202020-02-27 Tom Tromey <tromey@adacore.com>
14721
14722 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14723 member.
14724 (dwarf2_add_field): Don't update nfields.
14725 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14726
3104d9ee
AB
147272020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14728
14729 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14730 abs.
14731
b83470bf
TT
147322020-02-26 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14735 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14736 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14737 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14738 per_cu_data.
14739
edfe0a0c
TT
147402020-02-26 Tom Tromey <tom@tromey.com>
14741
14742 * dwarf2/index-write.c (psym_index_map): Change type.
14743 (add_address_entry_worker, write_one_signatured_type)
14744 (recursively_count_psymbols, recursively_write_psymbols)
14745 (class debug_names, psyms_seen_size, write_gdbindex)
14746 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14747
0d79cdc4
AM
147482020-02-26 Aaron Merey <amerey@redhat.com>
14749
14750 * Makefile.in: Handle optional debuginfod support.
14751 * NEWS: Update.
14752 * README: Add --with-debuginfod summary.
14753 * config.in: Regenerate.
14754 * configure: Regenerate.
14755 * configure.ac: Handle optional debuginfod support.
14756 * debuginfod-support.c: debuginfod helper functions.
14757 * debuginfod-support.h: Ditto.
14758 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14759 summary.
14760 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14761 when a dwz file cannot be found.
14762 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14763 debuginfo file cannot be found.
14764 * source.c (open_source_file): Query debuginfod servers when a
14765 source file cannot be found.
14766 * top.c (print_gdb_configuration): Include
14767 --{with,without}-debuginfod in the output.
14768
b65ce565
JG
147692020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14770
14771 * thread.c (thr_try_catch_cmd): Print thread name.
14772
d4c9a4f8
SM
147732020-02-26 Simon Marchi <simon.marchi@efficios.com>
14774
14775 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14776 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14777 dwarf2_fetch_die_type_sect_off): Move to...
14778 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14780 dwarf2_fetch_die_type_sect_off): ... here.
14781 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14782 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14783 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14784
0dce4280
TV
147852020-02-26 Tom de Vries <tdevries@suse.de>
14786
14787 PR gdb/25603
14788 * symfile.c (set_initial_language): Exit-early if
14789 language_mode == language_mode_manual.
14790
450a1bfc
SM
147912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14792
14793 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14794 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14795 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14796
9e80cfa1
AB
147972020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14798
14799 * gdbtypes.c (create_array_type_with_stride): Handle negative
14800 array strides.
14801 * valarith.c (value_subscripted_rvalue): Likewise.
14802
09624f1f
LM
148032020-02-25 Luis Machado <luis.machado@linaro.org>
14804
14805 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14806
8cb5117c
SM
148072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14808
14809 * loc.h (dwarf2_get_die_type): Move to...
14810 * read.h (dwarf2_get_die_type): ... here.
14811 * read.c (dwarf2_get_die_type): Move doc to header.
14812
c325c44e
JB
148132020-02-25 Joel Brobecker <brobecker@adacore.com>
14814
14815 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14816 'gnulib/Makefile.in' to the list.
14817
4ac93832
TT
148182020-02-24 Tom Tromey <tom@tromey.com>
14819
14820 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14821 Remove.
14822 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14823 XOBNEWVEC.
14824
197400e8
TT
148252020-02-24 Tom Tromey <tom@tromey.com>
14826
14827 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14828 New method.
14829 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14830 (dw2_do_instantiate_symtab, dw2_get_file_names)
14831 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14832
76935768
TT
148332020-02-24 Tom Tromey <tom@tromey.com>
14834
14835 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14836 make_scoped_restore.
14837 (dwarf2_psymtab::read_symtab): Don't clear
14838 reading_partial_symbols.
14839
a88ef40d
TV
148402020-02-24 Tom de Vries <tdevries@suse.de>
14841
14842 PR gdb/25592
14843 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14844
c9af6521
TV
148452020-02-24 Tom de Vries <tdevries@suse.de>
14846
14847 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14848 commands layout next/prev/regs.
14849
5707a07a
TT
148502020-02-22 Tom Tromey <tom@tromey.com>
14851
14852 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14853 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14854
3b0fb49e
TT
148552020-02-22 Tom Tromey <tom@tromey.com>
14856
14857 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14858
283be8bf
TT
148592020-02-22 Tom Tromey <tom@tromey.com>
14860
14861 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14862 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14863 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14864 * tui/tui.c (_initialize_tui): Add usage text.
14865
ca793b96
TT
148662020-02-22 Tom Tromey <tom@tromey.com>
14867
14868 * tui/tui-win.c (tui_set_focus_command)
14869 (tui_set_win_height_command): Use error_no_arg.
14870 (_initialize_tui_win): Update help text.
14871 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14872
432b5c40
TT
148732020-02-22 Tom Tromey <tom@tromey.com>
14874
14875 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14876 * tui/tui-disasm.h (struct tui_disasm_window)
14877 <display_start_addr>: Declare.
14878 * tui/tui-source.h (struct tui_source_window)
14879 <display_start_addr>: Declare.
14880 * tui/tui-winsource.h (struct tui_source_window_base)
14881 <show_source_line, display_start_addr>: New methods.
14882 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14883 Rename and move to protected section.
14884 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14885 (tui_source_window_base::do_erase_source_content): Update.
14886 (tui_source_window_base::show_source_line): Now a method.
14887 (tui_source_window_base::show_source_content)
14888 (tui_source_window_base::tui_source_window_base)
14889 (tui_source_window_base::rerender)
14890 (tui_source_window_base::refill)
14891 (tui_source_window_base::do_scroll_horizontal)
14892 (tui_source_window_base::set_is_exec_point_at)
14893 (tui_source_window_base::update_breakpoint_info)
14894 (tui_source_window_base::update_exec_info): Update.
14895 * tui/tui-source.c (tui_source_window::set_contents)
14896 (tui_source_window::showing_source_p)
14897 (tui_source_window::do_scroll_vertical)
14898 (tui_source_window::location_matches_p)
14899 (tui_source_window::line_is_displayed): Update.
14900 (tui_source_window::display_start_addr): New method.
14901 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14902 (tui_disasm_window::do_scroll_vertical)
14903 (tui_disasm_window::location_matches_p): Update.
14904 (tui_disasm_window::display_start_addr): New method.
14905
01b1af32
TT
149062020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * NEWS: Add entry for gdb.register_window_type.
14909 * tui/tui-layout.h (window_factory): New typedef.
14910 (tui_register_window): Declare.
14911 * tui/tui-layout.c (saved_tui_windows): New global.
14912 (tui_apply_current_layout): Use it.
14913 (tui_register_window): New function.
14914 * python/python.c (do_start_initialization): Call
14915 gdbpy_initialize_tui.
14916 (python_GdbMethods): Add "register_window_type" function.
14917 * python/python-internal.h (gdbpy_register_tui_window)
14918 (gdbpy_initialize_tui): Declare.
14919 * python/py-tui.c: New file.
14920 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14921
fc96d20b
TT
149222020-02-22 Tom Tromey <tom@tromey.com>
14923
14924 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14925
935c78c0
TT
149262020-02-22 Tom Tromey <tom@tromey.com>
14927
14928 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14929 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14930 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14931 (tui_set_win_focus_to): Move from tui-win.c.
14932
0240c8f1
TT
149332020-02-22 Tom Tromey <tom@tromey.com>
14934
14935 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14936 functions.
14937 (known_window_types): New global.
14938 (tui_get_window_by_name): Reimplement.
14939 (initialize_known_windows): New function.
14940 (validate_window_name): Rewrite.
14941 (_initialize_tui_layout): Call initialize_known_windows.
14942
fdb01f0c
TT
149432020-02-22 Tom Tromey <tom@tromey.com>
14944
14945 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14946 Remove constants.
14947 * tui/tui-winsource.h (struct tui_source_window_base)
14948 <tui_source_window_base>: Remove parameter.
14949 * tui/tui-winsource.c
14950 (tui_source_window_base::tui_source_window_base): Remove
14951 parameter.
14952 (tui_source_window_base::refill): Update.
14953 * tui/tui-stack.h (struct tui_locator_window)
14954 <tui_locator_window>: Update.
14955 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14956 Default the constructor.
14957 * tui/tui-regs.h (struct tui_data_item_window)
14958 <tui_data_item_window>: Default the constructor.
14959 (struct tui_data_window) <tui_data_window>: Likewise.
14960 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14961 Default the constructor.
14962 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14963 Default the constructor.
14964 <type>: Remove.
14965 (struct tui_win_info) <tui_win_info>: Default the constructor.
14966 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14967 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14968 Default the constructor.
14969
865a5aec
TT
149702020-02-22 Tom Tromey <tom@tromey.com>
14971
14972 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14973 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14974 * tui/tui-win.c (tui_resize_all): Don't call
14975 tui_delete_invisible_windows.
14976 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14977 done.
14978 (tui_set_layout): Update.
14979 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14980 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14981 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14982
e098d18c
TT
149832020-02-22 Tom Tromey <tom@tromey.com>
14984
14985 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14986 correctly.
14987
eb9c8874
TT
149882020-02-22 Tom Tromey <tom@tromey.com>
14989
14990 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14991
7eed1a8e
TT
149922020-02-22 Tom Tromey <tom@tromey.com>
14993
14994 * tui/tui-winsource.h (struct tui_source_window_iterator)
14995 <inner_iterator>: New etytypedef.
14996 <tui_source_window_iterator>: Take "end" parameter.
14997 <tui_source_window_iterator>: Take iterator.
14998 <operator*, advance>: Update.
14999 <m_iter>: Change type.
15000 <m_end>: New field.
15001 (struct tui_source_windows) <begin, end>: Update.
15002 * tui/tui-layout.c (tui_windows): New global.
15003 (tui_apply_current_layout): Clear tui_windows.
15004 (tui_layout_window::apply): Update tui_windows.
15005 * tui/tui-data.h (tui_windows): Declare.
15006 (all_tui_windows): Now inline function.
15007 (class tui_window_iterator, struct all_tui_windows): Remove.
15008
7c043ba6
TT
150092020-02-22 Tom Tromey <tom@tromey.com>
15010
15011 PR tui/17850:
15012 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15013 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15014 "height" argument.
15015 (class tui_layout_window) <get_sizes>: Likewise.
15016 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15017 argument.
15018 <get_sizes>: Add "height" argument.
15019 <m_vertical>: New field.
15020 * tui/tui-layout.c (tui_layout_split::clone): Update.
15021 (tui_layout_split::get_sizes): Add "height" argument.
15022 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15023 (tui_new_layout_command): Parse "-horizontal".
15024 (_initialize_tui_layout): Update help string.
15025 (tui_layout_split::specification): Add "-horizontal" when needed.
15026 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15027 argument.
15028 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15029 New methods.
15030
6bc56648
TT
150312020-02-22 Tom Tromey <tom@tromey.com>
15032
15033 * tui/tui-layout.h (enum tui_adjust_result): New.
15034 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15035 (class tui_layout_window) <adjust_size>: Return
15036 tui_adjust_result. Rewrite.
15037 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15038 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15039
c22fef7e
TT
150402020-02-22 Tom Tromey <tom@tromey.com>
15041
15042 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15043 parameter and return types.
15044 (class tui_layout_base) <specification>: Add "depth".
15045 (class tui_layout_window) <specification>: Add "depth".
15046 (class tui_layout_split) <specification>: Add "depth".
15047 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15048 and return types.
15049 (tui_new_layout_command): Parse sub-layouts.
15050 (_initialize_tui_layout): Update help string.
15051 (tui_layout_window::specification): Add "depth".
15052 (add_layout_command): Update.
15053
ee325b61
TT
150542020-02-22 Tom Tromey <tom@tromey.com>
15055
15056 * NEWS: Add "tui new-layout" item.
15057 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15058 Add new-layout command to help text.
15059 (validate_window_name): New function.
15060 (tui_new_layout_command): New function.
15061 (_initialize_tui_layout): Register "new-layout".
15062 (tui_layout_window::specification): New method.
15063 (tui_layout_window::specification): New method.
15064 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15065 method.
15066 (class tui_layout_window) <specification>: New method.
15067 (class tui_layout_split) <specification>: New method.
15068
416eb92d
TT
150692020-02-22 Tom Tromey <tom@tromey.com>
15070
15071 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15072 * tui/tui-win.c (window_name_completer): Update comment.
15073 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15074 Declare method.
15075 (class tui_layout_window) <replace_window>: Likewise.
15076 (class tui_layout_split) <replace_window>: Likewise.
15077 (tui_set_layout): Don't declare.
15078 (tui_set_initial_layout): Declare function.
15079 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15080 (asm_regs_layout): New globals.
15081 (tui_current_layout, show_layout): Remove.
15082 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15083 (find_layout, tui_apply_layout): New function.
15084 (layout_completer): Remove.
15085 (tui_next_layout): Reimplement.
15086 (tui_next_layout_command): New function.
15087 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15088 (tui_regs_layout): Reimplement.
15089 (tui_regs_layout_command): New function.
15090 (extract_display_start_addr): Rewrite.
15091 (next_layout, prev_layout): Remove.
15092 (tui_layout_window::replace_window): New method.
15093 (tui_layout_split::replace_window): New method.
15094 (destroy_layout): New function.
15095 (layout_list): New global.
15096 (add_layout_command): New function.
15097 (initialize_layouts): Update.
15098 (tui_layout_command): New function.
15099 (_initialize_tui_layout): Install "layout" commands.
15100 * tui/tui-data.h (enum tui_layout_type): Remove.
15101 (tui_current_layout): Don't declare.
15102
0dbc2fc7
TT
151032020-02-22 Tom Tromey <tom@tromey.com>
15104
15105 * tui/tui-regs.c (tui_reg_layout): Remove.
15106 (tui_reg_command): Use tui_regs_layout.
15107 * tui/tui-layout.h (tui_reg_command): Declare.
15108 * tui/tui-layout.c (tui_reg_command): New function.
15109
5afe342e
TT
151102020-02-22 Tom Tromey <tom@tromey.com>
15111
15112 * tui/tui.c (tui_rl_delete_other_windows): Call
15113 tui_remove_some_windows.
15114 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15115 Declare method.
15116 (class tui_layout_window) <remove_windows>: New method.
15117 (class tui_layout_split) <remove_windows>: Declare.
15118 (tui_remove_some_windows): Declare.
15119 * tui/tui-layout.c (tui_remove_some_windows): New function.
15120 (tui_layout_split::remove_windows): New method.
15121
427326a8
TT
151222020-02-22 Tom Tromey <tom@tromey.com>
15123
15124 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15125 * tui/tui-layout.h (tui_next_layout): Declare.
15126 * tui/tui-layout.c (tui_next_layout): New function.
15127
3fe12b6d
TT
151282020-02-22 Tom Tromey <tom@tromey.com>
15129
15130 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15131 correct coordinates.
15132
59b8b5d2
TT
151332020-02-22 Tom Tromey <tom@tromey.com>
15134
15135 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15136 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15137 DATA_WIN case.
15138
2a3d458b
TT
151392020-02-22 Tom Tromey <tom@tromey.com>
15140
15141 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15142 TUI_DISASM_WIN, not tui_win_list.
15143
3f0cbb04
TT
151442020-02-22 Tom Tromey <tom@tromey.com>
15145
15146 * valprint.c (generic_val_print_enum_1)
15147 (val_print_type_code_flags): Style member names.
15148 * rust-lang.c (val_print_struct, rust_print_enum)
15149 (rust_print_struct_def, rust_internal_print_type): Style member
15150 names.
15151 * p-valprint.c (pascal_object_print_value_fields): Style member
15152 names. Only call fprintf_symbol_filtered for static members.
15153 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15154 * f-valprint.c (f_val_print): Style member names.
15155 * f-typeprint.c (f_type_print_base): Style member names.
15156 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15157 call fprintf_symbol_filtered for static members.
15158 (cp_print_class_member): Style member names.
15159 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15160 member names.
15161 * ada-valprint.c (ada_print_scalar): Style enum names.
15162 (ada_val_print_enum): Likewise.
15163 * ada-typeprint.c (print_enum_type): Style enum names.
15164
d4d947ae
TT
151652020-02-21 Tom Tromey <tom@tromey.com>
15166
15167 * psympriv.h (struct partial_symtab): Update comment.
15168
e94e944b
TT
151692020-02-21 Tom Tromey <tromey@adacore.com>
15170
15171 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15172 type is CORE_ADDR.
15173
1eb73179
TV
151742020-02-21 Tom de Vries <tdevries@suse.de>
15175
15176 PR gdb/25534
15177 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15178 if dependencies[i]->user != NULL.
15179
4f180d53
AT
151802020-02-21 Ali Tamur <tamur@google.com>
15181
15182 * dwarf2/read.c (dwarf2_name): Add null check.
15183
22b6cd70
TT
151842020-02-20 Tom Tromey <tom@tromey.com>
15185
15186 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15187 ">=", in binary search.
15188 (dwarf2_find_containing_comp_unit): New overload.
15189 (run_test): New self-test.
15190 (_initialize_dwarf2_read): Register new test.
15191
bd0cf5a6
NC
151922020-02-20 Nelson Chu <nelson.chu@sifive.com>
15193
15194 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15195 * riscv-tdep.h: Likewise.
15196 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15197 rv32-only CSR.
15198 * features/riscv/64bit-csr.xml: Regenerated.
15199
3f702acd
SDJ
152002020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15201 Tom Tromey <tom@tromey.com>
15202
15203 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15204 of 'fputc_unfiltered'.
15205 (putchar_unfiltered): Call 'fputc_unfiltered'.
15206 (fputc_unfiltered): Call 'fputs_unfiltered'.
15207
d13c7322
AB
152082020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15209
15210 * config.in: Regenerate.
15211 * configure: Regenerate.
15212 * configure.ac: Add --with-python-libdir option.
15213 * main.c: Use WITH_PYTHON_LIBDIR.
15214
869d8950
TT
152152020-02-19 Tom Tromey <tom@tromey.com>
15216
15217 * symtab.c (general_symbol_info::compute_and_set_names): Use
15218 obstack_strndup. Simplify call to symbol_set_demangled_name.
15219
298e9637
SM
152202020-02-19 Simon Marchi <simon.marchi@efficios.com>
15221
15222 * dwarf2/read.c (allocate_signatured_type_table,
15223 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15224 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15225 Remove objfile parameter, update all callers.
15226
08410482
DE
152272020-02-19 Doug Evans <dje@google.com>
15228
15229 PR rust/25535
15230 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15231 rust_enum_variant calculation.
15232
dfdeeca1
TT
152332020-02-19 Tom Tromey <tromey@adacore.com>
15234
15235 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15236
2ef5453b
TT
152372020-02-19 Tom Tromey <tromey@adacore.com>
15238
15239 * ada-lang.c (cache_symbol): Use obstack_strdup.
15240
9f1528a1
AB
152412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15242
15243 * configure: Regenerate.
15244
d3c22fa8
TT
152452020-02-19 Tom Tromey <tromey@adacore.com>
15246
15247 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15248 NULL check.
15249
bf84f706
MR
152502020-02-19 Maciej W. Rozycki <macro@wdc.com>
15251
15252 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15253
d1c9b20f
AB
152542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15255
15256 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15257 if GDBSERVER is not defined.
15258 (riscv_tdesc_cache): Likewise, also store const target_desc.
15259 (STATIC_IN_GDB): Define.
15260 (riscv_create_target_description): Update declaration with
15261 STATIC_IN_GDB.
15262 (riscv_lookup_target_description): New function, only define if
15263 GDBSERVER is not defined.
15264 * arch/riscv.h (riscv_create_target_description): Declare only
15265 when GDBSERVER is defined.
15266 (riscv_lookup_target_description): New declaration when GDBSERVER
15267 is not defined.
15268 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15269 (riscv_linux_read_features): ...this, and return
15270 riscv_gdbarch_features instead of target_desc.
15271 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15272 (riscv_linux_read_description): Rename to...
15273 (riscv_linux_read_features): ...this.
15274 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15275 Update to use riscv_gdbarch_features and
15276 riscv_lookup_target_description.
15277 * riscv-tdep.c (riscv_find_default_target_description): Use
15278 riscv_lookup_target_description instead of
15279 riscv_create_target_description.
15280
373d7ac0
SM
152812020-02-18 Simon Marchi <simon.marchi@efficios.com>
15282
15283 * valprint.c (generic_val_print_enum_1): When printing a flag
15284 enum with value 0 and there is no enumerator with value 0, print
15285 just "0" instead of "(unknown: 0x0)".
15286
b29a2df0
SM
152872020-02-18 Simon Marchi <simon.marchi@efficios.com>
15288
15289 * valprint.c (generic_val_print_enum_1): Print unknown part of
15290 flag enum in hex.
15291
6740f0cc
SM
152922020-02-18 Simon Marchi <simon.marchi@efficios.com>
15293
15294 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15295 flag enums to contain duplicate enumerators.
15296 * valprint.c (generic_val_print_enum_1): Update comment.
15297
edd45eb0
SM
152982020-02-18 Simon Marchi <simon.marchi@efficios.com>
15299
15300 * dwarf2/read.c: Include "count-one-bits.h".
15301 (update_enumeration_type_from_children): If an enumerator has
15302 multiple bits set, don't treat the enumeration as a "flag enum".
15303 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15304 of flag enums have 0 or 1 bit set.
15305
6d0cf446
BE
153062020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15307
15308 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15309 conversion.
15310 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15311 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15312 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15313 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15314 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15315
7001c1b7
SM
153162020-02-18 Simon Marchi <simon.marchi@efficios.com>
15317
15318 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15319
fdb61c6c
SM
153202020-02-14 Simon Marchi <simon.marchi@efficios.com>
15321
15322 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15323 displaced_step_closure_up.
15324 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15325 (struct displaced_step_closure_up):
15326 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15327 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15328 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15329 Likewise.
15330 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15331 * gdbarch.c, gdbarch.h: Re-generate.
15332 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15333 displaced_step_closure_up.
15334 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15335 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15336 * infrun.h (displaced_step_closure_up): New type alias.
15337 (struct displaced_step_inferior_state) <step_closure>: Change
15338 type to displaced_step_closure_up.
15339 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15340 displaced_step_closure_up.
15341 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15342
a4a38eb4
TT
153432020-02-14 Tom Tromey <tom@tromey.com>
15344
15345 * minidebug.c (gnu_debug_key): New global.
15346 (find_separate_debug_file_in_section): Use it.
15347
e8217e61
SM
153482020-02-14 Simon Marchi <simon.marchi@efficios.com>
15349
15350 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15351 std::unique_ptr.
15352 * gdbarch.c: Re-generate.
15353 * gdbarch.h: Re-generate.
15354 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15355 change.
15356 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15357 type to std::unique_ptr.
15358 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15359 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15360 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15361 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15362 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15363 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15364 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15365 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15366 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15367
d8d83535
SM
153682020-02-14 Simon Marchi <simon.marchi@efficios.com>
15369
15370 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15371 std::unique_ptr.
15372 (displaced_step_clear): Rename to...
15373 (displaced_step_reset): ... this. Just call displaced->reset ().
15374 (displaced_step_clear_cleanup): Rename to...
15375 (displaced_step_reset_cleanup): ... this.
15376 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15377 (displaced_step_fixup): Likewise.
15378 (resume_1): Likewise.
15379 (handle_inferior_event): Restore child's memory before calling
15380 displaced_step_fixup on the parent.
15381 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15382 to std::unique_ptr.
15383 <step_closure>: Change type to std::unique_ptr.
15384
5f661e03
SM
153852020-02-14 Simon Marchi <simon.marchi@efficios.com>
15386
15387 * arm-tdep.c: Include count-one-bits.h.
15388 (cleanup_block_store_pc): Use count_one_bits.
15389 (cleanup_block_load_pc): Use count_one_bits.
15390 (arm_copy_block_xfer): Use count_one_bits.
15391 (thumb2_copy_block_xfer): Use count_one_bits.
15392 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15393 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15394 (thumb_get_next_pcs_raw): Use count_one_bits.
15395 (arm_get_next_pcs_raw): Use count_one_bits_l.
15396 * arch/arm.c (bitcount): Remove.
15397 * arch/arm.h (bitcount): Remove.
15398
8084e579
TT
153992020-02-14 Tom Tromey <tromey@adacore.com>
15400
15401 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15402 Update.
15403 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15404 * dwarf2/loc.c (call_site_find_chain_1): Return
15405 unique_xmalloc_ptr.
15406 (call_site_find_chain): Likewise.
15407
258bf0ee
RB
154082020-02-14 Richard Biener <rguenther@suse.de>
15409
15410 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15411 on expression with division operators.
15412
f98a8458
AKS
154132020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15414
15415 * MAINTAINERS (Write After Approval): Adding myself.
15416
d1437c0e
TT
154172020-02-12 Tom Tromey <tom@tromey.com>
15418
15419 * event-loop.c (event_data, gdb_event, event_handler_func):
15420 Remove.
15421
3d4560f7
TT
154222020-02-12 Tom Tromey <tom@tromey.com>
15423
15424 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15425 (dwarf2_frame_objfile_data): Add comment.
15426 (find_comp_unit, set_comp_unit): New functions.
15427 (dwarf2_frame_find_fde): Use find_comp_unit.
15428 (dwarf2_build_frame_info): Use set_comp_unit.
15429
21982304
TT
154302020-02-12 Tom Tromey <tom@tromey.com>
15431
15432 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15433 (comp_unit): Don't initialize objfile.
15434 (execute_cfa_program): Add text_offset parameter.
15435 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15436 (dwarf2_frame_cache): Update.
15437 (dwarf2_build_frame_info): Don't set "objfile" member.
15438
4debb237
TT
154392020-02-12 Tom Tromey <tom@tromey.com>
15440
15441 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15442 (decode_frame_entry): Likewise.
15443 (dwarf2_build_frame_info): Update.
15444
0d404d44
TT
154452020-02-12 Tom Tromey <tom@tromey.com>
15446
15447 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15448 (decode_frame_entry_1): Use the comp_unit obstack.
15449
a7a3ae5c
TT
154502020-02-12 Tom Tromey <tom@tromey.com>
15451
15452 * dwarf2/frame.c (struct comp_unit): Add initializers and
15453 constructor.
15454 (dwarf2_frame_objfile_data): Store a comp_unit.
15455 (dwarf2_frame_find_fde): Update.
15456 (dwarf2_build_frame_info): Use "new".
15457
a9d65418
TT
154582020-02-12 Tom Tromey <tom@tromey.com>
15459
15460 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15461 (dwarf2_fde_table): Typedef for std::vector.
15462 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15463 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15464 (decode_frame_entry): Update.
15465 (dwarf2_build_frame_info): Use "new".
15466
7559c217
CB
154672020-02-12 Christian Biesinger <cbiesinger@google.com>
15468
15469 * arm-tdep.c (arm_gdbarch_init): Update.
15470 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15471 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15472 have_neon, is_m>: Change to bool.
15473
aeefc73c
CB
154742020-02-12 Christian Biesinger <cbiesinger@google.com>
15475
15476 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15477
d27b8e5f
TT
154782020-02-12 Tom Tromey <tom@tromey.com>
15479
15480 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15481
cd5900f3
HD
154822020-02-12 Hannes Domani <ssbssa@yahoo.de>
15483
15484 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15485 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15486
f056b22b
TT
154872020-02-11 Tom Tromey <tom@tromey.com>
15488
15489 * psymtab.h: Update comment.
15490
f92ff6b5
TT
154912020-02-11 Tom Tromey <tom@tromey.com>
15492
15493 * gdb_obstack.h (struct auto_obstack): Use
15494 DISABLE_COPY_AND_ASSIGN.
15495
3fd6912b
TT
154962020-02-11 Tom Tromey <tom@tromey.com>
15497
15498 * dwarf2/frame.h (struct objfile): Don't forward declare.
15499
69ed9b74
CB
155002020-02-11 Christian Biesinger <cbiesinger@google.com>
15501
15502 * cris-tdep.c (cris_supply_gregset): Change signature to match
15503 what struct regset expects.
15504 (cris_regset): New struct.
15505 (fetch_core_registers): Remove.
15506 (cris_iterate_over_regset_sections): New function.
15507 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15508 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15509
bda874f6
CB
155102020-02-11 Christian Biesinger <cbiesinger@google.com>
15511
15512 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15513 registers.
15514
754e1564
CB
155152020-02-11 Christian Biesinger <cbiesinger@google.com>
15516
15517 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15518
8ddd8e0e
SM
155192020-02-11 Simon Marchi <simon.marchi@efficios.com>
15520
15521 * configure: Re-generate.
15522
898e7f60
SM
155232020-02-11 Simon Marchi <simon.marchi@efficios.com>
15524
15525 * configure: Re-generate.
15526
58df732b
SM
155272020-02-11 Simon Marchi <simon.marchi@efficios.com>
15528
15529 * acinclude: Update warning.m4 path.
15530 * warning.m4: Move to gdbsupport.
15531
da5bd37e
TT
155322020-02-11 Tom Tromey <tromey@adacore.com>
15533
15534 * remote.c (remote_console_output): Update.
15535 * printcmd.c (printf_command): Update.
15536 * event-loop.c (gdb_wait_for_event): Update.
15537 * linux-nat.c (sigchld_handler): Update.
15538 * remote-sim.c (gdb_os_write_stdout): Update.
15539 (gdb_os_flush_stdout): Update.
15540 (gdb_os_flush_stderr): Update.
15541 (gdb_os_write_stderr): Update.
15542 * exceptions.c (print_exception): Update.
15543 * remote-fileio.c (remote_fileio_func_read): Update.
15544 (remote_fileio_func_write): Update.
15545 * tui/tui.c (tui_enable): Update.
15546 * tui/tui-interp.c (tui_interp::init): Update.
15547 * utils.c (init_page_info): Update.
15548 (putchar_unfiltered, fputc_unfiltered): Update.
15549 (gdb_flush): Update.
15550 (emit_style_escape): Update.
15551 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15552 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15553 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15554 (stderr_file::write): Update.
15555 (stderr_file::puts): Update.
15556 * ui-file.h (ui_file_isatty, ui_file_write)
15557 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15558 (ui_file_puts): Don't declare.
15559
85f0dd3c
TV
155602020-02-10 Tom de Vries <tdevries@suse.de>
15561
15562 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15563 sentinel to char *.
15564
2e927613
TV
155652020-02-09 Tom de Vries <tdevries@suse.de>
15566
15567 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15568 filename if it matches "<artificial>".
15569
6bafc845
HD
155702020-02-09 Hannes Domani <ssbssa@yahoo.de>
15571
15572 * windows-tdep.c (struct enum_value_name): New struct.
15573 (create_enum): New function.
15574 (windows_get_siginfo_type): Create and use enum types.
15575
7928d571
HD
155762020-02-09 Hannes Domani <ssbssa@yahoo.de>
15577
15578 * NEWS: Mention $_siginfo support for Windows.
15579 * windows-nat.c (handle_exception): Set siginfo_er.
15580 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15581 (windows_xfer_siginfo): New function.
15582 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15583 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15584 (init_windows_gdbarch_data): New function.
15585 (get_windows_gdbarch_data): New function.
15586 (windows_get_siginfo_type): New function.
15587 (windows_init_abi): Register windows_get_siginfo_type.
15588 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15589
6751ebae
TT
155902020-02-08 Tom Tromey <tom@tromey.com>
15591
15592 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15593 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15594 <keep>: Declare method.
15595 <m_keep>: Remove member.
15596 <~cutu_reader>: Remove.
15597 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15598 (cutu_reader::cutu_reader): Update.
15599 (cutu_reader::keep): Rename from ~cutu_reader.
15600 (process_psymtab_comp_unit, build_type_psymtabs_1)
15601 (process_skeletonless_type_unit, load_partial_comp_unit)
15602 (load_full_comp_unit, dwarf2_read_addr_index)
15603 (read_signatured_type): Update.
15604
135f5437
TT
156052020-02-08 Tom Tromey <tom@tromey.com>
15606
15607 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15608 "want_partial_unit" parameter.
15609 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15610 Inline check for DW_TAG_partial_unit.
15611 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15612
9f66ff1c
TT
156132020-02-08 Tom Tromey <tom@tromey.com>
15614
15615 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15616 read.c.
15617 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15618 read.c.
15619
c8a7a66f
TT
156202020-02-08 Tom Tromey <tom@tromey.com>
15621
15622 * dwarf2/read.c (read_address): Move to comp-unit.c.
15623 (dwarf2_rnglists_process, dwarf2_ranges_process)
15624 (read_attribute_value, dwarf_decode_lines_1)
15625 (var_decode_location, decode_locdesc): Update.
15626 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15627 read.c. Remove "cu" parameter.
15628 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15629 method.
15630
8266302d
TT
156312020-02-08 Tom Tromey <tom@tromey.com>
15632
15633 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15634 (read_indirect_line_string): Update.
15635 * dwarf2/comp-unit.c (read_offset): Remove.
15636 (read_comp_unit_head): Update.
15637 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15638 method.
15639 (read_offset): Don't declare.
15640
4057dfde
TT
156412020-02-08 Tom Tromey <tom@tromey.com>
15642
15643 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15644 * dwarf2/read.c (struct comp_unit_head): Move to
15645 dwarf2/comp-unit.h.
15646 (enum class rcuh_kind): Move to comp-unit.h.
15647 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15648 (read_comp_unit_head, error_check_comp_unit_head)
15649 (read_and_check_comp_unit_head): Move to comp-unit.c.
15650 (read_offset, dwarf_unit_type_name): Likewise.
15651 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15652 (cutu_reader::cutu_reader, read_call_site_scope)
15653 (find_partial_die, follow_die_offset): Update.
15654 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15655
24aa364d
TT
156562020-02-08 Tom Tromey <tom@tromey.com>
15657
15658 * dwarf2/read.c (read_offset_1): Move to leb.c.
15659 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15660 (dwarf_decode_macro_bytes): Update.
15661 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15662 * dwarf2/leb.h (read_offset): Declare.
15663
2c7d5afc
TT
156642020-02-08 Tom Tromey <tom@tromey.com>
15665
15666 * dwarf2/read.c (dwarf2_section_size): Remove.
15667 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15668 Update.
15669 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15670
4075cb26
TT
156712020-02-08 Tom Tromey <tom@tromey.com>
15672
15673 * dwarf2/read.c (read_initial_length): Move to leb.c.
15674 * dwarf2/leb.h (read_initial_length): Declare.
15675 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15676 handle_nonstd parameter.
15677 * dwarf2/frame.c (read_initial_length): Remove.
15678 (decode_frame_entry_1): Update.
15679
09ba997f
TT
156802020-02-08 Tom Tromey <tom@tromey.com>
15681
15682 * dwarf2/loc.c (dwarf2_find_location_expression)
15683 (dwarf_evaluate_loc_desc::get_tls_address)
15684 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15685 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15686 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15687 (dwarf2_compile_property_to_c)
15688 (dwarf2_loc_desc_get_symbol_read_needs)
15689 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15690 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15691 (loclist_describe_location, loclist_tracepoint_var_ref)
15692 (loclist_generate_c_location): Update.
15693 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15694 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15695 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15696 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15697 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15698 (dwarf2_per_cu_data::addr_size)
15699 (dwarf2_per_cu_data::ref_addr_size)
15700 (dwarf2_per_cu_data::text_offset)
15701 (dwarf2_per_cu_data::addr_type): Now methods.
15702 (per_cu_header_read_in): Make per_cu "const".
15703 (dwarf2_version): Remove.
15704 (dwarf2_per_cu_data::int_type): Now a method.
15705 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15706 (set_die_type, read_array_type, read_subrange_index_type)
15707 (read_tag_string_type, read_subrange_type): Update.
15708 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15709 offset_size, ref_addr_size, text_offset, addr_type, version,
15710 objfile, int_type, addr_sized_int_type>: Declare methods.
15711
96c738c0
TT
157122020-02-08 Tom Tromey <tom@tromey.com>
15713
15714 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15715 Move earlier.
15716
8fdd972c
TT
157172020-02-08 Tom Tromey <tom@tromey.com>
15718
15719 * dwarf2/read.h (dwarf_line_debug): Declare.
15720 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15721 * dwarf2/read.c: Move line_header code to new files.
15722 (dwarf_line_debug): No longer static.
15723 * dwarf2/line-header.c: New file.
15724 * dwarf2/line-header.h: New file.
15725
03075812
TT
157262020-02-08 Tom Tromey <tom@tromey.com>
15727
15728 * dwarf2/read.c (struct line_header) <file_full_name,
15729 file_file_name>: Return unique_xmalloc_ptr.
15730 (line_header::file_file_name): Update.
15731 (line_header::file_full_name): Update.
15732 (dw2_get_file_names_reader): Update.
15733 (macro_start_file): Update.
15734
bb822404
TT
157352020-02-08 Tom Tromey <tom@tromey.com>
15736
15737 * dwarf2/read.c (struct line_header) <file_full_name,
15738 file_file_name>: Declare methods.
15739 (dw2_get_file_names_reader): Update.
15740 (file_file_name): Now a method.
15741 (file_full_name): Likewise.
15742 (macro_start_file): Update.
15743
009b64fc
TT
157442020-02-08 Tom Tromey <tom@tromey.com>
15745
15746 * dwarf2/read.c (dwarf_always_disassemble)
15747 (show_dwarf_always_disassemble): Move to loc.c.
15748 (_initialize_dwarf2_read): Move "always-disassemble" registration
15749 to loc.c.
15750 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15751 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15752 static.
15753 (show_dwarf_always_disassemble): Move from read.c.
15754 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15755
5895093f
TT
157562020-02-08 Tom Tromey <tom@tromey.com>
15757
15758 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15759 (create_quick_file_names_table): Return htab_up.
15760 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15761 Update.
15762 * dwarf2/read.h (struct dwarf2_per_objfile)
15763 <quick_file_names_table>: Now htab_up.
15764
b3b32279
TT
157652020-02-08 Tom Tromey <tom@tromey.com>
15766
15767 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15768
1d33d811
TT
157692020-02-08 Tom Tromey <tom@tromey.com>
15770
15771 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15772 Rewrite.
15773 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15774 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15775 (abbrev_table::abbrev_table): No longer inline.
15776 (ABBREV_HASH_SIZE): Remove.
15777 (abbrev_table::m_abbrevs): Now an htab_up.
15778
86de1d91
TT
157792020-02-08 Tom Tromey <tom@tromey.com>
15780
15781 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15782 (cutu_reader): Update.
15783 (build_type_psymtabs_1): Update.
15784 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15785 (abbrev_table::alloc_abbrev): Update.
15786 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15787 (abbrev_table::read): New static method, renamed from
15788 abbrev_table_read_table.
15789 (abbrev_table::alloc_abbrev)
15790 (abbrev_table::add_abbrev): Now private.
15791 (abbrev_table::abbrev_table): Now private.
15792 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15793
0335378b
TT
157942020-02-08 Tom Tromey <tom@tromey.com>
15795
15796 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15797 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15798 htab_up.
15799
48b490f2
TT
158002020-02-08 Tom Tromey <tom@tromey.com>
15801
15802 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15803 htab_up.
15804 (lookup_dwo_unit_in_dwp): Update.
15805 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15806 on obstack.
15807
bc68fb19
TT
158082020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15811 obstack.
15812
d15acc42
TT
158132020-02-08 Tom Tromey <tom@tromey.com>
15814
15815 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15816 line_header_hash.
15817 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15818 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15819 Change type to htab_up.
15820
eaa5fa8b
TT
158212020-02-08 Tom Tromey <tom@tromey.com>
15822
15823 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15824 htab_up. Don't allocate on obstack.
15825 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15826 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15827 Change type to htab_up.
15828
b0b6a987
TT
158292020-02-08 Tom Tromey <tom@tromey.com>
15830
15831 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15832 Change type to htab_up.
15833 * dwarf2/read.c (create_signatured_type_table_from_index)
15834 (create_signatured_type_table_from_debug_names)
15835 (create_all_type_units, add_type_unit)
15836 (lookup_dwo_signatured_type, lookup_signatured_type)
15837 (process_skeletonless_type_unit): Update.
15838 (create_debug_type_hash_table, create_debug_types_hash_table):
15839 Change type of types_htab.
15840 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15841 htab_up. Don't allocate on obstack.
15842 (create_cus_hash_table): Change type of cus_htab parameter.
15843 (struct dwo_file) <cus, tus>: Now htab_up.
15844 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15845 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15846 (queue_and_load_all_dwo_tus): Update.
15847 * dwarf2/index-write.c (write_gdbindex): Update.
15848 (write_debug_names): Update.
15849
39856def
TT
158502020-02-08 Tom Tromey <tom@tromey.com>
15851
15852 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15853 dwarf2/read.c. Remove "next" member. Add constructor ntad
15854 destructor.
15855 (struct dwarf2_per_objfile) <queue>: New member.
15856 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15857 dwarf2/read.h.
15858 (dwarf2_queue, dwarf2_queue_tail): Remove.
15859 (class dwarf2_queue_guard): Add parameter to constructor. Use
15860 DISABLE_COPY_AND_ASSIGN.
15861 <m_per_objfile>: New member.
15862 <~dwarf2_queue_guard>: Rewrite.
15863 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15864 Update.
15865 (~dwarf2_queue_item): New.
15866
3e225074
TT
158672020-02-08 Tom Tromey <tom@tromey.com>
15868
15869 * dwarf2/read.c (struct die_info) <has_children>: New member.
15870 (dw2_get_file_names_reader): Remove has_children.
15871 (dw2_get_file_names): Update.
15872 (read_cutu_die_from_dwo): Remove has_children.
15873 (cutu_reader::init_tu_and_read_dwo_dies)
15874 (cutu_reader::cutu_reader): Update.
15875 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15876 Remove has_children.
15877 (build_type_psymtabs_1, process_skeletonless_type_unit)
15878 (load_partial_comp_unit, load_full_comp_unit): Update.
15879 (create_dwo_cu_reader): Remove has_children.
15880 (create_cus_hash_table, read_die_and_children): Update.
15881 (read_full_die_1,read_full_die): Remove has_children.
15882 (read_signatured_type): Update.
15883 (class cutu_reader) <has_children>: Remove.
15884
82ca8957
TT
158852020-02-08 Tom Tromey <tom@tromey.com>
15886
15887 * dwarf2/expr.c: Rename from dwarf2expr.c.
15888 * dwarf2/expr.h: Rename from dwarf2expr.h.
15889 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15890 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15891 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15892 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15893 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15894 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15895 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15896 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15897 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15898 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15899 * dwarf2/loc.c: Rename from dwarf2loc.c.
15900 * dwarf2/loc.h: Rename from dwarf2loc.h.
15901 * dwarf2/read.c: Rename from dwarf2read.c.
15902 * dwarf2/read.h: Rename from dwarf2read.h.
15903 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15904 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15905 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15906 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15907 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15908 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15909 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15910 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15911 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15912 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15913 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15914 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15915 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15916 Update.
15917 * Makefile.in (COMMON_SFILES): Update.
15918 (HFILES_NO_SRCDIR): Update.
15919
9e35d499
TT
159202020-02-08 Tom Tromey <tom@tromey.com>
15921
15922 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15923 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15924
1eba2311
TT
159252020-02-08 Tom Tromey <tom@tromey.com>
15926
15927 * dwarf2read.h (struct die_info): Don't declare.
15928
e41c2da2
TT
159292020-02-08 Tom Tromey <tom@tromey.com>
15930
15931 * dwarf2read.h (die_info_ptr): Remove typedef.
15932
4fc6c0d5
TT
159332020-02-08 Tom Tromey <tom@tromey.com>
15934
15935 * dwarf2read.c (read_call_site_scope)
15936 (handle_data_member_location, dwarf2_add_member_fn)
15937 (mark_common_block_symbol_computed, read_common_block)
15938 (attr_to_dynamic_prop, partial_die_info::read)
15939 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15940 (dwarf2_symbol_mark_computed, set_die_type): Update.
15941 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15942 method.
15943 (attr_form_is_block): Don't declare.
15944 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15945
cd6c91b4
TT
159462020-02-08 Tom Tromey <tom@tromey.com>
15947
15948 * dwarf2read.c (dwarf2_find_base_address, )
15949 (read_call_site_scope, rust_containing_type)
15950 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15951 (handle_data_member_location, dwarf2_add_member_fn)
15952 (get_alignment, read_structure_type, process_structure_scope)
15953 (mark_common_block_symbol_computed, read_common_block)
15954 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15955 (partial_die_info::read, read_attribute_value, new_symbol)
15956 (lookup_die_type, dwarf2_get_ref_die_offset)
15957 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15958 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15959 (dwarf2_symbol_mark_computed): Update.
15960 * dwarf2/attribute.h (struct attribute) <value_as_address,
15961 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15962 methods.
15963 (value_as_address, attr_form_is_section_offset)
15964 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15965 * dwarf2/attribute.c (attribute::value_as_address)
15966 (attribute::form_is_section_offset, attribute::form_is_constant)
15967 (attribute::form_is_ref): Now methods.
15968
162dce55
TT
159692020-02-08 Tom Tromey <tom@tromey.com>
15970
15971 * dwarf2read.c (struct attribute, DW_STRING)
15972 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15973 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15974 (attr_form_is_block, attr_form_is_section_offset)
15975 (attr_form_is_constant, attr_form_is_ref): Move.
15976 * dwarf2/attribute.h: New file.
15977 * dwarf2/attribute.c: New file, from dwarf2read.c.
15978 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15979
3054dd54
TT
159802020-02-08 Tom Tromey <tom@tromey.com>
15981
15982 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15983 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15984 Move.
15985 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15986 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15987 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15988 abbrev.c.
15989 * dwarf2/abbrev.h: New file.
15990 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15991 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15992
96b79293
TT
159932020-02-08 Tom Tromey <tom@tromey.com>
15994
15995 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15996 (dwarf2_section_size, dwarf2_get_section_info)
15997 (create_signatured_type_table_from_debug_names)
15998 (create_addrmap_from_aranges, read_debug_names_from_section)
15999 (get_gdb_index_contents_from_section, read_comp_unit_head)
16000 (error_check_comp_unit_head, read_abbrev_offset)
16001 (create_debug_type_hash_table, init_cu_die_reader)
16002 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16003 (read_comp_units_from_section, create_cus_hash_table)
16004 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16005 (create_dwp_v2_section, dwarf2_rnglists_process)
16006 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16007 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16008 (read_indirect_string_from_dwz, read_addr_index_1)
16009 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16010 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16011 (fill_in_loclist_baton): Update.
16012 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16013 get_containing_section, get_bfd_owner, get_bfd_section,
16014 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16015 (dwarf2_read_section, get_section_name, get_section_file_name)
16016 (get_containing_section, get_section_bfd_owner)
16017 (get_section_bfd_section, get_section_name, get_section_file_name)
16018 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16019 declare.
16020 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16021 (dwarf2_section_info::get_bfd_owner)
16022 (dwarf2_section_info::get_bfd_section)
16023 (dwarf2_section_info::get_name)
16024 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16025 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16026 (dwarf2_section_info::read): Now methods.
16027 * dwarf-index-write.c (class debug_names): Update.
16028
2c86cff9
TT
160292020-02-08 Tom Tromey <tom@tromey.com>
16030
16031 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16032 Move to dwarf2/section.h.
16033 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16034 (get_section_bfd_section, get_section_name)
16035 (get_section_file_name, get_section_id, get_section_flags)
16036 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16037 dwarf2/section.c.
16038 * dwarf2/section.h: New file.
16039 * dwarf2/section.c: New file, from dwarf2read.c.
16040 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16041
f4382c45
TT
160422020-02-08 Tom Tromey <tom@tromey.com>
16043
16044 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16045 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16046 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16047 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16048 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16049 * dwarf2/leb.h: New file, from dwarf2read.c.
16050 * dwarf2/leb.c: New file, from dwarf2read.c.
16051 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16052 Remove.
16053 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16054 (COMMON_SFILES): Add dwarf2/leb.c.
16055
01840b7a
JB
160562020-02-08 Joel Brobecker <brobecker@adacore.com>
16057
16058 GDB 9.1 released.
16059
dfcb27e4
IB
160602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16061
16062 PR gdb/25190:
aac66a4c
SM
16063 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16064 * gdb/remote.c (remote_console_output): Update.
16065 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16066 (ui_file_puts): ...this.
16067 * gdb/ui-file.h (ui_file_puts): Add declaration.
16068 * gdb/utils.c (emit_style_escape): Update.
16069 (flush_wrap_buffer): Update.
16070 (fputs_maybe_filtered): Update.
16071 (fputs_unfiltered): Add function.
dfcb27e4 16072
faa17681
IB
160732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16074
aac66a4c
SM
16075 * gdb/event-loop.c (gdb_wait_for_event): Update.
16076 * gdb/printcmd.c (printf_command): Update.
16077 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16078 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16079 (gdb_os_flush_stderr): Update.
16080 * gdb/remote.c (remote_console_output): Update.
16081 * gdb/ui-file.c (gdb_flush): Rename to...
16082 (ui_file_flush): ...this.
16083 (stderr_file::write): Update.
16084 (stderr_file::puts): Update.
16085 * gdb/ui-file.h (gdb_flush): Rename to...
16086 (ui_file_flush): ...this.
16087 * gdb/utils.c (gdb_flush): Add function.
16088 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16089
5abbbe1d
TT
160902020-02-07 Tom Tromey <tromey@adacore.com>
16091
16092 PR breakpoints/24915:
16093 * source.c (find_and_open_source): Do not check basenames_may_differ.
16094
919adfe8
TT
160952020-02-07 Tom Tromey <tom@tromey.com>
16096
16097 * README: Update gdbserver documentation.
16098 * gdbserver: Move to top level.
16099 * configure.tgt (build_gdbserver): Remove.
16100 * configure.ac: Remove --enable-gdbserver.
16101 * configure: Rebuild.
16102 * Makefile.in (distclean): Don't mention gdbserver.
16103
1d5d29e7
SV
161042020-02-06 Shahab Vahedi <shahab@synopsys.com>
16105
16106 * source-cache.c (source_cache::ensure): Surround
16107 get_plain_source_lines with a try/catch.
16108 (source_cache::get_line_charpos): Get rid of try/catch
16109 and only check for the return value of "ensure".
16110 * tui/tui-source.c (tui_source_window::set_contents):
16111 Simplify "nlines" calculation.
16112
6eb1129c
SV
161132020-02-06 Shahab Vahedi <shahab@synopsys.com>
16114
16115 * MAINTAINERS (Write After Approval): Add myself.
16116
c6a42d11
CB
161172020-02-05 Christian Biesinger <cbiesinger@google.com>
16118
16119 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16120 function call.
16121
c8ecdda6
CB
161222020-02-05 Christian Biesinger <cbiesinger@google.com>
16123
16124 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16125
f6480e70
MR
161262020-02-05 Maciej W. Rozycki <macro@wdc.com>
16127
16128 * nat/riscv-linux-tdesc.h: New file.
16129 * nat/riscv-linux-tdesc.c: New file, taking code from...
16130 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16131 ... here.
16132 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16133 NATDEPFILES.
16134
dcc9fbc6
AB
161352020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16136
16137 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16138 we don't set the fake simulator ptid to the null_ptid.
16139
719546c4
SM
161402020-02-03 Simon Marchi <simon.marchi@efficios.com>
16141
16142 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16143 * gdbthread.h (class thread_info) <resumed>: Likewise.
16144 * infrun.c (resume_1): Likewise.
16145 (proceed): Likewise.
16146 (infrun_thread_stop_requested): Likewise.
16147 (stop_all_threads): Likewise.
16148 (handle_inferior_event): Likewise.
16149 (restart_threads): Likewise.
16150 (finish_step_over): Likewise.
16151 (keep_going_stepped_thread): Likewise.
16152 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16153 (linux_handle_extended_wait): Likewise.
16154 * record-btrace.c (get_thread_current_frame_id): Likewise.
16155 * record-full.c (record_full_wait_1): Likewise.
16156 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16157 * target.c (target_resume): Likewise.
16158 * thread.c (set_running_thread): Likewise.
16159
e409c542
AKS
161602020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16161
16162 * f-valprint.c (f77_print_array_1): Changed datatype of index
16163 variable to LONGEST from int to enable it to contain bound
16164 values correctly.
16165
ee98c0da
MR
161662020-02-03 Maciej W. Rozycki <macro@wdc.com>
16167
16168 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16169 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16170 offsets according to FLEN determined.
16171 (riscv_linux_nat_target::read_description): Determine FLEN
16172 dynamically.
16173 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16174 according to FLEN determined.
16175 (riscv_linux_nat_target::store_registers): Likewise.
16176
aa66aac4
SV
161772020-02-01 Shahab Vahedi <shahab@synopsys.com>
16178
16179 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16180 when reg->group is empty and reggroup is not.
16181
fd9faca8
TT
161822020-01-31 Tom Tromey <tromey@adacore.com>
16183
16184 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16185 Call beneath target's mourn_inferior after unpushing.
16186
42330a68
AB
161872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16188
16189 PR tui/9765
16190 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16191 have enough lines to fill the screen, still return the lowest
16192 address we found.
16193
7a27a45b
AB
161942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16195
16196 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16197 '-', '<', and '>' commands.
16198
c47f70e2
PA
161992020-01-29 Pedro Alves <palves@redhat.com>
16200 Sergio Durigan Junior <sergiodj@redhat.com>
16201
16202 * infcmd.c (construct_inferior_arguments): Assert that
16203 'argc' is greater than 0.
16204
5133a315
LM
162052020-01-29 Luis Machado <luis.machado@linaro.org>
16206
16207 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16208 (BRK_INSN_MASK): Define to 0xd4200000.
16209 (aarch64_program_breakpoint_here_p): New function.
16210 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16211 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16212 breakpoint.c.
16213 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16214 breakpoint.h
16215 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16216 call gdbarch_program_breakpoint_here_p.
16217 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16218 default_program_breakpoint_here_p, changed return type to bool and
16219 simplified.
16220 * breakpoint.h (program_breakpoint_here): Moved prototype to
16221 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16222 return type to bool.
16223 * gdbarch.c: Regenerate.
16224 * gdbarch.h: Regenerate.
16225 * gdbarch.sh (program_breakpoint_here_p): New method.
16226 * infrun.c (handle_signal_stop): Call
16227 gdbarch_program_breakpoint_here_p.
16228
168f8c6b
TT
162292020-01-26 Tom Tromey <tom@tromey.com>
16230
16231 * ctfread.c (struct ctf_fp_info): Reindent.
16232 (_initialize_ctfread): Remove.
16233
128a391f
TT
162342020-01-26 Tom Tromey <tom@tromey.com>
16235
16236 * psymtab.c (partial_map_expand_apply)
16237 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16238 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16239 (psym_print_stats, psym_expand_symtabs_for_function)
16240 (psym_map_symbol_filenames, psym_map_matching_symbols)
16241 (psym_expand_symtabs_matching)
16242 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16243 (maintenance_check_psymtabs): Use new methods.
16244 * psympriv.h (struct partial_symtab) <readin_p,
16245 get_compunit_symtab>: New methods.
16246 <readin, compunit_symtab>: Remove members.
16247 (struct standard_psymtab): New.
16248 (struct legacy_psymtab): Derive from standard_psymtab.
16249 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16250 standard_psymtab.
16251 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16252
0494dbec
TT
162532020-01-26 Tom Tromey <tom@tromey.com>
16254
16255 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16256 read_dependencies. Add assert.
16257 * psymtab.c (partial_symtab::read_dependencies): New method.
16258 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16259 method.
16260 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16261 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16262 read_dependencies.
16263 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16264 Add assert.
16265
8566b89b
TT
162662020-01-26 Tom Tromey <tom@tromey.com>
16267
16268 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16269 Call expand_psymtab.
16270 (xcoff_read_symtab): Call expand_psymtab.
16271 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16272 legacy_expand_psymtab.
16273 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16274 method.
16275 (struct legacy_psymtab) <expand_psymtab>: Implement.
16276 <legacy_expand_psymtab>: New member.
16277 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16278 (parse_partial_symbols): Set legacy_expand_psymtab.
16279 (psymtab_to_symtab_1): Change argument order. Call
16280 expand_psymtab.
16281 (new_psymtab): Set legacy_expand_psymtab.
16282 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16283 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16284 expand_psymtab.
16285 (dwarf2_psymtab::expand_psymtab): Rename from
16286 psymtab_to_symtab_1. Call expand_psymtab.
16287 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16288 (dbx_end_psymtab): Likewise.
16289 (dbx_psymtab_to_symtab_1): Change argument order. Call
16290 expand_psymtab.
16291 (dbx_read_symtab): Call expand_psymtab.
16292 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16293 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16294 (ctf_psymtab::read_symtab): Call expand_psymtab.
16295
077cbab2
TT
162962020-01-26 Tom Tromey <tom@tromey.com>
16297
16298 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16299 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16300 messages.
16301 * mdebugread.c (mdebug_read_symtab): Remove prints.
16302 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16303 assert.
16304 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16305
891813be
TT
163062020-01-26 Tom Tromey <tom@tromey.com>
16307
16308 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16309 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16310 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16311 legacy_symtab.
16312 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16313 * psymtab.c (psymtab_to_symtab): Call method.
16314 (dump_psymtab): Update.
16315 * psympriv.h (struct partial_symtab): Add virtual destructor.
16316 <read_symtab>: New method.
16317 (struct legacy_symtab): New.
16318 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16319 (struct pst_map) <pst>: Now a legacy_psymtab.
16320 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16321 (new_psymtab): Use legacy_psymtab.
16322 * dwarf2read.h (struct dwarf2_psymtab): New.
16323 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16324 * dwarf2read.c (dwarf2_create_include_psymtab)
16325 (dwarf2_build_include_psymtabs, create_type_unit_group)
16326 (create_partial_symtab, process_psymtab_comp_unit_reader)
16327 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16328 (set_partial_user): Use dwarf2_psymtab.
16329 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16330 (psymtab_to_symtab_1, process_full_comp_unit)
16331 (process_full_type_unit, dwarf2_ranges_read)
16332 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16333 (dwarf_decode_lines): Use dwarf2_psymtab.
16334 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16335 (add_address_entry_worker, write_one_signatured_type)
16336 (recursively_count_psymbols, recursively_write_psymbols)
16337 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16338 (write_debug_names): Likewise.
16339 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16340 <pst>: Now a legacy_psymtab.
16341 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16342 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16343 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16344 * ctfread.c (struct ctf_psymtab): New.
16345 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16346 ctf_psymtab.
16347 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16348 (create_partial_symtab): Return a ctf_psymtab.
16349 (scan_partial_symbols): Update.
16350
c3693a1d
TT
163512020-01-26 Tom Tromey <tom@tromey.com>
16352
16353 * xcoffread.c (xcoff_start_psymtab): Use new.
16354 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16355 renamed from start_psymtab_common.
16356 * psympriv.h (struct partial_symtab): Add new constructor.
16357 (start_psymtab_common): Don't declare.
16358 * mdebugread.c (parse_partial_symbols): Use new.
16359 * dwarf2read.c (create_partial_symtab): Use new.
16360 * dbxread.c (start_psymtab): Use new.
16361 * ctfread.c (create_partial_symtab): Use new.
16362
32caafd0
TT
163632020-01-26 Tom Tromey <tom@tromey.com>
16364
16365 * xcoffread.c (xcoff_end_psymtab): Use new.
16366 * psymtab.c (start_psymtab_common): Use new.
16367 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16368 Update.
16369 * psympriv.h (struct partial_symtab): Add parameters to
16370 constructor. Don't inline.
16371 (allocate_psymtab): Don't declare.
16372 * mdebugread.c (new_psymtab): Use new.
16373 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16374 * dbxread.c (dbx_end_psymtab): Use new.
16375
abaa2f23
TT
163762020-01-26 Tom Tromey <tom@tromey.com>
16377
16378 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16379 allocate_psymtab. Update documentation.
16380 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16381 allocate_psymtab. Do not use new.
16382 (allocate_psymtab): Use new. Update.
16383
6d94535f
TT
163842020-01-26 Tom Tromey <tom@tromey.com>
16385
16386 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16387 * psymtab.c (psym_print_stats): Update.
16388 * psympriv.h (struct partial_symtab) <readin,
16389 psymtabs_addrmap_supported, anonymous>: Now bool.
16390 * mdebugread.c (psymtab_to_symtab_1): Update.
16391 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16392 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16393 (process_full_comp_unit, process_full_type_unit): Update.
16394 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16395 * ctfread.c (psymtab_to_symtab): Update.
16396
6f17252b
TT
163972020-01-26 Tom Tromey <tom@tromey.com>
16398
16399 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16400 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16401 * psymtab.c (psymtab_storage): Delete psymtabs.
16402 (psymtab_storage::allocate_psymtab): Use new.
16403 (psymtab_storage::discard_psymtab): Use delete.
16404 * psympriv.h (struct partial_symtab): Add constructor and
16405 initializers.
16406
f6f1cebc
TT
164072020-01-26 Tom Tromey <tom@tromey.com>
16408
16409 * machoread.c: Do not include psympriv.h.
16410
e47e48f6
PW
164112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16412
16413 * NEWS: Mention the new option and the set/show commands.
16414
a2fedca9
PW
164152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16416
16417 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16418 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16419 (validate_exec_file): New variables, enums, functions.
16420 (exec_file_locate_attach, print_section_info): Style the filenames.
16421 (_initialize_exec): Install show_exec_file_mismatch_command and
16422 set_exec_file_mismatch_command.
16423 * gdbcore.h (validate_exec_file): Declare.
16424 * infcmd.c (attach_command): Call validate_exec_file.
16425 * remote.c ( remote_target::remote_add_inferior): Likewise.
16426
7ffa82e1
AB
164272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16428
16429 * frame.c (find_frame_sal): Move call to get_next_frame into more
16430 inner scope.
16431 * inline-frame.c (inilne_state) <inline_state>: Update argument
16432 types.
16433 (inilne_state) <skipped_symbol>: Rename to...
16434 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16435 (skip_inline_frames): Build vector of skipped symbols and use this
16436 to reate the inline_state.
16437 (inline_skipped_symbol): Add a comment and some assertions, fetch
16438 skipped symbol from the list.
16439
3d92a3e3
AB
164402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16441
16442 * buildsym.c (lte_is_less_than): Delete.
16443 (buildsym_compunit::end_symtab_with_blockvector): Create local
16444 lambda function to sort line table entries, and use
16445 std::stable_sort instead of std::sort.
16446 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16447 markers when looking for a previous line.
16448
94a72be7
AB
164492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16450
16451 * dwarf2read.c (lnp_state_machine::record_line): Include
16452 end_sequence parameter in debug print out. Record the line if we
16453 are at an end_sequence marker even if it's not the start of a
16454 statement.
16455 * symmisc.c (maintenance_print_one_line_table): Print end of
16456 sequence markers with 'END' not '0'.
16457
53af73bf
PA
164582020-01-24 Pedro Alves <palves@redhat.com>
16459
16460 PR gdb/25410
16461 * thread.c (scoped_restore_current_thread::restore): Use
16462 switch_to_inferior_no_thread.
16463 * exec.c: Include "progspace-and-thread.h".
16464 (add_target_sections, remove_target_sections):
16465 scoped_restore_current_pspace_and_thread instead of
16466 scoped_restore_current_thread.
16467 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16468 and aspace to the inferior before calling clone_program_space.
16469 Remove stale comment.
16470
3050c6f4
CB
164712020-01-24 Christian Biesinger <cbiesinger@google.com>
16472
16473 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16474 (arm_netbsd_nat_target::fetch_registers): ...this.
16475 (arm_nbsd_nat_target::store_registers): Rename to...
16476 (arm_netbsd_nat_target::store_registers): ...this.
16477
73685c7e
CB
164782020-01-24 Christian Biesinger <cbiesinger@google.com>
16479
16480 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16481 register_t.
16482
89203d40
CB
164832020-01-24 Christian Biesinger <cbiesinger@google.com>
16484
16485 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16486 Update comment.
16487 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16488 Likewise.
16489 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16490 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16491 the correct replacement (iterate_over_regset_sections).
16492 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16493 Update comment.
16494
1ba1ac88
AB
164952020-01-24 Graham Markall <graham.markall@embecosm.com>
16496
16497 PR gdb/23718
16498 * gdb/python/python.c (execute_gdb_command): Call
16499 async_enable_stdin in catch block.
16500
f3364a6d
AB
165012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16502
16503 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16504 SWITCH_THRU_ALL_UIS.
16505
733d0a67
AB
165062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16507
16508 PR tui/9765
16509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16510 comment, add extra parameter, and update to store previous symbol
16511 when appropriate.
16512 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16513 add extra parameter.
16514 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16515 remove unneeded parameter, add try/catch around gdb_print_insn,
16516 rewrite to add items to asm_lines vector.
16517 (tui_find_backward_disassembly_start_address): New function.
16518 (tui_find_disassembly_address): Updated throughout.
16519 (tui_disasm_window::set_contents): Update for changes to
16520 tui_disassemble.
16521 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16522 number of lines to scroll.
16523
b3b3bada
SM
165242020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16525
16526 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16527 (SECT_OFF_DATA): Likewise.
16528 (SECT_OFF_RODATA): Likewise.
16529 (SECT_OFF_TEXT): Likewise.
16530 (SECT_OFF_BSS): Likewise.
16531 (struct objfile) <text_section_offset, data_section_offset>: New
16532 methods.
16533 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16534 objfile::text_section_offset.
16535 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16536 * coffread.c (coff_symtab_read): Likewise.
16537 (enter_linenos): Likewise.
16538 (process_coff_symbol): Likewise.
16539 * ctfread.c (get_objfile_text_range): Likewise.
16540 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16541 Use objfile::data_section_offset.
16542 * dwarf2-frame.c (execute_cfa_program): Use
16543 objfile::text_section_offset.
16544 (dwarf2_frame_find_fde): Likewise.
16545 * dwarf2read.c (create_addrmap_from_index): Likewise.
16546 (create_addrmap_from_aranges): Likewise.
16547 (dw2_find_pc_sect_compunit_symtab): Likewise.
16548 (process_psymtab_comp_unit_reader): Likewise.
16549 (add_partial_symbol): Likewise.
16550 (add_partial_subprogram): Likewise.
16551 (process_full_comp_unit): Likewise.
16552 (read_file_scope): Likewise.
16553 (read_func_scope): Likewise.
16554 (read_lexical_block_scope): Likewise.
16555 (read_call_site_scope): Likewise.
16556 (dwarf2_rnglists_process): Likewise.
16557 (dwarf2_ranges_process): Likewise.
16558 (dwarf2_ranges_read): Likewise.
16559 (dwarf_decode_lines_1): Likewise.
16560 (new_symbol): Likewise.
16561 (dwarf2_fetch_die_loc_sect_off): Likewise.
16562 (dwarf2_per_cu_text_offset): Likewise.
16563 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16564 * hppa-tdep.c (read_unwind_info): Likewise.
16565 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16566 * psympriv.h (struct partial_symtab): Likewise.
16567 * psymtab.c (find_pc_sect_psymtab): Likewise.
16568 * solib-svr4.c (enable_break): Likewise.
16569 * stap-probe.c (relocate_address): Use
16570 objfile::data_section_offset.
16571 * xcoffread.c (enter_line_range): Use
16572 objfile::text_section_offset.
16573 (read_xcoff_symtab): Likewise.
16574
ab53f382
SM
165752020-01-23 Simon Marchi <simon.marchi@efficios.com>
16576
16577 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16578 declaration to narrower scopes.
16579
e7eee665
SM
165802020-01-23 Simon Marchi <simon.marchi@efficios.com>
16581
16582 * darwin-nat.h (struct darwin_exception_msg, enum
16583 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16584 Move up.
16585 (class darwin_nat_target) <wait_1, check_new_threads,
16586 decode_exception_message, decode_message, stop_inferior,
16587 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16588 * darwin-nat.c (darwin_check_new_threads): Rename to...
16589 (darwin_nat_target::check_new_threads): ... this.
16590 (darwin_suspend_inferior_it): Remove.
16591 (darwin_decode_exception_message): Rename to...
16592 (darwin_nat_target::decode_exception_message): ... this.
16593 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16594 (darwin_decode_message): Rename to...
16595 (darwin_nat_target::decode_message): ... this.
16596 (cancel_breakpoint): Rename to...
16597 (darwin_nat_target::cancel_breakpoint): ... this.
16598 (darwin_wait): Rename to...
16599 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16600 instead of iterate_over_inferiors.
16601 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16602 (darwin_stop_inferior): Rename to...
16603 (darwin_nat_target::stop_inferior): ... this.
16604 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16605 (darwin_init_thread_list): Rename to...
16606 (darwin_nat_target::init_thread_list): ... this.
16607 (darwin_ptrace_him): Rename to...
16608 (darwin_nat_target::ptrace_him): ... this.
16609 (darwin_nat_target::create_inferior): Pass lambda function to
16610 fork_inferior.
16611 (darwin_nat_target::detach): Call stop_inferior instead of
16612 darwin_stop_inferior.
16613 * fork-inferior.h (fork_inferior): Change init_trace_fun
16614 parameter to gdb::function_view.
16615 * fork-inferior.c (fork_inferior): Likewise.
16616
c162ed3e
HD
166172020-01-23 Hannes Domani <ssbssa@yahoo.de>
16618
16619 * i386-cygwin-tdep.c (core_process_module_section): Update.
16620 * windows-nat.c (struct lm_info_windows): Add text_offset.
16621 (windows_xfer_shared_libraries): Update.
16622 * windows-tdep.c (windows_xfer_shared_library):
16623 Add text_offset_cached argument.
16624 * windows-tdep.h (windows_xfer_shared_library): Update.
16625
a1237872
SM
166262020-01-21 Simon Marchi <simon.marchi@efficios.com>
16627
16628 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16629
b3ee6dd9
SM
166302020-01-21 Simon Marchi <simon.marchi@efficios.com>
16631
16632 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16633 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16634 replace with range-based for.
16635 (gdbsim_interrupt_inferior): Remove.
16636 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16637 with a range-based for. Inline code from
16638 gdbsim_interrupt_inferior.
16639
f9fac3c8
SM
166402020-01-21 Simon Marchi <simon.marchi@efficios.com>
16641
16642 * infrun.c (proceed): Fix indentation.
16643
f6474de9
TT
166442020-01-21 Tom Tromey <tromey@adacore.com>
16645
16646 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16647 * python/python.c (python_extension_ops): Update.
16648 (gdbpy_colorize): New function.
16649 * python/lib/gdb/__init__.py (colorize): New function.
16650 * extension.h (ext_lang_colorize): Declare.
16651 * extension.c (ext_lang_colorize): New function.
16652 * extension-priv.h (struct extension_language_ops) <colorize>: New
16653 member.
16654 * cli/cli-style.c (_initialize_cli_style): Update help text.
16655
f0c702d4
LM
166562020-01-21 Luis Machado <luis.machado@linaro.org>
16657
16658 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16659 <cond>: Change type to bool.
16660 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16661 (aarch64_displaced_step_cb): Likewise.
16662 (aarch64_displaced_step_tb): Likewise.
16663
1ab139e5
LM
166642020-01-21 Luis Machado <luis.machado@linaro.org>
16665
16666 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16667 output.
16668
0c271889
LM
166692020-01-21 Luis Machado <luis.machado@linaro.org>
16670
16671 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16672 <pc_adjust>: Adjust the documentation.
16673 (aarch64_displaced_step_fixup): Check if PC really moved before
16674 adjusting it.
16675
4d89c1c7
TT
166762020-01-19 Tom Tromey <tom@tromey.com>
16677
16678 * disasm.c (~gdb_disassembler): New destructor.
16679 (gdb_buffered_insn_length): Call disassemble_free_target.
16680 * disasm.h (class gdb_disassembler): Declare destructor. Use
16681 DISABLE_COPY_AND_ASSIGN.
16682
c0ab21c2
TT
166832020-01-19 Tom Tromey <tom@tromey.com>
16684
16685 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16686 (die_reader_func_ftype): Remove.
16687 (cutu_reader): New class.
16688 (dw2_get_file_names_reader): Remove "data" parameter.
16689 (dw2_get_file_names): Use cutu_reader.
16690 (create_debug_type_hash_table): Update.
16691 (read_cutu_die_from_dwo): Update comment.
16692 (lookup_dwo_unit): Add dwo_name parameter.
16693 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16694 die_reader_func_ftype and data parameters.
16695 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16696 Remove die_reader_func_ftype and data parameters.
16697 (~cutu_reader): New; from init_cutu_and_read_dies.
16698 (cutu_reader::cutu_reader): Rename from
16699 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16700 and data parameters.
16701 (init_cutu_and_read_dies_simple): Remove.
16702 (struct process_psymtab_comp_unit_data): Remove.
16703 (process_psymtab_comp_unit_reader): Remove data parameter; add
16704 want_partial_unit and pretend_language parameters.
16705 (process_psymtab_comp_unit): Use cutu_reader.
16706 (build_type_psymtabs_reader): Remove data parameter.
16707 (build_type_psymtabs_1): Use cutu_reader.
16708 (process_skeletonless_type_unit): Likewise.
16709 (load_partial_comp_unit_reader): Remove.
16710 (load_partial_comp_unit): Use cutu_reader.
16711 (load_full_comp_unit_reader): Remove.
16712 (load_full_comp_unit): Use cutu_reader.
16713 (struct create_dwo_cu_data): Remove.
16714 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16715 dwo_unit parameters.
16716 (create_cus_hash_table): Use cutu_reader.
16717 (struct dwarf2_read_addr_index_data): Remove.
16718 (dwarf2_read_addr_index_reader): Remove.
16719 (dwarf2_read_addr_index): Use cutu_reader.
16720 (read_signatured_type_reader): Remove.
16721 (read_signatured_type): Use cutu_reader.
16722
45bbae5c
TT
167232020-01-19 Tom Tromey <tom@tromey.com>
16724
16725 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16726 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16727 (tui_wrefresh): Declare.
16728 * tui/tui-wingeneral.c (suppress_output): New global.
16729 (tui_suppress_output, ~tui_suppress_output): New constructor and
16730 destructor.
16731 (tui_wrefresh): New function.
16732 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16733 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16734 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16735 method.
16736 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16737 tui_wrefresh.
16738 (tui_data_window::no_refresh): New method.
16739 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16740 (tui_reg_command): Use tui_suppress_output
16741 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16742 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16743 method.
16744 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16745
4f13c1c0
TT
167462020-01-19 Tom Tromey <tom@tromey.com>
16747
16748 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16749 Handle case where symtab is null.
16750
fa47e446
SM
167512020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16752
16753 * linux-fork.c (one_fork_p): Simplify.
16754
26f42329
SM
167552020-01-17 Simon Marchi <simon.marchi@efficios.com>
16756
16757 * top.c (struct qt_args): Remove.
16758 (kill_or_detach): Change return type to void, replace `void *`
16759 parameter with a proper one.
16760 (print_inferior_quit_action): Likewise.
16761 (quit_confirm): Use range-based for loop to iterate over inferiors.
16762 (quit_force): Likewise.
16763
a9ac81b1
SM
167642020-01-17 Simon Marchi <simon.marchi@efficios.com>
16765
16766 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16767 `void *` parameter with proper parameters.
16768 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16769 (print_one_inferior): Change return type to void, replace `void *`
16770 parameter with proper parameters.
16771 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16772 inferiors.
16773 (get_other_inferior): Remove.
16774 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16775 inferiors.
16776
788eca49
SM
167772020-01-17 Simon Marchi <simon.marchi@efficios.com>
16778
16779 * mi/mi-interp.c (report_initial_inferior): Remove.
16780 (mi_interp::init): Use range-based for to iterate over inferiors.
16781
d9bc85b6
SM
167822020-01-17 Simon Marchi <simon.marchi@efficios.com>
16783
16784 * python/py-inferior.c (build_inferior_list): Remove.
16785 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16786
40c94099
CB
167872020-01-16 Christian Biesinger <cbiesinger@google.com>
16788
16789 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16790 (btrace_stitch_trace): Likewise.
16791 * charset.c (intermediate_encoding): Likewise (vaild).
16792 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16793 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16794 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16795
e0cdfe3c
HD
167962020-01-16 Hannes Domani <ssbssa@yahoo.de>
16797
16798 * windows-tdep.c (windows_get_tlb_type):
16799 Add rtl_user_process_parameters type.
16800
790f1718 168012020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16802 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16803
16804 PR build/24805
16805 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16806 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16807 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16808 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16809 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16810 (ps_plog): Redeclare exported functions with default visibility.
16811
3112ed97
NA
168122020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16813
16814 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16815 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16816
8dc3273e
SM
168172020-01-15 Simon Marchi <simon.marchi@efficios.com>
16818
16819 * infcmd.c (post_create_inferior): Use get_thread_regcache
16820 instead of get_current_regcache.
16821
ff47f4f0
TT
168222020-01-14 Tom Tromey <tom@tromey.com>
16823
16824 PR symtab/12535:
16825 * python/python.c (gdbpy_decode_line): Treat empty string the same
16826 as no argument.
16827
975f45b7
TT
168282020-01-14 Tom Tromey <tom@tromey.com>
16829
16830 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16831
25e57356
TT
168322020-01-14 Tom Tromey <tom@tromey.com>
16833
16834 * nat/linux-btrace.c: Don't include <config.h>.
16835 * nat/linux-ptrace.c: Don't include <config.h>.
16836 * nat/x86-linux-dregs.c: Don't include <config.h>.
16837
05ea2a05
TT
168382020-01-14 Tom Tromey <tom@tromey.com>
16839
16840 * configure: Rebuild.
16841 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16842
01027315
TT
168432020-01-14 Tom Tromey <tom@tromey.com>
16844
16845 * nat/x86-linux-dregs.c: Include configh.h.
16846 * nat/linux-ptrace.c: Include configh.h.
16847 * nat/linux-btrace.c: Include configh.h.
16848 * defs.h: Include config.h, bfd.h.
16849 * configure.ac: Don't source common.host.
16850 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16851 * configure: Rebuild.
16852 * acinclude.m4: Update path.
16853 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16854 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16855 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16856 (CLIBS): Add LIBSUPPORT.
16857 (CDEPS): Likewise.
16858 (COMMON_SFILES): Remove gdbsupport files.
16859 (HFILES_NO_SRCDIR): Likewise.
16860 (stamp-version): Update path to create-version.sh.
16861 (ALLDEPFILES): Remove gdbsupport files.
16862
b2ceabe8
TT
168632020-01-14 Tom Tromey <tom@tromey.com>
16864
16865 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16866 USE_WIN32API when needed.
16867 * configure.ac (USE_WIN32API): Don't define.
16868 (WIN32LIBS): Use WIN32APILIBS.
16869 * configure: Rebuild.
16870
25c51f71
TT
168712020-01-14 Tom Tromey <tom@tromey.com>
16872
16873 * configure: Rebuild.
16874 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16875
717c684d
BE
168762020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16877
16878 * skip.c (skip_function_command): Make skip w/o arguments use the
16879 name of the inlined function if pc is inside any inlined function.
16880
7da6a5b9
LM
168812020-01-14 Luis Machado <luis.machado@linaro.org>
16882
16883 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16884 * infrun.c (resume_1): Likewise.
16885 (handle_inferior_event): Remove stale comment.
16886 * linux-nat.c (linux_nat_target::resume): Update comments.
16887 (save_stop_reason): Likewise.
16888 (linux_nat_filter_event): Likewise.
16889 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16890
44e4c775
AB
168912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16892
16893 * elfread.c (record_minimal_symbol): Set section index to 0 for
16894 non-allocatable sections.
16895
18a8505e
AT
16896
168972020-01-13 Ali Tamur <tamur@google.com>
16898
16899 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16900 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16901 to gdb::optional. Update comments.
16902 (dwo_file): Update comments.
16903 (read_attribute): Update API to take an additional out parameter,
16904 need_reprocess. This is used to mark attributes that need other
16905 attributes (e.g. str_offsets_base) for correct computation which may not
16906 have been read yet.
16907 (read_attribute_reprocess): New function declaration.
16908 (read_addr_index): Likewise.
16909 (read_dwo_str_index): Likewise.
16910 (read_stub_str_index): Likewise.
16911 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16912 (lookup_addr_base): New function definition.
16913 (lookup_ranges_base): Likewise.
16914 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16915 lookup_ranges_base.
16916 (init_cutu_and_read_dies): Update comments.
16917 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16918 unit. This is used to inherit parent's str_offsets_base and addr_base.
16919 Update comments.
16920 (init_cutu_and_read_dies_simple): Reflect API changes.
16921 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16922 (create_cus_hash_table): Change API to take parent compile unit.
16923 Reflect API changes.
16924 (open_and_init_dwo_file): Reflect API changes.
16925 (dwarf2_get_pc_bounds): Update comments.
16926 (dwarf2_record_block_ranges): Likewise.
16927 (read_full_die_1): Change implementation to reprocess attributes that
16928 need str_offsets_base and addr_base.
16929 (partial_die_info::read): Likewise.
16930 (read_attribute_reprocess): New function definition.
16931 (read_attribute_value): Change API to take an additional out parameter,
16932 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16933 when a non-dwo compile unit has index based attributes.
16934 (read_attribute): Reflect API changes.
16935 (read_addr_index_1): Reflect API changes. Update comments.
16936 (dwarf2_read_addr_index_data): Reflect API changes.
16937 (dwarf2_read_addr_index): Likewise.
16938 (read_str_index): Change API and implementation. This becomes a helper
16939 to be used by the new string index related methods. Update error
16940 message and comments.
16941 (read_dwo_str_index): New function definition.
16942 (read_stub_str_index): Likewise.
16943 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16944 * symfile.h (dwarf2_debug_sections): Likewise.
16945 * xcoffread.c (dwarf2_debug_sections): Likewise.
16946
0cac9354
SM
169472020-01-13 Simon Marchi <simon.marchi@efficios.com>
16948
16949 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16950 core_reg_sect type to gdb_byte *.
16951 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16952 * cris-tdep.c (fetch_core_registers): Likewise.
16953 * corelow.c (core_target::get_core_register_section): Change
16954 type of `contents` to gdb::byte_vector.
16955
9a6d629c
AB
169562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16957
16958 * tui/tui-wingeneral.c (box_win): Position the title in the center
16959 of the border.
16960
d8b2f9e3
SM
169612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16962
16963 * corelow.c (core_target::get_core_register_section): Use
16964 std::vector instead of alloca.
16965
bb564c58
SM
169662020-01-13 Simon Marchi <simon.marchi@efficios.com>
16967
16968 * warning.m4: Add -Wmissing-declarations to build_warnings.
16969 * configure: Re-generate.
16970
6b366111
SM
169712020-01-13 Simon Marchi <simon.marchi@efficios.com>
16972
16973 * python/python.c (init__gdb_module): Add declaration.
16974
6c265988
SM
169752020-01-13 Simon Marchi <simon.marchi@efficios.com>
16976
16977 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16978 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16979 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16980 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16981 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16982 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16983 * ada-exp.y (_initialize_ada_exp): Add declaration.
16984 * ada-lang.c (_initialize_ada_language): Add declaration.
16985 * ada-tasks.c (_initialize_tasks): Add declaration.
16986 * agent.c (_initialize_agent): Add declaration.
16987 * aix-thread.c (_initialize_aix_thread): Add declaration.
16988 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16989 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16990 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16991 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16992 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16993 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16994 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16995 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16996 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16997 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16998 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16999 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17000 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17001 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17002 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17003 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17004 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17005 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17006 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17007 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17008 * annotate.c (_initialize_annotate): Add declaration.
17009 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17010 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17011 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17012 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17013 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17014 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17015 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17016 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17017 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17018 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17019 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17020 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17021 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17022 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17023 * auto-load.c (_initialize_auto_load): Add declaration.
17024 * auxv.c (_initialize_auxv): Add declaration.
17025 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17026 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17027 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17028 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17029 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17030 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17031 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17032 * breakpoint.c (_initialize_breakpoint): Add declaration.
17033 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17034 * btrace.c (_initialize_btrace): Add declaration.
17035 * charset.c (_initialize_charset): Add declaration.
17036 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17037 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17038 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17039 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17040 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17041 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17042 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17043 * coffread.c (_initialize_coffread): Add declaration.
17044 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17045 * compile/compile.c (_initialize_compile): Add declaration.
17046 * complaints.c (_initialize_complaints): Add declaration.
17047 * completer.c (_initialize_completer): Add declaration.
17048 * copying.c (_initialize_copying): Add declaration.
17049 * corefile.c (_initialize_core): Add declaration.
17050 * corelow.c (_initialize_corelow): Add declaration.
17051 * cp-abi.c (_initialize_cp_abi): Add declaration.
17052 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17053 * cp-support.c (_initialize_cp_support): Add declaration.
17054 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17055 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17056 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17057 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17058 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17059 * ctfread.c (_initialize_ctfread): Add declaration.
17060 * d-lang.c (_initialize_d_language): Add declaration.
17061 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17062 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17063 * dbxread.c (_initialize_dbxread): Add declaration.
17064 * dcache.c (_initialize_dcache): Add declaration.
17065 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17066 * disasm.c (_initialize_disasm): Add declaration.
17067 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17068 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17069 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17070 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17071 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17072 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17073 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17074 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17075 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17076 * elfread.c (_initialize_elfread): Add declaration.
17077 * exec.c (_initialize_exec): Add declaration.
17078 * extension.c (_initialize_extension): Add declaration.
17079 * f-lang.c (_initialize_f_language): Add declaration.
17080 * f-valprint.c (_initialize_f_valprint): Add declaration.
17081 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17082 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17083 * filesystem.c (_initialize_filesystem): Add declaration.
17084 * findcmd.c (_initialize_mem_search): Add declaration.
17085 * findvar.c (_initialize_findvar): Add declaration.
17086 * fork-child.c (_initialize_fork_child): Add declaration.
17087 * frame-base.c (_initialize_frame_base): Add declaration.
17088 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17089 * frame.c (_initialize_frame): Add declaration.
17090 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17091 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17092 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17093 * gcore.c (_initialize_gcore): Add declaration.
17094 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17095 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17096 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17097 * gdbarch.c (_initialize_gdbarch): Add declaration.
17098 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17099 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17100 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17101 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17102 * go-lang.c (_initialize_go_language): Add declaration.
17103 * go32-nat.c (_initialize_go32_nat): Add declaration.
17104 * guile/guile.c (_initialize_guile): Add declaration.
17105 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17106 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17107 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17108 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17109 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17110 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17111 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17112 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17113 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17114 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17115 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17116 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17117 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17118 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17119 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17120 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17121 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17122 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17123 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17124 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17125 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17126 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17127 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17128 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17129 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17130 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17131 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17132 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17133 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17134 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17135 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17136 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17137 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17138 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17139 * infcall.c (_initialize_infcall): Add declaration.
17140 * infcmd.c (_initialize_infcmd): Add declaration.
17141 * inflow.c (_initialize_inflow): Add declaration.
17142 * infrun.c (_initialize_infrun): Add declaration.
17143 * interps.c (_initialize_interpreter): Add declaration.
17144 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17145 * jit.c (_initialize_jit): Add declaration.
17146 * language.c (_initialize_language): Add declaration.
17147 * linux-fork.c (_initialize_linux_fork): Add declaration.
17148 * linux-nat.c (_initialize_linux_nat): Add declaration.
17149 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17150 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17151 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17152 * m2-lang.c (_initialize_m2_language): Add declaration.
17153 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17154 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17155 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17156 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17157 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17158 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17159 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17160 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17161 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17162 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17163 * machoread.c (_initialize_machoread): Add declaration.
17164 * macrocmd.c (_initialize_macrocmd): Add declaration.
17165 * macroscope.c (_initialize_macroscope): Add declaration.
17166 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17167 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17168 * maint.c (_initialize_maint_cmds): Add declaration.
17169 * mdebugread.c (_initialize_mdebugread): Add declaration.
17170 * memattr.c (_initialize_mem): Add declaration.
17171 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17172 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17173 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17174 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17175 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17176 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17177 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17178 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17179 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17180 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17181 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17182 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17183 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17184 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17185 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17186 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17187 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17188 * mipsread.c (_initialize_mipsread): Add declaration.
17189 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17190 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17191 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17192 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17193 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17194 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17195 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17196 * nto-procfs.c (_initialize_procfs): Add declaration.
17197 * objc-lang.c (_initialize_objc_language): Add declaration.
17198 * observable.c (_initialize_observer): Add declaration.
17199 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17200 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17201 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17202 * osabi.c (_initialize_gdb_osabi): Add declaration.
17203 * osdata.c (_initialize_osdata): Add declaration.
17204 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17205 * parse.c (_initialize_parse): Add declaration.
17206 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17207 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17208 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17209 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17210 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17211 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17212 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17213 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17214 * printcmd.c (_initialize_printcmd): Add declaration.
17215 * probe.c (_initialize_probe): Add declaration.
17216 * proc-api.c (_initialize_proc_api): Add declaration.
17217 * proc-events.c (_initialize_proc_events): Add declaration.
17218 * proc-service.c (_initialize_proc_service): Add declaration.
17219 * procfs.c (_initialize_procfs): Add declaration.
17220 * producer.c (_initialize_producer): Add declaration.
17221 * psymtab.c (_initialize_psymtab): Add declaration.
17222 * python/python.c (_initialize_python): Add declaration.
17223 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17224 * record-btrace.c (_initialize_record_btrace): Add declaration.
17225 * record-full.c (_initialize_record_full): Add declaration.
17226 * record.c (_initialize_record): Add declaration.
17227 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17228 * regcache.c (_initialize_regcache): Add declaration.
17229 * reggroups.c (_initialize_reggroup): Add declaration.
17230 * remote-notif.c (_initialize_notif): Add declaration.
17231 * remote-sim.c (_initialize_remote_sim): Add declaration.
17232 * remote.c (_initialize_remote): Add declaration.
17233 * reverse.c (_initialize_reverse): Add declaration.
17234 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17235 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17236 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17237 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17238 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17239 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17240 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17241 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17242 Add declaration.
17243 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17244 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17245 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17246 * rust-exp.y (_initialize_rust_exp): Add declaration.
17247 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17248 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17249 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17250 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17251 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17252 * score-tdep.c (_initialize_score_tdep): Add declaration.
17253 * ser-go32.c (_initialize_ser_dos): Add declaration.
17254 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17255 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17256 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17257 * ser-uds.c (_initialize_ser_socket): Add declaration.
17258 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17259 * serial.c (_initialize_serial): Add declaration.
17260 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17261 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17262 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17263 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17264 * skip.c (_initialize_step_skip): Add declaration.
17265 * sol-thread.c (_initialize_sol_thread): Add declaration.
17266 * solib-aix.c (_initialize_solib_aix): Add declaration.
17267 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17268 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17269 * solib-frv.c (_initialize_frv_solib): Add declaration.
17270 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17271 * solib-target.c (_initialize_solib_target): Add declaration.
17272 * solib.c (_initialize_solib): Add declaration.
17273 * source-cache.c (_initialize_source_cache): Add declaration.
17274 * source.c (_initialize_source): Add declaration.
17275 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17276 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17277 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17278 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17279 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17280 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17281 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17282 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17283 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17284 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17285 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17286 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17287 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17288 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17289 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17290 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17291 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17292 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17293 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17294 * stabsread.c (_initialize_stabsread): Add declaration.
17295 * stack.c (_initialize_stack): Add declaration.
17296 * stap-probe.c (_initialize_stap_probe): Add declaration.
17297 * std-regs.c (_initialize_frame_reg): Add declaration.
17298 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17299 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17300 * symfile.c (_initialize_symfile): Add declaration.
17301 * symmisc.c (_initialize_symmisc): Add declaration.
17302 * symtab.c (_initialize_symtab): Add declaration.
17303 * target.c (_initialize_target): Add declaration.
17304 * target-connection.c (_initialize_target_connection): Add
17305 declaration.
17306 * target-dcache.c (_initialize_target_dcache): Add declaration.
17307 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17308 * thread.c (_initialize_thread): Add declaration.
17309 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17310 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17311 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17312 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17313 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17314 * tracectf.c (_initialize_ctf): Add declaration.
17315 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17316 * tracefile.c (_initialize_tracefile): Add declaration.
17317 * tracepoint.c (_initialize_tracepoint): Add declaration.
17318 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17319 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17320 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17321 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17322 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17323 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17324 * tui/tui.c (_initialize_tui): Add declaration.
17325 * typeprint.c (_initialize_typeprint): Add declaration.
17326 * ui-style.c (_initialize_ui_style): Add declaration.
17327 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17328 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17329 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17330 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17331 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17332 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17333 * unittests/filtered_iterator-selftests.c
17334 (_initialize_filtered_iterator_selftests): Add declaration.
17335 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17336 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17337 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17338 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17339 * unittests/main-thread-selftests.c
17340 (_initialize_main_thread_selftests): Add declaration.
17341 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17342 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17343 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17344 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17345 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17346 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17347 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17348 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17349 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17350 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17351 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17352 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17353 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17354 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17355 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17356 declaration.
17357 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17358 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17359 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17360 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17361 * user-regs.c (_initialize_user_regs): Add declaration.
17362 * utils.c (_initialize_utils): Add declaration.
17363 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17364 * valops.c (_initialize_valops): Add declaration.
17365 * valprint.c (_initialize_valprint): Add declaration.
17366 * value.c (_initialize_values): Add declaration.
17367 * varobj.c (_initialize_varobj): Add declaration.
17368 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17369 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17370 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17371 * windows-nat.c (_initialize_windows_nat): Add declaration.
17372 (_initialize_check_for_gdb_ini): Add declaration.
17373 (_initialize_loadable): Add declaration.
17374 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17375 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17376 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17377 * xcoffread.c (_initialize_xcoffread): Add declaration.
17378 * xml-support.c (_initialize_xml_support): Add declaration.
17379 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17380 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17381 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17382 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17383
e2de1eec
SM
173842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17385
17386 * regformats/regdat.sh: Generate declaration for init function.
17387
e0037b4c
SM
173882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17389
17390 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17391 up.
17392 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17393 close_one_inferior>: New methods.
17394 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17395 pass down target to find_inferior_pid.
17396 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17397 Pass down target to find_inferior_ptid.
17398 (gdbsim_target::create_inferior): Pass down target to
17399 add_thread_silent.
17400 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17401 target down to find_inferior_ptid and switch_to_thread.
17402 (gdbsim_target::close): Update to call close_one_inferior.
17403 (struct resume_data): Remove.
17404 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17405 directly, rather than through a void pointer.
17406 (gdbsim_target::resume): Update to call resume_one_inferior.
17407
58920b5b
SM
174082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17409
17410 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17411
4ec89149
PA
174122020-01-12 Pedro Alves <palves@redhat.com>
17413
17414 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17415 directly for the current inferior instead of
17416 discard_all_inferiors.
17417 (discard_all_inferiors): Delete.
17418
7c392d1d
TT
174192020-01-11 Tom Tromey <tom@tromey.com>
17420
17421 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17422 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17423 deprecated_safe_get_selected_frame.
17424
d9ebdab7
TBA
174252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17426
17427 * inferior.c (print_inferior): Switch inferior before printing it.
17428
f3c469b9
PA
174292020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17430 Pedro Alves <palves@redhat.com>
17431
17432 * progspace-and-thread.c (switch_to_program_space_and_thread):
17433 Assert there's an inferior for PSPACE. Use
17434 switch_to_inferior_no_thread to switch the inferior too.
17435 * progspace.c (program_space::~program_space): Call
17436 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17437 (program_space::free_all_objfiles): Don't call clear_symtab_users
17438 here.
17439 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17440
65c574f6
PA
174412020-01-10 Pedro Alves <palves@redhat.com>
17442
17443 * NEWS: Mention multi-target debugging, "info connections", and
17444 "add-inferior -no-connection".
17445
2f4fcf00
PA
174462020-01-10 Pedro Alves <palves@redhat.com>
17447
17448 * infrun.c: Include "target-connection.h".
17449 (check_multi_target_resumption): New.
17450 (proceed): Call it.
17451 * target-connection.c (make_target_connection_string): Make
17452 extern.
17453 * target-connection.h (make_target_connection_string): Declare.
17454
121b3efd
PA
174552020-01-10 Pedro Alves <palves@redhat.com>
17456
17457 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17458 * inferior.c (uiout_field_connection): New function.
17459 (print_inferior): Add new "connection-id" column.
17460 (add_inferior_command): Show connection number/string of added
17461 inferior.
17462 * process-stratum-target.h
17463 (process_stratum_target::connection_string): New virtual method.
17464 (process_stratum_target::connection_number): New field.
17465 * remote.c (remote_target::connection_string): New override.
17466 * target-connection.c: New file.
17467 * target-connection.h: New file.
17468 * target.c (decref_target): Remove process_stratum targets from
17469 the connection list.
17470 (target_stack::push): Add process_stratum targets to the
17471 connection list.
17472
4f837581
PA
174732020-01-10 Pedro Alves <palves@redhat.com>
17474
17475 Revert:
17476 2016-04-12 Pedro Alves <palves@redhat.com>
17477 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17478 Remove references to name.
17479 * serial.h (struct serial) <name>: Delete.
17480
f4ec508e
PA
174812020-01-10 Pedro Alves <palves@redhat.com>
17482
17483 * gdbarch-selftests.c (register_to_value_test): Remove "target
17484 already pushed" check.
17485
5b6d1e4f
PA
174862020-01-10 Pedro Alves <palves@redhat.com>
17487 John Baldwin <jhb@FreeBSD.org>
17488
17489 * aarch64-linux-nat.c
17490 (aarch64_linux_nat_target::thread_architecture): Adjust.
17491 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17492 (task_command_1): Likewise.
17493 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17494 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17495 (aix_thread_target::store_registers)
17496 (aix_thread_target::thread_alive): Adjust.
17497 * amd64-fbsd-tdep.c: Include "inferior.h".
17498 (amd64fbsd_get_thread_local_address): Pass down target.
17499 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17500 thread's gdbarch instead of target_gdbarch.
17501 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17502 get_last_target_status.
17503 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17504 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17505 inferiors.
17506 (update_inserted_breakpoint_locations): Skip if inferiors with no
17507 execution.
17508 (update_global_location_list): When handling moribund locations,
17509 find representative inferior for location's pspace, and use thread
17510 count of its process_stratum target.
17511 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17512 * bsd-uthread.c (bsd_uthread_target::wait): Use
17513 as_process_stratum_target and adjust thread_change_ptid and
17514 add_thread calls.
17515 (bsd_uthread_target::update_thread_list): Use
17516 as_process_stratum_target and adjust find_thread_ptid,
17517 thread_change_ptid and add_thread calls.
17518 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17519 find_thread_ptid call.
17520 * corelow.c (add_to_thread_list): Adjust add_thread call.
17521 (core_target_open): Adjust add_thread_silent and thread_count
17522 calls.
17523 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17524 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17525 * event-top.c (async_disconnect): Pop targets from all inferiors.
17526 * exec.c (add_target_sections): Push exec target on all inferiors
17527 sharing the program space.
17528 (remove_target_sections): Remove the exec target from all
17529 inferiors sharing the program space.
17530 (exec_on_vfork): New.
17531 * exec.h (exec_on_vfork): Declare.
17532 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17533 Pass it down.
17534 (fbsd_nat_target::update_thread_list): Adjust.
17535 (fbsd_nat_target::resume): Adjust.
17536 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17537 down.
17538 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17539 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17540 get_thread_arch_regcache call.
17541 * fork-child.c (gdb_startup_inferior): Pass target down to
17542 startup_inferior and set_executing.
17543 * gdbthread.h (struct process_stratum_target): Forward declare.
17544 (add_thread, add_thread_silent, add_thread_with_info)
17545 (in_thread_list): Add process_stratum_target parameter.
17546 (find_thread_ptid(inferior*, ptid_t)): New overload.
17547 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17548 parameter.
17549 (all_threads()): Delete overload.
17550 (all_threads, all_non_exited_threads): Add process_stratum_target
17551 parameter.
17552 (all_threads_safe): Use brace initialization.
17553 (thread_count): Add process_stratum_target parameter.
17554 (set_resumed, set_running, set_stop_requested, set_executing)
17555 (threads_are_executing, finish_thread_state): Add
17556 process_stratum_target parameter.
17557 (switch_to_thread): Use is_current_thread.
17558 * i386-fbsd-tdep.c: Include "inferior.h".
17559 (i386fbsd_get_thread_local_address): Pass down target.
17560 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17561 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17562 have_inferiors check.
17563 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17564 (inf_ptrace_target::attach): Adjust.
17565 * infcall.c (run_inferior_call): Adjust.
17566 * infcmd.c (run_command_1): Pass target to
17567 scoped_finish_thread_state.
17568 (proceed_thread_callback): Skip inferiors with no execution.
17569 (continue_command): Rename 'all_threads' local to avoid hiding
17570 'all_threads' function. Adjust get_last_target_status call.
17571 (prepare_one_step): Adjust set_running call.
17572 (signal_command): Use user_visible_resume_target. Compare thread
17573 pointers instead of inferior_ptid.
17574 (info_program_command): Adjust to pass down target.
17575 (attach_command): Mark target's 'thread_executing' flag.
17576 (stop_current_target_threads_ns): New, factored out from ...
17577 (interrupt_target_1): ... this. Switch inferior before making
17578 target calls.
17579 * inferior-iter.h
17580 (struct all_inferiors_iterator, struct all_inferiors_range)
17581 (struct all_inferiors_safe_range)
17582 (struct all_non_exited_inferiors_range): Filter on
17583 process_stratum_target too. Remove explicit.
17584 * inferior.c (inferior::inferior): Push dummy target on target
17585 stack.
17586 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17587 Add process_stratum_target parameter, and pass it down.
17588 (have_live_inferiors): Adjust.
17589 (switch_to_inferior_and_push_target): New.
17590 (add_inferior_command, clone_inferior_command): Handle
17591 "-no-connection" parameter. Use
17592 switch_to_inferior_and_push_target.
17593 (_initialize_inferior): Mention "-no-connection" option in
17594 the help of "add-inferior" and "clone-inferior" commands.
17595 * inferior.h: Include "process-stratum-target.h".
17596 (interrupt_target_1): Use bool.
17597 (struct inferior) <push_target, unpush_target, target_is_pushed,
17598 find_target_beneath, top_target, process_target, target_at,
17599 m_stack>: New.
17600 (discard_all_inferiors): Delete.
17601 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17602 (all_inferiors, all_non_exited_inferiors): Add
17603 process_stratum_target parameter.
17604 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17605 (target_last_proc_target): New global.
17606 (follow_fork_inferior): Push target on new inferior. Pass target
17607 to add_thread_silent. Call exec_on_vfork. Handle target's
17608 reference count.
17609 (follow_fork): Adjust get_last_target_status call. Also consider
17610 target.
17611 (follow_exec): Push target on new inferior.
17612 (struct execution_control_state) <target>: New field.
17613 (user_visible_resume_target): New.
17614 (do_target_resume): Call target_async.
17615 (resume_1): Set target's threads_executing flag. Consider resume
17616 target.
17617 (commit_resume_all_targets): New.
17618 (proceed): Also consider resume target. Skip threads of inferiors
17619 with no execution. Commit resumtion in all targets.
17620 (start_remote): Pass current inferior to wait_for_inferior.
17621 (infrun_thread_stop_requested): Consider target as well. Pass
17622 thread_info pointer to clear_inline_frame_state instead of ptid.
17623 (infrun_thread_thread_exit): Consider target as well.
17624 (random_pending_event_thread): New inferior parameter. Use it.
17625 (do_target_wait): Rename to ...
17626 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17627 down.
17628 (threads_are_resumed_pending_p, do_target_wait): New.
17629 (prepare_for_detach): Adjust calls.
17630 (wait_for_inferior): New inferior parameter. Handle it. Use
17631 do_target_wait_1 instead of do_target_wait.
17632 (fetch_inferior_event): Adjust. Switch to representative
17633 inferior. Pass target down.
17634 (set_last_target_status): Add process_stratum_target parameter.
17635 Save target in global.
17636 (get_last_target_status): Add process_stratum_target parameter and
17637 handle it.
17638 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17639 (context_switch): Check inferior_ptid == null_ptid before calling
17640 inferior_thread().
17641 (get_inferior_stop_soon): Pass down target.
17642 (wait_one): Rename to ...
17643 (poll_one_curr_target): ... this.
17644 (struct wait_one_event): New.
17645 (wait_one): New.
17646 (stop_all_threads): Adjust.
17647 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17648 event's target.
17649 (switch_back_to_stepped_thread): Also consider target.
17650 (print_stop_event): Update.
17651 (normal_stop): Update. Also consider the resume target.
17652 * infrun.h (wait_for_inferior): Remove declaration.
17653 (user_visible_resume_target): New declaration.
17654 (get_last_target_status, set_last_target_status): New
17655 process_stratum_target parameter.
17656 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17657 process_stratum_target parameter, and use it.
17658 (clear_inline_frame_state (thread_info*)): New.
17659 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17660 process_stratum_target parameter.
17661 (clear_inline_frame_state (thread_info*)): Declare.
17662 * linux-fork.c (delete_checkpoint_command): Pass target down to
17663 find_thread_ptid.
17664 (checkpoint_command): Adjust.
17665 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17666 instead of just tweaking inferior_ptid.
17667 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17668 (exit_lwp): Pass target down to find_thread_ptid.
17669 (attach_proc_task_lwp_callback): Pass target down to
17670 add_thread/set_running/set_executing.
17671 (linux_nat_target::attach): Pass target down to
17672 thread_change_ptid.
17673 (get_detach_signal): Pass target down to find_thread_ptid.
17674 Consider last target status's target.
17675 (linux_resume_one_lwp_throw, resume_lwp)
17676 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17677 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17678 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17679 (linux_nat_target::async_wait_fd): New.
17680 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17681 target down.
17682 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17683 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17684 * linux-thread-db.c (struct thread_db_info::process_target): New
17685 field.
17686 (add_thread_db_info): Save target.
17687 (get_thread_db_info): New process_stratum_target parameter. Also
17688 match target.
17689 (delete_thread_db_info): New process_stratum_target parameter.
17690 Also match target.
17691 (thread_from_lwp): Adjust to pass down target.
17692 (thread_db_notice_clone): Pass down target.
17693 (check_thread_db_callback): Pass down target.
17694 (try_thread_db_load_1): Always push the thread_db target.
17695 (try_thread_db_load, record_thread): Pass target down.
17696 (thread_db_target::detach): Pass target down. Always unpush the
17697 thread_db target.
17698 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17699 target down. Always unpush the thread_db target.
17700 (find_new_threads_callback, thread_db_find_new_threads_2)
17701 (thread_db_target::update_thread_list): Pass target down.
17702 (thread_db_target::pid_to_str): Pass current inferior down.
17703 (thread_db_target::get_thread_local_address): Pass target down.
17704 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17705 target down.
17706 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17707 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17708 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17709 (procfs_init_inferior): Rename to ...
17710 (procfs_target::procfs_init_inferior): ... this and adjust.
17711 (procfs_target::create_inferior, procfs_notice_thread)
17712 (procfs_do_thread_registers): Adjust.
17713 * ppc-fbsd-tdep.c: Include "inferior.h".
17714 (ppcfbsd_get_thread_local_address): Pass down target.
17715 * proc-service.c (ps_xfer_memory): Switch current inferior and
17716 program space as well.
17717 (get_ps_regcache): Pass target down.
17718 * process-stratum-target.c
17719 (process_stratum_target::thread_address_space)
17720 (process_stratum_target::thread_architecture): Pass target down.
17721 * process-stratum-target.h
17722 (process_stratum_target::threads_executing): New field.
17723 (as_process_stratum_target): New.
17724 * ravenscar-thread.c
17725 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17726 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17727 down.
17728 * record-btrace.c (record_btrace_target::info_record): Adjust.
17729 (record_btrace_target::record_method)
17730 (record_btrace_target::record_is_replaying)
17731 (record_btrace_target::fetch_registers)
17732 (get_thread_current_frame_id, record_btrace_target::resume)
17733 (record_btrace_target::wait, record_btrace_target::stop): Pass
17734 target down.
17735 * record-full.c (record_full_wait_1): Switch to event thread.
17736 Pass target down.
17737 * regcache.c (regcache::regcache)
17738 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17739 process_stratum_target parameter and handle it.
17740 (current_thread_target): New global.
17741 (get_thread_regcache): Add process_stratum_target parameter and
17742 handle it. Switch inferior before calling target method.
17743 (get_thread_regcache): Pass target down.
17744 (get_thread_regcache_for_ptid): Pass target down.
17745 (registers_changed_ptid): Add process_stratum_target parameter and
17746 handle it.
17747 (registers_changed_thread, registers_changed): Pass target down.
17748 (test_get_thread_arch_aspace_regcache): New.
17749 (current_regcache_test): Define a couple local test_target_ops
17750 instances and use them for testing.
17751 (readwrite_regcache): Pass process_stratum_target parameter.
17752 (cooked_read_test, cooked_write_test): Pass mock_target down.
17753 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17754 (get_thread_arch_aspace_regcache): Add process_stratum_target
17755 parameter.
17756 (regcache::target): New method.
17757 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17758 (regcache::registers_changed_ptid): Add process_stratum_target
17759 parameter.
17760 (regcache::m_target): New field.
17761 (registers_changed_ptid): Add process_stratum_target parameter.
17762 * remote.c (remote_state::supports_vCont_probed): New field.
17763 (remote_target::async_wait_fd): New method.
17764 (remote_unpush_and_throw): Add remote_target parameter.
17765 (get_current_remote_target): Adjust.
17766 (remote_target::remote_add_inferior): Push target.
17767 (remote_target::remote_add_thread)
17768 (remote_target::remote_notice_new_inferior)
17769 (get_remote_thread_info): Pass target down.
17770 (remote_target::update_thread_list): Skip threads of inferiors
17771 bound to other targets. (remote_target::close): Don't discard
17772 inferiors. (remote_target::add_current_inferior_and_thread)
17773 (remote_target::process_initial_stop_replies)
17774 (remote_target::start_remote)
17775 (remote_target::remote_serial_quit_handler): Pass down target.
17776 (remote_target::remote_unpush_target): New remote_target
17777 parameter. Unpush the target from all inferiors.
17778 (remote_target::remote_unpush_and_throw): New remote_target
17779 parameter. Pass it down.
17780 (remote_target::open_1): Check whether the current inferior has
17781 execution instead of checking whether any inferior is live. Pass
17782 target down.
17783 (remote_target::remote_detach_1): Pass down target. Use
17784 remote_unpush_target.
17785 (extended_remote_target::attach): Pass down target.
17786 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17787 (remote_target::append_resumption): Pass down target.
17788 (remote_target::append_pending_thread_resumptions)
17789 (remote_target::remote_resume_with_hc, remote_target::resume)
17790 (remote_target::commit_resume): Pass down target.
17791 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17792 (remote_target::interrupt_query)
17793 (remote_target::remove_new_fork_children)
17794 (remote_target::check_pending_events_prevent_wildcard_vcont)
17795 (remote_target::remote_parse_stop_reply)
17796 (remote_target::process_stop_reply): Pass down target.
17797 (first_remote_resumed_thread): New remote_target parameter. Pass
17798 it down.
17799 (remote_target::wait_as): Pass down target.
17800 (unpush_and_perror): New remote_target parameter. Pass it down.
17801 (remote_target::readchar, remote_target::remote_serial_write)
17802 (remote_target::getpkt_or_notif_sane_1)
17803 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17804 down target.
17805 (remote_target::mourn_inferior): Pass down target. Use
17806 remote_unpush_target.
17807 (remote_target::core_of_thread)
17808 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17809 (remote_target::pid_to_exec_file)
17810 (remote_target::thread_handle_to_thread_info): Pass down target.
17811 (remote_target::async_wait_fd): New.
17812 * riscv-fbsd-tdep.c: Include "inferior.h".
17813 (riscv_fbsd_get_thread_local_address): Pass down target.
17814 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17815 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17816 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17817 Adjust.
17818 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17819 * solib-svr4.c (enable_break): Pass down target.
17820 * spu-multiarch.c (parse_spufs_run): Pass down target.
17821 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17822 * target-delegates.c: Regenerate.
17823 * target.c (g_target_stack): Delete.
17824 (current_top_target): Return the current inferior's top target.
17825 (target_has_execution_1): Refer to the passed-in inferior's top
17826 target.
17827 (target_supports_terminal_ours): Check whether the initial
17828 inferior was already created.
17829 (decref_target): New.
17830 (target_stack::push): Incref/decref the target.
17831 (push_target, push_target, unpush_target): Adjust.
17832 (target_stack::unpush): Defref target.
17833 (target_is_pushed): Return bool. Adjust to refer to the current
17834 inferior's target stack.
17835 (dispose_inferior): Delete, and inline parts ...
17836 (target_preopen): ... here. Only dispose of the current inferior.
17837 (target_detach): Hold strong target reference while detaching.
17838 Pass target down.
17839 (target_thread_name): Add assertion.
17840 (target_resume): Pass down target.
17841 (target_ops::beneath, find_target_at): Adjust to refer to the
17842 current inferior's target stack.
17843 (get_dummy_target): New.
17844 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17845 has a thread running.
17846 (initialize_targets): Rename to ...
17847 (_initialize_target): ... this.
17848 * target.h: Include "gdbsupport/refcounted-object.h".
17849 (struct target_ops): Inherit refcounted_object.
17850 (target_ops::shortname, target_ops::longname): Make const.
17851 (target_ops::async_wait_fd): New method.
17852 (decref_target): Declare.
17853 (struct target_ops_ref_policy): New.
17854 (target_ops_ref): New typedef.
17855 (get_dummy_target): Declare function.
17856 (target_is_pushed): Return bool.
17857 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17858 (all_matching_threads_iterator::all_matching_threads_iterator):
17859 Handle filter target.
17860 * thread-iter.h (struct all_matching_threads_iterator, struct
17861 all_matching_threads_range, class all_non_exited_threads_range):
17862 Filter by target too. Remove explicit.
17863 * thread.c (threads_executing): Delete.
17864 (inferior_thread): Pass down current inferior.
17865 (clear_thread_inferior_resources): Pass down thread pointer
17866 instead of ptid_t.
17867 (add_thread_silent, add_thread_with_info, add_thread): Add
17868 process_stratum_target parameter. Use it for thread and inferior
17869 searches.
17870 (is_current_thread): New.
17871 (thread_info::deletable): Use it.
17872 (find_thread_ptid, thread_count, in_thread_list)
17873 (thread_change_ptid, set_resumed, set_running): New
17874 process_stratum_target parameter. Pass it down.
17875 (set_executing): New process_stratum_target parameter. Pass it
17876 down. Adjust reference to 'threads_executing'.
17877 (threads_are_executing): New process_stratum_target parameter.
17878 Adjust reference to 'threads_executing'.
17879 (set_stop_requested, finish_thread_state): New
17880 process_stratum_target parameter. Pass it down.
17881 (switch_to_thread): Also match inferior.
17882 (switch_to_thread): New process_stratum_target parameter. Pass it
17883 down.
17884 (update_threads_executing): Reimplement.
17885 * top.c (quit_force): Pop targets from all inferior.
17886 (gdb_init): Don't call initialize_targets.
17887 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17888 Declare.
17889 (windows_add_thread, windows_delete_thread): Adjust.
17890 (get_windows_debug_event): Rename to ...
17891 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17892 * tracefile-tfile.c (tfile_target_open): Pass down target.
17893 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17894 Forward declare.
17895 (switch_to_thread): Add process_stratum_target parameter.
17896 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17897 parameter. Use it.
17898 (mi_on_resume): Pass target down.
17899 * nat/fork-inferior.c (startup_inferior): Add
17900 process_stratum_target parameter. Pass it down.
17901 * nat/fork-inferior.h (startup_inferior): Add
17902 process_stratum_target parameter.
17903 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17904
75c6c844
PA
179052020-01-10 Pedro Alves <palves@redhat.com>
17906
17907 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17908 directly. Instead find the first thread in the thread list and
17909 use switch_to_thread.
17910
78f2c40a
PA
179112020-01-10 Pedro Alves <palves@redhat.com>
17912
17913 * remote.c (remote_target::remote_add_inferior): Don't bind a
17914 process to the current inferior if the current inferior is already
17915 bound to a process.
17916
e7af6c70
TBA
179172020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17918 Pedro Alves <palves@redhat.com>
17919
17920 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17921 If no process is specified, return null_ptid instead of
17922 inferior_ptid.
17923 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17924 TARGET_WAITKIND_SIGNALLED with no pid.
17925
31ba933e
PA
179262020-01-10 Pedro Alves <palves@redhat.com>
17927
17928 * remote.c (first_remote_resumed_thread): New.
17929 (remote_target::wait_as): Use it as default event_ptid instead of
17930 inferior_ptid.
17931
735fc2ca
PA
179322020-01-10 Pedro Alves <palves@redhat.com>
17933
17934 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17935
c17e02e1
PA
179362020-01-10 Pedro Alves <palves@redhat.com>
17937
17938 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17939 not -1.
17940
ab1ddbcf
PA
179412020-01-10 Pedro Alves <palves@redhat.com>
17942
17943 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17944 ptid to get_last_target_status.
17945 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17946 ptid to get_last_target_status.
17947 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17948 get_last_target_status.
17949 (info_program_command): Don't pass a target_waitstatus to
17950 get_last_target_status.
17951 * infrun.c (init_wait_for_inferior): Use
17952 nullify_last_target_wait_ptid.
17953 (get_last_target_status): Handle nullptr arguments.
17954 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17955 (print_stop_event): Don't pass a ptid to get_last_target_status.
17956 (normal_stop): Don't pass a ptid to get_last_target_status.
17957 * infrun.h (get_last_target_status, set_last_target_status): Move
17958 comments here and update.
17959 (nullify_last_target_wait_ptid): Declare.
17960 * linux-fork.c (fork_load_infrun_state): Remove local extern
17961 declaration of nullify_last_target_wait_ptid.
17962 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17963 to get_last_target_status.
17964
f3f8ece4
PA
179652020-01-10 Pedro Alves <palves@redhat.com>
17966
17967 * gdbthread.h (scoped_restore_current_thread)
17968 <dont_restore, restore, m_dont_restore>: Declare.
17969 * thread.c (thread_alive): Add assertion. Return bool.
17970 (switch_to_thread_if_alive): New.
17971 (prune_threads): Switch inferior/thread.
17972 (print_thread_info_1): Switch thread before calling target methods.
17973 (scoped_restore_current_thread::restore): New, factored out from
17974 ...
17975 (scoped_restore_current_thread::~scoped_restore_current_thread):
17976 ... this.
17977 (scoped_restore_current_thread::scoped_restore_current_thread):
17978 Add assertion.
17979 (thread_apply_all_command, thread_select): Use
17980 switch_to_thread_if_alive.
17981 * infrun.c (proceed, restart_threads, handle_signal_stop)
17982 (switch_back_to_stepped_thread): Switch current thread before
17983 calling target methods.
17984
db2d40f7
PA
179852020-01-10 Pedro Alves <palves@redhat.com>
17986
17987 * inferior.c (switch_to_inferior_no_thread): New function,
17988 factored out from ...
17989 (inferior_command): ... here.
17990 * inferior.h (switch_to_inferior_no_thread): Declare.
17991 * mi/mi-main.c (run_one_inferior): Use
17992 switch_to_inferior_no_thread.
17993
bd420a2d
PA
179942020-01-10 Pedro Alves <palves@redhat.com>
17995
17996 * infcmd.c (kill_command): Remove dead code.
17997
ddf5db90
PA
179982020-01-10 Pedro Alves <palves@redhat.com>
17999
18000 * remote.c (remote_target::mourn_inferior): No longer check
18001 whether the target is running.
18002
5018ce90
PA
180032020-01-10 Pedro Alves <palves@redhat.com>
18004
18005 * corelow.c (core_target::has_execution): Change parameter type to
18006 inferior pointer.
18007 * inferior.c (number_of_live_inferiors): Use
18008 inferior::has_execution instead of target_has_execution_1.
18009 * inferior.h (inferior::has_execution): New.
18010 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18011 inferior::has_execution instead of target_has_execution_1.
18012 * process-stratum-target.c
18013 (process_stratum_target::has_execution): Change parameter type to
18014 inferior pointer. Check the inferior's PID instead of
18015 inferior_ptid.
18016 * process-stratum-target.h
18017 (process_stratum_target::has_execution): Change parameter type to
18018 inferior pointer.
18019 * record-full.c (record_full_core_target::has_execution): Change
18020 parameter type to inferior pointer.
18021 * target.c (target_has_execution_1): Change parameter type to
18022 inferior pointer.
18023 (target_has_execution_current): Adjust.
18024 * target.h (target_ops::has_execution): Change parameter type to
18025 inferior pointer.
18026 (target_has_execution_1): Change parameter type to inferior
18027 pointer. Change return type to bool.
18028 * tracefile.h (tracefile_target::has_execution): Change parameter
18029 type to inferior pointer.
18030
74375d18
PA
180312020-01-10 Pedro Alves <palves@redhat.com>
18032
18033 * exceptions.c (print_flush): Remove current_top_target() check.
18034
acdf84a6
PA
180352020-01-10 Pedro Alves <palves@redhat.com>
18036
18037 * remote.c (show_remote_exec_file): Show the current inferior's
18038 exec-file instead of the command variable's value.
18039
ec506636
PA
180402020-01-10 Pedro Alves <palves@redhat.com>
18041
18042 * record-full.c (record_full_resume_ptid): New global.
18043 (record_full_target::resume): Set it.
18044 (record_full_wait_1): Use record_full_resume_ptid instead of
18045 inferior_ptid.
18046
873657b9
PA
180472020-01-10 Pedro Alves <palves@redhat.com>
18048
18049 * gdbthread.h (scoped_restore_current_thread)
18050 <dont_restore, restore, m_dont_restore>: Declare.
18051 * thread.c (thread_alive): Add assertion. Return bool.
18052 (switch_to_thread_if_alive): New.
18053 (prune_threads): Switch inferior/thread.
18054 (print_thread_info_1): Switch thread before calling target methods.
18055 (scoped_restore_current_thread::restore): New, factored out from
18056 ...
18057 (scoped_restore_current_thread::~scoped_restore_current_thread):
18058 ... this.
18059 (scoped_restore_current_thread::scoped_restore_current_thread):
18060 Add assertion.
18061 (thread_apply_all_command, thread_select): Use
18062 switch_to_thread_if_alive.
18063
7f0ae84c
GB
180642020-01-10 George Barrett <bob@bob131.so>
18065
18066 * stap-probe.c (stap_modify_semaphore): Don't check for null
18067 semaphores.
18068 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18069 for null semaphores.
18070
f5a7c406
AB
180712020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18072
18073 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18074 all source windows, and maintain horizontal scroll status while
18075 doing so.
18076
9ae6bf64
TT
180772020-01-09 Tom Tromey <tom@tromey.com>
18078
18079 PR tui/18932:
18080 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18081 update_source_window, not print_source_lines.
18082
b2efe70c
AB
180832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18084
18085 * tui/tui.c (tui_enable): Register tui hooks after calling
18086 tui_display_main.
18087
5f23a082
CB
180882020-01-09 Christian Biesinger <cbiesinger@google.com>
18089
18090 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18091
3061113b
SM
180922020-01-08 Simon Marchi <simon.marchi@efficios.com>
18093
18094 * thread.c (print_thread_info_1): Fix indentation.
18095
57d75002
CB
180962020-01-09 Christian Biesinger <cbiesinger@google.com>
18097
18098 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18099 unique_xmalloc_ptr outside the if to always free the demangled name.
18100
6a053cb1
TT
181012020-01-08 Tom Tromey <tromey@adacore.com>
18102
18103 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18104 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18105 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18106 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18107 Remove.
18108 (section_offsets): New typedef.
18109 * symtab.c (fixup_section, get_msymbol_address): Update.
18110 * symmisc.c (dump_msymbols): Update.
18111 * symfile.h (relative_addr_info_to_section_offsets)
18112 (symfile_map_offsets_to_segments): Update.
18113 * symfile.c (build_section_addr_info_from_objfile)
18114 (init_objfile_sect_indices): Update.
18115 (struct place_section_arg): Change type of "offsets".
18116 (place_section): Update.
18117 (relative_addr_info_to_section_offsets): Change type of
18118 "section_offsets". Remove "num_sections" parameter.
18119 (default_symfile_offsets, syms_from_objfile_1)
18120 (set_objfile_default_section_offset): Update.
18121 (reread_symbols): No need to preserve section offsets by hand.
18122 (symfile_map_offsets_to_segments): Change type of "offsets".
18123 * stap-probe.c (relocate_address): Update.
18124 * stabsread.h (process_one_symbol): Update.
18125 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18126 (solib_target_relocate_section_addresses): Update.
18127 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18128 Update.
18129 * solib-frv.c (frv_relocate_main_executable): Update.
18130 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18131 * solib-aix.c (solib_aix_get_section_offsets): Change return
18132 type.
18133 (solib_aix_solib_create_inferior_hook): Update.
18134 * remote.c (remote_target::get_offsets): Update.
18135 * psymtab.c (find_pc_sect_psymtab): Update.
18136 * psympriv.h (struct partial_symbol) <address, text_low,
18137 text_high>: Update.
18138 * objfiles.h (obj_section_offset): Update.
18139 (struct objfile) <section_offsets>: Change type.
18140 <num_sections>: Remove.
18141 (objfile_relocate): Update.
18142 * objfiles.c (entry_point_address_query): Update
18143 (relocate_one_symbol): Change type of "section_offsets".
18144 (objfile_relocate1, objfile_relocate1): Change type of
18145 "new_offsets".
18146 (objfile_rebase1): Update.
18147 * mipsread.c (mipscoff_symfile_read): Update.
18148 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18149 parameter.
18150 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18151 (parse_external, psymtab_to_symtab_1): Update.
18152 * machoread.c (macho_symfile_offsets): Update.
18153 * ia64-tdep.c (ia64_find_unwind_table): Update.
18154 * hppa-tdep.c (read_unwind_info): Update.
18155 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18156 * dwarf2read.c (create_addrmap_from_index)
18157 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18158 (process_psymtab_comp_unit_reader, add_partial_symbol)
18159 (add_partial_subprogram, process_full_comp_unit)
18160 (read_file_scope, read_func_scope, read_lexical_block_scope)
18161 (read_call_site_scope, dwarf2_rnglists_process)
18162 (dwarf2_ranges_process, dwarf2_ranges_read)
18163 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18164 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18165 Update.
18166 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18167 Update.
18168 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18169 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18170 (process_one_symbol): Change type of "section_offsets".
18171 * ctfread.c (get_objfile_text_range): Update.
18172 * coffread.c (coff_symtab_read, enter_linenos)
18173 (process_coff_symbol): Update.
18174 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18175 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18176
456e800a
TT
181772020-01-08 Tom Tromey <tromey@adacore.com>
18178
18179 * dwarf2read.c (parse_macro_definition): Use std::string.
18180 (parse_macro_definition): Likewise.
18181
6dfa2fc2
TT
181822020-01-08 Tom Tromey <tromey@adacore.com>
18183
18184 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18185 (ATTR_ALLOC_CHUNK): Remove.
18186
421d1616
TT
181872020-01-08 Tom Tromey <tromey@adacore.com>
18188
18189 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18190
43816ebc
TT
181912020-01-08 Tom Tromey <tromey@adacore.com>
18192
18193 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18194 (dwarf2_compute_name, open_dwo_file): Likewise.
18195 (process_enumeration_scope): Use std::vector.
18196 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18197 (partial_die_info::fixup, dwarf2_start_subfile)
18198 (guess_full_die_structure_name, dwarf2_name): Likewise.
18199 (determine_prefix): Update.
18200 (guess_full_die_structure_name): Make return type const.
18201 (partial_die_full_name): Return unique_xmalloc_ptr.
18202 (DW_FIELD_ALLOC_CHUNK): Remove.
18203
4212d509
TT
182042020-01-07 Tom Tromey <tromey@adacore.com>
18205
18206 PR build/24937:
18207 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18208
06a6207a
JT
182092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18210
18211 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18212
153d79c4
AB
182132020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18214
18215 * stack.c (print_frame_info): Move disassemble_next_line code
18216 inside source_print block.
18217
66182876
EZ
182182020-01-06 Eli Zaretskii <eliz@gnu.org>
18219
18220 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18221 gdb/signals.h, as we are now using native signal symbols.
18222
cbfa8581
SV
182232020-01-06 Shahab Vahedi <shahab@synopsys.com>
18224
18225 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18226 overflow by an early check of content vs threshold.
aac66a4c 18227 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18228 Likewise.
18229
3f602821
EZ
182302020-01-06 Eli Zaretskii <eliz@gnu.org>
18231
18232 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18233
a08c904d
JT
182342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18235
18236 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18237 export table if no section contains it's RVA.
18238
89a65580
EZ
182392020-01-06 Eli Zaretskii <eliz@gnu.org>
18240
18241 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18242
8b7fcda2
HD
182432020-01-06 Hannes Domani <ssbssa@yahoo.de>
18244
18245 * source.c (print_source_lines_base): Set last_line_listed.
18246
a61b4f69
SV
182472020-01-06 Shahab Vahedi <shahab@synopsys.com>
18248
18249 * tui/tui-disasm.c: Remove trailing spaces.
18250
559e7e50
EZ
182512020-01-06 Eli Zaretskii <eliz@gnu.org>
18252 Pedro Alves <palves@redhat.com>
18253
18254 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18255 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18256 (windows_gdb_signal_to_target): New function, uses the above
18257 enumeration to convert GDB internal signal codes to equivalent
18258 Windows codes.
18259 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18260 * windows-nat.c: Include "gdb_wait.h".
18261 (get_windows_debug_event): Extract the fatal exception from the
18262 exit status and convert to the equivalent Posix signal number.
18263 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18264 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18265 * gdbsupport/gdb_wait.c: New file, implements
18266 windows_status_to_termsig.
18267 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18268 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18269
f2302a34
AB
182702020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18271
18272 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18273 show_layout.
18274
6a5206eb
LM
182752020-01-05 Luis Machado <luis.machado@linaro.org>
18276
18277 * aarch64-linux-nat.c
18278 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18279 and bfd_mach_aarch64.
18280
6ec1d75e
PW
182812020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18282
18283 * ui-file.c (stdio_file::can_emit_style_escape)
18284 (tee_file::can_emit_style_escape): Ensure style is used also on
18285 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18286 to gdb_stdout.
18287 * main.c (set_gdb_data_directory): Use file style to output the
18288 warning that the given pathname is not a directory.
18289 * top.c (show_history_filename, gdb_safe_append_history)
18290 (show_gdb_datadir): Use file style.
18291
44f81a76
HD
182922020-01-03 Hannes Domani <ssbssa@yahoo.de>
18293
18294 * solib-target.c (struct lm_info_target):
18295 Change offsets to be a unique_xmalloc_ptr.
18296 (solib_target_relocate_section_addresses): Update.
18297
25057eb0
HD
182982020-01-03 Hannes Domani <ssbssa@yahoo.de>
18299
18300 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18301
6e2118f5
BE
183022020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18303
18304 * MAINTAINERS (Write After Approval): Add myself.
18305
8133c7dc
LM
183062020-01-02 Luis Machado <luis.machado@linaro.org>
18307
18308 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18309 Cell BE architecture.
18310 * target.h (struct target_ops) <thread_architecture>: Likewise.
18311
48189bec
HD
183122020-01-01 Hannes Domani <ssbssa@yahoo.de>
18313
18314 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18315
ead1063b
HD
183162020-01-01 Hannes Domani <ssbssa@yahoo.de>
18317
18318 * MAINTAINERS (Write After Approval): Add myself.
18319
e5d78223
JB
183202020-01-01 Joel Brobecker <brobecker@adacore.com>
18321
18322 * gdbarch.sh: Update copyright year range of generated files.
18323
b811d2c2
JB
183242020-01-01 Joel Brobecker <brobecker@adacore.com>
18325
18326 Update copyright year range in all GDB files.
18327
5f4def5c
JB
183282020-01-01 Joel Brobecker <brobecker@adacore.com>
18329
18330 * copyright.py: Convert to Python 3.
18331
51fd4002
JB
183322020-01-01 Joel Brobecker <brobecker@adacore.com>
18333
18334 * copyright.py: Adapt after move of gnulib directory from gdb
18335 directory to toplevel directory.
18336
5fb651f2
JB
183372020-01-01 Joel Brobecker <brobecker@adacore.com>
18338
18339 * copyright.py (main): Exit if run from the wrong directory.
18340
5dd8bf88
JB
183412020-01-01 Joel Brobecker <brobecker@adacore.com>
18342
18343 * top.c (print_gdb_version): Change copyright year to 2020.
18344
9f71dacb 183452020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18346
9f71dacb 18347 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18348
9f71dacb 18349For older changes see ChangeLog-2019.
c906108c
SS
18350\f
18351Local Variables:
18352mode: change-log
18353left-margin: 8
18354fill-column: 74
18355version-control: never
57da7796 18356coding: utf-8
c906108c 18357End: